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
<?php namespace TheCodingMachine\Yaco\Discovery; use Interop\Container\ContainerInterface; use Interop\Container\Factory\ContainerFactoryInterface; use Puli\Discovery\Api\Discovery; use Puli\Discovery\Binding\ClassBinding; use Symfony\Component\Filesystem\Filesystem; use TheCodingMachine\Yaco\Compiler; /** * A class in charge of instantiating the default Yaco container. */ class YacoFactory implements ContainerFactoryInterface { /** * Creates a container. * * @param ContainerInterface $rootContainer * @param Discovery $discovery * * @return ContainerInterface */ public static function buildContainer(ContainerInterface $rootContainer, Discovery $discovery) { $containerFile = self::getContainerFilePath(); if (!file_exists($containerFile)) { self::compileContainer($discovery); } if (!is_readable($containerFile)) { throw new YacoFactoryNoContainerException('Unable to read file ".yaco/Container.php" at project root.'); } require_once $containerFile; return new \TheCodingMachine\Yaco\Container($rootContainer); } /** * Creates the container file from the discovered providers. * * @param Discovery $discovery */ public static function compileContainer(Discovery $discovery) { $containerFile = self::getContainerFilePath(); $compiler = new Compiler(); $bindings = $discovery->findBindings('container-interop/DefinitionProviderFactories'); $definitionProviders = []; $priorities = []; foreach ($bindings as $binding) { /* @var $binding ClassBinding */ $definitionProviderFactoryClassName = $binding->getClassName(); // From the factory class name, let's call the buildDefinitionProvider static method to get the definitionProvider. $definitionProviders[] = call_user_func([ $definitionProviderFactoryClassName, 'buildDefinitionProvider' ], $discovery); $priorities[] = $binding->getParameterValue('priority'); } // Sort definition providers according to their priorities. array_multisort($priorities, $definitionProviders); foreach ($definitionProviders as $provider) { $compiler->register($provider); } $containerFileContent = $compiler->compile('\\TheCodingMachine\\Yaco\\Container'); $filesystem = new Filesystem(); if (!$filesystem->exists(dirname($containerFile))) { $filesystem->mkdir(dirname($containerFile)); } $filesystem->dumpFile($containerFile, $containerFileContent); $filesystem->chmod($containerFile, 0664); } /** * @return string */ public static function getContainerFilePath() { return __DIR__.'/../../../../.yaco/Container.php'; } }
thecodingmachine/yaco-discovery
src/YacoFactory.php
PHP
mit
2,891
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>multiplier: 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.1 / multiplier - 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> multiplier <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-18 14:03:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-18 14:03:32 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-ocamlbuild base OCamlbuild binary and libraries 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.9.1 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 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/multiplier&quot; license: &quot;LGPL 2&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Multiplier&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:hardware verification&quot; &quot;keyword:circuit&quot; &quot;category:Computer Science/Architecture&quot; &quot;category:Miscellaneous/Extracted Programs/Hardware&quot; ] authors: [ &quot;Christine Paulin &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/multiplier/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/multiplier.git&quot; synopsis: &quot;Proof of a multiplier circuit&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/multiplier/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=5dff8fca270a7aaf1752a9fa26efbb30&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-multiplier.8.5.0 coq.8.9.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.9.1). The following dependencies couldn&#39;t be met: - coq-multiplier -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.02.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-multiplier.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.02.3-2.0.6/released/8.9.1/multiplier/8.5.0.html
HTML
mit
7,018
from django.core import serializers from rest_framework.response import Response from django.http import JsonResponse try: from urllib import quote_plus # python 2 except: pass try: from urllib.parse import quote_plus # python 3 except: pass from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Q from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.shortcuts import render, get_object_or_404, redirect from django.utils import timezone from comments.forms import CommentForm from comments.models import Comment from .forms import PostForm from .models import Post def post_create(request): if not request.user.is_staff or not request.user.is_superuser: raise Http404 form = PostForm(request.POST or None, request.FILES or None) if form.is_valid(): instance = form.save(commit=False) instance.user = request.user instance.save() # message success messages.success(request, "Successfully Created") return HttpResponseRedirect(instance.get_absolute_url()) context = { "form": form, } return render(request, "post_form.html", context) def post_detail(request, slug=None): instance = get_object_or_404(Post, slug=slug) if instance.publish > timezone.now().date() or instance.draft: if not request.user.is_staff or not request.user.is_superuser: raise Http404 share_string = quote_plus(instance.content) initial_data = { "content_type": instance.get_content_type, "object_id": instance.id } form = CommentForm(request.POST or None, initial=initial_data) if form.is_valid() and request.user.is_authenticated(): c_type = form.cleaned_data.get("content_type") content_type = ContentType.objects.get(model=c_type) obj_id = form.cleaned_data.get('object_id') content_data = form.cleaned_data.get("content") parent_obj = None try: parent_id = int(request.POST.get("parent_id")) except: parent_id = None if parent_id: parent_qs = Comment.objects.filter(id=parent_id) if parent_qs.exists() and parent_qs.count() == 1: parent_obj = parent_qs.first() new_comment, created = Comment.objects.get_or_create( user=request.user, content_type=content_type, object_id=obj_id, content=content_data, parent=parent_obj, ) return HttpResponseRedirect(new_comment.content_object.get_absolute_url()) comments = instance.comments context = { "title": instance.title, "instance": instance, "share_string": share_string, "comments": comments, "comment_form": form, } return render(request, "post_detail.html", context) def post_list(request): today = timezone.now().date() queryset_list = Post.objects.active() # .order_by("-timestamp") if request.user.is_staff or request.user.is_superuser: queryset_list = Post.objects.all() query = request.GET.get("q") if query: queryset_list = queryset_list.filter( Q(title__icontains=query) | Q(content__icontains=query) | Q(user__first_name__icontains=query) | Q(user__last_name__icontains=query) ).distinct() paginator = Paginator(queryset_list, 8) # Show 25 contacts per page page_request_var = "page" page = request.GET.get(page_request_var) try: queryset = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. queryset = paginator.page(1) except EmptyPage: # If page is out of range (e.g. 9999), deliver last page of results. queryset = paginator.page(paginator.num_pages) context = { "object_list": queryset, "title": "List", "page_request_var": page_request_var, "today": today, } return render(request, "post_list.html", context) def post_update(request, slug=None): if not request.user.is_staff or not request.user.is_superuser: raise Http404 instance = get_object_or_404(Post, slug=slug) form = PostForm(request.POST or None, request.FILES or None, instance=instance) if form.is_valid(): instance = form.save(commit=False) instance.save() messages.success(request, "<a href='#'>Item</a> Saved", extra_tags='html_safe') return HttpResponseRedirect(instance.get_absolute_url()) context = { "title": instance.title, "instance": instance, "form": form, } return render(request, "post_form.html", context) def post_delete(request, slug=None): if not request.user.is_staff or not request.user.is_superuser: raise Http404 instance = get_object_or_404(Post, slug=slug) instance.delete() messages.success(request, "Successfully deleted") return redirect("posts:list")
our-iot-project-org/pingow-web-service
src/posts/views.py
Python
mit
5,217
/* @flow */ import { InputTypeComposer, type ObjectTypeComposerFieldConfigAsObjectDefinition, } from 'graphql-compose'; import { getTypeName, type CommonOpts, desc } from '../../../utils'; import { getAllAsFieldConfigMap } from '../../Commons/FieldNames'; export function getRangeITC<TContext>( opts: CommonOpts<TContext> ): InputTypeComposer<TContext> | ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> { const name = getTypeName('QueryRange', opts); const description = desc( ` Matches documents with fields that have terms within a certain range. [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html) ` ); const subName = getTypeName('QueryRangeSettings', opts); const fields = getAllAsFieldConfigMap( opts, opts.getOrCreateITC(subName, () => ({ name: subName, fields: { gt: 'JSON', gte: 'JSON', lt: 'JSON', lte: 'JSON', boost: 'Float', relation: 'String', }, })) ); if (typeof fields === 'object') { return opts.getOrCreateITC(name, () => ({ name, description, fields, })); } return { type: 'JSON', description, }; }
nodkz/graphql-compose-elasticsearch
src/elasticDSL/Query/TermLevel/Range.js
JavaScript
mit
1,241
<?php return array ( 'id' => 'nokia_c7_00_ver1_subuaold_subu2k9', 'fallback' => 'nokia_c7_00_ver1_subuaold', 'capabilities' => array ( 'mobile_browser' => 'UCWeb', 'mobile_browser_version' => '9', ), );
cuckata23/wurfl-data
data/nokia_c7_00_ver1_subuaold_subu2k9.php
PHP
mit
222
--- layout: post microblog: true audio: photo: date: 2012-07-11 10:06:51 -0600 guid: http://craigmcclellan.micro.blog/2012/07/11/t223085957279264768.html --- I don't trust any "true story" written by someone with that name. @ Got Books! [t.co/m1PcK3VW](http://t.co/m1PcK3VW)
craigwmcclellan/craigwmcclellan.github.io
_posts/2012-07-11-t223085957279264768.md
Markdown
mit
279
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({lblItem:"\u30a2\u30a4\u30c6\u30e0",title:"\u30b5\u30a4\u30f3 \u30a4\u30f3",info:"{server} {resource} \u306e\u30a2\u30a4\u30c6\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u30b5\u30a4\u30f3 \u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044",oAuthInfo:"{server} \u306b\u30b5\u30a4\u30f3 \u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002",lblUser:"\u30e6\u30fc\u30b6\u30fc\u540d:",lblPwd:"\u30d1\u30b9\u30ef\u30fc\u30c9:",lblOk:"OK",lblSigning:"\u30b5\u30a4\u30f3 \u30a4\u30f3\u3057\u3066\u3044\u307e\u3059...", lblCancel:"\u30ad\u30e3\u30f3\u30bb\u30eb",errorMsg:"\u30e6\u30fc\u30b6\u30fc\u540d\u307e\u305f\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u7121\u52b9\u3067\u3059\u3002\u3082\u3046\u4e00\u5ea6\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002",invalidUser:"\u5165\u529b\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u540d\u307e\u305f\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002",forbidden:"\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u6709\u52b9\u3067\u3059\u304c\u3001\u3053\u306e\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u304c\u3042\u308a\u307e\u305b\u3093\u3002", noAuthService:"\u8a8d\u8a3c\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002"});
ycabon/presentations
2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/identity/nls/ja/identity.js
JavaScript
mit
1,486
<!-- Page Content --> <div id="page-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Agregar Servicio</h1> </div> <!-- /.col-lg-12 --> <div class="panel-body"> <div class="row"> <div class="col-lg-9"> <form role="form"> <div class="form-group"> <label>Nombre</label> <input class="form-control" ng-model="nombre" placeholder="Escribir nombre..." required> </div> <div class="form-group"> <label>Descripcion</label> <input class="form-control" ng-model="descripcion" placeholder="Escribir descripcion..."> </div> <div class="form-group"> <label>Precio</label> <input class="form-control" type="number" ng-model="precio" placeholder="Insertar precio..." required> </div> <button type="reset" class="btn btn-default">Limpiar</button> <button type="submit" class="btn btn-default" ng-click="agregarServicio()">Agregar</button> </form> </div> </div> <!-- /.row (nested) --> </div> <!-- /.panel-body --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper -->
JorgeACS/gelish
views/html/agregarServicio.html
HTML
mit
1,833
package com.exilegl.ld34.entity.enemy; import java.util.Random; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.math.Vector3; import com.badlogic.gdx.physics.box2d.World; import com.exilegl.ld34.ai.AiFollowLocation; import com.exilegl.ld34.entity.Entity; import com.exilegl.ld34.entity.EntityCoin; import com.exilegl.ld34.entity.EntityDirection; import com.exilegl.ld34.entity.EntityPlayer; import com.exilegl.ld34.map.Map; import com.exilegl.ld34.sound.Sound; import com.exilegl.ld34.tile.Tile; import box2dLight.ChainLight; import box2dLight.ConeLight; import box2dLight.PointLight; public class EntityBullet extends EntityEnemy{ //The bullet's light color private Color color; private float distance; private Vector2 offset; private float age; private boolean textured; private Texture texture; //Whether or not the bullet kills enemies. If not, it kills non enemies. private boolean killsEnemies; private float duration; private boolean ranged; public EntityBullet(Vector2 location, Color color, EntityDirection direction, float distance, boolean killsEnemies, float duration, boolean textured, boolean ranged, boolean moveY) { super(null, location, 10, 10, true); this.setColor(color); this.setDistance(distance); this.offset = new Vector2(0, 0); float y = (this.getLocation().y); if(ranged){ Random r = new Random(); if(r.nextBoolean()){ y = (y + 64); }else{ y = (y - 64); } } if(!moveY){ if(direction == EntityDirection.LEFT){ this.addAction(new AiFollowLocation(this, new Vector2(this.getLocation().x - this.getDistance() * 5, y), this.getSpeed(), false, false)); }else{ this.addAction(new AiFollowLocation(this, new Vector2(this.getLocation().x + this.getDistance() * 5, y), this.getSpeed(), false, false)); } }else{ if(direction == EntityDirection.LEFT){ this.addAction(new AiFollowLocation(this, new Vector2(this.getLocation().x * 5, y + distance * 3), this.getSpeed(), false, false)); }else{ this.addAction(new AiFollowLocation(this, new Vector2(this.getLocation().x, y - distance * 3), this.getSpeed(), false, false)); } } setAge(0); if(this.isTextured()){ this.setTexture(new Texture(Gdx.files.internal("assets/texture/entity/redbullet.png"))); } this.setKillsEnemies(killsEnemies); this.setDuration(duration); if(textured){ this.setTexture(new Texture(Gdx.files.internal("assets/texture/misc/bullet.png"))); } this.setTextured(textured); if(!killsEnemies){ Sound.play(Sound.Enemy_Shoot, 0.5f); } this.ranged = ranged; if(ranged){ this.setDistance(distance * 1.5f); } } @Override public void update() { setAge((getAge() + 1 * Gdx.graphics.getDeltaTime())); if(this.getLight() == null){ this.setLight(new PointLight(this.getMap().getRay(), Map.RAYS, this.getColor(), this.getDistance() / 5, this.getLocation().x, this.getLocation().y)); } this.flickerLight(20, (int) ((int) getDistance() * 1.5f), (int) getDistance()); this.getLight().setPosition(this.getLocation().x + offset.x, this.getLocation().y + offset.y); this.setRectangle(new Rectangle(this.getLocation().x, this.getLocation().y, this.getLight().getDistance(), this.getLight().getDistance())); this.performAi(); if(this.getAge() > this.getDuration()){ this.kill(); } for(Entity e : this.getMap().getEntities()){ if(this.isKillsEnemies()){ if(e instanceof EntityEnemy && !(e instanceof EntityPlayer) && !(e instanceof EntityBullet) && this.getRectangle().overlaps(e.getRectangle()) && !(e instanceof EntityDeathTile)){ e.kill(); this.kill(); Sound.play(Sound.Kill_Enemy); } }else{ try{ if(!(e instanceof EntityEnemy) && !(e instanceof EntityCoin) && this.getRectangle().overlaps(e.getRectangle())){ e.kill(); this.kill(); } }catch(NullPointerException n){ } } if(e instanceof EntityPlayer && this.getRectangle().overlaps(e.getRectangle()) && !this.isKillsEnemies()){ e.kill(); this.kill(); } } for(Tile t : this.getMap().getTiles()){ if(t.getType().SOLID){ Rectangle tileRect = new Rectangle(t.getLocation().x, t.getLocation().y, t.getSingleAnimation().getWidth(), t.getSingleAnimation().getHeight()); Rectangle bulletRect = new Rectangle(this.getLocation().x, this.getLocation().y, this.getLight().getDistance(), this.getLight().getDistance()); if(bulletRect.overlaps(tileRect)){ this.kill(); } } } } @Override public void draw(SpriteBatch batch){ if(this.isTextured()){ batch.draw(this.getTexture(), this.getLocation().x, this.getLocation().y); } } @Override public void create(Map map) { this.setMap(map); if(isKillsEnemies()){ Vector3 m = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0); this.getMap().getCamera().unproject(m); ((AiFollowLocation) this.getActions().get(0)).getDestination().set(m.x, m.y); } } public boolean isTextured() { return textured; } public void setTextured(boolean textured) { this.textured = textured; } public Texture getTexture() { return texture; } public void setTexture(Texture texture) { this.texture = texture; } public float getAge() { return age; } public void setAge(float age) { this.age = age; } public float getDistance() { return distance; } public void setDistance(float distance) { this.distance = distance; } public Color getColor() { return color; } public void setColor(Color color) { this.color = color; } public float getDuration() { return duration; } public void setDuration(float duration) { this.duration = duration; } public boolean isKillsEnemies() { return killsEnemies; } public void setKillsEnemies(boolean killsEnemies) { this.killsEnemies = killsEnemies; } public Vector2 getOffset(){ return this.offset; } }
some1epic123/Mr.-Dungeon-Aase-LD34-
LD34/src/com/exilegl/ld34/entity/enemy/EntityBullet.java
Java
mit
6,144
// // This file is part of nuBASIC // Copyright (c) Antonino Calderone ([email protected]) // All rights reserved. // Licensed under the MIT License. // See COPYING file in the project root for full license information. // /* -------------------------------------------------------------------------- */ #ifndef __NU_STMT_FUNCTION_H__ #define __NU_STMT_FUNCTION_H__ /* -------------------------------------------------------------------------- */ #include "nu_expr_any.h" #include "nu_prog_ctx.h" #include "nu_stmt.h" #include "nu_token_list.h" #include "nu_var_scope.h" #include "nu_variable.h" #include <algorithm> #include <string> /* -------------------------------------------------------------------------- */ namespace nu { /* -------------------------------------------------------------------------- */ class stmt_function_t : public stmt_t { public: stmt_function_t() = delete; stmt_function_t(const stmt_function_t&) = delete; stmt_function_t& operator=(const stmt_function_t&) = delete; using vec_size_t = expr_any_t::handle_t; stmt_function_t(prog_ctx_t& ctx, const std::string& id); void define(const std::string& var, const std::string& vtype, vec_size_t vect_size, prog_ctx_t& ctx, const std::string& id); void define_ret_type(const std::string& type, prog_ctx_t& ctx, size_t array_size) { auto& fproto = ctx.proc_prototypes.data[_id].second; fproto.ret_type = type; fproto.array_size = array_size; } stmt_cl_t get_cl() const noexcept override; void run(rt_prog_ctx_t& ctx) override; protected: std::string _id; std::set<std::string> _vars_rep_check; }; /* -------------------------------------------------------------------------- */ } /* -------------------------------------------------------------------------- */ #endif //__NU_STMT_FUNCTION_H__
eantcal/nubasic
include/nu_stmt_function.h
C
mit
1,886
{% extends 'base.html' %} {% block head %} <title>Websites</title> {% endblock %} {% block content %} <div class="container"> <div class="row"> <div class="col s12"> <div class="card"> <div class="card-content #90caf9 blue lighten-3"> <div class="card-title">怒火燎原</div> <p class="caption">怒火北美、法语、德语三个版本游戏详情</p> <ul class="collapsible popout collapsible-accordination" data-collapsible="accordion"> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>7.2</div> <div class="collapsible-body"> <div class="collection"> <a href="http://10.5.201.60/nhly_en_7.2/Main.html" class="collection-item btn-flat waves-effect">北美 <span class="badge">socket: 8272</span><span class="badge">tcp: 8302</span> </a> <a href="http://10.5.201.60/nhly_fr_7.2/Main.html" class="collection-item btn-flat waves-effect">法语 <span class="badge">socket: 8772</span><span class="badge">tcp: 8802</span> </a> <a href="http://10.5.201.60/nhly_de_7.2/Main.html" class="collection-item btn-flat waves-green">德语 <span class="badge">socket: 8372</span><span class="badge">tcp: 9302</span> </a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>7.3</div> <div class="collapsible-body"> <div class="collection"> <a href="http://10.5.201.60/nhly_en_7.3/Main.html" class="collection-item">北美</a> <a href="http://10.5.201.60/nhly_fr_7.3/Main.html" class="collection-item">法语</a> <a href="http://10.5.201.60/nhly_de_7.3/Main.html" class="collection-item">德语</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>7.4</div> <div class="collapsible-body"> <div class="collection"> <a href="http://10.5.201.60/nhly_en_7.4/Main.html" class="collection-item">北美</a> <a href="http://10.5.201.60/nhly_fr_7.4/Main.html" class="collection-item">法语</a> <a href="http://10.5.201.60/nhly_de_7.4/Main.html" class="collection-item">德语</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>7.5</div> <div class="collapsible-body"> <div class="collection"> <a href="http://10.5.201.60/nhly_en_7.5/Main.html" class="collection-item">北美</a> <a href="http://10.5.201.60/nhly_fr_7.5/Main.html" class="collection-item">法语</a> <a href="http://10.5.201.60/nhly_de_7.5/Main.html" class="collection-item">德语</a> </div> </div> </li> </ul> </div> </div> </div> </div> <div class="col s12"> <div class="card"> <div class="card-content #80deea cyan lighten-3"> <span class="card-title">攻城掠地</span> <p class="caption">攻城国内、越南、泰语、日本四个版本游戏详情</p> <ul class="collapsible popout collapsible-accordination" data-collapsible="accordion"> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>8.4</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>8.5</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>8.6</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>8.8</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>8.9</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>9.1</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>9.2</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> <li> <div class="collapsible-header btn-flat"><i class="material-icons">label_outline</i>9.3</div> <div class="collapsible-body"> <div class="collection"> <a href="" class="collection-item btn-flat">国内</a> <a href="" class="collection-item btn-flat">越南</a> <a href="" class="collection-item btn-flat">泰语</a> <a href="" class="collection-item btn-flat">日本</a> </div> </div> </li> </ul> </div> </div> </div> </div> </div> {% endblock %} {% block scripts %} <script type="application/javascript"> $(document).ready(function(){ $('.collapsible').collapsible(); }); </script> {% endblock %}
zhancongc/GameTool
app/templates/websites.html
HTML
mit
10,691
import Data.List (permutations, sort) solve :: String solve = (sort $ permutations "0123456789") !! 999999 main = putStrLn $ solve
pshendry/project-euler-solutions
0024/solution.hs
Haskell
mit
133
import { Component, OnInit, Input } from '@angular/core'; import { ROUTER_DIRECTIVES } from '@angular/router'; import { PublishingItemsService, PublishingItem } from '../shared/index'; @Component({ moduleId: module.id, selector: 'app-publish-card', templateUrl: 'publish-card.component.html', styleUrls: ['publish-card.component.css'], directives: [ROUTER_DIRECTIVES] }) export class PublishCardComponent implements OnInit { @Input() publishingItem: PublishingItem; constructor(private _publishingItemsService: PublishingItemsService) {} ngOnInit() { } public delete() { // NOTE: normally we would have to emit an event and notify the container element about // the deletion but since we are using websockets, the server will send a notification instead. this._publishingItemsService.delete(this.publishingItem); } }
gallotamas/falcon
src/app/publish/publish-card/publish-card.component.ts
TypeScript
mit
856
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // Split the input into chunks. exports.default = (function (input, fail) { var len = input.length; var level = 0; var parenLevel = 0; var lastOpening; var lastOpeningParen; var lastMultiComment; var lastMultiCommentEndBrace; var chunks = []; var emitFrom = 0; var chunkerCurrentIndex; var currentChunkStartIndex; var cc; var cc2; var matched; function emitChunk(force) { var len = chunkerCurrentIndex - emitFrom; if (((len < 512) && !force) || !len) { return; } chunks.push(input.slice(emitFrom, chunkerCurrentIndex + 1)); emitFrom = chunkerCurrentIndex + 1; } for (chunkerCurrentIndex = 0; chunkerCurrentIndex < len; chunkerCurrentIndex++) { cc = input.charCodeAt(chunkerCurrentIndex); if (((cc >= 97) && (cc <= 122)) || (cc < 34)) { // a-z or whitespace continue; } switch (cc) { case 40: // ( parenLevel++; lastOpeningParen = chunkerCurrentIndex; continue; case 41: // ) if (--parenLevel < 0) { return fail('missing opening `(`', chunkerCurrentIndex); } continue; case 59: // ; if (!parenLevel) { emitChunk(); } continue; case 123: // { level++; lastOpening = chunkerCurrentIndex; continue; case 125: // } if (--level < 0) { return fail('missing opening `{`', chunkerCurrentIndex); } if (!level && !parenLevel) { emitChunk(); } continue; case 92: // \ if (chunkerCurrentIndex < len - 1) { chunkerCurrentIndex++; continue; } return fail('unescaped `\\`', chunkerCurrentIndex); case 34: case 39: case 96: // ", ' and ` matched = 0; currentChunkStartIndex = chunkerCurrentIndex; for (chunkerCurrentIndex = chunkerCurrentIndex + 1; chunkerCurrentIndex < len; chunkerCurrentIndex++) { cc2 = input.charCodeAt(chunkerCurrentIndex); if (cc2 > 96) { continue; } if (cc2 == cc) { matched = 1; break; } if (cc2 == 92) { // \ if (chunkerCurrentIndex == len - 1) { return fail('unescaped `\\`', chunkerCurrentIndex); } chunkerCurrentIndex++; } } if (matched) { continue; } return fail("unmatched `" + String.fromCharCode(cc) + "`", currentChunkStartIndex); case 47: // /, check for comment if (parenLevel || (chunkerCurrentIndex == len - 1)) { continue; } cc2 = input.charCodeAt(chunkerCurrentIndex + 1); if (cc2 == 47) { // //, find lnfeed for (chunkerCurrentIndex = chunkerCurrentIndex + 2; chunkerCurrentIndex < len; chunkerCurrentIndex++) { cc2 = input.charCodeAt(chunkerCurrentIndex); if ((cc2 <= 13) && ((cc2 == 10) || (cc2 == 13))) { break; } } } else if (cc2 == 42) { // /*, find */ lastMultiComment = currentChunkStartIndex = chunkerCurrentIndex; for (chunkerCurrentIndex = chunkerCurrentIndex + 2; chunkerCurrentIndex < len - 1; chunkerCurrentIndex++) { cc2 = input.charCodeAt(chunkerCurrentIndex); if (cc2 == 125) { lastMultiCommentEndBrace = chunkerCurrentIndex; } if (cc2 != 42) { continue; } if (input.charCodeAt(chunkerCurrentIndex + 1) == 47) { break; } } if (chunkerCurrentIndex == len - 1) { return fail('missing closing `*/`', currentChunkStartIndex); } chunkerCurrentIndex++; } continue; case 42: // *, check for unmatched */ if ((chunkerCurrentIndex < len - 1) && (input.charCodeAt(chunkerCurrentIndex + 1) == 47)) { return fail('unmatched `/*`', chunkerCurrentIndex); } continue; } } if (level !== 0) { if ((lastMultiComment > lastOpening) && (lastMultiCommentEndBrace > lastMultiComment)) { return fail('missing closing `}` or `*/`', lastOpening); } else { return fail('missing closing `}`', lastOpening); } } else if (parenLevel !== 0) { return fail('missing closing `)`', lastOpeningParen); } emitChunk(true); return chunks; }); //# sourceMappingURL=chunker.js.map
lordtiago/linvs
node_modules/less/lib/less/parser/chunker.js
JavaScript
mit
5,641
using MasterDevs.ChromeDevTools; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB { /// <summary> /// Enables events from backend. /// </summary> [Command(ProtocolName.IndexedDB.Enable)] [SupportedBy("Chrome")] public class EnableCommand: ICommand<EnableCommandResponse> { } }
MasterDevs/ChromeDevTools
source/ChromeDevTools/Protocol/Chrome/IndexedDB/EnableCommand.cs
C#
mit
370
using System.Collections; using System.Collections.Generic; using UnityEngine; public class music_switch : MonoBehaviour { private AudioSource aud; public AudioClip[] songs; private int selection; // Use this for initialization void Start () { aud = this.GetComponent<AudioSource> (); selection = Random.Range (0, songs.Length); aud.clip = songs [selection]; } // Update is called once per frame void Update () { if (!aud.isPlaying && aud != null) { aud.Play (); } } void OnDestroy() { Destroy(this); } }
lheckle/SomethingSomethingTacos
EnemySpawnTest/Assets/Scripts/music_switch.cs
C#
mit
541
angular.module("umbraco") .controller("Umbraco.PropertyEditors.RTEController", function ($rootScope, $scope, $q, $locale, dialogService, $log, imageHelper, assetsService, $timeout, tinyMceService, angularHelper, stylesheetResource, macroService, editorState) { $scope.isLoading = true; //To id the html textarea we need to use the datetime ticks because we can have multiple rte's per a single property alias // because now we have to support having 2x (maybe more at some stage) content editors being displayed at once. This is because // we have this mini content editor panel that can be launched with MNTP. var d = new Date(); var n = d.getTime(); $scope.textAreaHtmlId = $scope.model.alias + "_" + n + "_rte"; function syncContent(editor){ editor.save(); angularHelper.safeApply($scope, function () { $scope.model.value = editor.getContent(); }); //make the form dirty manually so that the track changes works, setting our model doesn't trigger // the angular bits because tinymce replaces the textarea. angularHelper.getCurrentForm($scope).$setDirty(); } tinyMceService.configuration().then(function (tinyMceConfig) { //config value from general tinymce.config file var validElements = tinyMceConfig.validElements; //These are absolutely required in order for the macros to render inline //we put these as extended elements because they get merged on top of the normal allowed elements by tiny mce var extendedValidElements = "@[id|class|style],-div[id|dir|class|align|style],ins[datetime|cite],-ul[class|style],-li[class|style],span[id|class|style]"; var invalidElements = tinyMceConfig.inValidElements; var plugins = _.map(tinyMceConfig.plugins, function (plugin) { if (plugin.useOnFrontend) { return plugin.name; } }).join(" "); var editorConfig = $scope.model.config.editor; if (!editorConfig || angular.isString(editorConfig)) { editorConfig = tinyMceService.defaultPrevalues(); } //config value on the data type var toolbar = editorConfig.toolbar.join(" | "); var stylesheets = []; var styleFormats = []; var await = []; if (!editorConfig.maxImageSize && editorConfig.maxImageSize != 0) { editorConfig.maxImageSize = tinyMceService.defaultPrevalues().maxImageSize; } //queue file loading if (typeof tinymce === "undefined") { // Don't reload tinymce if already loaded await.push(assetsService.loadJs("lib/tinymce/tinymce.min.js", $scope)); } //queue rules loading angular.forEach(editorConfig.stylesheets, function (val, key) { stylesheets.push(Umbraco.Sys.ServerVariables.umbracoSettings.cssPath + "/" + val + ".css?" + new Date().getTime()); await.push(stylesheetResource.getRulesByName(val).then(function (rules) { angular.forEach(rules, function (rule) { var r = {}; r.title = rule.name; if (rule.selector[0] == ".") { r.inline = "span"; r.classes = rule.selector.substring(1); } else if (rule.selector[0] == "#") { r.inline = "span"; r.attributes = { id: rule.selector.substring(1) }; } else if (rule.selector[0] != "." && rule.selector.indexOf(".") > -1) { var split = rule.selector.split("."); r.block = split[0]; r.classes = rule.selector.substring(rule.selector.indexOf(".") + 1).replace(".", " "); } else if (rule.selector[0] != "#" && rule.selector.indexOf("#") > -1) { var split = rule.selector.split("#"); r.block = split[0]; r.classes = rule.selector.substring(rule.selector.indexOf("#") + 1); } else { r.block = rule.selector; } styleFormats.push(r); }); })); }); //stores a reference to the editor var tinyMceEditor = null; // these languages are available for localization var availableLanguages = [ 'da', 'de', 'en', 'en_us', 'fi', 'fr', 'he', 'it', 'ja', 'nl', 'no', 'pl', 'pt', 'ru', 'sv', 'zh' ]; //define fallback language var language = 'en_us'; //get locale from angular and match tinymce format. Angular localization is always in the format of ru-ru, de-de, en-gb, etc. //wheras tinymce is in the format of ru, de, en, en_us, etc. var localeId = $locale.id.replace('-', '_'); //try matching the language using full locale format var languageMatch = _.find(availableLanguages, function(o) { return o === localeId; }); //if no matches, try matching using only the language if (languageMatch === undefined) { var localeParts = localeId.split('_'); languageMatch = _.find(availableLanguages, function(o) { return o === localeParts[0]; }); } //if a match was found - set the language if (languageMatch !== undefined) { language = languageMatch; } //wait for queue to end $q.all(await).then(function () { //create a baseline Config to exten upon var baseLineConfigObj = { mode: "exact", skin: "umbraco", plugins: plugins, valid_elements: validElements, invalid_elements: invalidElements, extended_valid_elements: extendedValidElements, menubar: false, statusbar: false, relative_urls: false, height: editorConfig.dimensions.height, width: editorConfig.dimensions.width, maxImageSize: editorConfig.maxImageSize, toolbar: toolbar, content_css: stylesheets, style_formats: styleFormats, language: language, //see http://archive.tinymce.com/wiki.php/Configuration:cache_suffix cache_suffix: "?umb__rnd=" + Umbraco.Sys.ServerVariables.application.cacheBuster }; if (tinyMceConfig.customConfig) { //if there is some custom config, we need to see if the string value of each item might actually be json and if so, we need to // convert it to json instead of having it as a string since this is what tinymce requires for (var i in tinyMceConfig.customConfig) { var val = tinyMceConfig.customConfig[i]; if (val) { val = val.toString().trim(); if (val.detectIsJson()) { try { tinyMceConfig.customConfig[i] = JSON.parse(val); //now we need to check if this custom config key is defined in our baseline, if it is we don't want to //overwrite the baseline config item if it is an array, we want to concat the items in the array, otherwise //if it's an object it will overwrite the baseline if (angular.isArray(baseLineConfigObj[i]) && angular.isArray(tinyMceConfig.customConfig[i])) { //concat it and below this concat'd array will overwrite the baseline in angular.extend tinyMceConfig.customConfig[i] = baseLineConfigObj[i].concat(tinyMceConfig.customConfig[i]); } } catch (e) { //cannot parse, we'll just leave it } } if (val === "true") { tinyMceConfig.customConfig[i] = true; } if (val === "false") { tinyMceConfig.customConfig[i] = false; } } } angular.extend(baseLineConfigObj, tinyMceConfig.customConfig); } //set all the things that user configs should not be able to override baseLineConfigObj.elements = $scope.textAreaHtmlId; //this is the exact textarea id to replace! baseLineConfigObj.setup = function (editor) { //set the reference tinyMceEditor = editor; //enable browser based spell checking editor.on('init', function (e) { editor.getBody().setAttribute('spellcheck', true); }); //We need to listen on multiple things here because of the nature of tinymce, it doesn't //fire events when you think! //The change event doesn't fire when content changes, only when cursor points are changed and undo points //are created. the blur event doesn't fire if you insert content into the editor with a button and then //press save. //We have a couple of options, one is to do a set timeout and check for isDirty on the editor, or we can //listen to both change and blur and also on our own 'saving' event. I think this will be best because a //timer might end up using unwanted cpu and we'd still have to listen to our saving event in case they clicked //save before the timeout elapsed. //TODO: We need to re-enable something like this to ensure the track changes is working with tinymce // so we can detect if the form is dirty or not, Per has some better events to use as this one triggers // even if you just enter/exit with mouse cursuor which doesn't really mean it's changed. // see: http://issues.umbraco.org/issue/U4-4485 //var alreadyDirty = false; //editor.on('change', function (e) { // angularHelper.safeApply($scope, function () { // $scope.model.value = editor.getContent(); // if (!alreadyDirty) { // //make the form dirty manually so that the track changes works, setting our model doesn't trigger // // the angular bits because tinymce replaces the textarea. // var currForm = angularHelper.getCurrentForm($scope); // currForm.$setDirty(); // alreadyDirty = true; // } // }); //}); //when we leave the editor (maybe) editor.on('blur', function (e) { editor.save(); angularHelper.safeApply($scope, function () { $scope.model.value = editor.getContent(); }); }); //when buttons modify content editor.on('ExecCommand', function (e) { syncContent(editor); }); // Update model on keypress editor.on('KeyUp', function (e) { syncContent(editor); }); // Update model on change, i.e. copy/pasted text, plugins altering content editor.on('SetContent', function (e) { if (!e.initial) { syncContent(editor); } }); editor.on('ObjectResized', function (e) { var qs = "?width=" + e.width + "&height=" + e.height + "&mode=max"; var srcAttr = $(e.target).attr("src"); var path = srcAttr.split("?")[0]; $(e.target).attr("data-mce-src", path + qs); syncContent(editor); }); tinyMceService.createLinkPicker(editor, $scope, function(currentTarget, anchorElement) { $scope.linkPickerOverlay = { view: "linkpicker", currentTarget: currentTarget, anchors: editorState.current ? tinyMceService.getAnchorNames(JSON.stringify(editorState.current.properties)) : [], ignoreUserStartNodes: $scope.model.config.ignoreUserStartNodes === "1", show: true, submit: function(model) { tinyMceService.insertLinkInEditor(editor, model.target, anchorElement); $scope.linkPickerOverlay.show = false; $scope.linkPickerOverlay = null; } }; }); //Create the insert media plugin tinyMceService.createMediaPicker(editor, $scope, function(currentTarget, userData){ var ignoreUserStartNodes = false; var startNodeId = userData.startMediaIds.length !== 1 ? -1 : userData.startMediaIds[0]; var startNodeIsVirtual = userData.startMediaIds.length !== 1; if ($scope.model.config.ignoreUserStartNodes === "1") { ignoreUserStartNodes = true; startNodeId = -1; startNodeIsVirtual = true; } $scope.mediaPickerOverlay = { currentTarget: currentTarget, onlyImages: true, showDetails: true, disableFolderSelect: true, startNodeId: startNodeId, startNodeIsVirtual: startNodeIsVirtual, ignoreUserStartNodes: ignoreUserStartNodes, view: "mediapicker", show: true, submit: function(model) { tinyMceService.insertMediaInEditor(editor, model.selectedImages[0]); $scope.mediaPickerOverlay.show = false; $scope.mediaPickerOverlay = null; } }; }); //Create the embedded plugin tinyMceService.createInsertEmbeddedMedia(editor, $scope, function() { $scope.embedOverlay = { view: "embed", show: true, submit: function(model) { tinyMceService.insertEmbeddedMediaInEditor(editor, model.embed.preview); $scope.embedOverlay.show = false; $scope.embedOverlay = null; } }; }); //Create the insert macro plugin tinyMceService.createInsertMacro(editor, $scope, function(dialogData) { $scope.macroPickerOverlay = { view: "macropicker", dialogData: dialogData, show: true, submit: function(model) { var macroObject = macroService.collectValueData(model.selectedMacro, model.macroParams, dialogData.renderingEngine); tinyMceService.insertMacroInEditor(editor, macroObject, $scope); $scope.macroPickerOverlay.show = false; $scope.macroPickerOverlay = null; } }; }); }; /** Loads in the editor */ function loadTinyMce() { //we need to add a timeout here, to force a redraw so TinyMCE can find //the elements needed $timeout(function () { tinymce.DOM.events.domLoaded = true; tinymce.init(baseLineConfigObj); $scope.isLoading = false; }, 200, false); } loadTinyMce(); //here we declare a special method which will be called whenever the value has changed from the server //this is instead of doing a watch on the model.value = faster $scope.model.onValueChanged = function (newVal, oldVal) { //update the display val again if it has changed from the server; //uses an empty string in the editor when the value is null tinyMceEditor.setContent(newVal || "", { format: 'raw' }); //we need to manually fire this event since it is only ever fired based on loading from the DOM, this // is required for our plugins listening to this event to execute tinyMceEditor.fire('LoadContent', null); }; //listen for formSubmitting event (the result is callback used to remove the event subscription) var unsubscribe = $scope.$on("formSubmitting", function () { //TODO: Here we should parse out the macro rendered content so we can save on a lot of bytes in data xfer // we do parse it out on the server side but would be nice to do that on the client side before as well. if (tinyMceEditor !== undefined && tinyMceEditor != null && !$scope.isLoading) { $scope.model.value = tinyMceEditor.getContent(); } }); //when the element is disposed we need to unsubscribe! // NOTE: this is very important otherwise if this is part of a modal, the listener still exists because the dom // element might still be there even after the modal has been hidden. $scope.$on('$destroy', function () { unsubscribe(); if (tinyMceEditor !== undefined && tinyMceEditor != null) { tinyMceEditor.destroy(); } }); }); }); });
tompipe/Umbraco-CMS
src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js
JavaScript
mit
20,615
from ..cw_model import CWModel class Order(CWModel): def __init__(self, json_dict=None): self.id = None # (Integer) self.company = None # *(CompanyReference) self.contact = None # (ContactReference) self.phone = None # (String) self.phoneExt = None # (String) self.email = None # (String) self.site = None # (SiteReference) self.status = None # *(OrderStatusReference) self.opportunity = None # (OpportunityReference) self.orderDate = None # (String) self.dueDate = None # (String) self.billingTerms = None # (BillingTermsReference) self.taxCode = None # (TaxCodeReference) self.poNumber = None # (String(50)) self.locationId = None # (Integer) self.businessUnitId = None # (Integer) self.salesRep = None # *(MemberReference) self.notes = None # (String) self.billClosedFlag = None # (Boolean) self.billShippedFlag = None # (Boolean) self.restrictDownpaymentFlag = None # (Boolean) self.description = None # (String) self.topCommentFlag = None # (Boolean) self.bottomCommentFlag = None # (Boolean) self.shipToCompany = None # (CompanyReference) self.shipToContact = None # (ContactReference) self.shipToSite = None # (SiteReference) self.billToCompany = None # (CompanyReference) self.billToContact = None # (ContactReference) self.billToSite = None # (SiteReference) self.productIds = None # (Integer[]) self.documentIds = None # (Integer[]) self.invoiceIds = None # (Integer[]) self.configIds = None # (Integer[]) self.total = None # (Number) self.taxTotal = None # (Number) self._info = None # (Metadata) # initialize object with json dict super().__init__(json_dict)
joshuamsmith/ConnectPyse
sales/order.py
Python
mit
1,974
package adts; /** * Interface that represents any music item. MusicSymbol and MusicPart extend * this. Thus, a Music could be a MusicPiece, a Voice, a Chord, a Lyric, a * Pitch, or a Rest. a The objects are immutable. The equals, toString, and * hashCode methods work recursively and individually different from each class * extending Music. Read their documentation for full specs. * **/ /* * Representation Music = MusicPiece(signature: Signature, voices: List<Voice>) * + Measure(notes: List<MusicSymbol>, lyrics: Lyric) + Voice(name: String, * measures: List<Measure>) + Chord(notes: List<Pitch>)+ + Lyric(syllables: * List<String>) + Pitch(value: string, octave: int, length: int) + Rest(length: * int) */ public interface Music { /** * Calculates the required number of ticks per beat, so that each note can * be represented as an integer number of ticks. * * @return integer representing number of ticks per beat. */ public int calculateTicksPerBeat(); /** * Tests the equality of one music to to another, such that two expressions * with equal attributes (observationally indistinguishable) are considered * equal * * @param _that * music to compare to * @return whether or not the two musics are equal */ @Override public boolean equals(Object _that); /** * Returns the string representation of the music * * @returns the music as a string */ @Override public String toString(); /** * Calculates the hashcode for this music. HashCode for two equal musics * will be identical. * * @return the hashcode for the music */ @Override public int hashCode(); }
zekedroid/ABC-Music-Player
src/adts/Music.java
Java
mit
1,812
class ApplicationPolicy attr_reader :user, :record def initialize(user, record) @user = user @record = record end class Scope attr_reader :user, :scope def initialize(user, scope) @user = user @scope = scope end end end
jcpny1/recipe-cat
app/policies/application_policy.rb
Ruby
mit
267
'use strict'; var isA = require("Espresso/oop").isA; var oop = require("Espresso/oop").oop; var init = require("Espresso/oop").init; var trim = require("Espresso/trim").trim; var isA = require("Espresso/oop").isA; var oop = require("Espresso/oop").oop; function RequestInterface(){ oop(this,"Espresso/Http/RequestInterface"); } module.exports = RequestInterface;
quimsy/espresso
Http/RequestInterface.js
JavaScript
mit
369
#ifndef __BK_MESH_SAMPLING_H__ #define __BK_MESH_SAMPLING_H__ // blackhart headers. #include "foundation\BkExport.h" #include "foundation\BkAtomicDataType.h" // Forward declarations. struct BkPoint3; // ~~~~~ Dcl(PUBLIC) ~~~~~ /*! \brief Samples a list of triangles. * * \param vertices The vertices of each triangles. Must be sorted. * \param number_of_geoms The number of triangles. * \param number_of_points The number of points to sample. */ extern BK_API void BkMeshSampling_Sample(struct BkPoint3 const* vertices, size_t const number_of_geoms, size_t const number_of_points); #endif
Blackhart/Blackhart
blackhart/includes/foundation/BkMeshSampling.h
C
mit
599
namespace AnimalLookupWebservice.Areas.HelpPage.ModelDescriptions { public class KeyValuePairModelDescription : ModelDescription { public ModelDescription KeyModelDescription { get; set; } public ModelDescription ValueModelDescription { get; set; } } }
rohansen/Code-Examples
Web Development/Web Service Examples/AnimalLookupWebservice/AnimalLookupWebservice/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs
C#
mit
281
module.exports = function(dataUri, maxDimension, callback){ var source = new Image(); source.addEventListener('load', function(){ var canvas = document.createElement('canvas'), ratio = Math.max(source.width, source.height) / maxDimension; canvas.width = source.width / ratio; canvas.height = source.height / ratio; var context = canvas.getContext('2d'); context.drawImage( source, 0, 0, source.width, source.height, 0, 0, canvas.width, canvas.height ); callback(null, canvas.toDataURL()); }); source.src = dataUri; };
MauriceButler/resizeo
index.js
JavaScript
mit
715
#!/bin/bash # if config file doesnt exist (wont exist until user changes a setting) then copy default config file if [[ ! -f /config/core.conf ]]; then echo "[info] Deluge config file doesn't exist, copying default..." cp /home/nobody/deluge/core.conf /config/ else echo "[info] Deluge config file already exists, skipping copy" fi echo "[info] Starting Deluge daemon..." /usr/bin/deluged -d -c /config -L info -l /config/deluged.log
Toilal/stealthbox
.docker/deluge/home/deluge.sh
Shell
mit
438
</script> <!--script end--> </body> <!--body end--> </html> <!--html end-->
zhangbobell/reportv2
application/views/templates/task_footer_final.php
PHP
mit
103
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Kiwi.Renderers.CanvasRenderer - Kiwi.js</title> <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css"> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><img src="../assets/css/logo.png" title="Kiwi.js"></h1> </div> <div class="yui3-u-1-4 version"> <em>API Docs for: 1.1.1</em> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar apidocs"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="../classes/Kiwi.Animations.Animation.html">Kiwi.Animations.Animation</a></li> <li><a href="../classes/Kiwi.Animations.Sequence.html">Kiwi.Animations.Sequence</a></li> <li><a href="../classes/Kiwi.Animations.Tween.html">Kiwi.Animations.Tween</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Back.html">Kiwi.Animations.Tweens.Easing.Back</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Bounce.html">Kiwi.Animations.Tweens.Easing.Bounce</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Circular.html">Kiwi.Animations.Tweens.Easing.Circular</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Cubic.html">Kiwi.Animations.Tweens.Easing.Cubic</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Elastic.html">Kiwi.Animations.Tweens.Easing.Elastic</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Exponential.html">Kiwi.Animations.Tweens.Easing.Exponential</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Linear.html">Kiwi.Animations.Tweens.Easing.Linear</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Quadratic.html">Kiwi.Animations.Tweens.Easing.Quadratic</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Quartic.html">Kiwi.Animations.Tweens.Easing.Quartic</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Quintic.html">Kiwi.Animations.Tweens.Easing.Quintic</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.Easing.Sinusoidal.html">Kiwi.Animations.Tweens.Easing.Sinusoidal</a></li> <li><a href="../classes/Kiwi.Animations.Tweens.TweenManager.html">Kiwi.Animations.Tweens.TweenManager</a></li> <li><a href="../classes/Kiwi.Camera.html">Kiwi.Camera</a></li> <li><a href="../classes/Kiwi.CameraManager.html">Kiwi.CameraManager</a></li> <li><a href="../classes/Kiwi.Component.html">Kiwi.Component</a></li> <li><a href="../classes/Kiwi.ComponentManager.html">Kiwi.ComponentManager</a></li> <li><a href="../classes/Kiwi.Components.AnimationManager.html">Kiwi.Components.AnimationManager</a></li> <li><a href="../classes/Kiwi.Components.ArcadePhysics.html">Kiwi.Components.ArcadePhysics</a></li> <li><a href="../classes/Kiwi.Components.Box.html">Kiwi.Components.Box</a></li> <li><a href="../classes/Kiwi.Components.Input.html">Kiwi.Components.Input</a></li> <li><a href="../classes/Kiwi.Components.Sound.html">Kiwi.Components.Sound</a></li> <li><a href="../classes/Kiwi.Entity.html">Kiwi.Entity</a></li> <li><a href="../classes/Kiwi.Files.DataLibrary.html">Kiwi.Files.DataLibrary</a></li> <li><a href="../classes/Kiwi.Files.File.html">Kiwi.Files.File</a></li> <li><a href="../classes/Kiwi.Files.FileStore.html">Kiwi.Files.FileStore</a></li> <li><a href="../classes/Kiwi.Files.Loader.html">Kiwi.Files.Loader</a></li> <li><a href="../classes/Kiwi.Game.html">Kiwi.Game</a></li> <li><a href="../classes/Kiwi.GameManager.html">Kiwi.GameManager</a></li> <li><a href="../classes/Kiwi.GameObjects.Sprite.html">Kiwi.GameObjects.Sprite</a></li> <li><a href="../classes/Kiwi.GameObjects.StaticImage.html">Kiwi.GameObjects.StaticImage</a></li> <li><a href="../classes/Kiwi.GameObjects.Textfield.html">Kiwi.GameObjects.Textfield</a></li> <li><a href="../classes/Kiwi.GameObjects.Tilemap.TileMap.html">Kiwi.GameObjects.Tilemap.TileMap</a></li> <li><a href="../classes/Kiwi.GameObjects.Tilemap.TileMapLayer.html">Kiwi.GameObjects.Tilemap.TileMapLayer</a></li> <li><a href="../classes/Kiwi.GameObjects.Tilemap.TileType.html">Kiwi.GameObjects.Tilemap.TileType</a></li> <li><a href="../classes/Kiwi.Geom.AABB.html">Kiwi.Geom.AABB</a></li> <li><a href="../classes/Kiwi.Geom.Circle.html">Kiwi.Geom.Circle</a></li> <li><a href="../classes/Kiwi.Geom.Intersect.html">Kiwi.Geom.Intersect</a></li> <li><a href="../classes/Kiwi.Geom.IntersectResult.html">Kiwi.Geom.IntersectResult</a></li> <li><a href="../classes/Kiwi.Geom.Line.html">Kiwi.Geom.Line</a></li> <li><a href="../classes/Kiwi.Geom.Matrix.html">Kiwi.Geom.Matrix</a></li> <li><a href="../classes/Kiwi.Geom.Point.html">Kiwi.Geom.Point</a></li> <li><a href="../classes/Kiwi.Geom.Ray.html">Kiwi.Geom.Ray</a></li> <li><a href="../classes/Kiwi.Geom.Rectangle.html">Kiwi.Geom.Rectangle</a></li> <li><a href="../classes/Kiwi.Geom.Transform.html">Kiwi.Geom.Transform</a></li> <li><a href="../classes/Kiwi.Geom.Vector2.html">Kiwi.Geom.Vector2</a></li> <li><a href="../classes/Kiwi.Group.html">Kiwi.Group</a></li> <li><a href="../classes/Kiwi.HUD.HUDComponents.Counter.html">Kiwi.HUD.HUDComponents.Counter</a></li> <li><a href="../classes/Kiwi.HUD.HUDComponents.Time.html">Kiwi.HUD.HUDComponents.Time</a></li> <li><a href="../classes/Kiwi.HUD.HUDComponents.WidgetInput.html">Kiwi.HUD.HUDComponents.WidgetInput</a></li> <li><a href="../classes/Kiwi.HUD.HUDDisplay.html">Kiwi.HUD.HUDDisplay</a></li> <li><a href="../classes/Kiwi.HUD.HUDManager.html">Kiwi.HUD.HUDManager</a></li> <li><a href="../classes/Kiwi.HUD.HUDWidget.html">Kiwi.HUD.HUDWidget</a></li> <li><a href="../classes/Kiwi.HUD.Widget.Bar.html">Kiwi.HUD.Widget.Bar</a></li> <li><a href="../classes/Kiwi.HUD.Widget.BasicScore.html">Kiwi.HUD.Widget.BasicScore</a></li> <li><a href="../classes/Kiwi.HUD.Widget.Button.html">Kiwi.HUD.Widget.Button</a></li> <li><a href="../classes/Kiwi.HUD.Widget.Icon.html">Kiwi.HUD.Widget.Icon</a></li> <li><a href="../classes/Kiwi.HUD.Widget.IconBar.html">Kiwi.HUD.Widget.IconBar</a></li> <li><a href="../classes/Kiwi.HUD.Widget.Menu.html">Kiwi.HUD.Widget.Menu</a></li> <li><a href="../classes/Kiwi.HUD.Widget.MenuItem.html">Kiwi.HUD.Widget.MenuItem</a></li> <li><a href="../classes/Kiwi.HUD.Widget.TextField.html">Kiwi.HUD.Widget.TextField</a></li> <li><a href="../classes/Kiwi.HUD.Widget.Time.html">Kiwi.HUD.Widget.Time</a></li> <li><a href="../classes/Kiwi.IChild.html">Kiwi.IChild</a></li> <li><a href="../classes/Kiwi.Input.Finger.html">Kiwi.Input.Finger</a></li> <li><a href="../classes/Kiwi.Input.InputManager.html">Kiwi.Input.InputManager</a></li> <li><a href="../classes/Kiwi.Input.Key.html">Kiwi.Input.Key</a></li> <li><a href="../classes/Kiwi.Input.Keyboard.html">Kiwi.Input.Keyboard</a></li> <li><a href="../classes/Kiwi.Input.Keycodes.html">Kiwi.Input.Keycodes</a></li> <li><a href="../classes/Kiwi.Input.Mouse.html">Kiwi.Input.Mouse</a></li> <li><a href="../classes/Kiwi.Input.MouseCursor.html">Kiwi.Input.MouseCursor</a></li> <li><a href="../classes/Kiwi.Input.Pointer.html">Kiwi.Input.Pointer</a></li> <li><a href="../classes/Kiwi.Input.Touch.html">Kiwi.Input.Touch</a></li> <li><a href="../classes/Kiwi.PluginManager.html">Kiwi.PluginManager</a></li> <li><a href="../classes/Kiwi.Renderers.CanvasRenderer.html">Kiwi.Renderers.CanvasRenderer</a></li> <li><a href="../classes/Kiwi.Renderers.GLArrayBuffer.html">Kiwi.Renderers.GLArrayBuffer</a></li> <li><a href="../classes/Kiwi.Renderers.GLBlendMode.html">Kiwi.Renderers.GLBlendMode</a></li> <li><a href="../classes/Kiwi.Renderers.GLElementArrayBuffer.html">Kiwi.Renderers.GLElementArrayBuffer</a></li> <li><a href="../classes/Kiwi.Renderers.GLRenderManager.html">Kiwi.Renderers.GLRenderManager</a></li> <li><a href="../classes/Kiwi.Renderers.GLTextureManager.html">Kiwi.Renderers.GLTextureManager</a></li> <li><a href="../classes/Kiwi.Renderers.GLTextureWrapper.html">Kiwi.Renderers.GLTextureWrapper</a></li> <li><a href="../classes/Kiwi.Renderers.Renderer.html">Kiwi.Renderers.Renderer</a></li> <li><a href="../classes/Kiwi.Renderers.TextureAtlasRenderer.html">Kiwi.Renderers.TextureAtlasRenderer</a></li> <li><a href="../classes/Kiwi.Shaders.ShaderManager.html">Kiwi.Shaders.ShaderManager</a></li> <li><a href="../classes/Kiwi.Shaders.ShaderPair.html">Kiwi.Shaders.ShaderPair</a></li> <li><a href="../classes/Kiwi.Shaders.TextureAtlasShader.html">Kiwi.Shaders.TextureAtlasShader</a></li> <li><a href="../classes/Kiwi.Signal.html">Kiwi.Signal</a></li> <li><a href="../classes/Kiwi.SignalBinding.html">Kiwi.SignalBinding</a></li> <li><a href="../classes/Kiwi.Sound.Audio.html">Kiwi.Sound.Audio</a></li> <li><a href="../classes/Kiwi.Sound.AudioLibrary.html">Kiwi.Sound.AudioLibrary</a></li> <li><a href="../classes/Kiwi.Sound.AudioManager.html">Kiwi.Sound.AudioManager</a></li> <li><a href="../classes/Kiwi.Stage.html">Kiwi.Stage</a></li> <li><a href="../classes/Kiwi.State.html">Kiwi.State</a></li> <li><a href="../classes/Kiwi.StateConfig.html">Kiwi.StateConfig</a></li> <li><a href="../classes/Kiwi.StateManager.html">Kiwi.StateManager</a></li> <li><a href="../classes/Kiwi.System.Bootstrap.html">Kiwi.System.Bootstrap</a></li> <li><a href="../classes/Kiwi.System.Device.html">Kiwi.System.Device</a></li> <li><a href="../classes/Kiwi.Textures.SingleImage.html">Kiwi.Textures.SingleImage</a></li> <li><a href="../classes/Kiwi.Textures.SpriteSheet.html">Kiwi.Textures.SpriteSheet</a></li> <li><a href="../classes/Kiwi.Textures.TextureAtlas.html">Kiwi.Textures.TextureAtlas</a></li> <li><a href="../classes/Kiwi.Textures.TextureLibrary.html">Kiwi.Textures.TextureLibrary</a></li> <li><a href="../classes/Kiwi.Time.Clock.html">Kiwi.Time.Clock</a></li> <li><a href="../classes/Kiwi.Time.ClockManager.html">Kiwi.Time.ClockManager</a></li> <li><a href="../classes/Kiwi.Time.MasterClock.html">Kiwi.Time.MasterClock</a></li> <li><a href="../classes/Kiwi.Time.Timer.html">Kiwi.Time.Timer</a></li> <li><a href="../classes/Kiwi.Time.TimerEvent.html">Kiwi.Time.TimerEvent</a></li> <li><a href="../classes/Kiwi.Utils.Canvas.html">Kiwi.Utils.Canvas</a></li> <li><a href="../classes/Kiwi.Utils.Common.html">Kiwi.Utils.Common</a></li> <li><a href="../classes/Kiwi.Utils.GameMath.html">Kiwi.Utils.GameMath</a></li> <li><a href="../classes/Kiwi.Utils.RandomDataGenerator.html">Kiwi.Utils.RandomDataGenerator</a></li> <li><a href="../classes/Kiwi.Utils.RequestAnimationFrame.html">Kiwi.Utils.RequestAnimationFrame</a></li> <li><a href="../classes/Kiwi.Utils.Version.html">Kiwi.Utils.Version</a></li> </ul> <ul id="api-modules" class="apis modules"> <li><a href="../modules/Animations.html">Animations</a></li> <li><a href="../modules/Components.html">Components</a></li> <li><a href="../modules/Easing.html">Easing</a></li> <li><a href="../modules/Files.html">Files</a></li> <li><a href="../modules/GameObjects.html">GameObjects</a></li> <li><a href="../modules/Geom.html">Geom</a></li> <li><a href="../modules/HUD.html">HUD</a></li> <li><a href="../modules/HUDComponents.html">HUDComponents</a></li> <li><a href="../modules/Input.html">Input</a></li> <li><a href="../modules/Kiwi.html">Kiwi</a></li> <li><a href="../modules/Renderers.html">Renderers</a></li> <li><a href="../modules/Shaders.html">Shaders</a></li> <li><a href="../modules/Sound.html">Sound</a></li> <li><a href="../modules/System.html">System</a></li> <li><a href="../modules/Textures.html">Textures</a></li> <li><a href="../modules/Tilemap.html">Tilemap</a></li> <li><a href="../modules/Time.html">Time</a></li> <li><a href="../modules/Tweens.html">Tweens</a></li> <li><a href="../modules/Utils.html">Utils</a></li> <li><a href="../modules/Widget.html">Widget</a></li> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1>Kiwi.Renderers.CanvasRenderer Class</h1> <div class="box meta"> <div class="foundat"> Defined in: <a href="../files/src_render_CanvasRenderer.ts.html#l25"><code>src\render\CanvasRenderer.ts:25</code></a> </div> Module: <a href="../modules/Renderers.html">Renderers</a><br> Parent Module: <a href="../modules/Kiwi.html">Kiwi</a> </div> <div class="box intro"> </div> <div class="constructor"> <h2>Constructor</h2> <div id="method_Kiwi.Renderers.CanvasRenderer" class="method item"> <h3 class="name"><code>Kiwi.Renderers.CanvasRenderer</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>game</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Kiwi.Renderes.CanvasRenderer</span> </span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l25"><code>src\render\CanvasRenderer.ts:25</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">game</code> <span class="type"><a href="..\classes\Kiwi.Game.html" class="crosslink">Kiwi.Game</a></span> <div class="param-description"> <p>The game that this canvas renderer belongs to.</p> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Kiwi.Renderes.CanvasRenderer</span>: </div> </div> </div> </div> <div id="classdocs" class="tabview"> <ul class="api-class-tabs"> <li class="api-class-tab index"><a href="#index">Index</a></li> <li class="api-class-tab methods"><a href="#methods">Methods</a></li> <li class="api-class-tab properties"><a href="#properties">Properties</a></li> </ul> <div> <div id="index" class="api-class-tabpanel index"> <h2 class="off-left">Item Index</h2> <div class="index-section methods"> <h3>Methods</h3> <ul class="index-list methods"> <li class="index-item method private"> <a href="#method__recurse">_recurse</a> </li> <li class="index-item method public"> <a href="#method_boot">boot</a> </li> <li class="index-item method public"> <a href="#method_objType">objType</a> </li> <li class="index-item method public"> <a href="#method_render">render</a> </li> </ul> </div> <div class="index-section properties"> <h3>Properties</h3> <ul class="index-list properties"> <li class="index-item property private"> <a href="#property__currentCamera">_currentCamera</a> </li> <li class="index-item property private"> <a href="#property__game">_game</a> </li> </ul> </div> </div> <div id="methods" class="api-class-tabpanel"> <h2 class="off-left">Methods</h2> <div id="method__recurse" class="method item private"> <h3 class="name"><code>_recurse</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>child</code> </li> </ul><span class="paren">)</span> </div> <span class="flag private">private</span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l75"><code>src\render\CanvasRenderer.ts:75</code></a> </p> </div> <div class="description"> <p>This method recursively goes through a State&#39;s members and runs the render method of each member that is a Entity. If it is a Group then this method recursively goes through that Groups members the process that happened to the State&#39;s members happens to the Group&#39;s members.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">child</code> <span class="type">Object</span> <div class="param-description"> <p>The child that is being checked.</p> </div> </li> </ul> </div> </div> <div id="method_boot" class="method item public"> <h3 class="name"><code>boot</code></h3> <span class="paren">()</span> <span class="flag public">public</span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l40"><code>src\render\CanvasRenderer.ts:40</code></a> </p> </div> <div class="description"> <p>The boot method is executed when all of the DOM elements that are needed to play the game are ready.</p> </div> </div> <div id="method_objType" class="method item public"> <h3 class="name"><code>objType</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type">String</span> </span> <span class="flag public">public</span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l49"><code>src\render\CanvasRenderer.ts:49</code></a> </p> </div> <div class="description"> <p>Returns the type of object that this is.</p> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">String</span>: </div> </div> </div> <div id="method_render" class="method item public"> <h3 class="name"><code>render</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>camera</code> </li> </ul><span class="paren">)</span> </div> <span class="flag public">public</span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l118"><code>src\render\CanvasRenderer.ts:118</code></a> </p> </div> <div class="description"> <p>Renders all of the Elements that are on a particular camera.</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">camera</code> <span class="type"><a href="..\classes\Kiwi.Camera.html" class="crosslink">Kiwi.Camera</a></span> <div class="param-description"> </div> </li> </ul> </div> </div> </div> <div id="properties" class="api-class-tabpanel"> <h2 class="off-left">Properties</h2> <div id="property__currentCamera" class="property item private"> <h3 class="name"><code>_currentCamera</code></h3> <span class="type"><a href="..\classes\Kiwi.Camera.html" class="crosslink">Kiwi.Camera</a></span> <span class="flag private">private</span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l67"><code>src\render\CanvasRenderer.ts:67</code></a> </p> </div> <div class="description"> <p>The camera that is currently being used to render upon.</p> </div> </div> <div id="property__game" class="property item private"> <h3 class="name"><code>_game</code></h3> <span class="type"><a href="..\classes\Kiwi.Game.html" class="crosslink">Kiwi.Game</a></span> <span class="flag private">private</span> <div class="meta"> <p> Defined in <a href="../files/src_render_CanvasRenderer.ts.html#l59"><code>src\render\CanvasRenderer.ts:59</code></a> </p> </div> <div class="description"> <p>The game that this object belongs to.</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../assets/vendor/prettify/prettify-min.js"></script> <script>prettyPrint();</script> <script src="../assets/js/yui-prettify.js"></script> <script src="../assets/../api.js"></script> <script src="../assets/js/api-filter.js"></script> <script src="../assets/js/api-list.js"></script> <script src="../assets/js/api-search.js"></script> <script src="../assets/js/apidocs.js"></script> </body> </html>
NoelReverse/dys
docs/classes/Kiwi.Renderers.CanvasRenderer.html
HTML
mit
30,406
// @flow import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import Middleware from './Middleware'; type Base = { href?: string, target?: string, }; type Link = { crossOrigin?: string, href?: string, hrefLang?: string, integrity?: string, media?: string, preload?: boolean, prefetch?: boolean, rel?: string, sizes?: string, title?: string, type?: string, }; type Meta = { content?: string, httpEquiv?: string, charSet?: string, name?: string }; type Script = { async?: boolean, crossOrigin?: string, defer?: boolean, integrity?: string, script?: string, src?: string, type?: string, }; type Stylesheet = { href?: string, media?: string, rel?: string }; type Head = { base?: Base, meta?: Array<Meta>, links?: Array<Link>, scripts?: Array<Script>, stylesheets?: Array<Stylesheet>, title?: string, }; type Result = { body?: string, containerId?: string, head?: Head, lang?: string, scripts?: Array<Script>, status?: number, stylesheets?: Array<Stylesheet>, }; export type Props = { render: (context: *) => Promise<Result> | Result, }; export function renderHead(head: Head, additionalStylesheets?: Array<Stylesheet> = []): string { const metaTags = head.meta || []; const links = head.links || []; const scripts = head.scripts || []; const stylesheets = [...(head.stylesheets || []), ...additionalStylesheets]; return renderToStaticMarkup( <head> {head.base && <base {...head.base} />} {metaTags.map((tag, i) => <meta key={i} {...tag} />)} <title> {head.title} </title> {links.map((linkAttrs, i) => <link key={i} {...linkAttrs} />)} {stylesheets.map((stylesheetAttrs, i) => <link key={`s-${i}`} {...stylesheetAttrs} rel={stylesheetAttrs.rel || 'stylesheet'} />, )} {scripts.map((scriptAttrs, i) => <script key={`scr-${i}`} {...scriptAttrs} dangerouslySetInnerHTML={{ __html: scriptAttrs.script }} />, )} </head>, ); } export function renderFooter(scripts?: Array<Script> = []): string { return renderToStaticMarkup( <footer> {scripts.map((scriptAttrs, i) => <script key={`fscr-${i}`} {...scriptAttrs} dangerouslySetInnerHTML={{ __html: scriptAttrs.script }} />, )} </footer>, ).replace(/<(\/)?footer>/g, ''); } export default function RenderApp({ render }: Props) { return ( <Middleware use={async ctx => { const { body = '', containerId = 'app', lang = 'en', head = {}, scripts = [], status, stylesheets = [], } = await render(ctx); ctx.status = status || 200; ctx.body = ` <html lang="${lang}"> ${renderHead(head, stylesheets)} <body> <div id="${containerId}">${body}</div> ${renderFooter(scripts)} </body> </html> `.trim(); }} /> ); }
michalkvasnicak/spust
packages/spust-koa/src/RenderApp.js
JavaScript
mit
2,997
-- randexpr1.test -- -- db eval {SELECT (case coalesce((select +a from t1 where exists(select 1 from t1 where t1.e not between t1.f-b and (select count(*) from t1)-t1.f | e)),t1.d+case when t1.b not between t1.d and 17+case when a in (t1.d,a,(abs(~case when (t1.f)<=t1.c then -17 else t1.f end)/abs(19))*d*t1.d) then (b) else a end then 11 else f end+(t1.a)) when f then 17 else t1.e end) FROM t1 WHERE NOT (a-e*case t1.d+case c when (abs(~t1.d*(select min(case when not exists(select 1 from t1 where ((d)+(19) between 11 and 19)) then 11+13 when e not in (t1.f,17,e) and t1.c<>a then t1.e else 19 end*t1.a-f) from t1))/abs(b)) then 13 else 17 end when t1.f then (f) else t1.c end<b and 19 between t1.a and t1.a or d<f)} SELECT (case coalesce((select +a from t1 where exists(select 1 from t1 where t1.e not between t1.f-b and (select count(*) from t1)-t1.f | e)),t1.d+case when t1.b not between t1.d and 17+case when a in (t1.d,a,(abs(~case when (t1.f)<=t1.c then -17 else t1.f end)/abs(19))*d*t1.d) then (b) else a end then 11 else f end+(t1.a)) when f then 17 else t1.e end) FROM t1 WHERE NOT (a-e*case t1.d+case c when (abs(~t1.d*(select min(case when not exists(select 1 from t1 where ((d)+(19) between 11 and 19)) then 11+13 when e not in (t1.f,17,e) and t1.c<>a then t1.e else 19 end*t1.a-f) from t1))/abs(b)) then 13 else 17 end when t1.f then (f) else t1.c end<b and 19 between t1.a and t1.a or d<f)
bkiers/sqlite-parser
src/test/resources/randexpr1.test_1885.sql
SQL
mit
1,410
import { RESOURCE, SERVER_ERRORS, INITIAL_STATE_WITH_CACHED_LIST, INITIAL_STATE_WITH_LIST_BEING_FETCHED, INITIAL_STATE_WITH_CACHED_AND_SELECTED_LIST, } from '../mocks' import { generateListResourceActions } from './mocks' const request = () => Promise.resolve([RESOURCE]) const errorRequest = () => Promise.reject(SERVER_ERRORS) it('will dispatch two actions on success', async () => { const actions = await generateListResourceActions({ request }) expect(actions.length).toBe(2) }) it('will dispatch two actions on error', async () => { const actions = await generateListResourceActions({ request: errorRequest }) expect(actions.length).toBe(2) }) it('will dispatch one action if the list is cached but not selected', async () => { const actions = await generateListResourceActions({ request: errorRequest, initialState: INITIAL_STATE_WITH_CACHED_LIST, }) expect(actions.length).toBe(1) }) it('will dispatch two action if the list is cached but shouldIgnoreCache is passed', async () => { const actions = await generateListResourceActions({ request: errorRequest, shouldIgnoreCache: true, initialState: INITIAL_STATE_WITH_CACHED_LIST, }) expect(actions.length).toBe(2) }) it('will dispatch no actions if the list is cached and selected', async () => { const actions = await generateListResourceActions({ request: errorRequest, initialState: INITIAL_STATE_WITH_CACHED_AND_SELECTED_LIST, }) expect(actions.length).toBe(0) }) it('will dispatch no actions if the list is being fetched', async () => { const actions = await generateListResourceActions({ request: errorRequest, initialState: INITIAL_STATE_WITH_LIST_BEING_FETCHED, }) expect(actions.length).toBe(0) }) it('will have a update selectedResourceList action', async () => { const [inititalAction] = await generateListResourceActions({ request: errorRequest, initialState: INITIAL_STATE_WITH_CACHED_LIST, }) expect(inititalAction).toMatchSnapshot() }) it('will have an initial action', async () => { const [inititalAction] = await generateListResourceActions({ request }) expect(inititalAction).toMatchSnapshot() }) it('will have a success action', async () => { const [_, successAction] = await generateListResourceActions({ request }) expect(successAction).toMatchSnapshot() }) it('will have a error action', async () => { const [_, errorAction] = await generateListResourceActions({ request: errorRequest }) expect(errorAction).toMatchSnapshot() })
travisbloom/redux-resources
src/actions/listResource.spec.js
JavaScript
mit
2,626
#!/usr/bin/env bash phpize ./configure make sudo make install make clean php --re focusphp
mylxsw/FocusPHP-Ext
startup.sh
Shell
mit
92
// acquisition.hpp #ifndef ACQUISITION_HPP #define ACQUISITION_HPP #include <QAbstractVideoBuffer> #include <QAbstractVideoSurface> #include <QList> #include <QVideoFrame> #include <QLoggingCategory> Q_DECLARE_LOGGING_CATEGORY(visionAcquisitionLog) class Acquisition : public QAbstractVideoSurface { Q_OBJECT public: Acquisition (); QList<QVideoFrame::PixelFormat> supportedPixelFormats ( QAbstractVideoBuffer::HandleType handleType) const; bool present (const QVideoFrame& frame); signals: void FrameAvailable (const QVideoFrame& frame); }; #endif // ACQUISITION_HPP
derpicated/articated
source/vision/acquisition.hpp
C++
mit
608
/* * The MIT License * Copyright © 2014 Cube Island * * 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. */ package de.cubeisland.engine.modularity.core; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import java.util.PriorityQueue; import java.util.Queue; import java.util.TreeMap; import javax.inject.Provider; import de.cubeisland.engine.modularity.core.graph.Dependency; import de.cubeisland.engine.modularity.core.graph.DependencyInformation; import de.cubeisland.engine.modularity.core.graph.meta.ModuleMetadata; import de.cubeisland.engine.modularity.core.graph.meta.ServiceDefinitionMetadata; import de.cubeisland.engine.modularity.core.graph.meta.ServiceImplementationMetadata; import de.cubeisland.engine.modularity.core.graph.meta.ServiceProviderMetadata; import de.cubeisland.engine.modularity.core.marker.Disable; import de.cubeisland.engine.modularity.core.marker.Enable; import de.cubeisland.engine.modularity.core.marker.Setup; import de.cubeisland.engine.modularity.core.service.ServiceProvider; import static de.cubeisland.engine.modularity.core.LifeCycle.State.*; public class LifeCycle { private static final Field MODULE_META_FIELD; private static final Field MODULE_MODULARITY_FIELD; private static final Field MODULE_LIFECYCLE; static { try { MODULE_META_FIELD = Module.class.getDeclaredField("metadata"); MODULE_META_FIELD.setAccessible(true); MODULE_MODULARITY_FIELD = Module.class.getDeclaredField("modularity"); MODULE_MODULARITY_FIELD.setAccessible(true); MODULE_LIFECYCLE = Module.class.getDeclaredField("lifeCycle"); MODULE_LIFECYCLE.setAccessible(true); } catch (NoSuchFieldException e) { throw new IllegalStateException(); } } private Modularity modularity; private DependencyInformation info; private State current = NONE; private Object instance; private Method enable; private Method disable; private Map<Integer, Method> setup = new TreeMap<Integer, Method>(); private Map<Dependency, SettableMaybe> maybes = new HashMap<Dependency, SettableMaybe>(); private Queue<LifeCycle> impls = new LinkedList<LifeCycle>(); public LifeCycle(Modularity modularity) { this.modularity = modularity; } public LifeCycle load(DependencyInformation info) { this.info = info; this.current = LOADED; return this; } public LifeCycle provide(ValueProvider provider) { this.instance = provider; this.current = PROVIDED; return this; } public LifeCycle initProvided(Object object) { this.instance = object; this.current = PROVIDED; return this; } public boolean isIn(State state) { return current == state; } public LifeCycle instantiate() { if (isIn(NONE)) { throw new IllegalStateException("Cannot instantiate when not loaded"); } if (isIn(LOADED)) { try { if (info instanceof ServiceDefinitionMetadata) { ClassLoader classLoader = info.getClassLoader(); if (classLoader == null) // may happen when loading from classpath { classLoader = modularity.getClass().getClassLoader(); // get parent classloader then } Class<?> instanceClass = Class.forName(info.getClassName(), true, classLoader); instance = new ServiceProvider(instanceClass, impls); // TODO find impls in modularity and link them to this // TODO transition all impls to INSTANTIATED? } else { this.instance = info.injectionPoints().get(INSTANTIATED.name(0)).inject(modularity, this); if (instance instanceof Module) { MODULE_META_FIELD.set(instance, info); MODULE_MODULARITY_FIELD.set(instance, modularity); MODULE_LIFECYCLE.set(instance, this); } info.injectionPoints().get(INSTANTIATED.name(1)).inject(modularity, this); findMethods(); } } catch (ClassNotFoundException e) { throw new IllegalStateException(e); } catch (IllegalAccessException e) { throw new IllegalStateException(e); } current = INSTANTIATED; } // else State already reached or provided return this; } public LifeCycle setup() { if (isIn(NONE)) { throw new IllegalStateException("Cannot instantiate when not loaded"); } if (isIn(LOADED)) { this.instantiate(); } if (isIn(INSTANTIATED)) { // TODO abstract those methods away for (Method method : setup.values()) { invoke(method); } for (LifeCycle impl : impls) { impl.setup(); } current = SETUP; } // else reached or provided return this; } public LifeCycle enable() { if (isIn(NONE)) { throw new IllegalStateException("Cannot instantiate when not loaded"); } if (isIn(LOADED)) { this.instantiate(); } if (isIn(INSTANTIATED)) { this.setup(); } if (isIn(SETUP)) { this.modularity.log("Enable " + info.getIdentifier().name()); modularity.runEnableHandlers(getInstance()); invoke(enable); for (SettableMaybe maybe : maybes.values()) { maybe.provide(getProvided(this)); } for (LifeCycle impl : impls) { impl.enable(); } current = ENABLED; } return this; } public LifeCycle disable() { if (isIn(ENABLED)) { modularity.runDisableHandlers(getInstance()); invoke(disable); for (SettableMaybe maybe : maybes.values()) { maybe.remove(); } // TODO if active impl replace in service with inactive OR disable service too // TODO if service disable all impls too modularity.getGraph().getNode(info.getIdentifier()).getPredecessors(); // TODO somehow implement reload too // TODO disable predecessors for (LifeCycle impl : impls) { impl.disable(); } current = DISABLED; } return this; } private void invoke(Method method) { if (method != null) { if (method.isAnnotationPresent(Setup.class)) { info.injectionPoints().get(SETUP.name(method.getAnnotation(Setup.class).value())) .inject(modularity, this); } else if (method.isAnnotationPresent(Enable.class)) { info.injectionPoints().get(ENABLED.name()).inject(modularity, this); } else { try { method.invoke(instance); } catch (IllegalAccessException e) { throw new IllegalStateException(e); } catch (IllegalArgumentException e) { throw new IllegalStateException(e); } catch (InvocationTargetException e) { throw new IllegalStateException(e); } } } } public boolean isInstantiated() { return instance != null; } private void findMethods() { // find enable and disable methods Class<?> clazz = instance.getClass(); for (Method method : clazz.getMethods()) { if (method.isAnnotationPresent(Enable.class)) { enable = method; } if (method.isAnnotationPresent(Disable.class)) { disable = method; } if (method.isAnnotationPresent(Setup.class)) { int value = method.getAnnotation(Setup.class).value(); setup.put(value, method); } } } public Object getInstance() { return instance; } @SuppressWarnings("unchecked") public Maybe getMaybe(LifeCycle other) { Dependency identifier = other == null ? null : other.getInformation().getIdentifier(); SettableMaybe maybe = maybes.get(identifier); if (maybe == null) { maybe = new SettableMaybe(getProvided(other)); maybes.put(identifier, maybe); } return maybe; } public Object getProvided(LifeCycle lifeCycle) { boolean enable = true; if (info instanceof ModuleMetadata) { enable = false; } if (instance == null) { this.instantiate(); } if (enable) { this.enable(); // Instantiate Setup and enable dependency before providing it to someone else } Object toSet = instance; if (toSet instanceof Provider) { toSet = ((Provider)toSet).get(); } if (toSet instanceof ValueProvider) { toSet = ((ValueProvider)toSet).get(lifeCycle, modularity); } return toSet; } public void addImpl(LifeCycle impl) { this.impls.add(impl); } public DependencyInformation getInformation() { return info; } public enum State { NONE, LOADED, INSTANTIATED, SETUP, ENABLED, DISABLED, SHUTDOWN, PROVIDED // TODO prevent changing / except shutdown? ; public String name(Integer value) { return value == null ? name() : name() + ":" + value; } } @Override public String toString() { return info.getIdentifier().name() + " " + super.toString(); } }
CubeEngine/Modularity
core/src/main/java/de/cubeisland/engine/modularity/core/LifeCycle.java
Java
mit
11,912
import { AppPage } from './app.po'; describe('material2 App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to app!'); }); });
dylan-smith/pokerleaguemanager
spikes/Material2/e2e/app.e2e-spec.ts
TypeScript
mit
291
Radiant.config do |config| config.define 'admin.title', :default => "Radiant CMS" config.define 'dev.host' config.define 'local.timezone', :allow_change => true, :select_from => lambda { ActiveSupport::TimeZone::MAPPING.keys.sort } config.define 'defaults.locale', :select_from => lambda { Radiant::AvailableLocales.locales }, :allow_blank => true config.define 'defaults.page.parts', :default => "Body,Extended" config.define 'defaults.page.status', :select_from => lambda { Status.selectable_values }, :allow_blank => true, :default => "Draft" config.define 'defaults.page.filter', :select_from => lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, :allow_blank => true config.define 'defaults.page.fields' config.define 'defaults.snippet.filter', :select_from => lambda { TextFilter.descendants.map { |s| s.filter_name }.sort }, :allow_blank => true config.define 'pagination.param_name', :default => 'page' config.define 'pagination.per_page_param_name', :default => 'per_page' config.define 'admin.pagination.per_page', :type => :integer, :default => 50 config.define 'site.title', :default => "Your site title", :allow_blank => false config.define 'site.host', :default => "www.example.com", :allow_blank => false config.define 'user.allow_password_reset?', :default => true end
jcasimir/radiant
config/initializers/radiant_config.rb
Ruby
mit
1,331
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>menhirlib: 48 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.13.1 / menhirlib - 20200612</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> menhirlib <small> 20200612 <span class="label label-success">48 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-13 08:04:05 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-13 08:04:05 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 8.13.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 zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; synopsis: &quot;A support library for verified Coq parsers produced by Menhir&quot; maintainer: &quot;[email protected]&quot; authors: [ &quot;Jacques-Henri Jourdan &lt;[email protected]&gt;&quot; ] homepage: &quot;https://gitlab.inria.fr/fpottier/menhir&quot; dev-repo: &quot;git+https://gitlab.inria.fr/fpottier/menhir.git&quot; bug-reports: &quot;[email protected]&quot; license: &quot;LGPL-3.0-or-later&quot; build: [ [make &quot;-C&quot; &quot;coq-menhirlib&quot; &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;-C&quot; &quot;coq-menhirlib&quot; &quot;install&quot;] ] depends: [ &quot;coq&quot; { &gt;= &quot;8.7&quot; &amp; &lt; &quot;8.14&quot; } ] conflicts: [ &quot;menhir&quot; { != &quot;20200612&quot; } ] tags: [ &quot;date:2020-06-12&quot; &quot;logpath:MenhirLib&quot; ] url { src: &quot;https://gitlab.inria.fr/fpottier/menhir/-/archive/20200612/archive.tar.gz&quot; checksum: [ &quot;md5=eb1c13439a00195ee01e4a2e83b3e991&quot; &quot;sha512=c94ddc2b2d8b9f5d05d8493a3ccd4a32e4512c3bd19ac8948905eb64bb6f2fd9e236344d2baf3d2ebae379d08d5169c99aa5e721c65926127e22ea283eba6167&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-menhirlib.20200612 coq.8.13.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-menhirlib.20200612 coq.8.13.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>12 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-menhirlib.20200612 coq.8.13.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>48 s</dd> </dl> <h2>Installation size</h2> <p>Total: 6 M</p> <ul> <li>2 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter_complete.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Main.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_complete.vo</code></li> <li>300 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter.vo</code></li> <li>236 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter_correct.vo</code></li> <li>133 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_safe.vo</code></li> <li>114 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter_complete.glob</code></li> <li>102 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Automaton.vo</code></li> <li>71 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Alphabet.vo</code></li> <li>62 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Grammar.vo</code></li> <li>47 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter.glob</code></li> <li>43 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_complete.glob</code></li> <li>35 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Alphabet.glob</code></li> <li>33 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter_complete.v</code></li> <li>29 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_classes.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter_correct.glob</code></li> <li>20 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_safe.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_complete.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Grammar.glob</code></li> <li>9 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Automaton.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Alphabet.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_safe.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Main.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_classes.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Interpreter_correct.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Automaton.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Grammar.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Main.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Validator_classes.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Version.vo</code></li> <li>1 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Version.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.10.2/lib/coq/user-contrib/MenhirLib/Version.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-menhirlib.20200612</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.13.1/menhirlib/20200612.html
HTML
mit
10,688
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dpdgraph: 16 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.9.0 / dpdgraph - 0.6.4</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> dpdgraph <small> 0.6.4 <span class="label label-success">16 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-24 12:53:50 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-24 12:53:50 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.9.0 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.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; license: &quot;LGPL 2.1&quot; homepage: &quot;https://github.com/karmaki/coq-dpdgraph&quot; build: [ [&quot;./configure&quot;] [&quot;echo&quot; &quot;%{jobs}%&quot; &quot;jobs for the linter&quot;] [make] ] bug-reports: &quot;https://github.com/karmaki/coq-dpdgraph/issues&quot; dev-repo: &quot;git+https://github.com/karmaki/coq-dpdgraph.git&quot; install: [ [make &quot;install&quot; &quot;BINDIR=%{bin}%&quot;] ] remove: [ [&quot;rm&quot; &quot;%{bin}%/dpd2dot&quot; &quot;%{bin}%/dpdusage&quot;] [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/dpdgraph&quot;] ] depends: [ &quot;ocaml&quot; {&lt; &quot;4.08.0&quot;} &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} &quot;ocamlgraph&quot; ] authors: [ &quot;Anne Pacalet&quot; &quot;Yves Bertot&quot;] synopsis: &quot;Compute dependencies between Coq objects (definitions, theorems) and produce graphs&quot; flags: light-uninstall url { src: &quot;https://github.com/Karmaki/coq-dpdgraph/releases/download/v0.6.4/coq-dpdgraph-0.6.4.tgz&quot; checksum: &quot;md5=93e5ffcfa808fdba9cc421866ee1d416&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-dpdgraph.0.6.4 coq.8.9.0</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-dpdgraph.0.6.4 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>26 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-dpdgraph.0.6.4 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>16 s</dd> </dl> <h2>Installation size</h2> <p>Total: 10 M</p> <ul> <li>5 M <code>../ocaml-base-compiler.4.03.0/bin/dpdusage</code></li> <li>5 M <code>../ocaml-base-compiler.4.03.0/bin/dpd2dot</code></li> <li>85 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/dpdgraph.cmxs</code></li> <li>14 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/graphdepend.cmi</code></li> <li>9 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/dpdgraph.cmxa</code></li> <li>9 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/graphdepend.cmx</code></li> <li>6 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/searchdepend.cmi</code></li> <li>5 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/searchdepend.cmx</code></li> <li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/dpdgraph.vo</code></li> <li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/dpdgraph.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/dpdgraph/dpdgraph.v</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-dpdgraph.0.6.4</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.9.0/dpdgraph/0.6.4.html
HTML
mit
7,967
package com.bugsnag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Configuration; import javax.annotation.PostConstruct; /** * If spring-webmvc is loaded, add configuration for reporting unhandled exceptions. */ @Configuration @Conditional(SpringWebMvcLoadedCondition.class) class MvcConfiguration { @Autowired private Bugsnag bugsnag; /** * Register an exception resolver to send unhandled reports to Bugsnag * for uncaught exceptions thrown from request handlers. */ @Bean BugsnagMvcExceptionHandler bugsnagHandlerExceptionResolver() { return new BugsnagMvcExceptionHandler(bugsnag); } /** * Add a callback to assign specified severities for some Spring exceptions. */ @PostConstruct void addExceptionClassCallback() { bugsnag.addCallback(new ExceptionClassCallback()); } }
bugsnag/bugsnag-java
bugsnag-spring/src/main/java/com/bugsnag/MvcConfiguration.java
Java
mit
1,039
import React, {Component} from 'react'; import MiniInfoBar from '../components/MiniInfoBar'; export default class About extends Component { state = { showKitten: false } handleToggleKitten() { this.setState({showKitten: !this.state.showKitten}); } render() { const {showKitten} = this.state; const kitten = require('./kitten.jpg'); return ( <div> <div className="container"> <h1>About Us</h1> <p>This project was orginally created by Erik Rasmussen (<a href="https://twitter.com/erikras" target="_blank">@erikras</a>), but has since seen many contributions from the open source community. Thank you to <a href="https://github.com/erikras/react-redux-universal-hot-example/graphs/contributors" target="_blank">all the contributors</a>. </p> <h3>Mini Bar <span style={{color: '#aaa'}}>(not that kind)</span></h3> <p>Hey! You found the mini info bar! The following component is display-only. Note that it shows the same time as the info bar.</p> <MiniInfoBar/> <h3>Images</h3> <p> Psst! Would you like to see a kitten? <button className={'btn btn-' + (showKitten ? 'danger' : 'success')} style={{marginLeft: 50}} onClick={::this.handleToggleKitten}> {showKitten ? 'No! Take it away!' : 'Yes! Please!'}</button> </p> {showKitten && <div><img src={kitten}/></div>} </div> </div> ); } }
vbdoug/hot-react
src/views/About.js
JavaScript
mit
1,598
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <meta name="collection" content="api"> <!-- Generated by javadoc (build 1.5.0-rc) on Wed Aug 11 07:24:05 PDT 2004 --> <TITLE> NumberOfDocuments (Java 2 Platform SE 5.0) </TITLE> <META NAME="keywords" CONTENT="javax.print.attribute.standard.NumberOfDocuments class"> <META NAME="keywords" CONTENT="equals()"> <META NAME="keywords" CONTENT="getCategory()"> <META NAME="keywords" CONTENT="getName()"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="NumberOfDocuments (Java 2 Platform SE 5.0)"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NumberOfDocuments.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Standard&nbsp;Ed. 5.0</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../javax/print/attribute/standard/MultipleDocumentHandling.html" title="class in javax.print.attribute.standard"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../../javax/print/attribute/standard/NumberOfInterveningJobs.html" title="class in javax.print.attribute.standard"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?javax/print/attribute/standard/NumberOfDocuments.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="NumberOfDocuments.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> javax.print.attribute.standard</FONT> <BR> Class NumberOfDocuments</H2> <PRE> <A HREF="../../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../javax/print/attribute/IntegerSyntax.html" title="class in javax.print.attribute">javax.print.attribute.IntegerSyntax</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>javax.print.attribute.standard.NumberOfDocuments</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../java/io/Serializable.html" title="interface in java.io">Serializable</A>, <A HREF="../../../../java/lang/Cloneable.html" title="interface in java.lang">Cloneable</A>, <A HREF="../../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</A>, <A HREF="../../../../javax/print/attribute/PrintJobAttribute.html" title="interface in javax.print.attribute">PrintJobAttribute</A></DD> </DL> <HR> <DL> <DT><PRE>public final class <B>NumberOfDocuments</B><DT>extends <A HREF="../../../../javax/print/attribute/IntegerSyntax.html" title="class in javax.print.attribute">IntegerSyntax</A><DT>implements <A HREF="../../../../javax/print/attribute/PrintJobAttribute.html" title="interface in javax.print.attribute">PrintJobAttribute</A></DL> </PRE> <P> Class NumberOfDocuments is an integer valued printing attribute that indicates the number of individual docs the printer has accepted for this job, regardless of whether the docs' print data has reached the printer or not. <P> <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The category name returned by <CODE>getName()</CODE> gives the IPP attribute name. <P> <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#javax.print.attribute.standard.NumberOfDocuments">Serialized Form</A></DL> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../javax/print/attribute/standard/NumberOfDocuments.html#NumberOfDocuments(int)">NumberOfDocuments</A></B>(int&nbsp;value)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new number of documents attribute with the given integer value.</TD> </TR> </TABLE> &nbsp; <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/print/attribute/standard/NumberOfDocuments.html#equals(java.lang.Object)">equals</A></B>(<A HREF="../../../../java/lang/Object.html" title="class in java.lang">Object</A>&nbsp;object)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether this number of documents attribute is equivalent to the passed in object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../../../java/lang/Class.html" title="class in java.lang">Class</A>&lt;? extends <A HREF="../../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</A>&gt;</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/print/attribute/standard/NumberOfDocuments.html#getCategory()">getCategory</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the printing attribute class which is to be used as the "category" for this printing attribute value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../javax/print/attribute/standard/NumberOfDocuments.html#getName()">getName</A></B>()</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the name of the category of which this attribute value is an instance.</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_javax.print.attribute.IntegerSyntax"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class javax.print.attribute.<A HREF="../../../../javax/print/attribute/IntegerSyntax.html" title="class in javax.print.attribute">IntegerSyntax</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../javax/print/attribute/IntegerSyntax.html#getValue()">getValue</A>, <A HREF="../../../../javax/print/attribute/IntegerSyntax.html#hashCode()">hashCode</A>, <A HREF="../../../../javax/print/attribute/IntegerSyntax.html#toString()">toString</A></CODE></TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD> </TR> </TABLE> &nbsp; <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="NumberOfDocuments(int)"><!-- --></A><H3> NumberOfDocuments</H3> <PRE> public <B>NumberOfDocuments</B>(int&nbsp;value)</PRE> <DL> <DD>Construct a new number of documents attribute with the given integer value. <P> <DL> <DT><B>Parameters:</B><DD><CODE>value</CODE> - Integer value. <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</A></CODE> - (Unchecked exception) Thrown if <CODE>value</CODE> is less than 0.</DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="equals(java.lang.Object)"><!-- --></A><H3> equals</H3> <PRE> public boolean <B>equals</B>(<A HREF="../../../../java/lang/Object.html" title="class in java.lang">Object</A>&nbsp;object)</PRE> <DL> <DD>Returns whether this number of documents attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true: <OL TYPE=1> <LI> <CODE>object</CODE> is not null. <LI> <CODE>object</CODE> is an instance of class NumberOfDocuments. <LI> This number of documents attribute's value and <CODE>object</CODE>'s value are equal. </OL> <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/print/attribute/IntegerSyntax.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../javax/print/attribute/IntegerSyntax.html" title="class in javax.print.attribute">IntegerSyntax</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>object</CODE> - Object to compare to. <DT><B>Returns:</B><DD>True if <CODE>object</CODE> is equivalent to this number of documents attribute, false otherwise.<DT><B>See Also:</B><DD><A HREF="../../../../java/lang/Object.html#hashCode()"><CODE>Object.hashCode()</CODE></A>, <A HREF="../../../../java/util/Hashtable.html" title="class in java.util"><CODE>Hashtable</CODE></A></DL> </DD> </DL> <HR> <A NAME="getCategory()"><!-- --></A><H3> getCategory</H3> <PRE> public final <A HREF="../../../../java/lang/Class.html" title="class in java.lang">Class</A>&lt;? extends <A HREF="../../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</A>&gt; <B>getCategory</B>()</PRE> <DL> <DD>Get the printing attribute class which is to be used as the "category" for this printing attribute value. <P> For class NumberOfDocuments, the category is class NumberOfDocuments itself. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/print/attribute/Attribute.html#getCategory()">getCategory</A></CODE> in interface <CODE><A HREF="../../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Printing attribute class (category), an instance of class <A HREF="../../../../java/lang/Class.html" title="class in java.lang"><CODE>java.lang.Class</CODE></A>.</DL> </DD> </DL> <HR> <A NAME="getName()"><!-- --></A><H3> getName</H3> <PRE> public final <A HREF="../../../../java/lang/String.html" title="class in java.lang">String</A> <B>getName</B>()</PRE> <DL> <DD>Get the name of the category of which this attribute value is an instance. <P> For class NumberOfDocuments, the category name is <CODE>"number-of-documents"</CODE>. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/print/attribute/Attribute.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../javax/print/attribute/Attribute.html" title="interface in javax.print.attribute">Attribute</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Attribute category name.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NumberOfDocuments.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Standard&nbsp;Ed. 5.0</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../javax/print/attribute/standard/MultipleDocumentHandling.html" title="class in javax.print.attribute.standard"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../../../javax/print/attribute/standard/NumberOfInterveningJobs.html" title="class in javax.print.attribute.standard"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?javax/print/attribute/standard/NumberOfDocuments.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="NumberOfDocuments.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="../../../../../relnotes/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Copyright &#169; 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to <a href="../../../../../relnotes/license.html">license terms</a>. Also see the <a href="http://java.sun.com/docs/redist.html">documentation redistribution policy</a>.</font> <!-- Start SiteCatalyst code --> <script language="JavaScript" src="http://www.oracle.com/ocom/groups/systemobject/@mktg_admin/documents/systemobject/s_code_download.js"></script> <script language="JavaScript" src="http://www.oracle.com/ocom/groups/systemobject/@mktg_admin/documents/systemobject/s_code.js"></script> <!-- ********** DO NOT ALTER ANYTHING BELOW THIS LINE ! *********** --> <!-- Below code will send the info to Omniture server --> <script language="javascript">var s_code=s.t();if(s_code)document.write(s_code)</script> <!-- End SiteCatalyst code --> </body> </HTML>
Smolations/more-dash-docsets
docsets/Java 5.docset/Contents/Resources/Documents/javax/print/attribute/standard/NumberOfDocuments.html
HTML
mit
19,307
package com.seafile.seadroid2.transfer; /** * Download state listener * */ public interface DownloadStateListener { void onFileDownloadProgress(int taskID); void onFileDownloaded(int taskID); void onFileDownloadFailed(int taskID); }
huangbop/seadroid-build
seadroid/src/main/java/com/seafile/seadroid2/transfer/DownloadStateListener.java
Java
mit
249
from pydispatch import dispatcher from PySide import QtCore, QtGui import cbpos logger = cbpos.get_logger(__name__) from .page import BasePage class MainWindow(QtGui.QMainWindow): __inits = [] def __init__(self): super(MainWindow, self).__init__() self.tabs = QtGui.QTabWidget(self) self.tabs.setTabsClosable(False) self.tabs.setIconSize(QtCore.QSize(32, 32)) self.tabs.currentChanged.connect(self.onCurrentTabChanged) self.toolbar = self.addToolBar('Base') self.toolbar.setIconSize(QtCore.QSize(48,48)) #Suitable for touchscreens self.toolbar.setObjectName('BaseToolbar') toolbarStyle = cbpos.config['menu', 'toolbar_style'] # The index in this list is the same as that in the configuration page available_styles = ( QtCore.Qt.ToolButtonFollowStyle, QtCore.Qt.ToolButtonIconOnly, QtCore.Qt.ToolButtonTextOnly, QtCore.Qt.ToolButtonTextBesideIcon, QtCore.Qt.ToolButtonTextUnderIcon, ) try: toolbarStyle = available_styles[int(toolbarStyle)] except (ValueError, TypeError, IndexError): toolbarStyle = QtCore.Qt.ToolButtonFollowStyle self.toolbar.setToolButtonStyle(toolbarStyle) self.setCentralWidget(self.tabs) self.statusBar().showMessage(cbpos.tr._('Coinbox POS is ready.')) self.setWindowTitle('Coinbox') self.callInit() self.loadToolbar() self.loadMenu() def loadToolbar(self): """ Loads the toolbar actions, restore toolbar state, and restore window geometry. """ mwState = cbpos.config['mainwindow', 'state'] mwGeom = cbpos.config['mainwindow', 'geometry'] for act in cbpos.menu.actions: # TODO: Remember to load an icon with a proper size (eg 48x48 px for touchscreens) action = QtGui.QAction(QtGui.QIcon(act.icon), act.label, self) action.setShortcut(act.shortcut) action.triggered.connect(act.trigger) self.toolbar.addAction(action) #Restores the saved mainwindow's toolbars and docks, and then the window geometry. if mwState is not None: self.restoreState( QtCore.QByteArray.fromBase64(mwState) ) if mwGeom is not None: self.restoreGeometry( QtCore.QByteArray.fromBase64(mwGeom) ) else: self.setGeometry(0, 0, 800, 600) def loadMenu(self): """ Load the menu root items and items into the QTabWidget with the appropriate pages. """ show_empty_root_items = cbpos.config['menu', 'show_empty_root_items'] show_disabled_items = cbpos.config['menu', 'show_disabled_items'] hide_tab_bar = not cbpos.config['menu', 'show_tab_bar'] if hide_tab_bar: # Hide the tab bar and prepare the toolbar for extra QAction's self.tabs.tabBar().hide() # This pre-supposes that the menu items will come after the actions self.toolbar.addSeparator() for root in cbpos.menu.items: if not root.enabled and not show_disabled_items: continue if show_disabled_items: # Show all child items children = root.children else: # Filter out those which are disabled children = [i for i in root.children if i.enabled] # Hide empty menu root items if len(children) == 0 and not show_empty_root_items: continue # Add the tab widget = self.getTabWidget(children) icon = QtGui.QIcon(root.icon) index = self.tabs.addTab(widget, icon, root.label) widget.setEnabled(root.enabled) # Add the toolbar action if enabled if hide_tab_bar: # TODO: Remember to load an icon with a proper size (eg 48x48 px for touchscreens) action = QtGui.QAction(QtGui.QIcon(icon), root.label, self) action.onTrigger = lambda n=index: self.tabs.setCurrentIndex(n) action.triggered.connect(action.onTrigger) self.toolbar.addAction(action) def onCurrentTabChanged(self, index, tabs=None): if tabs is None: tabs = self.tabs widget = tabs.widget(index) try: signal = widget.shown except AttributeError: pass else: signal.emit() def getTabWidget(self, items): """ Returns the appropriate window to be placed in the main QTabWidget, depending on the number of children of a root menu item. """ count = len(items) if count == 0: # If there are no child items, just return an empty widget widget = QtGui.QWidget() widget.setEnabled(False) return widget elif count == 1: # If there is only one item, show it as is. logger.debug('Loading menu page for %s', items[0].name) widget = items[0].page() widget.setEnabled(items[0].enabled) return widget else: # If there are many children, add them in a QTabWidget tabs = QtGui.QTabWidget() tabs.currentChanged.connect(lambda i, t=tabs: self.onCurrentTabChanged(i, t)) for item in items: logger.debug('Loading menu page for %s', item.name) widget = item.page() icon = QtGui.QIcon(item.icon) tabs.addTab(widget, icon, item.label) widget.setEnabled(item.enabled) return tabs def saveWindowState(self): """ Saves the main window state (position, size, toolbar positions) """ mwState = self.saveState().toBase64() mwGeom = self.saveGeometry().toBase64() cbpos.config['mainwindow', 'state'] = unicode(mwState) cbpos.config['mainwindow', 'geometry'] = unicode(mwGeom) cbpos.config.save() def closeEvent(self, event): """ Perform necessary operations before closing the window. """ self.saveWindowState() #do any other thing before closing... event.accept() @classmethod def addInit(cls, init): """ Adds the `init` method to the list of extensions of the `MainWindow.__init__`. """ cls.__inits.append(init) def callInit(self): """ Handle calls to `__init__` methods of extensions of the MainWindow. """ for init in self.__inits: init(self)
coinbox/coinbox-mod-base
cbmod/base/views/window.py
Python
mit
7,111
package cn.javay.zheng.common.validator; import com.baidu.unbiz.fluentvalidator.ValidationError; import com.baidu.unbiz.fluentvalidator.Validator; import com.baidu.unbiz.fluentvalidator.ValidatorContext; import com.baidu.unbiz.fluentvalidator.ValidatorHandler; /** * 长度校验 * Created by shuzheng on 2017/2/18. */ public class LengthValidator extends ValidatorHandler<String> implements Validator<String> { private int min; private int max; private String fieldName; public LengthValidator(int min, int max, String fieldName) { this.min = min; this.max = max; this.fieldName = fieldName; } @Override public boolean validate(ValidatorContext context, String s) { if (null == s || s.length() > max || s.length() < min) { context.addError(ValidationError.create(String.format("%s长度必须介于%s~%s之间!", fieldName, min, max)) .setErrorCode(-1) .setField(fieldName) .setInvalidValue(s)); return false; } return true; } }
javay/zheng-lite
zheng-common/src/main/java/cn/javay/zheng/common/validator/LengthValidator.java
Java
mit
1,107
define([ "dojo/_base/array", "dojo/_base/connect", "dojo/_base/declare", "dojo/_base/lang", "dojo/_base/window", "dojo/dom", "dojo/dom-class", "dojo/dom-construct", "dojo/dom-style", "dijit/registry", "dijit/_Contained", "dijit/_Container", "dijit/_WidgetBase", "./ProgressIndicator", "./ToolBarButton", "./View", "dojo/has", "dojo/has!dojo-bidi?dojox/mobile/bidi/Heading" ], function(array, connect, declare, lang, win, dom, domClass, domConstruct, domStyle, registry, Contained, Container, WidgetBase, ProgressIndicator, ToolBarButton, View, has, BidiHeading){ // module: // dojox/mobile/Heading var dm = lang.getObject("dojox.mobile", true); var Heading = declare(has("dojo-bidi") ? "dojox.mobile.NonBidiHeading" : "dojox.mobile.Heading", [WidgetBase, Container, Contained],{ // summary: // A widget that represents a navigation bar. // description: // Heading is a widget that represents a navigation bar, which // usually appears at the top of an application. It usually // displays the title of the current view and can contain a // navigational control. If you use it with // dojox/mobile/ScrollableView, it can also be used as a fixed // header bar or a fixed footer bar. In such cases, specify the // fixed="top" attribute to be a fixed header bar or the // fixed="bottom" attribute to be a fixed footer bar. Heading can // have one or more ToolBarButton widgets as its children. // back: String // A label for the navigational control to return to the previous View. back: "", // href: String // A URL to open when the navigational control is pressed. href: "", // moveTo: String // The id of the transition destination of the navigation control. // If the value has a hash sign ('#') before the id (e.g. #view1) // and the dojox/mobile/bookmarkable module is loaded by the user application, // the view transition updates the hash in the browser URL so that the // user can bookmark the destination view. In this case, the user // can also use the browser's back/forward button to navigate // through the views in the browser history. // // If null, transitions to a blank view. // If '#', returns immediately without transition. moveTo: "", // transition: String // A type of animated transition effect. You can choose from the // standard transition types, "slide", "fade", "flip", or from the // extended transition types, "cover", "coverv", "dissolve", // "reveal", "revealv", "scaleIn", "scaleOut", "slidev", // "swirl", "zoomIn", "zoomOut", "cube", and "swap". If "none" is // specified, transition occurs immediately without animation. transition: "slide", // label: String // A title text of the heading. If the label is not specified, the // innerHTML of the node is used as a label. label: "", // iconBase: String // The default icon path for child items. iconBase: "", // tag: String // A name of HTML tag to create as domNode. tag: "h1", // busy: Boolean // If true, a progress indicator spins on this widget. busy: false, // progStyle: String // A css class name to add to the progress indicator. progStyle: "mblProgWhite", /* internal properties */ // baseClass: String // The name of the CSS class of this widget. baseClass: "mblHeading", buildRendering: function(){ if(!this.templateString){ // true if this widget is not templated // Create root node if it wasn't created by _TemplatedMixin this.domNode = this.containerNode = this.srcNodeRef || win.doc.createElement(this.tag); } this.inherited(arguments); if(!this.templateString){ // true if this widget is not templated if(!this.label){ array.forEach(this.domNode.childNodes, function(n){ if(n.nodeType == 3){ var v = lang.trim(n.nodeValue); if(v){ this.label = v; this.labelNode = domConstruct.create("span", {innerHTML:v}, n, "replace"); } } }, this); } if(!this.labelNode){ this.labelNode = domConstruct.create("span", null, this.domNode); } this.labelNode.className = "mblHeadingSpanTitle"; this.labelDivNode = domConstruct.create("div", { className: "mblHeadingDivTitle", innerHTML: this.labelNode.innerHTML }, this.domNode); } dom.setSelectable(this.domNode, false); }, startup: function(){ if(this._started){ return; } var parent = this.getParent && this.getParent(); if(!parent || !parent.resize){ // top level widget var _this = this; setTimeout(function(){ // necessary to render correctly _this.resize(); }, 0); } this.inherited(arguments); }, resize: function(){ if(this.labelNode){ // find the rightmost left button (B), and leftmost right button (C) // +-----------------------------+ // | |A| |B| |C| |D| | // +-----------------------------+ var leftBtn, rightBtn; var children = this.containerNode.childNodes; for(var i = children.length - 1; i >= 0; i--){ var c = children[i]; if(c.nodeType === 1 && domStyle.get(c, "display") !== "none"){ if(!rightBtn && domStyle.get(c, "float") === "right"){ rightBtn = c; } if(!leftBtn && domStyle.get(c, "float") === "left"){ leftBtn = c; } } } if(!this.labelNodeLen && this.label){ this.labelNode.style.display = "inline"; this.labelNodeLen = this.labelNode.offsetWidth; this.labelNode.style.display = ""; } var bw = this.domNode.offsetWidth; // bar width var rw = rightBtn ? bw - rightBtn.offsetLeft + 5 : 0; // rightBtn width var lw = leftBtn ? leftBtn.offsetLeft + leftBtn.offsetWidth + 5 : 0; // leftBtn width var tw = this.labelNodeLen || 0; // title width domClass[bw - Math.max(rw,lw)*2 > tw ? "add" : "remove"](this.domNode, "mblHeadingCenterTitle"); } array.forEach(this.getChildren(), function(child){ if(child.resize){ child.resize(); } }); }, _setBackAttr: function(/*String*/back){ // tags: // private this._set("back", back); if(!this.backButton){ this.backButton = new ToolBarButton({ arrow: "left", label: back, moveTo: this.moveTo, back: !this.moveTo, href: this.href, transition: this.transition, transitionDir: -1 }); this.backButton.placeAt(this.domNode, "first"); }else{ this.backButton.set("label", back); } this.resize(); }, _setMoveToAttr: function(/*String*/moveTo){ // tags: // private this._set("moveTo", moveTo); if(this.backButton){ this.backButton.set("moveTo", moveTo); } }, _setHrefAttr: function(/*String*/href){ // tags: // private this._set("href", href); if(this.backButton){ this.backButton.set("href", href); } }, _setTransitionAttr: function(/*String*/transition){ // tags: // private this._set("transition", transition); if(this.backButton){ this.backButton.set("transition", transition); } }, _setLabelAttr: function(/*String*/label){ // tags: // private this._set("label", label); this.labelNode.innerHTML = this.labelDivNode.innerHTML = this._cv ? this._cv(label) : label; }, _setBusyAttr: function(/*Boolean*/busy){ // tags: // private var prog = this._prog; if(busy){ if(!prog){ prog = this._prog = new ProgressIndicator({size:30, center:false}); domClass.add(prog.domNode, this.progStyle); } domConstruct.place(prog.domNode, this.domNode, "first"); prog.start(); }else if(prog){ prog.stop(); } this._set("busy", busy); } }); return has("dojo-bidi") ? declare("dojox.mobile.Heading", [Heading, BidiHeading]) : Heading; });
aguadev/aguadev
html/dojo-1.8.3/dojox-1.9.0/mobile/Heading.js
JavaScript
mit
7,774
/** @jsx jsx */ import { Editor } from 'slate' import { jsx } from '../..' export const input = ( <editor> <block> <mark key="a"> <anchor />o </mark> n <mark key="b"> e<focus /> </mark> </block> </editor> ) export const run = editor => { return Array.from(Editor.activeMarks(editor, { union: true })) } export const output = [{ key: 'a' }, { key: 'b' }]
isubastiCadmus/slate
packages/slate/test/queries/activeMarks/union.js
JavaScript
mit
418
/** * Logback: the reliable, generic, fast and flexible logging framework. * Copyright (C) 1999-2015, QOS.ch. All rights reserved. * * This program and the accompanying materials are dual-licensed under * either the terms of the Eclipse Public License v1.0 as published by * the Eclipse Foundation * * or (per the licensee's choosing) * * under the terms of the GNU Lesser General Public License version 2.1 * as published by the Free Software Foundation. */ package ch.qos.logback.access.spi; import ch.qos.logback.access.AccessConstants; import ch.qos.logback.access.pattern.AccessConverter; import ch.qos.logback.access.servlet.Util; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.Serializable; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.Vector; // Contributors: Joern Huxhorn (see also bug #110) /** * The Access module's internal representation of logging events. When the * logging component instance is called in the container to log then a * <code>AccessEvent</code> instance is created. This instance is passed * around to the different logback components. * * @author Ceki G&uuml;lc&uuml; * @author S&eacute;bastien Pennec */ public class AccessEvent implements Serializable, IAccessEvent { private static final long serialVersionUID = 866718993618836343L; private static final String EMPTY = ""; private transient final HttpServletRequest httpRequest; private transient final HttpServletResponse httpResponse; String requestURI; String requestURL; String remoteHost; String remoteUser; String remoteAddr; String protocol; String method; String serverName; String requestContent; String responseContent; long elapsedTime; Map<String, String> requestHeaderMap; Map<String, String[]> requestParameterMap; Map<String, String> responseHeaderMap; Map<String, Object> attributeMap; long contentLength = SENTINEL; int statusCode = SENTINEL; int localPort = SENTINEL; transient ServerAdapter serverAdapter; /** * The number of milliseconds elapsed from 1/1/1970 until logging event was * created. */ private long timeStamp = 0; public AccessEvent(HttpServletRequest httpRequest, HttpServletResponse httpResponse, ServerAdapter adapter) { this.httpRequest = httpRequest; this.httpResponse = httpResponse; this.timeStamp = System.currentTimeMillis(); this.serverAdapter = adapter; this.elapsedTime = calculateElapsedTime(); } /** * Returns the underlying HttpServletRequest. After serialization the returned * value will be null. * * @return */ @Override public HttpServletRequest getRequest() { return httpRequest; } /** * Returns the underlying HttpServletResponse. After serialization the returned * value will be null. * * @return */ @Override public HttpServletResponse getResponse() { return httpResponse; } @Override public long getTimeStamp() { return timeStamp; } public void setTimeStamp(long timeStamp) { if (this.timeStamp != 0) { throw new IllegalStateException( "timeStamp has been already set for this event."); } else { this.timeStamp = timeStamp; } } @Override public String getRequestURI() { if (requestURI == null) { if (httpRequest != null) { requestURI = httpRequest.getRequestURI(); } else { requestURI = NA; } } return requestURI; } /** * The first line of the request. */ @Override public String getRequestURL() { if (requestURL == null) { if (httpRequest != null) { StringBuilder buf = new StringBuilder(); buf.append(httpRequest.getMethod()); buf.append(AccessConverter.SPACE_CHAR); buf.append(httpRequest.getRequestURI()); final String qStr = httpRequest.getQueryString(); if (qStr != null) { buf.append(AccessConverter.QUESTION_CHAR); buf.append(qStr); } buf.append(AccessConverter.SPACE_CHAR); buf.append(httpRequest.getProtocol()); requestURL = buf.toString(); } else { requestURL = NA; } } return requestURL; } @Override public String getRemoteHost() { if (remoteHost == null) { if (httpRequest != null) { // the underlying implementation of HttpServletRequest will // determine if remote lookup will be performed remoteHost = httpRequest.getRemoteHost(); } else { remoteHost = NA; } } return remoteHost; } @Override public String getRemoteUser() { if (remoteUser == null) { if (httpRequest != null) { remoteUser = httpRequest.getRemoteUser(); } else { remoteUser = NA; } } return remoteUser; } @Override public String getProtocol() { if (protocol == null) { if (httpRequest != null) { protocol = httpRequest.getProtocol(); } else { protocol = NA; } } return protocol; } @Override public String getMethod() { if (method == null) { if (httpRequest != null) { method = httpRequest.getMethod(); } else { method = NA; } } return method; } @Override public String getServerName() { if (serverName == null) { if (httpRequest != null) { serverName = httpRequest.getServerName(); } else { serverName = NA; } } return serverName; } @Override public String getRemoteAddr() { if (remoteAddr == null) { if (httpRequest != null) { remoteAddr = httpRequest.getRemoteAddr(); } else { remoteAddr = NA; } } return remoteAddr; } @Override public String getRequestHeader(String key) { String result = null; key = key.toLowerCase(); if (requestHeaderMap == null) { if (httpRequest != null) { buildRequestHeaderMap(); result = requestHeaderMap.get(key); } } else { result = requestHeaderMap.get(key); } if (result != null) { return result; } else { return NA; } } @Override public Enumeration getRequestHeaderNames() { // post-serialization if (httpRequest == null) { Vector<String> list = new Vector<String>(getRequestHeaderMap().keySet()); return list.elements(); } return httpRequest.getHeaderNames(); } @Override public Map<String, String> getRequestHeaderMap() { if (requestHeaderMap == null) { buildRequestHeaderMap(); } return requestHeaderMap; } public void buildRequestHeaderMap() { // according to RFC 2616 header names are case insensitive // latest versions of Tomcat return header names in lower-case requestHeaderMap = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); Enumeration e = httpRequest.getHeaderNames(); if (e == null) { return; } while (e.hasMoreElements()) { String key = (String) e.nextElement(); requestHeaderMap.put(key, httpRequest.getHeader(key)); } } public void buildRequestParameterMap() { requestParameterMap = new HashMap<String, String[]>(); Enumeration e = httpRequest.getParameterNames(); if (e == null) { return; } while (e.hasMoreElements()) { String key = (String) e.nextElement(); requestParameterMap.put(key, httpRequest.getParameterValues(key)); } } @Override public Map<String, String[]> getRequestParameterMap() { if (requestParameterMap == null) { buildRequestParameterMap(); } return requestParameterMap; } @Override public String getAttribute(String key) { Object value = null; if (attributeMap != null) { // Event was prepared for deferred processing so we have a copy of attribute map and must use that copy value = attributeMap.get(key); } else if (httpRequest != null) { // We have original request so take attribute from it value = httpRequest.getAttribute(key); } return value != null ? value.toString() : NA; } private void copyAttributeMap() { if (httpRequest == null) { return; } attributeMap = new HashMap<String, Object>(); Enumeration<String> names = httpRequest.getAttributeNames(); while (names.hasMoreElements()) { String name = names.nextElement(); Object value = httpRequest.getAttribute(name); if (shouldCopyAttribute(name, value)) { attributeMap.put(name, value); } } } private boolean shouldCopyAttribute(String name, Object value) { if (AccessConstants.LB_INPUT_BUFFER.equals(name) || AccessConstants.LB_OUTPUT_BUFFER.equals(name)) { // Do not copy attributes used by logback internally - these are available via other getters anyway return false; } else if (value == null) { // No reasons to copy nulls - Map.get() will return null for missing keys and the list of attribute // names is not available through IAccessEvent return false; } else { // Only copy what is serializable return value instanceof Serializable; } } @Override public String[] getRequestParameter(String key) { if (httpRequest != null) { String[] value = httpRequest.getParameterValues(key); if (value == null) { return new String[]{ NA }; } else { return value; } } else { return new String[]{ NA }; } } @Override public String getCookie(String key) { if (httpRequest != null) { Cookie[] cookieArray = httpRequest.getCookies(); if (cookieArray == null) { return NA; } for (Cookie cookie : cookieArray) { if (key.equals(cookie.getName())) { return cookie.getValue(); } } } return NA; } @Override public long getContentLength() { if (contentLength == SENTINEL) { if (httpResponse != null) { contentLength = serverAdapter.getContentLength(); return contentLength; } } return contentLength; } public int getStatusCode() { if (statusCode == SENTINEL) { if (httpResponse != null) { statusCode = serverAdapter.getStatusCode(); } } return statusCode; } public long getElapsedTime() { return elapsedTime; } private long calculateElapsedTime() { if (serverAdapter.getRequestTimestamp() < 0) { return -1; } return getTimeStamp() - serverAdapter.getRequestTimestamp(); } public String getRequestContent() { if (requestContent != null) { return requestContent; } if (Util.isFormUrlEncoded(httpRequest)) { StringBuilder buf = new StringBuilder(); Enumeration pramEnumeration = httpRequest.getParameterNames(); // example: id=1234&user=cgu // number=1233&x=1 int count = 0; try { while (pramEnumeration.hasMoreElements()) { String key = (String) pramEnumeration.nextElement(); if (count++ != 0) { buf.append("&"); } buf.append(key); buf.append("="); String val = httpRequest.getParameter(key); if (val != null) { buf.append(val); } else { buf.append(""); } } } catch (Exception e) { // FIXME Why is try/catch required? e.printStackTrace(); } requestContent = buf.toString(); } else { // retrieve the byte array placed by TeeFilter byte[] inputBuffer = (byte[]) httpRequest .getAttribute(AccessConstants.LB_INPUT_BUFFER); if (inputBuffer != null) { requestContent = new String(inputBuffer); } if (requestContent == null || requestContent.length() == 0) { requestContent = EMPTY; } } return requestContent; } public String getResponseContent() { if (responseContent != null) { return responseContent; } if (Util.isImageResponse(httpResponse)) { responseContent = "[IMAGE CONTENTS SUPPRESSED]"; } else { // retreive the byte array previously placed by TeeFilter byte[] outputBuffer = (byte[]) httpRequest .getAttribute(AccessConstants.LB_OUTPUT_BUFFER); if (outputBuffer != null) { responseContent = new String(outputBuffer); } if (responseContent == null || responseContent.length() == 0) { responseContent = EMPTY; } } return responseContent; } public int getLocalPort() { if (localPort == SENTINEL) { if (httpRequest != null) { localPort = httpRequest.getLocalPort(); } } return localPort; } public ServerAdapter getServerAdapter() { return serverAdapter; } public String getResponseHeader(String key) { buildResponseHeaderMap(); return responseHeaderMap.get(key); } void buildResponseHeaderMap() { if (responseHeaderMap == null) { responseHeaderMap = serverAdapter.buildResponseHeaderMap(); } } public Map<String, String> getResponseHeaderMap() { buildResponseHeaderMap(); return responseHeaderMap; } public List<String> getResponseHeaderNameList() { buildResponseHeaderMap(); return new ArrayList<String>(responseHeaderMap.keySet()); } public void prepareForDeferredProcessing() { getRequestHeaderMap(); getRequestParameterMap(); getResponseHeaderMap(); getLocalPort(); getMethod(); getProtocol(); getRemoteAddr(); getRemoteHost(); getRemoteUser(); getRequestURI(); getRequestURL(); getServerName(); getTimeStamp(); getElapsedTime(); getStatusCode(); getContentLength(); getRequestContent(); getResponseContent(); copyAttributeMap(); } }
cscfa/bartleby
library/logBack/logback-1.1.3/logback-access/src/main/java/ch/qos/logback/access/spi/AccessEvent.java
Java
mit
14,592
package appalounge; import org.json.JSONArray; import org.json.JSONObject; import resources.Constructors; import resources.exceptions.ApiException; import resources.exceptions.AuthRequiredException; import resources.exceptions.BadRequestException; import resources.exceptions.DataNotSetException; import resources.infrastructure.EasyApiComponent; /** * Returns an array of the announcements made on APPA Lounge * @author Aaron Vontell * @date 10/16/2015 * @version 0.1 */ public class APPAAnnounce implements EasyApiComponent{ private String url = ""; private JSONArray result; private String[] message; private String[] creator; private String[] created; /** * Create an announcement object */ protected APPAAnnounce() { url = AppaLounge.BASE_URL + "announcements/2/"; } /** * Downloads and parses all data from the given information */ @Override public void downloadData() throws ApiException, BadRequestException, DataNotSetException, AuthRequiredException { try { result = Constructors.constructJSONArray(url); message = new String[result.length()]; creator = new String[result.length()]; created = new String[result.length()]; for(int i = 0; i < result.length(); i++){ String mes = result.getJSONObject(i).getString("message"); String user = result.getJSONObject(i).getString("creator"); String date = result.getJSONObject(i).getString("created"); message[i] = mes; creator[i] = user; created[i] = date; } } catch (Exception e) { throw new ApiException("API Error: " + result.toString()); } } /** * Get the number of announcements * @return announcement amount */ public int getNumAnnouncements(){ return message.length; } /** * Get the message at a certain index * @param i The num message to get * @return The message at that position */ public String getMessageAt(int i){ return message[i]; } /** * Get the user at a certain index * @param i The num user to get * @return The user at that position */ public String getCreatorAt(int i){ return creator[i]; } /** * Get the date at a certain index * @param i The num date to get * @return The date at that position */ public String getCreatedAt(int i){ return created[i]; } @Override public String getRawData() { if(result != null){ return result.toString(); } else { return "No data"; } } }
vontell/EasyAPI
build/resources/main/appalounge/APPAAnnounce.java
Java
mit
2,768
package com.carlisle.incubators.PopupWindow; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.carlisle.incubators.R; /** * Created by chengxin on 11/24/16. */ public class PopupWindowActivity extends AppCompatActivity { private PopupView popupView; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_popup_window); popupView = new PopupView(this); } public void onButtonClick(View view) { //popupView.showAsDropDown(view); popupView.showAsDropUp(view); } }
CarlisleChan/Incubators
app/src/main/java/com/carlisle/incubators/PopupWindow/PopupWindowActivity.java
Java
mit
728
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Serenghetto::Application.initialize!
randomm/serenghetto-server
config/environment.rb
Ruby
mit
155
# Phusion Passenger - https://www.phusionpassenger.com/ # Copyright (c) 2010 Phusion Holding B.V. # # "Passenger", "Phusion Passenger" and "Union Station" are registered # trademarks of Phusion Holding B.V. # # 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. require 'etc' module PhusionPassenger class Plugin @@hooks = {} @@classes = {} def self.load(name, load_once = true) PLUGIN_DIRS.each do |plugin_dir| if plugin_dir =~ /\A~/ # File.expand_path uses ENV['HOME'] which we don't want. home = Etc.getpwuid(Process.uid).dir plugin_dir = plugin_dir.sub(/\A~/, home) end plugin_dir = File.expand_path(plugin_dir) Dir["#{plugin_dir}/*/#{name}.rb"].each do |filename| if load_once require(filename) else load(filename) end end end end def self.register_hook(name, &block) hooks_list = (@@hooks[name] ||= []) hooks_list << block end def self.call_hook(name, *args, &block) last_result = nil if (hooks_list = @@hooks[name]) hooks_list.each do |callback| last_result = callback.call(*args, &block) end end return last_result end def self.register(name, klass) classes = (@@classes[name] ||= []) classes << klass end def initialize(name, *args, &block) Plugin.load(name) classes = @@classes[name] if classes @instances = classes.map do |klass| klass.new(*args, &block) end else return nil end end def call_hook(name, *args, &block) last_result = nil if @instances @instances.each do |instance| if instance.respond_to?(name.to_sym) last_result = instance.__send__(name.to_sym, *args, &block) end end end return last_result end end end # module PhusionPassenger
clemensg/passenger
src/ruby_supportlib/phusion_passenger/plugin.rb
Ruby
mit
2,994
// ReSharper disable RedundantNameQualifier // ReSharper disable InconsistentNaming namespace Gu.Analyzers.Benchmarks.Benchmarks { public class GU0050IgnoreEventsWhenSerializingBenchmarks { private static readonly Gu.Roslyn.Asserts.Benchmark Benchmark = Gu.Roslyn.Asserts.Benchmark.Create(Code.AnalyzersProject, new Gu.Analyzers.GU0050IgnoreEventsWhenSerializing()); [BenchmarkDotNet.Attributes.Benchmark] public void RunOnGuAnalyzersProject() { Benchmark.Run(); } } }
JohanLarsson/Gu.Analyzers
Gu.Analyzers.Benchmarks/Benchmarks/GU0050IgnoreEventsWhenSerializingBenchmarks.cs
C#
mit
534
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2008 Oracle. All rights reserved. * * $Id: EntityConverter.java,v 1.11 2008/01/07 14:28:58 cwl Exp $ */ package com.sleepycat.persist.evolve; import java.util.Collections; import java.util.HashSet; import java.util.Set; /** * A subclass of Converter that allows specifying keys to be deleted. * * <p>When a Converter is used with an entity class, secondary keys cannot be * automatically deleted based on field deletion, because field Deleter objects * are not used in conjunction with a Converter mutation. The EntityConverter * can be used instead of a plain Converter to specify the key names to be * deleted.</p> * * <p>It is not currently possible to rename or insert secondary keys when * using a Converter mutation with an entity class.</p> * * @see Converter * @see com.sleepycat.persist.evolve Class Evolution * @author Mark Hayes */ public class EntityConverter extends Converter { private static final long serialVersionUID = -988428985370593743L; private Set<String> deletedKeys; /** * Creates a mutation for converting all instances of the given entity * class version to the current version of the class. */ public EntityConverter(String entityClassName, int classVersion, Conversion conversion, Set<String> deletedKeys) { super(entityClassName, classVersion, null, conversion); /* Eclipse objects to assigning with a ternary operator. */ if (deletedKeys != null) { this.deletedKeys = new HashSet(deletedKeys); } else { this.deletedKeys = Collections.emptySet(); } } /** * Returns the set of key names that are to be deleted. */ public Set<String> getDeletedKeys() { return Collections.unmodifiableSet(deletedKeys); } /** * Returns true if the deleted and renamed keys are equal in this object * and given object, and if the {@link Converter#equals} superclass method * returns true. */ @Override public boolean equals(Object other) { if (other instanceof EntityConverter) { EntityConverter o = (EntityConverter) other; return deletedKeys.equals(o.deletedKeys) && super.equals(other); } else { return false; } } @Override public int hashCode() { return deletedKeys.hashCode() + super.hashCode(); } @Override public String toString() { return "[EntityConverter " + super.toString() + " DeletedKeys: " + deletedKeys + ']'; } }
plast-lab/DelphJ
examples/berkeleydb/com/sleepycat/persist/evolve/EntityConverter.java
Java
mit
2,735
/* * Popular Repositories * Copyright (c) 2014 Alberto Congiu (@4lbertoC) * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; var React = require('react'); /** * Like Array.map(), but on an object's own properties. * Returns an array. * * @param {object} obj The object to call the function on. * @param {function(*, string)} func The function to call on each * of the object's properties. It takes as input parameters the * value and the key of the current property. * @returns {Array} The result. */ function mapObject(obj, func) { var results = []; if (obj) { for(var key in obj) { if (obj.hasOwnProperty(key)) { results.push(func(obj[key], key)); } } } return results; } /** * A component that displays a GitHub repo's languages. * * @prop {GitHubRepoLanguages} gitHubRepoLanguages. */ var LanguageList = React.createClass({ propTypes: { gitHubRepoLanguages: React.PropTypes.object.isRequired }, render() { var gitHubRepoLanguages = this.props.gitHubRepoLanguages; /* jshint ignore:start */ return ( <div className="text-center language-list"> {mapObject(gitHubRepoLanguages, (percentage, languageName) => { return ( <div className="language" key={languageName}> <h3 className="language-name">{languageName}</h3> <h5 className="language-percentage">{percentage}</h5> </div> ); })} </div> ); /* jshint ignore:end */ } }); module.exports = LanguageList;
4lbertoC/popularrepositories
src/components/layout/LanguageList.js
JavaScript
mit
1,648
# Arduino-Protothread-Library
Erutan409/Arduino-Protothread-Library
README.md
Markdown
mit
29
<?php namespace Sitpac\ExtranetBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * DisponibilidadVehi * * @ORM\Table(name="disponibilidad_vehi") * @ORM\Entity */ class DisponibilidadVehi { /** * @var integer * * @ORM\Column(name="id_disp_vehi", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $idDispVehi; /** * @var \DateTime * * @ORM\Column(name="desde", type="datetime", nullable=false) */ private $desde; /** * @var \DateTime * * @ORM\Column(name="hasta", type="datetime", nullable=false) */ private $hasta; /** * @var string * * @ORM\Column(name="estado", type="string", length=100, nullable=false) */ private $estado; /** * @var \ServicioVehiculo * * @ORM\ManyToOne(targetEntity="ServicioVehiculo") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="id_serv_vehi", referencedColumnName="idservicio_vehiculo") * }) */ private $idServVehi; /** * Get idDispVehi * * @return integer */ public function getIdDispVehi() { return $this->idDispVehi; } /** * Set desde * * @param \DateTime $desde * @return DisponibilidadVehi */ public function setDesde($desde) { $this->desde = $desde; return $this; } /** * Get desde * * @return \DateTime */ public function getDesde() { return $this->desde; } /** * Set hasta * * @param \DateTime $hasta * @return DisponibilidadVehi */ public function setHasta($hasta) { $this->hasta = $hasta; return $this; } /** * Get hasta * * @return \DateTime */ public function getHasta() { return $this->hasta; } /** * Set estado * * @param string $estado * @return DisponibilidadVehi */ public function setEstado($estado) { $this->estado = $estado; return $this; } /** * Get estado * * @return string */ public function getEstado() { return $this->estado; } /** * Set idServVehi * * @param \Sitpac\ExtranetBundle\Entity\ServicioVehiculo $idServVehi * @return DisponibilidadVehi */ public function setIdServVehi(\Sitpac\ExtranetBundle\Entity\ServicioVehiculo $idServVehi = null) { $this->idServVehi = $idServVehi; return $this; } /** * Get idServVehi * * @return \Sitpac\ExtranetBundle\Entity\ServicioVehiculo */ public function getIdServVehi() { return $this->idServVehi; } }
jorgeibarra87/SITPAC
src/Sitpac/ExtranetBundle/Entity/DisponibilidadVehi.php
PHP
mit
2,806
<!DOCTYPE html><meta charset=utf-8><title>WICS</title><script type="application/its+xml"> <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> <its:localeFilterRule selector="//@*" localeFilterType="include" localeFilterList="*"/> <its:dirRule dir="ltr" selector="//@*"/> <its:translateRule selector="//@*" translate="no"/> <its:withinTextRule selector="//h:span" withinText="no"/> <its:translateRule selector="id('ITS_1')|id('ITS_4')|id('ITS_5')" translate="no"/> <its:langRule selector="id('ITS_2')" langPointer="id('ITS_1')"/> <its:langRule selector="id('ITS_3')" langPointer="id('ITS_4')"/> <its:langRule selector="id('ITS_6')" langPointer="id('ITS_5')"/> </its:rules> </script><div title=text> <div title=head> </div> <div id=ITS_2 title=content><span class=_ITS_ATT id=ITS_1 its-within-text=no title=language>en</span> <div title=par>The motto of Québec is: <span id=ITS_3 title=q><span class=_ITS_ATT id=ITS_4 its-within-text=no title=language>fr-CA</span>Je me souviens</span>.</div> <div title=par>The one of Canada: <span id=ITS_6 title=q><span class=_ITS_ATT id=ITS_5 its-within-text=no title=language>la</span>A mari usque ad mare</span>.</div> </div> </div>
renatb/ITS2.0-WICS-converter
samples/output/ITS2.0_Test_Suite/XML/languageinformation/languageinfo1xml.html
HTML
mit
1,292
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ott: 31 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.9.1 / ott - 0.29</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> ott <small> 0.29 <span class="label label-success">31 s 🏆</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-31 22:04:34 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-31 22:04:34 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.9.1 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.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;http://www.cl.cam.ac.uk/~pes20/ott/&quot; dev-repo: &quot;git+https://github.com/ott-lang/ott.git&quot; bug-reports: &quot;https://github.com/ott-lang/ott/issues&quot; license: &quot;BSD-3-Clause&quot; synopsis: &quot;Auxiliary Coq library for Ott, a tool for writing definitions of programming languages and calculi&quot; description: &quot;&quot;&quot; Ott takes as input a definition of a language syntax and semantics, in a concise and readable ASCII notation that is close to what one would write in informal mathematics. It can then generate a Coq version of the definition, which requires this library. &quot;&quot;&quot; build: [make &quot;-j%{jobs}%&quot; &quot;-C&quot; &quot;coq&quot;] install: [make &quot;-C&quot; &quot;coq&quot; &quot;install&quot;] depends: [ &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;category:Computer Science/Semantics and Compilation/Semantics&quot; &quot;keyword:abstract syntax&quot; &quot;logpath:Ott&quot; &quot;date:2019-08-01&quot; ] authors: [ &quot;Peter Sewell&quot; &quot;Francesco Zappa Nardelli&quot; &quot;Scott Owens&quot; ] url { src: &quot;https://github.com/ott-lang/ott/archive/0.29.tar.gz&quot; checksum: &quot;sha512=2ffc10e5d6290b5a737add419e5441b85a60fda7a9c4544f91bcfd8cd69e318d465787b2500003109186cc3945c3dcb5661371a419c3ef117adff9fc2d8f3e5b&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-ott.0.29 coq.8.9.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-ott.0.29 coq.8.9.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>12 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-ott.0.29 coq.8.9.1</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>31 s</dd> </dl> <h2>Installation size</h2> <p>Total: 746 K</p> <ul> <li>82 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_predicate.vo</code></li> <li>68 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_takedrop.vo</code></li> <li>58 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_nth.vo</code></li> <li>56 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_distinct.vo</code></li> <li>54 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_base.vo</code></li> <li>48 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_mem.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_flat_map.vo</code></li> <li>36 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_predicate.glob</code></li> <li>35 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_repeat.vo</code></li> <li>31 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_support.vo</code></li> <li>26 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_takedrop.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list.vo</code></li> <li>19 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_nth.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_distinct.glob</code></li> <li>18 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_core.vo</code></li> <li>17 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_base.glob</code></li> <li>17 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_eq_dec.vo</code></li> <li>16 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_mem.glob</code></li> <li>13 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_predicate.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_takedrop.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_flat_map.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_core.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_base.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_distinct.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_nth.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_repeat.glob</code></li> <li>5 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_mem.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_support.glob</code></li> <li>3 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_eq_dec.glob</code></li> <li>3 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_flat_map.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_core.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_repeat.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_eq_dec.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list_support.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/Ott/ott_list.glob</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-ott.0.29</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.9.1/ott/0.29.html
HTML
mit
11,038
module ResetConfigHelper def self.included(base) base.instance_eval do around(:each) do |example| begin Capybara::AsyncRunner.config.commands_directory = ROOT.join('spec/support/js') example.run ensure Capybara::AsyncRunner.config.reset! end end end end end RSpec.configure do |config| config.include ResetConfigHelper end
iliabylich/capybara-async-runner
spec/support/reset_config_helper.rb
Ruby
mit
404
import assert from 'assert' import {fixCase} from '../../src/lib/words/case' import Locale from '../../src/locale/locale' describe('Corrects accidental uPPERCASE\n', () => { let testCase = { 'Hey, JEnnifer!': 'Hey, Jennifer!', 'CMSko': 'CMSko', 'FPs': 'FPs', 'ČSNka': 'ČSNka', 'BigONE': 'BigONE', // specific brand names 'two Panzer IVs': 'two Panzer IVs', 'How about ABC?': 'How about ABC?', 'cAPSLOCK': 'capslock', '(cAPSLOCK)': '(capslock)', 'iPhone': 'iPhone', 'iT': 'it', 'Central Europe and Cyrillic tests: aĎIÉUБUГ': 'Central Europe and Cyrillic tests: aďiéuбuг', } Object.keys(testCase).forEach((key) => { it('', () => { assert.equal(fixCase(key, new Locale('en-us')), testCase[key]) }) }) })
viktorbezdek/react-htmlcontent
test/words/case.test.js
JavaScript
mit
783
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\ResourceBundle; use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler\ObjectToIdentifierServicePass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; /** * Resource bundle. * * @author Paweł Jędrzejewski <[email protected]> */ class SyliusResourceBundle extends Bundle { // Bundle driver list. const DRIVER_DOCTRINE_ORM = 'doctrine/orm'; const DRIVER_DOCTRINE_MONGODB_ODM = 'doctrine/mongodb-odm'; const DRIVER_DOCTRINE_PHPCR_ODM = 'doctrine/phpcr-odm'; /** * {@inheritdoc} */ public function build(ContainerBuilder $container) { $container->addCompilerPass(new ObjectToIdentifierServicePass()); } }
Symfomany/Sylius
src/Sylius/Bundle/ResourceBundle/SyliusResourceBundle.php
PHP
mit
976
#!/usr/bin/env python from __future__ import division, print_function, absolute_import from os.path import join def configuration(parent_package='', top_path=None): import warnings from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info, BlasNotFoundError config = Configuration('odr', parent_package, top_path) libodr_files = ['d_odr.f', 'd_mprec.f', 'dlunoc.f'] blas_info = get_info('blas_opt') if blas_info: libodr_files.append('d_lpk.f') else: warnings.warn(BlasNotFoundError.__doc__) libodr_files.append('d_lpkbls.f') odrpack_src = [join('odrpack', x) for x in libodr_files] config.add_library('odrpack', sources=odrpack_src) sources = ['__odrpack.c'] libraries = ['odrpack'] + blas_info.pop('libraries', []) include_dirs = ['.'] + blas_info.pop('include_dirs', []) config.add_extension('__odrpack', sources=sources, libraries=libraries, include_dirs=include_dirs, depends=(['odrpack.h'] + odrpack_src), **blas_info ) config.add_data_dir('tests') return config if __name__ == '__main__': from numpy.distutils.core import setup setup(**configuration(top_path='').todict())
DailyActie/Surrogate-Model
01-codes/scipy-master/scipy/odr/setup.py
Python
mit
1,419
package photoeffect.effect.otherblur; import java.awt.image.BufferedImage; import measure.generic.IGenericWorkload; public interface IEffectOtherBlur extends IGenericWorkload<BufferedImage> { }
wolfposd/jadexphoto
photoeffect/src/photoeffect/effect/otherblur/IEffectOtherBlur.java
Java
mit
198
#!/bin/bash -x # # Generated - do not edit! # # Macros TOP=`pwd` CND_CONF=default CND_DISTDIR=dist TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging TMPDIRNAME=tmp-packaging OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/PIC24_Dev_Board_Template.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX} OUTPUT_BASENAME=PIC24_Dev_Board_Template.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX} PACKAGE_TOP_DIR=pic24devboardtemplate.x/ # Functions function checkReturnCode { rc=$? if [ $rc != 0 ] then exit $rc fi } function makeDirectory # $1 directory path # $2 permission (optional) { mkdir -p "$1" checkReturnCode if [ "$2" != "" ] then chmod $2 "$1" checkReturnCode fi } function copyFileToTmpDir # $1 from-file path # $2 to-file path # $3 permission { cp "$1" "$2" checkReturnCode if [ "$3" != "" ] then chmod $3 "$2" checkReturnCode fi } # Setup cd "${TOP}" mkdir -p ${CND_DISTDIR}/${CND_CONF}/package rm -rf ${TMPDIR} mkdir -p ${TMPDIR} # Copy files and create directories and links cd "${TOP}" makeDirectory ${TMPDIR}/pic24devboardtemplate.x/bin copyFileToTmpDir "${OUTPUT_PATH}" "${TMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 # Generate tar file cd "${TOP}" rm -f ${CND_DISTDIR}/${CND_CONF}/package/pic24devboardtemplate.x.tar cd ${TMPDIR} tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/package/pic24devboardtemplate.x.tar * checkReturnCode # Cleanup cd "${TOP}" rm -rf ${TMPDIR}
briandorey/PIC24-Dev-Board
Firmware/Template/PIC24 Dev Board Template.X/nbproject/Package-default.bash
Shell
mit
1,459
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>kildall: 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.10.2 / kildall - 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> kildall <small> 8.9.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2021-12-02 03:04:00 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-02 03:04:00 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.10.2 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;[email protected]&quot; homepage: &quot;http://www.lif-sud.univ-mrs.fr/Rapports/24-2005.html&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/Kildall&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.10~&quot;} ] tags: [ &quot;keyword: Kildall&quot; &quot;keyword: data flow analysis&quot; &quot;keyword: bytecode verification&quot; &quot;category: Computer Science/Semantics and Compilation/Semantics&quot; &quot;date: 2005-07&quot; ] authors: [ &quot;Solange Coupet-Grimal &lt;[email protected]&gt;&quot; &quot;William Delobel &lt;[email protected]&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/kildall/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/kildall.git&quot; synopsis: &quot;Application of the Generic kildall&#39;s Data Flow Analysis Algorithm to a Type and Shape Static Analyses of Bytecode&quot; description: &quot;&quot;&quot; This Library provides a generic data flow analysis algorithm and a proof of its correctness. This algorithm is then used to perform type and shape analysis at bytecode level on a first order functionnal language.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/kildall/archive/v8.9.0.tar.gz&quot; checksum: &quot;md5=e90951bfbcbdfef76704b8f407b93125&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-kildall.8.9.0 coq.8.10.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.10.2). The following dependencies couldn&#39;t be met: - coq-kildall -&gt; coq &lt; 8.10~ -&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-kildall.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.08.1-2.0.5/released/8.10.2/kildall/8.9.0.html
HTML
mit
7,189
import Store from '../../Store'; import Expires from '../../Expires'; import { lpush } from '../lpush'; import { lpushx } from '../lpushx'; describe('Test lpushx command', () => { it('should prepend values to list', () => { const redis = new MockRedis(); redis.set('mylist', []); expect((<any>redis).lpushx('mylist', 'v1')).toBe(1); expect((<any>redis).lpushx('mylist1', 'v2')).toBe(0); expect(redis.get('mylist1')).toBeNull(); }); }); class MockRedis { private data: Store; constructor() { this.data = new Store(new Expires()); (<any>this)['lpush'] = lpush.bind(this); (<any>this)['lpushx'] = lpushx.bind(this); } get(key: string) { return this.data.get(key) || null; } set(key: string, value: any) { return this.data.set(key, value); } }
nileshmali/ioredis-in-memory
src/commands/__tests__/lpushx.spec.ts
TypeScript
mit
800
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> /* Body style, for the entire document */ body { background: #F3F3F4; color: #1E1E1F; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; padding: 0; margin: 0; } /* Header1 style, used for the main title */ h1 { padding: 10px 0px 10px 10px; font-size: 21pt; background-color: #E2E2E2; border-bottom: 1px #C1C1C2 solid; color: #201F20; margin: 0; font-weight: normal; } /* Header2 style, used for "Overview" and other sections */ h2 { font-size: 18pt; font-weight: normal; padding: 15px 0 5px 0; margin: 0; } /* Header3 style, used for sub-sections, such as project name */ h3 { font-weight: normal; font-size: 15pt; margin: 0; padding: 15px 0 5px 0; background-color: transparent; } h4 { font-weight: normal; font-size: 12pt; margin: 0; padding: 0 0 0 0; background-color: transparent; } /* Color all hyperlinks one color */ a { color: #1382CE; } /* Paragraph text (for longer informational messages) */ p { font-size: 10pt; } /* Table styles */ table { border-spacing: 0 0; border-collapse: collapse; font-size: 10pt; } table th { background: #E7E7E8; text-align: left; text-decoration: none; font-weight: normal; padding: 3px 6px 3px 6px; } table td { vertical-align: top; padding: 3px 6px 5px 5px; margin: 0px; border: 1px solid #E7E7E8; background: #F7F7F8; } .NoBreakingChanges { color: darkgreen; font-weight:bold; } .FewBreakingChanges { color: orange; font-weight:bold; } .ManyBreakingChanges { color: red; font-weight:bold; } .BreakDetails { margin-left: 30px; } .CompatMessage { font-style: italic; font-size: 10pt; } .GoodMessage { color: darkgreen; } /* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */ .localLink { color: #1E1E1F; background: #EEEEED; text-decoration: none; } .localLink:hover { color: #1382CE; background: #FFFF99; text-decoration: none; } /* Center text, used in the over views cells that contain message level counts */ .textCentered { text-align: center; } /* The message cells in message tables should take up all avaliable space */ .messageCell { width: 100%; } /* Padding around the content after the h1 */ #content { padding: 0px 12px 12px 12px; } /* The overview table expands to width, with a max width of 97% */ #overview table { width: auto; max-width: 75%; } /* The messages tables are always 97% width */ #messages table { width: 97%; } /* All Icons */ .IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded { min-width: 18px; min-height: 18px; background-repeat: no-repeat; background-position: center; } /* Success icon encoded */ .IconSuccessEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==); } /* Information icon encoded */ .IconInfoEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=); } /* Warning icon encoded */ .IconWarningEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==); } /* Error icon encoded */ .IconErrorEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ /* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=); } </style> </head> <body> <h1 _locid="PortabilityReport">.NET Portability Report</h1> <div id="content"> <div id="submissionId" style="font-size:8pt;"> <p> <i> Submission Id&nbsp; 984fc60a-8754-43ef-af0a-752445f9b305 </i> </p> </div> <h2 _locid="SummaryTitle"> <a name="Portability Summary"></a>Portability Summary </h2> <div id="summary"> <table> <tbody> <tr> <th>Assembly</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> </tr> <tr> <td><strong><a href="#Concierge">Concierge</a></strong></td> <td class="text-center">83.31 %</td> <td class="text-center">74.39 %</td> <td class="text-center">100.00 %</td> <td class="text-center">67.42 %</td> </tr> </tbody> </table> </div> <div id="details"> <a name="Concierge"><h3>Concierge</h3></a> <table> <tbody> <tr> <th>Target type</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> <th>Recommended changes</th> </tr> <tr> <td>Microsoft.Build.Framework.RequiredAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.AppDomain</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage of AppDomain. Use alternate means for managing configuration information.</td> </tr> <tr> <td style="padding-left:2em">get_BaseDirectory</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Currently there is no workaround, but we are working on it. Please check back.</td> </tr> <tr> <td style="padding-left:2em">get_CurrentDomain</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">get_SetupInformation</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage of AppDomain. Use alternate means for managing configuration information.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.AppDomainSetup</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">get_ConfigurationFile</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Attribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Reflection.CustomAttributeExtensions.IsDefined() in System.Reflection.Extensions</td> </tr> <tr> <td style="padding-left:2em">IsDefined(System.Reflection.MemberInfo,System.Type)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Reflection.CustomAttributeExtensions.IsDefined() in System.Reflection.Extensions</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Generic.KeyedByTypeCollection`1</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Generic.List`1</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ForEach(System.Action{`0})</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.StringDictionary</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Add(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ContainsKey(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Item(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ComponentModel.Container</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ComponentModel.IContainer</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ComponentModel.RunInstallerAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Configuration.Install.InstallContext</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Parameters</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Configuration.Install.Installer</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Context</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Installers</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OnBeforeInstall(System.Collections.IDictionary)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OnBeforeUninstall(System.Collections.IDictionary)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Configuration.Install.InstallerCollection</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Add(System.Configuration.Install.Installer)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Configuration.Install.InstallException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Configuration.Install.ManagedInstallerClass</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">InstallHelper(System.String[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Console</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenStandardInput</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ReadLine</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Title(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Write(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteLine(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WriteLine(System.String,System.Object[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Data.DuplicateNameException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Data.InvalidExpressionException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.Contracts.Internal.ContractHelper</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">RaiseContractFailedEvent(System.Diagnostics.Contracts.ContractFailureKind,System.String,System.String,System.Exception)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.FileVersionInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Currently there is no workaround, but we are working on it. Please check back.</td> </tr> <tr> <td style="padding-left:2em">get_ProductVersion</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetVersionInfo(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Currently there is no workaround, but we are working on it. Please check back.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.Process</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ExitCode</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_StartInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WaitForExit</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.ProcessStartInfo</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Arguments(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_FileName(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_WindowStyle(System.Diagnostics.ProcessWindowStyle)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove ShellExecute usage (Can Pinvoke if needed)</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.ProcessWindowStyle</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove ShellExecute usage (Can Pinvoke if needed)</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Exception</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td style="padding-left:2em">add_SerializeObjectState(System.EventHandler{System.Runtime.Serialization.SafeSerializationEventArgs})</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.InvalidProgramException</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.DirectoryNotFoundException</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.File</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Exists(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OpenText(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.Stream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td style="padding-left:2em">BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">EndRead(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.StreamWriter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.Open to get a Stream then pass it to StreamWriter constructor</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use File.Open to get a Stream then pass it to StreamWriter constructor</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Management.InvokeMethodOptions</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Management.ManagementBaseObject</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Management.ManagementObject</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Management.ManagementPath)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Get</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">InvokeMethod(System.String,System.Management.ManagementBaseObject,System.Management.InvokeMethodOptions)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Management.ManagementPath</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.MethodAccessException</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Assembly.DefinedTypes</td> </tr> <tr> <td style="padding-left:2em">get_Location</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">GetEntryAssembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetTypes</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Assembly.DefinedTypes</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.BindingFlags</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.TargetException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.ConstrainedExecution.Cer</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.ConstrainedExecution.Consistency</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.ConstrainedExecution.ReliabilityContractAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Runtime.ConstrainedExecution.Consistency,System.Runtime.ConstrainedExecution.Cer)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.ISafeSerializationData</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td style="padding-left:2em">CompleteDeserialization(System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.SafeSerializationEventArgs</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td style="padding-left:2em">AddSerializedState(System.Runtime.Serialization.ISafeSerializationData)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ChannelFactory</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Endpoint</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ChannelFactory`1</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.ServiceModel.Channels.Binding,System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateChannel</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Channels.Binding</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Channels.BindingParameterCollection</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Channels.CommunicationObject</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_State</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Channels.Message</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.CommunicationException</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.CommunicationState</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ConcurrencyMode</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.ContractDescription</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Behaviors</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.IContractBehavior</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.IServiceBehavior</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.ServiceDescription</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Behaviors</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Endpoints</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.ServiceEndpoint</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.ServiceEndpointCollection</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Description.ServiceMetadataBehavior</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_HttpGetEnabled(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Dispatcher.ClientRuntime</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Dispatcher.DispatchRuntime</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_InstanceProvider(System.ServiceModel.Dispatcher.IInstanceProvider)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.Dispatcher.IInstanceProvider</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.EndpointAddress</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.IClientChannel</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ICommunicationObject</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Abort</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">add_Closed(System.EventHandler)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">add_Faulted(System.EventHandler)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">BeginOpen(System.AsyncCallback,System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">EndOpen(System.IAsyncResult)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_State</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Open(System.TimeSpan)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">remove_Closed(System.EventHandler)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">remove_Faulted(System.EventHandler)</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.IContextChannel</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_OperationTimeout</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_RemoteAddress</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.InstanceContext</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.NetTcpBinding</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.OperationContractAttribute</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ServiceBehaviorAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ServiceContractAttribute</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ServiceHost</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Type,System.Uri[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">AddServiceEndpoint(System.Type,System.ServiceModel.Channels.Binding,System.Uri)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceModel.ServiceHostBase</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Description</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ImplementedContracts</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceAccount</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceBase</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Dispose(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">OnStart(System.String[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Run(System.ServiceProcess.ServiceBase[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_ServiceName(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceController</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_DisplayName</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ServiceName</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Status</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetServices</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Stop</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WaitForStatus(System.ServiceProcess.ServiceControllerStatus,System.TimeSpan)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceControllerStatus</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceInstaller</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Description(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_DisplayName(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_ServiceName(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_StartType(System.ServiceProcess.ServiceStartMode)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceProcessInstaller</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Account(System.ServiceProcess.ServiceAccount)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Password(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Username(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ServiceProcess.ServiceStartMode</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.Thread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Threading.ThreadStart)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CurrentThread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ManagedThreadId</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Join</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Sleep(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.ThreadStart</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Type</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetMethods</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetProperties(System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetProperty(System.String,System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsSubclassOf(System.Type)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsSubclassOf</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> </table> <p> <a href="#Portability Summary">Back to Summary</a> </p> </div> </div> </body> </html>
kuhlenh/port-to-core
Reports/co/concierge.1.0.5.2/Concierge-net40.html
HTML
mit
133,735
Rust-brainfuck ============== A Brainfuck interpreter made in Rust. - Yes, it works, and it's fully compliant. - No, it is not very fast (or at all (yet)). - Yes, it is overkill. - Yes, it is useless. Man, did you play with receipts as a kid or something? Usage ----- Make sure to have _Rust 0.10_ and _Make_ available: ```bash $ make mkdir -p dist rustc -O --out-dir dist src/lib.rs rustc -O -L dist -o dist/bf src/main.rs $ echo "Lbh unir n ehfgl yrnx, znqnz." | dist/bf examples/rot13.bf You have a rusty pipe, madam. ``` ### Notes - `EOF` is represented as zero. Be sure to take that into account when running your programs. For example, the _rot13_ program described on Wikipedia won't work here. - I/O operators `,` and `.` read from `STDIN` and write to `STDOUT` respectively. Motivation ---------- I am learning Rust, and Brainfuck happens to be a fun, simple project, which satisfies the following requisites: - Small: it is compact enough to be kept entirely in the head at once. - Flexible: it can be tackled in many different ways. - Comprehensive: it requires learning many different things. Plans and considerations ------------------------ - Test coverage is practically non-existent. - There is some unnecessary cloning of data, and many instantiation and borrows are probably more costly or less strict than they should. I was kinda expecting this to happen, though. - Parsing is not very efficient at the moment. Besides, non-orthogonal operators like `Incr` and `Decr`, or `Prev` and `Next` could be compacted to `Mutate` and `Seek`. It makes sense to lose the 1:1 compliance to the source to enable some low-hanging optimizations like operator condensation. - There are many interesting variations on the base language, which could be put behind some flag. - It should be easy enough to add a debugger (a rewindable one would be nice). - Performance is laughable, especially when compared to stuff like `bff4`. Rust's integrated micro-benchmarking may help with that. Right now I believe the culprits could be the many unneeded string manipulations, copying of data, and the unoptimized parsed tree. - It shouldn't be too hard to produce a compiled binary, or some custom byte-code. By the way, I saw some nice LLVM helpers hidden inside Rustc. - It should be embeddable. And read mail.
zenoamaro/rust-brainfuck
README.md
Markdown
mit
2,332
/** * Reparse the Grunt command line options flags. * * Using the arguments parsing logic from Grunt: * https://github.com/gruntjs/grunt/blob/master/lib/grunt/cli.js */ module.exports = function(grunt){ // Get the current Grunt CLI instance. var nopt = require('nopt'), parsedOptions = parseOptions(nopt, grunt.cli.optlist); grunt.log.debug('(nopt-grunt-fix) old flags: ', grunt.option.flags()); // Reassign the options. resetOptions(grunt, parsedOptions); grunt.log.debug('(nopt-grunt-fix) new flags: ', grunt.option.flags()); return grunt; }; // Normalise the parameters and then parse them. function parseOptions(nopt, optlist){ var params = getParams(optlist); var parsedOptions = nopt(params.known, params.aliases, process.argv, 2); initArrays(optlist, parsedOptions); return parsedOptions; } // Reassign the options on the Grunt instance. function resetOptions(grunt, parsedOptions){ for (var i in parsedOptions){ if (parsedOptions.hasOwnProperty(i) && i != 'argv'){ grunt.option(i, parsedOptions[i]); } } } // Parse `optlist` into a form that nopt can handle. function getParams(optlist){ var aliases = {}; var known = {}; Object.keys(optlist).forEach(function(key) { var short = optlist[key].short; if (short) { aliases[short] = '--' + key; } known[key] = optlist[key].type; }); return { known: known, aliases: aliases } } // Initialize any Array options that weren't initialized. function initArrays(optlist, parsedOptions){ Object.keys(optlist).forEach(function(key) { if (optlist[key].type === Array && !(key in parsedOptions)) { parsedOptions[key] = []; } }); }
widgetworks/nopt-grunt-fix
index.js
JavaScript
mit
1,652
module.exports = { "name": "ATmega16HVB", "timeout": 200, "stabDelay": 100, "cmdexeDelay": 25, "syncLoops": 32, "byteDelay": 0, "pollIndex": 3, "pollValue": 83, "preDelay": 1, "postDelay": 1, "pgmEnable": [172, 83, 0, 0], "erase": { "cmd": [172, 128, 0, 0], "delay": 45, "pollMethod": 1 }, "flash": { "write": [64, 76, 0], "read": [32, 0, 0], "mode": 65, "blockSize": 128, "delay": 10, "poll2": 0, "poll1": 0, "size": 16384, "pageSize": 128, "pages": 128, "addressOffset": null }, "eeprom": { "write": [193, 194, 0], "read": [160, 0, 0], "mode": 65, "blockSize": 4, "delay": 10, "poll2": 0, "poll1": 0, "size": 512, "pageSize": 4, "pages": 128, "addressOffset": 0 }, "sig": [30, 148, 13], "signature": { "size": 3, "startAddress": 0, "read": [48, 0, 0, 0] }, "fuses": { "startAddress": 0, "write": { "low": [172, 160, 0, 0], "high": [172, 168, 0, 0] }, "read": { "low": [80, 0, 0, 0], "high": [88, 8, 0, 0] } } }
noopkat/avrgirl-chips-json
atmega/atmega16hvb.js
JavaScript
mit
1,112
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.DataContracts.Common { using System; using Newtonsoft.Json; using YamlDotNet.Serialization; using Microsoft.DocAsCode.Utility; [Serializable] public class SourceDetail { [YamlMember(Alias = "remote")] [JsonProperty("remote")] public GitDetail Remote { get; set; } [YamlMember(Alias = "base")] [JsonProperty("base")] public string BasePath { get; set; } [YamlMember(Alias = "id")] [JsonProperty("id")] public string Name { get; set; } /// <summary> /// The url path for current source, should be resolved at some late stage /// </summary> [YamlMember(Alias = Constants.PropertyName.Href)] [JsonProperty(Constants.PropertyName.Href)] public string Href { get; set; } /// <summary> /// The local path for current source, should be resolved to be relative path at some late stage /// </summary> [YamlMember(Alias = "path")] [JsonProperty("path")] public string Path { get; set; } [YamlMember(Alias = "startLine")] [JsonProperty("startLine")] public int StartLine { get; set; } [YamlMember(Alias = "endLine")] [JsonProperty("endLine")] public int EndLine { get; set; } [YamlMember(Alias = "content")] [JsonProperty("content")] public string Content { get; set; } /// <summary> /// The external path for current source if it is not locally available /// </summary> [YamlMember(Alias = "isExternal")] [JsonProperty("isExternal")] public bool IsExternalPath { get; set; } } }
sergey-vershinin/docfx
src/Microsoft.DocAsCode.DataContracts.Common/SourceDetail.cs
C#
mit
1,881
--- published: true title: Landed on TinyPress layout: post --- For a long time I tried to find a simple way to write technical articles mainly for my own consumption. Hopefully TinyPress is the way to go...
aanno/aanno.github.io
_posts/2016-02-21-landed-on-tinypress.markdown
Markdown
mit
212
--- layout: page title: Guerrero - Yates Wedding date: 2016-05-24 author: Maria Morgan tags: weekly links, java status: published summary: Cras bibendum diam erat, non. banner: images/banner/leisure-03.jpg booking: startDate: 03/21/2016 endDate: 03/23/2016 ctyhocn: BALAMHX groupCode: GYW published: true --- Vivamus eu libero cursus, varius dolor ut, facilisis metus. Nullam vel risus sem. In placerat nulla risus, sed venenatis ex ultricies ut. Nullam lacus lacus, lobortis eu felis vel, suscipit sollicitudin purus. Sed et pharetra leo. Aenean sit amet augue libero. Donec interdum pretium libero, nec finibus velit commodo et. Cras feugiat arcu et ligula ultrices mattis. Nullam aliquam condimentum consequat. Fusce ut arcu in nisl mollis venenatis. Nunc vulputate libero sollicitudin semper auctor. Nulla vel elit aliquet massa mollis viverra ut quis urna. Vivamus at nulla nulla. Mauris congue euismod orci, vel fermentum leo tincidunt eu. Quisque bibendum purus sed massa ultricies, vel iaculis ante consectetur. Mauris tristique tellus sit amet interdum accumsan. Quisque dignissim felis non tincidunt euismod. Sed sit amet mi volutpat, bibendum massa quis, vestibulum lorem. * Aliquam ac eros non arcu ullamcorper pretium ac nec ipsum * Aenean vel nulla feugiat, congue tortor sit amet, posuere risus * Nunc quis est ac ligula condimentum vehicula. Nullam mattis consectetur lorem eu hendrerit. Praesent et massa nec felis efficitur blandit ut id urna. Mauris sit amet ex nunc. Aliquam dapibus arcu vestibulum, suscipit lacus sit amet, mollis mi. Duis ac orci eget velit vehicula porta. Vestibulum ut fringilla velit. Maecenas vel massa id augue commodo ornare ut non ligula. Proin at porttitor est, sit amet dictum est. Integer blandit orci lorem, sit amet tempor nisi euismod ac. Nam ac volutpat ipsum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus vitae tortor posuere, consectetur enim id, venenatis ligula. Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer porta hendrerit nibh id placerat. Cras pretium nibh ut odio feugiat, at mattis arcu gravida. Proin interdum a risus ac sodales. Mauris hendrerit, turpis at tempor volutpat, sem nisi scelerisque erat, sed scelerisque purus risus ac enim. Vivamus ac cursus erat. Sed mollis diam et magna bibendum condimentum. Proin vehicula at lorem et vulputate. Nunc porttitor dui non metus iaculis maximus. Aenean tempus fringilla lectus, vitae venenatis nisl feugiat ut. Pellentesque interdum arcu non mauris aliquet, non tincidunt tortor faucibus. Aenean semper purus sit amet finibus luctus. Ut neque nulla, tristique viverra tempus sit amet, finibus non velit. Nunc dictum enim hendrerit, bibendum eros non, luctus ipsum.
KlishGroup/prose-pogs
pogs/B/BALAMHX/GYW/index.md
Markdown
mit
2,764
--- layout: page title: Stokes Falls International Conference date: 2016-05-24 author: Christopher Barajas tags: weekly links, java status: published summary: Quisque sit amet risus finibus orci egestas posuere. Donec. banner: images/banner/leisure-03.jpg booking: startDate: 05/14/2016 endDate: 05/15/2016 ctyhocn: SANCSHX groupCode: SFIC published: true --- Aenean vel est tellus. Quisque ex nisi, aliquam a vulputate ac, varius at ligula. Vestibulum id sem viverra, elementum lorem a, sollicitudin tellus. Ut finibus leo metus, sed consectetur lorem pretium quis. Maecenas sed massa in lorem ornare dignissim semper vitae est. Mauris suscipit dignissim lacus luctus eleifend. Nulla facilisi. Aenean facilisis tristique justo, eget lobortis sapien tincidunt nec. Phasellus tincidunt ante sed eros feugiat feugiat. Aliquam ullamcorper ipsum nec dolor faucibus, non feugiat augue elementum. Etiam blandit ipsum at congue suscipit. Curabitur dictum ligula eget tortor mattis, et pharetra justo sodales. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras molestie imperdiet sapien vel imperdiet. Aliquam iaculis odio a augue semper varius. Sed id lorem libero. * Duis consequat massa eu ligula cursus, nec ullamcorper libero porttitor * Mauris in ligula sit amet velit fermentum tempus a vitae turpis * Morbi dapibus felis condimentum, feugiat est at, auctor felis * Mauris tempor magna eu lorem eleifend, id rutrum turpis dapibus. Nulla volutpat ex eget sapien suscipit, ac malesuada urna volutpat. Suspendisse viverra nec enim eget imperdiet. Vestibulum lobortis velit imperdiet metus suscipit blandit non in justo. Donec facilisis est rhoncus, pulvinar dolor eu, mattis dui. Proin lectus diam, aliquet vitae nulla at, scelerisque interdum ipsum. Aliquam sed rutrum nisl, eget congue lorem. Curabitur ut mauris vitae est maximus sodales nec a sapien. Vestibulum quis lobortis purus. Vestibulum consectetur iaculis enim, ut feugiat sem accumsan et. Suspendisse vehicula justo dolor, in ultricies ex consequat et. Vestibulum rutrum eros non accumsan semper. Phasellus lectus lacus, ultrices vitae bibendum nec, condimentum consequat quam. Nam porta massa non erat sagittis, sit amet rutrum tellus tempus. Donec magna mauris, dictum sed porttitor congue, venenatis ut eros. Integer eget lorem elementum, fringilla libero nec, consequat velit. Suspendisse molestie aliquam metus ac semper.
KlishGroup/prose-pogs
pogs/S/SANCSHX/SFIC/index.md
Markdown
mit
2,444
--- layout: page title: Megan Manning's 102nd Birthday date: 2016-05-24 author: Justin Rowe tags: weekly links, java status: published summary: Nullam et eros sagittis, volutpat augue ac, ultrices augue. banner: images/banner/meeting-01.jpg booking: startDate: 04/28/2019 endDate: 04/29/2019 ctyhocn: RICARHX groupCode: MM1B published: true --- Maecenas tristique sapien sem, at ornare nibh consectetur a. Curabitur placerat nulla id neque cursus egestas. Nunc mollis lacus ligula, sed eleifend massa ultricies a. Cras pretium interdum luctus. Praesent ante urna, malesuada at lacinia a, pellentesque eu libero. Nulla maximus auctor augue, sed tincidunt libero tincidunt et. Maecenas at facilisis nisl. Aliquam erat volutpat. Suspendisse potenti. Proin volutpat elementum odio, non ultrices lectus. Nam gravida felis diam, eget euismod sapien malesuada vitae. Cras urna justo, imperdiet at velit ac, ultricies mollis nisl. Morbi non feugiat augue. Nam et pharetra arcu, id venenatis ex. Pellentesque nec interdum quam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed justo nibh, vulputate sed tempor in, suscipit id justo. Etiam laoreet eu purus at tempor. Suspendisse dapibus diam nec nisi condimentum, eu vestibulum urna laoreet. Quisque rhoncus tincidunt justo sed efficitur. Maecenas hendrerit tempor ornare. Nulla sodales sem quis metus rutrum pretium. Duis aliquam bibendum ipsum. Aliquam lacinia lectus a sapien dapibus, a aliquam felis viverra. Duis id elementum nunc. Fusce eu lorem vitae mauris suscipit laoreet id dignissim justo. * Nam cursus augue a dui accumsan pulvinar sodales in odio * Aenean posuere nisl et bibendum laoreet. Sed dictum eget nunc eleifend dignissim. Etiam sagittis gravida lectus, id aliquam orci. Etiam lobortis facilisis tempor. Morbi euismod augue neque, ac condimentum ex consequat eget. Sed at tempus lorem, at dictum augue. Cras lacus erat, tristique nec mattis nec, pharetra et elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean vel risus ut risus venenatis auctor. Ut eleifend mauris sit amet ullamcorper tempus. Morbi et leo ut ipsum efficitur ornare sed ac ipsum. In eu nisi nec augue vestibulum porttitor. Duis ut efficitur nisi. Suspendisse aliquam ut quam quis congue. Quisque a magna rutrum, euismod lacus tincidunt, rhoncus turpis. Nulla facilisi. Sed et bibendum mi. Morbi ac eleifend nunc. Mauris consequat ante nec mattis placerat. Vivamus porta magna vel nulla ultrices, non tempor tortor lacinia. Nam auctor, ipsum eu interdum dictum, ligula nisi rutrum elit, id maximus elit nisi id purus. Integer tellus eros, iaculis vitae tincidunt sed, eleifend et nunc. Nulla consectetur sapien quam. Nunc at risus ultricies, vulputate neque id, viverra nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce suscipit neque in hendrerit aliquam. Vestibulum tempor condimentum nisl. In hac habitasse platea dictumst.
KlishGroup/prose-pogs
pogs/R/RICARHX/MM1B/index.md
Markdown
mit
3,024
export function JavapParser(input: any): this; export class JavapParser { constructor(input: any); _interp: any; ruleNames: string[]; literalNames: (string | null)[]; symbolicNames: (string | null)[]; constructor: typeof JavapParser; get atn(): any; compilationUnit(): CompilationUnitContext; state: number | undefined; sourceDeclaration(): SourceDeclarationContext; classOrInterface(): ClassOrInterfaceContext; classDeclaration(): ClassDeclarationContext; interfaceDeclaration(): InterfaceDeclarationContext; classModifier(): ClassModifierContext; interfaceModifier(): InterfaceModifierContext; typeList(): TypeListContext; type(): TypeContext; subType(): SubTypeContext; packageName(): PackageNameContext; typeArguments(): TypeArgumentsContext; typeArgument(): TypeArgumentContext; classBody(): ClassBodyContext; interfaceBody(): InterfaceBodyContext; modifier(): ModifierContext; classMember(): ClassMemberContext; interfaceMember(): InterfaceMemberContext; constructorDeclaration(): ConstructorDeclarationContext; fieldDeclaration(): FieldDeclarationContext; methodDeclaration(): MethodDeclarationContext; throwsException(): ThrowsExceptionContext; varargs(): VarargsContext; methodArguments(): MethodArgumentsContext; arrayBrackets(): ArrayBracketsContext; } export namespace JavapParser { export const EOF: number; export const T__0: number; export const T__1: number; export const T__2: number; export const T__3: number; export const T__4: number; export const T__5: number; export const T__6: number; export const T__7: number; export const T__8: number; export const T__9: number; export const T__10: number; export const T__11: number; export const T__12: number; export const T__13: number; export const T__14: number; export const T__15: number; export const T__16: number; export const T__17: number; export const T__18: number; export const T__19: number; export const T__20: number; export const T__21: number; export const T__22: number; export const T__23: number; export const T__24: number; export const T__25: number; export const T__26: number; export const T__27: number; export const T__28: number; export const T__29: number; export const T__30: number; export const T__31: number; export const T__32: number; export const T__33: number; export const T__34: number; export const Identifier: number; export const WS: number; export const RULE_compilationUnit: number; export const RULE_sourceDeclaration: number; export const RULE_classOrInterface: number; export const RULE_classDeclaration: number; export const RULE_interfaceDeclaration: number; export const RULE_classModifier: number; export const RULE_interfaceModifier: number; export const RULE_typeList: number; export const RULE_type: number; export const RULE_subType: number; export const RULE_packageName: number; export const RULE_typeArguments: number; export const RULE_typeArgument: number; export const RULE_classBody: number; export const RULE_interfaceBody: number; export const RULE_modifier: number; export const RULE_classMember: number; export const RULE_interfaceMember: number; export const RULE_constructorDeclaration: number; export const RULE_fieldDeclaration: number; export const RULE_methodDeclaration: number; export const RULE_throwsException: number; export const RULE_varargs: number; export const RULE_methodArguments: number; export const RULE_arrayBrackets: number; export { CompilationUnitContext }; export { SourceDeclarationContext }; export { ClassOrInterfaceContext }; export { ClassDeclarationContext }; export { InterfaceDeclarationContext }; export { ClassModifierContext }; export { InterfaceModifierContext }; export { TypeListContext }; export { TypeContext }; export { SubTypeContext }; export { PackageNameContext }; export { TypeArgumentsContext }; export { TypeArgumentContext }; export { ClassBodyContext }; export { InterfaceBodyContext }; export { ModifierContext }; export { ClassMemberContext }; export { InterfaceMemberContext }; export { ConstructorDeclarationContext }; export { FieldDeclarationContext }; export { MethodDeclarationContext }; export { ThrowsExceptionContext }; export { VarargsContext }; export { MethodArgumentsContext }; export { ArrayBracketsContext }; } declare function CompilationUnitContext(parser: any, parent: any, invokingState: any): this; declare class CompilationUnitContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof CompilationUnitContext; sourceDeclaration(i: any): any; classOrInterface(i: any): any; EOF(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function SourceDeclarationContext(parser: any, parent: any, invokingState: any): this; declare class SourceDeclarationContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof SourceDeclarationContext; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassOrInterfaceContext(parser: any, parent: any, invokingState: any): this; declare class ClassOrInterfaceContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassOrInterfaceContext; classDeclaration(): any; interfaceDeclaration(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassDeclarationContext(parser: any, parent: any, invokingState: any): this; declare class ClassDeclarationContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassDeclarationContext; type(i: any): any; classBody(): any; classModifier(i: any): any; typeList(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function InterfaceDeclarationContext(parser: any, parent: any, invokingState: any): this; declare class InterfaceDeclarationContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof InterfaceDeclarationContext; type(): any; interfaceBody(): any; interfaceModifier(i: any): any; typeList(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassModifierContext(parser: any, parent: any, invokingState: any): this; declare class ClassModifierContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassModifierContext; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function InterfaceModifierContext(parser: any, parent: any, invokingState: any): this; declare class InterfaceModifierContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof InterfaceModifierContext; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeListContext(parser: any, parent: any, invokingState: any): this; declare class TypeListContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeListContext; type(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeContext(parser: any, parent: any, invokingState: any): this; declare class TypeContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeContext; Identifier(): any; packageName(): any; typeArguments(): any; subType(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function SubTypeContext(parser: any, parent: any, invokingState: any): this; declare class SubTypeContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof SubTypeContext; Identifier(): any; typeArguments(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function PackageNameContext(parser: any, parent: any, invokingState: any): this; declare class PackageNameContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof PackageNameContext; Identifier(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeArgumentsContext(parser: any, parent: any, invokingState: any): this; declare class TypeArgumentsContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeArgumentsContext; arrayBrackets(i: any): any; typeArgument(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeArgumentContext(parser: any, parent: any, invokingState: any): this; declare class TypeArgumentContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeArgumentContext; type(i: any): any; Identifier(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassBodyContext(parser: any, parent: any, invokingState: any): this; declare class ClassBodyContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassBodyContext; classMember(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function InterfaceBodyContext(parser: any, parent: any, invokingState: any): this; declare class InterfaceBodyContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof InterfaceBodyContext; interfaceMember(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ModifierContext(parser: any, parent: any, invokingState: any): this; declare class ModifierContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ModifierContext; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassMemberContext(parser: any, parent: any, invokingState: any): this; declare class ClassMemberContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassMemberContext; constructorDeclaration(): any; fieldDeclaration(): any; methodDeclaration(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function InterfaceMemberContext(parser: any, parent: any, invokingState: any): this; declare class InterfaceMemberContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof InterfaceMemberContext; fieldDeclaration(): any; methodDeclaration(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ConstructorDeclarationContext(parser: any, parent: any, invokingState: any): this; declare class ConstructorDeclarationContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ConstructorDeclarationContext; type(): any; methodArguments(): any; modifier(i: any): any; typeArguments(): any; throwsException(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function FieldDeclarationContext(parser: any, parent: any, invokingState: any): this; declare class FieldDeclarationContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof FieldDeclarationContext; type(): any; Identifier(): any; modifier(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function MethodDeclarationContext(parser: any, parent: any, invokingState: any): this; declare class MethodDeclarationContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof MethodDeclarationContext; type(): any; Identifier(): any; methodArguments(): any; modifier(i: any): any; typeArguments(): any; throwsException(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ThrowsExceptionContext(parser: any, parent: any, invokingState: any): this; declare class ThrowsExceptionContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ThrowsExceptionContext; typeList(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function VarargsContext(parser: any, parent: any, invokingState: any): this; declare class VarargsContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof VarargsContext; type(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function MethodArgumentsContext(parser: any, parent: any, invokingState: any): this; declare class MethodArgumentsContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof MethodArgumentsContext; typeList(): any; varargs(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ArrayBracketsContext(parser: any, parent: any, invokingState: any): this; declare class ArrayBracketsContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ArrayBracketsContext; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } export {};
wizawu/1c
dist/parser/javap/JavapParser.d.ts
TypeScript
mit
15,534
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by Brian Nelson 2016. * * See license in repo for more information * * https://github.com/sharpHDF/sharpHDF * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ using System; using System.Collections.Generic; using NUnit.Framework; using sharpHDF.Library.Enums; using sharpHDF.Library.Exceptions; using sharpHDF.Library.Objects; namespace sharpHDF.Library.Tests.Objects { [TestFixture] public class Hdf5AttributeTests : BaseTest { [OneTimeSetUp] public void Setup() { DirectoryName = @"c:\temp\hdf5tests\attributetests"; CleanDirectory(); } [Test] public void CreateAttributeOnFile() { string fileName = GetFilename("createattributeonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); file.Attributes.Add("attribute2", 5); Assert.AreEqual(2, file.Attributes.Count); file.Close(); } [Test] public void CreateAttributeTwiceOnFile() { string fileName = GetFilename("createattributetwiceonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); try { file.Attributes.Add("attribute1", "test2"); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<Hdf5AttributeAlreadyExistException>(ex); } } [Test] public void CreateAttributeTwiceOnGroup() { string fileName = GetFilename("createattributetwiceongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("test"); group.Attributes.Add("attribute1", "test"); try { group.Attributes.Add("attribute1", "test2"); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<Hdf5AttributeAlreadyExistException>(ex); } } [Test] public void CreateAttributeTwiceOnDataset() { string fileName = GetFilename("createattributetwiceondataset.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("test"); List<Hdf5DimensionProperty> dimensionProps = new List<Hdf5DimensionProperty>(); Hdf5DimensionProperty prop = new Hdf5DimensionProperty { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); try { dataset.Attributes.Add("attribute1", "test2"); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<Hdf5AttributeAlreadyExistException>(ex); } } [Test] public void UpdateAttributeWithMismatchOnFile() { string fileName = GetFilename("updateattributewithmistmachonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Attribute attribute = file.Attributes.Add("attribute1", "test"); try { attribute.Value = 5; file.Attributes.Update(attribute); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<Hdf5TypeMismatchException>(ex); } } [Test] public void UpdateAttributeWithMismatchOnGroup() { string fileName = GetFilename("updateattributewithmistmachongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); Hdf5Attribute attribute = group.Attributes.Add("attribute1", "test"); try { attribute.Value = 5; group.Attributes.Update(attribute); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<Hdf5TypeMismatchException>(ex); } } [Test] public void UpdateAttributeWithMismatchOnDataset() { string fileName = GetFilename("updateattributewithmistmachondataset.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); List<Hdf5DimensionProperty> dimensionProps = new List<Hdf5DimensionProperty>(); Hdf5DimensionProperty prop = new Hdf5DimensionProperty { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); Hdf5Attribute attribute = dataset.Attributes.Add("attribute1", "test"); try { attribute.Value = 5; dataset.Attributes.Update(attribute); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<Hdf5TypeMismatchException>(ex); } } [Test] public void UpdateStringAttributeOnFile() { string fileName = GetFilename("updatestringattributeonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Attribute attribute = file.Attributes.Add("attribute1", "test"); attribute.Value = "test2"; file.Attributes.Update(attribute); file.Close(); file = new Hdf5File(fileName); attribute = file.Attributes[0]; Assert.AreEqual("test2", attribute.Value); } [Test] public void UpdateStringAttributeOnGroup() { string fileName = GetFilename("updatestringattributeongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); Hdf5Attribute attribute = group.Attributes.Add("attribute1", "test"); attribute.Value = "test2"; group.Attributes.Update(attribute); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; attribute = group.Attributes[0]; Assert.AreEqual("test2", attribute.Value); } [Test] public void UpdateStringAttributeOnDataset() { string fileName = GetFilename("updatestringattributeondataset.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); List<Hdf5DimensionProperty> dimensionProps = new List<Hdf5DimensionProperty>(); Hdf5DimensionProperty prop = new Hdf5DimensionProperty { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); Hdf5Attribute attribute = dataset.Attributes.Add("attribute1", "test"); attribute.Value = "test2"; dataset.Attributes.Update(attribute); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; attribute = dataset.Attributes[0]; Assert.AreEqual("test2", attribute.Value); } [Test] public void GetAttributeOnFile() { string fileName = GetFilename("getattributeonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); file.Attributes.Add("attribute2", 5); Assert.AreEqual(2, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void CreateAttributeOnGroup() { string fileName = GetFilename("createattributeongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); group.Attributes.Add("attribute1", "test"); group.Attributes.Add("attribute2", 5); Assert.AreEqual(2, group.Attributes.Count); file.Close(); } [Test] public void GetAttributeOnGroup() { string fileName = GetFilename("getattributeongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); group.Attributes.Add("attribute1", "test"); group.Attributes.Add("attribute2", 5); Assert.AreEqual(2, group.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; var attibutes = group.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void CreateAttributeOnDataset() { string fileName = GetFilename("createattributeondataset.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); List<Hdf5DimensionProperty> dimensionProps = new List<Hdf5DimensionProperty>(); Hdf5DimensionProperty prop = new Hdf5DimensionProperty {CurrentSize = 1}; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); dataset.Attributes.Add("attribute2", 5); Assert.AreEqual(2, dataset.Attributes.Count); file.Close(); } [Test] public void GetAttributeOnDataset() { string fileName = GetFilename("getattributeondataset.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); List<Hdf5DimensionProperty> dimensionProps = new List<Hdf5DimensionProperty>(); Hdf5DimensionProperty prop = new Hdf5DimensionProperty { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); dataset.Attributes.Add("attribute2", 5); Assert.AreEqual(2, dataset.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; var attibutes = dataset.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void DeleteAttributeOnFile() { string fileName = GetFilename("deleteattributeonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); file.Attributes.Add("attribute2", 5); Assert.AreEqual(2, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Attributes.Delete(attribute1); Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Close(); file = new Hdf5File(fileName); attibutes = file.Attributes; Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void DeleteAttributeOnGroup() { string fileName = GetFilename("deleteattributeongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); group.Attributes.Add("attribute1", "test"); group.Attributes.Add("attribute2", 5); Assert.AreEqual(2, group.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; var attibutes = group.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); group.Attributes.Delete(attribute1); Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; attibutes = group.Attributes; Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void DeleteAttributeOnDataset() { string fileName = GetFilename("deleteattributeondataset.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); List<Hdf5DimensionProperty> dimensionProps = new List<Hdf5DimensionProperty>(); Hdf5DimensionProperty prop = new Hdf5DimensionProperty { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); dataset.Attributes.Add("attribute2", 5); Assert.AreEqual(2, dataset.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; var attibutes = dataset.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); dataset.Attributes.Delete(attribute1); Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; attibutes = dataset.Attributes; Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void AllAttributeTypesOnFile() { string fileName = GetFilename("allattributetypesonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attributea", "test"); sbyte b = sbyte.MaxValue; file.Attributes.Add("attributeb", b); Int16 c = Int16.MaxValue; file.Attributes.Add("attributec", c); Int32 d = Int32.MaxValue; file.Attributes.Add("attributed", d); Int64 e = Int64.MaxValue; file.Attributes.Add("attributee", e); byte f = Byte.MaxValue; file.Attributes.Add("attibutef", f); UInt16 g = UInt16.MaxValue; file.Attributes.Add("attributeg", g); UInt32 h = UInt32.MaxValue; file.Attributes.Add("attibuteh", h); UInt64 i = UInt64.MaxValue; file.Attributes.Add("attributei", i); float j = float.MaxValue; file.Attributes.Add("attibutej", j); double k = double.MaxValue; file.Attributes.Add("attributek", k); Assert.AreEqual(11, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(11, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual(sbyte.MaxValue, attribute2.Value); var attribute3 = attibutes[2]; Assert.AreEqual(Int16.MaxValue, attribute3.Value); var attribute4 = attibutes[3]; Assert.AreEqual(Int32.MaxValue, attribute4.Value); var attribute5 = attibutes[4]; Assert.AreEqual(Int64.MaxValue, attribute5.Value); var attribute6 = attibutes[5]; Assert.AreEqual(byte.MaxValue, attribute6.Value); var attribute7 = attibutes[6]; Assert.AreEqual(UInt16.MaxValue, attribute7.Value); var attribute8 = attibutes[7]; Assert.AreEqual(UInt32.MaxValue, attribute8.Value); var attribute9 = attibutes[8]; Assert.AreEqual(UInt64.MaxValue, attribute9.Value); var attribute10 = attibutes[9]; Assert.AreEqual(float.MaxValue, attribute10.Value); var attribute11 = attibutes[10]; Assert.AreEqual(double.MaxValue, attribute11.Value); } [Test] public void UpdateAllAttributeTypesOnFile() { string fileName = GetFilename("updateallattributetypesonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); var atta = file.Attributes.Add("attributea", "test"); atta.Value = "test2"; file.Attributes.Update(atta); sbyte b = sbyte.MaxValue; var attb = file.Attributes.Add("attributeb", b); attb.Value = sbyte.MinValue; file.Attributes.Update(attb); Int16 c = Int16.MaxValue; var attc = file.Attributes.Add("attributec", c); attc.Value = Int16.MinValue; file.Attributes.Update(attc); Int32 d = Int32.MaxValue; var attd = file.Attributes.Add("attributed", d); attd.Value = Int32.MinValue; file.Attributes.Update(attd); Int64 e = Int64.MaxValue; var atte = file.Attributes.Add("attributee", e); atte.Value = Int64.MinValue; file.Attributes.Update(atte); byte f = Byte.MaxValue; var attf = file.Attributes.Add("attibutef", f); attf.Value = Byte.MinValue; file.Attributes.Update(attf); UInt16 g = UInt16.MaxValue; var attg = file.Attributes.Add("attributeg", g); attg.Value = UInt16.MinValue; file.Attributes.Update(attg); UInt32 h = UInt32.MaxValue; var atth = file.Attributes.Add("attibuteh", h); atth.Value = UInt32.MinValue; file.Attributes.Update(atth); UInt64 i = UInt64.MaxValue; var atti = file.Attributes.Add("attributei", i); atti.Value = UInt64.MinValue; file.Attributes.Update(atti); float j = float.MaxValue; var attj = file.Attributes.Add("attibutej", j); attj.Value = float.MinValue; file.Attributes.Update(attj); double k = double.MaxValue; var attk = file.Attributes.Add("attributek", k); attk.Value = double.MinValue; file.Attributes.Update(attk); Assert.AreEqual(11, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(11, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("test2", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual(sbyte.MinValue, attribute2.Value); var attribute3 = attibutes[2]; Assert.AreEqual(Int16.MinValue, attribute3.Value); var attribute4 = attibutes[3]; Assert.AreEqual(Int32.MinValue, attribute4.Value); var attribute5 = attibutes[4]; Assert.AreEqual(Int64.MinValue, attribute5.Value); var attribute6 = attibutes[5]; Assert.AreEqual(byte.MinValue, attribute6.Value); var attribute7 = attibutes[6]; Assert.AreEqual(UInt16.MinValue, attribute7.Value); var attribute8 = attibutes[7]; Assert.AreEqual(UInt32.MinValue, attribute8.Value); var attribute9 = attibutes[8]; Assert.AreEqual(UInt64.MinValue, attribute9.Value); var attribute10 = attibutes[9]; Assert.AreEqual(float.MinValue, attribute10.Value); var attribute11 = attibutes[10]; Assert.AreEqual(double.MinValue, attribute11.Value); } } }
sharpHDF/sharpHDF
src/sharpHDFTests/Objects/Hdf5AttributeTests.cs
C#
mit
23,622
# Integration tests for rust_fuse The purpose of this crate is to provide a set of tests that will verify filesystems written with rust_fuse in action. To run it, you need to be capable of mounting arbitrary weird FUSE filesystems under temp directories.
MicahChalmer/rust-fuse-mc-original
src/test/README.md
Markdown
mit
257
SHELL = /bin/sh # V=0 quiet, V=1 verbose. other values don't work. V = 0 Q1 = $(V:1=) Q = $(Q1:0=@) ECHO1 = $(V:1=@ :) ECHO = $(ECHO1:0=@ echo) NULLCMD = : #### Start of system configuration section. #### srcdir = . topdir = /usr/local/include/ruby-2.6.0 hdrdir = $(topdir) arch_hdrdir = /usr/local/include/ruby-2.6.0/x86_64-linux-musl PATH_SEPARATOR = : VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby prefix = $(DESTDIR)/usr/local rubysitearchprefix = $(rubylibprefix)/$(sitearch) rubyarchprefix = $(rubylibprefix)/$(arch) rubylibprefix = $(libdir)/$(RUBY_BASE_NAME) exec_prefix = $(prefix) vendorarchhdrdir = $(vendorhdrdir)/$(sitearch) sitearchhdrdir = $(sitehdrdir)/$(sitearch) rubyarchhdrdir = $(rubyhdrdir)/$(arch) vendorhdrdir = $(rubyhdrdir)/vendor_ruby sitehdrdir = $(rubyhdrdir)/site_ruby rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME) vendorarchdir = $(vendorlibdir)/$(sitearch) vendorlibdir = $(vendordir)/$(ruby_version) vendordir = $(rubylibprefix)/vendor_ruby sitearchdir = $(DESTDIR)./.gem.20200804-31-1pi4ltr sitelibdir = $(DESTDIR)./.gem.20200804-31-1pi4ltr sitedir = $(rubylibprefix)/site_ruby rubyarchdir = $(rubylibdir)/$(arch) rubylibdir = $(rubylibprefix)/$(ruby_version) sitearchincludedir = $(includedir)/$(sitearch) archincludedir = $(includedir)/$(arch) sitearchlibdir = $(libdir)/$(sitearch) archlibdir = $(libdir)/$(arch) ridir = $(datarootdir)/$(RI_BASE_NAME) mandir = $(datarootdir)/man localedir = $(datarootdir)/locale libdir = $(exec_prefix)/lib psdir = $(docdir) pdfdir = $(docdir) dvidir = $(docdir) htmldir = $(docdir) infodir = $(datarootdir)/info docdir = $(datarootdir)/doc/$(PACKAGE) oldincludedir = $(DESTDIR)/usr/include includedir = $(prefix)/include runstatedir = $(localstatedir)/run localstatedir = $(prefix)/var sharedstatedir = $(prefix)/com sysconfdir = $(prefix)/etc datadir = $(datarootdir) datarootdir = $(prefix)/share libexecdir = $(exec_prefix)/libexec sbindir = $(exec_prefix)/sbin bindir = $(exec_prefix)/bin archdir = $(rubyarchdir) CC_WRAPPER = CC = gcc CXX = g++ LIBRUBY = $(LIBRUBY_SO) LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME) LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS) empty = OUTFLAG = -o $(empty) COUTFLAG = -o $(empty) CSRCFLAG = $(empty) RUBY_EXTCONF_H = cflags = $(optflags) $(debugflags) $(warnflags) cxxflags = $(optflags) $(debugflags) $(warnflags) optflags = -O3 debugflags = -ggdb3 warnflags = -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable cppflags = CCDLFLAGS = -fPIC CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG) INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) DEFS = CPPFLAGS = -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RB_THREAD_FD_SELECT -DHAVE_TYPE_RB_FDSET_T -DHAVE_RB_WAIT_FOR_SINGLE_FD -DHAVE_RB_TIME_NEW -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_PIPE2 -DHAVE_ACCEPT4 -DHAVE_CONST_SOCK_CLOEXEC -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DHAVE_CLOCK_GETTIME -DHAVE_CONST_CLOCK_MONOTONIC_RAW -DHAVE_CONST_CLOCK_MONOTONIC -DHAVE_MAKE_PAIR -I/usr/local/opt/openssl/include -I/opt/local/include -I/usr/local/include $(DEFS) $(cppflags) CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG) ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic dldflags = -Wl,--compress-debug-sections=zlib ARCH_FLAG = DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG) LDSHARED = $(CXX) -shared LDSHAREDXX = $(CXX) -shared AR = ar EXEEXT = RUBY_INSTALL_NAME = $(RUBY_BASE_NAME) RUBY_SO_NAME = ruby RUBYW_INSTALL_NAME = RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version) RUBYW_BASE_NAME = rubyw RUBY_BASE_NAME = ruby arch = x86_64-linux-musl sitearch = $(arch) ruby_version = 2.6.0 ruby = $(bindir)/$(RUBY_BASE_NAME) RUBY = $(ruby) ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h RM = rm -f RM_RF = $(RUBY) -run -e rm -- -rf RMDIRS = rmdir --ignore-fail-on-non-empty -p MAKEDIRS = /bin/mkdir -p INSTALL = /usr/bin/install -c INSTALL_PROG = $(INSTALL) -m 0755 INSTALL_DATA = $(INSTALL) -m 644 COPY = cp TOUCH = exit > #### End of system configuration section. #### preload = libpath = . $(libdir) /usr/local/opt/openssl/lib /opt/local/lib /usr/local/lib LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir) -L/usr/local/opt/openssl/lib -Wl,-rpath,/usr/local/opt/openssl/lib -L/opt/local/lib -Wl,-rpath,/opt/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib DEFFILE = CLEANFILES = mkmf.log DISTCLEANFILES = DISTCLEANDIRS = extout = extout_prefix = target_prefix = LOCAL_LIBS = LIBS = $(LIBRUBYARG_SHARED) -lm -lc ORIG_SRCS = binder.cpp cmain.cpp ed.cpp em.cpp kb.cpp page.cpp pipe.cpp rubymain.cpp ssl.cpp SRCS = $(ORIG_SRCS) OBJS = binder.o cmain.o ed.o em.o kb.o page.o pipe.o rubymain.o ssl.o HDRS = $(srcdir)/page.h $(srcdir)/binder.h $(srcdir)/ssl.h $(srcdir)/em.h $(srcdir)/project.h $(srcdir)/eventmachine.h $(srcdir)/ed.h LOCAL_HDRS = TARGET = rubyeventmachine TARGET_NAME = rubyeventmachine TARGET_ENTRY = Init_$(TARGET_NAME) DLLIB = $(TARGET).so EXTSTATIC = STATIC_LIB = TIMESTAMP_DIR = . BINDIR = $(bindir) RUBYCOMMONDIR = $(sitedir)$(target_prefix) RUBYLIBDIR = $(sitelibdir)$(target_prefix) RUBYARCHDIR = $(sitearchdir)$(target_prefix) HDRDIR = $(rubyhdrdir)/ruby$(target_prefix) ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix) TARGET_SO_DIR = TARGET_SO = $(TARGET_SO_DIR)$(DLLIB) CLEANLIBS = $(TARGET_SO) CLEANOBJS = *.o *.bak all: $(DLLIB) static: $(STATIC_LIB) .PHONY: all install static install-so install-rb .PHONY: clean clean-so clean-static clean-rb clean-static:: clean-rb-default:: clean-rb:: clean-so:: clean: clean-so clean-static clean-rb-default clean-rb -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time distclean-rb-default:: distclean-rb:: distclean-so:: distclean-static:: distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true realclean: distclean install: install-so install-rb install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR) clean-static:: -$(Q)$(RM) $(STATIC_LIB) install-rb: pre-install-rb do-install-rb install-rb-default install-rb-default: pre-install-rb-default do-install-rb-default pre-install-rb: Makefile pre-install-rb-default: Makefile do-install-rb: do-install-rb-default: pre-install-rb-default: @$(NULLCMD) $(TIMESTAMP_DIR)/.sitearchdir.time: $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR) $(Q) $(TOUCH) $@ site-install: site-install-so site-install-rb site-install-so: install-so site-install-rb: install-rb .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S .cc.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .cc.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .mm.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .mm.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .cxx.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .cxx.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .cpp.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .cpp.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .c.o: $(ECHO) compiling $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .c.S: $(ECHO) translating $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .m.o: $(ECHO) compiling $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .m.S: $(ECHO) translating $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< $(TARGET_SO): $(OBJS) Makefile $(ECHO) linking shared-object $(DLLIB) -$(Q)$(RM) $(@) $(Q) $(LDSHAREDXX) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS) $(OBJS): $(HDRS) $(ruby_headers)
fractalbass/data_science
vendor/bundle/gems/eventmachine-1.2.7/ext/Makefile
Makefile
mit
9,074
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>najaxjs Tutorial: relaylinker | Ajax simple library</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type="text/css" rel="stylesheet" href="styles/site.yeti.css"> </head> <body> <div class="navbar navbar-default navbar-fixed-top navbar-inverse"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="index.html">najaxjs</a> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="navbar-collapse collapse" id="topNavigation"> <ul class="nav navbar-nav"> <li class="dropdown"> <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="$najax.html">$najax</a></li><li><a href="$najax.define.html">$najax.define</a></li><li><a href="$najax.history.html">$najax.history</a></li><li><a href="[email protected]">$najax@class</a></li><li><a href="[email protected]">$najax@ex</a></li><li><a href="[email protected]">$najax@helper</a></li><li><a href="[email protected]">$najax@read</a></li><li><a href="[email protected]">$najax@rlk</a></li> </ul> </li> <li class="dropdown"> <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="Linker.html">Linker</a></li><li><a href="Nx.html">Nx</a></li><li><a href="Pager.html">Pager</a></li><li><a href="Reflector.html">Reflector</a></li><li><a href="Relay.html">Relay</a></li><li><a href="RESTful.html">RESTful</a></li><li><a href="Singular.html">Singular</a></li><li><a href="Tx.html">Tx</a></li> </ul> </li> <li class="dropdown"> <a href="tutorials.list.html" class="dropdown-toggle" data-toggle="dropdown">Tutorials<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="tutorial-demo-ui-ajax.html">demo-ui-ajax</a></li><li><a href="tutorial-najax-class.html">najax-class</a></li><li><a href="tutorial-najax-ex.html">najax-ex</a></li><li><a href="tutorial-najax-helper.html">najax-helper</a></li><li><a href="tutorial-najax-read.html">najax-read</a></li><li><a href="tutorial-relaylinker.html">relaylinker</a></li><li><a href="tutorial-rlk-standalone.html">rlk-standalone</a></li><li><a href="tutorial-static-history.html">static-history</a></li><li><a href="tutorial-static-najax-micro.html">static-najax-micro</a></li><li><a href="tutorial-static-najax.html">static-najax</a></li> </ul> </li> <li class="dropdown"> <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="global.html">Global</a></li> </ul> </li> </ul> <div class="col-sm-3 col-md-3"> <form class="navbar-form" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search" name="q" id="search-input"> <div class="input-group-btn"> <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button> </div> </div> </form> </div> </div> </div> </div> <div class="container" id="toc-content"> <div class="row"> <div class="col-md-12"> <div id="main"> <section class="tutorial-section"> <header> <h2>relaylinker</h2> </header> <article> <script type="text/javascript" src="includes/load.js"></script> <link href="./includes/common.css" rel="stylesheet"> <div>Demo is iframe content. Standalone demo is <a href="../demos/relaylinker.html" target="_blank">here</a>. <u>Require php activation in server.</u></div> <iframe src="../demos/relaylinker.html" width="100%" height="1000" scrolling="no"></iframe> </article> </section> </div> </div> <div class="clearfix"></div> </div> </div> <div class="modal fade" id="searchResults"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title">Search results</h4> </div> <div class="modal-body"></div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div> <footer> &nbsp; <span class="jsdoc-message"> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>. </span> </footer> <script src="scripts/docstrap.lib.js"></script> <script src="scripts/toc.js"></script> <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script> <script> $( function () { $( "[id*='$']" ).each( function () { var $this = $( this ); $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) ); } ); $( ".tutorial-section pre, .readme-section pre" ).each( function () { var $this = $( this ); var example = $this.find( "code" ); exampleText = example.html(); var lang = /{@lang (.*?)}/.exec( exampleText ); if ( lang && lang[1] ) { exampleText = exampleText.replace( lang[0], "" ); example.html( exampleText ); lang = lang[1]; } else { var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/); lang = langClassMatch ? langClassMatch[1] : "javascript"; } if ( lang ) { $this .addClass( "sunlight-highlight-" + lang ) .addClass( "linenums" ) .html( example.html() ); } } ); Sunlight.highlightAll( { lineNumbers : true, showMenu : true, enableDoclinks : true } ); $.catchAnchorLinks( { navbarOffset: 10 } ); $( "#toc" ).toc( { anchorName : function ( i, heading, prefix ) { var id = $( heading ).attr( "id" ); return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i ); }, selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4", showAndHide : false, smoothScrolling: true } ); $( "#main span[id^='toc']" ).addClass( "toc-shim" ); $( '.dropdown-toggle' ).dropdown(); $( "table" ).each( function () { var $this = $( this ); $this.addClass('table'); } ); } ); </script> <!--Navigation and Symbol Display--> <!--Google Analytics--> <script type="text/javascript"> $(document).ready(function() { SearcherDisplay.init(); }); </script> </body> </html>
any-js/any-js.github.io
any-js/najaxjs/docs/tutorial-relaylinker.html
HTML
mit
6,971
using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; namespace UniversityStudents.Models { // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. public class ApplicationUser : IdentityUser { public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> manager, string authenticationType) { // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType var userIdentity = await manager.CreateIdentityAsync(this, authenticationType); // Add custom user claims here return userIdentity; } } public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public ApplicationDbContext() : base("DefaultConnection", throwIfV1Schema: false) { } public static ApplicationDbContext Create() { return new ApplicationDbContext(); } } }
twabbott/FeralNerd
Projects/AspDemo/UniversityStudents/Models/IdentityModels.cs
C#
mit
1,238
const express = require('express'); const app = express(); const path = require('path'); const userCtrl = require('./userCtrl.js'); //extra middleware const bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({extended: true}), bodyParser.json()); app.use(express.static(path.join(__dirname, '../../node_modules/'))); app.use(express.static(path.join(__dirname, '../client/'))); app.post('/requestDB', userCtrl.sendTableList); app.post('/requestTable', userCtrl.sendTable); app.post('/createTable', userCtrl.createTable); app.post('/insert', userCtrl.insertEntry); app.post('/update', userCtrl.updateEntry); app.post('/delete', userCtrl.deleteEntry); app.post('/query', userCtrl.rawQuery); app.post('/dropTable', userCtrl.dropTable); app.listen(3000, ()=> console.log('listening on port 3000'));
dbviews/dbview
src/server/server.js
JavaScript
mit
814
package com.wjiec.learn.reordering; public class SynchronizedThreading { private int number = 0; private boolean flag = false; public synchronized void write() { number = 1; flag = true; } public synchronized int read() { if (flag) { return number * number; } return -1; } }
JShadowMan/package
java/concurrency-arts/src/main/java/com/wjiec/learn/reordering/SynchronizedThreading.java
Java
mit
357
--- layout: base --- <div class="body-container"> <!--[if lt IE 8]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <nav class="navbar navbar-light bg-faded"> <div class="d-flex justify-content-between"> <a class="navbar-brand" href="{{ '/' | relative_url }}">{{ site.title | escape }}</a> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="{{ '/about/' | relative_url }}" title="About">About</a> </li> </ul> </div> </nav> <div class="content"> {{ content }} </div> <footer class="bg-faded p-3"> <p class="text-center mb-0 text-muted">&copy; 2017 {{ site.author | escape }}</p> </footer> </div>
bulnab/bulnab.github.io
_layouts/default.html
HTML
mit
801
<?php namespace Torchbox\Thankq\Api; class doContactInsert { /** * @var esitWSdoContactInsertArgument $doContactInsertArgument */ protected $doContactInsertArgument = null; /** * @param esitWSdoContactInsertArgument $doContactInsertArgument */ public function __construct($doContactInsertArgument) { $this->doContactInsertArgument = $doContactInsertArgument; } /** * @return esitWSdoContactInsertArgument */ public function getDoContactInsertArgument() { return $this->doContactInsertArgument; } /** * @param esitWSdoContactInsertArgument $doContactInsertArgument * @return \Torchbox\Thankq\Api\doContactInsert */ public function setDoContactInsertArgument($doContactInsertArgument) { $this->doContactInsertArgument = $doContactInsertArgument; return $this; } }
mrhorse/crm_api
lib/Api/doContactInsert.php
PHP
mit
894
package eu.hgross.blaubot.android.views; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os.Looper; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; import java.util.Set; import eu.hgross.blaubot.admin.AbstractAdminMessage; import eu.hgross.blaubot.admin.CensusMessage; import eu.hgross.blaubot.android.R; import eu.hgross.blaubot.core.Blaubot; import eu.hgross.blaubot.core.IBlaubotConnection; import eu.hgross.blaubot.core.State; import eu.hgross.blaubot.core.acceptor.IBlaubotConnectionManagerListener; import eu.hgross.blaubot.core.statemachine.IBlaubotConnectionStateMachineListener; import eu.hgross.blaubot.core.statemachine.states.IBlaubotState; import eu.hgross.blaubot.messaging.IBlaubotAdminMessageListener; import eu.hgross.blaubot.ui.IBlaubotDebugView; /** * Android view to display informations about the StateMachine's state. * * Add this view to a blaubot instance like this: stateView.registerBlaubotInstance(blaubot); * * @author Henning Gross {@literal ([email protected])} * */ public class KingdomView extends LinearLayout implements IBlaubotDebugView { private Handler mUiHandler; private Blaubot mBlaubot; private Context mContext; public KingdomView(Context context, AttributeSet attrs) { super(context, attrs); initView(context); } public KingdomView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); initView(context); } private void initView(Context context) { this.mContext = context; mUiHandler = new Handler(Looper.getMainLooper()); } private final static String NO_CENSUS_MESSAGE_SO_FAR_TEXT = "Got no census message so far"; private void updateUI(final CensusMessage censusMessage) { mUiHandler.post(new Runnable() { @Override public void run() { final List<View> stateItems = new ArrayList<>(); if(censusMessage != null) { final Set<Entry<String, State>> entries = censusMessage.getDeviceStates().entrySet(); for(Entry<String, State> entry : entries) { final String uniqueDeviceId = entry.getKey(); final State state = entry.getValue(); View item = createKingdomViewListItem(mContext, state, uniqueDeviceId); stateItems.add(item); } } // Never got a message if(stateItems.isEmpty()) { TextView tv = new TextView(mContext); tv.setText(NO_CENSUS_MESSAGE_SO_FAR_TEXT); stateItems.add(tv); } removeAllViews(); for(View v : stateItems) { addView(v); } } }); } /** * Creates a kingdom view list item * * @param context the context * @param state the state of the device to visualize * @param uniqueDeviceId the unique device id * @return the constructed view */ public static View createKingdomViewListItem(Context context, State state, String uniqueDeviceId) { final Drawable icon = ViewUtils.getDrawableForBlaubotState(context, state); View item = inflate(context, R.layout.blaubot_kingdom_view_list_item, null); TextView uniqueDeviceIdTextView = (TextView) item.findViewById(R.id.uniqueDeviceIdLabel); TextView stateTextView = (TextView) item.findViewById(R.id.stateLabel); ImageView iconImageView = (ImageView) item.findViewById(R.id.stateIcon); iconImageView.setImageDrawable(icon); uniqueDeviceIdTextView.setText(uniqueDeviceId); stateTextView.setText(state.toString()); return item; } private IBlaubotConnectionManagerListener mConnectionManagerListener = new IBlaubotConnectionManagerListener() { @Override public void onConnectionClosed(IBlaubotConnection connection) { } @Override public void onConnectionEstablished(IBlaubotConnection connection) { } }; private IBlaubotConnectionStateMachineListener mBlaubotConnectionStateMachineListener = new IBlaubotConnectionStateMachineListener() { @Override public void onStateChanged(IBlaubotState oldState, final IBlaubotState state) { if(State.getStateByStatemachineClass(state.getClass()) == State.Free) { updateUI(null); } } @Override public void onStateMachineStopped() { updateUI(null); } @Override public void onStateMachineStarted() { } }; private IBlaubotAdminMessageListener connectionLayerAdminMessageListener = new IBlaubotAdminMessageListener() { @Override public void onAdminMessage(AbstractAdminMessage adminMessage) { if(adminMessage instanceof CensusMessage) { updateUI((CensusMessage) adminMessage); } } }; /** * Register this view with the given blaubot instance * * @param blaubot * the blaubot instance to connect with */ @Override public void registerBlaubotInstance(Blaubot blaubot) { if (mBlaubot != null) { unregisterBlaubotInstance(); } this.mBlaubot = blaubot; this.mBlaubot.getConnectionStateMachine().addConnectionStateMachineListener(mBlaubotConnectionStateMachineListener); this.mBlaubot.getChannelManager().addAdminMessageListener(connectionLayerAdminMessageListener); this.mBlaubot.getConnectionManager().addConnectionListener(mConnectionManagerListener); // update updateUI(null); } @Override public void unregisterBlaubotInstance() { if(mBlaubot != null) { this.mBlaubot.getConnectionStateMachine().removeConnectionStateMachineListener(mBlaubotConnectionStateMachineListener); this.mBlaubot.getChannelManager().removeAdminMessageListener(connectionLayerAdminMessageListener); this.mBlaubot.getConnectionManager().removeConnectionListener(mConnectionManagerListener); } // force some updates updateUI(null); } }
Blaubot/Blaubot
blaubot-android/src/main/java/eu/hgross/blaubot/android/views/KingdomView.java
Java
mit
6,132
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("17.July.02.Harvest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("17.July.02.Harvest")] [assembly: AssemblyCopyright("Copyright © 2016")] [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("b8294d81-675a-43f5-bf13-a79537f648ad")] // 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")]
kalinmarkov/SoftUni
Programming Basic/ProgrammingBasic-EXAMS/17.July.02.Harvest/Properties/AssemblyInfo.cs
C#
mit
1,412
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Td</title> <!-- <script src="http://use.edgefonts.net/source-sans-pro;source-code-pro.js"></script> --> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:300,400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../assets/css/bootstrap.css"> <link rel="stylesheet" href="../assets/css/jquery.bonsai.css"> <link rel="stylesheet" href="../assets/css/main.css"> <link rel="stylesheet" href="../assets/css/icons.css"> <script type="text/javascript" src="../assets/js/jquery-2.1.0.min.js"></script> <script type="text/javascript" src="../assets/js/bootstrap.js"></script> <script type="text/javascript" src="../assets/js/jquery.bonsai.js"></script> <!-- <script type="text/javascript" src="../assets/js/main.js"></script> --> </head> <body> <div> <!-- Name Title --> <h1>Td</h1> <!-- Type and Stereotype --> <section style="margin-top: .5em;"> <span class="alert alert-info"> <span class="node-icon _icon-UMLParameter"></span> UMLParameter </span> </section> <!-- Path --> <section style="margin-top: 10px"> <span class="label label-info"><a href='cf9c8b720f3815adeccaf3ef6e48c6c4.html'><span class='node-icon _icon-Project'></span>Ciayn Docu</a></span> <span>::</span> <span class="label label-info"><a href='cc25605218a28e217adbc7728949f89f.html'><span class='node-icon _icon-UMLModel'></span>Ciyn Diagrams</a></span> <span>::</span> <span class="label label-info"><a href='1ce3e8f6a47545f4bc7d28061651914e.html'><span class='node-icon _icon-UMLPackage'></span>ciayn</a></span> <span>::</span> <span class="label label-info"><a href='827ad12437c057ca4ed8997111b6750e.html'><span class='node-icon _icon-UMLPackage'></span>controller</a></span> <span>::</span> <span class="label label-info"><a href='205361937e6ade829af9cc74c8ff5741.html'><span class='node-icon _icon-UMLClass'></span>D</a></span> <span>::</span> <span class="label label-info"><a href='3696e822dc0cb5b6495b48c9c834ee22.html'><span class='node-icon _icon-UMLOperation'></span>«constructor»D</a></span> <span>::</span> <span class="label label-info"><a href='ff1586271018a6e64d655d6b829080ce.html'><span class='node-icon _icon-UMLParameter'></span>Td</a></span> </section> <!-- Diagram --> <!-- Description --> <section> <h3>Description</h3> <div> <span class="label label-info">none</span> </div> </section> <!-- Specification --> <!-- Directed Relationship --> <!-- Undirected Relationship --> <!-- Classifier --> <!-- Interface --> <!-- Component --> <!-- Node --> <!-- Actor --> <!-- Use Case --> <!-- Template Parameters --> <!-- Literals --> <!-- Attributes --> <!-- Operations --> <!-- Receptions --> <!-- Extension Points --> <!-- Parameters --> <!-- Diagrams --> <!-- Behavior --> <!-- Action --> <!-- Interaction --> <!-- CombinedFragment --> <!-- Activity --> <!-- State Machine --> <!-- State Machine --> <!-- State --> <!-- Vertex --> <!-- Transition --> <!-- Properties --> <section> <h3>Properties</h3> <table class="table table-striped table-bordered"> <tr> <th width="50%">Name</th> <th width="50%">Value</th> </tr> <tr> <td>name</td> <td>Td</td> </tr> <tr> <td>stereotype</td> <td><span class='label label-info'>null</span></td> </tr> <tr> <td>visibility</td> <td>public</td> </tr> <tr> <td>isStatic</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isLeaf</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>type</td> <td><span class='label label-info'>void</span></td> </tr> <tr> <td>multiplicity</td> <td></td> </tr> <tr> <td>isReadOnly</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isOrdered</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isUnique</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>defaultValue</td> <td></td> </tr> <tr> <td>direction</td> <td>in</td> </tr> </table> </section> <!-- Tags --> <!-- Constraints, Dependencies, Dependants --> <!-- Relationships --> <!-- Owned Elements --> </div> </body> </html>
lki1354/Ciayn
documentation/html-docs/contents/ff1586271018a6e64d655d6b829080ce.html
HTML
mit
6,768
#!/usr/bin/env python # -*- coding: utf-8 -*- import zmq from zmq.eventloop import ioloop as ioloop_mod import zmqdecorators import time SERVICE_NAME = "urpobot.motor" SERVICE_PORT = 7575 SIGNALS_PORT = 7576 # How long to wait for new commands before stopping automatically COMMAND_GRACE_TIME = 0.250 class motorserver(zmqdecorators.service): def __init__(self, service_name, service_port, serialport): super(motorserver, self).__init__(service_name, service_port) self.serial_port = serialport self.input_buffer = "" self.evthandler = ioloop_mod.IOLoop.instance().add_handler(self.serial_port.fileno(), self.handle_serial_event, ioloop_mod.IOLoop.instance().READ) self.last_command_time = time.time() self.pcb = ioloop_mod.PeriodicCallback(self.check_data_reveived, COMMAND_GRACE_TIME) self.pcb.start() def check_data_reveived(self, *args): if (time.time() - self.last_command_time > COMMAND_GRACE_TIME): self._setspeeds(0,0) def _setspeeds(self, m1speed, m2speed): self.serial_port.write("S%04X%04X\n" % ((m1speed & 0xffff), (m2speed & 0xffff))) @zmqdecorators.method() def setspeeds(self, resp, m1speed, m2speed): self.last_command_time = time.time() #print("Got speeds %s,%s" % (m1speed, m2speed)) self._setspeeds(m1speed, m2speed) # TODO: actually handle ACK/NACK somehow (we need to read it from the serialport but we can't block while waiting for it...) resp.send("ACK") def handle_serial_event(self, fd, events): # Copied from arbus that was thread based if not self.serial_port.inWaiting(): # Don't try to read if there is no data, instead sleep (yield) a bit time.sleep(0) return data = self.serial_port.read(1) if len(data) == 0: return #print("DEBUG: data=%s" % data) # Put the data into inpit buffer and check for CRLF self.input_buffer += data # Trim prefix NULLs and linebreaks self.input_buffer = self.input_buffer.lstrip(chr(0x0) + "\r\n") #print "input_buffer=%s" % repr(self.input_buffer) if ( len(self.input_buffer) > 1 and self.input_buffer[-2:] == "\r\n"): # Got a message, parse it (sans the CRLF) and empty the buffer self.message_received(self.input_buffer[:-2]) self.input_buffer = "" def message_received(self, message): #print("DEBUG: msg=%s" % message) try: # Currently we have no incoming messages from this board pass except Exception as e: print "message_received exception: Got exception %s" % repr(e) # Ignore indexerrors, they just mean we could not parse the command pass pass def cleanup(self): print("Cleanup called") self._setspeeds(0,0) def run(self): print("Starting motorserver") super(motorserver, self).run() if __name__ == "__main__": import serial import sys,os port = serial.Serial(sys.argv[1], 115200, xonxoff=False, timeout=0.01) instance = motorserver(SERVICE_NAME, SERVICE_PORT, port) instance.run()
HelsinkiHacklab/urpobotti
python/motorctrl.py
Python
mit
3,257
from rest_framework import serializers from . import models class Invoice(serializers.ModelSerializer): class Meta: model = models.Invoice fields = ( 'id', 'name', 'additional_infos', 'owner', 'creation_date', 'update_date', )
linovia/microinvoices
microinvoices/invoices/serializers.py
Python
mit
281
<footer class="site-footer"> <div class="wrapper"> <h2 class="footer-heading small-site-title">{{ site.title }}</h2> <div class="footer-col-wrapper"> <div class="footer-col footer-col-1"> <ul class="contact-list footer-content"> <li>Powered By <a href="http://github.com/hemangsk/Gravity">Gravity</a></li> <li>Made with <i class="fa fa-heart"></i> on <a href="jekyll.com"><span style="color:black">{ { Jekyll } }</a></span></li> </ul> </div> <div class="footer-col footer-col-2 footer-content"> <ul class="social-media-list"> {% if site.github_username %} <li> {% include icon-github.html username=site.github_username %} </li> {% endif %} {% if site.twitter_username %} <li> {% include icon-twitter.html username=site.twitter_username %} </li> {% endif %} </ul> </div> <div class="footer-col footer-col-3 site-description"> <p>{{ site.description }}</p> </div> </div> </div> </footer>
tylerhether/tylerhether.github.io
_includes/footer.html
HTML
mit
1,112
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace Izzo.Collections.Immutable { [DebuggerDisplay( "Count = {Count}" )] public sealed partial class ImmutableList<T> : IImmutableList<T> { public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); private readonly List<T> items; private ImmutableList() { this.items = new List<T>(); } private ImmutableList( IEnumerable<T> items ) { if( items is ImmutableList<T> ) { var otherList = items as ImmutableList<T>; this.items = otherList.items; } else { this.items = new List<T>( items ); } } private ImmutableList( List<T> items, bool noAlloc ) { if( noAlloc ) { this.items = items; } else { this.items = new List<T>( items ); } } public T this[int index] { get { return items[index]; } } public int Count { get { return items.Count; } } public bool IsEmpty { get { return Count == 0; } } public ImmutableList<T> Add( T item ) { var newList = new ImmutableList<T>( items ); newList.items.Add( item ); return newList; } public ImmutableList<T> AddRange( IEnumerable<T> range ) { var newList = new ImmutableList<T>( items ); newList.items.AddRange( range ); return newList; } public ImmutableList<T> Set( int index, T item ) { var newList = new ImmutableList<T>( items ); newList.items[index] = item; return newList; } public ImmutableList<T> Clear() { return Empty; } public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return items.GetEnumerator(); } public int IndexOf( T item, int startIndex, int count, IEqualityComparer<T> equalityComparer ) { for( int i = startIndex; i < startIndex + count; i++ ) { if( equalityComparer.Equals( item, items[i] ) ) { return i; } } return -1; } public ImmutableList<T> Insert( int index, T item ) { var newList = new ImmutableList<T>( items ); newList.items.Insert( index, item ); return newList; } public ImmutableList<T> Remove( T item, IEqualityComparer<T> equalityComparer ) { int idx = IndexOf( item, 0, Count, equalityComparer ); if( idx >= 0 ) { return RemoveAt( idx ); } return this; } public ImmutableList<T> Remove( T item ) { return Remove( item, EqualityComparer<T>.Default ); } public ImmutableList<T> RemoveAt( int index ) { var newList = new ImmutableList<T>( items ); newList.items.RemoveAt( index ); return newList; } public bool Contains( T item ) { return items.Contains( item ); } public T Find( Predicate<T> match ) { return items.Find( match ); } public ImmutableList<T> FindAll( Predicate<T> match ) { return new ImmutableList<T>( items.FindAll( match ), true ); } public int FindIndex( Predicate<T> match ) { return items.FindIndex( match ); } IImmutableList<T> IImmutableList<T>.Add( T item ) { return Add( item ); } IImmutableList<T> IImmutableList<T>.AddRange( IEnumerable<T> items ) { return AddRange( items ); } IImmutableList<T> IImmutableList<T>.SetItem( int index, T item ) { return Set( index, item ); } IImmutableList<T> IImmutableList<T>.Clear() { return Clear(); } IImmutableList<T> IImmutableList<T>.Insert( int index, T item ) { return Insert( index, item ); } IImmutableList<T> IImmutableList<T>.RemoveAt( int index ) { return RemoveAt( index ); } IImmutableList<T> IImmutableList<T>.FindAll( Predicate<T> match ) { return FindAll( match ); } IImmutableList<T> IImmutableList<T>.Remove( T value, IEqualityComparer<T> equalityComparer ) { return Remove( value, equalityComparer ); } } }
SuperIzzo/Unity3D-Immutable-Collections
Assets/Collections/Immutable/ImmutableList_1.cs
C#
mit
5,038
#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SESSION_NAME="$1" source "$CURRENT_DIR/helpers.sh" dismiss_session_list_page_from_view() { tmux send-keys C-c } session_name_not_provided() { [ -z "$SESSION_NAME" ] } main() { if session_name_not_provided; then dismiss_session_list_page_from_view exit 0 fi if session_exists; then dismiss_session_list_page_from_view tmux switch-client -t "$SESSION_NAME" else "$CURRENT_DIR/show_goto_prompt.sh" "$SESSION_NAME" fi } main
disser/tmux-sessionist
scripts/switch_or_loop.sh
Shell
mit
528
<?php /** * Locale data for 'ksb'. * * This file is automatically generated by yiic cldr command. * * © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * @copyright 2008-2013 Yii Software LLC (http://www.yiiframework.com/license/) */ return array ( 'version' => '6546', 'numberSymbols' => array ( 'alias' => '', 'decimal' => '.', 'group' => ',', 'list' => ';', 'percentSign' => '%', 'plusSign' => '+', 'minusSign' => '-', 'exponential' => 'E', 'perMille' => '‰', 'infinity' => '∞', 'nan' => 'NaN', ), 'decimalFormat' => '#,##0.###', 'scientificFormat' => '#E0', 'percentFormat' => '#,##0%', 'currencyFormat' => '#,##0.00¤', 'currencySymbols' => array ( 'AUD' => 'AU$', 'BRL' => 'R$', 'CAD' => 'CA$', 'CNY' => 'CN¥', 'EUR' => '€', 'GBP' => '£', 'HKD' => 'HK$', 'ILS' => '₪', 'INR' => '₹', 'JPY' => 'JP¥', 'KRW' => '₩', 'MXN' => 'MX$', 'NZD' => 'NZ$', 'THB' => '฿', 'TWD' => 'NT$', 'USD' => 'US$', 'VND' => '₫', 'XAF' => 'FCFA', 'XCD' => 'EC$', 'XOF' => 'CFA', 'XPF' => 'CFPF', 'TZS' => 'TSh', ), 'monthNames' => array ( 'wide' => array ( 1 => 'Januali', 2 => 'Febluali', 3 => 'Machi', 4 => 'Aplili', 5 => 'Mei', 6 => 'Juni', 7 => 'Julai', 8 => 'Agosti', 9 => 'Septemba', 10 => 'Oktoba', 11 => 'Novemba', 12 => 'Desemba', ), 'abbreviated' => array ( 1 => 'Jan', 2 => 'Feb', 3 => 'Mac', 4 => 'Apr', 5 => 'Mei', 6 => 'Jun', 7 => 'Jul', 8 => 'Ago', 9 => 'Sep', 10 => 'Okt', 11 => 'Nov', 12 => 'Des', ), ), 'monthNamesSA' => array ( 'narrow' => array ( 1 => 'J', 2 => 'F', 3 => 'M', 4 => 'A', 5 => 'M', 6 => 'J', 7 => 'J', 8 => 'A', 9 => 'S', 10 => 'O', 11 => 'N', 12 => 'D', ), ), 'weekDayNames' => array ( 'wide' => array ( 0 => 'Jumaapii', 1 => 'Jumaatatu', 2 => 'Jumaane', 3 => 'Jumaatano', 4 => 'Alhamisi', 5 => 'Ijumaa', 6 => 'Jumaamosi', ), 'abbreviated' => array ( 0 => 'Jpi', 1 => 'Jtt', 2 => 'Jmn', 3 => 'Jtn', 4 => 'Alh', 5 => 'Iju', 6 => 'Jmo', ), ), 'weekDayNamesSA' => array ( 'narrow' => array ( 0 => '2', 1 => '3', 2 => '4', 3 => '5', 4 => 'A', 5 => 'I', 6 => '1', ), ), 'eraNames' => array ( 'abbreviated' => array ( 0 => 'KK', 1 => 'BK', ), 'wide' => array ( 0 => 'Kabla ya Klisto', 1 => 'Baada ya Klisto', ), 'narrow' => array ( 0 => 'KK', 1 => 'BK', ), ), 'dateFormats' => array ( 'full' => 'EEEE, d MMMM y', 'long' => 'd MMMM y', 'medium' => 'd MMM y', 'short' => 'dd/MM/yyyy', ), 'timeFormats' => array ( 'full' => 'h:mm:ss a zzzz', 'long' => 'h:mm:ss a z', 'medium' => 'h:mm:ss a', 'short' => 'h:mm a', ), 'dateTimeFormat' => '{1} {0}', 'amName' => 'makeo', 'pmName' => 'nyiaghuo', 'orientation' => 'ltr', 'languages' => array ( 'ak' => 'Kiakan', 'am' => 'Kiamhali', 'ar' => 'Kialabu', 'be' => 'Kibelaausi', 'bg' => 'Kibulgalia', 'bn' => 'Kibangla', 'cs' => 'Kichecki', 'de' => 'Kijeumani', 'el' => 'Kigiiki', 'en' => 'Kiingeeza', 'es' => 'Kihispania', 'fa' => 'Kiajemi', 'fr' => 'Kifalansa', 'ha' => 'Kihausa', 'hi' => 'Kihindi', 'hu' => 'Kihungai', 'id' => 'Kiindonesia', 'ig' => 'Kiigbo', 'it' => 'Kiitaliano', 'ja' => 'Kijapani', 'jv' => 'Kijava', 'km' => 'Kikambodia', 'ko' => 'Kikolea', 'ksb' => 'Kishambaa', 'ms' => 'Kimalesia', 'my' => 'Kibulma', 'ne' => 'Kinepali', 'nl' => 'Kiholanzi', 'pa' => 'Kipunjabi', 'pl' => 'Kipolandi', 'pt' => 'Kileno', 'ro' => 'Kiomania', 'ru' => 'Kilusi', 'rw' => 'Kinyalwanda', 'so' => 'Kisomali', 'sv' => 'Kiswidi', 'ta' => 'Kitamil', 'th' => 'Kitailandi', 'tr' => 'Kituuki', 'uk' => 'Kiuklania', 'ur' => 'Kiuldu', 'vi' => 'Kivietinamu', 'yo' => 'Kiyoluba', 'zh' => 'Kichina', 'zu' => 'Kizulu', ), 'territories' => array ( 'ad' => 'Andola', 'ae' => 'Falme za Kialabu', 'af' => 'Afuganistani', 'ag' => 'Antigua na Balbuda', 'ai' => 'Anguilla', 'al' => 'Albania', 'am' => 'Almenia', 'an' => 'Antili za Uholanzi', 'ao' => 'Angola', 'ar' => 'Ajentina', 'as' => 'Samoa ya Malekani', 'at' => 'Austlia', 'au' => 'Austlalia', 'aw' => 'Aluba', 'az' => 'Azabajani', 'ba' => 'Bosnia na Hezegovina', 'bb' => 'Babadosi', 'bd' => 'Bangladeshi', 'bf' => 'Bukinafaso', 'bg' => 'Bulgalia', 'bh' => 'Bahaleni', 'bi' => 'Bulundi', 'bj' => 'Benini', 'bm' => 'Belmuda', 'bn' => 'Blunei', 'bo' => 'Bolivia', 'br' => 'Blazili', 'bs' => 'Bahama', 'bt' => 'Butani', 'bw' => 'Botswana', 'by' => 'Belalusi', 'bz' => 'Belize', 'ca' => 'Kanada', 'cd' => 'Jamhuli ya Kidemoklasia ya Kongo', 'cf' => 'Jamhuli ya Afrika ya Gati', 'cg' => 'Kongo', 'ch' => 'Uswisi', 'ci' => 'Kodivaa', 'ck' => 'Visiwa vya Cook', 'cl' => 'Chile', 'cm' => 'Kameluni', 'cn' => 'China', 'co' => 'Kolombia', 'cr' => 'Kostalika', 'cs' => 'Selbia na Monteneglo', 'cu' => 'Kuba', 'cv' => 'Kepuvede', 'cy' => 'Kuplosi', 'cz' => 'Jamhuli ya Cheki', 'de' => 'Ujeumani', 'dj' => 'Jibuti', 'dk' => 'Denmaki', 'dm' => 'Dominika', 'do' => 'Jamhuli ya Dominika', 'dz' => 'Aljelia', 'ec' => 'Ekwado', 'ee' => 'Estonia', 'eg' => 'Misli', 'er' => 'Elitlea', 'es' => 'Hispania', 'et' => 'Uhabeshi', 'fi' => 'Ufini', 'fj' => 'Fiji', 'fk' => 'Visiwa vya Falkland', 'fm' => 'Miklonesia', 'fr' => 'Ufalansa', 'ga' => 'Gaboni', 'gb' => 'Uingeeza', 'gd' => 'Glenada', 'ge' => 'Jojia', 'gf' => 'Gwiyana ya Ufalansa', 'gh' => 'Ghana', 'gi' => 'Jiblalta', 'gl' => 'Glinlandi', 'gm' => 'Gambia', 'gn' => 'Gine', 'gp' => 'Gwadelupe', 'gq' => 'Ginekweta', 'gr' => 'Ugiiki', 'gt' => 'Gwatemala', 'gu' => 'Gwam', 'gw' => 'Ginebisau', 'gy' => 'Guyana', 'hn' => 'Honduasi', 'hr' => 'Kolasia', 'ht' => 'Haiti', 'hu' => 'Hungalia', 'id' => 'Indonesia', 'ie' => 'Ayalandi', 'il' => 'Islaeli', 'in' => 'India', 'io' => 'Eneo ja Uingeeza mwe Bahali Hindi', 'iq' => 'Ilaki', 'ir' => 'Uajemi', 'is' => 'Aislandi', 'it' => 'Italia', 'jm' => 'Jamaika', 'jo' => 'Yoldani', 'jp' => 'Japani', 'ke' => 'Kenya', 'kg' => 'Kiigizistani', 'kh' => 'Kambodia', 'ki' => 'Kiibati', 'km' => 'Komolo', 'kn' => 'Santakitzi na Nevis', 'kp' => 'Kolea Kaskazini', 'kr' => 'Kolea Kusini', 'kw' => 'Kuwaiti', 'ky' => 'Visiwa vya Kayman', 'kz' => 'Kazakistani', 'la' => 'Laosi', 'lb' => 'Lebanoni', 'lc' => 'Santalusia', 'li' => 'Lishenteni', 'lk' => 'Sililanka', 'lr' => 'Libelia', 'ls' => 'Lesoto', 'lt' => 'Litwania', 'lu' => 'Lasembagi', 'lv' => 'Lativia', 'ly' => 'Libya', 'ma' => 'Moloko', 'mc' => 'Monako', 'md' => 'Moldova', 'mg' => 'Bukini', 'mh' => 'Visiwa vya Mashal', 'mk' => 'Masedonia', 'ml' => 'Mali', 'mm' => 'Myama', 'mn' => 'Mongolia', 'mp' => 'Visiwa vya Maliana vya Kaskazini', 'mq' => 'Maltiniki', 'mr' => 'Maulitania', 'ms' => 'Montselati', 'mt' => 'Malta', 'mu' => 'Molisi', 'mv' => 'Modivu', 'mw' => 'Malawi', 'mx' => 'Meksiko', 'my' => 'Malesia', 'mz' => 'Msumbiji', 'na' => 'Namibia', 'nc' => 'Nyukaledonia', 'ne' => 'Naija', 'nf' => 'Kisiwa cha Nolfok', 'ng' => 'Naijelia', 'ni' => 'Nikalagwa', 'nl' => 'Uholanzi', 'no' => 'Nolwei', 'np' => 'Nepali', 'nr' => 'Naulu', 'nu' => 'Niue', 'nz' => 'Nyuzilandi', 'om' => 'Omani', 'pa' => 'Panama', 'pe' => 'Pelu', 'pf' => 'Polinesia ya Ufalansa', 'pg' => 'Papua', 'ph' => 'Filipino', 'pk' => 'Pakistani', 'pl' => 'Polandi', 'pm' => 'Santapieli na Mikeloni', 'pn' => 'Pitkailni', 'pr' => 'Pwetoliko', 'ps' => 'Ukingo wa Maghalibi na Ukanda wa Gaza wa Palestina', 'pt' => 'Uleno', 'pw' => 'Palau', 'py' => 'Palagwai', 'qa' => 'Katali', 're' => 'Liyunioni', 'ro' => 'Lomania', 'ru' => 'Ulusi', 'rw' => 'Lwanda', 'sa' => 'Saudi', 'sb' => 'Visiwa vya Solomon', 'sc' => 'Shelisheli', 'sd' => 'Sudani', 'se' => 'Uswidi', 'sg' => 'Singapoo', 'sh' => 'Santahelena', 'si' => 'Slovenia', 'sk' => 'Slovakia', 'sl' => 'Siela Leoni', 'sm' => 'Samalino', 'sn' => 'Senegali', 'so' => 'Somalia', 'sr' => 'Sulinamu', 'st' => 'Sao Tome na Plincipe', 'sv' => 'Elsavado', 'sy' => 'Silia', 'sz' => 'Uswazi', 'tc' => 'Visiwa vya Tulki na Kaiko', 'td' => 'Chadi', 'tg' => 'Togo', 'th' => 'Tailandi', 'tj' => 'Tajikistani', 'tk' => 'Tokelau', 'tl' => 'Timoli ya Mashaliki', 'tm' => 'Tulukimenistani', 'tn' => 'Tunisia', 'to' => 'Tonga', 'tr' => 'Utuluki', 'tt' => 'Tlinidad na Tobago', 'tv' => 'Tuvalu', 'tw' => 'Taiwani', 'tz' => 'Tanzania', 'ua' => 'Uklaini', 'ug' => 'Uganda', 'us' => 'Malekani', 'uy' => 'Ulugwai', 'uz' => 'Uzibekistani', 'va' => 'Vatikani', 'vc' => 'Santavisenti na Glenadini', 've' => 'Venezuela', 'vg' => 'Visiwa vya Vilgin vya Uingeeza', 'vi' => 'Visiwa vya Vilgin vya Malekani', 'vn' => 'Vietinamu', 'vu' => 'Vanuatu', 'wf' => 'Walis na Futuna', 'ws' => 'Samoa', 'ye' => 'Yemeni', 'yt' => 'Mayotte', 'za' => 'Aflika Kusini', 'zm' => 'Zambia', 'zw' => 'Zimbabwe', ), 'pluralRules' => array ( 0 => 'n==1', 1 => 'true', ), );
ProfilerTeam/Profiler
protected/vendors/yii/i18n/data/ksb.php
PHP
mit
10,293
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Function template begins_with</title> <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Boost.Log v2"> <link rel="up" href="../../../expressions.html#header.boost.log.expressions.predicates.begins_with_hpp" title="Header &lt;boost/log/expressions/predicates/begins_with.hpp&gt;"> <link rel="prev" href="begins_with_idp21049056.html" title="Function template begins_with"> <link rel="next" href="begins_with_idp21061200.html" title="Function template begins_with"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr><td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td></tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="begins_with_idp21049056.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../expressions.html#header.boost.log.expressions.predicates.begins_with_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="begins_with_idp21061200.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.log.expressions.begins_with_idp21055696"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Function template begins_with</span></h2> <p>boost::log::expressions::begins_with</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../expressions.html#header.boost.log.expressions.predicates.begins_with_hpp" title="Header &lt;boost/log/expressions/predicates/begins_with.hpp&gt;">boost/log/expressions/predicates/begins_with.hpp</a>&gt; </span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> DescriptorT<span class="special">,</span> <span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">typename</span> <span class="special">&gt;</span> <span class="keyword">class</span> ActorT<span class="special">,</span> <span class="keyword">typename</span> SubstringT<span class="special">&gt;</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="identifier">begins_with</span><span class="special">(</span><a class="link" href="attribute_keyword.html" title="Struct template attribute_keyword">attribute_keyword</a><span class="special">&lt;</span> <span class="identifier">DescriptorT</span><span class="special">,</span> <span class="identifier">ActorT</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">SubstringT</span> <span class="keyword">const</span> <span class="special">&amp;</span> substring<span class="special">)</span><span class="special">;</span></pre></div> <div class="refsect1"> <a name="idp88863136"></a><h2>Description</h2> <p>The function generates a terminal node in a template expression. The node will check if the attribute value, which is assumed to be a string, begins with the specified substring. </p> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2007-2016 Andrey Semashev<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>). </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="begins_with_idp21049056.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../expressions.html#header.boost.log.expressions.predicates.begins_with_hpp"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="begins_with_idp21061200.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
calvinfarias/IC2015-2
BOOST/boost_1_61_0/libs/log/doc/html/boost/log/expressions/begins_with_idp21055696.html
HTML
mit
4,908
module Models class TimeStamp attr_accessor :sec attr_accessor :usec end end
Ruhrpottpatriot/WarframeApi
app/api/models/time_stamp.rb
Ruby
mit
88
class Users::SessionsController < Devise::SessionsController layout :layout def presign end def layout if params[:no_layout].present? return false else return 'user' end end end
sleepinglion/anti-kb
app/controllers/users/sessions_controller.rb
Ruby
mit
215
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: 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 / fcsl-pcm - 1.1.1</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fcsl-pcm <small> 1.1.1 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-04 10:12:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-04 10:12:16 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-ocamlbuild base OCamlbuild binary and libraries 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.5.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;FCSL &lt;[email protected]&gt;&quot; homepage: &quot;http://software.imdea.org/fcsl/&quot; bug-reports: &quot;https://github.com/imdea-software/fcsl-pcm/issues&quot; dev-repo: &quot;git+https://github.com/imdea-software/fcsl-pcm.git&quot; license: &quot;Apache-2.0&quot; build: [ make &quot;-j%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {(&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.12~&quot;) | (= &quot;dev&quot;)} &quot;coq-mathcomp-ssreflect&quot; {(&gt;= &quot;1.10.0&quot; &amp; &lt; &quot;1.11~&quot;) | (= &quot;dev&quot;)} ] tags: [ &quot;keyword:separation logic&quot; &quot;keyword:partial commutative monoid&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:fcsl&quot; &quot;date:2019-01-06&quot; ] authors: [ &quot;Aleksandar Nanevski&quot; ] synopsis: &quot;Partial Commutative Monoids&quot; description: &quot;&quot;&quot; The PCM library provides a formalisation of Partial Commutative Monoids (PCMs), a common algebraic structure used in separation logic for verification of pointer-manipulating sequential and concurrent programs. The library provides lemmas for mechanised and automated reasoning about PCMs in the abstract, but also supports concrete common PCM instances, such as heaps, histories and mutexes. This library relies on extensionality axioms: propositional and functional extentionality.&quot;&quot;&quot; url { src: &quot;https://github.com/imdea-software/fcsl-pcm/archive/v1.1.1.tar.gz&quot; checksum: &quot;sha256=3b52ae8f7dba4987ef2c2fc91480ebbecdbf7195bfc0d6892930f523e3475771&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-fcsl-pcm.1.1.1 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-fcsl-pcm -&gt; coq &gt;= dev -&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-fcsl-pcm.1.1.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.02.3-2.0.6/released/8.5.2/fcsl-pcm/1.1.1.html
HTML
mit
7,591
exports.find = function(options) { options || (options = {}); options.param || (options.param = 'query'); options.parse || (options.parse = JSON.parse); return function(req, res, next) { var query = req.query[options.param]; var conditions = query ? options.parse(query) : {}; req.find = req.model.find(conditions); next(); }; }; exports.limit = function(options) { options || (options = {}); options.param || (options.param = 'limit'); return function(req, res, next) { if (req.query[options.param] !== undefined) { var limit = parseInt(req.query[options.param], 10); if (options.max) { limit = Math.min(limit, options.max); } req.find = req.find.limit(limit); } next(); }; }; exports.skip = function(options) { options || (options = {}); options.param || (options.param = 'skip'); return function(req, res, next) { if (req.query[options.param] !== undefined) { var skip = parseInt(req.query[options.param], 10); req.find = req.find.skip(skip); } next(); }; }; exports.select = function(options) { options || (options = {}); options.param || (options.param = 'select'); options.delimiter || (options.delimiter = ','); return function(req, res, next) { if (req.query[options.param] !== undefined) { var select = req.query[options.param].split(options.delimiter).join(' '); req.find = req.find.select(select); } next(); }; }; exports.sort = function(options) { options || (options = {}); options.param || (options.param = 'sort'); options.delimiter || (options.delimiter = ','); return function(req, res, next) { if (req.query[options.param] !== undefined) { var sort = req.query[options.param].split(options.delimiter).join(' '); req.find = req.find.sort(sort); } next(); }; }; exports.exec = function() { return function(req, res, next) { req.find.exec(function(err, results) { if (err) return next(err); req.results = results; next(); }); }; }; exports.count = function(options) { options || (options = {}); options.param || (options.param = 'query'); options.parse || (options.parse = JSON.parse); return function(req, res, next) { var query = req.query[options.param]; var conditions = query ? options.parse(query) : {}; req.model.count(conditions, function(err, count) { if (err) return next(err); req.count = count; next(); }); }; };
scttnlsn/emt
lib/query.js
JavaScript
mit
2,776
// MooTools: the javascript framework. // Load this file's selection again by visiting: http://mootools.net/more/f0c28d76aff2f0ba12270c81dc5e8d18 // Or build this file again with packager using: packager build More/Assets More/Hash.Cookie /* --- script: More.js name: More description: MooTools More license: MIT-style license authors: - Guillermo Rauch - Thomas Aylott - Scott Kyle - Arian Stolwijk - Tim Wienk - Christoph Pojer - Aaron Newton - Jacob Thornton requires: - Core/MooTools provides: [MooTools.More] ... */ MooTools.More = { 'version': '1.4.0.1', 'build': 'a4244edf2aa97ac8a196fc96082dd35af1abab87' }; /* --- script: Assets.js name: Assets description: Provides methods to dynamically load JavaScript, CSS, and Image files into the document. license: MIT-style license authors: - Valerio Proietti requires: - Core/Element.Event - /MooTools.More provides: [Assets] ... */ var Asset = { javascript: function(source, properties){ if (!properties) properties = {}; var script = new Element('script', {src: source, type: 'text/javascript'}), doc = properties.document || document, load = properties.onload || properties.onLoad; delete properties.onload; delete properties.onLoad; delete properties.document; if (load){ if (typeof script.onreadystatechange != 'undefined'){ script.addEvent('readystatechange', function(){ if (['loaded', 'complete'].contains(this.readyState)) load.call(this); }); } else { script.addEvent('load', load); } } return script.set(properties).inject(doc.head); }, css: function(source, properties){ if (!properties) properties = {}; var link = new Element('link', { rel: 'stylesheet', media: 'screen', type: 'text/css', href: source }); var load = properties.onload || properties.onLoad, doc = properties.document || document; delete properties.onload; delete properties.onLoad; delete properties.document; if (load) link.addEvent('load', load); return link.set(properties).inject(doc.head); }, image: function(source, properties){ if (!properties) properties = {}; var image = new Image(), element = document.id(image) || new Element('img'); ['load', 'abort', 'error'].each(function(name){ var type = 'on' + name, cap = 'on' + name.capitalize(), event = properties[type] || properties[cap] || function(){}; delete properties[cap]; delete properties[type]; image[type] = function(){ if (!image) return; if (!element.parentNode){ element.width = image.width; element.height = image.height; } image = image.onload = image.onabort = image.onerror = null; event.delay(1, element, element); element.fireEvent(name, element, 1); }; }); image.src = element.src = source; if (image && image.complete) image.onload.delay(1); return element.set(properties); }, images: function(sources, options){ sources = Array.from(sources); var fn = function(){}, counter = 0; options = Object.merge({ onComplete: fn, onProgress: fn, onError: fn, properties: {} }, options); return new Elements(sources.map(function(source, index){ return Asset.image(source, Object.append(options.properties, { onload: function(){ counter++; options.onProgress.call(this, counter, index, source); if (counter == sources.length) options.onComplete(); }, onerror: function(){ counter++; options.onError.call(this, counter, index, source); if (counter == sources.length) options.onComplete(); } })); })); } }; /* --- name: Hash description: Contains Hash Prototypes. Provides a means for overcoming the JavaScript practical impossibility of extending native Objects. license: MIT-style license. requires: - Core/Object - /MooTools.More provides: [Hash] ... */ (function(){ if (this.Hash) return; var Hash = this.Hash = new Type('Hash', function(object){ if (typeOf(object) == 'hash') object = Object.clone(object.getClean()); for (var key in object) this[key] = object[key]; return this; }); this.$H = function(object){ return new Hash(object); }; Hash.implement({ forEach: function(fn, bind){ Object.forEach(this, fn, bind); }, getClean: function(){ var clean = {}; for (var key in this){ if (this.hasOwnProperty(key)) clean[key] = this[key]; } return clean; }, getLength: function(){ var length = 0; for (var key in this){ if (this.hasOwnProperty(key)) length++; } return length; } }); Hash.alias('each', 'forEach'); Hash.implement({ has: Object.prototype.hasOwnProperty, keyOf: function(value){ return Object.keyOf(this, value); }, hasValue: function(value){ return Object.contains(this, value); }, extend: function(properties){ Hash.each(properties || {}, function(value, key){ Hash.set(this, key, value); }, this); return this; }, combine: function(properties){ Hash.each(properties || {}, function(value, key){ Hash.include(this, key, value); }, this); return this; }, erase: function(key){ if (this.hasOwnProperty(key)) delete this[key]; return this; }, get: function(key){ return (this.hasOwnProperty(key)) ? this[key] : null; }, set: function(key, value){ if (!this[key] || this.hasOwnProperty(key)) this[key] = value; return this; }, empty: function(){ Hash.each(this, function(value, key){ delete this[key]; }, this); return this; }, include: function(key, value){ if (this[key] == undefined) this[key] = value; return this; }, map: function(fn, bind){ return new Hash(Object.map(this, fn, bind)); }, filter: function(fn, bind){ return new Hash(Object.filter(this, fn, bind)); }, every: function(fn, bind){ return Object.every(this, fn, bind); }, some: function(fn, bind){ return Object.some(this, fn, bind); }, getKeys: function(){ return Object.keys(this); }, getValues: function(){ return Object.values(this); }, toQueryString: function(base){ return Object.toQueryString(this, base); } }); Hash.alias({indexOf: 'keyOf', contains: 'hasValue'}); })(); /* --- script: Hash.Cookie.js name: Hash.Cookie description: Class for creating, reading, and deleting Cookies in JSON format. license: MIT-style license authors: - Valerio Proietti - Aaron Newton requires: - Core/Cookie - Core/JSON - /MooTools.More - /Hash provides: [Hash.Cookie] ... */ Hash.Cookie = new Class({ Extends: Cookie, options: { autoSave: true }, initialize: function(name, options){ this.parent(name, options); this.load(); }, save: function(){ var value = JSON.encode(this.hash); if (!value || value.length > 4096) return false; //cookie would be truncated! if (value == '{}') this.dispose(); else this.write(value); return true; }, load: function(){ this.hash = new Hash(JSON.decode(this.read(), true)); return this; } }); Hash.each(Hash.prototype, function(method, name){ if (typeof method == 'function') Hash.Cookie.implement(name, function(){ var value = method.apply(this.hash, arguments); if (this.options.autoSave) this.save(); return value; }); });
donatj/CorpusPHP
Source/js/mootools.more.js
JavaScript
mit
7,181
"""Basic thermodynamic calculations for pickaxe.""" from typing import Union import pint from equilibrator_api import ( Q_, ComponentContribution, Reaction, default_physiological_ionic_strength, default_physiological_p_h, default_physiological_p_mg, default_physiological_temperature, ) from equilibrator_api.phased_reaction import PhasedReaction from equilibrator_assets.compounds import Compound from equilibrator_assets.local_compound_cache import LocalCompoundCache from equilibrator_cache.compound_cache import CompoundCache from pymongo import MongoClient from sqlalchemy import create_engine from minedatabase.pickaxe import Pickaxe class Thermodynamics: """Class to calculate thermodynamics of Pickaxe runs. Thermodynamics allows for the calculation of: 1) Standard ∆G' of formation 2) Standard ∆G'o of reaction 3) Physiological ∆G'm of reaction 4) Adjusted ∆G' of reaction eQuilibrator objects can also be obtained from r_ids and c_ids. Parameters ---------- mongo_uri: str URI of the mongo database. client: MongoClient Connection to Mongo. CC: ComponentContribution eQuilibrator Component Contribution object to calculate ∆G with. lc: LocalCompoundCache The local compound cache to generate eQuilibrator compounds from. """ def __init__( self, ): # Mongo params self.mongo_uri = None self.client = None self._core = None # eQ params self.CC = ComponentContribution() self.lc = None self._water = None def load_mongo(self, mongo_uri: Union[str, None] = None): if mongo_uri: self.mongo_uri = mongo_uri self.client = MongoClient(mongo_uri) else: self.mongo_uri = "localhost:27017" self.client = MongoClient() self._core = self.client["core"] def _all_dbs_loaded(self): if self.client and self._core and self.lc: return True else: print("Load connection to Mongo and eQuilibrator local cache.") return False def _eq_loaded(self): if self.lc: return True else: print("Load eQulibrator local cache.") return False def _reset_CC(self): """reset CC back to defaults""" self.CC.p_h = default_physiological_p_h self.CC.p_mg = default_physiological_p_mg self.CC.temperature = default_physiological_temperature self.CC.ionic_strength = default_physiological_ionic_strength def load_thermo_from_postgres( self, postgres_uri: str = "postgresql:///eq_compounds" ) -> None: """Load a LocalCompoundCache from a postgres uri for equilibrator. Parameters ---------- postgres_uri : str, optional uri of the postgres DB to use, by default "postgresql:///eq_compounds" """ self.lc = LocalCompoundCache() self.lc.ccache = CompoundCache(create_engine(postgres_uri)) self._water = self.lc.get_compounds("O") def load_thermo_from_sqlite( self, sqlite_filename: str = "compounds.sqlite" ) -> None: """Load a LocalCompoundCache from a sqlite file for equilibrator. compounds.sqlite can be generated through LocalCompoundCache's method generate_local_cache_from_default_zenodo Parameters ---------- sqlite_filename: str filename of the sqlite file to load. """ self.lc = LocalCompoundCache() self.lc.load_cache(sqlite_filename) self._water = self.lc.get_compounds("O") def get_eQ_compound_from_cid( self, c_id: str, pickaxe: Pickaxe = None, db_name: str = None ) -> Union[Compound, None]: """Get an equilibrator compound for a given c_id from the core. Attempts to retrieve a compound from the core or a specified db_name. Parameters ---------- c_id : str compound ID for MongoDB lookup of a compound. pickaxe : Pickaxe pickaxe object to look for the compound in, by default None. db_name : str Database to look for compound in before core database, by default None. Returns ------- equilibrator_assets.compounds.Compound eQuilibrator Compound """ # Find locally in pickaxe compound_smiles = None if pickaxe: if c_id in pickaxe.compounds: compound_smiles = pickaxe.compounds[c_id]["SMILES"] else: return None # Find in mongo db elif self._all_dbs_loaded(): if db_name: compound = self.client[db_name].compounds.find_one( {"_id": c_id}, {"SMILES": 1} ) if compound: compound_smiles = compound["SMILES"] # No cpd smiles from database name if not compound_smiles: compound = self._core.compounds.find_one({"_id": c_id}, {"SMILES": 1}) if compound: compound_smiles = compound["SMILES"] # No compound_smiles at all if not compound_smiles or "*" in compound_smiles: return None else: eQ_compound = self.lc.get_compounds( compound_smiles, bypass_chemaxon=True, save_empty_compounds=True ) return eQ_compound def standard_dg_formation_from_cid( self, c_id: str, pickaxe: Pickaxe = None, db_name: str = None ) -> Union[float, None]: """Get standard ∆Gfo for a compound. Parameters ---------- c_id : str Compound ID to get the ∆Gf for. pickaxe : Pickaxe pickaxe object to look for the compound in, by default None. db_name : str Database to look for compound in before core database, by default None. Returns ------- Union[float, None] ∆Gf'o for a compound, or None if unavailable. """ eQ_cpd = self.get_eQ_compound_from_cid(c_id, pickaxe, db_name) if not eQ_cpd: return None dgf = self.CC.standard_dg_formation(eQ_cpd) dgf = dgf[0] return dgf def get_eQ_reaction_from_rid( self, r_id: str, pickaxe: Pickaxe = None, db_name: str = None ) -> Union[PhasedReaction, None]: """Get an eQuilibrator reaction object from an r_id. Parameters ---------- r_id : str Reaction id to get object for. pickaxe : Pickaxe pickaxe object to look for the compound in, by default None. db_name : str Database to look for reaction in. Returns ------- PhasedReaction eQuilibrator reactiono to calculate ∆Gr with. """ if pickaxe: if r_id in pickaxe.reactions: reaction_info = pickaxe.reactions[r_id] else: return None elif db_name: mine = self.client[db_name] reaction_info = mine.reactions.find_one({"_id": r_id}) if not reaction_info: return None else: return None reactants = reaction_info["Reactants"] products = reaction_info["Products"] lhs = " + ".join(f"{r[0]} {r[1]}" for r in reactants) rhs = " + ".join(f"{p[0]} {p[1]}" for p in products) reaction_string = " => ".join([lhs, rhs]) compounds = set([r[1] for r in reactants]) compounds.update(tuple(p[1] for p in products)) eQ_compound_dict = { c_id: self.get_eQ_compound_from_cid(c_id, pickaxe, db_name) for c_id in compounds } if not all(eQ_compound_dict.values()): return None if "X73bc8ef21db580aefe4dbc0af17d4013961d9d17" not in compounds: eQ_compound_dict["water"] = self._water eq_reaction = Reaction.parse_formula(eQ_compound_dict.get, reaction_string) return eq_reaction def physiological_dg_prime_from_rid( self, r_id: str, pickaxe: Pickaxe = None, db_name: str = None ) -> Union[pint.Measurement, None]: """Calculate the ∆Gm' of a reaction. Parameters ---------- r_id : str ID of the reaction to calculate. pickaxe : Pickaxe pickaxe object to look for the compound in, by default None. db_name : str MINE the reaction is found in. Returns ------- pint.Measurement The calculated ∆G'm. """ eQ_reaction = self.get_eQ_reaction_from_rid(r_id, pickaxe, db_name) if not eQ_reaction: return None dGm_prime = self.CC.physiological_dg_prime(eQ_reaction) return dGm_prime def standard_dg_prime_from_rid( self, r_id: str, pickaxe: Pickaxe = None, db_name: str = None ) -> Union[pint.Measurement, None]: """Calculate the ∆G'o of a reaction. Parameters ---------- r_id : str ID of the reaction to calculate. pickaxe : Pickaxe pickaxe object to look for the compound in, by default None. db_name : str MINE the reaction is found in. Returns ------- pint.Measurement The calculated ∆G'o. """ eQ_reaction = self.get_eQ_reaction_from_rid(r_id, pickaxe, db_name) if not eQ_reaction: return None dG0_prime = self.CC.standard_dg_prime(eQ_reaction) return dG0_prime def dg_prime_from_rid( self, r_id: str, pickaxe: Pickaxe = None, db_name: str = None, p_h: Q_ = default_physiological_p_h, p_mg: Q_ = default_physiological_p_mg, ionic_strength: Q_ = default_physiological_ionic_strength, ) -> Union[pint.Measurement, None]: """Calculate the ∆G' of a reaction. Parameters ---------- r_id : str ID of the reaction to calculate. pickaxe : Pickaxe pickaxe object to look for the compound in, by default None. db_name : str MINE the reaction is found in. p_h : Q_ pH of system. p_mg: Q_ pMg of the system. ionic_strength: Q_ ionic strength of the system. Returns ------- pint.Measurement The calculated ∆G'. """ eQ_reaction = self.get_eQ_reaction_from_rid(r_id, pickaxe, db_name) if not eQ_reaction: return None self.CC.p_h = p_h self.CC.p_mg = p_mg self.CC.ionic_strength = ionic_strength dG_prime = self.CC.dg_prime(eQ_reaction) self._reset_CC() return dG_prime
JamesJeffryes/MINE-Database
minedatabase/thermodynamics.py
Python
mit
11,041