text
stringlengths
2
1.04M
meta
dict
import _plotly_utils.basevalidators class CminValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="cmin", parent_name="scatter3d.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, )
{ "content_hash": "4f3ee75ae931250848b2ed129964fc2b", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 79, "avg_line_length": 34.92857142857143, "alnum_prop": 0.5991820040899796, "repo_name": "plotly/plotly.py", "id": "41440f586c1018078ab2a1588ff7dbd91f8381f9", "size": "489", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmin.py", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "545" }, { "name": "JavaScript", "bytes": "2074" }, { "name": "PostScript", "bytes": "565328" }, { "name": "Python", "bytes": "31506317" }, { "name": "TypeScript", "bytes": "71337" } ], "symlink_target": "" }
#pragma once #include <map> #include <vector> #include <list> #include "compound-config/compound-config.hpp" namespace problem { class Shape { public: typedef unsigned FactorizedDimensionID; unsigned NumFactorizedDimensions = 0; std::map<FactorizedDimensionID, std::string> FactorizedDimensionIDToName; std::map<std::string, FactorizedDimensionID> FactorizedDimensionNameToID; typedef unsigned FlattenedDimensionID; bool UsesFlattening; unsigned NumFlattenedDimensions = 0; std::map<FlattenedDimensionID, std::string> FlattenedDimensionIDToName; std::map<std::string, FlattenedDimensionID> FlattenedDimensionNameToID; std::vector<std::vector<FactorizedDimensionID>> FlattenedToFactorized; std::map<FactorizedDimensionID, FlattenedDimensionID> FactorizedToFlattened; typedef int Coefficient; typedef unsigned CoefficientID; typedef std::map<CoefficientID, int> Coefficients; unsigned NumCoefficients = 0; std::map<std::string, CoefficientID> CoefficientNameToID; std::map<CoefficientID, std::string> CoefficientIDToName; std::map<CoefficientID, int> DefaultCoefficients; typedef unsigned DataSpaceID; unsigned NumDataSpaces = 0; std::map<std::string, DataSpaceID> DataSpaceNameToID; std::map<DataSpaceID, std::string> DataSpaceIDToName; std::map<DataSpaceID, unsigned> DataSpaceOrder; std::map<DataSpaceID, bool> IsReadWriteDataSpace; // Projection AST: the projection function for each dataspace dimension is a // Sum-Of-Products where each Product is the product of a // Coefficient and a Dimension. This is fairly restrictive // but efficient. We can generalize later if needed. typedef std::pair<CoefficientID, FactorizedDimensionID> ProjectionTerm; typedef std::list<ProjectionTerm> ProjectionExpression; typedef std::vector<ProjectionExpression> Projection; // Projection from an flattened iteration-space dimension to an un-flattened // problem dimension. Because its form is a simple linear expression, we can // hard-code the projection functions. All we need to record here is an // *ordered* list of all problem dimensions that flatten into each flattened // dimension. During parsing we also need to make sure that each problem // dimension is flattened into at most one flattened dimension. std::vector<Projection> Projections; std::vector<std::set<FlattenedDimensionID>> DataSpaceIDToDimensionIDVector; public: void Parse(config::CompoundConfigNode config); std::set<FlattenedDimensionID> GetCoIteratedDimensions(const std::vector<DataSpaceID> dataspace_pair) const; std::set<FlattenedDimensionID> GetFullyContractedDimensions() const; }; } // namespace problem
{ "content_hash": "22782a6234a14a70834a6704146f03ef", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 110, "avg_line_length": 37.397260273972606, "alnum_prop": 0.7721611721611722, "repo_name": "NVlabs/timeloop", "id": "f78aa6dc1c2e5275e94f758b1f006962e9b78294", "size": "4293", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "include/workload/shape-models/problem-shape.hpp", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C++", "bytes": "1501498" }, { "name": "Python", "bytes": "47388" } ], "symlink_target": "" }
@interface TableViewController : UITableViewController @end
{ "content_hash": "ba4d6ac2a4b34f7f426b9f678eda61de", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 54, "avg_line_length": 20.333333333333332, "alnum_prop": 0.8524590163934426, "repo_name": "yfGit/2017-day-by-day", "id": "f301c1e32e1a932f01d97fb5d316a40d1c05fba2", "size": "231", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Transition/Transition/TableViewController.h", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "179081" }, { "name": "Ruby", "bytes": "353" }, { "name": "Shell", "bytes": "25155" } ], "symlink_target": "" }
package org.frikadelki.ash.telegram.api.chat.keyboard; import com.google.gson.annotations.SerializedName; import lombok.*; import java.util.List; @Builder(builderClassName = "Builder") @AllArgsConstructor @RequiredArgsConstructor public final class TgmReplyKeyboardMarkup { /** * Required. Array of button rows, each represented by an Array of KeyboardButton objects */ @Singular("row") @NonNull private final List<List<TgmKeyboardButton>> keyboard; /** * Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller * if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the * same height as the app's standard keyboard. */ @SerializedName("resize_keyboard") private Boolean resizeKeyboard = null; /** * Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, * but clients will automatically display the usual letter-keyboard in the chat – the user can press a special * button in the input field to see the custom keyboard again. Defaults to false. */ @SerializedName("one_time_keyboard") private Boolean oneTimeKeyboard = null; /** * Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are * @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), * sender of the original message. * * Example: A user requests to change the bot‘s language, bot replies to th request with a keyboard to select the * new language. Other users in the group don’t see the keyboard. */ private Boolean selective = null; }
{ "content_hash": "1a02d7b60ed0bb3072beac5de6c83483", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 116, "avg_line_length": 36.765957446808514, "alnum_prop": 0.75, "repo_name": "frikadelki/telegram-bot-api", "id": "9d2912369bbd4ffd2ca7c3c12a764289bfcc3393", "size": "1822", "binary": false, "copies": "1", "ref": "refs/heads/master-02", "path": "src/main/java/org/frikadelki/ash/telegram/api/chat/keyboard/TgmReplyKeyboardMarkup.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "94323" } ], "symlink_target": "" }
@implementation NSDictionary (SimpleGetters) - (NSString *) stringForKey: (id) key { NSString *string = [self objectForKey: key]; if (string == nil) { return @""; } if ([string isKindOfClass: [NSString class]]) { return string; } if ([string isKindOfClass: [NSNumber class]]) { NSNumber *number = (NSNumber *) string; return [number stringValue]; } return @""; } - (NSString *) stringForKeyOrNil:(id)key { NSString *string = [self objectForKey: key]; if (string == nil) { return nil; } if ([string isKindOfClass: [NSString class]]) { return string; } if ([string isKindOfClass: [NSNumber class]]) { NSNumber *number = (NSNumber *) string; return [number stringValue]; } return nil; } - (NSNumber *) numberForKey: (id) key { id number = [self objectForKey: key]; if (number != nil) { if ([number isKindOfClass: [NSNumber class]]) { return number; } if ([number isKindOfClass: [NSString class]]) { NSNumberFormatter *f = [[NSNumberFormatter alloc] init]; NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_EN"]; [f setLocale: locale]; [f setNumberStyle: NSNumberFormatterDecimalStyle]; NSNumber *fNumber = [f numberFromString: number]; if (fNumber != nil) { return fNumber; } } } return [NSNumber numberWithInt: 0]; } - (BOOL) boolForKey: (id) key { NSNumber *value = [self numberForKey: key]; return [value boolValue]; } - (CGRect) rectForKey:(id)key { id obj = [self objectForKey: key]; if (obj && [obj isKindOfClass: [NSString class]]) { return CGRectFromString((NSString *) obj); } // if ([obj isKindOfClass: [NSDictionary class]]) { // NSString *family = [DeviceManager family]; // return CGRectFromString([self stringFromDictionary: (NSDictionary *) obj forKey: family]); // } else if ([obj isKindOfClass: [NSString class]]) { // return CGRectFromString((NSString *) obj); // } return CGRectZero; } - (CGPoint) pointForKey: (id) key { id obj = [self objectForKey: key]; if (obj && [obj isKindOfClass: [NSString class]]) { return CGPointFromString((NSString *) obj); } return CGPointZero; } - (CGSize) sizeForKey: (id) key { id obj = [self objectForKey: key]; if (obj && [obj isKindOfClass: [NSString class]]) { return CGSizeFromString((NSString *) obj); } return CGSizeZero; } - (NSRange) rangeForKey: (id) key { id obj = [self objectForKey: key]; if (obj && [obj isKindOfClass: [NSString class]]) { return NSRangeFromString(obj); } return NSMakeRange(0, 0); } - (UIColor *) colorForKey:(id)key { NSString *colorString = [[self stringForKey: key] lowercaseString]; // check hex NSError *error = nil; NSRegularExpression *regExp = [NSRegularExpression regularExpressionWithPattern:@"^#([0-9a-f]{1,2})([0-9a-f]{1,2})([0-9a-f]{1,2})$" options:0 error:&error]; if (error) { NSLog(@"Regexp error: %@", error); return [UIColor blackColor]; } NSTextCheckingResult *regMatch = [regExp firstMatchInString:colorString options:0 range:NSMakeRange(0, [colorString length])]; if (regMatch) { NSRange firstRange = [regMatch rangeAtIndex: 1]; NSRange secondRange = [regMatch rangeAtIndex: 2]; NSRange threeRange = [regMatch rangeAtIndex: 3]; unsigned int r, g, b; [[NSScanner scannerWithString:[colorString substringWithRange:firstRange]] scanHexInt:&r]; [[NSScanner scannerWithString:[colorString substringWithRange:secondRange]] scanHexInt:&g]; [[NSScanner scannerWithString:[colorString substringWithRange:threeRange]] scanHexInt:&b]; return [UIColor colorWithRed:((float) r / 255.0f) green:((float) g / 255.0f) blue:((float) b / 255.0f) alpha:1.0f]; } NSArray *colorComponents = [colorString componentsSeparatedByString: @","]; if ([colorComponents count] == 3) { CGFloat r = [[colorComponents objectAtIndex:0] floatValue]; CGFloat g = [[colorComponents objectAtIndex:1] floatValue]; CGFloat b = [[colorComponents objectAtIndex:2] floatValue]; return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]; } else if ([colorComponents count] == 4) { CGFloat r = [[colorComponents objectAtIndex:0] floatValue]; CGFloat g = [[colorComponents objectAtIndex:1] floatValue]; CGFloat b = [[colorComponents objectAtIndex:2] floatValue]; CGFloat a = [[colorComponents objectAtIndex:3] floatValue]; return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]; } return [UIColor clearColor]; } @end
{ "content_hash": "e36c9d124965a089ccf7705196fa9410", "timestamp": "", "source": "github", "line_count": 147, "max_line_length": 160, "avg_line_length": 34.435374149659864, "alnum_prop": 0.6011457921770051, "repo_name": "DimaAvvakumov/DMCategories", "id": "c63df2012687296601dade397f82d3a821897951", "size": "5265", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "categories/simpleGetters/NSDictionary+SimpleGetters.m", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "44269" }, { "name": "Ruby", "bytes": "599" } ], "symlink_target": "" }
/* * YtemChangedListener.java * -- documented * * Interface that tells other classes that they should contain an ytemChanged method */ package oj.processor.events; public interface YtemChangedListenerOJ { public void ytemChanged(YtemChangedEventOJ evt); }
{ "content_hash": "4e65ae599158f85ced45dc5ff2953db2", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 84, "avg_line_length": 19.533333333333335, "alnum_prop": 0.6996587030716723, "repo_name": "steliann/objectj", "id": "24a9f1e10ca98b4a77006be4310d8accb57f0b56", "size": "293", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/oj/processor/events/YtemChangedListenerOJ.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2099" }, { "name": "Java", "bytes": "5585426" } ], "symlink_target": "" }
/** * New node file */ var fs = require('fs'); function readData(filename, contentType, response) { console.log('providing ' + filename); fs.exists(filename, function(exists) { if (exists) { fs.readFile(filename, function(error, data) { if (!error) { response.writeHead(200, contentType); response.end(data); } else { response.writeHead(500); response.end('Internal Server Error'); } }); } else { response.writeHead(404); response.end('Image not found'); } }); } exports.provideData = function(filename, contentType, response) { readData(filename,contentType, response); }; exports.provideList = function(filename, contentType, response) { readData(filename,contentType, response); }; exports.queryData = function(filename, headers, query, response) { var print = 0; fs.exists(filename, function(exists) { if (exists) { fs.readFile(filename, function(error, data) { if (!error) { var result = {}; var filteredData = []; var allData = JSON.parse(data); if (Array.isArray(allData.characters)) { allData.characters.forEach(function(character) { Object.keys(query).forEach(function(key) { if (character[key] === query[key]) { print = 1; }else if (character[key] !== query[key]){ print = 0; return false; } }); if(print === 1){ filteredData.push(character); } }); } if (filteredData.length > 0) { result[query.type] = filteredData; var imageUrl = 'images/' + query.type; headers["Image-Url"] = 'http://localhost:8221/?image='+query.type; } response.writeHead(200, headers); response.end(JSON.stringify(result)); } else { response.writeHead(500); response.end('Internal Server Error'); } }); } else { response.writeHead(404); response.end('Image not found'); } }); };
{ "content_hash": "95d1a653299d88231f467029f9fa5be3", "timestamp": "", "source": "github", "line_count": 90, "max_line_length": 73, "avg_line_length": 22.644444444444446, "alnum_prop": 0.5765456329735035, "repo_name": "thebravoman/software_engineering_2016", "id": "1bfbaf36dcee1658aa0cedd2cd3a34ac5b45a67f", "size": "2038", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "h16_nodejs_query_filtering/app_b_21/modules/data-provider.js", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "3852" }, { "name": "C++", "bytes": "2303" }, { "name": "CSS", "bytes": "72949" }, { "name": "CoffeeScript", "bytes": "20467" }, { "name": "HTML", "bytes": "464471" }, { "name": "JavaScript", "bytes": "1300267" }, { "name": "Python", "bytes": "25249" }, { "name": "Ruby", "bytes": "1747072" }, { "name": "Shell", "bytes": "3144" }, { "name": "TypeScript", "bytes": "30735" } ], "symlink_target": "" }
/** * php-asio/resolver.cpp * * @author CismonX<admin@cismon.net> */ #include "resolver.hpp" #include "future.hpp" namespace asio { template <typename Protocol> zval* resolver<Protocol>::handler(const boost::system::error_code& error, iterator iter, zval* callback, zval* argument) { iterator end; ZVAL_INIT(addr_list); ZVAL_NEW_ARR(&addr_list); zend_hash_init(Z_ARR(addr_list), 0, nullptr, ZVAL_PTR_DTOR, 0); ZVAL_INIT(addr_val); while (iter != end) { auto addr = (*iter++).endpoint().address().to_string(); ZVAL_STR(&addr_val, zend_string_init(addr.c_str(), addr.length(), 0)); zend_hash_next_index_insert(Z_ARR(addr_list), &addr_val); } PHP_ASIO_INVOKE_CALLBACK_START(4) ZVAL_ARR(&arguments[1], Z_ARR(addr_list)); PHP_ASIO_INVOKE_CALLBACK(); PHP_ASIO_INVOKE_CALLBACK_END(); CORO_RETURN(ZVAL_ARR, Z_ARR(addr_list)); } template <typename Protocol> P3_METHOD(resolver<Protocol>, resolve) { zend_string* host; zend_string* service = nullptr; zval* callback = nullptr; zval* argument = nullptr; ZEND_PARSE_PARAMETERS_START(1, 4) Z_PARAM_STR(host) Z_PARAM_OPTIONAL Z_PARAM_STR(service) Z_PARAM_ZVAL(callback) Z_PARAM_ZVAL(argument) ZEND_PARSE_PARAMETERS_END(); PHP_ASIO_FUTURE_INIT(); future->template on_resolve<iterator>(boost::bind( &resolver::handler, this, _1, _2, cb, args)); resolver_.async_resolve({ ZSTR_VAL(host), service ? ZSTR_VAL(service) : "" }, STRAND_RESOLVE(ASYNC_HANDLER_DOUBLE_ARG(iterator))); FUTURE_RETURN(); } template <typename Protocol> P3_METHOD(resolver<Protocol>, cancel) { resolver_.cancel(); RETVAL_LONG(0); } template <typename Protocol> zend_class_entry* resolver<Protocol>::class_entry; template <typename Protocol> zend_object_handlers resolver<Protocol>::handlers; template class resolver<tcp>; template class resolver<udp>; }
{ "content_hash": "bdaa4e840ee7293365d6adf1ab752a42", "timestamp": "", "source": "github", "line_count": 70, "max_line_length": 85, "avg_line_length": 30.985714285714284, "alnum_prop": 0.5919778699861687, "repo_name": "CismonX/php-asio", "id": "e7ec6c7abb1ef9dd180a15a037bbafbb3bbb3312", "size": "2169", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/resolver.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "107488" }, { "name": "M4", "bytes": "1325" }, { "name": "PHP", "bytes": "39315" } ], "symlink_target": "" }
/ } /* UIKit*/ //////////////////////////////////////////////////////////////////////////////////// // ObjectiveC Interop //////////////////////////////////////////////////////////////////////////////////// UIKIT_XAML_EXPORT IInspectable* XamlCreateTextBox() { return InspectableFromObject(ref new UIKit::Xaml::TextBox()).Detach(); } // clang-format on
{ "content_hash": "fc72e066135d21fa274913048985803f", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 84, "avg_line_length": 32.63636363636363, "alnum_prop": 0.3732590529247911, "repo_name": "vkvenkat/WinObjC", "id": "bd2117cafe6b702f9fb13f224e9ea641e8b92161", "size": "1632", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "Frameworks/UIKit.Xaml/TextBox.xaml.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "13134" }, { "name": "Batchfile", "bytes": "190" }, { "name": "C", "bytes": "6499424" }, { "name": "C#", "bytes": "150028" }, { "name": "C++", "bytes": "3717938" }, { "name": "Lex", "bytes": "4667" }, { "name": "M", "bytes": "77709" }, { "name": "Makefile", "bytes": "5350" }, { "name": "Objective-C", "bytes": "9936369" }, { "name": "Objective-C++", "bytes": "10603765" }, { "name": "PowerShell", "bytes": "15799" }, { "name": "Python", "bytes": "7658" }, { "name": "Yacc", "bytes": "9740" } ], "symlink_target": "" }
/** * */ package hydrograph.engine.core.component.entity.elements; import java.io.Serializable; /** * The Class MapField. * * @author Bitwise * */ public class MapField implements Serializable{ private String sourceName; private String targetName; private String inSocketId; /** * @param sourceName * @param name * @param inSocketId */ public MapField(String sourceName, String name, String inSocketId) { this.sourceName = sourceName; this.targetName = name; this.inSocketId = inSocketId; } public String getSourceName() { return sourceName; } public String getName() { return targetName; } public String getInSocketId() { return inSocketId; } @Override public String toString() { return "In socket id: " + inSocketId + " | source name: " + sourceName + " | target name: " + targetName; } }
{ "content_hash": "13c0842d8d7849bc9dea31d6267cbf5c", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 72, "avg_line_length": 17, "alnum_prop": 0.6882352941176471, "repo_name": "capitalone/Hydrograph", "id": "d3c045d3442254f63ce1de655b0ea73a4e986850", "size": "1618", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "hydrograph.engine/hydrograph.engine.core/src/main/java/hydrograph/engine/core/component/entity/elements/MapField.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "9581" }, { "name": "CSS", "bytes": "162185" }, { "name": "HTML", "bytes": "1036397" }, { "name": "Java", "bytes": "10606203" }, { "name": "Scala", "bytes": "1464765" }, { "name": "Shell", "bytes": "12318" } ], "symlink_target": "" }
package cn.rkang.wxgate.util; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import javax.validation.ConstraintViolation; import javax.validation.Validator; import javax.validation.groups.Default; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.zkoss.bind.Property; import org.zkoss.bind.ValidationContext; import org.zkoss.bind.validator.AbstractValidator; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.util.Clients; import org.zkoss.zul.impl.XulElement; /** * 通用Validator校验器 * @param <T> */ public class BaseMvvmValidator<T> extends AbstractValidator { private static Logger logger = Logger.getLogger(BaseMvvmValidator.class); private T formBean; private javax.validation.Validator validator; /** * @param formBean 用来bind并validate的对象 * @param validator JSR303 Validator */ public BaseMvvmValidator(T formBean, Validator validator) { super(); this.formBean = formBean; this.validator = validator; } // TODO 属性为null时忽略 @SuppressWarnings({ "rawtypes", "unchecked" }) @Override public void validate(ValidationContext ctx) { for (Entry<String, Property[]> entry : ctx.getProperties().entrySet()) { Object value = entry.getValue()[0].getValue(); Map bindPropertyPair = new HashMap(); bindPropertyPair.put(entry.getKey(), value); try { BeanUtils.populate(formBean, bindPropertyPair); } catch (IllegalAccessException e) { logger.error(e.getMessage(), e); continue; } catch (InvocationTargetException e) { logger.error(e.getMessage(), e); continue; } catch (Exception e) { logger.error(e.getMessage(), e); continue; } } Set<ConstraintViolation<T>> errors = validator.validate(formBean, Default.class); for (ConstraintViolation<T> error : errors) { String targetProperty = (String) error.getConstraintDescriptor().getAttributes().get("targetProperty"); String path = targetProperty == null ? error.getPropertyPath().toString() : targetProperty; logger.warn(path + "|" + error.getMessage()); super.addInvalidMessage(ctx, path, error.getMessage()); } // 当页面组件校验出错,滚动页面使其出现在用户可见范围,并获得焦点, // 因errors集合里面存放的并不是按照页面顺序,当多个字段同时不符合校验条件时,随机抽取获取焦点展现 // 获取焦点的控件的页面id必须与页面vmsgs的key一致,否则无法获取焦点 if (errors != null && errors.size() > 0) { ConstraintViolation<T> con = errors.iterator().next(); String target = (String) con.getConstraintDescriptor().getAttributes().get("targetProperty"); String compId = target == null ? con.getPropertyPath().toString() : target; Component comp = ctx.getBindContext().getComponent(); Clients.scrollIntoView(comp);// 随机的一个错误控件 if (StringUtils.isNotBlank(compId)) { XulElement xulElement = (XulElement) comp.query("#" + compId); if (xulElement != null) { xulElement.setFocus(true); } } } } public void resetFormBean(T formBean) { this.formBean = formBean; } }
{ "content_hash": "6df3a6f38877069b26663ce392162d75", "timestamp": "", "source": "github", "line_count": 94, "max_line_length": 106, "avg_line_length": 32.319148936170215, "alnum_prop": 0.7300855826201448, "repo_name": "liyingquan/work", "id": "e32a1ef6a6665214d8d7e28ed55984a915ad6aab", "size": "3296", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "WcGate/src/cn/rkang/wxgate/util/BaseMvvmValidator.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "518382" }, { "name": "HTML", "bytes": "9920" }, { "name": "Java", "bytes": "172494" }, { "name": "JavaScript", "bytes": "3407622" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "6751ab5fe3540d247ceccffe333304ef", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "3e4dbd0999ab5b11204d543b5cd6becaff7f829a", "size": "177", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Ericales/Epacridaceae/Styphelia/Styphelia opponens/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package antw.common.model; public class Counter { private int _counter = 0; public int increment() { return ++_counter; } public int getCounter() { return _counter; } }
{ "content_hash": "b947707371001f370ec41e3279404e89", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 29, "avg_line_length": 14, "alnum_prop": 0.5761904761904761, "repo_name": "mbauhardt/antw", "id": "4de86e955fe0b3243f79942fee68207b14e986cc", "size": "210", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modules/common/src/main/java/antw/common/model/Counter.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "9539" }, { "name": "Java", "bytes": "72386" }, { "name": "Shell", "bytes": "5928" } ], "symlink_target": "" }
module Examples class ObjectDefinitions include JSON::SchemaBuilder def example object do definitions positiveInt: positive_int entity :one, ref: '#/definitions/positiveInt' end end def positive_int integer do minimum 0 exclusive_minimum true end end end end
{ "content_hash": "3a4c3abd070e1100f6909a1d1e6b175b", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 53, "avg_line_length": 17.94736842105263, "alnum_prop": 0.6275659824046921, "repo_name": "parrish/json-schema_builder", "id": "03bbdfea1dcfd56848c617215fa3529d270ef5d0", "size": "341", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/support/examples/object_definitions.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "69218" } ], "symlink_target": "" }
/** * @fileoverview Utility functions for the toolbox and flyout. */ 'use strict'; /** * Utility functions for the toolbox and flyout. * @namespace Blockly.utils.toolbox */ goog.module('Blockly.utils.toolbox'); const Xml = goog.require('Blockly.Xml'); const userAgent = goog.require('Blockly.utils.userAgent'); /* eslint-disable-next-line no-unused-vars */ const {ConnectionState} = goog.requireType('Blockly.serialization.blocks'); /* eslint-disable-next-line no-unused-vars */ const {ToolboxCategory} = goog.requireType('Blockly.ToolboxCategory'); /* eslint-disable-next-line no-unused-vars */ const {ToolboxSeparator} = goog.requireType('Blockly.ToolboxSeparator'); /** * The information needed to create a block in the toolbox. * Note that disabled has a different type for backwards compatibility. * @typedef {{ * kind:string, * blockxml:(string|!Node|undefined), * type:(string|undefined), * gap:(string|number|undefined), * disabled: (string|boolean|undefined), * enabled: (boolean|undefined), * id: (string|undefined), * x: (number|undefined), * y: (number|undefined), * collapsed: (boolean|undefined), * inline: (boolean|undefined), * data: (string|undefined), * extra-state: (*|undefined), * icons: (!Object<string, *>|undefined), * fields: (!Object<string, *>|undefined), * inputs: (!Object<string, !ConnectionState>|undefined), * next: (!ConnectionState|undefined) * }} * @alias Blockly.utils.toolbox.BlockInfo */ let BlockInfo; exports.BlockInfo = BlockInfo; /** * The information needed to create a separator in the toolbox. * @typedef {{ * kind:string, * id:(string|undefined), * gap:(number|undefined), * cssconfig:(!ToolboxSeparator.CssConfig|undefined) * }} * @alias Blockly.utils.toolbox.SeparatorInfo */ let SeparatorInfo; exports.SeparatorInfo = SeparatorInfo; /** * The information needed to create a button in the toolbox. * @typedef {{ * kind:string, * text:string, * callbackkey:string * }} * @alias Blockly.utils.toolbox.ButtonInfo */ let ButtonInfo; exports.ButtonInfo = ButtonInfo; /** * The information needed to create a label in the toolbox. * @typedef {{ * kind:string, * text:string, * id:(string|undefined) * }} * @alias Blockly.utils.toolbox.LabelInfo */ let LabelInfo; exports.LabelInfo = LabelInfo; /** * The information needed to create either a button or a label in the flyout. * @typedef {ButtonInfo| * LabelInfo} * @alias Blockly.utils.toolbox.ButtonOrLabelInfo */ let ButtonOrLabelInfo; exports.ButtonOrLabelInfo = ButtonOrLabelInfo; /** * The information needed to create a category in the toolbox. * @typedef {{ * kind:string, * name:string, * contents:!Array<!ToolboxItemInfo>, * id:(string|undefined), * categorystyle:(string|undefined), * colour:(string|undefined), * cssconfig:(!ToolboxCategory.CssConfig|undefined), * hidden:(string|undefined) * }} * @alias Blockly.utils.toolbox.StaticCategoryInfo */ let StaticCategoryInfo; exports.StaticCategoryInfo = StaticCategoryInfo; /** * The information needed to create a custom category. * @typedef {{ * kind:string, * custom:string, * id:(string|undefined), * categorystyle:(string|undefined), * colour:(string|undefined), * cssconfig:(!ToolboxCategory.CssConfig|undefined), * hidden:(string|undefined) * }} * @alias Blockly.utils.toolbox.DynamicCategoryInfo */ let DynamicCategoryInfo; exports.DynamicCategoryInfo = DynamicCategoryInfo; /** * The information needed to create either a dynamic or static category. * @typedef {StaticCategoryInfo| * DynamicCategoryInfo} * @alias Blockly.utils.toolbox.CategoryInfo */ let CategoryInfo; exports.CategoryInfo = CategoryInfo; /** * Any information that can be used to create an item in the toolbox. * @typedef {FlyoutItemInfo| * StaticCategoryInfo} * @alias Blockly.utils.toolbox.ToolboxItemInfo */ let ToolboxItemInfo; exports.ToolboxItemInfo = ToolboxItemInfo; /** * All the different types that can be displayed in a flyout. * @typedef {BlockInfo| * SeparatorInfo| * ButtonInfo| * LabelInfo| * DynamicCategoryInfo} * @alias Blockly.utils.toolbox.FlyoutItemInfo */ let FlyoutItemInfo; exports.FlyoutItemInfo = FlyoutItemInfo; /** * The JSON definition of a toolbox. * @typedef {{ * kind:(string|undefined), * contents:!Array<!ToolboxItemInfo> * }} * @alias Blockly.utils.toolbox.ToolboxInfo */ let ToolboxInfo; exports.ToolboxInfo = ToolboxInfo; /** * An array holding flyout items. * @typedef { * Array<!FlyoutItemInfo> * } * @alias Blockly.utils.toolbox.FlyoutItemInfoArray */ let FlyoutItemInfoArray; exports.FlyoutItemInfoArray = FlyoutItemInfoArray; /** * All of the different types that can create a toolbox. * @typedef {Node| * ToolboxInfo| * string} * @alias Blockly.utils.toolbox.ToolboxDefinition */ let ToolboxDefinition; exports.ToolboxDefinition = ToolboxDefinition; /** * All of the different types that can be used to show items in a flyout. * @typedef {FlyoutItemInfoArray| * NodeList| * ToolboxInfo| * Array<!Node>} * @alias Blockly.utils.toolbox.FlyoutDefinition */ let FlyoutDefinition; exports.FlyoutDefinition = FlyoutDefinition; /** * The name used to identify a toolbox that has category like items. * This only needs to be used if a toolbox wants to be treated like a category * toolbox but does not actually contain any toolbox items with the kind * 'category'. * @const {string} */ const CATEGORY_TOOLBOX_KIND = 'categoryToolbox'; /** * The name used to identify a toolbox that has no categories and is displayed * as a simple flyout displaying blocks, buttons, or labels. * @const {string} */ const FLYOUT_TOOLBOX_KIND = 'flyoutToolbox'; /** * Position of the toolbox and/or flyout relative to the workspace. * @enum {number} * @alias Blockly.utils.toolbox.Position */ const Position = { TOP: 0, BOTTOM: 1, LEFT: 2, RIGHT: 3, }; exports.Position = Position; /** * Converts the toolbox definition into toolbox JSON. * @param {?ToolboxDefinition} toolboxDef The definition * of the toolbox in one of its many forms. * @return {?ToolboxInfo} Object holding information * for creating a toolbox. * @alias Blockly.utils.toolbox.convertToolboxDefToJson * @package */ const convertToolboxDefToJson = function(toolboxDef) { if (!toolboxDef) { return null; } if (toolboxDef instanceof Element || typeof toolboxDef === 'string') { toolboxDef = parseToolboxTree(toolboxDef); toolboxDef = convertToToolboxJson(toolboxDef); } const toolboxJson = /** @type {ToolboxInfo} */ (toolboxDef); validateToolbox(toolboxJson); return toolboxJson; }; exports.convertToolboxDefToJson = convertToolboxDefToJson; /** * Validates the toolbox JSON fields have been set correctly. * @param {!ToolboxInfo} toolboxJson Object holding * information for creating a toolbox. * @throws {Error} if the toolbox is not the correct format. */ const validateToolbox = function(toolboxJson) { const toolboxKind = toolboxJson['kind']; const toolboxContents = toolboxJson['contents']; if (toolboxKind) { if (toolboxKind !== FLYOUT_TOOLBOX_KIND && toolboxKind !== CATEGORY_TOOLBOX_KIND) { throw Error( 'Invalid toolbox kind ' + toolboxKind + '.' + ' Please supply either ' + FLYOUT_TOOLBOX_KIND + ' or ' + CATEGORY_TOOLBOX_KIND); } } if (!toolboxContents) { throw Error('Toolbox must have a contents attribute.'); } }; /** * Converts the flyout definition into a list of flyout items. * @param {?FlyoutDefinition} flyoutDef The definition of * the flyout in one of its many forms. * @return {!FlyoutItemInfoArray} A list of flyout items. * @alias Blockly.utils.toolbox.convertFlyoutDefToJsonArray * @package */ const convertFlyoutDefToJsonArray = function(flyoutDef) { if (!flyoutDef) { return []; } if (flyoutDef['contents']) { return flyoutDef['contents']; } // If it is already in the correct format return the flyoutDef. if (Array.isArray(flyoutDef) && flyoutDef.length > 0 && !flyoutDef[0].nodeType) { return flyoutDef; } return xmlToJsonArray(/** @type {!Array<Node>|!NodeList} */ (flyoutDef)); }; exports.convertFlyoutDefToJsonArray = convertFlyoutDefToJsonArray; /** * Whether or not the toolbox definition has categories. * @param {?ToolboxInfo} toolboxJson Object holding * information for creating a toolbox. * @return {boolean} True if the toolbox has categories. * @alias Blockly.utils.toolbox.hasCategories * @package */ const hasCategories = function(toolboxJson) { if (!toolboxJson) { return false; } const toolboxKind = toolboxJson['kind']; if (toolboxKind) { return toolboxKind === CATEGORY_TOOLBOX_KIND; } const categories = toolboxJson['contents'].filter(function(item) { return item['kind'].toUpperCase() === 'CATEGORY'; }); return !!categories.length; }; exports.hasCategories = hasCategories; /** * Whether or not the category is collapsible. * @param {!CategoryInfo} categoryInfo Object holing * information for creating a category. * @return {boolean} True if the category has subcategories. * @alias Blockly.utils.toolbox.isCategoryCollapsible * @package */ const isCategoryCollapsible = function(categoryInfo) { if (!categoryInfo || !categoryInfo['contents']) { return false; } const categories = categoryInfo['contents'].filter(function(item) { return item['kind'].toUpperCase() === 'CATEGORY'; }); return !!categories.length; }; exports.isCategoryCollapsible = isCategoryCollapsible; /** * Parses the provided toolbox definition into a consistent format. * @param {Node} toolboxDef The definition of the toolbox in one of its many * forms. * @return {!ToolboxInfo} Object holding information * for creating a toolbox. */ const convertToToolboxJson = function(toolboxDef) { const contents = xmlToJsonArray( /** @type {!Node|!Array<Node>} */ (toolboxDef)); const toolboxJson = {'contents': contents}; if (toolboxDef instanceof Node) { addAttributes(toolboxDef, toolboxJson); } return toolboxJson; }; /** * Converts the xml for a toolbox to JSON. * @param {!Node|!Array<Node>|!NodeList} toolboxDef The * definition of the toolbox in one of its many forms. * @return {!FlyoutItemInfoArray| * !Array<ToolboxItemInfo>} A list of objects in * the toolbox. */ const xmlToJsonArray = function(toolboxDef) { const arr = []; // If it is a node it will have children. let childNodes = toolboxDef.childNodes; if (!childNodes) { // Otherwise the toolboxDef is an array or collection. childNodes = toolboxDef; } for (let i = 0, child; (child = childNodes[i]); i++) { if (!child.tagName) { continue; } const obj = {}; const tagName = child.tagName.toUpperCase(); obj['kind'] = tagName; // Store the XML for a block. if (tagName === 'BLOCK') { obj['blockxml'] = child; } else if (child.childNodes && child.childNodes.length > 0) { // Get the contents of a category obj['contents'] = xmlToJsonArray(child); } // Add XML attributes to object addAttributes(child, obj); arr.push(obj); } return arr; }; /** * Adds the attributes on the node to the given object. * @param {!Node} node The node to copy the attributes from. * @param {!Object} obj The object to copy the attributes to. */ const addAttributes = function(node, obj) { for (let j = 0; j < node.attributes.length; j++) { const attr = node.attributes[j]; if (attr.nodeName.indexOf('css-') > -1) { obj['cssconfig'] = obj['cssconfig'] || {}; obj['cssconfig'][attr.nodeName.replace('css-', '')] = attr.value; } else { obj[attr.nodeName] = attr.value; } } }; /** * Parse the provided toolbox tree into a consistent DOM format. * @param {?Node|?string} toolboxDef DOM tree of blocks, or text representation * of same. * @return {?Node} DOM tree of blocks, or null. * @alias Blockly.utils.toolbox.parseToolboxTree */ const parseToolboxTree = function(toolboxDef) { if (toolboxDef) { if (typeof toolboxDef !== 'string') { if (userAgent.IE && toolboxDef.outerHTML) { // In this case the tree will not have been properly built by the // browser. The HTML will be contained in the element, but it will // not have the proper DOM structure since the browser doesn't support // XSLTProcessor (XML -> HTML). toolboxDef = toolboxDef.outerHTML; } else if (!(toolboxDef instanceof Element)) { toolboxDef = null; } } if (typeof toolboxDef === 'string') { toolboxDef = Xml.textToDom(toolboxDef); if (toolboxDef.nodeName.toLowerCase() !== 'xml') { throw TypeError('Toolbox should be an <xml> document.'); } } } else { toolboxDef = null; } return toolboxDef; }; exports.parseToolboxTree = parseToolboxTree;
{ "content_hash": "46bea3f0d79de1c3e4a549e37f90d116", "timestamp": "", "source": "github", "line_count": 455, "max_line_length": 79, "avg_line_length": 29.923076923076923, "alnum_prop": 0.6611090708777084, "repo_name": "mark-friedman/blockly", "id": "0324c0b29342358a49782f026b5142548327d8c1", "size": "13702", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "core/utils/toolbox.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dart", "bytes": "66645" }, { "name": "HTML", "bytes": "113120" }, { "name": "JavaScript", "bytes": "8498724" }, { "name": "Lua", "bytes": "62450" }, { "name": "PHP", "bytes": "84831" }, { "name": "Python", "bytes": "120198" }, { "name": "Shell", "bytes": "25331" } ], "symlink_target": "" }
/********************************************************/ /* */ /* Copley Motion Libraries */ /* */ /* Copyright (c) 2002 Copley Controls Corp. */ /* http://www.copleycontrols.com */ /* */ /********************************************************/ /** \file This header file defines a generic Copley node type. This is the base class of all CANopen devices produced by Copley Controls Corp. */ #ifndef _DEF_INC_COPLEY #define _DEF_INC_COPLEY #include "CML_Settings.h" #include "CML_Firmware.h" #include "CML_Node.h" CML_NAMESPACE_START() /** This class represents errors that can be returned by the CopleyNode class. There is one static member for each defined error. */ class CopleyNodeError: public NodeError { public: /// Too much data passed for a serial port command static const CopleyNodeError SerialMsgLen; /// The device return a serial port error code static const CopleyNodeError SerialError; protected: /// Standard protected constructor CopleyNodeError( uint16 id, const char *desc ): NodeError( id, desc ){} }; /***************************************************************************/ /** Copley CANopen Node class. Objects of this class represent Copley products attached to the CANopen bus. */ /***************************************************************************/ class CopleyNode: public Node { /// Private copy constructor (not supported) CopleyNode( const CopleyNode& ); /// Private assignment operator (not supported) CopleyNode& operator=( const CopleyNode& ); uint8 lastSerialError; public: CopleyNode(){ SetRefName( "CopleyNode" ); } CopleyNode( CanOpen &co, int16 nodeID ): Node(co,nodeID){ SetRefName( "CopleyNode" ); } virtual ~CopleyNode(){}; const Error *FirmwareUpdate( Firmware &fw ); const Error *SerialCmd( uint8 opcode, uint8 &ct, uint8 max=0, uint16 *data=0 ); uint8 GetLastSerialError( void ){ return lastSerialError; } }; CML_NAMESPACE_END() #endif
{ "content_hash": "1cb63ef53d5f0aa6445a81113792d29b", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 90, "avg_line_length": 31.041095890410958, "alnum_prop": 0.5335392762577229, "repo_name": "DJGCrusader/ParallelScissorManipulator", "id": "2347bffabca7a42798255abb70a6c922724f3afd", "size": "2266", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/CML/inc/CML_Copley.h", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "612173" }, { "name": "C", "bytes": "1251199" }, { "name": "C++", "bytes": "1607326" }, { "name": "CSS", "bytes": "45888" }, { "name": "HTML", "bytes": "9674592" }, { "name": "JavaScript", "bytes": "410017" }, { "name": "Makefile", "bytes": "54096" }, { "name": "Perl", "bytes": "2517" }, { "name": "Python", "bytes": "10947" }, { "name": "Shell", "bytes": "40834" }, { "name": "VimL", "bytes": "204" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="ApiGen 2.8.0" /> <title>Class Sensio\Bundle\FrameworkExtraBundle\Tests\Templating\Fixture\FooBundle\Controller\FooController | seip</title> <script type="text/javascript" src="resources/combined.js?784181472"></script> <script type="text/javascript" src="elementlist.js?3927760630"></script> <link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" /> </head> <body> <div id="left"> <div id="menu"> <a href="index.html" title="Overview"><span>Overview</span></a> <div id="groups"> <h3>Namespaces</h3> <ul> <li><a href="namespace-Acme.html">Acme<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.html">DemoBundle<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Command.html">Command</a> </li> <li><a href="namespace-Acme.DemoBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Acme.DemoBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Acme.DemoBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Acme.DemoBundle.Form.html">Form</a> </li> <li><a href="namespace-Acme.DemoBundle.Proxy.html">Proxy<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.html">__CG__<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.html">Symfony<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.html">Component<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Acl.html">Acl<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Acl.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Acl.Tests.Domain.html">Domain</a> </li> </ul></li></ul></li> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Core.html">Core<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Core.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Core.Tests.Util.html">Util</a> </li> </ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Acme.DemoBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Tests.Controller.html">Controller</a> </li> </ul></li> <li><a href="namespace-Acme.DemoBundle.Twig.html">Twig<span></span></a> <ul> <li><a href="namespace-Acme.DemoBundle.Twig.Extension.html">Extension</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Alpha.html">Alpha</a> </li> <li><a href="namespace-Apc.html">Apc<span></span></a> <ul> <li><a href="namespace-Apc.NamespaceCollision.html">NamespaceCollision<span></span></a> <ul> <li><a href="namespace-Apc.NamespaceCollision.A.html">A<span></span></a> <ul> <li><a href="namespace-Apc.NamespaceCollision.A.B.html">B</a> </li> </ul></li></ul></li> <li><a href="namespace-Apc.Namespaced.html">Namespaced</a> </li> </ul></li> <li><a href="namespace-Assetic.html">Assetic<span></span></a> <ul> <li><a href="namespace-Assetic.Asset.html">Asset<span></span></a> <ul> <li><a href="namespace-Assetic.Asset.Iterator.html">Iterator</a> </li> </ul></li> <li><a href="namespace-Assetic.Cache.html">Cache</a> </li> <li><a href="namespace-Assetic.Exception.html">Exception</a> </li> <li><a href="namespace-Assetic.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Assetic.Extension.Twig.html">Twig</a> </li> </ul></li> <li><a href="namespace-Assetic.Factory.html">Factory<span></span></a> <ul> <li><a href="namespace-Assetic.Factory.Loader.html">Loader</a> </li> <li><a href="namespace-Assetic.Factory.Resource.html">Resource</a> </li> <li><a href="namespace-Assetic.Factory.Worker.html">Worker</a> </li> </ul></li> <li><a href="namespace-Assetic.Filter.html">Filter<span></span></a> <ul> <li><a href="namespace-Assetic.Filter.GoogleClosure.html">GoogleClosure</a> </li> <li><a href="namespace-Assetic.Filter.Sass.html">Sass</a> </li> <li><a href="namespace-Assetic.Filter.Yui.html">Yui</a> </li> </ul></li> <li><a href="namespace-Assetic.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Bazinga.html">Bazinga<span></span></a> <ul> <li><a href="namespace-Bazinga.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.html">JsTranslationBundle<span></span></a> <ul> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Command.html">Command</a> </li> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Dumper.html">Dumper</a> </li> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Finder.html">Finder</a> </li> <li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Tests.html">Tests</a> </li> </ul></li></ul></li> <li><a href="namespace-Bazinga.JsTranslationBundle.html">JsTranslationBundle<span></span></a> <ul> <li><a href="namespace-Bazinga.JsTranslationBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Bazinga.JsTranslationBundle.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Bazinga.JsTranslationBundle.Tests.Finder.html">Finder</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Beta.html">Beta</a> </li> <li><a href="namespace-Blameable.html">Blameable<span></span></a> <ul> <li><a href="namespace-Blameable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Blameable.Fixture.Document.html">Document</a> </li> <li><a href="namespace-Blameable.Fixture.Entity.html">Entity</a> </li> </ul></li></ul></li> <li><a href="namespace-ClassesWithParents.html">ClassesWithParents</a> </li> <li><a href="namespace-ClassLoaderTest.html">ClassLoaderTest</a> </li> <li><a href="namespace-ClassMap.html">ClassMap</a> </li> <li><a href="namespace-Composer.html">Composer<span></span></a> <ul> <li><a href="namespace-Composer.Autoload.html">Autoload</a> </li> </ul></li> <li><a href="namespace-Container14.html">Container14</a> </li> <li><a href="namespace-Doctrine.html">Doctrine<span></span></a> <ul> <li><a href="namespace-Doctrine.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.html">DoctrineBundle<span></span></a> <ul> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Command.html">Command<span></span></a> <ul> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Command.Proxy.html">Proxy</a> </li> </ul></li> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Mapping.html">Mapping</a> </li> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Tests.DependencyInjection.html">DependencyInjection</a> </li> </ul></li> <li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Twig.html">Twig</a> </li> </ul></li> <li><a href="namespace-Doctrine.Bundle.FixturesBundle.html">FixturesBundle<span></span></a> <ul> <li><a href="namespace-Doctrine.Bundle.FixturesBundle.Command.html">Command</a> </li> </ul></li></ul></li> <li><a href="namespace-Doctrine.Common.html">Common<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.Annotations.html">Annotations<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.Annotations.Annotation.html">Annotation</a> </li> </ul></li> <li><a href="namespace-Doctrine.Common.Cache.html">Cache</a> </li> <li><a href="namespace-Doctrine.Common.Collections.html">Collections<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.Collections.Expr.html">Expr</a> </li> </ul></li> <li><a href="namespace-Doctrine.Common.DataFixtures.html">DataFixtures<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.DataFixtures.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.DataFixtures.Event.Listener.html">Listener</a> </li> </ul></li> <li><a href="namespace-Doctrine.Common.DataFixtures.Exception.html">Exception</a> </li> <li><a href="namespace-Doctrine.Common.DataFixtures.Executor.html">Executor</a> </li> <li><a href="namespace-Doctrine.Common.DataFixtures.Purger.html">Purger</a> </li> </ul></li> <li><a href="namespace-Doctrine.Common.Inflector.html">Inflector</a> </li> <li><a href="namespace-Doctrine.Common.Lexer.html">Lexer</a> </li> <li><a href="namespace-Doctrine.Common.Persistence.html">Persistence<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.Persistence.Event.html">Event</a> </li> <li><a href="namespace-Doctrine.Common.Persistence.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.Persistence.Mapping.Driver.html">Driver</a> </li> </ul></li></ul></li> <li><a href="namespace-Doctrine.Common.Proxy.html">Proxy<span></span></a> <ul> <li><a href="namespace-Doctrine.Common.Proxy.Exception.html">Exception</a> </li> </ul></li> <li><a href="namespace-Doctrine.Common.Reflection.html">Reflection</a> </li> <li><a href="namespace-Doctrine.Common.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Doctrine.DBAL.html">DBAL<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Cache.html">Cache</a> </li> <li><a href="namespace-Doctrine.DBAL.Connections.html">Connections</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.html">Driver<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Driver.DrizzlePDOMySql.html">DrizzlePDOMySql</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.IBMDB2.html">IBMDB2</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.Mysqli.html">Mysqli</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.OCI8.html">OCI8</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.PDOIbm.html">PDOIbm</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.PDOMySql.html">PDOMySql</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.PDOOracle.html">PDOOracle</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.PDOPgSql.html">PDOPgSql</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.PDOSqlite.html">PDOSqlite</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.PDOSqlsrv.html">PDOSqlsrv</a> </li> <li><a href="namespace-Doctrine.DBAL.Driver.SQLSrv.html">SQLSrv</a> </li> </ul></li> <li><a href="namespace-Doctrine.DBAL.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Event.Listeners.html">Listeners</a> </li> </ul></li> <li><a href="namespace-Doctrine.DBAL.Id.html">Id</a> </li> <li><a href="namespace-Doctrine.DBAL.Logging.html">Logging</a> </li> <li><a href="namespace-Doctrine.DBAL.Platforms.html">Platforms<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Platforms.Keywords.html">Keywords</a> </li> </ul></li> <li><a href="namespace-Doctrine.DBAL.Portability.html">Portability</a> </li> <li><a href="namespace-Doctrine.DBAL.Query.html">Query<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Query.Expression.html">Expression</a> </li> </ul></li> <li><a href="namespace-Doctrine.DBAL.Schema.html">Schema<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Schema.Synchronizer.html">Synchronizer</a> </li> <li><a href="namespace-Doctrine.DBAL.Schema.Visitor.html">Visitor</a> </li> </ul></li> <li><a href="namespace-Doctrine.DBAL.Sharding.html">Sharding<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Sharding.ShardChoser.html">ShardChoser</a> </li> <li><a href="namespace-Doctrine.DBAL.Sharding.SQLAzure.html">SQLAzure<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Sharding.SQLAzure.Schema.html">Schema</a> </li> </ul></li></ul></li> <li><a href="namespace-Doctrine.DBAL.Tools.html">Tools<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Tools.Console.html">Console<span></span></a> <ul> <li><a href="namespace-Doctrine.DBAL.Tools.Console.Command.html">Command</a> </li> <li><a href="namespace-Doctrine.DBAL.Tools.Console.Helper.html">Helper</a> </li> </ul></li></ul></li> <li><a href="namespace-Doctrine.DBAL.Types.html">Types</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.html">ORM<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Decorator.html">Decorator</a> </li> <li><a href="namespace-Doctrine.ORM.Event.html">Event</a> </li> <li><a href="namespace-Doctrine.ORM.Id.html">Id</a> </li> <li><a href="namespace-Doctrine.ORM.Internal.html">Internal<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Internal.Hydration.html">Hydration</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Mapping.Builder.html">Builder</a> </li> <li><a href="namespace-Doctrine.ORM.Mapping.Driver.html">Driver</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Persisters.html">Persisters</a> </li> <li><a href="namespace-Doctrine.ORM.Proxy.html">Proxy</a> </li> <li><a href="namespace-Doctrine.ORM.Query.html">Query<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Query.AST.html">AST<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Query.AST.Functions.html">Functions</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Query.Exec.html">Exec</a> </li> <li><a href="namespace-Doctrine.ORM.Query.Expr.html">Expr</a> </li> <li><a href="namespace-Doctrine.ORM.Query.Filter.html">Filter</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Repository.html">Repository</a> </li> <li><a href="namespace-Doctrine.ORM.Tools.html">Tools<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Tools.Console.html">Console<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Tools.Console.Command.html">Command<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Tools.Console.Command.ClearCache.html">ClearCache</a> </li> <li><a href="namespace-Doctrine.ORM.Tools.Console.Command.SchemaTool.html">SchemaTool</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Tools.Console.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Tools.Event.html">Event</a> </li> <li><a href="namespace-Doctrine.ORM.Tools.Export.html">Export<span></span></a> <ul> <li><a href="namespace-Doctrine.ORM.Tools.Export.Driver.html">Driver</a> </li> </ul></li> <li><a href="namespace-Doctrine.ORM.Tools.Pagination.html">Pagination</a> </li> </ul></li></ul></li> <li><a href="namespace-Doctrine.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.html">Common<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Annotations.html">Annotations<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Bar.html">Bar</a> </li> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Fixtures.Annotation.html">Annotation</a> </li> </ul></li> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Foo.html">Foo</a> </li> <li><a href="namespace-Doctrine.Tests.Common.Annotations.FooBar.html">FooBar</a> </li> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.html">Ticket<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.Doctrine.html">Doctrine<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.Doctrine.ORM.html">ORM<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.Doctrine.ORM.Mapping.html">Mapping</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Doctrine.Tests.Common.Cache.html">Cache</a> </li> <li><a href="namespace-Doctrine.Tests.Common.Collections.html">Collections</a> </li> <li><a href="namespace-Doctrine.Tests.Common.DataFixtures.html">DataFixtures<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.DataFixtures.Executor.html">Executor</a> </li> <li><a href="namespace-Doctrine.Tests.Common.DataFixtures.TestEntity.html">TestEntity</a> </li> <li><a href="namespace-Doctrine.Tests.Common.DataFixtures.TestFixtures.html">TestFixtures</a> </li> </ul></li> <li><a href="namespace-Doctrine.Tests.Common.Inflector.html">Inflector</a> </li> <li><a href="namespace-Doctrine.Tests.Common.Persistence.html">Persistence<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Persistence.Mapping.html">Mapping</a> </li> </ul></li> <li><a href="namespace-Doctrine.Tests.Common.Proxy.html">Proxy</a> </li> <li><a href="namespace-Doctrine.Tests.Common.Reflection.html">Reflection<span></span></a> <ul> <li><a href="namespace-Doctrine.Tests.Common.Reflection.Dummies.html">Dummies</a> </li> </ul></li> <li><a href="namespace-Doctrine.Tests.Common.Util.html">Util</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Entity.html">Entity<span></span></a> <ul> <li><a href="namespace-Entity.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.html">Bundles<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.AnnotationsBundle.html">AnnotationsBundle<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.AnnotationsBundle.Entity.html">Entity</a> </li> </ul></li> <li><a href="namespace-Fixtures.Bundles.Vendor.html">Vendor<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.Vendor.AnnotationsBundle.html">AnnotationsBundle<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.Vendor.AnnotationsBundle.Entity.html">Entity</a> </li> </ul></li></ul></li> <li><a href="namespace-Fixtures.Bundles.XmlBundle.html">XmlBundle<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.XmlBundle.Entity.html">Entity</a> </li> </ul></li> <li><a href="namespace-Fixtures.Bundles.YamlBundle.html">YamlBundle<span></span></a> <ul> <li><a href="namespace-Fixtures.Bundles.YamlBundle.Entity.html">Entity</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Foo.html">Foo<span></span></a> <ul> <li><a href="namespace-Foo.Bar.html">Bar</a> </li> </ul></li> <li><a href="namespace-FOS.html">FOS<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.html">RestBundle<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Controller.html">Controller<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Controller.Annotations.html">Annotations</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Decoder.html">Decoder</a> </li> <li><a href="namespace-FOS.RestBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-FOS.RestBundle.Examples.html">Examples</a> </li> <li><a href="namespace-FOS.RestBundle.Form.html">Form<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Form.Extension.html">Extension</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Normalizer.html">Normalizer<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Normalizer.Exception.html">Exception</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Request.html">Request</a> </li> <li><a href="namespace-FOS.RestBundle.Response.html">Response<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Response.AllowedMethodsLoader.html">AllowedMethodsLoader</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Routing.html">Routing<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Routing.Loader.html">Loader<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Routing.Loader.Reader.html">Reader</a> </li> </ul></li></ul></li> <li><a href="namespace-FOS.RestBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Tests.Controller.html">Controller<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Tests.Controller.Annotations.html">Annotations</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Tests.Decoder.html">Decoder</a> </li> <li><a href="namespace-FOS.RestBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Tests.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Tests.EventListener.html">EventListener</a> </li> <li><a href="namespace-FOS.RestBundle.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Tests.Fixtures.Controller.html">Controller</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Tests.Normalizer.html">Normalizer</a> </li> <li><a href="namespace-FOS.RestBundle.Tests.Request.html">Request</a> </li> <li><a href="namespace-FOS.RestBundle.Tests.Routing.html">Routing<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Tests.Routing.Loader.html">Loader</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Tests.Util.html">Util</a> </li> <li><a href="namespace-FOS.RestBundle.Tests.View.html">View</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.Util.html">Util<span></span></a> <ul> <li><a href="namespace-FOS.RestBundle.Util.Inflector.html">Inflector</a> </li> </ul></li> <li><a href="namespace-FOS.RestBundle.View.html">View</a> </li> </ul></li> <li><a href="namespace-FOS.UserBundle.html">UserBundle<span></span></a> <ul> <li><a href="namespace-FOS.UserBundle.Command.html">Command</a> </li> <li><a href="namespace-FOS.UserBundle.Controller.html">Controller</a> </li> <li><a href="namespace-FOS.UserBundle.CouchDocument.html">CouchDocument</a> </li> <li><a href="namespace-FOS.UserBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-FOS.UserBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-FOS.UserBundle.Doctrine.html">Doctrine</a> </li> <li><a href="namespace-FOS.UserBundle.Document.html">Document</a> </li> <li><a href="namespace-FOS.UserBundle.Entity.html">Entity</a> </li> <li><a href="namespace-FOS.UserBundle.Form.html">Form<span></span></a> <ul> <li><a href="namespace-FOS.UserBundle.Form.DataTransformer.html">DataTransformer</a> </li> <li><a href="namespace-FOS.UserBundle.Form.Handler.html">Handler</a> </li> <li><a href="namespace-FOS.UserBundle.Form.Model.html">Model</a> </li> <li><a href="namespace-FOS.UserBundle.Form.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-FOS.UserBundle.Mailer.html">Mailer</a> </li> <li><a href="namespace-FOS.UserBundle.Model.html">Model</a> </li> <li><a href="namespace-FOS.UserBundle.Propel.html">Propel</a> </li> <li><a href="namespace-FOS.UserBundle.Security.html">Security</a> </li> <li><a href="namespace-FOS.UserBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-FOS.UserBundle.Tests.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-FOS.UserBundle.Tests.Doctrine.html">Doctrine</a> </li> <li><a href="namespace-FOS.UserBundle.Tests.Model.html">Model</a> </li> <li><a href="namespace-FOS.UserBundle.Tests.Security.html">Security</a> </li> <li><a href="namespace-FOS.UserBundle.Tests.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-FOS.UserBundle.Util.html">Util</a> </li> <li><a href="namespace-FOS.UserBundle.Validator.html">Validator</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.html">Gedmo<span></span></a> <ul> <li><a href="namespace-Gedmo.Blameable.html">Blameable<span></span></a> <ul> <li><a href="namespace-Gedmo.Blameable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Blameable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Blameable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Blameable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Blameable.Traits.html">Traits</a> </li> </ul></li> <li><a href="namespace-Gedmo.Exception.html">Exception</a> </li> <li><a href="namespace-Gedmo.IpTraceable.html">IpTraceable<span></span></a> <ul> <li><a href="namespace-Gedmo.IpTraceable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.IpTraceable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.IpTraceable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.IpTraceable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.IpTraceable.Traits.html">Traits</a> </li> </ul></li> <li><a href="namespace-Gedmo.Loggable.html">Loggable<span></span></a> <ul> <li><a href="namespace-Gedmo.Loggable.Document.html">Document<span></span></a> <ul> <li><a href="namespace-Gedmo.Loggable.Document.MappedSuperclass.html">MappedSuperclass</a> </li> <li><a href="namespace-Gedmo.Loggable.Document.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Gedmo.Loggable.Entity.html">Entity<span></span></a> <ul> <li><a href="namespace-Gedmo.Loggable.Entity.MappedSuperclass.html">MappedSuperclass</a> </li> <li><a href="namespace-Gedmo.Loggable.Entity.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Gedmo.Loggable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Loggable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Loggable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Loggable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Gedmo.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Annotation.html">Annotation</a> </li> <li><a href="namespace-Gedmo.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li> <li><a href="namespace-Gedmo.Mapping.Mock.html">Mock<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.html">Encoder<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Gedmo.Mapping.Mock.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Mapping.Mock.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Gedmo.Mapping.Xml.html">Xml</a> </li> </ul></li> <li><a href="namespace-Gedmo.ReferenceIntegrity.html">ReferenceIntegrity<span></span></a> <ul> <li><a href="namespace-Gedmo.ReferenceIntegrity.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.ReferenceIntegrity.Mapping.Driver.html">Driver</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.References.html">References<span></span></a> <ul> <li><a href="namespace-Gedmo.References.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.References.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.References.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.References.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Gedmo.Sluggable.html">Sluggable<span></span></a> <ul> <li><a href="namespace-Gedmo.Sluggable.Handler.html">Handler</a> </li> <li><a href="namespace-Gedmo.Sluggable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Sluggable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Sluggable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Sluggable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Sluggable.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Gedmo.SoftDeleteable.html">SoftDeleteable<span></span></a> <ul> <li><a href="namespace-Gedmo.SoftDeleteable.Filter.html">Filter<span></span></a> <ul> <li><a href="namespace-Gedmo.SoftDeleteable.Filter.ODM.html">ODM</a> </li> </ul></li> <li><a href="namespace-Gedmo.SoftDeleteable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.SoftDeleteable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.SoftDeleteable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.SoftDeleteable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.SoftDeleteable.Query.html">Query<span></span></a> <ul> <li><a href="namespace-Gedmo.SoftDeleteable.Query.TreeWalker.html">TreeWalker<span></span></a> <ul> <li><a href="namespace-Gedmo.SoftDeleteable.Query.TreeWalker.Exec.html">Exec</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.SoftDeleteable.Traits.html">Traits</a> </li> </ul></li> <li><a href="namespace-Gedmo.Sortable.html">Sortable<span></span></a> <ul> <li><a href="namespace-Gedmo.Sortable.Entity.html">Entity<span></span></a> <ul> <li><a href="namespace-Gedmo.Sortable.Entity.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Gedmo.Sortable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Sortable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Sortable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Sortable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Gedmo.Timestampable.html">Timestampable<span></span></a> <ul> <li><a href="namespace-Gedmo.Timestampable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Timestampable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Timestampable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Timestampable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Timestampable.Traits.html">Traits</a> </li> </ul></li> <li><a href="namespace-Gedmo.Tool.html">Tool<span></span></a> <ul> <li><a href="namespace-Gedmo.Tool.Logging.html">Logging<span></span></a> <ul> <li><a href="namespace-Gedmo.Tool.Logging.DBAL.html">DBAL</a> </li> </ul></li> <li><a href="namespace-Gedmo.Tool.Wrapper.html">Wrapper</a> </li> </ul></li> <li><a href="namespace-Gedmo.Translatable.html">Translatable<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Document.html">Document<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Document.MappedSuperclass.html">MappedSuperclass</a> </li> <li><a href="namespace-Gedmo.Translatable.Document.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Gedmo.Translatable.Entity.html">Entity<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Entity.MappedSuperclass.html">MappedSuperclass</a> </li> <li><a href="namespace-Gedmo.Translatable.Entity.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Gedmo.Translatable.Hydrator.html">Hydrator<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Hydrator.ORM.html">ORM</a> </li> </ul></li> <li><a href="namespace-Gedmo.Translatable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Translatable.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Translatable.Query.html">Query<span></span></a> <ul> <li><a href="namespace-Gedmo.Translatable.Query.TreeWalker.html">TreeWalker</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Translator.html">Translator<span></span></a> <ul> <li><a href="namespace-Gedmo.Translator.Document.html">Document</a> </li> <li><a href="namespace-Gedmo.Translator.Entity.html">Entity</a> </li> </ul></li> <li><a href="namespace-Gedmo.Tree.html">Tree<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Document.html">Document<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Document.MongoDB.html">MongoDB<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Document.MongoDB.Repository.html">Repository</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Tree.Entity.html">Entity<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Entity.MappedSuperclass.html">MappedSuperclass</a> </li> <li><a href="namespace-Gedmo.Tree.Entity.Repository.html">Repository</a> </li> </ul></li> <li><a href="namespace-Gedmo.Tree.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Mapping.Driver.html">Driver</a> </li> <li><a href="namespace-Gedmo.Tree.Mapping.Event.html">Event<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Mapping.Event.Adapter.html">Adapter</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Tree.Strategy.html">Strategy<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Strategy.ODM.html">ODM<span></span></a> <ul> <li><a href="namespace-Gedmo.Tree.Strategy.ODM.MongoDB.html">MongoDB</a> </li> </ul></li> <li><a href="namespace-Gedmo.Tree.Strategy.ORM.html">ORM</a> </li> </ul></li></ul></li> <li><a href="namespace-Gedmo.Uploadable.html">Uploadable<span></span></a> <ul> <li><a href="namespace-Gedmo.Uploadable.Event.html">Event</a> </li> <li><a href="namespace-Gedmo.Uploadable.FileInfo.html">FileInfo</a> </li> <li><a href="namespace-Gedmo.Uploadable.FilenameGenerator.html">FilenameGenerator</a> </li> <li><a href="namespace-Gedmo.Uploadable.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Gedmo.Uploadable.Mapping.Driver.html">Driver</a> </li> </ul></li> <li><a href="namespace-Gedmo.Uploadable.MimeType.html">MimeType</a> </li> <li><a href="namespace-Gedmo.Uploadable.Stub.html">Stub</a> </li> </ul></li></ul></li> <li><a href="namespace-Incenteev.html">Incenteev<span></span></a> <ul> <li><a href="namespace-Incenteev.ParameterHandler.html">ParameterHandler<span></span></a> <ul> <li><a href="namespace-Incenteev.ParameterHandler.Tests.html">Tests</a> </li> </ul></li></ul></li> <li><a href="namespace-IpTraceable.html">IpTraceable<span></span></a> <ul> <li><a href="namespace-IpTraceable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-IpTraceable.Fixture.Document.html">Document</a> </li> </ul></li></ul></li> <li><a href="namespace-JMS.html">JMS<span></span></a> <ul> <li><a href="namespace-JMS.Parser.html">Parser<span></span></a> <ul> <li><a href="namespace-JMS.Parser.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.html">Serializer<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Annotation.html">Annotation</a> </li> <li><a href="namespace-JMS.Serializer.Builder.html">Builder</a> </li> <li><a href="namespace-JMS.Serializer.Construction.html">Construction</a> </li> <li><a href="namespace-JMS.Serializer.EventDispatcher.html">EventDispatcher<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.EventDispatcher.Subscriber.html">Subscriber</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Exception.html">Exception</a> </li> <li><a href="namespace-JMS.Serializer.Exclusion.html">Exclusion</a> </li> <li><a href="namespace-JMS.Serializer.Handler.html">Handler</a> </li> <li><a href="namespace-JMS.Serializer.Metadata.html">Metadata<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Metadata.Driver.html">Driver</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Naming.html">Naming</a> </li> <li><a href="namespace-JMS.Serializer.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Tests.Exclusion.html">Exclusion</a> </li> <li><a href="namespace-JMS.Serializer.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Tests.Fixtures.Discriminator.html">Discriminator</a> </li> <li><a href="namespace-JMS.Serializer.Tests.Fixtures.Doctrine.html">Doctrine</a> </li> <li><a href="namespace-JMS.Serializer.Tests.Fixtures.DoctrinePHPCR.html">DoctrinePHPCR</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Tests.Handler.html">Handler</a> </li> <li><a href="namespace-JMS.Serializer.Tests.Metadata.html">Metadata<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Tests.Metadata.Driver.html">Driver</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Tests.Serializer.html">Serializer<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Tests.Serializer.EventDispatcher.html">EventDispatcher<span></span></a> <ul> <li><a href="namespace-JMS.Serializer.Tests.Serializer.EventDispatcher.Subscriber.html">Subscriber</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Tests.Serializer.Naming.html">Naming</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Tests.Twig.html">Twig</a> </li> </ul></li> <li><a href="namespace-JMS.Serializer.Twig.html">Twig</a> </li> <li><a href="namespace-JMS.Serializer.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-JMS.SerializerBundle.html">SerializerBundle<span></span></a> <ul> <li><a href="namespace-JMS.SerializerBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-JMS.SerializerBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-JMS.SerializerBundle.Serializer.html">Serializer</a> </li> <li><a href="namespace-JMS.SerializerBundle.Templating.html">Templating</a> </li> <li><a href="namespace-JMS.SerializerBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-JMS.SerializerBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-JMS.SerializerBundle.Tests.DependencyInjection.Fixture.html">Fixture</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-JMS.TranslationBundle.html">TranslationBundle<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Annotation.html">Annotation</a> </li> <li><a href="namespace-JMS.TranslationBundle.Command.html">Command</a> </li> <li><a href="namespace-JMS.TranslationBundle.Controller.html">Controller</a> </li> <li><a href="namespace-JMS.TranslationBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-JMS.TranslationBundle.Exception.html">Exception</a> </li> <li><a href="namespace-JMS.TranslationBundle.Logger.html">Logger</a> </li> <li><a href="namespace-JMS.TranslationBundle.Model.html">Model</a> </li> <li><a href="namespace-JMS.TranslationBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Functional.html">Functional<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Functional.TestBundle.html">TestBundle<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Functional.TestBundle.Controller.html">Controller</a> </li> </ul></li></ul></li> <li><a href="namespace-JMS.TranslationBundle.Tests.Model.html">Model</a> </li> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.html">Translation<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Comparison.html">Comparison</a> </li> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Dumper.html">Dumper</a> </li> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.html">Extractor<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.File.html">File<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.File.Fixture.html">Fixture</a> </li> </ul></li> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.SimpleTest.html">SimpleTest<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.SimpleTest.Controller.html">Controller</a> </li> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.SimpleTest.Form.html">Form</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Loader.html">Loader<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Loader.Symfony.html">Symfony</a> </li> </ul></li></ul></li> <li><a href="namespace-JMS.TranslationBundle.Tests.Twig.html">Twig</a> </li> </ul></li> <li><a href="namespace-JMS.TranslationBundle.Translation.html">Translation<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Translation.Comparison.html">Comparison</a> </li> <li><a href="namespace-JMS.TranslationBundle.Translation.Dumper.html">Dumper</a> </li> <li><a href="namespace-JMS.TranslationBundle.Translation.Extractor.html">Extractor<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Translation.Extractor.File.html">File</a> </li> </ul></li> <li><a href="namespace-JMS.TranslationBundle.Translation.Loader.html">Loader<span></span></a> <ul> <li><a href="namespace-JMS.TranslationBundle.Translation.Loader.Symfony.html">Symfony</a> </li> </ul></li></ul></li> <li><a href="namespace-JMS.TranslationBundle.Twig.html">Twig</a> </li> <li><a href="namespace-JMS.TranslationBundle.Util.html">Util</a> </li> </ul></li></ul></li> <li><a href="namespace-Knp.html">Knp<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.html">MenuBundle<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Knp.Bundle.MenuBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Knp.Bundle.MenuBundle.Provider.html">Provider</a> </li> <li><a href="namespace-Knp.Bundle.MenuBundle.Renderer.html">Renderer</a> </li> <li><a href="namespace-Knp.Bundle.MenuBundle.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.Templating.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.EventListener.html">EventListener</a> </li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Provider.html">Provider</a> </li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Renderer.html">Renderer</a> </li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.html">Stubs<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.Child.html">Child<span></span></a> <ul> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.Child.Menu.html">Menu</a> </li> </ul></li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.Menu.html">Menu</a> </li> </ul></li> <li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Templating.html">Templating</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Knp.Menu.html">Menu<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Factory.html">Factory</a> </li> <li><a href="namespace-Knp.Menu.Integration.html">Integration<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Integration.Silex.html">Silex</a> </li> <li><a href="namespace-Knp.Menu.Integration.Symfony.html">Symfony</a> </li> </ul></li> <li><a href="namespace-Knp.Menu.Iterator.html">Iterator</a> </li> <li><a href="namespace-Knp.Menu.Loader.html">Loader</a> </li> <li><a href="namespace-Knp.Menu.Matcher.html">Matcher<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Matcher.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Knp.Menu.Provider.html">Provider</a> </li> <li><a href="namespace-Knp.Menu.Renderer.html">Renderer</a> </li> <li><a href="namespace-Knp.Menu.Silex.html">Silex<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Silex.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Knp.Menu.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Tests.Factory.html">Factory</a> </li> <li><a href="namespace-Knp.Menu.Tests.Integration.html">Integration<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Tests.Integration.Silex.html">Silex</a> </li> </ul></li> <li><a href="namespace-Knp.Menu.Tests.Iterator.html">Iterator</a> </li> <li><a href="namespace-Knp.Menu.Tests.Loader.html">Loader</a> </li> <li><a href="namespace-Knp.Menu.Tests.Matcher.html">Matcher<span></span></a> <ul> <li><a href="namespace-Knp.Menu.Tests.Matcher.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Knp.Menu.Tests.Provider.html">Provider</a> </li> <li><a href="namespace-Knp.Menu.Tests.Renderer.html">Renderer</a> </li> <li><a href="namespace-Knp.Menu.Tests.Silex.html">Silex</a> </li> <li><a href="namespace-Knp.Menu.Tests.Twig.html">Twig</a> </li> <li><a href="namespace-Knp.Menu.Tests.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Knp.Menu.Twig.html">Twig</a> </li> <li><a href="namespace-Knp.Menu.Util.html">Util</a> </li> </ul></li></ul></li> <li><a href="namespace-Loggable.html">Loggable<span></span></a> <ul> <li><a href="namespace-Loggable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Loggable.Fixture.Document.html">Document<span></span></a> <ul> <li><a href="namespace-Loggable.Fixture.Document.Log.html">Log</a> </li> </ul></li> <li><a href="namespace-Loggable.Fixture.Entity.html">Entity<span></span></a> <ul> <li><a href="namespace-Loggable.Fixture.Entity.Log.html">Log</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Lunetics.html">Lunetics<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.html">LocaleBundle<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Cookie.html">Cookie</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Event.html">Event</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Form.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Form.Extension.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Form.Extension.Type.html">Type</a> </li> </ul></li></ul></li> <li><a href="namespace-Lunetics.LocaleBundle.LocaleGuesser.html">LocaleGuesser</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.LocaleInformation.html">LocaleInformation</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Matcher.html">Matcher</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Session.html">Session</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Switcher.html">Switcher</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Templating.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Tests.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Event.html">Event</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.EventListener.html">EventListener</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.Extension.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.Extension.Type.html">Type</a> </li> </ul></li></ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.LocaleGuesser.html">LocaleGuesser</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.LocaleInformation.html">LocaleInformation</a> </li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Templating.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Twig.html">Twig<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Twig.Extension.html">Extension</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Tests.Validator.html">Validator</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Twig.html">Twig<span></span></a> <ul> <li><a href="namespace-Lunetics.LocaleBundle.Twig.Extension.html">Extension</a> </li> </ul></li> <li><a href="namespace-Lunetics.LocaleBundle.Validator.html">Validator</a> </li> </ul></li></ul></li> <li><a href="namespace-Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Mapping.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Mapping.Fixture.Compatibility.html">Compatibility</a> </li> <li><a href="namespace-Mapping.Fixture.Document.html">Document</a> </li> <li><a href="namespace-Mapping.Fixture.Unmapped.html">Unmapped</a> </li> <li><a href="namespace-Mapping.Fixture.Xml.html">Xml</a> </li> <li><a href="namespace-Mapping.Fixture.Yaml.html">Yaml</a> </li> </ul></li></ul></li> <li><a href="namespace-Metadata.html">Metadata<span></span></a> <ul> <li><a href="namespace-Metadata.Cache.html">Cache</a> </li> <li><a href="namespace-Metadata.Driver.html">Driver</a> </li> <li><a href="namespace-Metadata.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Metadata.Tests.Cache.html">Cache</a> </li> <li><a href="namespace-Metadata.Tests.Driver.html">Driver<span></span></a> <ul> <li><a href="namespace-Metadata.Tests.Driver.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Metadata.Tests.Driver.Fixture.A.html">A</a> </li> <li><a href="namespace-Metadata.Tests.Driver.Fixture.B.html">B</a> </li> <li><a href="namespace-Metadata.Tests.Driver.Fixture.C.html">C<span></span></a> <ul> <li><a href="namespace-Metadata.Tests.Driver.Fixture.C.SubDir.html">SubDir</a> </li> </ul></li> <li><a href="namespace-Metadata.Tests.Driver.Fixture.T.html">T</a> </li> </ul></li></ul></li> <li><a href="namespace-Metadata.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Metadata.Tests.Fixtures.ComplexHierarchy.html">ComplexHierarchy</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Monolog.html">Monolog<span></span></a> <ul> <li><a href="namespace-Monolog.Formatter.html">Formatter</a> </li> <li><a href="namespace-Monolog.Handler.html">Handler<span></span></a> <ul> <li><a href="namespace-Monolog.Handler.FingersCrossed.html">FingersCrossed</a> </li> <li><a href="namespace-Monolog.Handler.SyslogUdp.html">SyslogUdp</a> </li> </ul></li> <li><a href="namespace-Monolog.Processor.html">Processor</a> </li> </ul></li> <li><a href="namespace-MyProject.html">MyProject<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.html">Proxies<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.html">__CG__<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.html">Doctrine<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.Tests.Common.html">Common<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.Tests.Common.Util.html">Util</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.html">OtherProject<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.html">Proxies<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.html">__CG__<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.html">Doctrine<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.Tests.Common.html">Common<span></span></a> <ul> <li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.Tests.Common.Util.html">Util</a> </li> </ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-NamespaceCollision.html">NamespaceCollision<span></span></a> <ul> <li><a href="namespace-NamespaceCollision.A.html">A<span></span></a> <ul> <li><a href="namespace-NamespaceCollision.A.B.html">B</a> </li> </ul></li> <li><a href="namespace-NamespaceCollision.C.html">C<span></span></a> <ul> <li><a href="namespace-NamespaceCollision.C.B.html">B</a> </li> </ul></li></ul></li> <li><a href="namespace-Namespaced.html">Namespaced</a> </li> <li><a href="namespace-Namespaced2.html">Namespaced2</a> </li> <li><a href="namespace-Negotiation.html">Negotiation<span></span></a> <ul> <li><a href="namespace-Negotiation.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-None.html">None</a> </li> <li><a href="namespace-Pequiven.html">Pequiven<span></span></a> <ul> <li><a href="namespace-Pequiven.SEIPBundle.html">SEIPBundle<span></span></a> <ul> <li><a href="namespace-Pequiven.SEIPBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Pequiven.SEIPBundle.DataFixtures.html">DataFixtures</a> </li> <li><a href="namespace-Pequiven.SEIPBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Pequiven.SEIPBundle.Entity.html">Entity</a> </li> <li><a href="namespace-Pequiven.SEIPBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Pequiven.SEIPBundle.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Pequiven.SEIPBundle.Form.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Pequiven.SEIPBundle.Menu.html">Menu<span></span></a> <ul> <li><a href="namespace-Pequiven.SEIPBundle.Menu.Template.html">Template<span></span></a> <ul> <li><a href="namespace-Pequiven.SEIPBundle.Menu.Template.Developer.html">Developer</a> </li> </ul></li></ul></li> <li><a href="namespace-Pequiven.SEIPBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Pequiven.SEIPBundle.Tests.Controller.html">Controller</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-PHP.html">PHP</a> </li> <li><a href="namespace-PhpCollection.html">PhpCollection<span></span></a> <ul> <li><a href="namespace-PhpCollection.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-PhpOption.html">PhpOption<span></span></a> <ul> <li><a href="namespace-PhpOption.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Proxies.html">Proxies<span></span></a> <ul> <li><a href="namespace-Proxies.__CG__.html">__CG__<span></span></a> <ul> <li><a href="namespace-Proxies.__CG__.Pequiven.html">Pequiven<span></span></a> <ul> <li><a href="namespace-Proxies.__CG__.Pequiven.SEIPBundle.html">SEIPBundle<span></span></a> <ul> <li><a href="namespace-Proxies.__CG__.Pequiven.SEIPBundle.Entity.html">Entity</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Psr.html">Psr<span></span></a> <ul> <li><a href="namespace-Psr.Log.html">Log<span></span></a> <ul> <li><a href="namespace-Psr.Log.Test.html">Test</a> </li> </ul></li></ul></li> <li><a href="namespace-ReferenceIntegrity.html">ReferenceIntegrity<span></span></a> <ul> <li><a href="namespace-ReferenceIntegrity.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-ReferenceIntegrity.Fixture.Document.html">Document<span></span></a> <ul> <li><a href="namespace-ReferenceIntegrity.Fixture.Document.ManyNullify.html">ManyNullify</a> </li> <li><a href="namespace-ReferenceIntegrity.Fixture.Document.ManyRestrict.html">ManyRestrict</a> </li> <li><a href="namespace-ReferenceIntegrity.Fixture.Document.OneNullify.html">OneNullify</a> </li> <li><a href="namespace-ReferenceIntegrity.Fixture.Document.OneRestrict.html">OneRestrict</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-References.html">References<span></span></a> <ul> <li><a href="namespace-References.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-References.Fixture.ODM.html">ODM<span></span></a> <ul> <li><a href="namespace-References.Fixture.ODM.MongoDB.html">MongoDB</a> </li> </ul></li> <li><a href="namespace-References.Fixture.ORM.html">ORM</a> </li> </ul></li></ul></li> <li class="active"><a href="namespace-Sensio.html">Sensio<span></span></a> <ul> <li class="active"><a href="namespace-Sensio.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.DistributionBundle.html">DistributionBundle<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.DistributionBundle.Composer.html">Composer</a> </li> <li><a href="namespace-Sensio.Bundle.DistributionBundle.Configurator.html">Configurator<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.DistributionBundle.Configurator.Form.html">Form</a> </li> <li><a href="namespace-Sensio.Bundle.DistributionBundle.Configurator.Step.html">Step</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.DistributionBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Sensio.Bundle.DistributionBundle.DependencyInjection.html">DependencyInjection</a> </li> </ul></li> <li class="active"><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.html">FrameworkExtraBundle<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Configuration.html">Configuration</a> </li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Request.html">Request<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Request.ParamConverter.html">ParamConverter</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Routing.html">Routing</a> </li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Security.html">Security</a> </li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Templating.html">Templating</a> </li> <li class="active"><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Configuration.html">Configuration</a> </li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.EventListener.html">EventListener<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.EventListener.Fixture.html">Fixture</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Request.html">Request<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Request.ParamConverter.html">ParamConverter</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Routing.html">Routing</a> </li> <li class="active"><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.html">Templating<span></span></a> <ul> <li class="active"><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.BarBundle.html">BarBundle<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.BarBundle.Controller.html">Controller</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBarBundle.html">FooBarBundle<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBarBundle.Controller.html">Controller</a> </li> </ul></li> <li class="active"><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.html">FooBundle<span></span></a> <ul> <li class="active"><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.html">Controller</a> </li> </ul></li></ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.html">GeneratorBundle<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Command.html">Command<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Command.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Generator.html">Generator</a> </li> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Manipulator.html">Manipulator</a> </li> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Tests.Command.html">Command</a> </li> <li><a href="namespace-Sensio.Bundle.GeneratorBundle.Tests.Generator.html">Generator</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Sluggable.html">Sluggable<span></span></a> <ul> <li><a href="namespace-Sluggable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Sluggable.Fixture.Doctrine.html">Doctrine</a> </li> <li><a href="namespace-Sluggable.Fixture.Document.html">Document<span></span></a> <ul> <li><a href="namespace-Sluggable.Fixture.Document.Handler.html">Handler</a> </li> </ul></li> <li><a href="namespace-Sluggable.Fixture.Handler.html">Handler<span></span></a> <ul> <li><a href="namespace-Sluggable.Fixture.Handler.People.html">People</a> </li> </ul></li> <li><a href="namespace-Sluggable.Fixture.Inheritance.html">Inheritance</a> </li> <li><a href="namespace-Sluggable.Fixture.Inheritance2.html">Inheritance2</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue104.html">Issue104</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue116.html">Issue116</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue131.html">Issue131</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue449.html">Issue449</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue633.html">Issue633</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue827.html">Issue827</a> </li> <li><a href="namespace-Sluggable.Fixture.Issue939.html">Issue939</a> </li> <li><a href="namespace-Sluggable.Fixture.MappedSuperclass.html">MappedSuperclass</a> </li> </ul></li></ul></li> <li><a href="namespace-SoftDeleteable.html">SoftDeleteable<span></span></a> <ul> <li><a href="namespace-SoftDeleteable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-SoftDeleteable.Fixture.Document.html">Document</a> </li> <li><a href="namespace-SoftDeleteable.Fixture.Entity.html">Entity</a> </li> </ul></li></ul></li> <li><a href="namespace-Sortable.html">Sortable<span></span></a> <ul> <li><a href="namespace-Sortable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Sortable.Fixture.Transport.html">Transport</a> </li> </ul></li></ul></li> <li><a href="namespace-Stof.html">Stof<span></span></a> <ul> <li><a href="namespace-Stof.DoctrineExtensionsBundle.html">DoctrineExtensionsBundle<span></span></a> <ul> <li><a href="namespace-Stof.DoctrineExtensionsBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Stof.DoctrineExtensionsBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Stof.DoctrineExtensionsBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Stof.DoctrineExtensionsBundle.Uploadable.html">Uploadable</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.html">Symfony<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.html">Bridge<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.html">Doctrine<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.DataFixtures.html">DataFixtures</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.CompilerPass.html">CompilerPass</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.Security.UserProvider.html">UserProvider</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.ExpressionLanguage.html">ExpressionLanguage</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Form.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Form.DataTransformer.html">DataTransformer</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Form.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Form.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.HttpFoundation.html">HttpFoundation</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Logger.html">Logger</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Security.RememberMe.html">RememberMe</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Security.User.html">User</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.Test.html">Test</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DataFixtures.html">DataFixtures</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DependencyInjection.CompilerPass.html">CompilerPass</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.ExpressionLanguage.html">ExpressionLanguage</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.DataTransformer.html">DataTransformer</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.HttpFoundation.html">HttpFoundation</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Logger.html">Logger</a> </li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Security.User.html">User</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Validator.Constraints.html">Constraints</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.Doctrine.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Doctrine.Validator.Constraints.html">Constraints</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.Monolog.html">Monolog<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Monolog.Formatter.html">Formatter</a> </li> <li><a href="namespace-Symfony.Bridge.Monolog.Handler.html">Handler</a> </li> <li><a href="namespace-Symfony.Bridge.Monolog.Processor.html">Processor</a> </li> <li><a href="namespace-Symfony.Bridge.Monolog.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Monolog.Tests.Handler.html">Handler</a> </li> <li><a href="namespace-Symfony.Bridge.Monolog.Tests.Processor.html">Processor</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.Propel1.html">Propel1<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.DependencyInjection.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.DependencyInjection.Security.UserProvider.html">UserProvider</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.Propel1.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.Form.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Form.DataTransformer.html">DataTransformer</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Form.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Form.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Propel1.Logger.html">Logger</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.Security.User.html">User</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Propel1.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.Tests.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Tests.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Propel1.Tests.Form.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Symfony.Bridge.Propel1.Tests.Form.DataTransformer.html">DataTransformer</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.ProxyManager.html">ProxyManager<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.ProxyManager.LazyProxy.html">LazyProxy<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.ProxyManager.LazyProxy.Instantiator.html">Instantiator</a> </li> <li><a href="namespace-Symfony.Bridge.ProxyManager.LazyProxy.PhpDumper.html">PhpDumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.html">LazyProxy<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.Dumper.html">Dumper</a> </li> <li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.Instantiator.html">Instantiator</a> </li> <li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.PhpDumper.html">PhpDumper</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Bridge.Twig.html">Twig<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Twig.Extension.html">Extension</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Form.html">Form</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Node.html">Node</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.NodeVisitor.html">NodeVisitor</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Twig.Tests.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Symfony.Bridge.Twig.Tests.Extension.Fixtures.html">Fixtures</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Twig.Tests.Node.html">Node</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Tests.NodeVisitor.html">NodeVisitor</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Tests.TokenParser.html">TokenParser</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Tests.Translation.html">Translation</a> </li> </ul></li> <li><a href="namespace-Symfony.Bridge.Twig.TokenParser.html">TokenParser</a> </li> <li><a href="namespace-Symfony.Bridge.Twig.Translation.html">Translation</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.AsseticBundle.html">AsseticBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.AsseticBundle.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Config.html">Config</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.AsseticBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.html">Factory<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.Resource.html">Resource</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.Worker.html">Worker</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Routing.html">Routing</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Templating.html">Templating</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Factory.html">Factory<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Factory.Resource.html">Resource</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Templating.html">Templating</a> </li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.TestBundle.html">TestBundle</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.AsseticBundle.Twig.html">Twig</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.html">FrameworkBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Console.html">Console<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Console.Descriptor.html">Descriptor</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Console.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Fragment.html">Fragment</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.HttpCache.html">HttpCache</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Routing.html">Routing</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.Asset.html">Asset</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.Helper.html">Helper</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.Loader.html">Loader</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Test.html">Test</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Console.html">Console<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Console.Descriptor.html">Descriptor</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Fixtures.BaseBundle.html">BaseBundle</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Fragment.html">Fragment</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.html">Functional<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.app.html">app</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.Bundle.TestBundle.html">TestBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.Bundle.TestBundle.Controller.html">Controller</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Routing.html">Routing</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.Helper.html">Helper<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.Helper.Fixtures.html">Fixtures</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.Loader.html">Loader</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Translation.html">Translation</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Validator.html">Validator</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Translation.html">Translation</a> </li> <li><a href="namespace-Symfony.Bundle.FrameworkBundle.Validator.html">Validator</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.MonologBundle.html">MonologBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.MonologBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.MonologBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.MonologBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.MonologBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.MonologBundle.Tests.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.html">SecurityBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Compiler.html">Compiler</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Security.Factory.html">Factory</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Security.UserProvider.html">UserProvider</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Security.html">Security</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Templating.Helper.html">Helper</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.DependencyInjection.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.DependencyInjection.Security.Factory.html">Factory</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.html">Functional<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.app.html">app</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.CsrfFormLoginBundle.html">CsrfFormLoginBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.CsrfFormLoginBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.CsrfFormLoginBundle.Form.html">Form</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.html">FormLoginBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.Security.html">Security</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Twig.html">Twig<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SecurityBundle.Twig.Extension.html">Extension</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.html">SwiftmailerBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.Tests.DependencyInjection.html">DependencyInjection</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Bundle.TwigBundle.html">TwigBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.TwigBundle.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Debug.html">Debug</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.TwigBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Extension.html">Extension</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Node.html">Node</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.TokenParser.html">TokenParser</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.TwigBundle.TokenParser.html">TokenParser</a> </li> </ul></li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.html">WebProfilerBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Profiler.html">Profiler</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.Profiler.html">Profiler</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Component.html">Component<span></span></a> <ul> <li><a href="namespace-Symfony.Component.BrowserKit.html">BrowserKit<span></span></a> <ul> <li><a href="namespace-Symfony.Component.BrowserKit.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.ClassLoader.html">ClassLoader<span></span></a> <ul> <li><a href="namespace-Symfony.Component.ClassLoader.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Config.html">Config<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Config.Definition.html">Definition<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Config.Definition.Builder.html">Builder</a> </li> <li><a href="namespace-Symfony.Component.Config.Definition.Dumper.html">Dumper</a> </li> <li><a href="namespace-Symfony.Component.Config.Definition.Exception.html">Exception</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Config.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Config.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Config.Resource.html">Resource</a> </li> <li><a href="namespace-Symfony.Component.Config.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Config.Tests.Definition.html">Definition<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Config.Tests.Definition.Builder.html">Builder</a> </li> <li><a href="namespace-Symfony.Component.Config.Tests.Definition.Dumper.html">Dumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Config.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Config.Tests.Fixtures.Configuration.html">Configuration</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Config.Tests.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Config.Tests.Resource.html">Resource</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Config.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Console.html">Console<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Console.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Component.Console.Descriptor.html">Descriptor</a> </li> <li><a href="namespace-Symfony.Component.Console.Event.html">Event</a> </li> <li><a href="namespace-Symfony.Component.Console.Formatter.html">Formatter</a> </li> <li><a href="namespace-Symfony.Component.Console.Helper.html">Helper</a> </li> <li><a href="namespace-Symfony.Component.Console.Input.html">Input</a> </li> <li><a href="namespace-Symfony.Component.Console.Output.html">Output</a> </li> <li><a href="namespace-Symfony.Component.Console.Tester.html">Tester</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Console.Tests.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Descriptor.html">Descriptor</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Formatter.html">Formatter</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Helper.html">Helper</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Input.html">Input</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Output.html">Output</a> </li> <li><a href="namespace-Symfony.Component.Console.Tests.Tester.html">Tester</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.CssSelector.html">CssSelector<span></span></a> <ul> <li><a href="namespace-Symfony.Component.CssSelector.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.CssSelector.Node.html">Node</a> </li> <li><a href="namespace-Symfony.Component.CssSelector.Parser.html">Parser<span></span></a> <ul> <li><a href="namespace-Symfony.Component.CssSelector.Parser.Handler.html">Handler</a> </li> <li><a href="namespace-Symfony.Component.CssSelector.Parser.Shortcut.html">Shortcut</a> </li> <li><a href="namespace-Symfony.Component.CssSelector.Parser.Tokenizer.html">Tokenizer</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.CssSelector.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.CssSelector.Tests.Node.html">Node</a> </li> <li><a href="namespace-Symfony.Component.CssSelector.Tests.Parser.html">Parser<span></span></a> <ul> <li><a href="namespace-Symfony.Component.CssSelector.Tests.Parser.Handler.html">Handler</a> </li> <li><a href="namespace-Symfony.Component.CssSelector.Tests.Parser.Shortcut.html">Shortcut</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.CssSelector.Tests.XPath.html">XPath</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.CssSelector.XPath.html">XPath<span></span></a> <ul> <li><a href="namespace-Symfony.Component.CssSelector.XPath.Extension.html">Extension</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Debug.html">Debug<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Debug.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Debug.FatalErrorHandler.html">FatalErrorHandler</a> </li> <li><a href="namespace-Symfony.Component.Debug.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Debug.Tests.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Debug.Tests.FatalErrorHandler.html">FatalErrorHandler</a> </li> <li><a href="namespace-Symfony.Component.Debug.Tests.Fixtures.html">Fixtures</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Symfony.Component.DependencyInjection.Compiler.html">Compiler</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Dump.html">Dump</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Dumper.html">Dumper</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Extension.html">Extension</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.LazyProxy.html">LazyProxy<span></span></a> <ul> <li><a href="namespace-Symfony.Component.DependencyInjection.LazyProxy.Instantiator.html">Instantiator</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.LazyProxy.PhpDumper.html">PhpDumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.DependencyInjection.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.ParameterBag.html">ParameterBag</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Compiler.html">Compiler</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Dumper.html">Dumper</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Extension.html">Extension</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.LazyProxy.html">LazyProxy<span></span></a> <ul> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.LazyProxy.Instantiator.html">Instantiator</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.LazyProxy.PhpDumper.html">PhpDumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.DependencyInjection.Tests.ParameterBag.html">ParameterBag</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.DomCrawler.html">DomCrawler<span></span></a> <ul> <li><a href="namespace-Symfony.Component.DomCrawler.Field.html">Field</a> </li> <li><a href="namespace-Symfony.Component.DomCrawler.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.DomCrawler.Tests.Field.html">Field</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.EventDispatcher.html">EventDispatcher<span></span></a> <ul> <li><a href="namespace-Symfony.Component.EventDispatcher.Debug.html">Debug</a> </li> <li><a href="namespace-Symfony.Component.EventDispatcher.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.ExpressionLanguage.html">ExpressionLanguage<span></span></a> <ul> <li><a href="namespace-Symfony.Component.ExpressionLanguage.Node.html">Node</a> </li> <li><a href="namespace-Symfony.Component.ExpressionLanguage.ParserCache.html">ParserCache</a> </li> <li><a href="namespace-Symfony.Component.ExpressionLanguage.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.ExpressionLanguage.Tests.Node.html">Node</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Filesystem.html">Filesystem<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Filesystem.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Filesystem.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Finder.html">Finder<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Finder.Adapter.html">Adapter</a> </li> <li><a href="namespace-Symfony.Component.Finder.Comparator.html">Comparator</a> </li> <li><a href="namespace-Symfony.Component.Finder.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Finder.Expression.html">Expression</a> </li> <li><a href="namespace-Symfony.Component.Finder.Iterator.html">Iterator</a> </li> <li><a href="namespace-Symfony.Component.Finder.Shell.html">Shell</a> </li> <li><a href="namespace-Symfony.Component.Finder.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Finder.Tests.Comparator.html">Comparator</a> </li> <li><a href="namespace-Symfony.Component.Finder.Tests.Expression.html">Expression</a> </li> <li><a href="namespace-Symfony.Component.Finder.Tests.FakeAdapter.html">FakeAdapter</a> </li> <li><a href="namespace-Symfony.Component.Finder.Tests.Iterator.html">Iterator</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Extension.Core.html">Core<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Extension.Core.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Core.DataMapper.html">DataMapper</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Core.DataTransformer.html">DataTransformer</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Core.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Core.Type.html">Type</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Core.View.html">View</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Extension.Csrf.html">Csrf<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Extension.Csrf.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Csrf.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.html">DataCollector<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.Proxy.html">Proxy</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Extension.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.HttpFoundation.html">HttpFoundation<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Extension.HttpFoundation.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Extension.Templating.html">Templating</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Extension.Validator.Constraints.html">Constraints</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Validator.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Validator.Type.html">Type</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Validator.Util.html">Util</a> </li> <li><a href="namespace-Symfony.Component.Form.Extension.Validator.ViolationMapper.html">ViolationMapper</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Form.Guess.html">Guess</a> </li> <li><a href="namespace-Symfony.Component.Form.Test.html">Test</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.html">Extension<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.html">Core<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.ChoiceList.html">ChoiceList</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.DataMapper.html">DataMapper</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.DataTransformer.html">DataTransformer</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.html">Csrf<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.CsrfProvider.html">CsrfProvider</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.DataCollector.html">DataCollector<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.DataCollector.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.HttpFoundation.html">HttpFoundation<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.HttpFoundation.EventListener.html">EventListener</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.Constraints.html">Constraints</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.Type.html">Type</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.Util.html">Util</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.ViolationMapper.html">ViolationMapper</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Form.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Guess.html">Guess</a> </li> <li><a href="namespace-Symfony.Component.Form.Tests.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Form.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.HttpFoundation.html">HttpFoundation<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.File.html">File<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.File.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.File.MimeType.html">MimeType</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.HttpFoundation.Session.html">Session<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.Session.Attribute.html">Attribute</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.Session.Flash.html">Flash</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.Session.Storage.html">Storage<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.Session.Storage.Handler.html">Handler</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.Session.Storage.Proxy.html">Proxy</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.File.html">File<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.File.MimeType.html">MimeType</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.html">Session<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Attribute.html">Attribute</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Flash.html">Flash</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Storage.html">Storage<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Storage.Handler.html">Handler</a> </li> <li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Storage.Proxy.html">Proxy</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Component.HttpKernel.html">HttpKernel<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.Bundle.html">Bundle</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.CacheClearer.html">CacheClearer</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Config.html">Config</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.DataCollector.html">DataCollector<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.DataCollector.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.HttpKernel.Debug.html">Debug</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Event.html">Event</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Fragment.html">Fragment</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.HttpCache.html">HttpCache</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Log.html">Log</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Profiler.html">Profiler</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Bundle.html">Bundle</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.CacheClearer.html">CacheClearer</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.CacheWarmer.html">CacheWarmer</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Config.html">Config</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Controller.html">Controller</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.DataCollector.html">DataCollector</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Debug.html">Debug</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.EventListener.html">EventListener</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionAbsentBundle.html">ExtensionAbsentBundle</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionLoadedBundle.html">ExtensionLoadedBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionLoadedBundle.DependencyInjection.html">DependencyInjection</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionPresentBundle.html">ExtensionPresentBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionPresentBundle.Command.html">Command</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionPresentBundle.DependencyInjection.html">DependencyInjection</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fragment.html">Fragment</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.HttpCache.html">HttpCache</a> </li> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Profiler.html">Profiler<span></span></a> <ul> <li><a href="namespace-Symfony.Component.HttpKernel.Tests.Profiler.Mock.html">Mock</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Component.Icu.html">Icu<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Icu.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.html">Intl<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Collator.html">Collator</a> </li> <li><a href="namespace-Symfony.Component.Intl.DateFormatter.html">DateFormatter<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.DateFormatter.DateFormat.html">DateFormat</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Intl.Globals.html">Globals</a> </li> <li><a href="namespace-Symfony.Component.Intl.Locale.html">Locale</a> </li> <li><a href="namespace-Symfony.Component.Intl.NumberFormatter.html">NumberFormatter</a> </li> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.html">ResourceBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Compiler.html">Compiler</a> </li> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Reader.html">Reader</a> </li> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Transformer.html">Transformer<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Transformer.Rule.html">Rule</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Util.html">Util</a> </li> <li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Writer.html">Writer</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.Collator.html">Collator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.Collator.Verification.html">Verification</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.DateFormatter.html">DateFormatter<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.DateFormatter.Verification.html">Verification</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.Globals.html">Globals<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.Globals.Verification.html">Verification</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.Locale.html">Locale<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.Locale.Verification.html">Verification</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.NumberFormatter.html">NumberFormatter<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.NumberFormatter.Verification.html">Verification</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.html">ResourceBundle<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.Reader.html">Reader</a> </li> <li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.Util.html">Util</a> </li> <li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.Writer.html">Writer</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Tests.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Intl.Util.html">Util</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Locale.html">Locale<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Locale.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Locale.Tests.Stub.html">Stub</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.OptionsResolver.html">OptionsResolver<span></span></a> <ul> <li><a href="namespace-Symfony.Component.OptionsResolver.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.OptionsResolver.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Process.html">Process<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Process.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Process.Tests.html">Tests</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.PropertyAccess.html">PropertyAccess<span></span></a> <ul> <li><a href="namespace-Symfony.Component.PropertyAccess.Exception.html">Exception</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Routing.html">Routing<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Annotation.html">Annotation</a> </li> <li><a href="namespace-Symfony.Component.Routing.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Routing.Generator.html">Generator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Generator.Dumper.html">Dumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Routing.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Routing.Matcher.html">Matcher<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Matcher.Dumper.html">Dumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Routing.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Tests.Annotation.html">Annotation</a> </li> <li><a href="namespace-Symfony.Component.Routing.Tests.Fixtures.html">Fixtures<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Tests.Fixtures.AnnotatedClasses.html">AnnotatedClasses</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Routing.Tests.Generator.html">Generator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Tests.Generator.Dumper.html">Dumper</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Routing.Tests.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Routing.Tests.Matcher.html">Matcher<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Routing.Tests.Matcher.Dumper.html">Dumper</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Component.Security.html">Security<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Acl.html">Acl<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Acl.Dbal.html">Dbal</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Domain.html">Domain</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Model.html">Model</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Permission.html">Permission</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Acl.Tests.Dbal.html">Dbal</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Tests.Domain.html">Domain</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Tests.Permission.html">Permission</a> </li> <li><a href="namespace-Symfony.Component.Security.Acl.Tests.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Acl.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Core.html">Core<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Authentication.html">Authentication<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Authentication.Provider.html">Provider</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Authentication.RememberMe.html">RememberMe</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Authentication.Token.html">Token</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Core.Authorization.html">Authorization<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Authorization.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Core.Encoder.html">Encoder</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Event.html">Event</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Role.html">Role</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.html">Authentication<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.Provider.html">Provider</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.RememberMe.html">RememberMe</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.Token.html">Token</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Authorization.html">Authorization<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Authorization.Voter.html">Voter</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Encoder.html">Encoder</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Role.html">Role</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.User.html">User</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Util.html">Util</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Tests.Validator.Constraints.html">Constraints</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Security.Core.User.html">User</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Util.html">Util</a> </li> <li><a href="namespace-Symfony.Component.Security.Core.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Core.Validator.Constraints.html">Constraints</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Security.Csrf.html">Csrf<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Csrf.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Security.Csrf.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Csrf.Tests.TokenGenerator.html">TokenGenerator</a> </li> <li><a href="namespace-Symfony.Component.Security.Csrf.Tests.TokenStorage.html">TokenStorage</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Csrf.TokenGenerator.html">TokenGenerator</a> </li> <li><a href="namespace-Symfony.Component.Security.Csrf.TokenStorage.html">TokenStorage</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Http.html">Http<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Http.Authentication.html">Authentication</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Authorization.html">Authorization</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.EntryPoint.html">EntryPoint</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Event.html">Event</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Firewall.html">Firewall</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Logout.html">Logout</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.RememberMe.html">RememberMe</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Session.html">Session</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Http.Tests.Authentication.html">Authentication</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Tests.EntryPoint.html">EntryPoint</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Tests.Firewall.html">Firewall</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Tests.Logout.html">Logout</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Tests.RememberMe.html">RememberMe</a> </li> <li><a href="namespace-Symfony.Component.Security.Http.Tests.Session.html">Session</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Security.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Tests.Core.html">Core<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Tests.Core.Authentication.html">Authentication<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Tests.Core.Authentication.Token.html">Token</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Tests.Core.User.html">User</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Security.Tests.Http.html">Http<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Security.Tests.Http.Firewall.html">Firewall</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Component.Serializer.html">Serializer<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Serializer.Encoder.html">Encoder</a> </li> <li><a href="namespace-Symfony.Component.Serializer.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Serializer.Normalizer.html">Normalizer</a> </li> <li><a href="namespace-Symfony.Component.Serializer.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Serializer.Tests.Encoder.html">Encoder</a> </li> <li><a href="namespace-Symfony.Component.Serializer.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Component.Serializer.Tests.Normalizer.html">Normalizer</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Stopwatch.html">Stopwatch</a> </li> <li><a href="namespace-Symfony.Component.Templating.html">Templating<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Templating.Asset.html">Asset</a> </li> <li><a href="namespace-Symfony.Component.Templating.Helper.html">Helper</a> </li> <li><a href="namespace-Symfony.Component.Templating.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Templating.Storage.html">Storage</a> </li> <li><a href="namespace-Symfony.Component.Templating.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Templating.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Component.Templating.Tests.Helper.html">Helper</a> </li> <li><a href="namespace-Symfony.Component.Templating.Tests.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Templating.Tests.Storage.html">Storage</a> </li> </ul></li></ul></li> <li><a href="namespace-Symfony.Component.Translation.html">Translation<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Translation.Catalogue.html">Catalogue</a> </li> <li><a href="namespace-Symfony.Component.Translation.Dumper.html">Dumper</a> </li> <li><a href="namespace-Symfony.Component.Translation.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Translation.Extractor.html">Extractor</a> </li> <li><a href="namespace-Symfony.Component.Translation.Loader.html">Loader</a> </li> <li><a href="namespace-Symfony.Component.Translation.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Translation.Tests.Catalogue.html">Catalogue</a> </li> <li><a href="namespace-Symfony.Component.Translation.Tests.Dumper.html">Dumper</a> </li> <li><a href="namespace-Symfony.Component.Translation.Tests.Loader.html">Loader</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Translation.Writer.html">Writer</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Validator.html">Validator<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Validator.Constraints.html">Constraints</a> </li> <li><a href="namespace-Symfony.Component.Validator.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Validator.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Validator.Mapping.Cache.html">Cache</a> </li> <li><a href="namespace-Symfony.Component.Validator.Mapping.Loader.html">Loader</a> </li> </ul></li> <li><a href="namespace-Symfony.Component.Validator.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Validator.Tests.Constraints.html">Constraints</a> </li> <li><a href="namespace-Symfony.Component.Validator.Tests.Fixtures.html">Fixtures</a> </li> <li><a href="namespace-Symfony.Component.Validator.Tests.Mapping.html">Mapping<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Validator.Tests.Mapping.Cache.html">Cache</a> </li> <li><a href="namespace-Symfony.Component.Validator.Tests.Mapping.Loader.html">Loader</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Symfony.Component.Yaml.html">Yaml<span></span></a> <ul> <li><a href="namespace-Symfony.Component.Yaml.Exception.html">Exception</a> </li> <li><a href="namespace-Symfony.Component.Yaml.Tests.html">Tests</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Tecnocreaciones.html">Tecnocreaciones<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.html">Bundle<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.html">AjaxFOSUserBundle<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.DependencyInjection.html">DependencyInjection<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.DependencyInjection.Compiler.html">Compiler</a> </li> </ul></li> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Event.html">Event</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.EventListener.html">EventListener</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Handler.html">Handler</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Tests.Controller.html">Controller</a> </li> </ul></li></ul></li> <li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.html">InstallBundle<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.Command.html">Command</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.Tests.Controller.html">Controller</a> </li> </ul></li></ul></li> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.html">TemplateBundle<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Controller.html">Controller</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Menu.html">Menu<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Menu.Template.html">Template<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Menu.Template.Developer.html">Developer</a> </li> </ul></li></ul></li> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Tests.Controller.html">Controller</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-Tecnocreaciones.Vzla.html">Vzla<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.html">GovernmentBundle<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.DependencyInjection.html">DependencyInjection</a> </li> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Form.html">Form<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Form.Type.html">Type</a> </li> </ul></li> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Menu.html">Menu<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Menu.Template.html">Template<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Menu.Template.Developer.html">Developer</a> </li> </ul></li></ul></li> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Model.html">Model</a> </li> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Tests.html">Tests<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Tests.Controller.html">Controller</a> </li> </ul></li> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Twig.html">Twig<span></span></a> <ul> <li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Twig.Extension.html">Extension</a> </li> </ul></li></ul></li></ul></li></ul></li> <li><a href="namespace-TestBundle.html">TestBundle<span></span></a> <ul> <li><a href="namespace-TestBundle.Fabpot.html">Fabpot<span></span></a> <ul> <li><a href="namespace-TestBundle.Fabpot.FooBundle.html">FooBundle<span></span></a> <ul> <li><a href="namespace-TestBundle.Fabpot.FooBundle.Controller.html">Controller</a> </li> </ul></li></ul></li> <li><a href="namespace-TestBundle.FooBundle.html">FooBundle<span></span></a> <ul> <li><a href="namespace-TestBundle.FooBundle.Controller.html">Controller<span></span></a> <ul> <li><a href="namespace-TestBundle.FooBundle.Controller.Sub.html">Sub</a> </li> <li><a href="namespace-TestBundle.FooBundle.Controller.Test.html">Test</a> </li> </ul></li></ul></li> <li><a href="namespace-TestBundle.Sensio.html">Sensio<span></span></a> <ul> <li><a href="namespace-TestBundle.Sensio.Cms.html">Cms<span></span></a> <ul> <li><a href="namespace-TestBundle.Sensio.Cms.FooBundle.html">FooBundle<span></span></a> <ul> <li><a href="namespace-TestBundle.Sensio.Cms.FooBundle.Controller.html">Controller</a> </li> </ul></li></ul></li> <li><a href="namespace-TestBundle.Sensio.FooBundle.html">FooBundle<span></span></a> <ul> <li><a href="namespace-TestBundle.Sensio.FooBundle.Controller.html">Controller</a> </li> </ul></li></ul></li></ul></li> <li><a href="namespace-TestFixtures.html">TestFixtures</a> </li> <li><a href="namespace-Timestampable.html">Timestampable<span></span></a> <ul> <li><a href="namespace-Timestampable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Timestampable.Fixture.Document.html">Document</a> </li> </ul></li></ul></li> <li><a href="namespace-Tool.html">Tool</a> </li> <li><a href="namespace-Translatable.html">Translatable<span></span></a> <ul> <li><a href="namespace-Translatable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Translatable.Fixture.Document.html">Document<span></span></a> <ul> <li><a href="namespace-Translatable.Fixture.Document.Personal.html">Personal</a> </li> </ul></li> <li><a href="namespace-Translatable.Fixture.Issue114.html">Issue114</a> </li> <li><a href="namespace-Translatable.Fixture.Issue138.html">Issue138</a> </li> <li><a href="namespace-Translatable.Fixture.Issue165.html">Issue165</a> </li> <li><a href="namespace-Translatable.Fixture.Issue173.html">Issue173</a> </li> <li><a href="namespace-Translatable.Fixture.Issue75.html">Issue75</a> </li> <li><a href="namespace-Translatable.Fixture.Issue922.html">Issue922</a> </li> <li><a href="namespace-Translatable.Fixture.Personal.html">Personal</a> </li> <li><a href="namespace-Translatable.Fixture.Template.html">Template</a> </li> <li><a href="namespace-Translatable.Fixture.Type.html">Type</a> </li> </ul></li></ul></li> <li><a href="namespace-Translator.html">Translator<span></span></a> <ul> <li><a href="namespace-Translator.Fixture.html">Fixture</a> </li> </ul></li> <li><a href="namespace-Tree.html">Tree<span></span></a> <ul> <li><a href="namespace-Tree.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Tree.Fixture.Closure.html">Closure</a> </li> <li><a href="namespace-Tree.Fixture.Document.html">Document</a> </li> <li><a href="namespace-Tree.Fixture.Genealogy.html">Genealogy</a> </li> <li><a href="namespace-Tree.Fixture.Mock.html">Mock</a> </li> <li><a href="namespace-Tree.Fixture.Repository.html">Repository</a> </li> <li><a href="namespace-Tree.Fixture.Transport.html">Transport</a> </li> </ul></li></ul></li> <li><a href="namespace-Uploadable.html">Uploadable<span></span></a> <ul> <li><a href="namespace-Uploadable.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Uploadable.Fixture.Entity.html">Entity</a> </li> </ul></li></ul></li> <li><a href="namespace-Wrapper.html">Wrapper<span></span></a> <ul> <li><a href="namespace-Wrapper.Fixture.html">Fixture<span></span></a> <ul> <li><a href="namespace-Wrapper.Fixture.Document.html">Document</a> </li> <li><a href="namespace-Wrapper.Fixture.Entity.html">Entity</a> </li> </ul></li></ul></li> </ul> </div> <hr /> <div id="elements"> <h3>Classes</h3> <ul> <li class="active"><a href="class-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.FooController.html">FooController</a></li> </ul> </div> </div> </div> <div id="splitter"></div> <div id="right"> <div id="rightInner"> <form id="search"> <input type="hidden" name="cx" value="" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="text" name="q" class="text" /> <input type="submit" value="Search" /> </form> <div id="navigation"> <ul> <li> <a href="index.html" title="Overview"><span>Overview</span></a> </li> <li> <a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.html" title="Summary of Sensio\Bundle\FrameworkExtraBundle\Tests\Templating\Fixture\FooBundle\Controller"><span>Namespace</span></a> </li> <li class="active"> <span>Class</span> </li> </ul> <ul> <li> <a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a> </li> </ul> <ul> </ul> </div> <div id="content" class="class"> <h1>Class FooController</h1> <div class="info"> <b>Namespace:</b> <a href="namespace-Sensio.html">Sensio</a>\<a href="namespace-Sensio.Bundle.html">Bundle</a>\<a href="namespace-Sensio.Bundle.FrameworkExtraBundle.html">FrameworkExtraBundle</a>\<a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.html">Tests</a>\<a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.html">Templating</a>\<a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.html">Fixture</a>\<a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.html">FooBundle</a>\<a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.html">Controller</a><br /> <b>Located at</b> <a href="source-class-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.FooController.html#5-7" title="Go to source code">vendor/sensio/framework-extra-bundle/Sensio/Bundle/FrameworkExtraBundle/Tests/Templating/Fixture/FooBundle/Controller/FooController.php</a><br /> </div> </div> <div id="footer"> seip API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a> </div> </div> </div> </body> </html>
{ "content_hash": "dfc32de8ca8d80cac606add217659800", "timestamp": "", "source": "github", "line_count": 3367, "max_line_length": 698, "avg_line_length": 46.002079002079, "alnum_prop": 0.6500203371446649, "repo_name": "Tecnocreaciones/VzlaGovernmentTemplateDeveloperSeed", "id": "62f881830e95af9440862bc9b7725343f06a8f71", "size": "154889", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "api/class-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.FooController.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "10864" }, { "name": "JavaScript", "bytes": "131316" }, { "name": "PHP", "bytes": "211008" }, { "name": "Perl", "bytes": "2621" } ], "symlink_target": "" }
package com.hortonworks.streamline.streams.cluster.service.metadata; import com.google.common.collect.ImmutableList; import com.hortonworks.streamline.streams.cluster.service.EnvironmentService; import org.apache.hadoop.conf.Configuration; import com.hortonworks.streamline.streams.catalog.exception.ServiceConfigurationNotFoundException; import com.hortonworks.streamline.streams.catalog.exception.ServiceNotFoundException; import com.hortonworks.streamline.streams.cluster.service.metadata.common.OverrideHadoopConfiguration; import com.hortonworks.streamline.streams.cluster.discovery.ambari.ServiceConfigurations; import java.io.IOException; import java.util.List; public class HDFSMetadataService { private static final List<String> STREAMS_JSON_SCHEMA_CONFIG_HDFS = ImmutableList.copyOf(new String[] {ServiceConfigurations.HDFS.getConfNames()[0]}); public static final String CONFIG_KEY_DEFAULT_FS = "fs.defaultFS"; private final Configuration hdfsConfiguration; public HDFSMetadataService(Configuration hdfsConfiguration) { this.hdfsConfiguration = hdfsConfiguration; } public static HDFSMetadataService newInstance(EnvironmentService environmentService, Long clusterId) throws ServiceConfigurationNotFoundException, IOException, ServiceNotFoundException { Configuration hdfsConfiguration = OverrideHadoopConfiguration.override(environmentService, clusterId, ServiceConfigurations.HDFS, STREAMS_JSON_SCHEMA_CONFIG_HDFS, new Configuration()); return new HDFSMetadataService(hdfsConfiguration); } /** * @return default FS url for this HDFS service */ public String getDefaultFsUrl() { return hdfsConfiguration.get(CONFIG_KEY_DEFAULT_FS); } }
{ "content_hash": "ce76848a449d39500d5df1e73735912c", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 109, "avg_line_length": 44.45, "alnum_prop": 0.7913385826771654, "repo_name": "hmcl/Streams", "id": "bbef80da2a7c6e9051b24c5fc964e59d4604a9d2", "size": "2380", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "streams/cluster/src/main/java/com/hortonworks/streamline/streams/cluster/service/metadata/HDFSMetadataService.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "80322" }, { "name": "Groovy", "bytes": "647" }, { "name": "HTML", "bytes": "1783" }, { "name": "Java", "bytes": "3454129" }, { "name": "JavaScript", "bytes": "1167391" }, { "name": "Python", "bytes": "8744" }, { "name": "Shell", "bytes": "57287" } ], "symlink_target": "" }
require 'spec_helper' describe NonRootword do context 'validations and serializations' do it { should validate_uniqueness_of(:word) } it { should validate_presence_of(:word) } it { should serialize(:usages) } it { should serialize(:meaning) } end context 'associations' do it { should belong_to(:rootword) } end end
{ "content_hash": "2b41c387f9fa8d74ef14e16c4b27778e", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 51, "avg_line_length": 26.714285714285715, "alnum_prop": 0.6363636363636364, "repo_name": "vishnun/etymology", "id": "59eded36b269e3e0a63a5c320f2338a6bfcc9dfc", "size": "374", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/models/non_rootword_spec.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1935" }, { "name": "JavaScript", "bytes": "2357" }, { "name": "Ruby", "bytes": "42225" } ], "symlink_target": "" }
import os import sys sys.path.insert(0, os.path.abspath('../pycondor')) sys.path.insert(0, os.path.abspath('_themes')) # -- 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 = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.autosummary', 'sphinx.ext.githubpages', 'sphinx.ext.extlinks', 'numpydoc', 'sphinx_click.ext', ] extlinks = { 'issue': ('https://github.com/pycondor/pycondor/issues/%s', 'Issue #'), 'pr': ('https://github.com/pycondor/pycondor/pull/%s', 'PR #'), 'user': ('https://github.com/%s', '@'), } # this is needed for some reason... # see https://github.com/numpy/numpydoc/issues/69 numpydoc_class_members_toctree = False # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # # source_suffix = ['.rst', '.md'] source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General information about the project. project = 'PyCondor' copyright = '2018, James Bourbeau' author = 'James Bourbeau' # 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. version = '' # The full version, including alpha/beta/rc tags. release = '' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'default' # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = False # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. html_show_sphinx = False # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. html_show_copyright = True # If true, links to the reST sources are added to the pages. html_show_sourcelink = False # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # 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'] def setup(app): app.add_stylesheet('custom.css') html_sidebars = { '**': [ 'about.html', 'localtoc.html', 'searchbox.html', ], 'index': [ 'about.html', 'localtoc.html', 'searchbox.html', ] } # -- 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 = "sphinx_rtd_theme" html_logo = "_static/logo-light-color.png" # 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 = { 'logo_only': True, 'display_version': False, 'prev_next_buttons_location': False, } # 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'] # -- Options for HTMLHelp output ------------------------------------------ # Output file base name for HTML help builder. htmlhelp_basename = 'PyCondordoc' # -- 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': '', # Latex figure (float) alignment # # 'figure_align': 'htbp', } # 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 = [ (master_doc, 'PyCondor.tex', 'PyCondor Documentation', 'James Bourbeau', 'manual'), ] # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ (master_doc, 'pycondor', 'PyCondor Documentation', [author], 1) ] # -- 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 = [ (master_doc, 'PyCondor', 'PyCondor Documentation', author, 'PyCondor', 'One line description of project.', 'Miscellaneous'), ]
{ "content_hash": "9e763bf622b9945f14b791a5f2364c62", "timestamp": "", "source": "github", "line_count": 193, "max_line_length": 79, "avg_line_length": 29.77720207253886, "alnum_prop": 0.6502523055507221, "repo_name": "jrbourbeau/pycondor", "id": "1fc1caadb65792f894ac80ea3f7cb5bed3b2315d", "size": "6431", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/conf.py", "mode": "33188", "license": "mit", "language": [ { "name": "Makefile", "bytes": "234" }, { "name": "Python", "bytes": "93321" }, { "name": "Shell", "bytes": "143" } ], "symlink_target": "" }
package iso20022 // General information about the corporate action event. type CorporateActionGeneralInformation6 struct { // Reference assigned by the account servicer to unambiguously identify a corporate action event. CorporateActionEventIdentification *Max35Text `xml:"CorpActnEvtId"` // Official and unique reference assigned by the official central body/entity within each market at the beginning of a corporate action event. OfficialCorporateActionEventIdentification *Max35Text `xml:"OffclCorpActnEvtId,omitempty"` // Type of corporate action event. EventType *CorporateActionEventType3Choice `xml:"EvtTp"` // Security concerned by the corporate action. UnderlyingSecurity *FinancialInstrumentAttributes6 `xml:"UndrlygScty,omitempty"` } func (c *CorporateActionGeneralInformation6) SetCorporateActionEventIdentification(value string) { c.CorporateActionEventIdentification = (*Max35Text)(&value) } func (c *CorporateActionGeneralInformation6) SetOfficialCorporateActionEventIdentification(value string) { c.OfficialCorporateActionEventIdentification = (*Max35Text)(&value) } func (c *CorporateActionGeneralInformation6) AddEventType() *CorporateActionEventType3Choice { c.EventType = new(CorporateActionEventType3Choice) return c.EventType } func (c *CorporateActionGeneralInformation6) AddUnderlyingSecurity() *FinancialInstrumentAttributes6 { c.UnderlyingSecurity = new(FinancialInstrumentAttributes6) return c.UnderlyingSecurity }
{ "content_hash": "934711b8b265dc4e38fb575e5b0e3d16", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 143, "avg_line_length": 41.857142857142854, "alnum_prop": 0.8341296928327645, "repo_name": "fgrid/iso20022", "id": "0519d958e5ddfd01b43c7019f1cc844bbad028a7", "size": "1465", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "CorporateActionGeneralInformation6.go", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "21383920" } ], "symlink_target": "" }
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2012-2012 The Novacoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "util.h" #include "sync.h" #include "ui_interface.h" #include "base58.h" #include "bitcoinrpc.h" #include "db.h" #undef printf #include <boost/asio.hpp> #include <boost/asio/ip/v6_only.hpp> #include <boost/bind.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <boost/iostreams/concepts.hpp> #include <boost/iostreams/stream.hpp> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <boost/asio/ssl.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/shared_ptr.hpp> #include <list> #define printf OutputDebugStringF using namespace std; using namespace boost; using namespace boost::asio; using namespace json_spirit; void ThreadRPCServer2(void* parg); static std::string strRPCUserColonPass; const Object emptyobj; void ThreadRPCServer3(void* parg); static inline unsigned short GetDefaultRPCPort() { return GetBoolArg("-testnet", false) ? 22453 : 2453; } Object JSONRPCError(int code, const string& message) { Object error; error.push_back(Pair("code", code)); error.push_back(Pair("message", message)); return error; } void RPCTypeCheck(const Array& params, const list<Value_type>& typesExpected, bool fAllowNull) { unsigned int i = 0; BOOST_FOREACH(Value_type t, typesExpected) { if (params.size() <= i) break; const Value& v = params[i]; if (!((v.type() == t) || (fAllowNull && (v.type() == null_type)))) { string err = strprintf("Expected type %s, got %s", Value_type_name[t], Value_type_name[v.type()]); throw JSONRPCError(RPC_TYPE_ERROR, err); } i++; } } void RPCTypeCheck(const Object& o, const map<string, Value_type>& typesExpected, bool fAllowNull) { BOOST_FOREACH(const PAIRTYPE(string, Value_type)& t, typesExpected) { const Value& v = find_value(o, t.first); if (!fAllowNull && v.type() == null_type) throw JSONRPCError(RPC_TYPE_ERROR, strprintf("Missing %s", t.first.c_str())); if (!((v.type() == t.second) || (fAllowNull && (v.type() == null_type)))) { string err = strprintf("Expected type %s for %s, got %s", Value_type_name[t.second], t.first.c_str(), Value_type_name[v.type()]); throw JSONRPCError(RPC_TYPE_ERROR, err); } } } int64 AmountFromValue(const Value& value) { double dAmount = value.get_real(); if (dAmount <= 0.0 || dAmount > MAX_MONEY) throw JSONRPCError(RPC_TYPE_ERROR, "Invalid amount"); int64 nAmount = roundint64(dAmount * COIN); if (!MoneyRange(nAmount)) throw JSONRPCError(RPC_TYPE_ERROR, "Invalid amount"); return nAmount; } Value ValueFromAmount(int64 amount) { return (double)amount / (double)COIN; } std::string HexBits(unsigned int nBits) { union { int32_t nBits; char cBits[4]; } uBits; uBits.nBits = htonl((int32_t)nBits); return HexStr(BEGIN(uBits.cBits), END(uBits.cBits)); } /// /// Note: This interface may still be subject to change. /// string CRPCTable::help(string strCommand) const { string strRet; set<rpcfn_type> setDone; for (map<string, const CRPCCommand*>::const_iterator mi = mapCommands.begin(); mi != mapCommands.end(); ++mi) { const CRPCCommand *pcmd = mi->second; string strMethod = mi->first; // We already filter duplicates, but these deprecated screw up the sort order if (strMethod.find("label") != string::npos) continue; if (strCommand != "" && strMethod != strCommand) continue; try { Array params; rpcfn_type pfn = pcmd->actor; if (setDone.insert(pfn).second) (*pfn)(params, true); } catch (std::exception& e) { // Help text is returned in an exception string strHelp = string(e.what()); if (strCommand == "") if (strHelp.find('\n') != string::npos) strHelp = strHelp.substr(0, strHelp.find('\n')); strRet += strHelp + "\n"; } } if (strRet == "") strRet = strprintf("help: unknown command: %s\n", strCommand.c_str()); strRet = strRet.substr(0,strRet.size()-1); return strRet; } Value help(const Array& params, bool fHelp) { if (fHelp || params.size() > 1) throw runtime_error( "help [command]\n" "List commands, or get help for a command."); string strCommand; if (params.size() > 0) strCommand = params[0].get_str(); return tableRPC.help(strCommand); } Value stop(const Array& params, bool fHelp) { if (fHelp || params.size() > 1) throw runtime_error( "stop <detach>\n" "<detach> is true or false to detach the database or not for this stop only\n" "Stop maples server (and possibly override the detachdb config value)."); // Shutdown will take long enough that the response should get back if (params.size() > 0) bitdb.SetDetach(params[0].get_bool()); StartShutdown(); return "maples server stopping"; } // // Call Table // static const CRPCCommand vRPCCommands[] = { // name function safemd unlocked // ------------------------ ----------------------- ------ -------- { "help", &help, true, true }, { "stop", &stop, true, true }, { "getblockcount", &getblockcount, true, false }, { "getconnectioncount", &getconnectioncount, true, false }, { "getpeerinfo", &getpeerinfo, true, false }, { "getdifficulty", &getdifficulty, true, false }, { "getgenerate", &getgenerate, true, false }, { "setgenerate", &setgenerate, true, false }, { "gethashespersec", &gethashespersec, true, false }, { "getinfo", &getinfo, true, false }, { "getmininginfo", &getmininginfo, true, false }, { "getnewaddress", &getnewaddress, true, false }, { "getnewpubkey", &getnewpubkey, true, false }, { "getaccountaddress", &getaccountaddress, true, false }, { "setaccount", &setaccount, true, false }, { "getaccount", &getaccount, false, false }, { "getaddressesbyaccount", &getaddressesbyaccount, true, false }, { "sendtoaddress", &sendtoaddress, false, false }, { "getreceivedbyaddress", &getreceivedbyaddress, false, false }, { "getreceivedbyaccount", &getreceivedbyaccount, false, false }, { "listreceivedbyaddress", &listreceivedbyaddress, false, false }, { "listreceivedbyaccount", &listreceivedbyaccount, false, false }, { "backupwallet", &backupwallet, true, false }, { "keypoolrefill", &keypoolrefill, true, false }, { "walletpassphrase", &walletpassphrase, true, false }, { "walletpassphrasechange", &walletpassphrasechange, false, false }, { "walletlock", &walletlock, true, false }, { "encryptwallet", &encryptwallet, false, false }, { "validateaddress", &validateaddress, true, false }, { "validatepubkey", &validatepubkey, true, false }, { "getbalance", &getbalance, false, false }, { "move", &movecmd, false, false }, { "sendfrom", &sendfrom, false, false }, { "sendmany", &sendmany, false, false }, { "addmultisigaddress", &addmultisigaddress, false, false }, { "getrawmempool", &getrawmempool, true, false }, { "getblock", &getblock, false, false }, { "getblockbynumber", &getblockbynumber, false, false }, { "getblockhash", &getblockhash, false, false }, { "gettransaction", &gettransaction, false, false }, { "listtransactions", &listtransactions, false, false }, { "listaddressgroupings", &listaddressgroupings, false, false }, { "signmessage", &signmessage, false, false }, { "verifymessage", &verifymessage, false, false }, { "getwork", &getwork, true, false }, { "getworkex", &getworkex, true, false }, { "listaccounts", &listaccounts, false, false }, { "settxfee", &settxfee, false, false }, { "getblocktemplate", &getblocktemplate, true, false }, { "submitblock", &submitblock, false, false }, { "listsinceblock", &listsinceblock, false, false }, { "dumpprivkey", &dumpprivkey, false, false }, { "importprivkey", &importprivkey, false, false }, { "listunspent", &listunspent, false, false }, { "getrawtransaction", &getrawtransaction, false, false }, { "createrawtransaction", &createrawtransaction, false, false }, { "decoderawtransaction", &decoderawtransaction, false, false }, { "signrawtransaction", &signrawtransaction, false, false }, { "sendrawtransaction", &sendrawtransaction, false, false }, { "getcheckpoint", &getcheckpoint, true, false }, { "reservebalance", &reservebalance, false, true}, { "checkwallet", &checkwallet, false, true}, { "repairwallet", &repairwallet, false, true}, { "resendtx", &resendtx, false, true}, { "makekeypair", &makekeypair, false, true}, { "sendalert", &sendalert, false, false}, }; CRPCTable::CRPCTable() { unsigned int vcidx; for (vcidx = 0; vcidx < (sizeof(vRPCCommands) / sizeof(vRPCCommands[0])); vcidx++) { const CRPCCommand *pcmd; pcmd = &vRPCCommands[vcidx]; mapCommands[pcmd->name] = pcmd; } } const CRPCCommand *CRPCTable::operator[](string name) const { map<string, const CRPCCommand*>::const_iterator it = mapCommands.find(name); if (it == mapCommands.end()) return NULL; return (*it).second; } // // HTTP protocol // // This ain't Apache. We're just using HTTP header for the length field // and to be compatible with other JSON-RPC implementations. // string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeaders) { ostringstream s; s << "POST / HTTP/1.1\r\n" << "User-Agent: maples-json-rpc/" << FormatFullVersion() << "\r\n" << "Host: 127.0.0.1\r\n" << "Content-Type: application/json\r\n" << "Content-Length: " << strMsg.size() << "\r\n" << "Connection: close\r\n" << "Accept: application/json\r\n"; BOOST_FOREACH(const PAIRTYPE(string, string)& item, mapRequestHeaders) s << item.first << ": " << item.second << "\r\n"; s << "\r\n" << strMsg; return s.str(); } string rfc1123Time() { char buffer[64]; time_t now; time(&now); struct tm* now_gmt = gmtime(&now); string locale(setlocale(LC_TIME, NULL)); setlocale(LC_TIME, "C"); // we want POSIX (aka "C") weekday/month strings strftime(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S +0000", now_gmt); setlocale(LC_TIME, locale.c_str()); return string(buffer); } static string HTTPReply(int nStatus, const string& strMsg, bool keepalive) { if (nStatus == HTTP_UNAUTHORIZED) return strprintf("HTTP/1.0 401 Authorization Required\r\n" "Date: %s\r\n" "Server: maples-json-rpc/%s\r\n" "WWW-Authenticate: Basic realm=\"jsonrpc\"\r\n" "Content-Type: text/html\r\n" "Content-Length: 296\r\n" "\r\n" "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n" "\"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\r\n" "<HTML>\r\n" "<HEAD>\r\n" "<TITLE>Error</TITLE>\r\n" "<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>\r\n" "</HEAD>\r\n" "<BODY><H1>401 Unauthorized.</H1></BODY>\r\n" "</HTML>\r\n", rfc1123Time().c_str(), FormatFullVersion().c_str()); const char *cStatus; if (nStatus == HTTP_OK) cStatus = "OK"; else if (nStatus == HTTP_BAD_REQUEST) cStatus = "Bad Request"; else if (nStatus == HTTP_FORBIDDEN) cStatus = "Forbidden"; else if (nStatus == HTTP_NOT_FOUND) cStatus = "Not Found"; else if (nStatus == HTTP_INTERNAL_SERVER_ERROR) cStatus = "Internal Server Error"; else cStatus = ""; return strprintf( "HTTP/1.1 %d %s\r\n" "Date: %s\r\n" "Connection: %s\r\n" "Content-Length: %"PRIszu"\r\n" "Content-Type: application/json\r\n" "Server: maples-json-rpc/%s\r\n" "\r\n" "%s", nStatus, cStatus, rfc1123Time().c_str(), keepalive ? "keep-alive" : "close", strMsg.size(), FormatFullVersion().c_str(), strMsg.c_str()); } int ReadHTTPStatus(std::basic_istream<char>& stream, int &proto) { string str; getline(stream, str); vector<string> vWords; boost::split(vWords, str, boost::is_any_of(" ")); if (vWords.size() < 2) return HTTP_INTERNAL_SERVER_ERROR; proto = 0; const char *ver = strstr(str.c_str(), "HTTP/1."); if (ver != NULL) proto = atoi(ver+7); return atoi(vWords[1].c_str()); } int ReadHTTPHeader(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet) { int nLen = 0; loop { string str; std::getline(stream, str); if (str.empty() || str == "\r") break; string::size_type nColon = str.find(":"); if (nColon != string::npos) { string strHeader = str.substr(0, nColon); boost::trim(strHeader); boost::to_lower(strHeader); string strValue = str.substr(nColon+1); boost::trim(strValue); mapHeadersRet[strHeader] = strValue; if (strHeader == "content-length") nLen = atoi(strValue.c_str()); } } return nLen; } int ReadHTTP(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet, string& strMessageRet) { mapHeadersRet.clear(); strMessageRet = ""; // Read status int nProto = 0; int nStatus = ReadHTTPStatus(stream, nProto); // Read header int nLen = ReadHTTPHeader(stream, mapHeadersRet); if (nLen < 0 || nLen > (int)MAX_SIZE) return HTTP_INTERNAL_SERVER_ERROR; // Read message if (nLen > 0) { vector<char> vch(nLen); stream.read(&vch[0], nLen); strMessageRet = string(vch.begin(), vch.end()); } string sConHdr = mapHeadersRet["connection"]; if ((sConHdr != "close") && (sConHdr != "keep-alive")) { if (nProto >= 1) mapHeadersRet["connection"] = "keep-alive"; else mapHeadersRet["connection"] = "close"; } return nStatus; } bool HTTPAuthorized(map<string, string>& mapHeaders) { string strAuth = mapHeaders["authorization"]; if (strAuth.substr(0,6) != "Basic ") return false; string strUserPass64 = strAuth.substr(6); boost::trim(strUserPass64); string strUserPass = DecodeBase64(strUserPass64); return strUserPass == strRPCUserColonPass; } // // JSON-RPC protocol. Bitcoin speaks version 1.0 for maximum compatibility, // but uses JSON-RPC 1.1/2.0 standards for parts of the 1.0 standard that were // unspecified (HTTP errors and contents of 'error'). // // 1.0 spec: http://json-rpc.org/wiki/specification // 1.2 spec: http://groups.google.com/group/json-rpc/web/json-rpc-over-http // http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx // string JSONRPCRequest(const string& strMethod, const Array& params, const Value& id) { Object request; request.push_back(Pair("method", strMethod)); request.push_back(Pair("params", params)); request.push_back(Pair("id", id)); return write_string(Value(request), false) + "\n"; } Object JSONRPCReplyObj(const Value& result, const Value& error, const Value& id) { Object reply; if (error.type() != null_type) reply.push_back(Pair("result", Value::null)); else reply.push_back(Pair("result", result)); reply.push_back(Pair("error", error)); reply.push_back(Pair("id", id)); return reply; } string JSONRPCReply(const Value& result, const Value& error, const Value& id) { Object reply = JSONRPCReplyObj(result, error, id); return write_string(Value(reply), false) + "\n"; } void ErrorReply(std::ostream& stream, const Object& objError, const Value& id) { // Send error reply from json-rpc error object int nStatus = HTTP_INTERNAL_SERVER_ERROR; int code = find_value(objError, "code").get_int(); if (code == RPC_INVALID_REQUEST) nStatus = HTTP_BAD_REQUEST; else if (code == RPC_METHOD_NOT_FOUND) nStatus = HTTP_NOT_FOUND; string strReply = JSONRPCReply(Value::null, objError, id); stream << HTTPReply(nStatus, strReply, false) << std::flush; } bool ClientAllowed(const boost::asio::ip::address& address) { // Make sure that IPv4-compatible and IPv4-mapped IPv6 addresses are treated as IPv4 addresses if (address.is_v6() && (address.to_v6().is_v4_compatible() || address.to_v6().is_v4_mapped())) return ClientAllowed(address.to_v6().to_v4()); if (address == asio::ip::address_v4::loopback() || address == asio::ip::address_v6::loopback() || (address.is_v4() // Check whether IPv4 addresses match 127.0.0.0/8 (loopback subnet) && (address.to_v4().to_ulong() & 0xff000000) == 0x7f000000)) return true; const string strAddress = address.to_string(); const vector<string>& vAllow = mapMultiArgs["-rpcallowip"]; BOOST_FOREACH(string strAllow, vAllow) if (WildcardMatch(strAddress, strAllow)) return true; return false; } // // IOStream device that speaks SSL but can also speak non-SSL // template <typename Protocol> class SSLIOStreamDevice : public iostreams::device<iostreams::bidirectional> { public: SSLIOStreamDevice(asio::ssl::stream<typename Protocol::socket> &streamIn, bool fUseSSLIn) : stream(streamIn) { fUseSSL = fUseSSLIn; fNeedHandshake = fUseSSLIn; } void handshake(ssl::stream_base::handshake_type role) { if (!fNeedHandshake) return; fNeedHandshake = false; stream.handshake(role); } std::streamsize read(char* s, std::streamsize n) { handshake(ssl::stream_base::server); // HTTPS servers read first if (fUseSSL) return stream.read_some(asio::buffer(s, n)); return stream.next_layer().read_some(asio::buffer(s, n)); } std::streamsize write(const char* s, std::streamsize n) { handshake(ssl::stream_base::client); // HTTPS clients write first if (fUseSSL) return asio::write(stream, asio::buffer(s, n)); return asio::write(stream.next_layer(), asio::buffer(s, n)); } bool connect(const std::string& server, const std::string& port) { ip::tcp::resolver resolver(stream.get_io_service()); ip::tcp::resolver::query query(server.c_str(), port.c_str()); ip::tcp::resolver::iterator endpoint_iterator = resolver.resolve(query); ip::tcp::resolver::iterator end; boost::system::error_code error = asio::error::host_not_found; while (error && endpoint_iterator != end) { stream.lowest_layer().close(); stream.lowest_layer().connect(*endpoint_iterator++, error); } if (error) return false; return true; } private: bool fNeedHandshake; bool fUseSSL; asio::ssl::stream<typename Protocol::socket>& stream; }; class AcceptedConnection { public: virtual ~AcceptedConnection() {} virtual std::iostream& stream() = 0; virtual std::string peer_address_to_string() const = 0; virtual void close() = 0; }; template <typename Protocol> class AcceptedConnectionImpl : public AcceptedConnection { public: AcceptedConnectionImpl( asio::io_service& io_service, ssl::context &context, bool fUseSSL) : sslStream(io_service, context), _d(sslStream, fUseSSL), _stream(_d) { } virtual std::iostream& stream() { return _stream; } virtual std::string peer_address_to_string() const { return peer.address().to_string(); } virtual void close() { _stream.close(); } typename Protocol::endpoint peer; asio::ssl::stream<typename Protocol::socket> sslStream; private: SSLIOStreamDevice<Protocol> _d; iostreams::stream< SSLIOStreamDevice<Protocol> > _stream; }; void ThreadRPCServer(void* parg) { // Make this thread recognisable as the RPC listener RenameThread("bitcoin-rpclist"); try { vnThreadsRunning[THREAD_RPCLISTENER]++; ThreadRPCServer2(parg); vnThreadsRunning[THREAD_RPCLISTENER]--; } catch (std::exception& e) { vnThreadsRunning[THREAD_RPCLISTENER]--; PrintException(&e, "ThreadRPCServer()"); } catch (...) { vnThreadsRunning[THREAD_RPCLISTENER]--; PrintException(NULL, "ThreadRPCServer()"); } printf("ThreadRPCServer exited\n"); } // Forward declaration required for RPCListen template <typename Protocol, typename SocketAcceptorService> static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor, ssl::context& context, bool fUseSSL, AcceptedConnection* conn, const boost::system::error_code& error); /** * Sets up I/O resources to accept and handle a new connection. */ template <typename Protocol, typename SocketAcceptorService> static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor, ssl::context& context, const bool fUseSSL) { // Accept connection AcceptedConnectionImpl<Protocol>* conn = new AcceptedConnectionImpl<Protocol>(acceptor->get_io_service(), context, fUseSSL); acceptor->async_accept( conn->sslStream.lowest_layer(), conn->peer, boost::bind(&RPCAcceptHandler<Protocol, SocketAcceptorService>, acceptor, boost::ref(context), fUseSSL, conn, boost::asio::placeholders::error)); } /** * Accept and handle incoming connection. */ template <typename Protocol, typename SocketAcceptorService> static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor, ssl::context& context, const bool fUseSSL, AcceptedConnection* conn, const boost::system::error_code& error) { vnThreadsRunning[THREAD_RPCLISTENER]++; // Immediately start accepting new connections, except when we're cancelled or our socket is closed. if (error != asio::error::operation_aborted && acceptor->is_open()) RPCListen(acceptor, context, fUseSSL); AcceptedConnectionImpl<ip::tcp>* tcp_conn = dynamic_cast< AcceptedConnectionImpl<ip::tcp>* >(conn); // TODO: Actually handle errors if (error) { delete conn; } // Restrict callers by IP. It is important to // do this before starting client thread, to filter out // certain DoS and misbehaving clients. else if (tcp_conn && !ClientAllowed(tcp_conn->peer.address())) { // Only send a 403 if we're not using SSL to prevent a DoS during the SSL handshake. if (!fUseSSL) conn->stream() << HTTPReply(HTTP_FORBIDDEN, "", false) << std::flush; delete conn; } // start HTTP client thread else if (!NewThread(ThreadRPCServer3, conn)) { printf("Failed to create RPC server client thread\n"); delete conn; } vnThreadsRunning[THREAD_RPCLISTENER]--; } void ThreadRPCServer2(void* parg) { printf("ThreadRPCServer started\n"); strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]; if (mapArgs["-rpcpassword"] == "") { unsigned char rand_pwd[32]; RAND_bytes(rand_pwd, 32); string strWhatAmI = "To use maplesd"; if (mapArgs.count("-server")) strWhatAmI = strprintf(_("To use the %s option"), "\"-server\""); else if (mapArgs.count("-daemon")) strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\""); uiInterface.ThreadSafeMessageBox(strprintf( _("%s, you must set a rpcpassword in the configuration file:\n %s\n" "It is recommended you use the following random password:\n" "rpcuser=bitcoinrpc\n" "rpcpassword=%s\n" "(you do not need to remember this password)\n" "If the file does not exist, create it with owner-readable-only file permissions.\n"), strWhatAmI.c_str(), GetConfigFile().string().c_str(), EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()), _("Error"), CClientUIInterface::OK | CClientUIInterface::MODAL); StartShutdown(); return; } const bool fUseSSL = GetBoolArg("-rpcssl"); asio::io_service io_service; ssl::context context(io_service, ssl::context::sslv23); if (fUseSSL) { context.set_options(ssl::context::no_sslv2); filesystem::path pathCertFile(GetArg("-rpcsslcertificatechainfile", "server.cert")); if (!pathCertFile.is_complete()) pathCertFile = filesystem::path(GetDataDir()) / pathCertFile; if (filesystem::exists(pathCertFile)) context.use_certificate_chain_file(pathCertFile.string()); else printf("ThreadRPCServer ERROR: missing server certificate file %s\n", pathCertFile.string().c_str()); filesystem::path pathPKFile(GetArg("-rpcsslprivatekeyfile", "server.pem")); if (!pathPKFile.is_complete()) pathPKFile = filesystem::path(GetDataDir()) / pathPKFile; if (filesystem::exists(pathPKFile)) context.use_private_key_file(pathPKFile.string(), ssl::context::pem); else printf("ThreadRPCServer ERROR: missing server private key file %s\n", pathPKFile.string().c_str()); string strCiphers = GetArg("-rpcsslciphers", "TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH"); SSL_CTX_set_cipher_list(context.impl(), strCiphers.c_str()); } // Try a dual IPv6/IPv4 socket, falling back to separate IPv4 and IPv6 sockets const bool loopback = !mapArgs.count("-rpcallowip"); asio::ip::address bindAddress = loopback ? asio::ip::address_v6::loopback() : asio::ip::address_v6::any(); ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", GetDefaultRPCPort())); boost::system::error_code v6_only_error; boost::shared_ptr<ip::tcp::acceptor> acceptor(new ip::tcp::acceptor(io_service)); boost::signals2::signal<void ()> StopRequests; bool fListening = false; std::string strerr; try { acceptor->open(endpoint.protocol()); acceptor->set_option(boost::asio::ip::tcp::acceptor::reuse_address(true)); // Try making the socket dual IPv6/IPv4 (if listening on the "any" address) acceptor->set_option(boost::asio::ip::v6_only(loopback), v6_only_error); acceptor->bind(endpoint); acceptor->listen(socket_base::max_connections); RPCListen(acceptor, context, fUseSSL); // Cancel outstanding listen-requests for this acceptor when shutting down StopRequests.connect(signals2::slot<void ()>( static_cast<void (ip::tcp::acceptor::*)()>(&ip::tcp::acceptor::close), acceptor.get()) .track(acceptor)); fListening = true; } catch(boost::system::system_error &e) { strerr = strprintf(_("An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s"), endpoint.port(), e.what()); } try { // If dual IPv6/IPv4 failed (or we're opening loopback interfaces only), open IPv4 separately if (!fListening || loopback || v6_only_error) { bindAddress = loopback ? asio::ip::address_v4::loopback() : asio::ip::address_v4::any(); endpoint.address(bindAddress); acceptor.reset(new ip::tcp::acceptor(io_service)); acceptor->open(endpoint.protocol()); acceptor->set_option(boost::asio::ip::tcp::acceptor::reuse_address(true)); acceptor->bind(endpoint); acceptor->listen(socket_base::max_connections); RPCListen(acceptor, context, fUseSSL); // Cancel outstanding listen-requests for this acceptor when shutting down StopRequests.connect(signals2::slot<void ()>( static_cast<void (ip::tcp::acceptor::*)()>(&ip::tcp::acceptor::close), acceptor.get()) .track(acceptor)); fListening = true; } } catch(boost::system::system_error &e) { strerr = strprintf(_("An error occurred while setting up the RPC port %u for listening on IPv4: %s"), endpoint.port(), e.what()); } if (!fListening) { uiInterface.ThreadSafeMessageBox(strerr, _("Error"), CClientUIInterface::OK | CClientUIInterface::MODAL); StartShutdown(); return; } vnThreadsRunning[THREAD_RPCLISTENER]--; while (!fShutdown) io_service.run_one(); vnThreadsRunning[THREAD_RPCLISTENER]++; StopRequests(); } class JSONRequest { public: Value id; string strMethod; Array params; JSONRequest() { id = Value::null; } void parse(const Value& valRequest); }; void JSONRequest::parse(const Value& valRequest) { // Parse request if (valRequest.type() != obj_type) throw JSONRPCError(RPC_INVALID_REQUEST, "Invalid Request object"); const Object& request = valRequest.get_obj(); // Parse id now so errors from here on will have the id id = find_value(request, "id"); // Parse method Value valMethod = find_value(request, "method"); if (valMethod.type() == null_type) throw JSONRPCError(RPC_INVALID_REQUEST, "Missing method"); if (valMethod.type() != str_type) throw JSONRPCError(RPC_INVALID_REQUEST, "Method must be a string"); strMethod = valMethod.get_str(); if (strMethod != "getwork" && strMethod != "getblocktemplate") printf("ThreadRPCServer method=%s\n", strMethod.c_str()); // Parse params Value valParams = find_value(request, "params"); if (valParams.type() == array_type) params = valParams.get_array(); else if (valParams.type() == null_type) params = Array(); else throw JSONRPCError(RPC_INVALID_REQUEST, "Params must be an array"); } static Object JSONRPCExecOne(const Value& req) { Object rpc_result; JSONRequest jreq; try { jreq.parse(req); Value result = tableRPC.execute(jreq.strMethod, jreq.params); rpc_result = JSONRPCReplyObj(result, Value::null, jreq.id); } catch (Object& objError) { rpc_result = JSONRPCReplyObj(Value::null, objError, jreq.id); } catch (std::exception& e) { rpc_result = JSONRPCReplyObj(Value::null, JSONRPCError(RPC_PARSE_ERROR, e.what()), jreq.id); } return rpc_result; } static string JSONRPCExecBatch(const Array& vReq) { Array ret; for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++) ret.push_back(JSONRPCExecOne(vReq[reqIdx])); return write_string(Value(ret), false) + "\n"; } static CCriticalSection cs_THREAD_RPCHANDLER; void ThreadRPCServer3(void* parg) { // Make this thread recognisable as the RPC handler RenameThread("bitcoin-rpchand"); { LOCK(cs_THREAD_RPCHANDLER); vnThreadsRunning[THREAD_RPCHANDLER]++; } AcceptedConnection *conn = (AcceptedConnection *) parg; bool fRun = true; loop { if (fShutdown || !fRun) { conn->close(); delete conn; { LOCK(cs_THREAD_RPCHANDLER); --vnThreadsRunning[THREAD_RPCHANDLER]; } return; } map<string, string> mapHeaders; string strRequest; ReadHTTP(conn->stream(), mapHeaders, strRequest); // Check authorization if (mapHeaders.count("authorization") == 0) { conn->stream() << HTTPReply(HTTP_UNAUTHORIZED, "", false) << std::flush; break; } if (!HTTPAuthorized(mapHeaders)) { printf("ThreadRPCServer incorrect password attempt from %s\n", conn->peer_address_to_string().c_str()); /* Deter brute-forcing short passwords. If this results in a DOS the user really shouldn't have their RPC port exposed.*/ if (mapArgs["-rpcpassword"].size() < 20) Sleep(250); conn->stream() << HTTPReply(HTTP_UNAUTHORIZED, "", false) << std::flush; break; } if (mapHeaders["connection"] == "close") fRun = false; JSONRequest jreq; try { // Parse request Value valRequest; if (!read_string(strRequest, valRequest)) throw JSONRPCError(RPC_PARSE_ERROR, "Parse error"); string strReply; // singleton request if (valRequest.type() == obj_type) { jreq.parse(valRequest); Value result = tableRPC.execute(jreq.strMethod, jreq.params); // Send reply strReply = JSONRPCReply(result, Value::null, jreq.id); // array of requests } else if (valRequest.type() == array_type) strReply = JSONRPCExecBatch(valRequest.get_array()); else throw JSONRPCError(RPC_PARSE_ERROR, "Top-level object parse error"); conn->stream() << HTTPReply(HTTP_OK, strReply, fRun) << std::flush; } catch (Object& objError) { ErrorReply(conn->stream(), objError, jreq.id); break; } catch (std::exception& e) { ErrorReply(conn->stream(), JSONRPCError(RPC_PARSE_ERROR, e.what()), jreq.id); break; } } delete conn; { LOCK(cs_THREAD_RPCHANDLER); vnThreadsRunning[THREAD_RPCHANDLER]--; } } json_spirit::Value CRPCTable::execute(const std::string &strMethod, const json_spirit::Array &params) const { // Find method const CRPCCommand *pcmd = tableRPC[strMethod]; if (!pcmd) throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found"); // Observe safe mode string strWarning = GetWarnings("rpc"); if (strWarning != "" && !GetBoolArg("-disablesafemode") && !pcmd->okSafeMode) throw JSONRPCError(RPC_FORBIDDEN_BY_SAFE_MODE, string("Safe mode: ") + strWarning); try { // Execute Value result; { if (pcmd->unlocked) result = pcmd->actor(params, false); else { LOCK2(cs_main, pwalletMain->cs_wallet); result = pcmd->actor(params, false); } } return result; } catch (std::exception& e) { throw JSONRPCError(RPC_MISC_ERROR, e.what()); } } Object CallRPC(const string& strMethod, const Array& params) { if (mapArgs["-rpcuser"] == "" && mapArgs["-rpcpassword"] == "") throw runtime_error(strprintf( _("You must set rpcpassword=<password> in the configuration file:\n%s\n" "If the file does not exist, create it with owner-readable-only file permissions."), GetConfigFile().string().c_str())); // Connect to localhost bool fUseSSL = GetBoolArg("-rpcssl"); asio::io_service io_service; ssl::context context(io_service, ssl::context::sslv23); context.set_options(ssl::context::no_sslv2); asio::ssl::stream<asio::ip::tcp::socket> sslStream(io_service, context); SSLIOStreamDevice<asio::ip::tcp> d(sslStream, fUseSSL); iostreams::stream< SSLIOStreamDevice<asio::ip::tcp> > stream(d); if (!d.connect(GetArg("-rpcconnect", "127.0.0.1"), GetArg("-rpcport", itostr(GetDefaultRPCPort())))) throw runtime_error("couldn't connect to server"); // HTTP basic authentication string strUserPass64 = EncodeBase64(mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]); map<string, string> mapRequestHeaders; mapRequestHeaders["Authorization"] = string("Basic ") + strUserPass64; // Send request string strRequest = JSONRPCRequest(strMethod, params, 1); string strPost = HTTPPost(strRequest, mapRequestHeaders); stream << strPost << std::flush; // Receive reply map<string, string> mapHeaders; string strReply; int nStatus = ReadHTTP(stream, mapHeaders, strReply); if (nStatus == HTTP_UNAUTHORIZED) throw runtime_error("incorrect rpcuser or rpcpassword (authorization failed)"); else if (nStatus >= 400 && nStatus != HTTP_BAD_REQUEST && nStatus != HTTP_NOT_FOUND && nStatus != HTTP_INTERNAL_SERVER_ERROR) throw runtime_error(strprintf("server returned HTTP error %d", nStatus)); else if (strReply.empty()) throw runtime_error("no response from server"); // Parse reply Value valReply; if (!read_string(strReply, valReply)) throw runtime_error("couldn't parse reply from server"); const Object& reply = valReply.get_obj(); if (reply.empty()) throw runtime_error("expected reply to have result, error and id properties"); return reply; } template<typename T> void ConvertTo(Value& value, bool fAllowNull=false) { if (fAllowNull && value.type() == null_type) return; if (value.type() == str_type) { // reinterpret string as unquoted json value Value value2; string strJSON = value.get_str(); if (!read_string(strJSON, value2)) throw runtime_error(string("Error parsing JSON:")+strJSON); ConvertTo<T>(value2, fAllowNull); value = value2; } else { value = value.get_value<T>(); } } // Convert strings to command-specific RPC representation Array RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams) { Array params; BOOST_FOREACH(const std::string &param, strParams) params.push_back(param); int n = params.size(); // // Special case non-string parameter types // if (strMethod == "stop" && n > 0) ConvertTo<bool>(params[0]); if (strMethod == "setgenerate" && n > 0) ConvertTo<bool>(params[0]); if (strMethod == "setgenerate" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "sendtoaddress" && n > 1) ConvertTo<double>(params[1]); if (strMethod == "settxfee" && n > 0) ConvertTo<double>(params[0]); if (strMethod == "getreceivedbyaddress" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "getreceivedbyaccount" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "listreceivedbyaddress" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "listreceivedbyaddress" && n > 1) ConvertTo<bool>(params[1]); if (strMethod == "listreceivedbyaccount" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "listreceivedbyaccount" && n > 1) ConvertTo<bool>(params[1]); if (strMethod == "getbalance" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "getblock" && n > 1) ConvertTo<bool>(params[1]); if (strMethod == "getblockbynumber" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "getblockbynumber" && n > 1) ConvertTo<bool>(params[1]); if (strMethod == "getblockhash" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "move" && n > 2) ConvertTo<double>(params[2]); if (strMethod == "move" && n > 3) ConvertTo<boost::int64_t>(params[3]); if (strMethod == "sendfrom" && n > 2) ConvertTo<double>(params[2]); if (strMethod == "sendfrom" && n > 3) ConvertTo<boost::int64_t>(params[3]); if (strMethod == "listtransactions" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "listtransactions" && n > 2) ConvertTo<boost::int64_t>(params[2]); if (strMethod == "listaccounts" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "walletpassphrase" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "walletpassphrase" && n > 2) ConvertTo<bool>(params[2]); if (strMethod == "getblocktemplate" && n > 0) ConvertTo<Object>(params[0]); if (strMethod == "listsinceblock" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "sendmany" && n > 1) ConvertTo<Object>(params[1]); if (strMethod == "sendmany" && n > 2) ConvertTo<boost::int64_t>(params[2]); if (strMethod == "reservebalance" && n > 0) ConvertTo<bool>(params[0]); if (strMethod == "reservebalance" && n > 1) ConvertTo<double>(params[1]); if (strMethod == "addmultisigaddress" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "addmultisigaddress" && n > 1) ConvertTo<Array>(params[1]); if (strMethod == "listunspent" && n > 0) ConvertTo<boost::int64_t>(params[0]); if (strMethod == "listunspent" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "listunspent" && n > 2) ConvertTo<Array>(params[2]); if (strMethod == "getrawtransaction" && n > 1) ConvertTo<boost::int64_t>(params[1]); if (strMethod == "createrawtransaction" && n > 0) ConvertTo<Array>(params[0]); if (strMethod == "createrawtransaction" && n > 1) ConvertTo<Object>(params[1]); if (strMethod == "signrawtransaction" && n > 1) ConvertTo<Array>(params[1], true); if (strMethod == "signrawtransaction" && n > 2) ConvertTo<Array>(params[2], true); return params; } int CommandLineRPC(int argc, char *argv[]) { string strPrint; int nRet = 0; try { // Skip switches while (argc > 1 && IsSwitchChar(argv[1][0])) { argc--; argv++; } // Method if (argc < 2) throw runtime_error("too few parameters"); string strMethod = argv[1]; // Parameters default to strings std::vector<std::string> strParams(&argv[2], &argv[argc]); Array params = RPCConvertValues(strMethod, strParams); // Execute Object reply = CallRPC(strMethod, params); // Parse reply const Value& result = find_value(reply, "result"); const Value& error = find_value(reply, "error"); if (error.type() != null_type) { // Error strPrint = "error: " + write_string(error, false); int code = find_value(error.get_obj(), "code").get_int(); nRet = abs(code); } else { // Result if (result.type() == null_type) strPrint = ""; else if (result.type() == str_type) strPrint = result.get_str(); else strPrint = write_string(result, true); } } catch (std::exception& e) { strPrint = string("error: ") + e.what(); nRet = 87; } catch (...) { PrintException(NULL, "CommandLineRPC()"); } if (strPrint != "") { fprintf((nRet == 0 ? stdout : stderr), "%s\n", strPrint.c_str()); } return nRet; } #ifdef TEST int main(int argc, char *argv[]) { #ifdef _MSC_VER // Turn off Microsoft heap dump noise _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); _CrtSetReportFile(_CRT_WARN, CreateFile("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0)); #endif setbuf(stdin, NULL); setbuf(stdout, NULL); setbuf(stderr, NULL); try { if (argc >= 2 && string(argv[1]) == "-server") { printf("server ready\n"); ThreadRPCServer(NULL); } else { return CommandLineRPC(argc, argv); } } catch (std::exception& e) { PrintException(&e, "main()"); } catch (...) { PrintException(NULL, "main()"); } return 0; } #endif const CRPCTable tableRPC;
{ "content_hash": "895e63dbe450f4dbe2f3e24ed8738a54", "timestamp": "", "source": "github", "line_count": 1290, "max_line_length": 159, "avg_line_length": 35.83410852713178, "alnum_prop": 0.5844330030718643, "repo_name": "auscoin/maples", "id": "a70f2db2b70d8064d3880396272b9f8cc2c13d40", "size": "46226", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/bitcoinrpc.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "61562" }, { "name": "C", "bytes": "46151" }, { "name": "C++", "bytes": "1589967" }, { "name": "Objective-C", "bytes": "2451" }, { "name": "Prolog", "bytes": "12027" }, { "name": "Python", "bytes": "2819" }, { "name": "Shell", "bytes": "1026" }, { "name": "TypeScript", "bytes": "232292" } ], "symlink_target": "" }
class InxType(InteractionType): def __init__(self, inx_attr=None): super().__init__(attr_dict=inx_attrs) _feature_families = INX_FEATURE_FAMILIES feature_families = _feature_families _feature1_key = 'Key1' _feature2_key = 'Key2' _feature_types = INX_FEATURE_TYPES feature_type = _feature_types def __repr__(self): return str(self.__class__) @classmethod def find_hits(cls, **kwargs): """Takes in key-word arguments for the features. """ from itertools import product # check that the keys ar okay in parent class super().find_hits(**kwargs) # inx specific stuff feature1 = kwargs[cls._feature1_key] feature2 = kwargs[cls._feature2_key] hits = [] # make pairs of them to compare pairs = product(feature1, feature2) for pair in pairs: features = feature_dict(pair) # try to make a Inx object, which calls check try: # if it succeeds add it to the list of H-Bonds inx = Inx(**features) # else continue to the next pairing except InteractionError: continue hits.append(inx) return hits @classmethod def check(cls, feature1=None, feature2=None): """Check if the input features qualify for this type of interaction. returns (okay, param1, param2,...)""" param1 = calc_param1(feature1, feature2) if cls.check_param1(param1) is False: return (False, param1, None) param2 = calc_param2(feature1, feature2) if cls.check_param2(param2) is False: return (False, param1, param2) return (True, param1, param2) @classmethod def check_param1(cls, param1): if True: return True else: return False @classmethod def check_param2(cls, param2): if True: return True else: return False class Inx(Interaction): """Interaction that has type InxType. """ def __init__(self, feature1=None, feature2=None): okay, param1, param2 = InxType.check(feature1, feature2) if not okay: if param2 is None: raise InteractionError( """feature1: {0} feature2: {1} param1 = {2} FAILED param2 = not calculated""".format(feature1, feature2, param1)) else: raise InteractionError( """feature1: {0} feature2: {1} param1: {2} param2 = {3} FAILED """.format(feature1, feature2, param1, param2)) # success, finish creating interaction # TODO generalize system = feature1.system super().__init__(members=[feature1, feature2], interaction_type=InxType, system=system) self._interaction_type = InxType self._feature1 = feature1 self._feature2 = feature2 self._param1 = param1 self._param2 = param2 @property def feature1(self): return self._feature1 @property def feature2(self): return self._feature2 @property def param1(self): return self._param1 @property def param2(self): return self._param2
{ "content_hash": "9b8720b5caa312245b5e9eecdd317b40", "timestamp": "", "source": "github", "line_count": 125, "max_line_length": 82, "avg_line_length": 27.096, "alnum_prop": 0.5603779155594921, "repo_name": "salotz/mast", "id": "3802ecb4296a788e0d3e284c31e74dcc9701f0f8", "size": "3387", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "mastic/templates.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "319934" }, { "name": "Tcl", "bytes": "828" } ], "symlink_target": "" }
/* eslint-disable */ ;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD define(['Blockly'], factory); } else if (typeof exports === 'object') { // Node.js module.exports = factory(); } else { // Browser var messages = factory(); for (var key in messages) { root.Blockly.Msg[key] = messages[key]; } } }(this, function() { // This file was automatically generated. Do not modify. 'use strict'; const messages = Object.create(null); messages["ADD_COMMENT"] = "ርኢቶ ሃብ"; messages["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'"; // untranslated messages["CHANGE_VALUE_TITLE"] = "ዋጋ ቀይር"; messages["CLEAN_UP"] = "ሳንዱቅ ፅረግ"; messages["COLLAPSED_WARNINGS_WARNING"] = "Collapsed blocks contain warnings."; // untranslated messages["COLLAPSE_ALL"] = "ሳንዱቃት ኣንእስ"; messages["COLLAPSE_BLOCK"] = "ሳንዱቅ ኣንእስ"; messages["COLOUR_BLEND_COLOUR1"] = "ሕብሪ 1"; messages["COLOUR_BLEND_COLOUR2"] = "ሕብሪ 2"; messages["COLOUR_BLEND_HELPURL"] = "https://meyerweb.com/eric/tools/color-blend/#:::rgbp"; // untranslated messages["COLOUR_BLEND_RATIO"] = "መጠን"; messages["COLOUR_BLEND_TITLE"] = "ዕፀፍ"; messages["COLOUR_BLEND_TOOLTIP"] = "Blends two colours together with a given ratio (0.0 - 1.0)."; // untranslated messages["COLOUR_PICKER_HELPURL"] = "https://en.wikipedia.org/wiki/Color"; // untranslated messages["COLOUR_PICKER_TOOLTIP"] = "Choose a colour from the palette."; // untranslated messages["COLOUR_RANDOM_HELPURL"] = "http://randomcolour.com"; // untranslated messages["COLOUR_RANDOM_TITLE"] = "ግምታዊ ሕብሪ"; messages["COLOUR_RANDOM_TOOLTIP"] = "ብግምት ሕብሪ ምረፅ"; messages["COLOUR_RGB_BLUE"] = "ሰማያዊ"; messages["COLOUR_RGB_GREEN"] = "ሓምለዋይ"; messages["COLOUR_RGB_HELPURL"] = "https://www.december.com/html/spec/colorpercompact.html"; // untranslated messages["COLOUR_RGB_RED"] = "ቀይሕ"; messages["COLOUR_RGB_TITLE"] = "በዚ ቀልም"; messages["COLOUR_RGB_TOOLTIP"] = "በቶም ዝተገለፁ መጠናት ቀይሕ፣ ሓምለዋይን ሰማያውን ሕብሪ ፍጠር። ኩሎም ዋጋታት ኣብ መንጎ 0ን 100ን ክኾኑ ኣለዎም።"; messages["CONTROLS_FLOW_STATEMENTS_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#loop-termination-blocks"; // untranslated messages["CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK"] = "break out of loop"; // untranslated messages["CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE"] = "continue with next iteration of loop"; // untranslated messages["CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK"] = "Break out of the containing loop."; // untranslated messages["CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE"] = "Skip the rest of this loop, and continue with the next iteration."; // untranslated messages["CONTROLS_FLOW_STATEMENTS_WARNING"] = "Warning: This block may only be used within a loop."; // untranslated messages["CONTROLS_FOREACH_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#for-each"; // untranslated messages["CONTROLS_FOREACH_TITLE"] = "for each item %1 in list %2"; // untranslated messages["CONTROLS_FOREACH_TOOLTIP"] = "For each item in a list, set the variable '%1' to the item, and then do some statements."; // untranslated messages["CONTROLS_FOR_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#count-with"; // untranslated messages["CONTROLS_FOR_TITLE"] = "count with %1 from %2 to %3 by %4"; // untranslated messages["CONTROLS_FOR_TOOLTIP"] = "Have the variable '%1' take on the values from the start number to the end number, counting by the specified interval, and do the specified blocks."; // untranslated messages["CONTROLS_IF_ELSEIF_TOOLTIP"] = "Add a condition to the if block."; // untranslated messages["CONTROLS_IF_ELSE_TOOLTIP"] = "Add a final, catch-all condition to the if block."; // untranslated messages["CONTROLS_IF_HELPURL"] = "https://github.com/google/blockly/wiki/IfElse"; // untranslated messages["CONTROLS_IF_IF_TOOLTIP"] = "Add, remove, or reorder sections to reconfigure this if block."; // untranslated messages["CONTROLS_IF_MSG_ELSE"] = "else"; // untranslated messages["CONTROLS_IF_MSG_ELSEIF"] = "else if"; // untranslated messages["CONTROLS_IF_MSG_IF"] = "if"; // untranslated messages["CONTROLS_IF_TOOLTIP_1"] = "If a value is true, then do some statements."; // untranslated messages["CONTROLS_IF_TOOLTIP_2"] = "If a value is true, then do the first block of statements. Otherwise, do the second block of statements."; // untranslated messages["CONTROLS_IF_TOOLTIP_3"] = "If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements."; // untranslated messages["CONTROLS_IF_TOOLTIP_4"] = "If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements. If none of the values are true, do the last block of statements."; // untranslated messages["CONTROLS_REPEAT_HELPURL"] = "https://en.wikipedia.org/wiki/For_loop"; // untranslated messages["CONTROLS_REPEAT_INPUT_DO"] = "ስራሕ"; messages["CONTROLS_REPEAT_TITLE"] = "repeat %1 times"; // untranslated messages["CONTROLS_REPEAT_TOOLTIP"] = "Do some statements several times."; // untranslated messages["CONTROLS_WHILEUNTIL_HELPURL"] = "https://github.com/google/blockly/wiki/Loops#repeat"; // untranslated messages["CONTROLS_WHILEUNTIL_OPERATOR_UNTIL"] = "repeat until"; // untranslated messages["CONTROLS_WHILEUNTIL_OPERATOR_WHILE"] = "repeat while"; // untranslated messages["CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL"] = "While a value is false, then do some statements."; // untranslated messages["CONTROLS_WHILEUNTIL_TOOLTIP_WHILE"] = "While a value is true, then do some statements."; // untranslated messages["DELETE_ALL_BLOCKS"] = "Delete all %1 blocks?"; // untranslated messages["DELETE_BLOCK"] = "ሳንዱቅ ኣወግድ"; messages["DELETE_VARIABLE"] = "Delete the '%1' variable"; // untranslated messages["DELETE_VARIABLE_CONFIRMATION"] = "Delete %1 uses of the '%2' variable?"; // untranslated messages["DELETE_X_BLOCKS"] = "Delete %1 Blocks"; // untranslated messages["DIALOG_CANCEL"] = "ኣትርፍ"; messages["DIALOG_OK"] = "ሕራይ"; messages["DISABLE_BLOCK"] = "ሳንዱቅ ኣልምስ"; messages["DUPLICATE_BLOCK"] = "ደጋግም"; messages["DUPLICATE_COMMENT"] = "ርኢቶ ድገም"; messages["ENABLE_BLOCK"] = "ሳንዱቅ ኣክእል"; messages["EXPAND_ALL"] = "ሳንዱቃት ዘርግሕ"; messages["EXPAND_BLOCK"] = "ሳንዱቅ ዘርግሕ"; messages["EXTERNAL_INPUTS"] = "ናይ ደገ እታወታት"; messages["HELP"] = "ሓገዝ"; messages["INLINE_INPUTS"] = "መስመራዊ እታወታት"; messages["LISTS_CREATE_EMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-empty-list"; // untranslated messages["LISTS_CREATE_EMPTY_TITLE"] = "create empty list"; // untranslated messages["LISTS_CREATE_EMPTY_TOOLTIP"] = "Returns a list, of length 0, containing no data records"; // untranslated messages["LISTS_CREATE_WITH_CONTAINER_TITLE_ADD"] = "list"; // untranslated messages["LISTS_CREATE_WITH_CONTAINER_TOOLTIP"] = "Add, remove, or reorder sections to reconfigure this list block."; // untranslated messages["LISTS_CREATE_WITH_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated messages["LISTS_CREATE_WITH_INPUT_WITH"] = "create list with"; // untranslated messages["LISTS_CREATE_WITH_ITEM_TOOLTIP"] = "Add an item to the list."; // untranslated messages["LISTS_CREATE_WITH_TOOLTIP"] = "Create a list with any number of items."; // untranslated messages["LISTS_GET_INDEX_FIRST"] = "first"; // untranslated messages["LISTS_GET_INDEX_FROM_END"] = "# from end"; // untranslated messages["LISTS_GET_INDEX_FROM_START"] = "#"; // untranslated messages["LISTS_GET_INDEX_GET"] = "get"; // untranslated messages["LISTS_GET_INDEX_GET_REMOVE"] = "get and remove"; // untranslated messages["LISTS_GET_INDEX_LAST"] = "last"; // untranslated messages["LISTS_GET_INDEX_RANDOM"] = "ሃውራዊ"; messages["LISTS_GET_INDEX_REMOVE"] = "remove"; // untranslated messages["LISTS_GET_INDEX_TAIL"] = ""; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_FIRST"] = "Returns the first item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_FROM"] = "Returns the item at the specified position in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_LAST"] = "Returns the last item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_RANDOM"] = "Returns a random item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST"] = "Removes and returns the first item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM"] = "Removes and returns the item at the specified position in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST"] = "Removes and returns the last item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM"] = "Removes and returns a random item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST"] = "Removes the first item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM"] = "Removes the item at the specified position in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST"] = "Removes the last item in a list."; // untranslated messages["LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM"] = "Removes a random item in a list."; // untranslated messages["LISTS_GET_SUBLIST_END_FROM_END"] = "to # from end"; // untranslated messages["LISTS_GET_SUBLIST_END_FROM_START"] = "to #"; // untranslated messages["LISTS_GET_SUBLIST_END_LAST"] = "to last"; // untranslated messages["LISTS_GET_SUBLIST_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-a-sublist"; // untranslated messages["LISTS_GET_SUBLIST_START_FIRST"] = "get sub-list from first"; // untranslated messages["LISTS_GET_SUBLIST_START_FROM_END"] = "get sub-list from # from end"; // untranslated messages["LISTS_GET_SUBLIST_START_FROM_START"] = "get sub-list from #"; // untranslated messages["LISTS_GET_SUBLIST_TAIL"] = ""; // untranslated messages["LISTS_GET_SUBLIST_TOOLTIP"] = "Creates a copy of the specified portion of a list."; // untranslated messages["LISTS_INDEX_FROM_END_TOOLTIP"] = "%1 is the last item."; // untranslated messages["LISTS_INDEX_FROM_START_TOOLTIP"] = "%1 is the first item."; // untranslated messages["LISTS_INDEX_OF_FIRST"] = "find first occurrence of item"; // untranslated messages["LISTS_INDEX_OF_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list"; // untranslated messages["LISTS_INDEX_OF_LAST"] = "find last occurrence of item"; // untranslated messages["LISTS_INDEX_OF_TOOLTIP"] = "Returns the index of the first/last occurrence of the item in the list. Returns %1 if item is not found."; // untranslated messages["LISTS_INLIST"] = "in list"; // untranslated messages["LISTS_ISEMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#is-empty"; // untranslated messages["LISTS_ISEMPTY_TITLE"] = "%1 is empty"; // untranslated messages["LISTS_ISEMPTY_TOOLTIP"] = "Returns true if the list is empty."; // untranslated messages["LISTS_LENGTH_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#length-of"; // untranslated messages["LISTS_LENGTH_TITLE"] = "length of %1"; // untranslated messages["LISTS_LENGTH_TOOLTIP"] = "Returns the length of a list."; // untranslated messages["LISTS_REPEAT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#create-list-with"; // untranslated messages["LISTS_REPEAT_TITLE"] = "create list with item %1 repeated %2 times"; // untranslated messages["LISTS_REPEAT_TOOLTIP"] = "Creates a list consisting of the given value repeated the specified number of times."; // untranslated messages["LISTS_REVERSE_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#reversing-a-list"; // untranslated messages["LISTS_REVERSE_MESSAGE0"] = "reverse %1"; // untranslated messages["LISTS_REVERSE_TOOLTIP"] = "Reverse a copy of a list."; // untranslated messages["LISTS_SET_INDEX_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#in-list--set"; // untranslated messages["LISTS_SET_INDEX_INPUT_TO"] = "as"; // untranslated messages["LISTS_SET_INDEX_INSERT"] = "insert at"; // untranslated messages["LISTS_SET_INDEX_SET"] = "set"; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST"] = "Inserts the item at the start of a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_INSERT_FROM"] = "Inserts the item at the specified position in a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_INSERT_LAST"] = "Append the item to the end of a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM"] = "Inserts the item randomly in a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_SET_FIRST"] = "Sets the first item in a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_SET_FROM"] = "Sets the item at the specified position in a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_SET_LAST"] = "Sets the last item in a list."; // untranslated messages["LISTS_SET_INDEX_TOOLTIP_SET_RANDOM"] = "Sets a random item in a list."; // untranslated messages["LISTS_SORT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#sorting-a-list"; // untranslated messages["LISTS_SORT_ORDER_ASCENDING"] = "ascending"; // untranslated messages["LISTS_SORT_ORDER_DESCENDING"] = "descending"; // untranslated messages["LISTS_SORT_TITLE"] = "sort %1 %2 %3"; // untranslated messages["LISTS_SORT_TOOLTIP"] = "Sort a copy of a list."; // untranslated messages["LISTS_SORT_TYPE_IGNORECASE"] = "alphabetic, ignore case"; // untranslated messages["LISTS_SORT_TYPE_NUMERIC"] = "numeric"; // untranslated messages["LISTS_SORT_TYPE_TEXT"] = "alphabetic"; // untranslated messages["LISTS_SPLIT_HELPURL"] = "https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists"; // untranslated messages["LISTS_SPLIT_LIST_FROM_TEXT"] = "make list from text"; // untranslated messages["LISTS_SPLIT_TEXT_FROM_LIST"] = "make text from list"; // untranslated messages["LISTS_SPLIT_TOOLTIP_JOIN"] = "Join a list of texts into one text, separated by a delimiter."; // untranslated messages["LISTS_SPLIT_TOOLTIP_SPLIT"] = "Split text into a list of texts, breaking at each delimiter."; // untranslated messages["LISTS_SPLIT_WITH_DELIMITER"] = "with delimiter"; // untranslated messages["LOGIC_BOOLEAN_FALSE"] = "false"; // untranslated messages["LOGIC_BOOLEAN_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#values"; // untranslated messages["LOGIC_BOOLEAN_TOOLTIP"] = "Returns either true or false."; // untranslated messages["LOGIC_BOOLEAN_TRUE"] = "true"; // untranslated messages["LOGIC_COMPARE_HELPURL"] = "https://en.wikipedia.org/wiki/Inequality_(mathematics)"; // untranslated messages["LOGIC_COMPARE_TOOLTIP_EQ"] = "Return true if both inputs equal each other."; // untranslated messages["LOGIC_COMPARE_TOOLTIP_GT"] = "Return true if the first input is greater than the second input."; // untranslated messages["LOGIC_COMPARE_TOOLTIP_GTE"] = "Return true if the first input is greater than or equal to the second input."; // untranslated messages["LOGIC_COMPARE_TOOLTIP_LT"] = "Return true if the first input is smaller than the second input."; // untranslated messages["LOGIC_COMPARE_TOOLTIP_LTE"] = "Return true if the first input is smaller than or equal to the second input."; // untranslated messages["LOGIC_COMPARE_TOOLTIP_NEQ"] = "Return true if both inputs are not equal to each other."; // untranslated messages["LOGIC_NEGATE_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#not"; // untranslated messages["LOGIC_NEGATE_TITLE"] = "not %1"; // untranslated messages["LOGIC_NEGATE_TOOLTIP"] = "Returns true if the input is false. Returns false if the input is true."; // untranslated messages["LOGIC_NULL"] = "null"; // untranslated messages["LOGIC_NULL_HELPURL"] = "https://en.wikipedia.org/wiki/Nullable_type"; // untranslated messages["LOGIC_NULL_TOOLTIP"] = "Returns null."; // untranslated messages["LOGIC_OPERATION_AND"] = "and"; // untranslated messages["LOGIC_OPERATION_HELPURL"] = "https://github.com/google/blockly/wiki/Logic#logical-operations"; // untranslated messages["LOGIC_OPERATION_OR"] = "or"; // untranslated messages["LOGIC_OPERATION_TOOLTIP_AND"] = "Return true if both inputs are true."; // untranslated messages["LOGIC_OPERATION_TOOLTIP_OR"] = "Return true if at least one of the inputs is true."; // untranslated messages["LOGIC_TERNARY_CONDITION"] = "test"; // untranslated messages["LOGIC_TERNARY_HELPURL"] = "https://en.wikipedia.org/wiki/%3F:"; // untranslated messages["LOGIC_TERNARY_IF_FALSE"] = "if false"; // untranslated messages["LOGIC_TERNARY_IF_TRUE"] = "if true"; // untranslated messages["LOGIC_TERNARY_TOOLTIP"] = "Check the condition in 'test'. If the condition is true, returns the 'if true' value; otherwise returns the 'if false' value."; // untranslated messages["MATH_ADDITION_SYMBOL"] = "+"; // untranslated messages["MATH_ARITHMETIC_HELPURL"] = "https://en.wikipedia.org/wiki/Arithmetic"; // untranslated messages["MATH_ARITHMETIC_TOOLTIP_ADD"] = "Return the sum of the two numbers."; // untranslated messages["MATH_ARITHMETIC_TOOLTIP_DIVIDE"] = "Return the quotient of the two numbers."; // untranslated messages["MATH_ARITHMETIC_TOOLTIP_MINUS"] = "Return the difference of the two numbers."; // untranslated messages["MATH_ARITHMETIC_TOOLTIP_MULTIPLY"] = "Return the product of the two numbers."; // untranslated messages["MATH_ARITHMETIC_TOOLTIP_POWER"] = "Return the first number raised to the power of the second number."; // untranslated messages["MATH_ATAN2_HELPURL"] = "https://en.wikipedia.org/wiki/Atan2"; // untranslated messages["MATH_ATAN2_TITLE"] = "atan2 of X:%1 Y:%2"; // untranslated messages["MATH_ATAN2_TOOLTIP"] = "Return the arctangent of point (X, Y) in degrees from -180 to 180."; // untranslated messages["MATH_CHANGE_HELPURL"] = "https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter"; // untranslated messages["MATH_CHANGE_TITLE"] = "change %1 by %2"; // untranslated messages["MATH_CHANGE_TOOLTIP"] = "Add a number to variable '%1'."; // untranslated messages["MATH_CONSTANT_HELPURL"] = "https://en.wikipedia.org/wiki/Mathematical_constant"; // untranslated messages["MATH_CONSTANT_TOOLTIP"] = "Return one of the common constants: π (3.141…), e (2.718…), φ (1.618…), sqrt(2) (1.414…), sqrt(½) (0.707…), or ∞ (infinity)."; // untranslated messages["MATH_CONSTRAIN_HELPURL"] = "https://en.wikipedia.org/wiki/Clamping_(graphics)"; // untranslated messages["MATH_CONSTRAIN_TITLE"] = "constrain %1 low %2 high %3"; // untranslated messages["MATH_CONSTRAIN_TOOLTIP"] = "Constrain a number to be between the specified limits (inclusive)."; // untranslated messages["MATH_DIVISION_SYMBOL"] = "÷"; // untranslated messages["MATH_IS_DIVISIBLE_BY"] = "is divisible by"; // untranslated messages["MATH_IS_EVEN"] = "is even"; // untranslated messages["MATH_IS_NEGATIVE"] = "is negative"; // untranslated messages["MATH_IS_ODD"] = "is odd"; // untranslated messages["MATH_IS_POSITIVE"] = "is positive"; // untranslated messages["MATH_IS_PRIME"] = "is prime"; // untranslated messages["MATH_IS_TOOLTIP"] = "Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false."; // untranslated messages["MATH_IS_WHOLE"] = "is whole"; // untranslated messages["MATH_MODULO_HELPURL"] = "https://en.wikipedia.org/wiki/Modulo_operation"; // untranslated messages["MATH_MODULO_TITLE"] = "remainder of %1 ÷ %2"; // untranslated messages["MATH_MODULO_TOOLTIP"] = "Return the remainder from dividing the two numbers."; // untranslated messages["MATH_MULTIPLICATION_SYMBOL"] = "×"; // untranslated messages["MATH_NUMBER_HELPURL"] = "https://en.wikipedia.org/wiki/Number"; // untranslated messages["MATH_NUMBER_TOOLTIP"] = "A number."; // untranslated messages["MATH_ONLIST_HELPURL"] = ""; // untranslated messages["MATH_ONLIST_OPERATOR_AVERAGE"] = "average of list"; // untranslated messages["MATH_ONLIST_OPERATOR_MAX"] = "max of list"; // untranslated messages["MATH_ONLIST_OPERATOR_MEDIAN"] = "median of list"; // untranslated messages["MATH_ONLIST_OPERATOR_MIN"] = "min of list"; // untranslated messages["MATH_ONLIST_OPERATOR_MODE"] = "modes of list"; // untranslated messages["MATH_ONLIST_OPERATOR_RANDOM"] = "random item of list"; // untranslated messages["MATH_ONLIST_OPERATOR_STD_DEV"] = "standard deviation of list"; // untranslated messages["MATH_ONLIST_OPERATOR_SUM"] = "sum of list"; // untranslated messages["MATH_ONLIST_TOOLTIP_AVERAGE"] = "Return the average (arithmetic mean) of the numeric values in the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_MAX"] = "Return the largest number in the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_MEDIAN"] = "Return the median number in the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_MIN"] = "Return the smallest number in the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_MODE"] = "Return a list of the most common item(s) in the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_RANDOM"] = "Return a random element from the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_STD_DEV"] = "Return the standard deviation of the list."; // untranslated messages["MATH_ONLIST_TOOLTIP_SUM"] = "Return the sum of all the numbers in the list."; // untranslated messages["MATH_POWER_SYMBOL"] = "^"; // untranslated messages["MATH_RANDOM_FLOAT_HELPURL"] = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated messages["MATH_RANDOM_FLOAT_TITLE_RANDOM"] = "random fraction"; // untranslated messages["MATH_RANDOM_FLOAT_TOOLTIP"] = "Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive)."; // untranslated messages["MATH_RANDOM_INT_HELPURL"] = "https://en.wikipedia.org/wiki/Random_number_generation"; // untranslated messages["MATH_RANDOM_INT_TITLE"] = "random integer from %1 to %2"; // untranslated messages["MATH_RANDOM_INT_TOOLTIP"] = "Return a random integer between the two specified limits, inclusive."; // untranslated messages["MATH_ROUND_HELPURL"] = "https://en.wikipedia.org/wiki/Rounding"; // untranslated messages["MATH_ROUND_OPERATOR_ROUND"] = "round"; // untranslated messages["MATH_ROUND_OPERATOR_ROUNDDOWN"] = "round down"; // untranslated messages["MATH_ROUND_OPERATOR_ROUNDUP"] = "round up"; // untranslated messages["MATH_ROUND_TOOLTIP"] = "Round a number up or down."; // untranslated messages["MATH_SINGLE_HELPURL"] = "https://en.wikipedia.org/wiki/Square_root"; // untranslated messages["MATH_SINGLE_OP_ABSOLUTE"] = "absolute"; // untranslated messages["MATH_SINGLE_OP_ROOT"] = "square root"; // untranslated messages["MATH_SINGLE_TOOLTIP_ABS"] = "Return the absolute value of a number."; // untranslated messages["MATH_SINGLE_TOOLTIP_EXP"] = "Return e to the power of a number."; // untranslated messages["MATH_SINGLE_TOOLTIP_LN"] = "Return the natural logarithm of a number."; // untranslated messages["MATH_SINGLE_TOOLTIP_LOG10"] = "Return the base 10 logarithm of a number."; // untranslated messages["MATH_SINGLE_TOOLTIP_NEG"] = "Return the negation of a number."; // untranslated messages["MATH_SINGLE_TOOLTIP_POW10"] = "Return 10 to the power of a number."; // untranslated messages["MATH_SINGLE_TOOLTIP_ROOT"] = "Return the square root of a number."; // untranslated messages["MATH_SUBTRACTION_SYMBOL"] = "-"; // untranslated messages["MATH_TRIG_ACOS"] = "acos"; // untranslated messages["MATH_TRIG_ASIN"] = "asin"; // untranslated messages["MATH_TRIG_ATAN"] = "atan"; // untranslated messages["MATH_TRIG_COS"] = "cos"; // untranslated messages["MATH_TRIG_HELPURL"] = "https://en.wikipedia.org/wiki/Trigonometric_functions"; // untranslated messages["MATH_TRIG_SIN"] = "sin"; // untranslated messages["MATH_TRIG_TAN"] = "tan"; // untranslated messages["MATH_TRIG_TOOLTIP_ACOS"] = "Return the arccosine of a number."; // untranslated messages["MATH_TRIG_TOOLTIP_ASIN"] = "Return the arcsine of a number."; // untranslated messages["MATH_TRIG_TOOLTIP_ATAN"] = "Return the arctangent of a number."; // untranslated messages["MATH_TRIG_TOOLTIP_COS"] = "Return the cosine of a degree (not radian)."; // untranslated messages["MATH_TRIG_TOOLTIP_SIN"] = "Return the sine of a degree (not radian)."; // untranslated messages["MATH_TRIG_TOOLTIP_TAN"] = "Return the tangent of a degree (not radian)."; // untranslated messages["NEW_COLOUR_VARIABLE"] = "ሕብሪ ተተካኢ ፍጠር"; messages["NEW_NUMBER_VARIABLE"] = "ቁፅሪ ተተካኢ ፍጠር"; messages["NEW_STRING_VARIABLE"] = "ስትሪንግ ተተካኢ ፍጠር"; messages["NEW_VARIABLE"] = "ተተካኢ ፍጠር"; messages["NEW_VARIABLE_TITLE"] = "ስም ሓዱሽ ተተካኢ"; messages["NEW_VARIABLE_TYPE_TITLE"] = "ሓዱሽ ዓይነት ተተካኢ"; messages["ORDINAL_NUMBER_SUFFIX"] = ""; // untranslated messages["PROCEDURES_ALLOW_STATEMENTS"] = "allow statements"; // untranslated messages["PROCEDURES_BEFORE_PARAMS"] = "with:"; // untranslated messages["PROCEDURES_CALLNORETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated messages["PROCEDURES_CALLNORETURN_TOOLTIP"] = "Run the user-defined function '%1'."; // untranslated messages["PROCEDURES_CALLRETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated messages["PROCEDURES_CALLRETURN_TOOLTIP"] = "Run the user-defined function '%1' and use its output."; // untranslated messages["PROCEDURES_CALL_BEFORE_PARAMS"] = "with:"; // untranslated messages["PROCEDURES_CREATE_DO"] = "Create '%1'"; // untranslated messages["PROCEDURES_DEFNORETURN_COMMENT"] = "Describe this function..."; // untranslated messages["PROCEDURES_DEFNORETURN_DO"] = ""; // untranslated messages["PROCEDURES_DEFNORETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated messages["PROCEDURES_DEFNORETURN_PROCEDURE"] = "do something"; // untranslated messages["PROCEDURES_DEFNORETURN_TITLE"] = "to"; // untranslated messages["PROCEDURES_DEFNORETURN_TOOLTIP"] = "Creates a function with no output."; // untranslated messages["PROCEDURES_DEFRETURN_HELPURL"] = "https://en.wikipedia.org/wiki/Subroutine"; // untranslated messages["PROCEDURES_DEFRETURN_RETURN"] = "return"; // untranslated messages["PROCEDURES_DEFRETURN_TOOLTIP"] = "Creates a function with an output."; // untranslated messages["PROCEDURES_DEF_DUPLICATE_WARNING"] = "Warning: This function has duplicate parameters."; // untranslated messages["PROCEDURES_HIGHLIGHT_DEF"] = "Highlight function definition"; // untranslated messages["PROCEDURES_IFRETURN_HELPURL"] = "http://c2.com/cgi/wiki?GuardClause"; // untranslated messages["PROCEDURES_IFRETURN_TOOLTIP"] = "If a value is true, then return a second value."; // untranslated messages["PROCEDURES_IFRETURN_WARNING"] = "Warning: This block may be used only within a function definition."; // untranslated messages["PROCEDURES_MUTATORARG_TITLE"] = "input name:"; // untranslated messages["PROCEDURES_MUTATORARG_TOOLTIP"] = "Add an input to the function."; // untranslated messages["PROCEDURES_MUTATORCONTAINER_TITLE"] = "inputs"; // untranslated messages["PROCEDURES_MUTATORCONTAINER_TOOLTIP"] = "Add, remove, or reorder inputs to this function."; // untranslated messages["REDO"] = "እንደገና ፈጽም"; messages["REMOVE_COMMENT"] = "ርኢቶ ኣወግድ"; messages["RENAME_VARIABLE"] = "ስም ተተካኢ ቀይር"; messages["RENAME_VARIABLE_TITLE"] = "Rename all '%1' variables to:"; // untranslated messages["TEXT_APPEND_HELPURL"] = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated messages["TEXT_APPEND_TITLE"] = "to %1 append text %2"; // untranslated messages["TEXT_APPEND_TOOLTIP"] = "Append some text to variable '%1'."; // untranslated messages["TEXT_CHANGECASE_HELPURL"] = "https://github.com/google/blockly/wiki/Text#adjusting-text-case"; // untranslated messages["TEXT_CHANGECASE_OPERATOR_LOWERCASE"] = "to lower case"; // untranslated messages["TEXT_CHANGECASE_OPERATOR_TITLECASE"] = "to Title Case"; // untranslated messages["TEXT_CHANGECASE_OPERATOR_UPPERCASE"] = "to UPPER CASE"; // untranslated messages["TEXT_CHANGECASE_TOOLTIP"] = "Return a copy of the text in a different case."; // untranslated messages["TEXT_CHARAT_FIRST"] = "get first letter"; // untranslated messages["TEXT_CHARAT_FROM_END"] = "get letter # from end"; // untranslated messages["TEXT_CHARAT_FROM_START"] = "get letter #"; // untranslated messages["TEXT_CHARAT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#extracting-text"; // untranslated messages["TEXT_CHARAT_LAST"] = "get last letter"; // untranslated messages["TEXT_CHARAT_RANDOM"] = "get random letter"; // untranslated messages["TEXT_CHARAT_TAIL"] = ""; // untranslated messages["TEXT_CHARAT_TITLE"] = "in text %1 %2"; // untranslated messages["TEXT_CHARAT_TOOLTIP"] = "Returns the letter at the specified position."; // untranslated messages["TEXT_COUNT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#counting-substrings"; // untranslated messages["TEXT_COUNT_MESSAGE0"] = "count %1 in %2"; // untranslated messages["TEXT_COUNT_TOOLTIP"] = "Count how many times some text occurs within some other text."; // untranslated messages["TEXT_CREATE_JOIN_ITEM_TOOLTIP"] = "Add an item to the text."; // untranslated messages["TEXT_CREATE_JOIN_TITLE_JOIN"] = "join"; // untranslated messages["TEXT_CREATE_JOIN_TOOLTIP"] = "Add, remove, or reorder sections to reconfigure this text block."; // untranslated messages["TEXT_GET_SUBSTRING_END_FROM_END"] = "to letter # from end"; // untranslated messages["TEXT_GET_SUBSTRING_END_FROM_START"] = "to letter #"; // untranslated messages["TEXT_GET_SUBSTRING_END_LAST"] = "to last letter"; // untranslated messages["TEXT_GET_SUBSTRING_HELPURL"] = "https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text"; // untranslated messages["TEXT_GET_SUBSTRING_INPUT_IN_TEXT"] = "in text"; // untranslated messages["TEXT_GET_SUBSTRING_START_FIRST"] = "get substring from first letter"; // untranslated messages["TEXT_GET_SUBSTRING_START_FROM_END"] = "get substring from letter # from end"; // untranslated messages["TEXT_GET_SUBSTRING_START_FROM_START"] = "get substring from letter #"; // untranslated messages["TEXT_GET_SUBSTRING_TAIL"] = ""; // untranslated messages["TEXT_GET_SUBSTRING_TOOLTIP"] = "Returns a specified portion of the text."; // untranslated messages["TEXT_INDEXOF_HELPURL"] = "https://github.com/google/blockly/wiki/Text#finding-text"; // untranslated messages["TEXT_INDEXOF_OPERATOR_FIRST"] = "find first occurrence of text"; // untranslated messages["TEXT_INDEXOF_OPERATOR_LAST"] = "find last occurrence of text"; // untranslated messages["TEXT_INDEXOF_TITLE"] = "in text %1 %2 %3"; // untranslated messages["TEXT_INDEXOF_TOOLTIP"] = "Returns the index of the first/last occurrence of the first text in the second text. Returns %1 if text is not found."; // untranslated messages["TEXT_ISEMPTY_HELPURL"] = "https://github.com/google/blockly/wiki/Text#checking-for-empty-text"; // untranslated messages["TEXT_ISEMPTY_TITLE"] = "%1 is empty"; // untranslated messages["TEXT_ISEMPTY_TOOLTIP"] = "Returns true if the provided text is empty."; // untranslated messages["TEXT_JOIN_HELPURL"] = "https://github.com/google/blockly/wiki/Text#text-creation"; // untranslated messages["TEXT_JOIN_TITLE_CREATEWITH"] = "create text with"; // untranslated messages["TEXT_JOIN_TOOLTIP"] = "Create a piece of text by joining together any number of items."; // untranslated messages["TEXT_LENGTH_HELPURL"] = "https://github.com/google/blockly/wiki/Text#text-modification"; // untranslated messages["TEXT_LENGTH_TITLE"] = "length of %1"; // untranslated messages["TEXT_LENGTH_TOOLTIP"] = "Returns the number of letters (including spaces) in the provided text."; // untranslated messages["TEXT_PRINT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#printing-text"; // untranslated messages["TEXT_PRINT_TITLE"] = "print %1"; // untranslated messages["TEXT_PRINT_TOOLTIP"] = "Print the specified text, number or other value."; // untranslated messages["TEXT_PROMPT_HELPURL"] = "https://github.com/google/blockly/wiki/Text#getting-input-from-the-user"; // untranslated messages["TEXT_PROMPT_TOOLTIP_NUMBER"] = "Prompt for user for a number."; // untranslated messages["TEXT_PROMPT_TOOLTIP_TEXT"] = "Prompt for user for some text."; // untranslated messages["TEXT_PROMPT_TYPE_NUMBER"] = "prompt for number with message"; // untranslated messages["TEXT_PROMPT_TYPE_TEXT"] = "prompt for text with message"; // untranslated messages["TEXT_REPLACE_HELPURL"] = "https://github.com/google/blockly/wiki/Text#replacing-substrings"; // untranslated messages["TEXT_REPLACE_MESSAGE0"] = "replace %1 with %2 in %3"; // untranslated messages["TEXT_REPLACE_TOOLTIP"] = "Replace all occurances of some text within some other text."; // untranslated messages["TEXT_REVERSE_HELPURL"] = "https://github.com/google/blockly/wiki/Text#reversing-text"; // untranslated messages["TEXT_REVERSE_MESSAGE0"] = "reverse %1"; // untranslated messages["TEXT_REVERSE_TOOLTIP"] = "Reverses the order of the characters in the text."; // untranslated messages["TEXT_TEXT_HELPURL"] = "https://en.wikipedia.org/wiki/String_(computer_science)"; // untranslated messages["TEXT_TEXT_TOOLTIP"] = "A letter, word, or line of text."; // untranslated messages["TEXT_TRIM_HELPURL"] = "https://github.com/google/blockly/wiki/Text#trimming-removing-spaces"; // untranslated messages["TEXT_TRIM_OPERATOR_BOTH"] = "trim spaces from both sides of"; // untranslated messages["TEXT_TRIM_OPERATOR_LEFT"] = "trim spaces from left side of"; // untranslated messages["TEXT_TRIM_OPERATOR_RIGHT"] = "trim spaces from right side of"; // untranslated messages["TEXT_TRIM_TOOLTIP"] = "Return a copy of the text with spaces removed from one or both ends."; // untranslated messages["TODAY"] = "ሎሚ"; messages["UNDO"] = "ምለስ"; messages["UNNAMED_KEY"] = "unnamed"; // untranslated messages["VARIABLES_DEFAULT_NAME"] = "ዓይነት"; messages["VARIABLES_GET_CREATE_SET"] = "Create 'set %1'"; // untranslated messages["VARIABLES_GET_HELPURL"] = "https://github.com/google/blockly/wiki/Variables#get"; // untranslated messages["VARIABLES_GET_TOOLTIP"] = "Returns the value of this variable."; // untranslated messages["VARIABLES_SET"] = "set %1 to %2"; // untranslated messages["VARIABLES_SET_CREATE_GET"] = "Create 'get %1'"; // untranslated messages["VARIABLES_SET_HELPURL"] = "https://github.com/google/blockly/wiki/Variables#set"; // untranslated messages["VARIABLES_SET_TOOLTIP"] = "Sets this variable to be equal to the input."; // untranslated messages["VARIABLE_ALREADY_EXISTS"] = "A variable named '%1' already exists."; // untranslated messages["VARIABLE_ALREADY_EXISTS_FOR_ANOTHER_TYPE"] = "A variable named '%1' already exists for another type: '%2'."; // untranslated messages["WORKSPACE_ARIA_LABEL"] = "Blockly Workspace"; // untranslated messages["WORKSPACE_COMMENT_DEFAULT_TEXT"] = "Say something..."; // untranslated messages["CONTROLS_FOREACH_INPUT_DO"] = messages["CONTROLS_REPEAT_INPUT_DO"]; messages["CONTROLS_FOR_INPUT_DO"] = messages["CONTROLS_REPEAT_INPUT_DO"]; messages["CONTROLS_IF_ELSEIF_TITLE_ELSEIF"] = messages["CONTROLS_IF_MSG_ELSEIF"]; messages["CONTROLS_IF_ELSE_TITLE_ELSE"] = messages["CONTROLS_IF_MSG_ELSE"]; messages["CONTROLS_IF_IF_TITLE_IF"] = messages["CONTROLS_IF_MSG_IF"]; messages["CONTROLS_IF_MSG_THEN"] = messages["CONTROLS_REPEAT_INPUT_DO"]; messages["CONTROLS_WHILEUNTIL_INPUT_DO"] = messages["CONTROLS_REPEAT_INPUT_DO"]; messages["LISTS_CREATE_WITH_ITEM_TITLE"] = messages["VARIABLES_DEFAULT_NAME"]; messages["LISTS_GET_INDEX_HELPURL"] = messages["LISTS_INDEX_OF_HELPURL"]; messages["LISTS_GET_INDEX_INPUT_IN_LIST"] = messages["LISTS_INLIST"]; messages["LISTS_GET_SUBLIST_INPUT_IN_LIST"] = messages["LISTS_INLIST"]; messages["LISTS_INDEX_OF_INPUT_IN_LIST"] = messages["LISTS_INLIST"]; messages["LISTS_SET_INDEX_INPUT_IN_LIST"] = messages["LISTS_INLIST"]; messages["MATH_CHANGE_TITLE_ITEM"] = messages["VARIABLES_DEFAULT_NAME"]; messages["PROCEDURES_DEFRETURN_COMMENT"] = messages["PROCEDURES_DEFNORETURN_COMMENT"]; messages["PROCEDURES_DEFRETURN_DO"] = messages["PROCEDURES_DEFNORETURN_DO"]; messages["PROCEDURES_DEFRETURN_PROCEDURE"] = messages["PROCEDURES_DEFNORETURN_PROCEDURE"]; messages["PROCEDURES_DEFRETURN_TITLE"] = messages["PROCEDURES_DEFNORETURN_TITLE"]; messages["TEXT_APPEND_VARIABLE"] = messages["VARIABLES_DEFAULT_NAME"]; messages["TEXT_CREATE_JOIN_ITEM_TITLE_ITEM"] = messages["VARIABLES_DEFAULT_NAME"]; messages["MATH_HUE"] = "230"; messages["LOOPS_HUE"] = "120"; messages["LISTS_HUE"] = "260"; messages["LOGIC_HUE"] = "210"; messages["VARIABLES_HUE"] = "330"; messages["TEXTS_HUE"] = "160"; messages["PROCEDURES_HUE"] = "290"; messages["COLOUR_HUE"] = "20"; messages["VARIABLES_DYNAMIC_HUE"] = "310"; return messages; }));
{ "content_hash": "6367b2744f2678f2fa67093df22de8e9", "timestamp": "", "source": "github", "line_count": 440, "max_line_length": 262, "avg_line_length": 83.79318181818182, "alnum_prop": 0.7245653530065909, "repo_name": "cdnjs/cdnjs", "id": "c0085f294736c44500e55098ba7323c85cf24edf", "size": "37517", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ajax/libs/blockly/8.0.4-beta.0/msg/ti.js", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
module Quickblox module Api module Authorization extend self extend ::Quickblox::Api::RequestHelper def authorize(options = {}) data = normalize(options) Connection.connect.post do |request| request.url '/auth.json' request.body = "#{data}&signature=#{signature(data)}" end end end end end
{ "content_hash": "084e919c6b30fe8e84f4081bf197b239", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 64, "avg_line_length": 20.88888888888889, "alnum_prop": 0.5930851063829787, "repo_name": "revans/quickblox", "id": "fa6e21c79374c8477e31e49f1622bc26b1c6b8b3", "size": "377", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/quickblox/api/authorization.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "23346" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_27-ea) on Mon May 14 12:37:34 IST 2012 --> <TITLE> URLHelper </TITLE> <META NAME="date" CONTENT="2012-05-14"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="URLHelper"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/URLHelper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&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;<A HREF="../../../../org/slc/sli/util/URLBuilder.html" title="class in org.slc.sli.util"><B>PREV CLASS</B></A>&nbsp; &nbsp;NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/slc/sli/util/URLHelper.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="URLHelper.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> org.slc.sli.util</FONT> <BR> Class URLHelper</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.slc.sli.util.URLHelper</B> </PRE> <HR> <DL> <DT><PRE>public class <B>URLHelper</B><DT>extends java.lang.Object</DL> </PRE> <P> <DL> <DT><B>Author:</B></DT> <DD>svankina TODO: Write javadoc</DD> </DL> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../org/slc/sli/util/URLHelper.html#URLHelper()">URLHelper</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp; <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../org/slc/sli/util/URLHelper.html#getUrl(javax.servlet.http.HttpServletRequest)">getUrl</A></B>(javax.servlet.http.HttpServletRequest&nbsp;req)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the URL that generated this request</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> &nbsp; <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="URLHelper()"><!-- --></A><H3> URLHelper</H3> <PRE> public <B>URLHelper</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getUrl(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> getUrl</H3> <PRE> public static java.lang.String <B>getUrl</B>(javax.servlet.http.HttpServletRequest&nbsp;req)</PRE> <DL> <DD>Get the URL that generated this request <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>req</CODE> - <DT><B>Returns:</B><DD></DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/URLHelper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&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;<A HREF="../../../../org/slc/sli/util/URLBuilder.html" title="class in org.slc.sli.util"><B>PREV CLASS</B></A>&nbsp; &nbsp;NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/slc/sli/util/URLHelper.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="URLHelper.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
{ "content_hash": "7833e1542a2978df6506047ddd213947", "timestamp": "", "source": "github", "line_count": 260, "max_line_length": 182, "avg_line_length": 37.58846153846154, "alnum_prop": 0.6188478461066202, "repo_name": "inbloom/datastore-portal", "id": "8d7abeaaae4a7c276bbb9c3a8767ac6b9a8433a8", "size": "9773", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "portlets/ConfigureApp-portlet/doc/org/slc/sli/util/URLHelper.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "AspectJ", "bytes": "2417" }, { "name": "CSS", "bytes": "165445" }, { "name": "Java", "bytes": "1724523" }, { "name": "JavaScript", "bytes": "18865" }, { "name": "Ruby", "bytes": "43691" }, { "name": "SQL", "bytes": "1796" }, { "name": "Shell", "bytes": "59407" } ], "symlink_target": "" }
<!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"> <!-- Mirrored from bvs.wikidot.com/forum/t-863975/retail:truck-loading by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 03:58:58 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack --> <head> <title>Truck Loading - Billy Vs. SNAKEMAN Wiki</title> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--javascript/init.combined.js"></script> <script type="text/javascript"> var URL_HOST = 'www.wikidot.com'; var URL_DOMAIN = 'wikidot.com'; var USE_SSL = true ; var URL_STATIC = 'http://d3g0gp89917ko0.cloudfront.net/v--291054f06006'; // global request information var WIKIREQUEST = {}; WIKIREQUEST.info = {}; WIKIREQUEST.info.domain = "bvs.wikidot.com"; WIKIREQUEST.info.siteId = 32011; WIKIREQUEST.info.siteUnixName = "bvs"; WIKIREQUEST.info.categoryId = 182512; WIKIREQUEST.info.themeId = 9564; WIKIREQUEST.info.requestPageName = "forum:thread"; OZONE.request.timestamp = 1657422568; OZONE.request.date = new Date(); WIKIREQUEST.info.lang = 'en'; WIKIREQUEST.info.pageUnixName = "forum:thread"; WIKIREQUEST.info.pageId = 2987325; WIKIREQUEST.info.lang = "en"; OZONE.lang = "en"; var isUAMobile = !!/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); </script> <script type="text/javascript"> require.config({ baseUrl: URL_STATIC + '/common--javascript', paths: { 'jquery.ui': 'jquery-ui.min', 'jquery.form': 'jquery.form' } }); </script> <meta http-equiv="content-type" content="text/html;charset=UTF-8"/> <link rel="canonical" href="../../retail_truck-loading.html" /> <meta http-equiv="content-language" content="en"/> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--javascript/WIKIDOT.combined.js"></script> <style type="text/css" id="internal-style"> /* modules */ /* theme */ @import url(http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--theme/base/css/style.css); @import url(http://bvs.wdfiles.com/local--theme/north/style.css); </style> <link rel="shortcut icon" href="../../local--favicon/favicon.gif"/> <link rel="icon" type="image/gif" href="../../local--favicon/favicon.gif"/> <link rel="apple-touch-icon" href="../../common--images/apple-touch-icon-57x57.png" /> <link rel="apple-touch-icon" sizes="72x72" href="../../common--images/apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon" sizes="114x114" href="../../common--images/apple-touch-icon-114x114.png" /> <link rel="alternate" type="application/wiki" title="Edit this page" href="javascript:WIKIDOT.page.listeners.editClick()"/> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18234656-1']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); _gaq.push(['old._setAccount', 'UA-68540-5']); _gaq.push(['old._setDomainName', 'none']); _gaq.push(['old._setAllowLinker', true]); _gaq.push(['old._trackPageview']); _gaq.push(['userTracker._setAccount', 'UA-3581307-1']); _gaq.push(['userTracker._trackPageview']); </script> <script type="text/javascript"> window.google_analytics_uacct = 'UA-18234656-1'; window.google_analytics_domain_name = 'none'; </script> <link rel="manifest" href="../../onesignal/manifest.html" /> <script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" acync=""></script> <script> var OneSignal = window.OneSignal || []; OneSignal.push(function() { OneSignal.init({ appId: null, }); }); </script> <link rel="alternate" type="application/rss+xml" title="Posts in the discussion thread &quot;Truck Loading&quot;" href="../../feed/forum/t-863975.xml"/><script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--modules/js/forum/ForumViewThreadModule.js"></script> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--modules/js/forum/ForumViewThreadPostsModule.js"></script> </head> <body id="html-body"> <div id="skrollr-body"> <a name="page-top"></a> <div id="container-wrap-wrap"> <div id="container-wrap"> <div id="container"> <div id="header"> <h1><a href="../../index.html"><span>Billy Vs. SNAKEMAN Wiki</span></a></h1> <h2><span>Be the Ultimate Ninja.</span></h2> <!-- google_ad_section_start(weight=ignore) --> <div id="search-top-box" class="form-search"> <form id="search-top-box-form" action="http://bvs.wikidot.com/forum/t-863975/dummy" class="input-append"> <input id="search-top-box-input" class="text empty search-query" type="text" size="15" name="query" value="Search this site" onfocus="if(YAHOO.util.Dom.hasClass(this, 'empty')){YAHOO.util.Dom.removeClass(this,'empty'); this.value='';}"/><input class="button btn" type="submit" name="search" value="Search"/> </form> </div> <div id="top-bar"> <ul> <li><a href="../../allies.html">Allies</a> <ul> <li><strong><a href="../../untabbed_allies.html">Allies Untabbed</a></strong></li> <li><a href="../../allies.html#toc7">Burger Ninja</a></li> <li><a href="../../allies.html#toc5">Reaper</a></li> <li><a href="../../allies.html#toc0">Regular</a></li> <li><a href="../../allies.html#toc8">R00t</a></li> <li><a href="../../allies.html#toc1">Season 2+</a></li> <li><a href="../../allies.html#toc2">Season 3+</a></li> <li><a href="../../allies.html#toc3">Season 4+</a></li> <li><a href="../../allies.html#toc4">The Trade</a></li> <li><a href="../../allies.html#toc6">Wasteland</a></li> <li><a href="../../allies.html#toc9">World Kaiju</a></li> <li><strong><a href="../../summons.html">Summons</a></strong></li> <li><strong><a href="../../teams.html">Teams</a></strong></li> </ul> </li> <li><a href="../../missions.html">Missions</a> <ul> <li><strong><a href="../../untabbed_missions.html">Missions Untabbed</a></strong></li> <li><strong><em><a href="../../missions.html#toc0">D-Rank</a></em></strong></li> <li><strong><em><a href="../../missions.html#toc1">C-Rank</a></em></strong></li> <li><strong><em><a href="../../missions.html#toc2">B-Rank</a></em></strong></li> <li><strong><em><a href="../../missions.html#toc3">A-Rank</a></em></strong></li> <li><strong><em><a href="../../missions.html#toc4">AA-Rank</a></em></strong></li> <li><strong><em><a href="../../missions.html#toc5">S-Rank</a></em></strong></li> <li><a href="../../missions.html#toc10">BurgerNinja</a></li> <li><a href="../../missions.html#toc14">Cave</a></li> <li><a href="../../missions.html#toc13">Jungle</a></li> <li><a href="../../missions.html#toc7">Monochrome</a></li> <li><a href="../../missions.html#toc8">Outskirts</a></li> <li><a href="../../missions.html#toc11">PizzaWitch</a></li> <li><a href="../../missions.html#toc6">Reaper</a></li> <li><a href="../../missions.html#toc9">Wasteland</a></li> <li><a href="../../missions.html#toc12">Witching Hour</a></li> <li><strong><em><a href="../../missions.html#toc14">Quests</a></em></strong></li> <li><a href="../../wota.html">Mission Lady Alley</a></li> </ul> </li> <li><a href="../../items.html">Items</a> <ul> <li><strong><a href="../../untabbed_items.html">Items Untabbed</a></strong></li> <li><a href="../../items.html#toc6">Ally Drops and Other</a></li> <li><a href="../../items.html#toc0">Permanent Items</a></li> <li><a href="../../items.html#toc1">Potions/Crafting Items</a> <ul> <li><a href="../../items.html#toc4">Crafting</a></li> <li><a href="../../items.html#toc3">Ingredients</a></li> <li><a href="../../items.html#toc2">Potions</a></li> </ul> </li> <li><a href="../../items.html#toc5">Wasteland Items</a></li> <li><a href="../../sponsored-items.html">Sponsored Items</a></li> </ul> </li> <li><a href="../../village.html">Village</a> <ul> <li><a href="../../billycon.html">BillyCon</a> <ul> <li><a href="../../billycon_billy-idol.html">Billy Idol</a></li> <li><a href="../../billycon_cosplay.html">Cosplay</a></li> <li><a href="../../billycon_dealer-s-room.html">Dealer's Room</a></li> <li><a href="../../billycon_events.html">Events</a></li> <li><a href="../../billycon_glowslinging.html">Glowslinging</a></li> <li><a href="../../billycon_rave.html">Rave</a></li> <li><a href="../../billycon_squee.html">Squee</a></li> <li><a href="../../billycon_video-game-tournament.html">Video Game Tournament</a></li> <li><a href="../../billycon_wander.html">Wander</a></li> </ul> </li> <li><a href="../../billytv.html">BillyTV</a></li> <li><a href="../../bingo-ing.html">Bingo'ing</a></li> <li><a href="../../candyween.html">Candyween</a></li> <li><a href="../../festival.html">Festival Day</a> <ul> <li><a href="../../festival_bargltron.html">Bargltron</a></li> <li><a href="../../festival_billymaze.html">BillyMaze</a></li> <li><a href="../../festival_dance-party.html">Dance Party</a></li> <li><a href="../../festival_elevensnax.html">ElevenSnax</a></li> <li><a href="../../festival_marksman.html">Marksman</a></li> <li><a href="../../festival_raffle.html">Raffle</a></li> <li><a href="../../festival_rngshack.html">RNGShack</a></li> <li><a href="../../festival_tsukiroll.html">TsukiRoll</a></li> <li><a href="../../festival_tunnel.html">Tunnel</a></li> </ul> </li> <li><a href="../../hidden-hoclaus.html">Hidden HoClaus</a></li> <li><a href="../../kaiju.html">Kaiju</a></li> <li><a href="../../marketplace.html">Marketplace</a></li> <li><a href="../../pizzawitch-garage.html">PizzaWitch Garage</a></li> <li><a href="../../robo-fighto.html">Robo Fighto</a></li> <li>R00t <ul> <li><a href="../../fields.html">Fields</a></li> <li><a href="../../keys.html">Keys</a></li> <li><a href="../../phases.html">Phases</a></li> </ul> </li> <li><a href="../../upgrade_science-facility.html#toc2">SCIENCE!</a></li> <li><a href="../../upgrades.html">Upgrades</a></li> <li><a href="../../zombjas.html">Zombjas</a></li> </ul> </li> <li><a href="../../misc_party-house.html">Party House</a> <ul> <li><a href="../../partyhouse_11dbhk-s-lottery.html">11DBHK's Lottery</a></li> <li><a href="../../partyhouse_akatsukiball.html">AkaTsukiBall</a></li> <li><a href="../../upgrade_claw-machines.html">Crane Game!</a></li> <li><a href="../../upgrade_darts-hall.html">Darts!</a></li> <li><a href="../../partyhouse_flower-wars.html">Flower Wars</a></li> <li><a href="../../upgrade_juice-bar.html">'Juice' Bar</a></li> <li><a href="../../partyhouse_mahjong.html">Mahjong</a></li> <li><a href="../../partyhouse_ninja-jackpot.html">Ninja Jackpot!</a></li> <li><a href="../../partyhouse_over-11-000.html">Over 11,000</a></li> <li><a href="../../partyhouse_pachinko.html">Pachinko</a></li> <li><a href="../../partyhouse_party-room.html">Party Room</a></li> <li><a href="../../partyhouse_pigeons.html">Pigeons</a></li> <li><a href="../../partyhouse_prize-wheel.html">Prize Wheel</a></li> <li><a href="../../partyhouse_roulette.html">Roulette</a></li> <li><a href="../../partyhouse_scratchy-tickets.html">Scratchy Tickets</a></li> <li><a href="../../partyhouse_snakeman.html">SNAKEMAN</a></li> <li><a href="../../partyhouse_superfail.html">SUPERFAIL</a></li> <li><a href="../../partyhouse_tip-line.html">Tip Line</a></li> <li><a href="../../partyhouse_the-big-board.html">The Big Board</a></li> <li><a href="../../partyhouse_the-first-loser.html">The First Loser</a></li> </ul> </li> <li><a href="../../guides.html">Guides</a> <ul> <li><a href="../../guide_billycon.html">BillyCon Guide</a></li> <li><a href="../../guide_burgerninja.html">BurgerNinja Guide</a></li> <li><a href="../../guide_candyween.html">Candyween Guide</a></li> <li><a href="../../guide_glossary.html">Glossary</a></li> <li><a href="../../guide_gs.html">Glowslinging Strategy Guide</a></li> <li><a href="../../guide_hq.html">Hero's Quest</a></li> <li><a href="../../guide_looping.html">Looping Guide</a></li> <li><a href="../../guide_monochrome.html">Monochrome Guide</a></li> <li><a href="../../overnight-bonuses.html">Overnight Bonuses</a></li> <li><a href="../../guide_pizzawitch.html">PizzaWitch Guide</a></li> <li><a href="../../tabbed_potions-crafting.html">Potions / Crafting</a> <ul> <li><a href="../../tabbed_potions-crafting.html#toc3">Crafting</a> <ul> <li><a href="../../tabbed_potions-crafting.html#toc4">Items</a></li> <li><a href="../../tabbed_potions-crafting.html#toc5">Materials</a></li> </ul> </li> <li><a href="../../tabbed_potions-crafting.html#toc0">Potion Mixing</a> <ul> <li><a href="../../tabbed_potions-crafting.html#toc2">Mixed Ingredients</a></li> <li><a href="../../tabbed_potions-crafting.html#toc1">Potions</a></li> </ul> </li> <li><a href="../../tabbed_potions-crafting.html#toc6">Reduction Laboratory</a> <ul> <li><a href="../../tabbed_potions-crafting.html#toc8">Potions and Ingredients</a></li> <li><a href="../../tabbed_potions-crafting.html#toc7">Wasteland Items</a></li> </ul> </li> </ul> </li> <li><a href="../../guide_impossible-mission.html">Impossible Mission Guide</a></li> <li><a href="../../guide_xp.html">Ranking Guide</a></li> <li><a href="../../guide_reaper.html">Reaper Guide</a></li> <li><a href="../../guide_rgg.html">Reaper's Game Guide</a></li> <li><a href="../../guide_r00t.html">R00t Guide</a></li> <li><a href="../../guide_speed-content.html">Speed Content Guide</a></li> <li><a href="../../guide_speedlooping.html">Speedlooping Guide</a></li> <li><a href="../../guide_thetrade.html">The Trade Guide</a></li> <li><a href="../../guide_wasteland.html">Wasteland Guide</a></li> </ul> </li> <li>Other <ul> <li><a href="../../arena.html">Arena</a></li> <li><a href="../../billy-club.html">Billy Club</a> <ul> <li><a href="../../boosters.html">Boosters</a></li> <li><a href="../../karma.html">Karma</a></li> </ul> </li> <li><a href="../../bloodline.html">Bloodlines</a></li> <li><a href="../../jutsu.html">Jutsu</a> <ul> <li><a href="../../jutsu.html#toc2">Bloodline Jutsu</a></li> <li><a href="../../jutsu.html#toc0">Regular Jutsu</a></li> <li><a href="../../jutsu.html#toc1">Special Jutsu</a></li> </ul> </li> <li><a href="../../mission-bonus.html">Mission Bonus</a></li> <li><a href="../../news-archive.html">News Archive</a></li> <li><a href="../../number-one.html">Number One</a></li> <li><a href="../../old-news-archive.html">Old News Archive</a></li> <li><a href="../../retail_perfect-poker.html">Perfect Poker Bosses</a></li> <li><a href="../../pets.html">Pets</a></li> <li><a href="../../retail.html">Retail</a></li> <li><a href="../../ryo.html">Ryo</a></li> <li><a href="../../spar.html">Spar With Friends</a></li> <li><a href="../../sponsored-items.html">Sponsored Items</a></li> <li><a href="../../store.html">Store</a></li> <li><a href="../../themes.html">Themes</a></li> <li><a href="../../trophies.html">Trophies</a></li> <li><a href="../../untabbed.html">Untabbed</a> <ul> <li><a href="../../untabbed_allies.html">Allies</a></li> <li><a href="../../untabbed_items.html">Items</a></li> <li><a href="../../untabbed_jutsu.html">Jutsu</a></li> <li><a href="../../untabbed_missions.html">Missions</a></li> <li><a href="../../untabbed_potions-crafting.html">Potions / Crafting</a></li> </ul> </li> <li><a href="../../world-kaiju.html">World Kaiju</a></li> </ul> </li> <li><a href="../../utilities.html">Utilities</a> <ul> <li><a href="http://www.cobaltknight.clanteam.com/awesomecalc.html">Awesome Calculator</a></li> <li><a href="http://timothydryke.byethost17.com/billy/itemchecker.php">Item Checker</a></li> <li><a href="../../utility_calculator.html">Mission Calculator</a></li> <li><a href="../../utility_r00t-calculator.html">R00t Calculator</a></li> <li><a href="../../utility_success-calculator.html">Success Calculator</a></li> <li><a href="../../templates.html">Templates</a></li> <li><a href="../../utility_chat.html">Wiki Chat Box</a></li> </ul> </li> </ul> </div> <div id="login-status"><a href="javascript:;" onclick="WIKIDOT.page.listeners.createAccount(event)" class="login-status-create-account btn">Create account</a> <span>or</span> <a href="javascript:;" onclick="WIKIDOT.page.listeners.loginClick(event)" class="login-status-sign-in btn btn-primary">Sign in</a> </div> <div id="header-extra-div-1"><span></span></div><div id="header-extra-div-2"><span></span></div><div id="header-extra-div-3"><span></span></div> </div> <div id="content-wrap"> <div id="side-bar"> <h3 ><span><a href="http://www.animecubed.com/billy/?57639" onclick="window.open(this.href, '_blank'); return false;">Play BvS Now!</a></span></h3> <ul> <li><a href="../../system_members.html">Site members</a></li> <li><a href="../../system_join.html">Wiki Membership</a></li> </ul> <hr /> <ul> <li><a href="../../forum_start.html">Forum Main</a></li> <li><a href="../../forum_recent-posts.html">Recent Posts</a></li> </ul> <hr /> <ul> <li><a href="../../system_recent-changes.html">Recent changes</a></li> <li><a href="../../system_list-all-pages.html">List all pages</a></li> <li><a href="../../system_page-tags-list.html">Page Tags</a></li> </ul> <hr /> <ul> <li><a href="../../players.html">Players</a></li> <li><a href="../../villages.html">Villages</a></li> <li><a href="../../other-resources.html">Other Resources</a></li> </ul> <hr /> <p style="text-align: center;"><span style="font-size:smaller;">Notice: Do not send bug reports based on the information on this site. If this site is not matching up with what you're experiencing in game, that is a problem with this site, not with the game.</span></p> </div> <!-- google_ad_section_end --> <div id="main-content"> <div id="action-area-top"></div> <div id="page-title"><a href="../../retail_truck-loading.html">Truck Loading</a> / Discussion</h1></div> <div id="page-content"> <div class="forum-thread-box "> <div class="forum-breadcrumbs"> <a href="../start.html">Forum</a> &raquo; <a href="../c-30019/per-page-discussions.html">Hidden / Per page discussions</a> &raquo; Truck Loading </div> <div class="description-block well"> <div class="statistics"> Started by: <span class="printuser">Wikidot</span><br/> Date: <span class="odate time_1400770896 format_%25e%20%25b%20%25Y%2C%20%25H%3A%25M%7Cagohover">22 May 2014 15:01</span><br/> Number of posts: 0<br/> <span class="rss-icon"><img src="http://www.wikidot.com/common--theme/base/images/feed/feed-icon-14x14.png" alt="rss icon"/></span> RSS: <a href="../../feed/forum/t-863975.xml">New posts</a> </div> This is the discussion related to the wiki page <a href="../../retail_truck-loading.html">Truck Loading</a>. </div> <div class="options"> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.unfoldAll(event)" class="btn btn-default btn-small btn-sm">Unfold All</a> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.foldAll(event)" class="btn btn-default btn-small btn-sm">Fold All</a> <a href="javascript:;" id="thread-toggle-options" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.toggleThreadOptions(event)" class="btn btn-default btn-small btn-sm"><i class="icon-plus"></i> More Options</a> </div> <div id="thread-options-2" class="options" style="display: none"> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.editThreadBlock(event)" class="btn btn-default btn-small btn-sm">Lock Thread</a> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.moveThread(event)" class="btn btn-default btn-small btn-sm">Move Thread</a> </div> <div id="thread-action-area" class="action-area well" style="display: none"></div> <div id="thread-container" class="thread-container"> <div id="thread-container-posts" style="display: none"> </div> </div> <div class="new-post"> <a href="javascript:;" id="new-post-button" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.newPost(event,null)" class="btn btn-default">New Post</a> </div> <div style="display:none" id="post-options-template"> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.showPermalink(event,'%POST_ID%')" class="btn btn-default btn-small btn-sm">Permanent Link</a> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.editPost(event,'%POST_ID%')" class="btn btn-default btn-small btn-sm">Edit</a> <a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.deletePost(event,'%POST_ID%')"class="btn btn-danger btn-small btn-sm">Delete</a> </div> <div style="display:none" id="post-options-permalink-template">/forum/t-863975/truck-loading#post-</div> </div> <script type="text/javascript"> WIKIDOT.forumThreadId = 863975; </script> </div> <div id="page-info-break"></div> <div id="page-options-container"> </div> <div id="action-area" style="display: none;"></div> </div> </div> <div id="footer" style="display: block; visibility: visible;"> <div class="options" style="display: block; visibility: visible;"> <a href="http://www.wikidot.com/doc" id="wikidot-help-button">Help</a> &nbsp;| <a href="http://www.wikidot.com/legal:terms-of-service" id="wikidot-tos-button">Terms of Service</a> &nbsp;| <a href="http://www.wikidot.com/legal:privacy-policy" id="wikidot-privacy-button">Privacy</a> &nbsp;| <a href="javascript:;" id="bug-report-button" onclick="WIKIDOT.page.listeners.pageBugReport(event)">Report a bug</a> &nbsp;| <a href="javascript:;" id="abuse-report-button" onclick="WIKIDOT.page.listeners.flagPageObjectionable(event)">Flag as objectionable</a> </div> Powered by <a href="http://www.wikidot.com/">Wikidot.com</a> </div> <div id="license-area" class="license-area"> Unless otherwise stated, the content of this page is licensed under <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 License</a> </div> <div id="extrac-div-1"><span></span></div><div id="extrac-div-2"><span></span></div><div id="extrac-div-3"><span></span></div> </div> </div> <!-- These extra divs/spans may be used as catch-alls to add extra imagery. --> <div id="extra-div-1"><span></span></div><div id="extra-div-2"><span></span></div><div id="extra-div-3"><span></span></div> <div id="extra-div-4"><span></span></div><div id="extra-div-5"><span></span></div><div id="extra-div-6"><span></span></div> </div> </div> <div id="dummy-ondomready-block" style="display: none;" ></div> <!-- Google Analytics load --> <script type="text/javascript"> (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- Quantcast --> <script type="text/javascript"> _qoptions={ qacct:"p-edL3gsnUjJzw-" }; (function() { var qc = document.createElement('script'); qc.type = 'text/javascript'; qc.async = true; qc.src = ('https:' == document.location.protocol ? 'https://secure' : 'http://edge') + '.quantserve.com/quant.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(qc, s); })(); </script> <noscript> <img src="http://pixel.quantserve.com/pixel/p-edL3gsnUjJzw-.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/> </noscript> <div id="page-options-bottom-tips" style="display: none;"> <div id="edit-button-hovertip"> Click here to edit contents of this page. </div> </div> <div id="page-options-bottom-2-tips" style="display: none;"> <div id="edit-sections-button-hovertip"> Click here to toggle editing of individual sections of the page (if possible). Watch headings for an &quot;edit&quot; link when available. </div> <div id="edit-append-button-hovertip"> Append content without editing the whole page source. </div> <div id="history-button-hovertip"> Check out how this page has evolved in the past. </div> <div id="discuss-button-hovertip"> If you want to discuss contents of this page - this is the easiest way to do it. </div> <div id="files-button-hovertip"> View and manage file attachments for this page. </div> <div id="site-tools-button-hovertip"> A few useful tools to manage this Site. </div> <div id="backlinks-button-hovertip"> See pages that link to and include this page. </div> <div id="rename-move-button-hovertip"> Change the name (also URL address, possibly the category) of the page. </div> <div id="view-source-button-hovertip"> View wiki source for this page without editing. </div> <div id="parent-page-button-hovertip"> View/set parent page (used for creating breadcrumbs and structured layout). </div> <div id="abuse-report-button-hovertip"> Notify administrators if there is objectionable content in this page. </div> <div id="bug-report-button-hovertip"> Something does not work as expected? Find out what you can do. </div> <div id="wikidot-help-button-hovertip"> General Wikidot.com documentation and help section. </div> <div id="wikidot-tos-button-hovertip"> Wikidot.com Terms of Service - what you can, what you should not etc. </div> <div id="wikidot-privacy-button-hovertip"> Wikidot.com Privacy Policy. </div> </div> </body> <!-- Mirrored from bvs.wikidot.com/forum/t-863975/retail:truck-loading by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 03:58:59 GMT --> </html>
{ "content_hash": "762aaa2a6b890ad22d904c1618436ce4", "timestamp": "", "source": "github", "line_count": 637, "max_line_length": 328, "avg_line_length": 43.98744113029827, "alnum_prop": 0.5960742326909351, "repo_name": "tn5421/tn5421.github.io", "id": "35c5faba19f2fabf8e228c37ed95fe4a63a9d09a", "size": "28020", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "bvs.wikidot.com/forum/t-863975/retail_truck-loading.html", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "400301089" } ], "symlink_target": "" }
package net.seiko_comb.combS8214808.joiss2016; public interface BinaryLearner { }
{ "content_hash": "471fe305cb7864f108b5064582add6aa", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 46, "avg_line_length": 21.75, "alnum_prop": 0.7816091954022989, "repo_name": "combS8214808/JOIss2016", "id": "618e037f5881c1b9c25989dab6e71c623a575129", "size": "87", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/net/seiko_comb/combS8214808/joiss2016/BinaryLearner.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "35166" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "af627bff87f267ace11f64119a234faa", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "7bdfaa675c327a9f524b4f686c703357bdc8c0b5", "size": "192", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Sapindales/Rutaceae/Zanthoxylum/Zanthoxylum rigidifolium/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
from rest_framework import serializers from gameGap.models import Post, Comment class PostSerializer(serializers.ModelSerializer): class Meta: model = Post class CommentSerializer(serializers.ModelSerializer): class Meta: model = Comment
{ "content_hash": "a4b932146bd7651343a8e6e4ad869f4e", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 53, "avg_line_length": 24, "alnum_prop": 0.7575757575757576, "repo_name": "chackett87/GameGap", "id": "2e28ed7eaa566959fdd3e0e21517489905265016", "size": "264", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "gameGap/api/serializers/entry_serializer.py", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3198" }, { "name": "HTML", "bytes": "10966" }, { "name": "JavaScript", "bytes": "8901" }, { "name": "Python", "bytes": "10264" } ], "symlink_target": "" }
package com.example.chengqi.mycoderepo.widgets; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.CheckBox; import android.widget.CompoundButton; import com.example.chengqi.mycoderepo.R; public class CheckBoxActivity extends AppCompatActivity { private static final String LOG_TAG = "CheckBoxActivity"; private CheckBox cb; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_check_box); cb = (CheckBox)findViewById(R.id.checkBox2); cb.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { Log.d(LOG_TAG, "clicked!"); } }); } }
{ "content_hash": "e35fd5e463f76782f6ce066b87c6ca42", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 88, "avg_line_length": 32.07142857142857, "alnum_prop": 0.7126948775055679, "repo_name": "firstbytegithub/MyCodeRepo", "id": "5bd2f4c247f2d6fc0fa4aed89ea171843f1b67f7", "size": "898", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/example/chengqi/mycoderepo/widgets/CheckBoxActivity.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "348525" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name Leptostroma myriospermum C. Massal., 1889 ### Remarks null
{ "content_hash": "95f28ac31e8646a5bafd911403d5a427", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 41, "avg_line_length": 13.076923076923077, "alnum_prop": 0.7176470588235294, "repo_name": "mdoering/backbone", "id": "a89b433b871e6b2f90432d6605f1955f332bc197", "size": "235", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Columnothyrium/Columnothyrium myriospermum/ Syn. Leptostroma myriospermum/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<!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 Fri Sep 10 11:28:15 PDT 2004 --> <TITLE> ChoiceCallback (GNU cryptographic primitives and tools) </TITLE> <META NAME="keywords" CONTENT="javax.security.auth.callback.ChoiceCallback,ChoiceCallback class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> </HEAD> <SCRIPT> function asd() { parent.document.title="ChoiceCallback (GNU cryptographic primitives and tools)"; } </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"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&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> For the latest news and information visit<BR><A HREF="http://www.gnu.org/software/gnu-crypto">The GNU Crypto project</A></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV CLASS&nbsp; &nbsp;<A HREF="../../../../javax/security/auth/callback/ConfirmationCallback.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ChoiceCallback.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> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: &nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <A NAME="main"></A> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> javax.security.auth.callback</FONT> <BR> Class ChoiceCallback</H2> <PRE> java.lang.Object | +--<B>javax.security.auth.callback.ChoiceCallback</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../javax/security/auth/callback/Callback.html">Callback</A>, java.io.Serializable</DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../javax/security/sasl/RealmChoiceCallback.html">RealmChoiceCallback</A></DD> </DL> <HR> <DL> <DT>public class <B>ChoiceCallback</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../javax/security/auth/callback/Callback.html">Callback</A>, java.io.Serializable</DL> <P> Underlying security services instantiate and pass a <code>ChoiceCallback</code> to the <code>handle()</code> method of a <A HREF="../../../../javax/security/auth/callback/CallbackHandler.html"><CODE>CallbackHandler</CODE></A> to display a list of choices and to retrieve the selected choice(s). <P> <P> <DL> <DT><B>See Also: </B><DD><A HREF="../../../../javax/security/auth/callback/CallbackHandler.html"><CODE>CallbackHandler</CODE></A>, <A HREF="../../../../serialized-form.html" TARGET="javax.security.auth.callback.ChoiceCallback">Serialized Form</A></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#ChoiceCallback(java.lang.String, java.lang.String[], int, boolean)">ChoiceCallback</A></B>(java.lang.String&nbsp;prompt, java.lang.String[]&nbsp;choices, int&nbsp;defaultChoice, boolean&nbsp;multipleSelectionsAllowed)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a <code>ChoiceCallback</code> with a prompt, a list of choices, a default choice, and a boolean specifying whether or not multiple selections from the list of choices are allowed.</TD> </TR> </TABLE> &nbsp; <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#allowMultipleSelections()">allowMultipleSelections</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the boolean determining whether multiple selections from the choices list are allowed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.lang.String[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#getChoices()">getChoices</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the list of choices.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#getDefaultChoice()">getDefaultChoice</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the defaultChoice.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#getPrompt()">getPrompt</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the prompt.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;int[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#getSelectedIndexes()">getSelectedIndexes</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the selected choices.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#setSelectedIndex(int)">setSelectedIndex</A></B>(int&nbsp;selection)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the selected choice.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#setSelectedIndexes(int[])">setSelectedIndexes</A></B>(int[]&nbsp;selections)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the selected choices.</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> &nbsp; <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="ChoiceCallback(java.lang.String, java.lang.String[], int, boolean)"><!-- --></A><H3> ChoiceCallback</H3> <PRE> public <B>ChoiceCallback</B>(java.lang.String&nbsp;prompt, java.lang.String[]&nbsp;choices, int&nbsp;defaultChoice, boolean&nbsp;multipleSelectionsAllowed)</PRE> <DL> <DD>Construct a <code>ChoiceCallback</code> with a prompt, a list of choices, a default choice, and a boolean specifying whether or not multiple selections from the list of choices are allowed. <P> <DT><B>Parameters:</B><DD><CODE>prompt</CODE> - the prompt used to describe the list of choices.<DD><CODE>choices</CODE> - the list of choices.<DD><CODE>defaultChoice</CODE> - the choice to be used as the default choice when the list of choices are displayed. This value is represented as an index into the <code>choices</code> array.<DD><CODE>multipleSelectionsAllowed</CODE> - boolean specifying whether or not multiple selections can be made from the list of choices. <DT><B>Throws:</B> <DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>prompt</code> is <code>null</code>, if <code>prompt</code> has a length of <code>0</code>, if <code>choices</code> is <code>null</code>, if <code>choices</code> has a length of <code>0</code>, if any element from <code>choices</code> is <code>null</code>, if any element from <code>choices</code> has a length of <code>0</code> or if <code>defaultChoice</code> does not fall within the array boundaries of <code>choices</code>.</DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="getPrompt()"><!-- --></A><H3> getPrompt</H3> <PRE> public java.lang.String <B>getPrompt</B>()</PRE> <DL> <DD>Get the prompt. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the prompt.</DL> </DD> </DL> <HR> <A NAME="getChoices()"><!-- --></A><H3> getChoices</H3> <PRE> public java.lang.String[] <B>getChoices</B>()</PRE> <DL> <DD>Get the list of choices. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the list of choices.</DL> </DD> </DL> <HR> <A NAME="getDefaultChoice()"><!-- --></A><H3> getDefaultChoice</H3> <PRE> public int <B>getDefaultChoice</B>()</PRE> <DL> <DD>Get the defaultChoice. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the defaultChoice, represented as an index into the choices list.</DL> </DD> </DL> <HR> <A NAME="allowMultipleSelections()"><!-- --></A><H3> allowMultipleSelections</H3> <PRE> public boolean <B>allowMultipleSelections</B>()</PRE> <DL> <DD>Get the boolean determining whether multiple selections from the choices list are allowed. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>whether multiple selections are allowed.</DL> </DD> </DL> <HR> <A NAME="setSelectedIndex(int)"><!-- --></A><H3> setSelectedIndex</H3> <PRE> public void <B>setSelectedIndex</B>(int&nbsp;selection)</PRE> <DL> <DD>Set the selected choice. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>selection</CODE> - the selection represented as an index into the choices list.<DT><B>See Also: </B><DD><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#getSelectedIndexes()"><CODE>getSelectedIndexes()</CODE></A></DL> </DD> </DL> <HR> <A NAME="setSelectedIndexes(int[])"><!-- --></A><H3> setSelectedIndexes</H3> <PRE> public void <B>setSelectedIndexes</B>(int[]&nbsp;selections)</PRE> <DL> <DD>Set the selected choices. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>selections</CODE> - the selections represented as indexes into the choices list. <DT><B>Throws:</B> <DD><CODE>java.lang.UnsupportedOperationException</CODE> - if multiple selections are not allowed, as determined by <code>allowMultipleSelections</code>.<DT><B>See Also: </B><DD><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#getSelectedIndexes()"><CODE>getSelectedIndexes()</CODE></A></DL> </DD> </DL> <HR> <A NAME="getSelectedIndexes()"><!-- --></A><H3> getSelectedIndexes</H3> <PRE> public int[] <B>getSelectedIndexes</B>()</PRE> <DL> <DD>Get the selected choices. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the selected choices, represented as indexes into the choices list.<DT><B>See Also: </B><DD><A HREF="../../../../javax/security/auth/callback/ChoiceCallback.html#setSelectedIndexes(int[])"><CODE>setSelectedIndexes(int[])</CODE></A></DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== 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"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&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> For the latest news and information visit<BR><A HREF="http://www.gnu.org/software/gnu-crypto">The GNU Crypto project</A></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV CLASS&nbsp; &nbsp;<A HREF="../../../../javax/security/auth/callback/ConfirmationCallback.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ChoiceCallback.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> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: &nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> Copyright &copy; 2001, 2002, 2003, 2004 Free Software Foundation, Inc. </BODY> </HTML>
{ "content_hash": "b4d92b885cb0c34314f09aa77308b363", "timestamp": "", "source": "github", "line_count": 443, "max_line_length": 259, "avg_line_length": 39.29796839729119, "alnum_prop": 0.643977253144925, "repo_name": "maddenp/bluebook", "id": "c955b8be9e788e5adb9d906b9e976d8e6e8037e9", "size": "17409", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "gnu-crypto-2.0.1-bin/docs/api/javax/security/auth/callback/ChoiceCallback.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "22258" } ], "symlink_target": "" }
require 'rails/generators' module WhatsWrong module Generators class InstallGenerator < Rails::Generators::Base def install create_file("config/initializers/whats_wrong.rb", <<-RUBY) WhatsWrong.enabled = true RUBY end end end end
{ "content_hash": "b774b99e5ae612bf8fd5307f94cc18fb", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 66, "avg_line_length": 19.428571428571427, "alnum_prop": 0.6801470588235294, "repo_name": "bastengao/whats-wrong", "id": "3bda82f2d67008cb18ff1a1899e001f5a85504bc", "size": "272", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/generators/whats_wrong/install_generator.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "736" }, { "name": "HTML", "bytes": "9499" }, { "name": "JavaScript", "bytes": "1137" }, { "name": "Ruby", "bytes": "26917" } ], "symlink_target": "" }
namespace ChilliSource { CS_DEFINE_NAMEDTYPE(HttpRequestSystem); //------------------------------------------------------- //------------------------------------------------------- HttpRequestSystemUPtr HttpRequestSystem::Create() { #ifdef CS_TARGETPLATFORM_IOS return HttpRequestSystemUPtr(new CSBackend::iOS::HttpRequestSystem()); #endif #ifdef CS_TARGETPLATFORM_ANDROID return HttpRequestSystemUPtr(new CSBackend::Android::HttpRequestSystem()); #endif #ifdef CS_TARGETPLATFORM_WINDOWS return HttpRequestSystemUPtr(new CSBackend::Windows::HttpRequestSystem()); #endif #ifdef CS_TARGETPLATFORM_RPI return HttpRequestSystemUPtr(new CSBackend::RPi::HttpRequestSystem()); #endif return nullptr; } //-------------------------------------------------------------------------------------------------- /// @author S Downie /// /// @param The number of bytes read before the buffer is flushed (0 is infinite) //-------------------------------------------------------------------------------------------------- void HttpRequestSystem::SetMaxBufferSize(u32 in_sizeInBytes) { m_maxBufferSize = in_sizeInBytes; } //-------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------- u32 HttpRequestSystem::GetMaxBufferSize() const { return m_maxBufferSize; } }
{ "content_hash": "116df9bce87c97e0d6f045d662b34d4f", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 104, "avg_line_length": 39.973684210526315, "alnum_prop": 0.45687952600395, "repo_name": "ChilliWorks/ChilliSource", "id": "cdc9a46f80b2cbd592c49b9bb044ecbbb1e4c0ef", "size": "3289", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Source/ChilliSource/Networking/Http/HttpRequestSystem.cpp", "mode": "33261", "license": "mit", "language": [ { "name": "C", "bytes": "9371694" }, { "name": "C++", "bytes": "9942473" }, { "name": "Java", "bytes": "1911615" }, { "name": "Makefile", "bytes": "18869" }, { "name": "Objective-C", "bytes": "210639" }, { "name": "Objective-C++", "bytes": "280471" }, { "name": "Python", "bytes": "53174" } ], "symlink_target": "" }
Collaboration folder for creating IR system on social networks with analytics information This project was done under course requirement "Information retrieval" by "Prof. Rohini Srihari". The main objective of this project is to implement and evaluate a multi-lingual search system using twitter data. We named our product accordingly as “Social curry”. Social Curry is an interactive search system which presents multi-lingual results from twitter based on user query, along with interesting charts and graphs pertinent to the query result set. The primary source of the data consists of more than 10000 tweets collected from twitter over a period of a few weeks, plus more than 10K news articles from Guardian and NYT. Using Vector space model as the search model in Apache Solr, we created a robust, scalable, and reliable search system which along with displaying the tweets in native format ( as seen on actual twitter.com ), also gives the users the faceted search option on the left, and various interesting analytics of the query results such as trending hashtags, sentiment analysis, data source etc. among others, which are presented using attractive graphs. We created the project for 5 languages, namely, English, French, German, Russian and Arabic on the topic of "Refugee crisis in Europe". The data indexed gives a broader perspective to this topic by generating the summaries on the topics searched from Wikipedia, and fetching relevant news articles from Guardian and NY Times. Collaborators : 1. Jaideep Bhoosreddy @jaideepcoder 2. Suhas Subaramanyam @suhassubramanyam 3. Vinay Goyal @vinaygoyal 4. Sunandan Barman @sunandanbarman Screenshots below : **Welcome screen** ![welcome screen](../master/screenshots/IntroScreen.png?raw=true) This is the welcome screen for the user. **Search results** ![Search results](../master/screenshots/SearchResults.png?raw=true) This is the search results shown to the user. List of features : 1. Faceting based on langugage of tweet, Source of tweet, and verified/unverified users. ( See left sidebar ) 2. Fetching the summary from Wikipedia, uses the top entity found in Tweets data returned as part of search 3. Trending hashtags (both based on the whole corpus), and also from the found results 4. Fetching top news articles from "The Guardian" on the searched topic 5. Show the tweet in native twitter format, including support for Video, GIFs etc. **Word cloud and Content tagging** ![Word cloud and Content tagging](../master/screenshots/WordCloudAndContentTag.png?raw=true) Shows the word cloud from the generated data, plus sentiment analysis of the results. Also shows the entities in each tweet along with the results **Time series graph** ![More analysis graphs](../master/screenshots/GraphAnalysis.png?raw=true) Time series graph showing the rise/fall of the searched topic. Can be used to track the interest in a topic during a particular time period.
{ "content_hash": "0dd83ef8deb6b3536488b3b00b3574c8", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 137, "avg_line_length": 53.43636363636364, "alnum_prop": 0.7975501871384825, "repo_name": "jaideepcoder/IR_System", "id": "426549751b60a14149708d90b4f5f487559c6d33", "size": "2955", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "366" }, { "name": "HTML", "bytes": "35744" }, { "name": "Java", "bytes": "42990" }, { "name": "JavaScript", "bytes": "18339" }, { "name": "Python", "bytes": "815" } ], "symlink_target": "" }
package herddb.index.brin; import herddb.core.Page; import herddb.core.Page.Metadata; import herddb.core.PageReplacementPolicy; import herddb.storage.DataStorageManagerException; import herddb.utils.EnsureLongIncrementAccumulator; import herddb.utils.SizeAwareObject; import java.io.IOException; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.ListIterator; import java.util.Map; import java.util.NavigableMap; import java.util.Objects; import java.util.TreeMap; import java.util.concurrent.ConcurrentNavigableMap; import java.util.concurrent.ConcurrentSkipListMap; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Stream; /** * Very Simple BRIN (Block Range Index) implementation with pagination managed by a {@link PageReplacementPolicy} * * @author enrico.olivelli * @author diego.salvi */ public final class BlockRangeIndex<K extends Comparable<K> & SizeAwareObject, V extends SizeAwareObject> { private static final Logger LOG = Logger.getLogger(BlockRangeIndex.class.getName()); private static final long ENTRY_CONSTANT_BYTE_SIZE = 93; private static final long BLOCK_CONSTANT_BYTE_SIZE = 128; private final long maxPageBlockSize; private final long minPageBlockSize; private final ConcurrentNavigableMap<BlockStartKey<K>, Block<K, V>> blocks = new ConcurrentSkipListMap<>(); private final AtomicLong currentBlockId = new AtomicLong(0L); private final IndexDataStorage<K, V> dataStorage; private final PageReplacementPolicy pageReplacementPolicy; public BlockRangeIndex(long maxBlockSize, PageReplacementPolicy pageReplacementPolicy) { this(maxBlockSize, pageReplacementPolicy, new MemoryIndexDataStorage<>()); } public BlockRangeIndex(long maxBlockSize, PageReplacementPolicy pageReplacementPolicy, IndexDataStorage<K, V> dataStorage) { this.maxPageBlockSize = maxBlockSize - BLOCK_CONSTANT_BYTE_SIZE; if (maxBlockSize < 0) { throw new IllegalArgumentException("page size to small to store any index entry: " + maxBlockSize); } this.minPageBlockSize = maxBlockSize / 3; this.pageReplacementPolicy = pageReplacementPolicy; this.dataStorage = dataStorage; } static final class BlockStartKey<K extends Comparable<K>> implements Comparable<BlockStartKey<K>> { static final BlockStartKey<?> HEAD_KEY = new BlockStartKey<>(null, 0L); public final K minKey; public final long blockId; @Override public String toString() { if (minKey == null) { return "BlockStartKey{HEAD}"; } else { return "BlockStartKey{" + minKey + "," + blockId + '}'; } } @SuppressWarnings("unchecked") public static <X extends Comparable<X>> BlockStartKey<X> valueOf(X minKey, long segmentId) { if (minKey == null) { if (segmentId != HEAD_KEY.blockId) { throw new IllegalArgumentException(); } return (BlockStartKey<X>) HEAD_KEY; } return new BlockStartKey<>(minKey, segmentId); } private BlockStartKey(K minKey, long segmentId) { this.minKey = minKey; this.blockId = segmentId; } @Override public int compareTo(BlockStartKey<K> o) { if (o == this) { return 0; } else if (HEAD_KEY == this) { return -1; } else if (o == HEAD_KEY) { return 1; } int diff = this.minKey.compareTo(o.minKey); if (diff != 0) { return diff; } return Long.compare(blockId, o.blockId); } public int compareMinKey(K other) { if (HEAD_KEY == this) { return -1; } return this.minKey.compareTo(other); } @Override public int hashCode() { int hash = 3; hash = 67 * hash + Objects.hashCode(this.minKey); hash = 67 * hash + Long.hashCode(this.blockId); return hash; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final BlockStartKey<?> other = (BlockStartKey<?>) obj; if (this.blockId != other.blockId) { return false; } return Objects.equals(this.minKey, other.minKey); } } private static final class BRINPage<Key extends Comparable<Key> & SizeAwareObject, Val extends SizeAwareObject> extends Page<Block<Key, Val>> { public BRINPage(Block<Key, Val> owner, long blockId) { super(owner, blockId); } @Override public String toString() { return "BRINPage [owner=" + owner + ", pageId=" + pageId + "]"; } } private long evaluateEntrySize(K key, V value) { final long size = key.getEstimatedSize() + value.getEstimatedSize() + ENTRY_CONSTANT_BYTE_SIZE; if (size > maxPageBlockSize) { throw new IllegalStateException( "entry too big to fit in any page " + size + " bytes"); } return size; } private static class PutState<Key extends Comparable<Key> & SizeAwareObject, Val extends SizeAwareObject> { Block<Key, Val> next; public PutState() { super(); } } private static class DeleteState<Key extends Comparable<Key> & SizeAwareObject, Val extends SizeAwareObject> { Block<Key, Val> next; public DeleteState() { super(); } } private static class LookupState<Key extends Comparable<Key> & SizeAwareObject, Val extends SizeAwareObject> { Block<Key, Val> next; List<Val> found; public LookupState() { super(); found = new ArrayList<>(); } } static final class Block<Key extends Comparable<Key> & SizeAwareObject, Val extends SizeAwareObject> implements Page.Owner { final BlockRangeIndex<Key, Val> index; final BlockStartKey<Key> key; NavigableMap<Key, List<Val>> values; long size; Block<Key, Val> next; private final ReentrantLock lock = new ReentrantLock(true); private volatile boolean loaded; private volatile boolean dirty; private volatile long pageId; private final BRINPage<Key, Val> page; /** * Constructor for restore operations */ public Block(BlockRangeIndex<Key, Val> index, BlockStartKey<Key> key, long size, long pageId, Block<Key, Val> next) { this.index = index; this.key = key; this.size = size; this.next = next; this.loaded = false; this.dirty = false; this.pageId = pageId; /* Immutable Block ID */ page = new BRINPage<>(this, key.blockId); } /** * Constructor for head block */ @SuppressWarnings("unchecked") public Block(BlockRangeIndex<Key, Val> index) { this.index = index; this.key = (BlockStartKey<Key>) BlockStartKey.HEAD_KEY; this.values = new TreeMap<>(); this.size = 0; this.loaded = true; this.dirty = true; this.pageId = IndexDataStorage.NEW_PAGE; /* Immutable Block ID */ page = new BRINPage<>(this, key.blockId); } /** * Construtor for split operations */ private Block(BlockRangeIndex<Key, Val> index, BlockStartKey<Key> key, NavigableMap<Key, List<Val>> values, long size, Block<Key, Val> next) { this.index = index; this.key = key; this.values = values; this.size = size; this.next = next; this.loaded = true; this.dirty = true; this.pageId = IndexDataStorage.NEW_PAGE; /* Immutable Block ID */ page = new BRINPage<>(this, key.blockId); } long getSize() { return size; } boolean isLoaded() { return loaded; } boolean isDirty() { return dirty; } private void mergeAddValue(Key key1, Val value, Map<Key, List<Val>> values) { List<Val> valuesForKey = values.get(key1); if (valuesForKey == null) { valuesForKey = new ArrayList<>(); values.put(key1, valuesForKey); } valuesForKey.add(value); } void addValue(Key key, Val value, PutState<Key, Val> state) { /* Eventual new block from split. It must added to PageReplacementPolicy only after lock release */ Block<Key, Val> newblock = null; lock.lock(); try { Block<Key, Val> currentNext = this.next; if (currentNext != null && currentNext.key.compareMinKey(key) <= 0) { // unfortunately this occours during split // put #1 -> causes split // put #2 -> designates this block for put, but the split is taking place // put #1 returns // put #2 needs to addValue to the 'next' (split result) block not to this /* Add to next */ state.next = currentNext; return; } ensureBlockLoaded(); mergeAddValue(key, value, values); size += index.evaluateEntrySize(key, value); dirty = true; if (size > index.maxPageBlockSize) { newblock = split(); } } finally { lock.unlock(); } if (newblock != null) { final Metadata unload = index.pageReplacementPolicy.add(newblock.page); if (unload != null) { unload.owner.unload(unload.pageId); } } /* Added */ /* No more next */ state.next = null; } void delete(Key key, Val value, DeleteState<Key, Val> state) { lock.lock(); try { final Block<Key, Val> currentNext = this.next; /* * Compare deletion key with next block min key. If no next block exists * comparison is set to an arbitrary value needed only for initialization */ final int nextMinKeyCompare = currentNext == null ? -1 : currentNext.key.compareMinKey(key); /* * If reached during split this block could be too "small". In such case we * don't need to attempt any load but send directly to next. Pay attention that * if next block min key is equal to needed key we must look in this node too * (the key list could be split between both nodes) */ if (currentNext == null || nextMinKeyCompare >= 0) { ensureBlockLoaded(); List<Val> valuesForKey = values.get(key); if (valuesForKey != null) { boolean removed = valuesForKey.remove(value); if (removed) { if (valuesForKey.isEmpty()) { values.remove(key); } size -= index.evaluateEntrySize(key, value); dirty = true; /* Value removed, stop deletions */ /* No more next */ state.next = null; return; } } } /* * Propagate to next only if it exist AND next min key isn't greater than requested * key (ie: only if next could have any useful data) */ if (currentNext != null && nextMinKeyCompare <= 0) { state.next = currentNext; } else { /* No more next */ state.next = null; } } finally { lock.unlock(); } } void lookUpRange(Key firstKey, Key lastKey, LookupState<Key, Val> state) { lock.lock(); /* * If we got here means that at some point this block had a min key compatible * with lookup limits. Because min key never change we could be skipped only if * first requested key is greater than next min key (due to an occurring split * while selecting the blocks) */ try { final Block<Key, Val> currentNext = this.next; if (firstKey != null && lastKey != null) { /* * If reached during split this block could be too "small". In such case we * don't need to attempt any load but send directly to next. Pay attention that * if next block min key is equal to needed key we must look in this node too * (the key list could be split between both nodes) */ if (currentNext == null || currentNext.key.compareMinKey(firstKey) >= 0) { // index seek case ensureBlockLoaded(); if (firstKey.equals(lastKey)) { List<Val> seek = values.get(firstKey); if (seek != null && !seek.isEmpty()) { state.found.addAll(seek); } } else if (lastKey.compareTo(firstKey) < 0) { // no value is possible } else { values.subMap(firstKey, true, lastKey, true).forEach((k, seg) -> { state.found.addAll(seg); }); } } } else if (firstKey != null) { /* * If reached during split this block could be too "small". In such case we * don't need to attempt any load but send directly to next. Pay attention that * if next block min key is equal to needed key we must look in this node too * (the key list could be split between both nodes) */ if (currentNext == null || currentNext.key.compareMinKey(firstKey) >= 0) { // index seek case ensureBlockLoaded(); values.tailMap(firstKey, true).forEach((k, seg) -> { state.found.addAll(seg); }); } } else { ensureBlockLoaded(); values.headMap(lastKey, true).forEach((k, seg) -> { state.found.addAll(seg); }); } /* * Propagate to next only if it exist AND next min key is less or equal than requested * last key (ie: only if next could have any useful data) */ if (currentNext != null && (lastKey == null || currentNext.key.compareMinKey(lastKey) <= 0)) { state.next = currentNext; } else { /* No more next */ state.next = null; } } finally { lock.unlock(); } } void ensureBlockLoaded() { final Page.Metadata unload = ensureBlockLoadedWithoutUnload(); if (unload != null) { unload.owner.unload(unload.pageId); } } Page.Metadata ensureBlockLoadedWithoutUnload() { if (!loaded) { try { values = new TreeMap<>(); /* * Skip load and add if we already known that there isn't data. Add is a really * little overhead but load should read from disk so we just skip such unuseful * roundtrip */ if (size != 0) { List<Map.Entry<Key, Val>> loadDataPage = index.dataStorage.loadDataPage(pageId); for (Map.Entry<Key, Val> entry : loadDataPage) { mergeAddValue(entry.getKey(), entry.getValue(), values); } } loaded = true; /* Deferred page unload */ final Page.Metadata unload = index.pageReplacementPolicy.add(page); return unload; } catch (IOException err) { throw new RuntimeException(err); } } else { index.pageReplacementPolicy.pageHit(page); } return null; } /** * Return the newly generated block if any */ private Block<Key, Val> split() { if (size < index.maxPageBlockSize) { throw new IllegalStateException("Split on a non overflowing block"); } if (LOG.isLoggable(Level.FINE)) { LOG.log(Level.FINE, "Split: FK " + key, new Object[]{key}); } NavigableMap<Key, List<Val>> keepValues = new TreeMap<>(); NavigableMap<Key, List<Val>> otherValues = new TreeMap<>(); final long splitSize = size / 2; long mySize = 0; long otherSize = 0; for (Map.Entry<Key, List<Val>> entry : values.entrySet()) { final Key key = entry.getKey(); for (Val v : entry.getValue()) { final long entrySize = index.evaluateEntrySize(key, v); if (mySize < splitSize) { mergeAddValue(key, v, keepValues); mySize += entrySize; } else { mergeAddValue(key, v, otherValues); otherSize += entrySize; } } } if (otherValues.isEmpty()) { return null; } Key newOtherMinKey = otherValues.firstKey(); long newBlockId = index.currentBlockId.incrementAndGet(); /* * For right sorting reasons block id must be negative if the splitting key is greater or equals * than the current min key. Otherwise, when splitting a block with the same splitting key and min * key the block id must be positive. * * Positive or negative means: negative: the new block must precede any other block with the same * "new" min key that could exists positive: the new block must follow the current splitting bloc * (this case is done right because we add elements in the greater block possible: if we have more * blocks with the same min key we use the last one). */ /** * <pre> * +-----------------+ +-----------------+ * | MinKey: 1 | | MinKey: 3 | * ... -> | BlockId: 10 | -> | BlockId: 11 | -> ... * | Keys: 1, 2, 2 | | Keys: 3, 4 | * | Occupancy: 100% | | Occupancy: 66% | * +-----------------+ +-----------------+ * * Adding key 2 with next block id 12: create a new block (2,-12) * * +-----------------+ +-----------------+ +-----------------+ * | MinKey: 1 | | MinKey: 2 | | MinKey: 3 | * ... -> | BlockId: 10 | -> | BlockId: -12 | -> | BlockId: 11 | -> ... * | Keys: 1, 2 | | Keys: 2, 2 | | Keys: 3, 4 | * | Occupancy: 66% | | Occupancy: 66% | | Occupancy: 66% | * +-----------------+ +-----------------+ +-----------------+ * * Adding key 2 with next block id 13: add to block (2,-12) * * +-----------------+ +-----------------+ +-----------------+ * | MinKey: 1 | | MinKey: 2 | | MinKey: 3 | * ... -> | BlockId: 10 | -> | BlockId: -12 | -> | BlockId: 11 | -> ... * | Keys: 1, 2 | | Keys: 2, 2, 2 | | Keys: 3, 4 | * | Occupancy: 66% | | Occupancy: 100% | | Occupancy: 66% | * +-----------------+ +-----------------+ +-----------------+ * * Adding key 2 with next block id 13: create a new block (2,13) * * +-----------------+ +-----------------+ +-----------------+ +-----------------+ * | MinKey: 1 | | MinKey: 2 | | MinKey: 2 | | MinKey: 3 | * ... -> | BlockId: 10 | -> | BlockId: -12 | -> | BlockId: 13 | -> | BlockId: 11 | -> ... * | Keys: 1, 2 | | Keys: 2, 2 | | Keys: 2, 2 | | Keys: 3, 4 | * | Occupancy: 66% | | Occupancy: 66% | | Occupancy: 66% | | Occupancy: 66% | * +-----------------+ +-----------------+ +-----------------+ +-----------------+ * * Notice than being the splitting (2,-12) permits to sort in the right order with the new block (2,13). * The same thing would have happened if the block (1,10) was the HEAD block instead (just it doesn't have * a min key). * </pre> */ if (key == BlockStartKey.HEAD_KEY || !key.minKey.equals(newOtherMinKey)) { newBlockId = -newBlockId; } Block<Key, Val> newblock = new Block<>(index, BlockStartKey.valueOf(newOtherMinKey, newBlockId), otherValues, otherSize, next); this.next = newblock; this.size = mySize; this.values = keepValues; /* * First publish the new block then reduce this block min/max keys. If done otherwise a * concurrent lookup thread could miss the block containing the right data. * * blocks.put acts as memory barrier (contains at least a volatile access thus reordering is * blocked [happen before]) */ // access to external field, this is the cause of most of the concurrency problems index.blocks.put(newblock.key, newblock); return newblock; } private BlockRangeIndexMetadata.BlockMetadata<Key> checkpointNoLock() throws IOException { if (!dirty || !loaded) { final Long nextBlockId = next == null ? null : next.key.blockId; return new BlockRangeIndexMetadata.BlockMetadata<>(key.minKey, key.blockId, size, pageId, nextBlockId); } List<Map.Entry<Key, Val>> result = new ArrayList<>(); values.forEach((k, l) -> { l.forEach(v -> { result.add(new AbstractMap.SimpleImmutableEntry<>(k, v)); }); }); long newPageId = index.dataStorage.createDataPage(result); if (LOG.isLoggable(Level.FINE)) { LOG.fine("checkpoint block " + key + ": newpage -> " + newPageId + " with " + values.size() + " entries x " + result.size() + " pointers"); } this.dirty = false; this.pageId = newPageId; final Long nextBlockId = next == null ? null : next.key.blockId; return new BlockRangeIndexMetadata.BlockMetadata<>(key.minKey, key.blockId, size, pageId, nextBlockId); } private BlockRangeIndexMetadata.BlockMetadata<Key> checkpoint() throws IOException { lock.lock(); try { return checkpointNoLock(); } finally { lock.unlock(); } } boolean unloadNoLock() throws IOException { if (!loaded) { return false; } if (dirty) { checkpoint(); } values = null; loaded = false; return true; } boolean unload() throws IOException { lock.lock(); try { return unloadNoLock(); } finally { lock.unlock(); } } /** * Do not execute a checkpoint during unload procedure even if needed. */ private boolean forcedUnload() { lock.lock(); try { if (!loaded) { return false; } values = null; loaded = false; return true; } finally { lock.unlock(); } } @Override public void unload(long pageId) { if (page.pageId == this.page.pageId) { try { unload(); } catch (IOException e) { throw new RuntimeException(e); } } else { throw new IllegalArgumentException("Expecting to receive managed page " + this.page.pageId + " got " + pageId); } } @Override public String toString() { return "Block{" + "key=" + key + ", minKey=" + key.minKey + ", size=" + size + ", next=" + (next == null ? null : next.key) + "}"; } } public int getNumBlocks() { return blocks.size(); } private BlockRangeIndexMetadata.BlockMetadata<K> merge(Block<K, V> first, List<Block<K, V>> merging) throws IOException { final boolean fineEnabled = LOG.isLoggable(Level.FINE); /* No real merge */ if (merging.isEmpty()) { if (fineEnabled) { LOG.fine("block " + first.pageId + " (" + first.key + ") has " + first + " byte size at checkpoint"); } return first.checkpoint(); } /* * Data is provided in reverse order (smaller block is last) so we must iterate * in reverse order (to preserve "next" relationship) */ final ListIterator<Block<K, V>> iterator = merging.listIterator(merging.size()); Page.Metadata firstBlockUnload = null; first.lock.lock(); try { /* We need block data to attempt merge */ first.ensureBlockLoaded(); while (iterator.hasPrevious()) { Block<K, V> other = iterator.previous(); other.lock.lock(); try { /* Real merging is needed only if there is some data to merge, otherwise we just "delete" it */ if (other.size != 0) { final Page.Metadata unload = other.ensureBlockLoadedWithoutUnload(); if (unload != null) { if (first.page.owner == unload.owner) { /* We defer page unloading if requested page is first block! */ firstBlockUnload = unload; } else { unload.owner.unload(unload.pageId); } } /* Recover potetially overwritten data before merge. */ List<V> potentialOverwrite = first.values.get(other.key.minKey); /* Merge maps */ first.values.putAll(other.values); /* * Blocks splitted on the same key: the have a List each with the same key! We * still use putAll because is more efficient on TreeMap when given a SortedMap * but we need to restore original list data from first value (due to overwrite) */ if (potentialOverwrite != null) { /* Restore overwiritten data */ first.values.merge(other.key.minKey, potentialOverwrite, (l1, l2) -> { l1.addAll(l2); return l1; }); } first.size += other.size; } if (fineEnabled) { if (other.size != 0) { LOG.fine("unlinking block " + first.pageId + " (" + first.key + ") from merged block " + other.pageId + " (" + other.key + ")"); } else { LOG.fine("unlinking block " + first.pageId + " (" + first.key + ") from deleted block " + other.pageId + " (" + other.key + ")"); } if (other.next != null) { LOG.fine("linking block " + first.pageId + " (" + first.key + ") to real next block " + other.next.pageId + " (" + other.next.key + ")"); } } /* Update next reference */ first.next = other.next; /* Data not needed anymore */ other.unloadNoLock(); /* Remove the block from knowledge */ blocks.remove(other.key); } finally { other.lock.unlock(); } } } finally { first.lock.unlock(); } if (fineEnabled) { LOG.fine("merged block " + first.pageId + " (" + first.key + ") has " + first.size + " byte size at checkpoint"); } BlockRangeIndexMetadata.BlockMetadata<K> metadata = first.checkpointNoLock(); /* Deferred unload of first block! */ if (firstBlockUnload != null) { firstBlockUnload.owner.unload(firstBlockUnload.pageId); } return metadata; } public BlockRangeIndexMetadata<K> checkpoint() throws IOException { final boolean fineEnabled = LOG.isLoggable(Level.FINE); List<BlockRangeIndexMetadata.BlockMetadata<K>> blocksMetadata = new ArrayList<>(); /* Reverse ordering! */ Iterator<Block<K, V>> iterator = blocks.descendingMap().values().iterator(); long mergeSize = 0; Block<K, V> lastMergeReference = null; List<Block<K, V>> mergeReferences = new ArrayList<>(); /* Inverse iteration! (Last block is HEAD block) */ while (iterator.hasNext()) { Block<K, V> block = iterator.next(); block.lock.lock(); try { final long size = block.size; if (size < minPageBlockSize) { /* Attempt merges! */ mergeSize += size; /* Do merges if overflowing */ if (mergeSize > maxPageBlockSize) { /* * If mergeSize now is greater than mexPageBlockSize but size is lower than * minPageBlockSize means that there is at least lastMergeReference not null. */ /* * This should be merged with merge stream but it would create a node too big, * we must merge remaining stream and create a new stream. */ /* Merge blocks, unloading merged ones and checkpointing last merge reference */ BlockRangeIndexMetadata.BlockMetadata<K> merged = merge(lastMergeReference, mergeReferences); blocksMetadata.add(merged); /* * Remove handled merge references (but set lastMergeReference to current block, * it will be merged in next iterations) */ lastMergeReference = block; mergeReferences.clear(); /* Reset merge size to current block size */ mergeSize = size; } else { /* There is still space for merging */ if (lastMergeReference != null) { mergeReferences.add(lastMergeReference); } lastMergeReference = block; } } else { /* Do not attempt merges! */ /* If we have pending merges we must merge them now */ if (lastMergeReference != null) { /* Merge blocks, unloading merged ones and checkpointing last merge reference */ BlockRangeIndexMetadata.BlockMetadata<K> merged = merge(lastMergeReference, mergeReferences); blocksMetadata.add(merged); /* Remove handled merge references */ lastMergeReference = null; mergeReferences.clear(); /* Reset merge size to 0 */ mergeSize = 0; } /* Now checkpointing current block (no merge) */ if (fineEnabled) { LOG.fine("block " + block.pageId + " (" + block.key + ") has " + size + " byte size at checkpoint"); } /* We already have the lock */ blocksMetadata.add(block.checkpointNoLock()); } } finally { block.lock.unlock(); } } /* * We need to handled any remaining merges if exists (lastMergeReference is the head now). */ if (lastMergeReference != null) { /* Merge blocks, unloading merged ones and checkpointing last merge reference */ BlockRangeIndexMetadata.BlockMetadata<K> merged = merge(lastMergeReference, mergeReferences); blocksMetadata.add(merged); /* Remove handled merge references */ lastMergeReference = null; mergeReferences.clear(); } return new BlockRangeIndexMetadata<>(blocksMetadata); } String generateDetailedInternalStatus() { final StringBuilder builder = new StringBuilder(); builder.append("\nBRIN detailed internal status:\n") .append(" - currentBlockId: ").append(currentBlockId.get()).append('\n') .append(" - minPageBlockSize: ").append(minPageBlockSize).append('\n') .append(" - maxPageBlockSize: ").append(maxPageBlockSize).append('\n') .append(" - blocks: ").append(blocks.size()).append('\n'); builder.append("Ordered blocks navigation:").append('\n'); blocks.forEach((k, b) -> { builder .append("----[Block ").append(k.blockId) .append(" MinKey ").append(k.minKey).append("]----").append('\n') .append("key: ").append("block ").append(b.key.blockId) .append(" minKey ").append(b.key.minKey).append('\n'); if (b.next == null) { builder .append("next: null").append('\n'); } else { builder .append("next: block").append(b.next.key.blockId) .append(" min key ").append(b.next.key.minKey).append('\n'); } builder .append("pageId: ").append(b.pageId).append('\n') .append("size: ").append(b.size).append('\n') .append("loaded: ").append(b.loaded).append('\n') .append("dirty: ").append(b.dirty).append('\n'); }); return builder.toString(); } public void put(K key, V value) { /* Lookup from the last possible block where we could insert the value */ final BlockStartKey<K> lookUp = BlockStartKey.valueOf(key, Long.MAX_VALUE); final PutState<K, V> state = new PutState<>(); /* There is always at least the head block! */ state.next = blocks.floorEntry(lookUp).getValue(); do { state.next.addValue(key, value, state); } while (state.next != null); } public void delete(K key, V value) { /* Lookup from the first possible block that could contain the value*/ final BlockStartKey<K> lookUp = BlockStartKey.valueOf(key, Long.MIN_VALUE); final DeleteState<K, V> state = new DeleteState<>(); /* There is always at least the head block! */ state.next = blocks.floorEntry(lookUp).getValue(); do { state.next.delete(key, value, state); } while (state.next != null); } public List<V> search(K firstKey, K lastKey) { final LookupState<K, V> state = new LookupState<>(); if (firstKey != null) { /* Lookup from the first possible block that could contain the first lookup key*/ final BlockStartKey<K> lookUp = BlockStartKey.valueOf(firstKey, Long.MIN_VALUE); /* There is always at least the head block! */ state.next = blocks.floorEntry(lookUp).getValue(); } else { /* Use first entry and not HEAD block lookup just because has better performances */ state.next = blocks.firstEntry().getValue(); } do { state.next.lookUpRange(firstKey, lastKey, state); } while (state.next != null); return state.found; } public List<V> search(K key) { return search(key, key); } public Stream<V> query(K firstKey, K lastKey) { return search(firstKey, lastKey).stream(); } public Stream<V> query(K key) { return query(key, key); } public boolean containsKey(K key) { return !search(key, key).isEmpty(); } public void boot(BlockRangeIndexMetadata<K> metadata) throws DataStorageManagerException { if (metadata.getBlocksMetadata().size() > 0) { LOG.info("boot index, with " + metadata.getBlocksMetadata().size() + " blocks"); } if (metadata.getBlocksMetadata().size() == 0) { reset(); } else { clear(); /* Metadata are saved/recovered in reverse order so "next" block has been already created */ Block<K, V> next = null; for (BlockRangeIndexMetadata.BlockMetadata<K> blockData : metadata.getBlocksMetadata()) { /* * TODO: if the system is restart with a different (smaller) page size old blocks will remain * bigger until a split occurs. */ /* Medatada safety check (do not trust blindly ordering) */ if (blockData.nextBlockId != null) { if (next == null) { throw new DataStorageManagerException("Wrong next block, expected notingh but " + blockData.nextBlockId + " found"); } else if (next.key.blockId != blockData.nextBlockId.longValue()) { throw new DataStorageManagerException("Wrong next block, expected " + next.key.blockId + " but " + blockData.nextBlockId + " found"); } } else { if (next != null) { throw new DataStorageManagerException( "Wrong next block, expected " + next.key.blockId + " but nothing found"); } } final BlockStartKey<K> key = BlockStartKey.valueOf(blockData.firstKey, blockData.blockId); next = new Block<>(this, key, blockData.size, blockData.pageId, next); blocks.put(key, next); currentBlockId.accumulateAndGet(Math.abs(next.key.blockId), EnsureLongIncrementAccumulator.INSTANCE); } } } @SuppressWarnings("unchecked") void reset() { clear(); /* Create the head block */ final Block<K, V> headBlock = new Block<>(this); blocks.put((BlockStartKey<K>) BlockStartKey.HEAD_KEY, headBlock); final Metadata unload = pageReplacementPolicy.add(headBlock.page); if (unload != null) { unload.owner.unload(unload.pageId); } currentBlockId.set(0); } void clear() { for (Block<K, V> block : blocks.values()) { /* Unload if loaded */ if (block.forcedUnload()) { pageReplacementPolicy.remove(block.page); } } blocks.clear(); } ConcurrentNavigableMap<BlockStartKey<K>, Block<K, V>> getBlocks() { return blocks; } long getCurrentBlockId() { return currentBlockId.get(); } }
{ "content_hash": "3fdccb371fe27ca6aa97e9ed0edf5f95", "timestamp": "", "source": "github", "line_count": 1164, "max_line_length": 155, "avg_line_length": 36.70189003436426, "alnum_prop": 0.4881205964279862, "repo_name": "diennea/herddb", "id": "0c53a148e8a5564a46b46ab5970467b160fde9eb", "size": "43478", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "herddb-core/src/main/java/herddb/index/brin/BlockRangeIndex.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "2721" }, { "name": "CSS", "bytes": "125107" }, { "name": "HTML", "bytes": "28704" }, { "name": "Java", "bytes": "5714205" }, { "name": "JavaScript", "bytes": "29064" }, { "name": "Shell", "bytes": "40921" }, { "name": "TSQL", "bytes": "938" } ], "symlink_target": "" }
import {Promise} from 'es6-promise' import * as fs from 'fs' import * as path from 'path' let baseAssetfolder = path.join(__dirname, 'assets'); /** * Get all the assets in the system */ export function getAllAssets(): Promise<Sco.Model.Assets[]> { return new Promise((resolve, reject) => { fs.readdir(baseAssetfolder, (err, files) => { if (err) reject(err); files = files || []; console.log(`retrieved ${files.length} asset(s)`); resolve(Promise.all(files.map(getAsset))); }); }); } /** * Get a specific asset * @param asset the name of the asset */ export function getAsset(asset: string): Promise<Sco.Model.Assets> { return new Promise((resolve, reject) => { resolve(require(path.join(baseAssetfolder, asset, 'assets')).default); }); }
{ "content_hash": "1d8020af6f56b71bc6ded8f26eaeb760", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 74, "avg_line_length": 27.20689655172414, "alnum_prop": 0.6476552598225602, "repo_name": "itajaja/sco", "id": "4d3d4ede0869ed92efb183c68e1cc95205a1f239", "size": "789", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "server/src/models/Asset.ts", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "90863" }, { "name": "HTML", "bytes": "45881" }, { "name": "JavaScript", "bytes": "3800" }, { "name": "TypeScript", "bytes": "118994" } ], "symlink_target": "" }
<html><body> <style> body, h1, h2, h3, div, span, p, pre, a { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; } body { font-size: 13px; padding: 1em; } h1 { font-size: 26px; margin-bottom: 1em; } h2 { font-size: 24px; margin-bottom: 1em; } h3 { font-size: 20px; margin-bottom: 1em; margin-top: 1em; } pre, code { line-height: 1.5; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; } pre { margin-top: 0.5em; } h1, h2, h3, p { font-family: Arial, sans serif; } h1, h2, h3 { border-bottom: solid #CCC 1px; } .toc_element { margin-top: 0.5em; } .firstline { margin-left: 2 em; } .method { margin-top: 1em; border: solid 1px #CCC; padding: 1em; background: #EEE; } .details { font-weight: bold; font-size: 14px; } </style> <h1><a href="clouddeploy_v1.html">Google Cloud Deploy API</a> . <a href="clouddeploy_v1.projects.html">projects</a> . <a href="clouddeploy_v1.projects.locations.html">locations</a> . <a href="clouddeploy_v1.projects.locations.deliveryPipelines.html">deliveryPipelines</a> . <a href="clouddeploy_v1.projects.locations.deliveryPipelines.releases.html">releases</a> . <a href="clouddeploy_v1.projects.locations.deliveryPipelines.releases.rollouts.html">rollouts</a></h1> <h2>Instance Methods</h2> <p class="toc_element"> <code><a href="clouddeploy_v1.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.html">jobRuns()</a></code> </p> <p class="firstline">Returns the jobRuns Resource.</p> <p class="toc_element"> <code><a href="#approve">approve(name, body=None, x__xgafv=None)</a></code></p> <p class="firstline">Approves a Rollout.</p> <p class="toc_element"> <code><a href="#close">close()</a></code></p> <p class="firstline">Close httplib2 connections.</p> <p class="toc_element"> <code><a href="#create">create(parent, body=None, requestId=None, rolloutId=None, validateOnly=None, x__xgafv=None)</a></code></p> <p class="firstline">Creates a new Rollout in a given project and location.</p> <p class="toc_element"> <code><a href="#get">get(name, x__xgafv=None)</a></code></p> <p class="firstline">Gets details of a single Rollout.</p> <p class="toc_element"> <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> <p class="firstline">Lists Rollouts in a given project and location.</p> <p class="toc_element"> <code><a href="#list_next">list_next()</a></code></p> <p class="firstline">Retrieves the next page of results.</p> <p class="toc_element"> <code><a href="#retryJob">retryJob(rollout, body=None, x__xgafv=None)</a></code></p> <p class="firstline">Retries the specified Job in a Rollout.</p> <h3>Method Details</h3> <div class="method"> <code class="details" id="approve">approve(name, body=None, x__xgafv=None)</code> <pre>Approves a Rollout. Args: name: string, Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}. (required) body: object, The request body. The object takes the form of: { # The request object used by `ApproveRollout`. &quot;approved&quot;: True or False, # Required. True = approve; false = reject } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The response object from `ApproveRollout`. }</pre> </div> <div class="method"> <code class="details" id="close">close()</code> <pre>Close httplib2 connections.</pre> </div> <div class="method"> <code class="details" id="create">create(parent, body=None, requestId=None, rolloutId=None, validateOnly=None, x__xgafv=None)</code> <pre>Creates a new Rollout in a given project and location. Args: parent: string, Required. The parent collection in which the `Rollout` should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. (required) body: object, The request body. The object takes the form of: { # A `Rollout` resource in the Google Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`. &quot;annotations&quot;: { # User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. &quot;a_key&quot;: &quot;A String&quot;, }, &quot;approvalState&quot;: &quot;A String&quot;, # Output only. Approval state of the `Rollout`. &quot;approveTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was approved. &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was created. &quot;deployEndTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` finished deploying. &quot;deployFailureCause&quot;: &quot;A String&quot;, # Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress. &quot;deployStartTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` started deploying. &quot;deployingBuild&quot;: &quot;A String&quot;, # Output only. The resource name of the Cloud Build `Build` object that is used to deploy the Rollout. Format is `projects/{project}/locations/{location}/builds/{build}`. &quot;description&quot;: &quot;A String&quot;, # Description of the `Rollout` for user purposes. Max length is 255 characters. &quot;enqueueTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was enqueued. &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Additional information about the rollout failure, if available. &quot;labels&quot;: { # Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 128 bytes. &quot;a_key&quot;: &quot;A String&quot;, }, &quot;metadata&quot;: { # Metadata includes information associated with a `Rollout`. # Output only. Metadata contains information about the rollout. &quot;cloudRun&quot;: { # CloudRunMetadata contains information from a Cloud Run deployment. # Output only. The name of the Cloud Run Service that is associated with a `Rollout`. &quot;revision&quot;: &quot;A String&quot;, # Output only. The Cloud Run Revision id associated with a `Rollout`. &quot;service&quot;: &quot;A String&quot;, # Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is projects/{project}/locations/{location}/services/{service}. &quot;serviceUrls&quot;: [ # Output only. The Cloud Run Service urls that are associated with a `Rollout`. &quot;A String&quot;, ], }, }, &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the `Rollout`. Format is projects/{project}/ locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/a-z{0,62}. &quot;phases&quot;: [ # Output only. The phases that represent the workflows of this `Rollout`. { # Phase represents a collection of jobs that are logically grouped together for a `Rollout`. &quot;deploymentJobs&quot;: { # Deployment job composition. # Output only. Deployment job composition. &quot;deployJob&quot;: { # Job represents an operation for a `Rollout`. # Output only. The deploy Job. This is the first job run in the phase. &quot;deployJob&quot;: { # A deploy Job. # Output only. A deploy Job. }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Job. &quot;jobRun&quot;: &quot;A String&quot;, # Output only. The name of the `JobRun` responsible for the most recent invocation of this Job. &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the Job. &quot;verifyJob&quot;: { # A verify Job. # Output only. A verify Job. }, }, &quot;verifyJob&quot;: { # Job represents an operation for a `Rollout`. # Output only. The verify Job. Runs after a deploy if the deploy succeeds. &quot;deployJob&quot;: { # A deploy Job. # Output only. A deploy Job. }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Job. &quot;jobRun&quot;: &quot;A String&quot;, # Output only. The name of the `JobRun` responsible for the most recent invocation of this Job. &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the Job. &quot;verifyJob&quot;: { # A verify Job. # Output only. A verify Job. }, }, }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Phase. &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Phase. }, ], &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the `Rollout`. &quot;targetId&quot;: &quot;A String&quot;, # Required. The ID of Target to which this `Rollout` is deploying. &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Rollout`. } requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). rolloutId: string, Required. ID of the `Rollout`. validateOnly: boolean, Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # This resource represents a long-running operation that is the result of a network API call. &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code. &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. { &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL. }, ], &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. }, &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL. }, &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL. }, }</pre> </div> <div class="method"> <code class="details" id="get">get(name, x__xgafv=None)</code> <pre>Gets details of a single Rollout. Args: name: string, Required. Name of the `Rollout`. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A `Rollout` resource in the Google Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`. &quot;annotations&quot;: { # User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. &quot;a_key&quot;: &quot;A String&quot;, }, &quot;approvalState&quot;: &quot;A String&quot;, # Output only. Approval state of the `Rollout`. &quot;approveTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was approved. &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was created. &quot;deployEndTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` finished deploying. &quot;deployFailureCause&quot;: &quot;A String&quot;, # Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress. &quot;deployStartTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` started deploying. &quot;deployingBuild&quot;: &quot;A String&quot;, # Output only. The resource name of the Cloud Build `Build` object that is used to deploy the Rollout. Format is `projects/{project}/locations/{location}/builds/{build}`. &quot;description&quot;: &quot;A String&quot;, # Description of the `Rollout` for user purposes. Max length is 255 characters. &quot;enqueueTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was enqueued. &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Additional information about the rollout failure, if available. &quot;labels&quot;: { # Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 128 bytes. &quot;a_key&quot;: &quot;A String&quot;, }, &quot;metadata&quot;: { # Metadata includes information associated with a `Rollout`. # Output only. Metadata contains information about the rollout. &quot;cloudRun&quot;: { # CloudRunMetadata contains information from a Cloud Run deployment. # Output only. The name of the Cloud Run Service that is associated with a `Rollout`. &quot;revision&quot;: &quot;A String&quot;, # Output only. The Cloud Run Revision id associated with a `Rollout`. &quot;service&quot;: &quot;A String&quot;, # Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is projects/{project}/locations/{location}/services/{service}. &quot;serviceUrls&quot;: [ # Output only. The Cloud Run Service urls that are associated with a `Rollout`. &quot;A String&quot;, ], }, }, &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the `Rollout`. Format is projects/{project}/ locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/a-z{0,62}. &quot;phases&quot;: [ # Output only. The phases that represent the workflows of this `Rollout`. { # Phase represents a collection of jobs that are logically grouped together for a `Rollout`. &quot;deploymentJobs&quot;: { # Deployment job composition. # Output only. Deployment job composition. &quot;deployJob&quot;: { # Job represents an operation for a `Rollout`. # Output only. The deploy Job. This is the first job run in the phase. &quot;deployJob&quot;: { # A deploy Job. # Output only. A deploy Job. }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Job. &quot;jobRun&quot;: &quot;A String&quot;, # Output only. The name of the `JobRun` responsible for the most recent invocation of this Job. &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the Job. &quot;verifyJob&quot;: { # A verify Job. # Output only. A verify Job. }, }, &quot;verifyJob&quot;: { # Job represents an operation for a `Rollout`. # Output only. The verify Job. Runs after a deploy if the deploy succeeds. &quot;deployJob&quot;: { # A deploy Job. # Output only. A deploy Job. }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Job. &quot;jobRun&quot;: &quot;A String&quot;, # Output only. The name of the `JobRun` responsible for the most recent invocation of this Job. &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the Job. &quot;verifyJob&quot;: { # A verify Job. # Output only. A verify Job. }, }, }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Phase. &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Phase. }, ], &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the `Rollout`. &quot;targetId&quot;: &quot;A String&quot;, # Required. The ID of Target to which this `Rollout` is deploying. &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Rollout`. }</pre> </div> <div class="method"> <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> <pre>Lists Rollouts in a given project and location. Args: parent: string, Required. The `Release` which owns this collection of `Rollout` objects. (required) filter: string, Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more details. orderBy: string, Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. pageSize: integer, Optional. The maximum number of `Rollout` objects to return. The service may return fewer than this value. If unspecified, at most 50 `Rollout` objects will be returned. The maximum value is 1000; values above 1000 will be set to 1000. pageToken: string, Optional. A page token, received from a previous `ListRollouts` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # ListRolloutsResponse is the response object reutrned by `ListRollouts`. &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. &quot;rollouts&quot;: [ # The `Rollout` objects. { # A `Rollout` resource in the Google Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`. &quot;annotations&quot;: { # User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. &quot;a_key&quot;: &quot;A String&quot;, }, &quot;approvalState&quot;: &quot;A String&quot;, # Output only. Approval state of the `Rollout`. &quot;approveTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was approved. &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was created. &quot;deployEndTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` finished deploying. &quot;deployFailureCause&quot;: &quot;A String&quot;, # Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress. &quot;deployStartTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` started deploying. &quot;deployingBuild&quot;: &quot;A String&quot;, # Output only. The resource name of the Cloud Build `Build` object that is used to deploy the Rollout. Format is `projects/{project}/locations/{location}/builds/{build}`. &quot;description&quot;: &quot;A String&quot;, # Description of the `Rollout` for user purposes. Max length is 255 characters. &quot;enqueueTime&quot;: &quot;A String&quot;, # Output only. Time at which the `Rollout` was enqueued. &quot;etag&quot;: &quot;A String&quot;, # This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. &quot;failureReason&quot;: &quot;A String&quot;, # Output only. Additional information about the rollout failure, if available. &quot;labels&quot;: { # Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be &lt;= 128 bytes. &quot;a_key&quot;: &quot;A String&quot;, }, &quot;metadata&quot;: { # Metadata includes information associated with a `Rollout`. # Output only. Metadata contains information about the rollout. &quot;cloudRun&quot;: { # CloudRunMetadata contains information from a Cloud Run deployment. # Output only. The name of the Cloud Run Service that is associated with a `Rollout`. &quot;revision&quot;: &quot;A String&quot;, # Output only. The Cloud Run Revision id associated with a `Rollout`. &quot;service&quot;: &quot;A String&quot;, # Output only. The name of the Cloud Run Service that is associated with a `Rollout`. Format is projects/{project}/locations/{location}/services/{service}. &quot;serviceUrls&quot;: [ # Output only. The Cloud Run Service urls that are associated with a `Rollout`. &quot;A String&quot;, ], }, }, &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the `Rollout`. Format is projects/{project}/ locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/a-z{0,62}. &quot;phases&quot;: [ # Output only. The phases that represent the workflows of this `Rollout`. { # Phase represents a collection of jobs that are logically grouped together for a `Rollout`. &quot;deploymentJobs&quot;: { # Deployment job composition. # Output only. Deployment job composition. &quot;deployJob&quot;: { # Job represents an operation for a `Rollout`. # Output only. The deploy Job. This is the first job run in the phase. &quot;deployJob&quot;: { # A deploy Job. # Output only. A deploy Job. }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Job. &quot;jobRun&quot;: &quot;A String&quot;, # Output only. The name of the `JobRun` responsible for the most recent invocation of this Job. &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the Job. &quot;verifyJob&quot;: { # A verify Job. # Output only. A verify Job. }, }, &quot;verifyJob&quot;: { # Job represents an operation for a `Rollout`. # Output only. The verify Job. Runs after a deploy if the deploy succeeds. &quot;deployJob&quot;: { # A deploy Job. # Output only. A deploy Job. }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Job. &quot;jobRun&quot;: &quot;A String&quot;, # Output only. The name of the `JobRun` responsible for the most recent invocation of this Job. &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the Job. &quot;verifyJob&quot;: { # A verify Job. # Output only. A verify Job. }, }, }, &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the Phase. &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Phase. }, ], &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the `Rollout`. &quot;targetId&quot;: &quot;A String&quot;, # Required. The ID of Target to which this `Rollout` is deploying. &quot;uid&quot;: &quot;A String&quot;, # Output only. Unique identifier of the `Rollout`. }, ], &quot;unreachable&quot;: [ # Locations that could not be reached. &quot;A String&quot;, ], }</pre> </div> <div class="method"> <code class="details" id="list_next">list_next()</code> <pre>Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call &#x27;execute()&#x27; on to request the next page. Returns None if there are no more items in the collection. </pre> </div> <div class="method"> <code class="details" id="retryJob">retryJob(rollout, body=None, x__xgafv=None)</code> <pre>Retries the specified Job in a Rollout. Args: rollout: string, Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}. (required) body: object, The request body. The object takes the form of: { # RetryJobRequest is the request object used by `RetryJob`. &quot;jobId&quot;: &quot;A String&quot;, # Required. The job ID for the Job to retry. &quot;phaseId&quot;: &quot;A String&quot;, # Required. The phase ID the Job to retry belongs to. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # The response object from &#x27;RetryJob&#x27;. }</pre> </div> </body></html>
{ "content_hash": "d4d896004de7f39b09e905f8bf067859", "timestamp": "", "source": "github", "line_count": 434, "max_line_length": 765, "avg_line_length": 66.71658986175115, "alnum_prop": 0.7001554135727853, "repo_name": "googleapis/google-api-python-client", "id": "8d88639bfb74195bdd9312cec009a89ea62e8d12", "size": "28955", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "docs/dyn/clouddeploy_v1.projects.locations.deliveryPipelines.releases.rollouts.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Makefile", "bytes": "1276" }, { "name": "Python", "bytes": "482401" }, { "name": "Shell", "bytes": "32576" } ], "symlink_target": "" }
'use strict'; const models = require('./index'); /** * An server Active Directory Administrator. * * @extends models['ProxyResource'] */ class ServerAzureADAdministrator extends models['ProxyResource'] { /** * Create a ServerAzureADAdministrator. * @member {string} login The server administrator login value. * @member {uuid} sid The server administrator Sid (Secure ID). * @member {uuid} tenantId The server Active Directory Administrator tenant * id. */ constructor() { super(); } /** * Defines the metadata of ServerAzureADAdministrator * * @returns {object} metadata of ServerAzureADAdministrator * */ mapper() { return { required: false, serializedName: 'ServerAzureADAdministrator', type: { name: 'Composite', className: 'ServerAzureADAdministrator', modelProperties: { id: { required: false, readOnly: true, serializedName: 'id', type: { name: 'String' } }, name: { required: false, readOnly: true, serializedName: 'name', type: { name: 'String' } }, type: { required: false, readOnly: true, serializedName: 'type', type: { name: 'String' } }, administratorType: { required: true, isConstant: true, serializedName: 'properties.administratorType', defaultValue: 'ActiveDirectory', type: { name: 'String' } }, login: { required: true, serializedName: 'properties.login', type: { name: 'String' } }, sid: { required: true, serializedName: 'properties.sid', type: { name: 'String' } }, tenantId: { required: true, serializedName: 'properties.tenantId', type: { name: 'String' } } } } }; } } module.exports = ServerAzureADAdministrator;
{ "content_hash": "c094be0ea6953a3f8755bf1f6e715180", "timestamp": "", "source": "github", "line_count": 98, "max_line_length": 77, "avg_line_length": 23.43877551020408, "alnum_prop": 0.48323900740095777, "repo_name": "lmazuel/azure-sdk-for-node", "id": "42085b04b868d7e1577b544e4098480eb0d6d067", "size": "2614", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "lib/services/sqlManagement2/lib/models/serverAzureADAdministrator.js", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "661" }, { "name": "JavaScript", "bytes": "79466764" }, { "name": "Shell", "bytes": "437" } ], "symlink_target": "" }
<?php namespace Magento\ConfigurableProduct\Block\Adminhtml\Product\Steps; class AttributeValues extends \Magento\Ui\Block\Component\StepsWizard\StepAbstract { /** * {@inheritdoc} */ public function getCaption() { return __('Attribute Values'); } }
{ "content_hash": "69896a611b200cef79178e1600b2b7e7", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 82, "avg_line_length": 20.357142857142858, "alnum_prop": 0.6736842105263158, "repo_name": "enettolima/magento-training", "id": "d3b848480c6368c41275e72feb18425d4da2955a", "size": "442", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "magento2ce/app/code/Magento/ConfigurableProduct/Block/Adminhtml/Product/Steps/AttributeValues.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "22648" }, { "name": "CSS", "bytes": "3382928" }, { "name": "HTML", "bytes": "8749335" }, { "name": "JavaScript", "bytes": "7355635" }, { "name": "PHP", "bytes": "58607662" }, { "name": "Perl", "bytes": "10258" }, { "name": "Shell", "bytes": "41887" }, { "name": "XSLT", "bytes": "19889" } ], "symlink_target": "" }
package org.trello4j.model; import java.util.Date; import java.util.List; public class Card extends TrelloObject { // TODO: idChecklists // TODO: checkItemStates // TODO: badges private String name; private String desc; private boolean closed; private Long idShort; private String idList; private String idBoard; private List<String> idMembers; private List<Attachment> attachments; private List<Label> labels; private String url; private double pos; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public boolean isClosed() { return closed; } public void setClosed(boolean closed) { this.closed = closed; } public Long getIdShort() { return idShort; } public void setIdShort(Long idShort) { this.idShort = idShort; } public String getIdList() { return idList; } public void setIdList(String idList) { this.idList = idList; } public String getIdBoard() { return idBoard; } public void setIdBoard(String idBoard) { this.idBoard = idBoard; } public List<String> getIdMembers() { return idMembers; } public void setIdMembers(List<String> idMembers) { this.idMembers = idMembers; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public double getPos() { return pos; } public void setPos(double pos) { this.pos = pos; } public List<Attachment> getAttachments() { return attachments; } public void setAttachments(List<Attachment> attachments) { this.attachments = attachments; } public List<Label> getLabels() { return labels; } public void setLabels(List<Label> labels) { this.labels = labels; } public class Attachment { private String _id; private String bytes; private Date date; private String url; private String name; private String idMember; public String get_id() { return _id; } public void set_id(String _id) { this._id = _id; } public String getBytes() { return bytes; } public void setBytes(String bytes) { this.bytes = bytes; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIdMember() { return idMember; } public void setIdMember(String idMember) { this.idMember = idMember; } } public class Label { private String color; private String name; public String getColor() { return color; } public void setColor(String color) { this.color = color; } public String getName() { return name; } public void setName(String name) { this.name = name; } } }
{ "content_hash": "92456b98e45157775f086a39bec319d5", "timestamp": "", "source": "github", "line_count": 191, "max_line_length": 59, "avg_line_length": 15.56020942408377, "alnum_prop": 0.6729475100942126, "repo_name": "dtrott/trello4j", "id": "cd0739402367eb41dfabbdaca8097c898816918c", "size": "2972", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/main/java/org/trello4j/model/Card.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "111719" } ], "symlink_target": "" }
from utils.codegen import format_declaration, format_statement, format_expr, format_type, gen_format_type, get_method_call_env from utils.extern import get_smem_name from compiler_log_warnings_errors import addError, addWarning from compiler_common import types, generate_var_name, get_hdrfld_name, unique_everseen #[ #include "gen_include.h" #[ #include "dataplane_impl.h" table_infos = [(table, table.short_name + ("/keyless" if table.key_bit_size == 0 else "") + ("/hidden" if table.is_hidden else "")) for table in hlir.tables] for table, table_info in table_infos: if len(table.direct_meters + table.direct_counters) == 0: continue #{ void ${table.name}_apply_smems(STDPARAMS) { #[ // applying direct counters and meters for table2, smem in hlir.smem.directs: if table != table2: continue # note: the last arg is translated into macro invocations like this: STR_SMEM3(...) #[ apply_${smem.smem_type}(&(global_smem.${get_smem_name(smem)}[0]), 1, pd->parsed_size, "${table.name}", "${smem.smem_type}", STR_${get_smem_name(smem)}); #} } #[
{ "content_hash": "f5018102aaf1a3a709831f10e919f412", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 167, "avg_line_length": 44.96, "alnum_prop": 0.6681494661921709, "repo_name": "P4ELTE/t4p4s", "id": "fd679f01098c7f449a80e940796540b30094da86", "size": "1224", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/hardware_indep/dataplane_smem.c.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "462753" }, { "name": "Makefile", "bytes": "2617" }, { "name": "Python", "bytes": "313481" }, { "name": "Shell", "bytes": "86070" } ], "symlink_target": "" }
#if defined(USE_TI_UIIPADDOCUMENTVIEWER) || defined(USE_TI_UIIOSDOCUMENTVIEWER) #import "TiUIiOSDocumentViewerProxy.h" #import "TiUtils.h" #import "TiBlob.h" #import "TiApp.h" #import "TiViewProxy.h" @implementation TiUIiOSDocumentViewerProxy -(void)_destroy { controller.delegate = nil; RELEASE_TO_NIL(controller); [super _destroy]; } -(UIDocumentInteractionController*)controller { if (controller==nil) { NSURL *url = [TiUtils toURL:[self valueForUndefinedKey:@"url"] proxy:self]; controller = [[UIDocumentInteractionController interactionControllerWithURL:url] retain]; controller.delegate = self; } return controller; } -(NSString*)apiName { return @"Ti.UI.iOS.DocumentViewer"; } -(void)setAnnotation:(id)args { [self controller].annotation = [args objectAtIndex:0]; } -(void)show:(id)args { ENSURE_SINGLE_ARG_OR_NIL(args,NSDictionary); [self rememberSelf]; ENSURE_UI_THREAD(show, args); BOOL animated = [TiUtils boolValue:@"animated" properties:args def:YES]; TiViewProxy* view = [args objectForKey:@"view"]; if (view!=nil) { if ([view supportsNavBarPositioning]) { UIBarButtonItem *item = [view barButtonItem]; [[self controller] presentOptionsMenuFromBarButtonItem:item animated:animated]; return; } CGRect rect = [TiUtils rectValue:args]; [[self controller] presentOptionsMenuFromRect:rect inView:[view view] animated:animated]; return; } [[self controller] presentPreviewAnimated:animated]; } -(void)hide:(id)args { ENSURE_TYPE_OR_NIL(args,NSDictionary); ENSURE_UI_THREAD(hide, args); BOOL animated = [TiUtils boolValue:@"animated" properties:args def:YES]; [[self controller] dismissPreviewAnimated:animated]; } -(id)url { if (controller!=nil) { return [[[self controller] URL] absoluteString]; } return nil; } -(void)setUrl:(id)value { ENSURE_TYPE(value,NSString); NSURL *url = [TiUtils toURL:value proxy:self]; //UIDocumenactionController is recommended to be a new instance for every different url //instead of having _k2015_03_infoapp_louisdor_rolf developer create a new instance every time a new document url is loaded //we assume that setUrl is called to change doc, so we go ahead and release the controller and create //a new one when asked to present RELEASE_TO_NIL(controller); [self replaceValue:url forKey:@"url" notification:NO]; } -(id)icons { NSMutableArray *result = [NSMutableArray array]; for (UIImage *image in [self controller].icons) { TiBlob *blob = [[TiBlob alloc] initWithImage:image]; [result addObject:image]; [blob release]; } return result; } -(id)name { if (controller!=nil) { return [controller name]; } return nil; } #pragma mark Delegates - (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller { UIViewController *ac = [[TiApp app] controller]; return ac; } /* - (UIView *)documentInteractionControllerViewForPreview:(UIDocumentInteractionController *)controller { return viewController.view; }*/ - (void)documentInteractionControllerWillBeginPreview:(UIDocumentInteractionController *)controller { if ([self _hasListeners:@"load"]) { [self fireEvent:@"load" withObject:nil]; } } - (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller { if ([self _hasListeners:@"unload"]) { [self fireEvent:@"unload" withObject:nil]; } [self forgetSelf]; } - (void)documentInteractionControllerWillPresentOpenInMenu:(UIDocumentInteractionController *)controller { if ([self _hasListeners:@"menu"]) { NSDictionary *event = [NSDictionary dictionaryWithObject:@"open" forKey:@"type"]; [self fireEvent:@"menu" withObject:event]; } } - (void)documentInteractionControllerWillPresentOptionsMenu:(UIDocumentInteractionController *)controller { if ([self _hasListeners:@"menu"]) { NSDictionary *event = [NSDictionary dictionaryWithObject:@"options" forKey:@"type"]; [self fireEvent:@"menu" withObject:event]; } } @end #endif
{ "content_hash": "0323af2512c2931d49d42f36944d6a56", "timestamp": "", "source": "github", "line_count": 171, "max_line_length": 124, "avg_line_length": 23.39766081871345, "alnum_prop": 0.741314671332167, "repo_name": "Rolflouisdor/2015-03_InfoApp_Louisdor_Rolf", "id": "67985dd192817242daa83925f7467f783b751482", "size": "4323", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "build/iphone/Classes/TiUIiOSDocumentViewerProxy.m", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "142064" }, { "name": "C++", "bytes": "63573" }, { "name": "JavaScript", "bytes": "3888" }, { "name": "Makefile", "bytes": "1030909" }, { "name": "Objective-C", "bytes": "3315200" }, { "name": "Objective-C++", "bytes": "18015" }, { "name": "Shell", "bytes": "1272" } ], "symlink_target": "" }
import os import pysam import subprocess from collections import defaultdict, Counter import glob import random import numpy as np from bx.intervals.intersection import IntervalTree from athena.mlib import util from athena.mlib.fq_idx import FastqIndex # NOTE must be in path idbabin_path = 'idba_subasm' SEED_SELF_ASM_SIZE = 10000 DS_SUBASM_COV = 100 SEED_SELF_ASM_SIZE = 4000 DS_SUBASM_COV = 60 class LocalAssembly(object): def __init__( self, uid, root_ctg, root_pos, link_ctg, link_pos, bcode_set, ds_bcode_set, local_asm_cov, ): self.uid = uid self.root_ctg = root_ctg self.root_pos = root_pos self.link_ctg = link_ctg self.link_pos = link_pos self.bcode_set = bcode_set self.ds_bcode_set = ds_bcode_set self.local_asm_cov = local_asm_cov def __str__(self): return '{}_{}.{}'.format(self.root_ctg, self.link_ctg, self.uid) class LocalAssembler(object): def __init__( self, root_ctg, ctgfasta_path, reads_ctg_bam_path, input_fqs, asmrootdir_path, # FIXME hack to get stdout logged logger, ): self.root_ctg = root_ctg self.ctgfasta_path = ctgfasta_path self.reads_ctg_bam_path = reads_ctg_bam_path self.asmrootdir_path = asmrootdir_path self.logger = logger self.tenxfq_paths = list(glob.glob(input_fqs)) self.fqdir_path = os.path.join(self.asmrootdir_path, 'fqs') util.mkdir_p(self.asmrootdir_path) util.mkdir_p(self.fqdir_path) self.debugdir_path = os.path.join(self.asmrootdir_path, 'debug') util.mkdir_p(self.debugdir_path) self.ctg_size_map = util.get_fasta_sizes(self.ctgfasta_path) def assemble(self, local_asms, filt_ctgs=None): results = [] for i, local_asm in enumerate(local_asms): if filt_ctgs and local_asm.link_ctg in filt_ctgs: self.logger.debug(' - skipping filtered contig {}'.format( local_asm.link_ctg)) continue contig_path = self._do_idba_assembly(local_asm) results.append((local_asm, contig_path)) return results def _do_idba_assembly(self, local_asm): #continue self.logger.debug('assembling with neighbor {}'.format(local_asm.link_ctg)) self.logger.debug(' - {} orig barcodes'.format(len(local_asm.bcode_set))) self.logger.debug(' - {} downsampled barcodes'.format(len(local_asm.ds_bcode_set))) self.logger.debug(' - {}x estimated local coverage'.format(local_asm.local_asm_cov)) lrhintsfa_path = os.path.join(self.fqdir_path, 'lr-hints.{}.fa'.format(local_asm.uid)) seedsfa_path = os.path.join(self.fqdir_path, 'seeds.{}.fa'.format(local_asm.uid)) readsfa_path = os.path.join(self.fqdir_path, 'reads.{}.ds.fa'.format(local_asm.uid)) asmdir_path = os.path.join(self.asmrootdir_path, 'local-asm.{}'.format(local_asm.uid)) fullreadsfa_path = os.path.join(self.fqdir_path, 'reads.{}.full.fa'.format(local_asm.uid)) seed_info_path = os.path.join(self.asmrootdir_path, 'seeds-{}.txt'.format(local_asm.uid)) with open(seed_info_path, 'w') as fout: fout.write(local_asm.root_ctg) if local_asm.root_pos != None: fout.write('\t'+str(local_asm.root_pos[0])) else: fout.write('\troot-asm') fout.write('\n') if local_asm.link_ctg == None: fout.write('no link-ctg\n') else: fout.write('{}\t{}\n'.format(local_asm.link_ctg, local_asm.link_pos[0])) # minimum required support based on estimated local_cov # NOTE do not allow anything to assemble with less than half of # min_support #min_support = max(2, int(local_asm.local_asm_cov / 10)) # FIXME change back to /10 min_support = max(2, int(local_asm.local_asm_cov / 20)) self.logger.debug(' - {} min_support required'.format(min_support)) # filter input reads get_bcode_reads( self.tenxfq_paths, readsfa_path, local_asm.ds_bcode_set, ) ## FIXME remove ## for now dump the non downsampled bcoded reads as well for debug #get_bcode_reads( # self.tenxfq_paths, # fullreadsfa_path, # local_asm.bcode_set, #) # create long read hints hints = [(local_asm.root_ctg, local_asm.root_pos)] if local_asm.link_ctg: hints.append((local_asm.link_ctg, local_asm.link_pos)) get_lrhints_fa( hints, self.ctgfasta_path, lrhintsfa_path, seedsfa_path, multiplicity=max(10, min_support+2), ) cmd = '{} --num_threads 2 --min_support {} -r {} -l {} --seed_contig {} -o {}'.format( idbabin_path, min_support, readsfa_path, lrhintsfa_path, seedsfa_path, asmdir_path, ) pp = subprocess.Popen( cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) while pp.poll() is None: line = pp.stdout.readline() self.logger.debug('idba_subasm.std{out,err}: '+line, end='') retcode = pp.wait() #print "::::", retcode contig_path = os.path.join(asmdir_path, 'contig.fa') if not os.path.exists(contig_path): if retcode != 0 and "invalid insert distance" in pp.stderr.read(): self.logger.info("idba_ud internal error; this is probably a bug in idba_ud, so we have to bail here") open(contig_path, "w") else: error_message = "assembly failed to produce contig.fa" self.logger.error(error_message) raise Exception() elif retcode != 0: self.logger.info( "something funky happened while running idba_ud (got error code " "{}) but there's not much we can do so continuing".format(retcode)) # check contig.fa is valid try: fasta = pysam.FastaFile(contig_path) except Exception as e: self.logger.info('failed to produce correctly formatted contigs in {}'.format(contig_path)) return None return contig_path def gen_local_cands(self): SMALL_CTG_SIZE = 1000 COV_BIN_SIZE = 100 fhandle = pysam.Samfile(self.reads_ctg_bam_path, 'rb') id_gen = util.IdGenerator() # compute read size # FIXME this is really hacky read_size = 0 occ = 0 for read in fhandle.fetch(self.root_ctg): if read.is_unmapped or read.is_secondary or read.is_supplementary: continue read_size = max(read_size, read.query_length) occ += 1 if occ > 10: break def get_ctg_links(ctg, begin=None, end=None): bcodes = set() bcode_counts = Counter() link_ctg_counts = Counter() link_regions_map = defaultdict(lambda: IntervalTree(1, 1)) link_reads_map = defaultdict(list) link_ctg_pos = {} cov_bin_counts = Counter() if begin == None or end == None: reads_iter = fhandle.fetch(ctg) else: assert None not in [begin, end] reads_iter = fhandle.fetch(ctg, begin, end) seen_set = set() for i, read in enumerate(reads_iter): if read.is_unmapped: continue # skip low quality links for now if read.mapq < 10: continue bcode = util.get_barcode(read) if bcode == None: continue optid = (read.pos, read.aend, bcode) # skip optical barcode duplicates if optid in seen_set: continue seen_set.add(optid) bcodes.add(bcode) bcode_counts[bcode] += 1 tid = read.next_reference_id if tid != -1: p_ctg = fhandle.getrname(read.next_reference_id) # save only links involving the root if p_ctg != ctg and self.root_ctg in [p_ctg, ctg]: link_ctg_counts[p_ctg] += 1 link_regions_map[p_ctg].insert(read.pos, read.aend, read) link_reads_map[p_ctg].append(read) # update coverage profile bin_idx = read.pos / COV_BIN_SIZE cov_bin_counts[bin_idx] += 1 # filter for only links in which the paired end reads are clustered # near each other for p_ctg, regions in link_regions_map.items(): all_link_reads = link_reads_map[p_ctg] # find maximal link link_sets = map( lambda(r): regions.find(r.pos - 200, r.aend + 200), all_link_reads, ) link_reads = max(link_sets, key=len) is_cand_chimera = len(all_link_reads) > 2 * len(link_reads) if len(link_reads) < 3 or is_cand_chimera: del link_ctg_counts[p_ctg] else: is_reverse = get_mode(map(lambda(r): r.is_reverse, link_reads)) if is_reverse: pos = int(np.median(map(lambda(r): r.pos, link_reads))) else: pos = int(np.median(map(lambda(r): r.aend, link_reads))) link_ctg_pos[p_ctg] = (pos, is_reverse) return ( bcodes, bcode_counts, link_ctg_counts, link_ctg_pos, cov_bin_counts, ) def is_whack_coverage(cov_bin_counts): max_cov = max(cov_bin_counts.values()) med_cov = np.median(cov_bin_counts.values()) return max_cov > 20 * med_cov def get_mode(vs): return Counter(vs).most_common(1)[0][0] ( root_bcode_set, root_bcode_counts, link_ctg_counts, root_link_ctg_pos, cov_bin_counts, ) = get_ctg_links(self.root_ctg) # don't locally assemble any small contigs with out of whack coverage if self.ctg_size_map[self.root_ctg] < SMALL_CTG_SIZE and is_whack_coverage(cov_bin_counts): root_max_cov = max(cov_bin_counts.values()) root_med_cov = np.median(cov_bin_counts.values()) self.logger.debug('root-ctg:{};filt-cov:True'.format(self.root_ctg)) self.logger.debug('max coverage {} order of magnitude higher than median {}'.format( root_max_cov, root_med_cov)) return [] link_cand_ctgs = filter( lambda(c): (c != self.root_ctg and link_ctg_counts[c] >= 3), link_ctg_counts, ) # truncate for a max of 200 checks num_orig_checks = len(link_cand_ctgs) truncate_checks = (num_orig_checks > 200) link_cand_ctgs = sorted( link_cand_ctgs, key=lambda(c): link_ctg_counts[c], reverse=True, )[:200] self.logger.debug('{} initial link candidates to check'.format( len(link_cand_ctgs))) # examine recipricol links link_ctgs = [] # <ctg> : set(bcodes) link_ctg_bcodes = {} # <ctg> : Counter(bcodes) link_ctg_bcode_counts = {} # <ctg> : { <ctg> : pos } link_ctg_pos_map = {} for i, link_ctg in enumerate(link_cand_ctgs): ( link_ctg_bcodes[link_ctg], link_ctg_bcode_counts[link_ctg], _link_ctg_counts, link_ctg_pos_map[link_ctg], _cov_bin_counts, ) = get_ctg_links(link_ctg) # link is not recripricol if _link_ctg_counts[self.root_ctg] < 3: continue # link contig has whacky coverage profile # FIXME consider removing this, may not be necessary if ( self.ctg_size_map[link_ctg] < SMALL_CTG_SIZE and is_whack_coverage(_cov_bin_counts) ): continue # not enough barcode overlap if len(link_ctg_bcodes[link_ctg] & root_bcode_set) < 15: continue #print ' - added' link_ctgs.append(link_ctg) self.logger.debug(' - {} pass reciprocal filtering'.format( len(link_ctgs))) local_asms = [] for link_ctg in link_ctgs: if link_ctg == self.root_ctg: continue assert link_ctg_counts[link_ctg] >= 3 root_size = self.ctg_size_map[self.root_ctg] link_size = self.ctg_size_map[link_ctg] # refetch barcodes from locally linked region root_pos, is_rev = root_link_ctg_pos[link_ctg] if is_rev: rb, re = root_pos, min(root_pos + SEED_SELF_ASM_SIZE, root_size) _root_target_size = min(root_size - root_pos, SEED_SELF_ASM_SIZE) else: rb, re = max(0, root_pos - SEED_SELF_ASM_SIZE), root_pos _root_target_size = min(root_pos, SEED_SELF_ASM_SIZE) link_pos, is_rev = link_ctg_pos_map[link_ctg][self.root_ctg] if is_rev: lb, le = link_pos, min(link_pos + SEED_SELF_ASM_SIZE, link_size) _link_target_size = min(link_size - link_pos, SEED_SELF_ASM_SIZE) else: lb, le = max(0, link_pos - SEED_SELF_ASM_SIZE), link_pos _link_target_size = min(link_pos, SEED_SELF_ASM_SIZE) (_root_bcode_set, _root_bcode_counts, _, _, _,) = \ get_ctg_links(self.root_ctg, rb, re) (_link_bcode_set, _link_bcode_counts, _, _, _,) = \ get_ctg_links(link_ctg, lb, le) i_bcode_set = _link_bcode_set & _root_bcode_set ds_bcode_set, ds_num_reads = downsample_link_subassembly( _root_bcode_counts, _root_target_size, _link_bcode_counts, _link_target_size, read_size, ) # estimate coverage of the barcodes for this local assembly local_asm_cov = 1. * ds_num_reads * read_size / (_root_target_size + _link_target_size) # must be recipricol link assert self.root_ctg in link_ctg_pos_map[link_ctg], \ "recipricol link in link ctg {} to root {} not found".format( link_ctg, self.root_ctg, ) local_asms.append( LocalAssembly( id_gen.get_next(), self.root_ctg, root_link_ctg_pos[link_ctg], link_ctg, link_ctg_pos_map[link_ctg][self.root_ctg], i_bcode_set, ds_bcode_set, local_asm_cov, ) ) # truncate for a max of 50 local assemblies num_orig_asms = len(local_asms) truncate_asms = (num_orig_asms > 50) local_asms = sorted( local_asms, key=lambda(l): link_ctg_counts[l.link_ctg], reverse=True, )[:50] # do local reassembly of the root contig # if the contig is >20kb, create a local assembly at each end of the # root contig, otherwise just a single local assembly for the root root_size = self.ctg_size_map[self.root_ctg] if root_size > 1.5 * SEED_SELF_ASM_SIZE: #if root_size > 2 * SEED_SELF_ASM_SIZE: self.logger.debug('large root contig of size {}'.format(root_size)) self.logger.debug(' - generate head+tail local assemblies') # head (head_bcode_set, head_root_bcode_counts, _, _, _,) = \ get_ctg_links(self.root_ctg, 0, SEED_SELF_ASM_SIZE) ds_bcode_set, ds_num_reads = downsample_root_subassembly( head_root_bcode_counts, SEED_SELF_ASM_SIZE, read_size, ) local_asm_cov = 1. * ds_num_reads * read_size / SEED_SELF_ASM_SIZE begin_pos = (0, True) local_asms.append( LocalAssembly( id_gen.get_next(), self.root_ctg, begin_pos, None, None, head_bcode_set, ds_bcode_set, local_asm_cov, ) ) # tail (tail_bcode_set, tail_root_bcode_counts, _, _, _,) = \ get_ctg_links(self.root_ctg, root_size - SEED_SELF_ASM_SIZE, root_size) ds_bcode_set, ds_num_reads = downsample_root_subassembly( tail_root_bcode_counts, SEED_SELF_ASM_SIZE, read_size, ) local_asm_cov = 1. * ds_num_reads * read_size / SEED_SELF_ASM_SIZE end_pos = (self.ctg_size_map[self.root_ctg], False) local_asms.append( LocalAssembly( id_gen.get_next(), self.root_ctg, end_pos, None, None, tail_bcode_set, ds_bcode_set, local_asm_cov, ) ) else: ds_bcode_set, num_reads = downsample_root_subassembly( root_bcode_counts, root_size, read_size, ) local_asm_cov = 1. * num_reads * read_size / root_size local_asms.append( LocalAssembly( id_gen.get_next(), self.root_ctg, None, None, None, root_bcode_set, ds_bcode_set, local_asm_cov, ) ) fhandle.close() # debug logging message self.logger.debug('root-ctg:{};numreads:{};checks:{};trunc-checks:{};asms:{};trunc-asms:{}'.format( self.root_ctg, sum(cov_bin_counts.values()), num_orig_checks, truncate_checks, num_orig_asms, truncate_asms, )) return local_asms def get_lrhints_fa( ctgs, infa_path, outfa_path, seedsfa_path, multiplicity=10 ): with open(outfa_path, 'w') as fout1, \ open(seedsfa_path, 'w') as fout2: ctg_fasta = pysam.FastaFile(infa_path) for ctg, pos_pre in ctgs: seq = str(ctg_fasta.fetch(ctg).upper()) seq_sub = seq if pos_pre != None: pos, is_reverse = pos_pre if is_reverse: seq_sub = seq[pos+200:] else: seq_sub = seq[:max(0, pos-200)] # skip empty or uninformative long reads if len(seq_sub) < 200: continue for _ in xrange(multiplicity): fout1.write('>{}\n{}\n'.format(ctg, seq_sub)) fout2.write('>{}\n{}\n'.format(ctg, seq_sub)) def get_bcode_reads(infq_paths, outfa_path, bcode_set): seen_set = set() with open(outfa_path, 'w') as fout: for fq_path in infq_paths: with FastqIndex(fq_path) as idx: for bcode in bcode_set & idx.bcodes: for _, qname, lines in idx.get_reads(bcode): # tag qname with barcode nqname = '{}${}'.format(bcode, qname) seq = lines[1].strip() fout.write('>{}\n'.format(nqname)) fout.write('{}\n'.format(seq)) seen_set.add(bcode) assert seen_set.issubset(bcode_set), 'not all barcodes loaded' return def downsample_link_subassembly( bcode_counts1, target_size1, bcode_counts2, target_size2, read_size, ): num_reads = 0 i_bcodes = set(bcode_counts1.keys()) & set(bcode_counts2.keys()) bcode_counts = Counter( {b: bcode_counts1[b] + bcode_counts2[b] for b in i_bcodes} ) target_size = target_size1 + target_size2 sub_bcodes = set() for bcode, _nr in bcode_counts.most_common(): num_reads += _nr if 1. * num_reads * read_size / target_size < DS_SUBASM_COV: sub_bcodes.add(bcode) else: break return sub_bcodes, num_reads def downsample_root_subassembly(bcode_counts, target_size, read_size): num_reads = 0 sub_bcodes = set() for bcode, _nr in bcode_counts.most_common(): num_reads += _nr if 1. * num_reads * read_size / target_size < DS_SUBASM_COV: sub_bcodes.add(bcode) else: break return sub_bcodes, num_reads
{ "content_hash": "233bb7d8e068b2687359d0ef292f8451", "timestamp": "", "source": "github", "line_count": 590, "max_line_length": 110, "avg_line_length": 31.498305084745763, "alnum_prop": 0.5920684459750323, "repo_name": "abishara/athena_meta", "id": "43efe7cce8ad2f4c3fd43999c8614adf1b73da1b", "size": "18584", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "athena/subassembly/barcode_assembler.py", "mode": "33188", "license": "mit", "language": [ { "name": "Dockerfile", "bytes": "1723" }, { "name": "Python", "bytes": "65483" } ], "symlink_target": "" }
""" @brief test log(time=0s) """ import os import unittest from pyquickhelper.loghelper import fLOG from pyquickhelper.filehelper import explore_folder_iterfile from pyquickhelper.ipythonhelper import upgrade_notebook, remove_execution_number class TestConvertNotebooks(unittest.TestCase): def test_convert_notebooks(self): fLOG( __file__, self._testMethodName, OutputPrint=__name__ == "__main__") fold = os.path.abspath(os.path.dirname(__file__)) fold2 = os.path.normpath( os.path.join(fold, "..", "..", "_doc", "notebooks")) for nbf in explore_folder_iterfile(fold2, pattern=".*[.]ipynb"): t = upgrade_notebook(nbf) if t: fLOG("modified", nbf) # remove numbers remove_execution_number(nbf, nbf) fold2 = os.path.normpath(os.path.join(fold, "..", "..", "_unittests")) for nbf in explore_folder_iterfile(fold2, pattern=".*[.]ipynb"): if "site-packages" in nbf: continue t = upgrade_notebook(nbf) if t: fLOG("modified", nbf) if __name__ == "__main__": unittest.main()
{ "content_hash": "358223c749c81f74dd69c4bb7ab4a7a5", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 81, "avg_line_length": 31.92105263157895, "alnum_prop": 0.5696619950535862, "repo_name": "sdpython/pymyinstall", "id": "c1a211120595235b1799fb5fb8aa336396b056db", "size": "1213", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "_unittests/ut_module/test_convert_notebooks.py", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "19179" }, { "name": "HTML", "bytes": "1294549" }, { "name": "Inno Setup", "bytes": "7565" }, { "name": "Julia", "bytes": "688" }, { "name": "Jupyter Notebook", "bytes": "38720" }, { "name": "Python", "bytes": "2387148" }, { "name": "R", "bytes": "4370" }, { "name": "Shell", "bytes": "623" } ], "symlink_target": "" }
// Copyright (c) 2009, Tom Lokovic // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Midi { /// <summary> /// Pitches supported by MIDI. /// </summary> /// <remarks> /// <para>MIDI defines 127 distinct pitches, in semitone intervals, ranging from C five octaves /// below middle C, up to G five octaves above middle C. This covers several octaves above and /// below the range of a normal 88-key piano.</para> /// <para>These 127 pitches are the only ones directly expressible in MIDI. Precise /// variations in frequency can be achieved with <see cref="OutputDevice.SendPitchBend">Pitch /// Bend</see> messages, though Pitch Bend messages apply to the whole channel at once.</para> /// <para>In this enum, pitches are given C Major note names (eg "F", "GSharp") followed /// by the octave number. Octaves use standard piano terminology: Middle C is in /// octave 4. (Note that this is different from "MIDI octaves", which have Middle C in /// octave 0.)</para> /// <para>This enum has extension methods, such as /// <see cref="PitchExtensionMethods.NotePreferringSharps"/> and /// <see cref="PitchExtensionMethods.IsInMidiRange"/>, defined in /// <see cref="PitchExtensionMethods"/>. /// </para> /// </remarks> /// <seealso cref="Note"/> /// <seealso cref="Interval"/> public enum Pitch { /// <summary>C in octave -1.</summary> CNeg1 = 0, /// <summary>C# in octave -1.</summary> CSharpNeg1 = 1, /// <summary>D in octave -1.</summary> DNeg1 = 2, /// <summary>D# in octave -1.</summary> DSharpNeg1 = 3, /// <summary>E in octave -1.</summary> ENeg1 = 4, /// <summary>F in octave -1.</summary> FNeg1 = 5, /// <summary>F# in octave -1.</summary> FSharpNeg1 = 6, /// <summary>G in octave -1.</summary> GNeg1 = 7, /// <summary>G# in octave -1.</summary> GSharpNeg1 = 8, /// <summary>A in octave -1.</summary> ANeg1 = 9, /// <summary>A# in octave -1.</summary> ASharpNeg1 = 10, /// <summary>B in octave -1.</summary> BNeg1 = 11, /// <summary>C in octave 0.</summary> C0 = 12, /// <summary>C# in octave 0.</summary> CSharp0 = 13, /// <summary>D in octave 0.</summary> D0 = 14, /// <summary>D# in octave 0.</summary> DSharp0 = 15, /// <summary>E in octave 0.</summary> E0 = 16, /// <summary>F in octave 0.</summary> F0 = 17, /// <summary>F# in octave 0.</summary> FSharp0 = 18, /// <summary>G in octave 0.</summary> G0 = 19, /// <summary>G# in octave 0.</summary> GSharp0 = 20, /// <summary>A in octave 0.</summary> A0 = 21, /// <summary>A# in octave 0, usually the lowest key on an 88-key keyboard.</summary> ASharp0 = 22, /// <summary>B in octave 0.</summary> B0 = 23, /// <summary>C in octave 1.</summary> C1 = 24, /// <summary>C# in octave 1.</summary> CSharp1 = 25, /// <summary>D in octave 1.</summary> D1 = 26, /// <summary>D# in octave 1.</summary> DSharp1 = 27, /// <summary>E in octave 1.</summary> E1 = 28, /// <summary>F in octave 1.</summary> F1 = 29, /// <summary>F# in octave 1.</summary> FSharp1 = 30, /// <summary>G in octave 1.</summary> G1 = 31, /// <summary>G# in octave 1.</summary> GSharp1 = 32, /// <summary>A in octave 1.</summary> A1 = 33, /// <summary>A# in octave 1.</summary> ASharp1 = 34, /// <summary>B in octave 1.</summary> B1 = 35, /// <summary>C in octave 2.</summary> C2 = 36, /// <summary>C# in octave 2.</summary> CSharp2 = 37, /// <summary>D in octave 2.</summary> D2 = 38, /// <summary>D# in octave 2.</summary> DSharp2 = 39, /// <summary>E in octave 2.</summary> E2 = 40, /// <summary>F in octave 2.</summary> F2 = 41, /// <summary>F# in octave 2.</summary> FSharp2 = 42, /// <summary>G in octave 2.</summary> G2 = 43, /// <summary>G# in octave 2.</summary> GSharp2 = 44, /// <summary>A in octave 2.</summary> A2 = 45, /// <summary>A# in octave 2.</summary> ASharp2 = 46, /// <summary>B in octave 2.</summary> B2 = 47, /// <summary>C in octave 3.</summary> C3 = 48, /// <summary>C# in octave 3.</summary> CSharp3 = 49, /// <summary>D in octave 3.</summary> D3 = 50, /// <summary>D# in octave 3.</summary> DSharp3 = 51, /// <summary>E in octave 3.</summary> E3 = 52, /// <summary>F in octave 3.</summary> F3 = 53, /// <summary>F# in octave 3.</summary> FSharp3 = 54, /// <summary>G in octave 3.</summary> G3 = 55, /// <summary>G# in octave 3.</summary> GSharp3 = 56, /// <summary>A in octave 3.</summary> A3 = 57, /// <summary>A# in octave 3.</summary> ASharp3 = 58, /// <summary>B in octave 3.</summary> B3 = 59, /// <summary>C in octave 4, also known as Middle C.</summary> C4 = 60, /// <summary>C# in octave 4.</summary> CSharp4 = 61, /// <summary>D in octave 4.</summary> D4 = 62, /// <summary>D# in octave 4.</summary> DSharp4 = 63, /// <summary>E in octave 4.</summary> E4 = 64, /// <summary>F in octave 4.</summary> F4 = 65, /// <summary>F# in octave 4.</summary> FSharp4 = 66, /// <summary>G in octave 4.</summary> G4 = 67, /// <summary>G# in octave 4.</summary> GSharp4 = 68, /// <summary>A in octave 4.</summary> A4 = 69, /// <summary>A# in octave 4.</summary> ASharp4 = 70, /// <summary>B in octave 4.</summary> B4 = 71, /// <summary>C in octave 5.</summary> C5 = 72, /// <summary>C# in octave 5.</summary> CSharp5 = 73, /// <summary>D in octave 5.</summary> D5 = 74, /// <summary>D# in octave 5.</summary> DSharp5 = 75, /// <summary>E in octave 5.</summary> E5 = 76, /// <summary>F in octave 5.</summary> F5 = 77, /// <summary>F# in octave 5.</summary> FSharp5 = 78, /// <summary>G in octave 5.</summary> G5 = 79, /// <summary>G# in octave 5.</summary> GSharp5 = 80, /// <summary>A in octave 5.</summary> A5 = 81, /// <summary>A# in octave 5.</summary> ASharp5 = 82, /// <summary>B in octave 5.</summary> B5 = 83, /// <summary>C in octave 6.</summary> C6 = 84, /// <summary>C# in octave 6.</summary> CSharp6 = 85, /// <summary>D in octave 6.</summary> D6 = 86, /// <summary>D# in octave 6.</summary> DSharp6 = 87, /// <summary>E in octave 6.</summary> E6 = 88, /// <summary>F in octave 6.</summary> F6 = 89, /// <summary>F# in octave 6.</summary> FSharp6 = 90, /// <summary>G in octave 6.</summary> G6 = 91, /// <summary>G# in octave 6.</summary> GSharp6 = 92, /// <summary>A in octave 6.</summary> A6 = 93, /// <summary>A# in octave 6.</summary> ASharp6 = 94, /// <summary>B in octave 6.</summary> B6 = 95, /// <summary>C in octave 7.</summary> C7 = 96, /// <summary>C# in octave 7.</summary> CSharp7 = 97, /// <summary>D in octave 7.</summary> D7 = 98, /// <summary>D# in octave 7.</summary> DSharp7 = 99, /// <summary>E in octave 7.</summary> E7 = 100, /// <summary>F in octave 7.</summary> F7 = 101, /// <summary>F# in octave 7.</summary> FSharp7 = 102, /// <summary>G in octave 7.</summary> G7 = 103, /// <summary>G# in octave 7.</summary> GSharp7 = 104, /// <summary>A in octave 7.</summary> A7 = 105, /// <summary>A# in octave 7.</summary> ASharp7 = 106, /// <summary>B in octave 7.</summary> B7 = 107, /// <summary>C in octave 8, usually the highest key on an 88-key keyboard.</summary> C8 = 108, /// <summary>C# in octave 8.</summary> CSharp8 = 109, /// <summary>D in octave 8.</summary> D8 = 110, /// <summary>D# in octave 8.</summary> DSharp8 = 111, /// <summary>E in octave 8.</summary> E8 = 112, /// <summary>F in octave 8.</summary> F8 = 113, /// <summary>F# in octave 8.</summary> FSharp8 = 114, /// <summary>G in octave 8.</summary> G8 = 115, /// <summary>G# in octave 8.</summary> GSharp8 = 116, /// <summary>A in octave 8.</summary> A8 = 117, /// <summary>A# in octave 8.</summary> ASharp8 = 118, /// <summary>B in octave 8.</summary> B8 = 119, /// <summary>C in octave 9.</summary> C9 = 120, /// <summary>C# in octave 9.</summary> CSharp9 = 121, /// <summary>D in octave 9.</summary> D9 = 122, /// <summary>D# in octave 9.</summary> DSharp9 = 123, /// <summary>E in octave 9.</summary> E9 = 124, /// <summary>F in octave 9.</summary> F9 = 125, /// <summary>F# in octave 9.</summary> FSharp9 = 126, /// <summary>G in octave 9.</summary> G9 = 127 } /// <summary> /// Extension methods for the Pitch enum. /// </summary> public static class PitchExtensionMethods { /// <summary> /// Returns true if pitch is in the MIDI range [1..127]. /// </summary> /// <param name="pitch">The pitch to test.</param> /// <returns>True if the pitch is in [0..127].</returns> public static bool IsInMidiRange(this Pitch pitch) { return (int)pitch >= 0 && (int)pitch < 128; } /// <summary> /// Returns the octave containing this pitch. /// </summary> /// <param name="pitch">The pitch.</param> /// <returns>The octave, where octaves begin at each C, and Middle C is the first pitch in /// octave 4.</returns> public static int Octave(this Pitch pitch) { int p = (int)pitch; return (p < 0 ? (p - 11) / 12 : p / 12) - 1; } /// <summary> /// Returns the position of this pitch in its octave. /// </summary> /// <param name="pitch">The pitch.</param> /// <returns>The pitch's position in its octave, where octaves start at each C, so C's /// position is 0, C#'s position is 1, etc.</returns> public static int PositionInOctave(this Pitch pitch) { int p = (int)pitch; return p < 0 ? 11 - ((-p - 1) % 12) : p % 12; } /// <summary>Maps PositionInOctave() to a Note preferring sharps.</summary> private static Note[] PositionInOctaveToNotesPreferringSharps = new Note[] { new Note('C'), new Note('C', Note.Sharp), new Note('D'), new Note('D', Note.Sharp), new Note('E'), new Note('F'), new Note('F', Note.Sharp), new Note('G'), new Note('G', Note.Sharp), new Note('A'), new Note('A', Note.Sharp), new Note('B') }; /// <summary>Maps PositionInOctave() to a Note preferring flats.</summary> private static Note[] PositionInOctaveToNotesPreferringFlats = new Note[] { new Note('C'), new Note('D', Note.Flat), new Note('D'), new Note('E', Note.Flat), new Note('E'), new Note('F'), new Note('G', Note.Flat), new Note('G'), new Note('A', Note.Flat), new Note('A'), new Note('B', Note.Flat), new Note('B') }; /// <summary> /// Returns the simplest note that resolves to this pitch, preferring sharps where needed. /// </summary> /// <param name="pitch">The pitch.</param> /// <returns>The simplest note for that pitch. If that pitch is a "white key", the note /// is simply a letter with no accidentals (and is the same as /// <see cref="NotePreferringFlats"/>). Otherwise the note has a sharp.</returns> public static Note NotePreferringSharps(this Pitch pitch) { return PositionInOctaveToNotesPreferringSharps[pitch.PositionInOctave()]; } /// <summary> /// Returns the simplest note that resolves to this pitch, preferring flats where needed. /// </summary> /// <param name="pitch">The pitch.</param> /// <returns>The simplest note for that pitch. If that pitch is a "white key", the note /// is simply a letter with no accidentals (and is the same as /// <see cref="NotePreferringSharps"/>). Otherwise the note has a flat.</returns> public static Note NotePreferringFlats(this Pitch pitch) { return PositionInOctaveToNotesPreferringFlats[pitch.PositionInOctave()]; } /// <summary> /// Returns the note that would name this pitch if it used the given letter. /// </summary> /// <param name="pitch">The pitch being named.</param> /// <param name="letter">The letter to use in the name, in ['A'..'G'].</param> /// <returns>The note for pitch with letter. The result may have a large number of /// accidentals if pitch is not easily named by letter.</returns> /// <exception cref="ArgumentOutOfRangeException">letter is out of range.</exception> public static Note NoteWithLetter(this Pitch pitch, char letter) { if (letter < 'A' || letter > 'G') { throw new ArgumentOutOfRangeException(); } Note pitchNote = pitch.NotePreferringSharps(); Note letterNote = new Note(letter); int upTo = letterNote.SemitonesUpTo(pitchNote); int downTo = letterNote.SemitonesDownTo(pitchNote); if (upTo <= downTo) { return new Note(letter, upTo); } else { return new Note(letter, -downTo); } } } }
{ "content_hash": "fd091107843f00c37a81a77649d05b9f", "timestamp": "", "source": "github", "line_count": 439, "max_line_length": 99, "avg_line_length": 37.066059225512525, "alnum_prop": 0.5338618485742379, "repo_name": "DigitalPlatform/dp2", "id": "1ecd28ae5f88db5b788a7e99ba3f295c72b9af96", "size": "16274", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "midi-dot-net/Midi/Pitch.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP.NET", "bytes": "80547" }, { "name": "Batchfile", "bytes": "7192" }, { "name": "C#", "bytes": "56347865" }, { "name": "CSS", "bytes": "818819" }, { "name": "HTML", "bytes": "1914736" }, { "name": "JavaScript", "bytes": "152102" }, { "name": "PHP", "bytes": "30185" }, { "name": "Roff", "bytes": "1879" }, { "name": "Smalltalk", "bytes": "48625" }, { "name": "XSLT", "bytes": "64230" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="author" content=""> <!-- Site Title --> <title></title> <!-- Fav Icons --> <link rel="icon" href="images/favicon.png" type="image/x-icon"> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap-dropdownhover.min.css" rel="stylesheet"> <!-- Fonts Awesome --> <link href="css/font-awesome.min.css" rel="stylesheet"> <!-- Google Fonts --> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,800italic,800,600italic,600,400italic,700,700italic' rel='stylesheet' type='text/css'> <!-- animate Effect --> <link href="css/animate.css" rel="stylesheet"> <!-- Main CSS --> <link href="css/style.css" rel="stylesheet"> <!-- Responsive CSS --> <link href="css/responsive.css" rel="stylesheet"> </head> <body> <header id="header" class="head"> <div class="top-header"> <div class="container"> <div class="row "> <ul class="contact-detail2 col-sm-6 pull-left"> <li> <a href="#" target="_blank"><i class="fa fa-mobile"></i>Call US + 1 (1800) 459 123 7</a> </li> <li> <a href="#" target="_blank"><i class="fa fa-envelope-o"></i> example@gmail.com</a> </li> </ul> <div class="social-links col-sm-6 pull-right"> <ul class="social-icons pull-right"> <li> <a href="#" target="_blank"><i class="fa fa-facebook"></i></a> </li> <li> <a href="#" target="_blank"><i class="fa fa-twitter"></i></a> </li> <li> <a href="#" target="_blank"><i class="fa fa-pinterest"></i></a> </li> <li> <a href="#" target="_blank"><i class="fa fa-skype"></i></a> </li> <li> <a href="#" target="_blank"><i class="fa fa-dribbble"></i></a> </li> </ul> </div> </div> </div> </div> <nav class="navbar navbar-default navbar-menu"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"> <div class="logo-text"><span><samp>M</samp>Medi</span>camp</div> <!-- <img src="images/logo.png" alt="logo"> --> </a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" data-hover="dropdown" data-animations="fadeIn fadeInLeft fadeInUp fadeInRight"> <ul class="nav navbar-nav navbar-right"> <li><a href="index.html">Home</a></li> <li class="active"><a href="aboutus.html">About us </a></li> <li><a href="services.html">Services </a></li> <li><a href="contact.html">Contact Us</a></li> </ul> </div> <!--/.nav-collapse --> </div> </nav> </header> <section id="inner-title" class="inner-title"> <div class="container"> <div class="row"> <div class="col-md-6 col-lg-6"><h2>About us</h2></div> <div class="col-md-6 col-lg-6"> <div class="breadcrumbs"> <ul> <li>Current Page:</li> <li><a href="index.html">Home</a></li> <li><a href="aboutus.html">About us</a></li> </ul> </div> </div> </div> </div> </section> <section id="section18" class="section-margine"> <div class="container"> <div class="section18"> <div class="row"> <div class="col-md-8 col-lg-8 wow fadeInUp"> <div class="textcont"> <h3>Medical Stories</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p> <h4>Back in 1997</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.</p> </div> </div> <div class="col-md-4 col-lg-4 wow fadeInUp" data-wow-delay=".2s"> <div class="section-18-img"> <img src="images/a0.jpg" class="img-responsive" alt=""> </div> </div> </div> <div class="row mission-vision"> <div class="col-sm-6 col-md-6 wow fadeInUp" data-wow-delay=".3s"> <figure> <img src="images/a2.jpg" class="img-responsive" alt=""> </figure> <h4>Mediacal Mission</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p> </div> <div class="col-sm-6 col-md-6 wow fadeInUp" data-wow-delay=".4s"> <figure> <img src="images/a1.jpg" class="img-responsive" alt=""> </figure> <h4>Mediacal Vision</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p> </div> </div> </div> </div> </section> <section id="section5" class="section-5 section-margine"> <div class="container"> <div class="row my-team"> <div class="col-md-12"> <header class="title-head"> <h2>Awesome Doctors Team</h2> <p>Using many font styles canslow down your webpage, so only select the font styles that you</p> <div class="line-heading"> <span class="line-left"></span> <span class="line-middle">+</span> <span class="line-right"></span> </div> </header> </div> <div class="col-md-3 col-sm-6 my-team-member wow fadeInUp"> <div class="my-member-img"> <img src="images/team/1.jpg" class="img-responsive" alt="team01"> </div> <div class="my-team-detail text-center"> <h4 class="my-member-name">Turanga Parker</h4> <p class="my-member-post">Director</p> <div class="my-member-social"> <ul> <li><a href="#" target="_blank"><i class="fa fa-envelope"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-linkedin"></i></a></li> </ul> </div> </div> </div> <div class="col-md-3 col-sm-6 my-team-member wow fadeInUp" data-wow-delay=".2s"> <div class="my-member-img"> <img src="images/team/2.jpg" class="img-responsive" alt="team02"> </div> <div class="my-team-detail text-center"> <h4 class="my-member-name">Mariya Rayan</h4> <p class="my-member-post">Manager</p> <div class="my-member-social"> <ul> <li><a href="#" target="_blank"><i class="fa fa-envelope"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-linkedin"></i></a></li> </ul> </div> </div> </div> <div class="col-md-3 col-sm-6 my-team-member wow fadeInUp" data-wow-delay=".3s"> <div class="my-member-img"> <img src="images/team/3.jpg" class="img-responsive" alt="team03"> </div> <div class="my-team-detail text-center"> <h4 class="my-member-name">Jerry Hu</h4> <p class="my-member-post">Sales Manager</p> <div class="my-member-social"> <ul> <li><a href="#" target="_blank"><i class="fa fa-envelope"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-linkedin"></i></a></li> </ul> </div> </div> </div> <div class="col-md-3 col-sm-6 my-team-member wow fadeInUp" data-wow-delay=".2s"> <div class="my-member-img"> <img src="images/team/4.jpg" class="img-responsive" alt="team04"> </div> <div class="my-team-detail text-center"> <h4 class="my-member-name">Sara Rayan</h4> <p class="my-member-post">Support</p> <div class="my-member-social"> <ul> <li><a href="#" target="_blank"><i class="fa fa-envelope"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="#" target="_blank"><i class="fa fa-linkedin"></i></a></li> </ul> </div> </div> </div> </div> </div> </section> <section id="section14" class="section-margine"> <div class="container"> <div class="row"> <div class="col-md-12 col-lg-12"> <header class="title-head"> <h2>Reent Post</h2> <p>Using many font styles canslow down your webpage, so only select the font styles that you</p> <div class="line-heading"> <span class="line-left"></span> <span class="line-middle">+</span> <span class="line-right"></span> </div> </header> </div> </div> <div class="row"> <div class="col-md-4 col-lg-4"> <div class="section-14-box wow fadeInUp"> <img src="images/blog/blog-1.jpg" class="img-responsive" alt="Blog image 1"> <h3><a href="#">New Cancer Treatment</a></h3> <div class="row"> <div class="col-md-12 col-lg-12"> <div class="comments"> <a class="btn btn-primary btn-sm">July, 30, 30</a> <a href="#" class="btn btn-primary btn-sm">rkwebdes</a> </div> </div> </div> <p>Laoreet eleifend condimentum urna odio inceptos bibendum curae imperdiet laoreet nunc tellus, class ultricies vivamus primis.</p> </div> </div> <div class="col-md-4 col-lg-4"> <div class="section-14-box wow fadeInUp" data-wow-delay=".2s"> <h3><a href="#">Surgery Advices</a></h3> <div class="row"> <div class="col-lg-12"> <div class="comments"> <a class="btn btn-primary btn-sm">July, 30, 30</a> <a href="#" class="btn btn-primary btn-sm">rkwebdes</a> </div> </div> </div> <p>Laoreet eleifend condimentum urna odio inceptos bibendum curae imperdiet laoreet nunc tellus, class ultricies vivamus primis.</p> <img src="images/blog/blog-2.jpg" class="img-responsive" alt="Blog image 1"> </div> </div> <div class="col-md-4 col-lg-4"> <div class="section-14-box wow fadeInUp" data-wow-delay=".3s"> <img src="images/blog/blog-3.jpg" class="img-responsive" alt="Blog image 1"> <h3><a href="#">Medicine Sale Market</a></h3> <div class="row"> <div class="col-md-12 col-lg-12"> <div class="comments"> <a class="btn btn-primary btn-sm">July, 30, 30</a> <a href="#" class="btn btn-primary btn-sm">rkwebdes</a> </div> </div> </div> <p>Laoreet eleifend condimentum urna odio inceptos bibendum curae imperdiet laoreet nunc tellus, class ultricies vivamus primis.</p> </div> </div> </div> </div> </section> <section id="section9" class="section-margine section-9-background"> <div class="container"> <div class="row"> <div class="col-md-2 col-sm-4 col-xs-6"><img src="images/clients/1.png" class="img-responsive wow fadeInUp" alt=""></div> <div class="col-md-2 col-sm-4 col-xs-6"><img src="images/clients/2.png" class="img-responsive wow fadeInUp" alt=""></div> <div class="col-md-2 col-sm-4 col-xs-6"><img src="images/clients/3.png" class="img-responsive wow fadeInUp" alt=""></div> <div class="col-md-2 col-sm-4 col-xs-6"><img src="images/clients/4.png" class="img-responsive wow fadeInUp" alt=""></div> <div class="col-md-2 col-sm-4 col-xs-6"><img src="images/clients/5.png" class="img-responsive wow fadeInUp" alt=""></div> <div class="col-md-2 col-sm-4 col-xs-6"><img src="images/clients/6.png" class="img-responsive wow fadeInUp" alt=""></div> </div> </div> </section> <section id="footer-top" class="footer-top"> <div class="container"> <div class="row"> <div class="col-md-3 col-lg-3"> <div class="footer-top-box"> <h4>About Us</h4> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text</p> </div> <div class="footer-top-box"> <h4>Office Hour</h4> <b>Mon-Fri :</b> 09am to 06pm<br/> <b>Tues-Wed :</b> Special Appointment </div> </div> <div class="col-md-3 col-lg-3"> <div class="footer-top-box"> <h4>Latest Posts</h4> <ul> <li> <div class="recent-post-widget"> <a href="#" class="widget-img-thumb"> <img src="images/post-1.jpg" class="img-responsive"> </a> <div class="widget-content"> <h5><a href="#" class="sidebar-item-title">Enterprise Video Solutions</a></h5> <a href="#"> <p class="widget-date">Posted: 3 day ago</p> </a> </div> <div class="clearfix"></div> </div> </li> <li> <div class="recent-post-widget"> <a href="#" class="widget-img-thumb"> <img src="images/post-2.jpg" class="img-responsive"> </a> <div class="widget-content"> <h5><a href="#" class="sidebar-item-title">Medical Instruments</a></h5> <a href="#"> <p class="widget-date">Posted: 6 month ago</p> </a> </div> <div class="clearfix"></div> </div> </li> </ul> </div> </div> <div class="col-md-3 col-lg-3"> <div class="footer-top-box"> <h4>Tags</h4> <div class="tag"><a href="#">Acupuncture</a></div> <div class="tag"><a href="#">Mammography</a></div> <div class="tag"><a href="#">Neonatology</a></div> <div class="tag"><a href="#">Diabetes Education</a></div> <div class="tag"><a href="#">Geriatrics</a></div> <div class="tag"><a href="#">Kidneys</a></div> </div> </div> <div class="col-md-3 col-lg-3"> <div class="footer-top-box"> <h4>Contact us</h4> <p><b>Location : 42/2</b> New road, KTM<br/> <b>Mob: </b> +9849494875<br/> <b>Mail: </b> info@gmail.com </p> </div> <div class="footer-top-box"> <h4>Subscribe</h4> <div class="cs-form"> <form action="#" method="post"> <div class="input-holder"> <input type="email" placeholder="Enter Valid Email Address"> <label> <i class="fa fa-location-arrow fa-2x"></i> <input class="submit-bgcolor" type="submit" value="submit"> </label> </div> </form> </div> </div> </div> </div> </div> </section> <section id="footer-bottom" class="footer-bottom"> <div class="container"> <div class="row"> <div class="col-md-3 col-lg-9"> <div class="copyright">Copyright &copy; 2017.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></div> </div> <div class="col-md-3 col-lg-3"> <ul class="list-inline social-buttons"> <li><a href="#"><i class="fa fa-twitter"></i></a></li> <li><a href="#"><i class="fa fa-facebook"></i></a></li> <li><a href="#"><i class="fa fa-linkedin"></i></a></li> </ul> </div> </div> </div> </section> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.plugin.min.js"></script> <script src="js/jquery.isotope.min.js"></script> <script src="js/jquery.magnific-popup.min.js"></script> <script src="js/bootstrap-dropdownhover.min.js"></script> <script src="js/wow.min.js"></script> <script src="js/waypoints.min.js"></script> <script src="js/jquery.counterup.min.js"></script> <script src="js/main.js"></script> </body> </html>
{ "content_hash": "1bdaa05a0c927f77db39ecac8560fea1", "timestamp": "", "source": "github", "line_count": 401, "max_line_length": 383, "avg_line_length": 45.7356608478803, "alnum_prop": 0.5533260632497273, "repo_name": "ArmstrongYang/hiShare", "id": "cd2990ccc7ba8c72ed7e874f83d6843c5ba6dc2c", "size": "18342", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "medical/aboutus.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "388014" }, { "name": "HTML", "bytes": "1217929" }, { "name": "JavaScript", "bytes": "1017376" } ], "symlink_target": "" }
require 'rubeus' module Rubeus module Util autoload :JavaMethodName, 'rubeus/util/java_method_name' autoload :NameAccessArray, 'rubeus/util/name_access_array' end end
{ "content_hash": "32d479fb75489ec1a3ccc6aefc8a788f", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 62, "avg_line_length": 22.5, "alnum_prop": 0.75, "repo_name": "akm/rubeus", "id": "4a82a5afc49c85e7af00fbb5e7b48ab11a32fbe4", "size": "180", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "lib/rubeus/util.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "5150" }, { "name": "Ruby", "bytes": "172008" }, { "name": "Shell", "bytes": "151" } ], "symlink_target": "" }
class ProviderType < ActiveRecord::Base acts_as_paranoid has_many :providers validates_presence_of :name end
{ "content_hash": "a87389f5d35ed150d60cc43f6b110a3e", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 39, "avg_line_length": 23, "alnum_prop": 0.7739130434782608, "repo_name": "mgurley/inav", "id": "84e9c43edb7b745e8b1f89d377ae78540af1bf74", "size": "115", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/models/provider_type.rb", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "32279" }, { "name": "Ruby", "bytes": "240768" } ], "symlink_target": "" }
from django.contrib.sites.managers import CurrentSiteManager as DjangoCSM from sitesngine.hosts.utils import current_site_id __author__ = 'fearless' # "from birth till death" class CurrentSiteManager(DjangoCSM): """ Extends Django's site manager to first look up site by ID stored in the request, the session, then domain for the current request (accessible via threadlocals in ``sitesngine.hosts.request``), the environment variable ``SITESNGINE_SITE_ID`` (which can be used by management commands with the ``--site`` arg, finally falling back to ``settings.SITE_ID`` if none of those match a site. """ def __init__(self, field_name=None, *args, **kwargs): super(DjangoCSM, self).__init__(*args, **kwargs) self.__field_name = field_name self.__is_validated = False def get_query_set(self): if not self.__is_validated: self._validate_field_name() lookup = {self.__field_name + "__id__exact": current_site_id()} return super(DjangoCSM, self).get_query_set().filter(**lookup)
{ "content_hash": "f97d01adaccf8017cca526c6b7f65588", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 73, "avg_line_length": 43.08, "alnum_prop": 0.669452181987001, "repo_name": "eggforsale/django-sitesngine", "id": "3805a975c020737425e0b72bd571ef22aa99686d", "size": "1077", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sitesngine/hosts/managers.py", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "284018" }, { "name": "JavaScript", "bytes": "3430102" }, { "name": "PHP", "bytes": "49698" }, { "name": "Python", "bytes": "401895" }, { "name": "Shell", "bytes": "6723" } ], "symlink_target": "" }
using std::fstream; using std::nothrow; using std::string; using std::vector; using apache::thrift::transport::TProcessor; namespace palo { HeartbeatServer::HeartbeatServer(TMasterInfo* master_info) : _master_info(master_info), _epoch(0) { _olap_rootpath_instance = OLAPRootPath::get_instance(); } void HeartbeatServer::init_cluster_id() { _master_info->cluster_id = _olap_rootpath_instance->effective_cluster_id(); } void HeartbeatServer::heartbeat( THeartbeatResult& heartbeat_result, const TMasterInfo& master_info) { AgentStatus status = PALO_SUCCESS; TStatusCode::type status_code = TStatusCode::OK; vector<string> error_msgs; TStatus heartbeat_status; //print heartbeat in every minute LOG_EVERY_N(INFO, 12) << "get heartbeat from FE." << "host:" << master_info.network_address.hostname << ", " << "port:" << master_info.network_address.port << ", " << "cluster id:" << master_info.cluster_id << ", " << "counter:" << google::COUNTER; // Check cluster id if (_master_info->cluster_id == -1) { OLAP_LOG_INFO("get first heartbeat. update cluster id"); // write and update cluster id OLAPStatus res = _olap_rootpath_instance->set_cluster_id(master_info.cluster_id); if (res != OLAP_SUCCESS) { OLAP_LOG_WARNING("fail to set cluster id. [res=%d]", res); error_msgs.push_back("fail to set cluster id."); status = PALO_ERROR; } else { _master_info->cluster_id = master_info.cluster_id; OLAP_LOG_INFO("record cluster id." "host: %s, port: %d, cluster id: %d", master_info.network_address.hostname.c_str(), master_info.network_address.port, master_info.cluster_id); } } else { if (_master_info->cluster_id != master_info.cluster_id) { OLAP_LOG_WARNING("invalid cluster id: %d. ignore.", master_info.cluster_id); error_msgs.push_back("invalid cluster id. ignore."); status = PALO_ERROR; } } if (status == PALO_SUCCESS) { if (_master_info->network_address.hostname != master_info.network_address.hostname || _master_info->network_address.port != master_info.network_address.port) { if (master_info.epoch > _epoch) { _master_info->network_address.hostname = master_info.network_address.hostname; _master_info->network_address.port = master_info.network_address.port; _epoch = master_info.epoch; OLAP_LOG_INFO("master change, new master host: %s, port: %d, epoch: %ld", _master_info->network_address.hostname.c_str(), _master_info->network_address.port, _epoch); } else { OLAP_LOG_WARNING("epoch is not greater than local. ignore heartbeat." "host: %s, port: %d, local epoch: %ld, received epoch: %ld", _master_info->network_address.hostname.c_str(), _master_info->network_address.port, _epoch, master_info.epoch); error_msgs.push_back("epoch is not greater than local. ignore heartbeat."); status = PALO_ERROR; } } } if (status == PALO_SUCCESS && master_info.__isset.token) { if (!_master_info->__isset.token) { _master_info->__set_token(master_info.token); OLAP_LOG_INFO("get token. token: %s", _master_info->token.c_str()); } else if (_master_info->token != master_info.token) { OLAP_LOG_WARNING("invalid token. local_token:%s, token:%s", _master_info->token.c_str(), master_info.token.c_str()); error_msgs.push_back("invalid token."); status = PALO_ERROR; } } TBackendInfo backend_info; if (status == PALO_SUCCESS) { backend_info.__set_be_port(config::be_port); backend_info.__set_http_port(config::webserver_port); backend_info.__set_be_rpc_port(-1); backend_info.__set_brpc_port(config::brpc_port); } else { status_code = TStatusCode::RUNTIME_ERROR; } heartbeat_status.__set_status_code(status_code); heartbeat_status.__set_error_msgs(error_msgs); heartbeat_result.__set_status(heartbeat_status); heartbeat_result.__set_backend_info(backend_info); } AgentStatus create_heartbeat_server( ExecEnv* exec_env, uint32_t server_port, ThriftServer** thrift_server, uint32_t worker_thread_num, TMasterInfo* local_master_info) { HeartbeatServer* heartbeat_server = new (nothrow) HeartbeatServer(local_master_info); if (heartbeat_server == NULL) { return PALO_ERROR; } heartbeat_server->init_cluster_id(); boost::shared_ptr<HeartbeatServer> handler(heartbeat_server); boost::shared_ptr<TProcessor> server_processor(new HeartbeatServiceProcessor(handler)); string server_name("heartbeat"); *thrift_server = new ThriftServer( server_name, server_processor, server_port, exec_env->metrics(), worker_thread_num); return PALO_SUCCESS; } } // namesapce palo
{ "content_hash": "253011e509f9d3ef0a10981f3cf0f4a9", "timestamp": "", "source": "github", "line_count": 133, "max_line_length": 94, "avg_line_length": 41.015037593984964, "alnum_prop": 0.5792850595783685, "repo_name": "morningman/palo", "id": "ae5cce5e1ad196fd5601cd713c2cec76cca4c79f", "size": "6337", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "be/src/agent/heartbeat_server.cpp", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "423519" }, { "name": "C++", "bytes": "9453342" }, { "name": "CMake", "bytes": "64873" }, { "name": "CSS", "bytes": "3843" }, { "name": "Java", "bytes": "6756996" }, { "name": "JavaScript", "bytes": "5625" }, { "name": "Lex", "bytes": "29688" }, { "name": "Makefile", "bytes": "9065" }, { "name": "Python", "bytes": "124239" }, { "name": "Shell", "bytes": "26111" }, { "name": "Thrift", "bytes": "171516" }, { "name": "Yacc", "bytes": "100892" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="hr-HR"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="75"/> <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Paycoin&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="113"/> <source>Copyright © 2014 Paycoin Developers</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="120"/> <source>Copyright © 2011-2014 Paycoin Developers</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="133"/> <source>Copyright © 2009-2014 Bitcoin Developers This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (https://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="14"/> <source>Address Book</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="20"/> <source>These are your Paycoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="33"/> <source>Double-click to edit address or label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="57"/> <source>Create a new address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="60"/> <source>&amp;New Address...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="71"/> <source>Copy the currently selected address to the system clipboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="74"/> <source>&amp;Copy to Clipboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="85"/> <source>Show &amp;QR Code</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="96"/> <source>Sign a message to prove you own this address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="99"/> <source>&amp;Sign Message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="110"/> <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="113"/> <source>&amp;Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="65"/> <source>Copy address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="66"/> <source>Copy label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="67"/> <source>Edit</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="68"/> <source>Delete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="273"/> <source>Export Address Book Data</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="274"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="287"/> <source>Error exporting</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addressbookpage.cpp" line="287"/> <source>Could not write to file %1.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="79"/> <source>Label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addresstablemodel.cpp" line="79"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../addresstablemodel.cpp" line="115"/> <source>(no label)</source> <translation type="unfinished"></translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="26"/> <source>Dialog</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="94"/> <source>TextLabel</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="47"/> <source>Enter passphrase</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="61"/> <source>New passphrase</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="75"/> <source>Repeat new passphrase</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="114"/> <source>Toggle Keyboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="37"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="38"/> <source>Encrypt wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="41"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="46"/> <source>Unlock wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="49"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="54"/> <source>Decrypt wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="57"/> <source>Change passphrase</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="58"/> <source>Enter the old and new passphrase to the wallet.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="106"/> <source>Confirm wallet encryption</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="116"/> <location filename="../askpassphrasedialog.cpp" line="165"/> <source>Wallet encrypted</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="213"/> <location filename="../askpassphrasedialog.cpp" line="237"/> <source>Warning: The Caps Lock key is on.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="122"/> <location filename="../askpassphrasedialog.cpp" line="129"/> <location filename="../askpassphrasedialog.cpp" line="171"/> <location filename="../askpassphrasedialog.cpp" line="177"/> <source>Wallet encryption failed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="107"/> <source>WARNING: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR PEERCOINS&lt;/b&gt;! Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="117"/> <source>Paycoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your Paycoins from being stolen by malware infecting your computer.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="123"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="130"/> <location filename="../askpassphrasedialog.cpp" line="178"/> <source>The supplied passphrases do not match.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="141"/> <source>Wallet unlock failed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="142"/> <location filename="../askpassphrasedialog.cpp" line="153"/> <location filename="../askpassphrasedialog.cpp" line="172"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="152"/> <source>Wallet decryption failed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="166"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="191"/> <source>&amp;Overview</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="192"/> <source>Show general overview of wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="197"/> <source>&amp;Transactions</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="198"/> <source>Browse transaction history</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="203"/> <source>&amp;Minting</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="204"/> <source>Show your minting capacity</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="209"/> <source>&amp;Address Book</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="210"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="215"/> <source>&amp;Receive coins</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="216"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="221"/> <source>&amp;Send coins</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="227"/> <source>Sign/Verify &amp;message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="228"/> <source>Prove you control an address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="249"/> <source>E&amp;xit</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="250"/> <source>Quit application</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="254"/> <source>Show information about Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="256"/> <source>About &amp;Qt</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="257"/> <source>Show information about Qt</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="259"/> <source>&amp;Options...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="264"/> <source>&amp;Export...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="265"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="266"/> <source>&amp;Encrypt Wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="267"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="269"/> <source>&amp;Unlock Wallet for Minting Only</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="270"/> <source>Unlock wallet only for minting. Sending coins will still require the passphrase.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="272"/> <source>&amp;Backup Wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="273"/> <source>Backup wallet to another location</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="274"/> <source>&amp;Change Passphrase</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="275"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="276"/> <source>&amp;Debug window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="277"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="301"/> <source>&amp;File</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="310"/> <source>&amp;Settings</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="317"/> <source>&amp;Help</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="326"/> <source>Tabs toolbar</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="338"/> <source>Actions toolbar</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="350"/> <source>[testnet]</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="658"/> <source>This transaction is over the size limit. You can still send it for a fee of %1. Do you want to pay the fee?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="76"/> <source>Paycoin Wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="222"/> <source>Send coins to a Paycoin address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="253"/> <source>&amp;About Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="260"/> <source>Modify configuration options for Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="262"/> <source>Show/Hide &amp;Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="263"/> <source>Show or hide the Paycoin window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="415"/> <source>Paycoin client</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="443"/> <source>p-qt</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="507"/> <source>%n active connection(s) to Paycoin network</source> <translation type="unfinished"> <numerusform></numerusform> <numerusform></numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../bitcoingui.cpp" line="531"/> <source>Synchronizing with network...</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="533"/> <source>~%n block(s) remaining</source> <translation type="unfinished"> <numerusform>~%n block remaining</numerusform> <numerusform>~%n blocks remaining</numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../bitcoingui.cpp" line="544"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="556"/> <source>Downloaded %1 blocks of transaction history.</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="571"/> <source>%n second(s) ago</source> <translation type="unfinished"> <numerusform>%n second ago</numerusform> <numerusform>%n seconds ago</numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="575"/> <source>%n minute(s) ago</source> <translation type="unfinished"> <numerusform>%n minute ago</numerusform> <numerusform>%n minutes ago</numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="579"/> <source>%n hour(s) ago</source> <translation type="unfinished"> <numerusform>%n hour ago</numerusform> <numerusform>%n hours ago</numerusform> <numerusform></numerusform> </translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="583"/> <source>%n day(s) ago</source> <translation type="unfinished"> <numerusform>%n day ago</numerusform> <numerusform>%n days ago</numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../bitcoingui.cpp" line="589"/> <source>Up to date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="594"/> <source>Catching up...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="602"/> <source>Last received block was generated %1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="661"/> <source>Sending...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="688"/> <source>Sent transaction</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="689"/> <source>Incoming transaction</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="690"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="821"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked for block minting only&lt;/b&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="821"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="831"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="888"/> <source>Backup Wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="888"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="891"/> <source>Backup Failed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoingui.cpp" line="891"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoin.cpp" line="128"/> <source>A fatal error occurred. Paycoin can no longer continue safely and will quit.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="14"/> <source>Coin Control</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="45"/> <source>Quantity:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="64"/> <location filename="../forms/coincontroldialog.ui" line="96"/> <source>0</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="77"/> <source>Bytes:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="125"/> <source>Amount:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="144"/> <location filename="../forms/coincontroldialog.ui" line="224"/> <location filename="../forms/coincontroldialog.ui" line="310"/> <location filename="../forms/coincontroldialog.ui" line="348"/> <source>0.00 BTC</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="157"/> <source>Priority:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="205"/> <source>Fee:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="240"/> <source>Low Output:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="262"/> <location filename="../coincontroldialog.cpp" line="572"/> <source>no</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="291"/> <source>After Fee:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="326"/> <source>Change:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="395"/> <source>(un)select all</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="408"/> <source>Tree mode</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="424"/> <source>List mode</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="469"/> <source>Amount</source> <translation>Suma</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="479"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="484"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="489"/> <source>Confirmations</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="492"/> <source>Confirmed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="497"/> <source>Coin days</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="502"/> <source>Priority</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="36"/> <source>Copy address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="37"/> <source>Copy label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="38"/> <location filename="../coincontroldialog.cpp" line="64"/> <source>Copy amount</source> <translation>Kopiraj sumu</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="39"/> <source>Copy transaction ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="63"/> <source>Copy quantity</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="65"/> <source>Copy fee</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="66"/> <source>Copy after fee</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="67"/> <source>Copy bytes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="68"/> <source>Copy priority</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="69"/> <source>Copy low output</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="70"/> <source>Copy change</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="388"/> <source>highest</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="389"/> <source>high</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="390"/> <source>medium-high</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="391"/> <source>medium</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="395"/> <source>low-medium</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="396"/> <source>low</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="397"/> <source>lowest</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="572"/> <source>DUST</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="572"/> <source>yes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="582"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="583"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="584"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="585"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="622"/> <location filename="../coincontroldialog.cpp" line="688"/> <source>(no label)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="679"/> <source>change from %1 (%2)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../coincontroldialog.cpp" line="680"/> <source>(change)</source> <translation type="unfinished"></translation> </message> </context> <context> <name>DisplayOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="275"/> <source>&amp;Unit to show amounts in: </source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="279"/> <source>Choose the default subdivision unit to show in the interface, and when sending coins</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="286"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="287"/> <source>Whether to show Paycoin addresses in the transaction list</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="290"/> <source>Display coin control features (experts only!)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="291"/> <source>Whether to show coin control features or not</source> <translation type="unfinished"></translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="14"/> <source>Edit Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="25"/> <source>&amp;Label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="35"/> <source>The label associated with this address book entry</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="42"/> <source>&amp;Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="52"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="20"/> <source>New receiving address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="24"/> <source>New sending address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="27"/> <source>Edit receiving address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="31"/> <source>Edit sending address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="91"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="96"/> <source>The entered address &quot;%1&quot; is not a valid Paycoin address.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="101"/> <source>Could not unlock wallet.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="106"/> <source>New key generation failed.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>MainOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="177"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="178"/> <source>Show only a tray icon after minimizing the window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="186"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="181"/> <source>M&amp;inimize on close</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="182"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="187"/> <source>Automatically open the Paycoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="190"/> <source>&amp;Connect through SOCKS4 proxy:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="191"/> <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="196"/> <source>Proxy &amp;IP: </source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="202"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="205"/> <source>&amp;Port: </source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="211"/> <source>Port of the proxy (e.g. 1234)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="217"/> <source>Mandatory network transaction fee per kB transferred. Most transactions are 1 kB and incur a 0.01 PPC fee. Note: transfer size may increase depending on the number of input transactions required to be added together to fund the payment.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="223"/> <source>Additional network &amp;fee:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="234"/> <source>Detach databases at shutdown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="235"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="172"/> <source>&amp;Start Paycoin on window system startup</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="173"/> <source>Automatically start Paycoin after the computer is turned on</source> <translation type="unfinished"></translation> </message> </context> <context> <name>MintingTableModel</name> <message> <location filename="../mintingtablemodel.cpp" line="203"/> <source>Transaction</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="203"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="203"/> <source>Age</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="203"/> <source>Balance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="203"/> <source>CoinDay</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="203"/> <source>MintProbability</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="284"/> <source>minutes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="291"/> <source>hours</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="295"/> <source>days</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="298"/> <source>You have %1 chance to find a POS block if you mint %2 %3 at current difficulty.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="418"/> <source>Destination address of the output.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="420"/> <source>Original transaction id.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="422"/> <source>Age of the transaction in days.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="424"/> <source>Balance of the output.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="426"/> <source>Coin age in the output.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingtablemodel.cpp" line="428"/> <source>Chance to mint a block within given time interval.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>MintingView</name> <message> <location filename="../mintingview.cpp" line="33"/> <source>transaction is too young</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="40"/> <source>transaction is mature</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="47"/> <source>transaction has reached maximum probability</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="60"/> <source>Display minting probability within : </source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="62"/> <source>10 min</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="63"/> <source>24 hours</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="64"/> <source>30 days</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="65"/> <source>90 days</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="162"/> <source>Export Minting Data</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="163"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="171"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="172"/> <source>Transaction</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="173"/> <source>Age</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="174"/> <source>CoinDay</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="175"/> <source>Balance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="176"/> <source>MintingProbability</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="180"/> <source>Error exporting</source> <translation type="unfinished"></translation> </message> <message> <location filename="../mintingview.cpp" line="180"/> <source>Could not write to file %1.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../optionsdialog.cpp" line="81"/> <source>Main</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="86"/> <source>Display</source> <translation type="unfinished"></translation> </message> <message> <location filename="../optionsdialog.cpp" line="106"/> <source>Options</source> <translation type="unfinished"></translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="14"/> <source>Form</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="40"/> <source>Balance:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="54"/> <source>Number of transactions:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="61"/> <source>0</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="68"/> <source>Unconfirmed:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="82"/> <source>Stake:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="102"/> <source>Wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/overviewpage.ui" line="138"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../overviewpage.cpp" line="104"/> <source>Your current balance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../overviewpage.cpp" line="109"/> <source>Your current stake</source> <translation type="unfinished"></translation> </message> <message> <location filename="../overviewpage.cpp" line="114"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../overviewpage.cpp" line="117"/> <source>Total number of transactions in wallet</source> <translation type="unfinished"></translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="14"/> <source>Dialog</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="32"/> <source>QR Code</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="55"/> <source>Request Payment</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="70"/> <source>Amount:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="105"/> <source>PPC</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="121"/> <source>Label:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="144"/> <source>Message:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="186"/> <source>&amp;Save As...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../qrcodedialog.cpp" line="46"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../qrcodedialog.cpp" line="64"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../qrcodedialog.cpp" line="121"/> <source>Save Image...</source> <translation>Snimi sliku</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="121"/> <source>PNG Images (*.png)</source> <translation type="unfinished"></translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="14"/> <source>Paycoin (Paycoin) debug window</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="24"/> <source>Information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="33"/> <source>Client name</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="40"/> <location filename="../forms/rpcconsole.ui" line="60"/> <location filename="../forms/rpcconsole.ui" line="106"/> <location filename="../forms/rpcconsole.ui" line="156"/> <location filename="../forms/rpcconsole.ui" line="176"/> <location filename="../forms/rpcconsole.ui" line="196"/> <location filename="../forms/rpcconsole.ui" line="229"/> <location filename="../rpcconsole.cpp" line="338"/> <source>N/A</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="53"/> <source>Client version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="79"/> <source>Version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="92"/> <source>Network</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="99"/> <source>Number of connections</source> <translation>Broj veza/konekcija</translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="119"/> <source>On testnet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="142"/> <source>Block chain</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="149"/> <source>Current number of blocks</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="169"/> <source>Estimated total blocks</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="189"/> <source>Last block time</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="222"/> <source>Build date</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="237"/> <source>Console</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="270"/> <source>&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/rpcconsole.ui" line="286"/> <source>Clear console</source> <translation type="unfinished"></translation> </message> <message> <location filename="../rpcconsole.cpp" line="306"/> <source>Welcome to the Paycoin RPC console.&lt;br&gt;Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.&lt;br&gt;Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="14"/> <location filename="../sendcoinsdialog.cpp" line="176"/> <location filename="../sendcoinsdialog.cpp" line="181"/> <location filename="../sendcoinsdialog.cpp" line="186"/> <location filename="../sendcoinsdialog.cpp" line="191"/> <location filename="../sendcoinsdialog.cpp" line="197"/> <location filename="../sendcoinsdialog.cpp" line="202"/> <location filename="../sendcoinsdialog.cpp" line="207"/> <source>Send Coins</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="90"/> <source>Coin Control Features</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="110"/> <source>Inputs...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="117"/> <source>automatically selected</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="136"/> <source>Insufficient funds!</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="213"/> <source>Quantity:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="235"/> <location filename="../forms/sendcoinsdialog.ui" line="270"/> <source>0</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="251"/> <source>Bytes:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="302"/> <source>Amount:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="324"/> <location filename="../forms/sendcoinsdialog.ui" line="410"/> <location filename="../forms/sendcoinsdialog.ui" line="496"/> <location filename="../forms/sendcoinsdialog.ui" line="528"/> <source>0.00 BTC</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="337"/> <source>Priority:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="356"/> <source>medium</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="388"/> <source>Fee:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="423"/> <source>Low Output:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="442"/> <source>no</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="474"/> <source>After Fee:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="509"/> <source>Change</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="559"/> <source>custom change address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="665"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="668"/> <source>&amp;Add recipient...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="685"/> <source>Remove all transaction fields</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="688"/> <source>Clear all</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="707"/> <source>Balance:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="714"/> <source>123.456 BTC</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="745"/> <source>Confirm the send action</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="748"/> <source>&amp;Send</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="51"/> <source>Copy quantity</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="52"/> <source>Copy amount</source> <translation>Kopiraj sumu</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="53"/> <source>Copy fee</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="54"/> <source>Copy after fee</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="55"/> <source>Copy bytes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="56"/> <source>Copy priority</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="57"/> <source>Copy low output</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="58"/> <source>Copy change</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="144"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="149"/> <source>Confirm send coins</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="150"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="150"/> <source> and </source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="182"/> <source>The amount to pay must be at least one cent (0.01).</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="457"/> <source>Warning: Invalid Bitcoin address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="466"/> <source>Warning: Unknown change address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="477"/> <source>(no label)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="187"/> <source>Amount exceeds your balance</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="36"/> <source>Enter a Paycoin address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="177"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="192"/> <source>Total exceeds your balance when the %1 transaction fee is included</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="198"/> <source>Duplicate address found, can only send to each address once in one send operation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="203"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="208"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="14"/> <source>Form</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="29"/> <source>A&amp;mount:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="42"/> <source>Pay &amp;To:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="66"/> <location filename="../sendcoinsentry.cpp" line="26"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="75"/> <source>&amp;Label:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="93"/> <source>The address to send the payment to</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="103"/> <source>Choose address from address book</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="113"/> <source>Alt+A</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="120"/> <source>Paste address from clipboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="130"/> <source>Alt+P</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="137"/> <source>Remove this recipient</source> <translation type="unfinished"></translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="25"/> <source>Enter a Paycoin address</source> <translation type="unfinished"></translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="24"/> <source>&amp;Sign Message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="30"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="48"/> <source>The address to sign the message with</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="55"/> <location filename="../forms/signverifymessagedialog.ui" line="265"/> <source>Choose previously used address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="65"/> <location filename="../forms/signverifymessagedialog.ui" line="275"/> <source>Alt+A</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="75"/> <source>Paste address from clipboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="85"/> <source>Alt+P</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="97"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="104"/> <source>Signature</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="131"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="152"/> <source>Sign the message to prove you own this Paycoin address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="155"/> <source>Sign &amp;Message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="169"/> <source>Reset all sign message fields</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="172"/> <location filename="../forms/signverifymessagedialog.ui" line="315"/> <source>Clear &amp;All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="231"/> <source>&amp;Verify Message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="237"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="258"/> <source>The address the message was signed with</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="295"/> <source>Verify the message to ensure it was signed with the specified Paycoin address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="298"/> <source>Verify &amp;Message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/signverifymessagedialog.ui" line="312"/> <source>Reset all verify message fields</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="29"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="30"/> <source>Enter the signature of the message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="31"/> <location filename="../signverifymessagedialog.cpp" line="32"/> <source>Enter a Paycoin address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="115"/> <location filename="../signverifymessagedialog.cpp" line="195"/> <source>The entered address is invalid.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="115"/> <location filename="../signverifymessagedialog.cpp" line="123"/> <location filename="../signverifymessagedialog.cpp" line="195"/> <location filename="../signverifymessagedialog.cpp" line="203"/> <source>Please check the address and try again.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="123"/> <location filename="../signverifymessagedialog.cpp" line="203"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="131"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="139"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="151"/> <source>Message signing failed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="156"/> <source>Message signed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="214"/> <source>The signature could not be decoded.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="214"/> <location filename="../signverifymessagedialog.cpp" line="227"/> <source>Please check the signature and try again.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="227"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="234"/> <source>Message verification failed.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="239"/> <source>Message verified.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="21"/> <source>Open for %1 blocks</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="23"/> <source>Open until %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="29"/> <source>%1/offline?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="31"/> <source>%1/unconfirmed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="33"/> <source>%1 confirmations</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="51"/> <source>&lt;b&gt;Status:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="56"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="58"/> <source>, broadcast through %1 node</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="60"/> <source>, broadcast through %1 nodes</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="64"/> <source>&lt;b&gt;Date:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="71"/> <source>&lt;b&gt;Source:&lt;/b&gt; Generated&lt;br&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="77"/> <location filename="../transactiondesc.cpp" line="94"/> <source>&lt;b&gt;From:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="94"/> <source>unknown</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="95"/> <location filename="../transactiondesc.cpp" line="118"/> <location filename="../transactiondesc.cpp" line="178"/> <source>&lt;b&gt;To:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="98"/> <source> (yours, label: </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="100"/> <source> (yours)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="136"/> <location filename="../transactiondesc.cpp" line="150"/> <location filename="../transactiondesc.cpp" line="195"/> <location filename="../transactiondesc.cpp" line="212"/> <source>&lt;b&gt;Credit:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="138"/> <source>(%1 matures in %2 more blocks)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="142"/> <source>(not accepted)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="186"/> <location filename="../transactiondesc.cpp" line="194"/> <location filename="../transactiondesc.cpp" line="209"/> <source>&lt;b&gt;Debit:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="200"/> <source>&lt;b&gt;Transaction fee:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="218"/> <source>&lt;b&gt;Net amount:&lt;/b&gt; </source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="220"/> <source>&lt;b&gt;Retained amount:&lt;/b&gt; %1 until %2 more blocks&lt;br&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="227"/> <source>Message:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="229"/> <source>Comment:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="231"/> <source>Transaction ID:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="234"/> <source>Generated coins must wait 520 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to &quot;not accepted&quot; and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiondesc.cpp" line="236"/> <source>Staked coins must wait 520 blocks before they can return to balance and be spent. When you generated this proof-of-stake block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to &quot;not accepted&quot; and not be a valid stake. This may occasionally happen if another node generates a proof-of-stake block within a few seconds of yours.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="14"/> <source>Transaction details</source> <translation type="unfinished"></translation> </message> <message> <location filename="../forms/transactiondescdialog.ui" line="20"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"></translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="214"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="214"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="214"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="214"/> <source>Amount</source> <translation>Suma</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="281"/> <source>Open for %n block(s)</source> <translation> <numerusform>Open for %n block</numerusform> <numerusform>Open for %n blocks</numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="284"/> <source>Open until %1</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="287"/> <source>Offline (%1 confirmations)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="290"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="293"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"></translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="301"/> <source>Mined balance will be available in %n more blocks</source> <translation> <numerusform>Mined balance will be available in %n more block</numerusform> <numerusform>Mined balance will be available in %n more blocks</numerusform> <numerusform></numerusform> </translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="307"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="310"/> <source>Generated but not accepted</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="353"/> <source>Received with</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="355"/> <source>Received from</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="358"/> <source>Sent to</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="360"/> <source>Payment to yourself</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="362"/> <source>Mined</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="364"/> <source>Mint by stake</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="403"/> <source>(n/a)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="603"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="605"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="607"/> <source>Type of transaction.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="609"/> <source>Destination address of transaction.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="611"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="55"/> <location filename="../transactionview.cpp" line="71"/> <source>All</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="56"/> <source>Today</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="57"/> <source>This week</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="58"/> <source>This month</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="59"/> <source>Last month</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="60"/> <source>This year</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="61"/> <source>Range...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="72"/> <source>Received with</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="74"/> <source>Sent to</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="76"/> <source>To yourself</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="77"/> <source>Mined</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="78"/> <source>Mint by stake</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="79"/> <source>Other</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="85"/> <source>Enter address or label to search</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="91"/> <source>Min amount</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="125"/> <source>Copy address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="126"/> <source>Copy label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="127"/> <source>Copy amount</source> <translation>Kopiraj sumu</translation> </message> <message> <location filename="../transactionview.cpp" line="128"/> <source>Edit label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="129"/> <source>Show details...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="130"/> <source>Clear orphans</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="273"/> <source>Export Transaction Data</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="274"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="282"/> <source>Confirmed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="283"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location filename="../transactionview.cpp" line="284"/> <source>Type</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="285"/> <source>Label</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="286"/> <source>Address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="287"/> <source>Amount</source> <translation>Suma</translation> </message> <message> <location filename="../transactionview.cpp" line="288"/> <source>ID</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="292"/> <source>Error exporting</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="292"/> <source>Could not write to file %1.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="400"/> <source>Range:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../transactionview.cpp" line="408"/> <source>to</source> <translation type="unfinished"></translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="164"/> <source>Sending...</source> <translation type="unfinished"></translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="11"/> <source>Warning: Disk space is low </source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="13"/> <source>Usage:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="8"/> <source>Unable to bind to port %d on this computer. Paycoin is probably already running.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="12"/> <source>Paycoin version</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="14"/> <source>Send command to -server or paycoind</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="15"/> <source>List commands</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="16"/> <source>Get help for a command</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="17"/> <source>Options:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="18"/> <source>Specify configuration file (default: paycoin.conf)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="19"/> <source>Specify pid file (default: paycoind.pid)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="20"/> <source>Generate coins</source> <translation>Generiraj novcic (coins)</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="21"/> <source>Don&apos;t generate coins</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="22"/> <source>Start minimized</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="23"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="24"/> <source>Specify data directory</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="25"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="26"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="27"/> <source>Specify connection timeout (in milliseconds)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="28"/> <source>Connect through socks4 proxy</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="29"/> <source>Allow DNS lookups for addnode and connect</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="30"/> <source>Listen for connections on &lt;port&gt; (default: 9901 or testnet: 9903)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="31"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="32"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="33"/> <source>Connect only to the specified node</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="34"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="35"/> <source>Accept connections from outside (default: 1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="36"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="37"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="38"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="39"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="42"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="43"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="44"/> <source>Use Universal Plug and Play to map the listening port (default: 1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="45"/> <source>Use Universal Plug and Play to map the listening port (default: 0)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="46"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="47"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="48"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="49"/> <source>Use the test network</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="50"/> <source>Output extra debugging information</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="51"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="52"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="53"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="54"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="55"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="56"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9902)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="57"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="58"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="59"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="62"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="63"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="64"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="65"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="66"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="67"/> <source> SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="70"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="71"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="72"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="73"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="76"/> <source>This help message</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="77"/> <source>Usage</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="78"/> <source>Cannot obtain a lock on data directory %s. Paycoin is probably already running.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="81"/> <source>Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="88"/> <source>Error loading wallet.dat: Wallet requires newer version of Paycoin</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="89"/> <source>Wallet needed to be rewritten: restart Paycoin to complete</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="103"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=paycoinrpc rpcpassword=%s (you do not need to remember this password) If the file does not exist, create it with owner-readable-only file permissions. </source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="119"/> <source>Warning: Please check that your computer&apos;s date and time are correct. If your clock is wrong Paycoin will not work properly.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="82"/> <source>Loading addresses...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="83"/> <source>Error loading addr.dat</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="84"/> <source>Loading block index...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="85"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="86"/> <source>Loading wallet...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="87"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="90"/> <source>Error loading wallet.dat</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="91"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="92"/> <source>Cannot initialize keypool</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="93"/> <source>Cannot write default address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="94"/> <source>Rescanning...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="95"/> <source>Done loading</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="96"/> <source>Invalid -proxy address</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="97"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="98"/> <source>Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="101"/> <source>Error: CreateThread(StartNode) failed</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="102"/> <source>To use the %s option</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="112"/> <source>Error</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="113"/> <source>An error occurred while setting up the RPC port %i for listening: %s</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="114"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="122"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="123"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="126"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="127"/> <source>Sending...</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="128"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="132"/> <source>Invalid amount</source> <translation type="unfinished"></translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="133"/> <source>Insufficient funds</source> <translation type="unfinished"></translation> </message> </context> </TS>
{ "content_hash": "c67392d538be7364fdd84d81e13ca710", "timestamp": "", "source": "github", "line_count": 3037, "max_line_length": 432, "avg_line_length": 41.00526835693118, "alnum_prop": 0.6282752362827524, "repo_name": "coinkeeper/20150416_paycoin_fixes", "id": "e7d1d1e42ad3d76bb835934aaea1ca24ddf80290", "size": "124536", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "src/qt/locale/paycoin_hr-HR.ts", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "6238" }, { "name": "C++", "bytes": "1608333" }, { "name": "Groff", "bytes": "12841" }, { "name": "Makefile", "bytes": "7901" }, { "name": "NSIS", "bytes": "6330" }, { "name": "Objective-C", "bytes": "858" }, { "name": "Objective-C++", "bytes": "3537" }, { "name": "Python", "bytes": "50525" }, { "name": "QMake", "bytes": "11455" }, { "name": "Shell", "bytes": "1856" } ], "symlink_target": "" }
use pact_matching::models::*; use pact_matching::models::matchingrules::{MatchingRules, Category}; use std::collections::HashMap; use prelude::*; use util::GetDefaulting; /// Builder for `Response` objects. Normally created via `PactBuilder`. pub struct ResponseBuilder { response: Response, } impl ResponseBuilder { /// Set the status code for the response. Defaults to `200`. /// /// ``` /// use pact_consumer::builders::ResponseBuilder; /// use pact_consumer::prelude::*; /// /// let response = ResponseBuilder::default().status(404).build(); /// assert_eq!(response.status, 404); /// ``` pub fn status(&mut self, status: u16) -> &mut Self { self.response.status = status; self } // This is a partial list of popular HTTP status codes. If you use any // others regularly, feel free to add them. /// Set the status code to `200 OK`. (This is default.) pub fn ok(&mut self) -> &mut Self { self.status(200) } /// Set the status code to `201 Created`. pub fn created(&mut self) -> &mut Self { self.status(201) } /// Set the status code to `204 No Content`. pub fn no_content(&mut self) -> &mut Self { self.status(204) } /// Set the status code to `401 Unauthorized`. pub fn unauthorized(&mut self) -> &mut Self { self.status(401) } /// Set the status code to `403 Forbidden`. pub fn forbidden(&mut self) -> &mut Self { self.status(403) } /// Set the status code to `404 Not Found`. pub fn not_found(&mut self) -> &mut Self { self.status(404) } /// Build the specified `Response` object. pub fn build(&self) -> Response { let mut result = self.response.clone(); result } } impl Default for ResponseBuilder { fn default() -> Self { ResponseBuilder { response: Response::default_response() } } } impl HttpPartBuilder for ResponseBuilder { fn headers_and_matching_rules_mut(&mut self) -> (&mut HashMap<String, String>, &mut MatchingRules) { ( self.response.headers.get_defaulting(), &mut self.response.matching_rules, ) } fn body_and_matching_rules_mut(&mut self) -> (&mut OptionalBody, &mut MatchingRules) { ( &mut self.response.body, &mut self.response.matching_rules, ) } }
{ "content_hash": "7c7a3d826b9810250c73c10000973f41", "timestamp": "", "source": "github", "line_count": 89, "max_line_length": 104, "avg_line_length": 27.179775280898877, "alnum_prop": 0.5977676725919802, "repo_name": "AssafKatz3/pact-reference", "id": "c37c9249aa1c519e7ad65020f206ec54e3e98d6a", "size": "2419", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "rust/pact_consumer/src/builders/response_builder.rs", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "9457" }, { "name": "Groovy", "bytes": "25207" }, { "name": "JavaScript", "bytes": "6507" }, { "name": "M4", "bytes": "11483" }, { "name": "Makefile", "bytes": "90125" }, { "name": "Rust", "bytes": "995228" }, { "name": "Shell", "bytes": "91341" } ], "symlink_target": "" }
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Comp3427Component } from './comp-3427.component'; describe('Comp3427Component', () => { let component: Comp3427Component; let fixture: ComponentFixture<Comp3427Component>; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ Comp3427Component ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(Comp3427Component); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });
{ "content_hash": "213bd09cbc4be04d96edfc5b45501a7c", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 73, "avg_line_length": 23.88888888888889, "alnum_prop": 0.6744186046511628, "repo_name": "angular/angular-cli-stress-test", "id": "bde089737a4c9c2fa798f87ffa84947e414dbe27", "size": "847", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/app/components/comp-3427/comp-3427.component.spec.ts", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1040888" }, { "name": "HTML", "bytes": "300322" }, { "name": "JavaScript", "bytes": "2404" }, { "name": "TypeScript", "bytes": "8535506" } ], "symlink_target": "" }
// // Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.8-b130911.1802 // Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine. // Generato il: 2014.10.23 alle 11:27:04 AM CEST // package eu.slaatsoi.slamodel; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlList; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java per SimpleDomainExprType complex type. * * <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe. * * <pre> * &lt;complexType name="SimpleDomainExprType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="ComparisonOp" type="{http://www.slaatsoi.eu/slamodel}STNDType"/> * &lt;element name="Value" type="{http://www.slaatsoi.eu/slamodel}ValueExprType"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SimpleDomainExprType", propOrder = { "comparisonOp", "value" }) public class SimpleDomainExprType { @XmlList @XmlElement(name = "ComparisonOp", required = true) @XmlSchemaType(name = "anySimpleType") protected List<String> comparisonOp; @XmlElement(name = "Value", required = true) protected ValueExprType value; /** * Gets the value of the comparisonOp property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the comparisonOp property. * * <p> * For example, to add a new item, do as follows: * <pre> * getComparisonOp().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getComparisonOp() { if (comparisonOp == null) { comparisonOp = new ArrayList<String>(); } return this.comparisonOp; } /** * Recupera il valore della proprietà value. * * @return * possible object is * {@link ValueExprType } * */ public ValueExprType getValue() { return value; } /** * Imposta il valore della proprietà value. * * @param value * allowed object is * {@link ValueExprType } * */ public void setValue(ValueExprType value) { this.value = value; } }
{ "content_hash": "ade53f88aef8554b1f989ed564899970", "timestamp": "", "source": "github", "line_count": 108, "max_line_length": 126, "avg_line_length": 28.564814814814813, "alnum_prop": 0.6392220421393842, "repo_name": "fgaudenzi/testManager", "id": "c4a8633d591dff5ffedb99f67a15ec448233ab66", "size": "3089", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "testManager/XMLRepository/CertificationModel/eu/slaatsoi/slamodel/SimpleDomainExprType.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "3174" }, { "name": "Erlang", "bytes": "18260" }, { "name": "HTML", "bytes": "16486" }, { "name": "Java", "bytes": "1803076" }, { "name": "Python", "bytes": "3093" } ], "symlink_target": "" }
#ifndef WebIDBKey_h #define WebIDBKey_h #include "WebCommon.h" #include "WebData.h" #include "WebIDBTypes.h" #include "WebPrivatePtr.h" #include "WebString.h" #include "WebVector.h" namespace WebCore { class IDBKey; } namespace blink { class WebIDBKey { public: // Please use one of the factory methods. This is public only to allow WebVector. WebIDBKey() { } ~WebIDBKey() { reset(); } BLINK_EXPORT static WebIDBKey createArray(const WebVector<WebIDBKey>&); BLINK_EXPORT static WebIDBKey createBinary(const WebData&); BLINK_EXPORT static WebIDBKey createString(const WebString&); BLINK_EXPORT static WebIDBKey createDate(double); BLINK_EXPORT static WebIDBKey createNumber(double); BLINK_EXPORT static WebIDBKey createInvalid(); BLINK_EXPORT static WebIDBKey createNull(); WebIDBKey(const WebIDBKey& e) { assign(e); } WebIDBKey& operator=(const WebIDBKey& e) { assign(e); return *this; } BLINK_EXPORT void assign(const WebIDBKey&); BLINK_EXPORT void assignArray(const WebVector<WebIDBKey>&); BLINK_EXPORT void assignBinary(const WebData&); BLINK_EXPORT void assignString(const WebString&); BLINK_EXPORT void assignDate(double); BLINK_EXPORT void assignNumber(double); BLINK_EXPORT void assignInvalid(); BLINK_EXPORT void assignNull(); BLINK_EXPORT void reset(); BLINK_EXPORT WebIDBKeyType keyType() const; BLINK_EXPORT bool isValid() const; BLINK_EXPORT WebVector<WebIDBKey> array() const; // Only valid for ArrayType. BLINK_EXPORT WebData binary() const; // Only valid for BinaryType. BLINK_EXPORT WebString string() const; // Only valid for StringType. BLINK_EXPORT double date() const; // Only valid for DateType. BLINK_EXPORT double number() const; // Only valid for NumberType. #if BLINK_IMPLEMENTATION WebIDBKey(const WTF::PassRefPtr<WebCore::IDBKey>&); WebIDBKey& operator=(const WTF::PassRefPtr<WebCore::IDBKey>&); operator WTF::PassRefPtr<WebCore::IDBKey>() const; #endif private: WebPrivatePtr<WebCore::IDBKey> m_private; }; } // namespace blink #endif // WebIDBKey_h
{ "content_hash": "605ab1b587aa60f8208fd4280d686788", "timestamp": "", "source": "github", "line_count": 68, "max_line_length": 85, "avg_line_length": 31.529411764705884, "alnum_prop": 0.7159514925373134, "repo_name": "lordmos/blink", "id": "b76d49087a0729fb17a1c97467f55bbb2cbc0cd8", "size": "3492", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "public/platform/WebIDBKey.h", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "6433" }, { "name": "C", "bytes": "753714" }, { "name": "C++", "bytes": "40028043" }, { "name": "CSS", "bytes": "539440" }, { "name": "F#", "bytes": "8755" }, { "name": "Java", "bytes": "18650" }, { "name": "JavaScript", "bytes": "25700387" }, { "name": "Objective-C", "bytes": "426711" }, { "name": "PHP", "bytes": "141755" }, { "name": "Perl", "bytes": "901523" }, { "name": "Python", "bytes": "3748305" }, { "name": "Ruby", "bytes": "141818" }, { "name": "Shell", "bytes": "9635" }, { "name": "XSLT", "bytes": "49328" } ], "symlink_target": "" }
<?php namespace Drupal\Core\Menu; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Cache\CacheCollector; use Drupal\Core\Lock\LockBackendInterface; use Drupal\Core\Routing\RouteMatchInterface; /** * Provides the default implementation of the active menu trail service. * * It uses the current route name and route parameters to compare with the ones * of the menu links. */ class MenuActiveTrail extends CacheCollector implements MenuActiveTrailInterface { /** * The menu link plugin manager. * * @var \Drupal\Core\Menu\MenuLinkManagerInterface */ protected $menuLinkManager; /** * The route match object for the current page. * * @var \Drupal\Core\Routing\RouteMatchInterface */ protected $routeMatch; /** * Constructs a \Drupal\Core\Menu\MenuActiveTrail object. * * @param \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager * The menu link plugin manager. * @param \Drupal\Core\Routing\RouteMatchInterface $route_match * A route match object for finding the active link. * @param \Drupal\Core\Cache\CacheBackendInterface $cache * The cache backend. * @param \Drupal\Core\Lock\LockBackendInterface $lock * The lock backend. */ public function __construct(MenuLinkManagerInterface $menu_link_manager, RouteMatchInterface $route_match, CacheBackendInterface $cache, LockBackendInterface $lock) { parent::__construct(NULL, $cache, $lock); $this->menuLinkManager = $menu_link_manager; $this->routeMatch = $route_match; } /** * {@inheritdoc} * * @see ::getActiveTrailIds() */ protected function getCid() { if (!isset($this->cid)) { $route_parameters = $this->routeMatch->getRawParameters()->all(); ksort($route_parameters); return 'active-trail:route:' . $this->routeMatch->getRouteName() . ':route_parameters:' . serialize($route_parameters); } return $this->cid; } /** * {@inheritdoc} * * @see ::getActiveTrailIds() */ protected function resolveCacheMiss($menu_name) { $this->storage[$menu_name] = $this->doGetActiveTrailIds($menu_name); $this->tags[] = 'config:system.menu.' . $menu_name; $this->persist($menu_name); return $this->storage[$menu_name]; } /** * {@inheritdoc} * * This implementation caches all active trail IDs per route match for *all* * menus whose active trails are calculated on that page. This ensures 1 cache * get for all active trails per page load, rather than N. * * It uses the cache collector pattern to do this. * * @see ::get() * @see \Drupal\Core\Cache\CacheCollectorInterface * @see \Drupal\Core\Cache\CacheCollector */ public function getActiveTrailIds($menu_name) { return $this->get($menu_name); } /** * Helper method for ::getActiveTrailIds(). */ protected function doGetActiveTrailIds($menu_name) { // Parent ids; used both as key and value to ensure uniqueness. // We always want all the top-level links with parent == ''. $active_trail = array('' => ''); // If a link in the given menu indeed matches the route, then use it to // complete the active trail. if ($active_link = $this->getActiveLink($menu_name)) { if ($parents = $this->menuLinkManager->getParentIds($active_link->getPluginId())) { $active_trail = $parents + $active_trail; } } return $active_trail; } /** * {@inheritdoc} */ public function getActiveLink($menu_name = NULL) { // Note: this is a very simple implementation. If you need more control // over the return value, such as matching a prioritized list of menu names, // you should substitute your own implementation for the 'menu.active_trail' // service in the container. // The menu links coming from the storage are already sorted by depth, // weight and ID. $found = NULL; $route_name = $this->routeMatch->getRouteName(); // On a default (not custom) 403 page the route name is NULL. On a custom // 403 page we will get the route name for that page, so we can consider // it a feature that a relevant menu tree may be displayed. if ($route_name) { $route_parameters = $this->routeMatch->getRawParameters()->all(); // Load links matching this route. $links = $this->menuLinkManager->loadLinksByRoute($route_name, $route_parameters, $menu_name); // Select the first matching link. if ($links) { $found = reset($links); } } return $found; } }
{ "content_hash": "413fd30219d46dbf3e4b2709d86dc35a", "timestamp": "", "source": "github", "line_count": 143, "max_line_length": 168, "avg_line_length": 31.776223776223777, "alnum_prop": 0.6685739436619719, "repo_name": "MGApcDev/MGApcDevCom", "id": "b99a0e48c316dc114eefdb6eed513441159f441f", "size": "4544", "binary": false, "copies": "282", "ref": "refs/heads/master", "path": "core/lib/Drupal/Core/Menu/MenuActiveTrail.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "7927" }, { "name": "CSS", "bytes": "513186" }, { "name": "HTML", "bytes": "599529" }, { "name": "JavaScript", "bytes": "938091" }, { "name": "PHP", "bytes": "31007665" }, { "name": "Shell", "bytes": "49920" }, { "name": "Visual Basic", "bytes": "2202" } ], "symlink_target": "" }
FROM node:6 ENV INSTALL_TARGET=cloud # Copy everything (excluding what's in .dockerignore) into an empty dir COPY . /home WORKDIR /home # This installs global dependencies, then in the postinstall script, runs lerna # bootstrap to install and link cloud-api, cloud-core, and cloud-workers. # We need the --unsafe-perm param to run the postinstall script since Docker # will run everything as sudo RUN npm install --unsafe-perm # This uses babel to compile any es6 to stock js for plain node RUN node packages/cloud-core/build/build-n1-cloud # External services run on port 80. Expose it. EXPOSE 5100 # We use a start-aws command that automatically spawns the correct process # based on environmpackages/cloud-coreent variables (which changes instance to instance) CMD packages/cloud-core/_n1cloud_docker_launcher.sh ${AWS_SERVICE_NAME}
{ "content_hash": "eaad62e91846f2f3d4fe289689666bd1", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 88, "avg_line_length": 38.22727272727273, "alnum_prop": 0.7847800237812128, "repo_name": "nylas/nylas-mail", "id": "e1ae9ecdf31a06ccb880cd83b03ba857bc56b5c7", "size": "1105", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "Dockerfile", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "182" }, { "name": "CSS", "bytes": "358951" }, { "name": "CoffeeScript", "bytes": "1327058" }, { "name": "HTML", "bytes": "1257645" }, { "name": "JavaScript", "bytes": "3304557" }, { "name": "PHP", "bytes": "328" }, { "name": "Python", "bytes": "2360" }, { "name": "Shell", "bytes": "16516" }, { "name": "Visual Basic", "bytes": "334" } ], "symlink_target": "" }
package com.bricechou.weiboclient.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.bricechou.weiboclient.R; import com.bricechou.weiboclient.api.LoginAuthListener; import com.bricechou.weiboclient.config.Constants; import com.sina.weibo.sdk.auth.AuthInfo; import com.sina.weibo.sdk.auth.sso.SsoHandler; public class LoginActivity extends Activity implements View.OnClickListener { private static final String TAG = "weiboclient.activity.LoginActivity"; private AuthInfo mAuthInfo; // A Weibo instance private SsoHandler mSsoHandler; // deal with the user login class private Button mButtonSubmit; private void initView() { mButtonSubmit = (Button) findViewById(R.id.login_submit); mButtonSubmit.setOnClickListener(this); } private void initWeibo() { mAuthInfo = new AuthInfo(this, Constants.APP_KEY, Constants.REDIRECT_URL, Constants.SCOPE); // Bind the weibo instance together with SSO auth method mSsoHandler = new SsoHandler(LoginActivity.this, mAuthInfo); // To call the web login page which provide with Weibo itself. // @TODO To recognise the current phone status and use different way to login. mSsoHandler.authorizeWeb(new LoginAuthListener(this) { @Override public void onComplete(Bundle values) { super.onComplete(values); startActivity(new Intent(LoginActivity.this, MainActivity.class)); } }); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); initView(); } @Override public void onClick(View view) { switch (view.getId()) { case R.id.login_submit: initWeibo(); // @HACK it's use to test some activity. // If you want to fix and use your own , // you should change the showAccessToken() to getAccessToken() // Below this JAVA files : // PostWeiboActivity / HomeFragment / UserFragment // startActivity(new Intent(LoginActivity.this, MainActivity.class)); break; default: } } /** * When SSO handler exit,this function will be called. * * @author BriceChou */ @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); // Without this callback function,we can't use the SSO handler. if (mSsoHandler != null) { mSsoHandler.authorizeCallBack(requestCode, resultCode, data); } } }
{ "content_hash": "6632ce7fed50cd680cae17af91458b5b", "timestamp": "", "source": "github", "line_count": 77, "max_line_length": 99, "avg_line_length": 37.09090909090909, "alnum_prop": 0.6586134453781513, "repo_name": "BriceChou/WeiboClient", "id": "ad46f58e4e72ddde5272b9b982cc82db09e1221d", "size": "2856", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/bricechou/weiboclient/activity/LoginActivity.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "647816" } ], "symlink_target": "" }
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" content="Copy to clipboard"> <meta name="lang:clipboard.copied" content="Copied to clipboard"> <meta name="lang:search.language" content="en"> <meta name="lang:search.pipeline.stopwords" content="True"> <meta name="lang:search.pipeline.trimmer" content="True"> <meta name="lang:search.result.none" content="No matching documents"> <meta name="lang:search.result.one" content="1 matching document"> <meta name="lang:search.result.other" content="# matching documents"> <meta name="lang:search.tokenizer" content="[\s\-]+"> <link href="https://fonts.gstatic.com/" rel="preconnect" crossorigin> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700|Roboto:300,400,400i,700&display=fallback" rel="stylesheet"> <style> body, input { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif } code, kbd, pre { font-family: "Roboto Mono", "Courier New", Courier, monospace } </style> <link rel="stylesheet" href="../_static/stylesheets/application.css"/> <link rel="stylesheet" href="../_static/stylesheets/application-palette.css"/> <link rel="stylesheet" href="../_static/stylesheets/application-fixes.css"/> <link rel="stylesheet" href="../_static/fonts/material-icons.css"/> <meta name="theme-color" content="#3f51b5"> <script src="../_static/javascripts/modernizr.js"></script> <title>statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs &#8212; statsmodels</title> <link rel="icon" type="image/png" sizes="32x32" href="../_static/icons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="../_static/icons/favicon-16x16.png"> <link rel="manifest" href="../_static/icons/site.webmanifest"> <link rel="mask-icon" href="../_static/icons/safari-pinned-tab.svg" color="#919191"> <meta name="msapplication-TileColor" content="#2b5797"> <meta name="msapplication-config" content="../_static/icons/browserconfig.xml"> <link rel="stylesheet" href="../_static/stylesheets/examples.css"> <link rel="stylesheet" href="../_static/material.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" type="text/css" href="../_static/graphviz.css" /> <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/language_data.js"></script> <script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/x-mathjax-config">MathJax.Hub.Config({"tex2jax": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true, "ignoreClass": "document", "processClass": "math|output_area"}})</script> <link rel="shortcut icon" href="../_static/favicon.ico"/> <link rel="author" title="About these documents" href="../about.html" /> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="statsmodels.tsa.statespace.mlemodel.MLEResults.loglikelihood_burn" href="statsmodels.tsa.statespace.mlemodel.MLEResults.loglikelihood_burn.html" /> <link rel="prev" title="statsmodels.tsa.statespace.mlemodel.MLEResults.llf" href="statsmodels.tsa.statespace.mlemodel.MLEResults.llf.html" /> <script src="../_static/javascripts/version_dropdown.js"></script> <script> var json_loc = "../_static/versions.json", target_loc = "../../", text = "Versions"; $( document ).ready( add_version_dropdown(json_loc, target_loc, text)); </script> </head> <body dir=ltr data-md-color-primary=indigo data-md-color-accent=blue> <svg class="md-svg"> <defs data-children-count="0"> <svg xmlns="http://www.w3.org/2000/svg" width="416" height="448" viewBox="0 0 416 448" id="__github"><path fill="currentColor" d="M160 304q0 10-3.125 20.5t-10.75 19T128 352t-18.125-8.5-10.75-19T96 304t3.125-20.5 10.75-19T128 256t18.125 8.5 10.75 19T160 304zm160 0q0 10-3.125 20.5t-10.75 19T288 352t-18.125-8.5-10.75-19T256 304t3.125-20.5 10.75-19T288 256t18.125 8.5 10.75 19T320 304zm40 0q0-30-17.25-51T296 232q-10.25 0-48.75 5.25Q229.5 240 208 240t-39.25-2.75Q130.75 232 120 232q-29.5 0-46.75 21T56 304q0 22 8 38.375t20.25 25.75 30.5 15 35 7.375 37.25 1.75h42q20.5 0 37.25-1.75t35-7.375 30.5-15 20.25-25.75T360 304zm56-44q0 51.75-15.25 82.75-9.5 19.25-26.375 33.25t-35.25 21.5-42.5 11.875-42.875 5.5T212 416q-19.5 0-35.5-.75t-36.875-3.125-38.125-7.5-34.25-12.875T37 371.5t-21.5-28.75Q0 312 0 260q0-59.25 34-99-6.75-20.5-6.75-42.5 0-29 12.75-54.5 27 0 47.5 9.875t47.25 30.875Q171.5 96 212 96q37 0 70 8 26.25-20.5 46.75-30.25T376 64q12.75 25.5 12.75 54.5 0 21.75-6.75 42 34 40 34 99.5z"/></svg> </defs> </svg> <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer"> <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search"> <label class="md-overlay" data-md-component="overlay" for="__drawer"></label> <a href="#generated/statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs" tabindex="1" class="md-skip"> Skip to content </a> <header class="md-header" data-md-component="header"> <nav class="md-header-nav md-grid"> <div class="md-flex navheader"> <div class="md-flex__cell md-flex__cell--shrink"> <a href="../index.html" title="statsmodels" class="md-header-nav__button md-logo"> <img src="../_static/statsmodels-logo-v2-bw.svg" height="26" alt="statsmodels logo"> </a> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label> </div> <div class="md-flex__cell md-flex__cell--stretch"> <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title"> <span class="md-header-nav__topic">statsmodels v0.11.1</span> <span class="md-header-nav__topic"> statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs </span> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label> <div class="md-search" data-md-component="search" role="dialog"> <label class="md-search__overlay" for="__search"></label> <div class="md-search__inner" role="search"> <form class="md-search__form" action="../search.html" method="GET" name="search"> <input type="text" class="md-search__input" name="q" placeholder="Search" autocapitalize="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active"> <label class="md-icon md-search__icon" for="__search"></label> <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1"> &#xE5CD; </button> </form> <div class="md-search__output"> <div class="md-search__scrollwrap" data-md-scrollfix> <div class="md-search-result" data-md-component="result"> <div class="md-search-result__meta"> Type to start searching </div> <ol class="md-search-result__list"></ol> </div> </div> </div> </div> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <div class="md-header-nav__source"> <a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github"> <div class="md-source__icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28"> <use xlink:href="#__github" width="24" height="24"></use> </svg> </div> <div class="md-source__repository"> statsmodels </div> </a> </div> </div> </div> </nav> </header> <div class="md-container"> <nav class="md-tabs" data-md-component="tabs"> <div class="md-tabs__inner md-grid"> <ul class="md-tabs__list"> <li class="md-tabs__item"><a href="../user-guide.html" class="md-tabs__link">User Guide</a></li> <li class="md-tabs__item"><a href="../statespace.html" class="md-tabs__link">Time Series Analysis by State Space Methods <code class="xref py py-mod docutils literal notranslate"><span class="pre">statespace</span></code></a></li> <li class="md-tabs__item"><a href="statsmodels.tsa.statespace.mlemodel.MLEResults.html" class="md-tabs__link">statsmodels.tsa.statespace.mlemodel.MLEResults</a></li> </ul> </div> </nav> <main class="md-main"> <div class="md-main__inner md-grid" data-md-component="container"> <div class="md-sidebar md-sidebar--primary" data-md-component="navigation"> <div class="md-sidebar__scrollwrap"> <div class="md-sidebar__inner"> <nav class="md-nav md-nav--primary" data-md-level="0"> <label class="md-nav__title md-nav__title--site" for="__drawer"> <a href="../index.html" title="statsmodels" class="md-nav__button md-logo"> <img src="../_static/statsmodels-logo-v2-bw.svg" alt=" logo" width="48" height="48"> </a> <a href="../index.html" title="statsmodels">statsmodels v0.11.1</a> </label> <div class="md-nav__source"> <a href="https://github.com/statsmodels/statsmodels" title="Go to repository" class="md-source" data-md-source="github"> <div class="md-source__icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="28" height="28"> <use xlink:href="#__github" width="24" height="24"></use> </svg> </div> <div class="md-source__repository"> statsmodels </div> </a> </div> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../install.html" class="md-nav__link">Installing statsmodels</a> </li> <li class="md-nav__item"> <a href="../gettingstarted.html" class="md-nav__link">Getting started</a> </li> <li class="md-nav__item"> <a href="../user-guide.html" class="md-nav__link">User Guide</a> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../user-guide.html#background" class="md-nav__link">Background</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#regression-and-linear-models" class="md-nav__link">Regression and Linear Models</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#time-series-analysis" class="md-nav__link">Time Series Analysis</a> <ul class="md-nav__list"> <li class="md-nav__item"> <a href="../tsa.html" class="md-nav__link">Time Series analysis <code class="xref py py-mod docutils literal notranslate"><span class="pre">tsa</span></code></a> </li> <li class="md-nav__item"> <a href="../statespace.html" class="md-nav__link">Time Series Analysis by State Space Methods <code class="xref py py-mod docutils literal notranslate"><span class="pre">statespace</span></code></a> </li> <li class="md-nav__item"> <a href="../vector_ar.html" class="md-nav__link">Vector Autoregressions <code class="xref py py-mod docutils literal notranslate"><span class="pre">tsa.vector_ar</span></code></a> </li></ul> </li> <li class="md-nav__item"> <a href="../user-guide.html#other-models" class="md-nav__link">Other Models</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#statistics-and-tools" class="md-nav__link">Statistics and Tools</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#data-sets" class="md-nav__link">Data Sets</a> </li> <li class="md-nav__item"> <a href="../user-guide.html#sandbox" class="md-nav__link">Sandbox</a> </li></ul> </li> <li class="md-nav__item"> <a href="../examples/index.html" class="md-nav__link">Examples</a> </li> <li class="md-nav__item"> <a href="../api.html" class="md-nav__link">API Reference</a> </li> <li class="md-nav__item"> <a href="../about.html" class="md-nav__link">About statsmodels</a> </li> <li class="md-nav__item"> <a href="../dev/index.html" class="md-nav__link">Developer Page</a> </li> <li class="md-nav__item"> <a href="../release/index.html" class="md-nav__link">Release Notes</a> </li> </ul> </nav> </div> </div> </div> <div class="md-sidebar md-sidebar--secondary" data-md-component="toc"> <div class="md-sidebar__scrollwrap"> <div class="md-sidebar__inner"> <nav class="md-nav md-nav--secondary"> <ul class="md-nav__list" data-md-scrollfix=""> <li class="md-nav__item"><a class="md-nav__extra_link" href="../_sources/generated/statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs.rst.txt">Show Source</a> </li> <li id="searchbox" class="md-nav__item"></li> </ul> </nav> </div> </div> </div> <div class="md-content"> <article class="md-content__inner md-typeset" role="main"> <h1 id="generated-statsmodels-tsa-statespace-mlemodel-mleresults-llf-obs--page-root">statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs<a class="headerlink" href="#generated-statsmodels-tsa-statespace-mlemodel-mleresults-llf-obs--page-root" title="Permalink to this headline">¶</a></h1> <dl class="attribute"> <dt id="statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs"> <code class="sig-prename descclassname">MLEResults.</code><code class="sig-name descname">llf_obs</code><a class="headerlink" href="#statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs" title="Permalink to this definition">¶</a></dt> <dd><p>(float) The value of the log-likelihood function evaluated at <cite>params</cite>.</p> </dd></dl> </article> </div> </div> </main> </div> <footer class="md-footer"> <div class="md-footer-nav"> <nav class="md-footer-nav__inner md-grid"> <a href="statsmodels.tsa.statespace.mlemodel.MLEResults.llf.html" title="Material" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev"> <div class="md-flex__cell md-flex__cell--shrink"> <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i> </div> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"> <span class="md-flex__ellipsis"> <span class="md-footer-nav__direction"> Previous </span> statsmodels.tsa.statespace.mlemodel.MLEResults.llf </span> </div> </a> <a href="statsmodels.tsa.statespace.mlemodel.MLEResults.loglikelihood_burn.html" title="Admonition" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next"> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"><span class="md-flex__ellipsis"> <span class="md-footer-nav__direction"> Next </span> statsmodels.tsa.statespace.mlemodel.MLEResults.loglikelihood_burn </span> </div> <div class="md-flex__cell md-flex__cell--shrink"><i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i> </div> </a> </nav> </div> <div class="md-footer-meta md-typeset"> <div class="md-footer-meta__inner md-grid"> <div class="md-footer-copyright"> <div class="md-footer-copyright__highlight"> &#169; Copyright 2009-2019, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers. </div> Last updated on Feb 21, 2020. <br/> Created using <a href="http://www.sphinx-doc.org/">Sphinx</a> 2.4.2. and <a href="https://github.com/bashtage/sphinx-material/">Material for Sphinx</a> </div> </div> </div> </footer> <script src="../_static/javascripts/application.js"></script> <script>app.initialize({version: "1.0.4", url: {base: ".."}})</script> </body> </html>
{ "content_hash": "d60837890dfc206bcbe8411b87cb332d", "timestamp": "", "source": "github", "line_count": 410, "max_line_length": 999, "avg_line_length": 42.59512195121951, "alnum_prop": 0.6075355016032982, "repo_name": "statsmodels/statsmodels.github.io", "id": "65984b80368eaeeedd8a9a4a360616d4de9040d2", "size": "17468", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "v0.11.1/generated/statsmodels.tsa.statespace.mlemodel.MLEResults.llf_obs.html", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
package com.fullcontact.sstable.index; import org.apache.hadoop.io.Writable; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; public class LongWritablePair implements Writable { private long l1; private long l2; public LongWritablePair() { } public LongWritablePair(long l1, long l2) { this.l1 = l1; this.l2 = l2; } public void set_1(long l1) { this.l1 = l1; } public void set_2(long l2) { this.l2 = l2; } @Override public void write(DataOutput dataOutput) throws IOException { dataOutput.writeLong(l1); dataOutput.writeLong(l2); } @Override public void readFields(DataInput dataInput) throws IOException { l1 = dataInput.readLong(); l2 = dataInput.readLong(); } @Override public String toString() { return "LongWritablePair{" + "l1=" + l1 + ", l2=" + l2 + '}'; } }
{ "content_hash": "624e428d585127b0bf7fe5f10242b51c", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 68, "avg_line_length": 20.510204081632654, "alnum_prop": 0.5870646766169154, "repo_name": "fullcontact/hadoop-sstable", "id": "db6335e7e84d07f5b2b71d59f84a2adaa1f66dd8", "size": "1005", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sstable-core/src/main/java/com/fullcontact/sstable/index/LongWritablePair.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "2171" }, { "name": "Java", "bytes": "194131" } ], "symlink_target": "" }
package gov.nasa.arc.spife.ui; import org.eclipse.core.runtime.Plugin; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; public class Activator extends AbstractUIPlugin { public static final String PLUGIN_ID = "gov.nasa.arc.spife.ui"; private static Activator plugin; public Activator() { plugin = this; } @Override public void start(BundleContext context) throws Exception { super.start(context); } @Override public void stop(BundleContext context) throws Exception { super.stop(context); plugin = null; } public static Plugin getDefault() { return plugin; } }
{ "content_hash": "464e12bb9e1418a1f40ac1bdd9c8026d", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 64, "avg_line_length": 19.84375, "alnum_prop": 0.7464566929133858, "repo_name": "nasa/OpenSPIFe", "id": "131db1d2af4bdbe8397e95e243a8dba67f50ff00", "size": "1515", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "gov.nasa.arc.spife.ui/src/gov/nasa/arc/spife/ui/Activator.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "4538" }, { "name": "HTML", "bytes": "705398" }, { "name": "Java", "bytes": "15764637" }, { "name": "JavaScript", "bytes": "2244" }, { "name": "Shell", "bytes": "60188" } ], "symlink_target": "" }
@class NSString, UISearchBar, UISearchDisplayController; @interface MMSearchBarDisplayController : MMUIViewController <UISearchDisplayDelegate, UISearchBarDelegate> { long long m_statusBarStyle; UISearchBar *m_searchBar; UISearchDisplayController *m_searchDisplayController; } @property(retain, nonatomic) UISearchDisplayController *searchDisplayController; // @synthesize searchDisplayController=m_searchDisplayController; @property(retain, nonatomic) UISearchBar *searchBar; // @synthesize searchBar=m_searchBar; - (void).cxx_destruct; - (_Bool)isSeachActive; - (void)dealloc; - (void)didAppear; - (void)viewDidBePoped:(_Bool)arg1; - (void)viewDidBeDismissed:(_Bool)arg1; - (void)viewWillDisappear:(_Bool)arg1; - (void)viewWillAppear:(_Bool)arg1; - (_Bool)searchDisplayController:(id)arg1 shouldReloadTableForSearchScope:(long long)arg2; - (_Bool)searchDisplayController:(id)arg1 shouldReloadTableForSearchString:(id)arg2; - (void)searchDisplayController:(id)arg1 didHideSearchResultsTableView:(id)arg2; - (void)searchDisplayController:(id)arg1 willHideSearchResultsTableView:(id)arg2; - (void)searchDisplayController:(id)arg1 didShowSearchResultsTableView:(id)arg2; - (void)searchDisplayController:(id)arg1 willShowSearchResultsTableView:(id)arg2; - (void)searchDisplayController:(id)arg1 willUnloadSearchResultsTableView:(id)arg2; - (void)searchDisplayController:(id)arg1 didLoadSearchResultsTableView:(id)arg2; - (void)searchDisplayControllerDidEndSearch:(id)arg1; - (void)searchDisplayControllerWillEndSearch:(id)arg1; - (void)searchDisplayControllerDidBeginSearch:(id)arg1; - (void)searchDisplayControllerWillBeginSearch:(id)arg1; - (void)SearchBarBecomeUnActive; - (id)init; - (void)searchBarCancelButtonClicked:(id)arg1; - (void)searchBarBookmarkButtonClicked:(id)arg1; - (void)searchBarSearchButtonClicked:(id)arg1; - (_Bool)searchBar:(id)arg1 shouldChangeTextInRange:(struct _NSRange)arg2 replacementText:(id)arg3; - (void)searchBar:(id)arg1 textDidChange:(id)arg2; - (void)searchBarTextDidEndEditing:(id)arg1; - (_Bool)searchBarShouldEndEditing:(id)arg1; - (void)searchBarTextDidBeginEditing:(id)arg1; - (_Bool)searchBarShouldBeginEditing:(id)arg1; // Remaining properties @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(readonly) Class superclass; @end
{ "content_hash": "87787c2e3805614ccd6a1a4a6dbcf217", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 146, "avg_line_length": 46.92156862745098, "alnum_prop": 0.8094442122858336, "repo_name": "walkdianzi/DashengHook", "id": "71641eae1ed0d7d728668ec26ee2ed24dd4868b9", "size": "2633", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "WeChat-Headers/MMSearchBarDisplayController.h", "mode": "33261", "license": "mit", "language": [ { "name": "C", "bytes": "986" }, { "name": "Objective-C", "bytes": "10153542" }, { "name": "Objective-C++", "bytes": "18332" }, { "name": "Shell", "bytes": "1459" } ], "symlink_target": "" }
package dockertools import ( "fmt" "math/rand" "net/http" "path" "strconv" "strings" "github.com/docker/docker/pkg/jsonmessage" "github.com/docker/docker/pkg/parsers" docker "github.com/fsouza/go-dockerclient" "github.com/golang/glog" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/credentialprovider" kubecontainer "k8s.io/kubernetes/pkg/kubelet/container" "k8s.io/kubernetes/pkg/kubelet/leaky" kubetypes "k8s.io/kubernetes/pkg/kubelet/types" "k8s.io/kubernetes/pkg/types" "k8s.io/kubernetes/pkg/util" utilerrors "k8s.io/kubernetes/pkg/util/errors" ) const ( PodInfraContainerName = leaky.PodInfraContainerName DockerPrefix = "docker://" PodInfraContainerImage = "beta.gcr.io/google_containers/pause:2.0" LogSuffix = "log" ) const ( // Taken from lmctfy https://github.com/google/lmctfy/blob/master/lmctfy/controllers/cpu_controller.cc minShares = 2 sharesPerCPU = 1024 milliCPUToCPU = 1000 // 100000 is equivalent to 100ms quotaPeriod = 100000 ) // DockerInterface is an abstract interface for testability. It abstracts the interface of docker.Client. type DockerInterface interface { ListContainers(options docker.ListContainersOptions) ([]docker.APIContainers, error) InspectContainer(id string) (*docker.Container, error) CreateContainer(docker.CreateContainerOptions) (*docker.Container, error) StartContainer(id string, hostConfig *docker.HostConfig) error StopContainer(id string, timeout uint) error RemoveContainer(opts docker.RemoveContainerOptions) error InspectImage(image string) (*docker.Image, error) ListImages(opts docker.ListImagesOptions) ([]docker.APIImages, error) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error RemoveImage(image string) error Logs(opts docker.LogsOptions) error Version() (*docker.Env, error) Info() (*docker.Env, error) CreateExec(docker.CreateExecOptions) (*docker.Exec, error) StartExec(string, docker.StartExecOptions) error InspectExec(id string) (*docker.ExecInspect, error) AttachToContainer(opts docker.AttachToContainerOptions) error } // KubeletContainerName encapsulates a pod name and a Kubernetes container name. type KubeletContainerName struct { PodFullName string PodUID types.UID ContainerName string } // DockerPuller is an abstract interface for testability. It abstracts image pull operations. type DockerPuller interface { Pull(image string, secrets []api.Secret) error IsImagePresent(image string) (bool, error) } // dockerPuller is the default implementation of DockerPuller. type dockerPuller struct { client DockerInterface keyring credentialprovider.DockerKeyring } type throttledDockerPuller struct { puller dockerPuller limiter util.RateLimiter } // newDockerPuller creates a new instance of the default implementation of DockerPuller. func newDockerPuller(client DockerInterface, qps float32, burst int) DockerPuller { dp := dockerPuller{ client: client, keyring: credentialprovider.NewDockerKeyring(), } if qps == 0.0 { return dp } return &throttledDockerPuller{ puller: dp, limiter: util.NewTokenBucketRateLimiter(qps, burst), } } func parseImageName(image string) (string, string) { return parsers.ParseRepositoryTag(image) } func filterHTTPError(err error, image string) error { // docker/docker/pull/11314 prints detailed error info for docker pull. // When it hits 502, it returns a verbose html output including an inline svg, // which makes the output of kubectl get pods much harder to parse. // Here converts such verbose output to a concise one. jerr, ok := err.(*jsonmessage.JSONError) if ok && (jerr.Code == http.StatusBadGateway || jerr.Code == http.StatusServiceUnavailable || jerr.Code == http.StatusGatewayTimeout) { glog.V(2).Infof("Pulling image %q failed: %v", image, err) return kubecontainer.RegistryUnavailable } else { return err } } func (p dockerPuller) Pull(image string, secrets []api.Secret) error { repoToPull, tag := parseImageName(image) // If no tag was specified, use the default "latest". if len(tag) == 0 { tag = "latest" } opts := docker.PullImageOptions{ Repository: repoToPull, Tag: tag, } keyring, err := credentialprovider.MakeDockerKeyring(secrets, p.keyring) if err != nil { return err } creds, haveCredentials := keyring.Lookup(repoToPull) if !haveCredentials { glog.V(1).Infof("Pulling image %s without credentials", image) err := p.client.PullImage(opts, docker.AuthConfiguration{}) if err == nil { return nil } // Image spec: [<registry>/]<repository>/<image>[:<version] so we count '/' explicitRegistry := (strings.Count(image, "/") == 2) // Hack, look for a private registry, and decorate the error with the lack of // credentials. This is heuristic, and really probably could be done better // by talking to the registry API directly from the kubelet here. if explicitRegistry { return fmt.Errorf("image pull failed for %s, this may be because there are no credentials on this request. details: (%v)", image, err) } return filterHTTPError(err, image) } var pullErrs []error for _, currentCreds := range creds { err := p.client.PullImage(opts, currentCreds) // If there was no error, return success if err == nil { return nil } pullErrs = append(pullErrs, filterHTTPError(err, image)) } return utilerrors.NewAggregate(pullErrs) } func (p throttledDockerPuller) Pull(image string, secrets []api.Secret) error { if p.limiter.CanAccept() { return p.puller.Pull(image, secrets) } return fmt.Errorf("pull QPS exceeded.") } func (p dockerPuller) IsImagePresent(image string) (bool, error) { _, err := p.client.InspectImage(image) if err == nil { return true, nil } if err == docker.ErrNoSuchImage { return false, nil } return false, err } func (p throttledDockerPuller) IsImagePresent(name string) (bool, error) { return p.puller.IsImagePresent(name) } // TODO (random-liu) Almost never used, should we remove this? // DockerContainers is a map of containers type DockerContainers map[kubetypes.DockerID]*docker.APIContainers func (c DockerContainers) FindPodContainer(podFullName string, uid types.UID, containerName string) (*docker.APIContainers, bool, uint64) { for _, dockerContainer := range c { if len(dockerContainer.Names) == 0 { continue } // TODO(proppy): build the docker container name and do a map lookup instead? dockerName, hash, err := ParseDockerName(dockerContainer.Names[0]) if err != nil { continue } if dockerName.PodFullName == podFullName && (uid == "" || dockerName.PodUID == uid) && dockerName.ContainerName == containerName { return dockerContainer, true, hash } } return nil, false, 0 } const containerNamePrefix = "k8s" // Creates a name which can be reversed to identify both full pod name and container name. func BuildDockerName(dockerName KubeletContainerName, container *api.Container) (string, string) { containerName := dockerName.ContainerName + "." + strconv.FormatUint(kubecontainer.HashContainer(container), 16) stableName := fmt.Sprintf("%s_%s_%s_%s", containerNamePrefix, containerName, dockerName.PodFullName, dockerName.PodUID) return stableName, fmt.Sprintf("%s_%08x", stableName, rand.Uint32()) } // Unpacks a container name, returning the pod full name and container name we would have used to // construct the docker name. If we are unable to parse the name, an error is returned. func ParseDockerName(name string) (dockerName *KubeletContainerName, hash uint64, err error) { // For some reason docker appears to be appending '/' to names. // If it's there, strip it. name = strings.TrimPrefix(name, "/") parts := strings.Split(name, "_") if len(parts) == 0 || parts[0] != containerNamePrefix { err = fmt.Errorf("failed to parse Docker container name %q into parts", name) return nil, 0, err } if len(parts) < 6 { // We have at least 5 fields. We may have more in the future. // Anything with less fields than this is not something we can // manage. glog.Warningf("found a container with the %q prefix, but too few fields (%d): %q", containerNamePrefix, len(parts), name) err = fmt.Errorf("Docker container name %q has less parts than expected %v", name, parts) return nil, 0, err } nameParts := strings.Split(parts[1], ".") containerName := nameParts[0] if len(nameParts) > 1 { hash, err = strconv.ParseUint(nameParts[1], 16, 32) if err != nil { glog.Warningf("invalid container hash %q in container %q", nameParts[1], name) } } podFullName := parts[2] + "_" + parts[3] podUID := types.UID(parts[4]) return &KubeletContainerName{podFullName, podUID, containerName}, hash, nil } func LogSymlink(containerLogsDir, podFullName, containerName, dockerId string) string { return path.Join(containerLogsDir, fmt.Sprintf("%s_%s-%s.%s", podFullName, containerName, dockerId, LogSuffix)) } // Get a *docker.Client, either using the endpoint passed in, or using // DOCKER_HOST, DOCKER_TLS_VERIFY, and DOCKER_CERT path per their spec func getDockerClient(dockerEndpoint string) (*docker.Client, error) { if len(dockerEndpoint) > 0 { glog.Infof("Connecting to docker on %s", dockerEndpoint) return docker.NewClient(dockerEndpoint) } return docker.NewClientFromEnv() } func ConnectToDockerOrDie(dockerEndpoint string) DockerInterface { if dockerEndpoint == "fake://" { return &FakeDockerClient{ VersionInfo: docker.Env{"ApiVersion=1.18"}, } } client, err := getDockerClient(dockerEndpoint) if err != nil { glog.Fatalf("Couldn't connect to docker: %v", err) } return client } // milliCPUToQuota converts milliCPU to CFS quota and period values func milliCPUToQuota(milliCPU int64) (quota int64, period int64) { // CFS quota is measured in two values: // - cfs_period_us=100ms (the amount of time to measure usage across) // - cfs_quota=20ms (the amount of cpu time allowed to be used across a period) // so in the above example, you are limited to 20% of a single CPU // for multi-cpu environments, you just scale equivalent amounts if milliCPU == 0 { // take the default behavior from docker return } // we set the period to 100ms by default period = quotaPeriod // we then convert your milliCPU to a value normalized over a period quota = (milliCPU * quotaPeriod) / milliCPUToCPU return } func milliCPUToShares(milliCPU int64) int64 { if milliCPU == 0 { // Docker converts zero milliCPU to unset, which maps to kernel default // for unset: 1024. Return 2 here to really match kernel default for // zero milliCPU. return minShares } // Conceptually (milliCPU / milliCPUToCPU) * sharesPerCPU, but factored to improve rounding. shares := (milliCPU * sharesPerCPU) / milliCPUToCPU if shares < minShares { return minShares } return shares } // GetKubeletDockerContainers lists all container or just the running ones. // Returns a map of docker containers that we manage, keyed by container ID. // TODO: Move this function with dockerCache to DockerManager. func GetKubeletDockerContainers(client DockerInterface, allContainers bool) (DockerContainers, error) { result := make(DockerContainers) containers, err := client.ListContainers(docker.ListContainersOptions{All: allContainers}) if err != nil { return nil, err } for i := range containers { container := &containers[i] if len(container.Names) == 0 { continue } // Skip containers that we didn't create to allow users to manually // spin up their own containers if they want. // TODO(dchen1107): Remove the old separator "--" by end of Oct if !strings.HasPrefix(container.Names[0], "/"+containerNamePrefix+"_") && !strings.HasPrefix(container.Names[0], "/"+containerNamePrefix+"--") { glog.V(3).Infof("Docker Container: %s is not managed by kubelet.", container.Names[0]) continue } result[kubetypes.DockerID(container.ID)] = container } return result, nil }
{ "content_hash": "7e2a07fa1ab19610b048dabeb9a17e1a", "timestamp": "", "source": "github", "line_count": 361, "max_line_length": 139, "avg_line_length": 33.096952908587255, "alnum_prop": 0.7345162370271175, "repo_name": "ejemba/kubernetes", "id": "7e194274e2bd8b17be3fa00521c8448a5c9c18fe", "size": "12537", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "pkg/kubelet/dockertools/docker.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "14602742" }, { "name": "HTML", "bytes": "1193991" }, { "name": "Makefile", "bytes": "18610" }, { "name": "Nginx", "bytes": "1013" }, { "name": "Python", "bytes": "68188" }, { "name": "SaltStack", "bytes": "40762" }, { "name": "Shell", "bytes": "1009829" } ], "symlink_target": "" }
package jp.ac.nii.prl.mape.monitoring.service; import java.util.ArrayList; import java.util.List; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.amazonaws.regions.Region; import com.amazonaws.services.ec2.AmazonEC2Client; import com.amazonaws.services.ec2.model.DescribeInstancesRequest; import com.amazonaws.services.ec2.model.DescribeSecurityGroupsRequest; import com.amazonaws.services.ec2.model.Filter; import com.amazonaws.services.ec2.model.Instance; import com.amazonaws.services.ec2.model.Reservation; import com.amazonaws.services.ec2.model.SecurityGroup; import jp.ac.nii.prl.mape.monitoring.MonitorConfiguration; @Service("ec2Service") public class EC2ServiceImpl implements EC2Service { private AmazonEC2Client ec2Client; private Filter filter; private DescribeInstancesRequest request; private DescribeSecurityGroupsRequest sgRequest; @Autowired private MonitorConfiguration configuration; public EC2ServiceImpl() { } @PostConstruct public void Configure() { ec2Client = Region .getRegion(configuration.getRegion()) .createClient(AmazonEC2Client.class, null, null); List<String> tagValues = new ArrayList<>(); tagValues.add(configuration.getTagValue()); filter = new Filter(configuration.getTagKey(), tagValues); request = new DescribeInstancesRequest(); sgRequest = new DescribeSecurityGroupsRequest(); } /* (non-Javadoc) * @see jp.ac.nii.prl.mape.monitoring.service.EC2Service#getInstances() */ @Override public List<Instance> getInstances() { List<Reservation> reservations = ec2Client .describeInstances(request.withFilters(filter)) .getReservations(); List<Instance> instances = new ArrayList<Instance>(); for (Reservation reservation:reservations) { instances.addAll(reservation.getInstances()); } return instances; } /* * (non-Javadoc) * @see jp.ac.nii.prl.mape.monitoring.service.EC2Service#getSecurityGroups() */ @Override public List<SecurityGroup> getSecurityGroups() { return ec2Client.describeSecurityGroups(sgRequest.withFilters(filter)).getSecurityGroups(); } }
{ "content_hash": "2623af62ec86ddc53de41ba433702b3f", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 93, "avg_line_length": 30.5, "alnum_prop": 0.7855191256830601, "repo_name": "prl-tokyo/MAPE-monitoring-service", "id": "9c8e919c0252297cbdad15f1102e91a43baf1c68", "size": "2196", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/jp/ac/nii/prl/mape/monitoring/service/EC2ServiceImpl.java", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "5006" }, { "name": "Java", "bytes": "42204" }, { "name": "Shell", "bytes": "7058" } ], "symlink_target": "" }
from __future__ import absolute_import, division, print_function, unicode_literals from builtins import open from textwrap import dedent from pants.base.build_file import BuildFile from pants.base.file_system_project_tree import FileSystemProjectTree from pants.build_graph.address import Address from pants_test.test_base import TestBase from pants.contrib.buildgen.build_file_manipulator import (BuildFileManipulator, BuildTargetParseError) class BuildFileManipulatorTest(TestBase): def set_build_file_contents(self, content): self.add_to_build_file('BUILD', content) return BuildFile(self.project_tree, 'BUILD') def setUp(self): super(BuildFileManipulatorTest, self).setUp() self.project_tree = FileSystemProjectTree(self.build_root) self.complicated_dep_comments = dedent( """\ target_type( # This comment should be okay name = 'no_bg_no_cry', # Side comments here will stay # This comment should be okay dependencies = [ # nbgbc_above1 # nbgnc_above2 'really/need/this:dep', #nobgnc_side ':whitespace_above', ':only_side',#only_side #only_above ':only_above' ], # This comment is also fine thing = object() # And finally this comment survives )""" ) self.multi_target_build_string = dedent( """\ # This comment should stay target_type( name = 'target_top', dependencies = [ ':dep_a', ] ) target_type( name = 'target_middle', dependencies = [ ':dep_b', ] ) # This comment should be okay target_type( name = 'target_bottom', ) # Also this one though it's weird""" ) def test_malformed_targets(self): bad_targets = dedent( """ target_type(name='name_on_line') target_type( name= 'dangling_kwarg_value' ) # TODO(pl): Split this out. Right now it fails # the test for all of the targets and masks other # expected failures # target_type( # name=str('non_str_literal') # ) target_type( name='end_paren_not_on_own_line') target_type( object(), name='has_non_kwarg' ) target_type( name='non_list_deps', dependencies=object(), ) target_type( name='deps_not_on_own_lines1', dependencies=['some_dep'], ) target_type( name='deps_not_on_own_lines2', dependencies=[ 'some_dep', 'some_other_dep'], ) target_type( name = 'sentinel', ) """ ) build_file = self.set_build_file_contents(bad_targets) bad_target_names = [ 'name_on_line', 'dangling_kwarg_value', # TODO(pl): See TODO above # 'non_str_literal', 'end_paren_not_on_own_line', 'name_not_in_build_file', 'has_non_kwarg', 'non_list_deps', ] # Make sure this exception isn't just being thrown no matter what. # TODO(pl): These exception types should be more granular. BuildFileManipulator.load(build_file, 'sentinel', {'target_type'}) for bad_target in bad_target_names: with self.assertRaises(BuildTargetParseError): BuildFileManipulator.load(build_file, bad_target, {'target_type'}) def test_simple_targets(self): simple_targets = dedent( """ target_type( name = 'no_deps', ) target_type( name = 'empty_deps', dependencies = [ ] ) target_type( name = 'empty_deps_inline', dependencies = [] ) """ ) build_file = self.set_build_file_contents(simple_targets) for no_deps_name in ['no_deps', 'empty_deps', 'empty_deps_inline']: no_deps = BuildFileManipulator.load(build_file, no_deps_name, {'target_type'}) self.assertEqual(tuple(no_deps.dependency_lines()), tuple()) no_deps.add_dependency(Address.parse(':fake_dep')) self.assertEqual(tuple(no_deps.dependency_lines()), tuple([' dependencies = [', " ':fake_dep',", ' ],'])) no_deps.add_dependency(Address.parse(':b_fake_dep')) no_deps.add_dependency(Address.parse(':a_fake_dep')) self.assertEqual(tuple(no_deps.dependency_lines()), tuple([' dependencies = [', " ':a_fake_dep',", " ':b_fake_dep',", " ':fake_dep',", ' ],'])) self.assertEqual(tuple(no_deps.target_lines()), tuple(['target_type(', " name = '{0}',".format(no_deps_name), ' dependencies = [', " ':a_fake_dep',", " ':b_fake_dep',", " ':fake_dep',", ' ],', ')'])) def test_comment_rules(self): expected_target_str = dedent( """\ target_type( # This comment should be okay name = 'no_bg_no_cry', # Side comments here will stay # This comment should be okay dependencies = [ # only_above ':only_above', ':only_side', # only_side ':whitespace_above', # nbgbc_above1 # nbgnc_above2 'really/need/this:dep', # nobgnc_side ], # This comment is also fine thing = object() # And finally this comment survives )""" ) build_file = self.set_build_file_contents(self.complicated_dep_comments) complicated_bfm = BuildFileManipulator.load(build_file, 'no_bg_no_cry', {'target_type'}) target_str = '\n'.join(complicated_bfm.target_lines()) self.assertEqual(target_str, expected_target_str) def test_forced_target_rules(self): expected_target_str = dedent( """\ target_type( # This comment should be okay name = 'no_bg_no_cry', # Side comments here will stay # This comment should be okay dependencies = [ # only_above ':only_above', ':only_side', # only_side # nbgbc_above1 # nbgnc_above2 'really/need/this:dep', # nobgnc_side ], # This comment is also fine thing = object() # And finally this comment survives )""" ) build_file = self.set_build_file_contents(self.complicated_dep_comments) complicated_bfm = BuildFileManipulator.load(build_file, 'no_bg_no_cry', {'target_type'}) complicated_bfm.clear_unforced_dependencies() target_str = '\n'.join(complicated_bfm.target_lines()) self.assertEqual(target_str, expected_target_str) def test_target_insertion_bottom(self): expected_build_string = dedent( """\ # This comment should stay target_type( name = 'target_top', dependencies = [ ':dep_a', ] ) target_type( name = 'target_middle', dependencies = [ ':dep_b', ] ) # This comment should be okay target_type( name = 'target_bottom', dependencies = [ ':new_dep', ], ) # Also this one though it's weird""" ) build_file = self.set_build_file_contents(self.multi_target_build_string) multi_targ_bfm = BuildFileManipulator.load(build_file, 'target_bottom', {'target_type'}) multi_targ_bfm.add_dependency(Address.parse(':new_dep')) build_file_str = '\n'.join(multi_targ_bfm.build_file_lines()) self.assertEqual(build_file_str, expected_build_string) def test_target_insertion_top(self): expected_build_string = dedent( """\ # This comment should stay target_type( name = 'target_top', dependencies = [ ':dep_a', ':new_dep', ], ) target_type( name = 'target_middle', dependencies = [ ':dep_b', ] ) # This comment should be okay target_type( name = 'target_bottom', ) # Also this one though it's weird""" ) build_file = self.set_build_file_contents(self.multi_target_build_string) multi_targ_bfm = BuildFileManipulator.load(build_file, 'target_top', {'target_type'}) multi_targ_bfm.add_dependency(Address.parse(':new_dep')) build_file_str = '\n'.join(multi_targ_bfm.build_file_lines()) self.assertEqual(build_file_str, expected_build_string) def test_target_insertion_middle(self): expected_build_string = dedent( """\ # This comment should stay target_type( name = 'target_top', dependencies = [ ':dep_a', ] ) target_type( name = 'target_middle', dependencies = [ ':dep_b', ':new_dep', ], ) # This comment should be okay target_type( name = 'target_bottom', ) # Also this one though it's weird""" ) build_file = self.set_build_file_contents(self.multi_target_build_string) multi_targ_bfm = BuildFileManipulator.load(build_file, 'target_middle', {'target_type'}) multi_targ_bfm.add_dependency(Address.parse(':new_dep')) build_file_str = '\n'.join(multi_targ_bfm.build_file_lines()) self.assertEqual(build_file_str, expected_build_string) def test_target_write(self): expected_build_string = dedent( """\ # This comment should stay target_type( name = 'target_top', dependencies = [ ':dep_a', ] ) target_type( name = 'target_middle', dependencies = [ ':dep_b', ':new_dep', ], ) # This comment should be okay target_type( name = 'target_bottom', ) # Also this one though it's weird """ ) build_file = self.set_build_file_contents(self.multi_target_build_string + '\n') multi_targ_bfm = BuildFileManipulator.load(build_file, 'target_middle', {'target_type'}) multi_targ_bfm.add_dependency(Address.parse(':new_dep')) multi_targ_bfm.write(dry_run=False) with open(build_file.full_path, 'r') as bf: self.assertEqual(bf.read(), expected_build_string)
{ "content_hash": "afa4925dbb466b7f437fd46f248fa1d3", "timestamp": "", "source": "github", "line_count": 381, "max_line_length": 92, "avg_line_length": 27.813648293963254, "alnum_prop": 0.5451542889497027, "repo_name": "twitter/pants", "id": "491ff3450568ba04d382080834379284820e5739", "size": "10744", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "contrib/buildgen/tests/python/pants_test/contrib/buildgen/test_build_file_manipulator.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "655" }, { "name": "C++", "bytes": "2010" }, { "name": "CSS", "bytes": "9444" }, { "name": "Dockerfile", "bytes": "5639" }, { "name": "GAP", "bytes": "1283" }, { "name": "Gherkin", "bytes": "919" }, { "name": "Go", "bytes": "2765" }, { "name": "HTML", "bytes": "85294" }, { "name": "Java", "bytes": "498956" }, { "name": "JavaScript", "bytes": "22906" }, { "name": "Python", "bytes": "6700799" }, { "name": "Rust", "bytes": "765598" }, { "name": "Scala", "bytes": "89346" }, { "name": "Shell", "bytes": "94395" }, { "name": "Thrift", "bytes": "2953" } ], "symlink_target": "" }
@interface PodsDummy_Fingertips : NSObject @end @implementation PodsDummy_Fingertips @end
{ "content_hash": "5d5855bccffe922a230cc0cd3c6d149a", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 42, "avg_line_length": 22.5, "alnum_prop": 0.8333333333333334, "repo_name": "ludawei/TestIOSLibs", "id": "185ec8f6ae5e031366e3cc3e60dfb017eb3bcb2c", "size": "124", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Pods/Target Support Files/Fingertips/Fingertips-dummy.m", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "1346216" }, { "name": "Ruby", "bytes": "279" } ], "symlink_target": "" }
local utils = require "environ.utils" local reg = require "environ.win32.reg" local core = require "environ.core" local function get_env_type(value) if nil ~= string.find(value, '%', 1, true) then return reg.EXPAND_SZ end return reg.SZ end --- -- Environment function -- local PATHS = { user = [[HKEY_CURRENT_USER\Environment]]; sys = [[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]]; volatile = [[HKEY_CURRENT_USER\Volatile Environment]]; } local function get_raw_env(path, name) path = assert(PATHS[string.lower(path)]) return reg.get_key(path, name) end local function set_raw_env(path, name, value, normalize) path = assert(PATHS[string.lower(path)]) if value then if normalize then value = utils.normalize(value) end return reg.set_key(path, name, value, get_env_type(value)) end return reg.del_key(path, name) end local function del_raw_env(path, name) -- luacheck: ignore path = assert(PATHS[string.lower(path)]) return reg.del_key(path, name) end local function get_raw_env_t(path, upper) path = assert(PATHS[string.lower(path)]) local t = reg.get_keys(path) local result = {} for k, v in pairs(t) do if upper then k = string.upper(k) end result[string.upper(k)] = v.value end return result end local function make_module(path) local setenv = function(key, value, normalize) return set_raw_env(path, key, value, normalize) end local getenv = function(key) return get_raw_env(path, key) end local environ = function(upper) return get_raw_env_t(path, upper) end local update = core.update_win or function() end local enum = function () return next, environ() end local env = { environ = environ; getenv = getenv; setenv = setenv; update = update; enum = enum; } env.ENV = utils.make_env_map(env) return env end return { make_module = make_module }
{ "content_hash": "f2680a4c54887cc24b88b88265ee4247", "timestamp": "", "source": "github", "line_count": 86, "max_line_length": 98, "avg_line_length": 23.069767441860463, "alnum_prop": 0.6643145161290323, "repo_name": "moteus/lua-environ", "id": "96a30880e4baf084573203088d66855482f6dfc0", "size": "2196", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/lua/environ/win32/system.lua", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "12389" }, { "name": "Lua", "bytes": "15223" } ], "symlink_target": "" }
 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Microsoft.USD.ComponentLibrary { public sealed class OnVisibleEventArgs : EventArgs { // Fields internal bool _Visible; // Properties public bool Visible { get { return this._Visible; } } } }
{ "content_hash": "1b32e38e75286ba8e7caef3ff340902f", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 54, "avg_line_length": 17.52173913043478, "alnum_prop": 0.5533498759305211, "repo_name": "jaymepechan/USDComponentLibrary", "id": "8257150b437f56ed7a48d2ad692ec895a86fee05", "size": "802", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Src/Adapters/MCSBrowser/Events/OnVisibleEventArgs.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "1889" }, { "name": "C", "bytes": "487436" }, { "name": "C#", "bytes": "957319" }, { "name": "C++", "bytes": "780001" }, { "name": "HTML", "bytes": "724376" }, { "name": "Java", "bytes": "1557876" }, { "name": "JavaScript", "bytes": "28699" }, { "name": "Makefile", "bytes": "144683" }, { "name": "Objective-C", "bytes": "4157" } ], "symlink_target": "" }
package org.apache.flink.runtime.webmonitor.handlers; import org.apache.flink.configuration.Configuration; import org.apache.flink.runtime.jobgraph.jsonplan.JsonPlanGenerator; import org.apache.flink.runtime.rest.handler.HandlerRequest; import org.apache.flink.runtime.rest.messages.JobPlanInfo; import org.apache.flink.runtime.webmonitor.testutils.ParameterProgram; import org.junit.BeforeClass; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; /** * Tests for the parameter handling of the {@link JarPlanHandler}. */ public class JarPlanHandlerParameterTest extends JarHandlerParameterTest<JarPlanRequestBody, JarPlanMessageParameters> { private static JarPlanHandler handler; @BeforeClass public static void setup() throws Exception { init(); handler = new JarPlanHandler( localAddressFuture, gatewayRetriever, timeout, responseHeaders, JarPlanHeaders.getInstance(), jarDir, new Configuration(), executor, jobGraph -> { LAST_SUBMITTED_JOB_GRAPH_REFERENCE.set(jobGraph); return new JobPlanInfo(JsonPlanGenerator.generatePlan(jobGraph)); }); } @Override JarPlanMessageParameters getUnresolvedJarMessageParameters() { return handler.getMessageHeaders().getUnresolvedMessageParameters(); } @Override JarPlanMessageParameters getJarMessageParameters(ProgramArgsParType programArgsParType) { final JarPlanMessageParameters parameters = getUnresolvedJarMessageParameters(); parameters.entryClassQueryParameter.resolve(Collections.singletonList(ParameterProgram.class.getCanonicalName())); parameters.parallelismQueryParameter.resolve(Collections.singletonList(PARALLELISM)); if (programArgsParType == ProgramArgsParType.String || programArgsParType == ProgramArgsParType.Both) { parameters.programArgsQueryParameter.resolve(Collections.singletonList(String.join(" ", PROG_ARGS))); } if (programArgsParType == ProgramArgsParType.List || programArgsParType == ProgramArgsParType.Both) { parameters.programArgQueryParameter.resolve(Arrays.asList(PROG_ARGS)); } return parameters; } @Override JarPlanMessageParameters getWrongJarMessageParameters(ProgramArgsParType programArgsParType) { List<String> wrongArgs = Arrays.stream(PROG_ARGS).map(a -> a + "wrong").collect(Collectors.toList()); String argsWrongStr = String.join(" ", wrongArgs); final JarPlanMessageParameters parameters = getUnresolvedJarMessageParameters(); parameters.entryClassQueryParameter.resolve(Collections.singletonList("please.dont.run.me")); parameters.parallelismQueryParameter.resolve(Collections.singletonList(64)); if (programArgsParType == ProgramArgsParType.String || programArgsParType == ProgramArgsParType.Both) { parameters.programArgsQueryParameter.resolve(Collections.singletonList(argsWrongStr)); } if (programArgsParType == ProgramArgsParType.List || programArgsParType == ProgramArgsParType.Both) { parameters.programArgQueryParameter.resolve(wrongArgs); } return parameters; } @Override JarPlanRequestBody getDefaultJarRequestBody() { return new JarPlanRequestBody(); } @Override JarPlanRequestBody getJarRequestBody(ProgramArgsParType programArgsParType) { return new JarPlanRequestBody( ParameterProgram.class.getCanonicalName(), getProgramArgsString(programArgsParType), getProgramArgsList(programArgsParType), PARALLELISM); } @Override void handleRequest(HandlerRequest<JarPlanRequestBody, JarPlanMessageParameters> request) throws Exception { handler.handleRequest(request, restfulGateway).get(); } }
{ "content_hash": "66e5575aa5da37d78144feb02ff8eb6c", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 120, "avg_line_length": 36.12, "alnum_prop": 0.8034330011074197, "repo_name": "mylog00/flink", "id": "1e496bff897206ffca76cf398e935e1dae1eae11", "size": "4417", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarPlanHandlerParameterTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "5666" }, { "name": "CSS", "bytes": "18100" }, { "name": "Clojure", "bytes": "81015" }, { "name": "CoffeeScript", "bytes": "91220" }, { "name": "Dockerfile", "bytes": "9788" }, { "name": "HTML", "bytes": "86821" }, { "name": "Java", "bytes": "40279802" }, { "name": "JavaScript", "bytes": "8267" }, { "name": "Python", "bytes": "249644" }, { "name": "Scala", "bytes": "7501313" }, { "name": "Shell", "bytes": "391588" } ], "symlink_target": "" }
.myTable{ width: 100%; font-size: 130%; border: 1px solid #f8fdfb; } .myTable tr:nth-child(odd){ background-color: #ffffff; } .myTable tr:nth-child(even){ background-color: #f8fdfb; } .myTable td:nth-child(odd) { width: 5%; } .myTable td:nth-child(even) { width: 95%; } .myTable td{ border: 1px solid #ebf0ee; padding: 5px 5px 5px 5px; } .tableDashboard{ width: 100%; font-size: 18px; box-shadow: 1px 1px 1px #888888; } .tableDashboard{ border: solid #D8E8FF 2px; } .tableDashboard, td { padding: 10px 0px 10px 10px; } .tableDashboard tr:hover td { background-color:#E7ECEA; } /* * Component: Small Box * -------------------- */ .small-box { border-radius: 2px; position: relative; display: block; margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } .small-box > .inner { padding: 10px; } .small-box > .small-box-footer { position: relative; text-align: center; padding: 3px 0; color: #fff; color: rgba(255, 255, 255, 0.8); display: block; z-index: 10; background: rgba(0, 0, 0, 0.1); text-decoration: none; } .small-box > .small-box-footer:hover { color: #fff; background: rgba(0, 0, 0, 0.15); } .small-box h3 { font-size: 38px; font-weight: bold; margin: 0 0 10px 0; white-space: nowrap; padding: 0; } .small-box p { font-size: 15px; } .small-box p > small { display: block; color: #f9f9f9; font-size: 13px; margin-top: 5px; } .small-box h3, .small-box p { z-index: 5px; } .small-box .icon { -webkit-transition: all 0.3s linear; -o-transition: all 0.3s linear; transition: all 0.3s linear; position: absolute; top: -10px; right: 10px; z-index: 0; font-size: 90px; color: rgba(0, 0, 0, 0.15); } .small-box:hover { text-decoration: none; color: #f9f9f9; } .small-box:hover .icon { font-size: 95px; } @media (max-width: 767px) { .small-box { text-align: center; } .small-box .icon { display: none; } .small-box p { font-size: 12px; } } .bg-red, .bg-yellow, .bg-aqua, .bg-blue, .bg-light-blue, .bg-green, .bg-navy, .bg-teal, .bg-olive, .bg-lime, .bg-orange, .bg-fuchsia, .bg-purple, .bg-maroon, .bg-black, .bg-red-active, .bg-yellow-active, .bg-aqua-active, .bg-blue-active, .bg-light-blue-active, .bg-green-active, .bg-navy-active, .bg-teal-active, .bg-olive-active, .bg-lime-active, .bg-orange-active, .bg-fuchsia-active, .bg-purple-active, .bg-maroon-active, .bg-black-active, .callout.callout-danger, .callout.callout-warning, .callout.callout-info, .callout.callout-success, .alert-success, .alert-danger, .alert-error, .alert-warning, .alert-info, .label-danger, .label-info, .label-warning, .label-primary, .label-success, .modal-primary .modal-body, .modal-primary .modal-header, .modal-primary .modal-footer, .modal-warning .modal-body, .modal-warning .modal-header, .modal-warning .modal-footer, .modal-info .modal-body, .modal-info .modal-header, .modal-info .modal-footer, .modal-success .modal-body, .modal-success .modal-header, .modal-success .modal-footer, .modal-danger .modal-body, .modal-danger .modal-header, .modal-danger .modal-footer { color: #fff !important; } .bg-gray { color: #000; background-color: #d2d6de !important; } .bg-gray-light { background-color: #f7f7f7; } .bg-black { background-color: #111111 !important; } .bg-red, .callout.callout-danger, .alert-danger, .alert-error, .label-danger, .modal-danger .modal-body { background-color: #dd4b39 !important; } .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body { background-color: #f39c12 !important; } .bg-aqua, .callout.callout-info, .alert-info, .label-info, .modal-info .modal-body { background-color: #00c0ef !important; } .bg-blue { background-color: #0073b7 !important; } .bg-light-blue, .label-primary, .modal-primary .modal-body { background-color: #3c8dbc !important; } .bg-green, .callout.callout-success, .alert-success, .label-success, .modal-success .modal-body { background-color: #00a65a !important; } .bg-navy { background-color: #001f3f !important; } .bg-teal { background-color: #39cccc !important; } .bg-olive { background-color: #3d9970 !important; } .bg-lime { background-color: #01ff70 !important; } .bg-orange { background-color: #ff851b !important; } .bg-fuchsia { background-color: #f012be !important; } .bg-purple { background-color: #605ca8 !important; } .bg-maroon { background-color: #d81b60 !important; } .bg-gray-active { color: #000; background-color: #b5bbc8 !important; } .bg-black-active { background-color: #000000 !important; } .bg-red-active, .modal-danger .modal-header, .modal-danger .modal-footer { background-color: #d33724 !important; } .bg-yellow-active, .modal-warning .modal-header, .modal-warning .modal-footer { background-color: #db8b0b !important; } .bg-aqua-active, .modal-info .modal-header, .modal-info .modal-footer { background-color: #00a7d0 !important; } .bg-blue-active { background-color: #005384 !important; } .bg-light-blue-active, .modal-primary .modal-header, .modal-primary .modal-footer { background-color: #357ca5 !important; } .bg-green-active, .modal-success .modal-header, .modal-success .modal-footer { background-color: #008d4c !important; } .bg-navy-active { background-color: #001a35 !important; } .bg-teal-active { background-color: #30bbbb !important; } .bg-olive-active { background-color: #368763 !important; } .bg-lime-active { background-color: #00e765 !important; } .bg-orange-active { background-color: #ff7701 !important; } .bg-fuchsia-active { background-color: #db0ead !important; } .bg-purple-active { background-color: #555299 !important; } .bg-maroon-active { background-color: #ca195a !important; } [class^="bg-"].disabled { opacity: 0.65; filter: alpha(opacity=65); } .text-red { color: #dd4b39 !important; } .text-yellow { color: #f39c12 !important; } .text-aqua { color: #00c0ef !important; } .text-blue { color: #0073b7 !important; } .text-black { color: #111111 !important; } .text-light-blue { color: #3c8dbc !important; } .text-green { color: #00a65a !important; } .text-gray { color: #d2d6de !important; } .text-navy { color: #001f3f !important; } .text-teal { color: #39cccc !important; } .text-olive { color: #3d9970 !important; } .text-lime { color: #01ff70 !important; } .text-orange { color: #ff851b !important; } .text-fuchsia { color: #f012be !important; } .text-purple { color: #605ca8 !important; } .text-maroon { color: #d81b60 !important; } .link-muted { color: #7a869d; } .link-muted:hover, .link-muted:focus { color: #606c84; } .link-black { color: #666; } .link-black:hover, .link-black:focus { color: #999; } .hide { display: none !important; } .no-border { border: 0 !important; } .no-padding { padding: 0 !important; } .no-margin { margin: 0 !important; } .no-shadow { box-shadow: none!important; } .list-unstyled, .chart-legend, .contacts-list, .users-list, .mailbox-attachments { list-style: none; margin: 0; padding: 0; } .list-group-unbordered > .list-group-item { border-left: 0; border-right: 0; border-radius: 0; padding-left: 0; padding-right: 0; } .flat { border-radius: 0 !important; } .text-bold, .text-bold.table td, .text-bold.table th { font-weight: 700; } .text-sm { font-size: 12px; } .jqstooltip { padding: 5px!important; width: auto!important; height: auto!important; } .bg-teal-gradient { background: #39cccc !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #39cccc), color-stop(1, #7adddd)) !important; background: -ms-linear-gradient(bottom, #39cccc, #7adddd) !important; background: -moz-linear-gradient(center bottom, #39cccc 0%, #7adddd 100%) !important; background: -o-linear-gradient(#7adddd, #39cccc) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7adddd', endColorstr='#39cccc', GradientType=0) !important; color: #fff; } .bg-light-blue-gradient { background: #3c8dbc !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #3c8dbc), color-stop(1, #67a8ce)) !important; background: -ms-linear-gradient(bottom, #3c8dbc, #67a8ce) !important; background: -moz-linear-gradient(center bottom, #3c8dbc 0%, #67a8ce 100%) !important; background: -o-linear-gradient(#67a8ce, #3c8dbc) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#67a8ce', endColorstr='#3c8dbc', GradientType=0) !important; color: #fff; } .bg-blue-gradient { background: #0073b7 !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #0073b7), color-stop(1, #0089db)) !important; background: -ms-linear-gradient(bottom, #0073b7, #0089db) !important; background: -moz-linear-gradient(center bottom, #0073b7 0%, #0089db 100%) !important; background: -o-linear-gradient(#0089db, #0073b7) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0089db', endColorstr='#0073b7', GradientType=0) !important; color: #fff; } .bg-aqua-gradient { background: #00c0ef !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #00c0ef), color-stop(1, #14d1ff)) !important; background: -ms-linear-gradient(bottom, #00c0ef, #14d1ff) !important; background: -moz-linear-gradient(center bottom, #00c0ef 0%, #14d1ff 100%) !important; background: -o-linear-gradient(#14d1ff, #00c0ef) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#14d1ff', endColorstr='#00c0ef', GradientType=0) !important; color: #fff; } .bg-yellow-gradient { background: #f39c12 !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f39c12), color-stop(1, #f7bc60)) !important; background: -ms-linear-gradient(bottom, #f39c12, #f7bc60) !important; background: -moz-linear-gradient(center bottom, #f39c12 0%, #f7bc60 100%) !important; background: -o-linear-gradient(#f7bc60, #f39c12) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7bc60', endColorstr='#f39c12', GradientType=0) !important; color: #fff; } .bg-purple-gradient { background: #605ca8 !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #605ca8), color-stop(1, #9491c4)) !important; background: -ms-linear-gradient(bottom, #605ca8, #9491c4) !important; background: -moz-linear-gradient(center bottom, #605ca8 0%, #9491c4 100%) !important; background: -o-linear-gradient(#9491c4, #605ca8) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#9491c4', endColorstr='#605ca8', GradientType=0) !important; color: #fff; } .bg-green-gradient { background: #00a65a !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #00a65a), color-stop(1, #00ca6d)) !important; background: -ms-linear-gradient(bottom, #00a65a, #00ca6d) !important; background: -moz-linear-gradient(center bottom, #00a65a 0%, #00ca6d 100%) !important; background: -o-linear-gradient(#00ca6d, #00a65a) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ca6d', endColorstr='#00a65a', GradientType=0) !important; color: #fff; } .bg-red-gradient { background: #dd4b39 !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dd4b39), color-stop(1, #e47365)) !important; background: -ms-linear-gradient(bottom, #dd4b39, #e47365) !important; background: -moz-linear-gradient(center bottom, #dd4b39 0%, #e47365 100%) !important; background: -o-linear-gradient(#e47365, #dd4b39) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e47365', endColorstr='#dd4b39', GradientType=0) !important; color: #fff; } .bg-black-gradient { background: #111111 !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #111111), color-stop(1, #2b2b2b)) !important; background: -ms-linear-gradient(bottom, #111111, #2b2b2b) !important; background: -moz-linear-gradient(center bottom, #111111 0%, #2b2b2b 100%) !important; background: -o-linear-gradient(#2b2b2b, #111111) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2b2b2b', endColorstr='#111111', GradientType=0) !important; color: #fff; } .bg-maroon-gradient { background: #d81b60 !important; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #d81b60), color-stop(1, #e73f7c)) !important; background: -ms-linear-gradient(bottom, #d81b60, #e73f7c) !important; background: -moz-linear-gradient(center bottom, #d81b60 0%, #e73f7c 100%) !important; background: -o-linear-gradient(#e73f7c, #d81b60) !important; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e73f7c', endColorstr='#d81b60', GradientType=0) !important; color: #fff; } .tooltipCustom { text-decoration:none; position:relative; } .tooltipCustom span { display:none; } .tooltipCustom:hover span { display:block; position:fixed; overflow:hidden; } a:link { text-decoration: none; } .jumbotron{ padding-bottom: 0px; padding-top: 0px; }
{ "content_hash": "a776c7905ff8c3cd6680e1bd1cc26ec8", "timestamp": "", "source": "github", "line_count": 538, "max_line_length": 130, "avg_line_length": 25.343866171003718, "alnum_prop": 0.6767143381004768, "repo_name": "HoaNP/talent_pool", "id": "72ac090152810e01053cef171bdbfcfc9267252c", "size": "13635", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "frontend/web/css/custom.css", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ApacheConf", "bytes": "299" }, { "name": "Batchfile", "bytes": "1546" }, { "name": "CSS", "bytes": "17630" }, { "name": "PHP", "bytes": "209023" }, { "name": "Shell", "bytes": "3256" } ], "symlink_target": "" }
import {Destination, DestinationOrigin, NativeLayerCrosImpl, PrinterStatusReason, PrinterStatusSeverity, PrintPreviewDestinationListItemElement} from 'chrome://print/print_preview.js'; import {assert} from 'chrome://resources/js/assert.m.js'; import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {assertEquals, assertFalse} from 'chrome://webui-test/chai_assert.js'; import {MockController} from 'chrome://webui-test/mock_controller.js'; import {waitBeforeNextRender} from 'chrome://webui-test/test_util.js'; import {NativeLayerCrosStub} from './native_layer_cros_stub.js'; import {FakeMediaQueryList} from './print_preview_test_utils.js'; const destination_item_test_cros = { suiteName: 'DestinationItemTestCros', TestNames: { NewStatusUpdatesIcon: 'new status updates icon', ChangingDestinationUpdatesIcon: 'changing destination updates icon', OnlyUpdateMatchingDestination: 'only update matching destination', }, }; Object.assign(window, {destination_item_test_cros: destination_item_test_cros}); suite(destination_item_test_cros.suiteName, function() { let listItem: PrintPreviewDestinationListItemElement; let nativeLayerCros: NativeLayerCrosStub; let mockController: MockController; let fakePrefersColorSchemeMediaQueryList: FakeMediaQueryList; function setNativeLayerPrinterStatusMap() { [{ printerId: 'One', statusReasons: [{ reason: PrinterStatusReason.NO_ERROR, severity: PrinterStatusSeverity.UNKNOWN_SEVERITY, }], timestamp: 0, }, { printerId: 'Two', statusReasons: [{ reason: PrinterStatusReason.OUT_OF_INK, severity: PrinterStatusSeverity.ERROR, }], timestamp: 0, }] .forEach( status => nativeLayerCros.addPrinterStatusToMap( status.printerId, status)); } // Mocks calls to window.matchMedia, returning false by default. function configureMatchMediaMock() { mockController = new MockController(); const matchMediaMock = mockController.createFunctionMock(window, 'matchMedia'); fakePrefersColorSchemeMediaQueryList = new FakeMediaQueryList('(prefers-color-scheme: dark)'); matchMediaMock.returnValue = fakePrefersColorSchemeMediaQueryList; assertFalse(window.matchMedia('(prefers-color-scheme: dark)').matches); } setup(function() { // Mock configuration needs to happen before element added to UI to // ensure iron-media-query uses mock. configureMatchMediaMock(); document.body.innerHTML = ` <print-preview-destination-list-item id="listItem"> </print-preview-destination-list-item>`; // Stub out native layer. nativeLayerCros = new NativeLayerCrosStub(); NativeLayerCrosImpl.setInstance(nativeLayerCros); setNativeLayerPrinterStatusMap(); listItem = document.body.querySelector<PrintPreviewDestinationListItemElement>( '#listItem')!; listItem.destination = new Destination( 'One', DestinationOrigin.CROS, 'Destination One', {description: 'ABC'}); flush(); }); teardown(function() { mockController.reset(); }); test( assert(destination_item_test_cros.TestNames.NewStatusUpdatesIcon), function() { const icon = listItem.shadowRoot!.querySelector('iron-icon')!; assertEquals('print-preview:printer-status-grey', icon.icon); return listItem.destination.requestPrinterStatus().then(() => { assertEquals('print-preview:printer-status-green', icon.icon); }); }); test( assert( destination_item_test_cros.TestNames.ChangingDestinationUpdatesIcon), function() { const icon = listItem.shadowRoot!.querySelector('iron-icon')!; assertEquals('print-preview:printer-status-grey', icon.icon); listItem.destination = new Destination( 'Two', DestinationOrigin.CROS, 'Destination Two', {description: 'ABC'}); return waitBeforeNextRender(listItem).then(() => { assertEquals('print-preview:printer-status-red', icon.icon); }); }); // Tests that the printer stauts icon is only notified to update if the // destination key in the printer status response matches the current // destination. test( assert( destination_item_test_cros.TestNames.OnlyUpdateMatchingDestination), function() { const icon = listItem.shadowRoot!.querySelector('iron-icon')!; assertEquals('print-preview:printer-status-grey', icon.icon); const firstDestinationStatusRequestPromise = listItem.destination.requestPrinterStatus(); // Simulate destination_list updating and switching the destination // after the request for the original destination was already sent out. listItem.destination = new Destination( 'Two', DestinationOrigin.CROS, 'Destination Two', {description: 'ABC'}); return firstDestinationStatusRequestPromise.then(() => { // PrinterState should stay the same because the destination in the // status request response doesn't match. assertEquals('print-preview:printer-status-grey', icon.icon); }); }); });
{ "content_hash": "9f906e1c9984e09710fbbbebc98e653a", "timestamp": "", "source": "github", "line_count": 141, "max_line_length": 184, "avg_line_length": 37.5886524822695, "alnum_prop": 0.6916981132075471, "repo_name": "nwjs/chromium.src", "id": "a3e896250729151e9994fa83c2d55bc3701141af", "size": "5444", "binary": false, "copies": "1", "ref": "refs/heads/nw70", "path": "chrome/test/data/webui/print_preview/destination_item_test_cros.ts", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
@interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
{ "content_hash": "85b81ac0cd40dbefd8307b5dca72baf5", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 60, "avg_line_length": 16.857142857142858, "alnum_prop": 0.7796610169491526, "repo_name": "felipejfc/owl", "id": "b3a3e0cd4170bf1ad01eeb640988c2af93555103", "size": "287", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "OwlTests/OwlExample/AppDelegate.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "6586" }, { "name": "C++", "bytes": "334" }, { "name": "Objective-C", "bytes": "217341" }, { "name": "Ruby", "bytes": "1221" }, { "name": "Shell", "bytes": "7884" } ], "symlink_target": "" }
module Approved module Authentication # 認証処理 def judgment(url, user_id = nil) judg = false if user_id.present? role_users = Approved::RoleAndUser.where(user_id: user_id).load role_users.each do |i| judg = select_role(i.role, url) end else role = Approved::Role.where(types: "people").first judg = select_role(role, url) end judg end private def select_role(role, url) flg = false role.get_authority.each do |key, value| if key == url flg = value break end idx = key.rindex("::Engine") if idx.present? uidx = url.index("/") if uidx.present? if url[0, uidx].classify == key[0,idx] flg = value end end end end flg end end end
{ "content_hash": "bd4699bb33a4245c5a244c265206cf84", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 71, "avg_line_length": 22.666666666666668, "alnum_prop": 0.5067873303167421, "repo_name": "takahiron/Approved", "id": "12d7958919860e7de644839da69ee773c99542c7", "size": "892", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/approved/authentication.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "10731" } ], "symlink_target": "" }
/* 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.common.engine.impl.db; import java.sql.Connection; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.ibatis.session.SqlSession; import org.flowable.common.engine.api.FlowableException; import org.flowable.common.engine.api.FlowableOptimisticLockingException; import org.flowable.common.engine.impl.Page; import org.flowable.common.engine.impl.context.Context; import org.flowable.common.engine.impl.interceptor.Session; import org.flowable.common.engine.impl.persistence.cache.CachedEntity; import org.flowable.common.engine.impl.persistence.cache.EntityCache; import org.flowable.common.engine.impl.persistence.entity.AlwaysUpdatedPersistentObject; import org.flowable.common.engine.impl.persistence.entity.Entity; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Tom Baeyens * @author Joram Barrez */ public class DbSqlSession implements Session { private static final Logger LOGGER = LoggerFactory.getLogger(DbSqlSession.class); public static String[] JDBC_METADATA_TABLE_TYPES = { "TABLE" }; protected EntityCache entityCache; protected SqlSession sqlSession; protected DbSqlSessionFactory dbSqlSessionFactory; protected String connectionMetadataDefaultCatalog; protected String connectionMetadataDefaultSchema; protected Map<Class<? extends Entity>, Map<String, Entity>> insertedObjects = new HashMap<>(); protected Map<Class<? extends Entity>, Map<String, Entity>> deletedObjects = new HashMap<>(); protected Map<Class<? extends Entity>, List<BulkDeleteOperation>> bulkDeleteOperations = new HashMap<>(); protected List<Entity> updatedObjects = new ArrayList<>(); public DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, EntityCache entityCache) { this.dbSqlSessionFactory = dbSqlSessionFactory; this.entityCache = entityCache; this.sqlSession = dbSqlSessionFactory.getSqlSessionFactory().openSession(); } public DbSqlSession(DbSqlSessionFactory dbSqlSessionFactory, EntityCache entityCache, Connection connection, String catalog, String schema) { this.dbSqlSessionFactory = dbSqlSessionFactory; this.entityCache = entityCache; this.sqlSession = dbSqlSessionFactory.getSqlSessionFactory().openSession(connection); // Note the use of connection param here, different from other constructor this.connectionMetadataDefaultCatalog = catalog; this.connectionMetadataDefaultSchema = schema; } // insert /////////////////////////////////////////////////////////////////// public void insert(Entity entity) { if (entity.getId() == null) { String id = Context.getCommandContext().getCurrentEngineConfiguration().getIdGenerator().getNextId(); if (dbSqlSessionFactory.isUsePrefixId()) { id = entity.getIdPrefix() + id; } entity.setId(id); } Class<? extends Entity> clazz = entity.getClass(); if (!insertedObjects.containsKey(clazz)) { insertedObjects.put(clazz, new LinkedHashMap<>()); // order of insert is important, hence LinkedHashMap } insertedObjects.get(clazz).put(entity.getId(), entity); entityCache.put(entity, false); // False -> entity is inserted, so always changed entity.setInserted(true); } // update // /////////////////////////////////////////////////////////////////// public void update(Entity entity) { entityCache.put(entity, false); // false -> we don't store state, meaning it will always be seen as changed entity.setUpdated(true); } public int update(String statement, Object parameters) { String updateStatement = dbSqlSessionFactory.mapStatement(statement); return getSqlSession().update(updateStatement, parameters); } // delete // /////////////////////////////////////////////////////////////////// /** * Executes a {@link BulkDeleteOperation}, with the sql in the statement parameter. * The passed class determines when this operation will be executed: it will be executed depending on the place of the class in the {@link EntityDependencyOrder}. */ public void delete(String statement, Object parameter, Class<? extends Entity> entityClass) { if (!bulkDeleteOperations.containsKey(entityClass)) { bulkDeleteOperations.put(entityClass, new ArrayList<>(1)); } bulkDeleteOperations.get(entityClass).add(new BulkDeleteOperation(dbSqlSessionFactory.mapStatement(statement), parameter)); } public void delete(Entity entity) { Class<? extends Entity> clazz = entity.getClass(); if (!deletedObjects.containsKey(clazz)) { deletedObjects.put(clazz, new LinkedHashMap<>()); // order of insert is important, hence LinkedHashMap } deletedObjects.get(clazz).put(entity.getId(), entity); entity.setDeleted(true); } // select // /////////////////////////////////////////////////////////////////// @SuppressWarnings({ "rawtypes" }) public List selectList(String statement) { return selectList(statement, null, -1, -1); } @SuppressWarnings("rawtypes") public List selectList(String statement, Object parameter) { return selectList(statement, parameter, -1, -1); } @SuppressWarnings("rawtypes") public List selectList(String statement, Object parameter, Page page) { if (page != null) { return selectList(statement, parameter, page.getFirstResult(), page.getMaxResults()); } else { return selectList(statement, parameter, -1, -1); } } @SuppressWarnings("rawtypes") public List selectList(String statement, ListQueryParameterObject parameter) { parameter.setDatabaseType(dbSqlSessionFactory.getDatabaseType()); return selectListWithRawParameter(statement, parameter); } @SuppressWarnings("rawtypes") public List selectList(String statement, Object parameter, int firstResult, int maxResults) { return selectList(statement, new ListQueryParameterObject(parameter, firstResult, maxResults)); } @SuppressWarnings("rawtypes") public List selectListNoCacheCheck(String statement, Object parameter) { return selectListWithRawParameter(statement, new ListQueryParameterObject(parameter, -1, -1), false); } @SuppressWarnings({ "rawtypes" }) public List selectListWithRawParameterNoCacheCheck(String statement, Object parameter) { return selectListWithRawParameter(statement, parameter, false); } @SuppressWarnings({ "rawtypes" }) public List selectListWithRawParameterNoCacheCheck(String statement, ListQueryParameterObject parameter) { parameter.setDatabaseType(dbSqlSessionFactory.getDatabaseType()); return selectListWithRawParameter(statement, parameter, false); } @SuppressWarnings("rawtypes") public List selectListNoCacheCheck(String statement, ListQueryParameterObject parameter) { ListQueryParameterObject parameterToUse = parameter; if (parameterToUse == null) { parameterToUse = new ListQueryParameterObject(); } return selectListWithRawParameter(statement, parameter, false); } @SuppressWarnings("rawtypes") public List selectListWithRawParameter(String statement, Object parameter) { // All other selectList methods eventually end up here, passing it into the method // with the useCache parameter. By default true, which means everything is cached. // Dedicated xNoCacheCheck methods will pass a false for that setting. return selectListWithRawParameter(statement, parameter, true); } @SuppressWarnings({ "rawtypes", "unchecked" }) public List selectListWithRawParameter(String statement, Object parameter, boolean useCache) { statement = dbSqlSessionFactory.mapStatement(statement); List loadedObjects = sqlSession.selectList(statement, parameter); if (useCache) { return cacheLoadOrStore(loadedObjects); } else { return loadedObjects; } } public Object selectOne(String statement, Object parameter) { statement = dbSqlSessionFactory.mapStatement(statement); Object result = sqlSession.selectOne(statement, parameter); if (result instanceof Entity) { Entity loadedObject = (Entity) result; result = cacheLoadOrStore(loadedObject); } return result; } public <T extends Entity> T selectById(Class<T> entityClass, String id) { return selectById(entityClass, id, true); } @SuppressWarnings("unchecked") public <T extends Entity> T selectById(Class<T> entityClass, String id, boolean useCache) { T entity = null; if (useCache) { entity = entityCache.findInCache(entityClass, id); if (entity != null) { return entity; } } String selectStatement = dbSqlSessionFactory.getSelectStatement(entityClass); selectStatement = dbSqlSessionFactory.mapStatement(selectStatement); entity = (T) sqlSession.selectOne(selectStatement, id); if (entity == null) { return null; } entityCache.put(entity, true); // true -> store state so we can see later if it is updated later on return entity; } // internal session cache // /////////////////////////////////////////////////// @SuppressWarnings("rawtypes") protected List cacheLoadOrStore(List<Object> loadedObjects) { if (loadedObjects.isEmpty()) { return loadedObjects; } if (!(loadedObjects.get(0) instanceof Entity)) { return loadedObjects; } List<Entity> filteredObjects = new ArrayList<>(loadedObjects.size()); for (Object loadedObject : loadedObjects) { Entity cachedEntity = cacheLoadOrStore((Entity) loadedObject); filteredObjects.add(cachedEntity); } return filteredObjects; } /** * Returns the object in the cache. If this object was loaded before, then the original object is returned (the cached version is more recent). If this is the first time this object is loaded, * then the loadedObject is added to the cache. */ protected Entity cacheLoadOrStore(Entity entity) { Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId()); if (cachedEntity != null) { return cachedEntity; } entityCache.put(entity, true); return entity; } // flush // //////////////////////////////////////////////////////////////////// @Override public void flush() { determineUpdatedObjects(); // Needs to be done before the removeUnnecessaryOperations, as removeUnnecessaryOperations will remove stuff from the cache removeUnnecessaryOperations(); if (LOGGER.isDebugEnabled()) { debugFlush(); } flushInserts(); flushUpdates(); flushDeletes(); } /** * Clears all deleted and inserted objects from the cache, and removes inserts and deletes that cancel each other. * * Also removes deletes with duplicate ids. */ protected void removeUnnecessaryOperations() { for (Class<? extends Entity> entityClass : deletedObjects.keySet()) { // Collect ids of deleted entities + remove duplicates Set<String> ids = new HashSet<>(); Iterator<Entity> entitiesToDeleteIterator = deletedObjects.get(entityClass).values().iterator(); while (entitiesToDeleteIterator.hasNext()) { Entity entityToDelete = entitiesToDeleteIterator.next(); if (entityToDelete.getId() != null && !ids.contains(entityToDelete.getId())) { ids.add(entityToDelete.getId()); } else { entitiesToDeleteIterator.remove(); // Removing duplicate deletes or entities without id } } // Now we have the deleted ids, we can remove the inserted objects (as they cancel each other) for (String id : ids) { if (insertedObjects.containsKey(entityClass) && insertedObjects.get(entityClass).containsKey(id)) { insertedObjects.get(entityClass).remove(id); deletedObjects.get(entityClass).remove(id); } } } } public void determineUpdatedObjects() { updatedObjects = new ArrayList<>(); Map<Class<?>, Map<String, CachedEntity>> cachedObjects = entityCache.getAllCachedEntities(); for (Class<?> clazz : cachedObjects.keySet()) { Map<String, CachedEntity> classCache = cachedObjects.get(clazz); for (CachedEntity cachedObject : classCache.values()) { Entity cachedEntity = cachedObject.getEntity(); // Executions are stored as a hierarchical tree, and updates are important to execute // even when the execution are deleted, as they can change the parent-child relationships. // For the other entities, this is not applicable and an update can be discarded when an update follows. if (!isEntityInserted(cachedEntity) && (cachedEntity instanceof AlwaysUpdatedPersistentObject || !isEntityToBeDeleted(cachedEntity)) && cachedObject.hasChanged()) { updatedObjects.add(cachedEntity); } } } } protected void debugFlush() { LOGGER.debug("Flushing dbSqlSession"); int nrOfInserts = 0; int nrOfUpdates = 0; int nrOfDeletes = 0; for (Map<String, Entity> insertedObjectMap : insertedObjects.values()) { for (Entity insertedObject : insertedObjectMap.values()) { LOGGER.debug(" insert {}", insertedObject); nrOfInserts++; } } for (Entity updatedObject : updatedObjects) { LOGGER.debug(" update {}", updatedObject); nrOfUpdates++; } for (Map<String, Entity> deletedObjectMap : deletedObjects.values()) { for (Entity deletedObject : deletedObjectMap.values()) { LOGGER.debug(" delete {} with id {}", deletedObject, deletedObject.getId()); nrOfDeletes++; } } for (Collection<BulkDeleteOperation> bulkDeleteOperationList : bulkDeleteOperations.values()) { for (BulkDeleteOperation bulkDeleteOperation : bulkDeleteOperationList) { LOGGER.debug(" {}", bulkDeleteOperation); nrOfDeletes++; } } LOGGER.debug("flush summary: {} insert, {} update, {} delete.", nrOfInserts, nrOfUpdates, nrOfDeletes); LOGGER.debug("now executing flush..."); } public boolean isEntityInserted(Entity entity) { return isEntityInserted(entity.getClass(), entity.getId()); } public boolean isEntityInserted(Class<?> entityClass, String entityId) { return insertedObjects.containsKey(entityClass) && insertedObjects.get(entityClass).containsKey(entityId); } public boolean isEntityToBeDeleted(Entity entity) { return (deletedObjects.containsKey(entity.getClass()) && deletedObjects.get(entity.getClass()).containsKey(entity.getId())) || entity.isDeleted(); } protected void flushInserts() { if (insertedObjects.size() == 0) { return; } // Handle in entity dependency order for (Class<? extends Entity> entityClass : dbSqlSessionFactory.getInsertionOrder()) { if (insertedObjects.containsKey(entityClass)) { flushInsertEntities(entityClass, insertedObjects.get(entityClass).values()); insertedObjects.remove(entityClass); } } // Next, in case of custom entities or we've screwed up and forgotten some entity if (insertedObjects.size() > 0) { for (Class<? extends Entity> entityClass : insertedObjects.keySet()) { flushInsertEntities(entityClass, insertedObjects.get(entityClass).values()); } } insertedObjects.clear(); } protected void flushInsertEntities(Class<? extends Entity> entityClass, Collection<Entity> entitiesToInsert) { if (entitiesToInsert.size() == 1) { flushRegularInsert(entitiesToInsert.iterator().next(), entityClass); } else if (Boolean.FALSE.equals(dbSqlSessionFactory.isBulkInsertable(entityClass))) { for (Entity entity : entitiesToInsert) { flushRegularInsert(entity, entityClass); } } else { flushBulkInsert(entitiesToInsert, entityClass); } } protected void flushRegularInsert(Entity entity, Class<? extends Entity> clazz) { String insertStatement = dbSqlSessionFactory.getInsertStatement(entity); insertStatement = dbSqlSessionFactory.mapStatement(insertStatement); if (insertStatement == null) { throw new FlowableException("no insert statement for " + entity.getClass() + " in the ibatis mapping files"); } LOGGER.debug("inserting: {}", entity); sqlSession.insert(insertStatement, entity); // See https://activiti.atlassian.net/browse/ACT-1290 if (entity instanceof HasRevision) { incrementRevision(entity); } } protected void flushBulkInsert(Collection<Entity> entities, Class<? extends Entity> clazz) { String insertStatement = dbSqlSessionFactory.getBulkInsertStatement(clazz); insertStatement = dbSqlSessionFactory.mapStatement(insertStatement); if (insertStatement == null) { throw new FlowableException("no insert statement for " + entities.iterator().next().getClass() + " in the ibatis mapping files"); } Iterator<Entity> entityIterator = entities.iterator(); Boolean hasRevision = null; while (entityIterator.hasNext()) { List<Entity> subList = new ArrayList<>(); int index = 0; while (entityIterator.hasNext() && index < dbSqlSessionFactory.getMaxNrOfStatementsInBulkInsert()) { Entity entity = entityIterator.next(); subList.add(entity); if (hasRevision == null) { hasRevision = entity instanceof HasRevision; } index++; } sqlSession.insert(insertStatement, subList); } if (hasRevision != null && hasRevision) { entityIterator = entities.iterator(); while (entityIterator.hasNext()) { incrementRevision(entityIterator.next()); } } } protected void incrementRevision(Entity insertedObject) { HasRevision revisionEntity = (HasRevision) insertedObject; if (revisionEntity.getRevision() == 0) { revisionEntity.setRevision(revisionEntity.getRevisionNext()); } } protected void flushUpdates() { for (Entity updatedObject : updatedObjects) { String updateStatement = dbSqlSessionFactory.getUpdateStatement(updatedObject); updateStatement = dbSqlSessionFactory.mapStatement(updateStatement); if (updateStatement == null) { throw new FlowableException("no update statement for " + updatedObject.getClass() + " in the ibatis mapping files"); } LOGGER.debug("updating: {}", updatedObject); int updatedRecords = sqlSession.update(updateStatement, updatedObject); if (updatedRecords == 0) { throw new FlowableOptimisticLockingException(updatedObject + " was updated by another transaction concurrently"); } // See https://activiti.atlassian.net/browse/ACT-1290 if (updatedObject instanceof HasRevision) { ((HasRevision) updatedObject).setRevision(((HasRevision) updatedObject).getRevisionNext()); } } updatedObjects.clear(); } protected void flushDeletes() { if (deletedObjects.size() == 0 && bulkDeleteOperations.size() == 0) { return; } // Handle in entity dependency order for (Class<? extends Entity> entityClass : dbSqlSessionFactory.getDeletionOrder()) { if (deletedObjects.containsKey(entityClass)) { flushDeleteEntities(entityClass, deletedObjects.get(entityClass).values()); deletedObjects.remove(entityClass); } flushBulkDeletes(entityClass, this.bulkDeleteOperations.remove(entityClass)); } // Next, in case of custom entities or we've screwed up and forgotten some entity if (deletedObjects.size() > 0) { for (Class<? extends Entity> entityClass : deletedObjects.keySet()) { flushDeleteEntities(entityClass, deletedObjects.get(entityClass).values()); flushBulkDeletes(entityClass, this.bulkDeleteOperations.remove(entityClass)); } } // Last, in case there are still some pending entities or we have forgotten an entity for the bulk operations if (!bulkDeleteOperations.isEmpty()) { bulkDeleteOperations.forEach(this::flushBulkDeletes); } deletedObjects.clear(); bulkDeleteOperations.clear(); } protected void flushBulkDeletes(Class<? extends Entity> entityClass, List<BulkDeleteOperation> deleteOperations) { // Bulk deletes if (deleteOperations != null) { for (BulkDeleteOperation bulkDeleteOperation : deleteOperations) { bulkDeleteOperation.execute(sqlSession, entityClass); } } } protected void flushDeleteEntities(Class<? extends Entity> entityClass, Collection<Entity> entitiesToDelete) { for (Entity entity : entitiesToDelete) { String deleteStatement = dbSqlSessionFactory.getDeleteStatement(entity.getClass()); deleteStatement = dbSqlSessionFactory.mapStatement(deleteStatement); if (deleteStatement == null) { throw new FlowableException("no delete statement for " + entity.getClass() + " in the ibatis mapping files"); } // It only makes sense to check for optimistic locking exceptions // for objects that actually have a revision if (entity instanceof HasRevision) { int nrOfRowsDeleted = sqlSession.delete(deleteStatement, entity); if (nrOfRowsDeleted == 0) { throw new FlowableOptimisticLockingException(entity + " was updated by another transaction concurrently"); } } else { sqlSession.delete(deleteStatement, entity); } } } @Override public void close() { sqlSession.close(); } public void commit() { sqlSession.commit(); } public void rollback() { sqlSession.rollback(); } public <T> T getCustomMapper(Class<T> type) { return sqlSession.getMapper(type); } // getters and setters // ////////////////////////////////////////////////////// public SqlSession getSqlSession() { return sqlSession; } public DbSqlSessionFactory getDbSqlSessionFactory() { return dbSqlSessionFactory; } public String getConnectionMetadataDefaultCatalog() { return connectionMetadataDefaultCatalog; } public void setConnectionMetadataDefaultCatalog(String connectionMetadataDefaultCatalog) { this.connectionMetadataDefaultCatalog = connectionMetadataDefaultCatalog; } public String getConnectionMetadataDefaultSchema() { return connectionMetadataDefaultSchema; } public void setConnectionMetadataDefaultSchema(String connectionMetadataDefaultSchema) { this.connectionMetadataDefaultSchema = connectionMetadataDefaultSchema; } }
{ "content_hash": "7d92ff6a0359bd58292f39483a31d117", "timestamp": "", "source": "github", "line_count": 622, "max_line_length": 196, "avg_line_length": 40.51768488745981, "alnum_prop": 0.6445520196809778, "repo_name": "yvoswillens/flowable-engine", "id": "7316041dd98e4ecf59e4aa7a4d40ad2fd17bb911", "size": "25202", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/db/DbSqlSession.java", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "166" }, { "name": "CSS", "bytes": "689397" }, { "name": "Dockerfile", "bytes": "6459" }, { "name": "Groovy", "bytes": "482" }, { "name": "HTML", "bytes": "1128913" }, { "name": "Java", "bytes": "35207622" }, { "name": "JavaScript", "bytes": "12438694" }, { "name": "PLSQL", "bytes": "109354" }, { "name": "PLpgSQL", "bytes": "11691" }, { "name": "SQLPL", "bytes": "1265" }, { "name": "Shell", "bytes": "19286" } ], "symlink_target": "" }
.. _admin_configure_synerty_peek: Configuring Platform :file:`config.json` ---------------------------------------- Update config.json files. This tells the peek platform services how to connect to each other, connect to the database, which plugins to load, etc. .. note:: Running the services of Peek will automatically create and fill out the missing parts of config.json files with defaults. So we can start with just what we want to fill out. Peek Server ``````````` This section sets up the config files for the **server** service. ---- Create following file and parent directory: :Windows: :file:`C:\\Users\\peek\\peek-server.home\\config.json` :Linux: :file:`/home/peek/peek-server.home/config.json` :Mac: :file:`/Users/peek/peek-server.home/config.json` .. tip:: Run the service, it will create some of it's config before failing to connect to the db. ---- Populate the file :file:`config.json` with the * SQLAlchemy connect URL (See options below) * Enabled plugins Select the right :code:`connectUrl` for your database, ensure you update :code:`PASSWORD`. :MS Sql Server: :code:`mssql+pymssql://peek:PASSWORD@127.0.0.1/peek` :PostgreSQL: :code:`postgresql://peek:PASSWORD@127.0.0.1/peek` :: { "plugin": { "enabled": [ "peek_plugin_inbox", "peek_plugin_tutorial" ] }, "sqlalchemy": { "connectUrl": "postgresql://peek:PASSWORD@127.0.0.1/peek" } } Peek Client ``````````` This section sets up the config files for the **client** service. ---- Create following file and parent directory: :Windows: :file:`C:\\Users\\peek\\peek-client.home\\config.json` :Linux: :file:`/home/peek/peek-client.home/config.json` :Mac: :file:`/Users/peek/peek-client.home/config.json` .. tip:: Run the service, it will create some of it's config, it might raise errors though. ---- Populate the file :file:`config.json` with the * Enabled plugins * Disable NativeScript preparing :: { "frontend": { "nativescriptBuildPrepareEnabled": false }, "plugin": { "enabled": [ "peek_plugin_inbox", "peek_plugin_tutorial" ] } } Peek Agent `````````` This section sets up the config files for the **agent** service. ---- Create following file and parent directory: :Windows: :file:`C:\\Users\\peek\\peek-agent.home\\config.json` :Linux: :file:`/home/peek/peek-agent.home/config.json` :Mac: :file:`/Users/peek/peek-agent.home/config.json` .. tip:: Run the service, it will create some of it's config, it might raise errors though. ---- Populate the file :file:`config.json` with the * Enabled plugins :: { "plugin": { "enabled": [ "peek_plugin_inbox", "peek_plugin_tutorial" ] } } Peek Client & Server SSL ```````````````````````` This section sets up SSL for the peek client and server services. ---- Combine the required SSL certificates and keys into a single PEM file named :file:`peek-ssl-bundle.pem`. For example, this can be done on Linux by concatenating the Key, Cert and CA files. :: cat key.pem cert.pem ca.pem > bundle.pem .. note:: The file names will vary, but the file contents will start with lines like the following :: ==> CA cert <== -----BEGIN CERTIFICATE----- ==> Cert <== -----BEGIN CERTIFICATE----- ==> Key <== -----BEGIN RSA PRIVATE KEY----- ---- Place a copy of this PEM file into the server directory: :Windows: :file:`C:\\Users\\peek\\peek-server.server\\peek-ssl-bundle.pem` :Linux: :file:`/home/peek/peek-server.home/peek-ssl-bundle.pem` :Mac: :file:`/Users/peek/peek-server.home/peek-ssl-bundle.pem` ---- Restart the Peek server service. ---- Place a copy of this PEM file into the client directory: :Windows: :file:`C:\\Users\\peek\\peek-client.server\\peek-ssl-bundle.pem` :Linux: :file:`/home/peek/peek-client.home/peek-ssl-bundle.pem` :Mac: :file:`/Users/peek/peek-client.home/peek-ssl-bundle.pem` ---- Restart the Peek client service. ---- The Peek server and client should now be using SSL.
{ "content_hash": "c290080219e1a5f66a8f61ea90655cb8", "timestamp": "", "source": "github", "line_count": 180, "max_line_length": 101, "avg_line_length": 24.45, "alnum_prop": 0.6059986366734833, "repo_name": "Synerty/synerty-peek", "id": "c79ecd729ad6b32c4a77baeacecb705088479be2", "size": "4402", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/administration/admin_config_platform.rst", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "797" }, { "name": "PowerShell", "bytes": "14113" }, { "name": "Python", "bytes": "1732" }, { "name": "Shell", "bytes": "35231" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="xeBuz"> <meta name="description" content="Personal Website"> <meta name="generator" content="Hugo 0.14" /> <title>Blah &middot; xeBuz personal blog</title> <link rel="shortcut icon" href="http://localhost:1313/blog/images/favicon.ico"> <link rel="stylesheet" href="http://localhost:1313/blog/css/style.css"> <link rel="stylesheet" href="http://localhost:1313/blog/css/highlight.css"> <link href="http://localhost:1313/blog/index.xml" rel="alternate" type="application/rss+xml" title="xeBuz personal blog" /> </head> <body> <nav class="main-nav"> <a href='http://localhost:1313/blog/'> <span class="arrow">←</span>Home</a> <a href='http://localhost:1313/blog/about'>About</a> <a class="cta" href="http://localhost:1313/blog/index.xml">Subscribe</a> </nav> <div class="profile"> <section id="wrapper"> <header id="header"> <a href='http://localhost:1313/blog/about'> <img id="avatar" class="2x" src="http://localhost:1313/blog/images/avatar.png"/> </a> <h1>xeBuz</h1> <h2>Developer - Programmer - Gopher</h2> </header> </section> </div> <section id="wrapper" class="home"> <ul id="post-list"> <li> <a href='http://localhost:1313/blog/posts/oldest/'><aside class="dates">Mar 27</aside></a> <a href='http://localhost:1313/blog/posts/oldest/'>First Post <h2>Placeholder: voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</h2></a> </li> </ul> <nav id="post-nav"> </nav> <footer id="footer"> <p class="small"> © Copyright 2015 xeBuz </p> </footer> </section> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="http://localhost:1313/blog/js/main.js"></script> <script src="http://localhost:1313/blog/js/highlight.js"></script> <script>hljs.initHighlightingOnLoad();</script> <script data-no-instant>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':1313/livereload.js?mindelay=10"></' + 'script>')</script></body> </html>
{ "content_hash": "3c470fbdfe385f8504506449d5ee6e4e", "timestamp": "", "source": "github", "line_count": 75, "max_line_length": 275, "avg_line_length": 33.76, "alnum_prop": 0.6244075829383886, "repo_name": "xeBuz/blog", "id": "83e840b6065133fd7d897257f75e9c3b82716838", "size": "2535", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "public/categories/blah/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "52041" }, { "name": "HTML", "bytes": "903140" }, { "name": "JavaScript", "bytes": "773" }, { "name": "Shell", "bytes": "374" } ], "symlink_target": "" }
class AP_MotorsTri : public AP_Motors { public: /// Constructor AP_MotorsTri(RC_Channel& rc_roll, RC_Channel& rc_pitch, RC_Channel& rc_throttle, RC_Channel& rc_yaw, RC_Channel& rc_tail, uint16_t loop_rate, uint16_t speed_hz = AP_MOTORS_SPEED_DEFAULT) : AP_Motors(rc_roll, rc_pitch, rc_throttle, rc_yaw, loop_rate, speed_hz), _rc_tail(rc_tail) { }; // init virtual void Init(); // set update rate to motors - a value in hertz void set_update_rate( uint16_t speed_hz ); // enable - starts allowing signals to be sent to motors virtual void enable(); // output_test - spin a motor at the pwm value specified // motor_seq is the motor's sequence number from 1 to the number of motors on the frame // pwm value is an actual pwm value that will be output, normally in the range of 1000 ~ 2000 virtual void output_test(uint8_t motor_seq, int16_t pwm); // output_min - sends minimum values out to the motors virtual void output_min(); // get_motor_mask - returns a bitmask of which outputs are being used for motors or servos (1 means being used) // this can be used to ensure other pwm outputs (i.e. for servos) do not conflict virtual uint16_t get_motor_mask(); protected: // output - sends commands to the motors void output_armed_stabilizing(); void output_armed_not_stabilizing(); void output_disarmed(); RC_Channel& _rc_tail; // REV parameter used from this channel to determine direction of tail servo movement }; #endif // AP_MOTORSTRI
{ "content_hash": "17d1a3aa5abe4e48a8c377d700f9291e", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 192, "avg_line_length": 41.575, "alnum_prop": 0.6380036079374625, "repo_name": "Yndal/ArduPilot-SensorPlatform", "id": "9ec9a0cedd5bd75b8df7e6aa165e344844184646", "size": "2136", "binary": false, "copies": "14", "ref": "refs/heads/master", "path": "ardupilot/libraries/AP_Motors/AP_MotorsTri.h", "mode": "33188", "license": "mit", "language": [ { "name": "Arduino", "bytes": "12462" }, { "name": "Assembly", "bytes": "799628" }, { "name": "Batchfile", "bytes": "68199" }, { "name": "C", "bytes": "55034159" }, { "name": "C#", "bytes": "9917" }, { "name": "C++", "bytes": "13663242" }, { "name": "CMake", "bytes": "13681" }, { "name": "CSS", "bytes": "6280" }, { "name": "EmberScript", "bytes": "19928" }, { "name": "GDB", "bytes": "744" }, { "name": "Groff", "bytes": "43610" }, { "name": "HTML", "bytes": "9849" }, { "name": "Io", "bytes": "286" }, { "name": "Java", "bytes": "4394945" }, { "name": "Lex", "bytes": "13878" }, { "name": "Lua", "bytes": "87871" }, { "name": "M4", "bytes": "15467" }, { "name": "Makefile", "bytes": "8807880" }, { "name": "Matlab", "bytes": "185473" }, { "name": "Objective-C", "bytes": "24203" }, { "name": "OpenEdge ABL", "bytes": "12712" }, { "name": "PHP", "bytes": "484" }, { "name": "Pascal", "bytes": "253102" }, { "name": "Perl", "bytes": "17902" }, { "name": "Processing", "bytes": "168008" }, { "name": "Python", "bytes": "1785059" }, { "name": "Ruby", "bytes": "7108" }, { "name": "Scilab", "bytes": "1502" }, { "name": "Shell", "bytes": "1276765" }, { "name": "Yacc", "bytes": "30289" } ], "symlink_target": "" }
<?php /** * Created by PhpStorm. * User: KRONOS * Date: 3/5/2017 * Time: 01:33 */ namespace app\models; use app\components\Constants; use app\modules\user\models\AuthenticationModel; use app\modules\user\models\ProfileModel; use yii\web\IdentityInterface; class LoginModel extends AuthenticationModel implements IdentityInterface { //public $LOGIN_ID; //public $EMAIL_ADDRESS; //public $ACCOUNT_AUTH_KEY; //public $PASSWORD_RESET_TOKEN; public $passwordHashCost = 13; public function rules() { return [ [['USER_ID', 'PASSWORD'], 'required'], ]; } /* authentication classes here */ /** * @inheritdoc */ public static function findIdentity($id) { return static::findOne($id); } /** * @inheritdoc */ public static function findIdentityByAccessToken($token, $type = null) { return static::findOne(['ACCESS_TOKEN' => $token]); } /** * @inheritdoc */ public function getId() { return $this->getPrimaryKey(); } /** * @inheritdoc * @return string */ public function getAuthKey() { return $this->ACCOUNT_AUTH_KEY; } /** * @inheritdoc * @param $username * @return null|static */ public static function findByUsername($username) { /* @var $userModel ProfileModel */ $account_found = null; //$userModel = UserProfile::findOne(['USER_NAME' => $username, 'EMAIL_ADDRESS'=>$username]); $userModel = ProfileModel::find() ->select(['USER_ID', 'USER_NAME'])//select only specific fields ->where(['USER_NAME' => $username]) ->orWhere(['EMAIL_ADDRESS' => $username]) //->andWhere(['ACCOUNT_STATUS' => Constants::NOT_ACTIVATED]) ->one(); if ($userModel != null) { $account_found = static::findOne(['USER_ID' => $userModel->USER_ID]); } return $account_found; } /** * @inheritdoc * @param $authKey * @return bool */ public function validateAuthKey($authKey) { return $this->getAuthKey() === $authKey; } /** * Password validation during login * @param $password * @return bool */ public function validatePassword($password) { return $this->PASSWORD === sha1($password); } public function setPassword($password) { $this->PASSWORD = Security::generatePasswordHash($password); } public function getPassword() { return $this->AUTHENTICATION_ID; } /** * Generates a password reset token */ public function generatePasswordResetToken() { $this->PASSWORD_RESET_TOKEN = Security::generateRandomKey() . '_' . time(); } /** * Removes password reset token */ public function removePasswordResetToken() { $this->PASSWORD_RESET_TOKEN = null; } //fields to return common stuff public function getUsername() { return $this->uSER->USER_NAME; } public function getFullNames() { return $this->uSER->SURNAME; } public function getEmailAddress() { return $this->uSER->EMAIL_ADDRESS; } }
{ "content_hash": "62136fa6b61fe363cf413344c85ba34c", "timestamp": "", "source": "github", "line_count": 152, "max_line_length": 100, "avg_line_length": 21.70394736842105, "alnum_prop": 0.5689602909972719, "repo_name": "fatelord/esda-portal", "id": "ca67579f9f1fbafde32fbd32577c5ee354cf3c1a", "size": "3299", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "models/LoginModel.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "200" }, { "name": "Batchfile", "bytes": "1030" }, { "name": "CSS", "bytes": "1842" }, { "name": "PHP", "bytes": "189690" } ], "symlink_target": "" }
require('coffee-script/register'); module.exports = require('./src/configuration-generator');
{ "content_hash": "2d796d16b91093e9867e8f8428952165", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 58, "avg_line_length": 31.666666666666668, "alnum_prop": 0.7578947368421053, "repo_name": "octoblu/nanocyte-configuration-generator", "id": "82aa77c295780716957f567b894d3f917ad62ee7", "size": "95", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CoffeeScript", "bytes": "63703" }, { "name": "JavaScript", "bytes": "95" }, { "name": "Shell", "bytes": "533" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution PIVersion="1.0.0.0" href="http://devinfo/sites/sdk/netengdt/NetEngDtSample/Forms/template.xsn" language="en-us" name="urn:schemas-microsoft-com:office:infopath:NETEngDtSample:" solutionVersion="9.4.0.667" productVersion="11.0.8034" ?><?mso-application progid="InfoPath.Document"?><esri_sdk_sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"> <title>Clonable object</title> <purpose><div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">This sample demonstrates a clonable object that implements the IClone interface. This sample supplements the "Implement cloning" topic (refer to the "See Also" link at the bottom of this sample). This sample creates an instance of a user-defined clonable object that has managed and unmanaged class members, then the test application clones the object, and reports the values of class members from original and cloned objects in a console window.</div></purpose> <development_license> <license> <name>Engine Developer Kit</name> <extension> </extension> </license> <license> <name>ArcGIS Desktop Basic</name> <extension> </extension> </license> <license> <name>ArcGIS Desktop Standard</name> <extension> </extension> </license> <license> <name>ArcGIS Desktop Advanced</name> <extension> </extension> </license> </development_license> <deployment_license> <license> <name>Engine</name> <extension> </extension> </license> <license> <name>ArcGIS Desktop Basic</name> <extension> </extension> </license> <license> <name>ArcGIS Desktop Standard</name> <extension> </extension> </license> <license> <name>ArcGIS Desktop Advanced</name> <extension> </extension> </license> </deployment_license> <min_version>10.0</min_version> <min_sp/> <max_version> </max_version> <max_sp/> <data_paths> <data_path/> </data_paths> <requirements> <requires> </requires> </requirements> <file_section> <files lang="CSharp"> <file> <filename>ClonableObjClass.cs</filename> <description>Implementation file of the ClonableObject.</description> <viewable_code>true</viewable_code> </file> <file> <filename>TestApp/LicenseInitializer.cs</filename> <description>ArcGIS license initialization class implementation.</description> <viewable_code>true</viewable_code> </file> <file> <filename>TestApp/Program.cs</filename> <description>Test application's main entry point.</description> <viewable_code>true</viewable_code> </file> <file> <filename>TestApp/TestClass.cs</filename> <description>Test class that creates and clones the clonable object.</description> <viewable_code>true</viewable_code> </file> </files> <files lang="VBNet"> <file> <filename>ClonableObjClass.vb</filename> <description>Implementation file of the ClonableObject.</description> <viewable_code>true</viewable_code> </file> <file> <filename>TestApp/LicenseInitializer.vb</filename> <description>ArcGIS license initialization class implementation.</description> <viewable_code>true</viewable_code> </file> <file> <filename>TestApp/Program.vb</filename> <description>Test application's main entry point.</description> <viewable_code>true</viewable_code> </file> <file> <filename>TestApp/TestClass.vb</filename> <description>Test class that creates and clones the clonable object.</description> <viewable_code>true</viewable_code> </file> </files> </file_section> <how_to_use_section> <how_to_use> <how_to_use_steps> <step>Start Visual Studio and open the solution.</step> <step>Build the solution to make the ClonableObject class library and the TestApp test application.</step> <step>Right-click the project and choose Set as Startup Project to ensure the TestApp project is the startup project for the solution.</step> <step>Press F5 to start the application (review the messages that show in the console window).</step> </how_to_use_steps> </how_to_use> </how_to_use_section> <related_topics> <topic> <topic_display>Implementing cloning</topic_display> <topic_link>9915ff7d-f119-47ed-b381-cf7dded5cd93</topic_link> </topic> </related_topics> <content_area_tags> </content_area_tags> <indexing_tags> <existing_tag>Cloning</existing_tag> </indexing_tags> <guid>ccdea95b-0685-4127-a140-fcb4680f15fa</guid> <content_management> <owner>Jianxia Song</owner> <tech_reviewer>Yaron Fine</tech_reviewer> <status>SDK inclusion completed</status> <sdk_inclusion_complete> <NET>true</NET> <JAVA>false</JAVA> <CPP>false</CPP> <XO>false</XO> </sdk_inclusion_complete> <requested_tocs> <desktop>true</desktop> <engine>true</engine> <server>false</server> <net_ide_integration>false</net_ide_integration> <xo>false</xo> </requested_tocs> <applied_tocs> <desktop>true</desktop> <engine>true</engine> <server>false</server> <net_ide_integration>false</net_ide_integration> <xo>false</xo> </applied_tocs> <last_updated_date>2010-02-16</last_updated_date> <last_updated_time>11:48:30</last_updated_time> <copyediting> <last_copyedit_date>2010-02-16</last_copyedit_date> <last_copyedit_time>11:49:38</last_copyedit_time> <copyeditor>mine3384</copyeditor> </copyediting> <edits> <editing_section> <editor_name>kyli4140</editor_name> <edit_date>2008-11-17</edit_date> <edit_time>15:38:41</edit_time> <edit_notes>Form brought into StarTeam. For previous notes and history see the SharePoint site at <a href="" xmlns="http://www.w3.org/1999/xhtml">http://devinfo/sites/ArcGISNetSDK/default.aspx</a> as well as the files in the ArcObjects VSS in Samples NET.</edit_notes> </editing_section> <editing_section> <editor_name>mine3384</editor_name> <edit_date>2010-02-16</edit_date> <edit_time>11:49:34</edit_time> <edit_notes>Edited. SDK inclusion requested.</edit_notes> </editing_section></edits> </content_management> <current_user>kyli4140</current_user> <sdk>NETEngDt</sdk> <doc_type>Sample</doc_type> </esri_sdk_sample>
{ "content_hash": "763f6c62889abbf61f21ee88d375a6f0", "timestamp": "", "source": "github", "line_count": 177, "max_line_length": 602, "avg_line_length": 38.909604519774014, "alnum_prop": 0.661826629882387, "repo_name": "Esri/arcobjects-sdk-community-samples", "id": "335eab6d04cb58cebdce213446ae03459797dcfa", "size": "6891", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Net/SDK_General/ClonableObject/ReadMe.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "17067" }, { "name": "C#", "bytes": "7769223" }, { "name": "C++", "bytes": "454756" }, { "name": "HTML", "bytes": "6209" }, { "name": "JavaScript", "bytes": "3064" }, { "name": "Makefile", "bytes": "570" }, { "name": "Objective-C", "bytes": "2417" }, { "name": "Visual Basic .NET", "bytes": "5250403" }, { "name": "XSLT", "bytes": "73678" } ], "symlink_target": "" }
<div class="commune_descr limited"> <p> Caubon-Saint-Sauveur est un village géographiquement positionné dans le département de Lot-et-Garonne en Aquitaine. Elle comptait 235 habitants en 2008.</p> <p>Le parc d'habitations, à Caubon-Saint-Sauveur, était réparti en 2011 en un appartements et 123 maisons soit un marché relativement équilibré.</p> <p>À proximité de Caubon-Saint-Sauveur sont situées les communes de <a href="{{VLROOT}}/immobilier/saint-geraud_47245/">Saint-Géraud</a> à 3&nbsp;km, 67 habitants, <a href="{{VLROOT}}/immobilier/beaupuy_47024/">Beaupuy</a> située à 6&nbsp;km, 1&nbsp;294 habitants, <a href="{{VLROOT}}/immobilier/saint-vivien-de-monsegur_33491/">Saint-Vivien-de-Monségur</a> à 5&nbsp;km, 376 habitants, <a href="{{VLROOT}}/immobilier/saint-pierre-sur-dropt_47271/">Saint-Pierre-sur-Dropt</a> localisée à 6&nbsp;km, 254 habitants, <a href="{{VLROOT}}/immobilier/castelnau-sur-gupie_47056/">Castelnau-sur-Gupie</a> située à 5&nbsp;km, 786 habitants, <a href="{{VLROOT}}/immobilier/taillecavat_33520/">Taillecavat</a> localisée à 6&nbsp;km, 290 habitants, entre autres. De plus, Caubon-Saint-Sauveur est située à seulement dix&nbsp;km de <a href="{{VLROOT}}/immobilier/marmande_47157/">Marmande</a>.</p> <p>Si vous pensez venir habiter à Caubon-Saint-Sauveur, vous pourrez aisément trouver une maison à vendre. </p> </div>
{ "content_hash": "f633dc495c827f28a8886917b897156c", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 148, "avg_line_length": 80.41176470588235, "alnum_prop": 0.7439648866130212, "repo_name": "donaldinou/frontend", "id": "a2d50494b22d4c835c790dbe40329012705df0df", "size": "1396", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Viteloge/CoreBundle/Resources/descriptions/47059.html", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "3073" }, { "name": "CSS", "bytes": "111338" }, { "name": "HTML", "bytes": "58634405" }, { "name": "JavaScript", "bytes": "88564" }, { "name": "PHP", "bytes": "841919" } ], "symlink_target": "" }
package com.elphin.framework.util.date; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.*; /** Building block class for an immutable date-time, with no time zone. <P> This class is provided as an alternative to java.util.{@link java.util.Date}. <P>This class can hold : <ul> <li>a date-and-time : <tt>1958-03-31 18:59:56.123456789</tt> <li>a date only : <tt>1958-03-31</tt> <li>a time only : <tt>18:59:56.123456789</tt> </ul> <P> <a href='#Examples'>Examples</a><br> <a href='#JustificationForThisClass'>Justification For This Class</a><br> <a href='#DatesAndTimesInGeneral'>Dates and Times In General</a><br> <a href='#TheApproachUsedByThisClass'>The Approach Used By This Class</a><br> <a href='#TwoSetsOfOperations'>Two Sets Of Operations</a><br> <a href='#ParsingDateTimeAcceptedFormats'>Parsing DateTime - Accepted Formats</a><br> <a href='#FormattingLanguage'>Mini-Language for Formatting</a><br> <a href='#PassingDateTimeToTheDatabase'>Passing DateTime Objects to the Database</a> <a name='Examples'></a> <h3> Examples</h3> Some quick examples of using this class : <PRE> DateTime dateAndTime = new DateTime("2010-01-19 23:59:59"); //highest precision is nanosecond, not millisecond: DateTime dateAndTime = new DateTime("2010-01-19 23:59:59.123456789"); DateTime dateOnly = new DateTime("2010-01-19"); DateTime timeOnly = new DateTime("23:59:59"); DateTime dateOnly = DateTime.forDateOnly(2010,01,19); DateTime timeOnly = DateTime.forTimeOnly(23,59,59,0); DateTime dt = new DateTime("2010-01-15 13:59:15"); boolean leap = dt.isLeapYear(); //false dt.getNumDaysInMonth(); //31 dt.getStartOfMonth(); //2010-01-01, 00:00:00 dt.getEndOfDay(); //2010-01-15, 23:59:59 dt.format("YYYY-MM-DD"); //formats as '2010-01-15' dt.plusDays(30); //30 days after Jan 15 dt.numDaysFrom(someDate); //returns an int dueDate.leftTop(someDate); //less-than dueDate.lteq(someDate); //less-than-or-equal-to DateTime.now(aTimeZone); DateTime.today(aTimeZone); DateTime fromMilliseconds = DateTime.forInstant(31313121L, aTimeZone); birthday.isInFuture(aTimeZone); </PRE> <a name='JustificationForThisClass'></a> <h3> Justification For This Class</h3> The fundamental reasons why this class exists are : <ul> <li>to avoid the embarrassing number of distasteful inadequacies in the JDK's date classes <li>to oppose the very "mental model" of the JDK's date-time classes with something significantly simpler </ul> <a name='MentalModels'></a> <P><b>There are 2 distinct mental models for date-times, and they don't play well together</b> : <ul> <li><b>timeline</b> - an instant on the timeline, as a physicist would picture it, representing the number of seconds from some epoch. In this picture, such a date-time can have many, many different representations according to calendar and time zone. That is, the date-time, <i> as seen and understood by the end user</i>, can change according to "who's looking at it". It's important to understand that a timeline instant, before being presented to the user, <i>must always have an associated time zone - even in the case of a date only, with no time.</i> <li><b>everyday</b> - a date-time in the Gregorian calendar, such as '2009-05-25 18:25:00', which never changes according to "who's looking at it". Here, <i>the time zone is always both implicit and immutable</i>. </ul> <P>The problem is that java.util.{@link java.util.Date} uses <i>only</i> the timeline style, while <i>most</i> users, <i>most</i> of the time, think in terms of the <i>other</i> mental model - the 'everday' style. In particular, there are a large number of applications which experience <a href='http://martinfowler.com/bliki/TimeZoneUncertainty.html'>problems with time zones</a>, because the timeline model is used instead of the everday model. <i>Such problems are often seen by end users as serious bugs, because telling people the wrong date or time is often a serious issue.</i> <b>These problems make you look stupid.</b> <a name='JDKDatesMediocre'></a> <h4>Date Classes in the JDK are Mediocre</h4> The JDK's classes related to dates are widely regarded as frustrating to work with, for various reasons: <ul> <li>mistakes regarding time zones are very common <li>month indexes are 0-based, leading to off-by-one errors <li>difficulty of calculating simple time intervals <li><tt>java.util.Date</tt> is mutable, but 'building block' classes should be immutable <li>numerous other minor nuisances </ul> <a name='JodaTimeDrawbacks'></a> <h4>Joda Time Has Drawbacks As Well</h4> The <a href='http://joda-time.sourceforge.net/'>Joda Time</a> library is used by some programmers as an alternative to the JDK classes. Joda Time has the following drawbacks : <ul> <li>it limits precision to milliseconds. Database timestamp values almost always have a precision of microseconds or even nanoseconds. This is a serious defect: <b>a library should never truncate your data, for any reason.</b> <li>it's large, with well over 100 items in its <a href='http://joda-time.sourceforge.net/api-release/index.html'>javadoc</a> <li>in order to stay current, it needs to be manually updated occasionally with fresh time zone data <li>it has mutable versions of classes <li>it always coerces March 31 + 1 Month to April 30 (for example), without giving you any choice in the matter <li>some databases allow invalid date values such as '0000-00-00', but Joda Time doesn't seem to be able to handle them </ul> <a name='DatesAndTimesInGeneral'></a> <h3>Dates and Times in General</h3> <h4>Civil Timekeeping Is Complex</h4> Civil timekeeping is a byzantine hodge-podge of arcane and arbitrary rules. Consider the following : <ul> <li>months have varying numbers of days <li>one month (February) has a length which depends on the year <li>not all years have the same number of days <li>time zone rules spring forth arbitrarily from the fecund imaginations of legislators <li>summer hours mean that an hour is 'lost' in the spring, while another hour must repeat itself in the autumn, during the switch back to normal time <li>summer hour logic varies widely across various jurisdictions <li>the cutover from the Julian calendar to the Gregorian calendar happened at different times in different places, which causes a varying number of days to be 'lost' during the cutover <li>occasional insertion of leap seconds are used to ensure synchronization with the rotating Earth (whose speed of rotation is gradually slowing down, in an irregular way) <li>there is no year 0 (1 BC is followed by 1 AD), except in the reckoning used by astronomers </ul> <h4>How Databases Treat Dates</h4> <b>Most databases model dates and times using the Gregorian Calendar in an aggressively simplified form</b>, in which : <ul> <li>the Gregorian calendar is extended back in time as if it was in use previous to its inception (the 'proleptic' Gregorian calendar) <li>the transition between Julian and Gregorian calendars is entirely ignored <li>leap seconds are entirely ignored <li>summer hours are entirely ignored <li>often, even time zones are ignored, in the sense that <i>the underlying database column doesn't usually explicitly store any time zone information</i>. </ul> <P><a name='NoTimeZoneInDb'></a>The final point requires elaboration. Some may doubt its veracity, since they have seen date-time information "change time zone" when retrieved from a database. But this sort of change is usually applied using logic which is <i>external</i> to the data stored in the particular column. <P> For example, the following items might be used in the calculation of a time zone difference : <ul> <li>time zone setting for the client (or JDBC driver) <li>time zone setting for the client's connection to the database server <li>time zone setting of the database server <li>time zone setting of the host where the database server resides </ul> <P>(Note as well what's <i>missing</i> from the above list: your own application's logic, and the user's time zone preference.) <P>When an end user sees such changes to a date-time, all they will say to you is <i>"Why did you change it? That's not what I entered"</i> - and this is a completely valid question. Why <i>did</i> you change it? Because you're using the timeline model instead of the everyday model. Perhaps you're using a inappropriate abstraction for what the user really wants. <a name='TheApproachUsedByThisClass'></a> <h3>The Approach Used By This Class</h3> This class takes the following design approach : <ul> <li>it models time in the "everyday" style, not in the "timeline" style (see <a href='#MentalModels'>above</a>) <li>its precision matches the highest precision used by databases (nanosecond) <li>it uses only the proleptic Gregorian Calendar, over the years <tt>1..9999</tt> <li><i>it ignores all non-linearities</i>: summer-hours, leap seconds, and the cutover from Julian to Gregorian calendars <li><i>it ignores time zones</i>. Most date-times are stored in columns whose type does <i>not</i> include time zone information (see note <a href='#NoTimeZoneInDb'>above</a>). <li>it has (very basic) support for wonky dates, such as the magic value <tt>0000-00-00</tt> used by MySQL <li>it's immutable <li>it lets you choose among 4 policies for 'day overflow' conditions during calculations </ul> <P>Even though the above list may appear restrictive, it's very likely true that <tt>DateTime</tt> can handle the dates and times you're currently storing in your database. <a name='TwoSetsOfOperations'></a> <h3>Two Sets Of Operations</h3> This class allows for 2 sets of operations: a few "basic" operations, and many "computational" ones. <P><b>Basic operations</b> model the date-time as a simple, dumb String, with absolutely no parsing or substructure. This will always allow your application to reflect exactly what is in a <tt>ResultSet</tt>, with absolutely no modification for time zone, locale, or for anything else. <P>This is meant as a back-up, to ensure that <i>your application will always be able to, at the very least, display a date-time exactly as it appears in your <tt>ResultSet</tt> from the database</i>. This style is particularly useful for handling invalid dates such as <tt>2009-00-00</tt>, which can in fact be stored by some databases (MySQL, for example). It can also be used to handle unusual items, such as MySQL's <a href='http://dev.mysql.com/doc/refman/5.1/en/time.html'>TIME</a> datatype. <P>The basic operations are represented by {@link #DateTime(String)}, {@link #toString()}, and {@link #getRawDateString()}. <P><b>Computational operations</b> allow for calculations and formatting. If a computational operation is performed by this class (for example, if the caller asks for the month), then any underlying date-time String must be parseable by this class into its components - year, month, day, and so on. Computational operations require such parsing, while the basic operations do not. Almost all methods in this class are categorized as computational operations. <a name="ParsingDateTimeAcceptedFormats"></a> <h3>Parsing DateTime - Accepted Formats</h3> The {@link #DateTime(String)} constructor accepts a <tt>String</tt> representation of a date-time. The format of the String can take a number of forms. When retrieving date-times from a database, the majority of cases will have little problem in conforming to these formats. If necessary, your SQL statements can almost always use database formatting functions to generate a String whose format conforms to one of the many formats accepted by the {@link #DateTime(String)} constructor. <a name="FormattingLanguage"></a> <h3>Mini-Language for Formatting</h3> This class defines a simple mini-language for formatting a <tt>DateTime</tt>, used by the various <tt>format</tt> methods. <P>The following table defines the symbols used by this mini-language, and the corresponding text they would generate given the date: <PRE>1958-04-09 Wednesday, 03:05:06.123456789 AM</PRE> in an English Locale. (Items related to date are in upper case, and items related to time are in lower case.) <P><table border='1' cellpadding='3' cellspacing='0'> <tr><th>Format</th><th>Output</th> <th>Description</th><th>Needs Locale?</th></tr> <tr><td>YYYY</td> <td>1958</td> <td>Year</td><td>...</td></tr> <tr><td>YY</td> <td>58</td> <td>Year without century</td><td>...</td></tr> <tr><td>M</td> <td>4</td> <td>Month 1..12</td><td>...</td></tr> <tr><td>MM</td> <td>04</td> <td>Month 01..12</td><td>...</td></tr> <tr><td>MMM</td> <td>Apr</td> <td>Month Jan..Dec</td><td>Yes</td></tr> <tr><td>MMMM</td> <td>April</td> <td>Month January..December</td><td>Yes</td></tr> <tr><td>DD</td> <td>09</td> <td>Day 01..31</td><td>...</td></tr> <tr><td>D</td> <td>9</td> <td>Day 1..31</td><td>...</td></tr> <tr><td>WWWW</td> <td>Wednesday</td> <td>Weekday Sunday..Saturday</td><td>Yes</td></tr> <tr><td>WWW</td> <td>Wed</td> <td>Weekday Sun..Sat</td><td>Yes</td></tr> <tr><td>hh</td> <td>03</td> <td>Hour 01..23</td><td>...</td></tr> <tr><td>h</td> <td>3</td> <td>Hour 1..23</td><td>...</td></tr> <tr><td>hh12</td> <td>03</td> <td>Hour 01..12</td><td>...</td></tr> <tr><td>h12</td> <td>3</td> <td>Hour 1..12</td><td>...</td></tr> <tr><td>a</td> <td>AM</td> <td>AM/PM Indicator</td><td>Yes</td></tr> <tr><td>mm</td> <td>05</td> <td>Minutes 01..59</td><td>...</td></tr> <tr><td>m</td> <td>5</td> <td>Minutes 1..59</td><td>...</td></tr> <tr><td>ss</td> <td>06</td> <td>Seconds 01..59</td><td>...</td></tr> <tr><td>s</td> <td>6</td> <td>Seconds 1..59</td><td>...</td></tr> <tr><td>f</td> <td>1</td> <td>Fractional Seconds, 1 decimal</td><td>...</td></tr> <tr><td>ff</td> <td>12</td> <td>Fractional Seconds, 2 decimals</td><td>...</td></tr> <tr><td>fff</td> <td>123</td> <td>Fractional Seconds, 3 decimals</td><td>...</td></tr> <tr><td>ffff</td> <td>1234</td> <td>Fractional Seconds, 4 decimals</td><td>...</td></tr> <tr><td>fffff</td> <td>12345</td> <td>Fractional Seconds, 5 decimals</td><td>...</td></tr> <tr><td>ffffff</td> <td>123456</td> <td>Fractional Seconds, 6 decimals</td><td>...</td></tr> <tr><td>fffffff</td> <td>1234567</td> <td>Fractional Seconds, 7 decimals</td><td>...</td></tr> <tr><td>ffffffff</td> <td>12345678</td> <td>Fractional Seconds, 8 decimals</td><td>...</td></tr> <tr><td>fffffffff</td> <td>123456789</td> <td>Fractional Seconds, 9 decimals</td><td>...</td></tr> <tr><td>|</td> <td>(no example)</td> <td>Escape characters</td><td>...</td></tr> </table> <P>As indicated above, some of these symbols can only be used with an accompanying <tt>Locale</tt>. In general, if the output is text, not a number, then a <tt>Locale</tt> will be needed. For example, 'September' is localizable text, while '09' is a numeric representation, which doesn't require a <tt>Locale</tt>. Thus, the symbol 'MM' can be used without a <tt>Locale</tt>, while 'MMMM' and 'MMM' both require a <tt>Locale</tt>, since they generate text, not a number. <P>The fractional seconds 'f' doesn't perform any rounding. <P>The escape character '|' allows you to insert arbitrary text. The escape character always appears in pairs; these pairs define a range of characters over which the text will not be interpreted using the special format symbols defined above. <P>Here are some practical examples of using the above formatting symbols: <table border='1' cellpadding='3' cellspacing='0'> <tr><th>Format</th><th>Output</th></tr> <tr><td>YYYY-MM-DD hh:mm:ss.fffffffff a</td> <td>1958-04-09 03:05:06.123456789 AM</td></tr> <tr><td>YYYY-MM-DD hh:mm:ss.fff a</td> <td>1958-04-09 03:05:06.123 AM</td></tr> <tr><td>YYYY-MM-DD</td> <td>1958-04-09</td></tr> <tr><td>hh:mm:ss.fffffffff</td> <td>03:05:06.123456789</td></tr> <tr><td>hh:mm:ss</td> <td>03:05:06</td></tr> <tr><td>YYYY-M-D h:m:s</td> <td>1958-4-9 3:5:6</td></tr> <tr><td>WWWW, MMMM D, YYYY</td> <td>Wednesday, April 9, 1958</td></tr> <tr><td>WWWW, MMMM D, YYYY |at| D a</td> <td>Wednesday, April 9, 1958 at 3 AM</td></tr> </table> <P>In the last example, the escape characters are needed only because 'a', the formating symbol for am/pm, appears in the text. <a name='PassingDateTimeToTheDatabase'></a> <h3>Passing DateTime Objects to the Database</h3> When a <tt>DateTime</tt> is passed as a parameter to an SQL statement, the <tt>DateTime</tt> can always be formatted into a <tt>String</tt> of a form accepted by the database, using one of the <tt>format</tt> methods. */ public final class DateTime implements Comparable<DateTime>, Serializable { /** The seven parts of a <tt>DateTime</tt> object. The <tt>DAY</tt> represents the day of the month (1..31), not the weekday. */ public enum Unit { YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, NANOSECONDS; } /** Policy for treating 'day-of-the-month overflow' conditions encountered during some date calculations. <P>Months are different from other units of time, since the length of a month is not fixed, but rather varies with both month and year. This leads to problems. Take the following simple calculation, for example : <PRE>May 31 + 1 month = ?</PRE> <P>What's the answer? Since there is no such thing as June 31, the result of this operation is inherently ambiguous. This <tt>DayOverflow</tt> enumeration lists the various policies for treating such situations, as supported by <tt>DateTime</tt>. <P>This table illustrates how the policies behave : <P><table BORDER="1" CELLPADDING="3" CELLSPACING="0"> <tr> <th>Date</th> <th>DayOverflow</th> <th>Result</th> </tr> <tr> <td>May 31 + 1 Month</td> <td>LastDay</td> <td>June 30</td> </tr> <tr> <td>May 31 + 1 Month</td> <td>FirstDay</td> <td>July 1</td> </tr> <tr> <td>December 31, 2001 + 2 Months</td> <td>Spillover</td> <td>March 3</td> </tr> <tr> <td>May 31 + 1 Month</td> <td>Abort</td> <td>RuntimeException</td> </tr> </table> */ public enum DayOverflow { /** Coerce the day to the last day of the month. */ LastDay, /** Coerce the day to the first day of the next month. */ FirstDay, /** Spillover the day into the next month. */ Spillover, /** Throw a RuntimeException. */ Abort; } /** Constructor taking a date-time as a String. <P> When this constructor is called, the underlying text can be in an absolutely arbitrary form, since it will not, initially, be parsed in any way. This policy of extreme leniency allows you to use dates in an arbitrary format, without concern over possible transformations of the date (time zone in particular), and without concerns over possibly bizarre content, such as '2005-00-00', as seen in some databases, such as MySQL. <P><i>However</i>, the moment you attempt to call <a href='#TwoSetsOfOperations'>almost any method</a> in this class, an attempt will be made to parse the given date-time string into its constituent parts. Then, if the date-time string does not match one of the example formats listed below, a <tt>RuntimeException</tt> will be thrown. <P>The full date format expected by this class is <tt>'YYYY-MM-YY hh:mm:ss.fffffffff'</tt>. All fields except for the fraction of a second have a fixed width. In addition, various portions of this format are also accepted by this class. <P>All of the following dates can be parsed by this class to make a <tt>DateTime</tt> : <ul> <li><tt>2009-12-31 00:00:00.123456789</tt> <li><tt>2009-12-31T00:00:00.123456789</tt> <li><tt>2009-12-31 00:00:00.12345678</tt> <li><tt>2009-12-31 00:00:00.1234567</tt> <li><tt>2009-12-31 00:00:00.123456</tt> <li><tt>2009-12-31 23:59:59.12345</tt> <li><tt>2009-01-31 16:01:01.1234</tt> <li><tt>2009-01-01 16:59:00.123</tt> <li><tt>2009-01-01 16:00:01.12</tt> <li><tt>2009-02-28 16:25:17.1</tt> <li><tt>2009-01-01 00:01:01</tt> <li><tt>2009-01-01T00:01:01</tt> <li><tt>2009-01-01 16:01</tt> <li><tt>2009-01-01 16</tt> <li><tt>2009-01-01</tt> <li><tt>2009-01</tt> <li><tt>2009</tt> <li><tt>0009</tt> <li><tt>9</tt> <li><tt>00:00:00.123456789</tt> <li><tt>00:00:00.12345678</tt> <li><tt>00:00:00.1234567</tt> <li><tt>00:00:00.123456</tt> <li><tt>23:59:59.12345</tt> <li><tt>01:59:59.1234</tt> <li><tt>23:01:59.123</tt> <li><tt>00:00:00.12</tt> <li><tt>00:59:59.1</tt> <li><tt>23:59:00</tt> <li><tt>23:00:10</tt> <li><tt>00:59</tt> </ul> <P>The range of each field is : <ul> <li>year: 1..9999 (leading zeroes optional) <li>month: 01..12 <li>day: 01..31 <li>hour: 00..23 <li>minute: 00..59 <li>second: 00..59 <li>nanosecond: 0..999999999 </ul> <P>Note that <b>database format functions</b> are an option when dealing with date formats. Since your application is always in control of the SQL used to talk to the database, you can, if needed, usually use database format functions to alter the format of dates returned in a <tt>ResultSet</tt>. */ public DateTime(String aDateTime) { fIsAlreadyParsed = false; if (aDateTime == null) { throw new IllegalArgumentException("String passed to DateTime constructor is null. You can use an empty string, but not a null reference."); } fDateTime = aDateTime; } /** Constructor taking each time unit explicitly. <P>Although all parameters are optional, many operations on this class require year-month-day to be present. @param aYear 1..9999, optional @param aMonth 1..12 , optional @param aDay 1..31, cannot exceed the number of days in the given month/year, optional @param aHour 0..23, optional @param aMinute 0..59, optional @param aSecond 0..59, optional @param aNanoseconds 0..999,999,999, optional (allows for databases that store timestamps up to nanosecond precision). */ public DateTime(Integer aYear, Integer aMonth, Integer aDay, Integer aHour, Integer aMinute, Integer aSecond, Integer aNanoseconds) { fIsAlreadyParsed = true; fYear = aYear; fMonth = aMonth; fDay = aDay; fHour = aHour; fMinute = aMinute; fSecond = aSecond; fNanosecond = aNanoseconds; validateState(); } /** Factory method returns a <tt>DateTime</tt> having year-month-day only, with no time portion. <P>See {@link #DateTime(Integer, Integer, Integer, Integer, Integer, Integer, Integer)} for constraints on the parameters. */ public static DateTime forDateOnly(Integer aYear, Integer aMonth, Integer aDay) { return new DateTime(aYear, aMonth, aDay, null, null, null, null); } /** Factory method returns a <tt>DateTime</tt> having hour-minute-second-nanosecond only, with no date portion. <P>See {@link #DateTime(Integer, Integer, Integer, Integer, Integer, Integer, Integer)} for constraints on the parameters. */ public static DateTime forTimeOnly(Integer aHour, Integer aMinute, Integer aSecond, Integer aNanoseconds) { return new DateTime(null, null, null, aHour, aMinute, aSecond, aNanoseconds); } /** Constructor taking a millisecond value and a {@link TimeZone}. This constructor may be use to convert a <tt>java.util.Date</tt> into a <tt>DateTime</tt>. <P>Unfortunately, only millisecond precision is possible for this method. @param aMilliseconds must be in the range corresponding to the range of dates supported by this class (year 1..9999); corresponds to a millisecond instant on the timeline, measured from the epoch used by {@link java.util.Date}. */ public static DateTime forInstant(long aMilliseconds, TimeZone aTimeZone) { Calendar calendar = new GregorianCalendar(aTimeZone); calendar.setTimeInMillis(aMilliseconds); int year = calendar.get(Calendar.YEAR); int month = calendar.get(Calendar.MONTH) + 1; // 0-based int day = calendar.get(Calendar.DAY_OF_MONTH); int hour = calendar.get(Calendar.HOUR_OF_DAY); // 0..23 int minute = calendar.get(Calendar.MINUTE); int second = calendar.get(Calendar.SECOND); int milliseconds = calendar.get(Calendar.MILLISECOND); int nanoseconds = milliseconds * 1000 * 1000; return new DateTime(year, month, day, hour, minute, second, nanoseconds); } /** For the given time zone, return the corresponding time in milliseconds for this <tt>DateTime</tt>. <P>This method is meant to help you convert between a <tt>DateTime</tt> and the JDK's date-time classes, which are based on the combination of a time zone and a millisecond value from the Java epoch. <P>Since <tt>DateTime</tt> can go to nanosecond accuracy, the return value can lose precision. The nanosecond value is truncated to milliseconds, not rounded. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public long getMilliseconds(TimeZone aTimeZone){ Integer year = getYear(); Integer month = getMonth(); Integer day = getDay(); //coerce missing times to 0: Integer hour = getHour() == null ? 0 : getHour(); Integer minute = getMinute() == null ? 0 : getMinute(); Integer second = getSecond() == null ? 0 : getSecond(); Integer nanos = getNanoseconds() == null ? 0 : getNanoseconds(); Calendar calendar = new GregorianCalendar(aTimeZone); calendar.set(Calendar.YEAR, year); calendar.set(Calendar.MONTH, month-1); // 0-based calendar.set(Calendar.DAY_OF_MONTH, day); calendar.set(Calendar.HOUR_OF_DAY, hour); // 0..23 calendar.set(Calendar.MINUTE, minute); calendar.set(Calendar.SECOND, second); calendar.set(Calendar.MILLISECOND, nanos/1000000); return calendar.getTimeInMillis(); } /** Return the raw date-time String passed to the {@link #DateTime(String)} constructor. Returns <tt>null</tt> if that constructor was not called. See {@link #toString()} as well. */ public String getRawDateString() { return fDateTime; } /** Return the year, 1..9999. */ public Integer getYear() { ensureParsed(); return fYear; } /** Return the Month, 1..12. */ public Integer getMonth() { ensureParsed(); return fMonth; } /** Return the Day of the Month, 1..31. */ public Integer getDay() { ensureParsed(); return fDay; } /** Return the Hour, 0..23. */ public Integer getHour() { ensureParsed(); return fHour; } /** Return the Minute, 0..59. */ public Integer getMinute() { ensureParsed(); return fMinute; } /** Return the Second, 0..59. */ public Integer getSecond() { ensureParsed(); return fSecond; } /** Return the Nanosecond, 0..999999999. */ public Integer getNanoseconds() { ensureParsed(); return fNanosecond; } /** Return the Modified Julian Day Number. <P>The Modified Julian Day Number is defined by astronomers for simplifying the calculation of the number of days between 2 dates. Returns a monotonically increasing sequence number. Day 0 is November 17, 1858 00:00:00 (whose Julian Date was 2400000.5). <P>Using the Modified Julian Day Number instead of the Julian Date has 2 advantages: <ul> <li>it's a smaller number <li>it starts at midnight, not noon (Julian Date starts at noon) </ul> <P>Does not reflect any time portion, if present. <P>(In spite of its name, this method, like all other methods in this class, uses the proleptic Gregorian calendar - not the Julian calendar.) <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public Integer getModifiedJulianDayNumber() { ensureHasYearMonthDay(); int result = calculateJulianDayNumberAtNoon() - 1 - EPOCH_MODIFIED_JD; return result; } /** Return an index for the weekday for this <tt>DateTime</tt>. Returns 1..7 for Sunday..Saturday. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public Integer getWeekDay() { ensureHasYearMonthDay(); int dayNumber = calculateJulianDayNumberAtNoon() + 1; int index = dayNumber % 7; return index + 1; } /** Return an integer in the range 1..366, representing a count of the number of days from the start of the year. January 1 is counted as day 1. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public Integer getDayOfYear() { ensureHasYearMonthDay(); int k = isLeapYear() ? 1 : 2; Integer result = ((275 * fMonth) / 9) - k * ((fMonth + 9) / 12) + fDay - 30; // integer division return result; } /** Returns true only if the year is a leap year. <P>Requires year to be present; if not, a runtime exception is thrown. */ public Boolean isLeapYear() { ensureParsed(); Boolean result = null; if (isPresent(fYear)) { result = isLeapYear(fYear); } else { throw new MissingItem("Year is absent. Cannot determine if leap year."); } return result; } /** Return the number of days in the month which holds this <tt>DateTime</tt>. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public int getNumDaysInMonth() { ensureHasYearMonthDay(); return getNumDaysInMonth(fYear, fMonth); } /** Return The week index of this <tt>DateTime</tt> with respect to a given starting <tt>DateTime</tt>. <P>The single parameter to this method defines first day of week number 1. See {@link #getWeekIndex()} as well. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public Integer getWeekIndex(DateTime aStartingFromDate) { ensureHasYearMonthDay(); aStartingFromDate.ensureHasYearMonthDay(); int diff = getModifiedJulianDayNumber() - aStartingFromDate.getModifiedJulianDayNumber(); return (diff / 7) + 1; // integer division } /** Return The week index of this <tt>DateTime</tt>, taking day 1 of week 1 as Sunday, January 2, 2000. <P>See {@link #getWeekIndex(DateTime)} as well, which takes an arbitrary date to define day 1 of week 1. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public Integer getWeekIndex() { DateTime start = DateTime.forDateOnly(2000, 1, 2); return getWeekIndex(start); } /** Return <tt>true</tt> only if this <tt>DateTime</tt> has the same year-month-day as the given parameter. Time is ignored by this method. <P> Requires year-month-day to be present, both for this <tt>DateTime</tt> and for <tt>aThat</tt>; if not, a runtime exception is thrown. */ public boolean isSameDayAs(DateTime aThat) { boolean result = false; ensureHasYearMonthDay(); aThat.ensureHasYearMonthDay(); result = (fYear.equals(aThat.fYear) && fMonth.equals(aThat.fMonth) && fDay.equals(aThat.fDay)); return result; } /** 'Less than' comparison. Return <tt>true</tt> only if this <tt>DateTime</tt> comes before the given parameter, according to {@link #compareTo(DateTime)}. */ public boolean lt(DateTime aThat) { return compareTo(aThat) < EQUAL; } /** 'Less than or equal to' comparison. Return <tt>true</tt> only if this <tt>DateTime</tt> comes before the given parameter, according to {@link #compareTo(DateTime)}, or this <tt>DateTime</tt> equals the given parameter. */ public boolean lteq(DateTime aThat) { return compareTo(aThat) < EQUAL || equals(aThat); } /** 'Greater than' comparison. Return <tt>true</tt> only if this <tt>DateTime</tt> comes after the given parameter, according to {@link #compareTo(DateTime)}. */ public boolean gt(DateTime aThat) { return compareTo(aThat) > EQUAL; } /** 'Greater than or equal to' comparison. Return <tt>true</tt> only if this <tt>DateTime</tt> comes after the given parameter, according to {@link #compareTo(DateTime)}, or this <tt>DateTime</tt> equals the given parameter. */ public boolean gteq(DateTime aThat) { return compareTo(aThat) > EQUAL || equals(aThat); } /** Return the smallest non-null time unit encapsulated by this <tt>DateTime</tt>. */ public Unit getPrecision() { ensureParsed(); Unit result = null; if (isPresent(fNanosecond)) { result = Unit.NANOSECONDS; } else if (isPresent(fSecond)) { result = Unit.SECOND; } else if (isPresent(fMinute)) { result = Unit.MINUTE; } else if (isPresent(fHour)) { result = Unit.HOUR; } else if (isPresent(fDay)) { result = Unit.DAY; } else if (isPresent(fMonth)) { result = Unit.MONTH; } else if (isPresent(fYear)) { result = Unit.YEAR; } return result; } /** Truncate this <tt>DateTime</tt> to the given precision. <P>The return value will have all items lower than the given precision simply set to <tt>null</tt>. In addition, the return value will not include any date-time String passed to the {@link #DateTime(String)} constructor. @param aPrecision takes any value <i>except</i> {@link Unit#NANOSECONDS} (since it makes no sense to truncate to the highest available precision). */ public DateTime truncate(Unit aPrecision) { ensureParsed(); DateTime result = null; if (Unit.NANOSECONDS == aPrecision) { throw new IllegalArgumentException("It makes no sense to truncate to nanosecond precision, since that's the highest precision available."); } else if (Unit.SECOND == aPrecision) { result = new DateTime(fYear, fMonth, fDay, fHour, fMinute, fSecond, null); } else if (Unit.MINUTE == aPrecision) { result = new DateTime(fYear, fMonth, fDay, fHour, fMinute, null, null); } else if (Unit.HOUR == aPrecision) { result = new DateTime(fYear, fMonth, fDay, fHour, null, null, null); } else if (Unit.DAY == aPrecision) { result = new DateTime(fYear, fMonth, fDay, null, null, null, null); } else if (Unit.MONTH == aPrecision) { result = new DateTime(fYear, fMonth, null, null, null, null, null); } else if (Unit.YEAR == aPrecision) { result = new DateTime(fYear, null, null, null, null, null, null); } return result; } /** Return <tt>true</tt> only if all of the given units are present in this <tt>DateTime</tt>. If a unit is <i>not</i> included in the argument list, then no test is made for its presence or absence in this <tt>DateTime</tt> by this method. */ public boolean unitsAllPresent(Unit... aUnits) { boolean result = true; ensureParsed(); for (Unit unit : aUnits) { if (Unit.NANOSECONDS == unit) { result = result && fNanosecond != null; } else if (Unit.SECOND == unit) { result = result && fSecond != null; } else if (Unit.MINUTE == unit) { result = result && fMinute != null; } else if (Unit.HOUR == unit) { result = result && fHour != null; } else if (Unit.DAY == unit) { result = result && fDay != null; } else if (Unit.MONTH == unit) { result = result && fMonth != null; } else if (Unit.YEAR == unit) { result = result && fYear != null; } } return result; } /** Return <tt>true</tt> only if this <tt>DateTime</tt> has a non-null values for year, month, and day. */ public boolean hasYearMonthDay() { return unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY); } /** Return <tt>true</tt> only if this <tt>DateTime</tt> has a non-null values for hour, minute, and second. */ public boolean hasHourMinuteSecond() { return unitsAllPresent(Unit.HOUR, Unit.MINUTE, Unit.SECOND); } /** Return <tt>true</tt> only if all of the given units are absent from this <tt>DateTime</tt>. If a unit is <i>not</i> included in the argument list, then no test is made for its presence or absence in this <tt>DateTime</tt> by this method. */ public boolean unitsAllAbsent(Unit... aUnits) { boolean result = true; ensureParsed(); for (Unit unit : aUnits) { if (Unit.NANOSECONDS == unit) { result = result && fNanosecond == null; } else if (Unit.SECOND == unit) { result = result && fSecond == null; } else if (Unit.MINUTE == unit) { result = result && fMinute == null; } else if (Unit.HOUR == unit) { result = result && fHour == null; } else if (Unit.DAY == unit) { result = result && fDay == null; } else if (Unit.MONTH == unit) { result = result && fMonth == null; } else if (Unit.YEAR == unit) { result = result && fYear == null; } } return result; } /** Return this <tt>DateTime</tt> with the time portion coerced to '00:00:00.000000000'. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public DateTime getStartOfDay() { ensureHasYearMonthDay(); return getStartEndDateTime(fDay, 0, 0, 0, 0); } /** Return this <tt>DateTime</tt> with the time portion coerced to '23:59:59.999999999'. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public DateTime getEndOfDay() { ensureHasYearMonthDay(); return getStartEndDateTime(fDay, 23, 59, 59, 999999999); } /** Return this <tt>DateTime</tt> with the time portion coerced to '00:00:00.000000000', and the day coerced to 1. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public DateTime getStartOfMonth() { ensureHasYearMonthDay(); return getStartEndDateTime(1, 0, 0, 0, 0); } /** Return this <tt>DateTime</tt> with the time portion coerced to '23:59:59.999999999', and the day coerced to the end of the month. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. */ public DateTime getEndOfMonth() { ensureHasYearMonthDay(); return getStartEndDateTime(getNumDaysInMonth(), 23, 59, 59, 999999999); } /** Create a new <tt>DateTime</tt> by adding an interval to this one. <P>See {@link #plusDays(Integer)} as well. <P>Changes are always applied by this class <i>in order of decreasing units of time</i>: years first, then months, and so on. After changing both the year and month, a check on the month-day combination is made before any change is made to the day. If the day exceeds the number of days in the given month/year, then (and only then) the given {@link DayOverflow} policy applied, and the day-of-the-month is adusted accordingly. <P>Afterwards, the day is then changed in the usual way, followed by the remaining items (hour, minute, second, and nanosecond). <P><em>The mental model for this method is very similar to that of a car's odometer.</em> When a limit is reach for one unit of time, then a rollover occurs for a neighbouring unit of time. <P>The returned value cannot come after <tt>9999-12-13 23:59:59</tt>. <P>This class works with <tt>DateTime</tt>'s having the following items present : <ul> <li>year-month-day and hour-minute-second (and optional nanoseconds) <li>year-month-day only. In this case, if a calculation with a time part is performed, that time part will be initialized by this class to 00:00:00.0, and the <tt>DateTime</tt> returned by this class will include a time part. <li>hour-minute-second (and optional nanoseconds) only. In this case, the calculation is done starting with the the arbitrary date <tt>0001-01-01</tt> (in order to remain within a valid state space of <tt>DateTime</tt>). </ul> @param aNumYears positive, required, in range 0...9999 @param aNumMonths positive, required, in range 0...9999 @param aNumDays positive, required, in range 0...9999 @param aNumHours positive, required, in range 0...9999 @param aNumMinutes positive, required, in range 0...9999 @param aNumSeconds positive, required, in range 0...9999 @param aNumNanoseconds positive, required, in range 0...999999999 */ public DateTime plus(Integer aNumYears, Integer aNumMonths, Integer aNumDays, Integer aNumHours, Integer aNumMinutes, Integer aNumSeconds, Integer aNumNanoseconds, DayOverflow aDayOverflow) { DateTimeInterval interval = new DateTimeInterval(this, aDayOverflow); return interval.plus(aNumYears, aNumMonths, aNumDays, aNumHours, aNumMinutes, aNumSeconds, aNumNanoseconds); } /** Create a new <tt>DateTime</tt> by subtracting an interval to this one. <P>See {@link #minusDays(Integer)} as well. <P>This method has nearly the same behavior as {@link #plus(Integer, Integer, Integer, Integer, Integer, Integer, Integer, DayOverflow)}, except that the return value cannot come before <tt>0001-01-01 00:00:00</tt>. */ public DateTime minus(Integer aNumYears, Integer aNumMonths, Integer aNumDays, Integer aNumHours, Integer aNumMinutes, Integer aNumSeconds, Integer aNumNanoseconds, DayOverflow aDayOverflow) { DateTimeInterval interval = new DateTimeInterval(this, aDayOverflow); return interval.minus(aNumYears, aNumMonths, aNumDays, aNumHours, aNumMinutes, aNumSeconds, aNumNanoseconds); } /** Return a new <tt>DateTime</tt> by adding an integral number of days to this one. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. @param aNumDays can be either sign; if negative, then the days are subtracted. */ public DateTime plusDays(Integer aNumDays) { ensureHasYearMonthDay(); int thisJDAtNoon = getModifiedJulianDayNumber() + 1 + EPOCH_MODIFIED_JD; int resultJD = thisJDAtNoon + aNumDays; DateTime datePortion = fromJulianDayNumberAtNoon(resultJD); return new DateTime(datePortion.getYear(), datePortion.getMonth(), datePortion.getDay(), fHour, fMinute, fSecond, fNanosecond); } /** Return a new <tt>DateTime</tt> by subtracting an integral number of days from this one. <P>Requires year-month-day to be present; if not, a runtime exception is thrown. @param aNumDays can be either sign; if negative, then the days are added. */ public DateTime minusDays(Integer aNumDays) { return plusDays(-1 * aNumDays); } /** The whole number of days between this <tt>DateTime</tt> and the given parameter. <P>Requires year-month-day to be present, both for this <tt>DateTime</tt> and for the <tt>aThat</tt> parameter; if not, a runtime exception is thrown. */ public int numDaysFrom(DateTime aThat) { return aThat.getModifiedJulianDayNumber() - this.getModifiedJulianDayNumber(); } /** The number of seconds between this <tt>DateTime</tt> and the given argument. <P>If only time information is present in both this <tt>DateTime</tt> and <tt>aThat</tt>, then there are no restrictions on the values of the time units. <P>If any date information is present, in either this <tt>DateTime</tt> or <tt>aThat</tt>, then full year-month-day must be present in both; if not, then the date portion will be ignored, and only the time portion will contribute to the calculation. */ public long numSecondsFrom(DateTime aThat) { long result = 0; if(hasYearMonthDay() && aThat.hasYearMonthDay()){ result = numDaysFrom(aThat) * 86400; //just the day portion } result = result - this.numSecondsInTimePortion() + aThat.numSecondsInTimePortion(); return result; } /** Output this <tt>DateTime</tt> as a formatted String using numbers, with no localizable text. <P>Example: <PRE>dt.format("YYYY-MM-DD hh:mm:ss");</PRE> would generate text of the form <PRE>2009-09-09 18:23:59</PRE> <P>If months, weekdays, or AM/PM indicators are output as localizable text, you must use {@link #format(String, Locale)}. @param aFormat uses the <a href="#FormattingLanguage">formatting mini-language</a> defined in the class comment. */ public String format(String aFormat) { DateTimeFormatter format = new DateTimeFormatter(aFormat); return format.format(this); } /** Output this <tt>DateTime</tt> as a formatted String using numbers and/or localizable text. <P>This method is intended for alphanumeric output, such as '<tt>Sunday, November 14, 1858 10:00 AM</tt>'. <P>If months and weekdays are output as numbers, you are encouraged to use {@link #format(String)} instead. @param aFormat uses the <a href="#FormattingLanguage">formatting mini-language</a> defined in the class comment. @param aLocale used to generate text for Month, Weekday and AM/PM indicator; required only by patterns which return localized text, instead of numeric forms. */ public String format(String aFormat, Locale aLocale) { DateTimeFormatter format = new DateTimeFormatter(aFormat, aLocale); return format.format(this); } /** Output this <tt>DateTime</tt> as a formatted String using numbers and explicit text for months, weekdays, and AM/PM indicator. <P>Use of this method is likely relatively rare; it should be used only if the output of {@link #format(String, Locale)} is inadequate. @param aFormat uses the <a href="#FormattingLanguage">formatting mini-language</a> defined in the class comment. @param aMonths contains text for all 12 months, starting with January; size must be 12. @param aWeekdays contains text for all 7 weekdays, starting with Sunday; size must be 7. @param aAmPmIndicators contains text for A.M and P.M. indicators (in that order); size must be 2. */ public String format(String aFormat, List<String> aMonths, List<String> aWeekdays, List<String> aAmPmIndicators) { DateTimeFormatter format = new DateTimeFormatter(aFormat, aMonths, aWeekdays, aAmPmIndicators); return format.format(this); } /** Return the current date-time. <P>Combines the return value of {@link System#currentTimeMillis()} with the given {@link TimeZone}. <P>Only millisecond precision is possible for this method. */ public static DateTime now(TimeZone aTimeZone) { return forInstant(System.currentTimeMillis(), aTimeZone); } /** Return the current date. <P>As in {@link #now(TimeZone)}, but truncates the time portion, leaving only year-month-day. */ public static DateTime today(TimeZone aTimeZone) { DateTime result = now(aTimeZone); return result.truncate(Unit.DAY); } /** Return <tt>true</tt> only if this date is in the future, with respect to {@link #now(TimeZone)}. */ public boolean isInTheFuture(TimeZone aTimeZone) { return now(aTimeZone).lt(this); } /** Return <tt>true</tt> only if this date is in the past, with respect to {@link #now(TimeZone)}. */ public boolean isInThePast(TimeZone aTimeZone) { return now(aTimeZone).gt(this); } /** Return a <tt>DateTime</tt> corresponding to a change from one {@link TimeZone} to another. <P>A <tt>DateTime</tt> object has an implicit and immutable time zone. If you need to change the implicit time zone, you can use this method to do so. <P>Example : <PRE> TimeZone fromUK = TimeZone.getTimeZone("Europe/London"); TimeZone toIndonesia = TimeZone.getTimeZone("Asia/Jakarta"); DateTime newDt = oldDt.changeTimeZone(fromUK, toIndonesia); </PRE> <P>Requires year-month-day-hour to be present; if not, a runtime exception is thrown. @param aFromTimeZone the implicit time zone of this object. @param aToTimeZone the implicit time zone of the <tt>DateTime</tt> returned by this method. @return aDateTime corresponding to the change of time zone implied by the 2 parameters. */ public DateTime changeTimeZone(TimeZone aFromTimeZone, TimeZone aToTimeZone){ DateTime result = null; ensureHasYearMonthDay(); if (unitsAllAbsent(Unit.HOUR)){ throw new IllegalArgumentException("DateTime does not include the hour. Cannot change the time zone if no hour is present."); } Calendar fromDate = new GregorianCalendar(aFromTimeZone); fromDate.set(Calendar.YEAR, getYear()); fromDate.set(Calendar.MONTH, getMonth()-1); fromDate.set(Calendar.DAY_OF_MONTH, getDay()); fromDate.set(Calendar.HOUR_OF_DAY, getHour()); if(getMinute() != null) { fromDate.set(Calendar.MINUTE, getMinute()); } else { fromDate.set(Calendar.MINUTE, 0); } //other items zeroed out here, since they don't matter for time zone calculations fromDate.set(Calendar.SECOND, 0); fromDate.set(Calendar.MILLISECOND, 0); //millisecond precision is OK here, since the seconds/nanoseconds are not part of the calc Calendar toDate = new GregorianCalendar(aToTimeZone); toDate.setTimeInMillis(fromDate.getTimeInMillis()); //needed if this date has hour, but no minute (bit of an oddball case) : Integer minute = getMinute() != null ? toDate.get(Calendar.MINUTE) : null; result = new DateTime( toDate.get(Calendar.YEAR), toDate.get(Calendar.MONTH) + 1, toDate.get(Calendar.DAY_OF_MONTH), toDate.get(Calendar.HOUR_OF_DAY), minute, getSecond(), getNanoseconds() ); return result; } /** Compare this object to another, for ordering purposes. <P> Uses the 7 date-time elements (year..nanosecond). The Year is considered the most significant item, and the Nanosecond the least significant item. Null items are placed first in this comparison. */ public int compareTo(DateTime aThat) { if (this == aThat) return EQUAL; ensureParsed(); aThat.ensureParsed(); ModelUtil.NullsGo nullsGo = ModelUtil.NullsGo.FIRST; int comparison = ModelUtil.comparePossiblyNull(this.fYear, aThat.fYear, nullsGo); if (comparison != EQUAL) return comparison; comparison = ModelUtil.comparePossiblyNull(this.fMonth, aThat.fMonth, nullsGo); if (comparison != EQUAL) return comparison; comparison = ModelUtil.comparePossiblyNull(this.fDay, aThat.fDay, nullsGo); if (comparison != EQUAL) return comparison; comparison = ModelUtil.comparePossiblyNull(this.fHour, aThat.fHour, nullsGo); if (comparison != EQUAL) return comparison; comparison = ModelUtil.comparePossiblyNull(this.fMinute, aThat.fMinute, nullsGo); if (comparison != EQUAL) return comparison; comparison = ModelUtil.comparePossiblyNull(this.fSecond, aThat.fSecond, nullsGo); if (comparison != EQUAL) return comparison; comparison = ModelUtil.comparePossiblyNull(this.fNanosecond, aThat.fNanosecond, nullsGo); if (comparison != EQUAL) return comparison; return EQUAL; } /** Equals method for this object. <P>Equality is determined by the 7 date-time elements (year..nanosecond). */ @Override public boolean equals(Object aThat) { /* * Implementation note: it was considered branching this method, according to whether * the objects are already parsed. That was rejected, since maintaining 'synchronicity' * with hashCode would not then be possible, since hashCode is based only on one object, * not two. */ ensureParsed(); Boolean result = ModelUtil.quickEquals(this, aThat); if (result == null) { DateTime that = (DateTime)aThat; that.ensureParsed(); result = ModelUtil.equalsFor(this.getSignificantFields(), that.getSignificantFields()); } return result; } /** Hash code for this object. <P> Uses the same 7 date-time elements (year..nanosecond) as used by {@link #equals(Object)}. */ @Override public int hashCode() { if (fHashCode == 0) { ensureParsed(); fHashCode = ModelUtil.hashCodeFor(getSignificantFields()); } return fHashCode; } /** Intended for <i>debugging and logging</i> only. <P><b>To format this <tt>DateTime</tt> for presentation to the user, see the various <tt>format</tt> methods.</b> <P>If the {@link #DateTime(String)} constructor was called, then return that String. <P>Otherwise, the return value is constructed from each date-time element, in a fixed format, depending on which time units are present. Example values : <ul> <li>2011-04-30 13:59:59.123456789 <li>2011-04-30 13:59:59 <li>2011-04-30 <li>2011-04-30 13:59 <li>13:59:59.123456789 <li>13:59:59 <li>and so on... </ul> <P>In the great majority of cases, this will give reasonable output for debugging and logging statements. <P>In cases where a bizarre combinations of time units is present, the return value is presented in a verbose form. For example, if all time units are present <i>except</i> for minutes, the return value has this form: <PRE>Y:2001 M:1 D:31 h:13 m:null s:59 f:123456789</PRE> */ @Override public String toString() { String result = ""; if (Util.textHasContent(fDateTime)) { result = fDateTime; } else { String format = calcToStringFormat(); if(format != null){ result = format(calcToStringFormat()); } else { StringBuilder builder = new StringBuilder(); addToString("Y", fYear, builder); addToString("M", fMonth, builder); addToString("D", fDay, builder); addToString("h", fHour, builder); addToString("m", fMinute, builder); addToString("s", fSecond, builder); addToString("f", fNanosecond, builder); result = builder.toString().trim(); } } return result; } // PACKAGE-PRIVATE (for unit testing, mostly) static final class ItemOutOfRange extends RuntimeException { ItemOutOfRange(String aMessage) { super(aMessage); } private static final long serialVersionUID = 4760138291907517660L; } static final class MissingItem extends RuntimeException { MissingItem(String aMessage) { super(aMessage); } private static final long serialVersionUID = -7359967338896127755L; } /** Intended as internal tool, for testing only. Note scope is not public! */ void ensureParsed() { if (!fIsAlreadyParsed) { parseDateTimeText(); } } /** Return the number of days in the given month. The returned value depends on the year as well, because of leap years. Returns <tt>null</tt> if either year or month are absent. WRONG - should be public?? Package-private, needed for interval calcs. */ static Integer getNumDaysInMonth(Integer aYear, Integer aMonth) { Integer result = null; if (aYear != null && aMonth != null) { if (aMonth == 1) { result = 31; } else if (aMonth == 2) { result = isLeapYear(aYear) ? 29 : 28; } else if (aMonth == 3) { result = 31; } else if (aMonth == 4) { result = 30; } else if (aMonth == 5) { result = 31; } else if (aMonth == 6) { result = 30; } else if (aMonth == 7) { result = 31; } else if (aMonth == 8) { result = 31; } else if (aMonth == 9) { result = 30; } else if (aMonth == 10) { result = 31; } else if (aMonth == 11) { result = 30; } else if (aMonth == 12) { result = 31; } else { throw new AssertionError("Month is out of range 1..12:" + aMonth); } } return result; } static DateTime fromJulianDayNumberAtNoon(int aJDAtNoon) { //http://www.hermetic.ch/cal_stud/jdn.htm int l = aJDAtNoon + 68569; int n = (4 * l) / 146097; l = l - (146097 * n + 3) / 4; int i = (4000 * (l + 1)) / 1461001; l = l - (1461 * i) / 4 + 31; int j = (80 * l) / 2447; int d = l - (2447 * j) / 80; l = j / 11; int m = j + 2 - (12 * l); int y = 100 * (n - 49) + i + l; return DateTime.forDateOnly(y, m, d); } // PRIVATE /* There are 2 representations of a date - a text form, and a 'parsed' form, in which all of the elements of the date are separated out. A DateTime starts out with one of these forms, and may need to generate the other. */ /** The text form of a date. @serial */ private String fDateTime; /* The following 7 items represent the parsed form of a DateTime. */ /** @serial */ private Integer fYear; /** @serial */ private Integer fMonth; /** @serial */ private Integer fDay; /** @serial */ private Integer fHour; /** @serial */ private Integer fMinute; /** @serial */ private Integer fSecond; /** @serial */ private Integer fNanosecond; /** Indicates if this DateTime has been parsed into its 7 constituents. @serial */ private boolean fIsAlreadyParsed; /** @serial */ private int fHashCode; private static final int EQUAL = 0; private static int EPOCH_MODIFIED_JD = 2400000; private static final long serialVersionUID = -1300068157085493891L; /** Return a the whole number, with no fraction. The JD at noon is 1 more than the JD at midnight. */ private int calculateJulianDayNumberAtNoon() { //http://www.hermetic.ch/cal_stud/jdn.htm int y = fYear; int m = fMonth; int d = fDay; int result = (1461 * (y + 4800 + (m - 14) / 12)) / 4 + (367 * (m - 2 - 12 * ((m - 14) / 12))) / 12 - (3 * ((y + 4900 + (m - 14) / 12) / 100)) / 4 + d - 32075; return result; } private void ensureHasYearMonthDay() { ensureParsed(); if (!hasYearMonthDay()) { throw new MissingItem("DateTime does not include year/month/day."); } } /** Return the number of seconds in any existing time portion of the date. */ private int numSecondsInTimePortion() { int result = 0; if (fSecond != null) { result = result + fSecond; } if (fMinute != null) { result = result + 60 * fMinute; } if (fHour != null) { result = result + 3600 * fHour; } return result; } private void validateState() { checkRange(fYear, 1, 9999, "Year"); checkRange(fMonth, 1, 12, "Month"); checkRange(fDay, 1, 31, "Day"); checkRange(fHour, 0, 23, "Hour"); checkRange(fMinute, 0, 59, "Minute"); checkRange(fSecond, 0, 59, "Second"); checkRange(fNanosecond, 0, 999999999, "Nanosecond"); checkNumDaysInMonth(fYear, fMonth, fDay); } private void checkRange(Integer aValue, int aMin, int aMax, String aName) { if(aValue != null){ if (aValue < aMin || aValue > aMax){ throw new ItemOutOfRange(aName + " is not in the range " + aMin + ".." + aMax + ". Value is:" + aValue); } } } private void checkNumDaysInMonth(Integer aYear, Integer aMonth, Integer aDay) { if (hasYearMonthDay(aYear, aMonth, aDay) && aDay > getNumDaysInMonth(aYear, aMonth)) { throw new ItemOutOfRange("The day-of-the-month value '" + aDay + "' exceeds the number of days in the month: " + getNumDaysInMonth(aYear, aMonth)); } } private void parseDateTimeText() { DateTimeParser parser = new DateTimeParser(); DateTime dateTime = parser.parse(fDateTime); /* * This is unusual - we essentially copy from one object to another. This could be * avoided by building another interface, But defining a top-level interface for this * simple task is too high a price. */ fYear = dateTime.fYear; fMonth = dateTime.fMonth; fDay = dateTime.fDay; fHour = dateTime.fHour; fMinute = dateTime.fMinute; fSecond = dateTime.fSecond; fNanosecond = dateTime.fNanosecond; validateState(); } private boolean hasYearMonthDay(Integer aYear, Integer aMonth, Integer aDay) { return isPresent(aYear, aMonth, aDay); } private static boolean isLeapYear(Integer aYear) { boolean result = false; if (aYear % 100 == 0) { // this is a century year if (aYear % 400 == 0) { result = true; } } else if (aYear % 4 == 0) { result = true; } return result; } private Object[] getSignificantFields() { return new Object[]{fYear, fMonth, fDay, fHour, fMinute, fSecond, fNanosecond}; } private void addToString(String aName, Object aValue, StringBuilder aBuilder) { aBuilder.append(aName + ":" + String.valueOf(aValue) + " "); } /** Return true only if all the given arguments are non-null. */ private boolean isPresent(Object... aItems) { boolean result = true; for (Object item : aItems) { if (item == null) { result = false; break; } } return result; } private DateTime getStartEndDateTime(Integer aDay, Integer aHour, Integer aMinute, Integer aSecond, Integer aNanosecond) { ensureHasYearMonthDay(); return new DateTime(fYear, fMonth, aDay, aHour, aMinute, aSecond, aNanosecond); } private String calcToStringFormat(){ String result = null; //caller will check for this; null means the set of units is bizarre if(unitsAllPresent(Unit.YEAR) && unitsAllAbsent(Unit.MONTH, Unit.DAY, Unit.HOUR, Unit.MINUTE, Unit.SECOND, Unit.NANOSECONDS)){ result = "YYYY"; } else if (unitsAllPresent(Unit.YEAR, Unit.MONTH) && unitsAllAbsent(Unit.DAY, Unit.HOUR, Unit.MINUTE, Unit.SECOND, Unit.NANOSECONDS)){ result = "YYYY-MM"; } else if (unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY) && unitsAllAbsent(Unit.HOUR, Unit.MINUTE, Unit.SECOND, Unit.NANOSECONDS)){ result = "YYYY-MM-DD"; } else if (unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY, Unit.HOUR) && unitsAllAbsent(Unit.MINUTE, Unit.SECOND, Unit.NANOSECONDS)){ result = "YYYY-MM-DD hh"; } else if (unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY, Unit.HOUR, Unit.MINUTE) && unitsAllAbsent(Unit.SECOND, Unit.NANOSECONDS)){ result = "YYYY-MM-DD hh:mm"; } else if (unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY, Unit.HOUR, Unit.MINUTE, Unit.SECOND) && unitsAllAbsent(Unit.NANOSECONDS)){ result = "YYYY-MM-DD hh:mm:ss"; } else if (unitsAllPresent(Unit.YEAR, Unit.MONTH, Unit.DAY, Unit.HOUR, Unit.MINUTE, Unit.SECOND, Unit.NANOSECONDS)){ result = "YYYY-MM-DD hh:mm:ss.fffffffff"; } else if (unitsAllAbsent(Unit.YEAR, Unit.MONTH, Unit.DAY) && unitsAllPresent(Unit.HOUR, Unit.MINUTE, Unit.SECOND, Unit.NANOSECONDS)){ result = "hh:mm:ss.fffffffff"; } else if (unitsAllAbsent(Unit.YEAR, Unit.MONTH, Unit.DAY, Unit.NANOSECONDS) && unitsAllPresent(Unit.HOUR, Unit.MINUTE, Unit.SECOND)){ result = "hh:mm:ss"; } else if (unitsAllAbsent(Unit.YEAR, Unit.MONTH, Unit.DAY, Unit.SECOND, Unit.NANOSECONDS) && unitsAllPresent(Unit.HOUR, Unit.MINUTE)){ result = "hh:mm"; } return result; } /** Always treat de-serialization as a full-blown constructor, by validating the final state of the de-serialized object. */ private void readObject(ObjectInputStream aInputStream) throws ClassNotFoundException, IOException { //always perform the default de-serialization first aInputStream.defaultReadObject(); //no mutable fields in this case validateState(); } /** This is the default implementation of writeObject. Customise if necessary. */ private void writeObject(ObjectOutputStream aOutputStream) throws IOException { //perform the default serialization for all non-transient, non-static fields aOutputStream.defaultWriteObject(); } }
{ "content_hash": "0717c6bfb2996ffd81e0802314483060", "timestamp": "", "source": "github", "line_count": 1566, "max_line_length": 194, "avg_line_length": 40.68582375478927, "alnum_prop": 0.678061336597922, "repo_name": "elphinkuo/lightDroid", "id": "2d91d03ff0a75eacbd5250f908288108e10b57c9", "size": "63714", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "framework/util/date/DateTime.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "297667" } ], "symlink_target": "" }
package java.io; /** * Signals that an attempt to open the file denoted by a specified pathname * has failed. * * <p> This exception will be thrown by the {@link FileInputStream}, {@link * FileOutputStream}, and {@link RandomAccessFile} constructors when a file * with the specified pathname does not exist. It will also be thrown by these * constructors if the file does exist but for some reason is inaccessible, for * example when an attempt is made to open a read-only file for writing. * * @author unascribed * @since JDK1.0 */ public class FileNotFoundException extends IOException { private static final long serialVersionUID = -897856973823710492L; /** * Constructs a <code>FileNotFoundException</code> with * <code>null</code> as its error detail message. */ public FileNotFoundException() { super(); } /** * Constructs a <code>FileNotFoundException</code> with the * specified detail message. The string <code>s</code> can be * retrieved later by the * <code>{@link java.lang.Throwable#getMessage}</code> * method of class <code>java.lang.Throwable</code>. * * @param s the detail message. */ public FileNotFoundException(String s) { super(s); } /** * Constructs a <code>FileNotFoundException</code> with a detail message * consisting of the given pathname string followed by the given reason * string. If the <code>reason</code> argument is <code>null</code> then * it will be omitted. This private constructor is invoked only by native * I/O methods. * * @since 1.2 */ private FileNotFoundException(String path, String reason) { super(path + ((reason == null) ? "" : " (" + reason + ")")); } }
{ "content_hash": "deb25765b4f31b554beefb0f81490ef4", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 79, "avg_line_length": 31.1864406779661, "alnum_prop": 0.6440217391304348, "repo_name": "ArcherSys/ArcherSys", "id": "278fa1d4f74d3e6046aef406a81144ed61623939", "size": "3052", "binary": false, "copies": "62", "ref": "refs/heads/master", "path": "java/bin/java/io/FileNotFoundException.java", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectLevelVcsManager" settingsEditedManually="false"> <OptionsSetting value="true" id="Add" /> <OptionsSetting value="true" id="Remove" /> <OptionsSetting value="true" id="Checkout" /> <OptionsSetting value="true" id="Update" /> <OptionsSetting value="true" id="Status" /> <OptionsSetting value="true" id="Edit" /> <ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Remove" /> </component> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <output url="file://$PROJECT_DIR$/build/classes" /> </component> <component name="ProjectType"> <option name="id" value="Android" /> </component> <component name="SvnConfiguration"> <configuration>$USER_HOME$/.subversion</configuration> </component> <component name="masterDetails"> <states> <state key="ProjectJDKs.UI"> <settings> <last-edited>Android API 22 Platform</last-edited> <splitter-proportions> <option name="proportions"> <list> <option value="0.32035053" /> </list> </option> </splitter-proportions> </settings> </state> </states> </component> </project>
{ "content_hash": "a412355b7e2abb7b2aa8a3063778f146", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 161, "avg_line_length": 37.473684210526315, "alnum_prop": 0.625, "repo_name": "prt2121/gradle-exercise", "id": "10e38f88fc633e3e490e82b88bde4897d76f4a55", "size": "1424", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "3.05-Exercise-ConfigureBuildTypes/.idea/misc.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "6977" }, { "name": "Java", "bytes": "3197265" } ], "symlink_target": "" }
@interface TTColorViewController : UIViewController @property (strong, nonatomic) IBOutlet UILabel * colorLabel; @property (nonatomic) TTColor * color; - (instancetype)initWithColor:(TTColor *)color; @end
{ "content_hash": "88d8a212d3b970437583696dcf737b27", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 60, "avg_line_length": 26, "alnum_prop": 0.7836538461538461, "repo_name": "chefnobody/Colors", "id": "5fb4b3cb2ae16d9689716f7cd88677a1bdf059bb", "size": "407", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Colors/ViewControllers/TTColorViewController.h", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "35380" } ], "symlink_target": "" }
"""AutomaBot package.""" import sys if sys.version_info < (3, 6): raise ImportError("automabot requires Python 3.6+ because f-str/asyncio. " "<3")
{ "content_hash": "73b590c9d7451acb608133bc7bbd2384", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 78, "avg_line_length": 22, "alnum_prop": 0.5852272727272727, "repo_name": "WyllVern/AutomaBot", "id": "13291138abfe7fbb719a038d6ebeeb1b034477a0", "size": "176", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "automabot/__init__.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "15633" }, { "name": "Shell", "bytes": "166" } ], "symlink_target": "" }
<?php namespace Magento\Bundle\Model\Product; /** * @magentoDataFixture Magento/Bundle/_files/product_with_tier_pricing.php */ class PriceTest extends \PHPUnit_Framework_TestCase { /** * @var \Magento\Bundle\Model\Product\Price */ protected $_model; protected function setUp() { $this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( 'Magento\Bundle\Model\Product\Price' ); } public function testGetTierPrice() { $product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( 'Magento\Catalog\Model\Product' ); $product->load(3); // fixture // Note that this is really not the "tier price" but the "tier discount percentage" // so it is expected to be increasing instead of decreasing $this->assertEquals(8.0, $this->_model->getTierPrice(2, $product)); $this->assertEquals(20.0, $this->_model->getTierPrice(3, $product)); $this->assertEquals(20.0, $this->_model->getTierPrice(4, $product)); $this->assertEquals(30.0, $this->_model->getTierPrice(5, $product)); } }
{ "content_hash": "a7c1d95e29f27a07b9e15da501666c2d", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 92, "avg_line_length": 31.89189189189189, "alnum_prop": 0.6338983050847458, "repo_name": "webadvancedservicescom/magento", "id": "d218cb5237a055337f75beb2934b4ae44a370649", "size": "1270", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "dev/tests/integration/testsuite/Magento/Bundle/Model/Product/PriceTest.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "16380" }, { "name": "CSS", "bytes": "2592299" }, { "name": "HTML", "bytes": "9192193" }, { "name": "JavaScript", "bytes": "2874762" }, { "name": "PHP", "bytes": "41399372" }, { "name": "Shell", "bytes": "3084" }, { "name": "VCL", "bytes": "3547" }, { "name": "XSLT", "bytes": "19817" } ], "symlink_target": "" }
ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Valsa coenobitica f. parvula Sacc. ### Remarks null
{ "content_hash": "63d7afbeed8360583e8271f298387907", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 34, "avg_line_length": 10.692307692307692, "alnum_prop": 0.7050359712230215, "repo_name": "mdoering/backbone", "id": "6df63684455d61ede44446258a8fb0ac5f9d3777", "size": "194", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Sordariomycetes/Diaporthales/Valsaceae/Valsa/Valsa coenobitica/Valsa coenobitica parvula/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
from django.test import TestCase from ratings.models import Media from ratings.tests.factories import MediaFactory class MediaTestCase(TestCase): """Test basic Media class behavior""" def test_create_media(self): """You should be able to create a Media record""" # Create a Media object & associated Submission MediaFactory() # There should be 1 Media record self.assertEqual(1, Media.objects.all().count()) def test_update_media(self): """You should be able to update a Media records values""" media = MediaFactory() # Edit & save media.filetype = 'Web Application' media.save() # Record should reflect the change self.assertEqual('Web Application', Media.objects.get(pk=1).filetype) def test_delete_media(self): """You should be able to delete a Media record""" MediaFactory() # Should have 1 Media record self.assertEqual(1, Media.objects.all().count()) # Delete it Media.objects.get(pk=1).delete() # Should have 0 Media records self.assertEqual(0, Media.objects.all().count())
{ "content_hash": "7a7632d03d07cd5c5a694660d51c9a1a", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 77, "avg_line_length": 34.205882352941174, "alnum_prop": 0.641444539982803, "repo_name": "daltonamitchell/rating-dashboard", "id": "70f2d8afdfe097ac75553347761c329e44231e40", "size": "1163", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ratings/tests/tests_media.py", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "185" }, { "name": "HTML", "bytes": "7641" }, { "name": "JavaScript", "bytes": "1665" }, { "name": "Python", "bytes": "23153" } ], "symlink_target": "" }
SYNONYM #### According to Interim Register of Marine and Nonmarine Genera #### Published in null #### Original name null ### Remarks null
{ "content_hash": "6198df420fb5bba64ff48169ac1d9360", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 47, "avg_line_length": 10.846153846153847, "alnum_prop": 0.7163120567375887, "repo_name": "mdoering/backbone", "id": "ef92948d9b6d48ee046329dd66fb89ee6947ae45", "size": "172", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Tripodion/ Syn. Tripodium/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
from __future__ import print_function import RPi.GPIO as GPIO import time, threading try: #python3 import tkinter except ImportError: #python2 import Tkinter as tkinter #------------------------------------------------------------------------ # using an list to hold the gpio numbers gpioList = [11, 12, 13, 15] steps = [ [0,0,0,0], [0,0,0,1], [0,0,1,0], [0,0,1,1], [0,1,0,0], [0,1,0,1], [0,1,1,0], [0,1,1,1], [1,0,0,0], [1,0,0,1] ] # define dictionary http://www.tutorialspoint.com/python/python_dictionary.htm dictionary = {} dictionary['sleep'] = 2 dictionary['running'] = False #------------------------------------------------------------------------ # Initializes the GPIO pins GPIO.setmode(GPIO.BOARD) for pin in gpioList: GPIO.setup(pin, GPIO.OUT) GPIO.output(pin, False) def schleife(): while dictionary['running'] == True: for stepIdx in range(0, len(steps)): if dictionary['running'] == False: break print("schritt: %d" % stepIdx) for pinIdx in range(0, len(steps[stepIdx])): GPIO.output(gpioList[pinIdx], steps[stepIdx][pinIdx]) time.sleep( float(dictionary['sleep']) ) def _exit(): dictionary['running'] = False GPIO.cleanup() def set_sleepTime(): print("Sleepzeit: %s" % sleepTimeEntry.get()) dictionary['sleep'] = sleepTimeEntry.get() def set_StartStop(): print(StartStopButton['text']) # if button got pressed and currently text is 'Start' then start loop thread and change button text.. if StartStopButton['text'] == "Start": dictionary['running'] = True StartStopButton['text'] = "Stop" schleife_thread = threading.Thread(target=schleife) schleife_thread.start() elif StartStopButton['text'] == "Stop": dictionary['running'] = False StartStopButton['text'] = "Start" try: master = tkinter.Tk() sleepTimeLabel = tkinter.Label(master, text="Zeit in Sek").grid(row=0) sleepTimeEntry = tkinter.Entry(master) sleepTimeEntry.grid(row=0, column=1) sleepTimeEntry.insert(0, dictionary['sleep']) sleepTimeEntry.focus_set() sleepTimeButton = tkinter.Button(master, text='Set', command=set_sleepTime) sleepTimeButton.grid(row=3, column=1, sticky=tkinter.W, pady=4) StartStopButton = tkinter.Button(master, text='Start', command=set_StartStop) StartStopButton.grid(row=3, column=2, sticky=tkinter.W, pady=4) master.mainloop() except (KeyboardInterrupt, SystemExit): print("\nschliesse Programm...\n") _exit() _exit()
{ "content_hash": "4b1dffad95302dfcddc3d3d862c01769", "timestamp": "", "source": "github", "line_count": 85, "max_line_length": 105, "avg_line_length": 30.823529411764707, "alnum_prop": 0.6038167938931298, "repo_name": "meigrafd/Sample-Code", "id": "c20b2534d4660cb4e99613ca393e4bcc3f587a90", "size": "2620", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "_Tkinter/TKinter_LED_Blink.py", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "496" }, { "name": "CSS", "bytes": "638" }, { "name": "HTML", "bytes": "1141" }, { "name": "JavaScript", "bytes": "1624" }, { "name": "PHP", "bytes": "77857" }, { "name": "Perl", "bytes": "478" }, { "name": "Python", "bytes": "382809" }, { "name": "Shell", "bytes": "56023" } ], "symlink_target": "" }
require 'spec_helper' describe Tempo::Context do let(:resource) { double(:title => 'Demo', :content => 'Demo Content') } let(:context) do Class.new(Tempo::Context).tap do |klass| klass.allows :title end end subject { context.new(resource) } describe '#initialize' do it 'should accept a resource' do expect { subject }.to_not raise_error end end describe 'generated methods' do it { should have_invokable_method(:title) } it { should_not have_invokable_method(:content) } it { should_not have_invokable_method(:missing) } describe '#title' do it 'should return a new Tempo::Context instance' do expect(subject.invoke('title')).to be_kind_of(Tempo::Context) end end describe '#content' do it 'should return nothing' do expect(subject.invoke('content')).to_not be end end describe '#missing' do it 'should return nothing' do expect(subject.invoke('content')).to_not be end end end describe '#to_s' do it 'should return an empty string' do expect(subject.to_s).to eq('') end end describe '#inspect' do it 'should make clear that the resource is wrapped with a context' do expect(subject.inspect).to eq("#<#{context} for #{resource.inspect}>") end end describe '#eql?' do it 'should be true for contexts wrapping the same resource' do expect(context.new(resource)).to eql(subject) end it 'should be false for context wrapping different resources' do expect(context.new("example")).not_to eql(subject) end end end
{ "content_hash": "446379420a26eff0b7b0321a54cafe90", "timestamp": "", "source": "github", "line_count": 67, "max_line_length": 76, "avg_line_length": 24.34328358208955, "alnum_prop": 0.6425505824647455, "repo_name": "benedikt/tempo", "id": "9346dbe60594d30a8a21cfdd94d281fdf9d311bf", "size": "1631", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/tempo/context_spec.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "87438" } ], "symlink_target": "" }
package me.bianbian.worldclock.webapp.controller; import org.appfuse.Constants; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.multipart.commons.CommonsMultipartFile; import javax.servlet.http.HttpServletRequest; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; /** * Controller class to upload Files. * <p/> * <p> * <a href="FileUploadFormController.java.html"><i>View Source</i></a> * </p> * * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a> */ @Controller @RequestMapping("/fileupload*") public class FileUploadController extends BaseFormController { public FileUploadController() { setCancelView("redirect:/mainMenu"); setSuccessView("uploadDisplay"); } @ModelAttribute @RequestMapping(method = RequestMethod.GET) public FileUpload showForm() { return new FileUpload(); } @RequestMapping(method = RequestMethod.POST) public String onSubmit(FileUpload fileUpload, BindingResult errors, HttpServletRequest request) throws Exception { if (request.getParameter("cancel") != null) { return getCancelView(); } if (validator != null) { // validator is null during testing validator.validate(fileUpload, errors); if (errors.hasErrors()) { return "fileupload"; } } // validate a file was entered if (fileUpload.getFile().length == 0) { Object[] args = new Object[]{getText("uploadForm.file", request.getLocale())}; errors.rejectValue("file", "errors.required", args, "File"); return "fileupload"; } MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; CommonsMultipartFile file = (CommonsMultipartFile) multipartRequest.getFile("file"); // the directory to upload to String uploadDir = getServletContext().getRealPath("/resources") + "/" + request.getRemoteUser() + "/"; // Create the directory if it doesn't exist File dirPath = new File(uploadDir); if (!dirPath.exists()) { dirPath.mkdirs(); } //retrieve the file data InputStream stream = file.getInputStream(); //write the file to the file specified OutputStream bos = new FileOutputStream(uploadDir + file.getOriginalFilename()); int bytesRead; byte[] buffer = new byte[8192]; while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) { bos.write(buffer, 0, bytesRead); } bos.close(); //close the stream stream.close(); // place the data into the request for retrieval on next page request.setAttribute("friendlyName", fileUpload.getName()); request.setAttribute("fileName", file.getOriginalFilename()); request.setAttribute("contentType", file.getContentType()); request.setAttribute("size", file.getSize() + " bytes"); request.setAttribute("location", dirPath.getAbsolutePath() + Constants.FILE_SEP + file.getOriginalFilename()); String link = request.getContextPath() + "/resources" + "/" + request.getRemoteUser() + "/"; request.setAttribute("link", link + file.getOriginalFilename()); return getSuccessView(); } }
{ "content_hash": "46b9b63c0e9b42afc994317ee93815da", "timestamp": "", "source": "github", "line_count": 109, "max_line_length": 118, "avg_line_length": 34.41284403669725, "alnum_prop": 0.6638229805385231, "repo_name": "bianbian/worldclock", "id": "4eed06dd3900007bb41190f752cc836c9ba1c9c0", "size": "3751", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "web/src/main/java/me/bianbian/worldclock/webapp/controller/FileUploadController.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "156970" }, { "name": "Java", "bytes": "111998" }, { "name": "JavaScript", "bytes": "95915" } ], "symlink_target": "" }
package leakybuf type LeakyBuf struct { bufSize int // size of each buffer freeList chan []byte } // NewLeakyBuf creates a leaky buffer which can hold at most n buffer, each // with bufSize bytes. func NewLeakyBuf(n, bufSize int) *LeakyBuf { return &LeakyBuf{ bufSize: bufSize, freeList: make(chan []byte, n), } } // Get returns a buffer from the leaky buffer or create a new buffer. func (lb *LeakyBuf) Get() (b []byte) { select { case b = <-lb.freeList: default: b = make([]byte, lb.bufSize) } return } // Put add the buffer into the free buffer pool for reuse. Panic if the buffer // size is not the same with the leaky buffer's. This is intended to expose // error usage of leaky buffer. func (lb *LeakyBuf) Put(b []byte) { if len(b) != lb.bufSize { panic("invalid buffer size that's put into leaky buffer") } select { case lb.freeList <- b: default: } return } const ( GlobalLeakyBufSize = 32 * 1024 // data.len(2) + hmacsha1(10) + data(4096) maxNBuf = 8192 ) var GlobalLeakyBuf = NewLeakyBuf(maxNBuf, GlobalLeakyBufSize)
{ "content_hash": "a4c917256ae12c66a4a5afeec864cfd5", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 78, "avg_line_length": 23.304347826086957, "alnum_prop": 0.6856343283582089, "repo_name": "chinaboard/coral", "id": "096c9cb42daf2d4cc697e8083f679a67e474e86c", "size": "1136", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "leakybuf/leakybuf.go", "mode": "33188", "license": "mit", "language": [ { "name": "Dockerfile", "bytes": "685" }, { "name": "Go", "bytes": "193224" }, { "name": "Makefile", "bytes": "194" } ], "symlink_target": "" }
cask 'xdm' do version '7.2.7' sha256 'b28d3aac96fe9a2ce161bdd4462fe270eac3dd3ce91828f0e308b9d77aa811b4' # downloads.sourceforge.net/xdman/ was verified as official when first introduced to the cask url 'https://downloads.sourceforge.net/xdman/xdm-setup.dmg' appcast 'https://sourceforge.net/projects/xdman/rss' name 'Xtreme Download Manager' homepage 'https://xdman.sourceforge.io/' installer script: { executable: "#{staged_path}/install", sudo: true, } uninstall delete: [ '/Applications/xdm.app', '~/Library/LaunchAgents/org.sdg.xdman.plist', ] zap trash: '~/.xdman' end
{ "content_hash": "b42f838725f6cffc5297f5095628a8bc", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 95, "avg_line_length": 33.27272727272727, "alnum_prop": 0.6079234972677595, "repo_name": "morganestes/homebrew-cask", "id": "81c065b532bd4d01118198ddd732e7b8c2931077", "size": "732", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "Casks/xdm.rb", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Ruby", "bytes": "2152638" }, { "name": "Shell", "bytes": "70817" } ], "symlink_target": "" }
import createRouter from 'sharp-router'; const router = createRouter({ '/': 'Gremlint - Query formatter', '/style-guide': 'Gremlint - Style guide', }); export default router;
{ "content_hash": "3b202c68d07f1046ff7564bab144cef7", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 43, "avg_line_length": 18.3, "alnum_prop": 0.6830601092896175, "repo_name": "apache/tinkerpop", "id": "29e47d5818446bce336b773c769acf8d06946147", "size": "989", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "docs/gremlint/src/router.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "59230" }, { "name": "Awk", "bytes": "2335" }, { "name": "Batchfile", "bytes": "3976" }, { "name": "C#", "bytes": "1745461" }, { "name": "Dockerfile", "bytes": "8353" }, { "name": "Gherkin", "bytes": "606034" }, { "name": "Go", "bytes": "776105" }, { "name": "Groovy", "bytes": "337658" }, { "name": "Java", "bytes": "11495240" }, { "name": "JavaScript", "bytes": "596328" }, { "name": "Python", "bytes": "685711" }, { "name": "Shell", "bytes": "71980" }, { "name": "TypeScript", "bytes": "154521" }, { "name": "XSLT", "bytes": "2205" } ], "symlink_target": "" }
from page_sets.system_health import platforms from page_sets.system_health import story_tags from page_sets.system_health import system_health_story LONG_TEXT = """Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla suscipit enim ut nunc vestibulum, vitae porta dui eleifend. Donec condimentum ante malesuada mi sodales maximus.""" class _AccessibilityStory(system_health_story.SystemHealthStory): """Abstract base class for accessibility System Health user stories.""" ABSTRACT_STORY = True SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY def __init__(self, story_set, take_memory_measurement, extra_browser_args=None): FORCE_A11Y = '--force-renderer-accessibility' if extra_browser_args is None: extra_browser_args = [FORCE_A11Y] else: extra_browser_args.append(FORCE_A11Y) super(_AccessibilityStory, self).__init__( story_set, take_memory_measurement, extra_browser_args) class AccessibilityScrollingCodeSearchStory2018(_AccessibilityStory): """Tests scrolling an element within a page.""" NAME = 'browse_accessibility:tech:codesearch:2018' URL = 'https://cs.chromium.org/chromium/src/ui/accessibility/platform/ax_platform_node_mac.mm' TAGS = [story_tags.ACCESSIBILITY, story_tags.SCROLL, story_tags.YEAR_2018] def RunNavigateSteps(self, action_runner): super(AccessibilityScrollingCodeSearchStory2018, self).RunNavigateSteps( action_runner) action_runner.WaitForElement(text='// namespace ui') for _ in range(6): action_runner.ScrollElement(selector='#file_scroller', distance=1000) class AccessibilityWikipediaStory2018(_AccessibilityStory): """Wikipedia page on Accessibility. Long, but very simple, clean layout.""" NAME = 'load_accessibility:media:wikipedia:2018' URL = 'https://en.wikipedia.org/wiki/Accessibility' TAGS = [story_tags.ACCESSIBILITY, story_tags.YEAR_2018] class AccessibilityAmazonStory2018(_AccessibilityStory): """Amazon results page. Good example of a site with a data table.""" NAME = 'load_accessibility:shopping:amazon:2018' URL = 'https://www.amazon.com/gp/offer-listing/B01IENFJ14' TAGS = [story_tags.ACCESSIBILITY, story_tags.YEAR_2018] class AccessibilityYouTubeHomepageStory(_AccessibilityStory): """Tests interacting with the YouTube home page.""" NAME = 'browse_accessibility:media:youtube' URL = 'https://www.youtube.com/' TAGS = [story_tags.ACCESSIBILITY, story_tags.KEYBOARD_INPUT, story_tags.YEAR_2016] def RunNavigateSteps(self, action_runner): action_runner.Navigate('https://www.youtube.com/') action_runner.tab.WaitForDocumentReadyStateToBeComplete() # Open and close the sidebar. action_runner.ClickElement(selector='[aria-label="Guide"]') action_runner.Wait(1) action_runner.ClickElement(selector='[aria-label="Guide"]') action_runner.Wait(1) # Open the apps menu. action_runner.ClickElement(selector='[aria-label="YouTube apps"]') action_runner.Wait(1) # Navigate through the items in the apps menu. for _ in range(6): action_runner.PressKey('Tab')
{ "content_hash": "097c9e7ccf841cff7fdf7ade16aa55e3", "timestamp": "", "source": "github", "line_count": 76, "max_line_length": 96, "avg_line_length": 40.723684210526315, "alnum_prop": 0.7411954765751212, "repo_name": "chromium/chromium", "id": "a21c32ee25a0422f75f117f7fce949f8310b7ab6", "size": "3236", "binary": false, "copies": "7", "ref": "refs/heads/main", "path": "tools/perf/page_sets/system_health/accessibility_stories.py", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
<?php namespace Common\UserBundle\Repository; use Backend\UserBundle\Security\Clusterpoint\User; use Common\AppBundle\Repository\ClusterpointRepository; class UserRepository extends ClusterpointRepository { protected $passwordEncoder; public function __construct(\CPS_Connection $connection, $passwordEncoder) { parent::__construct($connection); $this->passwordEncoder = $passwordEncoder; } /** * Save user. * @param User $user */ public function saveUser(User $user) { $userDocuments = $this->get([ 'type' => self::TYPE_USER, 'username' => $user->getUsername(), ]); if (!$userDocuments) { $data = $this->normalizer->normalize($user); $data['type'] = self::TYPE_USER; $this->insert($data); } } /** * Create user. * @param $username * @param $password * @return User */ public function createUser($username, $password) { $salt = $this->createSalt($password); $user = new User($username, null, $salt); $passwordEncoded = $this->passwordEncoder->encodePassword($user, $password); $user->setPassword($passwordEncoded); return $user; } /** * Create salt. * @param $seed * @return string */ public function createSalt($seed) { return md5(substr($seed, 0, strlen($seed) / 2) . time()); } }
{ "content_hash": "7cd4b828dbdeab78dbebbfc230a543ee", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 78, "avg_line_length": 20.852459016393443, "alnum_prop": 0.6658805031446541, "repo_name": "inwhite/deino", "id": "2518feeb27b5907750ad3d11a6a6c00228751bf7", "size": "1272", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Common/UserBundle/Repository/UserRepository.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "3709" }, { "name": "CSS", "bytes": "987" }, { "name": "HTML", "bytes": "2988" }, { "name": "JavaScript", "bytes": "6446" }, { "name": "PHP", "bytes": "89472" }, { "name": "Shell", "bytes": "278" } ], "symlink_target": "" }