code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30 values | license stringclasses 15 values | size int64 3 1.01M |
|---|---|---|---|---|---|
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Navigation.css';
import Link from '../Link';
class Navigation extends React.Component {
render() {
return (
<div className={s.root} role="navigation">
<Link className={s.link} to="/catalog">Каталог продукції</Link>
<Link className={s.link} to="/about">Про нас</Link>
<Link className={s.link} to="/catalog">Наші роботи</Link>
</div>
);
}
}
export default withStyles(s)(Navigation);
| MarynaHapon/Data-root-react | src/components/Navigation/Navigation.js | JavaScript | mit | 572 |
---
layout: blog
title: "Blog"
group: "navigation"
order: 1
---
<li><a class="active" href="/blog">All</a></li>
<li><a href="/category/albums">Albums</a></li>
<li><a href="/category/artists">Artists</a></li>
<li><a href="/category/songs">Songs</a></li>
<li><a href="/category/thoughts">Thoughts</a></li>
</ul>
</div>
</div>
<div class="Column Posts ThreeColumn">
{% for post in site.posts %}
{% include postPreview.html %}
{% endfor %} | thepulpit/thepulpit.github.io | blog.html | HTML | mit | 525 |
package com.sundayliu.android.task;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import com.sundayliu.android.http.HttpHandler;
import android.os.AsyncTask;
//import android.util.Log;
public class HttpAsyncTask extends AsyncTask<String, Void, String> {
private HttpHandler httpHandler;
public HttpAsyncTask(HttpHandler httpHandler){
this.httpHandler = httpHandler;
}
@Override
protected String doInBackground(String... arg0) {
InputStream inputStream = null;
String result = "";
try {
// create HttpClient
HttpClient httpclient = new DefaultHttpClient();
// make the http request
HttpResponse httpResponse = httpclient.execute(httpHandler.getHttpRequestMethod());
// receive response as inputStream
inputStream = httpResponse.getEntity().getContent();
// convert inputstream to string
if(inputStream != null)
result = convertInputStreamToString(inputStream);
else
result = "Did not work!";
} catch (Exception e) {
//Log.d("InputStream", e.getLocalizedMessage());
result = e.toString();
}
return result;
}
@Override
protected void onPostExecute(String result) {
httpHandler.onResponse(result);
}
//--------------------------------------------------------------------------------------------
private static String convertInputStreamToString(InputStream inputStream) throws IOException{
BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));
String line = "";
String result = "";
while((line = bufferedReader.readLine()) != null)
result += line;
inputStream.close();
return result;
}
}
| sundayliu/android-demo | Demo/src/com/sundayliu/android/task/HttpAsyncTask.java | Java | mit | 2,112 |
/* */
'use strict';
Object.defineProperty(exports, "__esModule", {value: true});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixin);
var _svgIcon = require('../../svg-icon');
var _svgIcon2 = _interopRequireDefault(_svgIcon);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
var HardwarePhonelinkOff = _react2.default.createClass({
displayName: 'HardwarePhonelinkOff',
mixins: [_reactAddonsPureRenderMixin2.default],
render: function render() {
return _react2.default.createElement(_svgIcon2.default, this.props, _react2.default.createElement('path', {d: 'M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6.27zM23 8h-6c-.55 0-1 .45-1 1v4.18l2 2V10h4v7h-2.18l3 3H23c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1z'}));
}
});
exports.default = HardwarePhonelinkOff;
module.exports = exports['default'];
| nayashooter/ES6_React-Bootstrap | public/jspm_packages/npm/material-ui@0.14.4/lib/svg-icons/hardware/phonelink-off.js | JavaScript | mit | 1,131 |
define(function(require, exports) {
'use strict';
var Backbone = require('backbone')
, global = require('global');
var teamColours = [
'#FFBBBB', '#FFE1BA', '#FDFFBA', '#D6FFBA',
'#BAFFCE', '#BAFFFD', '#BAE6FF', '#BAC8FF',
'#D3BAFF', '#EBBAFF', '#E4E0FF', '#BAFCE1',
'#FCC6BB', '#E3F3CE', '#EEEEEE', '#D8FFF4'
];
exports.Problem = Backbone.Model.extend({});
exports.Team = Backbone.Model.extend({
colour: function() {
return teamColours[this.id % teamColours.length];
}
});
exports.Stage = Backbone.Model.extend({
glyphs: {
1: 'remove',
2: 'ok',
3: 'forward'
},
glyph: function() {
return this.glyphs[this.get('state')];
}
});
}); | hackcyprus/junior | static/javascript/game/models.js | JavaScript | mit | 818 |
require 'noble_names'
gem 'minitest' if RUBY_VERSION == '1.9.3'
require 'minitest/autorun'
| Haniyya/noble_names | test/test_helper.rb | Ruby | mit | 92 |
package com.jvm_bloggers;
/**
* UTM (Urchin Traffic Monitor) URL query parameter identifiers.
*
* @see <a href="https://en.wikipedia.org/wiki/UTM_parameters">UTM Parameters</a>
* @author cslysy <jakub.sprega@gmail.com>
*/
public class UtmParams {
public static final String UTM_SOURCE_KEY = "utm_source";
public static final String UTM_MEDIUM_KEY = "utm_medium";
public static final String UTM_CAMPAIGN_KEY = "utm_campaign";
}
| kraluk/jvm-bloggers | src/main/java/com/jvm_bloggers/UtmParams.java | Java | mit | 467 |
#Git教程
###写在前面
一点小历史,不喜欢的请[点我跳过](#start)
> 到了2002年,Linux系统已经发展了十年了,代码库之大让Linus很难继续通过手工方式管理了,社区的弟兄们也对这种方式表达了强烈不满,于是Linus选择了一个商业的版本控制系统BitKeeper,BitKeeper的东家BitMover公司出于人道主义精神,授权Linux社区免费使用这个版本控制系统。
> 安定团结的大好局面在2005年就被打破了,原因是Linux社区牛人聚集,不免沾染了一些梁山好汉的江湖习气。开发Samba的Andrew试图破解BitKeeper的协议(这么干的其实也不只他一个),被BitMover公司发现了(监控工作做得不错!),于是BitMover公司怒了,要收回Linux社区的免费使用权。
> Linus可以向BitMover公司道个歉,保证以后严格管教弟兄们,嗯,这是不可能的。实际情况是这样的:
> Linus花了两周时间自己用C写了一个分布式版本控制系统,*这就是Git*!一个月之内,Linux系统的源码已经由Git管理了!牛是怎么定义的呢?大家可以体会一下。
> Git迅速成为最流行的分布式版本控制系统,尤其是2008年,GitHub网站上线了,它为开源项目免费提供Git存储,无数开源项目开始迁移至GitHub,包括jQuery,PHP,Ruby等等。
##<a name="start"></a>零.额外的问题
###1.vim显示中文乱码
命令行直接用vim编辑会出现汉字乱码,而且用QQ拼音输入法在vim里面wu法输入某些汉字,比如中wen的wen、还有wu法的wu会变成1
utf8乱码问题还没有解决(找到的解决方案皆无法破之),建议不要用vim直接编辑
###2.MINGW32默认不支持复制粘贴,需要手动设置
1. 右击标题栏,选择【属性】
2. 选择【选项】
3. 勾选【快速编辑模式Q】
4. 【确定】-【确定】
设置立即生效,支持复制/粘贴:
- 复制:左键拖选,然后右击即完成复制
- 粘贴:在窗口内右击即可
如有疑问请查看[ChinaUnix博客:windows下mingw的复制粘贴](http://blog.chinaunix.net/uid-24709751-id-4032541.html)
##一.安装git
在Windows/Mac/Linux上安装git的方法请查看[廖雪峰的官方网站:安装Git](http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287703354d8c6c01c904c7d9ff056ae23da865a000)
P.S.廖雪峰前辈的git教程非常不错,但你肯定没耐心从头看到尾,不过没关系,因为我看过了,而且会尽量没有废话地总结出来
##二.本地操作
###1.创建版本库
1. 先找一个顺眼的文件夹,`cd`过去,准备在里面创建版本库(Repository)
P.S.因为git命令行工具其实就是一个简版Linux虚拟机,支持Shell命令,如果记得一些Linux命令的话会用得比较顺手,常用Shell命令请查看[博客园:常用的文件和目录操作命令(转)](http://www.cnblogs.com/ggjucheng/archive/2012/08/22/2650464.html)
2. 初始化一个Git仓库,使用`git init`命令
可以把当前目录初始化为git仓库,其实也就是在目录下自动生成一些git管理信息
3. 新建文件
在该目录下新建文件,命令行`touch`或者资源管理器右键创建都可以
4. 添加文件到Git仓库,分两步:
1. 使用命令`git add <file>`把文件放进暂存区,注意,可反复多次使用,添加多个文件;
2. 使用命令`git commit`提交暂存区的修改,完成。
P.S.在文件夹下创建的文件以及对文件内容的增删改不是像同步网盘一样自动同步的,需要add-commit才能创建一个新版本
###2.日常工作
1. 查看状态
要随时掌握工作区的状态,使用`git status`命令。
如果`git status`告诉你有文件被修改过,用`git diff`可以查看修改内容。
2. 版本后退与前进
HEAD指向的版本就是当前版本,因此,Git允许我们在版本的历史之间穿梭,使用命令`git reset --hard commit_id`。
穿梭前,用`git log`可以查看提交历史,以便确定要回退到哪个版本。
要重返未来,用`git reflog`查看命令历史,以便确定要回到未来的哪个版本。
3. 撤销修改
- 场景1:当你改乱了工作区某个文件的内容,想直接丢弃工作区的修改时,用命令`git checkout -- file`。
- 场景2:当你不但改乱了工作区某个文件的内容,还添加到了暂存区时,想丢弃修改,分两步,第一步用命令`git reset HEAD file`,就回到了场景1,第二步按场景1操作。
- 场景3:已经提交了不合适的修改到版本库时,想要撤销本次提交,参考版本回退一节,不过前提是没有推送到远程库。
4. 删除文件
命令`git rm`用于删除一个文件。如果一个文件已经被提交到版本库,那么你永远不用担心误删,但是要小心,你只能恢复文件到最新版本,你会丢失最近一次提交后你修改的内容。
5. 操作分支
在实际开发中,我们应该按照几个基本原则进行分支管理:
首先,`master`分支应该是非常稳定的,也就是仅用来发布新版本,平时不能在上面干活;
那在哪干活呢?干活都在`dev`分支上,也就是说,`dev`分支是不稳定的,到某个时候,比如1.0版本发布时,再把`dev`分支合并到`master`上,在`master`分支发布1.0版本;
你和你的小伙伴们每个人都在`dev`分支上干活,每个人都有自己的分支,时不时地往`dev`分支上合并就可以了。
合并分支时,加上`--no-ff`参数就可以用普通模式合并,合并后的历史有分支,能看出来曾经做过合并,而`fast forward`合并就看不出来曾经做过合并。例如:`git merge --no-ff -m "merge with no-ff" dev`
具体命令:
- 查看分支:`git branch`
- 创建分支:`git branch <name>`
- 切换分支:`git checkout <name>`
- 创建+切换分支:`git checkout -b <name>`
- 合并某分支到当前分支:`git merge <name>`
- 删除分支:`git branch -d <name>`
当Git无法自动合并分支时,就必须首先解决冲突。解决冲突后,再提交,合并完成。
Git用`<<<<<<<`,`=======`,`>>>>>>>`标记出不同分支的内容,手动修改消除冲突后再`add-commit`就好了
用`git log --graph`命令可以看到分支合并图
6. 处理bug
修复bug时,我们会通过创建新的bug分支进行修复,然后合并,最后删除;
当手头工作没有完成时,先把工作现场`git stash`一下,然后去修复bug,修复后,再`git stash pop`,回到工作现场。
7. 开发新功能
开发一个新feature,最好新建一个分支;
如果要丢弃一个没有被合并过的分支,可以通过`git branch -D <name>`强行删除。
###3.人性化配置选项
1. 忽略特殊文件
忽略某些文件时,需要编写.gitignore;
.gitignore文件本身要放到版本库里,并且可以对.gitignore做版本管理
2. 设置命令别名
普遍接受的别名(类似于宏一样的东西,用来保护手指):
- st就表示status,命令`git config --global alias.st status`
- 用co表示checkout,命令`git config --global alias.co checkout`
- ci表示commit,命令`git config --global alias.ci commit`
- br表示branch,命令`git config --global alias.br branch`
3. 删除别名
每个仓库的Git配置文件都放在`.git/config`文件中,别名就在[alias]后面,要删除别名,直接把对应的行删掉即可
全局Git配置文件放在`~/gitconfig`文件中,可以直接编辑
4. 其它配置选项
可以自定义的部分比较多,比如命令输出结果颜色方案(文件名高亮什么的)
###4.搭建git服务器
详细步骤请查看[廖雪峰的官方网站:搭建Git服务器](http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137583770360579bc4b458f044ce7afed3df579123eca000)
##三.远程操作
远程操作是指本地项目与github上的项目时不时地同步一下
###0.准备工作
需要注册github帐号,创建版本库,设置公钥等等,具体请查看[廖雪峰的官方网站:添加远程库](http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013752340242354807e192f02a44359908df8a5643103a000)
###1.关联远程库
要关联一个远程库,使用命令`git remote add origin git@server-name:path/repo-name.git`;
关联后,使用命令`git push -u origin master`第一次推送master分支的所有内容;
此后,每次本地提交后,只要有必要,就可以使用命令`git push origin master`推送最新修改;
分布式版本系统的最大好处之一是在本地工作完全不需要考虑远程库的存在,也就是有没有联网都可以正常工作,而SVN在没有联网的时候是拒绝干活的!当有网络的时候,再把本地提交推送一下就完成了同步,真是太方便了!
###2.克隆远程库
要克隆一个仓库,首先必须知道仓库的地址,然后使用`git clone`命令克隆。
Git支持多种协议,包括https,但通过ssh支持的原生git协议速度最快。
###3.多人协作
查看远程库信息,使用`git remote -v`;
本地新建的分支如果不推送到远程,对其他人就是不可见的;
从本地推送分支,使用`git push origin branch-name`,如果推送失败,先用`git pull`抓取远程的新提交;
在本地创建和远程分支对应的分支,使用`git checkout -b branch-name origin/branch-name`,本地和远程分支的名称最好一致;
建立本地分支和远程分支的关联,使用`git branch --set-upstream branch-name origin/branch-name`;
从远程抓取分支,使用`git pull`,如果有冲突,要先处理冲突。
###4.使用标签
标签是版本库的一个快照,常用在新版本发布前标记当前版本
1. 创建标签
命令`git tag <name>`用于新建一个标签,默认为HEAD,也可以指定一个`commit id`;
`git tag -a <tagname> -m "blablabla..."`可以指定标签信息;
`git tag -s <tagname> -m "blablabla..."`可以用PGP签名标签;
命令`git tag`可以查看所有标签。
2. 操作标签
命令`git push origin <tagname>`可以推送一个本地标签;
命令`git push origin --tags`可以推送全部未推送过的本地标签;
命令`git tag -d <tagname>`可以删除一个本地标签;
命令`git push origin :refs/tags/<tagname>`可以删除一个远程标签。
###5.fork sb on github
P.S.fork应该取自Linux的Shell命令fork(复制当前进程,得到的子进程与父进程互不影响),用来把别人的项目版本库转存到自己的github,之后就相互独立了
在GitHub上,可以任意Fork开源仓库;
自己拥有Fork后的仓库的读写权限;
可以推送pull request给官方仓库来贡献代码。
###6.常用远程操作
1. 获取远程项目`git clone git@github.com:ayqy/git-helloworld.git`,会在当前目录下创建项目文件夹
2. 在线修改,通过`git pull origin master`拿到本地来
3. 本地修改,通过`git push -u origin master`上传同步(要注意先add-commit)
##四.常用命令
- `mkdir:XX` (创建一个空目录 XX指目录名)
- `pwd`:显示当前目录的路径。
- `cat XX`:查看XX文件内容
- `git init`:把当前的目录变成可以管理的git仓库,生成隐藏.git文件。
- `git add XX`:把xx文件添加到暂存区去。
- `git commit –m “XX”`:提交文件 –m 后面的是注释。
- `git status`:查看仓库状态
- `git diff XX`:查看XX文件修改了那些内容
- `git log`:查看历史记录
- `git reset` --hard HEAD^ 或者 git reset --hard HEAD~:回退到上一个版本
P.S.如果想回退到100个版本,使用git reset –hard HEAD~100
- `git reflog`:查看历史记录的版本号id
- `git checkout -- XX`:把XX文件在工作区的修改全部撤销。
- `git rm XX`:删除XX文件
- `git remote add origin https://github.com/ayqy/test.git`:关联一个远程库
- `git push –u(第一次要用-u 以后不需要) origin master`:把当前master分支推送到远程库
- `git clone https://github.com/ayqy/test.git`:从远程库中克隆
- `git checkout –b dev`:创建dev分支 并切换到dev分支上
- `git branch`:查看当前所有的分支
- `git checkout master`:切换回master分支
- `git merge dev`:在当前的分支上合并dev分支
- `git branch –d dev`:删除dev分支
- `git branch name`:创建分支
- `git stash`:把当前的工作隐藏起来 等以后恢复现场后继续工作
- `git stash list`:查看所有被隐藏的文件列表
- `git stash apply`:恢复被隐藏的文件,但是内容不删除
- `git stash drop`:删除文件
- `git stash pop`:恢复文件的同时 也删除文件
- `git remote`:查看远程库的信息
- `git remote –v`:查看远程库的详细信息
- `git push origin master`:Git会把master分支推送到远程库对应的远程分支上
- `git push origin :branch-name`:冒号前面的空格不能少,原理是把一个空分支push到server上,相当于删除该分支
##五.命令大全
###1.CREATE
- Clone an existing repository
`git clone ssh://user@domain.com/repo.git`
- Create a new local repository
`git init`
###2.LOCAL CHANGES
- Changed files in your working directory
`git status`
- Changes to tracked files
`git diff`
- Add all current changes to the next commit
`git add .`
- Add some changes in <file> to the next commit
`git add -p <file>`
- Commit all local changes in tracked files
`git commit -a`
- Commit previously staged changes
`git commit`
- Change the last commit *Don‘t amend published commits!*
`git commit --amend`
###3.COMMIT HISTORY
- Show all commits, starting with newest
`git log`
- Show changes over time for a specific file
`git log -p <file>`
- Who changed what and when in <file>
`git blame <file>`
###4.BRANCHES & TAGS
- List all existing branches
`git branch -av`
- Switch HEAD branch
`git checkout <branch>`
- Create a new branch based on your current HEAD
`git branch <new-branch>`
- Create a new tracking branch based on a remote branch
`git checkout --track <remote/branch>`
- Delete a local branch
`git branch -d <branch>`
- Mark the current commit with a tag
`git tag <tag-name>`
###5.UPDATE & PUBLISH
- List all currently configured remotes
`git remote -v`
- Show information about a remote
`git remote show <remote>`
- Add new remote repository, named <remote>
`git remote add <shortname> <url>`
- Download all changes from <remote>, but don‘t integrate into HEAD
`git fetch <remote>`
- Download changes and directly merge/integrate into HEAD
`git pull <remote> <branch>`
- Publish local changes on a remote
`git push <remote> <branch>`
- Delete a branch on the remote
`git branch -dr <remote/branch>`
- Publish your tag s
`git push --tags`
###6.MERGE & REBASE
- Merge <branch> into your current HEAD
`git merge <branch>`
- Rebase your current HEAD onto <branch> *Don‘t rebase published commits!*
`git rebase <branch>`
- Abort a rebase
`git rebase --abort`
- Continue a rebase after resolving conflicts
`git rebase --continue`
- Use your configured merge tool to solve conflicts
`git mergetool`
- Use your editor to manually solve conflicts and (after resolving) mark file as resolved
`git add <resolved-file>`
`git rm <resolved-file>`
###7.UNDO
- Discard all local changes in your working directory
`git reset --hard HEAD`
- Discard local changes in a specific file
`git checkout HEAD <file>`
- Revert a commit (by producing a new commit with contrary changes)
`git revert <commit>`
- Reset your HEAD pointer to a previous commit
…and discard all changes since then:`git reset --hard <commit>`
…and preserve all changes as unstaged changes:`git reset <commit>`
…and preserve uncommitted local changes:`git reset --keep <commit>`
###参考资料
- [廖雪峰的官方网站:Git教程](http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000)
- [博客园:Git使用教程](http://www.cnblogs.com/tugenhua0707/p/4050072.html) | ayqy/test | README.md | Markdown | mit | 16,631 |
'use strict';
// Setting up route
angular.module('socialevents').config(['$stateProvider',
function($stateProvider) {
// SocialEvents state routing
$stateProvider.
state('listSocialEvents', {
url: '/socialevents',
templateUrl: 'modules/socialevents/views/list-socialevents.client.view.html'
}).
state('createSocialEvent', {
url: '/socialevents/create',
templateUrl: 'modules/socialevents/views/create-socialevent.client.view.html'
}).
state('viewSocialEvent', {
url: '/socialevents/:socialeventId',
templateUrl: 'modules/socialevents/views/view-socialevent.client.view.html'
}).
state('editSocialEvent', {
url: '/socialevents/:socialeventId/edit',
templateUrl: 'modules/socialevents/views/edit-socialevent.client.view.html'
});
}
]); | MahirZukic/MassSocialEventSender | public/modules/socialevents/config/socialevents.client.routes.js | JavaScript | mit | 780 |
/*****************************************************************************
* $Workfile: ReportTag.cpp $
* $Revision: 1 $
* $Modtime: 8/22/01 6:26p $
* $Author: Lw $
******************************************************************************
*
* COPYRIGHT (C) 2001 CGI NEDERLAND B.V. - ALL RIGHTS RESERVED
*
******************************************************************************/
// During debug builds the debug information is truncated to 255 chars
#pragma warning(disable:4786)
#include "ReportTag.h" // Class definition
#include <map>
#include <string>
#include <vector>
using namespace std;
#include "Rtf.h" // Used for defines of Rtf-tags
///////////////////////////////////////////////////////////////////////////////
// Construction and destruction
// ====================
ReportTag::ReportTag
// ====================
(
TYPE nType
)
{
m_nType = nType;
SetTags();
SetEscapeTags();
}
// ===============
ReportTag::~ReportTag()
// ===============
{
// Empty.
}
///////////////////////////////////////////////////////////////////////////////
// Public interface
// =================
const string& ReportTag::GetTag
// =================
(
TAG nTag
)
{
// Create an iterator for the map of tags; initialise it to point to
// the specified tag in the map.
map<TAG, string>::iterator Iterator = m_mTags.find( nTag );
// Determine if the specified tag was found; if not, make the iterator
// point to the UNDEF_TAG element.
if ( Iterator == m_mTags.end() )
{
Iterator = m_mTags.find( UNDEF_TAG );
}
// Return the string from the map to which the iterator points.
return Iterator->second;
}
// ==================
ReportTag::TYPE ReportTag::GetType() const
// ==================
{
return m_nType;
}
// ==================
bool ReportTag::UseLogo() const
// ==================
{
bool bResult = false;
// Only if the type is RTF should a logo be used.
if ( m_nType == RTF )
{
bResult= true;
}
return bResult;
}
// ========================
const vector<pair<string, string> >& ReportTag::GetEscapeTags() const
// ========================
{
return m_vprstrEscapeTags;
}
///////////////////////////////////////////////////////////////////////////////
// Implementation
// ==================
void ReportTag::SetTags()
// ==================
{
m_mTags[UNDEF_TAG] = "";
// Determine the file type and set the corresponding tags.
switch ( m_nType )
{
case RTF:
{
SetRtfTags();
break;
}
case ASCII:
default: // As default is taken the case ASCII.
{
SetAsciiTags();
break;
}
}
}
// =====================
void ReportTag::SetRtfTags()
// =====================
{
// Use as Rtf-tags the defines from the header file Rtf.h.
m_mTags[STARTDOC] = RTF_STARTDOC;
m_mTags[ENDDOC] = RTF_ENDDOC;
m_mTags[FONTTABLE] = RTF_FONTTABLE;
m_mTags[ARIAL] = RTF_ARIAL;
m_mTags[COURIERNEW] = RTF_COURIERNEW;
m_mTags[COLORTABLE] = RTF_COLORTABLE;
m_mTags[NORMAL] = RTF_NORMAL;
m_mTags[EOLN] = RTF_EOLN;
m_mTags[TAB] = RTF_TAB;
m_mTags[BIG] = RTF_BIG;
m_mTags[NORMALSIZE] = RTF_NORMALSIZE;
m_mTags[SMALL] = RTF_SMALL;
m_mTags[BOLD] = RTF_BOLD;
m_mTags[UNBOLD] = RTF_UNBOLD;
m_mTags[ITALIC] = RTF_ITALIC;
m_mTags[UNITALIC] = RTF_UNITALIC;
m_mTags[UNDERLINED] = RTF_UNDERLINED;
m_mTags[UNUNDERLINED] = RTF_UNUNDERLINED;
m_mTags[BLACK] = RTF_BLACK;
m_mTags[RED] = RTF_RED;
m_mTags[GREEN] = RTF_GREEN;
}
// =======================
void ReportTag::SetAsciiTags()
// =======================
{
m_mTags[STARTDOC] = "";
m_mTags[ENDDOC] = "";
m_mTags[FONTTABLE] = "";
m_mTags[ARIAL] = "";
m_mTags[COURIERNEW] = "";
m_mTags[COLORTABLE] = "";
m_mTags[NORMAL] = "";
m_mTags[EOLN] = "\n";
m_mTags[TAB] = "\t";
m_mTags[BIG] = "";
m_mTags[NORMALSIZE] = "";
m_mTags[SMALL] = "";
m_mTags[BOLD] = "";
m_mTags[UNBOLD] = "";
m_mTags[ITALIC] = "";
m_mTags[UNITALIC] = "";
m_mTags[UNDERLINED] = "";
m_mTags[UNUNDERLINED] = "";
m_mTags[BLACK] = "";
m_mTags[RED] = "";
m_mTags[GREEN] = "";
}
// ========================
void ReportTag::SetEscapeTags()
// ========================
{
// Determine the file type and set the corresponding tags.
switch ( m_nType )
{
case RTF:
{
// Add the pairs of tags to escape and their replacements.
// Note that the order in which they are placed in the vector
// matters! The '\' must be replaced by '\\' before e.g. '{'
// is replaced by '\{'.
m_vprstrEscapeTags.push_back( make_pair( string("\\"), string("\\\\") ) );
m_vprstrEscapeTags.push_back( make_pair( string("{"), string("\\{") ) );
m_vprstrEscapeTags.push_back( make_pair( string("}"), string("\\}") ) );
break;
}
case ASCII:
default: // As default is taken the case ASCII.
{
// No escape tags.
break;
}
}
}
| CGI-Nederland/TestFrameEngine | Sources/coengine/ReportTag.cpp | C++ | mit | 4,966 |
require 'singleton'
module Elastictastic
class DiscretePersistenceStrategy
include Singleton
DEFAULT_HANDLER = proc { |e| raise(e) if e }
attr_accessor :auto_refresh
def create(doc, &block)
block ||= DEFAULT_HANDLER
begin
response = Elastictastic.client.create(
doc.index,
doc.class.type,
doc.id,
doc.elasticsearch_doc,
params_for_doc(doc)
)
rescue => e
return block.call(e)
end
doc.id = response['_id']
doc.version = response['_version']
doc.persisted!
block.call
end
def update(doc, &block)
block ||= DEFAULT_HANDLER
if doc.changed?
begin
response = Elastictastic.client.update(
doc.index,
doc.class.type,
doc.id,
doc.elasticsearch_doc,
params_for_doc(doc)
)
rescue => e
return block.call(e)
end
doc.version = response['_version']
doc.persisted!
end
block.call
end
def destroy(doc, &block)
block ||= DEFAULT_HANDLER
begin
response = Elastictastic.client.delete(
doc.index.name,
doc.class.type,
doc.id,
params_for_doc(doc)
)
rescue => e
return block.call(e)
end
doc.transient!
block.call
response['found']
end
def destroy!(index, type, id, routing, parent)
response = Elastictastic.client.delete(
index,
type,
id,
params_for(routing, parent, nil)
)
response['found']
end
private
def params_for_doc(doc)
params_for(
doc.class.route(doc),
doc._parent_id,
doc.version
)
end
def params_for(routing, parent_id, version)
{}.tap do |params|
params[:refresh] = true if Elastictastic.config.auto_refresh
params[:parent] = parent_id if parent_id
params[:version] = version if version
params[:routing] = routing.to_s if routing
end
end
end
end
| brewster/elastictastic | lib/elastictastic/discrete_persistence_strategy.rb | Ruby | mit | 2,134 |
namespace OnlineStore.Web.Controllers
{
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using OnlineStore.Data.Models;
using OnlineStore.Web.ViewModels.Account;
[Authorize]
public class AccountController : BaseController
{
// Used for XSRF protection when adding external logins
private const string XsrfKey = "XsrfId";
private ApplicationSignInManager signInManager;
private ApplicationUserManager userManager;
public AccountController()
{
}
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
{
this.UserManager = userManager;
this.SignInManager = signInManager;
}
public ApplicationSignInManager SignInManager
{
get
{
return this.signInManager ?? this.HttpContext.GetOwinContext().Get<ApplicationSignInManager>();
}
private set
{
this.signInManager = value;
}
}
public ApplicationUserManager UserManager
{
get
{
return this.userManager ?? this.HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>();
}
private set
{
this.userManager = value;
}
}
private IAuthenticationManager AuthenticationManager => this.HttpContext.GetOwinContext().Authentication;
// GET: /Account/Login
[AllowAnonymous]
public ActionResult Login(string returnUrl)
{
this.ViewBag.ReturnUrl = returnUrl;
//return this.View();
return this.View("_LoginPartial");
}
// POST: /Account/Login
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
{
if (!this.ModelState.IsValid)
{
//return this.View(model);
return this.PartialView("_LoginPartial", model);
}
// This doesn't count login failures towards account lockout
// To enable password failures to trigger account lockout, change to shouldLockout: true
var result =
await
this.SignInManager.PasswordSignInAsync(
model.Email,
model.Password,
model.RememberMe,
shouldLockout: false);
switch (result)
{
case SignInStatus.Success:
//return this.RedirectToLocal(returnUrl);
return new HttpStatusCodeResult(System.Net.HttpStatusCode.OK);
case SignInStatus.LockedOut:
return this.View("Lockout");
case SignInStatus.RequiresVerification:
return this.RedirectToAction(
"SendCode",
new { ReturnUrl = returnUrl, model.RememberMe });
case SignInStatus.Failure:
default:
this.ModelState.AddModelError(string.Empty, "Грешен Email адрес или парола");
//return this.View(model);
return this.PartialView("_LoginPartial", model);
}
}
// GET: /Account/VerifyCode
[AllowAnonymous]
public async Task<ActionResult> VerifyCode(string provider, string returnUrl, bool rememberMe)
{
// Require that the user has already logged in via username/password or external login
if (!await this.SignInManager.HasBeenVerifiedAsync())
{
return this.View("Error");
}
return
this.View(
new VerifyCodeViewModel { Provider = provider, ReturnUrl = returnUrl, RememberMe = rememberMe });
}
// POST: /Account/VerifyCode
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> VerifyCode(VerifyCodeViewModel model)
{
if (!this.ModelState.IsValid)
{
return this.View(model);
}
// The following code protects for brute force attacks against the two factor codes.
// If a user enters incorrect codes for a specified amount of time then the user account
// will be locked out for a specified amount of time.
// You can configure the account lockout settings in IdentityConfig
var result =
await
this.SignInManager.TwoFactorSignInAsync(
model.Provider,
model.Code,
isPersistent: model.RememberMe,
rememberBrowser: model.RememberBrowser);
switch (result)
{
case SignInStatus.Success:
return this.RedirectToLocal(model.ReturnUrl);
case SignInStatus.LockedOut:
return this.View("Lockout");
case SignInStatus.Failure:
default:
this.ModelState.AddModelError(string.Empty, "Invalid code.");
return this.View(model);
}
}
// GET: /Account/Register
[AllowAnonymous]
public ActionResult Register()
{
return this.View("_RegisterPartial");
}
// POST: /Account/Register
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Register(RegisterViewModel model)
{
if (this.ModelState.IsValid)
{
var user = new ApplicationUser { UserName = model.Email, Email = model.Email, FirstName = model.FirstName, LastName = model.LastName };
var result = await this.UserManager.CreateAsync(user, model.Password);
if (result.Succeeded)
{
await this.SignInManager.SignInAsync(user, isPersistent: false, rememberBrowser: false);
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=320771
// Send an email with this link
// string code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
// var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
// await UserManager.SendEmailAsync(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>");
return new HttpStatusCodeResult(System.Net.HttpStatusCode.OK);
}
this.AddErrors(result);
}
// If we got this far, something failed, redisplay form
return this.PartialView("_RegisterPartial", model);
}
// GET: /Account/ConfirmEmail
[AllowAnonymous]
public async Task<ActionResult> ConfirmEmail(string userId, string code)
{
if (userId == null || code == null)
{
return this.View("Error");
}
var result = await this.UserManager.ConfirmEmailAsync(userId, code);
return this.View(result.Succeeded ? "ConfirmEmail" : "Error");
}
// GET: /Account/ForgotPassword
[AllowAnonymous]
public ActionResult ForgotPassword()
{
return this.View();
}
// POST: /Account/ForgotPassword
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> ForgotPassword(ForgotPasswordViewModel model)
{
if (this.ModelState.IsValid)
{
var user = await this.UserManager.FindByNameAsync(model.Email);
if (user == null || !await this.UserManager.IsEmailConfirmedAsync(user.Id))
{
// Don't reveal that the user does not exist or is not confirmed
return this.View("ForgotPasswordConfirmation");
}
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=320771
// Send an email with this link
// string code = await UserManager.GeneratePasswordResetTokenAsync(user.Id);
// var callbackUrl = Url.Action("ResetPassword", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
// await UserManager.SendEmailAsync(user.Id, "Reset Password", "Please reset your password by clicking <a href=\"" + callbackUrl + "\">here</a>");
// return RedirectToAction("ForgotPasswordConfirmation", "Account");
}
// If we got this far, something failed, redisplay form
return this.View(model);
}
// GET: /Account/ForgotPasswordConfirmation
[AllowAnonymous]
public ActionResult ForgotPasswordConfirmation()
{
return this.View();
}
// GET: /Account/ResetPassword
[AllowAnonymous]
public ActionResult ResetPassword(string code)
{
return code == null ? this.View("Error") : this.View();
}
// POST: /Account/ResetPassword
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> ResetPassword(ResetPasswordViewModel model)
{
if (!this.ModelState.IsValid)
{
return this.View(model);
}
var user = await this.UserManager.FindByNameAsync(model.Email);
if (user == null)
{
// Don't reveal that the user does not exist
return this.RedirectToAction("ResetPasswordConfirmation", "Account");
}
var result = await this.UserManager.ResetPasswordAsync(user.Id, model.Code, model.Password);
if (result.Succeeded)
{
return this.RedirectToAction("ResetPasswordConfirmation", "Account");
}
this.AddErrors(result);
return this.View();
}
// GET: /Account/ResetPasswordConfirmation
[AllowAnonymous]
public ActionResult ResetPasswordConfirmation()
{
return this.View();
}
// POST: /Account/ExternalLogin
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult ExternalLogin(string provider, string returnUrl)
{
// Request a redirect to the external login provider
return new ChallengeResult(
provider,
this.Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl }));
}
// GET: /Account/SendCode
[AllowAnonymous]
public async Task<ActionResult> SendCode(string returnUrl, bool rememberMe)
{
var userId = await this.SignInManager.GetVerifiedUserIdAsync();
if (userId == null)
{
return this.View("Error");
}
var userFactors = await this.UserManager.GetValidTwoFactorProvidersAsync(userId);
var factorOptions =
userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
return
this.View(
new SendCodeViewModel { Providers = factorOptions, ReturnUrl = returnUrl, RememberMe = rememberMe });
}
// POST: /Account/SendCode
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> SendCode(SendCodeViewModel model)
{
if (!this.ModelState.IsValid)
{
return this.View();
}
// Generate the token and send it
if (!await this.SignInManager.SendTwoFactorCodeAsync(model.SelectedProvider))
{
return this.View("Error");
}
return this.RedirectToAction(
"VerifyCode",
new { Provider = model.SelectedProvider, model.ReturnUrl, model.RememberMe });
}
// GET: /Account/ExternalLoginCallback
[AllowAnonymous]
public async Task<ActionResult> ExternalLoginCallback(string returnUrl)
{
var loginInfo = await this.AuthenticationManager.GetExternalLoginInfoAsync();
if (loginInfo == null)
{
return this.RedirectToAction("Login");
}
// Sign in the user with this external login provider if the user already has a login
var result = await this.SignInManager.ExternalSignInAsync(loginInfo, isPersistent: false);
switch (result)
{
case SignInStatus.Success:
return this.RedirectToLocal(returnUrl);
case SignInStatus.LockedOut:
return this.View("Lockout");
case SignInStatus.RequiresVerification:
return this.RedirectToAction("SendCode", new { ReturnUrl = returnUrl, RememberMe = false });
case SignInStatus.Failure:
default:
// If the user does not have an account, then prompt the user to create an account
this.ViewBag.ReturnUrl = returnUrl;
this.ViewBag.LoginProvider = loginInfo.Login.LoginProvider;
return this.View(
"ExternalLoginConfirmation",
new ExternalLoginConfirmationViewModel { Email = loginInfo.Email });
}
}
// POST: /Account/ExternalLoginConfirmation
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> ExternalLoginConfirmation(
ExternalLoginConfirmationViewModel model,
string returnUrl)
{
if (this.User.Identity.IsAuthenticated)
{
return this.RedirectToAction("Index", "Manage");
}
if (this.ModelState.IsValid)
{
// Get the information about the user from the external login provider
var info = await this.AuthenticationManager.GetExternalLoginInfoAsync();
if (info == null)
{
return this.View("ExternalLoginFailure");
}
var user = new ApplicationUser { UserName = model.Email, Email = model.Email };
var result = await this.UserManager.CreateAsync(user);
if (result.Succeeded)
{
result = await this.UserManager.AddLoginAsync(user.Id, info.Login);
if (result.Succeeded)
{
await this.SignInManager.SignInAsync(user, isPersistent: false, rememberBrowser: false);
return this.RedirectToLocal(returnUrl);
}
}
this.AddErrors(result);
}
this.ViewBag.ReturnUrl = returnUrl;
return this.View(model);
}
// POST: /Account/LogOff
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult LogOff()
{
this.AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
return this.RedirectToAction("Index", "Home");
}
// GET: /Account/ExternalLoginFailure
[AllowAnonymous]
public ActionResult ExternalLoginFailure()
{
return this.View();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (this.userManager != null)
{
this.userManager.Dispose();
this.userManager = null;
}
if (this.signInManager != null)
{
this.signInManager.Dispose();
this.signInManager = null;
}
}
base.Dispose(disposing);
}
private void AddErrors(IdentityResult result)
{
foreach (var error in result.Errors)
{
this.ModelState.AddModelError(string.Empty, error);
}
}
private ActionResult RedirectToLocal(string returnUrl)
{
if (this.Url.IsLocalUrl(returnUrl))
{
return this.Redirect(returnUrl);
}
return this.RedirectToAction("Index", "Home");
}
internal class ChallengeResult : HttpUnauthorizedResult
{
public ChallengeResult(string provider, string redirectUri, string userId = null)
{
this.LoginProvider = provider;
this.RedirectUri = redirectUri;
this.UserId = userId;
}
public string LoginProvider { get; set; }
public string RedirectUri { get; set; }
public string UserId { get; set; }
public override void ExecuteResult(ControllerContext context)
{
var properties = new AuthenticationProperties { RedirectUri = this.RedirectUri };
if (this.UserId != null)
{
properties.Dictionary[XsrfKey] = this.UserId;
}
context.HttpContext.GetOwinContext().Authentication.Challenge(properties, this.LoginProvider);
}
}
}
}
| dargirov/store | Source/Web/OnlineStore.Web/Controllers/AccountController.cs | C# | mit | 18,349 |
#!bin/bash
git add -A
git commit -m "$1"
git push origin master | karan-kapoor90/karankapoor.in | deploy.sh | Shell | mit | 63 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>maths: 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.11.2 / maths - 8.6.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
maths
<small>
8.6.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-08-17 11:46:38 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-17 11:46:38 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-m4 1 Virtual package relying on m4
coq 8.11.2 Formal proof management system
num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.0 Official release 4.10.0
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/maths"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Maths"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [ "keyword: mathematics" "category: Mathematics/Arithmetic and Number Theory/Number theory" ]
authors: [ "Jean-Christophe Filliâtre" ]
bug-reports: "https://github.com/coq-contribs/maths/issues"
dev-repo: "git+https://github.com/coq-contribs/maths.git"
synopsis: "Basic mathematics"
description: """
Basic mathematics (gcd, primality, etc.) from
French ``Mathematiques Superieures'' (first year of preparation to
high schools)"""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/maths/archive/v8.6.0.tar.gz"
checksum: "md5=77eaaf98412fd0d8040252da485d5eba"
}
</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-maths.8.6.0 coq.8.11.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.11.2).
The following dependencies couldn't be met:
- coq-maths -> coq < 8.7~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-maths.8.6.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.0-2.0.6/released/8.11.2/maths/8.6.0.html | HTML | mit | 6,710 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>reduction-effects: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.2~camlp4 / reduction-effects - 0.1.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
reduction-effects
<small>
0.1.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-24 13:47:43 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-24 13:47:43 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp4 4.05+1 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
coq 8.5.2~camlp4 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects.
# opam file:
opam-version: "2.0"
synopsis: "A Coq plugin to add reduction side effects to some Coq reduction strategies"
maintainer: "Yishuai Li <yishuai@cis.upenn.edu>"
authors: "Hugo Herbelin <Hugo.Herbelin@inria.fr>"
license: "LGPL-2.1"
homepage: "https://github.com/coq-community/reduction-effects"
bug-reports: "https://github.com/coq-community/reduction-effects/issues"
depends: [
"coq" { >= "8.9" < "8.10~" }
]
build: [make "-j%{jobs}%"]
install: [make "-j%{jobs}%" "install"]
run-test:[make "-j%{jobs}%" "test"]
dev-repo: "git+https://github.com/coq-community/reduction-effects"
url {
src: "https://github.com/coq-community/reduction-effects/archive/v0.1.1.tar.gz"
checksum: "md5=be8197519bf3dc5610b66212f89da445"
}
tags: [
"logpath:ReductionEffect"
]
</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-reduction-effects.0.1.1 coq.8.5.2~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2~camlp4).
The following dependencies couldn't be met:
- coq-reduction-effects -> coq >= 8.9
Your request can'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-reduction-effects.0.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.05.0-2.0.1/released/8.5.2~camlp4/reduction-effects/0.1.1.html | HTML | mit | 6,850 |
/*********************************************************************
** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved.
**
** This file is part of the POSIX-Proactor module.
**
**
**
**
**
**
**
**
**********************************************************************/
// ============================================================================
//
//
// = AUTHOR
// Alexander Libman <libman@terabit.com.au>
//
// ============================================================================
#ifndef ACE_TESTS_U_TEST_H
#define ACE_TESTS_U_TEST_H
#include "ProactorTask.h"
#include "Asynch_RW.h"
#include "ace/INET_Addr.h"
#include "ace/SString.h"
class DOwner;
// *************************************************************
// Datagram session
// *************************************************************
class DSession : public ACE_Service_Handler
{
friend class DOwner;
public:
DSession (DOwner & owner, int index, const ACE_TCHAR * name);
~DSession (void);
virtual int on_open (const ACE_INET_Addr & local,
const ACE_INET_Addr & remote) =0;
virtual int on_data_received (ACE_Message_Block & mb,
const ACE_INET_Addr & addr) = 0;
virtual int on_data_sent (ACE_Message_Block & mb,
const ACE_INET_Addr & addr) = 0;
const ACE_TCHAR * get_name (void) const { return name_.c_str(); }
size_t get_total_snd (void) { return this->total_snd_; }
size_t get_total_rcv (void) { return this->total_rcv_; }
long get_total_w (void) { return this->total_w_; }
long get_total_r (void) { return this->total_r_; }
int get_pending_r_ (void) { return this->io_count_r_; }
int get_pending_w_ (void) { return this->io_count_w_; }
int index (void) { return this->index_;}
void print_address (const ACE_Addr& address);
int open (const ACE_INET_Addr & local,
const ACE_INET_Addr & remote);
protected:
/// This is called when asynchronous <read> operation from the
/// socket completes.
virtual void handle_read_dgram (const ACE_Asynch_Read_Dgram::Result &result);
/// This is called when an asynchronous <write> to the socket
/// completes.
virtual void handle_write_dgram (const ACE_Asynch_Write_Dgram::Result &result);
/// This is called when an asynchronous <write> to the socket
/// completes.
virtual void handle_user_operation(const ACE_Asynch_User_Result& result);
void cancel ();
void close ();
int initiate_read (void);
int initiate_write(ACE_Message_Block &mb,
const ACE_INET_Addr & addr);
int post_message (void);
ACE_TString name_;
DOwner & owner_;
int index_;
Asynch_RW_Dgram stream_;
ACE_SYNCH_MUTEX lock_;
int io_count_r_; // Number of currently outstanding I/O reads
int io_count_w_; // Number of currently outstanding I/O writes
int post_count_; // Number of currently posted messages
size_t total_snd_; // Number of bytes successfully sent
size_t total_rcv_; // Number of bytes successfully received
long total_w_; // Number of write operations
long total_r_; // Number of read operations
};
// *************************************************************
// Receiver
// *************************************************************
class Receiver : public DSession
{
//friend class Bridge;
public:
Receiver (DOwner & owner, int index);
~Receiver (void);
virtual int on_open (const ACE_INET_Addr & local,
const ACE_INET_Addr & remote);
virtual int on_data_received (ACE_Message_Block & mb,
const ACE_INET_Addr & addr);
virtual int on_data_sent (ACE_Message_Block & mb,
const ACE_INET_Addr & addr);
};
// *************************************************************
// Sender
// *************************************************************
class Sender : public DSession
{
//friend class Connector;
public:
Sender (DOwner & owner, int index);
~Sender (void);
virtual int on_open (const ACE_INET_Addr & local,
const ACE_INET_Addr & remote);
virtual int on_data_received (ACE_Message_Block & mb,
const ACE_INET_Addr & addr);
virtual int on_data_sent (ACE_Message_Block & mb,
const ACE_INET_Addr & addr);
};
// *************************************************************
// Datagram sessions owner
// *************************************************************
class DOwner
{
friend class DSession;
public:
int get_number_connections (void) const { return this->connections_; }
size_t get_total_snd (void) const { return this->total_snd_; }
size_t get_total_rcv (void) const { return this->total_rcv_; }
long get_total_w (void) const { return this->total_w_; }
long get_total_r (void) const { return this->total_r_; }
ProactorTask & task (void) const { return task_;}
DOwner (ProactorTask &task);
virtual ~DOwner (void);
int start_sender(const ACE_INET_Addr & remote);
int start_receiver(const ACE_INET_Addr & local);
void stop (void);
void cancel_all (void);
void post_all (void);
void on_new_session (DSession & session);
void on_delete_session (DSession & session);
private:
ProactorTask & task_;
ACE_SYNCH_RECURSIVE_MUTEX lock_;
u_int connections_;
DSession * list_connections_[MAX_CONNECTIONS];
size_t total_snd_;
size_t total_rcv_;
long total_w_;
long total_r_;
int flg_cancel_;
};
#endif // ACE_TESTS_U_TEST_H
| binghuo365/BaseLab | 3rd/Terabit/Test_Directory/tests/U_Test/U_Test.h | C | mit | 5,695 |
<?php
class ItemsToUpdate extends Eloquent {
protected $table = 'items_to_update';
protected $primaryKey = 'id';
public $timestamps = false;
}
| pedrommone/seriesseeker.com | app/models/ItemsToUpdate.php | PHP | mit | 154 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.10.2.15_A1_T8;
* @section: 15.10.2.15;
* @assertion: The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
* following:
* If A does not contain exactly one character or B does not contain exactly one character then throw
* a SyntaxError exception;
* @description: Checking if execution of "/[\Wb-G]/.exec("a")" leads to throwing the correct exception;
*/
//CHECK#1
try {
$ERROR('#1.1: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (/[\Wb-G]/.exec("a")));
} catch (e) {
if((e instanceof SyntaxError) !== true){
$ERROR('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e));
}
}
| Diullei/Storm | Storm.Test/SputnikV1/15_Native_ECMA_Script_Objects/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.15_NonemptyClassRanges/S15.10.2.15_A1_T8.js | JavaScript | mit | 823 |
const autoprefixer = require('autoprefixer');
const precss = require('precss');
const stylelint = require('stylelint');
const fontMagician = require('postcss-font-magician')({
// this is required due to a weird bug where if we let PFM use the `//` protocol Webpack style-loader
// thinks it's a relative URL and won't load the font when sourceMaps are also enabled
protocol: 'https:',
display: 'swap',
});
module.exports = {
plugins: [stylelint, fontMagician, precss, autoprefixer],
};
| bjacobel/react-redux-boilerplate | postcss.config.js | JavaScript | mit | 497 |
import React from 'dom-chef';
import cache from 'webext-storage-cache';
import select from 'select-dom';
import {TagIcon} from '@primer/octicons-react';
import arrayUnion from 'array-union';
import * as pageDetect from 'github-url-detection';
import features from '.';
import * as api from '../github-helpers/api';
import {getCommitHash} from './mark-merge-commits-in-list';
import {buildRepoURL, getRepo} from '../github-helpers';
type CommitTags = Record<string, string[]>;
interface BaseTarget {
commitResourcePath: string;
}
type TagTarget = {
tagger: {
date: Date;
};
} & BaseTarget;
type CommitTarget = {
committedDate: Date;
} & BaseTarget;
type CommonTarget = TagTarget | CommitTarget;
interface TagNode {
name: string;
target: CommonTarget;
}
function mergeTags(oldTags: CommitTags, newTags: CommitTags): CommitTags {
const result: CommitTags = {...oldTags};
for (const commit in newTags) {
if (result[commit]) {
result[commit] = arrayUnion(result[commit], newTags[commit]);
} else {
result[commit] = newTags[commit];
}
}
return result;
}
function isTagTarget(target: CommonTarget): target is TagTarget {
return 'tagger' in target;
}
async function getTags(lastCommit: string, after?: string): Promise<CommitTags> {
const {repository} = await api.v4(`
repository() {
refs(
first: 100,
refPrefix: "refs/tags/",
orderBy: {
field: TAG_COMMIT_DATE,
direction: DESC
}
${after ? `, after: "${after}"` : ''}
) {
pageInfo {
hasNextPage
endCursor
}
nodes {
name
target {
commitResourcePath
... on Tag {
tagger {
date
}
}
... on Commit {
committedDate
}
}
}
}
object(expression: "${lastCommit}") {
... on Commit {
committedDate
}
}
}
`);
const nodes = repository.refs.nodes as TagNode[];
// If there are no tags in the repository
if (nodes.length === 0) {
return {};
}
let tags: CommitTags = {};
for (const node of nodes) {
const commit = node.target.commitResourcePath.split('/')[4];
if (!tags[commit]) {
tags[commit] = [];
}
tags[commit].push(node.name);
}
const lastTag = nodes[nodes.length - 1].target;
const lastTagIsYounger = new Date(repository.object.committedDate) < new Date(isTagTarget(lastTag) ? lastTag.tagger.date : lastTag.committedDate);
// If the last tag is younger than last commit on the page, then not all commits are accounted for, keep looking
if (lastTagIsYounger && repository.refs.pageInfo.hasNextPage) {
tags = mergeTags(tags, await getTags(lastCommit, repository.refs.pageInfo.endCursor));
}
// There are no tags for this commit
return tags;
}
async function init(): Promise<void | false> {
const cacheKey = `tags:${getRepo()!.nameWithOwner}`;
const commitsOnPage = select.all('li.js-commits-list-item');
const lastCommitOnPage = getCommitHash(commitsOnPage[commitsOnPage.length - 1]);
let cached = await cache.get<Record<string, string[]>>(cacheKey) ?? {};
const commitsWithNoTags = [];
for (const commit of commitsOnPage) {
const targetCommit = getCommitHash(commit);
let targetTags = cached[targetCommit];
if (!targetTags) {
// No tags for this commit found in the cache, check in github
cached = mergeTags(cached, await getTags(lastCommitOnPage)); // eslint-disable-line no-await-in-loop
targetTags = cached[targetCommit];
}
if (!targetTags) {
// There was no tags for this commit, save that info to the cache
commitsWithNoTags.push(targetCommit);
} else if (targetTags.length > 0) {
select('.flex-auto .d-flex.mt-1', commit)!.append(
<div className="ml-2">
<TagIcon/>
<span className="ml-1">{targetTags.map((tags, i) => (
<>
<a href={buildRepoURL('releases/tag', tags)}>{tags}</a>
{(i + 1) === targetTags.length ? '' : ', '}
</>
))}
</span>
</div>,
);
commit.classList.add('rgh-tagged');
}
}
if (commitsWithNoTags.length > 0) {
for (const commit of commitsWithNoTags) {
cached[commit] = [];
}
}
await cache.set(cacheKey, cached, {days: 1});
}
void features.add(__filebasename, {
include: [
pageDetect.isRepoCommitList,
],
init,
});
| sindresorhus/refined-github | source/features/tags-on-commits-list.tsx | TypeScript | mit | 4,219 |
/*
* Clase de conexão ao Banco de Dados
*/
package br.ufscar.db;
import java.sql.Connection;
import java.sql.DriverManager;
/**
*
* @author felipe
*/
public class ConexaoBD {
private Connection conexao;
public ConexaoBD() {
conexao = null;
try
{
Class.forName("com.mysql.jdbc.Driver");
conexao = DriverManager.getConnection("jdbc:mysql://mysql:3306/mydb?autoReconnect=true","root","root");
}
catch (Exception excecao)
{
excecao.printStackTrace();
}
}
/**
* Esta funcao retorna uma conexao estabelecida com o banco de dados
* @return conexao - A conexao estabelecida com o banco de dados
*/
public Connection getConexao() {
return conexao;
}
/**
* Este procedimento fecha a conexao com o banco de dados
*/
public void fecharConexao() {
try {
if( getConexao()!= null) {
if(!conexao.isClosed())
getConexao().close();
}
}
catch (Exception excecao) {
excecao.printStackTrace();
}
}
} | fnscoder/DSAW_AA321 | src/main/java/br/ufscar/db/ConexaoBD.java | Java | mit | 1,161 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">dev / metacoq-erasure - 1.0~beta2+8.12</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq-erasure
<small>
1.0~beta2+8.12
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-10-27 02:59:51 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-27 02:59:51 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq dev Formal proof management system
dune 2.9.1 Fast, portable, and opinionated build system
ocaml 4.12.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.12.0 Official release 4.12.0
ocaml-config 2 OCaml Switch Configuration
ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled
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: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
"Simon Boulier <simon.boulier@inria.fr>"
"Cyril Cohen <cyril.cohen@inria.fr>"
"Yannick Forster <forster@ps.uni-saarland.de>"
"Fabian Kunze <fkunze@fakusb.de>"
"Gregory Malecha <gmalecha@gmail.com>"
"Matthieu Sozeau <matthieu.sozeau@inria.fr>"
"Nicolas Tabareau <nicolas.tabareau@inria.fr>"
"Théo Winterhalter <theo.winterhalter@inria.fr>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
[make "-j" "%{jobs}%" "-C" "erasure"]
]
install: [
[make "-C" "erasure" "install"]
]
depends: [
"ocaml" {>= "4.07.1" & < "4.12~"}
"coq" { >= "8.12~" & < "8.13~" }
"coq-metacoq-template" {= version}
"coq-metacoq-pcuic" {= version}
"coq-metacoq-safechecker" {= version}
]
synopsis: "Implementation and verification of an erasure procedure for Coq"
description: """
MetaCoq is a meta-programming framework for Coq.
The Erasure module provides a complete specification of Coq's so-called
\"extraction\" procedure, starting from the PCUIC calculus and targeting
untyped call-by-value lambda-calculus.
The `erasure` function translates types and proofs in well-typed terms
into a dummy `tBox` constructor, following closely P. Letouzey's PhD
thesis.
"""
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-beta2-8.12.tar.gz"
checksum: "sha256=108582a6f11ed511a5a94f2b302359f8d648168cba893169009def7c19e08778"
}
</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-metacoq-erasure.1.0~beta2+8.12 coq.dev</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is dev).
The following dependencies couldn't be met:
- coq-metacoq-erasure -> ocaml < 4.12~
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-erasure.1.0~beta2+8.12</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.12.0-2.0.8/extra-dev/dev/metacoq-erasure/1.0~beta2+8.12.html | HTML | mit | 8,032 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hardware: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.0~camlp4 / hardware - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
hardware
<small>
8.10.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-09-09 03:51:12 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-09-09 03:51:12 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp4 4.05+1 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
coq 8.5.0~camlp4 Formal proof management system.
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects.
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/hardware"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Hardware"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: hardware verification"
"keyword: comparator circuit"
"category: Computer Science/Architecture"
"category: Miscellaneous/Extracted Programs/Hardware"
]
authors: [
"Solange Coupet-Grimal & Line Jakubiec"
]
bug-reports: "https://github.com/coq-contribs/hardware/issues"
dev-repo: "git+https://github.com/coq-contribs/hardware.git"
synopsis: "Verification and synthesis of hardware linear arithmetic structures"
description: """
Verification and synthesis of hardware linear arithmetic
structures. Example of a left-to-right comparator.
Three approaches are tackled :
- the usual verification of a circuit, consisting in proving that the
description satisfies the specification,
- the synthesis of a circuit from its specification using the Coq extractor,
- the same approach as above but using the Program tactic."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/hardware/archive/v8.10.0.tar.gz"
checksum: "md5=bc21aceb0c787bf1e321debeef025cf2"
}
</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-hardware.8.10.0 coq.8.5.0~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0~camlp4).
The following dependencies couldn't be met:
- coq-hardware -> coq >= 8.10
Your request can'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-hardware.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.0~camlp4/hardware/8.10.0.html | HTML | mit | 7,381 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hierarchy-builder-shim: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.0 / hierarchy-builder-shim - 1.2.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
hierarchy-builder-shim
<small>
1.2.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-14 17:31:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-14 17:31: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-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.8.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Enrico Tassi <enrico.tassi@inria.fr>"
authors: [ "Cyril Cohen" "Kazuhiko Sakaguchi" "Enrico Tassi" ]
license: "MIT"
homepage: "https://github.com/math-comp/hierarchy-builder"
bug-reports: "https://github.com/math-comp/hierarchy-builder/issues"
dev-repo: "git+https://github.com/math-comp/hierarchy-builder"
build: [ make "-C" "shim" "build" ]
install: [ make "-C" "shim" "install" ]
conflicts: [ "coq-hierarchy-builder" ]
depends: [ "coq" {>= "8.10"} ]
synopsis: "Shim package for HB"
description: """
This package provide the support constants one can use to compile files
generated by HB.
"""
tags: [ "logpath:HB" ]
url {
src: "https://github.com/math-comp/hierarchy-builder/archive/v1.2.0.tar.gz"
checksum: "sha256=ff0f1b432aa7b6643b61c6f7c70bd32c2afc703bc44b5580e6229f9749ef9fff"
}
</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-hierarchy-builder-shim.1.2.0 coq.8.8.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.0).
The following dependencies couldn't be met:
- coq-hierarchy-builder-shim -> coq >= 8.10
Your request can'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-hierarchy-builder-shim.1.2.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.0/hierarchy-builder-shim/1.2.0.html | HTML | mit | 6,931 |
<html><body><p><!-- saved from url=(0024)http://docs.autodesk.com -->
<!DOCTYPE html>
<!-- Mirrored from help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/PyMel/generated/functions/pymel.core.runtime/pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 01 Aug 2015 05:34:57 GMT -->
<!-- Added by HTTrack --><meta content="text/html;charset=utf-8" http-equiv="content-type"/><!-- /Added by HTTrack -->
</p>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize — PyMEL 1.0.7 documentation</title>
<link href="../../../_static/nature.css" rel="stylesheet" type="text/css"/>
<link href="../../../_static/pygments.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../../',
VERSION: '1.0.7',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script src="../../../_static/jquery.js" type="text/javascript"></script>
<script src="../../../_static/underscore.js" type="text/javascript"></script>
<script src="../../../_static/doctools.js" type="text/javascript"></script>
<link href="../../../index-2.html" rel="top" title="PyMEL 1.0.7 documentation"/>
<link href="../../pymel.core.runtime.html" rel="up" title="pymel.core.runtime"/>
<link href="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim.html" rel="next" title="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim"/>
<link href="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize.html" rel="prev" title="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize"/>
<link href="../../../../style/adsk.cpm.css" rel="stylesheet" type="text/css"/><meta content="expert" name="experiencelevel"/><meta content="programmer" name="audience"/><meta content="enable" name="user-comments"/><meta content="ENU" name="language"/><meta content="MAYAUL" name="product"/><meta content="2016" name="release"/><meta content="Customization" name="book"/><meta content="Maya-Tech-Docs" name="component"/><meta content="/view/MAYAUL/2016/ENU/" name="helpsystempath"/><meta content="04/03/2015" name="created"/><meta content="04/03/2015" name="modified"/><meta content="Navigation
index
modules |
next |
previous |
PyMEL 1.0.7 documentation »
pymel.core.runtime »
pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize ¶
NodeEditorSetSmallNodeSwatchSize ( *args , **kwargs ) ¶
Previous topic
pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize
Next topic
pymel.core.runtime.NodeEditorSetTraversalDepthUnlim
Core Modules
animation
effects
general
language
modeling..." name="description"/><meta content="__PyMel_generated_functions_pymel_core_runtime_pymel_core_runtime_NodeEditorSetSmallNodeSwatchSize_html" name="topicid"/>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a accesskey="I" href="../../../genindex.html" title="General Index">index</a></li>
<li class="right">
<a href="../../../py-modindex.html" title="Python Module Index">modules</a> |</li>
<li class="right">
<a accesskey="N" href="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim.html" title="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim">next</a> |</li>
<li class="right">
<a accesskey="P" href="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize.html" title="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize">previous</a> |</li>
<li><a href="../../../index-2.html">PyMEL 1.0.7 documentation</a> »</li>
<li><a accesskey="U" href="../../pymel.core.runtime.html">pymel.core.runtime</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="pymel-core-runtime-nodeeditorsetsmallnodeswatchsize">
<h1>pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize<a class="headerlink" href="#pymel-core-runtime-nodeeditorsetsmallnodeswatchsize" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize"><a name="//apple_ref/cpp/Function/pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize"></a>
<tt class="descname">NodeEditorSetSmallNodeSwatchSize</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize.html" title="previous chapter">pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim.html" title="next chapter">pymel.core.runtime.NodeEditorSetTraversalDepthUnlim</a></p>
<h3><a href="../../../modules.html">Core Modules</a></h3>
<ul>
<li><a class="reference external" href="../../pymel.core.animation.html#module-pymel.core.animation"><tt class="xref">animation</tt></a></li>
<li><a class="reference external" href="../../pymel.core.effects.html#module-pymel.core.effects"><tt class="xref">effects</tt></a></li>
<li><a class="reference external" href="../../pymel.core.general.html#module-pymel.core.general"><tt class="xref">general</tt></a></li>
<li><a class="reference external" href="../../pymel.core.language.html#module-pymel.core.language"><tt class="xref">language</tt></a></li>
<li><a class="reference external" href="../../pymel.core.modeling.html#module-pymel.core.modeling"><tt class="xref">modeling</tt></a></li>
<li><a class="reference external" href="../../pymel.core.rendering.html#module-pymel.core.rendering"><tt class="xref">rendering</tt></a></li>
<li><a class="reference external" href="../../pymel.core.system.html#module-pymel.core.system"><tt class="xref">system</tt></a></li>
<li><a class="reference external" href="../../pymel.core.windows.html#module-pymel.core.windows"><tt class="xref">windows</tt></a></li>
</ul>
<h3><a href="../../../modules.html">Type Modules</a></h3>
<ul>
<li><a class="reference external" href="../../pymel.core.datatypes.html#module-pymel.core.datatypes"><tt class="xref">datatypes</tt></a></li>
<li><a class="reference external" href="../../pymel.core.nodetypes.html#module-pymel.core.nodetypes"><tt class="xref">nodetypes</tt></a></li>
<li><a class="reference external" href="../../pymel.core.uitypes.html#module-pymel.core.uitypes"><tt class="xref">uitypes</tt></a></li>
</ul>
<h3><a href="../../../modules.html">Other Modules</a></h3>
<ul>
<li><a class="reference external" href="../../pymel.api.plugins.html#module-pymel.api.plugins"><tt class="xref">plugins</tt></a></li>
<li><a class="reference external" href="../../pymel.mayautils.html#module-pymel.mayautils"><tt class="xref">mayautils</tt></a></li>
<li><a class="reference external" href="../../pymel.util.html#module-pymel.util"><tt class="xref">util</tt></a></li>
<li><a class="reference external" href="../../pymel.versions.html#module-pymel.versions"><tt class="xref">versions</tt></a>
</li><li><a class="reference external" href="../../pymel.tools.html#module-pymel.tools"><tt class="xref">tools</tt></a></li>
</ul>
<!--
<ul>
<li><a class="reference external" href="../../pymel.core.animation.html.html#module-pymel.core.animation"><tt class="xref">animation</tt></a></li>
<li><a class="reference external" href="../../pymel.core.datatypes.html.html#module-pymel.core.datatypes"><tt class="xref">datatypes</tt></a></li>
<li><a class="reference external" href="../../pymel.core.effects.html.html#module-pymel.core.effects"><tt class="xref">effects</tt></a></li>
<li><a class="reference external" href="../../pymel.core.general.html.html#module-pymel.core.general"><tt class="xref">general</tt></a></li>
<li><a class="reference external" href="../../pymel.core.language.html.html#module-pymel.core.language"><tt class="xref">language</tt></a></li>
<li><a class="reference external" href="../../pymel.core.modeling.html.html#module-pymel.core.modeling"><tt class="xref">modeling</tt></a></li>
<li><a class="reference external" href="../../pymel.core.nodetypes.html.html#module-pymel.core.nodetypes"><tt class="xref">nodetypes</tt></a></li>
<li><a class="reference external" href="../../pymel.core.rendering.html.html#module-pymel.core.rendering"><tt class="xref">rendering</tt></a></li>
<li><a class="reference external" href="../../pymel.core.system.html.html#module-pymel.core.system"><tt class="xref">system</tt></a></li>
<li><a class="reference external" href="../../pymel.core.windows.html.html#module-pymel.core.windows"><tt class="xref">windows</tt></a></li>
<li><a class="reference external" href="../../pymel.util.html.html#module-pymel.util"><tt class="xref">pymel.util</tt></a></li>
</ul>
-->
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../../_sources/generated/functions/pymel.core.runtime/pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize.txt" rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form action="http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/PyMel/search.html" class="search" method="get"></form>
<input name="q" type="text"/>
<input type="submit" value="Go"/>
<input name="check_keywords" type="hidden" value="yes"/>
<input name="area" type="hidden" value="default"/>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index">index</a></li>
<li class="right">
<a href="../../../py-modindex.html" title="Python Module Index">modules</a> |</li>
<li class="right">
<a href="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim.html" title="pymel.core.runtime.NodeEditorSetTraversalDepthUnlim">next</a> |</li>
<li class="right">
<a href="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize.html" title="pymel.core.runtime.NodeEditorSetLargeNodeSwatchSize">previous</a> |</li>
<li><a href="../../../index-2.html">PyMEL 1.0.7 documentation</a> »</li>
<li><a href="../../pymel.core.runtime.html">pymel.core.runtime</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2009, Chad Dombrova.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
<!-- Mirrored from help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/PyMel/generated/functions/pymel.core.runtime/pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 01 Aug 2015 05:34:57 GMT -->
</body></html> | alexwidener/PyMelDocset | PyMel.docset/Contents/Resources/Documents/generated/functions/pymel.core.runtime/pymel.core.runtime.NodeEditorSetSmallNodeSwatchSize.html | HTML | mit | 10,949 |
package com.alexstyl.specialdates.facebook.login;
import com.alexstyl.specialdates.facebook.UserCredentials;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class CredentialsExtractor {
private static final Pattern BIRTHDAY_PATTERN = Pattern.compile("(www.facebook.com/ical/b.php\\?uid=\\w+&key=.+?(?=\"))");
private static final String UID = "uid=";
private static final int UID_LENGTH = UID.length();
private static final String KEY = "key=";
private static final int KEY_LENGTH = KEY.length();
private static final int USER_DETAILS = 1;
private static final String OPENNING_SPAN = "<span>";
private static final String CLOSING_SPAN = "</span>";
UserCredentials extractCalendarURL(String pageSource) {
Matcher matcher = BIRTHDAY_PATTERN.matcher(pageSource);
if (matcher.find()) {
String url = matcher
.group(1)
.replace("&", "&");
String name = obtainName(pageSource);
return createFrom(url, name);
} else {
return UserCredentials.ANNONYMOUS;
}
}
static UserCredentials createFrom(String calendarURL, String name) {
int indexOfKey = calendarURL.indexOf(KEY);
int indexOfUserID = calendarURL.indexOf(UID);
int indexOfEnd = calendarURL.indexOf("&", indexOfUserID);
long userID = Long.parseLong(calendarURL.substring(indexOfUserID + UID_LENGTH, indexOfEnd));
String key = calendarURL.substring(indexOfKey + KEY_LENGTH);
return new UserCredentials(userID, key, name);
}
String obtainName(String pageSource) {
try {
String userDetails = pageSource.split("data-testid=\"blue_bar_profile_link\">")[USER_DETAILS];
int startOfName = userDetails.indexOf(OPENNING_SPAN) + OPENNING_SPAN.length();
int endOfName = userDetails.indexOf(CLOSING_SPAN);
return userDetails.substring(startOfName, endOfName);
} catch (Exception e) {
return "Facebook-User";
}
}
}
| pchrysa/Memento-Calendar | android_mobile/src/main/java/com/alexstyl/specialdates/facebook/login/CredentialsExtractor.java | Java | mit | 2,089 |
module DC
module Store
# An implementation of an AssetStore.
module AwsS3Store
if Rails.env.production?
BUCKET_NAME = 'dactyl-docs'
elsif Rails.env.staging?
BUCKET_NAME = 'dactyl-docs-qa'
else
BUCKET_NAME = 'dactyl-docs-dev'
end
AUTH_PERIOD = 5.minutes
IMAGE_EXT = /\.(gif|png|jpe?g)\Z/
DEFAULT_ACCESS = DC::Access::PUBLIC
# 60 seconds for persistent connections.
S3_PARAMS = {:connection_lifetime => 60}
ACCESS_TO_ACL = Hash.new(:private)
DC::Access::PUBLIC_LEVELS.each{ |level| ACCESS_TO_ACL[level] = :public_read }
module ClassMethods
def asset_root
Rails.env.production? ? "http://s3.documentcloud.org" : "http://s3.amazonaws.com/#{BUCKET_NAME}"
end
def web_root
Thread.current[:ssl] ? "https://s3.amazonaws.com/#{BUCKET_NAME}" : asset_root
end
end
def initialize
@key, @secret = DC::SECRETS['aws_access_key'], DC::SECRETS['aws_secret_key']
end
def read(path)
bucket.objects[path].read
end
def read_size(path)
bucket.objects[path].content_length
end
def authorized_url(path)
bucket.objects[path].url_for(:read, :secure => Thread.current[:ssl], :expires => AUTH_PERIOD).to_s
end
def list(path)
bucket.objects.with_prefix(path).map {|obj| obj.key }
end
def save_original(document, file_path, access=DEFAULT_ACCESS)
save_file_from_path(file_path, document.original_file_path, access)
end
def delete_original(document)
remove_file(document.original_file_path)
end
def save_pdf(document, pdf_path, access=DEFAULT_ACCESS)
save_file_from_path(pdf_path, document.pdf_path, access)
end
def save_insert_pdf(document, pdf_path, pdf_name, access=DEFAULT_ACCESS)
path = File.join(document.path, 'inserts', pdf_name)
save_file_from_path(pdf_path, path, access)
end
def delete_insert_pdfs(document)
path = File.join(document.pdf_path, 'inserts')
bucket.objects.with_prefix(path).delete_all
end
def save_full_text(document, access=DEFAULT_ACCESS)
save_file(document.combined_page_text, document.full_text_path, access)
end
def save_rdf(document, rdf, access=DEFAULT_ACCESS)
save_file(rdf, document.rdf_path, DC::Access::PRIVATE)
end
def save_page_images(document, page_number, images, access=DEFAULT_ACCESS)
Page::IMAGE_SIZES.keys.each do |size|
save_file_from_path(images[size], document.page_image_path(page_number, size), access) if images[size]
end
end
def delete_page_images(document, page_number)
Page::IMAGE_SIZES.keys.each do |size|
remove_file(document.page_image_path(page_number, size))
end
end
def save_page_text(document, page_number, text, access=DEFAULT_ACCESS)
save_file(text, document.page_text_path(page_number), access, :string => true)
end
def delete_page_text(document, page_number)
remove_file(document.page_text_path(page_number))
end
def save_database_backup(name, path)
bucket.objects["backups/#{name}/#{Date.today}.dump"].write(File.open(path))
end
# This is going to be *extremely* expensive. We can thread it, but
# there must be a better way somehow. (running in the background for now)
def set_access(document, access)
save_permissions(document.pdf_path, access)
save_permissions(document.full_text_path, access)
document.pages.each do |page|
save_permissions(document.page_text_path(page.page_number), access)
Page::IMAGE_SIZES.keys.each do |size|
save_permissions(document.page_image_path(page.page_number, size), access)
end
end
true
end
def read_original(document)
read document.original_file_path
end
def read_pdf(document)
read document.pdf_path
end
def destroy(document)
bucket.objects.with_prefix(document.path).delete_all
end
# Duplicate all of the assets from one document over to another.
def copy_assets(source, destination, access)
[:copy_pdf, :copy_images, :copy_text].each do |task|
send(task, source, destination, access)
end
true
end
def copy_text(source, destination, access)
bucket.objects[source.full_text_path].copy_to(destination.full_text_path, :acl => ACCESS_TO_ACL[access])
source.pages.each do |page|
num = page.page_number
source_object = bucket.objects[source.page_text_path(num)]
options = {:acl => ACCESS_TO_ACL[access], :content_type => content_type(source.page_text_path(num))}
source_object.copy_to(destination.page_text_path(num), options)
end
true
end
def copy_images(source, destination, access)
source.pages.each do |page|
num = page.page_number
Page::IMAGE_SIZES.keys.each do |size|
source_object = bucket.objects[source.page_image_path(num, size)]
options = {:acl => ACCESS_TO_ACL[access], :content_type => content_type(source.page_text_path(num))}
source_object.copy_to(destination.page_image_path(num, size), options)
end
end
true
end
def copy_rdf(source, destination, access)
source_object = bucket.objects[source.rdf_path]
options = {:acl => ACCESS_TO_ACL[access], :content_type => content_type(source.rdf_path)}
source_object.copy_to(destination.rdf_path, options)
true
end
def copy_pdf(source, destination, access)
source_object = bucket.objects[source.pdf_path]
options = {:acl => ACCESS_TO_ACL[access], :content_type => content_type(source.pdf_path)}
source_object.copy_to(destination.pdf_path, options)
true
end
private
def s3
@s3 ||= create_s3
end
def create_s3
::AWS::S3.new(:access_key_id => @key, :secret_access_key => @secret)
end
def secure_s3
@secure_s3 ||= ::AWS::S3.new(:access_key_id => @key, :secret_access_key => @secret, :secure => true)
end
def bucket
@bucket ||= (s3.buckets[BUCKET_NAME].exists? ? s3.buckets[BUCKET_NAME] : s3.buckets.create(BUCKET_NAME))
end
def content_type(s3_path)
Mime::Type.lookup_by_extension(File.extname(s3_path)).to_s
end
# Saves a local file to a location on S3, and returns the public URL.
# Set the expires headers for a year, if the file is an image -- text,
# HTML and JSON may change.
def save_file(contents, s3_path, access, opts={})
destination = bucket.objects[s3_path]
options = opts.merge(:acl => ACCESS_TO_ACL[access], :content_type => content_type(s3_path))
destination.write(contents, options)
destination.public_url({ :secure => Thread.current[:ssl] }).to_s
end
def save_file_from_path(file_path, s3_path, access, opts ={})
save_file(File.open(file_path), s3_path, access, opts )
end
# Remove a file from S3.
def remove_file(s3_path)
bucket.objects[s3_path].delete
end
def save_permissions(s3_path, access)
bucket.objects[s3_path].copy_to(s3_path, :acl => ACCESS_TO_ACL[access], :content_type => content_type(s3_path))
end
end
end
end
| roberttdev/dactyl4 | lib/dc/store/aws_s3_store.rb | Ruby | mit | 7,779 |
// Copyright © 2019 Oxford Nanopore Technologies.
//
// 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 cmd
import (
"encoding/csv"
"fmt"
"math"
"os"
"runtime"
"strconv"
"time"
"github.com/bsipos/thist"
"github.com/shenwei356/xopen"
"github.com/spf13/cobra"
)
// watchCmd represents the seq command
var watchCmd = &cobra.Command{
Use: "watch",
Short: "monitor the specified fields",
Long: "monitor the specified fields",
Run: func(cmd *cobra.Command, args []string) {
config := getConfigs(cmd)
files := getFileListFromArgsAndFile(cmd, args, true, "infile-list", true)
runtime.GOMAXPROCS(config.NumCPUs)
printField := getFlagString(cmd, "field")
printPdf := getFlagString(cmd, "image")
printFreq := getFlagInt(cmd, "print-freq")
printDump := getFlagBool(cmd, "dump")
printLog := getFlagBool(cmd, "log")
printQuiet := getFlagBool(cmd, "quiet")
printDelay := getFlagInt(cmd, "delay")
printReset := getFlagBool(cmd, "reset")
if printDelay < 0 {
printDelay = 0
}
printBins := getFlagInt(cmd, "bins")
printPass := getFlagBool(cmd, "pass")
if printFreq > 0 {
config.ChunkSize = printFreq
}
if config.Tabs {
config.OutDelimiter = rune('\t')
}
outfh, err := xopen.Wopen(config.OutFile)
checkError(err)
defer outfh.Close()
writer := csv.NewWriter(outfh)
if config.OutTabs || config.Tabs {
if config.OutDelimiter == ',' {
writer.Comma = '\t'
} else {
writer.Comma = config.OutDelimiter
}
} else {
writer.Comma = config.OutDelimiter
}
binMode := "termfit"
if printBins > 0 {
binMode = "fixed"
}
h := thist.NewHist([]float64{}, printField, binMode, printBins, true)
transform := func(x float64) float64 { return x }
if printLog {
transform = func(x float64) float64 {
return math.Log10(x + 1)
}
}
field2col := make(map[string]int)
var col int
if config.NoHeaderRow {
if len(printField) == 0 {
checkError(fmt.Errorf("flag -f (--field) needed"))
}
pcol, err := strconv.Atoi(printField)
if err != nil {
checkError(fmt.Errorf("illegal field number: %s", printField))
}
col = pcol - 1
if col < 0 {
checkError(fmt.Errorf("illegal field number: %d", pcol))
}
}
if printField == "" {
checkError(fmt.Errorf("flag -f (--field) needed"))
}
var count int
var i int
var p float64
for _, file := range files {
csvReader, err := newCSVReaderByConfig(config, file)
checkError(err)
csvReader.Run()
isHeaderLine := !config.NoHeaderRow
checkField := true
for chunk := range csvReader.Ch {
checkError(chunk.Err)
for _, record := range chunk.Data {
if isHeaderLine {
for i, column := range record {
field2col[column] = i
}
isHeaderLine = false
if printPass {
checkError(writer.Write(record))
}
continue
} // header
i = col
if !config.NoHeaderRow {
var ok bool
i, ok = field2col[printField]
if !ok {
checkError(fmt.Errorf("invalid field specified: %s", printField))
}
} else if checkField {
if i > len(record) {
checkError(fmt.Errorf(`field (%d) out of range (%d) in file: %s`, i+1, len(record), file))
}
checkField = false
}
p, err = strconv.ParseFloat(record[i], 64)
if err == nil {
count++
h.Update(transform(p))
if printPass {
checkError(writer.Write(record))
}
} else {
continue
}
if printFreq > 0 && count%printFreq == 0 {
if printDump {
os.Stderr.Write([]byte(h.Dump()))
} else {
if !printQuiet {
os.Stderr.Write([]byte(thist.ClearScreenString()))
os.Stderr.Write([]byte(h.Draw()))
}
if printPdf != "" {
h.SaveImage(printPdf)
}
}
outfh.Flush()
if printReset {
h = thist.NewHist([]float64{}, printField, binMode, printBins, true)
}
time.Sleep(time.Duration(printDelay) * time.Second)
}
} // record
} //chunk
} //file
if printFreq < 0 || count%printFreq != 0 {
if printDump {
os.Stderr.Write([]byte(h.Dump()))
} else {
if !printQuiet {
os.Stderr.Write([]byte(thist.ClearScreenString()))
os.Stderr.Write([]byte(h.Draw()))
}
}
outfh.Flush()
if printPdf != "" {
h.SaveImage(printPdf)
}
}
},
}
func init() {
RootCmd.AddCommand(watchCmd)
watchCmd.Flags().StringP("field", "f", "", "field to watch")
watchCmd.Flags().IntP("print-freq", "p", -1, "print/report after this many records (-1 for print after EOF)")
watchCmd.Flags().StringP("image", "O", "", "save histogram to this PDF/image file")
watchCmd.Flags().IntP("delay", "W", 1, "sleep this many seconds after plotting")
watchCmd.Flags().IntP("bins", "B", -1, "number of histogram bins")
watchCmd.Flags().BoolP("dump", "y", false, "print histogram data to stderr instead of plotting")
watchCmd.Flags().BoolP("log", "L", false, "log10(x+1) transform numeric values")
watchCmd.Flags().BoolP("reset", "R", false, "reset histogram after every report")
watchCmd.Flags().BoolP("pass", "x", false, "passthrough mode (forward input to output)")
watchCmd.Flags().BoolP("quiet", "Q", false, "supress all plotting to stderr")
}
| shenwei356/csvtk | csvtk/cmd/watch.go | GO | mit | 6,279 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zchinese: 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.13.1 / zchinese - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
zchinese
<small>
8.8.0
<span class="label label-info">Not compatible 👼</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: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/zchinese"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/ZChinese"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: number theory" "keyword: chinese remainder" "keyword: primality" "keyword: prime numbers" "category: Mathematics/Arithmetic and Number Theory/Number theory" "category: Miscellaneous/Extracted Programs/Arithmetic" ]
authors: [ "Valérie Ménissier-Morain" ]
bug-reports: "https://github.com/coq-contribs/zchinese/issues"
dev-repo: "git+https://github.com/coq-contribs/zchinese.git"
synopsis: "A proof of the Chinese Remainder Lemma"
description:
"This is a rewriting of the contribution chinese-lemma using Zarith"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/zchinese/archive/v8.8.0.tar.gz"
checksum: "md5=46cbe3ab4981c19e25fd19410d63ab03"
}
</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-zchinese.8.8.0 coq.8.13.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.13.1).
The following dependencies couldn't be met:
- coq-zchinese -> coq < 8.9~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-zchinese.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.2-2.0.6/released/8.13.1/zchinese/8.8.0.html | HTML | mit | 7,002 |
// Copyright (c) 2011-2015 The Gtacoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qvaluecombobox.h"
QValueComboBox::QValueComboBox(QWidget *parent) :
QComboBox(parent), role(Qt::UserRole)
{
connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(handleSelectionChanged(int)));
}
QVariant QValueComboBox::value() const
{
return itemData(currentIndex(), role);
}
void QValueComboBox::setValue(const QVariant &value)
{
setCurrentIndex(findData(value, role));
}
void QValueComboBox::setRole(int role)
{
this->role = role;
}
void QValueComboBox::handleSelectionChanged(int idx)
{
Q_EMIT valueChanged();
}
| gtacoin-dev/gtacoin | src/qt/qvaluecombobox.cpp | C++ | mit | 759 |
(function(window, document){
var chart;
var pressure_chart;
var lasttime;
function drawCurrent(data)
{
var tempDHT, tempBMP;
if (data.count_dht022 > 0)
{
lasttime = data.humidity[data.count_dht022-1][0];
tempDHT = data.temperature_dht022[data.count_dht022-1][1];
document.querySelector("span#humidityDHT022").innerHTML = data.humidity[data.count_dht022-1][1];
var date = new Date(lasttime);
document.querySelector("span#time").innerHTML = date.toTimeString();
}
if (data.count_bmp180 > 0)
{
lasttime = data.temperature_bmp180[data.count_bmp180-1][0];
tempBMP = data.temperature_bmp180[data.count_bmp180-1][1];
document.querySelector("span#pressureBMP180").innerHTML = data.pressure[data.count_bmp180-1][1] + 'mm hg (' + (data.pressure[data.count_bmp180-1][1] / 7.50061561303).toFixed(2) + ' kPa)' ;
var date = new Date(lasttime);
document.querySelector("span#time").innerHTML = date.toTimeString();
}
document.querySelector("span#temperature").innerHTML = '<abbr title="BMP180 ' + tempBMP + ', DHT022 ' + tempDHT + '">' + ((tempDHT + tempBMP)/2).toFixed(1) + '</abbr>';
document.querySelector("span#lastupdate").innerHTML = new Date().toTimeString();
}
function requestDelta()
{
$.ajax({
url: 'weather_new.php?mode=delta&delta='+lasttime,
datatype: "json",
success: function(data)
{
var i;
if (data.count > 0) {
for(i=0; i<data.count_dht022;i++)
chart.series[0].addPoint(data.temperature_dht022[i], false, true);
for(i=0; i<data.count_dht022;i++)
chart.series[1].addPoint(data.humidity[i], false, true);
for(i=0; i<data.count_bmp180;i++)
chart.series[0].addPoint(data.temperature_bmp180[i], false, true);
for(i=0; i<data.count_bmp180;i++)
pressure_chart.series[0].addPoint(data.pressure[i], false, true);
chart.redraw();
pressure_chart.redraw();
}
drawCurrent(data);
}
});
}
function requestData()
{
var daterange = document.querySelector("select#daterange").value;
if (!daterange)
daterange = "today";
$.ajax({
url: 'weather_new.php?mode='+daterange,
datatype: "json",
success: function(data)
{
chart.series[0].setData(data.temperature_dht022);
chart.series[1].setData(data.humidity);
chart.series[2].setData(data.temperature_bmp180);
pressure_chart.series[0].setData(data.pressure);
drawCurrent(data);
setInterval(requestDelta, 5 * 60 * 1000);
}
});
}
$(document).ready(function() {
Highcharts.setOptions({
global: {
useUTC: false
}
});
chart = new Highcharts.Chart({
chart: {
renderTo: 'graph',
type: 'spline',
events: {
load: requestData
}
},
title: {
text: 'Monitoring'
},
tooltip: {
shared: true
},
xAxis: {
type: 'datetime',
maxZoom: 20 * 1000
},
yAxis: {
min: 10,
minPadding: 0.2,
maxPadding: 0.2,
title: {
text: 'Temperature/Humidity',
margin: 80
}
},
series: [{
name: 'Temperature DHT022',
data: []
},
{
name: 'Humidity',
data: []
},
{
name: 'Temperature BMP180',
data: []
}]
});
pressure_chart = new Highcharts.Chart({
chart: {
renderTo: 'pressure_graph',
type: 'spline',
events: {
load: requestData
}
},
title: {
text: 'Pressure monitoring'
},
tooltip: {
shared: true
},
xAxis: {
type: 'datetime',
maxZoom: 20 * 1000
},
yAxis: {
min: 700,
minPadding: 0.2,
maxPadding: 0.2,
title: {
text: 'Pressure',
margin: 80
}
},
series: [{
name: 'Pressure',
data: []
}]
});
$('select#daterange').change(function() {requestData();});
});
})(window, document)
| AndriiZ/RaspberryPI | SmartHouse/site/js/chart.js | JavaScript | mit | 4,178 |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>使用帮助</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no, email=no" /><!-- 忽略页面中的数字识别为电话,忽略email识别 -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<article class="wrap">
<dl class="use-item">
<dt><i class="icon"></i>提现支持哪些银行?</dt>
<dd>目前支持中国银行、农业银行、建设银行、工商银行、兴业银行、浦发银行、交通银行、招商银行</dd>
</dl>
</article>
</body>
</html>
| MaiyaT/AongQ | QNote/QNote/vc/HTMLWebview/useHTML/use-item2.html | HTML | mit | 832 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Warriors extends CI_Controller
{
public function __construct()
{
parent:: __construct();
$this->layout->setLayout('template');
}
public function index()
{
if($this->session->userdata('logged_in'))
{
//nombre de usuario con data['username']
//$session_data = $this->session->userdata('logged_in');
//$data['username'] = $session_data['usuario'];
$datos=$this->Equipos_model->getEquipos();
$this->layout->view('index',compact("datos"));
}
else
{
$this->load->helper(array('form'));
$this->load->view('login/login_view');
}
}
public function nuevo()
{
if($this->session->userdata('logged_in'))
{
if($this->input->post())
{
if($this->form_validation->run("warriors/nuevo"))
{
$datos=array
(
'dyndns' => $this->input->post("dyn",true),
'usuario' => $this->input->post("usua",true),
'contrasena' => base64_encode($this->input->post("pass",true))
);
$guardar=$this->Equipos_model->insertarEquipos($datos);
if($guardar)
{
$this->session->set_flashdata('ControllerMessage', 'Se ha agragado el ususario exitosamente');
redirect(base_url().'warriors/index', 301);
}
else
{
$this->session->set_flashdata('ControllerMessage', 'Se ha producido un error. Inténtelo de nuevo.');
redirect(base_url().'warriors/new', 301);
}
}
}
$this->layout->view('new');
}
else
{
$this->load->helper(array('form'));
$this->load->view('login/login_view');
}
}
public function show($id=null)
{
if($this->session->userdata('logged_in'))
{
$datos = $this->Equipos_model->showEquipo($id);
$this->layout->view('show',compact("datos"));
}
else
{
$this->load->helper(array('form'));
$this->load->view('login/login_view');
}
}
public function edit($id=null)
{
if($this->session->userdata('logged_in'))
{
if($this->input->post())
{
if($this->form_validation->run("warriors/nuevo"))
{
$datos=array
(
'dyndns'=> $this->input->post("dyn",true),
'usuario'=> $this->input->post("usua",true),
'contrasena'=> sha1($this->input->post('pas',true))
);
$guardar=$this->Equipos_model->editEquipos($datos,$id);
if($guardar)
{
$this->session->set_flashdata('ControllerMessage', 'Se ha editado el ususario exitosamente');
redirect(base_url().'warriors/index', 301);
}
else
{
$this->session->set_flashdata('ControllerMessage', 'Se ha producido un error. Inténtelo de nuevo.');
redirect(base_url().'warriors/edit/'.$id, 301);
}
}
}
$datos=$this->Equipos_model->getEditEquipos($id);
if(sizeof($datos) == 0)
{
show_404();
}
$this->layout->view('edit',compact("datos"));
}
else
{
$this->load->helper(array('form'));
$this->load->view('login/login_view');
}
}
public function iframe($id=null)
{
if($this->session->userdata('logged_in'))
{
$datos = $this->Equipos_model->iframeEquipo($id);
$pass =base64_decode($datos->contrasena);
$this->layout->view('iframe',compact("datos","pass"));
}
else
{
$this->load->helper(array('form'));
$this->load->view('login/login_view');
}
}
public function delete($id=null)
{
if($this->session->userdata('logged_in'))
{
$guardar=$this->Equipos_model->eliminar($id);
if($guardar)
{
$this->session->set_flashdata('ControllerMessage', 'Se ha eliminado el ususario exitosamente');
redirect(base_url().'usuario/index', 301);
}
else
{
$this->session->set_flashdata('ControllerMessage', 'Se ha producido un error. Inténtelo de nuevo.');
redirect(base_url().'usuario/index', 301);
}
}
else
{
$this->load->helper(array('form'));
$this->load->view('login/login_view');
}
}
public function logout()
{
$this->session->unset_userdata('logged_in');
session_destroy();
redirect('Login', 'refresh');
}
}
| RosaGarcia/panelwd | application/controllers/Warriors.php | PHP | mit | 5,569 |
* {
box-sizing: border-box;
}
html,
body,
#root,
.App {
width: 100%;
height: 100%;
margin: 0;
}
/* Margin outside of App*/
.App {
padding-left: 1rem;
padding-right: 1rem;
}
/* But, Menu is full width */
.App-menu {
margin-right: -1rem;
margin-left: -1rem;
}
.App-main {
padding-bottom: 1rem;
border-bottom: 1px dashed #3498db;
}
.App-left {
border-right: 1px dashed #3498db;
}
.App-left,
.App-right {
text-align: center;
}
| proofdict/proofdict | packages/@proofdict/editor/src/component/container/App/AppContainer.css | CSS | mit | 477 |
<?php
require_once ('vendor/autoload.php');
use com\realexpayments\hpp\sdk\domain\HppRequest;
use com\realexpayments\hpp\sdk\RealexHpp;
$hppRequest = ( new HppRequest() )
->addCardStorageEnable( "1" )
->addOfferSaveCard( "0" )
->addPayerExists( "0" )
->addMerchantId( "hackathon12" )
->addAccount( "internet" )
->addAmount( $_POST['AMOUNT'] )
->addCurrency( $_POST['CURRENCY'] )
->addAutoSettleFlag( "1" );
$realexHpp = new RealexHpp( "secret" );
$requestJson = $realexHpp->requestToJson( $hppRequest );
echo $requestJson
?> | KotCHackers/RealexHackServerPayment | hppRequestProducer.php | PHP | mit | 560 |
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
using Dapper.FluentMap.Mapping;
namespace Dapper.FluentMap.Dommel.Mapping
{
/// <summary>
/// Represents mapping of a property for Dommel.
/// </summary>
public class DommelPropertyMap : PropertyMapBase<DommelPropertyMap>, IPropertyMap
{
/// <summary>
/// Initializes a new instance of the <see cref="DommelPropertyMap"/> class
/// with the specified <see cref="PropertyInfo"/> object.
/// </summary>
/// <param name="info">The information about the property.</param>
public DommelPropertyMap(PropertyInfo info) : base(info)
{
}
/// <summary>
/// Gets a value indicating whether this property is a primary key.
/// </summary>
public bool Key { get; private set; }
/// <summary>
/// Gets a value indicating whether this primary key is an identity.
/// </summary>
public bool Identity { get; set; }
/// <summary>
/// Gets a value indicating how the column is generated.
/// </summary>
public DatabaseGeneratedOption? GeneratedOption { get; set; }
/// <summary>
/// Specifies the current property as key for the entity.
/// </summary>
/// <returns>The current instance of <see cref="DommelPropertyMap"/>.</returns>
public DommelPropertyMap IsKey()
{
Key = true;
return this;
}
/// <summary>
/// Specifies the current property as an identity.
/// </summary>
/// <returns>The current instance of <see cref="DommelPropertyMap"/>.</returns>
public DommelPropertyMap IsIdentity()
{
Identity = true;
return this;
}
/// <summary>
/// Specifies how the property is generated.
/// </summary>
public DommelPropertyMap SetGeneratedOption(DatabaseGeneratedOption option)
{
GeneratedOption = option;
return this;
}
}
}
| henkmollema/Dapper-FluentMap | src/Dapper.FluentMap.Dommel/Mapping/DommelPropertyMap.cs | C# | mit | 2,106 |
#include "c2_exercise_1.h"
GLchar *c2_exercise_1::vertexSource()
{
return
"#version 150\n"
"in vec2 position;"
"void main() {"
" gl_Position = vec4(position.x, -position.y, 0.0, 1.0);"
"}";
}
void c2_exercise_1::run()
{
super::run();
} | danlbarron/Open.GL-Demos | Open.GL Demos/src/c2_exercise_1.cpp | C++ | mit | 250 |
<html>
<head>
<title>Tanveer Ahmed's panel show appearances</title>
<script type="text/javascript" src="../common.js"></script>
<link rel="stylesheet" media="all" href="../style.css" type="text/css"/>
<script type="text/javascript" src="../people.js"></script>
<!--#include virtual="head.txt" -->
</head>
<body>
<!--#include virtual="nav.txt" -->
<div class="page">
<h1>Tanveer Ahmed's panel show appearances</h1>
<p>Tanveer Ahmed has appeared in <span class="total">2</span> episodes between 2009-2011. <a href="https://en.wikipedia.org/wiki/Tanveer_Ahmed">Tanveer Ahmed on Wikipedia</a>.</p>
<div class="performerholder">
<table class="performer">
<tr style="vertical-align:bottom;">
<td><div style="height:100px;" class="performances male" title="1"></div><span class="year">2009</span></td>
<td><div style="height:0px;" class="performances male" title=""></div><span class="year">2010</span></td>
<td><div style="height:100px;" class="performances male" title="1"></div><span class="year">2011</span></td>
</tr>
</table>
</div>
<ol class="episodes">
<li><strong>2011-10-31</strong> / <a href="../shows/qanda.html">Q&A</a></li>
<li><strong>2009-03-12</strong> / <a href="../shows/qanda.html">Q&A</a></li>
</ol>
</div>
</body>
</html>
| slowe/panelshows | people/zkdpltf3.html | HTML | mit | 1,270 |
class AddPassword < ActiveRecord::Migration[5.0]
def change
add_column :users, :password, :string
end
end
| mintii/atKarma | db/migrate/20160827201934_add_password.rb | Ruby | mit | 113 |
#region License
// Copyright (C) Tomáš Pažourek, 2014
// All rights reserved.
//
// Distributed under MIT license as a part of project Colourful.
// https://github.com/tompazourek/Colourful
#endregion
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
#if (NET40 || NET35)
using Vector = System.Collections.Generic.IList<double>;
using Matrix = System.Collections.Generic.IList<System.Collections.Generic.IList<double>>;
#else
using Vector = System.Collections.Generic.IReadOnlyList<double>;
using Matrix = System.Collections.Generic.IReadOnlyList<System.Collections.Generic.IReadOnlyList<double>>;
#endif
namespace Colourful
{
/// <summary>
/// Color represented as a vector in its color space
/// </summary>
public interface IColorVector
{
Vector Vector { get; }
}
} | ibebbs/Colourful | src/Colourful/Colors/IColorVector.cs | C# | mit | 873 |
'use strict';
//Translations service used for translations REST endpoint
angular.module('mean.translations').factory('deleteTranslations', ['$resource',
function($resource) {
return $resource('deleteTranslations/:translationId', {
translationId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
]);
| Luka111/TDRAnketa | packages/translations/public/services/deleteTranslations.js | JavaScript | mit | 337 |
package org.anddev.andengine.util;
/**
* @author Nicolas Gramlich
* @since 12:32:22 - 26.12.2010
*/
public interface IMatcher<T> {
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
public boolean matches(final T pObject);
}
| liufeiit/itmarry | source/android-game/PlantsVsBugs/src/org/anddev/andengine/util/IMatcher.java | Java | mit | 464 |
package org.codehaus.mojo.natives.c;
/*
* The MIT License
*
* Copyright (c) 2004, The Codehaus
*
* 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.
*/
/**
* Generic C/CPP linker with "-o" as its output option
*/
public class CLinkerClassic
extends CLinker
{
protected String getLinkerOutputOption()
{
return "-o ";
}
}
| dukeboard/maven-native-plugin | maven-native-components/maven-native-generic-c/src/main/java/org/codehaus/mojo/natives/c/CLinkerClassic.java | Java | mit | 1,369 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Sci blog jekyll theme">
<meta name="author" content="AIR RAYA Group">
<link href='/MyBlog/img/favicon.ico' type='image/icon' rel='shortcut icon'/>
<title>泽民博客 | Jekyll theme</title>
<link rel="stylesheet" href="/MyBlog/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="/MyBlog/css/font-awesome.min.css">
<link href="/MyBlog/css/simple-sidebar.css" rel="stylesheet">
<link href="/MyBlog/css/classic-10_7.css" rel="stylesheet" type="text/css">
<!-- Custom CSS -->
<link href="/MyBlog/css/style.css" rel="stylesheet">
<link href="/MyBlog/css/pygments.css" rel="stylesheet">
<!-- Fonts -->
<link href="/MyBlog/css/front.css" rel="stylesheet" type="text/css">
<link href="/MyBlog/css/Josefin_Slab.css" rel="stylesheet" type="text/css">
<link href="/MyBlog/css/Architects_Daughter.css" rel="stylesheet" type="text/css">
<link href="/MyBlog/css/Schoolbell.css" rel="stylesheet" type="text/css">
<link href="/MyBlog/css/Codystar.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/MyBlog/js/jquery-1.12.0.min.js"></script>
<link href="/MyBlog/css/calendar/common.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/MyBlog/js/calendar/calendar.js"></script>
<!-- share this -->
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="/MyBlog/js/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "b28464c3-d287-4257-ad18-058346dd35f7", doNotHash: false, doNotCopy: false, hashAddressBar: false});</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="/MyBlog/js/html5shiv.js"></script>
<script src="/MyBlog/js/respond.min.js"></script>
<![endif]-->
<!--百度统计-->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?e965cab8c73512b8b23939e7051d93bd";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script async src="/MyBlog/katex/katex.js"></script>
<link rel="stylesheet" href="/MyBlog/katex/katex.css">
<!--轮播图片-->
<!--script type="text/javascript" src="https://xiazemin.github.io/MyBlog/js/jquery.js"></script>
<script type="text/javascript" src="https://xiazemin.github.io/MyBlog/js/jquery.stripesrotator.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert($('#rotator_xzm'));
alert($('#rotator_xzm').fn);
$('#rotator_xzm').stripesRotator({ images: [ "https://xiazemin.github.io/MyBlog/img/BPlusTree.png", "https://xiazemin.github.io/MyBlog/img/linuxMMap.jpeg"] });
});
</script-->
<!--水印-->
<script type="text/javascript" src="/MyBlog/js/waterMark.js"></script>
<script type="text/javascript">
$(document).ready(function(){
watermark({watermark_txt0:'泽民博客',watermark_txt1:'zemin',watermark_txt2:(new Date()).Format("yyyy-MM-dd hh:mm:ss.S")});
})
</script>
<!--水印-->
<!--adscene-->
<script data-ad-client="ca-pub-6672721494777557" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="/MyBlog">
Home
</a>
</li>
<li>
<a href="#">About</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">Portfolio</a>
</li>
<li>
<a href="#">Events</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">FAQ</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</div>
<header class="intro-header">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading text-center">
<a href="https://xiazemin.github.io/MyBlog/" style="color: #fff; font-size: 4em; font-family: 'Schoolbell', cursive;">泽民博客</a>
<a href="#menu-toggle" class="btn btn-default sciblog" id="menu-toggle" style="font-weight: bold;">☰ Menu</a>
</div>
</div>
</div>
</div>
</header>
<script async src="/MyBlog/js/busuanzi.pure.mini.js"></script>
<script type="text/javascript" src="/MyBlog/js/jquery.js"></script>
<script type="text/javascript" src="/MyBlog/js/jquery.stripesrotator.js"></script>
<div class="container">
<div class="row">
<div class="box">
<div class="col-lg-12">
<div class="intro-text text-center">
<h1 class="post-title" itemprop="name headline">gdb on mac</h1>
<p class="post-meta"> <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">by 夏泽民</span></span> <time datetime="2021-08-21T00:00:00+08:00" itemprop="datePublished"><i class="fa fa-calendar"></i> Aug 21, 2021</time></p>
</div>
<p>https://blog.csdn.net/github_33873969/article/details/78511733<br />
http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.gz</p><br />
<br />
<!-- more --><br />
<p>https://blog.csdn.net/wj1066/article/details/83653153</p><br />
<br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<span class='st_email_large' displayText='Email'></span>
</div>
Category golang
</div>
</div>
<!--赞-->
<div class="row">
<div class="col-lg-6">
<img src="https://xiazemin.github.io/MyBlog/img/webwxgetmsgimg.jpeg" height="400" width="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="disqus_thread"></div>
<div id="gitmentContainer"></div>
<link rel="stylesheet" href="/MyBlog/css/default.css">
<script src="/MyBlog/js/gitment.browser.js"></script>
<script type="text/javascript" src="/MyBlog/js/json2.js"></script>
<script>
var gitment = new Gitment({
owner: 'xiazemin',
repo: 'MyBlogComment',
oauth: {
client_id: '981ba8c916c262631ea0',
client_secret: 'a52260ef92de69011ccd1cf355b973ef11d6da0e',
},
});
var MyGitmentContainer=gitment.render('gitmentContainer');
window.setTimeout(MyGitMentBtnclick,1000);
//document.ready(function(){
//window.onload=function(){}
function MyGitMentBtnclick(){
//var MyGitmentContainer=document.getElementById('gitmentContainer');
var ele=[],all=MyGitmentContainer.getElementsByTagName("*");
for(var i=0;i<all.length;i++){
if(all[i].className=='gitment-comments-init-btn'){
MyGitMentBtn=all[i];
console.log(MyGitMentBtn);
MyGitMentBtn.click();
}
}
}
</script>
<!--script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//airrayagroup.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
<script id="dsq-count-scr" src="//airrayagroup.disqus.com/count.js" async></script-->
</div>
</div>
</div>
<hr>
<footer>
<div class="container">
<a href="/MyBlog/" style="color: green; font-size: 2em; font-family: 'Schoolbell', cursive;">首页</a>
<div class="row">
<div class="col-lg-6">
<p>Copyright © 2017 465474307@qq.com <p>
</div>
<div class="col-lg-6">
<p style="float: right;">Jekyll theme by <a href="https://github.com/xiazemin/">夏泽民</a></p>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="/MyBlog/js/jquery-1.12.0.min.js"></script>
<script src="/MyBlog/js/jquery-migrate-1.2.1.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="/MyBlog/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"6","bdPos":"right","bdTop":"100"},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='/MyBlog/shareapi/js/share.js?v=89860593.js?'];</script>
<!-- 2d -->
<script type="text/javascript" charset="utf-8" src="/MyBlog/js/L2Dwidget.0.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/MyBlog/js/L2Dwidget.min.js"></script>
<script type="text/javascript">
setTimeout(()=> {
/*L2Dwidget.init({"display": {
"superSample": 2,
"width": 200,
"height": 400,
"position": "right",
"hOffset": 0,
"vOffset": 0
}
});
*/
L2Dwidget
.on('*', (name) => {
console.log('%c EVENT ' + '%c -> ' + name, 'background: #222; color: yellow', 'background: #fff; color: #000')
})
.init({
dialog: {
// 开启对话框
enable: true,
script: {
// 每空闲 10 秒钟,显示一条一言
'every idle 10s': '$hitokoto$',
// 当触摸到星星图案
'hover .star': '星星在天上而你在我心里 (*/ω\*)',
// 当触摸到角色身体
'tap body': '哎呀!别碰我!',
// 当触摸到角色头部
'tap face': '人家已经不是小孩子了!'
}
}
});
})
</script>
<!--html xmlns:wb="http://open.weibo.com/wb">
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
<wb:follow-button uid="2165491993" type="red_1" width="67" height="24" ></wb:follow-button-->
<!--本文来自-->
<script type="text/javascript">
/* 仅IE
document.body.oncopy = function(){
setTimeout(
function () {
var text =window.clipboardData.getData("text");
if (text) {
text = text + "/r/n本篇文章来源于 xiazemin 的 泽民博客|https://xiazemin.github.io/MyBlog/index.html 原文链接:"+location.href; clipboardData.setData("text", text);
}
},
100 )
}
*/
//绑定在了body上,也可以绑定在其他可用元素行,但是不是所有元素都支持copy和past事件。
/*
$(document.body).bind({
copy: function(event) {//copy事件
//var cpTxt = "复制的数据";
var clipboardData = window.clipboardData; //for IE
if (!clipboardData) { // for chrome
clipboardData = event.originalEvent.clipboardData;
}
if (event.clipboardData != null/false/undefined) { //ignore the incorrectness of the truncation
clipboarddata = event.clipboardData;
} else if (window.clipboardData != null/false/undefined) {
clipboarddata = window.clipboardData;
} else { //default to the last option even if it is null/false/undefined
clipboarddata = event.originalEvent.clipboardData;
}
//e.clipboardData.getData('text');//可以获取用户选中复制的数据
//clipboardData.setData('Text', cpTxt);
alert(clipboarddata.getData('text'));
//$('#message').text('Copy Data : ' + cpTxt);
return false;//否则设不生效
},paste: function(e) {//paste事件
var eve = e.originalEvent
var cp = eve.clipboardData;
var data = null;
var clipboardData = window.clipboardData; // IE
if (!clipboardData) { //chrome
clipboardData = e.originalEvent.clipboardData
}
data = clipboardData.getData('Text');
//$('#message').html(data);
}
});
*/
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br /><br />本文来源:xiazemin 的 泽民博客 <a href='"+document.location.href+"'>"+document.location.href+"</a>";
//+document.location.href+当前页面链接
var copy_text = selection + pagelink;
console.log(copy_text);
var new_div = document.createElement('div');
new_div.style.left='-99999px';
new_div.style.position='absolute';
body_element.appendChild(new_div );
new_div.innerHTML = copy_text ;
selection.selectAllChildren(new_div );
window.setTimeout(function() {
body_element.removeChild(new_div );
},0);
}
document.oncopy = addLink;
</script>
<!--本文来自-->
</div>
</body>
</html> | xiazemin/MyBlog | golang/2021/08/21/gdb.html | HTML | mit | 15,051 |
/* Copyright © 2010 Richard G. Todd.
* Licensed under the terms of the Microsoft Public License (Ms-PL).
*/
using Prolog.Code;
namespace Prolog.Grammar
{
// BinaryOp400 ::= OpMultiply *
// ::= OpDivide /
// ::= OpRemainder rem
// ::= OpModulo mod
// ::= OpShiftLeft <<
// ::= OpShiftRight >>
//
internal sealed class BinaryOp400 : PrologNonterminal
{
#region Fields
private CodeFunctor m_codeFunctor;
#endregion
#region Rules
public static void Rule(BinaryOp400 lhs, OpMultiply op)
{
lhs.CodeFunctor = new CodeFunctor(op.Text, 2, true);
}
public static void Rule(BinaryOp400 lhs, OpDivide op)
{
lhs.CodeFunctor = new CodeFunctor(op.Text, 2, true);
}
public static void Rule(BinaryOp400 lhs, OpRemainder op)
{
lhs.CodeFunctor = new CodeFunctor(op.Text, 2, true);
}
public static void Rule(BinaryOp400 lhs, OpModulo op)
{
lhs.CodeFunctor = new CodeFunctor(op.Text, 2, true);
}
public static void Rule(BinaryOp400 lhs, OpShiftLeft op)
{
lhs.CodeFunctor = new CodeFunctor(op.Text, 2, true);
}
public static void Rule(BinaryOp400 lhs, OpShiftRight op)
{
lhs.CodeFunctor = new CodeFunctor(op.Text, 2, true);
}
#endregion
#region Public Properties
public CodeFunctor CodeFunctor
{
get { return m_codeFunctor; }
private set { m_codeFunctor = value; }
}
#endregion
}
}
| AdugoGame/AdugoGameProject | Adugo/Prolog/Grammar/Nonterminals/BinaryOp400.cs | C# | mit | 1,731 |
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using GitHub.Models;
namespace GitHub.VisualStudio.UI.Controls
{
public partial class AccountAvatar : UserControl, ICommandSource
{
public static readonly DependencyProperty AccountProperty =
DependencyProperty.Register(
nameof(Account),
typeof(object),
typeof(AccountAvatar));
public static readonly DependencyProperty CommandProperty =
ButtonBase.CommandProperty.AddOwner(typeof(AccountAvatar));
public static readonly DependencyProperty CommandParameterProperty =
ButtonBase.CommandParameterProperty.AddOwner(typeof(AccountAvatar));
public static readonly DependencyProperty CommandTargetProperty =
ButtonBase.CommandTargetProperty.AddOwner(typeof(AccountAvatar));
public AccountAvatar()
{
InitializeComponent();
}
public object Account
{
get { return GetValue(AccountProperty); }
set { SetValue(AccountProperty, value); }
}
public ICommand Command
{
get { return (ICommand)GetValue(CommandProperty); }
set { SetValue(CommandProperty, value); }
}
public object CommandParameter
{
get { return GetValue(CommandParameterProperty); }
set { SetValue(CommandParameterProperty, value); }
}
public IInputElement CommandTarget
{
get { return (IInputElement)GetValue(CommandTargetProperty); }
set { SetValue(CommandTargetProperty, value); }
}
}
}
| github/VisualStudio | src/GitHub.VisualStudio.UI/UI/Controls/AccountAvatar.xaml.cs | C# | mit | 1,741 |
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/export.hpp>
#include <iostream>
#include <sstream>
#include <string>
std::stringstream ss;
class person
{
public:
person()
{
}
person(int age)
: age_(age)
{
}
virtual int age() const
{
return age_;
}
private:
friend class boost::serialization::access;
template <typename Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & age_;
}
int age_;
};
class developer
: public person
{
public:
developer()
{
}
developer(int age, const std::string &language)
: person(age), language_(language)
{
}
std::string language() const
{
return language_;
}
private:
friend class boost::serialization::access;
template <typename Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & boost::serialization::base_object<person>(*this);
ar & language_;
}
std::string language_;
};
void save()
{
boost::archive::text_oarchive oa(ss);
oa.register_type<developer>();
person *p = new developer(31, "C++");
oa << p;
delete p;
}
void load()
{
boost::archive::text_iarchive ia(ss);
ia.register_type<developer>();
person *p;
ia >> p;
std::cout << p->age() << std::endl;
delete p;
}
int main()
{
save();
load();
} | goodspeed24e/Programming | Boost/The Boost C++ Libraries/src/11.4.3/main.cpp | C++ | mit | 1,488 |
use std::path::Path;
use std::fs::File;
use std::io::prelude::*;
use std::env;
pub fn check_extension(path: &Path, valid_ext: &[&str]) -> bool {
let ext = &path.extension().expect("The file has no extension").to_str().expect("Extension is not valid utf8");
for vext in valid_ext.iter() {
if vext == ext {
return true;
}
}
false
}
pub fn read_file(path_str: &str) -> String {
let mut path = env::current_dir().unwrap();
path.push(Path::new(path_str));
if !path.exists() {
panic!("Error reading file, path {} doesn't exist.", path.display());
}
let mut f = match File::open(&path) {
Ok(f) => f,
Err(msg) => panic!("Error reading file {} : {}.", path.display(), msg)
};
// read bytes and return as str
let mut bytes = Vec::new();
match f.read_to_end(&mut bytes) {
Ok(_) => {
match String::from_utf8(bytes) {
Ok(s) => s,
Err(msg) => panic!("Found non valid utf8 characters in {} : {}.", path.display(), msg)
}
},
Err(msg) => panic!("Error reading file {} : {}.", path.display(), msg)
}
} | Adrien-radr/radar-rs | src/system/filesystem.rs | Rust | mit | 1,182 |
// Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_ANIMATIONCLIPNODE_6B87052F_HPP
#define POMDOG_ANIMATIONCLIPNODE_6B87052F_HPP
#include "Pomdog.Experimental/Skeletal2D/AnimationNode.hpp"
#include <memory>
namespace Pomdog {
class AnimationClip;
namespace Detail {
namespace Skeletal2D {
class AnimationClipNode final: public AnimationNode {
public:
AnimationClipNode(std::shared_ptr<AnimationClip> const& animationClip);
void Calculate(AnimationTimeInterval const& time,
Detail::Skeletal2D::AnimationGraphWeightCollection const& weights,
Skeleton const& skeleton,
SkeletonPose & skeletonPose) const override;
AnimationTimeInterval Length() const override;
private:
std::shared_ptr<AnimationClip> clip;
};
} // namespace Skeletal2D
} // namespace Detail
} // namespace Pomdog
#endif // POMDOG_ANIMATIONCLIPNODE_6B87052F_HPP
| bis83/pomdog | experimental/Pomdog.Experimental/Skeletal2D/detail/AnimationClipNode.hpp | C++ | mit | 947 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-finmap: 1 m 20 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 / extra-dev</a></li>
<li class="active"><a href="">8.10.0 / mathcomp-finmap - 1.4.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-finmap
<small>
1.4.0
<span class="label label-success">1 m 20 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2020-07-29 03:23:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-29 03:23:42 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.10.0 Formal proof management system
num 1.3 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.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Cyril Cohen <cyril.cohen@inria.fr>"
homepage: "https://github.com/math-comp/finmap"
bug-reports: "https://github.com/math-comp/finmap/issues"
dev-repo: "git+https://github.com/math-comp/finmap.git"
license: "CeCILL-B"
build: [ make "-j" "%{jobs}%" ]
install: [ make "install" ]
depends: [
"coq" { (>= "8.7" & < "8.11.1") }
"coq-mathcomp-ssreflect" { (>= "1.8.0" & < "1.11~") }
"coq-mathcomp-bigenough" { (>= "1.0.0" & < "1.1~") }
]
tags: [ "keyword:finmap" "keyword:finset" "keyword:multiset" "keyword:order" "date:2019-11-27" "logpath:mathcomp.finmap"]
authors: [ "Cyril Cohen <cyril.cohen@inria.fr>" "Kazuhiko Sakaguchi <sakaguchi@coins.tsukuba.ac.jp>" ]
synopsis: "Finite sets, finite maps, finitely supported functions, orders"
description: """
This library is an extension of mathematical component in order to
support finite sets and finite maps on choicetypes (rather that finite
types). This includes support for functions with finite support and
multisets. The library also contains a generic order and set libary,
which will be used to subsume notations for finite sets, eventually."""
url {
src: "https://github.com/math-comp/finmap/archive/1.4.0.tar.gz"
checksum: "sha256=ed145e6b1be9fcc215d4de20a17d64bc8772f0a2afc2372a318733882ea69ad2"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-finmap.1.4.0 coq.8.10.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 2h opam install -y --deps-only coq-mathcomp-finmap.1.4.0 coq.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>1 m 40 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v coq-mathcomp-finmap.1.4.0 coq.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>1 m 20 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 6 M</p>
<ul>
<li>1 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/order.glob</code></li>
<li>1 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/order.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/finmap.glob</code></li>
<li>1 M <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/finmap.vo</code></li>
<li>281 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/multiset.glob</code></li>
<li>269 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/multiset.vo</code></li>
<li>256 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/set.vo</code></li>
<li>232 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/set.glob</code></li>
<li>230 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/order.v</code></li>
<li>136 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/finmap.v</code></li>
<li>36 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/set.v</code></li>
<li>33 K <code>../ocaml-base-compiler.4.08.1/lib/coq/user-contrib/mathcomp/finmap/multiset.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-mathcomp-finmap.1.4.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/8.10.0/mathcomp-finmap/1.4.0.html | HTML | mit | 8,579 |
<?php
namespace YouFood\ChainBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* RestaurantRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class RestaurantRepository extends EntityRepository
{
} | amdiakhate/yTeam | src/YouFood/ChainBundle/Entity/RestaurantRepository.php | PHP | mit | 270 |
/**
* @flow
*/
import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Textarea from './Textarea';
storiesOf('<Textarea />', module)
.add('Default state', () => <Textarea />)
.add('Error state', () => <Textarea error />)
.add('Disabled state', () => <Textarea disabled />)
.add('No border variant', () => <Textarea noBorder />);
| prometheusresearch/react-ui | src/Textarea.story.js | JavaScript | mit | 364 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_socket_acceptor::protocol_type</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
<link rel="prev" href="operator_eq_/overload2.html" title="basic_socket_acceptor::operator= (2 of 2 overloads)">
<link rel="next" href="receive_buffer_size.html" title="basic_socket_acceptor::receive_buffer_size">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="operator_eq_/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="receive_buffer_size.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_asio.reference.basic_socket_acceptor.protocol_type"></a><a class="link" href="protocol_type.html" title="basic_socket_acceptor::protocol_type">basic_socket_acceptor::protocol_type</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="idp70570024"></a>
The protocol type.
</p>
<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">Protocol</span> <span class="identifier">protocol_type</span><span class="special">;</span>
</pre>
<h6>
<a name="boost_asio.reference.basic_socket_acceptor.protocol_type.h0"></a>
<span class="phrase"><a name="boost_asio.reference.basic_socket_acceptor.protocol_type.requirements"></a></span><a class="link" href="protocol_type.html#boost_asio.reference.basic_socket_acceptor.protocol_type.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/basic_socket_acceptor.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
</p>
</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 © 2003-2013 Christopher M. Kohlhoff<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="operator_eq_/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="receive_buffer_size.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
| laborautonomo/poedit | deps/boost/doc/html/boost_asio/reference/basic_socket_acceptor/protocol_type.html | HTML | mit | 3,988 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">dev / monae - 0.1.2</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
monae
<small>
0.1.2
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-19 18:24:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-19 18:24:42 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq dev Formal proof management system
dune 2.9.1 Fast, portable, and opinionated build system
ocaml 4.11.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.2 Official release 4.11.2
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "reynald.affeldt@aist.go.jp"
homepage: "https://github.com/affeldt-aist/monae"
bug-reports: "https://github.com/affeldt-aist/monae/issues"
dev-repo: "git+https://github.com/affeldt-aist/monae.git"
license: "GPL-3.0-or-later"
authors: [
"Reynald Affeldt"
"David Nowak"
"Takafumi Saikawa"
"Jacques Garrigue"
"Celestine Sauvage"
"Kazunari Tanaka"
]
build: [
[make "-j%{jobs}%"]
[make "sect5"]
[make "-C" "impredicative_set"]
]
install: [
[make "install"]
]
depends: [
"coq" { >= "8.11" & < "8.13~" }
"coq-infotheo" { >= "0.1.2" & < "0.2~" }
"coq-paramcoq" { >= "1.1.2" & < "1.2~" }
]
synopsis: "Monae"
description: """
This repository contains a formalization of monads including several
models, examples of monadic equational reasoning, and an application
to program semantics.
"""
tags: [
"category:Computer Science/Semantics and Compilation/Semantics"
"keyword: monads"
"keyword: effects"
"keyword: probability"
"keyword: nondeterminism"
"logpath:monae"
"date:2020-08-13"
]
url {
http: "https://github.com/affeldt-aist/monae/archive/0.1.2.tar.gz"
checksum: "sha512=fc06a3dc53e180940478ca8ec02755432c1fb29b6ed81f3312731a1d0435dbe67e78db5201a92e40c7f23068fc5d9343414fc06676bf3adf402836e8c69b0229"
}
</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-monae.0.1.2 coq.dev</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is dev).
The following dependencies couldn't be met:
- coq-monae -> coq < 8.13~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
Your request can'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-monae.0.1.2</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.11.2-2.0.7/extra-dev/dev/monae/0.1.2.html | HTML | mit | 7,482 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>flocq: 24 m 54 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 / flocq - 3.1.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
flocq
<small>
3.1.0
<span class="label label-success">24 m 54 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-30 00:15:10 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-30 00:15:10 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.9.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "guillaume.melquiond@inria.fr"
homepage: "https://flocq.gitlabpages.inria.fr/"
dev-repo: "git+https://gitlab.inria.fr/flocq/flocq.git"
bug-reports: "https://gitlab.inria.fr/flocq/flocq/issues"
license: "LGPL-3.0-or-later"
build: [
["./configure" "--libdir" "%{lib}%/coq/user-contrib/Flocq"]
["./remake" "-j%{jobs}%"]
]
install: ["./remake" "install"]
depends: [
"coq" {>= "8.7" & < "8.10~"}
]
tags: [ "keyword:floating-point arithmetic" ]
authors: [ "Sylvie Boldo <sylvie.boldo@inria.fr>" "Guillaume Melquiond <guillaume.melquiond@inria.fr>" ]
synopsis: "A floating-point formalization for the Coq system"
url {
src: "https://flocq.gitlabpages.inria.fr/releases/flocq-3.1.0.tar.gz"
checksum: "md5=44c56098e1b9e65db38226d3377b4680"
}
</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-flocq.3.1.0 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-flocq.3.1.0 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>13 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-flocq.3.1.0 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>24 m 54 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 12 M</p>
<ul>
<li>5 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Pff/Pff.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Double_rounding.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Pff/Pff.v</code></li>
<li>592 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/IEEE754/Binary.vo</code></li>
<li>323 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Pff/Pff2Flocq.vo</code></li>
<li>241 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Ulp.vo</code></li>
<li>194 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Generic_fmt.vo</code></li>
<li>180 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Raux.vo</code></li>
<li>167 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Div_sqrt_error.vo</code></li>
<li>165 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/IEEE754/Bits.vo</code></li>
<li>157 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Round_odd.vo</code></li>
<li>154 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Double_rounding.v</code></li>
<li>149 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Digits.vo</code></li>
<li>144 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Round.vo</code></li>
<li>134 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FLT.vo</code></li>
<li>129 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Relative.vo</code></li>
<li>121 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Pff/Pff2FlocqAux.vo</code></li>
<li>110 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Bracket.vo</code></li>
<li>107 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Round_pred.vo</code></li>
<li>101 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Zaux.vo</code></li>
<li>95 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Round_NE.vo</code></li>
<li>93 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Plus_error.vo</code></li>
<li>88 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/IEEE754/Binary.v</code></li>
<li>87 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Mult_error.vo</code></li>
<li>86 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Pff/Pff2Flocq.v</code></li>
<li>82 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FTZ.vo</code></li>
<li>78 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FLX.vo</code></li>
<li>70 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Float_prop.vo</code></li>
<li>67 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Div.vo</code></li>
<li>66 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Sqrt.vo</code></li>
<li>65 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Ulp.v</code></li>
<li>52 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Operations.vo</code></li>
<li>51 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Generic_fmt.v</code></li>
<li>50 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Sterbenz.vo</code></li>
<li>49 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Raux.v</code></li>
<li>44 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FIX.vo</code></li>
<li>43 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Defs.vo</code></li>
<li>39 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Core.vo</code></li>
<li>32 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Round_odd.v</code></li>
<li>31 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Round.v</code></li>
<li>30 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Div_sqrt_error.v</code></li>
<li>29 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Round_pred.v</code></li>
<li>29 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Relative.v</code></li>
<li>27 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Digits.v</code></li>
<li>24 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Pff/Pff2FlocqAux.v</code></li>
<li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Version.vo</code></li>
<li>20 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/IEEE754/Bits.v</code></li>
<li>20 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Zaux.v</code></li>
<li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Bracket.v</code></li>
<li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Plus_error.v</code></li>
<li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Round_NE.v</code></li>
<li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Float_prop.v</code></li>
<li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FLT.v</code></li>
<li>10 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Mult_error.v</code></li>
<li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FLX.v</code></li>
<li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FTZ.v</code></li>
<li>5 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Sqrt.v</code></li>
<li>5 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Div.v</code></li>
<li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Prop/Sterbenz.v</code></li>
<li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Calc/Operations.v</code></li>
<li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Defs.v</code></li>
<li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/FIX.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Version.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/Flocq/Core/Core.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-flocq.3.1.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.9.1/flocq/3.1.0.html | HTML | mit | 13,842 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hoare-tut: 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.13.2 / hoare-tut - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
hoare-tut
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-03-02 03:01:05 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-02 03:01: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 4 Virtual package relying on a GMP lib system installation
coq 8.13.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.09.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.09.1 Official release 4.09.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/hoare-tut"
license: "GNU LGPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/HoareTut"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [
"keyword: Hoare logic"
"keyword: imperative program"
"keyword: weakest precondition"
"keyword: reflection"
"category: Mathematics/Logic"
"category: Computer Science/Semantics and Compilation/Semantics"
"date: 2007"
]
authors: [ "Sylvain Boulmé <Sylvain.Boulme@imag.fr> [http://www-verimag.imag.fr/~boulme]" ]
bug-reports: "https://github.com/coq-contribs/hoare-tut/issues"
dev-repo: "git+https://github.com/coq-contribs/hoare-tut.git"
synopsis: "A Tutorial on Reflecting in Coq the generation of Hoare proof obligations"
description: """
http://www-verimag.imag.fr/~boulme/HOARE_LOGIC_TUTORIAL/
This work is both an introduction to Hoare logic and a demo
illustrating Coq nice features. It formalizes the generation of PO
(proof obligations) in a Hoare logic for a very basic imperative
programming language. It proves the soundness and the completeness of
the PO generation both in partial and total correctness. At last, it
examplifies on a very simple example (a GCD computation) how the PO
generation can simplify concrete proofs. Coq is indeed able to compute
PO on concrete programs: we say here that the generation of proof
obligations is reflected in Coq. Technically, the PO generation is
here performed through Dijkstra's weakest-precondition calculus."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/hoare-tut/archive/v8.8.0.tar.gz"
checksum: "md5=31d7a345fbab2173d5771d6e52b55cba"
}
</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-hoare-tut.8.8.0 coq.8.13.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.13.2).
The following dependencies couldn't be met:
- coq-hoare-tut -> coq < 8.9~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-hoare-tut.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.13.2/hoare-tut/8.8.0.html | HTML | mit | 7,903 |
<?php namespace Wing\Command;
use Symfony\Component\Console\Command\Command;
/**
* @author yuyi
* @email 297341015@qq.com
*
* worker console control
*/
class ServerBase extends Command
{
}
| jilieryuyi/wing-binlog | src/Command/ServerBase.php | PHP | mit | 211 |
<?php
require_once 'connect.php';
?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<title>Media Poll</title>
<meta charset="ISO-8859-1">
<link href="/theme.css" rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,300' rel='stylesheet' type='text/css'>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link href="/plugins/jquery-ui/css/ui-darkness/jquery-ui-1.10.4.custom.css" rel="stylesheet">
<script src="/plugins/jquery-ui/js/jquery-ui-1.10.4.custom.js"></script>
</head>
<body>
<?php include_once("analyticstracking.php") ?>
<div class="padding"></div> | austindebruyn/media-poll | includes/header.php | PHP | mit | 663 |
/* jshint node:true */
// var RSVP = require('rsvp');
// For details on each option run `ember help release`
module.exports = {
// local: true,
// remote: 'some_remote',
// annotation: "Release %@",
// message: "Bumped version to %@",
manifest: [ 'package.json', 'package-lock.json']
// publish: true,
// strategy: 'date',
// format: 'YYYY-MM-DD',
// timezone: 'America/Los_Angeles',
//
// beforeCommit: function(project, versions) {
// return new RSVP.Promise(function(resolve, reject) {
// // Do custom things here...
// });
// }
};
| mu-semtech/transform-helpers-ember-addon | config/release.js | JavaScript | mit | 574 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8" />
<title> Return - GlosoTech </title>
<meta content="" name="keywords"/>
<meta id="description" content="" name="description"/>
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery-1.6.4.js"></script>
<script type="text/javascript" src="/js/default.js"></script>
<script type="text/javascript" src="/js/index.js"></script>
<script type="text/javascript" src="/gadmin/js/json/json2.js"></script>
<script type="text/javascript" src="/css/thickbox/js/thickbox.js"></script>
<link rel="stylesheet" type="text/css" href="/css/thickbox/css/thickbox.css"/>
<script type="text/javascript" src="/gadmin/js/pubfun.js"></script>
</head>
<body>
<!-- 导航 -->
<div id="top"></div>
<div class="productMain sitemap clearfix">
<div class="sitemapHome fl">
<p class="sHome"><span>Home</span></p>
<div class="sList">
<ul><li><span>about</span>
<ul>
<li><a href="/about/about.html">· About GLOSO</a></li>
<li><a href="/contact/contact.html">· Contact Us</a></li>
<li><a href="/news/event.html">· Events</a></li>
<li><a href="/exhibition/trade.html">· Trade Shows</a></li>
</ul>
</li>
<li><span>Account</span>
<ul>
<li><a href="/usermgr/myAccount.html">· My Profile</a></li>
<li><a href="/account/account-2.html">· My Order</a></li>
<li><a href="/account/account-3.html">· Modify Address</a></li>
<li><a href="/account/account-4.html">· Funds Management</a></li>
<li><a href="/account/account-5.html">· Returns Management</a></li>
</ul>
</li>
<li><span>Terms & Conditions</span>
<ul>
<li><a href="javascript:void(0);" onclick="toTerm();return false;" >· Terms & Conditions</a></li>
<li><a href="/product/cross.html">· Cross Reference</a></li>
<li><a href="/product/productList.html">· Privacy</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="sitemapHome sitemapProduct fl">
<p class="sHome"><span>Products</span></p>
<div class="sList" id="productList"></div>
</div>
</div>
<!-- 页脚 -->
<div id="foot"></div>
</body>
<script type="text/javascript">
window.onload = function(){
getProdute();
}
function getProdute(){
var fromErp=GetCookie("fromErp");
if(fromErp==""||fromErp==null){fromErp="USA";setFromErpCookie("USA");}
$.post("/Clientmgr.do?method=selectProduteGroup", {fromErp:fromErp}, function (json) {
if (json != null && json.returnState == true) {
var data = json.data;
var context = $("#productList");
context.html("");
if (data != null && data.length > 0) {
var h = new Array();
for (var i = 0; i < data.length; i++) {
var bean = data[i];
h.push("<ul><li><span href='javascript:void(0);' onclick=show(this);>"+bean.shortName+"</span>\r\n");
h.push("<ul>\r\n");
if(bean.goods.length>0){
for(var j=0;j<bean.goods.length;j++){
var beantwo = bean.goods[j];
h.push("<li><a href='javascript:void(0);' onclick=showProduct('"+ beantwo.typeId+"')>· "+beantwo.shortName+"</a></li>\r\n");
}
}
h.push('</ul>\r\n');
h.push('</li>\r\n');
h.push('</ul>\r\n');
}
context.append(h.join(""));
}
}
}, "json");
}
function show(v){
$(v).toggleClass("on").next("ul").toggle();
}
</script>
</html>
| linfongi/gloso | glosob2c/product/sitemap.html | HTML | mit | 3,614 |
import { Loop, LoopOptions } from "./Loop";
import { PatternGenerator, PatternName } from "./PatternGenerator";
import { ToneEventCallback } from "./ToneEvent";
import { optionsFromArguments } from "../core/util/Defaults";
import { Seconds } from "../core/type/Units";
import { noOp } from "../core/util/Interface";
export interface PatternOptions<ValueType> extends LoopOptions {
pattern: PatternName;
values: ValueType[];
callback: (time: Seconds, value?: ValueType) => void;
}
/**
* Pattern arpeggiates between the given notes
* in a number of patterns.
* @example
* const pattern = new Tone.Pattern((time, note) => {
* // the order of the notes passed in depends on the pattern
* }, ["C2", "D4", "E5", "A6"], "upDown");
* @category Event
*/
export class Pattern<ValueType> extends Loop<PatternOptions<ValueType>> {
readonly name: string = "Pattern";
/**
* The pattern generator function
*/
private _pattern: Iterator<ValueType>;
/**
* The current value
*/
private _value?: ValueType;
/**
* Hold the pattern type
*/
private _type: PatternName;
/**
* Hold the values
*/
private _values: ValueType[];
/**
* The callback to be invoked at a regular interval
*/
callback: (time: Seconds, value?: ValueType) => void;
/**
* @param callback The callback to invoke with the event.
* @param values The values to arpeggiate over.
* @param pattern The name of the pattern
*/
constructor(
callback?: ToneEventCallback<ValueType>,
values?: ValueType[],
pattern?: PatternName,
);
constructor(options?: Partial<PatternOptions<ValueType>>);
constructor() {
super(optionsFromArguments(Pattern.getDefaults(), arguments, ["callback", "values", "pattern"]));
const options = optionsFromArguments(Pattern.getDefaults(), arguments, ["callback", "values", "pattern"]);
this.callback = options.callback;
this._values = options.values;
this._pattern = PatternGenerator(options.values, options.pattern);
this._type = options.pattern;
}
static getDefaults(): PatternOptions<any> {
return Object.assign(Loop.getDefaults(), {
pattern: "up" as "up",
values: [],
callback: noOp,
});
}
/**
* Internal function called when the notes should be called
*/
protected _tick(time: Seconds): void {
const value = this._pattern.next() as IteratorResult<ValueType>;
this._value = value.value;
this.callback(time, this._value);
}
/**
* The array of events.
*/
get values(): ValueType[] {
return this._values;
}
set values(val) {
this._values = val;
// reset the pattern
this.pattern = this._type;
}
/**
* The current value of the pattern.
*/
get value(): ValueType | undefined {
return this._value;
}
/**
* The pattern type. See Tone.CtrlPattern for the full list of patterns.
*/
get pattern(): PatternName {
return this._type;
}
set pattern(pattern) {
this._type = pattern;
this._pattern = PatternGenerator(this._values, this._type);
}
}
| TONEnoTONE/Tone.js | Tone/event/Pattern.ts | TypeScript | mit | 2,964 |
# tizen_gles_sample
Sample GLES 3.0 application for Tizen
This application use Elemantary GLView for GLES rendering in Tizen.
UI framework made by C and Simple Renderer (BasicRenderer) made by C++.
The callback functions for GLView (init_gl, draw_gl, etc.) invoke renderer functions.
## Current Work
1. Coloring
2. Texturing
3. Vertex Lighting
4. Fragment Lighting
5. Cube Mapping
6. Normal Mapping
7. Instanced Rendering
9. Dynamic Cube Mapping
10. Shadow Mapping
11. Transform Feedback
12. Multiple Render Targets(MRT)
## Work in Progress
8. 2D Array Texturing
##Library
This project used
- glm (OpenGL Mathematics - A C++ mathematics library for graphics programming)
- <http://glm.g-truc.net/0.9.7/index.html>
| grayish/tizen_gles_sample | README.md | Markdown | mit | 722 |
module Rgc
class Keygen
def initialize(global_options, options, args)
if File.exists?(path = args.first)
abort "Key file already exists."
end
begin
File.open(path, 'w') do |f|
f.write(generate_secure_key)
end
rescue
abort "Cannot open #{path} for writing."
end
end
private
def generate_secure_key
OpenSSL::Cipher.new("AES-128-CBC").random_key
end
end
end
| JiriChara/rgc | lib/rgc/keygen.rb | Ruby | mit | 457 |
module.exports = function(player, playerSpec) {
return ('data:image/svg+xml;utf-8,' +
encodeURIComponent(
`<svg width="${playerSpec.width}" height="${playerSpec.height}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${playerSpec.width} ${playerSpec.height}" version="1.1" class="mapSvg"> \
<circle cx="${playerSpec.width/2}" cy="${playerSpec.height/2}" r="${playerSpec.height/4}" class="mapSvg__player" stroke="${playerSpec[player].color}" fill="${playerSpec[player].color}"/> \
</svg>`
)
);
};
| BoardFellows/scotland-yard-frontend | frontend/app/components/game/board/player-svg.js | JavaScript | mit | 529 |
<html><body>
<h4>Windows 10 x64 (18362.116)</h4><br>
<h2>_ACTIVATION_CONTEXT_STACK64</h2>
<font face="arial"> +0x000 ActiveFrame : Uint8B<br>
+0x008 FrameListCache : <a href="./LIST_ENTRY64.html">LIST_ENTRY64</a><br>
+0x018 Flags : Uint4B<br>
+0x01c NextCookieSequenceNumber : Uint4B<br>
+0x020 StackId : Uint4B<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18362.116)/_ACTIVATION_CONTEXT_STACK64.html | HTML | mit | 378 |
"""
pyexcel_xls
~~~~~~~~~~~~~~~~~~~
The lower level xls/xlsm file format handler using xlrd/xlwt
:copyright: (c) 2016-2017 by Onni Software Ltd
:license: New BSD License
"""
import sys
import math
import datetime
import xlrd
from xlwt import Workbook, XFStyle
from pyexcel_io.book import BookReader, BookWriter
from pyexcel_io.sheet import SheetReader, SheetWriter
PY2 = sys.version_info[0] == 2
if PY2 and sys.version_info[1] < 7:
from ordereddict import OrderedDict
else:
from collections import OrderedDict
DEFAULT_DATE_FORMAT = "DD/MM/YY"
DEFAULT_TIME_FORMAT = "HH:MM:SS"
DEFAULT_DATETIME_FORMAT = "%s %s" % (DEFAULT_DATE_FORMAT, DEFAULT_TIME_FORMAT)
class XLSheet(SheetReader):
"""
xls, xlsx, xlsm sheet reader
Currently only support first sheet in the file
"""
def __init__(self, sheet, auto_detect_int=True, **keywords):
SheetReader.__init__(self, sheet, **keywords)
self.__auto_detect_int = auto_detect_int
@property
def name(self):
return self._native_sheet.name
def number_of_rows(self):
"""
Number of rows in the xls sheet
"""
return self._native_sheet.nrows
def number_of_columns(self):
"""
Number of columns in the xls sheet
"""
return self._native_sheet.ncols
def cell_value(self, row, column):
"""
Random access to the xls cells
"""
cell_type = self._native_sheet.cell_type(row, column)
value = self._native_sheet.cell_value(row, column)
if cell_type == xlrd.XL_CELL_DATE:
value = xldate_to_python_date(value)
elif cell_type == xlrd.XL_CELL_NUMBER and self.__auto_detect_int:
if is_integer_ok_for_xl_float(value):
value = int(value)
return value
class XLSBook(BookReader):
"""
XLSBook reader
It reads xls, xlsm, xlsx work book
"""
def __init__(self):
BookReader.__init__(self)
self._file_content = None
def open(self, file_name, **keywords):
BookReader.open(self, file_name, **keywords)
self._get_params()
def open_stream(self, file_stream, **keywords):
BookReader.open_stream(self, file_stream, **keywords)
self._get_params()
def open_content(self, file_content, **keywords):
self._keywords = keywords
self._file_content = file_content
self._get_params()
def close(self):
if self._native_book:
self._native_book.release_resources()
def read_sheet_by_index(self, sheet_index):
self._native_book = self._get_book(on_demand=True)
sheet = self._native_book.sheet_by_index(sheet_index)
return self.read_sheet(sheet)
def read_sheet_by_name(self, sheet_name):
self._native_book = self._get_book(on_demand=True)
try:
sheet = self._native_book.sheet_by_name(sheet_name)
except xlrd.XLRDError:
raise ValueError("%s cannot be found" % sheet_name)
return self.read_sheet(sheet)
def read_all(self):
result = OrderedDict()
self._native_book = self._get_book()
for sheet in self._native_book.sheets():
if self.skip_hidden_sheets and sheet.visibility != 0:
continue
data_dict = self.read_sheet(sheet)
result.update(data_dict)
return result
def read_sheet(self, native_sheet):
sheet = XLSheet(native_sheet, **self._keywords)
return {sheet.name: sheet.to_array()}
def _get_book(self, on_demand=False):
if self._file_name:
xls_book = xlrd.open_workbook(self._file_name, on_demand=on_demand)
elif self._file_stream:
self._file_stream.seek(0)
file_content = self._file_stream.read()
xls_book = xlrd.open_workbook(
None,
file_contents=file_content,
on_demand=on_demand
)
elif self._file_content is not None:
xls_book = xlrd.open_workbook(
None,
file_contents=self._file_content,
on_demand=on_demand
)
else:
raise IOError("No valid file name or file content found.")
return xls_book
def _get_params(self):
self.skip_hidden_sheets = self._keywords.get(
'skip_hidden_sheets', True)
class XLSheetWriter(SheetWriter):
"""
xls sheet writer
"""
def set_sheet_name(self, name):
"""Create a sheet
"""
self._native_sheet = self._native_book.add_sheet(name)
self.current_row = 0
def write_row(self, array):
"""
write a row into the file
"""
for i, value in enumerate(array):
style = None
tmp_array = []
if isinstance(value, datetime.datetime):
tmp_array = [
value.year, value.month, value.day,
value.hour, value.minute, value.second
]
value = xlrd.xldate.xldate_from_datetime_tuple(tmp_array, 0)
style = XFStyle()
style.num_format_str = DEFAULT_DATETIME_FORMAT
elif isinstance(value, datetime.date):
tmp_array = [value.year, value.month, value.day]
value = xlrd.xldate.xldate_from_date_tuple(tmp_array, 0)
style = XFStyle()
style.num_format_str = DEFAULT_DATE_FORMAT
elif isinstance(value, datetime.time):
tmp_array = [value.hour, value.minute, value.second]
value = xlrd.xldate.xldate_from_time_tuple(tmp_array)
style = XFStyle()
style.num_format_str = DEFAULT_TIME_FORMAT
if style:
self._native_sheet.write(self.current_row, i, value, style)
else:
self._native_sheet.write(self.current_row, i, value)
self.current_row += 1
class XLSWriter(BookWriter):
"""
xls writer
"""
def __init__(self):
BookWriter.__init__(self)
self.work_book = None
def open(self, file_name,
encoding='ascii', style_compression=2, **keywords):
BookWriter.open(self, file_name, **keywords)
self.work_book = Workbook(style_compression=style_compression,
encoding=encoding)
def create_sheet(self, name):
return XLSheetWriter(self.work_book, None, name)
def close(self):
"""
This call actually save the file
"""
self.work_book.save(self._file_alike_object)
def is_integer_ok_for_xl_float(value):
"""check if a float value had zero value in digits"""
return value == math.floor(value)
def xldate_to_python_date(value):
"""
convert xl date to python date
"""
date_tuple = xlrd.xldate_as_tuple(value, 0)
ret = None
if date_tuple == (0, 0, 0, 0, 0, 0):
ret = datetime.datetime(1900, 1, 1, 0, 0, 0)
elif date_tuple[0:3] == (0, 0, 0):
ret = datetime.time(date_tuple[3],
date_tuple[4],
date_tuple[5])
elif date_tuple[3:6] == (0, 0, 0):
ret = datetime.date(date_tuple[0],
date_tuple[1],
date_tuple[2])
else:
ret = datetime.datetime(
date_tuple[0],
date_tuple[1],
date_tuple[2],
date_tuple[3],
date_tuple[4],
date_tuple[5]
)
return ret
_xls_reader_registry = {
"file_type": "xls",
"reader": XLSBook,
"writer": XLSWriter,
"stream_type": "binary",
"mime_type": "application/vnd.ms-excel",
"library": "pyexcel-xls"
}
_XLSM_MIME = (
"application/" +
"vnd.openxmlformats-officedocument.spreadsheetml.sheet")
_xlsm_registry = {
"file_type": "xlsm",
"reader": XLSBook,
"stream_type": "binary",
"mime_type": _XLSM_MIME,
"library": "pyexcel-xls"
}
_xlsx_registry = {
"file_type": "xlsx",
"reader": XLSBook,
"stream_type": "binary",
"mime_type": "application/vnd.ms-excel.sheet.macroenabled.12",
"library": "pyexcel-xls"
}
exports = (_xls_reader_registry,
_xlsm_registry,
_xlsx_registry)
| caspartse/QQ-Groups-Spider | vendor/pyexcel_xls/xls.py | Python | mit | 8,380 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>News - Summary Extraction</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/news.css">
<!--<script type="text/javascript" src="js/cycle.js"></script>-->
</head>
<body>
<div class="container-fluid">
<div class="page-content">
<div class="row">
<ul class="list-unstyled">
<li>
<div class="summary">
<h2 class="title">
<a href="https://medium.com/@amy_kellogg/basecamp-is-sending-us-to-paris-7837eda99ff">Basecamp is sending us to Paris</a>
</h2>
<p class="site">
<span>medium.com</span>
</p>
<div class="crop">
<div><img class="image" src="https://d262ilb51hltx0.cloudfront.net/max/800/1*wR7V8ahxzQ0g9k91Sz2Mow.jpeg" /></div>
</div>
<div class="description">
<p>
Kendra and I leave for Paris tomorrow. My heart is beating fast in anticipation. We wouldn’t have made this kind of trip…
</p>
</div>
<div class="readers">
<a href="dhh.html"><img class="reader" src="http://pbs.twimg.com/profile_images/2556368541/alng5gtlmjhrdlr3qxqv_normal.jpeg" title="@dhh" /></a>
<a href="jasonfried.html"><img class="reader" src="http://pbs.twimg.com/profile_images/3413742921/0e9ef95e76c4a965b9b177fa2267d6c1_normal.png" title="@jasonfried" /></a>
</div>
</div>
<div class="clearfix enable-sm "></div>
</li>
<li>
<div class="summary">
<h2 class="title">
<a href="https://signalvnoise.com/posts/3776-faith-in-eventually">Faith in eventually by Jason Fried of Basecamp</a>
</h2>
<p class="site">
<span>signalvnoise.com</span>
</p>
<div class="crop">
<div><img class="image" src="http://s3.amazonaws.com/37assets/svn/995-avatar.154.gif" /></div>
</div>
<div class="description">
<p>
Making something new takes patience. But it also takes faith. Faith that everything will work out in the end.
</p>
</div>
<div class="readers">
<a href="dhh.html"><img class="reader" src="http://pbs.twimg.com/profile_images/2556368541/alng5gtlmjhrdlr3qxqv_normal.jpeg" title="@dhh" /></a>
<a href="jasonfried.html"><img class="reader" src="http://pbs.twimg.com/profile_images/3413742921/0e9ef95e76c4a965b9b177fa2267d6c1_normal.png" title="@jasonfried" /></a>
</div>
</div>
<div class="clearfix enable-sm enable-md "></div>
</li>
</ul>
</div>
</div>
<div class="footer">
<!-- <hr />
<p>
Svven look'n'feel
<span class="pull-right">Comments?</span>
</p> -->
</div>
</div>
<!--<script type="text/javascript" charset="utf-8">
initCycle();
</script>-->
</body>
</html> | svven/pages | 37signals.html | HTML | mit | 2,717 |
package at.fhj.swd14.pse.person;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.LinkedList;
import javax.faces.context.ExternalContext;
import org.mockito.Mockito;
import at.fhj.swd14.pse.department.DepartmentDto;
import at.fhj.swd14.pse.department.DepartmentService;
import at.fhj.swd14.pse.general.ContextMocker;
import at.fhj.swd14.pse.security.DatabasePrincipal;
import at.fhj.swd14.pse.user.UserDto;
import at.fhj.swd14.pse.user.UserService;
public class PersonUtil {
public static PersonDto getDummyPerson() {
UserDto myuser = new UserDto(1L);
myuser.setMail("test@test.de");
myuser.setPassword("testpassword");
DepartmentDto department = new DepartmentDto(1L);
department.setName("testdepartment");
PersonDto myperson = new PersonDto(1L);
myperson.setUser(myuser);
myperson.setAdditionalMails(new LinkedList<>());
myperson.getAdditionalMails().add(new MailaddressDto(1L, "test2@test.de"));
myperson.setAddress("testaddress");
myperson.setDepartment(department);
myperson.setFirstname("firstname");
myperson.setHobbies(new LinkedList<>());
myperson.getHobbies().add(new HobbyDto(1L, "testhobby"));
myperson.setImageUrl("http://testimg.org");
myperson.setKnowledges(new LinkedList<>());
myperson.getKnowledges().add(new KnowledgeDto(1L, "testknowledge"));
myperson.setLastname("lastname");
myperson.setPhonenumbers(new LinkedList<>());
myperson.getPhonenumbers().add(new PhonenumberDto(1L, "0664664664"));
myperson.setPlace("testplace");
myperson.setStatus(new StatusDto("Online"));
return myperson;
}
public static CommonPersonBeanTestData setupServices(UserService userService, PersonService personService, DepartmentService departmentService) {
CommonPersonBeanTestData data = new CommonPersonBeanTestData();
data.setPerson(getDummyPerson());
when(userService.find(1L)).thenReturn(data.getPerson().getUser());
when(personService.findByUser(data.getPerson().getUser())).thenReturn(data.getPerson());
data.setContext(ContextMocker.mockFacesContext());
data.setExtContext(mock(ExternalContext.class));
when(data.getContext().getExternalContext()).thenReturn(data.getExtContext());
DatabasePrincipal principal = Mockito.mock(DatabasePrincipal.class);
Mockito.when(data.getExtContext().getUserPrincipal()).thenReturn(principal);
Mockito.when(principal.getUserId()).thenReturn(data.getPerson().getUser().getId());
data.setStati(new LinkedList<>());
data.getStati().add(new StatusDto("online"));
data.setDeps(new LinkedList<>());
DepartmentDto dep = new DepartmentDto(1L);
dep.setName("test");
data.getDeps().add(dep);
when(personService.findAllStati()).thenReturn(data.getStati());
when(departmentService.findAll()).thenReturn(data.getDeps());
return data;
}
}
| chr-krenn/chr-krenn-fhj-ws2016-sd14-pse | frontend/frontend-impl/src/test/java/at/fhj/swd14/pse/person/PersonUtil.java | Java | mit | 3,076 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>otway-rees: 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.11.0 / otway-rees - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
otway-rees
<small>
8.10.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-10-20 03:14:38 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-20 03:14:38 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.11.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/otway-rees"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/OtwayRees"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: Otway-Rees"
"keyword: protocols"
"keyword: cryptography"
"category: Computer Science/Concurrent Systems and Protocols/Correctness of specific protocols"
]
authors: [
"Dominique Bolignano and Valérie Ménissier-Morain"
]
bug-reports: "https://github.com/coq-contribs/otway-rees/issues"
dev-repo: "git+https://github.com/coq-contribs/otway-rees.git"
synopsis: "Otway-Rees cryptographic protocol"
description: """
A description and a proof of correctness for
the Otway-Rees cryptographic protocol, usually used as an example for
formalisation of such protocols."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/otway-rees/archive/v8.10.0.tar.gz"
checksum: "md5=5b94d694826b34d14bb90a510011c71d"
}
</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-otway-rees.8.10.0 coq.8.11.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.0).
The following dependencies couldn't be met:
- coq-otway-rees -> coq < 8.11~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-otway-rees.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.0/otway-rees/8.10.0.html | HTML | mit | 6,981 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>functions-in-zfc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">8.10.dev / functions-in-zfc - 8.6.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
functions-in-zfc
<small>
8.6.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2020-08-11 14:39:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-11 14:39:01 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-m4 1 Virtual package relying on m4
coq 8.10.dev Formal proof management system
num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/functions-in-zfc"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FunctionsInZFC"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [ "keyword: Set Theory" "keyword: Zermelo-Fraenkel" "keyword: functions" "category: Mathematics/Logic/Set theory" "date: April 2001" ]
authors: [ "Carlos Simpson <carlos@math.unice.fr>" ]
bug-reports: "https://github.com/coq-contribs/functions-in-zfc/issues"
dev-repo: "git+https://github.com/coq-contribs/functions-in-zfc.git"
synopsis: "Functions in classical ZFC"
description: """
This mostly repeats Guillaume Alexandre's contribution `zf',
but in classical logic and with a different proof style. We start with a
simple axiomatization of some flavor of ZFC (for example Werner's
implementation of ZFC should provide a model).
We develop some very basic things like pairs, functions, and a little
bit about natural numbers, following the standard classical path."""
flags: light-uninstall
url {
src:
"https://github.com/coq-contribs/functions-in-zfc/archive/v8.6.0.tar.gz"
checksum: "md5=600b73d7bd3cdcafc33848e2e46b9126"
}
</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-functions-in-zfc.8.6.0 coq.8.10.dev</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.dev).
The following dependencies couldn't be met:
- coq-functions-in-zfc -> coq < 8.7~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-functions-in-zfc.8.6.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/extra-dev/8.10.dev/functions-in-zfc/8.6.0.html | HTML | mit | 7,313 |
/*
* <auto-generated>
* This code was generated by a tool.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
* </auto-generated>
*/
#import <Foundation/Foundation.h>
#import "MOZUClient.h"
#import "MOZUOrder.h"
#import "MOZUOrderItem.h"
#import "MOZUAppliedDiscount.h"
#import "MOZUOrderItemCollection.h"
@interface MOZUOrderItemClient : NSObject
//
#pragma mark -
#pragma mark Get Operations
#pragma mark -
//
/**
orders-orderitems Get GetOrderItemViaLineId description DOCUMENT_HERE
@param draft If true, retrieve the draft version of the order, which might include uncommitted changes to the order or its components.
@param lineId
@param orderId Unique identifier of the order.
@param responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
*/
+ (MOZUClient *)clientForGetOrderItemViaLineIdOperationWithOrderId:(NSString *)orderId lineId:(NSInteger)lineId draft:(NSNumber *)draft responseFields:(NSString *)responseFields;
/**
Retrieves the details of a single order item.
@param draft If true, retrieve the draft version of the order, which might include uncommitted changes to the order or its components.
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param responseFields Use this field to include those fields which are not included by default.
*/
+ (MOZUClient *)clientForGetOrderItemOperationWithOrderId:(NSString *)orderId orderItemId:(NSString *)orderItemId draft:(NSNumber *)draft responseFields:(NSString *)responseFields;
/**
Retrieves the details of all items in an order.
@param draft If true, retrieve the draft version of the order, which might include uncommitted changes to the order or its components.
@param orderId Unique identifier of the order.
@param responseFields Use this field to include those fields which are not included by default.
*/
+ (MOZUClient *)clientForGetOrderItemsOperationWithOrderId:(NSString *)orderId draft:(NSNumber *)draft responseFields:(NSString *)responseFields;
//
#pragma mark -
#pragma mark Post Operations
#pragma mark -
//
/**
Adds a new item to a defined order.
@param body The details associated with a specific item in an order.
@param orderId Unique identifier of the order.
@param responseFields Use this field to include those fields which are not included by default.
@param skipInventoryCheck If true, skip the process to validate inventory when creating this product reservation.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
*/
+ (MOZUClient *)clientForCreateOrderItemOperationWithBody:(MOZUOrderItem *)body orderId:(NSString *)orderId updateMode:(NSString *)updateMode version:(NSString *)version skipInventoryCheck:(NSNumber *)skipInventoryCheck responseFields:(NSString *)responseFields;
//
#pragma mark -
#pragma mark Put Operations
#pragma mark -
//
/**
Update the discount applied to an item in an order.
@param body Properties of all applied discounts for an associated cart, order, or product.
@param discountId Unique identifier of the discount. System-supplied and read only.
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param responseFields Use this field to include those fields which are not included by default.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
*/
+ (MOZUClient *)clientForUpdateOrderItemDiscountOperationWithBody:(MOZUAppliedDiscount *)body orderId:(NSString *)orderId orderItemId:(NSString *)orderItemId discountId:(NSInteger)discountId updateMode:(NSString *)updateMode version:(NSString *)version responseFields:(NSString *)responseFields;
/**
orders-orderitems Put UpdateItemDuty description DOCUMENT_HERE
@param dutyAmount
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version Determines whether or not to check versioning of items for concurrency purposes.
*/
+ (MOZUClient *)clientForUpdateItemDutyOperationWithOrderId:(NSString *)orderId orderItemId:(NSString *)orderItemId dutyAmount:(NSNumber *)dutyAmount updateMode:(NSString *)updateMode version:(NSString *)version responseFields:(NSString *)responseFields;
/**
Updates the item fulfillment information for the order specified in the request.
@param body The details associated with a specific item in an order.
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param responseFields Use this field to include those fields which are not included by default.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
*/
+ (MOZUClient *)clientForUpdateItemFulfillmentOperationWithBody:(MOZUOrderItem *)body orderId:(NSString *)orderId orderItemId:(NSString *)orderItemId updateMode:(NSString *)updateMode version:(NSString *)version responseFields:(NSString *)responseFields;
/**
Override the price of an individual product on a line item in the specified order.
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param price The override price to specify for this item in the specified order.
@param responseFields Use this field to include those fields which are not included by default.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
*/
+ (MOZUClient *)clientForUpdateItemProductPriceOperationWithOrderId:(NSString *)orderId orderItemId:(NSString *)orderItemId price:(NSNumber *)price updateMode:(NSString *)updateMode version:(NSString *)version responseFields:(NSString *)responseFields;
/**
Update the quantity of an item in an order.
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param quantity The number of cart items in the shopper's active cart.
@param responseFields Use this field to include those fields which are not included by default.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
*/
+ (MOZUClient *)clientForUpdateItemQuantityOperationWithOrderId:(NSString *)orderId orderItemId:(NSString *)orderItemId quantity:(NSInteger)quantity updateMode:(NSString *)updateMode version:(NSString *)version responseFields:(NSString *)responseFields;
//
#pragma mark -
#pragma mark Delete Operations
#pragma mark -
//
/**
Removes a previously added item from a defined order.
@param orderId Unique identifier of the order.
@param orderItemId Unique identifier of the item to remove from the order.
@param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to make incremental order changes before committing the changes to the original order. Valid values are "ApplyToOriginal," "ApplyToDraft," or "ApplyAndCommit."
@param version System-supplied integer that represents the current version of the order, which prevents users from unintentionally overriding changes to the order. When a user performs an operation for a defined order, the system validates that the version of the updated order matches the version of the order on the server. After the operation completes successfully, the system increments the version number by one.
*/
+ (MOZUClient *)clientForDeleteOrderItemOperationWithOrderId:(NSString *)orderId orderItemId:(NSString *)orderItemId updateMode:(NSString *)updateMode version:(NSString *)version;
@end | sanjaymandadi/mozu-ios-sdk | MozuApi/Clients/Commerce/Orders/MOZUOrderItemClient.h | C | mit | 12,147 |
# The MIT License (MIT)
#
# Copyright (c) 2014 Muratahan Aykol
#
# 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
import numpy as np
xdatcar = open('XDATCAR', 'r')
xyz = open('XDATCAR.xyz', 'w')
xyz_fract = open('XDATCAR_fract.xyz', 'w')
system = xdatcar.readline()
scale = float(xdatcar.readline().rstrip('\n'))
print scale
#get lattice vectors
a1 = np.array([ float(s)*scale for s in xdatcar.readline().rstrip('\n').split() ])
a2 = np.array([ float(s)*scale for s in xdatcar.readline().rstrip('\n').split() ])
a3 = np.array([ float(s)*scale for s in xdatcar.readline().rstrip('\n').split() ])
print a1
print a2
print a3
#Save scaled lattice vectors
lat_rec = open('lattice.vectors', 'w')
lat_rec.write(str(a1[0])+' '+str(a1[1])+' '+str(a1[2])+'\n')
lat_rec.write(str(a2[0])+' '+str(a2[1])+' '+str(a2[2])+'\n')
lat_rec.write(str(a3[0])+' '+str(a3[1])+' '+str(a3[2]))
lat_rec.close()
#Read xdatcar
element_names = xdatcar.readline().rstrip('\n').split()
element_dict = {}
element_numbers = xdatcar.readline().rstrip('\n').split()
i = 0
N = 0
for t in range(len(element_names)):
element_dict[element_names[t]] = int(element_numbers[i])
N += int(element_numbers[i])
i += 1
print element_dict
while True:
line = xdatcar.readline()
if len(line) == 0:
break
xyz.write(str(N) + "\ncomment\n")
xyz_fract.write(str(N)+"\ncomment\n")
for el in element_names:
for i in range(element_dict[el]):
p = xdatcar.readline().rstrip('\n').split()
coords = np.array([ float(s) for s in p ])
# print coords
cartesian_coords = coords[0]*a1+coords[1]*a2+coords[2]*a3
xyz.write(el+ " " + str(cartesian_coords[0])+ " " + str(cartesian_coords[1]) + " " + str(cartesian_coords[2]) +"\n")
xyz_fract.write(el+ " " + str(coords[0])+ " " + str(coords[1]) + " " + str(coords[2]) +"\n")
xdatcar.close()
xyz.close()
xyz_fract.close()
| aykol/mean-square-displacement | xdatcar2xyz.1.04.py | Python | mit | 2,939 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="cn">
<head>
<meta name="generator" content="AWStats 7.4 (build 20150714) from config file awstats.u1030.conf (http://www.awstats.org)">
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="content-type" content="text/html; charset=GBK">
<meta http-equiv="description" content="Awstats - Advanced Web Statistics for ew-2isj598rs.cn-hangzhou.aliapp.com (2016-05) - session">
<title>ͳ¼ÆÍøÕ¾ ew-2isj598rs.cn-hangzhou.aliapp.com (2016-05) - session</title>
<link rel="stylesheet" href="/ewh_logreport_no_delete/awstatscss/awstats_bw.css" />
<style type="text/css">
</style>
</head>
<body style="margin-top: 0px">
<a name="top"></a>
<a name="menu"> </a>
<form name="FormDateFilter" action="/ewh_logreport_no_delete/awstats.pl?config=u1030&staticlinks&configdir=/usr/aliyun/ace/conf/u1030/awstats&lang=cn&output=session" style="padding: 0px 0px 20px 0px; margin-top: 0">
<table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td>
<table class="aws_data sortable" border="0" cellpadding="1" cellspacing="0" width="100%">
<tr><td class="aws" valign="middle"><b>ͳ¼ÆÍøÕ¾:</b> </td><td class="aws" valign="middle"><span style="font-size: 14px;">ew-2isj598rs.cn-hangzhou.aliapp.com</span></td><td align="right" rowspan="3"><a href="http://www.aliapp.com" target="awstatshome"><img src="/ewh_logreport_no_delete/awstatsicons/other/aliyun_logo.png" border="0" /></a></td></tr>
<tr valign="middle"><td class="aws" valign="middle" width="150"><b>×î½ü¸üÐÂ:</b> </td><td class="aws" valign="middle"><span style="font-size: 12px;">2016Äê05ÔÂ27ÈÕ 00:06</span></td></tr>
<tr><td class="aws" valign="middle"><b>±¨±íÈÕÆÚ:</b></td><td class="aws" valign="middle"><span style="font-size: 14px;">Ô 05Ô 2016</span></td></tr>
</table>
</td></tr></table>
</form><br />
<table>
<tr><td class="aws"><a href="javascript:parent.window.close();">¹Ø±Õ´Ë´°¿Ú</a></td></tr>
</table>
| ypandoo/sites | zcsy/ewh_logreport_no_delete/awstats.u1030.session.html | HTML | mit | 2,047 |
"use strict";
var chai = require('chai'),
should = chai.should(),
expect = chai.expect,
XMLGrammers = require('../').XMLGrammers,
Parameters = require('../').Parameters;
describe('FMServerConstants', function(){
describe('XMLGrammers', function(){
it('should be frozen', function(){
expect(function(){
XMLGrammers.a = 1;
}).to.throw("Can't add property a, object is not extensible");
});
});
describe('Parameters', function() {
it('should be frozen', function () {
expect(function () {
Parameters.a = 1;
}).to.throw("Can't add property a, object is not extensible");
})
})
})
| toddgeist/filemakerjs-old | test/constants.js | JavaScript | mit | 730 |
#!/usr/bin/env python
from setuptools import setup, find_packages
classifiers = [
# Get more strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
]
setup(name="nanpy",
version="0.9.4",
description="Use your Arduino board with Python",
license="MIT",
author="Andrea Stagi",
author_email="stagi.andrea@gmail.com",
url="http://github.com/nanpy/nanpy",
packages = find_packages(),
keywords= "arduino library prototype",
install_requires=[
"pyserial",
],
classifiers=classifiers,
zip_safe = True)
| ryanvade/nanpy | setup.py | Python | mit | 1,020 |
<?php
/**
* Created by PhpStorm.
* User: shrikeh
* Date: 16/07/2014
* Time: 16:15
*/
| shrikeh/Macaroons | src/Validator.php | PHP | mit | 91 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith: 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.3 / qarith - 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>
qarith
<small>
8.9.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-06-26 21:49:50 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-06-26 21:49: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.12 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
coq 8.5.3 Formal proof management system.
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/qarith"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/QArith"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"keyword: Q"
"keyword: Arithmetic"
"keyword: Rational numbers"
"keyword: Setoid"
"keyword: Ring"
"category: Mathematics/Arithmetic and Number Theory/Rational numbers"
"category: Miscellaneous/Extracted Programs/Arithmetic"
]
authors: [
"Pierre Letouzey"
]
bug-reports: "https://github.com/coq-contribs/qarith/issues"
dev-repo: "git+https://github.com/coq-contribs/qarith.git"
synopsis: "A Library for Rational Numbers (QArith)"
description: """
This contribution is a proposition of a library formalizing
rational number in Coq."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/qarith/archive/v8.9.0.tar.gz"
checksum: "md5=dbb5eb51a29032589cd351ea9eaf49a0"
}
</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-qarith.8.9.0 coq.8.5.3</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.3).
The following dependencies couldn't be met:
- coq-qarith -> coq >= 8.9
Your request can'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-qarith.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">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.3/qarith/8.9.0.html | HTML | mit | 6,909 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>freespec-exec: 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.4.6~camlp4 / freespec-exec - 0.3</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
freespec-exec
<small>
0.3
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-26 10:22:40 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-26 10:22:40 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp4 4.02+7 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
conf-which 1 Virtual package relying on which
coq 8.4.6~camlp4 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
ocamlbuild 0 Build system distributed with the OCaml compiler since OCaml 3.10.0
# opam file:
opam-version: "2.0"
maintainer: "Thomas Letan <lthms@soap.coffee>"
homepage: "https://github.com/lthms/FreeSpec"
dev-repo: "git+https://github.com/lthms/FreeSpec.git"
bug-reports: "https://github.com/lthms/FreeSpec.git/issues"
doc: "https://lthms.github.io/FreeSpec"
license: "MPL-2.0"
synopsis: "A framework for implementing and certifying impure computations in Coq"
description: """
FreeSpec is a framework for the Coq proof assistant which allows to
implement and specify impure computations. This is the “exec” plugin,
which allows from executing impure computations from with Coq thanks
to a dedicated vernacular command.
"""
build: [
["patch" "-p1" "-i" "patches/opam-builds.patch"]
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml"
"dune" {>= "2.5"}
"coq" {>= "8.12" & < "8.14~"}
"coq-freespec-core" {= "0.3"}
"coq-freespec-ffi" {= "0.3"}
]
tags: [
"date:2021-03-01"
"keyword:plugin"
"category:Miscellaneous/Coq Extensions"
"logpath:FreeSpec.Exec"
]
authors: [
"Thomas Letan"
"Yann Régis-Gianas"
]
url {
src: "https://github.com/lthms/FreeSpec/archive/freespec.0.3.tar.gz"
checksum: "sha512=a4321066ef6267fc87a27b7b4ce7bd75db9878dcf33f7463ee3d11bdedb6a13f30008f7c20ca972c18e7d6f3bf8b0857409caf7fad60ecbd186e83b45fa1b7a1"
}
</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-freespec-exec.0.3 coq.8.4.6~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.4.6~camlp4).
The following dependencies couldn't be met:
- coq-freespec-exec -> coq >= 8.12 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-freespec-exec.0.3</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.4.6~camlp4/freespec-exec/0.3.html | HTML | mit | 7,659 |
{% extends "v9/layoutv9.html" %}
{% set title = "Water abstraction licence" %}
{% block page_title %}
{{title}} - GOV.UK
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="phase-banner-alpha">
<p>
<strong class="phase-tag">BETA</strong>
<span>This is an BETA prototype, details may be missing whilst we build the service. Your feedback will help us improve this service.</span>
</p>
</div>
<nav>
<div class="breadcrumbs">
<ol role="breadcrumbs">
<li><a href="#">Your services</a></li>
<li><a href="#">Abstraction licences</a></li>
<li></li>
<a href="/v10/signin" class="sign-out2">Sign out</a>
<a href="/v10/change_password" class="change-password">Change password</a>
</ol>
</nav>
</div>
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large" style="margin-bottom: 30px">
Your water abstraction licence(s)
</h1>
<a href="/v10/online_licence?wid=1" style="font-weight: bold; margin-top: 10px" class="link"><span class="visually-hidden">H2Go Power</span>Licence serial number: 03/28/60/0002</a>
<p></p>
<div class="greyline" style="border-bottom: 1px solid #bfc1c3; margin-bottom: 10px"></div>
<p></p>
<a href="/v10/online_licence?wid=2" style="font-weight: bold"><span class="visually-hidden">Bridge Farm</span>Licence serial number: 03/28/60/0003</a>
<p></p>
<div class="greyline" style="border-bottom: 1px solid #bfc1c3; margin-bottom: 10px"></div>
<p></p>
<a href="/v10/online_licence?wid=3" style="font-weight: bold"><span class="visually-hidden">West Power</span>Licence serial number: 03/28/60/0004</a>
<p></p>
<div class="greyline" style="border-bottom: 1px solid #bfc1c3; margin-bottom: 10px"></div>
<p></p>
<a href="/v10/online_licence?wid=4" style="font-weight: bold"><span class="visually-hidden">Valley's Water</span>Licence serial number: 03/28/60/0005</a>
<p></p>
<div class="greyline" style="border-bottom: 1px solid #bfc1c3; margin-bottom: 10px"></div>
<p></p>
<a href="/v10/online_licence?wid=5" style="font-weight: bold"><span class="visually-hidden">H2Go Power</span>Licence serial number: 03/28/60/0006</a>
<p></p>
</div>
</div>
</main>
{% endblock %}
| christinagyles-ea/water | app/v6/views/v10/licences.html | HTML | mit | 2,274 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.edgeorder.fluent.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.edgeorder.models.AvailabilityInformation;
import com.azure.resourcemanager.edgeorder.models.CostInformation;
import com.azure.resourcemanager.edgeorder.models.Description;
import com.azure.resourcemanager.edgeorder.models.Dimensions;
import com.azure.resourcemanager.edgeorder.models.FilterableProperty;
import com.azure.resourcemanager.edgeorder.models.HierarchyInformation;
import com.azure.resourcemanager.edgeorder.models.ImageInformation;
import com.azure.resourcemanager.edgeorder.models.Specification;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Configuration object. */
@Immutable
public final class ConfigurationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ConfigurationInner.class);
/*
* Properties of configuration
*/
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private ConfigurationProperties innerProperties;
/**
* Get the innerProperties property: Properties of configuration.
*
* @return the innerProperties value.
*/
private ConfigurationProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the specifications property: Specifications of the configuration.
*
* @return the specifications value.
*/
public List<Specification> specifications() {
return this.innerProperties() == null ? null : this.innerProperties().specifications();
}
/**
* Get the dimensions property: Dimensions of the configuration.
*
* @return the dimensions value.
*/
public Dimensions dimensions() {
return this.innerProperties() == null ? null : this.innerProperties().dimensions();
}
/**
* Get the filterableProperties property: list of filters supported for a product.
*
* @return the filterableProperties value.
*/
public List<FilterableProperty> filterableProperties() {
return this.innerProperties() == null ? null : this.innerProperties().filterableProperties();
}
/**
* Get the displayName property: Display Name for the product system.
*
* @return the displayName value.
*/
public String displayName() {
return this.innerProperties() == null ? null : this.innerProperties().displayName();
}
/**
* Get the description property: Description related to the product system.
*
* @return the description value.
*/
public Description description() {
return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
* Get the imageInformation property: Image information for the product system.
*
* @return the imageInformation value.
*/
public List<ImageInformation> imageInformation() {
return this.innerProperties() == null ? null : this.innerProperties().imageInformation();
}
/**
* Get the costInformation property: Cost information for the product system.
*
* @return the costInformation value.
*/
public CostInformation costInformation() {
return this.innerProperties() == null ? null : this.innerProperties().costInformation();
}
/**
* Get the availabilityInformation property: Availability information of the product system.
*
* @return the availabilityInformation value.
*/
public AvailabilityInformation availabilityInformation() {
return this.innerProperties() == null ? null : this.innerProperties().availabilityInformation();
}
/**
* Get the hierarchyInformation property: Hierarchy information of a product.
*
* @return the hierarchyInformation value.
*/
public HierarchyInformation hierarchyInformation() {
return this.innerProperties() == null ? null : this.innerProperties().hierarchyInformation();
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
| Azure/azure-sdk-for-java | sdk/edgeorder/azure-resourcemanager-edgeorder/src/main/java/com/azure/resourcemanager/edgeorder/fluent/models/ConfigurationInner.java | Java | mit | 4,546 |
using Orleans.Host.SiloHost;
namespace Topshelf.Orleans {
public class OrleansServiceConfigurator {
private OrleansSiloHost _host = new OrleansSiloHost("");
internal OrleansServiceConfigurator() {
}
public OrleansServiceConfigurator Name(string value) {
_host.SiloName = value;
return this;
}
public OrleansServiceConfigurator ConfigFileName(string value) {
_host.ConfigFileName = value;
return this;
}
public OrleansServiceConfigurator DeploymentId(string value) {
_host.DeploymentId = value;
return this;
}
internal OrleansService Build() {
return new OrleansService(_host);
}
}
} | migrap/Topshelf.Orleans | src/Topshelf.Orleans/OrleansServiceConfigurator.cs | C# | mit | 771 |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace FitMailHiFi
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
| ojanacek/FitMailHiFi | FitMailHiFi/App.xaml.cs | C# | mit | 327 |
import {Component, Input} from '@angular/core';
import {Title} from '@angular/platform-browser';
import {RouteParams, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from '@angular/router-deprecated';
import {TaxonImage} from './taxon-image';
import {Taxon} from './taxon';
import {Group} from './group';
import {TaxonService} from './taxon.service';
@Component({
selector: 'group-detail',
styles: [`
.done-true {
text-decoration: line-through;
color: grey;
}`
],
template: `
<div class="row">
<div class="col-xs-12">
<h1>Group {{id}} - <small>{{taxons.length}} arter</small></h1>
</div>
<div class="col-xs-12">
<table class="small">
<tr *ngFor="let taxon of taxons">
<td>
<div *ngIf="taxon.hasImage">
<a [routerLink]="['TaxonDetail', {id: taxon.slug }]">
<em>{{taxon.latin}}</em> - {{taxon.name}}
</a>
</div>
<div *ngIf="!taxon.hasImage">
<em>{{taxon.latin}}</em> - {{taxon.name}}
</div>
</td>
<td align="right" style="white-space: nowrap;">
<div *ngIf="taxon.wingSpanMin!=0">
{{taxon.wingSpanMin}}-{{taxon.wingSpanMax}} mm
</div>
</td>
<td style="padding: 2px 5px;">
<div>
<a href="http://www.lepidoptera.se/arter/{{taxon.slugSv}}">[länk]</a>
</div>
</td>
</tr>
</table>
</div>
<div *ngFor="let item of taxonImages" class="col-xs-12 col-md-6 col-lg-4">
<a [routerLink]="['TaxonDetail', {id: item.slug }]">
<img src="{{item.image}}" class="img-responsive" alt="{{item.latin}} - {{item.name}} © {{item.photographer}}" />
</a>
<p class="text-center">
<small>
<em>{{item.latin}}<span *ngIf="item.unsure">?</span></em> - {{item.name}}<span *ngIf="item.unsure">?</span><br/>
<!--{{item.date}}, {{item.site}} © {{item.photographer}}-->
</small>
</p>
</div>
</div>
`,
directives: [ROUTER_DIRECTIVES],
providers: [TaxonService,Title]
})
export class GroupDetailComponent {
private taxonImages:TaxonImage[] = [];
private taxons:Taxon[] = [];
id: string;
constructor(_routeParams:RouteParams, _service: TaxonService, _title: Title){
let id = _routeParams.get('id');
this.id = id;
this.taxonImages = _service.getTaxonImagesForGroup(id);
this.taxons = _service.getTaxonsForGroup(id);
_title.setTitle('Grupp ' + id + ' - Coleophoridae - Säckmalar');
}
}
| unger/Coleophora | src/ts/group-detail.component.ts | TypeScript | mit | 2,412 |
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
describe IndexedSearch::Match::Initials do
set_perform_match_type :initials
context 'standard' do
before(:each) { @f1 = create(:indexed_foo, :name => 'thing') }
it('find1') { find_results_for('thin').should be_empty }
it('find2') { find_results_for('thing').should be_empty }
it('find3') { find_results_for('things').should be_empty }
it('find4') { find_results_for('th1ng').should be_empty }
it('find5') { find_results_for('theng').should be_empty }
it('find6') { find_results_for('think').should be_empty }
it('find7') { find_results_for('t').models.should == [@f1] }
end
context 'single letter' do
before(:each) { @f1 = create(:indexed_foo, :name => 't') }
it('find 1') { find_results_for('t').models.should == [@f1] }
it('find 2') { find_results_for('th').models.should == [@f1] }
it('find 2') { find_results_for('this').models.should == [@f1] }
end
context 'two letters' do
before(:each) { @f1 = create(:indexed_foo, :name => 'th') }
it('should not be found') { find_results_for('th').should be_empty }
end
end
| dburry/indexed_search | spec/lib/indexed_search/match/initials_spec.rb | Ruby | mit | 1,165 |
package com.celsius.tsp.solver;
import com.celsius.tsp.proto.TspService;
/**
* Service that solves {@link com.celsius.tsp.proto.TspService.TravellingSalesmanProblem}
* using a fully synchronous approach.
*
* @since 1.0.0
* @author marc.bramaud
*/
@FunctionalInterface
public interface TravellingSalesmanHeuristic {
/**
* Solves the problem synchronously.
* @param problem {@link com.celsius.tsp.proto.TspService.TravellingSalesmanProblem} the problem.
* @return {@link com.celsius.tsp.proto.TspService.TravellingSalesmanSolution} the solution.
* @throws Exception
*/
TspService.TravellingSalesmanSolution solve( TspService.TravellingSalesmanProblem problem )
throws Exception;
}
| sircelsius/tsp-solver | src/main/java/com/celsius/tsp/solver/TravellingSalesmanHeuristic.java | Java | mit | 710 |
use failure::format_err;
use log::error;
use rusqlite::types::ToSql;
use serde_derive::{Deserialize, Serialize};
use crate::db::{self, Database};
use crate::errors::*;
#[derive(Deserialize, Serialize, Clone)]
pub struct UserInfo {
pub id: Option<i32>,
pub github: String,
pub slack: String,
pub mute_direct_messages: bool,
}
#[derive(Clone)]
pub struct UserConfig {
db: Database,
}
impl UserInfo {
pub fn new(git_user: &str, slack_user: &str) -> UserInfo {
UserInfo {
id: None,
github: git_user.to_string(),
slack: slack_user.to_string(),
mute_direct_messages: false,
}
}
}
impl UserConfig {
pub fn new(db: Database) -> UserConfig {
UserConfig { db }
}
pub fn insert(&mut self, git_user: &str, slack_user: &str) -> Result<()> {
self.insert_info(&UserInfo::new(git_user, slack_user))
}
pub fn insert_info(&mut self, user: &UserInfo) -> Result<()> {
let conn = self.db.connect()?;
conn.execute(
"INSERT INTO users (github_name, slack_name, mute_direct_messages) VALUES (?1, ?2, ?3)",
&[
&user.github,
&user.slack,
&db::to_tinyint(user.mute_direct_messages) as &dyn ToSql,
],
)
.map_err(|e| format_err!("Error inserting user {}: {}", user.github, e))?;
Ok(())
}
pub fn update(&mut self, user: &UserInfo) -> Result<()> {
let conn = self.db.connect()?;
conn.execute(
"UPDATE users set github_name = ?1, slack_name = ?2, mute_direct_messages = ?3 where id = ?4",
&[&user.github, &user.slack, &db::to_tinyint(user.mute_direct_messages) as &dyn ToSql, &user.id],
).map_err(|e| format_err!("Error updating user {}: {}", user.github, e))?;
Ok(())
}
pub fn delete(&mut self, user_id: i32) -> Result<()> {
let conn = self.db.connect()?;
conn.execute("DELETE from users where id = ?1", &[&user_id])
.map_err(|e| format_err!("Error deleting user {}: {}", user_id, e))?;
Ok(())
}
pub fn slack_user_name(&self, github_name: &str) -> Option<String> {
self.lookup_info(github_name).map(|u| u.slack)
}
pub fn slack_user_mention(&self, github_name: &str) -> Option<String> {
self.lookup_info(github_name).and_then(|u| {
if u.mute_direct_messages {
None
} else {
Some(mention(&u.slack))
}
})
}
pub fn get_all(&self) -> Result<Vec<UserInfo>> {
let conn = self.db.connect()?;
let mut stmt = conn.prepare(
"SELECT id, slack_name, github_name, mute_direct_messages FROM users ORDER BY github_name",
)?;
let found = stmt.query_map([], |row| {
Ok(UserInfo {
id: row.get(0)?,
slack: row.get(1)?,
github: row.get(2)?,
mute_direct_messages: db::to_bool(row.get(3)?),
})
})?;
let mut users = vec![];
for user in found {
users.push(user?);
}
Ok(users)
}
pub fn lookup_info(&self, github_name: &str) -> Option<UserInfo> {
match self.do_lookup_info(github_name) {
Ok(u) => u,
Err(e) => {
error!("Error looking up user: {}", e);
None
}
}
}
fn do_lookup_info(&self, github_name: &str) -> Result<Option<UserInfo>> {
let github_name = github_name.to_string();
let conn = self.db.connect()?;
let mut stmt = conn.prepare(
"SELECT id, slack_name, mute_direct_messages FROM users where github_name = ?1",
)?;
let found = stmt.query_map(&[&github_name], |row| {
Ok(UserInfo {
id: row.get(0)?,
slack: row.get(1)?,
github: github_name.clone(),
mute_direct_messages: db::to_bool(row.get(2)?),
})
})?;
let user = found.into_iter().flatten().next();
Ok(user)
}
}
pub fn mention(username: &str) -> String {
format!("@{}", username)
}
#[cfg(test)]
mod tests {
use super::*;
use tempdir::TempDir;
fn new_test() -> (UserConfig, TempDir) {
let temp_dir = TempDir::new("users.rs").unwrap();
let db_file = temp_dir.path().join("db.sqlite3");
let db = Database::new(&db_file.to_string_lossy()).expect("create temp database");
(UserConfig::new(db), temp_dir)
}
#[test]
fn test_slack_user_name_no_defaults() {
let (users, _temp) = new_test();
assert_eq!(None, users.slack_user_name("joe"));
assert_eq!(None, users.slack_user_mention("joe"));
}
#[test]
fn test_slack_user_name() {
let (mut users, _temp) = new_test();
users.insert("some-git-user", "the-slacker").unwrap();
assert_eq!(
Some("the-slacker".into()),
users.slack_user_name("some-git-user")
);
assert_eq!(
Some("@the-slacker".into()),
users.slack_user_mention("some-git-user")
);
assert_eq!(None, users.slack_user_name("some.other.user"));
assert_eq!(None, users.slack_user_mention("some.other.user"));
}
#[test]
fn test_mention() {
assert_eq!("@me", mention("me"));
}
}
| tanium/octobot | lib/src/users.rs | Rust | mit | 5,463 |
//
// MDBaseRequest.h
// MadeInChinaDemo
//
// Created by mac on 16/1/13.
// Copyright © 2016年 Onego. All rights reserved.
//
#import <MadeInChina/MadeInChina.h>
#import <MICHttpRequestForThirdnet.h>
@interface MDBaseRequest : MICHttpRequestForThirdnet
/**
* 服务地址
*/
+ (NSString *)getServiceAddress;
- (NSString *)getServiceAddress;
/**
* 应用授权码
*/
+ (NSString *)getApplicationKey;
- (NSString *)getApplicationKey;
@end
| wangguofeng-live/MadeInChina | Demo/MadeInChinaDemo/MadeInChinaDemo/Request/MDBaseRequest.h | C | mit | 454 |
@font-face { font-family: Josefin; src: url('../fonts/josefin.ttf'); }
body {
background-color: #291f4e;
color: #fff;
font-family: 'Josefin', sans-serif;
}
.btn {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.btn-primary, .btn-primary:hover, .btn-primary:active {
color: #000;
background-color: #79bfa1;
border-color: #79bfa1;
}
img.bg-home {
position: absolute;
max-width: 40%;
max-height: 40%;
}
img.bg-top {
left: 0;
top: 0;
}
img.bg-bottom {
right: 0;
bottom: 0;
}
.home-logo {
max-width: 40%;
max-width: 150px;
margin-top: 20vh;
padding-bottom: 10px;
}
.opener {
text-align: center;
}
.home-menu img {
max-width: 100%;
margin-top: 10px;
}
.top-row {
margin-top: 20px;
margin-bottom: 30px;
}
.top-row .logo {
max-width: 100px;
}
.top-row .back-arrow {
max-width: 35px;
margin-top: 10px;
margin-right: 10px;
}
.choices img {
padding: 10px;
min-width: 100px;
min-height: 100px;
max-height: calc(30vh - 40px);
max-width: 100%;
}
.choice {
margin-bottom: 10px;
}
.date-time, .size {
margin-bottom: 30px;
}
.providers img {
max-width: 100%;
}
.provider {
padding-bottom: 10px;
margin-bottom: 10px;
}
.provider .rating {
color: #f39c12;
}
#number-request {
width: 100vw;
height: 100vh;
background-color: rgba(255,255,255,0.5);
}
.oops-message, .oops-details, .shortcut {
margin-top: 20px;
text-align: center;
}
.oops-message h2 {
margin-top: 0;
}
.oops-message h3 {
margin-top: 10px;
}
.oops-message img {
width: 120%;
}
.wall-right {
margin-left: -20%;
}
.shortcut img {
max-width: 15%;
}
.red-text {
color: #f97d81;
} | wordofmouth/wordofmouth.github.io | css/style.css | CSS | mit | 1,660 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>idxassoc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">8.10.0 / idxassoc - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
idxassoc
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2020-07-29 03:23:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-29 03:23:42 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.10.0 Formal proof management system
num 1.3 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.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/idxassoc"
license: "BSD with advertising clause"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/IdxAssoc"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: associative arrays" "keyword: search operator" "keyword: data structures" "category: Computer Science/Data Types and Data Structures" "date: April 2001" ]
authors: [ "Dominique Quatravaux" "François-René Ridaux" "Gérald Macinenti" ]
bug-reports: "https://github.com/coq-contribs/idxassoc/issues"
dev-repo: "git+https://github.com/coq-contribs/idxassoc.git"
synopsis: "Associative Arrays"
description: """
We define the associative array (key -> value associations)
datatype as list of couples, providing definitions of standards
operations such as adding, deleting.
We introduce predicates for membership of a key and of couples.
Finally we define a search operator ("find") which returns the
value associated with a key or the "none" option (see file
Option.v which should be part of this contribution) on failure.
Lemmas we prove about these concepts were motivated by our needs
at the moment we created this file. We hope they'll suit your
needs too but anyway, feel free to communicate any wish or
remark."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/idxassoc/archive/v8.8.0.tar.gz"
checksum: "md5=c07dccc3a455ed8e3fedc70bf899134b"
}
</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-idxassoc.8.8.0 coq.8.10.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.0).
The following dependencies couldn't be met:
- coq-idxassoc -> coq < 8.9~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can'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-idxassoc.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/8.10.0/idxassoc/8.8.0.html | HTML | mit | 7,539 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>weak-up-to: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.2 / weak-up-to - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
weak-up-to
<small>
8.10.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-01 19:32:40 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-01 19:32:40 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.8.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.04.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.04.2 Official 4.04.2 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "http://perso.ens-lyon.fr/damien.pous/upto/"
license: "GPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/WeakUpTo"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: weak bisimilarity"
"keyword: weak bisimulation"
"keyword: up-to techniques"
"keyword: termination"
"keyword: commutation"
"keyword: Newman's lemma"
"category: Computer Science/Concurrent Systems and Protocols/Theory of concurrent systems"
"date: 2005-02-22"
]
authors: [
"Damien Pous <damien.pous at ens-lyon.fr> [http://perso.ens-lyon.fr/damien.pous/]"
]
bug-reports: "https://github.com/coq-contribs/weak-up-to/issues"
dev-repo: "git+https://github.com/coq-contribs/weak-up-to.git"
synopsis: "New Up-to Techniques for Weak Bisimulation"
description: """
This contribution is the formalisation of a paper that appeared in
Proc. of ICALP 2005: "Up-to Techniques for Weak Bisimulation".
First we define a framework for defining up-to techniques for weak
bisimulation in a modular way. Then we prove the correctness of some
new up-to techniques, based on termination guarantees. Notably, a
generalisation of Newman's Lemma to commutation results is
established."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/weak-up-to/archive/v8.10.0.tar.gz"
checksum: "md5=9e335639ad54f2dad223e4441f9ecd4c"
}
</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-weak-up-to.8.10.0 coq.8.8.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.8.2).
The following dependencies couldn't be met:
- coq-weak-up-to -> coq >= 8.10 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-weak-up-to.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.8.2/weak-up-to/8.10.0.html | HTML | mit | 7,557 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fundamental-arithmetics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+1 / fundamental-arithmetics - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
fundamental-arithmetics
<small>
8.10.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-05 21:09:41 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-05 21:09:41 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.7.1+1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "http://perso.ens-lyon.fr/sebastien.briais/tools/Arith_080201.tar.gz"
license: "LGPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FundamentalArithmetics"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: arithmetic"
"keyword: number theory"
"category: Mathematics/Arithmetic and Number Theory/Miscellaneous"
"date: 2008-02-1"
]
authors: [
"Sébastien Briais <sebastien.briais at ens-lyon.fr> [http://perso.ens-lyon.fr/sebastien.briais/]"
]
bug-reports: "https://github.com/coq-contribs/fundamental-arithmetics/issues"
dev-repo: "git+https://github.com/coq-contribs/fundamental-arithmetics.git"
synopsis: "Fundamental theorems of arithmetic"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/fundamental-arithmetics/archive/v8.10.0.tar.gz"
checksum: "md5=9bfe4243869934181ccc5297fdef96a5"
}
</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-fundamental-arithmetics.8.10.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+1).
The following dependencies couldn't be met:
- coq-fundamental-arithmetics -> coq >= 8.10 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fundamental-arithmetics.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1+1/fundamental-arithmetics/8.10.0.html | HTML | mit | 7,072 |
namespace Mandrill.Model
{
public enum MandrillMailAddressType
{
To,
Cc,
Bcc
}
} | ChrisEby/Mandrill.net | src/Mandrill.net/Model/Messages/MandrillMailAddressType.cs | C# | mit | 119 |
<?php
declare(strict_types=1);
namespace OAuth2Framework\SecurityBundle\Annotation;
use Attribute;
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
class OAuth2
{
public function __construct(
private ?string $scope = null,
private ?string $token_type = null,
private ?string $client_id = null,
private ?string $resource_owner_id = null,
private ?array $custom = null
) {
}
public function getClientId(): ?string
{
return $this->client_id;
}
public function getResourceOwnerId(): ?string
{
return $this->resource_owner_id;
}
public function getScope(): ?string
{
return $this->scope;
}
public function getTokenType(): ?string
{
return $this->token_type;
}
public function getCustom(): ?array
{
return $this->custom;
}
}
| OAuth2-Framework/oauth2-framework | src/SecurityBundle/Annotation/OAuth2.php | PHP | mit | 896 |
# -*- coding: utf-8 -*-
from sitemaps import SiteMapRoot, SiteMap
from datetime import datetime
def generate_sitemap():
"""
build the sitemap
"""
sitemap = SiteMap()
sitemap.append("http://www.xxx.com", datetime.now(), "weekly", 0.9)
sitemap.append("http://www.xxx.com/a1", datetime.now(), "monthly", 0.7)
sitemap.save_xml("sitemap.xml")
def generate_sitemap_gz():
"""
get the gzip sitemap format
"""
sitemap = SiteMap()
sitemap.append("http://www.xxx.com", datetime.now(), "weekly", 0.9)
sitemap.append("http://www.xxx.com/a1", datetime.now(), "monthly", 0.7)
xml_string = sitemap.to_string
sitemap_root = SiteMapRoot("http://www.new.com", "root_sitemap.xml", False)
sitemap_root.append("sitemap1.xml.gz", xml_string)
sitemap_root.save_xml()
if __name__ == "__main__":
generate_sitemap()
generate_sitemap_gz() | nooperpudd/sitemap | simples/simple.py | Python | mit | 895 |
define(
[
'Magento_Checkout/js/model/error-processor',
'Magento_Checkout/js/model/full-screen-loader',
'Magento_Checkout/js/model/url-builder'
],
function (
errorProcessor,
fullScreenLoader,
urlBuilder
) {
'use strict';
const RETURN_URL = '/orders/:order_id/omise-offsite';
return {
/**
* Get return URL for Magento (based on order id)
*
* @return {string}
*/
getMagentoReturnUrl: function (order_id) {
return urlBuilder.createUrl(
RETURN_URL,
{ order_id }
);
},
/**
* Get payment method code
*
* @return {string}
*/
getCode: function() {
return this.code;
},
/**
* Is method available to display
*
* @return {boolean}
*/
isActive: function() {
if (this.restrictedToCurrencies && this.restrictedToCurrencies.length) {
let orderCurrency = this.getOrderCurrency();
return (this.getStoreCurrency() == orderCurrency) && this.restrictedToCurrencies.includes(orderCurrency);
} else {
return true;
}
},
/**
* Get order currency
*
* @return {string}
*/
getOrderCurrency: function () {
return window.checkoutConfig.quoteData.quote_currency_code.toLowerCase();
},
/**
* Get store currency
*
* @return {string}
*/
getStoreCurrency: function () {
return window.checkoutConfig.quoteData.store_currency_code.toLowerCase();
},
/**
* Checks if sandbox is turned on
*
* @return {boolean}
*/
isSandboxOn: function () {
return window.checkoutConfig.isOmiseSandboxOn;
},
/**
* Creates a fail handler for given context
*
* @return {boolean}
*/
buildFailHandler(context) {
return function (response) {
errorProcessor.process(response, context.messageContainer);
fullScreenLoader.stopLoader();
context.isPlaceOrderActionAllowed(true);
}
}
};
}
);
| omise/omise-magento | view/frontend/web/js/view/payment/omise-base-method-renderer.js | JavaScript | mit | 2,689 |
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Management.WebSites
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Extension methods for AppServiceEnvironmentsOperations.
/// </summary>
public static partial class AppServiceEnvironmentsOperationsExtensions
{
/// <summary>
/// Get all App Service Environments for a subscription.
/// </summary>
/// <remarks>
/// Get all App Service Environments for a subscription.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IPage<AppServiceEnvironmentResource> List(this IAppServiceEnvironmentsOperations operations)
{
return operations.ListAsync().GetAwaiter().GetResult();
}
/// <summary>
/// Get all App Service Environments for a subscription.
/// </summary>
/// <remarks>
/// Get all App Service Environments for a subscription.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AppServiceEnvironmentResource>> ListAsync(this IAppServiceEnvironmentsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all App Service Environments in a resource group.
/// </summary>
/// <remarks>
/// Get all App Service Environments in a resource group.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
public static IPage<AppServiceEnvironmentResource> ListByResourceGroup(this IAppServiceEnvironmentsOperations operations, string resourceGroupName)
{
return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult();
}
/// <summary>
/// Get all App Service Environments in a resource group.
/// </summary>
/// <remarks>
/// Get all App Service Environments in a resource group.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AppServiceEnvironmentResource>> ListByResourceGroupAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the properties of an App Service Environment.
/// </summary>
/// <remarks>
/// Get the properties of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static AppServiceEnvironmentResource Get(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.GetAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get the properties of an App Service Environment.
/// </summary>
/// <remarks>
/// Get the properties of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AppServiceEnvironmentResource> GetAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update an App Service Environment.
/// </summary>
/// <remarks>
/// Create or update an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='hostingEnvironmentEnvelope'>
/// Configuration details of the App Service Environment.
/// </param>
public static AppServiceEnvironmentResource CreateOrUpdate(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, AppServiceEnvironmentResource hostingEnvironmentEnvelope)
{
return operations.CreateOrUpdateAsync(resourceGroupName, name, hostingEnvironmentEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update an App Service Environment.
/// </summary>
/// <remarks>
/// Create or update an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='hostingEnvironmentEnvelope'>
/// Configuration details of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AppServiceEnvironmentResource> CreateOrUpdateAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, AppServiceEnvironmentResource hostingEnvironmentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, name, hostingEnvironmentEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Delete an App Service Environment.
/// </summary>
/// <remarks>
/// Delete an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='forceDelete'>
/// Specify <code>true</code> to force the deletion even if the App
/// Service Environment contains resources. The default is
/// <code>false</code>.
/// </param>
public static void Delete(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, bool? forceDelete = default(bool?))
{
operations.DeleteAsync(resourceGroupName, name, forceDelete).GetAwaiter().GetResult();
}
/// <summary>
/// Delete an App Service Environment.
/// </summary>
/// <remarks>
/// Delete an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='forceDelete'>
/// Specify <code>true</code> to force the deletion even if the App
/// Service Environment contains resources. The default is
/// <code>false</code>.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task DeleteAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, bool? forceDelete = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, name, forceDelete, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Create or update an App Service Environment.
/// </summary>
/// <remarks>
/// Create or update an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='hostingEnvironmentEnvelope'>
/// Configuration details of the App Service Environment.
/// </param>
public static AppServiceEnvironmentResource Update(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, AppServiceEnvironmentPatchResource hostingEnvironmentEnvelope)
{
return operations.UpdateAsync(resourceGroupName, name, hostingEnvironmentEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update an App Service Environment.
/// </summary>
/// <remarks>
/// Create or update an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='hostingEnvironmentEnvelope'>
/// Configuration details of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AppServiceEnvironmentResource> UpdateAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, AppServiceEnvironmentPatchResource hostingEnvironmentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, name, hostingEnvironmentEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<StampCapacity> ListCapacities(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListCapacitiesAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<StampCapacity>> ListCapacitiesAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListCapacitiesWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get IP addresses assigned to an App Service Environment.
/// </summary>
/// <remarks>
/// Get IP addresses assigned to an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static AddressResponse ListVips(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListVipsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get IP addresses assigned to an App Service Environment.
/// </summary>
/// <remarks>
/// Get IP addresses assigned to an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AddressResponse> ListVipsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListVipsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='vnetInfo'>
/// Details for the new virtual network.
/// </param>
public static IPage<Site> ChangeVnet(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, VirtualNetworkProfile vnetInfo)
{
return operations.ChangeVnetAsync(resourceGroupName, name, vnetInfo).GetAwaiter().GetResult();
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='vnetInfo'>
/// Details for the new virtual network.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> ChangeVnetAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, VirtualNetworkProfile vnetInfo, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ChangeVnetWithHttpMessagesAsync(resourceGroupName, name, vnetInfo, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get diagnostic information for an App Service Environment.
/// </summary>
/// <remarks>
/// Get diagnostic information for an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IList<HostingEnvironmentDiagnostics> ListDiagnostics(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListDiagnosticsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get diagnostic information for an App Service Environment.
/// </summary>
/// <remarks>
/// Get diagnostic information for an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IList<HostingEnvironmentDiagnostics>> ListDiagnosticsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListDiagnosticsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get a diagnostics item for an App Service Environment.
/// </summary>
/// <remarks>
/// Get a diagnostics item for an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='diagnosticsName'>
/// Name of the diagnostics item.
/// </param>
public static HostingEnvironmentDiagnostics GetDiagnosticsItem(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string diagnosticsName)
{
return operations.GetDiagnosticsItemAsync(resourceGroupName, name, diagnosticsName).GetAwaiter().GetResult();
}
/// <summary>
/// Get a diagnostics item for an App Service Environment.
/// </summary>
/// <remarks>
/// Get a diagnostics item for an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='diagnosticsName'>
/// Name of the diagnostics item.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<HostingEnvironmentDiagnostics> GetDiagnosticsItemAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string diagnosticsName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetDiagnosticsItemWithHttpMessagesAsync(resourceGroupName, name, diagnosticsName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<InboundEnvironmentEndpoint> GetInboundNetworkDependenciesEndpoints(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.GetInboundNetworkDependenciesEndpointsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<InboundEnvironmentEndpoint>> GetInboundNetworkDependenciesEndpointsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetInboundNetworkDependenciesEndpointsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get global metric definitions of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global metric definitions of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static MetricDefinition ListMetricDefinitions(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListMetricDefinitionsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get global metric definitions of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global metric definitions of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<MetricDefinition> ListMetricDefinitionsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMetricDefinitionsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get global metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
public static IPage<ResourceMetric> ListMetrics(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, bool? details = default(bool?), string filter = default(string))
{
return operations.ListMetricsAsync(resourceGroupName, name, details, filter).GetAwaiter().GetResult();
}
/// <summary>
/// Get global metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListMetricsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, bool? details = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMetricsWithHttpMessagesAsync(resourceGroupName, name, details, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all multi-role pools.
/// </summary>
/// <remarks>
/// Get all multi-role pools.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<WorkerPoolResource> ListMultiRolePools(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListMultiRolePoolsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get all multi-role pools.
/// </summary>
/// <remarks>
/// Get all multi-role pools.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<WorkerPoolResource>> ListMultiRolePoolsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get properties of a multi-role pool.
/// </summary>
/// <remarks>
/// Get properties of a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static WorkerPoolResource GetMultiRolePool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.GetMultiRolePoolAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get properties of a multi-role pool.
/// </summary>
/// <remarks>
/// Get properties of a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> GetMultiRolePoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetMultiRolePoolWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update a multi-role pool.
/// </summary>
/// <remarks>
/// Create or update a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='multiRolePoolEnvelope'>
/// Properties of the multi-role pool.
/// </param>
public static WorkerPoolResource CreateOrUpdateMultiRolePool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope)
{
return operations.CreateOrUpdateMultiRolePoolAsync(resourceGroupName, name, multiRolePoolEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update a multi-role pool.
/// </summary>
/// <remarks>
/// Create or update a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='multiRolePoolEnvelope'>
/// Properties of the multi-role pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> CreateOrUpdateMultiRolePoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateOrUpdateMultiRolePoolWithHttpMessagesAsync(resourceGroupName, name, multiRolePoolEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update a multi-role pool.
/// </summary>
/// <remarks>
/// Create or update a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='multiRolePoolEnvelope'>
/// Properties of the multi-role pool.
/// </param>
public static WorkerPoolResource UpdateMultiRolePool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope)
{
return operations.UpdateMultiRolePoolAsync(resourceGroupName, name, multiRolePoolEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update a multi-role pool.
/// </summary>
/// <remarks>
/// Create or update a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='multiRolePoolEnvelope'>
/// Properties of the multi-role pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> UpdateMultiRolePoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateMultiRolePoolWithHttpMessagesAsync(resourceGroupName, name, multiRolePoolEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='instance'>
/// Name of the instance in the multi-role pool.
/// </param>
public static IPage<ResourceMetricDefinition> ListMultiRolePoolInstanceMetricDefinitions(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string instance)
{
return operations.ListMultiRolePoolInstanceMetricDefinitionsAsync(resourceGroupName, name, instance).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='instance'>
/// Name of the instance in the multi-role pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListMultiRolePoolInstanceMetricDefinitionsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string instance, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolInstanceMetricDefinitionsWithHttpMessagesAsync(resourceGroupName, name, instance, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='instance'>
/// Name of the instance in the multi-role pool.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
public static IPage<ResourceMetric> ListMultiRolePoolInstanceMetrics(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string instance, bool? details = default(bool?))
{
return operations.ListMultiRolePoolInstanceMetricsAsync(resourceGroupName, name, instance, details).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='instance'>
/// Name of the instance in the multi-role pool.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListMultiRolePoolInstanceMetricsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string instance, bool? details = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolInstanceMetricsWithHttpMessagesAsync(resourceGroupName, name, instance, details, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<ResourceMetricDefinition> ListMultiRoleMetricDefinitions(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListMultiRoleMetricDefinitionsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListMultiRoleMetricDefinitionsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRoleMetricDefinitionsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='startTime'>
/// Beginning time of the metrics query.
/// </param>
/// <param name='endTime'>
/// End time of the metrics query.
/// </param>
/// <param name='timeGrain'>
/// Time granularity of the metrics query.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
public static IPage<ResourceMetric> ListMultiRoleMetrics(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string startTime = default(string), string endTime = default(string), string timeGrain = default(string), bool? details = default(bool?), string filter = default(string))
{
return operations.ListMultiRoleMetricsAsync(resourceGroupName, name, startTime, endTime, timeGrain, details, filter).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='startTime'>
/// Beginning time of the metrics query.
/// </param>
/// <param name='endTime'>
/// End time of the metrics query.
/// </param>
/// <param name='timeGrain'>
/// Time granularity of the metrics query.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListMultiRoleMetricsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string startTime = default(string), string endTime = default(string), string timeGrain = default(string), bool? details = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRoleMetricsWithHttpMessagesAsync(resourceGroupName, name, startTime, endTime, timeGrain, details, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get available SKUs for scaling a multi-role pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<SkuInfo> ListMultiRolePoolSkus(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListMultiRolePoolSkusAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get available SKUs for scaling a multi-role pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<SkuInfo>> ListMultiRolePoolSkusAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolSkusWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<Usage> ListMultiRoleUsages(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListMultiRoleUsagesAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Usage>> ListMultiRoleUsagesAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRoleUsagesWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// List all currently running operations on the App Service Environment.
/// </summary>
/// <remarks>
/// List all currently running operations on the App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IList<Operation> ListOperations(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListOperationsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// List all currently running operations on the App Service Environment.
/// </summary>
/// <remarks>
/// List all currently running operations on the App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IList<Operation>> ListOperationsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListOperationsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<OutboundEnvironmentEndpoint> GetOutboundNetworkDependenciesEndpoints(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.GetOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<OutboundEnvironmentEndpoint>> GetOutboundNetworkDependenciesEndpointsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Reboot all machines in an App Service Environment.
/// </summary>
/// <remarks>
/// Reboot all machines in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static void Reboot(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
operations.RebootAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Reboot all machines in an App Service Environment.
/// </summary>
/// <remarks>
/// Reboot all machines in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task RebootAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.RebootWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<Site> Resume(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ResumeAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> ResumeAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ResumeWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all App Service plans in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all App Service plans in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<AppServicePlan> ListAppServicePlans(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListAppServicePlansAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get all App Service plans in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all App Service plans in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AppServicePlan>> ListAppServicePlansAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListAppServicePlansWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all apps in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all apps in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='propertiesToInclude'>
/// Comma separated list of app properties to include.
/// </param>
public static IPage<Site> ListWebApps(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string propertiesToInclude = default(string))
{
return operations.ListWebAppsAsync(resourceGroupName, name, propertiesToInclude).GetAwaiter().GetResult();
}
/// <summary>
/// Get all apps in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all apps in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='propertiesToInclude'>
/// Comma separated list of app properties to include.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> ListWebAppsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string propertiesToInclude = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebAppsWithHttpMessagesAsync(resourceGroupName, name, propertiesToInclude, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<Site> Suspend(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.SuspendAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> SuspendAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.SuspendWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get global usage metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global usage metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
public static IPage<CsmUsageQuota> ListUsages(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string filter = default(string))
{
return operations.ListUsagesAsync(resourceGroupName, name, filter).GetAwaiter().GetResult();
}
/// <summary>
/// Get global usage metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global usage metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<CsmUsageQuota>> ListUsagesAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListUsagesWithHttpMessagesAsync(resourceGroupName, name, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all worker pools of an App Service Environment.
/// </summary>
/// <remarks>
/// Get all worker pools of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<WorkerPoolResource> ListWorkerPools(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.ListWorkerPoolsAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Get all worker pools of an App Service Environment.
/// </summary>
/// <remarks>
/// Get all worker pools of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<WorkerPoolResource>> ListWorkerPoolsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get properties of a worker pool.
/// </summary>
/// <remarks>
/// Get properties of a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
public static WorkerPoolResource GetWorkerPool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName)
{
return operations.GetWorkerPoolAsync(resourceGroupName, name, workerPoolName).GetAwaiter().GetResult();
}
/// <summary>
/// Get properties of a worker pool.
/// </summary>
/// <remarks>
/// Get properties of a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> GetWorkerPoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWorkerPoolWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update a worker pool.
/// </summary>
/// <remarks>
/// Create or update a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='workerPoolEnvelope'>
/// Properties of the worker pool.
/// </param>
public static WorkerPoolResource CreateOrUpdateWorkerPool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, WorkerPoolResource workerPoolEnvelope)
{
return operations.CreateOrUpdateWorkerPoolAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update a worker pool.
/// </summary>
/// <remarks>
/// Create or update a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='workerPoolEnvelope'>
/// Properties of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> CreateOrUpdateWorkerPoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, WorkerPoolResource workerPoolEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateOrUpdateWorkerPoolWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update a worker pool.
/// </summary>
/// <remarks>
/// Create or update a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='workerPoolEnvelope'>
/// Properties of the worker pool.
/// </param>
public static WorkerPoolResource UpdateWorkerPool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, WorkerPoolResource workerPoolEnvelope)
{
return operations.UpdateWorkerPoolAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update a worker pool.
/// </summary>
/// <remarks>
/// Create or update a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='workerPoolEnvelope'>
/// Properties of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> UpdateWorkerPoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, WorkerPoolResource workerPoolEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateWorkerPoolWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='instance'>
/// Name of the instance in the worker pool.
/// </param>
public static IPage<ResourceMetricDefinition> ListWorkerPoolInstanceMetricDefinitions(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, string instance)
{
return operations.ListWorkerPoolInstanceMetricDefinitionsAsync(resourceGroupName, name, workerPoolName, instance).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='instance'>
/// Name of the instance in the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListWorkerPoolInstanceMetricDefinitionsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, string instance, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolInstanceMetricDefinitionsWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, instance, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='instance'>
/// Name of the instance in the worker pool.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
public static IPage<ResourceMetric> ListWorkerPoolInstanceMetrics(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, string instance, bool? details = default(bool?), string filter = default(string))
{
return operations.ListWorkerPoolInstanceMetricsAsync(resourceGroupName, name, workerPoolName, instance, details, filter).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='instance'>
/// Name of the instance in the worker pool.
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListWorkerPoolInstanceMetricsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, string instance, bool? details = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolInstanceMetricsWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, instance, details, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
public static IPage<ResourceMetricDefinition> ListWebWorkerMetricDefinitions(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName)
{
return operations.ListWebWorkerMetricDefinitionsAsync(resourceGroupName, name, workerPoolName).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListWebWorkerMetricDefinitionsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebWorkerMetricDefinitionsWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </summary>
/// <remarks>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of worker pool
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
public static IPage<ResourceMetric> ListWebWorkerMetrics(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, bool? details = default(bool?), string filter = default(string))
{
return operations.ListWebWorkerMetricsAsync(resourceGroupName, name, workerPoolName, details, filter).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </summary>
/// <remarks>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of worker pool
/// </param>
/// <param name='details'>
/// Specify <code>true</code> to include instance details. The
/// default is <code>false</code>.
/// </param>
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListWebWorkerMetricsAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, bool? details = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebWorkerMetricsWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, details, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get available SKUs for scaling a worker pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
public static IPage<SkuInfo> ListWorkerPoolSkus(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName)
{
return operations.ListWorkerPoolSkusAsync(resourceGroupName, name, workerPoolName).GetAwaiter().GetResult();
}
/// <summary>
/// Get available SKUs for scaling a worker pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<SkuInfo>> ListWorkerPoolSkusAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolSkusWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
public static IPage<Usage> ListWebWorkerUsages(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName)
{
return operations.ListWebWorkerUsagesAsync(resourceGroupName, name, workerPoolName).GetAwaiter().GetResult();
}
/// <summary>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Usage>> ListWebWorkerUsagesAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebWorkerUsagesWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update an App Service Environment.
/// </summary>
/// <remarks>
/// Create or update an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='hostingEnvironmentEnvelope'>
/// Configuration details of the App Service Environment.
/// </param>
public static AppServiceEnvironmentResource BeginCreateOrUpdate(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, AppServiceEnvironmentResource hostingEnvironmentEnvelope)
{
return operations.BeginCreateOrUpdateAsync(resourceGroupName, name, hostingEnvironmentEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update an App Service Environment.
/// </summary>
/// <remarks>
/// Create or update an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='hostingEnvironmentEnvelope'>
/// Configuration details of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AppServiceEnvironmentResource> BeginCreateOrUpdateAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, AppServiceEnvironmentResource hostingEnvironmentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, name, hostingEnvironmentEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Delete an App Service Environment.
/// </summary>
/// <remarks>
/// Delete an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='forceDelete'>
/// Specify <code>true</code> to force the deletion even if the App
/// Service Environment contains resources. The default is
/// <code>false</code>.
/// </param>
public static void BeginDelete(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, bool? forceDelete = default(bool?))
{
operations.BeginDeleteAsync(resourceGroupName, name, forceDelete).GetAwaiter().GetResult();
}
/// <summary>
/// Delete an App Service Environment.
/// </summary>
/// <remarks>
/// Delete an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='forceDelete'>
/// Specify <code>true</code> to force the deletion even if the App
/// Service Environment contains resources. The default is
/// <code>false</code>.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task BeginDeleteAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, bool? forceDelete = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, name, forceDelete, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='vnetInfo'>
/// Details for the new virtual network.
/// </param>
public static IPage<Site> BeginChangeVnet(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, VirtualNetworkProfile vnetInfo)
{
return operations.BeginChangeVnetAsync(resourceGroupName, name, vnetInfo).GetAwaiter().GetResult();
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='vnetInfo'>
/// Details for the new virtual network.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> BeginChangeVnetAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, VirtualNetworkProfile vnetInfo, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginChangeVnetWithHttpMessagesAsync(resourceGroupName, name, vnetInfo, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update a multi-role pool.
/// </summary>
/// <remarks>
/// Create or update a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='multiRolePoolEnvelope'>
/// Properties of the multi-role pool.
/// </param>
public static WorkerPoolResource BeginCreateOrUpdateMultiRolePool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope)
{
return operations.BeginCreateOrUpdateMultiRolePoolAsync(resourceGroupName, name, multiRolePoolEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update a multi-role pool.
/// </summary>
/// <remarks>
/// Create or update a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='multiRolePoolEnvelope'>
/// Properties of the multi-role pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> BeginCreateOrUpdateMultiRolePoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, WorkerPoolResource multiRolePoolEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginCreateOrUpdateMultiRolePoolWithHttpMessagesAsync(resourceGroupName, name, multiRolePoolEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<Site> BeginResume(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.BeginResumeAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> BeginResumeAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginResumeWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
public static IPage<Site> BeginSuspend(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name)
{
return operations.BeginSuspendAsync(resourceGroupName, name).GetAwaiter().GetResult();
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> BeginSuspendAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginSuspendWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Create or update a worker pool.
/// </summary>
/// <remarks>
/// Create or update a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='workerPoolEnvelope'>
/// Properties of the worker pool.
/// </param>
public static WorkerPoolResource BeginCreateOrUpdateWorkerPool(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, WorkerPoolResource workerPoolEnvelope)
{
return operations.BeginCreateOrUpdateWorkerPoolAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope).GetAwaiter().GetResult();
}
/// <summary>
/// Create or update a worker pool.
/// </summary>
/// <remarks>
/// Create or update a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='name'>
/// Name of the App Service Environment.
/// </param>
/// <param name='workerPoolName'>
/// Name of the worker pool.
/// </param>
/// <param name='workerPoolEnvelope'>
/// Properties of the worker pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<WorkerPoolResource> BeginCreateOrUpdateWorkerPoolAsync(this IAppServiceEnvironmentsOperations operations, string resourceGroupName, string name, string workerPoolName, WorkerPoolResource workerPoolEnvelope, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginCreateOrUpdateWorkerPoolWithHttpMessagesAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all App Service Environments for a subscription.
/// </summary>
/// <remarks>
/// Get all App Service Environments for a subscription.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<AppServiceEnvironmentResource> ListNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get all App Service Environments for a subscription.
/// </summary>
/// <remarks>
/// Get all App Service Environments for a subscription.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AppServiceEnvironmentResource>> ListNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all App Service Environments in a resource group.
/// </summary>
/// <remarks>
/// Get all App Service Environments in a resource group.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<AppServiceEnvironmentResource> ListByResourceGroupNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get all App Service Environments in a resource group.
/// </summary>
/// <remarks>
/// Get all App Service Environments in a resource group.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AppServiceEnvironmentResource>> ListByResourceGroupNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<StampCapacity> ListCapacitiesNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListCapacitiesNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the used, available, and total worker capacity an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<StampCapacity>> ListCapacitiesNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListCapacitiesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> ChangeVnetNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ChangeVnetNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> ChangeVnetNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ChangeVnetNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<InboundEnvironmentEndpoint> GetInboundNetworkDependenciesEndpointsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.GetInboundNetworkDependenciesEndpointsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all inbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<InboundEnvironmentEndpoint>> GetInboundNetworkDependenciesEndpointsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetInboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get global metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetric> ListMetricsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMetricsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get global metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListMetricsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMetricsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all multi-role pools.
/// </summary>
/// <remarks>
/// Get all multi-role pools.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<WorkerPoolResource> ListMultiRolePoolsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRolePoolsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get all multi-role pools.
/// </summary>
/// <remarks>
/// Get all multi-role pools.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<WorkerPoolResource>> ListMultiRolePoolsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetricDefinition> ListMultiRolePoolInstanceMetricDefinitionsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRolePoolInstanceMetricDefinitionsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a multi-role pool of an
/// App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListMultiRolePoolInstanceMetricDefinitionsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolInstanceMetricDefinitionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetric> ListMultiRolePoolInstanceMetricsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRolePoolInstanceMetricsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a multi-role pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListMultiRolePoolInstanceMetricsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolInstanceMetricsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetricDefinition> ListMultiRoleMetricDefinitionsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRoleMetricDefinitionsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListMultiRoleMetricDefinitionsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRoleMetricDefinitionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetric> ListMultiRoleMetricsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRoleMetricsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListMultiRoleMetricsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRoleMetricsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get available SKUs for scaling a multi-role pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<SkuInfo> ListMultiRolePoolSkusNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRolePoolSkusNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get available SKUs for scaling a multi-role pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a multi-role pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<SkuInfo>> ListMultiRolePoolSkusNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRolePoolSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Usage> ListMultiRoleUsagesNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListMultiRoleUsagesNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a multi-role pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Usage>> ListMultiRoleUsagesNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListMultiRoleUsagesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<OutboundEnvironmentEndpoint> GetOutboundNetworkDependenciesEndpointsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.GetOutboundNetworkDependenciesEndpointsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get the network endpoints of all outbound dependencies of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<OutboundEnvironmentEndpoint>> GetOutboundNetworkDependenciesEndpointsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetOutboundNetworkDependenciesEndpointsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> ResumeNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ResumeNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> ResumeNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ResumeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all App Service plans in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all App Service plans in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<AppServicePlan> ListAppServicePlansNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListAppServicePlansNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get all App Service plans in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all App Service plans in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<AppServicePlan>> ListAppServicePlansNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListAppServicePlansNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all apps in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all apps in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> ListWebAppsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWebAppsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get all apps in an App Service Environment.
/// </summary>
/// <remarks>
/// Get all apps in an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> ListWebAppsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebAppsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> SuspendNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.SuspendNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> SuspendNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.SuspendNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get global usage metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global usage metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<CsmUsageQuota> ListUsagesNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListUsagesNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get global usage metrics of an App Service Environment.
/// </summary>
/// <remarks>
/// Get global usage metrics of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<CsmUsageQuota>> ListUsagesNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListUsagesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get all worker pools of an App Service Environment.
/// </summary>
/// <remarks>
/// Get all worker pools of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<WorkerPoolResource> ListWorkerPoolsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWorkerPoolsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get all worker pools of an App Service Environment.
/// </summary>
/// <remarks>
/// Get all worker pools of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<WorkerPoolResource>> ListWorkerPoolsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetricDefinition> ListWorkerPoolInstanceMetricDefinitionsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWorkerPoolInstanceMetricDefinitionsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a specific instance of a worker pool of an App
/// Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListWorkerPoolInstanceMetricDefinitionsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolInstanceMetricDefinitionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetric> ListWorkerPoolInstanceMetricsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWorkerPoolInstanceMetricsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </summary>
/// <remarks>
/// Get metrics for a specific instance of a worker pool of an App Service
/// Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListWorkerPoolInstanceMetricsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolInstanceMetricsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetricDefinition> ListWebWorkerMetricDefinitionsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWebWorkerMetricDefinitionsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get metric definitions for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetricDefinition>> ListWebWorkerMetricDefinitionsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebWorkerMetricDefinitionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </summary>
/// <remarks>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<ResourceMetric> ListWebWorkerMetricsNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWebWorkerMetricsNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </summary>
/// <remarks>
/// Get metrics for a worker pool of a AppServiceEnvironment (App Service
/// Environment).
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<ResourceMetric>> ListWebWorkerMetricsNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebWorkerMetricsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get available SKUs for scaling a worker pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<SkuInfo> ListWorkerPoolSkusNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWorkerPoolSkusNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get available SKUs for scaling a worker pool.
/// </summary>
/// <remarks>
/// Get available SKUs for scaling a worker pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<SkuInfo>> ListWorkerPoolSkusNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWorkerPoolSkusNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Usage> ListWebWorkerUsagesNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.ListWebWorkerUsagesNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </summary>
/// <remarks>
/// Get usage metrics for a worker pool of an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Usage>> ListWebWorkerUsagesNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWebWorkerUsagesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> BeginChangeVnetNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.BeginChangeVnetNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Move an App Service Environment to a different VNET.
/// </summary>
/// <remarks>
/// Move an App Service Environment to a different VNET.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> BeginChangeVnetNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginChangeVnetNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> BeginResumeNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.BeginResumeNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Resume an App Service Environment.
/// </summary>
/// <remarks>
/// Resume an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> BeginResumeNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginResumeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<Site> BeginSuspendNext(this IAppServiceEnvironmentsOperations operations, string nextPageLink)
{
return operations.BeginSuspendNextAsync(nextPageLink).GetAwaiter().GetResult();
}
/// <summary>
/// Suspend an App Service Environment.
/// </summary>
/// <remarks>
/// Suspend an App Service Environment.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<Site>> BeginSuspendNextAsync(this IAppServiceEnvironmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginSuspendNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
}
}
| jamestao/azure-sdk-for-net | src/SDKs/WebSites/Management.Websites/Generated/AppServiceEnvironmentsOperationsExtensions.cs | C# | mit | 184,247 |
// Parts of this source are modified from npm and lerna:
// npm: https://github.com/npm/npm/blob/master/LICENSE
// lerna: https://github.com/lerna/lerna/blob/master/LICENSE
// @flow
import fs from 'fs';
import path from 'path';
import _cmdShim from 'cmd-shim';
import _readCmdShim from 'read-cmd-shim';
import promisify from 'typeable-promisify';
import makeDir from 'make-dir';
import _rimraf from 'rimraf';
export function readFile(filePath: string): Promise<string> {
return promisify(cb => fs.readFile(filePath, cb));
}
export function writeFile(
filePath: string,
fileContents: string
): Promise<string> {
return promisify(cb => fs.writeFile(filePath, fileContents, cb));
}
export function mkdirp(filePath: string): Promise<void> {
return makeDir(filePath);
}
export function rimraf(filePath: string): Promise<void> {
return promisify(cb => _rimraf(filePath, cb));
}
export function stat(filePath: string) {
return promisify(cb => fs.stat(filePath, cb));
}
export function lstat(filePath: string) {
return promisify(cb => fs.lstat(filePath, cb));
}
function unlink(filePath: string) {
return promisify(cb => fs.unlink(filePath, cb));
}
export function realpath(filePath: string) {
return promisify(cb => fs.realpath(filePath, cb));
}
function _symlink(src: string, dest: string, type: string) {
return promisify(cb => fs.symlink(src, dest, type, cb));
}
function stripExtension(filePath: string) {
return path.join(
path.dirname(filePath),
path.basename(filePath, path.extname(filePath))
);
}
async function cmdShim(src: string, dest: string) {
// If not a symlink we default to the actual src file
// https://github.com/npm/npm/blob/d081cc6c8d73f2aa698aab36605377c95e916224/lib/utils/gently-rm.js#L273
let relativeShimTarget = await readlink(src);
let currentShimTarget = relativeShimTarget
? path.resolve(path.dirname(src), relativeShimTarget)
: src;
await promisify(cb => _cmdShim(currentShimTarget, stripExtension(dest), cb));
}
async function createSymbolicLink(src, dest, type) {
try {
await lstat(dest);
await rimraf(dest);
} catch (err) {
if (err.code === 'EPERM') throw err;
}
await _symlink(src, dest, type);
}
async function createPosixSymlink(origin, dest, type) {
if (type === 'exec') {
type = 'file';
}
let src = path.relative(path.dirname(dest), origin);
return await createSymbolicLink(src, dest, type);
}
async function createWindowsSymlink(src, dest, type) {
if (type === 'exec') {
return await cmdShim(src, dest);
} else {
return await createSymbolicLink(src, dest, type);
}
}
export async function symlink(
src: string,
dest: string,
type: 'exec' | 'junction'
) {
if (dest.includes(path.sep)) {
await mkdirp(path.dirname(dest));
}
if (process.platform === 'win32') {
return await createWindowsSymlink(src, dest, type);
} else {
return await createPosixSymlink(src, dest, type);
}
}
export async function readdir(dir: string) {
return promisify(cb => fs.readdir(dir, cb));
}
// Return an empty array if a directory doesnt exist (but still throw if errof if dir is a file)
export async function readdirSafe(dir: string) {
return stat(dir)
.catch(err => Promise.resolve([]))
.then(statsOrArray => {
if (statsOrArray instanceof Array) return statsOrArray;
if (!statsOrArray.isDirectory())
throw new Error(dir + ' is not a directory');
return readdir(dir);
});
}
function readCmdShim(filePath: string) {
return promisify(cb => _readCmdShim(filePath, cb));
}
function _readlink(filePath: string) {
return promisify(cb => fs.readlink(filePath, cb));
}
// Copied from:
// https://github.com/npm/npm/blob/d081cc6c8d73f2aa698aab36605377c95e916224/lib/utils/gently-rm.js#L280-L297
export async function readlink(filePath: string) {
let stat = await lstat(filePath);
let result = null;
if (stat.isSymbolicLink()) {
result = await _readlink(filePath);
} else {
try {
result = await readCmdShim(filePath);
} catch (err) {
if (err.code !== 'ENOTASHIM' && err.code !== 'EISDIR') {
throw err;
}
}
}
return result;
}
export async function dirExists(dir: string) {
try {
let _stat = await stat(dir);
return _stat.isDirectory();
} catch (err) {
return false;
}
}
export async function symlinkExists(filePath: string) {
try {
let stat = await lstat(filePath);
return stat.isSymbolicLink();
} catch (err) {
return false;
}
}
| boltpkg/bolt | src/utils/fs.js | JavaScript | mit | 4,517 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.0 / unicoq - 1.3+8.9</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
unicoq
<small>
1.3+8.9
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-30 23:51:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-30 23:51:15 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.8.0 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.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
authors: [ "Matthieu Sozeau <matthieu.sozeau@inria.fr>" "Beta Ziliani <beta@mpi-sws.org>" ]
dev-repo: "git+https://github.com/unicoq/unicoq.git"
homepage: "https://github.com/unicoq/unicoq"
bug-reports: "https://github.com/unicoq/unicoq/issues"
license: "MIT"
build: [
["coq_makefile" "-f" "Make" "-o" "Makefile"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
depends: [
"ocaml"
"coq" {>= "8.9.0" & < "8.10~"}
]
synopsis: "An enhanced unification algorithm for Coq"
url {
src: "https://github.com/unicoq/unicoq/archive/v1.3-8.9.tar.gz"
checksum: "md5=06f7a0abf3ba2de4467160d5872bb7b6"
}
</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-unicoq.1.3+8.9 coq.8.8.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.0).
The following dependencies couldn't be met:
- coq-unicoq -> coq >= 8.9.0 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
Your request can'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-unicoq.1.3+8.9</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.8.0/unicoq/1.3+8.9.html | HTML | mit | 6,860 |
module.exports = IpfsUtil;
var fs = require('fs');
var formstream = require('formstream');
var http = require('http');
var request = require('request');
function IpfsUtil() {
}
IpfsUtil.prototype.init = function (config) {
this.__host = config.ipfs.host;
this.__port = config.ipfs.port;
};
IpfsUtil.prototype.getTar = function (key, toFile, callback) {
var self = this;
var uri = 'http://' + self.__host + ':' + self.__port + '/api/v0/tar/cat?arg=' + key;
console.log(uri);
request
.get(uri)
.on('end', function () {
console.log('GET request ended....');
callback();
}).on('error', function (err) {
console.log('ERROR: ', err);
return callback(err);
})
.pipe(fs.createWriteStream(toFile));
};
IpfsUtil.prototype.uploadTar = function (filePath, callback) {
var self = this;
var form = formstream();
form.file('file', filePath);
var options = {
method: 'POST',
host: self.__host,
port: self.__port,
path: '/api/v0/tar/add',
headers: form.headers()
};
console.log(options);
var req = http.request(options, function (res) {
res.on('data', function (data) {
console.log(data);
callback(null, (JSON.parse(data)).Hash);
});
//res.on('end', function () {
// console.log('Request ended...');
// callback();
//});
res.on('error', function (err) {
console.log(err);
return callback(err);
})
});
form.pipe(req);
}; | team-tenacious/tracey-job-modules | lib/utils/ipfs-util.js | JavaScript | mit | 1,625 |
# EverDB
[](https://travis-ci.org/Knio/everdb-go)
[](https://coveralls.io/r/Knio/everdb-go)
`EverDB-go` is a `Go` language port of [EverDB](https://github.com/Knio/everdb)
`EverDB-go` is currently a work in progress and is *unfinished* and *not fit for use*.
## Docs
http://godoc.org/github.com/Knio/everdb-go
| Knio/everdb-go | README.md | Markdown | mit | 446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.