code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
require 'doorkeeper/oauth/assertion_access_token_request' module Doorkeeper module Request class Assertion def self.build(server) new(server) end attr_reader :server def initialize(server) @server = server end def request @request ||= OAuth::AssertionAccessTokenRequest.new(server, Doorkeeper.configuration) end def authorize request.authorize end end end end
kioru/doorkeeper-jwt_assertion
lib/doorkeeper/request/assertion.rb
Ruby
mit
416
<!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/html; charset=utf-8" /> <meta name="GENERATOR" content="VSdocman - documentation generator; https://www.helixoft.com" /> <link rel="icon" href="favicon.ico"> <title>DataProtection.AppSetting Property</title> <link rel="stylesheet" type="text/css" href="msdn2019/toc.css" /> <script src="msdn2019/toc.js"></script> <link rel="stylesheet" type="text/css" href="msdn2019/msdn2019.css"></link> <script src="msdn2019/msdn2019.js" type="text/javascript"></script> <script src="SyntaxHighlighter/scripts/shCore_helixoft.js" type="text/javascript"></script> <script src="SyntaxHighlighter/scripts/shBrushVb.js" type="text/javascript"></script> <script src="SyntaxHighlighter/scripts/shBrushCSharp.js" type="text/javascript"></script> <script src="SyntaxHighlighter/scripts/shBrushFSharp.js" type="text/javascript"></script> <script src="SyntaxHighlighter/scripts/shBrushCpp.js" type="text/javascript"></script> <script src="SyntaxHighlighter/scripts/shBrushJScript.js" type="text/javascript"></script> <link href="SyntaxHighlighter/styles/shCore.css" rel="stylesheet" type="text/css" /> <link href="SyntaxHighlighter/styles/shThemeMsdnLW.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> SyntaxHighlighter.all(); </script> <link rel="stylesheet" type="text/css" href="vsdocman_overrides.css"></link> </head> <body style="direction: ltr;"> <div id="topic"> <!--HEADER START--> <div id="header"> <div id="header-top-container"> <div id="header-top-parent-container1"> <div id="header-top-container1"> <div id="runningHeaderText1"><a id="headerLogo" href="#" onclick="window.location.href = getCssCustomProperty('--headerLogoLink'); return false;">logo</a></div> <div id="runningHeaderText1b"><script> document.write(getCssCustomProperty('--headerTopCustomLineHtml')); </script></div> </div> </div> <div id="header-top-container2"> <div id="runningHeaderText">SOLUTION-WIDE PROPERTIES Reference</div> <div id="search-bar-container"> <form id="search-bar" action="search--.html"> <input id="HeaderSearchInput" type="search" name="search" placeholder="Search" > <button id="btn-search" class="c-glyph" title="Search"> <span>Search</span> </button> </form> <button id="cancel-search" class="cancel-search" title="Cancel"> <span>Cancel</span> </button> </div> </div> </div> <hr /> <div id="header-breadcrumbs"></div> <div id="headerLinks"> </div> <hr /> </div> <!--HEADER END--> <div id="mainSection"> <div id="toc-area"> <div id="toc-container" class="stickthis full-height"> <div id="-1"></div> <div id="c-1"> <div id="ci-1" class="inner-for-height"></div> </div> </div> </div> <div id="mainBody"> <h1 class="title">DataProtection.AppSetting Property</h1> <div class="metadata"> Namespace: <a href="topic_0000000000000000.html">Microsoft.Extensions.DependencyInjection</a> <br />Assembly: Tlece.WebApp (in Tlece.WebApp.dll) </div> <div class="section_container"> <div id="syntaxSection" class="section"> <div id="syntaxCodeBlocks"> <div class="codeSnippetContainer"> <div class="codeSnippetTabs"> <div class="codeSnippetTabLeftCornerActive"> </div> <div class="codeSnippetTab csFirstTab csActiveTab codeVB"> <a>VB</a> </div> <div class="codeSnippetTab csNaTab codeCsharp"> <a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a> </div> <div class="codeSnippetTab csNaTab codeFsharp"> <a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a> </div> <div class="codeSnippetTab csNaTab codeCpp"> <a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a> </div> <div class="codeSnippetTab csLastTab csNaTab codeJScript"> <a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a> </div> <div class="codeSnippetTabRightCorner"> </div> <div style="clear:both;"> </div> </div> <div class="codeSnippetCodeCollection"> <div class="codeSnippetToolbar"> <a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a> </div> <div class="codeSnippetCode codeVB"> <pre xml:space="preserve" class="brush: vb">Public Shared Property AppSetting() As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a></pre> </div> <div class="codeSnippetCode codeNA"> <pre xml:space="preserve">This language is not supported or no code example is available.</pre> </div> </div> </div> <div class="codeSnippetContainer"> <div class="codeSnippetTabs"> <div class="codeSnippetTabLeftCorner"> </div> <div class="codeSnippetTab csFirstTab csNaTab codeVB"> <a>VB</a> </div> <div class="codeSnippetTab csActiveTab codeCsharp"> <a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a> </div> <div class="codeSnippetTab csNaTab codeFsharp"> <a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a> </div> <div class="codeSnippetTab csNaTab codeCpp"> <a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a> </div> <div class="codeSnippetTab csLastTab csNaTab codeJScript"> <a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a> </div> <div class="codeSnippetTabRightCorner"> </div> <div style="clear:both;"> </div> </div> <div class="codeSnippetCodeCollection"> <div class="codeSnippetToolbar"> <a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a> </div> <div class="codeSnippetCode codeCsharp"> <pre xml:space="preserve" class="brush: csharp">public static <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a> AppSetting {get; set;}</pre> </div> <div class="codeSnippetCode codeNA"> <pre xml:space="preserve">This language is not supported or no code example is available.</pre> </div> </div> </div> <div class="codeSnippetContainer"> <div class="codeSnippetTabs"> <div class="codeSnippetTabLeftCorner"> </div> <div class="codeSnippetTab csFirstTab csNaTab codeVB"> <a>VB</a> </div> <div class="codeSnippetTab csNaTab codeCsharp"> <a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a> </div> <div class="codeSnippetTab csNaTab codeFsharp"> <a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a> </div> <div class="codeSnippetTab csActiveTab codeCpp"> <a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a> </div> <div class="codeSnippetTab csLastTab csNaTab codeJScript"> <a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a> </div> <div class="codeSnippetTabRightCorner"> </div> <div style="clear:both;"> </div> </div> <div class="codeSnippetCodeCollection"> <div class="codeSnippetToolbar"> <a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a> </div> <div class="codeSnippetCode codeCpp"> <pre xml:space="preserve" class="brush: cpp">public: &nbsp;<br />static property <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a>^ AppSetting {&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a>^ get( );&nbsp;<br /> void set(&nbsp;<br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a>^ value&nbsp;<br /> );&nbsp;<br />}</pre> </div> <div class="codeSnippetCode codeNA"> <pre xml:space="preserve">This language is not supported or no code example is available.</pre> </div> </div> </div> <div class="codeSnippetContainer"> <div class="codeSnippetTabs"> <div class="codeSnippetTabLeftCorner"> </div> <div class="codeSnippetTab csFirstTab csNaTab codeVB"> <a>VB</a> </div> <div class="codeSnippetTab csNaTab codeCsharp"> <a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a> </div> <div class="codeSnippetTab csNaTab codeFsharp"> <a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a> </div> <div class="codeSnippetTab csNaTab codeCpp"> <a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a> </div> <div class="codeSnippetTab csActiveTab csLastTab codeJScript"> <a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a> </div> <div class="codeSnippetTabRightCornerActive"> </div> <div style="clear:both;"> </div> </div> <div class="codeSnippetCodeCollection"> <div class="codeSnippetToolbar"> <a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a> </div> <div class="codeSnippetCode codeJScript"> <pre xml:space="preserve" class="brush: js">public static function get AppSetting() : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a>;&nbsp;<br />public static function set AppSetting(value : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a>);</pre> </div> <div class="codeSnippetCode codeNA"> <pre xml:space="preserve">This language is not supported or no code example is available.</pre> </div> </div> </div> </div> <h4 class="subHeading"> Property Value</h4> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfiguration">IConfiguration</a> </div> </div> <div class="section_container"> <div class="section_heading"> <span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">Applies to</a></span> <div>&nbsp;</div> </div> <div id="frameworksSection" class="section"> <h4 class="subHeading">.NET Framework</h4>Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1<br /> </div> </div> <div class="section_container"> <div class="section_heading"> <span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">See Also</a></span> <div>&nbsp;</div> </div> <div id="seeAlsoSection" class="section"> <div> <a href="topic_0000000000000006.html">DataProtection Class</a><br /> <a href="topic_0000000000000000.html">Microsoft.Extensions.DependencyInjection Namespace</a><br /> </div> </div> </div> </div> <div id="internal-toc-area"> <div id="internal-toc-container" class="stickthis"> <h3 id="internal-toc-heading">In this article</h3> <span id="internal-toc-definition-localized-text">Definition</span> </div> </div> </div> <div id="footer"> <div id="footer-container"> <p><span style="color: #FF0000;">Generated with unregistered version of <a target="_top" href="http://www.helixoft.com/vsdocman/overview.html">VSdocman</a></span>&nbsp;<br />Your own footer text will only be shown in registered version.</p> </div> </div> </div> </body> </html>
asiboro/asiboro.github.io
vsdoc/topic_0000000000000007.html
HTML
mit
12,195
//process.argv.forEach(function (val, index, array) { console.log(index + ': ' + val); }); var fs = require('fs'); (function () { function slugify(text) { text = text.replace(/[^-a-zA-Z0-9,&\s]+/ig, ''); text = text.replace(/-/gi, "_"); text = text.replace(/\s/gi, "-"); return text; } var DocGen = { filesArr: null, files: {}, functions: [], nbLoaded: 0, init: function (files) { this.filesArr = files; }, start: function () { for (var i=0, len=this.filesArr.length; i<len; i++) { var file = this.filesArr[i]; this.processFile(file); } }, fileLoaded: function() { this.nbLoaded++; if (this.nbLoaded == this.filesArr.length) { this.exportHtml(); } }, getSignatures: function (m) { var sig = null; var signatures = []; var rSig = /\\*\s?(@sig\s.*)\n/gi; while (sig = rSig.exec(m)) { var params = []; var rParam = /(\w+):(\w+)/gi; while (param = rParam.exec(sig[1])) { var name = param[1]; var type = param[2]; params.push({ name: name, type: type }); } if (params.length >= 1) { ret = params.pop(); } signatures.push({ params: params, ret: ret}); } return signatures; }, extractInfos: function (m) { var self = this; var fun = m[2]; var rFun = /['|"]?([a-zA-Z0-9._-]+)['|"]?\s?:\s?function\s?\(.*\)\s?{/gi; var isFun = rFun.exec(fun); if (!isFun) { rFun = /socket\.on\(['|"]([a-zA-Z0-9._-]+)['|"]\s?,\s?function\s?\(.*\)\s?{/gi; isFun = rFun.exec(fun); } if (isFun) { var comment = m[1]; var name = isFun[1]; var sigs = self.getSignatures(comment); var desc = (/\*\s(.*?)\n/gi).exec(m[1])[1]; var f = { name: name, description: desc, sigs: sigs }; return f; } return null; }, processFile: function (file) { var self = this; // Get the file in a buffer fs.readFile(file, function(err, data) { var buf = data.toString('binary'); var functions = []; // Get all long comment ( /** ) var rgx = new RegExp("/\\*\\*\n([a-zA-Z0-9 -_\n\t]*)\\*/\n(.*)\n", "gi"); while (m = rgx.exec(buf)) { info = self.extractInfos(m); if (info) { functions.push(info); } } self.files[file] = { functions: functions }; self.fileLoaded(); }); }, sortFunctions: function (fun1, fun2) { var name1 = fun1.name.toLowerCase(); var name2 = fun2.name.toLowerCase(); if (name1 < name2) { return -1; } else if (name1 > name2) { return 1; } else { return 0; } }, exportHtml: function() { for (var fileName in this.files) { var file = this.files[fileName]; file.functions.sort(this.sortFunctions); console.log(fileName, file.functions.length); var html = '<!DOCTYPE html>\n' + '<html>\n' + '<head>\n' + ' <title></title>\n' + ' <link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" charset="utf-8" />\n' + ' <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />\n' + //' <script src="js/scripts.js" type="text/javascript"></script>' + '</head>\n' + '<body>\n' + '\n' + '<div class="menu" id="menu">\n' + ' <h1>Files</h1>\n' + ' <ul>\n'; for (var f in this.files) { html += ' <li><a href="'+f+'.html">'+f+'</a></li>\n'; } html += ' </ul>\n' + ' <h1>Functions</h1>\n' + ' <ul>\n'; for (var i=0, len=file.functions.length; i<len; i++) { html += ' <li><a href="#'+slugify(file.functions[i].name)+'">'+file.functions[i].name+'</a></li>\n'; } html += ' </ul>\n' html += '</div>\n' + '<div id="page">\n' + ' <div class="content">\n'; for (var i=0, len=file.functions.length; i<len; i++) { var fn = file.functions[i]; if (fn.sigs.length > 0) { html += '<h3><a name="'+slugify(fn.name)+'">'+fn.name+'</a></h3>\n'; html += '<span class="signature">\n'; for (var s=0, len2=fn.sigs.length; s<len2; s++) { var sig = fn.sigs[s]; html += '<span class="name">'+fn.name+'</span> ( '; for (var p=0, len3=sig.params.length; p<len3; p++) { var param = sig.params[p]; html += '<span class="param">'+param.name+'</span>:<span class="type">'+param.type+'</span>, '; } html = html.substr(0, html.length-2); html += ' ) : <span class="param">'+sig.ret.name+'</span>:<span class="type">'+sig.ret.type+'</span><br />'; } html = html.substr(0, html.length-6); html += '</span>\n'; html += '<p>'+fn.description+'</p>'; } } html += ' </div>\n' + '</div>\n' + '\n' + '</body>\n' '</html>'; fs.writeFile('doc/'+fileName+'.html', html); } } }; var files = ['sockets.js', 'database_operations.js']; DocGen.init(files); DocGen.start(); })();
alaingilbert/ttdashboard
server/gatherer/parser.js
JavaScript
mit
5,796
require 'rest_client' module WebHook # Makes a http request to the target endpoint passing contents as data def self.send_message(endpoint, content) # TODO: # - Make webrequest # - If success return success # - If error, return error response = RestClient.post endpoint, content.to_json, :content_type => :json return response.code, response end def self.prune_devices # Checks failed endpoints # removes "dead" endpoints end end
WiretapServer/wiretap-server
helpers/webhook.rb
Ruby
mit
480
# -*- coding:utf-8 -*- # This code is automatically transpiled by Saklient Translator import six from ..client import Client from .model import Model from ..resources.resource import Resource from ..resources.licenseinfo import LicenseInfo from ...util import Util import saklient str = six.text_type # module saklient.cloud.models.model_licenseinfo class Model_LicenseInfo(Model): ## ライセンス種別情報を検索するための機能を備えたクラス。 ## @private # @return {str} def _api_path(self): return "/product/license" ## @private # @return {str} def _root_key(self): return "LicenseInfo" ## @private # @return {str} def _root_key_m(self): return "LicenseInfo" ## @private # @return {str} def _class_name(self): return "LicenseInfo" ## @private # @param {any} obj # @param {bool} wrapped=False # @return {saklient.cloud.resources.resource.Resource} def _create_resource_impl(self, obj, wrapped=False): Util.validate_type(wrapped, "bool") return LicenseInfo(self._client, obj, wrapped) ## 次に取得するリストの開始オフセットを指定します。 # # @param {int} offset オフセット # @return {saklient.cloud.models.model_licenseinfo.Model_LicenseInfo} this def offset(self, offset): Util.validate_type(offset, "int") return self._offset(offset) ## 次に取得するリストの上限レコード数を指定します。 # # @param {int} count 上限レコード数 # @return {saklient.cloud.models.model_licenseinfo.Model_LicenseInfo} this def limit(self, count): Util.validate_type(count, "int") return self._limit(count) ## Web APIのフィルタリング設定を直接指定します。 # # @param {str} key キー # @param {any} value 値 # @param {bool} multiple=False valueに配列を与え、OR条件で完全一致検索する場合にtrueを指定します。通常、valueはスカラ値であいまい検索されます。 # @return {saklient.cloud.models.model_licenseinfo.Model_LicenseInfo} def filter_by(self, key, value, multiple=False): Util.validate_type(key, "str") Util.validate_type(multiple, "bool") return self._filter_by(key, value, multiple) ## 次のリクエストのために設定されているステートをすべて破棄します。 # # @return {saklient.cloud.models.model_licenseinfo.Model_LicenseInfo} this def reset(self): return self._reset() ## 指定したIDを持つ唯一のリソースを取得します。 # # @param {str} id # @return {saklient.cloud.resources.licenseinfo.LicenseInfo} リソースオブジェクト def get_by_id(self, id): Util.validate_type(id, "str") return self._get_by_id(id) ## リソースの検索リクエストを実行し、結果をリストで取得します。 # # @return {saklient.cloud.resources.licenseinfo.LicenseInfo[]} リソースオブジェクトの配列 def find(self): return self._find() ## 指定した文字列を名前に含むリソースに絞り込みます。 # # 大文字・小文字は区別されません。 # 半角スペースで区切られた複数の文字列は、それらをすべて含むことが条件とみなされます。 # # @todo Implement test case # @param {str} name # @return {saklient.cloud.models.model_licenseinfo.Model_LicenseInfo} def with_name_like(self, name): Util.validate_type(name, "str") return self._with_name_like(name) ## 名前でソートします。 # # @todo Implement test case # @param {bool} reverse=False # @return {saklient.cloud.models.model_licenseinfo.Model_LicenseInfo} def sort_by_name(self, reverse=False): Util.validate_type(reverse, "bool") return self._sort_by_name(reverse) ## @ignore # @param {saklient.cloud.client.Client} client def __init__(self, client): super(Model_LicenseInfo, self).__init__(client) Util.validate_type(client, "saklient.cloud.client.Client")
sakura-internet/saklient.python
saklient/cloud/models/model_licenseinfo.py
Python
mit
4,306
'use strict'; exports.name = '/activation';
longlh/di-linker
test/data/activation.js
JavaScript
mit
45
--- layout: default --- <section class="collection-head small geopattern" data-pattern-id="{{ page.title | truncate: 15, ''}}"> <div class="container"> <div class="columns"> <div class="column three-fourths"> <div class="collection-title"> <h1 class="collection-header">{{ page.title }}</h1> <div class="collection-info"> {% if page.date %} <span class="meta-info"> <span class="octicon octicon-calendar"></span> {{ page.date | date: "%Y/%m/%d" }} </span> {% endif %} {% for cat in page.categories %} <span class="meta-info"> <span class="octicon octicon-file-directory"></span> <a href="{{ site.url }}/categories/#{{ cat }}" title="{{ cat }}">{{ cat }}</a> </span> {% endfor %} </div> </div> </div> </div> </div> </section> <!-- / .banner --> <section class="container content"> <div class="columns"> <div class="column three-fourths" > <article class="article-content markdown-body"> {{ content }} {% include article-footer.html %} </article> <div class="share"> {% include sns-share.html %} </div> <div class="comment"> {% include comments.html %} </div> </div> <div class="column one-fourth"> {% include sidebar-search.html %} {% include sidebar-post-nav.html %} </div> </div> </section> <!-- /section.content -->
zxning/zxning.github.io
_layouts/post.html
HTML
mit
1,491
<?php use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Exception\RouteNotFoundException; /** * appdevUrlGenerator * * This class has been auto-generated * by the Symfony Routing Component. */ class appdevUrlGenerator extends Symfony\Component\Routing\Generator\UrlGenerator { static private $declaredRouteNames = array( '_wdt' => true, '_profiler_search' => true, '_profiler_purge' => true, '_profiler_import' => true, '_profiler_export' => true, '_profiler_search_results' => true, '_profiler' => true, '_configurator_home' => true, '_configurator_step' => true, '_configurator_final' => true, 'Creditunions' => true, 'Creditunions_show' => true, 'Creditunions_new' => true, 'Creditunions_create' => true, 'Creditunions_edit' => true, 'Creditunions_update' => true, 'Creditunions_delete' => true, 'Customers' => true, 'Customers_show' => true, 'Customers_new' => true, 'Customers_create' => true, 'Customers_edit' => true, 'Customers_update' => true, 'Customers_delete' => true, 'creditunion_frontend_default_index' => true, 'creditunion_frontend_default_contact' => true, 'Depositsandloans' => true, 'Depositsandloans_show' => true, 'Depositsandloans_new' => true, 'Depositsandloans_create' => true, 'Depositsandloans_edit' => true, 'Depositsandloans_update' => true, 'Depositsandloans_delete' => true, 'Price' => true, 'Price_show' => true, 'Price_new' => true, 'Price_create' => true, 'Price_edit' => true, 'Price_update' => true, 'Price_delete' => true, 'creditunion_frontend_welcome_index' => true, 'worker' => true, 'worker_show' => true, 'worker_new' => true, 'worker_create' => true, 'worker_edit' => true, 'worker_update' => true, 'worker_delete' => true, ); /** * Constructor. */ public function __construct(RequestContext $context) { $this->context = $context; } public function generate($name, $parameters = array(), $absolute = false) { if (!isset(self::$declaredRouteNames[$name])) { throw new RouteNotFoundException(sprintf('Route "%s" does not exist.', $name)); } $escapedName = str_replace('.', '__', $name); list($variables, $defaults, $requirements, $tokens) = $this->{'get'.$escapedName.'RouteInfo'}(); return $this->doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $absolute); } private function get_wdtRouteInfo() { return array(array ( 0 => 'token',), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::toolbarAction',), array (), array ( 0 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'token', ), 1 => array ( 0 => 'text', 1 => '/_wdt', ),)); } private function get_profiler_searchRouteInfo() { return array(array (), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::searchAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/_profiler/search', ),)); } private function get_profiler_purgeRouteInfo() { return array(array (), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::purgeAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/_profiler/purge', ),)); } private function get_profiler_importRouteInfo() { return array(array (), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::importAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/_profiler/import', ),)); } private function get_profiler_exportRouteInfo() { return array(array ( 0 => 'token',), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::exportAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '.txt', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/\\.]+?', 3 => 'token', ), 2 => array ( 0 => 'text', 1 => '/_profiler/export', ),)); } private function get_profiler_search_resultsRouteInfo() { return array(array ( 0 => 'token',), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::searchResultsAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/search/results', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'token', ), 2 => array ( 0 => 'text', 1 => '/_profiler', ),)); } private function get_profilerRouteInfo() { return array(array ( 0 => 'token',), array ( '_controller' => 'Symfony\\Bundle\\WebProfilerBundle\\Controller\\ProfilerController::panelAction',), array (), array ( 0 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'token', ), 1 => array ( 0 => 'text', 1 => '/_profiler', ),)); } private function get_configurator_homeRouteInfo() { return array(array (), array ( '_controller' => 'Sensio\\Bundle\\DistributionBundle\\Controller\\ConfiguratorController::checkAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/_configurator/', ),)); } private function get_configurator_stepRouteInfo() { return array(array ( 0 => 'index',), array ( '_controller' => 'Sensio\\Bundle\\DistributionBundle\\Controller\\ConfiguratorController::stepAction',), array (), array ( 0 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'index', ), 1 => array ( 0 => 'text', 1 => '/_configurator/step', ),)); } private function get_configurator_finalRouteInfo() { return array(array (), array ( '_controller' => 'Sensio\\Bundle\\DistributionBundle\\Controller\\ConfiguratorController::finalAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/_configurator/final', ),)); } private function getCreditunionsRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::indexAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Creditunions/', ),)); } private function getCreditunions_showRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::showAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/show', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Creditunions', ),)); } private function getCreditunions_newRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::newAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Creditunions/new', ),)); } private function getCreditunions_createRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::createAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/Creditunions/create', ),)); } private function getCreditunions_editRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::editAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/edit', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Creditunions', ),)); } private function getCreditunions_updateRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::updateAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/update', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Creditunions', ),)); } private function getCreditunions_deleteRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CreditunionsController::deleteAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/delete', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Creditunions', ),)); } private function getCustomersRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::indexAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Customers/', ),)); } private function getCustomers_showRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::showAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/show', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Customers', ),)); } private function getCustomers_newRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::newAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Customers/new', ),)); } private function getCustomers_createRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::createAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/Customers/create', ),)); } private function getCustomers_editRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::editAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/edit', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Customers', ),)); } private function getCustomers_updateRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::updateAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/update', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Customers', ),)); } private function getCustomers_deleteRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\CustomersController::deleteAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/delete', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Customers', ),)); } private function getcreditunion_frontend_default_indexRouteInfo() { return array(array ( 0 => 'name',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DefaultController::indexAction',), array (), array ( 0 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'name', ), 1 => array ( 0 => 'text', 1 => '/hello', ),)); } private function getcreditunion_frontend_default_contactRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DefaultController::contact',), array (), array ( 0 => array ( 0 => 'text', 1 => '/contact', ),)); } private function getDepositsandloansRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::indexAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Depositsandloans/', ),)); } private function getDepositsandloans_showRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::showAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/show', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Depositsandloans', ),)); } private function getDepositsandloans_newRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::newAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Depositsandloans/new', ),)); } private function getDepositsandloans_createRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::createAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/Depositsandloans/create', ),)); } private function getDepositsandloans_editRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::editAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/edit', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Depositsandloans', ),)); } private function getDepositsandloans_updateRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::updateAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/update', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Depositsandloans', ),)); } private function getDepositsandloans_deleteRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\DepositsandloansController::deleteAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/delete', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Depositsandloans', ),)); } private function getPriceRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::indexAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Price/', ),)); } private function getPrice_showRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::showAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/show', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Price', ),)); } private function getPrice_newRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::newAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Price/new', ),)); } private function getPrice_createRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::createAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/Price/create', ),)); } private function getPrice_editRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::editAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/edit', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Price', ),)); } private function getPrice_updateRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::updateAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/update', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Price', ),)); } private function getPrice_deleteRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\PricelistController::deleteAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/delete', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Price', ),)); } private function getcreditunion_frontend_welcome_indexRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WelcomeController::indexAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/', ),)); } private function getworkerRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::indexAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Worker/', ),)); } private function getworker_showRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::showAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/show', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Worker', ),)); } private function getworker_newRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::newAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/Worker/new', ),)); } private function getworker_createRouteInfo() { return array(array (), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::createAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/Worker/create', ),)); } private function getworker_editRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::editAction',), array (), array ( 0 => array ( 0 => 'text', 1 => '/edit', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Worker', ),)); } private function getworker_updateRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::updateAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/update', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Worker', ),)); } private function getworker_deleteRouteInfo() { return array(array ( 0 => 'id',), array ( '_controller' => 'CreditUnion\\FrontendBundle\\Controller\\WorkerController::deleteAction',), array ( '_method' => 'post',), array ( 0 => array ( 0 => 'text', 1 => '/delete', ), 1 => array ( 0 => 'variable', 1 => '/', 2 => '[^/]+?', 3 => 'id', ), 2 => array ( 0 => 'text', 1 => '/Worker', ),)); } }
JKord/CreditUnionSoftwareDb
app/cache/dev/appdevUrlGenerator.php
PHP
mit
20,470
const _ = require('lodash') const Joi = require('joi') module.exports = { name: 'href', params: { href: Joi.array().items( Joi.string(), Joi.func().ref() ).min(1) }, setup (params) { params.href = [''].concat(params.href) this._flags.href = params.href }, validate (params, value, state, options) { let parts = value.split('/').slice(1) if (!parts.every((p) => _.size(p) > 0)) { return this.createError('link.href', { v: value }, state, options) } else { return value } } }
hrithikp/joi-link
lib/rule.js
JavaScript
mit
545
using System; using System.Windows.Input; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using Neo.Gui.Base.Dialogs.Interfaces; using Neo.Gui.Base.Dialogs.Results.Wallets; using Neo.Gui.Base.Managers.Interfaces; using Neo.Gui.Base.Services.Interfaces; namespace Neo.Gui.ViewModels.Wallets { public class OpenWalletViewModel : ViewModelBase, IDialogViewModel<OpenWalletDialogResult> { #region Private Fields private readonly IFileDialogService fileDialogService; private string walletPath; private string password; #endregion #region Constructor public OpenWalletViewModel( IFileManager fileManager, IFileDialogService fileDialogService, ISettingsManager settingsManager) { this.fileDialogService = fileDialogService; if (fileManager.FileExists(settingsManager.LastWalletPath)) { this.WalletPath = settingsManager.LastWalletPath; } } #endregion #region Public Properties public string WalletPath { get => this.walletPath; set { if (this.walletPath == value) return; this.walletPath = value; RaisePropertyChanged(); // Update dependent property RaisePropertyChanged(nameof(this.ConfirmEnabled)); } } public bool ConfirmEnabled { get { if (string.IsNullOrEmpty(this.WalletPath) || string.IsNullOrEmpty(this.password)) { return false; } return true; } } public ICommand GetWalletPathCommand => new RelayCommand(this.GetWalletPath); public ICommand ConfirmCommand => new RelayCommand(this.Confirm); #endregion #region IDialogViewModel implementation public event EventHandler Close; public event EventHandler<OpenWalletDialogResult> SetDialogResultAndClose; public OpenWalletDialogResult DialogResult { get; private set; } #endregion #region Public Methods public void UpdatePassword(string updatedPassword) { this.password = updatedPassword; // Update dependent property RaisePropertyChanged(nameof(this.ConfirmEnabled)); } #endregion #region Private Methods private void GetWalletPath() { // TODO Localise file filter text var path = this.fileDialogService.OpenFileDialog("NEP-6 Wallet|*.json|SQLite Wallet|*.db3"); if (string.IsNullOrEmpty(path)) return; this.WalletPath = path; } private void Confirm() { if (!this.ConfirmEnabled) return; if (this.SetDialogResultAndClose == null) return; var dialogResult = new OpenWalletDialogResult( this.WalletPath, this.password); this.SetDialogResultAndClose(this, dialogResult); } #endregion } }
jlgaffney/neo-gui-wpf
Neo.Gui.ViewModels/Wallets/OpenWalletViewModel.cs
C#
mit
3,211
// Mucking with different levels let currentLevel = { cells: undefined, dims: undefined }; if (0) { currentLevel.cells = level; currentLevel.dims = level_dims; } else { currentLevel.cells = LEVEL_ONE; currentLevel.dims = LEVEL_ONE_DIMS; } // Return a reference to the (logical) cell's unique object const _getCellReference = (i, j, k = 1) => { if (i < 0 || j < 0) { return undefined; } if (i >= currentLevel.dims.i || j >= currentLevel.dims.j) { return undefined; } return currentLevel.cells[i + j * (currentLevel.dims.j)]; }; /** * The drawing grid used to represent the editable regions of the level. * [i, j] refer to logical coordinates. [w, h] represent the number of pixels * per grid division on the target 2D rendering surface. */ const grid = { i: 20, j: 20, w: undefined, h: undefined, }; // Translate party front/back/left/right to N/S/E/W const XLATE_UCS2PARTY = { n: { f: 'n', b: 's', r: 'e', l: 'w' }, s: { f: 's', b: 'n', r: 'w', l: 'e' }, e: { f: 'e', b: 'w', r: 's', l: 'n' }, w: { f: 'w', b: 'e', r: 'n', l: 's' } }; // JavaScript divmod is boned const divMod = (n, d) => { return n - d * Math.floor(n / d); }; // Give an [i, j] coordinate and wrap it if exceeds grid dimensions const gridWrap = (i, j) => { return [divMod(i, grid.i), divMod(j, grid.j)]; };
petertorelli/OldSchoolRPG
js/globals.js
JavaScript
mit
1,316
\hypertarget{group___u_a_r_t___word___length}{}\section{U\+A\+RT Word Length} \label{group___u_a_r_t___word___length}\index{U\+A\+R\+T Word Length@{U\+A\+R\+T Word Length}} \subsection*{Macros} \begin{DoxyCompactItemize} \item \#define {\bfseries U\+A\+R\+T\+\_\+\+W\+O\+R\+D\+L\+E\+N\+G\+T\+H\+\_\+8B}~((uint32\+\_\+t)0x00000000)\hypertarget{group___u_a_r_t___word___length_gaf394e9abaf17932ee89591f990fe6407}{}\label{group___u_a_r_t___word___length_gaf394e9abaf17932ee89591f990fe6407} \item \#define {\bfseries U\+A\+R\+T\+\_\+\+W\+O\+R\+D\+L\+E\+N\+G\+T\+H\+\_\+9B}~((uint32\+\_\+t)\hyperlink{group___peripheral___registers___bits___definition_ga95f0288b9c6aaeca7cb6550a2e6833e2}{U\+S\+A\+R\+T\+\_\+\+C\+R1\+\_\+M})\hypertarget{group___u_a_r_t___word___length_gaf867be43de35fd3c32fe0b4dd4058f7e}{}\label{group___u_a_r_t___word___length_gaf867be43de35fd3c32fe0b4dd4058f7e} \end{DoxyCompactItemize} \subsection{Detailed Description}
team-diana/nucleo-dynamixel
docs/latex/group___u_a_r_t___word___length.tex
TeX
mit
940
var fastn = require('fastn')({ _generic: require('fastn/genericComponent'), list: require('fastn/listComponent'), templater: require('fastn/templaterComponent'), text: require('fastn/textComponent'), ratingControl: require('./ratingControlComponent') }); module.exports = function(settings){ return fastn('ratingControl', settings).attach().render(); };
shotlom/rating-control-component
index.js
JavaScript
mit
378
import os import logging from jsub.util import safe_mkdir from jsub.util import safe_rmdir class Submit(object): def __init__(self, manager, task_id, sub_ids=None, dry_run=False, resubmit=False): self.__manager = manager self.__task = self.__manager.load_task(task_id) self.__sub_ids = sub_ids self.__dry_run = dry_run self.__resubmit = resubmit self.__logger = logging.getLogger('JSUB') if self.__sub_ids==None: self.__sub_ids=range(len(self.__task.data['jobvar'])) self.__initialize_manager() def __initialize_manager(self): self.__config_mgr = self.__manager.load_config_manager() self.__backend_mgr = self.__manager.load_backend_manager() self.__bootstrap_mgr = self.__manager.load_bootstrap_manager() self.__navigator_mgr = self.__manager.load_navigator_manager() self.__context_mgr = self.__manager.load_context_manager() self.__action_mgr = self.__manager.load_action_manager() self.__launcher_mgr = self.__manager.load_launcher_manager() def handle(self): run_root = self.__backend_mgr.get_run_root(self.__task.data['backend'], self.__task.data['id']) main_root = os.path.join(run_root, 'main') safe_rmdir(main_root) safe_mkdir(main_root) self.__create_input(main_root) self.__create_context(main_root) self.__create_action(main_root) self.__create_navigator(main_root) self.__create_bootstrap(main_root) launcher_param = self.__create_launcher(run_root) self.__submit(launcher_param) def __create_input(self, main_root): content = self.__manager.load_content() input_dir = os.path.join(main_root,'input') try: content.get(self.__task.data['id'], 'input', os.path.join(main_root, 'input')) except: safe_mkdir(input_dir) def __create_context(self, main_root): context_dir = os.path.join(main_root, 'context') safe_mkdir(context_dir) action_default = {} for unit, param in self.__task.data['workflow'].items(): action_default[unit] = self.__action_mgr.default_config(param['type']) navigators = self.__config_mgr.navigator() context_format = self.__navigator_mgr.context_format(navigators) self.__context_mgr.create_context_file(self.__task.data, action_default, context_format, context_dir) def __create_action(self, main_root): action_dir = os.path.join(main_root, 'action') safe_mkdir(action_dir) actions = set() for unit, param in self.__task.data['workflow'].items(): actions.add(param['type']) self.__action_mgr.create_actions(actions, action_dir) def __create_navigator(self, main_root): navigator_dir = os.path.join(main_root, 'navigator') safe_mkdir(navigator_dir) navigators = self.__config_mgr.navigator() self.__navigator_mgr.create_navigators(navigators, navigator_dir) def __create_bootstrap(self, main_root): bootstrap_dir = os.path.join(main_root, 'bootstrap') safe_mkdir(bootstrap_dir) bootstrap = self.__config_mgr.bootstrap() self.__bootstrap_mgr.create_bootstrap(bootstrap, bootstrap_dir) def __create_launcher(self, run_root): launcher = self.__task.data['backend']['launcher'] return self.__launcher_mgr.create_launcher(launcher, run_root) def __submit(self, launcher_param): if self.__dry_run: return if self.__resubmit==False: if self.__task.data.get('backend_job_ids') or self.__task.data.get('backend_task_id'): self.__logger.info('This task has already been submitted to backend, rerun the command with "-r" option if you wish to delete current jobs and resubmit the task.') return else: self.__logger.info('Removing submitted jobs on backend before resubmission.') task_id = self.__task.data.get('backend_task_id') #remove previously generated files in job folder job_ids = self.__task.data.get('backend_job_ids') run_root = self.__backend_mgr.get_run_root(self.__task.data['backend'], self.__task.data['id']) job_root=os.path.join(run_root,'subjobs') safe_rmdir(job_root) if task_id: self.__backend_mgr.delete_task(self.__task.data['backend'],backend_task_id = task_id) elif job_ids: self.__backend_mgr.delete_jobs(self.__task.data['backend'],backend_job_ids = job_ids) result = self.__backend_mgr.submit(self.__task.data['backend'], self.__task.data['id'], launcher_param, sub_ids = self.__sub_ids) if not type(result) is dict: result = {} if 'backend_job_ids' in result: njobs = len(result['backend_job_ids']) else: njobs = len(result) if njobs>0: self.__logger.info('%d jobs successfully submitted to backend.'%(njobs)) self.__task.data.setdefault('backend_job_ids',{}) backend_job_ids=result.get('backend_job_ids',{}) backend_task_id=result.get('backend_task_id',0) self.__task.data['backend_job_ids'].update(backend_job_ids) self.__task.data['backend_task_id']=backend_task_id self.__task.data['status'] = 'Submitted' task_pool = self.__manager.load_task_pool() task_pool.save(self.__task) self.__logger.debug(result)
jsubpy/jsub
jsub/operation/submit.py
Python
mit
4,925
# tree [![Build Status](https://travis-ci.org/ryanfowler/tree.svg?branch=master)](https://travis-ci.org/ryanfowler/tree) [![Go Report Card](https://goreportcard.com/badge/github.com/ryanfowler/tree)](https://goreportcard.com/report/github.com/ryanfowler/tree) [![GoDoc](https://godoc.org/github.com/ryanfowler/tree?status.svg)](https://godoc.org/github.com/ryanfowler/tree) In-memory Red-Black Tree implementation in Go. Red-black trees are a self-balancing binary search tree that allow for O(log(n)) search, insertion, and deletion. To learn more, you can check out the [Wikipedia page](https://en.wikipedia.org/wiki/Red%E2%80%93black_tree). This library purposely maintains a similiar interface to the excellent btree implementation by Google: [https://github.com/google/btree](https://github.com/google/btree) Which, in turn, was inspired by the great: [https://github.com/petar/GoLLRB](https://github.com/petar/GoLLRB) ## Usage The zero value of a RedBlackTree is a ready to use empty tree. ```go import "github.com/ryanfowler/tree" var rb tree.RedBlackTree ``` ### Items Items put into the tree must implement the Item interface, which consists on a single method, `Less(Item) bool`. Two Items 'a' & 'b' are considered equal if: ```go equal := !a.Less(b) && !b.Less(a) ``` Convenience types that implement the Item interface are: - `Int` - `String` - `Bytes` However, most of the time you'll want to use a custom type. ### Inserting Items can be inserted or replaced in a RedBlackTree using `Upsert`. Upsert will return the Item that was replaced by the Upsert. If there was no matching Item in the tree, nil is returned. ```go var rb tree.RedBlackTree item := rb.Upsert(tree.Int(10)) fmt.Println(item) // Will print: <nil> item = rb.Upsert(tree.Int(10)) fmt.Println(item) // Will print: 10 ``` ### Retrieving An Item can be retrieved from a RedBlackTree using the following methods: - `Get(item Item) Item` - returns an Item in the tree _equal_ to the provided Item, or nil if there is no matching Item. - `Max() Item` - returns the largest Item in the tree, or nil if the tree is empty. - `Min() Item` - returns the smallest Item in the tree, or nil if the tree is empty. ```go var rb tree.RedBlackTree rb.Upsert(tree.Int(4)) rb.Upsert(tree.Int(5)) rb.Upsert(tree.Int(6)) item := rb.Get(tree.Int(5)) fmt.Println(item) // Will print: 5 item = rb.Get(tree.Int(8)) fmt.Println(item) // Will print: <nil> item = rb.Max() fmt.Println(item) // Will print: 6 item = rb.Min() fmt.Println(item) // Will print: 4 ``` ### Deleting An Item can be removed from a RedBlackTree using the following methods: - `Delete(item Item) Item` - removes an Item in the tree _equal_ to the provided Item, returning it. If there is no matching Item, nil is returned. - `DeleteMax() Item` - deletes and returns the largest Item in the tree, or nil if the tree is empty. - `DeleteMin() Item` - deletes and returns the smallest Item in the tree, or nil if the tree is empty. ```go var rb tree.RedBlackTree rb.Upsert(tree.Int(4)) rb.Upsert(tree.Int(5)) rb.Upsert(tree.Int(6)) fmt.Println(rb.Size()) // Will print: 3 item := rb.Delete(tree.Int(5)) fmt.Println(item) // Will print: 5 fmt.Println(rb.Size()) // Will print: 2 item = rb.Delete(tree.Int(8)) fmt.Println(item) // Will print: <nil> fmt.Println(rb.Size()) // Will print: 2 item = rb.DeleteMax() fmt.Println(item) // Will print: 6 fmt.Println(rb.Size()) // Will print: 1 item = rb.Min() fmt.Println(item) // Will print: 4 fmt.Println(rb.Size()) // Will print: 0 ``` ### Example Currently, a RedBlackTree does _not_ allow for the storing of equal items. This can be worked around by including a second, unique field in the type's `Less` method. For example, suppose you were designing a game and had a collection of users with their highest scores. If you wanted to retrieve the user(s) with the highest score, it could look something like this: ```go import ( "fmt" "github.com/ryanfowler/tree" ) type User struct { ID int Score int } func (u *User) Less(than tree.Item) bool { thanUser := than.(*User) return u.Score < thanUser.Score || (u.Score == thanUser.Score && u.ID < thanUser.ID) } func main() { var rb tree.RedBlackTree // Create users. u1 := &User{ID: 1, Score: 10} u2 := &User{ID: 2, Score: 7} u3 := &User{ID: 3, Score: 12} u4 := &User{ID: 4, Score: 10} // Insert into the RedBlackTree. rb.Upsert(u1) rb.Upsert(u2) rb.Upsert(u3) rb.Upsert(u4) // Get the user with the highest score. item := rb.Max() if item == nil { // The tree is empty. return } maxItem := item.(*User) fmt.Printf("%+v\n", maxItem) // Will print: // &{ID: 3, Score: 12} // Insert another user with a matching high score. u5 := &User{ID: 5, Score: 12} rb.Upsert(u5) // Get all users with the highest score. var maxScore int var maxUsers []*User rb.Descend(func(item tree.Item) bool { user := item.(*User) if len(maxUsers) == 0 { maxScore = user.Score maxUsers = append(maxUsers, user) return true } if user.Score < maxScore { return false } maxUsers = append(maxUsers, user) return true }) for _, user := range maxUsers { fmt.Printf("%+v\n", user) } // Will print: // &{ID: 5, Score: 12} // &{ID: 3, Score: 12} } ``` ## License MIT License Copyright (c) 2017 Ryan Fowler 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.
ryanfowler/tree
README.md
Markdown
mit
6,359
<?php namespace rg\injektor; class InjectionLoopException extends InjectionException { }
researchgate/injektor
src/rg/injektor/InjectionLoopException.php
PHP
mit
91
<!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 (version 1.7.0_45) on Mon Aug 31 23:15:49 CEST 2015 --> <title>IObjectStringEmptyCheck (FailFast v.1.3)</title> <meta name="date" content="2015-08-31"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="IObjectStringEmptyCheck (FailFast v.1.3)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/IObjectStringEmptyCheck.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../starkcoder/failfast/checks/objects/strings/IObjectStringDefaultProperties.html" title="interface in starkcoder.failfast.checks.objects.strings"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../../starkcoder/failfast/checks/objects/strings/IObjectStringEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.strings"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?starkcoder/failfast/checks/objects/strings/IObjectStringEmptyCheck.html" target="_top">Frames</a></li> <li><a href="IObjectStringEmptyCheck.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">starkcoder.failfast.checks.objects.strings</div> <h2 title="Interface IObjectStringEmptyCheck" class="title">Interface IObjectStringEmptyCheck</h2> </div> <div class="contentContainer"> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Superinterfaces:</dt> <dd><a href="../../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></dd> </dl> <dl> <dt>All Known Subinterfaces:</dt> <dd><a href="../../../../../starkcoder/failfast/checks/IChecker.html" title="interface in starkcoder.failfast.checks">IChecker</a>, <a href="../../../../../starkcoder/failfast/checks/objects/IObjectChecker.html" title="interface in starkcoder.failfast.checks.objects">IObjectChecker</a>, <a href="../../../../../starkcoder/failfast/checks/objects/strings/IObjectStringChecker.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringChecker</a></dd> </dl> <dl> <dt>All Known Implementing Classes:</dt> <dd><a href="../../../../../starkcoder/failfast/checks/AChecker.html" title="class in starkcoder.failfast.checks">AChecker</a>, <a href="../../../../../starkcoder/failfast/checks/Checker.html" title="class in starkcoder.failfast.checks">Checker</a></dd> </dl> <hr> <br> <pre>public interface <span class="strong">IObjectStringEmptyCheck</span> extends <a href="../../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></pre> <div class="block">Specifies an empty value check for String.</div> <dl><dt><span class="strong">Author:</span></dt> <dd>Keld Oelykke</dd></dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../../starkcoder/failfast/checks/objects/strings/IObjectStringEmptyCheck.html#isStringEmpty(java.lang.Object, java.lang.String)">isStringEmpty</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;caller, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;referenceA)</code> <div class="block">Checks if the String reference an empty string.</div> </td> </tr> </table> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="isStringEmpty(java.lang.Object, java.lang.String)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>isStringEmpty</h4> <pre>boolean&nbsp;isStringEmpty(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;caller, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;referenceA)</pre> <div class="block">Checks if the String reference an empty string.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>caller</code> - end-user instance initiating the check</dd><dd><code>referenceA</code> - reference to check</dd> <dt><span class="strong">Returns:</span></dt><dd>true, if referenced object has an empty string, otherwise false</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if caller is null</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/IObjectStringEmptyCheck.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../starkcoder/failfast/checks/objects/strings/IObjectStringDefaultProperties.html" title="interface in starkcoder.failfast.checks.objects.strings"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../../starkcoder/failfast/checks/objects/strings/IObjectStringEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.strings"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?starkcoder/failfast/checks/objects/strings/IObjectStringEmptyCheck.html" target="_top">Frames</a></li> <li><a href="IObjectStringEmptyCheck.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small><i>The MIT License (MIT) - Copyright &#169; 2014-2015 Keld Oelykke. All Rights Reserved.</i></small></p> </body> </html>
KeldOelykke/FailFast
Java/Web/war/releases/1.3/api/starkcoder/failfast/checks/objects/strings/IObjectStringEmptyCheck.html
HTML
mit
9,951
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>條目&nbsp;</b></th><td class="std2">糟糠不厭</td></tr> <tr><th class="std1"><b>注音&nbsp;</b></th><td class="std2">ㄗㄠ ㄎㄤ ㄅㄨ<sup class="subfont">ˋ</sup> |ㄢ<sup class="subfont">ˋ</sup></td></tr> <tr><th class="std1"><b>漢語拼音&nbsp;</b></th><td class="std2"><font class="english_word">zāo kāng bù yàn</font></td></tr> <tr><th class="std1"><b>釋義&nbsp;</b></th><td class="std2">厭,飽。糟糠不厭形容生活極貧苦。史記˙卷六十一˙伯夷傳:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>然回也屢空,糟糠不厭,而卒蚤夭。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center></td></tr> <tr><th class="std1"><b><font class="fltypefont">附錄</font>&nbsp;</b></th><td class="std2">修訂本參考資料</td></tr> </td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
BuzzAcademy/idioms-moe-unformatted-data
all-data/14000-14999/14061-22.html
HTML
mit
1,325
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="../circle.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>UAParser<br /><small>v0.5.0.2</small><br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">ZTE</td><td>V965</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59">Detail</a> <!-- Modal Structure --> <div id="modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">Array ( [user_agent_string] => Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 [family] => ZTE V965 [brand] => ZTE [model] => V965 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.2</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.13001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a> <!-- Modal Structure --> <div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapFull result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.2.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android?4.2*) applewebkit/* (khtml* like gecko) chrome/18.*safari/* [parent] => Chrome 18.0 for Android [comment] => Chrome 18.0 [browser] => Chrome [browser_type] => Browser [browser_bits] => 32 [browser_maker] => Google Inc [browser_modus] => unknown [version] => 18.0 [majorver] => 18 [minorver] => 0 [platform] => Android [platform_version] => 4.2 [platform_description] => Android OS [platform_bits] => 32 [platform_maker] => Google Inc [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => [javascript] => 1 [vbscript] => [javaapplets] => [activexcontrols] => [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [isfake] => [isanonymized] => [ismodified] => [cssversion] => 3 [aolversion] => 0 [device_name] => general Mobile Phone [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => touchscreen [device_code_name] => general Mobile Phone [device_brand_name] => unknown [renderingengine_name] => WebKit [renderingengine_version] => unknown [renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3. [renderingengine_maker] => Apple Inc ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td><td>Chrome </td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.008</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-42bb56ba-b834-47c5-bea0-c0270e9ab371">Detail</a> <!-- Modal Structure --> <div id="modal-42bb56ba-b834-47c5-bea0-c0270e9ab371" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapLite result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/.*safari\/.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/*safari/* [parent] => Chrome Generic for Android [comment] => Chrome Generic [browser] => Chrome [browser_type] => unknown [browser_bits] => 0 [browser_maker] => unknown [browser_modus] => unknown [version] => 0.0 [majorver] => 0 [minorver] => 0 [platform] => Android [platform_version] => unknown [platform_description] => unknown [platform_bits] => 0 [platform_maker] => unknown [alpha] => false [beta] => false [win16] => false [win32] => false [win64] => false [frames] => false [iframes] => false [tables] => false [cookies] => false [backgroundsounds] => false [javascript] => false [vbscript] => false [javaapplets] => false [activexcontrols] => false [ismobiledevice] => 1 [istablet] => [issyndicationreader] => false [crawler] => false [isfake] => false [isanonymized] => false [ismodified] => false [cssversion] => 0 [aolversion] => 0 [device_name] => unknown [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => unknown [device_code_name] => unknown [device_brand_name] => unknown [renderingengine_name] => unknown [renderingengine_version] => unknown [renderingengine_description] => unknown [renderingengine_maker] => unknown ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.028</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a> <!-- Modal Structure --> <div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapPhp result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.2.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android?4.2*) applewebkit/* (khtml* like gecko) chrome/18.*safari/* [parent] => Chrome 18.0 for Android [comment] => Chrome 18.0 [browser] => Chrome [browser_type] => unknown [browser_bits] => 0 [browser_maker] => Google Inc [browser_modus] => unknown [version] => 18.0 [majorver] => 18 [minorver] => 0 [platform] => Android [platform_version] => unknown [platform_description] => unknown [platform_bits] => 0 [platform_maker] => unknown [alpha] => false [beta] => false [win16] => false [win32] => false [win64] => false [frames] => false [iframes] => false [tables] => false [cookies] => false [backgroundsounds] => false [javascript] => false [vbscript] => false [javaapplets] => false [activexcontrols] => false [ismobiledevice] => 1 [istablet] => [issyndicationreader] => false [crawler] => [isfake] => false [isanonymized] => false [ismodified] => false [cssversion] => 0 [aolversion] => 0 [device_name] => unknown [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => touchscreen [device_code_name] => unknown [device_brand_name] => unknown [renderingengine_name] => unknown [renderingengine_version] => unknown [renderingengine_description] => unknown [renderingengine_maker] => unknown ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a> <!-- Modal Structure --> <div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Android [browser] => Chrome [version] => 18.0.1025.166 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>AndroidOS 4.2.1</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a> <!-- Modal Structure --> <div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>JenssegersAgent result detail</h4> <p><pre><code class="php">Array ( [browserName] => Chrome [browserVersion] => 18.0.1025.166 [osName] => AndroidOS [osVersion] => 4.2.1 [deviceModel] => WebKit [isMobile] => 1 [isRobot] => [botName] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Chrome Mobile 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.2.1</td><td style="border-left: 1px solid #555">ZTE</td><td>V965</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.29002</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a> <!-- Modal Structure --> <div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [mobile_screen_height] => 480 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => ZTE [mobile_model] => V965 [version] => 18.0.1025.166 [is_android] => 1 [browser_name] => Chrome Mobile [operating_system_family] => Android [operating_system_version] => 4.2.1 [is_ios] => [producer] => Google Inc. [operating_system] => Android 4.2 Jelly Bean [mobile_screen_width] => 320 [mobile_browser] => Android Webkit ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Chrome Mobile 18.0</td><td>WebKit </td><td>Android 4.2</td><td style="border-left: 1px solid #555">ZTE</td><td>V965</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.004</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a> <!-- Modal Structure --> <div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => Chrome Mobile [short_name] => CM [version] => 18.0 [engine] => WebKit ) [operatingSystem] => Array ( [name] => Android [short_name] => AND [version] => 4.2 [platform] => ) [device] => Array ( [brand] => ZT [brandName] => ZTE [model] => V965 [device] => 1 [deviceName] => smartphone ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => 1 [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.2.1</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-ec1cd248-02b0-457e-8a9d-35bb99af008c">Detail</a> <!-- Modal Structure --> <div id="modal-ec1cd248-02b0-457e-8a9d-35bb99af008c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>SinergiBrowserDetector result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) [name:Sinergi\BrowserDetector\Browser:private] => Chrome [version:Sinergi\BrowserDetector\Browser:private] => 18.0.1025.166 [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => [isFacebookWebView:Sinergi\BrowserDetector\Browser:private] => [isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Android [version:Sinergi\BrowserDetector\Os:private] => 4.2.1 [isMobile:Sinergi\BrowserDetector\Os:private] => 1 [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Chrome Mobile 18.0.1025</td><td><i class="material-icons">close</i></td><td>Android 4.2.1</td><td style="border-left: 1px solid #555">ZTE</td><td>V965</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.003</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a> <!-- Modal Structure --> <div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 18 [minor] => 0 [patch] => 1025 [family] => Chrome Mobile ) [os] => UAParser\Result\OperatingSystem Object ( [major] => 4 [minor] => 2 [patch] => 1 [patchMinor] => [family] => Android ) [device] => UAParser\Result\Device Object ( [brand] => ZTE [model] => V965 [family] => ZTE V965 ) [originalUserAgent] => Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Chrome 18.0.1025.166</td><td>WebKit 535.19</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15201</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a> <!-- Modal Structure --> <div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [platform_name] => ZTE [platform_version] => 965 [platform_type] => Mobile [browser_name] => Chrome [browser_version] => 18.0.1025.166 [engine_name] => WebKit [engine_version] => 535.19 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.2.1</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.063</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a> <!-- Modal Structure --> <div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => Android Webkit Browser [agent_version] => -- [os_type] => Android [os_name] => Android [os_versionName] => [os_versionNumber] => 4.2.1 [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => [agent_languageTag] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>Chrome 18.0.1025.166</td><td>WebKit 535.19</td><td>Android 4.2.1</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.25602</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a> <!-- Modal Structure --> <div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [operating_system_name] => Android [simple_sub_description_string] => [simple_browser_string] => Chrome 18 on Android (Jelly Bean) [browser_version] => 18 [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => stdClass Object ( [System Build] => JOP40D ) [layout_engine_name] => WebKit [detected_addons] => Array ( ) [operating_system_flavour_code] => [hardware_architecture] => [operating_system_flavour] => [operating_system_frameworks] => Array ( ) [browser_name_code] => chrome [operating_system_version] => Jelly Bean [simple_operating_platform_string] => [is_abusive] => [layout_engine_version] => 535.19 [browser_capabilities] => Array ( ) [operating_platform_vendor_name] => [operating_system] => Android (Jelly Bean) [operating_system_version_full] => 4.2.1 [operating_platform_code] => [browser_name] => Chrome [operating_system_name_code] => android [user_agent] => Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 [browser_version_full] => 18.0.1025.166 [browser] => Chrome 18 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.2.1</td><td style="border-left: 1px solid #555">ZTE</td><td>V965</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.003</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a> <!-- Modal Structure --> <div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Chrome [version] => 18 [type] => browser ) [engine] => Array ( [name] => Webkit [version] => 535.19 ) [os] => Array ( [name] => Android [version] => 4.2.1 ) [device] => Array ( [type] => mobile [subtype] => smart [manufacturer] => ZTE [model] => V965 ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a> <!-- Modal Structure --> <div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => Chrome [vendor] => Google [version] => 18.0.1025.166 [category] => smartphone [os] => Android [os_version] => 4.2.1 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.2.1</td><td style="border-left: 1px solid #555"></td><td></td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.017</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a> <!-- Modal Structure --> <div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => true [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => false [is_mobile] => true [is_robot] => false [is_smartphone] => true [is_touchscreen] => true [is_wml_preferred] => false [is_xhtmlmp_preferred] => false [is_html_preferred] => true [advertised_device_os] => Android [advertised_device_os_version] => 4.2.1 [advertised_browser] => Chrome [advertised_browser_version] => 18.0.1025.166 [complete_device_name] => Generic Android 4.2 [device_name] => Generic Android 4.2 [form_factor] => Smartphone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Generic [model_name] => Android 4.2 [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => true [has_qwerty_keyboard] => true [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Android [mobile_browser] => Android Webkit [mobile_browser_version] => [device_os_version] => 4.2 [pointing_method] => touchscreen [release_date] => 2012_october [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [can_assign_phone_number] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => true [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => true [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => true [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => wtai://wp/mc; [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => false [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => true [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => false [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => false [xhtml_readable_background_color1] => #FFFFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => true [xhtml_document_title_support] => true [xhtml_preferred_charset] => iso-8859-1 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => tel: [xhtmlmp_preferred_mime_type] => text/html [xhtml_table_support] => true [xhtml_send_sms_string] => sms: [xhtml_send_mms_string] => mms: [xhtml_file_upload] => supported [cookie_support] => true [accept_third_party_cookie] => true [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => true [xhtml_can_embed_video] => none [ajax_support_javascript] => true [ajax_manipulate_css] => true [ajax_support_getelementbyid] => true [ajax_support_inner_html] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [ajax_support_event_listener] => true [ajax_preferred_geoloc_api] => w3c_api [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => true [html_wi_imode_html_1] => false [html_wi_imode_html_2] => false [html_wi_imode_html_3] => false [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 320 [resolution_height] => 480 [columns] => 60 [max_image_width] => 320 [max_image_height] => 480 [rows] => 40 [physical_screen_width] => 34 [physical_screen_height] => 50 [dual_orientation] => true [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => false [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => true [transparent_png_index] => true [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => true [webp_lossless_support] => true [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 3600 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => true [max_deck_size] => 2000000 [max_url_length_in_requests] => 256 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => true [inline_support] => false [oma_support] => true [ringtone] => false [ringtone_3gpp] => false [ringtone_midi_monophonic] => false [ringtone_midi_polyphonic] => false [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [wallpaper_max_height] => 0 [wallpaper_preferred_width] => 0 [wallpaper_preferred_height] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => false [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => false [streaming_vcodec_h263_0] => 10 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => 2 [streaming_vcodec_mpeg4_asp] => -1 [streaming_vcodec_h264_bp] => 3.0 [streaming_acodec_amr] => nb [streaming_acodec_aac] => lc [streaming_wmv] => none [streaming_preferred_protocol] => rtsp [streaming_preferred_http_protocol] => apple_live_streaming [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => true [mms_jpeg_baseline] => false [mms_jpeg_progressive] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => true [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => false [css_supports_width_as_percentage] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [transcoder_ua_header] => user-agent [rss_support] => false [pdf_support] => true [progressive_download] => true [playback_vcodec_h263_0] => 10 [playback_vcodec_h263_3] => -1 [playback_vcodec_mpeg4_sp] => 0 [playback_vcodec_mpeg4_asp] => -1 [playback_vcodec_h264_bp] => 3.0 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => false [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => none [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => none [hinted_progressive_download] => true [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [viewport_userscalable] => no [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => false ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Google Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.2.1</td><td style="border-left: 1px solid #555">ZTE</td><td>V965</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a> <!-- Modal Structure --> <div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Zsxsoft result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [link] => http://google.com/chrome/ [title] => Google Chrome 18.0.1025.166 [name] => Google Chrome [version] => 18.0.1025.166 [code] => chrome [image] => img/16/browser/chrome.png ) [os] => Array ( [link] => http://www.android.com/ [name] => Android [version] => 4.2.1 [code] => android [x64] => [title] => Android 4.2.1 [type] => os [dir] => os [image] => img/16/os/android.png ) [device] => Array ( [link] => http://www.zte.com.cn/cn/ [title] => ZTE V965 [model] => V965 [brand] => ZTE [code] => zte [dir] => device [type] => device [image] => img/16/device/zte.png ) [platform] => Array ( [link] => http://www.zte.com.cn/cn/ [title] => ZTE V965 [model] => V965 [brand] => ZTE [code] => zte [dir] => device [type] => device [image] => img/16/device/zte.png ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-05-10 08:00:38</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
ThaDafinser/UserAgentParserComparison
v5/user-agent-detail/79/f4/79f4607b-7178-4c37-843f-b31c13536721.html
HTML
mit
56,448
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="../circle.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>UAParser<br /><small>v0.5.0.2</small><br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">Karbonn</td><td>A30</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59">Detail</a> <!-- Modal Structure --> <div id="modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">Array ( [user_agent_string] => Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 [family] => A30 [brand] => Karbonn [model] => A30 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.016</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a> <!-- Modal Structure --> <div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapFull result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.0.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android?4.0*) applewebkit/* (khtml* like gecko) chrome/18.*safari/* [parent] => Chrome 18.0 for Android [comment] => Chrome 18.0 [browser] => Chrome [browser_type] => Browser [browser_bits] => 32 [browser_maker] => Google Inc [browser_modus] => unknown [version] => 18.0 [majorver] => 18 [minorver] => 0 [platform] => Android [platform_version] => 4.0 [platform_description] => Android OS [platform_bits] => 32 [platform_maker] => Google Inc [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => [javascript] => 1 [vbscript] => [javaapplets] => [activexcontrols] => [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [isfake] => [isanonymized] => [ismodified] => [cssversion] => 3 [aolversion] => 0 [device_name] => general Mobile Phone [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => touchscreen [device_code_name] => general Mobile Phone [device_brand_name] => unknown [renderingengine_name] => WebKit [renderingengine_version] => unknown [renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3. [renderingengine_maker] => Apple Inc ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td><td>Chrome </td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.006</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-42bb56ba-b834-47c5-bea0-c0270e9ab371">Detail</a> <!-- Modal Structure --> <div id="modal-42bb56ba-b834-47c5-bea0-c0270e9ab371" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapLite result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/.*safari\/.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/*safari/* [parent] => Chrome Generic for Android [comment] => Chrome Generic [browser] => Chrome [browser_type] => unknown [browser_bits] => 0 [browser_maker] => unknown [browser_modus] => unknown [version] => 0.0 [majorver] => 0 [minorver] => 0 [platform] => Android [platform_version] => unknown [platform_description] => unknown [platform_bits] => 0 [platform_maker] => unknown [alpha] => false [beta] => false [win16] => false [win32] => false [win64] => false [frames] => false [iframes] => false [tables] => false [cookies] => false [backgroundsounds] => false [javascript] => false [vbscript] => false [javaapplets] => false [activexcontrols] => false [ismobiledevice] => 1 [istablet] => [issyndicationreader] => false [crawler] => false [isfake] => false [isanonymized] => false [ismodified] => false [cssversion] => 0 [aolversion] => 0 [device_name] => unknown [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => unknown [device_code_name] => unknown [device_brand_name] => unknown [renderingengine_name] => unknown [renderingengine_version] => unknown [renderingengine_description] => unknown [renderingengine_maker] => unknown ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.021</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a> <!-- Modal Structure --> <div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapPhp result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/18.*safari/* [parent] => Chrome 18.0 for Android [comment] => Chrome 18.0 [browser] => Chrome [browser_type] => unknown [browser_bits] => 0 [browser_maker] => Google Inc [browser_modus] => unknown [version] => 18.0 [majorver] => 18 [minorver] => 0 [platform] => Android [platform_version] => unknown [platform_description] => unknown [platform_bits] => 0 [platform_maker] => unknown [alpha] => false [beta] => false [win16] => false [win32] => false [win64] => false [frames] => false [iframes] => false [tables] => false [cookies] => false [backgroundsounds] => false [javascript] => false [vbscript] => false [javaapplets] => false [activexcontrols] => false [ismobiledevice] => 1 [istablet] => [issyndicationreader] => false [crawler] => [isfake] => false [isanonymized] => false [ismodified] => false [cssversion] => 0 [aolversion] => 0 [device_name] => unknown [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => touchscreen [device_code_name] => unknown [device_brand_name] => unknown [renderingengine_name] => unknown [renderingengine_version] => unknown [renderingengine_description] => unknown [renderingengine_maker] => unknown ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a> <!-- Modal Structure --> <div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Android [browser] => Chrome [version] => 18.0.1025.166 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>AndroidOS 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.006</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a> <!-- Modal Structure --> <div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>JenssegersAgent result detail</h4> <p><pre><code class="php">Array ( [browserName] => Chrome [browserVersion] => 18.0.1025.166 [osName] => AndroidOS [osVersion] => 4.0.4 [deviceModel] => WebKit [isMobile] => 1 [isRobot] => [botName] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Chrome Mobile 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Karbonn</td><td>A30</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.27101</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a> <!-- Modal Structure --> <div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [mobile_screen_height] => 800 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => Karbonn [mobile_model] => A30 [version] => 18.0.1025.166 [is_android] => 1 [browser_name] => Chrome Mobile [operating_system_family] => Android [operating_system_version] => 4.0.4 [is_ios] => [producer] => Google Inc. [operating_system] => Android 4.0.x Ice Cream Sandwich [mobile_screen_width] => 480 [mobile_browser] => Android Webkit ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Chrome Mobile 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555">Karbonn</td><td>A30</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.004</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a> <!-- Modal Structure --> <div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => Chrome Mobile [short_name] => CM [version] => 18.0 [engine] => WebKit ) [operatingSystem] => Array ( [name] => Android [short_name] => AND [version] => 4.0 [platform] => ) [device] => Array ( [brand] => KA [brandName] => Karbonn [model] => A30 [device] => 1 [deviceName] => smartphone ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => 1 [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-ec1cd248-02b0-457e-8a9d-35bb99af008c">Detail</a> <!-- Modal Structure --> <div id="modal-ec1cd248-02b0-457e-8a9d-35bb99af008c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>SinergiBrowserDetector result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) [name:Sinergi\BrowserDetector\Browser:private] => Chrome [version:Sinergi\BrowserDetector\Browser:private] => 18.0.1025.166 [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => [isFacebookWebView:Sinergi\BrowserDetector\Browser:private] => [isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Android [version:Sinergi\BrowserDetector\Os:private] => 4.0.4 [isMobile:Sinergi\BrowserDetector\Os:private] => 1 [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Chrome Mobile 18.0.1025</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Karbonn</td><td>A30</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a> <!-- Modal Structure --> <div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 18 [minor] => 0 [patch] => 1025 [family] => Chrome Mobile ) [os] => UAParser\Result\OperatingSystem Object ( [major] => 4 [minor] => 0 [patch] => 4 [patchMinor] => [family] => Android ) [device] => UAParser\Result\Device Object ( [brand] => Karbonn [model] => A30 [family] => A30 ) [originalUserAgent] => Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Chrome 18.0.1025.166</td><td>WebKit 535.19</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15201</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a> <!-- Modal Structure --> <div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [platform_name] => Android [platform_version] => 4.0.4 [platform_type] => Mobile [browser_name] => Chrome [browser_version] => 18.0.1025.166 [engine_name] => WebKit [engine_version] => 535.19 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.07701</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a> <!-- Modal Structure --> <div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => Android Webkit Browser [agent_version] => -- [os_type] => Android [os_name] => Android [os_versionName] => [os_versionNumber] => 4.0.4 [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => [agent_languageTag] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>Chrome 18.0.1025.166</td><td>WebKit 535.19</td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Karbonn Mobiles</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.23501</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a> <!-- Modal Structure --> <div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [operating_system_name] => Android [simple_sub_description_string] => [simple_browser_string] => Chrome 18 on Android (Ice Cream Sandwich) [browser_version] => 18 [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => stdClass Object ( [System Build] => IMM76D ) [layout_engine_name] => WebKit [detected_addons] => Array ( ) [operating_system_flavour_code] => [hardware_architecture] => [operating_system_flavour] => [operating_system_frameworks] => Array ( ) [browser_name_code] => chrome [operating_system_version] => Ice Cream Sandwich [simple_operating_platform_string] => Karbonn Mobiles [is_abusive] => [layout_engine_version] => 535.19 [browser_capabilities] => Array ( ) [operating_platform_vendor_name] => Karbonn Mobiles [operating_system] => Android (Ice Cream Sandwich) [operating_system_version_full] => 4.0.4 [operating_platform_code] => [browser_name] => Chrome [operating_system_name_code] => android [user_agent] => Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19 [browser_version_full] => 18.0.1025.166 [browser] => Chrome 18 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Karbonn</td><td>A30</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a> <!-- Modal Structure --> <div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Chrome [version] => 18 [type] => browser ) [engine] => Array ( [name] => Webkit [version] => 535.19 ) [os] => Array ( [name] => Android [version] => 4.0.4 ) [device] => Array ( [type] => mobile [subtype] => smart [manufacturer] => Karbonn [model] => A30 ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a> <!-- Modal Structure --> <div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => Chrome [vendor] => Google [version] => 18.0.1025.166 [category] => smartphone [os] => Android [os_version] => 4.0.4 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Karbonn</td><td>A30</td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.019</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a> <!-- Modal Structure --> <div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => true [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => true [is_mobile] => true [is_robot] => false [is_smartphone] => true [is_touchscreen] => true [is_wml_preferred] => false [is_xhtmlmp_preferred] => false [is_html_preferred] => true [advertised_device_os] => Android [advertised_device_os_version] => 4.0.4 [advertised_browser] => Chrome [advertised_browser_version] => 18.0.1025.166 [complete_device_name] => Karbonn A30 [device_name] => Karbonn A30 [form_factor] => Smartphone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Karbonn [model_name] => A30 [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => true [has_qwerty_keyboard] => true [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Android [mobile_browser] => Android Webkit [mobile_browser_version] => [device_os_version] => 4.0 [pointing_method] => touchscreen [release_date] => 2012_october [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [can_assign_phone_number] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => true [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => true [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => true [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => wtai://wp/mc; [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => false [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => true [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => false [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => false [xhtml_readable_background_color1] => #FFFFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => true [xhtml_document_title_support] => true [xhtml_preferred_charset] => iso-8859-1 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => tel: [xhtmlmp_preferred_mime_type] => text/html [xhtml_table_support] => true [xhtml_send_sms_string] => sms: [xhtml_send_mms_string] => mms: [xhtml_file_upload] => supported [cookie_support] => true [accept_third_party_cookie] => true [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => true [xhtml_can_embed_video] => none [ajax_support_javascript] => true [ajax_manipulate_css] => true [ajax_support_getelementbyid] => true [ajax_support_inner_html] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [ajax_support_event_listener] => true [ajax_preferred_geoloc_api] => w3c_api [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => true [html_wi_imode_html_1] => false [html_wi_imode_html_2] => false [html_wi_imode_html_3] => false [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 480 [resolution_height] => 800 [columns] => 60 [max_image_width] => 320 [max_image_height] => 480 [rows] => 40 [physical_screen_width] => 78 [physical_screen_height] => 129 [dual_orientation] => true [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => false [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => true [transparent_png_index] => true [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => true [webp_lossless_support] => false [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 3600 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => true [max_deck_size] => 2000000 [max_url_length_in_requests] => 256 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => true [inline_support] => false [oma_support] => true [ringtone] => false [ringtone_3gpp] => false [ringtone_midi_monophonic] => false [ringtone_midi_polyphonic] => false [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [wallpaper_max_height] => 0 [wallpaper_preferred_width] => 0 [wallpaper_preferred_height] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => false [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => false [streaming_vcodec_h263_0] => 10 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => 2 [streaming_vcodec_mpeg4_asp] => -1 [streaming_vcodec_h264_bp] => 3.0 [streaming_acodec_amr] => nb [streaming_acodec_aac] => lc [streaming_wmv] => none [streaming_preferred_protocol] => rtsp [streaming_preferred_http_protocol] => apple_live_streaming [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => true [mms_jpeg_baseline] => false [mms_jpeg_progressive] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => true [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => true [css_supports_width_as_percentage] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [transcoder_ua_header] => user-agent [rss_support] => false [pdf_support] => true [progressive_download] => true [playback_vcodec_h263_0] => 10 [playback_vcodec_h263_3] => -1 [playback_vcodec_mpeg4_sp] => 0 [playback_vcodec_mpeg4_asp] => -1 [playback_vcodec_h264_bp] => 3.0 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => false [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => none [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => none [hinted_progressive_download] => true [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [viewport_userscalable] => no [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => false ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Google Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a> <!-- Modal Structure --> <div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Zsxsoft result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [link] => http://google.com/chrome/ [title] => Google Chrome 18.0.1025.166 [name] => Google Chrome [version] => 18.0.1025.166 [code] => chrome [image] => img/16/browser/chrome.png ) [os] => Array ( [link] => http://www.android.com/ [name] => Android [version] => 4.0.4 [code] => android [x64] => [title] => Android 4.0.4 [type] => os [dir] => os [image] => img/16/os/android.png ) [device] => Array ( [link] => [title] => [model] => [brand] => [code] => null [dir] => device [type] => device [image] => img/16/device/null.png ) [platform] => Array ( [link] => http://www.android.com/ [name] => Android [version] => 4.0.4 [code] => android [x64] => [title] => Android 4.0.4 [type] => os [dir] => os [image] => img/16/os/android.png ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-05-10 08:05:55</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
ThaDafinser/UserAgentParserComparison
v5/user-agent-detail/b6/80/b680d2b8-c686-4f2a-a330-b7824bfd960f.html
HTML
mit
56,532
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>demos: 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.1 / demos - 8.9.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> demos <small> 8.9.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-02 22:20:31 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-02 22:20:31 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.5.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.03.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.03.0 Official 4.03.0 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/demos&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/Demos&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: sorting&quot; &quot;keyword: Cases&quot; &quot;keyword: Tauto&quot; &quot;keyword: AutoRewrite&quot; &quot;keyword: Prolog&quot; &quot;category: Miscellaneous/Coq Use Examples&quot; ] authors: [ &quot;Coq group&quot; ] bug-reports: &quot;https://github.com/coq-contribs/demos/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/demos.git&quot; synopsis: &quot;Demos of some Coq tools appeared in version V6.0&quot; description: &quot;&quot;&quot; Example of sorting algorithms defined using the Cases (pattern-matching) construction. Demo of the decision tactic Tauto for intuitionistic propositional calculus. Demo of the AutoRewrite tactic. Demo of the Prolog tactic applied to the compilation of miniML programs.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/demos/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=e195ef7c40a80296120a54beff118d98&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-demos.8.9.0 coq.8.5.1</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.1). The following dependencies couldn&#39;t be met: - coq-demos -&gt; coq &gt;= 8.9 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) 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-demos.8.9.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.03.0-2.0.5/released/8.5.1/demos/8.9.0.html
HTML
mit
7,158
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer: 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.7.1+2 / hammer - 1.2.1+8.11</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> hammer <small> 1.2.1+8.11 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-27 01:18:40 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-27 01:18:40 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.1+2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.03.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.03.0 Official 4.03.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.2 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/lukaszcz/coqhammer&quot; dev-repo: &quot;git+https://github.com/lukaszcz/coqhammer.git&quot; bug-reports: &quot;https://github.com/lukaszcz/coqhammer/issues&quot; license: &quot;LGPL-2.1-only&quot; synopsis: &quot;General-purpose automated reasoning hammer tool for Coq&quot; description: &quot;&quot;&quot; A general-purpose automated reasoning hammer tool for Coq that combines learning from previous proofs with the translation of problems to the logics of automated systems and the reconstruction of successfully found proofs. &quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot; {ocaml:version &gt;= &quot;4.06&quot;} &quot;plugin&quot;] install: [ [make &quot;install-plugin&quot;] [make &quot;test-plugin&quot;] {with-test} ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} (&quot;conf-g++&quot; {build} | &quot;conf-clang&quot; {build}) &quot;coq-hammer-tactics&quot; {= version} ] tags: [ &quot;category:Miscellaneous/Coq Extensions&quot; &quot;keyword:automation&quot; &quot;keyword:hammer&quot; &quot;logpath:Hammer.Plugin&quot; &quot;date:2020-06-05&quot; ] authors: [ &quot;Lukasz Czajka &lt;[email protected]&gt;&quot; &quot;Cezary Kaliszyk &lt;[email protected]&gt;&quot; ] url { src: &quot;https://github.com/lukaszcz/coqhammer/archive/v1.2.1-coq8.11.tar.gz&quot; checksum: &quot;sha512=7ef5f5e68cc2645ef093dc63d1531cc9696afeabdd540b24c6955fa994417b85925c15856e56cfb41eea9424278cf3ee2fd899f9c84f04d8f8630165b188b666&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-hammer.1.2.1+8.11 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2). The following dependencies couldn&#39;t be met: - coq-hammer -&gt; coq &gt;= 8.11 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) 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-hammer.1.2.1+8.11</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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.03.0-2.0.5/released/8.7.1+2/hammer/1.2.1+8.11.html
HTML
mit
7,418
#!/usr/bin/env node 'use strict'; var assert = require('assert'); var depRep = require('../../lib/depRep'); var oldJson = require('../fixtures/old.json'); var newJson = require('../fixtures/new.json'); var unsupported = require('../fixtures/unsupported.json'); function key(number, dev) { var prefix = "/dependencies/"; if (dev) prefix = "/devDependencies/"; return prefix + number; } describe('Compare', function () { // describe('#report()', function () { // it('should generate a proper report for dependencies', function () { // depRep // .report(oldJson, newJson) // .then(function () { // assert.equal(analyze[key(1)].status, "major"); // assert.equal(report[key(2)].status, null); // assert.equal(report[key(3)], null); // assert.equal(report[key(4)].status, null); // assert.equal(report[key(5)].status, null); // assert.equal(report[key(6)], null); // assert.equal(report[key(7)].status, null); // assert.equal(report[key(8)].status, "minor"); // assert.equal(report[key(9)].status, "major"); // done(); // }); // }); // }); // // describe('#report()', function () { // it('should generate a proper report for devDependencies', function () { // depRep // .report(oldJson, newJson) // .then(function () { // assert.equal(report[key(1, true)].status, "major"); // assert.equal(report[key(2, true)].status, null); // assert.equal(report[key(3, true)], null); // assert.equal(report[key(4, true)].status, null); // assert.equal(report[key(5, true)].status, null); // assert.equal(report[key(6, true)], null); // assert.equal(report[key(7, true)].status, null); // assert.equal(report[key(8, true)].status, "minor"); // assert.equal(report[key(9, true)].status, "major"); // done(); // }); // }); // }); });
kevin-smets/dep-rep
test/specs/depRepSpec.js
JavaScript
mit
2,302
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>string: 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.9.0 / string - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> string <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-10 01:57:47 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-10 01:57:47 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.9.0 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/string&quot; license: &quot;LGPL 2&quot; build: [make] install: [make &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:string&quot; &quot;keyword:ascii character&quot; &quot;category:Miscellaneous/Coq Extensions&quot; &quot;date:2002-03&quot; ] authors: [ &quot;Laurent Théry &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/string/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/string.git&quot; synopsis: &quot;Definition of strings in Coq&quot; description: &quot;Strings as list of characters.&quot; url { src: &quot;https://github.com/coq-contribs/string/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=7c066e35b0b7ed1242241a6332e12092&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-string.8.5.0 coq.8.9.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.9.0). The following dependencies couldn&#39;t be met: - coq-string -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) 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-string.8.5.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.04.2-2.0.5/released/8.9.0/string/8.5.0.html
HTML
mit
6,751
/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * 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. */ /* * Description: * the meta server's date structure, impl file * * Revision history: * 2016-04-25, Weijie Sun(sunweijie at xiaomi.com), first version * xxxx-xx-xx, author, fix bug about xxx */ #include <dsn/service_api_cpp.h> #include "meta_data.h" namespace dsn { namespace replication { void maintain_drops(/*inout*/ std::vector<rpc_address>& drops, const rpc_address& node, bool is_add) { auto it = std::find(drops.begin(), drops.end(), node); if (is_add) { if (it != drops.end()) drops.erase(it); } else { if (it == drops.end()) { drops.push_back(node); if (drops.size() > 3) drops.erase(drops.begin()); } else { dassert(false, "the node cannot be in drops set before this update", node.to_string()); } } } void config_context::cancel_sync() { if (config_status::pending_remote_sync == stage) { bool finished = false; bool cancelled = pending_sync_task->cancel(false, &finished); dassert(cancelled, "the task must be cancelled, mostly because the following" " config is not set: [threadpool.THREAD_POOL_META_STATE] worker_count = 1" ); pending_sync_task = nullptr; pending_sync_request.reset(); } if (msg) { dsn_msg_release_ref(msg); } msg = nullptr; stage = config_status::not_pending; } void config_context::clear_proposal() { if (config_status::pending_remote_sync != stage) stage = config_status::not_pending; balancer_proposal.reset(); } void app_state_helper::on_init_partitions() { config_context context; context.stage = config_status::not_pending; context.pending_sync_task = nullptr; context.msg = nullptr; contexts.assign(owner->partition_count, context); } app_state::app_state(const app_info &info): app_info(info), helpers(new app_state_helper()) { helpers->owner = this; partition_configuration config; config.ballot = 0; config.pid.set_app_id(app_id); config.last_committed_decree = 0; config.last_drops.clear(); config.max_replica_count = app_info::max_replica_count; config.primary.set_invalid(); config.secondaries.clear(); partitions.assign(app_info::partition_count, config); for (int i=0; i!=app_info::partition_count; ++i) partitions[i].pid.set_partition_index(i); helpers->on_init_partitions(); } std::shared_ptr<app_state> app_state::create(const app_info& info) { std::shared_ptr<app_state> result = std::make_shared<app_state>(info); result->helpers->owner = result.get(); return result; } }}
imzhenyu/rDSN.dist.service
src/meta_server/meta_server_lib/meta_data.cpp
C++
mit
3,939
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由Codesmith工具生成。 // 此文件的更改可能会导致不正确的行为,如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ using System; using ProtoBuf; using ZyGames.Framework.Common; using ZyGames.Framework.Collection; using ZyGames.Framework.Model; namespace ZyGames.Doudizhu.Model { /// <summary> /// 聊天语言配置 /// </summary> /// <![CDATA[ /// @periodTime:设置生存周期(秒) /// @personalName: 映射UserId对应的字段名,默认为"UserId" /// ]]> /// </remarks> [Serializable, ProtoContract] [EntityTable(AccessLevel.ReadOnly, DbConfig.Config, "ChatInfo")] public class ChatInfo : ShareEntity { /// <summary> /// </summary> public ChatInfo() : base(AccessLevel.ReadOnly) { } /// <summary> /// </summary> public ChatInfo(int id) : this() { _id = id; } #region 自动生成属性 private int _id; /// <summary> /// /// </summary> [ProtoMember(1)] [EntityField("Id", IsKey = true)] public int Id { get { return _id; } } private string _content; /// <summary> /// /// </summary> [ProtoMember(2)] [EntityField("Content")] public string Content { get { return _content; } } protected override object this[string index] { get { #region switch (index) { case "Id": return _id; case "Content": return _content; default: throw new ArgumentException(string.Format("ChatInfo index[{0}] isn't exist.", index)); } #endregion } set { #region switch (index) { case "Id": _id = value.ToInt(); break; case "Content": _content = value.ToNotNullString(); break; default: throw new ArgumentException(string.Format("ChatInfo index[{0}] isn't exist.", index)); } #endregion } } #endregion } }
wenhulove333/ScutServer
Sample/Doudizhu/Server/src/ZyGames.Doudizhu.Model/ConfigModel/ChatInfo.cs
C#
mit
2,770
=begin = TeamDecorator - version: 6.002 - author: Leega Decorator for the Team model. Contains all presentation-logic centered methods. =end class TeamDecorator < Draper::Decorator delegate_all include Rails.application.routes.url_helpers # Retrieves the team complete name # with link to team radiography # def get_linked_name h.link_to( get_full_name, team_radio_path(id: team.id), { 'data-toggle'=>'tooltip', 'title'=>I18n.t('radiography.team_radio_tab_tooltip') } ) end #-- ------------------------------------------------------------------------- # Retrieves the team complete name # with link to team meeting results # def get_linked_to_results_name(meeting) h.link_to( get_full_name, meeting_show_team_results_path(id: meeting.id, team_id: team.id), { 'data-toggle'=>'tooltip', 'title'=>I18n.t('meeting.show_team_results_tooltip') } ) end #-- ------------------------------------------------------------------------- # Returns the list of season types the teams was affiliate # def get_season_type_list() season_types ? season_types.uniq.map{ |row| row.get_full_name }.join(', ') : I18n.t('none') end #-- -------------------------------------------------------------------------- # Returns the formatted list of contacts # TODO Add the link to email address # def get_contacts() contacts = [] contacts.append(contact_name) if contact_name contacts.append("#{I18n.t('mobile')} #{phone_mobile}") if phone_mobile contacts.append("#{I18n.t('phone')} #{phone_number}") if phone_number contacts.append("#{I18n.t('fax')} #{fax_number}") if fax_number contacts.append("#{I18n.t('email')} " + h.mail_to(e_mail)) if e_mail contacts.join(', ') end #-- -------------------------------------------------------------------------- # Returns the complete team address with address, city, country # def get_complete_address() "#{address} #{city ? ' - ' + city.get_full_name + ' - ' + city.country : ''}" end #-- -------------------------------------------------------------------------- # Returns the Team's home site if present # def get_home_site() home_page_url ? h.link_to( home_page_url, home_page_url, { target: "blank", 'data-toggle' => 'tooltip', title: I18n.t('team.visit_home_page') } ) : I18n.t('unknown') end #-- -------------------------------------------------------------------------- # Returns the Team's last meeting name (and header date) # def get_first_meeting_name() meeting = meetings.sort_by_date(:asc).first meeting ? h.link_to( meeting.get_full_name, meeting_show_full_path( id: meeting.id, team_id: id ), { 'data-toggle' => 'tooltip', title: I18n.t('meeting.show_team_results_tooltip') + "\r\n(#{ meeting.get_full_name })" } ) : I18n.t('none') end #-- -------------------------------------------------------------------------- # Returns the Team's last meeting name (and header date) # def get_last_meeting_name() meeting = meetings.sort_by_date(:desc).first meeting ? h.link_to( meeting.get_full_name, meeting_show_full_path( id: meeting.id, team_id: id ), { 'data-toggle' => 'tooltip', title: I18n.t('meeting.show_team_results_tooltip') + "\r\n(#{ meeting.get_full_name })" } ) : I18n.t('none') end #-- -------------------------------------------------------------------------- # Returns the current goggle cup name if present # def get_current_goggle_cup_name_at( evaluation_date = Date.today ) goggle_cup = get_current_goggle_cup_at( evaluation_date ) goggle_cup ? goggle_cup.get_full_name : I18n.t('radiography.goggle_cup_tab') end #-- -------------------------------------------------------------------------- end
steveoro/goggles
app/decorators/team_decorator.rb
Ruby
mit
3,732
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fssec-model: 49 s 🏆</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.7.1+2 / fssec-model - 8.7.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fssec-model <small> 8.7.0 <span class="label label-success">49 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-22 02:42:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-22 02:42:01 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.7.1+2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/fssec-model&quot; license: &quot;Unknown&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/FSSecModel&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.8~&quot;} ] tags: [ &quot;keyword: security&quot; &quot;keyword: filesystem&quot; &quot;keyword: UNIX&quot; &quot;keyword: MLS&quot; &quot;keyword: access control&quot; &quot;category: Computer Science/Operating Systems&quot; &quot;date: 2002-04-24&quot; ] authors: [ &quot;Maximiliano Cristiá&quot; ] bug-reports: &quot;https://github.com/coq-contribs/fssec-model/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/fssec-model.git&quot; synopsis: &quot;Formal verification of an extension of a UNIX compatible, secure filesystem&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/fssec-model/archive/v8.7.0.tar.gz&quot; checksum: &quot;md5=baadf706262226d952cf31b8d1ce225e&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-fssec-model.8.7.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>0</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>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-fssec-model.8.7.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>8 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-fssec-model.8.7.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>49 s</dd> </dl> <h2>Installation size</h2> <p>Total: 3 M</p> <ul> <li>187 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/AuxiliaryLemmas.glob</code></li> <li>137 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/openIsSecure.glob</code></li> <li>90 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/AuxiliaryLemmas.vo</code></li> <li>87 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/openIsSecure.vo</code></li> <li>86 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/SFSstate.vo</code></li> <li>71 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/SFSstate.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/createIsSecure.vo</code></li> <li>59 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/mkdirIsSecure.vo</code></li> <li>57 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/closeIsSecure.vo</code></li> <li>56 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/owner_closeIsSecure.vo</code></li> <li>56 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ModelLemmas.glob</code></li> <li>52 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/rmdirIsSecure.vo</code></li> <li>52 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/unlinkIsSecure.vo</code></li> <li>50 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/delUsrGrpFromAclIsSecure.vo</code></li> <li>50 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chmodIsSecure.vo</code></li> <li>49 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/addUsrGrpToAclIsSecure.vo</code></li> <li>49 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chownIsSecure.vo</code></li> <li>47 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ModelProperties.glob</code></li> <li>42 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ModelProperties.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chobjscIsSecure.vo</code></li> <li>40 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chsubscIsSecure.vo</code></li> <li>39 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ListSet.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/writeIsSecure.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readdirIsSecure.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/oscstatIsSecure.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/aclstatIsSecure.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/sscstatIsSecure.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readIsSecure.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/statIsSecure.vo</code></li> <li>33 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/owner_closeIsSecure.glob</code></li> <li>33 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/closeIsSecure.glob</code></li> <li>31 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/AuxiliaryLemmas.v</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ModelLemmas.vo</code></li> <li>27 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ListSet.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/createIsSecure.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/mkdirIsSecure.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ListFunctions.vo</code></li> <li>23 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/delUsrGrpFromAcl.vo</code></li> <li>22 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chmod.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/mkdir.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/create.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/addUsrGrpToAcl.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/DACandMAC.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/unlinkIsSecure.glob</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/owner_close.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/openIsSecure.v</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chown.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/TransFunc.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/rmdirIsSecure.glob</code></li> <li>20 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/close.vo</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/SFSstate.v</code></li> <li>17 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/TransFunc.glob</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/open.vo</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/unlink.vo</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/rmdir.vo</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/delUsrGrpFromAclIsSecure.glob</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chsubsc.vo</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chobjsc.vo</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chownIsSecure.glob</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/stat.vo</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/write.vo</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/setACLdata.vo</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ListFunctions.glob</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chmodIsSecure.glob</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/addUsrGrpToAclIsSecure.glob</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chobjscIsSecure.glob</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/read.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/InitialState.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readdir.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/aclstat.vo</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/sscstat.vo</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/oscstat.vo</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/create.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/DACandMAC.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ModelProperties.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/mkdir.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ListSet.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/delUsrGrpFromAcl.glob</code></li> <li>9 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/open.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chmod.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/addUsrGrpToAcl.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chown.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/owner_close.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/setACLdata.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chsubscIsSecure.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/close.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/createIsSecure.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/mkdirIsSecure.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/writeIsSecure.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/closeIsSecure.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/unlink.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/owner_closeIsSecure.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/rmdir.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ModelLemmas.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chsubsc.glob</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/TransFunc.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/DACandMAC.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/ListFunctions.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chobjsc.glob</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/unlinkIsSecure.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/rmdirIsSecure.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/delUsrGrpFromAclIsSecure.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chownIsSecure.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/addUsrGrpToAclIsSecure.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chmodIsSecure.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/InitialState.glob</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/delUsrGrpFromAcl.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chobjscIsSecure.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/write.glob</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/mkdir.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/create.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/addUsrGrpToAcl.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chmod.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readdir.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/oscstatIsSecure.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/close.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/sscstatIsSecure.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readdirIsSecure.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/aclstatIsSecure.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/read.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readIsSecure.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/statIsSecure.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/open.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chown.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/owner_close.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/stat.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/setACLdata.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/aclstat.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chsubscIsSecure.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/unlink.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chsubsc.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/sscstat.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/rmdir.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/stat.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/chobjsc.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/InitialState.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/writeIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/write.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/oscstat.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/aclstat.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readdir.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/read.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/sscstat.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readdirIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/oscstatIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/sscstatIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/aclstatIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/readIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/statIsSecure.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/FSSecModel/oscstat.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-fssec-model.8.7.0</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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.04.2-2.0.5/released/8.7.1+2/fssec-model/8.7.0.html
HTML
mit
24,413
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>tarski-geometry: 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.8.1 / tarski-geometry - 8.7.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> tarski-geometry <small> 8.7.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-10-21 07:12:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-21 07:12:33 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.8.1 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 ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/tarski-geometry&quot; license: &quot;GPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/TarskiGeometry&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.8~&quot;} ] tags: [ &quot;keyword: geometry&quot; &quot;keyword: Tarski&#39;s geometry&quot; &quot;keyword: congruence&quot; &quot;keyword: between property&quot; &quot;keyword: orthogonality&quot; &quot;category: Mathematics/Geometry/General&quot; &quot;date: 2006-03&quot; ] authors: [ &quot;Julien Narboux &lt;[email protected]&gt; [http://dpt-info.u-strasbg.fr/~narboux/]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/tarski-geometry/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/tarski-geometry.git&quot; synopsis: &quot;Tarski&#39;s geometry&quot; description: &quot;&quot;&quot; http://dpt-info.u-strasbg.fr/~narboux/tarski.html This is a formalization of geometry using a simplified version of Tarski&#39;s axiom system. The development contains a formalization of the chapters 1-8 of the book &quot;Metamathematische Methoden in der Geometrie&quot; by W. Schwabhäuser, W. Szmielew and A. Tarski. This includes between properties, congruence properties, midpoint, perpendicular lines, point reflection, orthogonality ... This development aims to be a low level complement for Frédérique Guilhot&#39;s development about high-school geometry. For more information see: Mechanical Theorem Proving in Tarski&#39;s geometry in the post-proceeding of ADG 2006, F. Botana and T. Recio (Eds.), LNAI 4869, pages 139-156, 2007.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/tarski-geometry/archive/v8.7.0.tar.gz&quot; checksum: &quot;md5=e7ef6439d7b26dbeb3dea11929f1e536&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-tarski-geometry.8.7.0 coq.8.8.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.8.1). The following dependencies couldn&#39;t be met: - coq-tarski-geometry -&gt; coq &lt; 8.8~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) 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-tarski-geometry.8.7.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.1/released/8.8.1/tarski-geometry/8.7.0.html
HTML
mit
7,908
<span class="hljs-keyword">import</span> {NgModule} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/core&#x27;</span>; <span class="hljs-keyword">import</span> {FormsModule} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/forms&#x27;</span>; <span class="hljs-keyword">import</span> {MatButtonModule} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/button&#x27;</span>; <span class="hljs-keyword">import</span> {MatCheckboxModule} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/checkbox&#x27;</span>; <span class="hljs-keyword">import</span> {MatRippleModule} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/core&#x27;</span>; <span class="hljs-keyword">import</span> {MatInputModule} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@angular/material/input&#x27;</span>; <span class="hljs-keyword">import</span> {ElevationOverviewExample} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./elevation-overview/elevation-overview-example&#x27;</span>; <span class="hljs-keyword">import</span> {RippleOverviewExample} <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./ripple-overview/ripple-overview-example&#x27;</span>; <span class="hljs-keyword">export</span> {ElevationOverviewExample, RippleOverviewExample}; <span class="hljs-keyword">const</span> EXAMPLES = [ElevationOverviewExample, RippleOverviewExample]; <span class="hljs-meta">@NgModule</span>({ <span class="hljs-attr">imports</span>: [MatButtonModule, MatCheckboxModule, MatInputModule, MatRippleModule, FormsModule], <span class="hljs-attr">declarations</span>: EXAMPLES, <span class="hljs-attr">exports</span>: EXAMPLES, }) <span class="hljs-keyword">export</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">CoreExamplesModule</span> </span>{}
angular/material2-docs-content
docs-content/examples-highlighted/material/core/index-ts.html
HTML
mit
2,020
using System; using System.Runtime.InteropServices; using System.Text; namespace Akkomation.TelldusCore.Utils { internal enum MarshalDirection { In, Out } internal class TelldusUtf8Marshaler : ICustomMarshaler { private static readonly TelldusUtf8Marshaler InputInstance = new TelldusUtf8Marshaler(MarshalDirection.In); private static readonly TelldusUtf8Marshaler OutputInstance = new TelldusUtf8Marshaler(MarshalDirection.Out); private readonly MarshalDirection _direction; /// <summary> /// Initializes a new instance of the <see cref="TelldusUtf8Marshaler"/> class. /// </summary> /// <param name="direction"> /// if set to <c>true</c> the marshaler will free strings using Telldus API. /// Use this for marshallers that receive strings from the API. If false the /// strings will</param> public TelldusUtf8Marshaler(MarshalDirection direction) { _direction = direction; } public static ICustomMarshaler GetInstance(string cookie) { if (String.Equals(cookie, "in", StringComparison.OrdinalIgnoreCase)) return InputInstance; if (String.Equals(cookie, "out", StringComparison.OrdinalIgnoreCase)) return OutputInstance; throw new ArgumentException("Support cookie values are 'in' or 'out'. See MarshalDirection enum"); } public void CleanUpManagedData(object managedObj) { } public void CleanUpNativeData(IntPtr pNativeData) { if (_direction == MarshalDirection.In) Marshal.FreeHGlobal(pNativeData); else NativeMethods.tdReleaseString(pNativeData); } public int GetNativeDataSize() { return -1; } public IntPtr MarshalManagedToNative(object managedObj) { if (_direction == MarshalDirection.Out) throw new InvalidOperationException("Marshaler is used in output mode, can't marshal managed to native"); if (managedObj == null) return IntPtr.Zero; var str = managedObj as string; if (str == null) throw new InvalidOperationException("TelldusUtf8Marshaler only supports marshalling strings"); return FromManaged(str); } public object MarshalNativeToManaged(IntPtr pNativeData) { if (_direction == MarshalDirection.In) throw new InvalidOperationException("Marshaler is used in input mode, can't marshal managed to native"); return FromNative(pNativeData); } internal static IntPtr FromManaged(string value) { if (value == null) return IntPtr.Zero; var buf = Encoding.UTF8.GetBytes(value + '\0'); var ptr = Marshal.AllocHGlobal(buf.Length); Marshal.Copy(buf, 0, ptr, buf.Length); return ptr; } internal static string FromNative(IntPtr pNativeData) { if (pNativeData == IntPtr.Zero) return null; int length = 0; while (Marshal.ReadByte(pNativeData, length) != 0) length++; var buf = new byte[length]; Marshal.Copy(pNativeData, buf, 0, length); return Encoding.UTF8.GetString(buf); } } }
johanclasson/TellCore
Source/Akkomation.TelldusCore/Utils/TelldusUtf8Marshaler.cs
C#
mit
3,510
<?php namespace MicroCMS\Controller; use Silex\Application; use Symfony\Component\HttpFoundation\Request; use MicroCMS\Domain\Article; use MicroCMS\Domain\Experience; use MicroCMS\Domain\User; use MicroCMS\Domain\Perso; use MicroCMS\Domain\Portfolio; use MicroCMS\Domain\Loisir; use MicroCMS\Form\Type\ArticleType; use MicroCMS\Form\Type\LoisirType; use MicroCMS\Form\Type\ExperienceType; use MicroCMS\Form\Type\PersoType; use MicroCMS\Form\Type\PortfolioType; use MicroCMS\Form\Type\CommentType; use MicroCMS\Form\Type\UserType; use MicroCMS\Form\Type\ExperienceController; class AdminController { /** * Admin home page controller. * * @param Application $app Silex application */ public function indexAction(Application $app) { $articles = $app['dao.article']->findAll(); $comments = $app['dao.comment']->findAll(); $users = $app['dao.user']->findAll(); $experiences = $app['dao.experience']->findAll(); $loisirs = $app['dao.loisir']->findAll(); $persos = $app['dao.perso']->findAll(); $portfolios = $app['dao.portfolio']->findAll(); // $experiences = $app['dao.experiences']->findAll(); return $app['twig']->render('admin.html.twig', array( 'articles' => $articles, 'comments' => $comments, 'users' => $users, 'experiences' => $experiences, 'loisirs' => $loisirs, 'persos' => $persos, 'portfolios' => $portfolios )); } /** * Add article controller. * * @param Request $request Incoming request * @param Application $app Silex application */ public function addArticleAction(Request $request, Application $app) { $article = new Article(); $articleForm = $app['form.factory']->create(ArticleType::class, $article); $articleForm->handleRequest($request); if ($articleForm->isSubmitted() && $articleForm->isValid()) { $app['dao.article']->save($article); $app['session']->getFlashBag()->add('success', 'The article was successfully created.'); } return $app['twig']->render('article_form.html.twig', array( 'title' => 'New article', 'articleForm' => $articleForm->createView())); } /** * Add loisir controller. * * @param Request $request Incoming request * @param Application $app Silex application */ public function addLoisirAction(Request $request, Application $app) { $loisir = new Loisir(); $loisirForm = $app['form.factory']->create(LoisirType::class, $loisir); $loisirForm->handleRequest($request); if ($loisirForm->isSubmitted() && $loisirForm->isValid()) { $app['dao.loisir']->save($loisir); $app['session']->getFlashBag()->add('success', 'The article was successfully created.'); } return $app['twig']->render('article_form.html.twig', array( 'title' => 'Nouveau Loisir', 'articleForm' => $loisirForm->createView())); } /** * Edit article controller. * * @param integer $id Article id * @param Request $request Incoming request * @param Application $app Silex application */ public function editLoisirAction($id, Request $request, Application $app) { $loisir = $app['dao.loisir']->find($id); $loisirForm = $app['form.factory']->create(LoisirType::class, $loisir); $loisirForm->handleRequest($request); if ( $loisirForm->isSubmitted() && $loisirForm->isValid() ) { $app['dao.loisir']->save($loisir); $app['session']->getFlashBag()->add('success', 'Votre loisir à été enregistré avec succé.'); } return $app['twig']->render('loisir_form.html.twig', array( 'title' => 'Editer votre loisir', 'loisirForm' => $loisirForm->createView())); } /** * Delete article controller. * * @param integer $id Article id * @param Application $app Silex application */ public function deleteLoisirAction( $id, Application $app ) { // Delete the article $app['dao.loisir']->delete($id); $app['session']->getFlashBag()->add('success', 'Ce loisir à été supprimé avec succé !'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } /** * Edit article controller. * * @param integer $id Article id * @param Request $request Incoming request * @param Application $app Silex application */ public function editArticleAction($id, Request $request, Application $app) { $article = $app['dao.article']->find($id); $articleForm = $app['form.factory']->create(ArticleType::class, $article); $articleForm->handleRequest($request); if ($articleForm->isSubmitted() && $articleForm->isValid()) { $app['dao.article']->save($article); $app['session']->getFlashBag()->add('success', 'The article was successfully updated.'); } return $app['twig']->render('article_form.html.twig', array( 'title' => 'Edit article', 'articleForm' => $articleForm->createView() )); } /** * Delete article controller. * * @param integer $id Article id * @param Application $app Silex application */ public function deleteArticleAction($id, Application $app) { // Delete all associated comments $app['dao.comment']->deleteAllByArticle($id); // Delete the article $app['dao.article']->delete($id); $app['session']->getFlashBag()->add('success', 'The article was successfully removed.'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } /** * Add perso controller. * * @param Request $request Incoming request * @param Application $app Silex application */ public function addPersoAction(Request $request, Application $app) { $perso = new Perso(); $persoForm = $app['form.factory']->create(PersoType::class, $perso); $persoForm->handleRequest($request); if ($persoForm->isSubmitted() && $persoForm->isValid()) { $app['dao.perso']->save($perso); $app['session']->getFlashBag()->add('success', 'The article was successfully created.'); } return $app['twig']->render('perso_form.html.twig', array( 'title' => 'Nouvelles informations personnels', 'persoForm' => $persoForm->createView())); } /** * Edit article controller. * * @param integer $id Article id * @param Request $request Incoming request * @param Application $app Silex application */ public function editPersoAction($id, Request $request, Application $app) { $perso = $app['dao.perso']->find($id); $persoForm = $app['form.factory']->create(PersoType::class, $perso); $persoForm->handleRequest($request); if ($persoForm->isSubmitted() && $persoForm->isValid()) { $app['dao.perso']->save($perso); $app['session']->getFlashBag()->add('success', 'The personnels was successfully updated.'); } return $app['twig']->render('perso_form.html.twig', array( 'title' => 'Editer ces informations personnels', 'persoForm' => $persoForm->createView() )); } /** * Delete article controller. * * @param integer $id Article id * @param Application $app Silex application */ public function deletePersoAction($id, Application $app) { // Delete the article $app['dao.perso']->delete($id); $app['session']->getFlashBag()->add('success', 'Ces information personnels ont été supprimé.'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } /** * Edit comment controller. * * @param integer $id Comment id * @param Request $request Incoming request * @param Application $app Silex application */ public function editCommentAction($id, Request $request, Application $app) { $comment = $app['dao.comment']->find($id); $commentForm = $app['form.factory']->create(CommentType::class, $comment); $commentForm->handleRequest($request); if ($commentForm->isSubmitted() && $commentForm->isValid()) { $app['dao.comment']->save($comment); $app['session']->getFlashBag()->add('success', 'The comment was successfully updated.'); } return $app['twig']->render('comment_form.html.twig', array( 'title' => 'Edit comment', 'commentForm' => $commentForm->createView())); } public function addPortfolioAction(Request $request, Application $app) { $portfolio = new Portfolio(); $portfolioForm = $app['form.factory']->create(PortfolioType::class, $portfolio); $portfolioForm->handleRequest($request); if ($portfolioForm->isSubmitted() && $portfolioForm->isValid()) { $app['dao.portfolio']->save($portfolio); $app['session']->getFlashBag()->add('success', 'The article was successfully created.'); } return $app['twig']->render('portfolio_form.html.twig', array( 'title' => 'Nouvelles informations portfolionnels', 'portfolioForm' => $portfolioForm->createView())); } /** * Edit article controller. * * @param integer $id Article id * @param Request $request Incoming request * @param Application $app Silex application */ public function editPortfolioAction($id, Request $request, Application $app) { $portfolio = $app['dao.portfolio']->find($id); $portfolioForm = $app['form.factory']->create(PortfolioType::class, $portfolio); $portfolioForm->handleRequest($request); if ($portfolioForm->isSubmitted() && $portfolioForm->isValid()) { $app['dao.portfolio']->save($portfolio); $app['session']->getFlashBag()->add('success', 'Vous avez édité cette element avec succés.'); } return $app['twig']->render('portfolio_form.html.twig', array( 'title' => 'Editer ces informations portfolionnels', 'portfolioForm' => $portfolioForm->createView() )); } /** * Delete article controller. * * @param integer $id Article id * @param Application $app Silex application */ public function deletePortfolioAction($id, Application $app) { // Delete the article $app['dao.portfolio']->delete($id); $app['session']->getFlashBag()->add('success', 'Ces information personnels ont été supprimé.'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } /** * Delete comment controller. * * @param integer $id Comment id * @param Application $app Silex application */ public function deleteCommentAction($id, Application $app) { $app['dao.comment']->delete($id); $app['session']->getFlashBag()->add('success', 'The comment was successfully removed.'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } /** * Add user controller. * * @param Request $request Incoming request * @param Application $app Silex application */ public function addUserAction(Request $request, Application $app) { $user = new User(); $userForm = $app['form.factory']->create(UserType::class, $user); $userForm->handleRequest($request); if ($userForm->isSubmitted() && $userForm->isValid()) { // generate a random salt value $salt = substr(md5(time()), 0, 23); $user->setSalt($salt); $plainPassword = $user->getPassword(); // find the default encoder $encoder = $app['security.encoder.bcrypt']; // compute the encoded password $password = $encoder->encodePassword($plainPassword, $user->getSalt()); $user->setPassword($password); $app['dao.user']->save($user); $app['session']->getFlashBag()->add('success', 'The user was successfully created.'); } return $app['twig']->render('user_form.html.twig', array( 'title' => 'New user', 'userForm' => $userForm->createView())); } /** * Edit user controller. * * @param integer $id User id * @param Request $request Incoming request * @param Application $app Silex application */ public function editUserAction($id, Request $request, Application $app) { $user = $app['dao.user']->find($id); $userForm = $app['form.factory']->create(UserType::class, $user); $userForm->handleRequest($request); if ($userForm->isSubmitted() && $userForm->isValid()) { $plainPassword = $user->getPassword(); // find the encoder for the user $encoder = $app['security.encoder_factory']->getEncoder($user); // compute the encoded password $password = $encoder->encodePassword($plainPassword, $user->getSalt()); $user->setPassword($password); $app['dao.user']->save($user); $app['session']->getFlashBag()->add('success', 'The user was successfully updated.'); } return $app['twig']->render('user_form.html.twig', array( 'title' => 'Edit user', 'userForm' => $userForm->createView())); } /** * Delete user controller. * * @param integer $id User id * @param Application $app Silex application */ public function deleteUserAction($id, Application $app) { // Delete all associated comments $app['dao.comment']->deleteAllByUser($id); // Delete the user $app['dao.user']->delete($id); $app['session']->getFlashBag()->add('success', 'The user was successfully removed.'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } // CUSTOM CLASS /** * Add article controller. * * @param Request $request Incoming request * @param Application $app Silex application */ public function addExperienceAction(Request $request, Application $app) { $experience = new Experience(); $experienceForm = $app['form.factory']->create(ExperienceType::class, $experience); $experienceForm->handleRequest($request); if ($experienceForm->isSubmitted() && $experienceForm->isValid()) { $app['dao.experience']->save($experience); $app['session']->getFlashBag()->add('success', 'Vous avez créé une nouvelle experience.'); } return $app['twig']->render('experience_form.html.twig', array( 'title' => 'Nouvelle Experience', 'experienceForm' => $experienceForm->createView())); } /** * Edit article controller. * * @param integer $id Article id * @param Request $request Incoming request * @param Application $app Silex application */ public function editExperienceAction($id, Request $request, Application $app) { $experience = $app['dao.experience']->find($id); $experienceForm = $app['form.factory']->create(ExperienceType::class, $experience); $experienceForm->handleRequest($request); if ( $experienceForm->isSubmitted() && $experienceForm->isValid() ) { $app['dao.experience']->save($experience); $app['session']->getFlashBag()->add('success', 'Votre experience à été enregistré avec succé.'); } return $app['twig']->render('experience_form.html.twig', array( 'title' => 'Editer votre experience', 'experienceForm' => $experienceForm->createView())); } /** * Delete article controller. * * @param integer $id Article id * @param Application $app Silex application */ public function deleteExperienceAction($id, Application $app) { // Delete the article $app['dao.experience']->delete($id); $app['session']->getFlashBag()->add('success', 'Cette experience à été supprimé avec succé !'); // Redirect to admin home page return $app->redirect($app['url_generator']->generate('admin')); } }
RudyMrb/SiteCV_Silex
src/Controller/AdminController.php
PHP
mit
16,728
<script src="../../bower_components/moment/moment.js"></script> <script src="../../bower_components/moment/locale/fr.js"></script>
NicolasLeRoux/project-terpsichore
public/src/lib/moment-import.html
HTML
mit
131
# encoding: utf-8 require 'test_helper' require 'earth_tools' require 'earth_tools/result/time_zone' require 'mock_lookup' ## # Tests for Time Zone lookups. class TimeZoneTest < MiniTest::Unit::TestCase def setup @result = EarthTools.time_zone(40.71417, -74.00639) @result2 = EarthTools.time_zone(40.71655, -12.12318) @result3 = EarthTools.time_zone(50.21655, -54.87656) end def test_time_zone_returns_result assert_instance_of EarthTools::Result::TimeZone, @result end def test_iso_time iso_time = @result.iso_time assert_instance_of Time, iso_time assert_equal Time.new(2012, 6, 14, 13, 29, 6, '-05:00'), iso_time end def test_local_time local_time = @result.local_time assert_instance_of Time, local_time assert_equal Time.new(2012, 6, 14, 13, 29, 6, '-05:00'), local_time end def test_suffix suffix = @result.suffix assert_instance_of String, suffix assert_equal 'R', suffix end def test_utc_offset utc_offset = @result.utc_offset assert_kind_of Integer, utc_offset assert_equal -5, utc_offset end def test_utc_time utc_time = @result.utc_time assert_instance_of Time, utc_time assert_equal Time.utc(2012, 6, 14, 18, 29, 6), utc_time end def test_dst_as_true assert_equal 'True', @result2.dst assert @result2.dst? end def test_dst_as_false assert_equal 'False', @result3.dst refute @result3.dst? end def test_dst_as_unknown assert_equal 'Unknown', @result.dst assert_nil @result.dst? end end
mckramer/earth_tools
test/time_zone_test.rb
Ruby
mit
1,670
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>compcert: 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.7.1+1 / compcert - 3.6+8.11</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> compcert <small> 3.6+8.11 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-19 04:09:34 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-19 04:09:34 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.1+1 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 ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; authors: &quot;Xavier Leroy &lt;[email protected]&gt;&quot; maintainer: &quot;Jacques-Henri Jourdan &lt;[email protected]&gt;&quot; homepage: &quot;http://compcert.inria.fr/&quot; dev-repo: &quot;git+https://github.com/AbsInt/CompCert.git&quot; bug-reports: &quot;https://github.com/AbsInt/CompCert/issues&quot; license: &quot;INRIA Non-Commercial License Agreement&quot; build: [ [&quot;./configure&quot; &quot;ia32-linux&quot; {os = &quot;linux&quot;} &quot;ia32-macosx&quot; {os = &quot;macos&quot;} &quot;ia32-cygwin&quot; {os = &quot;cygwin&quot;} &quot;-bindir&quot; &quot;%{bin}%&quot; &quot;-libdir&quot; &quot;%{lib}%/compcert&quot; &quot;-install-coqdev&quot; &quot;-clightgen&quot; &quot;-coqdevdir&quot; &quot;%{lib}%/coq/user-contrib/compcert&quot; &quot;-ignore-coq-version&quot;] [make &quot;-j%{jobs}%&quot; {ocaml:version &gt;= &quot;4.06&quot;}] ] patches: &quot;compat-8-11.patch&quot; extra-files: [&quot;compat-8-11.patch&quot; &quot;sha256=1d54e39e9cda9ce8a408158580c09d0d76ff2accbd7524d1986aee4a7b0563dd&quot;] install: [ [make &quot;install&quot;] [&quot;install&quot; &quot;-m&quot; &quot;0644&quot; &quot;VERSION&quot; &quot;%{lib}%/coq/user-contrib/compcert/&quot;] ] depends: [ # This are the release versions of Coq which include this version of compcert # See compcert_CI_REF in # https://github.com/coq/coq/blob/V8.11.0/dev/ci/ci-basic-overlay.sh # See make_addon_compcert in # https://github.com/coq/coq/blob/V8.11.0/dev/build/windows/makecoq_mingw.sh &quot;coq&quot; {= &quot;8.11.0&quot;} &quot;menhir&quot; {&gt;= &quot;20190626&quot; &amp; &lt; &quot;20200123&quot;} &quot;ocaml&quot; {&gt;= &quot;4.05.0&quot;} ] synopsis: &quot;The CompCert C compiler (patched for Coq 8.11 compatibility)&quot; tags: [ &quot;category:Computer Science/Semantics and Compilation/Compilation&quot; &quot;category:Computer Science/Semantics and Compilation/Semantics&quot; &quot;keyword:C&quot; &quot;keyword:compiler&quot; &quot;logpath:compcert&quot; &quot;date:2019-10-02&quot; ] url { src: &quot;https://github.com/AbsInt/CompCert/archive/v3.6.tar.gz&quot; checksum: &quot;sha256=7a77839f6b990ab632ba14feccf4f17da189f0e3b95d6ce2ef0986e4caebc575&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-compcert.3.6+8.11 coq.8.7.1+1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+1). The following dependencies couldn&#39;t be met: - coq-compcert -&gt; coq = 8.11.0 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-compcert.3.6+8.11</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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.1/released/8.7.1+1/compcert/3.6+8.11.html
HTML
mit
8,069
/** * Angular Paginate * @homepage https://github.com/darthwade/angular-paginate * @author Vadym Petrychenko https://github.com/darthwade * @license The MIT License (http://www.opensource.org/licenses/mit-license.php) * @copyright 2014 Vadym Petrychenko */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD define(['angular'], factory); } else if (typeof exports === 'object') { // CommonJS factory(require('angular')); } else { // Browser globals factory(window.angular) } }(function (angular) { 'use strict'; angular.module('darthwade.paginate', []) .provider('$paginate', function () { var provider = this; provider.templateUrl = 'angular-paginate.html'; provider.options = { perPage: 10, // Items count per page. range: 5, // Number of pages neighbouring the current page which will be displayed. boundaryLinks: true, // Whether to display First / Last buttons. directionLinks: true, // Whether to display Previous / Next buttons. rotate: true, // Whether to keep current page in the middle of the visible ones. paramName: 'page', previousText: 'Previous', // Text for previous button nextText: 'Next', // Text for next button moreText: '...' // Text for more button }; provider.$get = function() { var wrapper = function(options) { return new Paginator(options); }; wrapper.getDefaultOptions = function() { return provider.options; }; wrapper.getTemplateUrl = function() { return provider.templateUrl; }; return wrapper; }; /** * Overrides default options * @param {Object} options */ provider.setDefaultOptions = function (options) { angular.extend(provider.options, options); }; provider.setTemplateUrl = function (templateUrl) { provider.templateUrl = templateUrl; }; var Paginator = function(options) { var self = this; var defaultOptions = { $page: 1, $objects: [], $totalCount: 0, $startIndex: 0, $endIndex: 0, $totalPages: 0, onPageChange: angular.noop }; self.page = function (page) { if (self.$page === page) { return; } self.$page = page; calculate(); if (self.onPageChange) { self.onPageChange.call(self); } }; self.options = function (options) { angular.extend(self, options); }; self.previous = function () { if (self.hasPrevious()) { self.page(self.$page - 1); } }; self.next = function () { if (self.hasNext()) { self.page(self.$page + 1); } }; self.hasPrevious = function () { return self.$page > 1; }; self.hasNext = function () { return self.$page < self.$totalPages; }; // Create page object used in template var makePage = function (number, text, active) { return { number: number, text: text, active: active }; }; var getPages = function () { var pages = []; // Default page limits var startPage = 1, endPage = self.$totalPages; var isRanged = self.range < self.$totalPages; // recompute if maxSize if (isRanged) { if (self.rotate) { // Current page is displayed in the middle of the visible ones startPage = Math.max(self.$page - Math.floor(self.range / 2), 1); endPage = startPage + self.range - 1; // Adjust if limit is exceeded if (endPage > self.$totalPages) { endPage = self.$totalPages; startPage = endPage - self.range + 1; } } else { // Visible pages are paginated with maxSize startPage = ((Math.ceil(self.$page / self.range) - 1) * self.range) + 1; // Adjust last page if limit is exceeded endPage = Math.min(startPage + self.range - 1, self.$totalPages); } } // Add page number links for (var number = startPage; number <= endPage; number++) { var page = makePage(number, number, number === self.$page); pages.push(page); } // Add links to move between page sets if (isRanged) { // && !self.rotate var margin = self.boundaryLinks ? 1 : 0; if (startPage - margin > 1) { var previousPageSet = makePage(startPage - 1, self.moreText, false); pages.unshift(previousPageSet); } if (endPage + margin < self.$totalPages) { var nextPageSet = makePage(endPage + 1, self.moreText, false); pages.push(nextPageSet); } } // Add boundary links if needed if (self.boundaryLinks) { if (startPage > 1) { var firstPage = makePage(1, 1, false); pages.unshift(firstPage); } if (endPage < self.$totalPages) { var lastPage = makePage(self.$totalPages, self.$totalPages, false); pages.push(lastPage); } } return pages; }; var calculate = function() { self.$page = parseInt(self.$page) || 1; self.$objects = self.$objects || []; self.$totalCount = parseInt(self.$totalCount) || 0; self.$totalPages = Math.ceil(self.$totalCount / self.perPage); self.$startIndex = (self.$page - 1) * self.perPage; self.$endIndex = self.$startIndex + self.$objects.length; if (self.$endIndex) { self.$startIndex += 1; } self.$pages = getPages(); }; angular.extend(self, provider.options, defaultOptions, options); calculate(); }; return provider; }) .directive('dwPaginate', ['$paginate', function ($paginate) { return { restrict: 'EA', scope: { paginator: '=dwPaginate' }, replace: true, templateUrl: $paginate.getTemplateUrl(), link: function (scope, element, attrs) { } }; }]); }));
darthwade/angular-paginate
angular-paginate.js
JavaScript
mit
6,581
<?php namespace InoOicClient\Oic\Authorization\State\Exception; class StateMismatchException extends \RuntimeException { }
Yusuke-KOMIYAMA/aiv
binder/app/Vendor/ivan-novakov/php-openid-connect-client/src/InoOicClient/Oic/Authorization/State/Exception/StateMismatchException.php
PHP
mit
132
# 9fs file server FROM debian:sid MAINTAINER jordi collell <[email protected]> RUN apt-get update && apt-get install -y \ diod VOLUME /data CMD [ "diod", "--export=/data", "-n", "-f", "-l", "0.0.0.0:5640" ] EXPOSE 5640
jordic/k8s
9fs/Dockerfile
Dockerfile
mit
220
<?php umask(0000); // Définit une permission 0777 use Symfony\Component\ClassLoader\ApcClassLoader; use Symfony\Component\HttpFoundation\Request; $loader = require_once __DIR__.'/../app/bootstrap.php.cache'; // Enable APC for autoloading to improve performance. // You should change the ApcClassLoader first argument to a unique prefix // in order to prevent cache key conflicts with other applications // also using APC. /* $apcLoader = new ApcClassLoader(sha1(__FILE__), $loader); $loader->unregister(); $apcLoader->register(true); */ require_once __DIR__.'/../app/AppKernel.php'; //require_once __DIR__.'/../app/AppCache.php'; $kernel = new AppKernel('prod', false); $kernel->loadClassCache(); //$kernel = new AppCache($kernel); // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter //Request::enableHttpMethodParameterOverride(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);
KartographerZ/web_app
web/app.php
PHP
mit
1,058
watch: clean NODE_ENV=development `npm bin`/webpack -w package: build mkdir -p dist zip -x\*.DS_Store dist/linkgrabber.zip -r css html images js vendor manifest.json build: clean NODE_ENV=production `npm bin`/webpack lint: node_modules/.bin/eslint src clean: rm -rf js rm -rf dist
7fffffff/linkgrabber
Makefile
Makefile
mit
292
<?php namespace Leezy\PheanstalkBundle\Tests\Command; use Leezy\PheanstalkBundle\Command\PutCommand; use Pheanstalk\Job; use Symfony\Component\Console\Tester\CommandTester; class PutCommandTest extends AbstractPheanstalkCommandTest { public function testExecute() { $args = $this->getCommandArgs(); $tube = $args['tube']; $data = $args['data']; $priority = $args['priority']; $delay = $args['delay']; $ttr = $args['ttr']; $data = 'foobar'; $job = new Job(1234, $data); $this->pheanstalk->expects($this->once())->method('useTube')->with($tube)->will($this->returnValue($this->pheanstalk)); $this->pheanstalk->expects($this->once())->method('put')->with($data, $priority, $delay, $ttr)->will($this->returnValue($job)); $command = $this->application->find('leezy:pheanstalk:put'); $commandTester = new CommandTester($command); $commandTester->execute($args); $this->assertStringContainsString(sprintf('New job on tube %s with id %d', $tube, $job->getId()), $commandTester->getDisplay()); } /** * @inheritdoc */ protected function getCommand() { return new PutCommand($this->locator); } /** * @inheritdoc */ protected function getCommandArgs() { return ['tube' => 'default', 'data' => 'foobar', 'priority' => 512, 'delay' => 10, 'ttr' => 120]; } }
armetiz/LeezyPheanstalkBundle
tests/Command/PutCommandTest.php
PHP
mit
1,472
<?php namespace PlaygroundDesign\Service; use PlaygroundDesign\Entity\Theme as ThemeEntity; use Laminas\Form\Form; use Laminas\ServiceManager\ServiceManager; use Laminas\Validator\NotEmpty; use Laminas\EventManager\EventManagerAwareTrait; use PlaygroundDesign\Options\ModuleOptions; use DoctrineModule\Validator\NoObjectExists as NoObjectExistsValidator; use Laminas\Stdlib\ErrorHandler; use Laminas\ServiceManager\ServiceLocatorInterface; class Theme { use EventManagerAwareTrait; /** * @var themeMapperInterface */ protected $themeMapper; /** * @var ServiceManager */ protected $serviceManager; /** * @var UserServiceOptionsInterface */ protected $options; public static $files = array('assets.php', 'layout.php', 'theme.php'); public function __construct(ServiceLocatorInterface $locator) { $this->serviceManager = $locator; } /** * * This service is ready for create a theme * * @param array $data * @param string $formClass * * @return \PlaygroundPartnership\Entity\Theme */ public function create(array $data, $formClass) { $valid = new NotEmpty(); if (!$valid->isValid($data['title'])) { return false; } $theme = new ThemeEntity; $form = $this->getServiceManager()->get($formClass); $form->bind($theme); $theme->setImage('tmp'); $form->setData($data); if (!$form->isValid()) { return false; } if (!$this->checkDirectoryTheme($theme, $data)) { mkdir($theme->getBasePath().'/'.$data['area'].'/'.$data['package'].'/'.$data['theme'], 0777, true); } $this->createFiles($theme, $data); $themeMapper = $this->getThemeMapper(); $theme = $themeMapper->insert($theme); $this->uploadImage($theme, $data); $theme = $themeMapper->update($theme); return $theme; } /** * * This service is ready for edit a theme * * @param array $data * @param string $theme * @param string $formClass * * @return \PlaygroundDesignEntity\Theme */ public function edit(array $data, $theme, $formClass) { $valid = new NotEmpty(); if (!$valid->isValid($data['title'])) { return false; } $entityManager = $this->getServiceManager()->get('playgrounddesign_doctrine_em'); $form = $this->getServiceManager()->get($formClass); $form->bind($theme); $form->setData($data); if (!$form->isValid() || !$this->checkDirectoryTheme($theme, $data)) { return false; } $this->uploadImage($theme, $data); $theme = $this->getThemeMapper()->update($theme); return $theme; } public function uploadImage($theme, $data) { if (!empty($data['uploadImage']['tmp_name'])) { $path = $this->getOptions()->getMediaPath() . $data['area'] . DIRECTORY_SEPARATOR . $data['package'] . DIRECTORY_SEPARATOR . $data['theme'] . '/assets/images/screenshots/'; if (!is_dir($path)) { mkdir($path, 0777, true); } $media_url = $this->getOptions()->getMediaUrl() . '/'; move_uploaded_file($data['uploadImage']['tmp_name'], $path . $theme->getId() . "-" . $data['uploadImage']['name']); $theme->setImage($media_url . $theme->getId() . "-" . $data['uploadImage']['name']); } return $theme; } /** * * Check if the directory theme exist * * @param \PlaygroundPartnership\Entity\Theme $theme * @param array $data * * @return bool $bool */ public function checkDirectoryTheme($theme, $data) { $newUrlTheme = $theme->getBasePath().'/'.$data['area'].'/'.$data['package'].'/'.$data['theme']; if (!is_dir($newUrlTheme)) { return false; } return true; } public function createFiles($theme, $data) { foreach (self::$files as $file) { if (file_exists($theme->getBasePath().$data['area'].'/'.$data['package'].'/'.$data['theme'].'/'.$file)) { continue; } $contentAssets = file_get_contents(__DIR__.'/../Templates/'.$file); $contentAssets = str_replace(array('{{area}}', '{{package}}', '{{theme}}', '{{title}}'), array($data['area'], $data['package'], $data['theme'], $data['title']), $contentAssets); file_put_contents($theme->getBasePath().$data['area'].'/'.$data['package'].'/'.$data['theme'].'/'.$file, $contentAssets); } } /** * findById : recupere l'entite en fonction de son id * @param int $id id du theme * * @return PlaygroundDesign\Entity\Theme $theme */ public function findById($id) { return $this->getThemeMapper()->findById($id); } /** * insert : insert en base une entité theme * @param PlaygroundDesign\Entity\Theme $entity theme * * @return PlaygroundDesign\Entity\Theme $theme */ public function insert($entity) { return $this->getThemeMapper()->insert($entity); } /** * insert : met a jour en base une entité theme * @param PlaygroundDesign\Entity\Theme $entity theme * * @return PlaygroundDesign\Entity\Theme $theme */ public function update($entity) { return $this->getThemeMapper()->update($entity); } /** * remove : supprimer une entite theme * @param PlaygroundDesign\Entity\Theme $entity theme * */ public function remove($entity) { $this->getThemeMapper()->remove($entity); } /** * findActiveTheme : recupere des entites en fonction du filtre active * @param boolean $active valeur du champ active * * @return collection $themes collection de PlaygroundDesign\Entity\Theme */ public function findActiveTheme($active = true) { return $this->getThemeMapper()->findActiveTheme($active); } /** * findActiveThemeByArea : recupere des entites active en fonction du filtre Area * @param string $area area du theme * @param boolean $active valeur du champ active * * @return collection $themes collection de PlaygroundDesign\Entity\Theme */ public function findActiveThemeByArea($area, $active = true) { return $this->getThemeMapper()->findActiveThemeByArea($area, $active); } /** * findThemeByAreaPackageAndBase : recupere des entites en fonction des filtre Area, Package et Theme * @param string $area area du theme * @param string $package package du theme * @param string $base base du theme * * @return collection $themes collection de PlaygroundDesign\Entity\Theme */ public function findThemeByAreaPackageAndBase($area, $package, $base) { return $this->getThemeMapper()->findThemeByAreaPackageAndBase($area, $package, $base); } /** * getThemeMapper * * @return ThemeMapperInterface */ public function getThemeMapper() { if (null === $this->themeMapper) { $this->themeMapper = $this->getServiceManager()->get('playgrounddesign_theme_mapper'); } return $this->themeMapper; } /** * setThemeMapper * @param ThemeMapperInterface $themeMapper * * @return PlaygroundPartnership\Entity\Theme Theme */ public function setThemeMapper($themeMapper) { $this->themeMapper = $themeMapper; return $this; } /** * setOptions * @param ModuleOptions $options * * @return PlaygroundDesign\Service\Theme $this */ public function setOptions(ModuleOptions $options) { $this->options = $options; return $this; } /** * getOptions * * @return ModuleOptions $optins */ public function getOptions() { if (!$this->options instanceof ModuleOptions) { $this->setOptions($this->getServiceManager()->get('playgrounddesign_module_options')); } return $this->options; } /** * Retrieve service manager instance * * @return ServiceManager */ public function getServiceManager() { return $this->serviceManager; } }
gregorybesson/PlaygroundDesign
src/Service/Theme.php
PHP
mit
8,422
var express = require('express') var braintree = require('braintree') var router = express.Router() // eslint-disable-line new-cap var gateway = require('../lib/gateway') var TRANSACTION_SUCCESS_STATUSES = [ braintree.Transaction.Status.Authorizing, braintree.Transaction.Status.Authorized, braintree.Transaction.Status.Settled, braintree.Transaction.Status.Settling, braintree.Transaction.Status.SettlementConfirmed, braintree.Transaction.Status.SettlementPending, braintree.Transaction.Status.SubmittedForSettlement ] function formatErrors(errors) { var formattedErrors = '' for (var i in errors) { // eslint-disable-line no-inner-declarations, vars-on-top if (errors.hasOwnProperty(i)) { formattedErrors += 'Error: ' + errors[i].code + ': ' + errors[i].message + '\n' } } return formattedErrors } function createResultObject(transaction) { var result var status = transaction.status if (TRANSACTION_SUCCESS_STATUSES.indexOf(status) !== -1) { result = { header: 'Sweet Success!', icon: 'success', message: 'Your test transaction has been successfully processed. See the Braintree API response and try again.' } } else { result = { header: 'Transaction Failed', icon: 'fail', message: 'Your test transaction has a status of ' + status + '. See the Braintree API response and try again.' } } return result } router.get('/', function (req, res) { res.redirect('/checkouts/new') }) router.get('/checkouts/new', function (req, res) { gateway.clientToken.generate({}, function (err, response) { res.render('checkouts/new', {clientToken: response.clientToken, messages: req.flash('error')}) }) }) router.get('/checkouts/:id', function (req, res) { var result var transactionId = req.params.id gateway.transaction.find(transactionId, function (err, transaction) { result = createResultObject(transaction) res.render('checkouts/show', {transaction: transaction, result: result}) }) }) router.post('/checkouts', function (req, res) { var transactionErrors var amount = req.body.amount // In production you should not take amounts directly from clients var nonce = req.body.payment_method_nonce gateway.transaction.sale({ amount: amount, paymentMethodNonce: nonce, customer: { firstName: req.body.firstName, lastName: req.body.lastName, email: req.body.email }, options: { submitForSettlement: true, storeInVaultOnSuccess: true } }, function (err, result) { if (result.success || result.transaction) { res.redirect('checkouts/' + result.transaction.id) } else { transactionErrors = result.errors.deepErrors() req.flash('error', {msg: formatErrors(transactionErrors)}) res.redirect('checkouts/new') } }) }) module.exports = router
alexanderalmstrom/alexanderalmstrom
app/routes/checkout.js
JavaScript
mit
2,862
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-analysis: 9 m 50 s 🏆</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.12.1 / mathcomp-analysis - 0.3.6</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> mathcomp-analysis <small> 0.3.6 <span class="label label-success">9 m 50 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-29 09:04:54 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-29 09:04:54 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.10.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.10.2 Official release 4.10.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Reynald Affeldt &lt;[email protected]&gt;&quot; homepage: &quot;https://github.com/math-comp/analysis&quot; dev-repo: &quot;git+https://github.com/math-comp/analysis.git&quot; bug-reports: &quot;https://github.com/math-comp/analysis/issues&quot; license: &quot;CECILL-C&quot; synopsis: &quot;An analysis library for mathematical components&quot; description: &quot;&quot;&quot; This repository contains an experimental library for real analysis for the Coq proof-assistant and using the Mathematical Components library.&quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot; ] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; { (&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.14~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-ssreflect&quot; { (&gt;= &quot;1.12.0&quot; &amp; &lt; &quot;1.13~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-fingroup&quot; { (&gt;= &quot;1.12.0&quot; &amp; &lt; &quot;1.13~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-algebra&quot; { (&gt;= &quot;1.12.0&quot; &amp; &lt; &quot;1.13~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-solvable&quot; { (&gt;= &quot;1.12.0&quot; &amp; &lt; &quot;1.13~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-field&quot; { (&gt;= &quot;1.12.0&quot; &amp; &lt; &quot;1.13~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-finmap&quot; { (&gt;= &quot;1.5.1&quot; &amp; &lt; &quot;1.6~&quot;) | (= &quot;dev&quot;) } &quot;coq-mathcomp-bigenough&quot; { (&gt;= &quot;1.0.0&quot;) } &quot;coq-hierarchy-builder&quot; { (&gt;= &quot;0.10.0&quot; &amp; &lt; &quot;1.1.0&quot;) | (= &quot;dev&quot;) } ] tags: [ &quot;keyword:analysis&quot; &quot;keyword:topology&quot; &quot;keyword:real numbers&quot; &quot;date:2021-03-04&quot; &quot;logpath:mathcomp.analysis&quot; ] authors: [ &quot;Reynald Affeldt&quot; &quot;Cyril Cohen&quot; &quot;Marie Kerjean&quot; &quot;Assia Mahboubi&quot; &quot;Damien Rouhling&quot; &quot;Kazuhiko Sakaguchi&quot; &quot;Pierre-Yves Strub&quot; ] url { http: &quot;https://github.com/math-comp/analysis/archive/0.3.6.tar.gz&quot; checksum: &quot;sha512=6f19f26bfdfeff6a9e56d27e278141c851cbbd5e584af523ef153b70b9326ab396ab8f582a56762e33a7053a4130b144feb4ba92a8acac62eb5e47193f3450a2&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-mathcomp-analysis.0.3.6 coq.8.12.1</code></dd> <dt>Return code</dt> <dd>0</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>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-mathcomp-analysis.0.3.6 coq.8.12.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>55 m 2 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-mathcomp-analysis.0.3.6 coq.8.12.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>9 m 50 s</dd> </dl> <h2>Installation size</h2> <p>Total: 15 M</p> <ul> <li>1 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/normedtype.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/normedtype.glob</code></li> <li>1 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/topology.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/topology.glob</code></li> <li>915 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/derive.vo</code></li> <li>755 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/ereal.glob</code></li> <li>726 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/derive.glob</code></li> <li>617 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/ereal.vo</code></li> <li>565 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/landau.vo</code></li> <li>503 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/measure.vo</code></li> <li>462 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/sequences.glob</code></li> <li>452 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/sequences.vo</code></li> <li>428 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/landau.glob</code></li> <li>410 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/realsum.glob</code></li> <li>396 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/distr.glob</code></li> <li>344 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/classical_sets.glob</code></li> <li>344 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/realsum.vo</code></li> <li>339 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/distr.vo</code></li> <li>321 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/classical_sets.vo</code></li> <li>226 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/Rstruct.vo</code></li> <li>205 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/reals.vo</code></li> <li>198 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/realseq.vo</code></li> <li>191 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/forms.vo</code></li> <li>181 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/measure.glob</code></li> <li>173 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/topology.v</code></li> <li>159 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/Rstruct.glob</code></li> <li>154 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/forms.glob</code></li> <li>151 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/boolp.glob</code></li> <li>149 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/realseq.glob</code></li> <li>146 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/reals.glob</code></li> <li>137 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/normedtype.v</code></li> <li>129 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/boolp.vo</code></li> <li>106 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/nngnum.vo</code></li> <li>99 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/nngnum.glob</code></li> <li>91 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/discrete.vo</code></li> <li>90 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/xfinmap.vo</code></li> <li>80 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/summability.vo</code></li> <li>72 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/ereal.v</code></li> <li>70 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/posnum.vo</code></li> <li>66 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/landau.v</code></li> <li>63 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/derive.v</code></li> <li>57 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/classical_sets.v</code></li> <li>52 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/sequences.v</code></li> <li>47 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/prodnormedzmodule.vo</code></li> <li>45 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/xfinmap.glob</code></li> <li>45 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/realsum.v</code></li> <li>41 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/distr.v</code></li> <li>34 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/posnum.glob</code></li> <li>33 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/discrete.glob</code></li> <li>29 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/measure.v</code></li> <li>28 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/boolp.v</code></li> <li>26 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/Rstruct.v</code></li> <li>24 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/reals.v</code></li> <li>23 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/forms.v</code></li> <li>20 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/realseq.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/prodnormedzmodule.glob</code></li> <li>13 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/nngnum.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/summability.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/posnum.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/discrete.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/altreals/xfinmap.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/prodnormedzmodule.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/mathcomp/analysis/summability.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-mathcomp-analysis.0.3.6</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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.10.2-2.0.6/released/8.12.1/mathcomp-analysis/0.3.6.html
HTML
mit
15,603
<div class="body-bg"></div> <main ng-if="$pageFinishedLoading" ng-class="{ 'menu-collapsed': $baSidebarService.isMenuCollapsed() }"> <ba-sidebar></ba-sidebar> <page-top></page-top> <div class="al-main"> <div class="al-content"> <content-top></content-top> <div ba-panel ba-panel-class="profile-page"> <div class="panel-content"> <!-- <div class="progress-info">Your profile is 70% Complete</div> <div class="progress"> <div class="progress-bar progress-bar-primary progress-bar-striped active" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%"> </div> </div>--> <h3 class="with-line">Bill Info</h3> <div class="row"> <div class="col-md-2"></div> <div class="col-md-3"><h3>Amount Due:<span style="color:#ec4844" count-to="100" value="0" duration="1"></span></h3></div> <div class="col-md-2"></div> <div class="col-md-3"><h3>Balance:<span style="color:#00b0e8" count-to="0" value="100" duration="1"></span></h3></div> <div class="col-md-2"></div> </div> </div> <br/> <h3 class="with-line">Payment Instructions</h3> <div class="row"> <div class="col-md-1"></div> <div class="section-block col-md-5"> <h5 class="list-header">B2C</h5> <ul class="blur"> <li>For personal bank accounts only</li> <li>Supports multiple banks</li> <li>SMS based authentication</li> </ul> </div> <div class="section-block col-md-5"> <h5 class="list-header">B2B</h5> <ul class="blur"> <li>For corporate bank accounts only</li> <li>Supports multiple banks</li> <li></li> </ul> </div> <div class="col-md-1"></div> </div> <h3 class="with-line">Choose Method</h3> <br/> <div class="row"> <div class="col-md-2"></div> <button class="btn btn-default btn-lg col-md-3 btn-info" data-toggle="modal" ng-click="open('app/pages/payonline/modalTemplates/basicModal.html')"><span style="color:#ffffff;">B2C</span></button> <div class="col-md-2"></div> <button class="btn btn-default btn-lg col-md-3 btn-info"><span style="color:#ffffff;">B2b</span></button> <div class="col-md-2"></div> </div> <script></script> </div> </div> </div> <footer class="al-footer clearfix"> <div class="al-footer-right">lightningroood 2016</div> <div class="al-footer-main clearfix"> <div class="al-copy"></div> <!--<ul class="al-share clearfix"> <li><i class="socicon socicon-facebook"></i></li> <li><i class="socicon socicon-twitter"></i></li> <li><i class="socicon socicon-google"></i></li> <li><i class="socicon socicon-github"></i></li> </ul>--> </div> </footer> <back-top></back-top> </main> <div id="preloader" ng-show="!$pageFinishedLoading"> <div></div> </div>
lightningroood/bluradmin_springboot
src/main/resources/static/app/pages/payonline/template.html
HTML
mit
4,268
/* Copyright (c) 2017-2018 Tom Hancocks 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. */ #ifndef __VKERNEL_DEVICE_PS2_KEYBOARD__ #define __VKERNEL_DEVICE_PS2_KEYBOARD__ /** Initialises and prepares the PS/2 keyboard driver for use. This will ensure the PS/2 keyboard is in a usable state. NOTE: This driver is rudimentary and should really be fleshed out into a full PS/2 driver that properly manages the PS/2 controller state and configuration. */ void ps2_keyboard_initialise(void); #endif
tjhancocks/Veracyon
kernel/include/device/ps2/keyboard.h
C
mit
1,500
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>compcert: 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.7.1 / compcert - 2.0.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> compcert <small> 2.0.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-02-19 06:39:30 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-02-19 06:39:30 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.11 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.7.1 Formal proof management system. num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.0 Official release 4.09.0 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;http://compcert.inria.fr/&quot; dev-repo: &quot;git+https://github.com/AbsInt/CompCert.git&quot; bug-reports: &quot;https://github.com/AbsInt/CompCert/issues&quot; license: &quot;INRIA Non-Commercial License Agreement&quot; build: [ [&quot;./configure&quot; &quot;ia32-linux&quot;] [make &quot;-j%{jobs}%&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.4pl4&quot; &amp; &lt; &quot;8.5~&quot;} ] synopsis: &quot;The CompCert C compiler&quot; authors: &quot;Xavier Leroy &lt;[email protected]&gt;&quot; extra-files: [&quot;coq-compcert.install&quot; &quot;md5=a7efe759bff32c6aac2c2ca483d5a266&quot;] url { src: &quot;http://compcert.inria.fr/release/compcert-2.0.tgz&quot; checksum: &quot;md5=931325ad6a1faf22df73c249509c0b9f&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-compcert.2.0.0 coq.8.7.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1). The following dependencies couldn&#39;t be met: - coq-compcert -&gt; coq &lt; 8.5~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) 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-compcert.2.0.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.09.0-2.0.5/released/8.7.1/compcert/2.0.0.html
HTML
mit
6,528
/** * */ package com.kant.datastructure.stacks; import com.kant.sortingnsearching.MyUtil; /** * http://www.geeksforgeeks.org/the-stock-span-problem/ <br/> * * * The stock span problem is a financial problem where we have a series of n * daily price quotes for a stock and we need to calculate span of stock’s price * for all n days. The span Si of the stock’s price on a given day i is defined * as the maximum number of consecutive days just before the given day, for * which the price of the stock on the current day is less than or equal to its * price on the given day. For example, if an array of 7 days prices is given as * {100, 80, 60, 70, 60, 75, 85}, then the span values for corresponding 7 days * are {1, 1, 1, 2, 1, 4, 6} * * @author shaskant * */ public class StockSpanProblem { int[] stockData;// prices /** * */ public StockSpanProblem(int[] stockData) { this.stockData = stockData; } /** * General approach. TESTED * * @return */ public int[] getStackSpan() { int[] result = new int[stockData.length]; for (int i = 0; i < stockData.length; i++) { result[i] = 1; for (int j = i - 1; j > 0; j--) { if (stockData[i] > stockData[j]) result[i]++; } } return result; } /** * TESTED * * @return */ public int[] getStackSpanOptimal() { int[] result = new int[stockData.length]; result[0] = 1; // store indexes Stack<Integer> stack = new StackListImplementation<>(false); stack.push(0); for (int i = 1; i < stockData.length; i++) { // pop as long as top element is lesser. while (!stack.isEmpty() && stockData[stack.peek().intValue()] <= stockData[i]) { stack.pop(); } // if stack is empty , current stock price is greater than all // before it , else index difference between current and index of // greater element at top of stack result[i] = (stack.isEmpty()) ? (i + 1) : (i - stack.peek()); stack.push(i); } return result; } /** * * @param args */ public static void main(String[] args) { StockSpanProblem stockSpan = new StockSpanProblem(new int[] { 100, 80, 60, 70, 60, 75, 85 }); int[] result = stockSpan.getStackSpanOptimal(); MyUtil.printArrayInt(result); } }
thekant/myCodeRepo
src/com/kant/datastructure/stacks/StockSpanProblem.java
Java
mit
2,329
static void cnrom_switchchr(int bank) { int size = 8192; backend_read(romfn, 16 + (16384 * header.prgromsize) + (bank * size), size, ppu_memory); } static void cnrom_access(unsigned int address, unsigned char data) { if (address > 0x7fff && address < 0x10000) cnrom_switchchr(data & (header.chrromsize - 1)); } static void cnrom_reset() { }
jezze/nes
cnrom.c
C
mit
370
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using CommonCache.Test.Common; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace CommonCache.Test.Unit.Utils { public class CacheTestExecutor { private readonly IEnumerable<LabUserData> _labUsers; private readonly CacheStorageType _cacheStorageType; public CacheTestExecutor( IEnumerable<LabUserData> labUsers, CacheStorageType cacheStorageType) { _labUsers = labUsers; _cacheStorageType = cacheStorageType; } public async Task ExecuteAsync( CacheProgramType firstProgram, CacheProgramType secondProgram, CancellationToken cancellationToken) { Console.WriteLine($"Running {firstProgram} -> {secondProgram}..."); CommonCacheTestUtils.DeleteAllTestCaches(); CommonCacheTestUtils.EnsureCacheFileDirectoryExists(); await ExecuteCacheProgramAsync(firstProgram, true, cancellationToken).ConfigureAwait(false); await ExecuteCacheProgramAsync(secondProgram, false, cancellationToken).ConfigureAwait(false); PrintCacheInfo(); } private async Task ExecuteCacheProgramAsync(CacheProgramType cacheProgramType, bool isFirst, CancellationToken cancellationToken) { var cacheProgramFirst = CacheProgramFactory.CreateCacheProgram(cacheProgramType, _cacheStorageType); var results = await cacheProgramFirst.ExecuteAsync(_labUsers, cancellationToken).ConfigureAwait(false); Console.WriteLine(); Console.WriteLine("------------------------------------"); if (isFirst) { Console.WriteLine($"First Results: {cacheProgramType}"); } else { Console.WriteLine($"Second Results: {cacheProgramType}"); } Console.WriteLine("stdout:"); Console.WriteLine(results.StdOut); Console.WriteLine(); Console.WriteLine("stderr:"); Console.WriteLine(results.StdErr); Console.WriteLine("------------------------------------"); Assert.IsFalse(results.ExecutionResults.IsError, $"{cacheProgramType} should not fail: {results.ExecutionResults.ErrorMessage}"); Assert.IsFalse(results.ProcessExecutionFailed, $"{cacheProgramFirst.ExecutablePath} should not fail"); foreach (var upnResult in results.ExecutionResults.Results) { if (isFirst) { Assert.IsFalse(upnResult.IsAuthResultFromCache, $"{upnResult.LabUserUpn} --> First result should not be from the cache"); } else { Assert.IsTrue(upnResult.IsAuthResultFromCache, $"{upnResult.LabUserUpn} --> Second result should be from the cache"); } Assert.AreEqual(upnResult?.LabUserUpn?.ToLowerInvariant(), upnResult?.AuthResultUpn?.ToLowerInvariant()); } } private static void PrintCacheInfo() { if (File.Exists(CommonCacheTestUtils.AdalV3CacheFilePath)) { Console.WriteLine($"Adal Cache Exists at: {CommonCacheTestUtils.AdalV3CacheFilePath}"); Console.WriteLine("Adal Cache Size: " + Convert.ToInt32(new FileInfo(CommonCacheTestUtils.AdalV3CacheFilePath).Length)); } else { Console.WriteLine($"Adal Cache DOES NOT EXIST at: {CommonCacheTestUtils.AdalV3CacheFilePath}"); } if (File.Exists(CommonCacheTestUtils.MsalV2CacheFilePath)) { Console.WriteLine($"MSAL V2 Cache Exists at: {CommonCacheTestUtils.MsalV2CacheFilePath}"); Console.WriteLine("MSAL V2 Cache Size: " + Convert.ToInt32(new FileInfo(CommonCacheTestUtils.MsalV2CacheFilePath).Length)); } else { Console.WriteLine($"MSAL V2 Cache DOES NOT EXIST at: {CommonCacheTestUtils.MsalV2CacheFilePath}"); } if (File.Exists(CommonCacheTestUtils.MsalV3CacheFilePath)) { Console.WriteLine($"MSAL V3 Cache Exists at: {CommonCacheTestUtils.MsalV3CacheFilePath}"); Console.WriteLine("MSAL V3 Cache Size: " + Convert.ToInt32(new FileInfo(CommonCacheTestUtils.MsalV3CacheFilePath).Length)); } else { Console.WriteLine($"MSAL V3 Cache DOES NOT EXIST at: {CommonCacheTestUtils.MsalV3CacheFilePath}"); } } } }
AzureAD/microsoft-authentication-library-for-dotnet
tests/CacheCompat/CommonCache.Test.Unit/Utils/CacheTestExecutor.cs
C#
mit
4,930
<?php namespace Eggbe\Helper; use \Eggbe\Helper\Abstractions\AHelper; class Hash extends AHelper { /** * @param int $length * @return string * @throws \Exception */ public final static function solt($length){ if ((int)$length > 62){ throw new \Exception('Max solt length can not be more that 62 characters!'); } return substr(str_shuffle(implode(array_merge(range('a', 'z'), range('A', 'Z'), range('0', '9')))), 0, $length); } /** * @const int */ const HASH_TYPE_MD5 = 1; /** * @param int $type * @param string $value * @return bool * @throws \Exception */ public final static function make($type, $value){ switch((int)$type){ case self::HASH_TYPE_MD5: return md5(implode(Arr::simplify(array_slice(func_get_args(), 1)))); } throw new \Exception('Unknown validation type "' . $type . '"!'); } /** * @param string $value * @param int $type * @return bool * @throws \Exception */ public final static function validate($value, $type){ switch((int)$type){ case self::HASH_TYPE_MD5: return strlen(($value = strtolower(trim($value)))) == 32 && ctype_xdigit($value); } throw new \Exception('Unknown validation type "' . $type . '"!'); } }
eggbe/helpers
src/Hash.php
PHP
mit
1,219
//****************************************************************************************************** // FrequencyValue.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE file distributed with this work for additional information regarding copyright ownership. // The GPA licenses this file to you under the MIT License (MIT), 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/MIT // // Unless agreed to in writing, the subject software distributed under the License is distributed on an // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the // License for the specific language governing permissions and limitations. // // Code Modification History: // ---------------------------------------------------------------------------------------------------- // 11/12/2004 - J. Ritchie Carroll // Generated original version of source code. // 09/15/2009 - Stephen C. Wills // Added new header and license agreement. // 12/17/2012 - Starlynn Danyelle Gilliam // Modified Header. // //****************************************************************************************************** using System; using System.Runtime.Serialization; namespace GSF.PhasorProtocols.BPAPDCstream { /// <summary> /// Represents the BPA PDCstream implementation of a <see cref="IFrequencyValue"/>. /// </summary> [Serializable] public class FrequencyValue : FrequencyValueBase { #region [ Constructors ] /// <summary> /// Creates a new <see cref="FrequencyValue"/>. /// </summary> /// <param name="parent">The <see cref="IDataCell"/> parent of this <see cref="FrequencyValue"/>.</param> /// <param name="frequencyDefinition">The <see cref="IFrequencyDefinition"/> associated with this <see cref="FrequencyValue"/>.</param> public FrequencyValue(IDataCell parent, IFrequencyDefinition frequencyDefinition) : base(parent, frequencyDefinition) { } /// <summary> /// Creates a new <see cref="FrequencyValue"/> from specified parameters. /// </summary> /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="FrequencyValue"/>.</param> /// <param name="frequencyDefinition">The <see cref="FrequencyDefinition"/> associated with this <see cref="FrequencyValue"/>.</param> /// <param name="frequency">The floating point value that represents this <see cref="FrequencyValue"/>.</param> /// <param name="dfdt">The floating point value that represents the change in this <see cref="FrequencyValue"/> over time.</param> public FrequencyValue(DataCell parent, FrequencyDefinition frequencyDefinition, double frequency, double dfdt) : base(parent, frequencyDefinition, frequency, dfdt) { } /// <summary> /// Creates a new <see cref="FrequencyValue"/> from serialization parameters. /// </summary> /// <param name="info">The <see cref="SerializationInfo"/> with populated with data.</param> /// <param name="context">The source <see cref="StreamingContext"/> for this deserialization.</param> protected FrequencyValue(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion #region [ Properties ] /// <summary> /// Gets or sets the <see cref="DataCell"/> parent of this <see cref="FrequencyValue"/>. /// </summary> public new virtual DataCell Parent { get => base.Parent as DataCell; set => base.Parent = value; } /// <summary> /// Gets or sets the <see cref="FrequencyDefinition"/> associated with this <see cref="FrequencyValue"/>. /// </summary> public new virtual FrequencyDefinition Definition { get => base.Definition as FrequencyDefinition; set => base.Definition = value; } /// <summary> /// Gets the length of the <see cref="BodyImage"/>. /// </summary> /// <remarks> /// The base implementation assumes fixed integer values are represented as 16-bit signed /// integers and floating point values are represented as 32-bit single-precision floating-point /// values (i.e., short and float data types respectively). /// </remarks> protected override int BodyLength => Definition.Parent.IsPdcBlockSection ? 2 : base.BodyLength; // PMUs in PDC block do not include Df/Dt /// <summary> /// Gets the binary body image of the <see cref="FrequencyValue"/> object. /// </summary> protected override byte[] BodyImage { get { // PMUs in PDC block do not include Df/Dt if (!Definition.Parent.IsPdcBlockSection) return base.BodyImage; byte[] buffer = new byte[2]; BigEndian.CopyBytes((short)UnscaledFrequency, buffer, 0); return buffer; } } #endregion #region [ Methods ] /// <summary> /// Parses the binary body image. /// </summary> /// <param name="buffer">Binary image to parse.</param> /// <param name="startIndex">Start index into <paramref name="buffer"/> to begin parsing.</param> /// <param name="length">Length of valid data within <paramref name="buffer"/>.</param> /// <returns>The length of the data that was parsed.</returns> protected override int ParseBodyImage(byte[] buffer, int startIndex, int length) { // PMUs in PDC block do not include Df/Dt if (Definition.Parent.IsPdcBlockSection) { UnscaledFrequency = BigEndian.ToInt16(buffer, startIndex); return 2; } return base.ParseBodyImage(buffer, startIndex, length); } #endregion #region [ Static ] // Static Methods // Calculates binary length of a frequency value based on its definition internal static uint CalculateBinaryLength(IFrequencyDefinition definition) { // The frequency definition will determine the binary length based on data format return (uint)new FrequencyValue(null, definition).BinaryLength; } // Delegate handler to create a new BPA PDCstream frequency value internal static IFrequencyValue CreateNewValue(IDataCell parent, IFrequencyDefinition definition, byte[] buffer, int startIndex, out int parsedLength) { IFrequencyValue frequency = new FrequencyValue(parent, definition); parsedLength = frequency.ParseBinaryImage(buffer, startIndex, 0); return frequency; } #endregion } }
GridProtectionAlliance/gsf
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/FrequencyValue.cs
C#
mit
7,224
<ul class="context_menu"> <li><a href="?module=menu">Retour aux menus</a></li> </ul> <form action="?module=menu&action=edit" method="post"> <input type="hidden" name="menuId" value="<?php echo $menu->getId(); ?>" /> <label class="mandatory">Titre</label> <input type="text" name="title" value="<?php echo stripslashes($menu->getTitle()); ?>" /> <label>Commentaire</label> <textarea name="comment"><?php echo stripslashes($menu->getComment()); ?></textarea> <button type="submit">Modifier</button> </form>
fabienInizan/menuPlugin
templates/admin/menu/displayEditForm.php
PHP
mit
516
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fourcolor: 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 / extra-dev</a></li> <li class="active"><a href="">dev / fourcolor - 1.2.1</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fourcolor <small> 1.2.1 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-29 01:31:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-29 01:31:58 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq dev Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocaml-secondary-compiler 4.08.1-1 OCaml 4.08.1 Secondary Switch Compiler ocamlfind 1.9.1 A library manager for OCaml ocamlfind-secondary 1.9.1 Adds support for ocaml-secondary-compiler to ocamlfind zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Mathematical Components &lt;[email protected]&gt;&quot; homepage: &quot;https://math-comp.github.io/math-comp/&quot; bug-reports: &quot;Mathematical Components &lt;[email protected]&gt;&quot; dev-repo: &quot;git+https://github.com/math-comp/fourcolor&quot; license: &quot;CeCILL-B&quot; build: [ make &quot;-j&quot; &quot;%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;coq-mathcomp-algebra&quot; { &gt;= &quot;1.10.0&quot; &amp; &lt; &quot;1.11&quot; } ] tags: [ &quot;keyword:Four color theorem&quot; &quot;keyword:small scale reflection&quot; &quot;keyword:mathematical components&quot; ] authors: [ &quot;Georges Gonthier&quot; ] synopsis: &quot;Mechanization of the Four Color Theorem&quot; description: &quot;&quot;&quot; Proof of the Four Color Theorem This library contains a formalized proof of the Four Color Theorem, along with the theories needed to support stating and then proving the Theorem. This includes an axiomatization of the setoid of classical real numbers, basic plane topology definitions, and a theory of combinatorial hypermaps. &quot;&quot;&quot; url { src: &quot;https://github.com/math-comp/fourcolor/archive/v1.2.1.tar.gz&quot; checksum: &quot;sha256=7bed7a08f388d7f0910d39593dc7e1dcb4fd30af76cba01d11502db713393281&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-fourcolor.1.2.1 coq.dev</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is dev). The following dependencies couldn&#39;t be met: - coq-fourcolor -&gt; coq-mathcomp-algebra &lt; 1.11 -&gt; coq-mathcomp-fingroup &lt; 1.11+beta1 -&gt; coq-mathcomp-ssreflect &lt; 1.11+beta1 -&gt; coq &lt; 8.12~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) 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-fourcolor.1.2.1</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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.07.1-2.0.6/extra-dev/dev/fourcolor/1.2.1.html
HTML
mit
7,527
import { Component } from 'react'; import Router from 'next/router'; import io from 'socket.io-client'; import fetch from 'isomorphic-fetch'; import Page from '../../layouts/page.js'; import Slide from '../../components/slide.js'; import Code from '../../components/code.js' import Emojis from '../../components/emojis.js'; import SlideNavigation from '../../components/slidenavigation.js'; import { Title, Headline, Enum, Column } from '../../components/text.js'; import withRedux from 'next-redux-wrapper'; import { makeStore, _changeRole } from '../../components/store.js'; class SlideFour extends Component { constructor(props) { super(props); this.props = props; this.state = { socket: undefined }; this.emojiModule = this.emojiModule.bind(this); this.navModule = this.navModule.bind(this); } static async getInitialProps({ isServer }) { let host = 'http://localhost:3000'; if (!isServer) host = `${location.protocol}//${location.host}`; const response = await fetch(`${host}/static/html_template.txt`); const htmlCode = await response.text(); return { htmlCode }; } componentDidMount() { // socket if (!this.state.socket) { const socket = io(`${location.protocol}//${location.host}/`); socket.on('viewer-update', data => { if (this.props.role === 'VIEWER') { Router.replace(data.url); } }); this.setState(state => ( {socket: socket} )); } } componentWillUnmount() { if (this.state.socket) this.state.socket.close(); } emojiModule() { if (this.state.socket) { return ( <Emojis socket={this.state.socket} /> ); } } navModule() { if (this.state.socket && this.props.role) { return ( <SlideNavigation role={this.props.role} socket={this.state.socket} prev="/slides/0x04_y_tho" next="/slides/0x06_include" /> ); } } render() { return ( <Page> <Slide> <Title>0x05_call_by_reference</Title> <Headline>Anwendung im Browser</Headline> <Column> <Enum>JavaScript kann direkt im { '<script>-Tag' } geschrieben werden</Enum> <Enum>oder als externe Datei durch das src-Attribut eingebunden werden</Enum> </Column> <Column> <Code language='html'>{ this.props.htmlCode }</Code> </Column> { this.navModule() } </Slide> { this.emojiModule() } </Page> ); } }; const mapStateToProps = state => ({ role: state.role }); const mapDispatchToProps = dipatch => ({ changeRole: role => (dispatch(_changeRole(role))) }); export default withRedux(makeStore, mapStateToProps, mapDispatchToProps)(SlideFour);
AndyBitz/dme11a-js-presentation
pages/slides/0x05_call_by_reference.js
JavaScript
mit
2,834
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("Examlpe")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Examlpe")] [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("0a3acc12-4731-41d0-9c54-8985a348bf4d")] // 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")]
msotiroff/Programming-FUNDAMENTALS
Practice/Lists/EqualSumAfterExtraction/Examlpe/Properties/AssemblyInfo.cs
C#
mit
1,390
![preview Long Haul](/preview.jpg) Long Haul is a minimal jekyll theme built with SASS / GULP / BROWSERSYNC / AUTOPREFIXER and focuses on long form blog posts. It is meant to be used as a starting point for a jekyll blog/website. If you really enjoy Long Haul and want to give me credit somewhere on the internet send or tweet out your experience with Long Haul and tag me [@brianmaierjr](https://twitter.com/brianmaierjr). #### [View Demo](http://brianmaierjr.com/long-haul) ## Features - Minimal, Type Focused Design - Built with GULP + SASS + BROWSERSYNC + AUTOPREFIXER - SVG Social Icons - Responsive Nav Menu - XML Feed for RSS Readers - Contact Form via Formspree - 5 Post Loop with excerpt on Home Page - Previous / Next Post Navigation - Estimated Reading Time for posts - Stylish Drop Cap on posts - A Better Type Scale for all devices - Comments powered by Disqus ## Setup 1. [Install Jekyll](http://jekyllrb.com) 2. Fork the [Long Haul repo](http://github.com/brianmaierjr/long-haul) 3. Clone it 4. [Install Bundler](http://bundler.io/) 5. Run `bundle install` 6. Install gulp dependencies by running `npm install` 7. Run Jekyll and watch files by running `bundle exec gulp` 8. Customize and watch the magic happen! ## Site Settings The main settings can be found inside the `_config.yml` file: - **title:** title of your site - **description:** description of your site - **url:** your url - **paginate:** the amount of posts displayed on homepage - **navigation:** these are the links in the main site navigation - **social** diverse social media usernames (optional) - **google_analytics** Google Analytics key (optional) ## License This is [MIT](LICENSE) with no added caveats, so feel free to use this Jekyll theme on your site without linking back to me or using a disclaimer.
ericluwj/ericluwj.github.io
README.md
Markdown
mit
1,805
/* eslint-disable promise/always-return */ import { runAuthenticatedQuery } from "schema/v2/test/utils" import gql from "lib/gql" describe("Me", () => { describe("ShowsByFollowedArtists", () => { it("returns shows by followed artists", async () => { const query = gql` { me { showsByFollowedArtists( first: 100 sort: NAME_ASC status: UPCOMING ) { totalCount edges { node { name } } } } } ` const expectedConnectionData = { totalCount: 2, edges: [ { node: { name: "Show 1", }, }, { node: { name: "Show 2", }, }, ], } const followedArtistsShowsLoader = jest.fn(async () => ({ headers: { "x-total-count": 2 }, body: [ { name: "Show 1", }, { name: "Show 2", }, ], })) const context = { meLoader: () => Promise.resolve({}), followedArtistsShowsLoader, } const { me: { showsByFollowedArtists }, } = await runAuthenticatedQuery(query, context) expect(showsByFollowedArtists).toEqual(expectedConnectionData) expect(followedArtistsShowsLoader).toHaveBeenCalledWith({ offset: 0, size: 100, sort: "name", status: "upcoming", total_count: true, }) }) }) })
artsy/metaphysics
src/schema/v2/me/__tests__/showsByFollowedArtists.test.ts
TypeScript
mit
1,640
<?php namespace scriptorium\UserBundle\Entity; use FOS\UserBundle\Entity\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\Security\Core\Util\SecureRandom; /** * @ORM\Entity * @ORM\Table(name="fos_user") */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\Column(name="registration_date", type="datetime") */ protected $registrationDate; /** * @ORM\Column(name="edition_date", type="datetime") */ protected $editionDate; /** * @Assert\File(maxSize="2048k") * @Assert\Image(mimeTypesMessage="Please upload a valid image.") */ protected $profilePictureFile; // for temporary storage private $tempProfilePicturePath; /** * @ORM\Column(type="string", length=255, nullable=true) */ protected $profilePicturePath; public function __construct() { parent::__construct(); // default registration date $this->registrationDate = new \DateTime(); // default edition date $this->editionDate = new \DateTime(); } /** * Get id * @return integer */ public function getId() { return $this->id; } /** * Get registration date * @return DateTime */ public function getRegistrationDate() { return $this->registrationDate; } /** * Set registration date * @param $date DateTime The registration date */ public function setRegistrationDate($date) { $this->registrationDate = $date; } /** * Get edition date * @return DateTime */ public function getEditionDate() { return $this->editionDate; } /** * Set edition date * @param $date DateTime The edition date */ public function setEditionDate($date) { $this->registrationDate = $date; } /** * Set registrationDate * @param $date DateTime The registration date */ public function setEditionDateNow() { $this->setEditionDate(new \DateTime()); } /** * Sets the file used for profile picture uploads * * @param UploadedFile $file * @return object */ public function setProfilePictureFile(UploadedFile $file = null) { // set the value of the holder $this->profilePictureFile = $file; // check if we have an old image path if (isset($this->profilePicturePath)) { // store the old name to delete after the update $this->tempProfilePicturePath = $this->profilePicturePath; $this->profilePicturePath = null; } else { $this->profilePicturePath = 'initial'; } return $this; } /** * Get the file used for profile picture uploads * * @return UploadedFile */ public function getProfilePictureFile() { return $this->profilePictureFile; } /** * Set profilePicturePath * * @param string $profilePicturePath * @return User */ public function setProfilePicturePath($profilePicturePath) { $this->profilePicturePath = $profilePicturePath; return $this; } /** * Get profilePicturePath * * @return string */ public function getProfilePicturePath() { return $this->profilePicturePath; } /** * Get the absolute path of the profilePicturePath */ public function getProfilePictureAbsolutePath() { return null === $this->profilePicturePath ? null : $this->getUploadRootDir().'/'.$this->profilePicturePath; } /** * Get root directory for file uploads * * @return string */ protected function getUploadRootDir($type='profilePicture') { // the absolute directory path where uploaded // documents should be saved return __DIR__.'/../../../../web/'.$this->getUploadDir($type); } /** * Specifies where in the /web directory profile pic uploads are stored * * @return string */ protected function getUploadDir($type='profilePicture') { // the type param is to change these methods at a later date for more file uploads // get rid of the __DIR__ so it doesn't screw up // when displaying uploaded doc/image in the view. return 'uploads/user/profilepics'; } /** * Get the web path for the user * * @return string */ public function getWebProfilePicturePath() { return '/'.$this->getUploadDir().'/'.$this->getProfilePicturePath(); } /** * @ORM\PrePersist() * @ORM\PreUpdate() */ public function preUploadProfilePicture() { if (null !== $this->getProfilePictureFile()) { // a file was uploaded // generate a unique filename $filename = $this->generateRandomProfilePictureFilename(); $this->setProfilePicturePath($filename.'.'.$this->getProfilePictureFile()->guessExtension()); } } /** * Generates a 32 char long random filename * * @return string */ public function generateRandomProfilePictureFilename() { $count = 0; do { $generator = new SecureRandom(); $random = $generator->nextBytes(16); $randomString = bin2hex($random); $count++; } while (file_exists($this->getUploadRootDir().'/'.$randomString.'.'.$this->getProfilePictureFile()->guessExtension()) && $count < 50); return $randomString; } /** * @ORM\PostPersist() * @ORM\PostUpdate() * * Upload the profile picture * * @return mixed */ public function uploadProfilePicture() { // check there is a profile pic to upload if ($this->getProfilePictureFile() === null) { return; } // if there is an error when moving the file, an exception will // be automatically thrown by move(). This will properly prevent // the entity from being persisted to the database on error $this->getProfilePictureFile()->move($this->getUploadRootDir(), $this->getProfilePicturePath()); // check if we have an old image if (isset($this->tempProfilePicturePath) && file_exists($this->getUploadRootDir().'/'.$this->tempProfilePicturePath)) { // delete the old image unlink($this->getUploadRootDir().'/'.$this->tempProfilePicturePath); // clear the temp image path $this->tempProfilePicturePath = null; } $this->profilePictureFile = null; } /** * @ORM\PostRemove() */ public function removeProfilePictureFile() { if ($file = $this->getProfilePictureAbsolutePath() && file_exists($this->getProfilePictureAbsolutePath())) { unlink($file); } } }
Komrod/UserScriptorium
src/scriptorium/UserBundle/Entity/User.php
PHP
mit
7,423
/* Copyright (c) 2015 Mathias Panzenböck * * 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. */ #include "au.h" struct au_header { uint32_t magic; uint32_t data_offset; uint32_t data_size; uint32_t encoding; uint32_t sample_rate; uint32_t channels; }; int au_isfile(const uint8_t *data, size_t input_len, size_t *lengthptr) { if (input_len < AU_HEADER_SIZE || MAGIC(data) != AU_MAGIC) return 0; const struct au_header *header = (const struct au_header *)data; size_t data_offset = be32toh(header->data_offset); size_t data_size = be32toh(header->data_size); uint32_t encoding = be32toh(header->encoding); uint32_t channels = be32toh(header->channels); if (data_offset % 8 != 0 || encoding < 1 || encoding > 27 || channels == 0 || data_size == 0 || data_size == 0xffffffff) return 0; if (SIZE_MAX - data_offset < data_size) return 0; size_t length = data_offset + data_size; // I'm pretty sure it's a truncated AU file when this happens if (length > input_len) length = input_len; if (lengthptr) *lengthptr = length; return 1; }
panzi/mediaextract
src/au.c
C
mit
2,119
package com.jasonlam604.stocktechnicals.indicators; import com.jasonlam604.stocktechnicals.util.NumberFormatter; /** * Moving Average Convergence/Divergence Oscillator */ public class MovingAverageConvergenceDivergence { private static final int CROSSOVER_NONE = 0; private static final int CROSSOVER_POSITIVE = 1; private static final int CROSSOVER_NEGATIVE = -1; private double[] prices; private double[] macd; private double[] signal; private double[] diff; private int[] crossover; public MovingAverageConvergenceDivergence calculate(double[] prices, int fastPeriod, int slowPeriod, int signalPeriod) throws Exception { this.prices = prices; this.macd = new double[prices.length]; this.signal = new double[prices.length]; this.diff = new double[prices.length]; this.crossover = new int[prices.length]; ExponentialMovingAverage emaShort = new ExponentialMovingAverage(); emaShort.calculate(prices, fastPeriod).getEMA(); ExponentialMovingAverage emaLong = new ExponentialMovingAverage(); emaLong.calculate(prices, slowPeriod).getEMA(); for (int i = slowPeriod - 1; i < this.prices.length; i++) { this.macd[i] = NumberFormatter.round(emaShort.getEMA()[i] - emaLong.getEMA()[i]); } ExponentialMovingAverage signalEma = new ExponentialMovingAverage(); this.signal = signalEma.calculate(this.macd, signalPeriod).getEMA(); for (int i = 0; i < this.macd.length; i++) { this.diff[i] = this.macd[i] - this.signal[i]; if (this.diff[i] > 0 && this.diff[i - 1] < 0) { this.crossover[i] = MovingAverageConvergenceDivergence.CROSSOVER_POSITIVE; } else if (this.diff[i] < 0 && this.diff[i - 1] > 0) { this.crossover[i] = MovingAverageConvergenceDivergence.CROSSOVER_NEGATIVE; } else { this.crossover[i] = MovingAverageConvergenceDivergence.CROSSOVER_NONE; } } return this; } public double[] getMACD() { return this.macd; } public double[] getSignal() { return this.signal; } public double[] getDiff() { return this.diff; } public int[] getCrossover() { return this.crossover; } @Override public String toString() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < this.prices.length; i++) { sb.append(String.format("%02.2f", this.prices[i])); sb.append(" "); sb.append(String.format("%02.2f", this.macd[i])); sb.append(" "); sb.append(String.format("%02.2f", this.signal[i])); sb.append(" "); sb.append(String.format("%02.2f", this.diff[i])); sb.append(" "); sb.append(String.format("%d", this.crossover[i])); sb.append(" "); sb.append("\n"); } return sb.toString(); } }
jasonlam604/StockTechnicals
src/com/jasonlam604/stocktechnicals/indicators/MovingAverageConvergenceDivergence.java
Java
mit
2,631
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd 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. ----------------------------------------------------------------------------- */ #include "OgreGLES2Prerequisites.h" #include "OgreGpuProgram.h" #include "OgreHighLevelGpuProgramManager.h" #include "OgreLogManager.h" #include "OgreRoot.h" #include "OgreStringConverter.h" #include "OgreGLUtil.h" #include "OgreGLES2RenderSystem.h" #include "OgreGLES2Support.h" #include "OgreGLSLESProgram.h" #include "OgreGLSLESProgramManager.h" #include "OgreGLSLPreprocessor.h" namespace Ogre { //----------------------------------------------------------------------- #if !OGRE_NO_GLES2_GLSL_OPTIMISER GLSLESProgram::CmdOptimisation GLSLESProgram::msCmdOptimisation; #endif //----------------------------------------------------------------------- //----------------------------------------------------------------------- GLSLESProgram::GLSLESProgram(ResourceManager* creator, const String& name, ResourceHandle handle, const String& group, bool isManual, ManualResourceLoader* loader) : GLSLShaderCommon(creator, name, handle, group, isManual, loader) , mGLShaderHandle(0) , mGLProgramHandle(0) #if !OGRE_NO_GLES2_GLSL_OPTIMISER , mIsOptimised(false) , mOptimiserEnabled(false) #endif { if (createParamDictionary("GLSLESProgram")) { setupBaseParamDictionary(); ParamDictionary* dict = getParamDictionary(); dict->addParameter(ParameterDef("preprocessor_defines", "Preprocessor defines use to compile the program.", PT_STRING),&msCmdPreprocessorDefines); #if !OGRE_NO_GLES2_GLSL_OPTIMISER dict->addParameter(ParameterDef("use_optimiser", "Should the GLSL optimiser be used. Default is false.", PT_BOOL),&msCmdOptimisation); #endif } // Manually assign language now since we use it immediately mSyntaxCode = "glsles"; // There is nothing to load mLoadFromFile = false; } //--------------------------------------------------------------------------- GLSLESProgram::~GLSLESProgram() { // Have to call this here reather than in Resource destructor // since calling virtual methods in base destructors causes crash if (isLoaded()) { unload(); } else { unloadHighLevel(); } } //--------------------------------------------------------------------------- #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID || OGRE_PLATFORM == OGRE_PLATFORM_EMSCRIPTEN void GLSLESProgram::notifyOnContextLost() { unloadHighLevelImpl(); } #endif GLuint GLSLESProgram::createGLProgramHandle() { if(!Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_SEPARATE_SHADER_OBJECTS)) return 0; if (mGLProgramHandle) return mGLProgramHandle; OGRE_CHECK_GL_ERROR(mGLProgramHandle = glCreateProgram()); if(Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_DEBUG)) { glLabelObjectEXT(GL_PROGRAM_OBJECT_EXT, mGLProgramHandle, 0, mName.c_str()); } return mGLProgramHandle; } bool GLSLESProgram::compile(bool checkErrors) { if (mCompiled == 1) { return true; } // Only create a shader object if glsl es is supported if (isSupported()) { // Create shader object GLenum shaderType = 0x0000; if (mType == GPT_VERTEX_PROGRAM) { shaderType = GL_VERTEX_SHADER; } else if (mType == GPT_FRAGMENT_PROGRAM) { shaderType = GL_FRAGMENT_SHADER; } OGRE_CHECK_GL_ERROR(mGLShaderHandle = glCreateShader(shaderType)); if(Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_DEBUG)) { glLabelObjectEXT(GL_SHADER_OBJECT_EXT, mGLShaderHandle, 0, mName.c_str()); } createGLProgramHandle(); } // Add preprocessor extras and main source if (!mSource.empty()) { const RenderSystemCapabilities* caps = Root::getSingleton().getRenderSystem()->getCapabilities(); // Fix up the source in case someone forgot to redeclare gl_Position if (caps->hasCapability(RSC_GLSL_SSO_REDECLARE) && mType == GPT_VERTEX_PROGRAM) { size_t versionPos = mSource.find("#version"); int shaderVersion = StringConverter::parseInt(mSource.substr(versionPos+9, 3)); size_t belowVersionPos = mSource.find('\n', versionPos) + 1; if(shaderVersion >= 300) { // Check that it's missing and that this shader has a main function, ie. not a child shader. if(mSource.find("out highp vec4 gl_Position") == String::npos) { mSource.insert(belowVersionPos, "out highp vec4 gl_Position;\nout highp float gl_PointSize;\n"); } if(mSource.find("#extension GL_EXT_separate_shader_objects : require") == String::npos) { mSource.insert(belowVersionPos, "#extension GL_EXT_separate_shader_objects : require\n"); } } } #if !OGRE_NO_GLES2_GLSL_OPTIMISER const char *source = (getOptimiserEnabled() && getIsOptimised()) ? mOptimisedSource.c_str() : mSource.c_str(); #else const char *source = mSource.c_str(); #endif OGRE_CHECK_GL_ERROR(glShaderSource(mGLShaderHandle, 1, &source, NULL)); } if (checkErrors) GLSLES::logObjectInfo("GLSL ES compiling: " + mName, mGLShaderHandle); OGRE_CHECK_GL_ERROR(glCompileShader(mGLShaderHandle)); // Check for compile errors OGRE_CHECK_GL_ERROR(glGetShaderiv(mGLShaderHandle, GL_COMPILE_STATUS, &mCompiled)); if(!mCompiled && checkErrors) { String message = GLSLES::logObjectInfo("GLSL ES compile log: " + mName, mGLShaderHandle); checkAndFixInvalidDefaultPrecisionError(message); } // Log a message that the shader compiled successfully. if (mCompiled && checkErrors) GLSLES::logObjectInfo("GLSL ES compiled: " + mName, mGLShaderHandle); return (mCompiled == 1); } #if !OGRE_NO_GLES2_GLSL_OPTIMISER //----------------------------------------------------------------------- void GLSLESProgram::setOptimiserEnabled(bool enabled) { if(mOptimiserEnabled != enabled && mOptimiserEnabled && mCompiled == 1) { OGRE_CHECK_GL_ERROR(glDeleteShader(mGLShaderHandle)); if(Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_SEPARATE_SHADER_OBJECTS)) { OGRE_CHECK_GL_ERROR(glDeleteProgram(mGLProgramHandle)); } mGLShaderHandle = 0; mGLProgramHandle = 0; mCompiled = 0; } mOptimiserEnabled = enabled; } #endif //----------------------------------------------------------------------- void GLSLESProgram::createLowLevelImpl(void) { } //----------------------------------------------------------------------- void GLSLESProgram::unloadHighLevelImpl(void) { if (isSupported()) { // LogManager::getSingleton().logMessage("Deleting shader " + StringConverter::toString(mGLShaderHandle) + // " and program " + StringConverter::toString(mGLProgramHandle)); OGRE_CHECK_GL_ERROR(glDeleteShader(mGLShaderHandle)); if(Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_SEPARATE_SHADER_OBJECTS)) { OGRE_CHECK_GL_ERROR(glDeleteProgram(mGLProgramHandle)); } // destroy all programs using this shader GLSLESProgramManager::getSingletonPtr()->destroyAllByShader(this); mGLShaderHandle = 0; mGLProgramHandle = 0; mCompiled = 0; mLinked = 0; } } //----------------------------------------------------------------------- void GLSLESProgram::buildConstantDefinitions() const { // We need an accurate list of all the uniforms in the shader, but we // can't get at them until we link all the shaders into a program object. // Therefore instead, parse the source code manually and extract the uniforms createParameterMappingStructures(true); GLSLESProgramManager::getSingleton().extractUniformsFromGLSL(mSource, *mConstantDefs, mName); } //----------------------------------------------------------------------- #if !OGRE_NO_GLES2_GLSL_OPTIMISER String GLSLESProgram::CmdOptimisation::doGet(const void *target) const { return StringConverter::toString(static_cast<const GLSLESProgram*>(target)->getOptimiserEnabled()); } void GLSLESProgram::CmdOptimisation::doSet(void *target, const String& val) { static_cast<GLSLESProgram*>(target)->setOptimiserEnabled(StringConverter::parseBool(val)); } #endif //----------------------------------------------------------------------- void GLSLESProgram::attachToProgramObject( const GLuint programObject ) { // LogManager::getSingleton().logMessage("Attaching shader " + StringConverter::toString(mGLShaderHandle) + // " to program " + StringConverter::toString(programObject)); OGRE_CHECK_GL_ERROR(glAttachShader(programObject, mGLShaderHandle)); } //----------------------------------------------------------------------- void GLSLESProgram::detachFromProgramObject( const GLuint programObject ) { // LogManager::getSingleton().logMessage("Detaching shader " + StringConverter::toString(mGLShaderHandle) + // " to program " + StringConverter::toString(programObject)); OGRE_CHECK_GL_ERROR(glDetachShader(programObject, mGLShaderHandle)); } //----------------------------------------------------------------------- const String& GLSLESProgram::getLanguage(void) const { static const String language = "glsles"; return language; } //----------------------------------------------------------------------- Ogre::GpuProgramParametersSharedPtr GLSLESProgram::createParameters( void ) { GpuProgramParametersSharedPtr params = HighLevelGpuProgram::createParameters(); params->setTransposeMatrices(true); return params; } //----------------------------------------------------------------------- void GLSLESProgram::checkAndFixInvalidDefaultPrecisionError( String &message ) { String precisionQualifierErrorString = ": 'Default Precision Qualifier' : invalid type Type for default precision qualifier can be only float or int"; vector< String >::type linesOfSource = StringUtil::split(mSource, "\n"); if( message.find(precisionQualifierErrorString) != String::npos ) { LogManager::getSingleton().logMessage("Fixing invalid type Type for default precision qualifier by deleting bad lines the re-compiling"); // remove relevant lines from source vector< String >::type errors = StringUtil::split(message, "\n"); // going from the end so when we delete a line the numbers of the lines before will not change for(int i = static_cast<int>(errors.size()) - 1 ; i != -1 ; i--) { String & curError = errors[i]; size_t foundPos = curError.find(precisionQualifierErrorString); if(foundPos != String::npos) { String lineNumber = curError.substr(0, foundPos); size_t posOfStartOfNumber = lineNumber.find_last_of(':'); if (posOfStartOfNumber != String::npos) { lineNumber = lineNumber.substr(posOfStartOfNumber + 1, lineNumber.size() - (posOfStartOfNumber + 1)); if (StringConverter::isNumber(lineNumber)) { int iLineNumber = StringConverter::parseInt(lineNumber); linesOfSource.erase(linesOfSource.begin() + iLineNumber - 1); } } } } // rebuild source StringStream newSource; for(size_t i = 0; i < linesOfSource.size() ; i++) { newSource << linesOfSource[i] << "\n"; } mSource = newSource.str(); const char *source = mSource.c_str(); OGRE_CHECK_GL_ERROR(glShaderSource(mGLShaderHandle, 1, &source, NULL)); if (compile()) { LogManager::getSingleton().logMessage("The removing of the lines fixed the invalid type Type for default precision qualifier error."); } else { LogManager::getSingleton().logMessage("The removing of the lines didn't help."); } } } //----------------------------------------------------------------------------- void GLSLESProgram::bindProgram(void) { // Tell the Link Program Manager what shader is to become active switch (mType) { case GPT_VERTEX_PROGRAM: GLSLESProgramManager::getSingleton().setActiveVertexShader( this ); break; case GPT_FRAGMENT_PROGRAM: GLSLESProgramManager::getSingleton().setActiveFragmentShader( this ); break; case GPT_GEOMETRY_PROGRAM: default: break; } } //----------------------------------------------------------------------------- void GLSLESProgram::unbindProgram(void) { // Tell the Link Program Manager what shader is to become inactive if (mType == GPT_VERTEX_PROGRAM) { GLSLESProgramManager::getSingleton().setActiveVertexShader( NULL ); } else if (mType == GPT_FRAGMENT_PROGRAM) { GLSLESProgramManager::getSingleton().setActiveFragmentShader( NULL ); } } //----------------------------------------------------------------------------- void GLSLESProgram::bindProgramParameters(GpuProgramParametersSharedPtr params, uint16 mask) { // Link can throw exceptions, ignore them at this point try { // Activate the link program object GLSLESProgramCommon* linkProgram = GLSLESProgramManager::getSingleton().getActiveProgram(); // Pass on parameters from params to program object uniforms linkProgram->updateUniforms(params, mask, mType); } catch (Exception& e) {} } //----------------------------------------------------------------------------- void GLSLESProgram::bindProgramSharedParameters(GpuProgramParametersSharedPtr params, uint16 mask) { // Link can throw exceptions, ignore them at this point try { // Activate the link program object GLSLESProgramCommon* linkProgram = GLSLESProgramManager::getSingleton().getActiveProgram(); // Pass on parameters from params to program object uniforms linkProgram->updateUniformBlocks(params, mask, mType); } catch (Exception& e) {} } //----------------------------------------------------------------------------- void GLSLESProgram::bindProgramPassIterationParameters(GpuProgramParametersSharedPtr params) { // Activate the link program object GLSLESProgramCommon* linkProgram = GLSLESProgramManager::getSingleton().getActiveProgram(); // Pass on parameters from params to program object uniforms linkProgram->updatePassIterationUniforms( params ); } //----------------------------------------------------------------------------- size_t GLSLESProgram::calculateSize(void) const { size_t memSize = 0; // Delegate Names memSize += sizeof(GLuint); memSize += sizeof(GLenum); memSize += GpuProgram::calculateSize(); return memSize; } }
RealityFactory/ogre
RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgram.cpp
C++
mit
18,117
/* * 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 consolealiensgame; import alieninterfaces.*; import java.lang.reflect.Constructor; /** * * @author guberti */ public class AlienContainer { public final String alienPackageName; public final String alienClassName; public final Constructor<?> alienConstructor; private final Alien alien; private final AlienAPI api; int tech; int energy; boolean fought; public int x; public int y; public boolean action; // Whether the alien has performed an action this turn // Declare stats here // // Heads up: This constructs an AlienContainer and contained Alien // public AlienContainer(int x, int y, String alienPackageName, String alienClassName, Constructor<?> cns, int energy, int tech) { Alien a; this.alienPackageName = alienPackageName; this.alienClassName = alienClassName; this.alienConstructor = cns; this.energy = energy; this.tech = tech; this.api = new AlienAPI(this); // construct and initialize alien try { a = (Alien) cns.newInstance(); a.init(this.api); } catch (Throwable t) { a = null; t.printStackTrace(); } this.alien = a; } public void move(ViewImplementation view) throws NotEnoughTechException { // Whether the move goes off the board will be determined by the grid api.view = view; MoveDir direction = alien.getMove(); checkMove(direction); // Throws an exception if illegal x += direction.x(); y += direction.y(); } public void kill() { energy = Integer.MIN_VALUE; } public Action getAction(ViewImplementation view) throws NotEnoughEnergyException, UnknownActionException { api.view = view; Action action = alien.getAction(); switch (action.code) { case None: case Gain: return new Action (action.code); case Research: if (tech > energy) { // If the tech can't be researched due to lack of energy throw new NotEnoughEnergyException(); } // Otherwise return new Action (ActionCode.Research, tech); case Spawn: if (action.power + 3 > energy) { throw new NotEnoughEnergyException(); } return action; default: throw new UnknownActionException(); } } public int fight() throws NotEnoughEnergyException, NotEnoughTechException { int fightPower = 0; //alien.getFightPower(api); GM need to fix this up after reconciling fighting into Action // If the alien cannot fight with the amount of energy it wants // Throw the appropriate exception if (fightPower > energy) { throw new NotEnoughEnergyException(); } if (fightPower > tech) { throw new NotEnoughTechException(); } // If the move is valid, subtract the energy expended energy -= fightPower; // Return how much power the alien will fight with return fightPower; } private void checkMove(MoveDir direction) throws NotEnoughTechException { // If the move is farther than the alien has the tech to move if (Math.pow(direction.x(), 2) + Math.pow(direction.y(), 2) > Math.pow(tech, 2)) { throw new NotEnoughTechException(); } } } class NotEnoughEnergyException extends Exception {} class NotEnoughTechException extends Exception {} class UnknownActionException extends Exception {}
guberti/AliensGame
ConsoleAliensGame/src/consolealiensgame/AlienContainer.java
Java
mit
4,017
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100,700|Source Sans:400,300,100' rel='stylesheet' type='text/css'/> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <script src="dependencies/highstock.js" type="text/javascript" charset="utf-8"></script> <script src="dependencies/standalone-framework.js" type="text/javascript" charset="utf-8"></script> <script src="dependencies/highcharts-more.js" type="text/javascript" charset="utf-8"></script> <script src="dependencies/highcharts-3d.js" type="text/javascript" charset="utf-8"></script> <script src="dependencies/data.js" type="text/javascript" charset="utf-8"></script> <script src="dependencies/exporting.js"></script> <script src="dependencies/funnel.js"></script> <script src="dependencies/solid-gauge.js"></script> <link href="./highcharts-editor.min.css" type="text/css" rel="stylesheet"/> <script src="./highcharts-editor.min.js" type="text/javascript" charset="utf-8"></script> <script src="./plugins/data-csv.js" type="text/javascript" charset="utf-8"></script> <script src="./plugins/data-difi.js" type="text/javascript" charset="utf-8"></script> <script src="./plugins/data-gspreadsheets.js" type="text/javascript" charset="utf-8"></script> <script src="./plugins/data-socrata.js" type="text/javascript" charset="utf-8"></script> <style> html, body { margin: 0; padding: 0; width:100%; height:100%; } </style> </head> <body id="main"></body> <script> highed.ready(function () { highed.Editor('main', {}); }); window.onbeforeunload = function(e) { var electron = require('electron'); var remote = require('remote'); var dialog = remote.require('dialog'); var choice = dialog.showMessageBox( remote.getCurrentWindow(), { type: 'question', buttons: ['Yes', 'No'], title: 'Confirm', message: 'Are you sure you want to quit?' }); return choice === 0; }; </script> </html>
daemth/highcharts-editor
app/index.html
HTML
mit
2,606
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Example = mongoose.model('Example'), _ = require('lodash'), upload = require('./upload'); /** * Find example by id */ exports.example = function(req, res, next, id) { Example.load(id, function(err, example) { if (err) return next(err); if (!example) return next(new Error('Failed to load example ' + id)); req.example = example; next(); }); }; /** * Create a example */ exports.create = function(req, res) { var example = new Example(req.body); example.user = req.user; example.save(function(err) { if (err) { return res.send('/login', { errors: err.errors, example: example }); } else { res.jsonp(example); } }); }; /** * Update a example */ exports.update = function(req, res) { var example = req.example; example = _.extend(example, req.body); example.save(function(err) { if (err) { console.log("Error -" + err); return res.send('/login', { errors: err, example: example }); } else { console.log("Example Saved - " + example); res.jsonp(example); } }); }; /** * Delete an example */ exports.destroy = function(req, res) { var example = req.example; example.remove(function(err) { if (err) { return res.send('/login', { errors: err.errors, example: example }); } else { res.jsonp(example); } }); }; /** * Show an example */ exports.show = function(req, res) { res.jsonp(req.example); }; /** * List of Examples */ exports.all = function(req, res) { Example.find().sort('-created').populate('user', 'name username').exec(function(err, examples) { if (err) { res.render('error', { status: 500 }); } else { res.jsonp(examples); } }); };
dylanlawrence/ango
lib/controllers/example.js
JavaScript
mit
2,149
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cantor: 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.2~camlp4 / cantor - 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> cantor <small> 8.8.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-24 13:47:43 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-24 13:47:43 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 camlp4 4.05+1 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils coq 8.5.2~camlp4 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 ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects. # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/cantor&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Cantor&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9~&quot;} ] tags: [ &quot;keyword: ordinal numbers&quot; &quot;keyword: well-foundedness&quot; &quot;keyword: termination&quot; &quot;keyword: rpo&quot; &quot;keyword: Goodstein sequences&quot; &quot;category: Mathematics/Logic&quot; &quot;category: Mathematics/Arithmetic and Number Theory/Number theory&quot; &quot;date: 2006-05-22&quot; ] authors: [ &quot;Pierre Castéran &lt;[email protected]&gt; [http://www.labri.fr/~casteran/]&quot; &quot;Évelyne Contejean &lt;[email protected]&gt; [http://www.lri.fr/~contejea]&quot; ] bug-reports: &quot;https://github.com/coq-contribs/cantor/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/cantor.git&quot; synopsis: &quot;On Ordinal Notations&quot; description: &quot;&quot;&quot; This contribution contains data structures for ordinals less than Gamma0 under Cantor and Veblen normal forms. Well-foundedness is established thanks to RPO with status for generic terms. This contribution also includes termination proofs of Hydra battles and Goodstein sequences as well as a computation of the length of the Goodstein sequence starting from 4 in base 2. This work is supported by INRIA-Futurs (Logical project-team), CNRS and the French ANR via the A3PAT project (http://www3.iie.cnam.fr/~urbain/a3pat/).&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/cantor/archive/v8.8.0.tar.gz&quot; checksum: &quot;md5=608c1cf50146fa0f705222f3c6bd239e&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-cantor.8.8.0 coq.8.5.2~camlp4</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.2~camlp4). The following dependencies couldn&#39;t be met: - coq-cantor -&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-cantor.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.1/released/8.5.2~camlp4/cantor/8.8.0.html
HTML
mit
7,710
class ApplicationMailer < ActionMailer::Base helper Common::PageHelper end
jbox-web/media-server
app/mailers/application_mailer.rb
Ruby
mit
77
import { fireShuffleTasks } from 'src/model/ModelBase'; import { REFERENCE } from 'config/types'; import { rebindMatch } from 'shared/rebind'; import { isArray, isString } from 'utils/is'; import { escapeKey } from 'shared/keypaths'; import ExpressionProxy from './ExpressionProxy'; import resolveReference from './resolveReference'; import resolve from './resolve'; import LinkModel, { Missing } from 'src/model/LinkModel'; export default class ReferenceExpressionProxy extends LinkModel { constructor(fragment, template) { super(null, null, null, '@undefined'); this.root = fragment.ractive.viewmodel; this.template = template; this.rootLink = true; this.template = template; this.fragment = fragment; this.rebound(); } getKeypath() { return this.model ? this.model.getKeypath() : '@undefined'; } rebound() { const fragment = this.fragment; const template = this.template; let base = (this.base = resolve(fragment, template)); let idx; if (this.proxy) { teardown(this); } const proxy = (this.proxy = { rebind: (next, previous) => { if (previous === base) { next = rebindMatch(template, next, previous); if (next !== base) { this.base = base = next; } } else if (~(idx = members.indexOf(previous))) { next = rebindMatch(template.m[idx].n, next, previous); if (next !== members[idx]) { members.splice(idx, 1, next || Missing); } } if (next !== previous) { previous.unregister(proxy); if (next) next.addShuffleTask(() => next.register(proxy)); } }, handleChange: () => { pathChanged(); } }); base.register(proxy); const members = (this.members = template.m.map(tpl => { if (isString(tpl)) { return { get: () => tpl }; } let model; if (tpl.t === REFERENCE) { model = resolveReference(fragment, tpl.n); model.register(proxy); return model; } model = new ExpressionProxy(fragment, tpl); model.register(proxy); return model; })); const pathChanged = () => { const model = base && base.joinAll( members.reduce((list, m) => { const k = m.get(); if (isArray(k)) return list.concat(k); else list.push(escapeKey(String(k))); return list; }, []) ); if (model !== this.model) { this.model = model; this.relinking(model); fireShuffleTasks(); refreshPathDeps(this); this.fragment.shuffled(); } }; pathChanged(); } teardown() { teardown(this); super.teardown(); } unreference() { super.unreference(); if (!this.deps.length && !this.refs) this.teardown(); } unregister(dep) { super.unregister(dep); if (!this.deps.length && !this.refs) this.teardown(); } } function teardown(proxy) { if (proxy.base) proxy.base.unregister(proxy.proxy); if (proxy.models) { proxy.models.forEach(m => { if (m.unregister) m.unregister(proxy); }); } } function refreshPathDeps(proxy) { let len = proxy.deps.length; let i, v; for (i = 0; i < len; i++) { v = proxy.deps[i]; if (v.pathChanged) v.pathChanged(); if (v.fragment && v.fragment.pathModel) v.fragment.pathModel.applyValue(proxy.getKeypath()); } len = proxy.children.length; for (i = 0; i < len; i++) { refreshPathDeps(proxy.children[i]); } } const eproto = ExpressionProxy.prototype; const proto = ReferenceExpressionProxy.prototype; proto.unreference = eproto.unreference; proto.unregister = eproto.unregister; proto.unregisterLink = eproto.unregisterLink;
ractivejs/ractive
src/view/resolvers/ReferenceExpressionProxy.js
JavaScript
mit
3,804
'use strict'; const config = require('config'); const esdoc = require('gulp-esdoc'); const gulp = require('gulp'); module.exports = function documentationBuilder() { return gulp.src('./src') .pipe(esdoc({ destination: config.get('build.documentation.outputPath'), unexportIdentifier: config.get('build.documentation.unexportedIdentifiers'), undocumentIdentifier: config.get('build.documentation.undocumentedIdentifiers'), test: { type: config.get('build.documentation.testType'), source: config.get('build.documentation.testRoot'), }, })); };
node-templates/base-microservice-swagger
bld/documentation.js
JavaScript
mit
601
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ceres: 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.7.0 / ceres - 0.3.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> ceres <small> 0.3.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-26 20:28:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-26 20:28:19 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.7.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.08.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.08.1 Official release 4.08.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Li-yao Xia &lt;[email protected]&gt;&quot; authors: &quot;Li-yao Xia&quot; homepage: &quot;https://github.com/Lysxia/coq-ceres&quot; bug-reports: &quot;https://github.com/Lysxia/coq-ceres/issues&quot; license: &quot;MIT&quot; dev-repo: &quot;git+https://github.com/Lysxia/coq-ceres.git&quot; build: [make &quot;build&quot;] run-test: [make &quot;test&quot;] install: [make &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.8.2&quot; &amp; &lt; &quot;8.13~&quot;} ] tags: [ &quot;date:2020-09-28&quot; &quot;logpath:Ceres&quot; &quot;keyword:serialization&quot; ] synopsis: &quot;Library for serialization to S-expressions&quot; url { src: &quot;https://github.com/Lysxia/coq-ceres/archive/0.3.0.tar.gz&quot; checksum: &quot;sha512=2de406c1df6c37cf1a99bed741bf8d266ede024e862b828abe426acc2559816091dbc5630a7de4655c48993354d3db87569aefa90d136054a476d1c82fb44134&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-ceres.0.3.0 coq.8.7.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.7.0). The following dependencies couldn&#39;t be met: - coq-ceres -&gt; coq &gt;= 8.8.2 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-ceres.0.3.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.08.1-2.0.5/released/8.7.0/ceres/0.3.0.html
HTML
mit
6,619
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ltl: 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.7.2 / ltl - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> ltl <small> 8.10.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-10 19:42:23 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-10 19:42:23 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/ltl&quot; license: &quot;Unknown&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/LTL&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: temporal logic&quot; &quot;keyword: infinite transition systems&quot; &quot;keyword: co-induction&quot; &quot;category: Mathematics/Logic/Modal logic&quot; &quot;date: 2002-07&quot; ] authors: [ &quot;Solange Coupet-Grimal&quot; ] bug-reports: &quot;https://github.com/coq-contribs/ltl/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/ltl.git&quot; synopsis: &quot;Linear Temporal Logic&quot; description: &quot;&quot;&quot; This contribution contains a shallow embedding of Linear Temporal Logic (LTL) based on a co-inductive representation of program executions. Temporal operators are implemented as inductive (respectively co-inductive) types when they are least (respectively greatest) fixpoints. Several general lemmas, that correspond to LTL rules, are proved.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/ltl/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=8a4b130957215e97768d37fb747f2c18&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-ltl.8.10.0 coq.8.7.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.2). The following dependencies couldn&#39;t be met: - coq-ltl -&gt; coq &gt;= 8.10 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-ltl.8.10.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.06.1-2.0.5/released/8.7.2/ltl/8.10.0.html
HTML
mit
7,100
--- layout: single title: Thanks comments: false share: false permalink: /thanks/ --- I’m truly grateful to all the wonderful humans and companies supporting my open source work on [GitHub Sponsors](https://github.com/sponsors/chrismacnaughton). ## 🦄 Sponsor <p class="small">$1000/month</p> ## Silver Sponsor <p class="small">$200/month</p> ## Sponsor <p class="small">$100/month</p> ### Top Supporter <p class="small">$50/month</p> ### Supporter <p class="small">$10/month</p>
ChrisMacNaughton/chrismacnaughton.github.com
_pages/thanks.md
Markdown
mit
494
package model.question; import model.enums.QuestionTypes; public class ImageQuestion implements QuestionIF { private String imagePath; private char[] answer; private QuestionTypes type; public ImageQuestion(String imagePath, char[] answer, QuestionTypes type){ this.setType(type); this.setImagePath(imagePath); this.setAnswer(answer); } private void setType(QuestionTypes type) { // TODO Auto-generated method stub this.type = type; } private void setAnswer(char[] answer) { // TODO Auto-generated method stub this.answer = answer; } private void setImagePath(String imagePath) { // TODO Auto-generated method stub this.imagePath = imagePath; } // ************************************************************************ // get question from file // ************************************************************************ @Override public String getQuestion() { // TODO Auto-generated method stub return imagePath; } // ************************************************************************ // get the answer read from file // ************************************************************************ @Override public char[] getAnswer() { // TODO Auto-generated method stub return answer; } @Override public QuestionTypes getType() { // TODO Auto-generated method stub return type; } }
KhaledMuahamed/GameDevelop
Game/src/model/question/ImageQuestion.java
Java
mit
1,428
**Houdini** allows easy hotswapping of Python code. The snippet is currently at ALPHA stage, but should soon be top notch. ### Basic usage example Create the files **swapped.py**: ```python from houdini import hotswap @hotswap def foo(): return '0x0' ``` and **client.py**: ```python import time import swapped while True: print swapped.foo() time.sleep(1) ``` Then, launch `client.py` and edit `swapped.py`. ### Limitations Currently only top-level functions and methods in top-level classes are supported.
edwkar/houdini
README.md
Markdown
mit
530
// Copyright 2015, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package queryservice contains the interface for the service definition // of the Query Service. package queryservice import ( "io" "golang.org/x/net/context" "github.com/youtube/vitess/go/sqltypes" "github.com/youtube/vitess/go/vt/tabletserver/querytypes" querypb "github.com/youtube/vitess/go/vt/proto/query" ) // QueryService is the interface implemented by the tablet's query service. // All streaming methods accept a callback function that will be called for // each response. If the callback returns an error, that error is returned // back by the function, except in the case of io.EOF in which case the stream // will be terminated with no error. Streams can also be terminated by canceling // the context. // This API is common for both server and client implementations. All functions // must be safe to be called concurrently. type QueryService interface { // Transaction management // Begin returns the transaction id to use for further operations Begin(ctx context.Context, target *querypb.Target) (int64, error) // Commit commits the current transaction Commit(ctx context.Context, target *querypb.Target, transactionID int64) error // Rollback aborts the current transaction Rollback(ctx context.Context, target *querypb.Target, transactionID int64) error // Prepare prepares the specified transaction. Prepare(ctx context.Context, target *querypb.Target, transactionID int64, dtid string) (err error) // CommitPrepared commits the prepared transaction. CommitPrepared(ctx context.Context, target *querypb.Target, dtid string) (err error) // RollbackPrepared rolls back the prepared transaction. RollbackPrepared(ctx context.Context, target *querypb.Target, dtid string, originalID int64) (err error) // CreateTransaction creates the metadata for a 2PC transaction. CreateTransaction(ctx context.Context, target *querypb.Target, dtid string, participants []*querypb.Target) (err error) // StartCommit atomically commits the transaction along with the // decision to commit the associated 2pc transaction. StartCommit(ctx context.Context, target *querypb.Target, transactionID int64, dtid string) (err error) // SetRollback transitions the 2pc transaction to the Rollback state. // If a transaction id is provided, that transaction is also rolled back. SetRollback(ctx context.Context, target *querypb.Target, dtid string, transactionID int64) (err error) // ConcludeTransaction deletes the 2pc transaction metadata // essentially resolving it. ConcludeTransaction(ctx context.Context, target *querypb.Target, dtid string) (err error) // ReadTransaction returns the metadata for the sepcified dtid. ReadTransaction(ctx context.Context, target *querypb.Target, dtid string) (metadata *querypb.TransactionMetadata, err error) // Query execution Execute(ctx context.Context, target *querypb.Target, sql string, bindVariables map[string]interface{}, transactionID int64, options *querypb.ExecuteOptions) (*sqltypes.Result, error) StreamExecute(ctx context.Context, target *querypb.Target, sql string, bindVariables map[string]interface{}, options *querypb.ExecuteOptions, callback func(*sqltypes.Result) error) error ExecuteBatch(ctx context.Context, target *querypb.Target, queries []querytypes.BoundQuery, asTransaction bool, transactionID int64, options *querypb.ExecuteOptions) ([]sqltypes.Result, error) // Combo methods, they also return the transactionID from the // Begin part. If err != nil, the transactionID may still be // non-zero, and needs to be propagated back (like for a DB // Integrity Error) BeginExecute(ctx context.Context, target *querypb.Target, sql string, bindVariables map[string]interface{}, options *querypb.ExecuteOptions) (*sqltypes.Result, int64, error) BeginExecuteBatch(ctx context.Context, target *querypb.Target, queries []querytypes.BoundQuery, asTransaction bool, options *querypb.ExecuteOptions) ([]sqltypes.Result, int64, error) // Messaging methods. MessageStream(ctx context.Context, target *querypb.Target, name string, callback func(*sqltypes.Result) error) error MessageAck(ctx context.Context, target *querypb.Target, name string, ids []*querypb.Value) (count int64, err error) // SplitQuery is a MapReduce helper function // This version of SplitQuery supports multiple algorithms and multiple split columns. // See the documentation of SplitQueryRequest in 'proto/vtgate.proto' for more information. SplitQuery(ctx context.Context, target *querypb.Target, query querytypes.BoundQuery, splitColumns []string, splitCount int64, numRowsPerQueryPart int64, algorithm querypb.SplitQueryRequest_Algorithm) ([]querytypes.QuerySplit, error) // UpdateStream streams updates from the provided position or timestamp. UpdateStream(ctx context.Context, target *querypb.Target, position string, timestamp int64, callback func(*querypb.StreamEvent) error) error // StreamHealth streams health status. StreamHealth(ctx context.Context, callback func(*querypb.StreamHealthResponse) error) error // HandlePanic will be called if any of the functions panic. HandlePanic(err *error) // Close must be called for releasing resources. Close(ctx context.Context) error } type resultStreamer struct { done chan struct{} ch chan *sqltypes.Result err error } func (rs *resultStreamer) Recv() (*sqltypes.Result, error) { select { case <-rs.done: return nil, rs.err case qr := <-rs.ch: return qr, nil } } // ExecuteWithStreamer performs a StreamExecute, but returns a *sqltypes.ResultStream to iterate on. // This function should only be used for legacy code. New usage should directly use StreamExecute. func ExecuteWithStreamer(ctx context.Context, conn QueryService, target *querypb.Target, sql string, bindVariables map[string]interface{}, options *querypb.ExecuteOptions) sqltypes.ResultStream { rs := &resultStreamer{ done: make(chan struct{}), ch: make(chan *sqltypes.Result), } go func() { defer close(rs.done) rs.err = conn.StreamExecute(ctx, target, sql, bindVariables, options, func(qr *sqltypes.Result) error { select { case <-ctx.Done(): return io.EOF case rs.ch <- qr: } return nil }) if rs.err == nil { rs.err = io.EOF } }() return rs }
derekstavis/bluntly
vendor/github.com/youtube/vitess/go/vt/tabletserver/queryservice/queryservice.go
GO
mit
6,381
import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.client import JSONRPCClient from raiden.network.rpc.smartcontract_proxy import ContractProxy from raiden.utils import typing from raiden.utils.smart_contracts import deploy_contract_web3 from raiden.utils.solc import compile_files_cwd from raiden_contracts.constants import CONTRACT_HUMAN_STANDARD_TOKEN from raiden_contracts.contract_manager import ContractManager def deploy_token( deploy_client: JSONRPCClient, contract_manager: ContractManager, initial_amount: typing.TokenAmount, decimals: int, token_name: str, token_symbol: str, ) -> ContractProxy: token_address = deploy_contract_web3( contract_name=CONTRACT_HUMAN_STANDARD_TOKEN, deploy_client=deploy_client, contract_manager=contract_manager, constructor_arguments=(initial_amount, decimals, token_name, token_symbol), ) contract_abi = contract_manager.get_contract_abi(CONTRACT_HUMAN_STANDARD_TOKEN) return deploy_client.new_contract_proxy( contract_interface=contract_abi, contract_address=token_address ) def deploy_tokens_and_fund_accounts( token_amount: int, number_of_tokens: int, deploy_service: BlockChainService, participants: typing.List[typing.Address], contract_manager: ContractManager, ) -> typing.List[typing.TokenAddress]: """ Deploy `number_of_tokens` ERC20 token instances with `token_amount` minted and distributed among `blockchain_services`. Optionally the instances will be registered with the raiden registry. Args: token_amount (int): number of units that will be created per token number_of_tokens (int): number of token instances that will be created deploy_service (BlockChainService): the blockchain connection that will deploy participants (list(address)): participant addresses that will receive tokens """ result = list() for _ in range(number_of_tokens): token_address = deploy_contract_web3( CONTRACT_HUMAN_STANDARD_TOKEN, deploy_service.client, contract_manager=contract_manager, constructor_arguments=(token_amount, 2, "raiden", "Rd"), ) result.append(token_address) # only the creator of the token starts with a balance (deploy_service), # transfer from the creator to the other nodes for transfer_to in participants: deploy_service.token(token_address).transfer( to_address=transfer_to, amount=token_amount // len(participants) ) return result def deploy_service_registry_and_set_urls( private_keys, web3, contract_manager, service_registry_address ) -> Tuple[ServiceRegistry, List[str]]: urls = ["http://foo", "http://boo", "http://coo"] c1_client = JSONRPCClient(web3, private_keys[0]) c1_service_proxy = ServiceRegistry( jsonrpc_client=c1_client, service_registry_address=service_registry_address, contract_manager=contract_manager, ) c2_client = JSONRPCClient(web3, private_keys[1]) c2_service_proxy = ServiceRegistry( jsonrpc_client=c2_client, service_registry_address=service_registry_address, contract_manager=contract_manager, ) c3_client = JSONRPCClient(web3, private_keys[2]) c3_service_proxy = ServiceRegistry( jsonrpc_client=c3_client, service_registry_address=service_registry_address, contract_manager=contract_manager, ) # Test that getting a random service for an empty registry returns None pfs_address = get_random_service(c1_service_proxy, "latest") assert pfs_address is None # Test that setting the urls works c1_service_proxy.set_url(urls[0]) c2_service_proxy.set_url(urls[1]) c3_service_proxy.set_url(urls[2]) return c1_service_proxy, urls def get_test_contract(name): contract_path = os.path.abspath( os.path.join(os.path.dirname(__file__), "..", "smart_contracts", name) ) contracts = compile_files_cwd([contract_path]) return contract_path, contracts def deploy_rpc_test_contract(deploy_client, name): contract_path, contracts = get_test_contract(f"{name}.sol") contract_proxy, _ = deploy_client.deploy_solidity_contract( name, contracts, libraries=dict(), constructor_parameters=None, contract_path=contract_path ) return contract_proxy def get_list_of_block_numbers(item): """ Creates a list of block numbers of the given list/single event""" if isinstance(item, list): return [element["blockNumber"] for element in item] if isinstance(item, dict): block_number = item["blockNumber"] return [block_number] return list()
hackaugusto/raiden
raiden/tests/utils/smartcontracts.py
Python
mit
4,965
<md-tab-group> <md-tab label="Example"> <div class="page-content"> <div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex> <md-card fxFlex class="page-card"> <md-card-title>Menu</md-card-title> <md-card-subtitle>Default material menu</md-card-subtitle> <md-card-content> <md-card class="example-md-menu"> <div class="example-menu-title"> <p>Basic menu</p> </div> <div class="example-menu-content"> <button md-button [mdMenuTriggerFor]="basic">Menu</button> <md-menu #basic="mdMenu"> <button md-menu-item>Item 1</button> <button md-menu-item>Item 2</button> <button md-menu-item>Item 3</button> </md-menu> </div> </md-card> </md-card-content> </md-card> </div> <div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex> <md-card fxFlex class="page-card"> <md-card-content> <md-card class="example-md-menu"> <div class="example-menu-title"> <p>Food</p> <md-menu #food="mdMenu"> <button md-menu-item> Pizza </button> <button md-menu-item> Steak </button> </md-menu> <button md-icon-button [mdMenuTriggerFor]="food" class="example-md-button"> <md-icon>more_vert</md-icon> </button> </div> <div class="example-menu-content"> <p>This is a Menu</p> </div> </md-card> <br> </md-card-content> </md-card> </div> <div fxLayout="row" fxLayout.xs="column" fxLayout.sm="column" fxFlex> <md-card fxFlex class="page-card"> <md-card-content> <md-card class="example-md-menu"> <div class="example-menu-title"> <p>Home</p> <button md-icon-button [mdMenuTriggerFor]="menu" class="example-md-button"> <md-icon>more_vert</md-icon> </button> <md-menu #menu="mdMenu"> <button md-menu-item> <md-icon>home</md-icon> <span>Home</span> </button> <button md-menu-item> <md-icon>refresh</md-icon> <span>Refresh</span> </button> <button md-menu-item> <md-icon>feedback</md-icon> <span>Feedback</span> </button> </md-menu> </div> <div class="example-menu-content"> <p> This is a Menu </p> </div> </md-card> </md-card-content> </md-card> </div> </div> </md-tab> <md-tab label="Overview"> <div class="page-content"> <md-card class="page-card"> <md-card-title><code>MdMenuModule</code> <a class="badge" href="https://material.angular.io/components/component/menu">Official Documentation </a> </md-card-title> <md-card-content> <div class="docs-guide-content"> <p> <code>&lt;md-menu&gt;</code> is a floating panel containing list of options. </p> <p> By itself, the <code>&lt;md-menu&gt;</code> element does not render anything. The menu is attached to and opened via application of the mdMenuTriggerFor directive: </p> <pre> <code>&lt;md-menu &#35;appMenu="mdMenu"&gt;</code> <code>&lt;button md-menu-item&gt;</code> Settings <code>&lt;/button&gt;</code> <code>&lt;button md-menu-item&gt;</code> Help <code>&lt;/button&gt;</code> <code>&lt;/md-menu&gt;</code> <code>&lt;button md-icon-button &#91;mdMenuTriggerFor&#93;="appMenu"&gt;</code> <code>&lt;md-icon&gt;</code>more_vert<code>&lt;/md-icon&gt;</code> <code>&lt;/button&gt;</code> </pre> <h3>Toggling the menu programmatically</h3> <p> The menu exposes an API to open/close programmatically. Please note that in this case, an mdMenuTriggerFor directive is still necessary to attach the menu to a trigger element in the DOM. </p> <pre> <code> class MyComponent &#123; @ViewChild(MdMenuTrigger) trigger: MdMenuTrigger; someMethod() &#123; this.trigger.openMenu(); &#125; &#125; </code> </pre> <h3>Icons</h3> <p> Menus support displaying md-icon elements before the menu item text. </p> <p>my-comp.html</p> <pre> <code>&lt;md-menu #menu="mdMenu"&gt;</code> <code>&lt;button md-menu-item&gt;</code> <code>&lt;md-icon&gt;</code> dialpad <code>&lt;/md-icon&gt;</code> <code>&lt;span&gt;</code> Redial <code>&lt;/span&gt;</code> <code>&lt;/button&gt;</code> <code>&lt;button md-menu-item disabled&gt;</code> <code>&lt;md-icon&gt;</code> voicemail <code>&lt;/md-icon&gt;</code> <code>&lt;span&gt;</code> Check voicemail <code>&lt;/span&gt;</code> <code>&lt;/button&gt;</code> <code>&lt;button md-menu-item&gt;</code> <code>&lt;md-icon&gt;</code> notifications_off <code>&lt;/md-icon&gt;</code> <code>&lt;span&gt;</code> Disable alerts <code>&lt;/span&gt;</code> <code>&lt;/button&gt;</code> <code>&lt;/md-menu&gt;</code> </pre> <h3>Customizing menu position</h3> <p> By default, the menu will display after and below its trigger. The position can be changed using the x-position (before | after) and y-position (above | below) attributes. </p> <h3>Keyboard interaction</h3> <ul> <li><kbd>DOWN_ARROW</kbd>: Focuses the next menu item</li> <li><kbd>UP_ARROW</kbd>: Focuses previous menu item</li> <li><kbd>ENTER</kbd>: Activates the focused menu item</li> </ul> </div> </md-card-content> </md-card> </div> </md-tab> <md-tab label="API Reference"> <div class="page-content"> <md-card class="page-card"> <md-card-title><code>MdMenuModule</code></md-card-title> <md-card-content> <div class="docs-guide-content"> <h2>Directives</h2> <h3 class="docs-api-h3 docs-api-class-name">MdChipList</h3> <p class="docs-api-class-description">A material design chips component (named ChipList for it&#39;s similarity to the List component). Example: &lt;md-chip-list&gt; &lt;md-chip&gt;Chip 1&lt;md-chip&gt; &lt;md-chip&gt;Chip 2&lt;md-chip&gt; &lt;/md-chip-list&gt; </p> <h4 class="docs-api-h4 docs-api-method-header">Properties</h4> <table class="docs-api-properties-table"> <tr class="docs-api-properties-header-row"> <th class="docs-api-properties-th">Name</th> <th class="docs-api-properties-th">Description</th> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"><p class="docs-api-property-name"> chips </p> </td> <td class="docs-api-property-description">The chip components contained within this chip list. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-input-marker"> @Input() </div> <p class="docs-api-property-name"> selectable </p> </td> <td class="docs-api-property-description">Whether or not this chip is selectable. When a chip is not selectable, it&#39;s selected state is always ignored. </td> </tr> </table> <h4 class="docs-api-h4 docs-api-method-header">Methods</h4> <table class="docs-api-method-table"> <thead> <tr class="docs-api-method-name-row"> <th colspan="2" class="docs-api-method-name-cell">focus</th> </tr> </thead> <tr class="docs-api-method-description-row"> <td colspan="2" class="docs-api-method-description-cell">Programmatically focus the chip list. This in turn focuses the first non-disabled chip in this chip list. </td> </tr> </table> <h3 class="docs-api-h3 docs-api-class-name">MdChip</h3> <p class="docs-api-class-description">Material design styled Chip component. Used inside the MdChipList component. </p> <h4 class="docs-api-h4 docs-api-method-header">Properties</h4> <table class="docs-api-properties-table"> <tr class="docs-api-properties-header-row"> <th class="docs-api-properties-th">Name</th> <th class="docs-api-properties-th">Description</th> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"><p class="docs-api-property-name"> onFocus </p> </td> <td class="docs-api-property-description">Emitted when the chip is focused. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-output-marker"> @Output() </div> <p class="docs-api-property-name"> select </p> </td> <td class="docs-api-property-description">Emitted when the chip is selected. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-output-marker"> @Output() </div> <p class="docs-api-property-name"> deselect </p> </td> <td class="docs-api-property-description">Emitted when the chip is deselected. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-output-marker"> @Output() </div> <p class="docs-api-property-name"> destroy </p> </td> <td class="docs-api-property-description">Emitted when the chip is destroyed. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-input-marker"> @Input() </div> <p class="docs-api-property-name"> disabled </p> </td> <td class="docs-api-property-description">Whether or not the chip is disabled. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-input-marker"> @Input() </div> <p class="docs-api-property-name"> selected </p> </td> <td class="docs-api-property-description">Whether or not this chip is selected. </td> </tr> <tr class="docs-api-properties-row"> <td class="docs-api-properties-name-cell"> <div class="docs-api-input-marker"> @Input() </div> <p class="docs-api-property-name"> color </p> </td> <td class="docs-api-property-description">The color of the chip. Can be `primary`, `accent`, or `warn`. </td> </tr> </table> <h4 class="docs-api-h4 docs-api-method-header">Methods</h4> <table class="docs-api-method-table"> <thead> <tr class="docs-api-method-name-row"> <th colspan="2" class="docs-api-method-name-cell">toggleSelected</th> </tr> </thead> <tr class="docs-api-method-description-row"> <td colspan="2" class="docs-api-method-description-cell">Toggles the current selected state of this chip. </td> </tr> <tr class="docs-api-method-returns-header-row"> <th colspan="2" class="docs-api-method-returns-header-cell">Returns</th> </tr> <tr> <td class="docs-api-method-returns-type-cell"> <code class="docs-api-method-returns-type">boolean</code> </td> <td class="docs-api-method-returns-description-cell"> <p class="docs-api-method-returns-description">Whether the chip is selected. </p> </td> </tr> </table> <table class="docs-api-method-table"> <thead> <tr class="docs-api-method-name-row"> <th colspan="2" class="docs-api-method-name-cell">focus</th> </tr> </thead> <tr class="docs-api-method-description-row"> <td colspan="2" class="docs-api-method-description-cell">Allows for programmatic focusing of the chip. </td> </tr> </table> </div> </md-card-content> </md-card> </div> </md-tab> </md-tab-group>
marulinho/Proyecto-Angular-Final
src/app/pages/component-menu/component-menu.component.html
HTML
mit
14,721
// // SettingVCPopAnimator.h // BlackNoise // // Created by 李金 on 2016/11/24. // Copyright © 2016年 kingandyoga. All rights reserved. // #import <Foundation/Foundation.h> @interface SettingVCPopAnimator : NSObject<UIViewControllerAnimatedTransitioning> @end
kingandyoga/BlackNoise
BlackNoise/BlackNoise/SettingVCPopAnimator.h
C
mit
271
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> .country { fill: lightgray; stroke: darkgrey; stroke-width: 1px; } .country:hover { fill: darkgrey; } div.tooltipDestination { position: absolute; text-align: center; width: 60px; height: 16px; padding: 2px; font: 12px sans-serif; background: red; border: 0px; border-radius: 0px; pointer-events: none; padding-top: 5px; } div.tooltipOrigin { position: absolute; text-align: center; width: 60px; height: 16px; padding: 2px; font: 12px sans-serif; background: green; border: 0px; border-radius: 0px; pointer-events: none; padding-top: 5px; } </style> </head> <body> <div id="map"></div> <script src="http://d3js.org/d3.v4.min.js"></script> <script src="http://d3js.org/topojson.v1.min.js"></script> <script> var originGeo = [16.8286, 52.4200]; var originName = 'POZ'; var destinations = [ {'coord': [20.9679, 52.1672], 'name': 'WAW'}, {'coord': [23.9569, 49.8134], 'name': 'LWO'}, {'coord': [30.4433, 50.4120], 'name': 'IEV'}, {'coord': [13.3724, 55.5355], 'name': 'MMX'}, {'coord': [12.6508, 55.6180], 'name': 'CPH'}, {'coord': [16.9154, 58.7890], 'name': 'NYO'}, {'coord': [10.2569, 59.1824], 'name': 'TRF'}, {'coord': [9.1526, 55.7408], 'name': 'BLL'}, {'coord': [8.5622, 50.0379], 'name': 'FRA'}, {'coord': [11.7750, 48.3537], 'name': 'MUC'}, {'coord': [5.3921, 51.4584], 'name': 'EIN'}, {'coord': [2.1115, 49.4545], 'name': 'BVA'}, {'coord': [-2.7135, 51.3836], 'name': 'BRS'}, {'coord': [0.3717, 51.8763], 'name': 'LTN'}, {'coord': [0.2389, 51.8860], 'name': 'STN'}, {'coord': [-1.743507, 52.4524], 'name': 'BHX'}, {'coord': [-2.8544, 53.3375], 'name': 'LPL'}, {'coord': [-3.3615, 55.9508], 'name': 'EDI'}, {'coord': [-1.010464, 53.480662], 'name': 'DSA'}, {'coord': [-6.2499, 53.4264], 'name': 'DUB'}, {'coord': [-0.560056, 38.285483], 'name': 'ALC'}, {'coord': [0.065603, 40.207479], 'name': 'CDT'}, {'coord': [-3.56795, 40.4839361], 'name': 'MAD'}, {'coord': [2.071062, 41.288288], 'name': 'BCN'}, {'coord': [2.766066, 41.898201], 'name': 'GRO'}, {'coord': [14.483279, 35.854114], 'name': 'MLA'}, {'coord': [23.9484, 37.9356467], 'name': 'ATH'}, {'coord': [19.914486, 39.607645], 'name': 'CFU'}, {'coord': [34.9362, 29.9511], 'name': 'VDA'}, {'coord': [34.8854, 32.0055], 'name': 'TLV'} ]; var svg; var projection; var speed = 2800;//km/sec var tooltip = d3.select('#map').append('div') .attr('class', 'tooltipDestination') .style('opacity', 0); function getArc(d, s) { var dx = d.destination.x - d.origin.x; var dy = d.destination.y - d.origin.y; var dr = Math.sqrt(dx * dx + dy * dy); var spath = s == false ? ' 0 0,0 ' : ' 0 0,1 '; return 'M' + d.origin.x + ',' + d.origin.y + 'A' + dr + ',' + dr + spath + d.destination.x + ',' + d.destination.y; } function calculateDistance(lat1, lon1, lat2, lon2) { var p = 0.017453292519943295; var c = Math.cos; var a = 0.5 - c((lat2 - lat1) * p)/2 + c(lat1 * p) * c(lat2 * p) * (1 - c((lon2 - lon1) * p))/2; return 12742 * Math.asin(Math.sqrt(a)); } function calculateDuration(distance) { return (distance / this.speed) * 1000; } function drawConnection(index) { var destination = this.destinations[index]; var originPos = projection(this.originGeo); var destinationPos = projection(destination.coord); var connection = [ originPos, destinationPos ]; var destinationName = destination.name; var originGeo = this.originGeo; var destinationGeo = destination.coord; var svg = this.svg; var distance = calculateDistance(originGeo[1], originGeo[0], destinationGeo[1], destinationGeo[0]); var duration = calculateDuration(distance); var arc = svg .append('path') .datum(connection) .attr('class', 'arc' + index) .attr('d', function(coordinates) { var d = { origin: { x: coordinates[0][0], y: coordinates[0][1]}, destination: { x: coordinates[1][0], y: coordinates[1][1]} }; var s = false; if (d.destination.x > d.origin.x) { s = true; } return getArc(d, s); }) .style('stroke', 'steelblue') .style('stroke-width', 2) .style('fill', 'none') .transition() .duration(duration) .attrTween('stroke-dasharray', function() { var len = this.getTotalLength(); return function(t) { return (d3.interpolate('0,' + len, len + ',0'))(t) }; }) .on('end', function(d) { var c = connection[1]; svg.append('circle') .attr('cx', c[0]) .attr('cy', c[1]) .attr('r', 0) .attr('class', 'destCircleInner') .style('fill', 'steelblue') .style('fill-opacity', '1') .transition() .duration(300) .attr('r', '3px'); svg.append('circle') .attr('cx', c[0]) .attr('cy', c[1]) .attr('r', 0) .attr('class', 'destCircleOuter') .style('fill', 'black') .style('fill-opacity', '0.05') .transition() .duration(300) .attr('r', '10px'); svg.append('circle') .datum(c) .attr('cx', c[0]) .attr('cy', c[1]) .attr('r', 0) .style('class', 'destCircleMouse') .style('fill', 'steelblue') .style('fill-opacity', '1') .on('mouseover', function (d) { tooltip.html('<span style="color:white">' + destinationName + '</span>') .attr('class', 'tooltipDestination') .style('left', d[0] + 12 + 'px') .style('top', d[1] - 20 + 'px') .transition() .duration(700) .style('opacity', 1) }) .on('mouseout', function (d) { tooltip.transition() .duration(700) .style('opacity', 0) }) .transition() .duration(300) .attr('r', '3px') .on('end', function(d) { d3.select(this) .transition() .duration(2000) .attr('r', 20) .style('fill-opacity', '0'); d3.select('.arc' + index) .transition() .duration(2000) .style('stroke-opacity', '0') .style('stroke-width', '1') .on('end', function (d) { if (index === destinations.length - 1) { svg.selectAll('.destCircleInner').remove(); svg.selectAll('.destCircleOuter').remove(); svg.selectAll('.destCircleMouse').remove(); for (i = 0; i < destinations.length; i++) { svg.selectAll('.arc' + i).remove(); } } var nextIndex = index + 1; if (nextIndex < destinations.length) { drawConnection(nextIndex); } else { drawConnection(0); } }) }); }); } function drawConnections() { drawConnection(0); } function drawMap(originName, originGeo, destinations) { var countries, height, path, projection, scale, svg, width; var width = 800; var height = 800; var center = [4, 68.6]; var scale = 700; projection = d3.geoMercator().scale(scale).translate([width / 2, 0]).center(center); path = d3.geoPath().projection(projection); svg = d3.select('#map').append('svg') .attr('height', height) .attr('width', width) .style('background', '#C1E1EC'); countries = svg.append("g"); d3.json('europe.json', function(data) { countries.selectAll('.country') .data(topojson.feature(data, data.objects.europe).features) .enter() .append('path') .attr('class', 'country') .attr('d', path) return; }); var source = svg.selectAll('circleOrigin'); source .data([originGeo]).enter() .append('circle') .attr('cx', function (d) { return projection(d)[0]; }) .attr('cy', function (d) { return projection(d)[1]; }) .attr('r', '3px') .style('opacity', 1) .attr('fill', 'green') .attr('class', 'circleOrigin') source .data([originGeo]).enter() .append('circle') .attr('cx', function (d) { return projection(d)[0]; }) .attr('cy', function (d) { return projection(d)[1]; }) .attr('r', '10px') .style('opacity', 0.05) .attr('fill', 'black') .attr('class', 'circleOrigin') .on('mouseover', function (d) { tooltip.html('<span style="color:white">' + originName + '</span>') .attr('class', 'tooltipOrigin') .style('left', projection(d)[0] + 12 + 'px') .style('top', projection(d)[1] - 20 + 'px') .transition() .duration(700) .style('opacity', 1) }) .on('mouseout', function (d) { tooltip.transition() .duration(700) .style('opacity', 0) }); this.svg = svg; this.projection = projection; this.drawConnections(); }; this.drawMap(this.originName, this.originGeo, this.destinations); </script> </body> </html>
jesion/d3js-flight-connections-map
src/index.html
HTML
mit
10,931
require 'test_helper' describe Subcheat do it 'should report version number' do Subcheat::VERSION.must_be_instance_of String end end
avdgaag/subcheat
test/subcheat_test.rb
Ruby
mit
142
using System.Reflection; [assembly: AssemblyTitle("Querify.Nh")]
Lotpath/Querify
src/Querify.Nh/Properties/AssemblyInfo.cs
C#
mit
68
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p>isElement</p> <p><a href="isElement.html"></a>isElement</p> <form><input><input></form> <select><option></option><option></option></select> <script></script> <svg> <g id="elmG"/> <text id="elmText"/> <rect id="elmRect"/> <defs id="elmDefs"/> </svg> </body> </html>
anseki/leader-line
test/spec/funcs/isElement-c.html
HTML
mit
369
#!/bin/bash set -x set -e source "/tools/common_rc/functions.sh" apt-get update # install SSHD apt-get install -y --no-install-recommends ssh # let root logins, disable password logins sed -i \ -e 's/^#?UsePAM.*$/UsePAM no/g' \ -e 's/^#?PasswordAuthentication.*$/PasswordAuthentication yes/g' \ -e 's/^#?PermitRootLogin.*$/PermitRootLogin yes/g' \ -e 's/^#?UseDNS.*$/UseDNS no/g' \ -e 's/AcceptEnv LANG.*//' \ /etc/ssh/sshd_config mkdir -p /var/run/sshd echo 'root:root' | chpasswd apt-get install -y --no-install-recommends openssh-client git git-flow echo 'Setup nice PS1 to use with git...' \ && wget -q "https://gist.githubusercontent.com/dariuskt/0e0b714a4cf6387d7178/raw/83065e2fead22bb1c2ddf809be05548411eabea7/git_bash_prompt.sh" -O /home/project/.git_bash_prompt.sh \ && echo '. ~/.git_bash_prompt.sh' >> /home/project/.bashrc \ && chown project:project /home/project/.git_bash_prompt.sh \ && echo -e '\n\nDONE\n' # make directories not that dark on dark background echo 'DIR 30;47' > /home/project/.dircolors chown project:project /home/project/.dircolors echo 'adding git aliases...' \ && echo alias gl=\"git log --pretty=format:\'%C\(bold blue\)%h %Creset-%C\(bold yellow\)%d %C\(red\)%an %C\(green\)%s\' --graph --date=short --decorate --color --all\" >> /home/project/.bash_aliases \ && echo 'alias pull-all='\''CB=$(git branch | grep ^\* | cut -d" " -f2); git branch | grep -o [a-z].*$ | xargs -n1 -I{} bash -c "git checkout {} && git pull"; git checkout "$CB"'\' >> /home/project/.bash_aliases \ && chown project:project /home/project/.bash_aliases \ && echo -e '\n\nDONE\n' echo 'enable bash_custom inside dev container' echo 'if [ -f ~/.bash_custom ]; then . ~/.bash_custom ; fi' >> /home/project/.bashrc # install mysql-client apt-get install -y --no-install-recommends mariadb-client # install composer phpEnableModule json phpEnableModule phar phpEnableModule zip phpEnableModule iconv curl -sSL 'https://getcomposer.org/download/1.10.22/composer.phar' > /usr/local/bin/composer.phar chmod a+x /usr/local/bin/composer.phar ln -s /usr/local/bin/composer.phar /usr/local/bin/composer composer self-update --1 # installl hiroku/prestissimo phpEnableModule curl sudo -u project composer --no-interaction global require "hirak/prestissimo:^0.3" # disable enabled modules phpDisableModule curl phpDisableModule json phpDisableModule phar phpDisableModule zip # install phpunit apt-get install -y --no-install-recommends phpunit65 phpenmod phar cp -frv /build/files/* / # Clean up APT when done. source /usr/local/build_scripts/cleanup_apt.sh
nfq-technologies/docker-images
php70-dev/build/setup_docker.sh
Shell
mit
2,588
// // TuneFightAppDelegate.h // TuneFight // // Created by Pit Garbe on 14.01.11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @class RootViewController; @interface TuneFightAppDelegate : NSObject <UIApplicationDelegate> @property (nonatomic, strong) UIWindow *window; @end
leberwurstsaft/TuneFight
TuneFight/TuneFightAppDelegate.h
C
mit
324
class Network < ApplicationRecord end
NextEpisode/NextEpisode
app/models/network.rb
Ruby
mit
38
using FluentValidation; using MediatR; using Shop.Infrastructure.Data; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Microsoft.EntityFrameworkCore; using Shop.Core.Interfaces; using Shop.Infrastructure.Data.Extensions; namespace Shop.Features.Product { public class ProductEdit { #region Query public class Query : IRequest<Command> { public string ProductReference { get; set; } } public class QueryValidator : AbstractValidator<Query> { public QueryValidator() { RuleFor(x => x.ProductReference).NotNull(); } } public class QueryHandler : IAsyncRequestHandler<Query, Command> { private readonly ShopContext _db; public QueryHandler(ShopContext db) { _db = db; } public async Task<Command> Handle(Query query) { var product = await _db.Products .Where(p => p.ProductReference == query.ProductReference) .FirstOrDefaultAsync(); return Mapper.Map<Command>(product); } } #endregion #region Command public class Command : IRequest<bool> { public string ProductReference { get; set; } public string ProductName { get; set; } public string ProductShortDescription { get; set; } public string ProductDescription { get; set; } public decimal Price { get; set; } public decimal TaxRate { get; set; } public bool AvailableForOrder { get; set; } public bool Configureable { get; set; } } public class CommandValidator : AbstractValidator<Command> { public CommandValidator() { RuleFor(x => x.ProductReference).NotEmpty().NotNull(); RuleFor(x => x.ProductName).NotEmpty().NotNull(); RuleFor(x => x.ProductShortDescription).NotEmpty().NotNull(); RuleFor(x => x.ProductDescription).NotEmpty().NotNull(); RuleFor(x => x.Price).NotEmpty().NotNull(); RuleFor(x => x.TaxRate).NotEmpty().NotNull(); } } public class Handler : IAsyncRequestHandler<Command, bool> { private readonly ShopContext _db; public Handler(ShopContext db) { _db = db; } public async Task<bool> Handle(Command message) { var updatedProduct = Mapper.Map<Core.Entites.Product>(message); var currentProduct = await _db .Products .Active() .FirstOrDefaultAsync(p => p.ProductReference == message.ProductReference); if (currentProduct == null) return false; var isDirty = new MapToExisting().Map(updatedProduct, currentProduct); return !isDirty || await _db.SaveChangesAsync() > 0; } private class MapToExisting : IMapToExisting<Core.Entites.Product, Core.Entites.Product> { public bool Map(Core.Entites.Product source, Core.Entites.Product target) { target.MarkClean(); target.ProductName = source.ProductName; target.ProductShortDescription = source.ProductShortDescription; target.ProductDescription = source.ProductDescription; target.Price = source.Price; target.TaxRate = source.TaxRate; target.ShippingWeightKg = source.ShippingWeightKg; target.AvailableForOrder = source.AvailableForOrder; target.Configureable = source.Configureable; if (target.IsDirty) target.MarkUpdated(); return target.IsDirty; } } } #endregion public class MappingProfile : AutoMapper.Profile { public MappingProfile() { CreateMap<Core.Entites.Product, Command>(MemberList.None); CreateMap<Command, Core.Entites.Product>(MemberList.None); } } } }
jontansey/.Net-Core-Ecommerce-Base
src/Shop/Features/Product/ProductEdit.cs
C#
mit
4,494
using System; using System.Collections.Concurrent; using System.Threading; namespace Napack.Server { /// <summary> /// Holds statistics for the Napack Framework Server system as a whole. /// </summary> /// <remarks> /// This class and its contents is stored in memory. /// </remarks> public class SystemStats { private object lockObject; private DateTime startTime; public SystemStats() { this.RequestStats = new ConcurrentDictionary<string, RequestStats>(); this.TotalCallsSinceUptime = 0; this.UniqueIpsSinceUptime = 0; this.lockObject = new object(); this.startTime = DateTime.UtcNow; } public ConcurrentDictionary<string, RequestStats> RequestStats { get; private set; } public long TotalCallsSinceUptime; public long UniqueIpsSinceUptime; public TimeSpan Uptime => DateTime.UtcNow - startTime; public bool AddCall(string ip) { Interlocked.Increment(ref this.TotalCallsSinceUptime); ++this.TotalCallsSinceUptime; if (!RequestStats.ContainsKey(ip)) { lock (this.lockObject) { if (!RequestStats.ContainsKey(ip)) { Interlocked.Increment(ref this.UniqueIpsSinceUptime); RequestStats.AddOrUpdate(ip, new RequestStats(), (key, existing) => existing); } } } return RequestStats[ip].AddCall(); } } }
GuMiner/napack
server/Definitions/SystemStats/SystemStats.cs
C#
mit
1,627
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>extructures: 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 / extra-dev</a></li> <li class="active"><a href="">dev / extructures - 0.3.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> extructures <small> 0.3.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-19 18:24:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-19 18:24:42 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq dev Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.11.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.11.2 Official release 4.11.2 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: synopsis: &quot;Finite sets, maps, and other data structures with extensional reasoning&quot; opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/arthuraa/extructures&quot; dev-repo: &quot;git+https://github.com/arthuraa/extructures.git&quot; bug-reports: &quot;https://github.com/arthuraa/extructures/issues&quot; authors: [&quot;Arthur Azevedo de Amorim&quot;] license: &quot;MIT&quot; build: [ [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {(&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.14~&quot;)} &quot;coq-mathcomp-ssreflect&quot; {(&gt;= &quot;1.10&quot; &amp; &lt; &quot;1.13~&quot;)} &quot;coq-deriving&quot; {(&gt;= &quot;0.1&quot; &amp; &lt; &quot;0.2~&quot;)} ] tags: [ &quot;keyword:finite maps&quot; &quot;keyword:extensionality&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:extructures&quot; ] url { src: &quot;https://github.com/arthuraa/extructures/archive/v0.3.0.tar.gz&quot; checksum: &quot;sha512=1bbf711f53b86b37daef5fc08dc30f34d6e3334127b4cc2d887b89709e089c56dbd186c38aa1b925ed4802e3aad8cf29a5a66f12294c0e954815c28ad04f648b&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-extructures.0.3.0 coq.dev</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is dev). The following dependencies couldn&#39;t be met: - coq-extructures -&gt; coq &lt; 8.14~ -&gt; ocaml &lt; 4.10 base of this switch (use `--unlock-base&#39; to force) 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-extructures.0.3.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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.11.2-2.0.7/extra-dev/dev/extructures/0.3.0.html
HTML
mit
7,071
'use strict' var test = require('tape') var createDate = require('./') test(function (t) { t.ok(createDate('1-1-2000') instanceof Date) t.end() })
bendrucker/create-date
test.js
JavaScript
mit
153
<html><body> <h4>Windows 10 x64 (18362.116)</h4><br> <h2>HAL_PRIVATE_DISPATCH</h2> <font face="arial"> +0x000 Version : Uint4B<br> +0x008 HalHandlerForBus : Ptr64 _<a href="./_BUS_HANDLER.html">_BUS_HANDLER</a><br> +0x010 HalHandlerForConfigSpace : Ptr64 _<a href="./_BUS_HANDLER.html">_BUS_HANDLER</a><br> +0x018 HalLocateHiberRanges : Ptr64 void <br> +0x020 HalRegisterBusHandler : Ptr64 long <br> +0x028 HalSetWakeEnable : Ptr64 void <br> +0x030 HalSetWakeAlarm : Ptr64 long <br> +0x038 HalPciTranslateBusAddress : Ptr64 unsigned char <br> +0x040 HalPciAssignSlotResources : Ptr64 long <br> +0x048 HalHaltSystem : Ptr64 void <br> +0x050 HalFindBusAddressTranslation : Ptr64 unsigned char <br> +0x058 HalResetDisplay : Ptr64 unsigned char <br> +0x060 HalAllocateMapRegisters : Ptr64 long <br> +0x068 KdSetupPciDeviceForDebugging : Ptr64 long <br> +0x070 KdReleasePciDeviceForDebugging : Ptr64 long <br> +0x078 KdGetAcpiTablePhase0 : Ptr64 void* <br> +0x080 KdCheckPowerButton : Ptr64 void <br> +0x088 HalVectorToIDTEntry : Ptr64 unsigned char <br> +0x090 KdMapPhysicalMemory64 : Ptr64 void* <br> +0x098 KdUnmapVirtualAddress : Ptr64 void <br> +0x0a0 KdGetPciDataByOffset : Ptr64 unsigned long <br> +0x0a8 KdSetPciDataByOffset : Ptr64 unsigned long <br> +0x0b0 HalGetInterruptVectorOverride : Ptr64 unsigned long <br> +0x0b8 HalGetVectorInputOverride : Ptr64 long <br> +0x0c0 HalLoadMicrocode : Ptr64 long <br> +0x0c8 HalUnloadMicrocode : Ptr64 long <br> +0x0d0 HalPostMicrocodeUpdate : Ptr64 long <br> +0x0d8 HalAllocateMessageTargetOverride : Ptr64 long <br> +0x0e0 HalFreeMessageTargetOverride : Ptr64 void <br> +0x0e8 HalDpReplaceBegin : Ptr64 long <br> +0x0f0 HalDpReplaceTarget : Ptr64 void <br> +0x0f8 HalDpReplaceControl : Ptr64 long <br> +0x100 HalDpReplaceEnd : Ptr64 void <br> +0x108 HalPrepareForBugcheck : Ptr64 void <br> +0x110 HalQueryWakeTime : Ptr64 unsigned char <br> +0x118 HalReportIdleStateUsage : Ptr64 void <br> +0x120 HalTscSynchronization : Ptr64 void <br> +0x128 HalWheaInitProcessorGenericSection : Ptr64 long <br> +0x130 HalStopLegacyUsbInterrupts : Ptr64 void <br> +0x138 HalReadWheaPhysicalMemory : Ptr64 long <br> +0x140 HalWriteWheaPhysicalMemory : Ptr64 long <br> +0x148 HalDpMaskLevelTriggeredInterrupts : Ptr64 long <br> +0x150 HalDpUnmaskLevelTriggeredInterrupts : Ptr64 long <br> +0x158 HalDpGetInterruptReplayState : Ptr64 long <br> +0x160 HalDpReplayInterrupts : Ptr64 long <br> +0x168 HalQueryIoPortAccessSupported : Ptr64 unsigned char <br> +0x170 KdSetupIntegratedDeviceForDebugging : Ptr64 long <br> +0x178 KdReleaseIntegratedDeviceForDebugging : Ptr64 long <br> +0x180 HalGetEnlightenmentInformation : Ptr64 void <br> +0x188 HalAllocateEarlyPages : Ptr64 void* <br> +0x190 HalMapEarlyPages : Ptr64 void* <br> +0x198 Dummy1 : Ptr64 Void<br> +0x1a0 Dummy2 : Ptr64 Void<br> +0x1a8 HalNotifyProcessorFreeze : Ptr64 void <br> +0x1b0 HalPrepareProcessorForIdle : Ptr64 long <br> +0x1b8 HalRegisterLogRoutine : Ptr64 void <br> +0x1c0 HalResumeProcessorFromIdle : Ptr64 void <br> +0x1c8 Dummy : Ptr64 Void<br> +0x1d0 HalVectorToIDTEntryEx : Ptr64 unsigned long <br> +0x1d8 HalSecondaryInterruptQueryPrimaryInformation : Ptr64 long <br> +0x1e0 HalMaskInterrupt : Ptr64 long <br> +0x1e8 HalUnmaskInterrupt : Ptr64 long <br> +0x1f0 HalIsInterruptTypeSecondary : Ptr64 unsigned char <br> +0x1f8 HalAllocateGsivForSecondaryInterrupt : Ptr64 long <br> +0x200 HalAddInterruptRemapping : Ptr64 long <br> +0x208 HalRemoveInterruptRemapping : Ptr64 void <br> +0x210 HalSaveAndDisableHvEnlightenment : Ptr64 void <br> +0x218 HalRestoreHvEnlightenment : Ptr64 void <br> +0x220 HalFlushIoBuffersExternalCache : Ptr64 void <br> +0x228 HalFlushExternalCache : Ptr64 void <br> +0x230 HalPciEarlyRestore : Ptr64 long <br> +0x238 HalGetProcessorId : Ptr64 long <br> +0x240 HalAllocatePmcCounterSet : Ptr64 long <br> +0x248 HalCollectPmcCounters : Ptr64 void <br> +0x250 HalFreePmcCounterSet : Ptr64 void <br> +0x258 HalProcessorHalt : Ptr64 long <br> +0x260 HalTimerQueryCycleCounter : Ptr64 unsigned int64 <br> +0x268 Dummy3 : Ptr64 Void<br> +0x270 HalPciMarkHiberPhase : Ptr64 void <br> +0x278 HalQueryProcessorRestartEntryPoint : Ptr64 long <br> +0x280 HalRequestInterrupt : Ptr64 long <br> +0x288 HalEnumerateUnmaskedInterrupts : Ptr64 long <br> +0x290 HalFlushAndInvalidatePageExternalCache : Ptr64 void <br> +0x298 KdEnumerateDebuggingDevices : Ptr64 long <br> +0x2a0 HalFlushIoRectangleExternalCache : Ptr64 void <br> +0x2a8 HalPowerEarlyRestore : Ptr64 void <br> +0x2b0 HalQueryCapsuleCapabilities : Ptr64 long <br> +0x2b8 HalUpdateCapsule : Ptr64 long <br> +0x2c0 HalPciMultiStageResumeCapable : Ptr64 unsigned char <br> +0x2c8 HalDmaFreeCrashDumpRegisters : Ptr64 void <br> +0x2d0 HalAcpiAoacCapable : Ptr64 unsigned char <br> +0x2d8 HalInterruptSetDestination : Ptr64 long <br> +0x2e0 HalGetClockConfiguration : Ptr64 void <br> +0x2e8 HalClockTimerActivate : Ptr64 void <br> +0x2f0 HalClockTimerInitialize : Ptr64 void <br> +0x2f8 HalClockTimerStop : Ptr64 void <br> +0x300 HalClockTimerArm : Ptr64 long <br> +0x308 HalTimerOnlyClockInterruptPending : Ptr64 unsigned char <br> +0x310 HalAcpiGetMultiNode : Ptr64 void* <br> +0x318 HalPowerSetRebootHandler : Ptr64 <<a href="./<function>.html"><function></a><br> +0x320 HalIommuRegisterDispatchTable : Ptr64 void <br> +0x328 HalTimerWatchdogStart : Ptr64 void <br> +0x330 HalTimerWatchdogResetCountdown : Ptr64 void <br> +0x338 HalTimerWatchdogStop : Ptr64 void <br> +0x340 HalTimerWatchdogGeneratedLastReset : Ptr64 unsigned char <br> +0x348 HalTimerWatchdogTriggerSystemReset : Ptr64 long <br> +0x350 HalInterruptVectorDataToGsiv : Ptr64 long <br> +0x358 HalInterruptGetHighestPriorityInterrupt : Ptr64 long <br> +0x360 HalProcessorOn : Ptr64 long <br> +0x368 HalProcessorOff : Ptr64 long <br> +0x370 HalProcessorFreeze : Ptr64 long <br> +0x378 HalDmaLinkDeviceObjectByToken : Ptr64 long <br> +0x380 HalDmaCheckAdapterToken : Ptr64 long <br> +0x388 Dummy4 : Ptr64 Void<br> +0x390 HalTimerConvertPerformanceCounterToAuxiliaryCounter : Ptr64 long <br> +0x398 HalTimerConvertAuxiliaryCounterToPerformanceCounter : Ptr64 long <br> +0x3a0 HalTimerQueryAuxiliaryCounterFrequency : Ptr64 long <br> +0x3a8 HalConnectThermalInterrupt : Ptr64 long <br> +0x3b0 HalIsEFIRuntimeActive : Ptr64 unsigned char <br> +0x3b8 HalTimerQueryAndResetRtcErrors : Ptr64 unsigned char <br> +0x3c0 HalAcpiLateRestore : Ptr64 void <br> +0x3c8 KdWatchdogDelayExpiration : Ptr64 long <br> +0x3d0 HalGetProcessorStats : Ptr64 long <br> +0x3d8 HalTimerWatchdogQueryDueTime : Ptr64 unsigned int64 <br> +0x3e0 HalConnectSyntheticInterrupt : Ptr64 long <br> +0x3e8 HalPreprocessNmi : Ptr64 void <br> +0x3f0 HalEnumerateEnvironmentVariablesWithFilter : Ptr64 long <br> +0x3f8 HalCaptureLastBranchRecordStack : Ptr64 long <br> +0x400 HalClearLastBranchRecordStack : Ptr64 unsigned char <br> +0x408 HalConfigureLastBranchRecord : Ptr64 long <br> +0x410 HalGetLastBranchInformation : Ptr64 unsigned char <br> +0x418 HalResumeLastBranchRecord : Ptr64 void <br> +0x420 HalStartLastBranchRecord : Ptr64 long <br> +0x428 HalStopLastBranchRecord : Ptr64 long <br> +0x430 HalIommuBlockDevice : Ptr64 long <br> +0x438 HalIommuUnblockDevice : Ptr64 long <br> +0x440 HalGetIommuInterface : Ptr64 long <br> +0x448 HalRequestGenericErrorRecovery : Ptr64 long <br> +0x450 HalTimerQueryHostPerformanceCounter : Ptr64 long <br> +0x458 HalTopologyQueryProcessorRelationships : Ptr64 long <br> +0x460 HalInitPlatformDebugTriggers : Ptr64 void <br> +0x468 HalRunPlatformDebugTriggers : Ptr64 void <br> +0x470 HalTimerGetReferencePage : Ptr64 void* <br> +0x478 HalGetHiddenProcessorPowerInterface : Ptr64 long <br> +0x480 HalGetHiddenProcessorPackageId : Ptr64 unsigned long <br> +0x488 HalGetHiddenPackageProcessorCount : Ptr64 unsigned long <br> +0x490 HalGetHiddenProcessorApicIdByIndex : Ptr64 long <br> +0x498 HalRegisterHiddenProcessorIdleState : Ptr64 long <br> </font></body></html>
epikcraw/ggool
public/Windows 10 x64 (18362.116)/HAL_PRIVATE_DISPATCH.html
HTML
mit
8,993
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Microsoft; use JMS\Serializer\Annotation\ExclusionPolicy; use PHPExiftool\Driver\AbstractTag; /** * @ExclusionPolicy("all") */ class MediaType extends AbstractTag { protected $Id = 'MediaType'; protected $Name = 'MediaType'; protected $FullName = 'Microsoft::Xtra'; protected $GroupName = 'Microsoft'; protected $g0 = 'QuickTime'; protected $g1 = 'Microsoft'; protected $g2 = 'Video'; protected $Type = '?'; protected $Writable = false; protected $Description = 'Media Type'; }
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/Microsoft/MediaType.php
PHP
mit
796
# This file is part of Indico. # Copyright (C) 2002 - 2022 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import os from indico.core import signals from indico.core.db import db from .logger import logger from .oauth2 import require_oauth __all__ = ['require_oauth'] @signals.core.app_created.connect def _no_ssl_required_on_debug(app, **kwargs): if app.debug or app.testing: os.environ['AUTHLIB_INSECURE_TRANSPORT'] = '1' @signals.users.merged.connect def _delete_merged_user_tokens(target, source, **kwargs): target_app_links = {link.application: link for link in target.oauth_app_links} for source_link in source.oauth_app_links.all(): try: target_link = target_app_links[source_link.application] except KeyError: logger.info('merge: reassigning %r to %r', source_link, target) source_link.user = target else: logger.info('merge: merging %r into %r', source_link, target_link) target_link.update_scopes(set(source_link.scopes)) target_link.tokens.extend(source_link.tokens) db.session.delete(source_link)
indico/indico
indico/core/oauth/__init__.py
Python
mit
1,252
<!-- Latest statistical bulletins --> <section class="panel wrapper box box--padded--med panel--bottom-mar box--teal--separated-left solid border"> <header class="actionable-header__title"> <h2 class="actionable-header__title table-inline ">Latest statistical bulletins</h2> <a class="actionable-header--asidelink hide-med-down" href="#!{{getPath()}}/collection?contentType=bulletins" id="viewAllStatsBulletins">View more statistical bulletins</a> </header> <!-- Static Content if there is not related stats bulletin in the data --> <div class="grid-wrap" ng-if="!(taxonomy.data.statsBulletins)"> <div ng-if="getPage() != 'economy'" class="grid-col desktop-grid-one-third tablet-grid-one-half"> <article class="box--padded"> <div class="box__content"> <ul class="list--table"> <li class="">This content is not available in the prototype but in future will include related statistical bulletins</li> </ul> </div> </article> </div> <!-- /grid-col --> <div class="grid-col hide-large"> <a href="#!{{getPath()}}/collection?contentType=bulletins" id="viewAllStatsBulletins">View all statistical bulletins</a> </div> </div> <!-- /grid-wrap --> <!-- Dynamic Content --> <div class="grid-wrap" ng-if="(taxonomy.data.statsBulletins)"> <div ng-repeat="bulletin in taxonomy.data.statsBulletins track by $index" class="grid-col desktop-grid-one-third tablet-grid-one-half"> <article class="box--padded"> <header class="box__header"> <h3> <a href="#!{{bulletin.uri}}">{{bulletin.name}}</a> </h3> </header> <div class="box__content"> <ul class="list--table"> <li class="">{{bulletin.data.summary}}.</li> </ul> </div> </article> </div> <!-- /grid-col --> <div class="grid-col hide-large"> <a href="#!{{getPath()}}/collection?contentType=bulletins" id="viewAllStatsBulletins">View more statistical bulletins</a> </div> </div> </section>
ONSdigital/tredegar
src/main/resources/files/app/partials/latest-bulletins/latest-bulletins.html
HTML
mit
2,318
<!DOCTYPE html> <?xml version="1.0" encoding="UTF-8"?> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Earth Negotiations Bulletin: AWGs</title> <link href="../assets/style/bulletin.css" rel="stylesheet" /> </head> <body> <h1>Earth Negotiations Bulletin: AWGs</h1> <p><b>Bonn Climate Change Talks - May/June 2010</b></p> <p>04-Jun-10 &mdash; <a href="http://www.iisd.ca/vol12/enb12465e.html">original report</a></p> <div id="section_enb12465e_1"> <h2>SBSTA RESEARCH DIALOGUE</h2> <small>SBSTA</small> <p>SBSTA Chair Mama Konaté (Mali) opened the SBSTA dialogue on developments in research activities, recalling the SBSTA decision inviting research programmes to inform the SBSTA of scientific developments relevant to the Convention (FCCC/SBSTA/2007/4).</p> <p>Rik Leemans, Earth System Science Partnership, highlighted impacts of climate change on ecosystems and socio-economic systems and called for policy makers to search for win-win solutions addressing multiple challenges.</p> <p>Ghassem Asrar, World Climate Research Programme, spoke on planned activities that will use climate information for science-based decision-making, noting challenges in developing seasonal and regional climate prediction capabilities, and sea-level change and variability predictions.</p> <p>Sybil Seitzinger, International Geosphere-Biosphere Programme, stressed that ocean acidification is occurring and described the importance of biological life for absorbing carbon in the ocean, highlighting potential disruptions to fisheries.</p> <p>Ottmar Edenhofer, IPCC, discussed the outlines of the contributions by the three IPCC working groups to the Fifth Assessment Report (AR5), including bridges between the working groups. IPCC Vice-Chair Jean-Pascal van Ypersele emphasized that the IPCC is making maximum effort to reduce the potential for errors in the AR5.</p> <p>He also noted that the InterAcademy s review of IPCC policies and practices will be discussed by the IPCC in October 2010 to ensure that the AR5 is as policy relevant as possible without being prescriptive.</p> <p>Andrew Matthews, Asia Pacific Network for Global Change Research, outlined new programmes on REDD and pathways for sustainable development, as well as continuing activities on impact and vulnerability, data management and work relevant to the AR5.</p> <p>Elisabeth Lipiatou, Seventh Framework Programme, described the organization s regional work on climate change support in developing countries.</p> <p>She presented work on aerosols, sea ice and ocean acidification, as well as new research priorities on MRV methodologies and projected adaptation costs.</p> <p>John Padgham, Global Change SysTem for Analysis, Research and Training (START), discussed science policy dialogues aiming to foster better communication between scientists and policy makers in developing countries, stressing the importance, inter alia , of: addressing capacity and knowledge gaps; improving access to data; using integrated inter-sectoral planning; and enhancing communication pathways.</p> <p>Ann Gordon, National Meteorological Service of Belize, said priority needs for the Caribbean Region include studies on: the relationship between melting ice sheets and sea-level rise; the impacts of 1.5°C, 2°C and 3°C temperature rise on sea levels, as well as on maritime and terrestrial life; integrated assessments of the interplay between ecosystems; and social impacts of climate change.</p> <p>David Warrilow, Department of Energy and Climate Change, UK, identified key challenges, such as: describing the impacts of different levels of temperature rise; identifying critical tipping points; clarifying risks and damages; and considering negative effects on human security.</p> <p>Hiroki Kondo, Ministry of Education, Culture, Sport, Science and Technology of Japan, focused on modeling efforts, including, inter alia : satellite observation to provide global data; climate risk assessment; simulation of physical and geochemical processes; and addressing uncertainties in climate model projections.</p> <p>Birama Diarra, Direction Nationale de la Météorologie, Mali, identified research needs and challenges for Africa: the insufficiency of data and data networks; high costs of equipment; and a lack of studies on the frequency and intensity of extreme events.</p> <p>He called for enhancing knowledge on the needs of the agriculture sector.</p> <p>Benjamin Zaitchik, Office of Global Change, Bureau of Oceans, Environment and Science, US, called for making better use of available information and identified the need to: reorganize science around scientific-societal issues; strengthen stakeholder participation in research; and move towards a flexible, comprehensive, integrated and cross-cutting scientific approach.</p> </div> <div id="section_enb12465e_2"> <h2>DECISION 1/CP.10 (SBI)</h2> <p>In the contact group on progress on the implementation of decision 1/CP.10 (Buenos Aires programme of work on adaptation and response measures), SBI Chair Robert Owen-Jones (Australia) introduced the new draft decision text.</p> <p>SAUDI ARABIA noted that quite a few elements of the G-77/China s position seemed to be conspicuously absent.</p> <p>The Cook Islands, for AOSIS, emphasized that the document should be oriented towards implementation on the ground.</p> <p>With AUSTRALIA and BURKINA FASO, she also requested reference to particularly vulnerable states, including SIDS and LDCs.</p> <p>AUSTRALIA and Spain, for the EU, emphasized that the document should acknowledge that implementation is already occurring. REVIEW OF THE ADAPTATION FUND (SBI): During the contact group, Co-Chair Ruleta Camacho (Antigua and Barbuda) recalled the mandate to agree on the terms of reference (TORs) for the review of the Adaptation Fund (AF) to be undertaken by COP/MOP 6 and highlighted the proposed TORs prepared by the Secretariat (FCCC/SBI/2010/7).</p> <p>The Philippines, for the G-77/CHINA, submitted a proposal for the TORs and parties agreed to consult on the basis of the G-77/China s proposal.</p> <p>Several parties, including the EU and Antigua and Barbuda, for AOSIS, requested information on the performance reviews of the interim secretariat and trustee servicing the AF, and on the annual report by the Adaptation Fund Board (AFB).</p> <p>Co-Chair Camacho clarified that the report by the AFB will have to be presented by September.</p> <p>NORWAY, supported by the EU, AOSIS and AUSTRALIA, urged also including the review of the AFB in the TORs.</p> <p>AOSIS proposed including reference to the CDM project cycle regarding a potential bottleneck in funding for the AF and BANGLADESH stressed the importance of ensuring funding.</p> </div> <div id="section_enb12465e_3"> <h2>ITEM 3 (AWG-LCA): Shared Vision</h2> <p>During the AWG-LCA contact group in the morning, parties focused on a shared vision for long-term cooperative action, based on questions by the AWG-LCA Chair ( http://unfccc.int/files/meetings/ad_hoc_working_groups/lca/application/pdf/indicative_questions_for_cg_shared_vision.pdf ).</p> <p>The Philippines, for the G-77/CHINA, stated that the preamble of the text on a shared vision should set out the bigger picture, including concepts such as historical responsibility, justice, equity and burden sharing, as well as the effective implementation of developed countries commitments.</p> <p>He called for articulation of, inter alia , the rights of Mother Earth, indigenous and local community rights, and the avoidance of climate change-related trade measures.</p> <p>He also highlighted the need for a shared vision for all the building blocks and the articulation of the maximum global temperature increase goal and global emission reduction goal.</p> <p>On the review process, he highlighted the need to review the adequacy and effectiveness of developed country commitments.</p> <p>Emphasizing that the issue of vulnerability is not a matter for negotiation, Uganda, for the LDCs, lamented that some elements important to the LDCs were missing from the text.</p> <p>He explained that the shared vision should be underpinned by concrete action in the operative part with equal importance given to adaptation and mitigation, taking into account national circumstances, especially of the LDCs and SIDS.</p> <p>SOUTH AFRICA said the preamble should cover a shared vision for each building block.</p> <p>She highlighted the long-term global goal as more than just a number, but also nothing without a number. ANTIGUA AND BARBUDA supported the articulation of a shared vision for each of the building blocks.</p> <p>On the global goal, she highlighted, inter alia : limiting temperature increase to well below 1.5°C from pre-industrial levels; peaking emissions by 2015; stabilizing greenhouse gas concentrations at well below 350 parts per million (ppm) of carbon dioxide (CO2) equivalent; and a global long-term goal for emission reductions of 85% from 1990 levels by 2050.</p> <p>She observed that the review should assess the adequacy of the long-term global goal and emission reductions, and that the first review should be initiated by the COP in 2013 and concluded by 2015, with subsequent reviews every five years. NEW ZEALAND opposed articulating a shared vision for each of the building blocks, noting that the shared vision should encapsulate what we want to achieve.</p> <p>He observed that the review should be conducted thoroughly and periodically.</p> <p>The US highlighted high-level guidance from Copenhagen and noted that the application of the Convention s principles evolves as the world changes.</p> <p>He supported retaining structural linkages and including a review provision, and said the 2°C goal, to which the political leaders have committed, should guide the vision. INDIA called for a balanced treatment of the building blocks and stressed that the global long-term goal must be linked to an equitable burden-sharing paradigm and challenges that developing countries face in terms of poverty eradication.</p> <p>CHINA and INDIA stressed the need to avoid protectionist trade measures in the name of climate change action.</p> <p>SINGAPORE and BRAZIL called for including text on an open international economic system and on parties not using trade measures that lead to arbitrary discrimination or constitute disguised trade restrictions.</p> <p>Panama, for the CENTRAL AMERICAN INTEGRATION SYSTEM, stressed the urgent need for a legally-binding agreement and underscored that their region is among the most vulnerable in the world.</p> <p>He called for stabilizing greenhouse gas concentrations to below 350 ppm of CO2 equivalent and ensuring that the global average temperature increase does not exceed 1.5°C. JAPAN called for a clear and concise vision and reiterated support for a fair and effective single legal framework.</p> <p>He highlighted the 2°C target, identified the need to review the level of ambition based on rigorous science and supported a 50% global emission reduction target by 2050.</p> <p>AUSTRALIA supported a clear and concise roadmap, saying the detailed tools to implement it should be placed under thematic decisions.</p> <p>She said the Copenhagen Accord provides excellent guidance, and called for reflecting agreement on the 2°C target with the possibility of strengthening it and on peaking global emissions as soon as possible.</p> <p>She said the text should guide parties towards a legally-binding framework and called for a common section on mitigation.</p> <p>The EU stressed the need to operationalize the 2°C target that was agreed in Copenhagen, saying global emissions should peak by 2020 and be reduced by at least 50% by 2050.</p> <p>He also said developed countries should reduce their emissions by 80-95% by 2050. BOLIVIA called for limiting the temperature increase to 1°C and stabilization at as close to 300 ppm as possible.</p> <p>He urged developed countries to reduce emissions by 50% from 1990 levels by 2017 without the use of market mechanisms.</p> <p>He also called for recognition of developed countries climate debt, decolonization of the atmospheric space and addressing unsustainable production and consumption in developed countries.</p> <p>BOLIVIA also supported the establishment of an international court of climate and environmental justice and democratic participation with world referenda on climate issues. CHINA said the text on a shared vision should provide guidance on action on the building blocks and not be operational text.</p> <p>He also emphasized that a shared vision should not be narrowed down to only a global goal on emission reductions and explained that the global long-term goal should be expressed in a balanced way, with a link to ambitious mid-term emission reductions by developed countries and support for developing countries.</p> <p>He said the review should be consistent with the Convention and focus on Annex I emission reductions as well as their support for developing countries. PAKISTAN supported the articulation of a shared vision for all the building blocks and emphasized that peaking periods for developing countries were conditional on the development threshold. INDONESIA supported a review process every five years.</p> <p>NORWAY emphasized the need for global emissions to peak at the earliest possible time and proposed that a review process be conducted regularly.</p> <p>Switzerland, for the ENVIRONMENTAL INTEGRITY GROUP, stated that a shared vision should articulate thematic areas of the Bali Action Plan towards the achievement of a long-term global goal and that the global goal for emission reductions should be expressed in such a way as to guide actions in a political and technical way.</p> <p>He highlighted the role of national greenhouse gas inventories in a periodic review process.</p> </div> <div id="section_enb12465e_4"> <h2>Mitigation</h2> <p>During the AWG-LCA contact group in the afternoon, parties focused on mitigation commitments or actions by developed country parties and associated monitoring, reporting and verification (MRV) based on questions by the AWG-LCA Chair ( http://unfccc.int/files/meetings/ad_hoc_working_groups/lca/application/pdf/1b(i)_questions_for_web_final.pdf ).</p> <p>Brazil, for the G-77/CHINA, identified the need for stronger language on using the Kyoto Protocol as the basis for Annex I MRV and compliance, and recalled the G-77/China s proposal for a technical panel on comparability of developed countries mitigation efforts.</p> <p>He explained that comparability of efforts is not a principle, but that it relates to magnitude of emission reductions, compliance, legal form and MRV.</p> <p>The G-77/CHINA stressed that commitments should be defined top down, reflect science, and be part of the formal outcome of the negotiations.</p> <p>He said the Protocol should also guide LULUCF accounting rules and identified the need to strengthen these rules.</p> <p>Barbados, for AOSIS, urged agreement on Annex I aggregate emission reductions of at least 45% from 1990 levels by 2020.</p> <p>He noted relevant discussions under the AWG-KP and expressed willingness to explore the possibility of a common space to discuss this issue.</p> <p>He stressed that discussions should be limited to the scale of ambition of Annex I aggregate emission reductions and that the two-track process should be maintained.</p> <p>COLOMBIA, also speaking for Chile, Costa Rica, the Dominican Republic, Guatemala, Panama, Peru and Uruguay, expressed great interest in the proposal by AOSIS.</p> <p>The US emphasized that Annex I countries put forward their targets before and after Copenhagen.</p> <p>On the need to set a collective goal for emission reductions, he highlighted the goal of limiting temperature increase to 2°C, which may be strengthened by 2015.</p> <p>He said all credible mitigation actions, including LULUCF, should count for commitments.</p> <p>The US stressed the need for provisions on MRV and on international consultation and analysis, indicating that reaching agreement on a fully operational system is essential this year.</p> <p>He emphasized that MRV for Annex I countries must be considered in tandem with international consultation and analysis for non-Annex I countries and, with CANADA, proposed a separate chapter on this.</p> <p>Switzerland, for the ENVIRONMENTAL INTEGRITY GROUP, requested a discussion on the legal nature of the work and a compilation of pledges of all developed country parties.</p> <p>With many other developed countries, he noted the importance of LULUCF and market based instruments.</p> <p>South Africa, for the AFRICAN GROUP, offered a proposal to insert a collective mid-term goal and then agree on a process to negotiate pledges leading to at least a 40% reduction by 2020. JAPAN stressed the need to coordinate work with the AWG-KP and to revise the MRV system to include both Annex I and non-Annex I parties, taking into account differences between them.</p> <p>AUSTRALIA expressed support for devoting a portion of the meeting to discussing MRV.</p> <p>The EU said MRV under the Protocol needs to be linked to discussions under the AWG-LCA. NEW ZEALAND stressed consideration of MRV for all countries through a common but different framework.</p> <p>CHINA highlighted comparability as the core of sub-paragraph 1(b)(i) of the BAP, and said the same provisions on third party review, LULUCF and offsets should apply to Protocol parties and non-parties.</p> <p>SOUTH AFRICA requested a new chapter in the text on how Annex I countries will implement their targets for 2020, what the compliance system will look like, and how MRV will be ensured. BOLIVIA emphasized that the Protocol must be maintained, and that the Protocol compliance mechanism should be applied and strengthened.</p> <p>INDONESIA stressed MRV as a key element in the achievement of developed countries reduction objectives.</p> <p>The PHILIPPINES supported a top-down approach to setting science-based targets, with the objective of not exceeding a 1.5°C temperature increase. NORWAY stressed economy-wide targets as an important way of ensuring comparability, and highlighted the role of market mechanisms.</p> <p>The RUSSIAN FEDERATION said a collective emission reduction goal might be a useful tool for indicating the aspiration of countries, while saying it should not be used for defining individual targets. INDIA emphasized that MRV of developed country support must be more rigorous than that of MRV of developing country mitigation actions.</p> <p>NICARAGUA highlighted the importance of domestic reductions.</p> <p>Chair Mukahanana-Sangarwe said that as parties had reiterated their known positions, she did not have a basis to revise the text.</p> <p>Responding to Grenada on how she intents to proceed with the proposal by AOSIS, Chair Mukahanana-Sangarwe said she would consult with the AWG-KP Chair on the potential for joint discussions. CONVENTION ARTICLE 6 (SBI): The contact group on Convention Article 6 (education, training and public awareness) focused on the intermediate review of the implementation of the New Delhi work programme, as mandated by decision 9/CP.13 (amended New Delhi work programme on Article 6 of the Convention).</p> <p>Chair Liana Bratasida (Indonesia) proposed preparing draft text containing the TORs for the intermediate review for parties consideration at the next meeting of the group.</p> <p>Many parties supported the Chair s proposal.</p> <p>JAPAN, supported by many parties, suggested inviting submissions from parties on good practices and lessons learned, as input for the interim review.</p> <p>Spain, for the EU, proposed extending the invitation to intergovernmental and non-governmental organizations. YOUTH urged parties to adopt a proper review process and proposed: extending the work programme beyond 2010; giving the Secretariat a broad mandate to conduct the review in an inclusive manner; including young people in national work programmes, and also inviting submissions from civil society; and providing sufficient financing for the Secretariat to organize regional workshops in Africa and the LDCs.</p> <p>The Gambia, for the G-77/CHINA, suggested requesting the Secretariat to compile and synthesize the outcomes and recommendations from the regional workshops held so far, together with the implementation of these outcomes and recommendations.</p> <p>The EU suggested including an invitation to parties to provide funding for the regional workshops yet to be held. UKRAINE urged for the implementation of Convention Article 6(b)(ii) (development and implementation of education and training programmes) to be extended to countries with economies in transition.</p> <p>NEPAL called for extending the work programme for at least five years.</p> <p>Responding to a request by the US, the Secretariat provided an update of the implementation of the Climate Change Information Network (CC:iNet).</p> <p>He explained that the Secretariat is in the process of developing its full-scale implementation and expects to launch additional functionalities before Cancún.</p> <p>The DOMINICAN REPUBLIC highlighted the proposal to establish a financial mechanism to support projects and programmes in relation to the implementation of Article 6.</p> <p>MALAWI questioned why no regional workshop had been organized in Africa and the Secretariat responded that this was due to lack of funds.</p> <p>The Chair will prepare draft conclusions and informal consultations will continue. OTHER ISSUES (AWG-KP) In informal consultations on LULUCF, delegates discussed a proposal from developing countries on constructing reference levels. ANNEX I EMISSION REDUCTIONS (AWG-KP): In the afternoon, parties addressed the need to reconstitute the legal issues contact group in order to analyze the entry into force of Protocol amendments to avoid a gap between commitment periods.</p> <p>Parties agreed to request the AWG-KP Chair to reconstitute the legal issues contact group.</p> <p>The Secretariat presented a paper compiling pledges, related assumptions and associated emission reductions (FCCC/KP/AWG/2010/INF.1).</p> <p>CHINA emphasized that the current pledges are not sufficient.</p> <p>The Federated States of Micronesia, for AOSIS, stressed the need for more specific information from parties to chisel down into what the numbers actually mean. COLOMBIA, supported by GRENADA, the PHILIPPINES and BARBADOS, called for a joint discussion of emission reductions by all Annex I countries.</p> <p>AUSTRALIA, supported by JAPAN and NORWAY, called for a broader discussion of what is happening globally, saying it is important to analyze the level of ambition of the flood of international pledges in the wake of Copenhagen.</p> <p>CHINA opposed any attempt to merge the two AWGs but said they could go along with the proposal by Colombia if the discussion was strictly limited to discussion of Annex I emission reductions and was compatible with the respective mandates of the AWGs.</p> <p>BOLIVIA, VENEZUELA, SINGAPORE, SUDAN and BRAZIL opposed broader discussions.</p> <p>AUSTRALIA emphasized that no single group of countries is able to deliver the level of ambition necessary to address climate change and that if ambitions were to be hardened down to specific numbers, a broader discussion would be the next step.</p> <p>ARGENTINA said that a joint discussion is premature.</p> <p>INDIA opposed discussions of developing countries emission reductions.</p> <p>SAUDI ARABIA stressed that they would not accept a joint discussion.</p> <p>Intervening on a point of order, the US emphasized that they would oppose any effort to discuss their emission reductions in the context of Annex I emission reductions under the Kyoto Protocol. CAPACITY BUILDING UNDER THE CONVENTION (SBI): Co-Chair Jaudet introduced new draft text containing draft SBI conclusions and a draft COP decision.</p> <p>JAPAN, AUSTRALIA and the US noted that, although there are portions of the text that could be acceptable as a basis for discussions, the text contains some elements that will take parties back to previous discussions and disagreements.</p> <p>JAPAN, supported by the US and others, but opposed by Tanzania, for the G-77/CHINA, proposed inviting presentations from the UN Development Programme and from any other interested party or organization, on experiences of monitoring and evaluation within countries. ARRANGEMENTS FOR INTERGOVERNMENTAL MEETINGS (SBI): In the contact group, parties discussed observer organizations in the intergovernmental process.</p> <p>Highlighting lessons from Copenhagen, UNFCCC Executive Secretary de Boer outlined plans for pre-meeting online registration and said two projects would be initiated, one on streamlining and improving stakeholder participation and another to draw together best practices on stakeholder involvement from the UN system.</p> <p>The International Trade Union Confederation, for ENGOs, YOUTH, WOMEN and GENDER, LOCAL GOVERNMENTS and INDIGENOUS ORGANIZATIONS, underscored that the full and effective participation of civil society provides legitimacy to the UNFCCC process and called for guidelines on civil society participation to be revised before COP 16.</p> <p>She highlighted access to informal consultations and called for equal treatment of side events by parties and by civil society, as well as for the right for observers to vocally demonstrate.</p> <p>On the issue of stunts, the CLIMATE ACTION NETWORK emphasized the need to be able to express frustration and to participate in vocal demonstrations.</p> <p>Many parties acknowledged the role of stakeholders and supported their active engagement.</p> <p>Bangladesh, for the G-77/CHINA, noted the need to strike an appropriate balance bearing in mind that the process is party-driven.</p> <p>AUSTRALIA, with BOLIVIA, highlighted unnecessary burdens such as observers being required to register significantly in advance without the ability to change names on delegations.</p> <p>The US called for guidelines to ensure a more predictable process, especially for the high-level segment.</p> <p>The PHILIPPINES called for a differentiation between observers, particularly NGOs and IGOs.</p> </div> <div id="section_enb12465e_5"> <h2>IN THE CORRIDORS</h2> <small>corridors</small> <p>In contrast to the déjà vu feeling expressed by many delegates at the end of Wednesday, on Thursday evening, many delegates said they were positively surprised by what they saw as signs of possible movement concerning an issue that has remained a sticking point for a long time.</p> <p>They referred to the proposal by AOSIS, supported by some other developing countries, for joint discussions by the two AWGs of Annex I emission reductions.</p> <p>As one developed country delegate put it: We ve been calling for cooperation between the two AWGs for a very long time which is why I was pleasantly surprised by the proposal and that it did not receive quite as much opposition as I would have expected.</p> <p>Other developed country delegates remarked, however, that there was still strong opposition to the idea of broader joint discussions on mitigation.</p> <p>Although some developing country delegates seemed very positive about this idea of joint discussions limited to Annex I parties some were wondering if it would be possible to get all developing countries to agree on the proposal.</p> <p>And then there is obviously the US I am not sure whether they are willing to accept such discussions, commented one delegate, continuing: We have to see what happens when groups have had time to coordinate.</p> <p>Some also made positive remarks on the agreement to reconstitute the legal issues group under the AWG-KP and on the LULUCF submission by developing countries: Things are suddenly picking up and discussions are becoming more animated and constructive!</p> </div> <script type="text/javascript" src="../assets/src/bulletin.js"></script> </body> </html>
medialab/climateDebateExplorer
ENB-data/enb_pages/enb12465e.html
HTML
mit
28,932
<?php /** * Created by PhpStorm. * User: Josh Houghtelin <[email protected]> * Date: 12/19/14 * Time: 6:08 PM */ require __DIR__.'/../vendor/autoload.php'; require __DIR__.'/api_key.php'; $vrp = new \Gueststream\Vrp($api_key); print_r($vrp->isOnline());
Gueststream-Inc/gueststream-php
examples/is_online.php
PHP
mit
265
using FlaUI.Core.AutomationElements.Infrastructure; using FlaUI.Core.Patterns; namespace FlaUI.Core.AutomationElements.PatternElements { /// <summary> /// An element which supports the <see cref="ISelectionItemPattern" />. /// </summary> public class SelectionItemAutomationElement : AutomationElement { /// <summary> /// Creates a <see cref="SelectionItemAutomationElement"/> element. /// </summary> public SelectionItemAutomationElement(BasicAutomationElementBase basicAutomationElement) : base(basicAutomationElement) { } /// <summary> /// Pattern object for the <see cref="ISelectionItemPattern"/>. /// </summary> protected ISelectionItemPattern SelectionItemPattern => Patterns.SelectionItem.Pattern; /// <summary> /// Value to get/set if this element is selected. /// </summary> public virtual bool IsSelected { get => SelectionItemPattern.IsSelected; set { if (IsSelected == value) return; if (value && !IsSelected) { Select(); } } } /// <summary> /// Selects the element. /// </summary> public virtual SelectionItemAutomationElement Select() { ExecuteInPattern(SelectionItemPattern, true, pattern => pattern.Select()); return this; } /// <summary> /// Adds the element to the selection. /// </summary> public virtual SelectionItemAutomationElement AddToSelection() { ExecuteInPattern(SelectionItemPattern, true, pattern => pattern.AddToSelection()); return this; } /// <summary> /// Removes the element from the selection. /// </summary> public virtual SelectionItemAutomationElement RemoveFromSelection() { ExecuteInPattern(SelectionItemPattern, true, pattern => pattern.RemoveFromSelection()); return this; } } }
maxinfet/FlaUI
src/FlaUI.Core/AutomationElements/PatternElements/SelectionItemAutomationElement.cs
C#
mit
2,132
#ifndef __SEQ_HPP__ #define __SEQ_HPP__ #include <string> #include <vector> #include <memory> #include <iostream> class SeqNode; typedef std::shared_ptr<SeqNode> SeqNodeSP; class SeqNode { public: enum E_CallType { E_UNKNOWN, E_SYNC, E_ASYNC, E_ASYNC_WAIT }; SeqNode(); void printTree(std::ostream &out,int tabcnt=0); void setCallType(E_CallType calltype); void setTaskSrc(const std::string& src); void setTaskDst(const std::string& dst); void setFunction(const std::string& func); void setReturn(const std::string& ret); void appendFuncParam(const std::string& param); void appendFuncExtra(const std::string& extra); void appendFuncMemo(const std::string& memo); friend void AppendChild(SeqNodeSP parent, SeqNodeSP child); protected: std::string toString(); private: E_CallType m_call_type; std::string m_task_src; std::string m_task_dst; std::string m_func_name; std::string m_func_ret; std::vector<std::string> m_func_param; std::vector<std::string> m_func_extra; std::vector<std::string> m_func_memo; std::vector< SeqNodeSP > m_child; std::weak_ptr<SeqNode> m_parent; }; SeqNodeSP CreateNode(); void AppendChild(SeqNodeSP parent, SeqNodeSP child); void SetMember(SeqNodeSP node,const std::string& key, const std::string& value); #endif
thuleqaid/boost_study
demo-xml/include/seq.hpp
C++
mit
1,305
<?php class Upload { private $error = array(); private $name; private $ext; private $orgWidth; private $orgHeight; private $width; private $height; private $maxWidth = 0; private $maxHeight = 0; private $prefix; private $suffix; private $uploadedFile; private $source; private $newImage; private $KB = 1024; private $MB = 1048576; private $GB = 1073741824; private $TB = 1099511627776; function __construct(array $fileToUpload) { $this->name = pathinfo($fileToUpload['name'], PATHINFO_FILENAME); $this->ext = strtolower(pathinfo($fileToUpload['name'], PATHINFO_EXTENSION)); $this->filesize = $fileToUpload['size']; $this->uploadedFile = $fileToUpload['tmp_name']; $this->orgWidth = getimagesize($this->uploadedFile)[0]; $this->orgHeight = getimagesize($this->uploadedFile)[1]; $this->setWidth($this->orgWidth); $this->setHeight($this->orgHeight); if (!file_exists($this->uploadedFile) OR $this->filesize == 0) { $this->error[] = _("You have to upload something!"); } } public function errors() { return $this->error; } public function AllowedTypes(array $types) { if (!in_array(mime_content_type($this->uploadedFile), $types)) { $this->error[] = _("This type of file is not allowed!"); } } public function GetType() { return mime_content_type($this->uploadedFile); } public function setMaxSize($size, $type) { if ($this->filesize > $size * $this->$type) { $this->error[] = _("Your file hits the limit!"); } } public function getImageHeight() { return $this->orgHeight; } public function getImageWidth() { return $this->orgWidth; } public function setPrefix($prefix) { $this->prefix = $prefix; } public function setSuffix($suffix) { $this->suffix = $suffix; } public function setWidth($width) { $this->width = $width; } public function setHeight($height) { $this->height = $height; } public function setMaxWidth($width) { $this->maxWidth = $width; } public function setMaxHeight($height) { $this->maxHeight = $height; } public function setPath($path) { $this->path = $path; } public function setName($name) { $this->name = $name; } public function rotateImage($degrees = 90, $filename) { $source = imagecreatefromjpeg($filename); $rotate = imagerotate($source, $degrees, 0); imagejpeg($rotate, $filename, 100); imagedestroy($source); imagedestroy($rotate); } public function Move() { if (!empty($this->error)) { return false; } $filename = $this->prefix . $this->name . $this->suffix . "." . $this->ext; if (move_uploaded_file($this->uploadedFile, $this->path . $filename)) { return $this->prefix . $this->name . $this->suffix . "." . $this->ext; } else { return false; } } public function Render() { if (!empty($this->error)) { return false; } $width = $this->width; if ($this->height == $this->orgHeight) { $height = ($this->orgHeight / $this->orgWidth) * $width; } else { $height = $this->height; } if ($this->maxWidth != 0 && $width > $this->maxWidth) { $width = $this->maxWidth; } if ($this->maxHeight != 0 && $height > $this->maxHeight) { $height = $this->maxHeight; } $this->newImage = imagecreatetruecolor($width, $height); switch ($this->ext) { case 'png': imagealphablending($this->newImage, false); imagesavealpha($this->newImage, true); $this->source = imagecreatefrompng($this->uploadedFile); imagecopyresampled($this->newImage, $this->source, 0, 0, 0, 0, $width, $height, $this->orgWidth, $this->orgHeight); $filename = $this->path . $this->prefix . $this->name . $this->suffix . "." . $this->ext; imagepng($this->newImage, $filename, 9); break; case 'gif': $this->source = imagecreatefromgif($this->uploadedFile); imagecopyresampled($this->newImage, $this->source, 0, 0, 0, 0, $width, $height, $this->orgWidth, $this->orgHeight); $filename = $this->path . $this->prefix . $this->name . $this->suffix . "." . $this->ext; imagegif($this->newImage, $filename); break; case 'jpeg': case 'jpg': $this->source = imagecreatefromjpeg($this->uploadedFile); imagecopyresampled($this->newImage, $this->source, 0, 0, 0, 0, $width, $height, $this->orgWidth, $this->orgHeight); $filename = $this->path . $this->prefix . $this->name . $this->suffix . "." . $this->ext; imagejpeg($this->newImage, $filename, 100); $exif = exif_read_data($this->uploadedFile); if(isset($exif['Orientation'])) { switch ($exif['Orientation']) { case 3: $this->rotateImage(180, $filename); break; case 6: $this->rotateImage(-90, $filename); break; case 8: $this->rotateImage(90, $filename); break; } } break; } imagedestroy($this->newImage); return $this->prefix . $this->name . $this->suffix . "." . $this->ext; } public function Clean() { imagedestroy($this->source); } }
MacXGaming/PHP-Uploader
Upload.php
PHP
mit
6,087
using System; using System.Collections.Generic; namespace RefinId.Specs { public class TestStorage : ILongIdStorage { private List<long> _values; public TestStorage(params long[] values) { _values = new List<long>(values); } public List<long> Values { get { return _values; } } public List<long> GetLastValues(bool requestFromRealTables = false) { return new List<long>(_values); } public void SaveLastValues(IEnumerable<long> values, bool removeUnusedRows = true) { _values = new List<long>(values); } public void SaveLastValue(long value) { SaveLastValues(new[] { value }); } public TableCommandBuilder Builder { get { throw new NotImplementedException(); } } } }
OlegAxenow/refinid
Refinid.Specs/TestStorage.cs
C#
mit
737
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>compcert: 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.2 / compcert - 3.9</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> compcert <small> 3.9 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-25 22:42:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-25 22:42:58 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.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.5.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; authors: &quot;Xavier Leroy &lt;[email protected]&gt;&quot; maintainer: &quot;Jacques-Henri Jourdan &lt;[email protected]&gt;&quot; homepage: &quot;http://compcert.inria.fr/&quot; dev-repo: &quot;git+https://github.com/AbsInt/CompCert.git&quot; bug-reports: &quot;https://github.com/AbsInt/CompCert/issues&quot; license: &quot;INRIA Non-Commercial License Agreement&quot; build: [ [&quot;./configure&quot; &quot;amd64-linux&quot; {os = &quot;linux&quot;} &quot;amd64-macosx&quot; {os = &quot;macos&quot;} &quot;amd64-cygwin&quot; {os = &quot;cygwin&quot;} # This is for building a MinGW CompCert with cygwin host and cygwin target &quot;amd64-cygwin&quot; {os = &quot;win32&quot; &amp; os-distribution = &quot;cygwinports&quot;} # This is for building a 64 bit CompCert on 32 bit MinGW with cygwin build host &quot;-toolprefix&quot; {os = &quot;win32&quot; &amp; os-distribution = &quot;cygwinports&quot; &amp; arch = &quot;i686&quot;} &quot;x86_64-pc-cygwin-&quot; {os = &quot;win32&quot; &amp; os-distribution = &quot;cygwinports&quot; &amp; arch = &quot;i686&quot;} &quot;-prefix&quot; &quot;%{prefix}%&quot; &quot;-install-coqdev&quot; &quot;-clightgen&quot; &quot;-use-external-Flocq&quot; &quot;-use-external-MenhirLib&quot; &quot;-coqdevdir&quot; &quot;%{lib}%/coq/user-contrib/compcert&quot; &quot;-ignore-coq-version&quot;] [make &quot;-j%{jobs}%&quot; {ocaml:version &gt;= &quot;4.06&quot;}] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;coq&quot; {&gt;= &quot;8.9.0&quot; &amp; &lt; &quot;8.15~&quot;} &quot;menhir&quot; {&gt;= &quot;20190626&quot; } &quot;ocaml&quot; {&gt;= &quot;4.05.0&quot;} &quot;coq-flocq&quot; {&gt;= &quot;3.1.0&quot; &amp; &lt; &quot;4~&quot;} &quot;coq-menhirlib&quot; {&gt;= &quot;20190626&quot;} ] synopsis: &quot;The CompCert C compiler (64 bit)&quot; tags: [ &quot;category:Computer Science/Semantics and Compilation/Compilation&quot; &quot;category:Computer Science/Semantics and Compilation/Semantics&quot; &quot;keyword:C&quot; &quot;keyword:compiler&quot; &quot;logpath:compcert&quot; &quot;date:2021-05-10&quot; ] url { src: &quot;https://github.com/AbsInt/CompCert/archive/v3.9.tar.gz&quot; checksum: &quot;sha512=485cbed95284c93124ecdea536e6fb9ea6a05a72477584204c8c3930759d27b0949041ae567044eda9b716a33bba4315665a8d3860deebf851e10c9a4ef88684&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-compcert.3.9 coq.8.5.2</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.2). The following dependencies couldn&#39;t be met: - coq-compcert -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) 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-compcert.3.9</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"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </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.04.2-2.0.5/released/8.5.2/compcert/3.9.html
HTML
mit
8,106