text stringlengths 2 1.04M | meta dict |
|---|---|
package com.opengamma.analytics.financial.provider.calculator.sabrcap;
import com.opengamma.analytics.financial.interestrate.InstrumentDerivative;
import com.opengamma.analytics.financial.interestrate.InstrumentDerivativeVisitorSameMethodAdapter;
import com.opengamma.analytics.financial.interestrate.annuity.derivative.Annuity;
import com.opengamma.analytics.financial.interestrate.payments.derivative.CapFloorIbor;
import com.opengamma.analytics.financial.interestrate.payments.derivative.Payment;
import com.opengamma.analytics.financial.interestrate.payments.provider.CapFloorIborSABRCapExtrapolationRightMethod;
import com.opengamma.analytics.financial.provider.description.interestrate.SABRCapProviderInterface;
import com.opengamma.util.ArgumentChecker;
import com.opengamma.util.money.MultipleCurrencyAmount;
/**
* Calculates the present value of an inflation instruments by discounting for a given MarketBundle.
*/
public final class PresentValueSABRCapRightExtrapolationCalculator
extends InstrumentDerivativeVisitorSameMethodAdapter<SABRCapProviderInterface, MultipleCurrencyAmount> {
/**
* The cut-off strike. The smile is extrapolated above that level.
*/
private final double _cutOffStrike;
/**
* The tail thickness parameter.
*/
private final double _mu;
/**
* The methods.
*/
private final CapFloorIborSABRCapExtrapolationRightMethod _methodExtraCap;
/**
* Constructor.
*
* @param cutOffStrike
* The cut-off strike.
* @param mu
* The tail thickness parameter.
*/
public PresentValueSABRCapRightExtrapolationCalculator(final double cutOffStrike, final double mu) {
_mu = mu;
_cutOffStrike = cutOffStrike;
_methodExtraCap = new CapFloorIborSABRCapExtrapolationRightMethod(_cutOffStrike, _mu);
}
@Override
public MultipleCurrencyAmount visit(final InstrumentDerivative derivative, final SABRCapProviderInterface sabr) {
return derivative.accept(this, sabr);
}
// ----- Payment/Coupon ------
@Override
public MultipleCurrencyAmount visitCapFloorIbor(final CapFloorIbor cap, final SABRCapProviderInterface sabr) {
return _methodExtraCap.presentValue(cap, sabr);
}
// ----- Annuity ------
@Override
public MultipleCurrencyAmount visitGenericAnnuity(final Annuity<? extends Payment> annuity, final SABRCapProviderInterface sabr) {
ArgumentChecker.notNull(annuity, "Annuity");
MultipleCurrencyAmount pv = visit(annuity.getNthPayment(0), sabr);
for (int loopp = 1; loopp < annuity.getNumberOfPayments(); loopp++) {
pv = pv.plus(visit(annuity.getNthPayment(loopp), sabr));
}
return pv;
}
@Override
public MultipleCurrencyAmount visit(final InstrumentDerivative derivative) {
throw new UnsupportedOperationException();
}
}
| {
"content_hash": "74bb5a5238133730698fc34ab82c8f95",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 132,
"avg_line_length": 36.36363636363637,
"alnum_prop": 0.7746428571428572,
"repo_name": "McLeodMoores/starling",
"id": "a5a348fa9ab5510ec2cc2152b0c42c2b6ae79dea",
"size": "2937",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "projects/analytics/src/main/java/com/opengamma/analytics/financial/provider/calculator/sabrcap/PresentValueSABRCapRightExtrapolationCalculator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "2505"
},
{
"name": "CSS",
"bytes": "213501"
},
{
"name": "FreeMarker",
"bytes": "310184"
},
{
"name": "GAP",
"bytes": "1490"
},
{
"name": "Groovy",
"bytes": "11518"
},
{
"name": "HTML",
"bytes": "318295"
},
{
"name": "Java",
"bytes": "79541905"
},
{
"name": "JavaScript",
"bytes": "1511230"
},
{
"name": "PLSQL",
"bytes": "398"
},
{
"name": "PLpgSQL",
"bytes": "26901"
},
{
"name": "Shell",
"bytes": "11481"
},
{
"name": "TSQL",
"bytes": "604117"
}
],
"symlink_target": ""
} |
var UI = require('./UI');
class App {
constructor() {
this.ui = new UI();
}
initialize() {
this.ui.initialize();
}
}
module.exports = App; | {
"content_hash": "3c0f1a4837d43ae37538433e7aabf4b8",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 25,
"avg_line_length": 10.714285714285714,
"alnum_prop": 0.5733333333333334,
"repo_name": "danieldunderfelt/developsuperpowers-redux",
"id": "3b71dc8a697743fd6eabe4227bc9efe8f46b4bf5",
"size": "150",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "assets/js/app/App.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "356"
},
{
"name": "CSS",
"bytes": "30991"
},
{
"name": "JavaScript",
"bytes": "709831"
},
{
"name": "PHP",
"bytes": "71401"
}
],
"symlink_target": ""
} |
var app = require('express')(),
wizard = require('hmpo-form-wizard'),
steps = require('./steps'),
fields = require('./fields');
app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' }));
app.use(wizard(steps, fields, { templatePath: 'priority_service_170301/rejectedphoto' }));
module.exports = app;
| {
"content_hash": "a16298554acf5e1645eb18887dd2231d",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 90,
"avg_line_length": 34.5,
"alnum_prop": 0.6782608695652174,
"repo_name": "UKHomeOffice/passports-prototype",
"id": "044c1f167d0e00ae2674deb1bb74d0b88cd71d51",
"size": "345",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "routes/priority_service_170301/rejectedphoto/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "39324"
},
{
"name": "HTML",
"bytes": "6619551"
},
{
"name": "JavaScript",
"bytes": "1250249"
}
],
"symlink_target": ""
} |
<?php
namespace Elastica\Bulk\Action;
use Elastica\AbstractUpdateAction;
use Elastica\Bulk\Action;
use Elastica\Document;
class IndexDocument extends AbstractDocument
{
/**
* @var string
*/
protected $_opType = self::OP_TYPE_INDEX;
/**
* @param \Elastica\Document $document
* @return \Elastica\Bulk\Action\IndexDocument
*/
public function setDocument(Document $document)
{
parent::setDocument($document);
$this->setSource($document->getData());
return $this;
}
/**
* @param \Elastica\AbstractUpdateAction $source
* @return array
*/
protected function _getMetadata(AbstractUpdateAction $action)
{
$params = array(
'index',
'type',
'id',
'version',
'version_type',
'routing',
'percolate',
'parent',
'ttl',
'timestamp',
'retry_on_conflict',
);
$metadata = $action->getOptions($params, true);
return $metadata;
}
}
| {
"content_hash": "3c3063a8205add5f0139ee49ad841be8",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 65,
"avg_line_length": 21.26923076923077,
"alnum_prop": 0.5352622061482821,
"repo_name": "thelastsoulja/Cpanet",
"id": "dc1763189c9de06e062c28e732855e9c2521b4ed",
"size": "1106",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "vendor/ruflin/elastica/lib/Elastica/Bulk/Action/IndexDocument.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "2907"
},
{
"name": "CSS",
"bytes": "19988"
},
{
"name": "HTML",
"bytes": "10197"
},
{
"name": "JavaScript",
"bytes": "13596"
},
{
"name": "PHP",
"bytes": "48482"
}
],
"symlink_target": ""
} |
rm -f work*cf
ghdl -i simple.vhdl
ghdl -m simple
| {
"content_hash": "79854ec7923ae19ae674261c267dbee3",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 19,
"avg_line_length": 16.333333333333332,
"alnum_prop": 0.7142857142857143,
"repo_name": "drhodes/jade2hdl",
"id": "ead981f77a053369f9e8665055f168a55258797b",
"size": "49",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test-data/vhdl/simple/build.sh",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "HTML",
"bytes": "2784"
},
{
"name": "Haskell",
"bytes": "187672"
},
{
"name": "Makefile",
"bytes": "1714"
},
{
"name": "Shell",
"bytes": "779"
},
{
"name": "VHDL",
"bytes": "45883"
}
],
"symlink_target": ""
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class City extends Model
{
protected $fillable = ['name', 'country_id'];
public function orders()
{
return $this->hasMany('App\Order');
}
public function districts()
{
return $this->hasMany('App\District');
}
public function country()
{
return $this->belongsTo('App\Country');
}
public function shops()
{
return $this->hasMany('App\Shop');
}
}
| {
"content_hash": "5df1bd5787e5b78a6ce3aab962100f27",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 49,
"avg_line_length": 16.533333333333335,
"alnum_prop": 0.5826612903225806,
"repo_name": "php-soft/laravel-marketplace-full-web",
"id": "c3f9157828bbe267b599c949936637eeb6f856b0",
"size": "496",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/City.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "553"
},
{
"name": "HTML",
"bytes": "152526"
},
{
"name": "PHP",
"bytes": "161343"
},
{
"name": "Vue",
"bytes": "563"
}
],
"symlink_target": ""
} |
<!-- BEGIN: title -->Tools<!-- END: title -->
<!-- BEGIN: content -->
<!-- BEGIN: messages --><div class="onxshop_messages">{MESSAGES}</div><!-- END: messages -->
<div class="tools">
<div class="twoColumnPage page sidebar">
<div class="top"><span></span></div>
<div class="content">
<div class="pageWrapper">
<div class="pageHeader">
<div class="pageHeaderWrapper">
<h1 class="pageTitle"><span>Tools</span></h1>
</div>
</div>
<div class="pageContent">
<div class="pageContentWrapper">
<div class="rowTop">
<div class="rowWrapper">
<div class="columnWrapper">
{ONXSHOP_REQUEST_tools #bo/component/tools}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bottom"><span></span></div>
</div>
</div>
<!-- END: content -->
| {
"content_hash": "fcd70944e8b932971f828d3d67ff115d",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 92,
"avg_line_length": 21.71794871794872,
"alnum_prop": 0.5537190082644629,
"repo_name": "chrisblackni/onxshop",
"id": "9e252a6813a38c7223904e94589ff0dd270836bf",
"size": "847",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "templates/bo/pages/tools.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "17"
},
{
"name": "Batchfile",
"bytes": "1036"
},
{
"name": "CSS",
"bytes": "251826"
},
{
"name": "HTML",
"bytes": "1456886"
},
{
"name": "JavaScript",
"bytes": "577601"
},
{
"name": "PHP",
"bytes": "22186480"
},
{
"name": "PowerShell",
"bytes": "1028"
},
{
"name": "Shell",
"bytes": "9451"
}
],
"symlink_target": ""
} |
.class Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;
.super Ljava/lang/Object;
.source "RadioGroup.java"
# interfaces
.implements Landroid/view/ViewGroup$OnHierarchyChangeListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/widget/RadioGroup;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "PassThroughHierarchyChangeListener"
.end annotation
# instance fields
.field private mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
.field final synthetic this$0:Landroid/widget/RadioGroup;
# direct methods
.method private constructor <init>(Landroid/widget/RadioGroup;)V
.locals 0
.parameter
.prologue
.line 367
iput-object p1, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->this$0:Landroid/widget/RadioGroup;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Landroid/widget/RadioGroup;Landroid/widget/RadioGroup$1;)V
.locals 0
.parameter "x0"
.parameter "x1"
.prologue
.line 367
invoke-direct {p0, p1}, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;-><init>(Landroid/widget/RadioGroup;)V
return-void
.end method
.method static synthetic access$202(Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;Landroid/view/ViewGroup$OnHierarchyChangeListener;)Landroid/view/ViewGroup$OnHierarchyChangeListener;
.locals 0
.parameter "x0"
.parameter "x1"
.prologue
.line 367
iput-object p1, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
return-object p1
.end method
# virtual methods
.method public onChildViewAdded(Landroid/view/View;Landroid/view/View;)V
.locals 3
.parameter "parent"
.parameter "child"
.prologue
.line 375
iget-object v1, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->this$0:Landroid/widget/RadioGroup;
if-ne p1, v1, :cond_1
instance-of v1, p2, Landroid/widget/RadioButton;
if-eqz v1, :cond_1
.line 376
invoke-virtual {p2}, Landroid/view/View;->getId()I
move-result v0
.line 378
.local v0, id:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
.line 379
invoke-static {}, Landroid/view/View;->generateViewId()I
move-result v0
.line 380
invoke-virtual {p2, v0}, Landroid/view/View;->setId(I)V
:cond_0
move-object v1, p2
.line 382
check-cast v1, Landroid/widget/RadioButton;
iget-object v2, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->this$0:Landroid/widget/RadioGroup;
#getter for: Landroid/widget/RadioGroup;->mChildOnCheckedChangeListener:Landroid/widget/CompoundButton$OnCheckedChangeListener;
invoke-static {v2}, Landroid/widget/RadioGroup;->access$700(Landroid/widget/RadioGroup;)Landroid/widget/CompoundButton$OnCheckedChangeListener;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/widget/CompoundButton;->setOnCheckedChangeWidgetListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
.line 386
.end local v0 #id:I
:cond_1
iget-object v1, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
if-eqz v1, :cond_2
.line 387
iget-object v1, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
invoke-interface {v1, p1, p2}, Landroid/view/ViewGroup$OnHierarchyChangeListener;->onChildViewAdded(Landroid/view/View;Landroid/view/View;)V
.line 389
:cond_2
return-void
.end method
.method public onChildViewRemoved(Landroid/view/View;Landroid/view/View;)V
.locals 2
.parameter "parent"
.parameter "child"
.prologue
.line 395
iget-object v0, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->this$0:Landroid/widget/RadioGroup;
if-ne p1, v0, :cond_0
instance-of v0, p2, Landroid/widget/RadioButton;
if-eqz v0, :cond_0
move-object v0, p2
.line 396
check-cast v0, Landroid/widget/RadioButton;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setOnCheckedChangeWidgetListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
.line 399
:cond_0
iget-object v0, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
if-eqz v0, :cond_1
.line 400
iget-object v0, p0, Landroid/widget/RadioGroup$PassThroughHierarchyChangeListener;->mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
invoke-interface {v0, p1, p2}, Landroid/view/ViewGroup$OnHierarchyChangeListener;->onChildViewRemoved(Landroid/view/View;Landroid/view/View;)V
.line 402
:cond_1
return-void
.end method
| {
"content_hash": "b122576b8fab6461e45b5ca3fafa06ed",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 199,
"avg_line_length": 30.205882352941178,
"alnum_prop": 0.7548198636806231,
"repo_name": "baidurom/devices-Coolpad8720L",
"id": "e7572a05b352ec58ff8223a463dd9cabb71b3243",
"size": "5135",
"binary": false,
"copies": "2",
"ref": "refs/heads/coron-4.3",
"path": "vendor/aosp/framework.jar.out/smali/android/widget/RadioGroup$PassThroughHierarchyChangeListener.smali",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Makefile",
"bytes": "13619"
},
{
"name": "Shell",
"bytes": "1917"
}
],
"symlink_target": ""
} |
* Clang2Sharp provides thin low-level wrapper for Clang C API in managed code. Basic usage examples can be found [here][1]
* Currently only x64 platform is supported.
* Don't forget to copy libclang.dll to build output as well (can be found within Clang2Sharp.dll)
[1]: https://github.com/mxpv/Clang2Sharp/blob/master/Clang2Sharp.Tests/CursorTests.cs
| {
"content_hash": "cf3497c30df08ea4f8e55491cc3b7a66",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 122,
"avg_line_length": 70.4,
"alnum_prop": 0.7840909090909091,
"repo_name": "mxpv/Clang2Sharp",
"id": "057a95c3ad164005edaec114e4533e660083bf69",
"size": "367",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "143003"
},
{
"name": "C++",
"bytes": "107"
},
{
"name": "Shell",
"bytes": "99"
}
],
"symlink_target": ""
} |
#include <aws/lakeformation/model/DataLakeResourceType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace LakeFormation
{
namespace Model
{
namespace DataLakeResourceTypeMapper
{
static const int CATALOG_HASH = HashingUtils::HashString("CATALOG");
static const int DATABASE_HASH = HashingUtils::HashString("DATABASE");
static const int TABLE_HASH = HashingUtils::HashString("TABLE");
static const int DATA_LOCATION_HASH = HashingUtils::HashString("DATA_LOCATION");
static const int LF_TAG_HASH = HashingUtils::HashString("LF_TAG");
static const int LF_TAG_POLICY_HASH = HashingUtils::HashString("LF_TAG_POLICY");
static const int LF_TAG_POLICY_DATABASE_HASH = HashingUtils::HashString("LF_TAG_POLICY_DATABASE");
static const int LF_TAG_POLICY_TABLE_HASH = HashingUtils::HashString("LF_TAG_POLICY_TABLE");
DataLakeResourceType GetDataLakeResourceTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == CATALOG_HASH)
{
return DataLakeResourceType::CATALOG;
}
else if (hashCode == DATABASE_HASH)
{
return DataLakeResourceType::DATABASE;
}
else if (hashCode == TABLE_HASH)
{
return DataLakeResourceType::TABLE;
}
else if (hashCode == DATA_LOCATION_HASH)
{
return DataLakeResourceType::DATA_LOCATION;
}
else if (hashCode == LF_TAG_HASH)
{
return DataLakeResourceType::LF_TAG;
}
else if (hashCode == LF_TAG_POLICY_HASH)
{
return DataLakeResourceType::LF_TAG_POLICY;
}
else if (hashCode == LF_TAG_POLICY_DATABASE_HASH)
{
return DataLakeResourceType::LF_TAG_POLICY_DATABASE;
}
else if (hashCode == LF_TAG_POLICY_TABLE_HASH)
{
return DataLakeResourceType::LF_TAG_POLICY_TABLE;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<DataLakeResourceType>(hashCode);
}
return DataLakeResourceType::NOT_SET;
}
Aws::String GetNameForDataLakeResourceType(DataLakeResourceType enumValue)
{
switch(enumValue)
{
case DataLakeResourceType::CATALOG:
return "CATALOG";
case DataLakeResourceType::DATABASE:
return "DATABASE";
case DataLakeResourceType::TABLE:
return "TABLE";
case DataLakeResourceType::DATA_LOCATION:
return "DATA_LOCATION";
case DataLakeResourceType::LF_TAG:
return "LF_TAG";
case DataLakeResourceType::LF_TAG_POLICY:
return "LF_TAG_POLICY";
case DataLakeResourceType::LF_TAG_POLICY_DATABASE:
return "LF_TAG_POLICY_DATABASE";
case DataLakeResourceType::LF_TAG_POLICY_TABLE:
return "LF_TAG_POLICY_TABLE";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace DataLakeResourceTypeMapper
} // namespace Model
} // namespace LakeFormation
} // namespace Aws
| {
"content_hash": "916d94b3e4a920bc12f82eee7ef8be8c",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 106,
"avg_line_length": 34.80733944954128,
"alnum_prop": 0.6075382182393253,
"repo_name": "cedral/aws-sdk-cpp",
"id": "7470695ff656571e331952541c26c06881146775",
"size": "3913",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "aws-cpp-sdk-lakeformation/source/model/DataLakeResourceType.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "294220"
},
{
"name": "C++",
"bytes": "428637022"
},
{
"name": "CMake",
"bytes": "862025"
},
{
"name": "Dockerfile",
"bytes": "11688"
},
{
"name": "HTML",
"bytes": "7904"
},
{
"name": "Java",
"bytes": "352201"
},
{
"name": "Python",
"bytes": "106761"
},
{
"name": "Shell",
"bytes": "10891"
}
],
"symlink_target": ""
} |
android-iconkit
===
An Android library that help you to build app with vector icon(font icon).
**With ```android-iconkit```you`ll never need to copy different dpi images (ldpi, mdpi, hdpi, xhdpi, xxhdpi..) for each icon you want to use in your app. you can also change their color or size easily.The code use Font-Awesome for showing.You can create other icon fonts by [icomoon](https://icomoon.io)**
**Icon font (like fontawesome.ttf) 400+ icons only ```112KB``` with all kind of color and size。[All Font-Awesom available icons](http://fortawesome.github.io/Font-Awesome/icons)**
### How to Use(CustomView) #1
Find an icon in ```string.xml``` and use ```IconTextView``` like ```TextView```.
```xml
<IconTextView
android:text="@string/fa_github"
android:shadowColor="#22000000"
android:shadowDx="3"
android:shadowDy="3"
android:shadowRadius="1"
android:textSize="90dp"
android:textColor="#FF33B5E5"
... />
```
> You can either use ```IconTextView``` / ```IconButton``` or use any ```TextView``` and then programmatically call ```setTypeface(Util.getTypeFace(getContext()));``` and ```setText(R.id.xxxx)```.
### How to Use(IconDrawable) #2
If you need an icon in an ```ImageView``` or in your ```ActionBar```, then you should use ```IconDrawable```. Again, icons are infinitely scalable and will never get fuzzy!
```java
// Set an icon in the ActionBar
getMenuInflater().inflate(R.menu.main, menu);
MenuItem github = menu.findItem(R.id.action_github);
IconDrawable ic = new IconDrawable(this, R.string.fa_github);
ic.setDPSize(this, 48);
ic.setColor(Color.WHITE);
github.setIcon(ic);
```
### How to Use(Icon Font) #3
If you want to use font-awesome icon and use your own icon , please follow the steps.
1. open the website [icomoon](https://icomoon.io/app) and upload your svg images
2. download your font,like ```xxxx.ttf```. You can use your own font name.
3. copy```xxxx.ttf``` to your project path ```assert/fonts``` .
4. copy```IconTextView.java``` ```IconButton.java``` ```IconDrawable.java```to your project.
5. modify ```icon.xml``` ,according to the following rules as ```.fa-home:before {content: "\f015";}``` to ```<string name="fa_home">"\uf015"</string>``
6. Note: ```fa-home``` is forbidden,use ```fa_home``` instead.
### How to create your own icon font
**first, you should some svg icons.**
**Then, open the website [icomoon](https://icomoon.io)**
**soon, you will find so many icons more than you want!**
**Note: Be careful with the license of the icon font**
---
## License
```
Copyright 2014 tank
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
It uses FontAwesome font by Dave Gandy, licensed under OFL 1.1, which is compatible
with this library's license.
http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=OFL_plaintext&filename=OFL.txt
```
| {
"content_hash": "8ea2559db220e690f48f06876c1b3f29",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 305,
"avg_line_length": 37.59550561797753,
"alnum_prop": 0.7086072922893006,
"repo_name": "Tank000/android-iconkit",
"id": "bb81927b2e72f6f6ec39d688d29e094947513d6c",
"size": "3348",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "6956"
}
],
"symlink_target": ""
} |
from cdefs.heap import Heap
##
# @brief Gets a list of historical/logged file sources, ExternalDataListener will know the first timestamp for the events
# it's processing, this class will ask them to read the data and depending on whether there is any data of interest
# ( for instance it could have data but of securities that are not of interest ),
# compute the next_event_timestamp
#
# Once the sources have next_event_timestamp two choices here :
# (i) sort the events based on time and based on the event time call the corresponding ExternalDataListener to process that event
# and fetch the next_event_timestamp and resort if the next_event_timestamp is != 0
# (ii) all the sources that have some data in the channels, sequentially call them to process all data they have
# and call any listeners as and when they feel a need to
# downsides of method (ii) :
# (a) if the time we take in processing events is very high then events from other sources could be ignored.
# (b) events are sure to not be chronological in live and hence different in hist and live
#
# At the end HistoricalDispatcher collects all sources in prev_external_data_listener_vec_ and calls delete on them
#
class HistoricalDispatcher( object ):
def __init__( self ):
self.external_data_listener_list = []
self.prev_external_data_listener_list = []
self.first_event_enqueued = False
##
# @brief If needed this can seek the historical sources to skip processing event until a given time, i.e start of trading hours etc
#
# @param end_time time till which we want to seek forward the historical file sources
#
def seek_hist_file_sources_to( self, seek_time ):
external_data_listener_list_copy = self.external_data_listener_list[ : ] # Will iterate over copy and delete from original
if not self.first_event_enqueued:
for listener in external_data_listener_list_copy: # Iterate over copy
has_events = listener.seek_to_first_event_after( seek_time )
if not has_events:
self.prev_external_data_listener_list.append( listener )
self.external_data_listener_list.remove( listener ) # Delete from original # TODO check would this work
self.first_event_enqueued = True
##
# @brief Adds a listener for the data events, the listner also deals with its own data
# All it needs from historical dispatcher is a callback which notifies when to process the events and upto
# what time the events can be processed
#
# @param new_data_listener A base class pointer through which various dereived listener/filesources will be added
#
def add_external_data_listener( self, new_data_listener ):
self.external_data_listener_list.append( new_data_listener )
##
# @brief A busy loop which processes a bunch of data sources earlier added and distributes events to its listeners
# Once called, will keep on processing until all events have been comsumed
#
def run( self ):
external_data_listener_heap = Heap( self.external_data_listener_list, lambda x : x.next_event_timestamp )
# Only way to get out of this loop is when all sources have been removed. This is the only while loop in the program
while external_data_listener_heap.size( ) > 0: # only way to get out of this loop is when all sources have been removed. This is the only while loop in the program
top_edl = external_data_listener_heap.pop( )
if external_data_listener_heap.size( ) == 0:
top_edl.process_all_events( )
return
top_edl.process_events_till( external_data_listener_heap.top( ).next_event_timestamp ) # process all events in this source till the next event is older the one on the new top
next_event_timestamp_from_edl = top_edl.next_event_timestamp # ask the source to get the next_event_timestamp ( the first event that is older than the specified endtime )
source_has_events = next_event_timestamp_from_edl != 0 # if 0 then no events .. and in historical this means this source can be removed, since it has finished reading the file it was reading from
if source_has_events:
external_data_listener_heap.push( top_edl ) # Reinsert into heap
heap_size = external_data_listener_heap.size( )
if heap_size == 1:
external_data_listener_heap.top( ).process_all_events( ) # Since ComputeEarliestDataTimestamp () has been called, or ProcessEventsTill has been called, the next_event_timestamp will be valid
external_data_listener_heap.pop( )
return
if heap_size == 0:
return
| {
"content_hash": "3877c52adbe0d13ed977ba80fdd9908d",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 207,
"avg_line_length": 63.85333333333333,
"alnum_prop": 0.6915848820212989,
"repo_name": "ashesh-0/trade-analysis",
"id": "ac705e902dd7830e67ad4ed683255b38ee9732fa",
"size": "4789",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "event_processing/historical_dispatcher.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "67822"
}
],
"symlink_target": ""
} |
import { module, test } from 'qunit';
import { gte } from 'ember-compatibility-helpers';
module('gte-smoke-test', function() {
test('gte generally functions, and avoids an import error', function(assert) {
assert.ok(gte('0.0.0'));
assert.ok(gte('semver', '0.0.0'));
});
});
| {
"content_hash": "fec9102172808b971b66d236ec102247",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 80,
"avg_line_length": 31.88888888888889,
"alnum_prop": 0.6411149825783972,
"repo_name": "pzuraq/ember-compatibility-helpers",
"id": "ef8b0a1ba1646b3125a6cf2886d14e528b1802c0",
"size": "287",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/unit/gte-smoke-test.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "1777"
},
{
"name": "JavaScript",
"bytes": "37707"
}
],
"symlink_target": ""
} |
package org.dcm4chex.archive.hl7;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.StringTokenizer;
import javax.management.ObjectName;
import javax.xml.transform.Templates;
import org.dcm4che.data.Dataset;
import org.dcm4che.data.DcmElement;
import org.dcm4che.data.DcmObjectFactory;
import org.dcm4che.dict.Tags;
import org.dcm4cheri.util.StringUtils;
import org.dcm4chex.archive.common.PPSStatus;
import org.dcm4chex.archive.common.PatientMatching;
import org.dcm4chex.archive.common.SPSStatus;
import org.dcm4chex.archive.ejb.interfaces.MPPSManager;
import org.dcm4chex.archive.ejb.interfaces.MPPSManagerHome;
import org.dcm4chex.archive.ejb.interfaces.MWLManager;
import org.dcm4chex.archive.ejb.interfaces.MWLManagerHome;
import org.dcm4chex.archive.exceptions.DuplicateMWLItemException;
import org.dcm4chex.archive.exceptions.PatientMergedException;
import org.dcm4chex.archive.exceptions.PatientMismatchException;
import org.dcm4chex.archive.mbean.TemplatesDelegate;
import org.dcm4chex.archive.util.EJBHomeFactory;
import org.dcm4chex.archive.util.XSLTUtils;
import org.dom4j.Document;
import org.dom4j.Element;
import org.xml.sax.ContentHandler;
/**
* @author gunter.zeilinger@tiani.com
* @version $Revision: 16894 $ $Date: 2012-07-16 21:03:08 +0800 (周一, 16 7月 2012) $
* @since 17.02.2005
*
*/
public class ORMService extends AbstractHL7Service {
private TemplatesDelegate aeTemplates = new TemplatesDelegate(this);
private static final String MWL2STORE_XSL = "mwl-cfindrsp2cstorerq.xsl";
private static final String[] OP_CODES = { "NW", "XO", "CA", "NOOP",
"SC(SCHEDULED)", "SC(ARRIVED)", "SC(READY)", "SC(STARTED)",
"SC(COMPLETED)", "SC(DISCONTINUED)" };
private static final List<String> OP_CODES_LIST = Arrays.asList(OP_CODES);
private static final int NW = 0;
private static final int XO = 1;
private static final int CA = 2;
private static final int NOOP = 3;
private static final int SC_OFF = 4;
private List<String> orderControls;
private int[] ops = {};
private boolean updateDifferentPatientOfExistingStudy;
private boolean createMissingOrderOnStatusChange;
private ObjectName deviceServiceName;
private String xslPath;
private String defaultStationAET = "UNKOWN";
private String defaultStationName = "UNKOWN";
private String defaultModality = "OT";
public PatientMatching patientMatching;
public String getPatientMatching() {
return patientMatching.toString();
}
public void setPatientMatching(String s) {
this.patientMatching = new PatientMatching(s.trim());
}
public final String getStylesheet() {
return xslPath;
}
public void setStylesheet(String path) {
this.xslPath = path;
}
public final ObjectName getDeviceServiceName() {
return deviceServiceName;
}
public final void setDeviceServiceName(ObjectName deviceServiceName) {
this.deviceServiceName = deviceServiceName;
}
public String getOrderControlOperationMap() {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < ops.length; i++) {
sb.append(orderControls.get(i)).append(':')
.append(OP_CODES[ops[i]]).append("\r\n");
}
return sb.toString();
}
public void setOrderControlOperationMap(String s) {
StringTokenizer stk = new StringTokenizer(s, " \r\n\t,;");
int lines = stk.countTokens();
int[] newops = new int[lines];
List<String> newocs = new ArrayList<String>(lines);
for (int i = 0; i < lines; i++) {
String[] ocop = StringUtils.split(stk.nextToken(), ':');
if (ocop.length != 2
|| (newops[i] = OP_CODES_LIST.indexOf(ocop[1])) == -1) {
throw new IllegalArgumentException(s);
}
newocs.add(ocop[0]);
}
ops = newops;
orderControls = newocs;
}
public boolean isCreateMissingOrderOnStatusChange() {
return createMissingOrderOnStatusChange;
}
public void setCreateMissingOrderOnStatusChange(
boolean createMissingOrderOnStatusChange) {
this.createMissingOrderOnStatusChange = createMissingOrderOnStatusChange;
}
public final boolean isUpdateDifferentPatientOfExistingStudy() {
return updateDifferentPatientOfExistingStudy;
}
public final void setUpdateDifferentPatientOfExistingStudy(boolean update) {
this.updateDifferentPatientOfExistingStudy = update;
}
public final String getDefaultModality() {
return defaultModality;
}
public final void setDefaultModality(String defaultModality) {
this.defaultModality = defaultModality;
}
public final String getDefaultStationAET() {
return defaultStationAET;
}
public final void setDefaultStationAET(String defaultStationAET) {
this.defaultStationAET = defaultStationAET;
}
public final String getDefaultStationName() {
return defaultStationName;
}
public final void setDefaultStationName(String defaultStationName) {
this.defaultStationName = defaultStationName;
}
public final String getMWL2StoreConfigDir() {
return aeTemplates.getConfigDir();
}
public final void setMWL2StoreConfigDir(String path) {
aeTemplates.setConfigDir(path);
}
public boolean process(MSH msh, Document msg, ContentHandler hl7out, String[] xslSubdirs)
throws HL7Exception {
process(toOp(msg), msg, xslSubdirs);
return true;
}
public void process(String orderControl, String orderStatus, Document msg, String[] xslSubdirs)
throws HL7Exception {
process(new int[] { toOp(orderControl, orderStatus) }, msg, xslSubdirs);
}
private void process(int op[], Document msg, String[] xslSubdirs) throws HL7Exception {
try {
Dataset ds = xslt(msg, xslPath, xslSubdirs);
final String pid = ds.getString(Tags.PatientID);
if (pid == null)
throw new HL7Exception("AR",
"Missing required PID-3: Patient ID (Internal ID)");
final String pname = ds.getString(Tags.PatientName);
if (pname == null)
throw new HL7Exception("AR",
"Missing required PID-5: Patient Name");
mergeProtocolCodes(ds, op);
ds = addScheduledStationInfo(ds);
MWLManager mwlManager = getMWLManager();
DcmElement spsSq = ds.remove(Tags.SPSSeq);
Dataset sps;
int opIdx;
for (int i = 0, n = spsSq.countItems(); i < n; ++i) {
sps = spsSq.getItem(i);
ds.putSQ(Tags.SPSSeq).addItem(sps);
adjustAttributes(ds);
opIdx = op.length == 1 ? 0 : i;
switch (op[opIdx]) {
case NW:
processNW(ds, mwlManager);
break;
case XO:
processXO(ds, mwlManager);
break;
case CA:
processCA(ds, mwlManager);
break;
case NOOP:
log("NOOP", ds);
break;
default:
sps.putCS(Tags.SPSStatus, SPSStatus.toString(op[opIdx]-SC_OFF));
updateSPSStatus(ds, mwlManager, createMissingOrderOnStatusChange);
break;
}
}
} catch (HL7Exception e) {
throw e;
} catch (PatientMismatchException e) {
throw new HL7Exception("AR", e.getMessage(), e);
} catch (PatientMergedException e) {
throw new HL7Exception("AR", e.getMessage(), e);
} catch (DuplicateMWLItemException e) {
throw new HL7Exception("AR", e.getMessage(), e);
} catch (Exception e) {
throw new HL7Exception("AE", e.getMessage(), e);
}
}
protected void processNW(Dataset ds, MWLManager mwlManager) throws Exception {
addMissingAttributes(ds);
log("Schedule", ds);
logDataset("Insert MWL Item:", ds);
mwlManager.addWorklistItem(ds, patientMatching);
updateRequestAttributes(ds, mwlManager);
}
protected void processXO(Dataset ds, MWLManager mwlManager) throws Exception {
log("Update", ds);
logDataset("Update MWL Item:", ds);
if (!mwlManager.updateWorklistItem(ds, patientMatching)) {
log("No Such ", ds);
addMissingAttributes(ds);
log("->Schedule New ", ds);
logDataset("Insert MWL Item:", ds);
mwlManager.addWorklistItem(ds, patientMatching);
}
updateRequestAttributes(ds, mwlManager);
}
protected void processCA(Dataset ds, MWLManager mwlManager) throws Exception {
log("Cancel", ds);
if (mwlManager.removeWorklistItem(ds, patientMatching) == null) {
log("No Such ", ds);
} else {
ds.getItem(Tags.SPSSeq).putCS(Tags.SPSStatus, "DISCONTINUED");
updateRequestAttributes(ds, mwlManager);
}
}
@SuppressWarnings("unchecked")
private void updateRequestAttributes(Dataset mwlitem,
MWLManager mwlManager) throws Exception {
MPPSManager mppsManager = getMPPSManager();
List<Dataset> mppsList =
mppsManager.updateScheduledStepAttributes(mwlitem,
patientMatching, updateDifferentPatientOfExistingStudy);
if (!mppsList.isEmpty()) {
if ("DISCONTINUED".equals(mwlitem.getItem(Tags.SPSSeq).getString(Tags.SPSStatus))) {
HashSet<String> seriesIuids = new HashSet<String>();
for (Dataset mpps : mppsList) {
DcmElement perfSeriesSq = mpps.get(Tags.PerformedSeriesSeq);
if (perfSeriesSq != null && !perfSeriesSq.isEmpty()) {
for (int i = 0, n = perfSeriesSq.countItems(); i < n; i++) {
seriesIuids.add(perfSeriesSq.getItem(i).getString(Tags.SeriesInstanceUID));
}
}
}
mppsManager.removeRequestAttributesInSeries(mwlitem, seriesIuids);
} else {
updateSPSStatus(mwlitem, mppsList.get(0), mwlManager);
updateRequestAttributesInSeries(mwlitem, mppsList, mppsManager);
}
}
}
private void updateRequestAttributesInSeries(Dataset mwlitem,
List<Dataset> mppsList, MPPSManager mppsManager) throws Exception {
for (Dataset mpps : mppsList) {
String aet = mpps.getString(Tags.PerformedStationAET);
Templates xslt = null;
try {
if ( aeTemplates.getTemplatesServiceName() == null) {
aeTemplates.setTemplatesServiceName(this.getTemplatesServiceName());
}
xslt = aeTemplates.getTemplatesForAET(aet, MWL2STORE_XSL);
} catch (Exception x) {
log.error("Internal error to get template for "+MWL2STORE_XSL, x);
}
if (xslt == null) {
log.warn("Failed to find or load stylesheet "
+ MWL2STORE_XSL
+ " for "
+ aet
+ ". Cannot update object attributes with request information.");
continue;
}
Dataset rqAttrs = DcmObjectFactory.getInstance().newDataset();
XSLTUtils.xslt(mwlitem, xslt, rqAttrs);
DcmElement perfSeriesSq = mpps.get(Tags.PerformedSeriesSeq);
if (perfSeriesSq != null && !perfSeriesSq.isEmpty()) {
for (int i = 0, n = perfSeriesSq.countItems(); i < n; i++) {
String uid = perfSeriesSq.getItem(i)
.getString(Tags.SeriesInstanceUID);
updateSeriesAttributes(mppsManager, uid , rqAttrs, i == 0);
}
}
}
}
protected void updateSeriesAttributes(MPPSManager mppsManager, String uid, Dataset newAttrs,
boolean updateStudyAttributes) {
try {
mppsManager.updateSeriesAttributes(uid, newAttrs, updateStudyAttributes);
} catch (Exception x) {
log.warn("Failed to update series attributes! Series IUID:"+uid+" - Reason:"+x);
}
}
protected void updateSPSStatus(Dataset mwlitem, Dataset mpps,
MWLManager mwlManager) throws PatientMismatchException,
RemoteException {
String spsStatus;
Dataset sps = mwlitem.get(Tags.SPSSeq).getItem();
switch (PPSStatus.toInt(mpps.getString(Tags.PPSStatus))) {
case PPSStatus.IN_PROGRESS:
spsStatus = "STARTED";
break;
case PPSStatus.COMPLETED:
spsStatus = "COMPLETED";
break;
default: // PPSStatus.DISCONTINUED
spsStatus = "DISCONTINUED";
break;
}
sps.putCS(Tags.SPSStatus, spsStatus);
updateSPSStatus(mwlitem, mwlManager, false);
}
protected void updateSPSStatus(Dataset ds, MWLManager mwlManager, boolean createMissingOrder)
throws PatientMismatchException, RemoteException {
log("Change SPS status of MWL Item:", ds);
if (!mwlManager.updateSPSStatus(ds, patientMatching)) {
log("No Such ", ds);
if (createMissingOrder) {
addMissingAttributes(ds);
log("->Create new MWL Item with status "+ds.getString(Tags.SPSStatus)+":", ds);
logDataset("Insert MWL Item:", ds);
try {
mwlManager.addWorklistItem(ds, patientMatching);
updateRequestAttributes(ds, mwlManager);
} catch (Exception x) {
log.warn("Create missing order on Status Change (SC) failed!", x);
}
}
}
}
private void log(String op, Dataset ds) {
Dataset sps = ds.getItem(Tags.SPSSeq);
log.info(op
+ " Procedure Step[id:"
+ (sps == null ? "<unknown>(SPSSeq missing)"
: sps.getString(Tags.SPSID))
+ "] of Requested Procedure[id:"
+ ds.getString(Tags.RequestedProcedureID) + ", uid:"
+ ds.getString(Tags.StudyInstanceUID) + "] of Order[accNo:"
+ ds.getString(Tags.AccessionNumber) + "] for Patient [name:"
+ ds.getString(Tags.PatientName) + ",id:"
+ ds.getString(Tags.PatientID) + "]");
}
private MWLManager getMWLManager() throws Exception {
return ((MWLManagerHome) EJBHomeFactory.getFactory().lookup(
MWLManagerHome.class, MWLManagerHome.JNDI_NAME)).create();
}
private MPPSManager getMPPSManager() throws Exception {
return ((MPPSManagerHome) EJBHomeFactory.getFactory().lookup(
MPPSManagerHome.class, MPPSManagerHome.JNDI_NAME)).create();
}
@SuppressWarnings("unchecked")
private int[] toOp(Document msg) throws HL7Exception {
Element rootElement = msg.getRootElement();
List<Element> orcs = rootElement.elements("ORC");
List<Element> obrs = rootElement.elements("OBR");
if (orcs.isEmpty()) {
throw new HL7Exception("AR", "Missing ORC Segment");
}
int[] op = new int[orcs.size()];
for (int i = 0; i < op.length; i++) {
List<Element> orc = orcs.get(i).elements("field");
String orderControl = getText(orc, 0);
String orderStatus = getText(orc, 4);
if (orderStatus.length() == 0 && obrs.size() > i) {
// use Result Status (OBR-25), if no Order Status (ORC-5);
List<Element> obr = obrs.get(i).elements("field");
orderStatus = getText(obr, 24);
}
op[i] = toOp(orderControl, orderStatus);
}
return op;
}
private int toOp(String orderControl, String orderStatus)
throws HL7Exception {
int opIndex = orderControls.indexOf(orderControl + "(" + orderStatus + ")");
if (opIndex == -1) {
opIndex = orderControls.indexOf(orderControl);
if (opIndex == -1) {
throw new HL7Exception("AR", "Illegal Order Control Code ORC-1:"
+ orderControl);
}
}
return ops[opIndex];
}
private String getText(List<Element> fields, int i) throws HL7Exception {
try {
return fields.get(i).getText();
} catch (IndexOutOfBoundsException e) {
return "";
}
}
private Dataset addScheduledStationInfo(Dataset spsItems) throws Exception {
return (Dataset) server.invoke(deviceServiceName,
"addScheduledStationInfo", new Object[] { spsItems },
new String[] { Dataset.class.getName() });
}
private void addMissingAttributes(Dataset ds) {
Dataset sps = ds.getItem(Tags.SPSSeq);
if (!sps.containsValue(Tags.ScheduledStationAET)) {
log.info("No Scheduled Station AET - use default: "
+ defaultStationAET);
sps.putAE(Tags.ScheduledStationAET, defaultStationAET);
}
if (!sps.containsValue(Tags.ScheduledStationName)) {
log.info("No Scheduled Station Name - use default: "
+ defaultStationName);
sps.putSH(Tags.ScheduledStationName, defaultStationName);
}
if (!sps.containsValue(Tags.Modality)) {
log.info("No Modality - use default: " + defaultModality);
sps.putCS(Tags.Modality, defaultModality);
}
if (!sps.containsValue(Tags.SPSStartDate)) {
log.info("No SPS Start Date - use current date/time");
Date now = new Date();
sps.putDA(Tags.SPSStartDate, now);
sps.putTM(Tags.SPSStartTime, now);
}
}
private void adjustAttributes(Dataset ds) {
Dataset sps = ds.getItem(Tags.SPSSeq);
String val;
Dataset code;
if ((val = sps.getString(Tags.RequestingPhysician)) != null) {
log.info("Detect Requesting Physician on SPS Level");
ds.putPN(Tags.RequestingPhysician, val);
sps.remove(Tags.RequestingPhysician);
}
if ((val = sps.getString(Tags.RequestingService)) != null) {
log.info("Detect Requesting Service on SPS Level");
ds.putLO(Tags.RequestingService, val);
sps.remove(Tags.RequestingService);
}
if ((val = sps.getString(Tags.StudyInstanceUID)) != null) {
log.info("Detect Study Instance UID on SPS Level");
ds.putUI(Tags.StudyInstanceUID, val);
sps.remove(Tags.StudyInstanceUID);
}
if ((val = sps.getString(Tags.AccessionNumber)) != null) {
log.info("Detect Accession Number on SPS Level");
ds.putSH(Tags.AccessionNumber, val);
sps.remove(Tags.AccessionNumber);
}
if ((val = sps.getString(Tags.RequestedProcedurePriority)) != null) {
log.info("Detect Requested Procedure Priority on SPS Level");
ds.putCS(Tags.RequestedProcedurePriority, val);
sps.remove(Tags.RequestedProcedurePriority);
}
if ((val = sps.getString(Tags.RequestedProcedureID)) != null) {
log.info("Detect Requested Procedure ID on SPS Level");
ds.putSH(Tags.RequestedProcedureID, val);
sps.remove(Tags.RequestedProcedureID);
}
if ((val = sps.getString(Tags.RequestedProcedureDescription)) != null) {
log.info("Detect Requested Procedure Description on SPS Level");
ds.putLO(Tags.RequestedProcedureDescription, val);
sps.remove(Tags.RequestedProcedureDescription);
}
if ((code = sps.getItem(Tags.RequestedProcedureCodeSeq)) != null) {
log.info("Detect Requested Procedure Code on SPS Level");
ds.putSQ(Tags.RequestedProcedureCodeSeq).addItem(code);
sps.remove(Tags.RequestedProcedureCodeSeq);
}
}
private void mergeProtocolCodes(Dataset orm, int[] op) {
DcmElement prevSpsSq = orm.remove(Tags.SPSSeq);
DcmElement newSpsSq = orm.putSQ(Tags.SPSSeq);
HashMap<String,DcmElement> spcSqMap = new HashMap<String,DcmElement>();
DcmElement spcSq0, spcSqI;
Dataset sps;
String spsid;
for (int i = 0, j = 0, n = prevSpsSq.countItems(); i < n; ++i) {
sps = prevSpsSq.getItem(i);
spsid = sps.getString(Tags.SPSID);
spcSqI = sps.get(Tags.ScheduledProtocolCodeSeq);
spcSq0 = spcSqMap.get(spsid);
if (spcSq0 != null) {
spcSq0.addItem(spcSqI.getItem());
} else {
spcSqMap.put(spsid, spcSqI);
newSpsSq.addItem(sps);
if ( op.length > 1 )
op[j++] = op[i];
}
}
}
}
| {
"content_hash": "783e8967b49ab8c7bd9ce87d862d7b1a",
"timestamp": "",
"source": "github",
"line_count": 554,
"max_line_length": 103,
"avg_line_length": 38.99638989169675,
"alnum_prop": 0.5960470283280874,
"repo_name": "medicayun/medicayundicom",
"id": "d00afca2d03a6f877c6ab68a787d52134215898f",
"size": "23486",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "dcm4jboss-all/tags/DCM4CHEE_2_17_3/dcm4jboss-hl7/src/java/org/dcm4chex/archive/hl7/ORMService.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
var documentClient = require('documentdb-q-promises').DocumentClientWrapper;
var util = require('util');
var config = require('../config');
var q = require('q');
var DB_COLL_LINK = util.format('dbs/%s/colls/%s', config.connections.documentDb.dbName, 'clients');
var client = new documentClient(config.connections.documentDb.endpoint, { masterKey: config.connections.documentDb.authKey });
exports.getClientByToken = function (token) {
var querySpec = {
query: 'SELECT c.id FROM c WHERE c.token = @token AND c.isDisabled = false',
parameters: [
{
name: '@token',
value: token
}
]
};
return q.Promise(function (resolve, reject) {
client.queryDocuments(DB_COLL_LINK, querySpec)
.toArrayAsync()
.then(function (results) {
if (results.feed.length === 1)
resolve(results.feed[0]);
else if (results.feed.length === 0)
resolve();
else
reject({ statusCode: 400, log: util.format('There multiple clients for token "%s"', token) });
})
.fail(function (error) {
reject(error);
})
.done();
});
} | {
"content_hash": "ead74665be25aebbfb6267099d479790",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 126,
"avg_line_length": 35.21621621621622,
"alnum_prop": 0.5379892555640828,
"repo_name": "Enttoi/enttoi-gateway-node",
"id": "f057f7c041db92deeae2a1bd3f06bff61a34cd7c",
"size": "1305",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "services/clientsDocumentsService.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "19865"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta charset="utf-8" />
<link href="http://localhost/view/Basic/basic/assets/css/icons.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="[theme_path]basic/assets/css/materialize.min.css" media="screen,projection"/>
<link rel="stylesheet" type="text/css" href="/admin/background">
<link rel="stylesheet" type="text/css" href="[theme_path]basic/assets/css/admin.css">
<script type="text/javascript" src="/view/Basic/basic/assets/js/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="[theme_path]basic/assets/js/materialize.min.js"></script>
<script src="[theme_path]basic/assets/js/script.js"></script>
<title>Massive Manager Login</title>
</head>
<body>
<div class="main row">
[page]
</div>
</body>
</html> | {
"content_hash": "ec02edd64c18191c54229c1a03f55e62",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 125,
"avg_line_length": 41.76190476190476,
"alnum_prop": 0.6921322690992018,
"repo_name": "AlfonzAlfonz/massivemanager",
"id": "8b1aa237a78cd0552db7f2dc6272ecce6e2fa38a",
"size": "877",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "view/Basic/basic/admin/layouts/login.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "171"
},
{
"name": "CSS",
"bytes": "165099"
},
{
"name": "HTML",
"bytes": "12957"
},
{
"name": "JavaScript",
"bytes": "488715"
},
{
"name": "PHP",
"bytes": "139329"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.Text;
using System.CodeDom.Compiler;
namespace DodoNet.JScript
{
public class CompilationException : Exception
{
string fileName;
public string FileName { get { return fileName; } }
CompilerErrorCollection errors;
public CompilerErrorCollection Errors { get { return errors; } }
string fileText;
public string FileText { get { return fileText; } }
public CompilationException(string fileName, CompilerErrorCollection errors, string fileText)
{
this.fileName = fileName;
this.errors = errors;
this.fileText = fileText;
}
}
}
| {
"content_hash": "96a610031a0ee01366c4366c56468ed0",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 101,
"avg_line_length": 27.26923076923077,
"alnum_prop": 0.6544428772919605,
"repo_name": "blancosj/dodonet",
"id": "32bad6bd5d0f0e44f18023bfc4b96678ac76acd3",
"size": "709",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DodoNet/JScript/CompilationException.cs",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "5660049"
}
],
"symlink_target": ""
} |
'use strict';
module.exports = function (sequelize, DataTypes) {
var Token = sequelize.define('Token', {
id: {
type: DataTypes.INTEGER(10).UNSIGNED,
allowNull: false,
autoIncrement: true,
primaryKey: true,
},
ticket: {
type: DataTypes.INTEGER(10).UNSIGNED,
allowNull: true
},
usermail: {
type: DataTypes.STRING(255),
allowNull: true
},
reprint: {
type: DataTypes.STRING(255),
unique: true
},
mailCheck: {
type: DataTypes.STRING(255),
unique: true
},
sherlocksToken: {
type: DataTypes.STRING(255),
allowNull: true
},
reset: {
type: DataTypes.STRING(255),
unique: true
}
}, {
underscored: true,
paranoid: true
});
return Token;
};
| {
"content_hash": "a3ebfcd9ede3f5000b6484b1ff9f6cce",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 50,
"avg_line_length": 20.70212765957447,
"alnum_prop": 0.4614594039054471,
"repo_name": "buckutt/BuckUTT-pay",
"id": "3ba7913dc5ad23eeba875749c5f26001a3aba201",
"size": "1065",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/models/token.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "21786"
},
{
"name": "HTML",
"bytes": "212469"
},
{
"name": "JavaScript",
"bytes": "290008"
},
{
"name": "Shell",
"bytes": "582"
}
],
"symlink_target": ""
} |
package com.SecUpwN.AIMSICD.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static java.lang.System.nanoTime;
public class ChildProcess {
private String TAG = getClass().getSimpleName();
private static final int PIPE_SIZE = 1024;
private class ChildReader extends Thread {
final InputStream mStream;
final StringBuffer mBuffer;
ChildReader(InputStream is, StringBuffer buf) {
mStream = is;
mBuffer = buf;
}
public void run() {
byte[] buf = new byte[PIPE_SIZE];
try {
int len;
while ((len = mStream.read(buf)) != -1) {
String s = new String(buf, 0, len);
mBuffer.append(s);
}
} catch (IOException e) {
// Ignore
}
try {
mStream.close();
} catch (IOException e) {
// Ignore
}
}
}
private class ChildWriter extends Thread {
final OutputStream mStream;
final String mBuffer;
ChildWriter(OutputStream os, String buf) {
mStream = os;
mBuffer = buf;
}
public void run() {
int off = 0;
byte[] buf = mBuffer.getBytes();
try {
while (off < buf.length) {
int len = Math.min(PIPE_SIZE, buf.length - off);
mStream.write(buf, off, len);
off += len;
}
} catch (IOException e) {
// Ignore
}
try {
mStream.close();
} catch (IOException e) {
// Ignore
}
}
}
private final long mStartTime;
private Process mChildProc;
private ChildWriter mChildStdinWriter;
private ChildReader mChildStdoutReader;
private ChildReader mChildStderrReader;
private StringBuffer mChildStdout;
private StringBuffer mChildStderr;
private int mExitValue;
private long mEndTime;
public ChildProcess(String[] cmdarray, String childStdin) {
mStartTime = nanoTime();
try {
mChildProc = Runtime.getRuntime().exec(cmdarray);
if (childStdin != null) {
mChildStdinWriter = new ChildWriter(mChildProc.getOutputStream(), childStdin);
mChildStdinWriter.start();
}
mChildStdout = new StringBuffer();
mChildStdoutReader = new ChildReader(mChildProc.getInputStream(), mChildStdout);
mChildStdoutReader.start();
mChildStderr = new StringBuffer();
mChildStderrReader = new ChildReader(mChildProc.getErrorStream(), mChildStderr);
mChildStderrReader.start();
} catch (IOException e) {
// XXX: log
}
}
public boolean isFinished() {
boolean finished = true;
if (mChildProc != null) {
try {
mChildProc.exitValue();
} catch (IllegalStateException e) {
finished = false;
}
}
return finished;
}
public int waitFinished() {
while (mChildProc != null) {
try {
mExitValue = mChildProc.waitFor();
mEndTime = nanoTime();
mChildProc = null;
mChildStderrReader.join();
mChildStderrReader = null;
mChildStdoutReader.join();
mChildStdoutReader = null;
if (mChildStdinWriter != null) {
mChildStdinWriter.join();
mChildStdinWriter = null;
}
} catch (InterruptedException e) {
// Ignore
}
}
return mExitValue;
}
public CommandResult getResult() {
if (!isFinished()) {
throw new IllegalThreadStateException("Child process running");
}
return new CommandResult(
mStartTime,
mExitValue,
mChildStdout.toString(),
mChildStderr.toString(),
mEndTime);
}
} | {
"content_hash": "9bd4fd066ae00d15190b322a6466de1f",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 94,
"avg_line_length": 28.43708609271523,
"alnum_prop": 0.5109455053563111,
"repo_name": "scintill/rilspy",
"id": "d86906646c6198d854cf7e9bc5be38610c99b8c4",
"size": "5288",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/SecUpwN/AIMSICD/utils/ChildProcess.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "3687"
},
{
"name": "Java",
"bytes": "21283"
},
{
"name": "Makefile",
"bytes": "319"
}
],
"symlink_target": ""
} |
<?php
/**
* Created by PhpStorm.
* User: bruce
* Date: 16/7/18
* Time: 09:35
*/
namespace app\models;
use Yii;
use yii\base\Model;
use yii\web\UploadedFile;
use app\models\mysqlAna;
class MysqlAnalyse extends Model
{
public $newSql = "../oms4-ptest.sql";
public $oldSql = "../omsoneapm.sql";
public $submit;
public $typeMap = array("newProperties"=>"增加属性","deletedProperties"=>"删除属性","modifiedProperties"=>"修改属性");
public function __construct(array $config)
{
$this->oldSql = $config['oldSql'];
$this->newSql = $config['newSql'];
parent::__construct($config);
}
public function rules()
{
return [
[['newSql'], 'file', 'skipOnEmpty' => false, 'extensions' => 'sql'],
[['oldSql'], 'file', 'skipOnEmpty' => false, 'extensions' => 'sql'],
];
}
public function getSqlFileNames(){
return array("old"=>basename($this->oldSql),"new"=>basename($this->newSql));
}
public function upload()
{
if ($this->validate()) {
$this->newSql->saveAs('uploads/' . $this->newSql->baseName . '.' . $this->newSql->extension);
$this->oldSql->saveAs('uploads/' . $this->oldSql->baseName . '.' . $this->oldSql->extension);
return true;
} else {
return false;
}
}
public function getTableList(){
header("content-type:text/html;charset=utf8;");
$src = file_get_contents($this->newSql);
$target = file_get_contents($this->oldSql);
$ss = new mysqlAna();
$ss->initTables($src);
$tt = new mysqlAna();
$tt->initTables($target);
$differences = $this->analyseDiff($ss->getTables(),$tt->getTables());
// var_dump($differences);
$result = array();
$num = 0;
foreach($differences as $key=>$difference){
foreach($difference as $tableName=>$tableData){
if($key == "newTables"){
list($sqlQuery,$sqlNote) = $this->mysqlGenerator($key,array("tableName"=>$tableName,"createSql"=>$tableData["createSql"]));
if(is_array($sqlQuery)) {
foreach ($sqlQuery as $sqlKey=>$sqlQueryItem) {
$item = array();
$num += 1;
$item['number'] = $num;
$item['type'] = $key;
$item['name'] = $tableName;
$item['status'] = "-";
$item['sqlQuery'] = $sqlQueryItem;
$item['note'] = $sqlNote[$sqlKey];
$result[] = $item;
}
}
}elseif($key == "modifiedTables"){
foreach($tableData as $modifiedKey=>$modifiedItem){
if($modifiedKey=="modifiedFields"){
list($sqlQuery,$sqlNote) = $this->mysqlGenerator($modifiedKey, array("tableName" => $tableName, $modifiedKey => $modifiedItem));
if(is_array($sqlQuery)) {
foreach ($sqlQuery as $sqlKey=>$sqlQueryItem) {
$item = array();
$num += 1;
$item['number'] = $num;
$item['type'] = $modifiedKey;
$item['name'] = $tableName;
$item['status'] = "-";
$item['sqlQuery'] = $sqlQueryItem;
$item['note'] = $sqlNote[$sqlKey];
$result[] = $item;
}
}
}else {
list($sqlQuery,$sqlNote) = $this->mysqlGenerator($modifiedKey, array("tableName" => $tableName, $modifiedKey => $modifiedItem));
if(is_array($sqlQuery)) {
foreach ($sqlQuery as $sqlKey=>$sqlQueryItem) {
$item = array();
$num += 1;
$item['number'] = $num;
$item['type'] = $modifiedKey;
$item['name'] = $tableName;
$item['status'] = "-";
$item['sqlQuery'] = $sqlQueryItem;
$item['note'] = $sqlNote[$sqlKey];
$result[] = $item;
}
}
}
}
}
}
}
return $result;
}
public function analyseDiff($source, $target){
$newTables = array_diff_key($source, $target);
$deletedTables = array_diff_key($target, $source);
$result = array();
$result["newTables"] = $newTables;
$result["deletedTables"] = $deletedTables;
$result["modifiedTables"] = array();
//检测修改的表
$sourceTables = array_intersect_key($source,$target);
foreach ($sourceTables as $key=>$sourceTable) {
//检测新增的字段
$newFields = array_diff_key($sourceTable["tableFields"], $target[$key]["tableFields"]);
if(count($newFields)>0){
$result["modifiedTables"][$key] = array("newFields"=>$newFields);
}
//检测删除的字段
$deletedFields = array_diff_key($target[$key]["tableFields"], $sourceTable["tableFields"]);
if(count($deletedFields)>0) {
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["deletedFields"] = $deletedFields;
} else {
$result["modifiedTables"][$key] = array("deletedFields" => $deletedFields);
}
}
//检测修改的字段
$modifiedFields = $this->getModifiedItems($sourceTable["tableFields"], $target[$key]["tableFields"]);
if(count($modifiedFields)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["modifiedFields"] = $modifiedFields;
}else{
$result["modifiedTables"][$key] = array("modifiedFields" => $modifiedFields);
}
}
//检测新增的索引
$newIndexes = array_diff_key($sourceTable["tableIndexes"], $target[$key]["tableIndexes"]);
if(count($newIndexes)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["newIndexes"] = $newIndexes;
}else{
$result["modifiedTables"][$key] = array("newIndexes" => $newIndexes);
}
}
//检测修改的索引
$modifiedIndexes = $this->getModifiedItems($sourceTable["tableIndexes"], $target[$key]["tableIndexes"]);
if(count($newIndexes)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["modifiedIndexes"] = $modifiedIndexes;
}else{
$result["modifiedTables"][$key] = array("modifiedIndexes" => $modifiedIndexes);
}
}
//检测删除的索引
$deletedIndexes = array_diff_key($target[$key]["tableIndexes"], $sourceTable["tableIndexes"]);
if(count($newIndexes)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["deletedIndexes"] = $deletedIndexes;
}else{
$result["modifiedTables"][$key] = array("deletedIndexes" => $deletedIndexes);
}
}
//检测新增的表属性
$newTableProperties = array_diff_key($sourceTable["tableProperties"], $target[$key]["tableProperties"]);
if(count($newTableProperties)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["newTableProperties"] = $newTableProperties;
}else{
$result["modifiedTables"][$key] = array("newTableProperties" => $newTableProperties);
}
}
//检测删除的表属性
$deletedTableProperties = array_diff_key($target[$key]["tableProperties"], $sourceTable["tableProperties"]);
if(count($deletedTableProperties)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["deletedTableProperties"] = $deletedTableProperties;
}else{
$result["modifiedTables"][$key] = array("deletedTableProperties" => $deletedTableProperties);
}
}
//检测修改的表属性
$modifiedTableProperties = $this->getModifiedItems($sourceTable["tableProperties"], $target[$key]["tableProperties"]);
if(count($modifiedTableProperties)>0){
if (isset($result["modifiedTables"][$key])) {
$result["modifiedTables"][$key]["modifiedTableProperties"] = $modifiedTableProperties;
}else{
$result["modifiedTables"][$key] = array("modifiedTableProperties" => $modifiedTableProperties);
}
}
}
return $result;
}
public function getModifiedItems($source,$target){
$result = array();
$sourceFields = array_intersect_key($source,$target);
foreach ($sourceFields as $key=>$sourceField) {
if (is_array($sourceField)) {
$newProperties = array_diff_key($sourceField, $target[$key]);
if (count($newProperties) > 0) {
$result[$key] = array("modifiedItems" => array("newProperties"=>$newProperties),"all"=>$sourceField);
}
$deletedProperties = array_diff_key($target[$key], $sourceField);
if (count($deletedProperties) > 0) {
if (isset($result[$key])) {
$result[$key]["modifiedItems"]["deletedProperties"] = $deletedProperties;
} else {
$result[$key] = array("modifiedItems" => array("deletedProperties" => $deletedProperties), "all" => $sourceField);
}
}
$modifiedProperties = array();
$intersectProperties = array_intersect_key($sourceField, $target[$key]);
foreach ($intersectProperties as $innerKey => $intersectProperty) {
if ($intersectProperty != $target[$key][$innerKey]) {
$modifiedProperties[$innerKey] = $intersectProperty;
}
}
if (count($modifiedProperties) > 0) {
if (isset($result[$key])) {
$result[$key]["modifiedItems"]["modifiedProperties"] = $modifiedProperties;
} else {
$result[$key] = array("modifiedItems" => array("modifiedProperties" => $modifiedProperties), "all" => $sourceField);
}
}
}else{
if($sourceField!=$target[$key]){
$result[$key] = $sourceField;
}
}
}
return $result;
}
public function getPropertyChangeSql($value){
$res = '';
if(isset($value['type'])&&$value['type']!=''){
$res .= " ".strtoupper($value['type']);
}
if(isset($value['length'])&&$value['length']!=''){
$res .= " ({$value['length']})";
}
if(isset($value['UNSIGNED'])&&$value['UNSIGNED']){
$res .= " UNSIGNED";
}
if(isset($value["NOT NULL"])&&$value["NOT NULL"]){
$res .= " NOT NULL";
}
if(isset($value["DEFAULT"])&&$value["DEFAULT"]!=''){
$res .= " DEFAULT {$value["DEFAULT"]}";
}
if(isset($value["COMMENT"])&&$value["COMMENT"]!=''){
$res .= " COMMENT {$value["COMMENT"]}";
}
return $res;
}
public function getPropertySql($data){
$result = '';
if(isset($data['tableName'])&&$data['tableName']!=''&&isset($data['fieldName'])&&$data['fieldName']!=''){
//ALTER TABLE `test` CHANGE `of` `of`
// VARCHAR(11) UNSIGNED
// CHARACTER SET utf8 COLLATE utf8_general_ci
// NOT NULL DEFAULT '0' COMMENT 'ddd';
//if(!isset($data[$type])){
// echo "<br>";
// var_dump($data);exit;
//}
if(isset($data['modifiedItems'])){
if(isset($data['all'])&&is_array($data['all'])) {
$res = "ALTER TABLE `{$data['tableName']}` CHANGE `{$data['fieldName']}` `{$data['fieldName']}`";
$propSql = $this->getPropertyChangeSql($data['all']);
if($propSql!=''){
$result .= $res.$propSql.";";
}
}
}
}
return $result;
}
public function getPropertyNote($data){
$result = '';
if(isset($data['tableName'])&&$data['tableName']!=''&&isset($data['fieldName'])&&$data['fieldName']!=''){
if(isset($data['modifiedItems'])){
if(isset($data['all'])&&is_array($data['all'])) {
$propSql = $this->getPropertyChangeSql($data['all']);
if($propSql!=''){
$propNote = '';
foreach ($data['modifiedItems'] as $modifiedKey=>$modifiedItem) {
if(array_key_exists($modifiedKey,$this->typeMap)) {
$typeStr = $this->typeMap[$modifiedKey];
$propNoteItem = '';
foreach ($modifiedItem as $key => $item) {
$propNoteItem .= is_bool($item) ? "$key," : "$key:$item,";
}
$propNote .= $typeStr." ".trim($propNoteItem, ",");
}
}
$result .= "在表{$data['tableName']}中{$data['fieldName']}字段{$propNote}";
}
}
}
}
return $result;
}
public function mysqlGenerator($type="newTables",$data=array()){
$result = array();
$note = array();
if(isset($data['tableName'])&&$data['tableName']!=''){
$tableName = $data['tableName'];
}else{
return array($result,$note);
}
switch($type){
case "newTables":
$result[] = preg_replace('/AUTO_INCREMENT[ ]{0,}=[ ]{0,}\d+/i','',$data["createSql"]);
$note[] = "新建表$tableName";
break;
case "newIndexes":
// alter table table_name add index index_name (column_list) ;
// alter table table_name add unique (column_list) ;
// alter table table_name add primary key (column_list) ;
if(isset($data['newIndexes'])){
$indexArr = $data['newIndexes'];
if(count($indexArr)>0){
foreach($indexArr as $indexName=>$value){
if(isset($value['field'])) {
if(is_array($value['field'])) {
$fields = implode(",", $value['field']);
}elseif(is_string($value['field'])){
$fields = $value['field'];
}
$indexType = isset($value['properties'])? $value['properties']:"INDEX";
if($indexType=='PRIMARY'){
$indexType .= " KEY";
}
// $result .= "CREATE $indexType $indexName ON `$tableName` ($fields);";
$result [] = "ALTER TABLE $tableName ADD $indexType $indexName ($fields);";
$note [] = "在表{$tableName}中为字段{$fields}新建{$indexType}索引{$indexName}";
}
}
}
}
break;
case "newFields":
// ALTER TABLE `users` ADD `token` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '返回给客户端token登入识别码',
//ADD `token_time` DATETIME NULL DEFAULT NULL COMMENT 'token存入时间',
//ADD `is_owner` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否是大区或城市或战区负责人,1代表是,其他情况以及其他职位统统为0',
//ADD `hr_staff_id` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'hr系统staff的id';
if(isset($data['newFields'])){
$fieldArr = $data['newFields'];
if(count($fieldArr)>0){
// ALTER TABLE `test` ADD `test`
// INT(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'dddd' AFTER `of`;
foreach($fieldArr as $fieldName=>$value){
$res = "ALTER TABLE `$tableName`";
$res .= " ADD `$fieldName`";
$propSql = $this->getPropertyChangeSql($value);
if($propSql!=''){
$result [] = $res.$propSql.";";
$note [] = "在表{$tableName}中添加字段{$fieldName}";
}
}
}
}
break;
case "newProperties":
break;
case "deletedTables":
$result [] = "DROP TABLE `$tableName`;";
$note [] = "删除表{$tableName}";
break;
case "deletedIndexes":
// drop index index_name on table_name ;
// alter table table_name drop index index_name ;
// alter table table_name drop primary key ;
if(isset($data['deletedIndexes'])){
$indexArr = $data['deletedIndexes'];
if(count($indexArr)>0){
foreach($indexArr as $indexName=>$value){
$indexType = isset($value['properties'])? $value['properties']:"INDEX";
if($indexType=='PRIMARY'){
$indexType .= " KEY";
}
$result [] = "ALTER TABLE $tableName DROP $indexType $indexName;";
$note [] = "在表{$tableName}中删除索引{$indexName}";
}
}
}
break;
case "deletedFields":
if(isset($data['deletedFields'])&&is_array($data['deletedFields'])){
if(count($data['deletedFields'])>0){
foreach ($data['deletedFields'] as $fieldName=>$deletedField) {
$result [] = "ALTER TABLE $tableName DROP COLUMN $fieldName;";
$note [] = "在表{$tableName}中删除字段{$fieldName}";
}
}
}
break;
case "deletedProperties":
break;
case "modifiedTables":
break;
case "modifiedFields":
if(isset($data['modifiedFields'])&&is_array($data['modifiedFields'])){
foreach($data['modifiedFields'] as $fieldName=>$value){
$value['tableName'] = $tableName;
$value['fieldName'] = $fieldName;
$result []= $this->getPropertySql($value);
$note []= $this->getPropertyNote($value);
}
}
break;
case "modifiedIndexes":
// alter table table_name add index index_name (column_list) ;
// alter table table_name add unique (column_list) ;
// alter table table_name add primary key (column_list) ;
break;
case "modifiedProperties":
break;
case "modifiedTableProperties":
//ALTER TABLE `test` COMMENT = 'ffff';
$res = '';
foreach ($data['modifiedTableProperties'] as $key=>$value) {
if($key=="AUTO_INCREMENT"){
continue;
}
$res .= " $key = $value";
}
if($res != '') {
$result []= "ALTER TABLE `$tableName` $res;";
$note [] = "修改表{$tableName}属性{$res}";
}
break;
case "newTableProperties":
$res = '';
foreach ($data['newTableProperties'] as $key=>$value) {
if($key=="AUTO_INCREMENT"){
continue;
}
$res .= " $key = $value";
}
if($res != '') {
$result []= "ALTER TABLE `$tableName` $res;";
$note []= "新增表{$tableName}属性$res";
}
break;
case "deletedTableProperties":
break;
default:
break;
}
return array($result,$note);
}
} | {
"content_hash": "64233450c77d6a291cdee49e1df17e07",
"timestamp": "",
"source": "github",
"line_count": 490,
"max_line_length": 144,
"avg_line_length": 33.114285714285714,
"alnum_prop": 0.5938000739553803,
"repo_name": "hecomlilong/basic",
"id": "c96488c99322f0cf08f8d5329c242990c792f280",
"size": "16598",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "models/MysqlAnalyse.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "1277"
},
{
"name": "Batchfile",
"bytes": "1030"
},
{
"name": "CSS",
"bytes": "1364"
},
{
"name": "PHP",
"bytes": "131129"
},
{
"name": "Python",
"bytes": "9974"
}
],
"symlink_target": ""
} |
// Copyright (c) 2010-2015 niXman (i dot nixman dog gmail dot com). All
// rights reserved.
//
// This file is part of YAS(https://github.com/niXman/yas) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
//
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit the Software, and to prepare derivative works of the
// Software, and to permit third-parties to whom the Software is furnished to
// do so, all subject to the following:
//
// The copyright notices in the Software and this entire statement, including
// the above license grant, this restriction and the following disclaimer,
// must be included in all copies of the Software, in whole or in part, and
// all derivative works of the Software, unless such copies or derivative
// works are solely in the form of machine-executable object code generated by
// a source language processor.
//
// 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT
// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#ifndef _yas__json__std_wstring_serializer_hpp
#define _yas__json__std_wstring_serializer_hpp
#include <yas/detail/tools/utf8conv.hpp>
#include <yas/detail/type_traits/selector.hpp>
#include <yas/detail/type_traits/properties.hpp>
namespace yas {
namespace detail {
/***************************************************************************/
template<>
struct serializer<
type_prop::not_a_pod,
ser_method::use_internal_serializer,
archive_type::json,
direction::out,
std::wstring
>
{
template<typename Archive>
static Archive& apply(Archive& ar, const std::wstring& wstring) {
std::string dst;
detail::TypeConverter<std::string, std::wstring>::Convert(dst, wstring);
ar & dst;
return ar;
}
};
template<>
struct serializer<
type_prop::not_a_pod,
ser_method::use_internal_serializer,
archive_type::json,
direction::in,
std::wstring
>
{
template<typename Archive>
static Archive& apply(Archive& ar, std::wstring& wstring) {
std::string string;
ar & string;
detail::TypeConverter<std::wstring, std::string>::Convert(wstring, string);
return ar;
}
};
/***************************************************************************/
} // namespace detail
} // namespace yas
#endif // _yas__json__std_wstring_serializer_hpp
| {
"content_hash": "a2724dde546281b982fa6c7e28a1e8ad",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 79,
"avg_line_length": 33.233333333333334,
"alnum_prop": 0.7011033099297894,
"repo_name": "yliu120/K3",
"id": "03dad3e1071a2a90e71510d9147837f5deb1d902",
"size": "2991",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "runtime/cpp/external/yas/serializers/json/std/std_wstring_serializers.hpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "383043"
},
{
"name": "CMake",
"bytes": "685"
},
{
"name": "Haskell",
"bytes": "1741268"
},
{
"name": "Makefile",
"bytes": "11287"
}
],
"symlink_target": ""
} |
package org.perfidix.socketadapter;
// import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.perfidix.element.BenchmarkMethod;
import org.perfidix.exceptions.PerfidixMethodCheckException;
import org.perfidix.exceptions.SocketViewException;
import org.perfidix.meter.AbstractMeter;
import org.perfidix.meter.Time;
import org.perfidix.meter.TimeMeter;
import java.lang.reflect.Method;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
/**
* This class tests the java class {@link org.perfidix.socketadapter.SocketListener}.
*
* @author Lewandowski Lukas, DiSy, University of Konstanz
*/
public class SocketListenerTest {
private transient SocketListener socketListener;
private IUpdater updater;
/**
* Simple setUp
*/
@Before
public void setUp() {
updater = mock(IUpdater.class);
socketListener = new SocketListener(updater);
}
/**
* Test method for
* {@link org.perfidix.socketadapter.SocketListener#visitBenchmark(org.perfidix.result.BenchmarkResult)} .
*/
@Test(expected = UnsupportedOperationException.class)
public void testVisitBenchmark() {
socketListener = new SocketListener(updater);
socketListener.visitBenchmark(null);
}
/**
* Test method for
* {@link org.perfidix.socketadapter.SocketListener#listenToResultSet(org.perfidix.element.BenchmarkMethod, org.perfidix.meter.AbstractMeter, double)}.
*
* @throws InterruptedException Thread sleep exception.
* @throws SocketViewException if view is not correctly notified
* @throws PerfidixMethodCheckException
*/
@Test
public void testListenToResultSet() throws InterruptedException, SocketViewException, PerfidixMethodCheckException {
final Method[] methods = BenchWithException.class.getMethods();
BenchmarkMethod method1 = null;
for (Method method : methods) {
if (method.getName().equals("benchMe")) {
method1 = new BenchmarkMethod(method);
}
}
final AbstractMeter meter = new TimeMeter(Time.MilliSeconds);
final String methodName = method1.getMethodToBench().getDeclaringClass().getName() + "." + method1.getMethodToBench().getName();
when(updater.updateCurrentElement(meter, methodName)).thenReturn(true);
SocketListener myInstance = new SocketListener(updater);
assertTrue(myInstance.listenToResultSet(method1, meter, 0));
}
/**
* Test method for
* {@link org.perfidix.socketadapter.SocketListener#listenToException (org.perfidix.exceptions.AbstractPerfidixMethodException)}
* .
*
* @throws InterruptedException Thread exception occurred.
* @throws PerfidixMethodCheckException
*/
@Test
public void testListenToException() throws InterruptedException, SocketViewException, PerfidixMethodCheckException {
final Method[] methods = BenchWithException.class.getMethods();
BenchmarkMethod method1 = null;
for (Method method : methods) {
if (method.getName().equals("benchMe")) {
method1 = new BenchmarkMethod(method);
}
}
final AbstractMeter meter = new TimeMeter(Time.MilliSeconds);
final String methodName = method1.getMethodToBench().getDeclaringClass().getName() + "." + method1.getMethodToBench().getName();
when(updater.updateCurrentElement(meter, methodName)).thenReturn(true);
SocketListener myInstance = new SocketListener(updater);
assertTrue(myInstance.listenToResultSet(method1, meter, 0));
}
}
| {
"content_hash": "e1bce8ccadb65acdc37ffa5892de4d27",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 155,
"avg_line_length": 35.45283018867924,
"alnum_prop": 0.7030335284725918,
"repo_name": "sebastiangraf/perfidix",
"id": "ce5a255e8807a940f681c2ed457fe664b489283d",
"size": "5313",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "src/test/java/org/perfidix/socketadapter/SocketListenerTest.java",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "465800"
}
],
"symlink_target": ""
} |
package org.camunda.bpm.engine.impl.jobexecutor;
import org.camunda.bpm.engine.impl.interceptor.CommandContext;
import org.camunda.bpm.engine.impl.interceptor.CommandContextListener;
import org.camunda.bpm.engine.impl.persistence.entity.JobEntity;
public class JobFailureCollector implements CommandContextListener {
protected Throwable failure;
protected JobEntity job;
protected String jobId;
public JobFailureCollector(String jobId) {
this.jobId = jobId;
}
public void setFailure(Throwable failure) {
// log failure if not already present
if (this.failure == null) {
this.failure = failure;
}
}
public Throwable getFailure() {
return failure;
}
@Override
public void onCommandFailed(CommandContext commandContext, Throwable t) {
setFailure(t);
}
@Override
public void onCommandContextClose(CommandContext commandContext) {
// ignore
}
public void setJob(JobEntity job) {
this.job = job;
}
public JobEntity getJob() {
return job;
}
public String getJobId() {
return jobId;
}
} | {
"content_hash": "abf85d426cc8d17fa5657de6dd261f06",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 75,
"avg_line_length": 21.15686274509804,
"alnum_prop": 0.7247451343836886,
"repo_name": "xasx/camunda-bpm-platform",
"id": "efc2ed67a8b52637da3b2641a9210d6d900fdfd6",
"size": "1730",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "engine/src/main/java/org/camunda/bpm/engine/impl/jobexecutor/JobFailureCollector.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "7146"
},
{
"name": "CSS",
"bytes": "2750"
},
{
"name": "Groovy",
"bytes": "1594"
},
{
"name": "HTML",
"bytes": "43699"
},
{
"name": "Java",
"bytes": "31223302"
},
{
"name": "JavaScript",
"bytes": "43"
},
{
"name": "PLpgSQL",
"bytes": "30667"
},
{
"name": "Python",
"bytes": "187"
},
{
"name": "Ruby",
"bytes": "60"
},
{
"name": "SQLPL",
"bytes": "26986"
},
{
"name": "Shell",
"bytes": "8400"
}
],
"symlink_target": ""
} |
<?php
function connectDB_update(){
$connent = mysqli_connect('localhost','root','','waterwork');
mysqli_set_charset($connent, "utf8");
return $connent;
}
function update1($table,$colum,$value,$key,$input_key){
$connect = connectDB_update();
$sql = "UPDATE $table SET $colum=$value WHERE $key=$input_key";
$result = mysqli_query($connect,$sql);
return $result;
}
?>
| {
"content_hash": "abf09a3a6789eaf1a83f21ede45b7a8b",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 67,
"avg_line_length": 28.142857142857142,
"alnum_prop": 0.6421319796954315,
"repo_name": "bestterry/project",
"id": "5e23affc534b9562fcc267743ec802b01dab1c4a",
"size": "394",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "admin/assignment/sql/update.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "328167"
},
{
"name": "HTML",
"bytes": "1815610"
},
{
"name": "JavaScript",
"bytes": "756285"
},
{
"name": "PHP",
"bytes": "1842511"
}
],
"symlink_target": ""
} |
<script>
function send_msg(param)
{
$('#opd_job').val(param);
$('#frm_msg').submit();
}
</script>
<div id="div_container">
<div class="body_bg">
<div class="banner">
<?php include_once(APPPATH.'views/fe/common/common_buyer_search.tpl.php'); ?>
</div>
<?php include_once(APPPATH.'views/fe/common/buyer_left_menu.tpl.php'); ?>
<div class="body_right">
<h1><img src="images/fe/job.png" alt="" /> <?php echo get_title_string(t('Active Jobs'))?> <span>(<?php echo $i_active_jobs;?>)</span></h1>
<h4 style="font-size:14px;"><?php echo t('All jobs that you have posted and have been approved by admin are listed below')?></h4>
<!--<div class="grey_box02">
<h3 style="border:0px;"> Filter options</h3>
<span class="left"> Status: </span>
<select name="status" id="status" style="width:150px; margin-right:15px;">
<option>All</option>
<option> Pending </option>
<option> Active </option>
<option> Rejected </option>
<option> Assigned </option>
<option> In Progress </option>
<option> Feedback Asked </option>
<option> Completed </option>
<option> Expired </option>
</select>
<script type="text/javascript">
$(document).ready(function(arg) {
$("#status").msDropDown();
$("#status").hide();
})
</script>
<span class="left">Category : </span>
<select name="category" id="category" style="width:270px;">
<option>All</option>
<option>..</option>
</select>
<script type="text/javascript">
$(document).ready(function(arg) {
$("#category").msDropDown();
$("#category").hide();
})
</script>
<div class="spacer"></div>
<br />
<input class="button" type="button" value="Search" style="margin-left:45px;" />
<input class="button" type="button" value="Show All" />
</div>-->
<div id="job_list">
<?php echo $job_contents;?>
</div>
</div>
<div class="spacer"></div>
</div>
</div>
<div style="display: none;">
<div id="history_div" class="lightbox">
<h1>History</h1>
<div style=" height:400px; overflow:auto; width:500px;">
<div class="white_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="sky_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="white_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="sky_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="white_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="sky_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="white_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
<div class="sky_box"> Rahul has posted the Job: <strong>Painter</strong> on 08/09/2011<br />
Admin has approved the Job: <strong>Painter</strong>.</div>
</div>
</div>
</div> | {
"content_hash": "49e2cf3a5c07ed12aaac667d36f4182c",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 157,
"avg_line_length": 62.2183908045977,
"alnum_prop": 0.39922409015333454,
"repo_name": "mrinsss/Full-Repo",
"id": "9cdf58d564b18686a031406936328c41e0d9759e",
"size": "5413",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "quoteurjob/system/application/views/fe/buyer/active_jobs.tpl.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1418"
},
{
"name": "C",
"bytes": "1966458"
},
{
"name": "CSS",
"bytes": "11042193"
},
{
"name": "Go",
"bytes": "20139"
},
{
"name": "HTML",
"bytes": "17414401"
},
{
"name": "JavaScript",
"bytes": "12947774"
},
{
"name": "Makefile",
"bytes": "65374"
},
{
"name": "PHP",
"bytes": "91917580"
},
{
"name": "PLSQL",
"bytes": "51723"
},
{
"name": "PLpgSQL",
"bytes": "93170"
},
{
"name": "Perl",
"bytes": "197936"
},
{
"name": "Perl 6",
"bytes": "10594"
},
{
"name": "Python",
"bytes": "15519"
},
{
"name": "Roff",
"bytes": "243640"
},
{
"name": "Shell",
"bytes": "113076"
},
{
"name": "Vue",
"bytes": "563"
}
],
"symlink_target": ""
} |
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y --force-yes --no-install-recommends \
curl make cmake git wget file \
python-dev python-pip python-setuptools stunnel \
zlib1g-dev \
bzip2 xz-utils \
g++ libc6-dev \
bsdtar \
cmake \
rpm2cpio cpio \
g++-5-mips-linux-gnu libc6-dev-mips-cross \
g++-5-mipsel-linux-gnu libc6-dev-mipsel-cross \
pkg-config
# Rename compilers to variants without version numbers so the build
# configuration in the standard library can pick them up.
RUN \
for f in `ls /usr/bin/mips*-linux-*-*-5`; do \
ln -vs $f `echo $f | sed -e 's/-5$//'`; \
done && \
for f in `ls /usr/bin/*-linux-*-*-4.8`; do \
ln -vs $f `echo $f | sed -e 's/-4.8$//'`; \
done && \
for f in `ls /usr/bin/*-linux-*-*-4.7`; do \
ln -vs $f `echo $f | sed -e 's/-4.7$//'`; \
done
# Install buildbot and prep it to run
RUN pip install buildbot-slave
RUN groupadd -r rustbuild && useradd -m -r -g rustbuild rustbuild
RUN mkdir /buildslave && chown rustbuild:rustbuild /buildslave
# Install rumprun cross compiler
WORKDIR /build
COPY linux-cross/build_rumprun.sh /build/
RUN /bin/bash build_rumprun.sh && rm -rf /build
# Build/install crosstool-ng cross compilers
# NOTE crosstool-ng can't be executed by root so we execute it under the
# rustbuild user. /x-tools is the crosstool-ng output directory and /build is
# the crosstool-ng build directory so both must be writable by rustbuild
WORKDIR /build
COPY linux-cross/build_toolchain_root.sh /build/
RUN /bin/bash build_toolchain_root.sh && \
mkdir /x-tools && \
chown rustbuild:rustbuild /build && \
chown rustbuild:rustbuild /x-tools
COPY linux-cross/build_toolchain.sh \
linux-cross/aarch64-linux-gnu.config \
linux-cross/arm-linux-gnueabi.config \
linux-cross/arm-linux-musleabi.config \
linux-cross/arm-linux-gnueabihf.config \
linux-cross/arm-linux-musleabihf.config \
linux-cross/mips-linux-musl.config \
linux-cross/mipsel-linux-musl.config \
linux-cross/armv7-linux-gnueabihf.config \
linux-cross/armv7-linux-musleabihf.config \
linux-cross/powerpc-linux-gnu.config \
linux-cross/powerpc64-linux-gnu.config \
linux-cross/s390x-linux-gnu.config \
/build/
COPY linux-cross/patches /build/patches
USER rustbuild
# Build three full toolchains for the `arm-unknown-linux-gneuabi`,
# `arm-unknown-linux-gnueabihf` and `aarch64-unknown-linux-gnu` targets. We
# build toolchains from scratch to primarily move to an older glibc. Ubuntu
# does indeed have these toolchains in its repositories (so we could install
# that package), but they package a relatively newer version of glibc. In order
# for the binaries we produce to be maximall compatible, we push the glibc
# version back to 2.14 for arm and 2.17 for aarch64
RUN /bin/bash build_toolchain.sh arm-linux-gnueabi
RUN /bin/bash build_toolchain.sh arm-linux-gnueabihf
RUN /bin/bash build_toolchain.sh aarch64-linux-gnu
# Also build two full toolchains for the `{mips,mipsel}-unknown-linux-musl`
# targets. Currently these are essentially aliases to run on OpenWRT devices and
# are different from the x86_64/i686 MUSL targets in that MUSL is dynamically
# linked instead of statically. As a result, we also need to dynamically link to
# an unwinder and other various runtime bits.
#
# We in theory could *only* build the MUSL library itself and use the standard
# MIPS toolchains installed above to link against the library, except it gets
# difficult figuring out how to link, for example, `gcc_s` dynamically. For that
# reason we just give up and build a whole toolchain which is dedicated to
# targeting this triple.
RUN /bin/bash build_toolchain.sh mips-linux-musl
RUN /bin/bash build_toolchain.sh mipsel-linux-musl
# Also build a toolchain tuned for the armv7 architecture which is going to be
# used with the armv7-unknown-linux-gnueabihf target.
#
# Why are we not using the arm-linux-gnueabihf toolchain with the armv7 target?
# We actually tried that setup but we hit `ar` errors caused by the different
# codegen options used by crosstool-ng and the rust build system. crosstool-ng
# uses `-march=armv6` to build the toolchain and related C(++) libraries, like
# libstdc++ which gets statically linked to LLVM; on the other hand the rust
# build system builds its C(++) libraries, like LLVM, with `-march=armv7-a`.
#
# By using this armv7 compiler we can ensure the same codegen options are used
# everywhere and avoid these codegen mismatch issues. Also compiling libstdc++
# for armv7 instead of for armv6 should make rustc (slightly) faster.
RUN /bin/bash build_toolchain.sh armv7-linux-gnueabihf
# Build a bunch of toolchains for ARM musl targets
RUN /bin/bash build_toolchain.sh arm-linux-musleabi
RUN /bin/bash build_toolchain.sh arm-linux-musleabihf
RUN /bin/bash build_toolchain.sh armv7-linux-musleabihf
# Also build toolchains for {powerpc{,64},s390x}-unknown-linux-gnu,
# primarily to support older glibc than found in the Ubuntu root.
RUN /bin/bash build_toolchain.sh powerpc-linux-gnu
RUN /bin/bash build_toolchain.sh powerpc64-linux-gnu
RUN /bin/bash build_toolchain.sh s390x-linux-gnu
USER root
# Rename all the compilers we just built into /usr/bin and also without
# `-unknown-` in the name because it appears lots of other compilers in Ubuntu
# don't have this name in the component by default either.
# Also rename `-ibm-` out of the s390x compilers.
# Also the aarch64 compiler is prefixed with `aarch64-unknown-linux-gnueabi`
# by crosstool-ng, but Ubuntu just prefixes it with `aarch64-linux-gnu` so
# we'll, additionally, strip the eabi part from its binaries.
RUN \
for f in `ls /x-tools/*-unknown-linux-*/bin/*-unknown-linux-*`; do \
g=`basename $f`; \
ln -vs $f /usr/bin/`echo $g | sed -e 's/-unknown//'`; \
done && \
for f in `ls /x-tools/*-ibm-linux-*/bin/*-ibm-linux-*`; do \
g=`basename $f`; \
ln -vs $f /usr/bin/`echo $g | sed -e 's/-ibm//'`; \
done && \
for f in `ls /usr/bin/aarch64-linux-gnueabi-*`; do \
g=`basename $f`; \
mv -v $f /usr/bin/`echo $g | sed -e 's/eabi//'`; \
done
COPY linux-cross/build_freebsd_toolchain.sh /tmp/
RUN bash /tmp/build_freebsd_toolchain.sh i686
RUN bash /tmp/build_freebsd_toolchain.sh x86_64
COPY linux-cross/build_dragonfly_toolchain.sh /tmp/
RUN bash /tmp/build_dragonfly_toolchain.sh
COPY linux-cross/build_netbsd_toolchain.sh /tmp/
RUN bash /tmp/build_netbsd_toolchain.sh
# powerpc64le is built using centos7 glibc, because that has
# backports that weren't committed upstream until glibc-2.19.
COPY linux-cross/build_powerpc64le_linux_toolchain.sh /tmp/
RUN bash /tmp/build_powerpc64le_linux_toolchain.sh
# Also build libunwind.a for the ARM musl targets
COPY linux-cross/build-libunwind.sh \
/build/
RUN /bin/bash build-libunwind.sh arm-unknown-linux-musleabi
RUN /bin/bash build-libunwind.sh arm-unknown-linux-musleabihf
RUN /bin/bash build-libunwind.sh armv7-unknown-linux-musleabihf
RUN apt-get install -y --force-yes --no-install-recommends \
g++-mips64-linux-gnuabi64 \
g++-mips64el-linux-gnuabi64
# Instruct rustbuild to use the armv7-linux-gnueabihf toolchain instead of the
# default arm-linux-gnueabihf one
ENV AR_armv7_unknown_linux_gnueabihf=armv7-linux-gnueabihf-ar \
CC_armv7_unknown_linux_gnueabihf=armv7-linux-gnueabihf-gcc \
CXX_armv7_unknown_linux_gnueabihf=armv7-linux-gnueabihf-g++ \
AR_arm_unknown_linux_musleabi=arm-linux-musleabi-ar \
CC_arm_unknown_linux_musleabi=arm-linux-musleabi-gcc \
CXX_arm_unknown_linux_musleabi=arm-linux-musleabi-g++ \
AR_arm_unknown_linux_musleabihf=arm-linux-musleabihf-ar \
CC_arm_unknown_linux_musleabihf=arm-linux-musleabihf-gcc \
CXX_arm_unknown_linux_musleabihf=arm-linux-musleabihf-g++ \
AR_armv7_unknown_linux_musleabihf=armv7-linux-musleabihf-ar \
CC_armv7_unknown_linux_musleabihf=armv7-linux-musleabihf-gcc \
CXX_armv7_unknown_linux_musleabihf=armv7-linux-musleabihf-g++ \
AR_x86_64_unknown_freebsd=x86_64-unknown-freebsd10-ar \
CC_x86_64_unknown_freebsd=x86_64-unknown-freebsd10-gcc \
CXX_x86_64_unknown_freebsd=x86_64-unknown-freebsd10-g++ \
AR_i686_unknown_freebsd=i686-unknown-freebsd10-ar \
CC_i686_unknown_freebsd=i686-unknown-freebsd10-gcc \
CXX_i686_unknown_freebsd=i686-unknown-freebsd10-g++ \
AR_x86_64_unknown_netbsd=x86_64-unknown-netbsd-ar \
CC_x86_64_unknown_netbsd=x86_64-unknown-netbsd-gcc \
CXX_x86_64_unknown_netbsd=x86_64-unknown-netbsd-g++ \
AR_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-ar \
CC_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-gcc \
CXX_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-g++ \
AR_mips_unknown_linux_gnu=mips-linux-gnu-ar \
CC_mips_unknown_linux_gnu=mips-linux-gnu-gcc-5 \
CXX_mips_unknown_linux_gnu=mips-linux-gnu-g++-5 \
AR_mips_unknown_linux_musl=mips-linux-musl-ar \
CC_mips_unknown_linux_musl=mips-linux-musl-gcc \
CXX_mips_unknown_linux_musl=mips-linux-musl-g++ \
AR_mipsel_unknown_linux_gnu=mipsel-linux-gnu-ar \
CC_mipsel_unknown_linux_gnu=mipsel-linux-gnu-gcc-5 \
CXX_mipsel_unknown_linux_gnu=mipsel-linux-gnu-g++-5 \
AR_mipsel_unknown_linux_musl=mipsel-linux-musl-ar \
CC_mipsel_unknown_linux_musl=mipsel-linux-musl-gcc \
CXX_mipsel_unknown_linux_musl=mipsel-linux-musl-g++ \
AR_powerpc_unknown_linux_gnu=powerpc-linux-gnu-ar \
CC_powerpc_unknown_linux_gnu=powerpc-linux-gnu-gcc \
CXX_powerpc_unknown_linux_gnu=powerpc-linux-gnu-g++ \
AR_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-ar \
CC_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-gcc \
CXX_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-g++ \
AR_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-ar \
CC_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-gcc \
CXX_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-g++ \
AR_s390x_unknown_linux_gnu=s390x-linux-gnu-ar \
CC_s390x_unknown_linux_gnu=s390x-linux-gnu-gcc \
CXX_s390x_unknown_linux_gnu=s390x-linux-gnu-g++ \
AR_mips64_unknown_linux_gnuabi64=mips64-linux-gnuabi64-ar \
CC_mips64_unknown_linux_gnuabi64=mips64-linux-gnuabi64-gcc \
CXX_mips64_unknown_linux_gnuabi64=mips64-linux-gnuabi64-g++ \
AR_mips64el_unknown_linux_gnuabi64=mips64el-linux-gnuabi64-ar \
CC_mips64el_unknown_linux_gnuabi64=mips64el-linux-gnuabi64-gcc \
CXX_mips64el_unknown_linux_gnuabi64=mips64el-linux-gnuabi64-g++
# When running this container, startup buildbot
WORKDIR /buildslave
USER rustbuild
COPY start-docker-slave.sh start-docker-slave.sh
ENTRYPOINT ["sh", "start-docker-slave.sh"]
| {
"content_hash": "ff2030c32c10afaa4212f74b592e7545",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 80,
"avg_line_length": 49.491150442477874,
"alnum_prop": 0.6983459991059454,
"repo_name": "rust-lang-deprecated/rust-buildbot",
"id": "fe94870c32c5422cce0ce40c35e2b0a02a3b9b6c",
"size": "11185",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "slaves/linux-cross/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "9150"
},
{
"name": "HTML",
"bytes": "62265"
},
{
"name": "Python",
"bytes": "102535"
},
{
"name": "Shell",
"bytes": "22488"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Bull. trimest. Soc. mycol. Fr. 100(2): 174 (1984)
#### Original name
Xylaria galandii Bertault
### Remarks
null | {
"content_hash": "afe75df02847bf12a8b9e295a7266031",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 49,
"avg_line_length": 13.461538461538462,
"alnum_prop": 0.6914285714285714,
"repo_name": "mdoering/backbone",
"id": "a34ea7d4f2061540f7d1a2df1a64074b4a1d3641",
"size": "224",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Sordariomycetes/Xylariales/Xylariaceae/Xylaria/Xylaria galandii/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
module Idb
class AbstractDevice
attr_accessor :apps_dir
attr_accessor :ops
def app_uuids
unless @ops.file_exists? @apps_dir
puts "Application directory #{@apps_dir} not found."
raise "Application directory #{@apps_dir} not found."
end
puts '[*] Retrieving list of applications...'
dirs = @ops.list_dir @apps_dir.to_s
dirs.select! { |x| (x != ".") && (x != "..") }
if dirs.length.zero?
puts "No applications found in #{@apps_dir}."
raise "No applications found in #{@apps_dir}."
end
dirs
end
def close
end
end
end
| {
"content_hash": "5cd624e70b0583aead3e5d22c5f1f70f",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 61,
"avg_line_length": 23.185185185185187,
"alnum_prop": 0.5718849840255591,
"repo_name": "dmayer/idb",
"id": "3551dbe2365111d2b1c698df2e069e4ea9e69223",
"size": "626",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/lib/abstract_device.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Cycript",
"bytes": "27606"
},
{
"name": "Ruby",
"bytes": "190460"
}
],
"symlink_target": ""
} |
/*
* @(#)PollDAOFactoryHelper.java
*
* @project : Morozko - Pool
* @package : org.morozko.java.mod.web.poll.dg.dao.helpers
* @creation : 01/12/2009 09/24/05
*/
package org.morozko.java.mod.web.poll.dg.dao.helpers;
import org.morozko.java.mod.web.poll.dg.dao.PollStatDAO;
import org.morozko.java.mod.web.poll.dg.dao.PollStatDayDAO;
import org.morozko.java.mod.web.poll.dg.dao.PollIndexDAO;
import org.morozko.java.mod.web.poll.dg.dao.PollQuestionDAO;
import org.morozko.java.mod.web.poll.dg.dao.PollOptionDAO;
import org.morozko.java.mod.web.poll.dg.dao.PollDataDAO;
import org.morozko.java.mod.web.poll.dg.dao.PollAnswerDAO;
/**
* <p>Dao factory.</p>
*
* @author Matteo Franci
*/
public class PollDAOFactoryHelper extends org.morozko.java.mod.db.dao.BasicDAOFactory {
private final static long serialVersionUID = 125965584597334L;
private PollStatDAO pollStatDAO;
private PollStatDayDAO pollStatDayDAO;
private PollIndexDAO pollIndexDAO;
private PollQuestionDAO pollQuestionDAO;
private PollOptionDAO pollOptionDAO;
private PollDataDAO pollDataDAO;
private PollAnswerDAO pollAnswerDAO;
public PollDAOFactoryHelper( org.morozko.java.mod.db.dao.BasicDAOFactory daoFactory ) {
super(daoFactory.getConnectionFactory(), daoFactory.getFieldFactory());
this.pollStatDAO = new PollStatDAO(daoFactory);
this.pollStatDAO.setModuleDaoFactory(this);
this.pollStatDayDAO = new PollStatDayDAO(daoFactory);
this.pollStatDayDAO.setModuleDaoFactory(this);
this.pollIndexDAO = new PollIndexDAO(daoFactory);
this.pollIndexDAO.setModuleDaoFactory(this);
this.pollQuestionDAO = new PollQuestionDAO(daoFactory);
this.pollQuestionDAO.setModuleDaoFactory(this);
this.pollOptionDAO = new PollOptionDAO(daoFactory);
this.pollOptionDAO.setModuleDaoFactory(this);
this.pollDataDAO = new PollDataDAO(daoFactory);
this.pollDataDAO.setModuleDaoFactory(this);
this.pollAnswerDAO = new PollAnswerDAO(daoFactory);
this.pollAnswerDAO.setModuleDaoFactory(this);
}
/**
* <p>Restituisce il valore di pollStatDAO</p>
*
* @return restituisce il valore di pollStatDAO
*/
public PollStatDAO getPollStatDAO() {
return this.pollStatDAO;
}
/**
* <p>Restituisce il valore di pollStatDayDAO</p>
*
* @return restituisce il valore di pollStatDayDAO
*/
public PollStatDayDAO getPollStatDayDAO() {
return this.pollStatDayDAO;
}
/**
* <p>Restituisce il valore di pollIndexDAO</p>
*
* @return restituisce il valore di pollIndexDAO
*/
public PollIndexDAO getPollIndexDAO() {
return this.pollIndexDAO;
}
/**
* <p>Restituisce il valore di pollQuestionDAO</p>
*
* @return restituisce il valore di pollQuestionDAO
*/
public PollQuestionDAO getPollQuestionDAO() {
return this.pollQuestionDAO;
}
/**
* <p>Restituisce il valore di pollOptionDAO</p>
*
* @return restituisce il valore di pollOptionDAO
*/
public PollOptionDAO getPollOptionDAO() {
return this.pollOptionDAO;
}
/**
* <p>Restituisce il valore di pollDataDAO</p>
*
* @return restituisce il valore di pollDataDAO
*/
public PollDataDAO getPollDataDAO() {
return this.pollDataDAO;
}
/**
* <p>Restituisce il valore di pollAnswerDAO</p>
*
* @return restituisce il valore di pollAnswerDAO
*/
public PollAnswerDAO getPollAnswerDAO() {
return this.pollAnswerDAO;
}
}
| {
"content_hash": "71dc96e64c1f1a72135cbd511dc8c919",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 88,
"avg_line_length": 32.981818181818184,
"alnum_prop": 0.6907386990077178,
"repo_name": "fugeritaetas/morozko-lib",
"id": "ba5605bb7ee762f41b4bf071fb6b3a7c702fe444",
"size": "3628",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "java14-morozko/org.morozko.java.mod.web.poll/dgsrc/org/morozko/java/mod/web/poll/dg/dao/helpers/PollDAOFactoryHelper.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "100"
},
{
"name": "CSS",
"bytes": "3435"
},
{
"name": "HTML",
"bytes": "674165"
},
{
"name": "Java",
"bytes": "5309090"
},
{
"name": "PLSQL",
"bytes": "2172"
},
{
"name": "Shell",
"bytes": "239"
}
],
"symlink_target": ""
} |
import { DatepickerPo } from '../../support/datepicker.po';
import * as globalLocales from 'ngx-bootstrap/locale';
describe('Datepicker demo testing suite: Locales', () => {
const datepicker = new DatepickerPo();
const locales = datepicker.exampleDemosArr.locales;
describe('Default state', () => {
beforeEach(() => {
datepicker.navigateTo();
datepicker.scrollToMenu('Locales');
});
it(`example contains 2 selects (with "en" locale), Datepicker and Daterangepicker and appropriate buttons`, () => {
datepicker.isSelectExist(locales, 'en', 0);
datepicker.isSelectExist(locales, 'en', 1);
datepicker.isInputHaveAttrs(locales, [{ attr: 'placeholder', value: 'Datepicker' }], 0);
datepicker.isInputHaveAttrs(locales, [{ attr: 'placeholder', value: 'Daterangepicker' }], 1);
datepicker.isButtonExist(locales, 'Date Picker', 0);
datepicker.isButtonExist(locales, 'Date Range Picker', 1);
});
it(`when user clicks on "Date Picker" btn, container opened with all info in English (month, days)`, () => {
datepicker.clickOnBtn(locales, 0);
datepicker.isDatepickerOpened(true);
datepicker.clickOnNavigation('body', 'month');
datepicker.isMonthLocaleAppropriate('en');
datepicker.clickOnDatepickerTableItem('month', 'body', 0);
datepicker.isWeekdayLocaleAppropriate('en');
});
it(`when user clicks on "Date Range Picker" button, container opened in English (month, days)`, () => {
datepicker.clickOnBtn(locales, 1);
datepicker.isDaterangepickerOpened(true);
datepicker.clickOnDateRangePickerNavigation('month-left');
datepicker.isMonthLocaleAppropriate('en', 'daterangepicker');
datepicker.clickOnDaterangePickerTableItem('month', 0, 'body', 0);
datepicker.isWeekdayLocaleAppropriate('en', 'daterangepicker');
});
});
describe('Change Locale Datepicker', () => {
before(() => {
datepicker.navigateTo();
datepicker.scrollToMenu('Locales');
});
Object.values(globalLocales).forEach(globalLocale => {
const currentLocale = globalLocale.abbr;
if (currentLocale !== undefined) {
it(`when user chose locale ${currentLocale} for "Datepicker", container shown in appropriate language`, () => {
datepicker.selectOne(locales, currentLocale, 0);
datepicker.isDatepickerOpened(true);
datepicker.clickOnNavigation('body', 'month');
datepicker.isMonthLocaleAppropriate(currentLocale);
datepicker.clickOnDatepickerTableItem('month', 'body', 0);
datepicker.isWeekdayLocaleAppropriate(currentLocale);
});
} else {
throw new Error(`${globalLocale} missing abbr key`);
}
});
});
describe('Change Locale DateRangepicker', () => {
before(() => {
datepicker.navigateTo();
datepicker.scrollToMenu('Locales');
});
Object.values(globalLocales).forEach(globalLocale => {
const currentLocale = globalLocale.abbr;
if (currentLocale !== undefined) {
it(`when user chose locale ${currentLocale} for "Daterangepicker", container shown in this language`, () => {
datepicker.selectOne(locales, currentLocale, 1);
datepicker.isDaterangepickerOpened(true);
datepicker.clickOnDateRangePickerNavigation('month-left');
datepicker.isMonthLocaleAppropriate(currentLocale, 'daterangepicker');
datepicker.clickOnDaterangePickerTableItem('month', 0, 'body', 0);
datepicker.isWeekdayLocaleAppropriate(currentLocale, 'daterangepicker');
});
} else {
throw new Error(`${globalLocale} missing abbr key`);
}
});
});
});
| {
"content_hash": "754c095a9fe61fd7c1a8b5a8a73b2a2c",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 119,
"avg_line_length": 42.632183908045974,
"alnum_prop": 0.6654084658937719,
"repo_name": "valor-software/ng2-bootstrap",
"id": "b7178203562c363237e2b5126dea2fc3e9c6ade7",
"size": "3709",
"binary": false,
"copies": "2",
"ref": "refs/heads/development",
"path": "apps/ngx-bootstrap-docs-e2e/src/full/datepicker/locales_spec.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "26619"
},
{
"name": "TypeScript",
"bytes": "401945"
}
],
"symlink_target": ""
} |
<?php
/**
* PHP version 7.1
*
* @category Models
* @package SaaS\Service\Boxberry\Model
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
namespace SaaS\Service\Boxberry\Model;
use JMS\Serializer\Annotation as JMS;
use Er1z\FakeMock\Annotations;
/**
* Class ListStatusesFull
*
* @category Models
* @package SaaS\Service\Boxberry\Model
* @author RetailDriver LLC <integration@retailcrm.ru>
* @license https://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see https://help.retailcrm.ru
*
* @Annotations\FakeMock()
*/
class ListStatusesFull
{
/**
* Массив статусов
*
* @var array $statuses
*
* @JMS\Type("array<SaaS\Service\Boxberry\Model\ListStatuses>")
* @JMS\SerializedName("statuses")
*/
public $statuses = [];
/**
* Признак частичной выдачи заказа (true / false)
*
* @var string $pd
*
* @JMS\Type("string")
* @JMS\SerializedName("PD")
*
* @Annotations\FakeMockField(faker="words", arguments={1, true})
*/
public $pd;
/**
* Сумма фактически принятых денежных средств с получателя
*
* @var string $sum
*
* @JMS\Type("string")
* @JMS\SerializedName("sum")
*
* @Annotations\FakeMockField(faker="words", arguments={1, true})
*/
public $sum;
/**
* Тип оплаты. Возможные значения: "Касса", "Банк", "Эквайринг"
*
* @var string $paymentMethod
*
* @JMS\Type("string")
* @JMS\SerializedName("PaymentMethod")
*
* @Annotations\FakeMockField(faker="words", arguments={1, true})
*/
public $paymentMethod;
/**
* Вес заказа фактический, кг
*
* @var float $weight
*
* @JMS\Type("float")
* @JMS\SerializedName("Weight")
*
* @Annotations\FakeMockField()
*/
public $weight;
/**
* массив товаров (присутствует при PD=true)
*
* @var array $products
*
* @JMS\Type("array<SaaS\Service\Boxberry\Model\ListStatusesFull\Products>")
* @JMS\SerializedName("products")
*/
public $products = [];
}
| {
"content_hash": "76b47cc610a9c0ea88ac138e26d25dbc",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 80,
"avg_line_length": 22.555555555555557,
"alnum_prop": 0.5920286609941783,
"repo_name": "azgalot/saas-connector",
"id": "2ada6c885b6f5b34ff25adc271cd23b8487bfc93",
"size": "2418",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/Service/Boxberry/Model/ListStatusesFull.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Makefile",
"bytes": "394"
},
{
"name": "PHP",
"bytes": "490867"
}
],
"symlink_target": ""
} |
package net.q2ek.compileinfo.implementation;
import java.util.function.Consumer;
import net.q2ek.compileinfo.implementation.basics.PropertyMapCodeGenerator;
class NoopPropertyMapCodeGenerator implements PropertyMapCodeGenerator {
public NoopPropertyMapCodeGenerator() {
// nothing needed
}
@Override
public void write(Consumer<CharSequence> consumer) {
// do noting
}
@Override
public void imports(Consumer<CharSequence> consumer) {
// no imports needed
}
}
| {
"content_hash": "40183c5ed62cb4ec13a293702150a0f6",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 75,
"avg_line_length": 22.714285714285715,
"alnum_prop": 0.7924528301886793,
"repo_name": "q2ek/compileinfo",
"id": "3392ffda50577273226ca56250880a4582633143",
"size": "477",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/net/q2ek/compileinfo/implementation/NoopPropertyMapCodeGenerator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "41131"
}
],
"symlink_target": ""
} |
<?php /* form injected via Ajax */
/* debug
var_dump($template_name);
var_dump($table_name);
var_dump($action);
var_dump($id);
//*/
if ($action == 'update') {
include_once CFG . 'database.php';
include_once LIB . 'db.php';
$object_db = $db->query("SELECT * FROM `$table_name` WHERE `_id`={$id}");
$object = $object_db->fetchObject();
/* debug
var_dump($object);
//*/
}
?>
<form method=POST action="<?=ROOT?>backoffice/<?=$table_name?>">
<fieldset>
<legend>Categoria</legend>
<p>
<label for=name>Nome</label>
<input id=name name=name type=text required value="<?=isset($object->name) ? $object->name : ''?>" maxlength=100>
</p>
<p>
<label for=is_published>Pubblicata</label>
<input id=is_published name=is_published type=checkbox<?=empty($object->is_published) ? '' : ' checked'?>>
</p>
<p>
<input name=submit type=submit value=Invio>
</p>
</fieldset>
<!-- hidden fields -->
<input type=hidden name=action value=<?=$action?>>
<input type=hidden name=id value=<?=$id?>>
</form> | {
"content_hash": "4831fd1cfd46dd0054db6f51ec29ffb7",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 116,
"avg_line_length": 21.58,
"alnum_prop": 0.5885078776645042,
"repo_name": "simonewebdesign/Fushi",
"id": "6208832663e43e9b3114f3f1f86ee4359f055499",
"size": "1079",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "application/backoffice/categories_form.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "18805"
},
{
"name": "JavaScript",
"bytes": "12653"
},
{
"name": "PHP",
"bytes": "126080"
}
],
"symlink_target": ""
} |
require 'simply_pages/autotest'
| {
"content_hash": "b1c797fc7e1e0abc89f555f94fe63390",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 31,
"avg_line_length": 32,
"alnum_prop": 0.8125,
"repo_name": "jakewendt/simply_pages",
"id": "b5db9650397b9144e7a61201f98703323058b403",
"size": "74",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "generators/simply_pages/templates/autotest_simply_pages.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "2577"
},
{
"name": "Ruby",
"bytes": "78961"
}
],
"symlink_target": ""
} |
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
-- -----------------------------------------------------
-- Table `snapshot_window`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `snapshot_window` (
`snapshot_window_id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`scope_id` INT UNSIGNED NOT NULL ,
`name` VARCHAR(100) NOT NULL ,
`visible` TINYINT(1) NULL ,
`request_user` VARCHAR(100) NULL ,
`request_date` DATETIME NULL ,
`execute_date` DATETIME NULL ,
`change_date` DATETIME NULL ,
`change_user` VARCHAR(100) NULL ,
PRIMARY KEY (`snapshot_window_id`) )
ENGINE = InnoDB;
CREATE UNIQUE INDEX `snapshotwindow_name_scopeid_uc` ON `snapshot_window` (`name` ASC, `scope_id` ASC) ;
-- -----------------------------------------------------
-- Table `snapshot_summary`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `snapshot_summary` (
`snapshot_summary_id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`snapshot_window_id` INT UNSIGNED NOT NULL ,
`org_id` INT UNSIGNED NOT NULL ,
`create_date` DATETIME NULL ,
`change_date` DATETIME NULL ,
`change_user` VARCHAR(100) NULL ,
PRIMARY KEY (`snapshot_summary_id`) ,
CONSTRAINT `snapshotsummary_snapshotwindow_fk`
FOREIGN KEY (`snapshot_window_id` )
REFERENCES `snapshot_window` (`snapshot_window_id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
CREATE INDEX `snapshotsummary_snapshotwindow_fki` ON `snapshot_summary` (`snapshot_window_id` ASC) ;
CREATE UNIQUE INDEX `snapshotsummary_snapshotwindowid_orgid_uc` ON `snapshot_summary` (`snapshot_window_id` ASC, `org_id` ASC) ;
-- -----------------------------------------------------
-- Table `snapshot_summary_value`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `snapshot_summary_value` (
`snapshot_summary_value_id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`snapshot_summary_id` INT UNSIGNED NOT NULL ,
`type` VARCHAR(100) NOT NULL ,
`value` VARCHAR(100) NOT NULL ,
`change_date` DATETIME NULL ,
`change_user` VARCHAR(100) NULL ,
PRIMARY KEY (`snapshot_summary_value_id`) ,
CONSTRAINT `snapshotsummaryvalue_snapshotsummary_fk`
FOREIGN KEY (`snapshot_summary_id` )
REFERENCES `snapshot_summary` (`snapshot_summary_id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
CREATE INDEX `snapshotsummaryvalue_snapshotsummary_fki` ON `snapshot_summary_value` (`snapshot_summary_id` ASC) ;
CREATE UNIQUE INDEX `snapshotsummaryvalue_snapshotsummaryid_type_uc` ON `snapshot_summary_value` (`snapshot_summary_id` ASC, `type` ASC) ;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
| {
"content_hash": "25bdf6813795e164d3f4e609a0e67488",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 138,
"avg_line_length": 38.50666666666667,
"alnum_prop": 0.6388504155124654,
"repo_name": "SmarterApp/TechnologyReadinessTool",
"id": "6cf79031bb28866ed99d36aa5f507ed427b8ca2d",
"size": "2888",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "readiness-plugin/src/test/resources/create-readiness-extensions.sql",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "151508"
},
{
"name": "Java",
"bytes": "2514489"
},
{
"name": "JavaScript",
"bytes": "190565"
},
{
"name": "SQLPL",
"bytes": "16427"
}
],
"symlink_target": ""
} |
<?php
/**
* Tests for \Magento\Framework\Data\Form\Element\Submit
*/
namespace Magento\Framework\Data\Test\Unit\Form\Element;
class SubmitTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $_objectManagerMock;
/**
* @var \Magento\Framework\Data\Form\Element\Submit
*/
protected $_model;
protected function setUp()
{
$factoryMock = $this->getMock('\Magento\Framework\Data\Form\Element\Factory', [], [], '', false);
$collectionFactoryMock = $this->getMock(
'\Magento\Framework\Data\Form\Element\CollectionFactory',
[],
[],
'',
false
);
$escaperMock = $this->getMock('\Magento\Framework\Escaper', [], [], '', false);
$this->_model = new \Magento\Framework\Data\Form\Element\Submit(
$factoryMock,
$collectionFactoryMock,
$escaperMock
);
$formMock = new \Magento\Framework\DataObject();
$formMock->getHtmlIdPrefix('id_prefix');
$formMock->getHtmlIdPrefix('id_suffix');
$this->_model->setForm($formMock);
}
/**
* @covers \Magento\Framework\Data\Form\Element\Submit::__construct
*/
public function testConstruct()
{
$this->assertEquals('submit', $this->_model->getType());
$this->assertEquals('submit', $this->_model->getExtType());
}
/**
* @covers \Magento\Framework\Data\Form\Element\Submit::getHtml
*/
public function testGetHtml()
{
$html = $this->_model->getHtml();
$this->assertContains('type="submit"', $html);
$this->assertTrue(preg_match('/class=\".*submit.*\"/i', $html) > 0);
}
}
| {
"content_hash": "62d23ac986d0a28202105355daa85e3d",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 105,
"avg_line_length": 28.950819672131146,
"alnum_prop": 0.5792751981879954,
"repo_name": "j-froehlich/magento2_wk",
"id": "31e947d6fdc0f8e471441d4183f4e0fcf3855ffd",
"size": "1874",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "vendor/magento/framework/Data/Test/Unit/Form/Element/SubmitTest.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "13636"
},
{
"name": "CSS",
"bytes": "2076720"
},
{
"name": "HTML",
"bytes": "6151072"
},
{
"name": "JavaScript",
"bytes": "2488727"
},
{
"name": "PHP",
"bytes": "12466046"
},
{
"name": "Shell",
"bytes": "6088"
},
{
"name": "XSLT",
"bytes": "19979"
}
],
"symlink_target": ""
} |
<?php
namespace Symfony\Component\Notifier\Bridge\TurboSms;
use Symfony\Component\Notifier\Exception\LengthException;
use Symfony\Component\Notifier\Exception\TransportException;
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
use Symfony\Component\Notifier\Message\MessageInterface;
use Symfony\Component\Notifier\Message\SentMessage;
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Transport\AbstractTransport;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
/**
* @author Artem Henvald <genvaldartem@gmail.com>
*
* @see https://turbosms.ua/api.html
*/
final class TurboSmsTransport extends AbstractTransport
{
protected const HOST = 'api.turbosms.ua';
private const SUBJECT_LATIN_LIMIT = 1521;
private const SUBJECT_CYRILLIC_LIMIT = 661;
private const SENDER_LIMIT = 20;
private string $authToken;
private string $from;
public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
{
$this->assertValidFrom($from);
$this->authToken = $authToken;
$this->from = $from;
parent::__construct($client, $dispatcher);
}
public function __toString(): string
{
return sprintf('turbosms://%s?from=%s', $this->getEndpoint(), urlencode($this->from));
}
public function supports(MessageInterface $message): bool
{
return $message instanceof SmsMessage;
}
protected function doSend(MessageInterface $message): SentMessage
{
if (!$message instanceof SmsMessage) {
throw new UnsupportedMessageTypeException(__CLASS__, SmsMessage::class, $message);
}
$this->assertValidSubject($message->getSubject());
$endpoint = sprintf('https://%s/message/send.json', $this->getEndpoint());
$response = $this->client->request('POST', $endpoint, [
'auth_bearer' => $this->authToken,
'json' => [
'sms' => [
'sender' => $this->from,
'recipients' => [$message->getPhone()],
'text' => $message->getSubject(),
],
],
]);
if (200 === $response->getStatusCode()) {
$success = $response->toArray(false);
$sentMessage = new SentMessage($message, (string) $this);
$sentMessage->setMessageId($success['response_result'][0]['message_id']);
return $sentMessage;
}
$error = $response->toArray(false);
throw new TransportException(sprintf('Unable to send SMS with TurboSMS: Error code %d with message "%s".', (int) $error['response_code'], $error['response_status']), $response);
}
private function assertValidFrom(string $from): void
{
if (mb_strlen($from, 'UTF-8') > self::SENDER_LIMIT) {
throw new LengthException(sprintf('The sender length of a TurboSMS message must not exceed %d characters.', self::SENDER_LIMIT));
}
}
private function assertValidSubject(string $subject): void
{
// Detect if there is at least one cyrillic symbol in the text
if (1 === preg_match("/\p{Cyrillic}/u", $subject)) {
$subjectLimit = self::SUBJECT_CYRILLIC_LIMIT;
$symbols = 'cyrillic';
} else {
$subjectLimit = self::SUBJECT_LATIN_LIMIT;
$symbols = 'latin';
}
if (mb_strlen($subject, 'UTF-8') > $subjectLimit) {
throw new LengthException(sprintf('The subject length for "%s" symbols of a TurboSMS message must not exceed %d characters.', $symbols, $subjectLimit));
}
}
}
| {
"content_hash": "2370a7bc50b31cd3435aec867ef72d40",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 185,
"avg_line_length": 34.81651376146789,
"alnum_prop": 0.6363636363636364,
"repo_name": "phramz/symfony",
"id": "c48d0df4a53741033adc64ca03c927cbe53f815c",
"size": "4024",
"binary": false,
"copies": "9",
"ref": "refs/heads/6.1",
"path": "src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "49777"
},
{
"name": "HTML",
"bytes": "16735"
},
{
"name": "Hack",
"bytes": "26"
},
{
"name": "JavaScript",
"bytes": "29541"
},
{
"name": "PHP",
"bytes": "38053330"
},
{
"name": "Shell",
"bytes": "6545"
},
{
"name": "Twig",
"bytes": "403420"
}
],
"symlink_target": ""
} |
package com.amazonaws.services.location.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteMap" target="_top">AWS API
* Documentation</a>
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteMapRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
* <p>
* The name of the map resource to be deleted.
* </p>
*/
private String mapName;
/**
* <p>
* The name of the map resource to be deleted.
* </p>
*
* @param mapName
* The name of the map resource to be deleted.
*/
public void setMapName(String mapName) {
this.mapName = mapName;
}
/**
* <p>
* The name of the map resource to be deleted.
* </p>
*
* @return The name of the map resource to be deleted.
*/
public String getMapName() {
return this.mapName;
}
/**
* <p>
* The name of the map resource to be deleted.
* </p>
*
* @param mapName
* The name of the map resource to be deleted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteMapRequest withMapName(String mapName) {
setMapName(mapName);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getMapName() != null)
sb.append("MapName: ").append(getMapName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteMapRequest == false)
return false;
DeleteMapRequest other = (DeleteMapRequest) obj;
if (other.getMapName() == null ^ this.getMapName() == null)
return false;
if (other.getMapName() != null && other.getMapName().equals(this.getMapName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMapName() == null) ? 0 : getMapName().hashCode());
return hashCode;
}
@Override
public DeleteMapRequest clone() {
return (DeleteMapRequest) super.clone();
}
}
| {
"content_hash": "c8ffe577dc47368d89031613a3e8a2e8",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 119,
"avg_line_length": 25.876106194690266,
"alnum_prop": 0.5889192886456909,
"repo_name": "aws/aws-sdk-java",
"id": "901918f9a9470e038b30bb074386bd8e2e1cac73",
"size": "3504",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/DeleteMapRequest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
use std::collections::HashMap;
use core::PackageSet;
use util::{CargoResult, human};
// Validate that there are no duplicated native libraries among packages and
// that all packages with `links` also have a build script.
pub fn validate(deps: &PackageSet) -> CargoResult<()> {
let mut map = HashMap::new();
for dep in deps.iter() {
let lib = match dep.manifest().links() {
Some(lib) => lib,
None => continue,
};
match map.get(&lib) {
Some(previous) => {
return Err(human(format!("native library `{}` is being linked \
to by more than one package, and \
can only be linked to by one \
package\n\n {}\n {}",
lib, previous, dep.package_id())))
}
None => {}
}
if !dep.manifest().targets().iter().any(|t| {
t.profile().is_custom_build()
}) {
return Err(human(format!("package `{}` specifies that it links to \
`{}` but does not have a custom build \
script", dep.package_id(), lib)))
}
map.insert(lib, dep.package_id());
}
Ok(())
}
| {
"content_hash": "38869a4a3490c9f339d986d58a3a5e2f",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 79,
"avg_line_length": 36.67567567567568,
"alnum_prop": 0.45689019896831246,
"repo_name": "ruud-v-a/cargo",
"id": "ed2b8bfd801958c81ab6c10cab0ebbaba53533d5",
"size": "1357",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/cargo/ops/cargo_rustc/links.rs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "10386"
},
{
"name": "HTML",
"bytes": "1878"
},
{
"name": "JavaScript",
"bytes": "1119"
},
{
"name": "Python",
"bytes": "3415"
},
{
"name": "Rust",
"bytes": "862704"
},
{
"name": "Shell",
"bytes": "5693"
}
],
"symlink_target": ""
} |
<!doctype HTML>
<html>
<head>
<title>Test of HTML5 nav element</title>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<style>
nav { border: 1px solid green; padding: 2px; }
p > nav { border: 3px solid red; }
nav > p { border: 1px solid green; }
p { margin: 0px; }
</style>
</head>
<body>
<h4>Test content</h4>
<div id=testArea>
<p><nav>Test that <code>nav</code> closes <code>p</code>. This paragraph should be surrounded by a thin green border, instead of a thick red one. Also tests that nav lays out as a block. There should be only a single border box with width of the content area (minus margins).</nav>
<br>
<nav><p>Test that <code>p</code> does not close <code>nav</code>. This paragraph should have a double green border.</nav>
<br>
<nav><nav>Test that <code>nav</code> can nest inside itself. This paragraph should have a double green border.</nav></nav>
<br>
<b><nav>Test of residual style. This text should be bold.</nav>This should be bold too.</b>
<p><br></p>
<div contentEditable=true id=editable>
Test of FormatBlock behavior. This text should have a green border.
</div>
</div>
<br>
<hr>
<h4>DOM for the above (so this test can dump as text)</h4>
<pre id=markupArea>
</pre>
<script>
var ed = document.getElementById("editable");
var selection = window.getSelection();
selection.selectAllChildren(ed);
document.execCommand("FormatBlock", false, "nav");
selection.removeAllRanges();
ed.blur();
var tests = document.getElementById("testArea");
var markup = document.getElementById("markupArea");
var textNode = document.createTextNode(testArea.innerHTML);
markup.appendChild(textNode);
</script>
</body>
</html>
| {
"content_hash": "dcf5b226a492219d9d17f9f64f42c358",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 281,
"avg_line_length": 26.015625,
"alnum_prop": 0.7147147147147147,
"repo_name": "ondra-novak/blink",
"id": "21a3ac1fda9b360c8dec8d6dc4050f3bdbca02e2",
"size": "1665",
"binary": false,
"copies": "52",
"ref": "refs/heads/nw",
"path": "LayoutTests/fast/html/nav-element.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "12983"
},
{
"name": "Bison",
"bytes": "64327"
},
{
"name": "C",
"bytes": "1487362"
},
{
"name": "C++",
"bytes": "40237536"
},
{
"name": "CSS",
"bytes": "537586"
},
{
"name": "Java",
"bytes": "66510"
},
{
"name": "JavaScript",
"bytes": "26502253"
},
{
"name": "Makefile",
"bytes": "677"
},
{
"name": "Objective-C",
"bytes": "23525"
},
{
"name": "Objective-C++",
"bytes": "377730"
},
{
"name": "PHP",
"bytes": "166434"
},
{
"name": "Perl",
"bytes": "585757"
},
{
"name": "Python",
"bytes": "3997910"
},
{
"name": "Ruby",
"bytes": "141818"
},
{
"name": "Shell",
"bytes": "8806"
},
{
"name": "XSLT",
"bytes": "49099"
}
],
"symlink_target": ""
} |
from CTFd.models import Teams, Users
from CTFd.utils import set_config
from tests.helpers import (
create_ctfd,
destroy_ctfd,
login_as_user,
login_with_mlc,
register_user,
)
def test_oauth_not_configured():
"""Test that OAuth redirection fails if OAuth settings aren't configured"""
app = create_ctfd()
with app.app_context():
with app.test_client() as client:
r = client.get("/oauth", follow_redirects=False)
assert r.location == "http://localhost/login"
r = client.get(r.location)
resp = r.get_data(as_text=True)
assert "OAuth Settings not configured" in resp
destroy_ctfd(app)
def test_oauth_configured_flow():
"""Test that MLC integration works properly but does not allow registration (account creation) if disabled"""
app = create_ctfd(user_mode="teams")
app.config.update(
{
"OAUTH_CLIENT_ID": "ctfd_testing_client_id",
"OAUTH_CLIENT_SECRET": "ctfd_testing_client_secret",
"OAUTH_AUTHORIZATION_ENDPOINT": "http://auth.localhost/oauth/authorize",
"OAUTH_TOKEN_ENDPOINT": "http://auth.localhost/oauth/token",
"OAUTH_API_ENDPOINT": "http://api.localhost/user",
}
)
with app.app_context():
set_config("registration_visibility", "private")
assert Users.query.count() == 1
assert Teams.query.count() == 0
client = login_with_mlc(app, raise_for_error=False)
assert Users.query.count() == 1
# Users shouldn't be able to register because registration is disabled
resp = client.get("http://localhost/login").get_data(as_text=True)
assert "Public registration is disabled" in resp
set_config("registration_visibility", "public")
client = login_with_mlc(app)
# Users should be able to register now
assert Users.query.count() == 2
user = Users.query.filter_by(email="user@ctfd.io").first()
assert user.oauth_id == 1337
assert user.team_id == 1
# Teams should be created
assert Teams.query.count() == 1
team = Teams.query.filter_by(id=1).first()
assert team.oauth_id == 1234
client.get("/logout")
# Users should still be able to login if registration is disabled
set_config("registration_visibility", "private")
client = login_with_mlc(app)
with client.session_transaction() as sess:
assert sess["id"]
assert sess["nonce"]
assert sess["hash"]
destroy_ctfd(app)
def test_oauth_login_upgrade():
"""Test that users who use MLC after having registered will be associated with their MLC account"""
app = create_ctfd(user_mode="teams")
app.config.update(
{
"OAUTH_CLIENT_ID": "ctfd_testing_client_id",
"OAUTH_CLIENT_SECRET": "ctfd_testing_client_secret",
"OAUTH_AUTHORIZATION_ENDPOINT": "http://auth.localhost/oauth/authorize",
"OAUTH_TOKEN_ENDPOINT": "http://auth.localhost/oauth/token",
"OAUTH_API_ENDPOINT": "http://api.localhost/user",
}
)
with app.app_context():
register_user(app)
assert Users.query.count() == 2
set_config("registration_visibility", "private")
# Users should still be able to login
client = login_as_user(app)
client.get("/logout")
user = Users.query.filter_by(id=2).first()
assert user.oauth_id is None
assert user.team_id is None
login_with_mlc(app)
assert Users.query.count() == 2
# Logging in with MLC should insert an OAuth ID and team ID
user = Users.query.filter_by(id=2).first()
assert user.oauth_id
assert user.verified
assert user.team_id
destroy_ctfd(app)
| {
"content_hash": "f4cce2e00a989b905841356e839e46b2",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 113,
"avg_line_length": 35.06363636363636,
"alnum_prop": 0.613689395903552,
"repo_name": "LosFuzzys/CTFd",
"id": "15e09852e2fa2eb9adbb8c1d0e71669c9b7d947a",
"size": "3904",
"binary": false,
"copies": "1",
"ref": "refs/heads/losctf",
"path": "tests/oauth/test_redirect.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1956"
},
{
"name": "Dockerfile",
"bytes": "932"
},
{
"name": "HTML",
"bytes": "314286"
},
{
"name": "JavaScript",
"bytes": "646022"
},
{
"name": "Makefile",
"bytes": "841"
},
{
"name": "Mako",
"bytes": "494"
},
{
"name": "Python",
"bytes": "933857"
},
{
"name": "SCSS",
"bytes": "40023"
},
{
"name": "Shell",
"bytes": "2759"
},
{
"name": "Vue",
"bytes": "25361"
}
],
"symlink_target": ""
} |
from datetime import date
from dateutil.easter import easter
from dateutil.relativedelta import relativedelta as rd, FR
from holidays.constants import JAN, MAR, APR, MAY, AUG, OCT, NOV, DEC
from holidays.constants import MON, TUE, THU, WEEKEND
from holidays.holiday_base import HolidayBase
class Hungary(HolidayBase):
# https://en.wikipedia.org/wiki/Public_holidays_in_Hungary
# observed days off work around national holidays in the last 10 years:
# https://www.munkaugyiforum.hu/munkaugyi-segedanyagok/
# 2018-evi-munkaszuneti-napok-koruli-munkarend-9-2017-ngm-rendelet
# codification dates:
# - https://hvg.hu/gazdasag/
# 20170307_Megszavaztak_munkaszuneti_nap_lett_a_nagypentek
# - https://www.tankonyvtar.hu/hu/tartalom/historia/
# 92-10/ch01.html#id496839
country = "HU"
def __init__(self, **kwargs):
HolidayBase.__init__(self, **kwargs)
def _populate(self, year):
# New years
self._add_with_observed_day_off(date(year, JAN, 1), "Újév", since=2014)
# National Day
if 1945 <= year <= 1950 or 1989 <= year:
self._add_with_observed_day_off(
date(year, MAR, 15), "Nemzeti ünnep"
)
# Soviet era
if 1950 <= year <= 1989:
# Proclamation of Soviet socialist governing system
self[
date(year, MAR, 21)
] = "A Tanácsköztársaság kikiáltásának ünnepe"
# Liberation Day
self[date(year, APR, 4)] = "A felszabadulás ünnepe"
# Memorial day of The Great October Soviet Socialist Revolution
if year not in (1956, 1989):
self[
date(year, NOV, 7)
] = "A nagy októberi szocialista forradalom ünnepe"
easter_date = easter(year)
# Good Friday
if 2017 <= year:
self[easter_date + rd(weekday=FR(-1))] = "Nagypéntek"
# Easter
self[easter_date] = "Húsvét"
# Second easter day
if 1955 != year:
self[easter_date + rd(days=1)] = "Húsvét Hétfő"
# Pentecost
self[easter_date + rd(days=49)] = "Pünkösd"
# Pentecost monday
if year <= 1952 or 1992 <= year:
self[easter_date + rd(days=50)] = "Pünkösdhétfő"
# International Workers' Day
if 1946 <= year:
self._add_with_observed_day_off(
date(year, MAY, 1), "A Munka ünnepe"
)
if 1950 <= year <= 1953:
self[date(year, MAY, 2)] = "A Munka ünnepe"
# State Foundation Day (1771-????, 1891-)
if 1950 <= year < 1990:
self[date(year, AUG, 20)] = "A kenyér ünnepe"
else:
self._add_with_observed_day_off(
date(year, AUG, 20), "Az államalapítás ünnepe"
)
# National Day
if 1991 <= year:
self._add_with_observed_day_off(
date(year, OCT, 23), "Nemzeti ünnep"
)
# All Saints' Day
if 1999 <= year:
self._add_with_observed_day_off(
date(year, NOV, 1), "Mindenszentek"
)
# Christmas Eve is not endorsed officially
# but nowadays it is usually a day off work
if (
self.observed
and 2010 <= year
and date(year, DEC, 24).weekday() not in WEEKEND
):
self[date(year, DEC, 24)] = "Szenteste"
# First christmas
self[date(year, DEC, 25)] = "Karácsony"
# Second christmas
if 1955 != year:
self._add_with_observed_day_off(
date(year, DEC, 26),
"Karácsony másnapja",
since=2013,
before=False,
after=True,
)
# New Year's Eve
if (
self.observed
and 2014 <= year
and date(year, DEC, 31).weekday() == MON
):
self[date(year, DEC, 31)] = "Szilveszter"
def _add_with_observed_day_off(
self, day, desc, since=2010, before=True, after=True
):
# Swapped days off were in place earlier but
# I haven't found official record yet.
self[day] = desc
# TODO: should it be a separate flag?
if self.observed and since <= day.year:
if day.weekday() == TUE and before:
self[day - rd(days=1)] = desc + " előtti pihenőnap"
elif day.weekday() == THU and after:
self[day + rd(days=1)] = desc + " utáni pihenőnap"
class HU(Hungary):
pass
class HUN(Hungary):
pass
| {
"content_hash": "27d657c33006a4a15898477edcfd65c0",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 79,
"avg_line_length": 31.513513513513512,
"alnum_prop": 0.5405231560891939,
"repo_name": "ryanss/holidays.py",
"id": "91e72170418fd32a756931dbf33032f21aecd9f0",
"size": "5210",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "holidays/countries/hungary.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "214061"
}
],
"symlink_target": ""
} |
package com.intellij.java.codeInsight.daemon;
import com.intellij.JavaTestUtil;
import com.intellij.codeInsight.daemon.ImplicitUsageProvider;
import com.intellij.codeInspection.deadCode.UnusedDeclarationInspection;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiField;
import com.intellij.psi.PsiNamedElement;
import com.intellij.testFramework.LightProjectDescriptor;
import com.intellij.testFramework.PlatformTestUtil;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import org.jetbrains.annotations.NotNull;
public class LightUnusedHighlightingFixtureTest extends LightCodeInsightFixtureTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
myFixture.enableInspections(new UnusedDeclarationInspection(true));
PlatformTestUtil.registerExtension(ImplicitUsageProvider.EP_NAME, new ImplicitUsageProvider() {
@Override
public boolean isImplicitUsage(PsiElement element) {
return false;
}
@Override
public boolean isImplicitRead(PsiElement element) {
return false;
}
@Override
public boolean isImplicitWrite(PsiElement element) {
return element instanceof PsiField && "implicitWrite".equals(((PsiNamedElement)element).getName());
}
}, getTestRootDisposable());
}
public void testMarkFieldsWhichAreExplicitlyWrittenAsUnused() {
myFixture.configureByFile(getTestName(false) + ".java");
myFixture.checkHighlighting();
}
@Override
protected String getBasePath() {
return JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/daemonCodeAnalyzer/advFixture";
}
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
return JAVA_8;
}
}
| {
"content_hash": "b3eebc0047ab90185f29198461843dfa",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 107,
"avg_line_length": 31.535714285714285,
"alnum_prop": 0.7729331823329558,
"repo_name": "xfournet/intellij-community",
"id": "f7a9d67b8fc0166ac96b2d2a6991a34e6de1b609",
"size": "2366",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightUnusedHighlightingFixtureTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "20665"
},
{
"name": "AspectJ",
"bytes": "182"
},
{
"name": "Batchfile",
"bytes": "60827"
},
{
"name": "C",
"bytes": "211454"
},
{
"name": "C#",
"bytes": "1264"
},
{
"name": "C++",
"bytes": "199030"
},
{
"name": "CMake",
"bytes": "1675"
},
{
"name": "CSS",
"bytes": "201445"
},
{
"name": "CoffeeScript",
"bytes": "1759"
},
{
"name": "Erlang",
"bytes": "10"
},
{
"name": "Groovy",
"bytes": "3289024"
},
{
"name": "HLSL",
"bytes": "57"
},
{
"name": "HTML",
"bytes": "1901772"
},
{
"name": "J",
"bytes": "5050"
},
{
"name": "Java",
"bytes": "166392304"
},
{
"name": "JavaScript",
"bytes": "570364"
},
{
"name": "Jupyter Notebook",
"bytes": "93222"
},
{
"name": "Kotlin",
"bytes": "4720744"
},
{
"name": "Lex",
"bytes": "147486"
},
{
"name": "Makefile",
"bytes": "2352"
},
{
"name": "NSIS",
"bytes": "51061"
},
{
"name": "Objective-C",
"bytes": "27861"
},
{
"name": "Perl",
"bytes": "903"
},
{
"name": "Perl 6",
"bytes": "26"
},
{
"name": "Protocol Buffer",
"bytes": "6680"
},
{
"name": "Python",
"bytes": "25477371"
},
{
"name": "Roff",
"bytes": "37534"
},
{
"name": "Ruby",
"bytes": "1217"
},
{
"name": "Shell",
"bytes": "64141"
},
{
"name": "Smalltalk",
"bytes": "338"
},
{
"name": "TeX",
"bytes": "25473"
},
{
"name": "Thrift",
"bytes": "1846"
},
{
"name": "TypeScript",
"bytes": "9469"
},
{
"name": "Visual Basic",
"bytes": "77"
},
{
"name": "XSLT",
"bytes": "113040"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/>
<link rel="stylesheet" href="../../../../../aui/css/aui-experimental.min.css" media="all"/>
<!--[if IE 9]><link rel="stylesheet" href="../../../../../aui/css/aui-ie9.min.css" media="all"/><![endif]-->
<style type="text/css" media="all">
@import url('../../../../../style.css');
@import url('../../../../../tree.css');
</style>
<script src="../../../../../jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-experimental.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-soy.min.js" type="text/javascript"></script>
<script src="../../../../../package-nodes-tree.js" type="text/javascript"></script>
<script src="../../../../../clover-tree.js" type="text/javascript"></script>
<script src="../../../../../clover.js" type="text/javascript"></script>
<script src="../../../../../clover-descriptions.js" type="text/javascript"></script>
<script src="../../../../../cloud.js" type="text/javascript"></script>
<title>ABA Route Transit Number Validator 1.0.1-SNAPSHOT</title>
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo aui-header-logo-clover">
<a href="http://openclover.org" title="Visit OpenClover home page"><span class="aui-header-logo-device">OpenClover</span></a>
</h1>
</div>
<div class="aui-header-secondary">
<ul class="aui-nav">
<li id="system-help-menu">
<a class="aui-nav-link" title="Open online documentation" target="_blank"
href="http://openclover.org/documentation">
<span class="aui-icon aui-icon-small aui-iconfont-help"> Help</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<div class="aui-page-panel-nav aui-page-panel-nav-clover">
<div class="aui-page-header-inner" style="margin-bottom: 20px;">
<div class="aui-page-header-image">
<a href="http://cardatechnologies.com" target="_top">
<div class="aui-avatar aui-avatar-large aui-avatar-project">
<div class="aui-avatar-inner">
<img src="../../../../../img/clover_logo_large.png" alt="Clover icon"/>
</div>
</div>
</a>
</div>
<div class="aui-page-header-main" >
<h1>
<a href="http://cardatechnologies.com" target="_top">
ABA Route Transit Number Validator 1.0.1-SNAPSHOT
</a>
</h1>
</div>
</div>
<nav class="aui-navgroup aui-navgroup-vertical">
<div class="aui-navgroup-inner">
<ul class="aui-nav">
<li class="">
<a href="../../../../../dashboard.html">Project overview</a>
</li>
</ul>
<div class="aui-nav-heading packages-nav-heading">
<strong>Packages</strong>
</div>
<div class="aui-nav project-packages">
<form method="get" action="#" class="aui package-filter-container">
<input type="text" autocomplete="off" class="package-filter text"
placeholder="Type to filter packages..." name="package-filter" id="package-filter"
title="Start typing package name (or part of the name) to search through the tree. Use arrow keys and the Enter key to navigate."/>
</form>
<p class="package-filter-no-results-message hidden">
<small>No results found.</small>
</p>
<div class="packages-tree-wrapper" data-root-relative="../../../../../" data-package-name="com.cardatechnologies.utils.validators.abaroutevalidator">
<div class="packages-tree-container"></div>
<div class="clover-packages-lozenges"></div>
</div>
</div>
</div>
</nav> </div>
<section class="aui-page-panel-content">
<div class="aui-page-panel-content-clover">
<div class="aui-page-header-main"><ol class="aui-nav aui-nav-breadcrumbs">
<li><a href="../../../../../dashboard.html"> Project Clover database Sat Aug 7 2021 12:29:33 MDT</a></li>
<li><a href="test-pkg-summary.html">Package com.cardatechnologies.utils.validators.abaroutevalidator</a></li>
<li><a href="test-Test_AbaRouteValidator_13b.html">Class Test_AbaRouteValidator_13b</a></li>
</ol></div>
<h1 class="aui-h2-clover">
Test testAbaNumberCheck_28767_good
</h1>
<table class="aui">
<thead>
<tr>
<th>Test</th>
<th><label title="The test result. Either a Pass, Fail or Error.">Status</label></th>
<th><label title="When the test execution was started">Start time</label></th>
<th><label title="The total time in seconds taken to run this test.">Time (seconds)</label></th>
<th><label title="A failure or error message if the test is not successful.">Message</label></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_13b.html?line=37672#src-37672" >testAbaNumberCheck_28767_good</a>
</td>
<td>
<span class="sortValue">1</span><span class="aui-lozenge aui-lozenge-success">PASS</span>
</td>
<td>
7 Aug 12:43:18
</td>
<td>
0.001 </td>
<td>
<div></div>
<div class="errorMessage"></div>
</td>
</tr>
</tbody>
</table>
<div> </div>
<table class="aui aui-table-sortable">
<thead>
<tr>
<th style="white-space:nowrap;"><label title="A class that was directly hit by this test.">Target Class</label></th>
<th colspan="4"><label title="The percentage of coverage contributed by each single test.">Coverage contributed by</label> testAbaNumberCheck_28767_good</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/AbaRouteValidator.html?id=27566#AbaRouteValidator" title="AbaRouteValidator" name="sl-47">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</a>
</td>
<td>
<span class="sortValue">0.7352941</span>73.5%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="73.5% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:73.5%"></div></div></div> </td>
</tr>
</tbody>
</table>
</div> <!-- class="aui-page-panel-content-clover" -->
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul>
<li>
Report generated by <a target="_new" href="http://openclover.org">OpenClover</a> v 4.4.1
on Sat Aug 7 2021 12:49:26 MDT using coverage data from Sat Aug 7 2021 12:47:23 MDT.
</li>
</ul>
<ul>
<li>OpenClover is free and open-source software. </li>
</ul>
</section>
</footer> </section> <!-- class="aui-page-panel-content" -->
</div> <!-- class="aui-page-panel-inner" -->
</div> <!-- class="aui-page-panel" -->
</div> <!-- id="page" -->
</body>
</html> | {
"content_hash": "248d6e3c218d6ac11235662c6568a5e5",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 297,
"avg_line_length": 43.952153110047846,
"alnum_prop": 0.5100152405834967,
"repo_name": "dcarda/aba.route.validator",
"id": "3088d8439c432237d30f908a80564ae667f9b562",
"size": "9186",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "target13/site/clover/com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_13b_testAbaNumberCheck_28767_good_l9q.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "18715254"
}
],
"symlink_target": ""
} |
import { ApolloClient } from 'apollo-client';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { ApolloLink, Observable, Operation } from 'apollo-link';
import { patch } from 'jsondiffpatch';
import { Observer } from 'apollo-client/util/Observable';
import { OperationDefinitionNode } from 'graphql';
import config from '../config.json';
let ws: WebSocket;
let connected = false;
const connectionObservers: Observer<any>[] = [];
const updateConnectionObservers = () => {
const connectionStatus = {
connection: {
__typename: 'Connection',
connected,
},
};
for (const observer of connectionObservers) {
observer.next!({ data: connectionStatus });
}
};
const connectToWs = () => {
ws = new WebSocket(config.ws || 'ws://localhost:6002');
ws.onopen = e => {
console.log('Connected');
for (const [id, operation] of Object.entries(subscriptionOperations)) {
ws.send(JSON.stringify({
id: +id,
operation,
}));
}
connected = true;
updateConnectionObservers();
};
ws.onclose = e => {
connected = false;
updateConnectionObservers();
console.log('Disconnected');
// tslint:disable-next-line:no-magic-numbers
setTimeout(connectToWs, 30000);
};
ws.onmessage = e => {
const { id, type, data }: { id: number; type: 'set' | 'patch', data: {} } = JSON.parse(e.data);
const observer = subscriptionObservers[id];
if (!observer) {
throw new Error(`Observer doesn't exist ${id}`);
}
switch (type) {
case 'set':
subscriptionDataCache[id] = data;
break;
case 'patch':
patch(subscriptionDataCache[id], data);
break;
default:
throw new Error(`Invalid type ${type}`);
}
observer.next!({ data: subscriptionDataCache[id] });
};
};
connectToWs();
let subscriptionId = 0;
const subscriptionObservers: { [key: number]: Observer<any> } = {};
const subscriptionOperations: { [key: number]: Operation } = {};
const subscriptionDataCache: { [key: number]: {} } = {};
export const sendQuery = (operation: Operation) => new Observable<any>(subcriber => {
console.log(operation);
const queries = operation.query.definitions;
if (queries.length === 1) {
const query = queries[0];
if (query.kind === 'OperationDefinition') {
if (query.selectionSet.selections.length === 1) {
const selection = query.selectionSet.selections[0];
if (selection.kind === 'Field' && selection.name.kind === 'Name') {
if (selection.name.value === 'connection') {
connectionObservers.push(subcriber);
updateConnectionObservers();
return () => {
connectionObservers.splice(connectionObservers.findIndex(item => item === subcriber)!, 1);
};
}
}
}
}
}
const currentSubscriptionId = ++subscriptionId;
subscriptionObservers[currentSubscriptionId] = subcriber;
subscriptionOperations[currentSubscriptionId] = operation;
if (connected) {
ws.send(JSON.stringify({
id: currentSubscriptionId,
type: 'subscribe',
operation,
}));
}
return () => {
delete subscriptionObservers[currentSubscriptionId];
delete subscriptionOperations[currentSubscriptionId];
if (connected) {
ws.send(JSON.stringify({
id: currentSubscriptionId,
type: 'unsubscribe',
operation,
}));
}
};
});
const wsLink = new ApolloLink((operation, forward) => new Observable(subscriber => {
const subscription = sendQuery(operation).subscribe(data => {
subscriber.next(data);
}, error => {
subscriber.error(error);
}, () => {
subscriber.complete();
})
return () => {
subscription.unsubscribe();
};
}));
export const client = new ApolloClient({
link: wsLink,
cache: new InMemoryCache(),
defaultOptions: {
query: {
fetchPolicy: 'no-cache',
},
},
}); | {
"content_hash": "0c916096c8ba410896f713ad9e43e334",
"timestamp": "",
"source": "github",
"line_count": 142,
"max_line_length": 118,
"avg_line_length": 30.97887323943662,
"alnum_prop": 0.5589906796999318,
"repo_name": "istvan-antal/overseer",
"id": "510623b096c54aa334e8783fa2cb80b66bc6b921",
"size": "4399",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/client.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "271"
},
{
"name": "SCSS",
"bytes": "1333"
},
{
"name": "Shell",
"bytes": "743"
},
{
"name": "TypeScript",
"bytes": "24472"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Mon Jun 29 06:45:50 CEST 2015 -->
<title>org.apache.tools.ant Class Hierarchy (Apache Ant API)</title>
<meta name="date" content="2015-06-29">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.tools.ant Class Hierarchy (Apache Ant API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li><a href="../../../../org/apache/tools/ant/attribute/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/tools/ant/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">Hierarchy For Package org.apache.tools.ant</h1>
<span class="strong">Package Hierarchies:</span>
<ul class="horizontal">
<li><a href="../../../../overview-tree.html">All Packages</a></li>
</ul>
</div>
<div class="contentContainer">
<h2 title="Class Hierarchy">Class Hierarchy</h2>
<ul>
<li type="circle">java.lang.Object
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/AntTypeDefinition.html" title="class in org.apache.tools.ant"><span class="strong">AntTypeDefinition</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ArgumentProcessorRegistry.html" title="class in org.apache.tools.ant"><span class="strong">ArgumentProcessorRegistry</span></a></li>
<li type="circle">java.lang.ClassLoader
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant"><span class="strong">AntClassLoader</span></a> (implements org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant">SubBuildListener</a>)</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ComponentHelper.html" title="class in org.apache.tools.ant"><span class="strong">ComponentHelper</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DefaultDefinitions.html" title="class in org.apache.tools.ant"><span class="strong">DefaultDefinitions</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DefaultLogger.html" title="class in org.apache.tools.ant"><span class="strong">DefaultLogger</span></a> (implements org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</a>)
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/NoBannerLogger.html" title="class in org.apache.tools.ant"><span class="strong">NoBannerLogger</span></a></li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Diagnostics.html" title="class in org.apache.tools.ant"><span class="strong">Diagnostics</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DirectoryScanner.html" title="class in org.apache.tools.ant"><span class="strong">DirectoryScanner</span></a> (implements org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/FileScanner.html" title="interface in org.apache.tools.ant">FileScanner</a>, org.apache.tools.ant.types.<a href="../../../../org/apache/tools/ant/types/ResourceFactory.html" title="interface in org.apache.tools.ant.types">ResourceFactory</a>, org.apache.tools.ant.types.selectors.<a href="../../../../org/apache/tools/ant/types/selectors/SelectorScanner.html" title="interface in org.apache.tools.ant.types.selectors">SelectorScanner</a>)</li>
<li type="circle">java.util.EventObject (implements java.io.Serializable)
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant"><span class="strong">BuildEvent</span></a></li>
</ul>
</li>
<li type="circle">java.io.InputStream (implements java.io.Closeable)
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DemuxInputStream.html" title="class in org.apache.tools.ant"><span class="strong">DemuxInputStream</span></a></li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/IntrospectionHelper.html" title="class in org.apache.tools.ant"><span class="strong">IntrospectionHelper</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/IntrospectionHelper.Creator.html" title="class in org.apache.tools.ant"><span class="strong">IntrospectionHelper.Creator</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Location.html" title="class in org.apache.tools.ant"><span class="strong">Location</span></a> (implements java.io.Serializable)</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/MagicNames.html" title="class in org.apache.tools.ant"><span class="strong">MagicNames</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Main.html" title="class in org.apache.tools.ant"><span class="strong">Main</span></a> (implements org.apache.tools.ant.launch.<a href="../../../../org/apache/tools/ant/launch/AntMain.html" title="interface in org.apache.tools.ant.launch">AntMain</a>)</li>
<li type="circle">java.io.OutputStream (implements java.io.Closeable, java.io.Flushable)
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DemuxOutputStream.html" title="class in org.apache.tools.ant"><span class="strong">DemuxOutputStream</span></a></li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/PathTokenizer.html" title="class in org.apache.tools.ant"><span class="strong">PathTokenizer</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant"><span class="strong">Project</span></a> (implements org.apache.tools.ant.types.<a href="../../../../org/apache/tools/ant/types/ResourceFactory.html" title="interface in org.apache.tools.ant.types">ResourceFactory</a>)</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant"><span class="strong">ProjectComponent</span></a> (implements java.lang.Cloneable)
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant"><span class="strong">Task</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/TaskAdapter.html" title="class in org.apache.tools.ant"><span class="strong">TaskAdapter</span></a> (implements org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant">TypeAdapter</a>)</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/UnknownElement.html" title="class in org.apache.tools.ant"><span class="strong">UnknownElement</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ProjectHelper.html" title="class in org.apache.tools.ant"><span class="strong">ProjectHelper</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ProjectHelper.OnMissingExtensionPoint.html" title="class in org.apache.tools.ant"><span class="strong">ProjectHelper.OnMissingExtensionPoint</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ProjectHelperRepository.html" title="class in org.apache.tools.ant"><span class="strong">ProjectHelperRepository</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/PropertyHelper.html" title="class in org.apache.tools.ant"><span class="strong">PropertyHelper</span></a> (implements org.apache.tools.ant.property.<a href="../../../../org/apache/tools/ant/property/GetProperty.html" title="interface in org.apache.tools.ant.property">GetProperty</a>)</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/RuntimeConfigurable.html" title="class in org.apache.tools.ant"><span class="strong">RuntimeConfigurable</span></a> (implements java.io.Serializable)</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Target.html" title="class in org.apache.tools.ant"><span class="strong">Target</span></a> (implements org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/TaskContainer.html" title="interface in org.apache.tools.ant">TaskContainer</a>)
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ExtensionPoint.html" title="class in org.apache.tools.ant"><span class="strong">ExtensionPoint</span></a></li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/TaskConfigurationChecker.html" title="class in org.apache.tools.ant"><span class="strong">TaskConfigurationChecker</span></a></li>
<li type="circle">java.lang.Throwable (implements java.io.Serializable)
<ul>
<li type="circle">java.lang.Exception
<ul>
<li type="circle">java.lang.RuntimeException
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant"><span class="strong">BuildException</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ExitStatusException.html" title="class in org.apache.tools.ant"><span class="strong">ExitStatusException</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/UnsupportedAttributeException.html" title="class in org.apache.tools.ant"><span class="strong">UnsupportedAttributeException</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/UnsupportedElementException.html" title="class in org.apache.tools.ant"><span class="strong">UnsupportedElementException</span></a></li>
</ul>
</li>
<li type="circle">java.lang.SecurityException
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ExitException.html" title="class in org.apache.tools.ant"><span class="strong">ExitException</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/XmlLogger.html" title="class in org.apache.tools.ant"><span class="strong">XmlLogger</span></a> (implements org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</a>)</li>
</ul>
</li>
</ul>
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/ArgumentProcessor.html" title="interface in org.apache.tools.ant"><span class="strong">ArgumentProcessor</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicAttribute.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicAttribute</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicConfigurator.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicConfigurator</span></a> (also extends org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicElement.html" title="interface in org.apache.tools.ant">DynamicElement</a>)</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicAttributeNS.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicAttributeNS</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicConfiguratorNS.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicConfiguratorNS</span></a> (also extends org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicElementNS.html" title="interface in org.apache.tools.ant">DynamicElementNS</a>)</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicElement.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicElement</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicConfigurator.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicConfigurator</span></a> (also extends org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicAttribute.html" title="interface in org.apache.tools.ant">DynamicAttribute</a>)</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicElementNS.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicElementNS</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicConfiguratorNS.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicConfiguratorNS</span></a> (also extends org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicAttributeNS.html" title="interface in org.apache.tools.ant">DynamicAttributeNS</a>)</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/DynamicObjectAttribute.html" title="interface in org.apache.tools.ant"><span class="strong">DynamicObjectAttribute</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Evaluable.html" title="interface in org.apache.tools.ant"><span class="strong">Evaluable</span></a></li>
<li type="circle">java.util.EventListener
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant"><span class="strong">BuildListener</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant"><span class="strong">BuildLogger</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant"><span class="strong">SubBuildListener</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/Executor.html" title="interface in org.apache.tools.ant"><span class="strong">Executor</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/FileScanner.html" title="interface in org.apache.tools.ant"><span class="strong">FileScanner</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/PropertyHelper.Delegate.html" title="interface in org.apache.tools.ant"><span class="strong">PropertyHelper.Delegate</span></a>
<ul>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/PropertyHelper.PropertyEvaluator.html" title="interface in org.apache.tools.ant"><span class="strong">PropertyHelper.PropertyEvaluator</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/PropertyHelper.PropertySetter.html" title="interface in org.apache.tools.ant"><span class="strong">PropertyHelper.PropertySetter</span></a></li>
</ul>
</li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/TaskContainer.html" title="interface in org.apache.tools.ant"><span class="strong">TaskContainer</span></a></li>
<li type="circle">org.apache.tools.ant.<a href="../../../../org/apache/tools/ant/TypeAdapter.html" title="interface in org.apache.tools.ant"><span class="strong">TypeAdapter</span></a></li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li><a href="../../../../org/apache/tools/ant/attribute/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/tools/ant/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| {
"content_hash": "ba31f6bc592beb43a6e3adf3d942a14d",
"timestamp": "",
"source": "github",
"line_count": 255,
"max_line_length": 709,
"avg_line_length": 74.25882352941177,
"alnum_prop": 0.6858893113645965,
"repo_name": "p4datasystems/CarnotDE",
"id": "4ef248058e1f63d557621bc79e8b43e4e317bf1f",
"size": "18936",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "WDB/ext/apache-ant-1.9.6/manual/api/org/apache/tools/ant/package-tree.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "44495"
},
{
"name": "CSS",
"bytes": "96083"
},
{
"name": "HTML",
"bytes": "45806649"
},
{
"name": "Java",
"bytes": "1495890"
},
{
"name": "JavaScript",
"bytes": "11934"
},
{
"name": "Perl",
"bytes": "19743"
},
{
"name": "Python",
"bytes": "6670"
},
{
"name": "Shell",
"bytes": "40496"
},
{
"name": "XSLT",
"bytes": "462294"
}
],
"symlink_target": ""
} |
#region MIT license
//
// MIT license
//
// Copyright (c) 2007-2008 Jiri Moudry, Pascal Craponne
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#endregion
using System;
using System.Collections.Generic;
namespace DbMetal.Generator
{
public class AttributeDefinition
{
public string Name { get; set; }
public IDictionary<string, object> Members;
public object this[string key]
{
get { return Members[key]; }
set { Members[key] = value; }
}
public AttributeDefinition(string name, IDictionary<string, object> members)
{
Members = members;
Name = name;
}
public AttributeDefinition(string name)
{
Members = new Dictionary<string, object>();
Name = name;
}
}
} | {
"content_hash": "87ecfa34db87ee14a9d1b636a997cd4f",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 84,
"avg_line_length": 34.981818181818184,
"alnum_prop": 0.6652806652806653,
"repo_name": "vinodvar/dblinq",
"id": "1d565593cc7c7560fc7ec4e14b5b31146ec04d75",
"size": "1926",
"binary": false,
"copies": "11",
"ref": "refs/heads/master",
"path": "src/DbMetal/Generator/AttributeDefinition.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "4051537"
},
{
"name": "Shell",
"bytes": "568"
},
{
"name": "Visual Basic",
"bytes": "7496"
}
],
"symlink_target": ""
} |
<!--
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<permission-set script="classpath://org/jasig/portal/io/import-permission_set_v3-1.crn">
<owner>SSP</owner>
<principal-type>org.jasig.portal.groups.IEntityGroup</principal-type>
<principal>
<group>Authenticated Users</group>
</principal>
<activity>MY_GPS_TOOL</activity>
<target permission-type="GRANT">
<literal>ALL</literal>
</target>
</permission-set> | {
"content_hash": "d75b852dae7b0afd4e2d4c2c2382a3a3",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 88,
"avg_line_length": 36.40625,
"alnum_prop": 0.7321888412017168,
"repo_name": "GTCC/nc-ssp-platform-nc-ssp-platform",
"id": "b3d31b2e4db26771587d369a5a0791e9b021e5c1",
"size": "1165",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "uportal-war/src/main/data/ssp_entities/patches-SSP-1-2-0/SSP-698/permission_set/Authenticated_Users__MY_GPS_TOOL__SSP.permission-set.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "702514"
},
{
"name": "Groovy",
"bytes": "8658"
},
{
"name": "Java",
"bytes": "7168791"
},
{
"name": "JavaScript",
"bytes": "210719"
},
{
"name": "Perl",
"bytes": "1740"
},
{
"name": "Shell",
"bytes": "5698"
},
{
"name": "Smalltalk",
"bytes": "572"
},
{
"name": "XSLT",
"bytes": "296389"
}
],
"symlink_target": ""
} |
namespace Microsoft.Azure.Management.RecoveryServices.Backup
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// BackupResourceStorageConfigsOperations operations.
/// </summary>
public partial interface IBackupResourceStorageConfigsOperations
{
/// <summary>
/// Fetches resource storage config.
/// </summary>
/// <param name='vaultName'>
/// The name of the recovery services vault.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group where the recovery services vault is
/// present.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<BackupResourceConfigResource>> GetWithHttpMessagesAsync(string vaultName, string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates vault storage model type.
/// </summary>
/// <param name='vaultName'>
/// The name of the recovery services vault.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group where the recovery services vault is
/// present.
/// </param>
/// <param name='parameters'>
/// Vault storage config request
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> UpdateWithHttpMessagesAsync(string vaultName, string resourceGroupName, BackupResourceConfigResource parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
| {
"content_hash": "6ef8e9bdf31b5a76ffaaef71ba36a8a3",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 271,
"avg_line_length": 43.7536231884058,
"alnum_prop": 0.6323285856243789,
"repo_name": "pilor/azure-sdk-for-net",
"id": "18bd8dadbd90ec6c08f98e0dbc1185972d248d9e",
"size": "3372",
"binary": false,
"copies": "2",
"ref": "refs/heads/psSdkJson6",
"path": "src/SDKs/RecoveryServices.Backup/Management.RecoveryServices.Backup/Generated/IBackupResourceStorageConfigsOperations.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "18102"
},
{
"name": "C#",
"bytes": "117130489"
},
{
"name": "JavaScript",
"bytes": "7875"
},
{
"name": "PowerShell",
"bytes": "105037"
},
{
"name": "Shell",
"bytes": "31578"
},
{
"name": "XSLT",
"bytes": "6114"
}
],
"symlink_target": ""
} |
/*!
@file
@author Albert Semenov
@date 10/2009
*/
#ifndef MYGUI_OGRE_RTTEXTURE_H_
#define MYGUI_OGRE_RTTEXTURE_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_IRenderTarget.h"
#include <Ogre.h>
#include "MyGUI_LastHeader.h"
namespace MyGUI
{
class OgreRTTexture :
public IRenderTarget
{
public:
OgreRTTexture(Ogre::TexturePtr _texture);
virtual ~OgreRTTexture();
virtual void begin();
virtual void end();
virtual void doRender(IVertexBuffer* _buffer, ITexture* _texture, size_t _count);
virtual const RenderTargetInfo& getInfo()
{
return mRenderTargetInfo;
}
private:
RenderTargetInfo mRenderTargetInfo;
Ogre::Viewport* mViewport;
Ogre::Viewport* mSaveViewport;
Ogre::TexturePtr mTexture;
Ogre::Matrix4 mProjectMatrix;
};
} // namespace MyGUI
#endif // MYGUI_OGRE_RTTEXTURE_H_
| {
"content_hash": "37f4ee983cf3e00feed2612722453219",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 83,
"avg_line_length": 17.680851063829788,
"alnum_prop": 0.7220216606498195,
"repo_name": "scrawl/mygui",
"id": "a3cd639ed0101a49176912af8383ed1ce204612d",
"size": "831",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "Platforms/Ogre/OgrePlatform/include/MyGUI_OgreRTTexture.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "768"
},
{
"name": "C",
"bytes": "3735297"
},
{
"name": "C#",
"bytes": "454399"
},
{
"name": "C++",
"bytes": "4636511"
},
{
"name": "CMake",
"bytes": "112927"
},
{
"name": "Python",
"bytes": "18418"
},
{
"name": "Tcl",
"bytes": "28555"
}
],
"symlink_target": ""
} |
#ifndef UPB_HANDLERS_H
#define UPB_HANDLERS_H
#include <limits.h>
#include "upb/upb.h"
#include "upb/def.h"
#include "upb/bytestream.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Handlers protocol definition ***********************************************/
// A upb_handlers object represents a graph of handlers. Each message can have
// a set of handlers as well as a set of fields which themselves have handlers.
// Fields that represent submessages or groups are linked to other message
// handlers, so the overall set of handlers can form a graph structure (which
// may be cyclic).
//
// The upb_mhandlers (message handlers) object can have the following handlers:
//
// static upb_flow_t startmsg(void *closure) {
// // Called when the message begins. "closure" was supplied by our caller.
// return UPB_CONTINUE;
// }
//
// static void endmsg(void *closure, upb_status *status) {
// // Called when processing of this message ends, whether in success or
// // failure. "status" indicates the final status of processing, and can
// / also be modified in-place to update the final status.
// //
// // Since this callback is guaranteed to always be called eventually, it
// // can be used to free any resources that were allocated during processing.
// }
//
// TODO: unknown field handler.
//
// The upb_fhandlers (field handlers) object can have the following handlers:
//
// static upb_flow_t value(void *closure, upb_value fval, upb_value val) {
// // Called when the field's value is encountered. "fval" contains
// // whatever value was bound to this field at registration type
// // (for upb_register_all(), this will be the field's upb_fielddef*).
// return UPB_CONTINUE;
// }
//
// static upb_sflow_t startsubmsg(void *closure, upb_value fval) {
// // Called when a submessage begins. The second element of the return
// // value is the closure for the submessage.
// return UPB_CONTINUE_WITH(closure);
// }
//
// static upb_flow_t endsubmsg(void *closure, upb_value fval) {
// // Called when a submessage ends.
// return UPB_CONTINUE;
// }
//
// static upb_sflow_t startseq(void *closure, upb_value fval) {
// // Called when a sequence (repeated field) begins. The second element
// // of the return value is the closure for the sequence.
// return UPB_CONTINUE_WITH(closure);
// }
//
// static upb_flow_t endseq(void *closure, upb_value fval) {
// // Called when a sequence ends.
// return UPB_CONTINUE;
// }
//
// All handlers except the endmsg handler return a value from this enum, to
// control whether parsing will continue or not.
typedef enum {
// Data source should continue calling callbacks.
UPB_CONTINUE = 0,
// Halt processing permanently (in a non-resumable way). The endmsg handlers
// for any currently open messages will be called which can supply a more
// specific status message. No further input data will be consumed.
UPB_BREAK = -1,
// Skips to the end of the current submessage (or if we are at the top
// level, skips to the end of the entire message). In other words, it is
// like a UPB_BREAK that applies only to the current level.
//
// If you UPB_SKIPSUBMSG from a startmsg handler, the endmsg handler will
// be called to perform cleanup and return a status. Returning
// UPB_SKIPSUBMSG from a startsubmsg handler will *not* call the startmsg,
// endmsg, or endsubmsg handlers.
//
// If UPB_SKIPSUBMSG is called from the top-level message, no further input
// data will be consumed.
UPB_SKIPSUBMSG = -2,
// TODO: Add UPB_SUSPEND, for resumable producers/consumers.
} upb_flow_t;
// The startsubmsg handler needs to also pass a closure to the submsg.
typedef struct {
upb_flow_t flow;
void *closure;
} upb_sflow_t;
INLINE upb_sflow_t UPB_SFLOW(upb_flow_t flow, void *closure) {
upb_sflow_t ret = {flow, closure};
return ret;
}
#define UPB_CONTINUE_WITH(c) UPB_SFLOW(UPB_CONTINUE, c)
#define UPB_SBREAK UPB_SFLOW(UPB_BREAK, NULL)
// Typedefs for all of the handler functions defined above.
typedef upb_flow_t (upb_startmsg_handler)(void *c);
typedef void (upb_endmsg_handler)(void *c, upb_status *status);
typedef upb_flow_t (upb_value_handler)(void *c, upb_value fval, upb_value val);
typedef upb_sflow_t (upb_startfield_handler)(void *closure, upb_value fval);
typedef upb_flow_t (upb_endfield_handler)(void *closure, upb_value fval);
/* upb_fhandlers **************************************************************/
// A upb_fhandlers object represents the set of handlers associated with one
// specific message field.
//
// TODO: remove upb_decoder-specific fields from this, and instead have
// upb_decoderplan make a deep copy of the whole graph with its own fields
// added.
struct _upb_decoder;
struct _upb_mhandlers;
typedef struct _upb_fieldent {
upb_fieldtype_t type;
bool repeated;
upb_atomic_t refcount;
uint32_t number;
int32_t valuehasbit;
struct _upb_mhandlers *msg;
struct _upb_mhandlers *submsg; // Set iff upb_issubmsgtype(type) == true.
upb_value fval;
upb_value_handler *value;
upb_startfield_handler *startsubmsg;
upb_endfield_handler *endsubmsg;
upb_startfield_handler *startseq;
upb_endfield_handler *endseq;
#ifdef UPB_USE_JIT_X64
uint32_t jit_pclabel;
uint32_t jit_pclabel_notypecheck;
uint32_t jit_submsg_done_pclabel;
#endif
void (*decode)(struct _upb_decoder *d, struct _upb_fieldent *f);
} upb_fhandlers;
typedef struct {
bool junk; // Stolen by table impl; see table.h for details.
upb_fhandlers *f;
} upb_itofhandlers_ent;
// fhandlers are created as part of a upb_handlers instance, but can be ref'd
// and unref'd to prolong the life of the handlers.
void upb_fhandlers_ref(upb_fhandlers *m);
void upb_fhandlers_unref(upb_fhandlers *m);
// upb_fhandlers accessors
#define UPB_FHANDLERS_ACCESSORS(name, type) \
INLINE void upb_fhandlers_set ## name(upb_fhandlers *f, type v){f->name = v;} \
INLINE type upb_fhandlers_get ## name(const upb_fhandlers *f) { return f->name; }
UPB_FHANDLERS_ACCESSORS(fval, upb_value)
UPB_FHANDLERS_ACCESSORS(value, upb_value_handler*)
UPB_FHANDLERS_ACCESSORS(startsubmsg, upb_startfield_handler*)
UPB_FHANDLERS_ACCESSORS(endsubmsg, upb_endfield_handler*)
UPB_FHANDLERS_ACCESSORS(startseq, upb_startfield_handler*)
UPB_FHANDLERS_ACCESSORS(endseq, upb_endfield_handler*)
UPB_FHANDLERS_ACCESSORS(msg, struct _upb_mhandlers*)
UPB_FHANDLERS_ACCESSORS(submsg, struct _upb_mhandlers*)
// If set to >= 0, the hasbit will automatically be set after the corresponding
// callback is called (when a JIT is enabled, this can be significantly more
// efficient than setting the hasbit yourself inside the callback). Could add
// this for seq and submsg also, but doesn't look like a win at the moment.
UPB_FHANDLERS_ACCESSORS(valuehasbit, int32_t)
/* upb_mhandlers **************************************************************/
// A upb_mhandlers object represents the set of handlers associated with a
// message in the graph of messages.
typedef struct _upb_mhandlers {
upb_atomic_t refcount;
upb_startmsg_handler *startmsg;
upb_endmsg_handler *endmsg;
upb_inttable fieldtab; // Maps field number -> upb_fhandlers.
bool is_group;
#ifdef UPB_USE_JIT_X64
// Used inside the JIT to track labels (jmp targets) in the generated code.
uint32_t jit_startmsg_pclabel; // Starting a parse of this (sub-)message.
uint32_t jit_endofbuf_pclabel; // ptr hitend, but delim_end or jit_end?
uint32_t jit_endofmsg_pclabel; // Done parsing this (sub-)message.
uint32_t jit_dyndispatch_pclabel; // Dispatch by table lookup.
uint32_t jit_unknownfield_pclabel; // Parsed an unknown field.
uint32_t max_field_number;
// Currently keyed on field number. Could also try keying it
// on encoded or decoded tag, or on encoded field number.
void **tablearray;
// Pointer to the JIT code for parsing this message.
void *jit_func;
#endif
} upb_mhandlers;
// mhandlers are created as part of a upb_handlers instance, but can be ref'd
// and unref'd to prolong the life of the handlers.
void upb_mhandlers_ref(upb_mhandlers *m);
void upb_mhandlers_unref(upb_mhandlers *m);
// Creates a new field with the given name and number. There must not be an
// existing field with either this name or number or abort() will be called.
// TODO: this should take a name also.
upb_fhandlers *upb_mhandlers_newfhandlers(upb_mhandlers *m, uint32_t n,
upb_fieldtype_t type, bool repeated);
// Like the previous but for MESSAGE or GROUP fields. For GROUP fields, the
// given submessage must not have any fields with this field number.
upb_fhandlers *upb_mhandlers_newfhandlers_subm(upb_mhandlers *m, uint32_t n,
upb_fieldtype_t type,
bool repeated,
upb_mhandlers *subm);
// upb_mhandlers accessors.
#define UPB_MHANDLERS_ACCESSORS(name, type) \
INLINE void upb_mhandlers_set ## name(upb_mhandlers *m, type v){m->name = v;} \
INLINE type upb_mhandlers_get ## name(upb_mhandlers *m) { return m->name; }
UPB_MHANDLERS_ACCESSORS(startmsg, upb_startmsg_handler*);
UPB_MHANDLERS_ACCESSORS(endmsg, upb_endmsg_handler*);
/* upb_handlers ***************************************************************/
struct _upb_handlers {
upb_atomic_t refcount;
upb_mhandlers **msgs; // Array of msgdefs, [0]=toplevel.
int msgs_len, msgs_size;
bool should_jit;
};
typedef struct _upb_handlers upb_handlers;
upb_handlers *upb_handlers_new(void);
void upb_handlers_ref(upb_handlers *h);
void upb_handlers_unref(upb_handlers *h);
// Appends a new message to the graph of handlers and returns it. This message
// can be obtained later at index upb_handlers_msgcount()-1. All handlers will
// be initialized to no-op handlers.
upb_mhandlers *upb_handlers_newmhandlers(upb_handlers *h);
upb_mhandlers *upb_handlers_getmhandlers(upb_handlers *h, int index);
// Convenience function for registering handlers for all messages and
// fields in a msgdef and all its children. For every registered message
// "msgreg_cb" will be called with the newly-created mhandlers, and likewise
// with "fieldreg_cb"
//
// See upb_handlers_reghandlerset() below for an example.
typedef void upb_onmsgreg(void *closure, upb_mhandlers *mh, const upb_msgdef *m);
typedef void upb_onfieldreg(void *closure, upb_fhandlers *mh, const upb_fielddef *m);
upb_mhandlers *upb_handlers_regmsgdef(upb_handlers *h, const upb_msgdef *m,
upb_onmsgreg *msgreg_cb,
upb_onfieldreg *fieldreg_cb,
void *closure);
// Convenience function for registering a set of handlers for all messages and
// fields in a msgdef and its children, with the fval bound to the upb_fielddef.
// Any of the handlers may be NULL, in which case no callback will be set and
// the nop callback will be used.
typedef struct {
upb_startmsg_handler *startmsg;
upb_endmsg_handler *endmsg;
upb_value_handler *value;
upb_startfield_handler *startsubmsg;
upb_endfield_handler *endsubmsg;
upb_startfield_handler *startseq;
upb_endfield_handler *endseq;
} upb_handlerset;
INLINE void upb_onmreg_hset(void *c, upb_mhandlers *mh, const upb_msgdef *m) {
(void)m;
upb_handlerset *hs = (upb_handlerset*)c;
if (hs->startmsg) upb_mhandlers_setstartmsg(mh, hs->startmsg);
if (hs->endmsg) upb_mhandlers_setendmsg(mh, hs->endmsg);
}
INLINE void upb_onfreg_hset(void *c, upb_fhandlers *fh, const upb_fielddef *f) {
upb_handlerset *hs = (upb_handlerset*)c;
if (hs->value) upb_fhandlers_setvalue(fh, hs->value);
if (hs->startsubmsg) upb_fhandlers_setstartsubmsg(fh, hs->startsubmsg);
if (hs->endsubmsg) upb_fhandlers_setendsubmsg(fh, hs->endsubmsg);
if (hs->startseq) upb_fhandlers_setstartseq(fh, hs->startseq);
if (hs->endseq) upb_fhandlers_setendseq(fh, hs->endseq);
upb_value val;
upb_value_setfielddef(&val, f);
upb_fhandlers_setfval(fh, val);
}
INLINE upb_mhandlers *upb_handlers_reghandlerset(upb_handlers *h, const upb_msgdef *m,
upb_handlerset *hs) {
return upb_handlers_regmsgdef(h, m, &upb_onmreg_hset, &upb_onfreg_hset, hs);
}
/* upb_dispatcher *************************************************************/
// WARNING: upb_dispatcher should be considered INTERNAL-ONLY. The interface
// between it and upb_decoder is somewhat tightly coupled and may change.
//
// upb_dispatcher can be used by sources of data to invoke the appropriate
// handlers on a upb_handlers object. Besides maintaining the runtime stack of
// closures and handlers, the dispatcher checks the return status of user
// callbacks and properly handles statuses other than UPB_CONTINUE, invoking
// "skip" or "exit" handlers on the underlying data source as appropriate.
typedef struct {
upb_fhandlers *f;
void *closure;
uint64_t end_ofs;
bool is_sequence; // frame represents seq or submsg? (f might be both).
bool is_packed; // !upb_issubmsg(f) && end_ofs != UINT64_MAX
// (strings aren't pushed).
} upb_dispatcher_frame;
typedef void upb_exit_handler(void *);
typedef struct {
upb_dispatcher_frame *top, *limit;
// Msg and dispatch table for the current level.
upb_mhandlers *msgent;
upb_mhandlers *toplevel_msgent;
upb_exit_handler UPB_NORETURN *exitjmp;
void *srcclosure;
bool top_is_implicit;
// Stack.
upb_status *status;
upb_dispatcher_frame stack[UPB_MAX_NESTING];
} upb_dispatcher;
// Caller retains ownership of the status object.
void upb_dispatcher_init(upb_dispatcher *d, upb_status *status,
upb_exit_handler UPB_NORETURN *exit, void *closure);
upb_dispatcher_frame *upb_dispatcher_reset(upb_dispatcher *d, void *topclosure,
upb_mhandlers *top_msg);
void upb_dispatcher_uninit(upb_dispatcher *d);
// Tests whether the message could legally end here (either the stack is empty
// or the only open stack frame is implicit).
bool upb_dispatcher_islegalend(upb_dispatcher *d);
// Unwinds one or more stack frames based on the given flow constant that was
// just returned from a handler. Calls end handlers as appropriate.
void _upb_dispatcher_abortjmp(upb_dispatcher *d) UPB_NORETURN;
INLINE void _upb_dispatcher_sethas(void *_p, int32_t hasbit) {
char *p = (char*)_p;
if (hasbit >= 0) p[(uint32_t)hasbit / 8] |= (1 << ((uint32_t)hasbit % 8));
}
// Dispatch functions -- call the user handler and handle errors.
INLINE void upb_dispatch_value(upb_dispatcher *d, upb_fhandlers *f,
upb_value val) {
upb_flow_t flow = UPB_CONTINUE;
if (f->value) flow = f->value(d->top->closure, f->fval, val);
_upb_dispatcher_sethas(d->top->closure, f->valuehasbit);
if (flow != UPB_CONTINUE) _upb_dispatcher_abortjmp(d);
}
void upb_dispatch_startmsg(upb_dispatcher *d);
void upb_dispatch_endmsg(upb_dispatcher *d, upb_status *status);
upb_dispatcher_frame *upb_dispatch_startsubmsg(upb_dispatcher *d,
upb_fhandlers *f);
upb_dispatcher_frame *upb_dispatch_endsubmsg(upb_dispatcher *d);
upb_dispatcher_frame *upb_dispatch_startseq(upb_dispatcher *d, upb_fhandlers *f);
upb_dispatcher_frame *upb_dispatch_endseq(upb_dispatcher *d);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
| {
"content_hash": "61a0d2384dbfff773c430af87782a155",
"timestamp": "",
"source": "github",
"line_count": 380,
"max_line_length": 86,
"avg_line_length": 40.863157894736844,
"alnum_prop": 0.6877253992787223,
"repo_name": "alepharchives/upb",
"id": "9ed02c114f8a1e7fff080acb0775fa85704e4e1d",
"size": "16080",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "upb/handlers.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>jQuery Cover Plugin Example</title>
<link rel="stylesheet" type="text/css" href="jquery.cover.css">
<style>
body {
margin:0;
padding:0;
/* position:absolute;
background-color:#eeffee;
top:20px;
right:100px;
bottom:20px;
left:222px;*/
}
</style>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="jquery.cover.js"></script>
<script type="text/javascript">
(function($) {
$(document).ready(function() {
$(".myBackgroundImage").cover();
});
})(jQuery);
</script>
</head>
<body>
<img src="myBackground.jpg" class="myBackgroundImage">
</body>
</html>
| {
"content_hash": "70c016d58603a32992e51573deaef754",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 70,
"avg_line_length": 22.542857142857144,
"alnum_prop": 0.6210392902408112,
"repo_name": "Upmacis-Andrejs/12guru_Front-end",
"id": "52403f93f002e9defe9db5e770eefbd98e15fd76",
"size": "789",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "dist/bower_components/jquery-cover/example.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "213848"
},
{
"name": "HTML",
"bytes": "438609"
},
{
"name": "JavaScript",
"bytes": "50572"
}
],
"symlink_target": ""
} |
<?php
class Kwf_Component_Cache_Menu_Root4_Submenu_Component extends Kwc_Menu_Component
{
public static function getSettings()
{
$ret = parent::getSettings();
$ret['level'] = 2;
return $ret;
}
}
| {
"content_hash": "679c991c9449c99611a6695e2da21f22",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 81,
"avg_line_length": 23.1,
"alnum_prop": 0.6147186147186147,
"repo_name": "darimpulso/koala-framework",
"id": "6f800d3bd23d95da8e63e5c9f81088d8e850473b",
"size": "231",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "tests/Kwf/Component/Cache/Menu/Root4/Submenu/Component.php",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "CSS",
"bytes": "133521"
},
{
"name": "JavaScript",
"bytes": "1054808"
},
{
"name": "PHP",
"bytes": "6129918"
}
],
"symlink_target": ""
} |
package ecologylab.bigsemantics.logging;
import ecologylab.generic.Debug;
import ecologylab.serialization.SimplTypesScope;
/**
*
* @author quyin
*/
public class DocumentLogRecordScope extends Debug
{
public static final String NAME = "document_log_record_scope";
protected static final Class CLASSES[] = {
DocumentLogRecord.class,
Phase.class,
DocumentErrorRecord.class,
};
public static SimplTypesScope get()
{
return SimplTypesScope.get(NAME, CLASSES);
}
public static void addType(Class<? extends DocumentLogRecord> type)
{
get().addTranslation(type);
}
}
| {
"content_hash": "f5843ac320c2d271e8c115381749e27e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 71,
"avg_line_length": 25.677419354838708,
"alnum_prop": 0.5565326633165829,
"repo_name": "ecologylab/BigSemanticsJava",
"id": "5442c061b66313706cf206ca56643171ddfec667",
"size": "796",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "BigSemanticsCore/src/ecologylab/bigsemantics/logging/DocumentLogRecordScope.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "4188"
},
{
"name": "HTML",
"bytes": "547817"
},
{
"name": "Java",
"bytes": "2862205"
},
{
"name": "JavaScript",
"bytes": "1647"
},
{
"name": "Makefile",
"bytes": "1057"
}
],
"symlink_target": ""
} |
require 'spec_helper'
require 'bosh/director/log_bundles_cleaner'
require 'timecop'
module Bosh::Director
describe Jobs::FetchLogs do
subject(:fetch_logs) { Jobs::FetchLogs.new(instances, blobstore: blobstore, 'filters' => 'filter1,filter2') }
let(:blobstore) { instance_double('Bosh::Blobstore::BaseClient') }
let(:task) { Models::Task.make(id: 42) }
let(:task_writer) {Bosh::Director::TaskDBWriter.new(:event_output, task.id)}
let(:event_log) {Bosh::Director::EventLog::Log.new(task_writer)}
before {
allow(Config).to receive(:event_log).and_return(event_log)
}
describe 'DJ job class expectations' do
let(:job_type) { :fetch_logs }
let(:queue) { :normal }
it_behaves_like 'a DJ job'
end
describe '#perform' do
let(:instance) do
Models::Instance.make(deployment: deployment, job: 'fake-job-name', index: '42', uuid: 'uuid-1')
end
let(:deployment) { Models::Deployment.make }
context 'when only one instance to get logs' do
let(:instances) { [instance.id] }
context 'when instance is associated with a vm' do
before do
vm = Models::Vm.make(cid: 'vm-1', instance_id: instance.id)
instance.active_vm = vm
end
before { allow(AgentClient).to receive(:with_agent_id).with(instance.agent_id).and_return(agent) }
let(:agent) { instance_double('Bosh::Director::AgentClient', fetch_logs: {'blobstore_id' => 'new-fake-blobstore-id'}) }
it 'cleans old log bundles' do
old_log_bundle = Models::LogBundle.make(timestamp: Time.now - 12*24*60*60, blobstore_id: 'previous-fake-blobstore-id') # 12 days
expect(blobstore).to receive(:delete).with('previous-fake-blobstore-id')
fetch_logs.perform
expect(Models::LogBundle.all).not_to include old_log_bundle
end
context 'when deleting blob from blobstore fails' do
it 'cleans the old log bundle if it was not found in the blobstore' do
old_log_bundle = Models::LogBundle.make(timestamp: Time.now - 12*24*60*60, blobstore_id: 'previous-fake-blobstore-id') # 12 days
expect(blobstore).to receive(:delete).with('previous-fake-blobstore-id').and_raise(Bosh::Blobstore::NotFound)
fetch_logs.perform
expect(Models::LogBundle.all).not_to include old_log_bundle
end
it 'does not clean the old log bundle if any other error is returned' do
old_log_bundle = Models::LogBundle.make(timestamp: Time.now - 12*24*60*60, blobstore_id: 'previous-fake-blobstore-id') # 12 days
expect(blobstore).to receive(:delete).with('previous-fake-blobstore-id').and_raise(Bosh::Blobstore::NotImplemented)
fetch_logs.perform
new_log_bundle = Models::LogBundle.first(blobstore_id: 'new-fake-blobstore-id')
expect(Models::LogBundle.all).to eq [old_log_bundle, new_log_bundle]
end
end
context 'when agent returns blobstore id in its response to fetch_logs' do
it 'asks agent to fetch logs and returns blobstore id' do
expect(agent).to receive(:fetch_logs).
with('job', 'filter1,filter2').
and_return('blobstore_id' => 'fake-blobstore-id')
expect(fetch_logs.perform).to eq('fake-blobstore-id')
end
it 'registers returned blobstore id as a log bundle' do
expect(Models::LogBundle.all).to be_empty
fetch_logs.perform
expect(Models::LogBundle.where(blobstore_id: 'new-fake-blobstore-id')).not_to be_empty
end
end
context 'when agent does not return blobstore id in its response to fetch_logs' do
before { allow(agent).to receive(:fetch_logs).and_return({}) }
it 'raises an exception' do
expect {
fetch_logs.perform
}.to raise_error(AgentTaskNoBlobstoreId, "Agent didn't return a blobstore object id for packaged logs")
end
it 'does not register non-existent blobstore id as a log bundle' do
expect(Models::LogBundle.all).to be_empty
expect { fetch_logs.perform }.to raise_error
expect(Models::LogBundle.all).to be_empty
end
end
end
context 'when instance is not associated with a vm' do
it 'raises an exception because there is no agent to contact' do
expect {
fetch_logs.perform
}.to raise_error(InstanceVmMissing, "'fake-job-name/#{instance.uuid} (42)' doesn't reference a VM")
end
end
end
context 'when several isntances to get logs' do
let(:instance_1) do
is = Models::Instance.make(deployment: deployment, job: 'fake-job-name', index: '44', uuid: 'uuid-2')
vm = Models::Vm.make(cid: 'vm-1', instance_id: is.id)
is.active_vm = vm
is.save
end
let(:instance_2) do
is = Models::Instance.make(deployment: deployment, job: 'fake-job-name', index: '43', uuid: 'uuid-3')
vm = Models::Vm.make(cid: 'vm-2', instance_id: is.id)
is.active_vm = vm
is.save
end
let(:instances) do
[instance_1.id, instance_2.id]
end
before do
allow(AgentClient).to receive(:with_agent_id).with(instance_1.agent_id).and_return(agent_1)
allow(AgentClient).to receive(:with_agent_id).with(instance_2.agent_id).and_return(agent_2)
allow(blobstore).to receive(:delete)
allow(blobstore).to receive(:get)
allow(blobstore).to receive(:create).and_return('common-blobstore-id')
end
let(:agent_1) { instance_double('Bosh::Director::AgentClient', fetch_logs: {'blobstore_id' => 'fake-blobstore-id-1'}) }
let(:agent_2) { instance_double('Bosh::Director::AgentClient', fetch_logs: {'blobstore_id' => 'fake-blobstore-id-2'}) }
let(:archiver) { Core::TarGzipper.new }
context 'when temporary blob exists' do
it 'should be deleted' do
expect(blobstore).to receive(:delete).with('fake-blobstore-id-1')
expect(blobstore).to receive(:delete).with('fake-blobstore-id-2')
fetch_logs.perform
end
it 'should be not registered' do
fetch_logs.perform
expect(Models::LogBundle.where(blobstore_id: 'fake-blobstore-id-1')).to be_empty
expect(Models::LogBundle.where(blobstore_id: 'fake-blobstore-id-2')).to be_empty
end
end
it 'raises an exception when agent does not return blobstore id in its response to fetch_logs' do
allow(agent_2).to receive(:fetch_logs).and_return({})
expect {
fetch_logs.perform
}.to raise_error(AgentTaskNoBlobstoreId, "Agent didn't return a blobstore object id for packaged logs")
end
it 'raises an exception because there is no agent to contact' do
instance_1.active_vm = nil
expect {
fetch_logs.perform
}.to raise_error(InstanceVmMissing, "'fake-job-name/#{instance_1.uuid} (44)' doesn't reference a VM")
end
context 'when common logs file is generated' do
before do
allow(blobstore).to receive(:get)
allow(Core::TarGzipper).to receive(:new).and_return(archiver)
Timecop.freeze(Time.new(2011, 10, 9, 11, 55, 45))
end
after { Timecop.return }
it 'should store all logs together' do
expect(archiver).to receive(:compress) { |download_dir, sources, output_path|
expect(Dir.entries(download_dir)).to include('fake-job-name.uuid-2.2011-10-09-11-55-45.tgz', 'fake-job-name.uuid-3.2011-10-09-11-55-45.tgz')
File.write(output_path, 'Some glorious content')
}
fetch_logs.perform
end
it 'registers returned blobstore id as a log bundle' do
expect(Models::LogBundle.all).to be_empty
fetch_logs.perform
expect(Models::LogBundle.where(blobstore_id: 'common-blobstore-id')).not_to be_empty
end
end
end
end
end
end
| {
"content_hash": "294945e0b597fa1e2f902602553ab52b",
"timestamp": "",
"source": "github",
"line_count": 198,
"max_line_length": 154,
"avg_line_length": 42.343434343434346,
"alnum_prop": 0.6046040076335878,
"repo_name": "barthy1/bosh",
"id": "8a77e8ca4ef9fcbb5873cfb35e1e840c3ad8e2da",
"size": "8384",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/bosh-director/spec/unit/jobs/fetch_logs_spec.rb",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "11145"
},
{
"name": "Go",
"bytes": "56502"
},
{
"name": "HCL",
"bytes": "10057"
},
{
"name": "HTML",
"bytes": "59167"
},
{
"name": "Ruby",
"bytes": "7205717"
},
{
"name": "Shell",
"bytes": "116927"
}
],
"symlink_target": ""
} |
C Copyright(C) 2009-2017 National Technology & Engineering Solutions of
C Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C Redistribution and use in source and binary forms, with or without
C modification, are permitted provided that the following conditions are
C met:
C
C * Redistributions of source code must retain the above copyright
C notice, this list of conditions and the following disclaimer.
C
C * Redistributions in binary form must reproduce the above
C copyright notice, this list of conditions and the following
C disclaimer in the documentation and/or other materials provided
C with the distribution.
C * Neither the name of NTESS nor the names of its
C contributors may be used to endorse or promote products derived
C from this software without specific prior written permission.
C
C THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
C "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
C LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
C A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
C OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
C SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
C LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
C DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
C THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
C (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
C OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
C $Log: msmemy.f,v $
C Revision 1.3 2009/03/25 12:36:46 gdsjaar
C Add copyright and license notice to all files.
C Permission to assert copyright has been granted; blot is now open source, BSD
C
C Revision 1.2 2005/09/27 13:34:53 gdsjaar
C Fixed some issues with memory access out of bounds
C
C Revision 1.1 1994/04/07 20:05:48 gdsjaar
C Initial checkin of ACCESS/graphics/blotII2
C
c Revision 1.2 1990/12/14 08:53:58 gdsjaar
c Added RCS Id and Log to all files
c
C=======================================================================
SUBROUTINE MSMEMY (A, ANYDEF, ANYUND,
& DOIXF, DON2B, DOELED, DOELEU, DODEAD, DONPS, DOESS,
& NSURFS, KN2ELB, KDN2B, KIF2EL,
& KXN, KYN, KZN, KHZ, KVT, KPD, KDHZ, KDVT, KDPD,
& KXF, KYF, KZF, KDXF, KDYF, KDZF, KHIDEN, KHIDEF, KIXFAC,
& KSNPS, KSESS)
C=======================================================================
C --*** MSMEMY *** (MESH) Reserve memory for mesh plot
C -- Written by Amy Gilkey - revised 07/27/88
C --
C --MSMEMY reserves or finds the memory needed to plot a mesh.
C --
C --This routine reserves and finds the following dynamic memory arrays:
C -- IN2ELB - the element block for each node;
C -- <0 if not in any selected element block
C -- =0 if in more than one selected element block
C -- IDN2B - the element block for each dead node; dead if >= 0
C -- HZ, VT, PD - the undeformed nodal coordinates
C -- (rotated for 3D, PD for 3D only)
C -- DHZ, DVT, DPD - the deformed nodal coordinates
C -- (rotated for 3D, DPD for 3D only)
C -- XF, YF, ZF - the undeformed face center coordinates
C -- (rotated for 3D, ZF for 3D only)
C -- DXF, DYF, DZF - the deformed face center coordinates
C -- (rotated for 3D, DZF for 3D only)
C -- HIDENP(i) - true iff node i is hidden (3D only)
C -- HIDEF(i) - true iff face i is hidden (3D only)
C -- IXFAC - the indices of the ordered faces (3D only)
C -- IX2NP - the node number for each mesh index (MASTER process only)
C -- SCRNPS - scratch array for node sets
C -- SCRESS - scratch array for side sets
C --
C --This routine uses MDFIND to find the following dynamic memory arrays:
C -- IF2EL - the element number of each face
C -- XN, YN, ZN - IN - the nodal coordinates (ZN for 3D only)
C --
C --Parameters:
C -- A - IN - the dynamic memory base array
C -- ANYDEF - IN - true iff any deformed mesh is to be plotted
C -- ANYUND - IN - true iff any undeformed mesh is to be plotted
C -- DOIXF - IN - true iff the IXFAC array is needed
C -- DON2B - IN - true iff the IN2ELB array is needed
C -- DOELED - IN - true iff the deformed element quarilateral centers
C -- are needed
C -- DOELEU - IN - true iff the undeformed element quarilateral centers
C -- are needed
C -- DODEAD - IN - true iff dead nodes are needed
C -- DONPS - IN - true iff node set information is needed
C -- DOESS - IN - true iff side set information is needed
C -- NSURFS - IN - the number of surface faces
C -- KN2ELB - OUT - the index of IN2ELB
C -- KDN2B - OUT - the index of IDN2B
C -- KIF2EL - OUT - the index of IF2EL
C -- KXN, KYN, KZN - OUT - the indices of XN, YN, ZN
C -- KHZ, KVT, KPD - OUT - the indices of HZ, VT, PD
C -- KDHZ, KDVT, KDPD - OUT - the indices of DHZ, DVT, DPD
C -- KXF, KYF, KZF - OUT - the indices of XF, YF, ZF
C -- KDXF, KDYF, KDZF - OUT - the indices of DXF, DYF, DZF
C -- KHIDEN - OUT - the index of HIDENP
C -- KHIDEF - OUT - the index of HIDEF
C -- KIXFAC - OUT - the index of IXFAC
C -- KSNPS - OUT - the index of SCRNPS
C -- KSESS - OUT - the index of SCRESS
C --
C --Common Variables:
C -- Uses NDIM of /DBNUMS/
C -- Uses IS3DIM, NUMNPF of /D3NUMS/
C -- Uses DEFPRO, DEFOK of /DEFORM/
C -- Sets NPSIZ of /SIZES/
include 'dbnumgq.blk'
include 'dbnums.blk'
include 'd3nums.blk'
include 'deform.blk'
include 'sizes.blk'
DIMENSION A(*)
LOGICAL ANYDEF, ANYUND
LOGICAL DOIXF, DON2B, DOELED, DOELEU, DODEAD, DONPS, DOESS
LOGICAL FIRST
SAVE FIRST
C --FIRST - true iff first time through routine
DATA FIRST / .TRUE. /
IF (FIRST) THEN
FIRST = .FALSE.
C --Reserve memory (most will be expanded when needed)
CALL MDRSRV ('IN2ELB', KN2ELB, 0)
CALL MDFIND ('IF2EL', KIF2EL, IDUM)
CALL MDFIND ('XN', KXN, IDUM)
CALL MDFIND ('YN', KYN, IDUM)
IF (IS3DIM) THEN
CALL MDFIND ('ZN', KZN, IDUM)
ELSE
KZN = 1
END IF
C --Set size of deformed coordinate arrays for hidden line algorithm
NPSIZ = NUMNPF
IF (IS3DIM) NPSIZ = (13 * NUMNPF) / 10
IF (IS3DIM) THEN
C --QNPICK uses MDFIND to find HZ, VT, PD
CALL MDRSRV ('HZ', KHZ, 0)
CALL MDRSRV ('VT', KVT, 0)
CALL MDRSRV ('PD', KPD, 0)
ELSE
KHZ = KXN
KVT = KYN
KPD = KZN
END IF
IF (DEFOK) THEN
C --QNPICK uses MDFIND to find DHZ, DVT, DPD
CALL MDRSRV ('DHZ', KDHZ, 0)
CALL MDRSRV ('DVT', KDVT, 0)
IF (IS3DIM) THEN
CALL MDRSRV ('DPD', KDPD, 0)
ELSE
KDPD = 1
END IF
ELSE
KDHZ = 1
KDVT = 1
KDPD = 1
END IF
CALL MDRSRV ('XF', KXF, 0)
CALL MDRSRV ('YF', KYF, 0)
IF (IS3DIM) THEN
CALL MDRSRV ('ZF', KZF, 0)
ELSE
KZF = 1
END IF
IF (DEFOK) THEN
CALL MDRSRV ('DXF', KDXF, 0)
CALL MDRSRV ('DYF', KDYF, 0)
IF (IS3DIM) THEN
CALL MDRSRV ('DZF', KDZF, 0)
ELSE
KDZF = 1
END IF
END IF
C --QNPICK uses MDFIND to find HIDENP
IF (IS3DIM) THEN
CALL MDRSRV ('HIDENP', KHIDEN, NUMNPF)
ELSE
KHIDEN = 1
END IF
IF (IS3DIM) THEN
CALL MDRSRV ('HIDEF', KHIDEF, NSURFS)
ELSE
KHIDEF = 1
END IF
C --Reserve the mesh index to node number index
CALL MDRSRV ('IX2NP', KIX2NP, 0)
END IF
C --Find memory
CALL MDFIND ('IN2ELB', KN2ELB, IDUM)
CALL MDFIND ('IF2EL', KIF2EL, IDUM)
IF (DODEAD) THEN
CALL MDRSRV ('IDN2B', KDN2B, 0)
ELSE
KDN2B = 1
END IF
CALL MDFIND ('XN', KXN, IDUM)
CALL MDFIND ('YN', KYN, IDUM)
IF (IS3DIM) THEN
CALL MDFIND ('ZN', KZN, IDUM)
ELSE
KZN = 1
END IF
IF (IS3DIM) THEN
CALL MDFIND ('HZ', KHZ, IDUM)
CALL MDFIND ('VT', KVT, IDUM)
CALL MDFIND ('PD', KPD, IDUM)
ELSE
KHZ = KXN
KVT = KYN
KPD = KZN
END IF
IF (DEFOK .AND. DEFPRO) THEN
CALL MDFIND ('DHZ', KDHZ, IDUM)
CALL MDFIND ('DVT', KDVT, IDUM)
IF (IS3DIM) THEN
CALL MDFIND ('DPD', KDPD, IDUM)
ELSE
KDPD = 1
END IF
ELSE
KDHZ = 1
KDVT = 1
KDPD = 1
END IF
CALL MDFIND ('XF', KXF, IDUM)
CALL MDFIND ('YF', KYF, IDUM)
IF (IS3DIM) THEN
CALL MDFIND ('ZF', KZF, IDUM)
ELSE
KZF = 1
END IF
IF (DEFOK .AND. DEFPRO) THEN
CALL MDFIND ('DXF', KDXF, IDUM)
CALL MDFIND ('DYF', KDYF, IDUM)
IF (IS3DIM) THEN
CALL MDFIND ('DZF', KDZF, IDUM)
ELSE
KDZF = 1
END IF
ELSE
KDXF = 1
KDYF = 1
KDZF = 1
END IF
IF (IS3DIM) THEN
CALL MDFIND ('HIDENP', KHIDEN, IDUM)
ELSE
KHIDEN = 1
END IF
KIXFAC = 1
IF (IS3DIM) THEN
CALL MDFIND ('HIDEF', KHIDEF, IDUM)
IF (DOIXF) CALL MDRSRV ('IXFAC', KIXFAC, NSURFS)
ELSE
KHIDEF = 1
END IF
IF (DONPS) THEN
CALL MDRSRV ('SCRNPS', KSNPS, NUMNPS)
ELSE
KSNPS = 1
END IF
IF (DOESS) THEN
CALL MDRSRV ('SCRESS', KSESS, NUMESS)
ELSE
KSESS = 1
END IF
CALL MDSTAT (NERR, MEM)
IF (NERR .GT. 0) GOTO 100
100 CONTINUE
RETURN
END
| {
"content_hash": "0db7f1a7cbe7cafe9fff5eb63f369e95",
"timestamp": "",
"source": "github",
"line_count": 308,
"max_line_length": 79,
"avg_line_length": 32.451298701298704,
"alnum_prop": 0.5833916958479239,
"repo_name": "nschloe/seacas",
"id": "a5dfcf88947fffcd97125a5776e762e87409d92c",
"size": "9995",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "packages/seacas/applications/blot/msmemy.f",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "16194234"
},
{
"name": "C++",
"bytes": "8593376"
},
{
"name": "CMake",
"bytes": "1710665"
},
{
"name": "CSS",
"bytes": "10556"
},
{
"name": "Fortran",
"bytes": "11575690"
},
{
"name": "HTML",
"bytes": "1558835"
},
{
"name": "Lex",
"bytes": "28717"
},
{
"name": "M4",
"bytes": "67986"
},
{
"name": "Makefile",
"bytes": "851848"
},
{
"name": "Matlab",
"bytes": "23647"
},
{
"name": "Objective-C",
"bytes": "7154"
},
{
"name": "Pascal",
"bytes": "59"
},
{
"name": "Perl",
"bytes": "22409"
},
{
"name": "Python",
"bytes": "1196444"
},
{
"name": "Roff",
"bytes": "1107836"
},
{
"name": "Shell",
"bytes": "418975"
},
{
"name": "TeX",
"bytes": "883374"
},
{
"name": "Yacc",
"bytes": "21322"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<title></title>
</head>
<body>
<p id="content"></p>
</body>
</html>
| {
"content_hash": "f03ee4b2919e866a9fe28ada5bb975c0",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 72,
"avg_line_length": 17.5,
"alnum_prop": 0.6057142857142858,
"repo_name": "sergecodd/FireFox-OS",
"id": "3bae94fcaee017d70c42f5c2c6e80f5ddcd5d3d6",
"size": "175",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "B2G/gecko/content/base/test/bug682592-subframe.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Ada",
"bytes": "443"
},
{
"name": "ApacheConf",
"bytes": "85"
},
{
"name": "Assembly",
"bytes": "5123438"
},
{
"name": "Awk",
"bytes": "46481"
},
{
"name": "Batchfile",
"bytes": "56250"
},
{
"name": "C",
"bytes": "101720951"
},
{
"name": "C#",
"bytes": "38531"
},
{
"name": "C++",
"bytes": "148896543"
},
{
"name": "CMake",
"bytes": "23541"
},
{
"name": "CSS",
"bytes": "2758664"
},
{
"name": "DIGITAL Command Language",
"bytes": "56757"
},
{
"name": "Emacs Lisp",
"bytes": "12694"
},
{
"name": "Erlang",
"bytes": "889"
},
{
"name": "FLUX",
"bytes": "34449"
},
{
"name": "GLSL",
"bytes": "26344"
},
{
"name": "Gnuplot",
"bytes": "710"
},
{
"name": "Groff",
"bytes": "447012"
},
{
"name": "HTML",
"bytes": "43343468"
},
{
"name": "IDL",
"bytes": "1455122"
},
{
"name": "Java",
"bytes": "43261012"
},
{
"name": "JavaScript",
"bytes": "46646658"
},
{
"name": "Lex",
"bytes": "38358"
},
{
"name": "Logos",
"bytes": "21054"
},
{
"name": "Makefile",
"bytes": "2733844"
},
{
"name": "Matlab",
"bytes": "67316"
},
{
"name": "Max",
"bytes": "3698"
},
{
"name": "NSIS",
"bytes": "421625"
},
{
"name": "Objective-C",
"bytes": "877657"
},
{
"name": "Objective-C++",
"bytes": "737713"
},
{
"name": "PHP",
"bytes": "17415"
},
{
"name": "Pascal",
"bytes": "6780"
},
{
"name": "Perl",
"bytes": "1153180"
},
{
"name": "Perl6",
"bytes": "1255"
},
{
"name": "PostScript",
"bytes": "1139"
},
{
"name": "PowerShell",
"bytes": "8252"
},
{
"name": "Protocol Buffer",
"bytes": "26553"
},
{
"name": "Python",
"bytes": "8453201"
},
{
"name": "Ragel in Ruby Host",
"bytes": "3481"
},
{
"name": "Ruby",
"bytes": "5116"
},
{
"name": "Scilab",
"bytes": "7"
},
{
"name": "Shell",
"bytes": "3383832"
},
{
"name": "SourcePawn",
"bytes": "23661"
},
{
"name": "TeX",
"bytes": "879606"
},
{
"name": "WebIDL",
"bytes": "1902"
},
{
"name": "XSLT",
"bytes": "13134"
},
{
"name": "Yacc",
"bytes": "112744"
}
],
"symlink_target": ""
} |
package jsoniter
import "fmt"
type invalidAny struct {
baseAny
err error
}
func newInvalidAny(path []interface{}) *invalidAny {
return &invalidAny{baseAny{}, fmt.Errorf("%v not found", path)}
}
func (any *invalidAny) LastError() error {
return any.err
}
func (any *invalidAny) ValueType() ValueType {
return Invalid
}
func (any *invalidAny) MustBeValid() Any {
panic(any.err)
}
func (any *invalidAny) ToBool() bool {
return false
}
func (any *invalidAny) ToInt() int {
return 0
}
func (any *invalidAny) ToInt32() int32 {
return 0
}
func (any *invalidAny) ToInt64() int64 {
return 0
}
func (any *invalidAny) ToUint() uint {
return 0
}
func (any *invalidAny) ToUint32() uint32 {
return 0
}
func (any *invalidAny) ToUint64() uint64 {
return 0
}
func (any *invalidAny) ToFloat32() float32 {
return 0
}
func (any *invalidAny) ToFloat64() float64 {
return 0
}
func (any *invalidAny) ToString() string {
return ""
}
func (any *invalidAny) WriteTo(stream *Stream) {
}
func (any *invalidAny) Get(path ...interface{}) Any {
if any.err == nil {
return &invalidAny{baseAny{}, fmt.Errorf("get %v from invalid", path)}
}
return &invalidAny{baseAny{}, fmt.Errorf("%v, get %v from invalid", any.err, path)}
}
func (any *invalidAny) Parse() *Iterator {
return nil
}
func (any *invalidAny) GetInterface() interface{} {
return nil
}
| {
"content_hash": "af055f93342cffcc8ea301c5ae42ac75",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 84,
"avg_line_length": 16.548780487804876,
"alnum_prop": 0.6809137803979366,
"repo_name": "liucaihs/fsservice",
"id": "d8ae06f8629499ed88c3e893bd9781b0228df259",
"size": "1357",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "idfa/vendor/github.com/json-iterator/go/feature_any_invalid.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "133948"
},
{
"name": "Shell",
"bytes": "216"
}
],
"symlink_target": ""
} |
export default {
conversation: {
allowedInboundTags: {
'spark-mention': ['data-object-type', 'data-object-id', 'data-object-url']
},
allowedOutboundTags: {
'spark-mention': ['data-object-type', 'data-object-id', 'data-object-url']
},
// eslint-disable-next-line no-empty-function
inboundProcessFunc: () => {},
// eslint-disable-next-line no-empty-function
outboundProcessFunc: () => {},
allowedInboundStyles: [],
allowedOutboundStyles: [],
/**
* Max height for thumbnails generated when sharing an image
* @type {number}
*/
thumbnailMaxHeight: 960,
/**
* Max width for thumbnails generated when sharing an image
* @type {number}
*/
thumbnailMaxWidth: 640,
/**
* Primarily for testing. When true, decrypting an activity will create a
* sister property with the original encrypted string
* @type {Boolean}
*/
keepEncryptedProperties: false,
decryptionFailureMessage: 'This message cannot be decrypted'
}
};
| {
"content_hash": "fa738ed68887703410931ec45016ef07",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 80,
"avg_line_length": 29.771428571428572,
"alnum_prop": 0.6381957773512476,
"repo_name": "ciscospark/spark-js-sdk",
"id": "093cce568d82fdb99cdfb52d233d519c4f4c655c",
"size": "1114",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "packages/node_modules/@ciscospark/internal-plugin-conversation/src/config.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "103163"
},
{
"name": "Shell",
"bytes": "20611"
}
],
"symlink_target": ""
} |
var before = scope.myApproxSize();
assert( scope.myApproxSize() > before );
var o = {};
o.a = 5;
o.o = o;
assert( scope.myApproxSize() > before ); // this tets inf. loops
o.b = {};
o.b.o = 0;
o.b.a = {};
o.b.a.o = {};
assert( scope.myApproxSize() > before ); // this tets inf. loops
before = scope.myApproxSize();
var x = 5;
assert( scope.myApproxSize() > before );
before = scope.myApproxSize();
x = 7;
assert.eq( scope.myApproxSize() , before );
z = 7;
assert.eq( scope.myApproxSize() , before , "a variable added to a higher scope shouldn't count" );
before = scope.myApproxSize();
s = scope;
assert.eq( scope.myApproxSize() , before );
s = scope.child();
assert( scope.myApproxSize() > before , "not bigger" );
var foo = function(){};
assert(foo.approxSize());
| {
"content_hash": "9329cf49fd84d6034036af22ab0a671d",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 98,
"avg_line_length": 21.054054054054053,
"alnum_prop": 0.637997432605905,
"repo_name": "babble/babble",
"id": "3e432a09cd630cfc986047b727a8b6d8d0f25ab5",
"size": "780",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/test/ed/js/size1.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "3378"
},
{
"name": "Groovy",
"bytes": "16151"
},
{
"name": "Java",
"bytes": "7316421"
},
{
"name": "JavaScript",
"bytes": "644844"
},
{
"name": "Python",
"bytes": "10107943"
},
{
"name": "Ruby",
"bytes": "4961765"
},
{
"name": "Shell",
"bytes": "2575"
},
{
"name": "Visual Basic",
"bytes": "481"
}
],
"symlink_target": ""
} |
import type { Action } from 'types'
import type { Users } from 'types/user'
export type State = Users
export default function UserById(state: State = {}, action: Action): State {
// $FlowFixMe
if (action.response && action.response.entities.users) {
return {
...state,
...action.response.entities.users,
}
}
return state
}
| {
"content_hash": "756e5006c7cd1e927115998ed8b2e9d2",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 76,
"avg_line_length": 23.533333333333335,
"alnum_prop": 0.6515580736543909,
"repo_name": "akameco/PixivDeck",
"id": "ff7bce1bb0316d821fa567a25afa5b62b5faf5a3",
"size": "362",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/containers/UserById/reducer.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "714"
},
{
"name": "JavaScript",
"bytes": "330164"
}
],
"symlink_target": ""
} |
package com.intellij.util.containers;
import java.util.Map;
/**
* @author peter
*/
public abstract class ConcurrentFactoryMap<T,V> extends FactoryMap<T,V> {
protected Map<T, V> createMap() {
return new ConcurrentHashMap<T,V>();
}
}
| {
"content_hash": "eea17c0a0ceb9a24d8b9a4b0732aa383",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 73,
"avg_line_length": 18.846153846153847,
"alnum_prop": 0.6979591836734694,
"repo_name": "jexp/idea2",
"id": "139946e3142c100c9ae469035373c7105adf7b5c",
"size": "845",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "platform/util/src/com/intellij/util/containers/ConcurrentFactoryMap.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "6350"
},
{
"name": "C#",
"bytes": "103"
},
{
"name": "C++",
"bytes": "30760"
},
{
"name": "Erlang",
"bytes": "10"
},
{
"name": "Java",
"bytes": "72888555"
},
{
"name": "JavaScript",
"bytes": "910"
},
{
"name": "PHP",
"bytes": "133"
},
{
"name": "Perl",
"bytes": "6523"
},
{
"name": "Shell",
"bytes": "4068"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="es">
<head>
<!-- Generated by javadoc (1.8.0_121) on Thu May 11 20:13:33 CEST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>D-Index</title>
<meta name="date" content="2017-05-11">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src="../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="D-Index";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../overview-summary.html">Overview</a></li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="../overview-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li class="navBarCell1Rev">Index</li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-2.html">Prev Letter</a></li>
<li><a href="index-4.html">Next Letter</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-3.html" target="_top">Frames</a></li>
<li><a href="index-3.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="contentContainer"><a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">G</a> <a href="index-6.html">H</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">S</a> <a href="index-12.html">T</a> <a href="index-13.html">U</a> <a href="index-14.html">V</a> <a name="I:D">
<!-- -->
</a>
<h2 class="title">D</h2>
<dl>
<dt><span class="memberNameLink"><a href="../partes/VParteAdministracion.html#deshabilitar--">deshabilitar()</a></span> - Method in class partes.<a href="../partes/VParteAdministracion.html" title="class in partes">VParteAdministracion</a></dt>
<dd>
<div class="block">Deshabilitar boton de Cerrar parte y añadir viaje</div>
</dd>
</dl>
<a href="index-1.html">A</a> <a href="index-2.html">C</a> <a href="index-3.html">D</a> <a href="index-4.html">E</a> <a href="index-5.html">G</a> <a href="index-6.html">H</a> <a href="index-7.html">I</a> <a href="index-8.html">L</a> <a href="index-9.html">M</a> <a href="index-10.html">P</a> <a href="index-11.html">S</a> <a href="index-12.html">T</a> <a href="index-13.html">U</a> <a href="index-14.html">V</a> </div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../overview-summary.html">Overview</a></li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="../overview-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li class="navBarCell1Rev">Index</li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="index-2.html">Prev Letter</a></li>
<li><a href="index-4.html">Next Letter</a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?index-files/index-3.html" target="_top">Frames</a></li>
<li><a href="index-3.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| {
"content_hash": "42831cf90bce23b289398326538a98a8",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 525,
"avg_line_length": 38.09848484848485,
"alnum_prop": 0.6229866772718234,
"repo_name": "programGrupo7/grupo7",
"id": "000890b76d6ad2ca9824928a4e8649cfea7c7d05",
"size": "5030",
"binary": false,
"copies": "1",
"ref": "refs/heads/trabajarpartes",
"path": "java/javadoc/index-files/index-3.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "294824"
}
],
"symlink_target": ""
} |
<?php
include 'session.php';
verify_session();
include_once 'util.php';
include_once 'conn.php';
if (!isset($_POST['name']) || !isset($_POST['description']) || !isset($_POST['age_limit'])) {
?>
<html>
<head>
<title>New product</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1>New Product</h1>
<div class="col-md-12">
<div class="col-md-2">
<div class="navbar">
<div class="navbar-inner">
<ul class="nav" style="font-size: 18pt;">
<li><a href='dashboard.php'>Dashboard</a></li>
</ul>
</div>
</div>
</div>
<div class="col-md-10">
<h3>Product information: </h3>
<form action="newgood.php" method="POST">
<table class="table">
<tr><th>Name:</th><td>
<input type="text" name="name" class="form-control" placeholder="Product name"/></td><tr/>
<tr><th>Minimal age:</th><td>
<input type="text" name="age_limit" value="0" class="form-control" placeholder="Age limit, 0 for unlimited"/></td><tr/>
<tr><th>Description:</th><td>
<textarea name="description" class="form-control" placeholder="Product description"></textarea></td></tr>
</table>
<input type="submit" value="Submit" class="btn btn-primary btn-lg"/>
</form>
</div>
</div>
</body>
</html>
<?php
} else {
check($_POST['name'] != '', "Name cannot be empty", "newgood.php");
check($_POST['description'] != '', "Password cannot be empty", "newgood.php");
check($_POST['age_limit'] >= 0 && $_POST['age_limit'] <= 1000, "Invalid age limit", "newgood.php");
$conn = db_connect();
$stmt = db_bind_exe($conn, 'insert into goods (gid, name, description, age_limit) values (gid_seq.nextval, :name, :description, :age_limit)',
array('userid' => session_userid(), 'name' => $_POST['name'], 'now' => now(), 'description' => $_POST['description'], 'age_limit' => $_POST['age_limit']));
db_close($conn);
echo '<h3>New product info entered.</h3>';
jump_to('sell.php');
}
| {
"content_hash": "45f40a55ddcf732dee0d32c468469f87",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 163,
"avg_line_length": 33.821917808219176,
"alnum_prop": 0.5864722559740786,
"repo_name": "HenryHu/falloutmarket",
"id": "a99182a3eb2b6faed89d39bb79000e3af6f4b2fc",
"size": "2469",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "newgood.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "PHP",
"bytes": "40379"
}
],
"symlink_target": ""
} |
'use strict'
var identifier = require('../')
var test = require('tape')
test(function (t) {
t.equal(identifier('foo-bar'), 'fooBar')
t.equal(identifier('foo_bar'), 'fooBar')
t.equal(identifier('foo1'), 'foo1')
t.equal(identifier('_foo'), '_foo')
t.equal(identifier('_foo_bar'), '_fooBar')
t.equal(identifier('$'), '$', 'jquery')
t.equal(identifier('_'), '_', 'lodash')
function when (name) {
return function () {
identifier(name)
}
}
t.throws(when('try'), /"try" is a reserved word/)
t.throws(when('0numbers'), /begin with a letter/)
t.throws(when('foo!'), /illegal character/)
t.end()
})
| {
"content_hash": "6f394d094932c917eb64e18af5819d0c",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 51,
"avg_line_length": 27.434782608695652,
"alnum_prop": 0.6006339144215531,
"repo_name": "bendrucker/camelize-identifier",
"id": "cb1e21c5a8832b516e7e88aff7534cb9b9229708",
"size": "631",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "1287"
}
],
"symlink_target": ""
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="GENERATOR" content="VSdocman - documentation generator; https://www.helixoft.com" />
<link rel="icon" href="favicon.ico">
<title>ApplicantsDetailVm.Nickname Property</title>
<link rel="stylesheet" type="text/css" href="msdn2019/toc.css" />
<script src="msdn2019/toc.js"></script>
<link rel="stylesheet" type="text/css" href="msdn2019/msdn2019.css"></link>
<script src="msdn2019/msdn2019.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shCore_helixoft.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushVb.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushCSharp.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushFSharp.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushCpp.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushJScript.js" type="text/javascript"></script>
<link href="SyntaxHighlighter/styles/shCore.css" rel="stylesheet" type="text/css" />
<link href="SyntaxHighlighter/styles/shThemeMsdnLW.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
<link rel="stylesheet" type="text/css" href="vsdocman_overrides.css"></link>
</head>
<body style="direction: ltr;">
<div id="topic">
<!--HEADER START-->
<div id="header">
<div id="header-top-container">
<div id="header-top-parent-container1">
<div id="header-top-container1">
<div id="runningHeaderText1"><a id="headerLogo" href="#" onclick="window.location.href = getCssCustomProperty('--headerLogoLink'); return false;">logo</a></div>
<div id="runningHeaderText1b"><script>
document.write(getCssCustomProperty('--headerTopCustomLineHtml'));
</script></div>
</div>
</div>
<div id="header-top-container2">
<div id="runningHeaderText">SOLUTION-WIDE PROPERTIES Reference</div>
<div id="search-bar-container">
<form id="search-bar" action="search--.html">
<input id="HeaderSearchInput" type="search" name="search" placeholder="Search" >
<button id="btn-search" class="c-glyph" title="Search">
<span>Search</span>
</button>
</form>
<button id="cancel-search" class="cancel-search" title="Cancel">
<span>Cancel</span>
</button>
</div>
</div>
</div>
<hr />
<div id="header-breadcrumbs"></div>
<div id="headerLinks">
</div>
<hr />
</div>
<!--HEADER END-->
<div id="mainSection">
<div id="toc-area">
<div id="toc-container" class="stickthis full-height">
<div id="-1"></div>
<div id="c-1">
<div id="ci-1" class="inner-for-height"></div>
</div>
</div>
</div>
<div id="mainBody">
<h1 class="title">ApplicantsDetailVm.Nickname Property</h1>
<div class="metadata">
Namespace:
<a href="topic_00000000000005D2.html">Tlece.Recruitment.Models.Applicants</a>
<br />Assembly: Tlece.Recruitment (in Tlece.Recruitment.dll)
</div>
<div class="section_container">
<div id="syntaxSection" class="section">
<div id="syntaxCodeBlocks">
<div class="codeSnippetContainer">
<div class="codeSnippetTabs">
<div class="codeSnippetTabLeftCornerActive">
</div>
<div class="codeSnippetTab csFirstTab csActiveTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csNaTab codeCsharp">
<a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a>
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a>
</div>
<div class="codeSnippetTab csNaTab codeCpp">
<a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csLastTab csNaTab codeJScript">
<a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a>
</div>
<div class="codeSnippetTabRightCorner">
</div>
<div style="clear:both;">
</div>
</div>
<div class="codeSnippetCodeCollection">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeVB">
<pre xml:space="preserve" class="brush: vb">Public Property Nickname() As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a></pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
<div class="codeSnippetContainer">
<div class="codeSnippetTabs">
<div class="codeSnippetTabLeftCorner">
</div>
<div class="codeSnippetTab csFirstTab csNaTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csActiveTab codeCsharp">
<a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a>
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a>
</div>
<div class="codeSnippetTab csNaTab codeCpp">
<a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csLastTab csNaTab codeJScript">
<a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a>
</div>
<div class="codeSnippetTabRightCorner">
</div>
<div style="clear:both;">
</div>
</div>
<div class="codeSnippetCodeCollection">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeCsharp">
<pre xml:space="preserve" class="brush: csharp">public <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a> Nickname {get; set;}</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
<div class="codeSnippetContainer">
<div class="codeSnippetTabs">
<div class="codeSnippetTabLeftCorner">
</div>
<div class="codeSnippetTab csFirstTab csNaTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csNaTab codeCsharp">
<a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a>
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a>
</div>
<div class="codeSnippetTab csActiveTab codeCpp">
<a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csLastTab csNaTab codeJScript">
<a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a>
</div>
<div class="codeSnippetTabRightCorner">
</div>
<div style="clear:both;">
</div>
</div>
<div class="codeSnippetCodeCollection">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeCpp">
<pre xml:space="preserve" class="brush: cpp">public: <br />property <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>^ Nickname { <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>^ get( ); <br /> void set( <br /> <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>^ value <br /> ); <br />}</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
<div class="codeSnippetContainer">
<div class="codeSnippetTabs">
<div class="codeSnippetTabLeftCorner">
</div>
<div class="codeSnippetTab csFirstTab csNaTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csNaTab codeCsharp">
<a href="javascript: CodeSnippet_SetLanguage('Csharp');">C#</a>
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: CodeSnippet_SetLanguage('Fsharp');">F#</a>
</div>
<div class="codeSnippetTab csNaTab codeCpp">
<a href="javascript: CodeSnippet_SetLanguage('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csActiveTab csLastTab codeJScript">
<a href="javascript: CodeSnippet_SetLanguage('JScript');">JScript</a>
</div>
<div class="codeSnippetTabRightCornerActive">
</div>
<div style="clear:both;">
</div>
</div>
<div class="codeSnippetCodeCollection">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeJScript">
<pre xml:space="preserve" class="brush: js">public function get Nickname() : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>; <br />public function set Nickname(value : <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a>);</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
</div>
<h4 class="subHeading">
Property Value</h4>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a>
</div>
</div>
<div class="section_container">
<div class="section_heading">
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">Applies to</a></span>
<div> </div>
</div>
<div id="frameworksSection" class="section">
<h4 class="subHeading">.NET Framework</h4>Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1<br />
</div>
</div>
<div class="section_container">
<div class="section_heading">
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">See Also</a></span>
<div> </div>
</div>
<div id="seeAlsoSection" class="section">
<div>
<a href="topic_00000000000005DE.html">ApplicantsDetailVm Class</a><br />
<a href="topic_00000000000005D2.html">Tlece.Recruitment.Models.Applicants Namespace</a><br />
</div>
</div>
</div>
</div>
<div id="internal-toc-area">
<div id="internal-toc-container" class="stickthis">
<h3 id="internal-toc-heading">In this article</h3>
<span id="internal-toc-definition-localized-text">Definition</span>
</div>
</div>
</div>
<div id="footer">
<div id="footer-container">
<p><span style="color: #FF0000;">Generated with unregistered version of <a target="_top" href="http://www.helixoft.com/vsdocman/overview.html">VSdocman</a></span> <br />Your own footer text will only be shown in registered version.</p>
</div>
</div>
</div>
</body>
</html>
| {
"content_hash": "8a9ab0aae9aa15c07b68333c98997885",
"timestamp": "",
"source": "github",
"line_count": 391,
"max_line_length": 470,
"avg_line_length": 30.194373401534527,
"alnum_prop": 0.6334067423344062,
"repo_name": "asiboro/asiboro.github.io",
"id": "5a705327c171cfa467d8a533d5bc305d7fc77157",
"size": "11806",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vsdoc/topic_00000000000005EB.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "310000"
},
{
"name": "HTML",
"bytes": "135195"
},
{
"name": "JavaScript",
"bytes": "621923"
}
],
"symlink_target": ""
} |
namespace Umbraco.Core.Models.Identity
{
/// <summary>
/// EntityType that represents one specific user claim
///
/// </summary>
/// <typeparam name="TKey"/>
/// <remarks>
/// This class normally exists inside of the EntityFramework library, not sure why MS chose to explicitly put it there but we don't want
/// references to that so we will create our own here
/// </remarks>
public class IdentityUserClaim<TKey>
{
/// <summary>
/// Primary key
///
/// </summary>
public virtual int Id { get; set; }
/// <summary>
/// User Id for the user who owns this login
///
/// </summary>
public virtual TKey UserId { get; set; }
/// <summary>
/// Claim type
///
/// </summary>
public virtual string ClaimType { get; set; }
/// <summary>
/// Claim value
///
/// </summary>
public virtual string ClaimValue { get; set; }
}
}
| {
"content_hash": "9611bff9c283d5c5c00eb512040bf435",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 140,
"avg_line_length": 27.026315789473685,
"alnum_prop": 0.5277507302823758,
"repo_name": "tcmorris/Umbraco-CMS",
"id": "e117d2fd133c18e313a3b75525deda59efe11bc3",
"size": "1029",
"binary": false,
"copies": "9",
"ref": "refs/heads/v8/dev",
"path": "src/Umbraco.Core/Models/Identity/IdentityUserClaim.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "749548"
},
{
"name": "ActionScript",
"bytes": "11355"
},
{
"name": "C#",
"bytes": "11261246"
},
{
"name": "CSS",
"bytes": "286573"
},
{
"name": "Erlang",
"bytes": "1782"
},
{
"name": "HTML",
"bytes": "497648"
},
{
"name": "JavaScript",
"bytes": "2429331"
},
{
"name": "PowerShell",
"bytes": "1212"
},
{
"name": "Python",
"bytes": "876"
},
{
"name": "Ruby",
"bytes": "765"
},
{
"name": "Shell",
"bytes": "10962"
},
{
"name": "XSLT",
"bytes": "49960"
}
],
"symlink_target": ""
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="kk_KZ" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About Quark Core</source>
<translation type="unfinished"/>
</message>
<message>
<source><b>Quark Core</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<source>The Quark Core developers</source>
<translation type="unfinished"/>
</message>
<message>
<source>(%1-bit)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<source>Double-click to edit address or label</source>
<translation>Адресті немесе белгіні өзгерту үшін екі рет шертіңіз</translation>
</message>
<message>
<source>Create a new address</source>
<translation>Жаңа адрес енгізу</translation>
</message>
<message>
<source>&New</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Таңдаған адресті тізімнен жою</translation>
</message>
<message>
<source>&Copy</source>
<translation type="unfinished"/>
</message>
<message>
<source>C&lose</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Delete</source>
<translation>Жою</translation>
</message>
<message>
<source>Choose the address to send coins to</source>
<translation type="unfinished"/>
</message>
<message>
<source>Choose the address to receive coins with</source>
<translation type="unfinished"/>
</message>
<message>
<source>C&hoose</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sending addresses</source>
<translation type="unfinished"/>
</message>
<message>
<source>Receiving addresses</source>
<translation type="unfinished"/>
</message>
<message>
<source>These are your Quark addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<source>These are your Quark addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Export Address List</source>
<translation type="unfinished"/>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>Үтірмен бөлінген текст (*.csv)</translation>
</message>
<message>
<source>Exporting Failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>There was an error trying to save the address list to %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<source>Label</source>
<translation>таңба</translation>
</message>
<message>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter passphrase</source>
<translation>Құпия сөзді енгізу</translation>
</message>
<message>
<source>New passphrase</source>
<translation>Жаңа құпия сөзі</translation>
</message>
<message>
<source>Repeat new passphrase</source>
<translation>Жаңа құпия сөзді қайта енгізу</translation>
</message>
<message>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Әмиянға жаңа қүпия сөзді енгізіңіз.<br/><b>10 немесе одан әрі кездейсоқ белгілерді</b>, әлде <b>сегіз немесе одан әрі сөздерді</b>құпия сөзіңізде пайдалану өтінеміз.</translation>
</message>
<message>
<source>Encrypt wallet</source>
<translation>Әмиянді шифрлау</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Бұл операциясы бойынша сіздің әмиянізді қоршаудан шығару үшін әмиянның құпия сөзі керек</translation>
</message>
<message>
<source>Unlock wallet</source>
<translation>Әмиянізді қоршаудан шығару</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Бұл операциясы бойынша сіздің әмиянізді шифрлап тастау үшін әмиянның құпия сөзі керек</translation>
</message>
<message>
<source>Decrypt wallet</source>
<translation>Әмиянізді шифрлап тастау</translation>
</message>
<message>
<source>Change passphrase</source>
<translation>Құпия сөзді өзгерту</translation>
</message>
<message>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirm wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR QUARKS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet encrypted</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your quarks from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet encryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet unlock failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet decryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Synchronizing with network...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Overview</source>
<translation type="unfinished"/>
</message>
<message>
<source>Node</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show general overview of wallet</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Transactions</source>
<translation type="unfinished"/>
</message>
<message>
<source>Browse transaction history</source>
<translation type="unfinished"/>
</message>
<message>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quit application</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show information about Quark</source>
<translation type="unfinished"/>
</message>
<message>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Options...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Sending addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Receiving addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Open &URI...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Send coins to a Quark address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Modify configuration options for Quark</source>
<translation type="unfinished"/>
</message>
<message>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sign messages with your Quark addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<source>Verify messages to ensure they were signed with specified Quark addresses</source>
<translation type="unfinished"/>
</message>
<message>
<source>&File</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Settings</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Help</source>
<translation type="unfinished"/>
</message>
<message>
<source>Tabs toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark Core</source>
<translation type="unfinished"/>
</message>
<message>
<source>Request payments (generates QR codes and quark: URIs)</source>
<translation type="unfinished"/>
</message>
<message>
<source>&About Quark Core</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show the list of used sending addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show the list of used receiving addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<source>Open a quark: URI or payment request</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show the Quark Core help message to get a list with possible Quark command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>%n active connection(s) to Quark network</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>%1 and %2</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>%n year(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<source>Up to date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<source>Incoming transaction</source>
<translation type="unfinished"/>
</message>
<message>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"/>
</message>
<message>
<source>A fatal error occurred. Quark can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<source>Coin Control Address Selection</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<source>Lock unspent</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unlock unspent</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<source>higher</source>
<translation type="unfinished"/>
</message>
<message>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<source>lower</source>
<translation type="unfinished"/>
</message>
<message>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<source>(%1 locked)</source>
<translation type="unfinished"/>
</message>
<message>
<source>none</source>
<translation type="unfinished"/>
</message>
<message>
<source>Dust</source>
<translation type="unfinished"/>
</message>
<message>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<source>This label turns red, if the transaction size is greater than 1000 bytes.</source>
<translation type="unfinished"/>
</message>
<message>
<source>This means a fee of at least %1 per kB is required.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Can vary +/- 1 byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transactions with higher priority are more likely to get included into a block.</source>
<translation type="unfinished"/>
</message>
<message>
<source>This label turns red, if the priority is smaller than "medium".</source>
<translation type="unfinished"/>
</message>
<message>
<source>This label turns red, if any recipient receives an amount smaller than %1.</source>
<translation type="unfinished"/>
</message>
<message>
<source>This means a fee of at least %1 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amounts below 0.546 times the minimum relay fee are shown as dust.</source>
<translation type="unfinished"/>
</message>
<message>
<source>This label turns red, if the change is smaller than %1.</source>
<translation type="unfinished"/>
</message>
<message>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
<message>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<source>Edit Address</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Label</source>
<translation type="unfinished"/>
</message>
<message>
<source>The label associated with this address list entry</source>
<translation type="unfinished"/>
</message>
<message>
<source>The address associated with this address list entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Address</source>
<translation type="unfinished"/>
</message>
<message>
<source>New receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<source>New sending address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Edit receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Edit sending address</source>
<translation type="unfinished"/>
</message>
<message>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The entered address "%1" is not a valid Quark address.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Could not unlock wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<source>New key generation failed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>FreespaceChecker</name>
<message>
<source>A new data directory will be created.</source>
<translation type="unfinished"/>
</message>
<message>
<source>name</source>
<translation type="unfinished"/>
</message>
<message>
<source>Directory already exists. Add %1 if you intend to create a new directory here.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Path already exists, and is not a directory.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot create data directory here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
<source>Quark Core - Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark Core</source>
<translation type="unfinished"/>
</message>
<message>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set SSL root certificates for payment request (default: -system-)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Choose data directory on startup (default: 0)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Intro</name>
<message>
<source>Welcome</source>
<translation type="unfinished"/>
</message>
<message>
<source>Welcome to Quark Core.</source>
<translation type="unfinished"/>
</message>
<message>
<source>As this is the first time the program is launched, you can choose where Quark Core will store its data.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark Core will download and store a copy of the Quark block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use the default data directory</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use a custom data directory:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Specified data directory "%1" can not be created.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<source>GB of free space available</source>
<translation type="unfinished"/>
</message>
<message>
<source>(of %1GB needed)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OpenURIDialog</name>
<message>
<source>Open URI</source>
<translation type="unfinished"/>
</message>
<message>
<source>Open payment request from URI or file</source>
<translation type="unfinished"/>
</message>
<message>
<source>URI:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Select payment request file</source>
<translation type="unfinished"/>
</message>
<message>
<source>Select payment request file to open</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Automatically start Quark after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Start Quark on system login</source>
<translation type="unfinished"/>
</message>
<message>
<source>Size of &database cache</source>
<translation type="unfinished"/>
</message>
<message>
<source>MB</source>
<translation type="unfinished"/>
</message>
<message>
<source>Number of script &verification threads</source>
<translation type="unfinished"/>
</message>
<message>
<source>Connect to the Quark network through a SOCKS proxy.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Connect through SOCKS proxy (default proxy):</source>
<translation type="unfinished"/>
</message>
<message>
<source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Third party transaction URLs</source>
<translation type="unfinished"/>
</message>
<message>
<source>Active command-line options that override above options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<source>(0 = auto, <0 = leave that many cores free)</source>
<translation type="unfinished"/>
</message>
<message>
<source>W&allet</source>
<translation type="unfinished"/>
</message>
<message>
<source>Expert</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enable coin &control features</source>
<translation type="unfinished"/>
</message>
<message>
<source>If you disable the spending of unconfirmed change, the change from a transaction cannot be used until that transaction has at least one confirmation. This also affects how your balance is computed.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Spend unconfirmed change</source>
<translation type="unfinished"/>
</message>
<message>
<source>Automatically open the Quark client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<source>The user interface language can be set here. This setting will take effect after restarting Quark.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Whether to show Quark addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<source>none</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<source>Client restart required to activate changes.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Client will be shutdown, do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<source>This change would require a client restart.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Quark network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<source>Available:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<source>Pending:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<source><b>Recent transactions</b></source>
<translation type="unfinished"/>
</message>
<message>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<source>URI can not be parsed! This can be caused by an invalid Quark address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Requested payment amount of %1 is too small (considered dust).</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment request error</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot start quark: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
<message>
<source>Net manager warning</source>
<translation type="unfinished"/>
</message>
<message>
<source>Your active proxy doesn't support SOCKS5, which is required for payment requests via proxy.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment request fetch URL is invalid: %1</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment request file handling</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment request file can not be read or processed! This can be caused by an invalid payment request file.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unverified payment requests to custom payment scripts are unsupported.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Refund from %1</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error communicating with %1: %2</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment request can not be parsed or processed!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Bad response from server %1</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment acknowledged</source>
<translation type="unfinished"/>
</message>
<message>
<source>Network request error</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QObject</name>
<message>
<source>Quark</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Specified data directory "%1" does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Cannot parse configuration file: %1. Only use key=value syntax.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Invalid combination of -regtest and -testnet.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark Core didn't yet exit safely...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter a Quark address (e.g. QfgBvXopUwn3KtDnW4HHqX2L7KD37TigXS)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRImageWidget</name>
<message>
<source>&Save Image...</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Copy Image</source>
<translation type="unfinished"/>
</message>
<message>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<source>PNG Image (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<source>Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<source>General</source>
<translation type="unfinished"/>
</message>
<message>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<source>Name</source>
<translation type="unfinished"/>
</message>
<message>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Network Traffic</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Clear</source>
<translation type="unfinished"/>
</message>
<message>
<source>Totals</source>
<translation type="unfinished"/>
</message>
<message>
<source>In:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Out:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<source>Open the Quark debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<source>Welcome to the Quark RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 B</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 KB</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 MB</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 GB</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 m</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 h</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 h %2 m</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<source>&Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Message:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source>
<translation type="unfinished"/>
</message>
<message>
<source>R&euse an existing receiving address (not recommended)</source>
<translation type="unfinished"/>
</message>
<message>
<source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Quark network.</source>
<translation type="unfinished"/>
</message>
<message>
<source>An optional label to associate with the new receiving address.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use this form to request payments. All fields are <b>optional</b>.</source>
<translation type="unfinished"/>
</message>
<message>
<source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear all fields of the form.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear</source>
<translation type="unfinished"/>
</message>
<message>
<source>Requested payments history</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Request payment</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show the selected request (does the same as double clicking an entry)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show</source>
<translation type="unfinished"/>
</message>
<message>
<source>Remove the selected entries from the list</source>
<translation type="unfinished"/>
</message>
<message>
<source>Remove</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ReceiveRequestDialog</name>
<message>
<source>QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy &URI</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy &Address</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Save Image...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Request payment to %1</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment information</source>
<translation type="unfinished"/>
</message>
<message>
<source>URI</source>
<translation type="unfinished"/>
</message>
<message>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Label</source>
<translation>таңба</translation>
</message>
<message>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RecentRequestsTableModel</name>
<message>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Label</source>
<translation>таңба</translation>
</message>
<message>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
<message>
<source>(no message)</source>
<translation type="unfinished"/>
</message>
<message>
<source>(no amount)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
<message>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"/>
</message>
<message>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear all fields of the form.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirm the send action</source>
<translation type="unfinished"/>
</message>
<message>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 to %2</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<source>Total Amount %1 (= %2)</source>
<translation type="unfinished"/>
</message>
<message>
<source>or</source>
<translation type="unfinished"/>
</message>
<message>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: Invalid Quark address</source>
<translation type="unfinished"/>
</message>
<message>
<source>(no label)</source>
<translation>(таңбасыз)</translation>
</message>
<message>
<source>Warning: Unknown change address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Are you sure you want to send?</source>
<translation type="unfinished"/>
</message>
<message>
<source>added as transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment request expired</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid payment address %1</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<source>A&mount:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<source>The address to send the payment to (e.g. QfgBvXopUwn3KtDnW4HHqX2L7KD37TigXS)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Choose previously used address</source>
<translation type="unfinished"/>
</message>
<message>
<source>This is a normal payment.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<source>Remove this entry</source>
<translation type="unfinished"/>
</message>
<message>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<source>This is a verified payment request.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter a label for this address to add it to the list of used addresses</source>
<translation type="unfinished"/>
</message>
<message>
<source>A message that was attached to the quark: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the Quark network.</source>
<translation type="unfinished"/>
</message>
<message>
<source>This is an unverified payment request.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Pay To:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Memo:</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ShutdownWindow</name>
<message>
<source>Quark Core is shutting down...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Do not shut down the computer until this window disappears.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The address to sign the message with (e.g. QfgBvXopUwn3KtDnW4HHqX2L7KD37TigXS)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Choose previously used address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sign the message to prove you own this Quark address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The address the message was signed with (e.g. QfgBvXopUwn3KtDnW4HHqX2L7KD37TigXS)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Verify the message to ensure it was signed with the specified Quark address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter a Quark address (e.g. QfgBvXopUwn3KtDnW4HHqX2L7KD37TigXS)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<source>Quark Core</source>
<translation type="unfinished"/>
</message>
<message>
<source>The Quark Core developers</source>
<translation type="unfinished"/>
</message>
<message>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
<message>
<source>KB/s</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<source>Merchant</source>
<translation type="unfinished"/>
</message>
<message>
<source>Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<source>Export Transaction History</source>
<translation type="unfinished"/>
</message>
<message>
<source>Exporting Failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>There was an error trying to save the transaction history to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Exporting Successful</source>
<translation type="unfinished"/>
</message>
<message>
<source>The transaction history was successfully saved to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>Үтірмен бөлінген файл (*.csv)</translation>
</message>
<message>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<source>Label</source>
<translation>таңба</translation>
</message>
<message>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletFrame</name>
<message>
<source>No wallet has been loaded.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>There was an error trying to save the wallet data to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<source>The wallet data was successfully saved to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Specify configuration file (default: quarkcoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Specify pid file (default: quarkd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<source>Listen for connections on <port> (default: 8333 or testnet: 18333)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<source>Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark Core RPC client version</source>
<translation type="unfinished"/>
</message>
<message>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=quarkrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Quark Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<source>Continuously rate-limit free transactions to <n>*1000 bytes per minute (default:15)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Listening for incoming connections failed (listen returned error %d)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Fees smaller than this are considered zero fee (for transaction creation) (default:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Flush database activity from memory pool to disk log every <n> megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<source>How thorough the block verification of -checkblocks is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<source>In this mode -genproclimit controls how many blocks are generated immediately.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set the processor limit for when generation is on (-1 = unlimited, default: -1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unable to bind to %s on this computer. Quark Core is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Quark will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<source>(default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>(default: wallet.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<source><category> can be:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<source>Quark Core Daemon</source>
<translation type="unfinished"/>
</message>
<message>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Clear list of wallet transactions (diagnostic tool; implies -rescan)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Connect through SOCKS proxy</source>
<translation type="unfinished"/>
</message>
<message>
<source>Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Connection options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<source>Debugging/Testing options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Disable safemode, override a real safe mode event (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Do not load the wallet and disable wallet RPC calls</source>
<translation type="unfinished"/>
</message>
<message>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<source>Fee per kB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<source>Fees smaller than this are considered zero fee (for relaying) (default:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Force safe mode (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<source>If <category> is not supplied, output all debugging information.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Importing...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid -onion address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Prepend debug output with timestamp (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>RPC client options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<source>Select SOCKS version for -proxy (4 or 5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set database cache size in megabytes (%d to %d, default: %d)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set maximum block size in bytes (default: %d)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Spend unconfirmed change when sending transactions (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Usage (deprecated, use quark-cli):</source>
<translation type="unfinished"/>
</message>
<message>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wait for RPC server to start</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet %s resides outside data directory %s</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: Deprecated argument -debugnet ignored, use -debug=net</source>
<translation type="unfinished"/>
</message>
<message>
<source>You need to rebuild the database using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot obtain a lock on data directory %s. Quark Core is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Output debugging information (default: 0, supplying <category> is optional)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Limit size of signature cache to <n> entries (default: 50000)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Log transaction priority and fee per kB when mining blocks (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Print block on startup, if found in block index</source>
<translation type="unfinished"/>
</message>
<message>
<source>Print block tree on startup (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>RPC SSL options: (see the Quark Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<source>RPC server options:</source>
<translation type="unfinished"/>
</message>
<message>
<source>Randomly drop 1 of every <n> network messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Randomly fuzz 1 of every <n> network messages</source>
<translation type="unfinished"/>
</message>
<message>
<source>Run a thread to flush wallet periodically (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>SSL options: (see the Quark Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Send command to Quark Core</source>
<translation type="unfinished"/>
</message>
<message>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sets the DB_PRIVATE flag in the wallet db environment (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show all debugging options (usage: --help -help-debug)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Show benchmark information (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Start Quark Core Daemon</source>
<translation type="unfinished"/>
</message>
<message>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction amount too small</source>
<translation>Транзакция өте кішкентай</translation>
</message>
<message>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<source>Transaction too large</source>
<translation>Транзакция өте үлкен</translation>
</message>
<message>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<source>Zapping all transactions from wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<source>on startup</source>
<translation type="unfinished"/>
</message>
<message>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error loading wallet.dat: Wallet requires newer version of Quark</source>
<translation type="unfinished"/>
</message>
<message>
<source>Wallet needed to be rewritten: restart Quark to complete</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | {
"content_hash": "4b2241335d7228ff2060b12f044ddf64",
"timestamp": "",
"source": "github",
"line_count": 3368,
"max_line_length": 394,
"avg_line_length": 32.667755344418055,
"alnum_prop": 0.6129152465348784,
"repo_name": "xptx/PlatinumBar",
"id": "c7665f43bd4833eea7968ff3d0843e5cbba10b67",
"size": "110674",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_kk_KZ.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "51312"
},
{
"name": "C",
"bytes": "465047"
},
{
"name": "C++",
"bytes": "2534389"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "HTML",
"bytes": "50620"
},
{
"name": "Makefile",
"bytes": "12108"
},
{
"name": "NSIS",
"bytes": "6077"
},
{
"name": "Objective-C",
"bytes": "1437"
},
{
"name": "Objective-C++",
"bytes": "6899"
},
{
"name": "Python",
"bytes": "54355"
},
{
"name": "QMake",
"bytes": "14156"
},
{
"name": "Shell",
"bytes": "8509"
}
],
"symlink_target": ""
} |
<?php
namespace ZendTest\Form\View\Helper;
use Zend\Form\Element\MonthSelect;
use Zend\Form\View\Helper\FormMonthSelect as FormMonthSelectHelper;
class FormMonthSelectTest extends CommonTestCase
{
public function setUp()
{
if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
$this->helper = new FormMonthSelectHelper();
parent::setUp();
}
public function testRaisesExceptionWhenNameIsNotPresentInElement()
{
$element = new MonthSelect();
$this->setExpectedException('Zend\Form\Exception\DomainException', 'name');
$this->helper->render($element);
}
public function testGeneratesTwoSelectsWithElement()
{
$element = new MonthSelect('foo');
$markup = $this->helper->render($element);
$this->assertNotContains('<select name="day"', $markup);
$this->assertContains('<select name="month"', $markup);
$this->assertContains('<select name="year"', $markup);
}
public function testCanGenerateSelectsWithEmptyOption()
{
$element = new MonthSelect('foo');
$element->setShouldCreateEmptyOption(true);
$markup = $this->helper->render($element);
$this->assertNotContains('<select name="day"', $markup);
$this->assertContains('<select name="month"', $markup);
$this->assertContains('<select name="year"', $markup);
$this->assertContains('<option value=""></option>', $markup);
}
public function testCanDisableDelimiters()
{
$element = new MonthSelect('foo');
$element->setShouldCreateEmptyOption(true);
$element->setShouldRenderDelimiters(false);
$markup = $this->helper->render($element);
// If it contains two consecutive selects this means that no delimiters
// are inserted
$this->assertContains('</select><select', $markup);
}
public function testCanRenderTextDelimiters()
{
$element = new MonthSelect('foo');
$element->setShouldCreateEmptyOption(true);
$element->setShouldRenderDelimiters(true);
$markup = $this->helper->__invoke($element, \IntlDateFormatter::LONG, 'pt_BR');
// pattern === "MMMM 'de' y"
$this->assertStringMatchesFormat('%a de %a', $markup);
}
public function testInvokeProxiesToRender()
{
$element = new MonthSelect('foo');
$markup = $this->helper->__invoke($element);
$this->assertNotContains('<select name="day"', $markup);
$this->assertContains('<select name="month"', $markup);
$this->assertContains('<select name="year"', $markup);
}
public function testInvokeWithNoElementChainsHelper()
{
$this->assertSame($this->helper, $this->helper->__invoke());
}
public function testMonthElementValueOptions()
{
$element = new MonthSelect('foo');
$this->helper->render($element);
$this->assertEquals(12, count($element->getMonthElement()->getValueOptions()));
}
}
| {
"content_hash": "87d7d6d9c71300cc421de94da647109e",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 87,
"avg_line_length": 33.69230769230769,
"alnum_prop": 0.6304631441617743,
"repo_name": "cpunsola/kiosko",
"id": "f5ccb63baa14ca779ee3cf706d3bc052dd58c83b",
"size": "3368",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tests/ZendTest/Form/View/Helper/FormMonthSelectTest.php",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "1042"
},
{
"name": "JavaScript",
"bytes": "63677"
},
{
"name": "PHP",
"bytes": "17401071"
},
{
"name": "Perl",
"bytes": "11768"
},
{
"name": "Shell",
"bytes": "2249"
}
],
"symlink_target": ""
} |
#include "SkCanvas.h"
#include "SkPatchUtils.h"
#include "SkPictureData.h"
#include "SkPicturePlayback.h"
#include "SkPictureRecord.h"
#include "SkPictureStateTree.h"
#include "SkReader32.h"
#include "SkTDArray.h"
#include "SkTypes.h"
/*
* Read the next op code and chunk size from 'reader'. The returned size
* is the entire size of the chunk (including the opcode). Thus, the
* offset just prior to calling ReadOpAndSize + 'size' is the offset
* to the next chunk's op code. This also means that the size of a chunk
* with no arguments (just an opcode) will be 4.
*/
DrawType SkPicturePlayback::ReadOpAndSize(SkReader32* reader, uint32_t* size) {
uint32_t temp = reader->readInt();
uint32_t op;
if (((uint8_t)temp) == temp) {
// old skp file - no size information
op = temp;
*size = 0;
} else {
UNPACK_8_24(temp, op, *size);
if (MASK_24 == *size) {
*size = reader->readInt();
}
}
return (DrawType)op;
}
static const SkRect* get_rect_ptr(SkReader32* reader) {
if (reader->readBool()) {
return &reader->skipT<SkRect>();
} else {
return NULL;
}
}
class TextContainer {
public:
size_t length() { return fByteLength; }
const void* text() { return (const void*)fText; }
size_t fByteLength;
const char* fText;
};
void get_text(SkReader32* reader, TextContainer* text) {
size_t length = text->fByteLength = reader->readInt();
text->fText = (const char*)reader->skip(length);
}
// FIXME: SkBitmaps are stateful, so we need to copy them to play back in multiple threads.
static SkBitmap shallow_copy(const SkBitmap& bitmap) {
return bitmap;
}
const SkPicture::OperationList* SkPicturePlayback::getActiveOps(const SkCanvas* canvas) {
if (fUseBBH) {
SkRect clipBounds;
if (canvas->getClipBounds(&clipBounds)) {
SkIRect query;
clipBounds.roundOut(&query);
return fPictureData->getActiveOps(query);
}
}
return NULL;
}
// Initialize the state tree iterator. Return false if there is nothing left to draw.
bool SkPicturePlayback::initIterator(SkPictureStateTree::Iterator* iter,
SkCanvas* canvas,
const SkPicture::OperationList *activeOpsList) {
if (NULL != activeOpsList) {
if (0 == activeOpsList->numOps()) {
return false; // nothing to draw
}
fPictureData->initIterator(iter, activeOpsList->fOps, canvas);
}
return true;
}
// If 'iter' is valid use it to skip forward through the picture.
void SkPicturePlayback::StepIterator(SkPictureStateTree::Iterator* iter, SkReader32* reader) {
if (iter->isValid()) {
uint32_t skipTo = iter->nextDraw();
if (SkPictureStateTree::Iterator::kDrawComplete == skipTo) {
reader->setOffset(reader->size()); // skip to end
} else {
reader->setOffset(skipTo);
}
}
}
// Update the iterator and state tree to catch up with the skipped ops.
void SkPicturePlayback::SkipIterTo(SkPictureStateTree::Iterator* iter,
SkReader32* reader,
uint32_t skipTo) {
SkASSERT(skipTo <= reader->size());
SkASSERT(reader->offset() <= skipTo); // should only be skipping forward
if (iter->isValid()) {
// If using a bounding box hierarchy, advance the state tree
// iterator until at or after skipTo
uint32_t adjustedSkipTo;
do {
adjustedSkipTo = iter->nextDraw();
} while (adjustedSkipTo < skipTo);
skipTo = adjustedSkipTo;
}
if (SkPictureStateTree::Iterator::kDrawComplete == skipTo) {
reader->setOffset(reader->size()); // skip to end
} else {
reader->setOffset(skipTo);
}
}
void SkPicturePlayback::draw(SkCanvas* canvas, SkDrawPictureCallback* callback) {
AutoResetOpID aroi(this);
SkASSERT(0 == fCurOffset);
SkAutoTDelete<const SkPicture::OperationList> activeOpsList(this->getActiveOps(canvas));
SkPictureStateTree::Iterator it;
if (!this->initIterator(&it, canvas, activeOpsList.get())) {
return; // nothing to draw
}
SkReader32 reader(fPictureData->opData()->bytes(), fPictureData->opData()->size());
StepIterator(&it, &reader);
// Record this, so we can concat w/ it if we encounter a setMatrix()
SkMatrix initialMatrix = canvas->getTotalMatrix();
SkAutoCanvasRestore acr(canvas, false);
while (!reader.eof()) {
if (NULL != callback && callback->abortDrawing()) {
return;
}
fCurOffset = reader.offset();
uint32_t size;
DrawType op = ReadOpAndSize(&reader, &size);
if (NOOP == op) {
// NOOPs are to be ignored - do not propagate them any further
SkipIterTo(&it, &reader, fCurOffset + size);
continue;
}
this->handleOp(&reader, op, size, canvas, initialMatrix);
StepIterator(&it, &reader);
}
}
void SkPicturePlayback::handleOp(SkReader32* reader,
DrawType op,
uint32_t size,
SkCanvas* canvas,
const SkMatrix& initialMatrix) {
switch (op) {
case CLIP_PATH: {
const SkPath& path = fPictureData->getPath(reader);
uint32_t packed = reader->readInt();
SkRegion::Op regionOp = ClipParams_unpackRegionOp(packed);
bool doAA = ClipParams_unpackDoAA(packed);
size_t offsetToRestore = reader->readInt();
SkASSERT(!offsetToRestore || offsetToRestore >= reader->offset());
canvas->clipPath(path, regionOp, doAA);
if (canvas->isClipEmpty() && offsetToRestore) {
reader->setOffset(offsetToRestore);
}
} break;
case CLIP_REGION: {
SkRegion region;
reader->readRegion(®ion);
uint32_t packed = reader->readInt();
SkRegion::Op regionOp = ClipParams_unpackRegionOp(packed);
size_t offsetToRestore = reader->readInt();
SkASSERT(!offsetToRestore || offsetToRestore >= reader->offset());
canvas->clipRegion(region, regionOp);
if (canvas->isClipEmpty() && offsetToRestore) {
reader->setOffset(offsetToRestore);
}
} break;
case CLIP_RECT: {
const SkRect& rect = reader->skipT<SkRect>();
uint32_t packed = reader->readInt();
SkRegion::Op regionOp = ClipParams_unpackRegionOp(packed);
bool doAA = ClipParams_unpackDoAA(packed);
size_t offsetToRestore = reader->readInt();
SkASSERT(!offsetToRestore || offsetToRestore >= reader->offset());
canvas->clipRect(rect, regionOp, doAA);
if (canvas->isClipEmpty() && offsetToRestore) {
reader->setOffset(offsetToRestore);
}
} break;
case CLIP_RRECT: {
SkRRect rrect;
reader->readRRect(&rrect);
uint32_t packed = reader->readInt();
SkRegion::Op regionOp = ClipParams_unpackRegionOp(packed);
bool doAA = ClipParams_unpackDoAA(packed);
size_t offsetToRestore = reader->readInt();
SkASSERT(!offsetToRestore || offsetToRestore >= reader->offset());
canvas->clipRRect(rrect, regionOp, doAA);
if (canvas->isClipEmpty() && offsetToRestore) {
reader->setOffset(offsetToRestore);
}
} break;
case PUSH_CULL: {
const SkRect& cullRect = reader->skipT<SkRect>();
size_t offsetToRestore = reader->readInt();
if (offsetToRestore && canvas->quickReject(cullRect)) {
reader->setOffset(offsetToRestore);
} else {
canvas->pushCull(cullRect);
}
} break;
case POP_CULL:
canvas->popCull();
break;
case CONCAT: {
SkMatrix matrix;
reader->readMatrix(&matrix);
canvas->concat(matrix);
break;
}
case DRAW_BITMAP: {
const SkPaint* paint = fPictureData->getPaint(reader);
const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader));
const SkPoint& loc = reader->skipT<SkPoint>();
canvas->drawBitmap(bitmap, loc.fX, loc.fY, paint);
} break;
case DRAW_BITMAP_RECT_TO_RECT: {
const SkPaint* paint = fPictureData->getPaint(reader);
const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader));
const SkRect* src = get_rect_ptr(reader); // may be null
const SkRect& dst = reader->skipT<SkRect>(); // required
SkCanvas::DrawBitmapRectFlags flags;
flags = (SkCanvas::DrawBitmapRectFlags) reader->readInt();
canvas->drawBitmapRectToRect(bitmap, src, dst, paint, flags);
} break;
case DRAW_BITMAP_MATRIX: {
const SkPaint* paint = fPictureData->getPaint(reader);
const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader));
SkMatrix matrix;
reader->readMatrix(&matrix);
canvas->drawBitmapMatrix(bitmap, matrix, paint);
} break;
case DRAW_BITMAP_NINE: {
const SkPaint* paint = fPictureData->getPaint(reader);
const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader));
const SkIRect& src = reader->skipT<SkIRect>();
const SkRect& dst = reader->skipT<SkRect>();
canvas->drawBitmapNine(bitmap, src, dst, paint);
} break;
case DRAW_CLEAR:
canvas->clear(reader->readInt());
break;
case DRAW_DATA: {
size_t length = reader->readInt();
canvas->drawData(reader->skip(length), length);
// skip handles padding the read out to a multiple of 4
} break;
case DRAW_DRRECT: {
const SkPaint& paint = *fPictureData->getPaint(reader);
SkRRect outer, inner;
reader->readRRect(&outer);
reader->readRRect(&inner);
canvas->drawDRRect(outer, inner, paint);
} break;
case BEGIN_COMMENT_GROUP: {
const char* desc = reader->readString();
canvas->beginCommentGroup(desc);
} break;
case COMMENT: {
const char* kywd = reader->readString();
const char* value = reader->readString();
canvas->addComment(kywd, value);
} break;
case END_COMMENT_GROUP: {
canvas->endCommentGroup();
} break;
case DRAW_OVAL: {
const SkPaint& paint = *fPictureData->getPaint(reader);
canvas->drawOval(reader->skipT<SkRect>(), paint);
} break;
case DRAW_PAINT:
canvas->drawPaint(*fPictureData->getPaint(reader));
break;
case DRAW_PATCH: {
const SkPaint& paint = *fPictureData->getPaint(reader);
const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts *
sizeof(SkPoint));
uint32_t flag = reader->readInt();
const SkColor* colors = NULL;
if (flag & DRAW_VERTICES_HAS_COLORS) {
colors = (const SkColor*)reader->skip(SkPatchUtils::kNumCorners * sizeof(SkColor));
}
const SkPoint* texCoords = NULL;
if (flag & DRAW_VERTICES_HAS_TEXS) {
texCoords = (const SkPoint*)reader->skip(SkPatchUtils::kNumCorners *
sizeof(SkPoint));
}
SkAutoTUnref<SkXfermode> xfer;
if (flag & DRAW_VERTICES_HAS_XFER) {
int mode = reader->readInt();
if (mode < 0 || mode > SkXfermode::kLastMode) {
mode = SkXfermode::kModulate_Mode;
}
xfer.reset(SkXfermode::Create((SkXfermode::Mode)mode));
}
canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
} break;
case DRAW_PATH: {
const SkPaint& paint = *fPictureData->getPaint(reader);
canvas->drawPath(fPictureData->getPath(reader), paint);
} break;
case DRAW_PICTURE:
canvas->drawPicture(fPictureData->getPicture(reader));
break;
case DRAW_PICTURE_MATRIX_PAINT: {
const SkPaint* paint = fPictureData->getPaint(reader);
SkMatrix matrix;
reader->readMatrix(&matrix);
const SkPicture* pic = fPictureData->getPicture(reader);
canvas->drawPicture(pic, &matrix, paint);
} break;
case DRAW_POINTS: {
const SkPaint& paint = *fPictureData->getPaint(reader);
SkCanvas::PointMode mode = (SkCanvas::PointMode)reader->readInt();
size_t count = reader->readInt();
const SkPoint* pts = (const SkPoint*)reader->skip(sizeof(SkPoint)* count);
canvas->drawPoints(mode, count, pts, paint);
} break;
case DRAW_POS_TEXT: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
size_t points = reader->readInt();
const SkPoint* pos = (const SkPoint*)reader->skip(points * sizeof(SkPoint));
canvas->drawPosText(text.text(), text.length(), pos, paint);
} break;
case DRAW_POS_TEXT_TOP_BOTTOM: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
size_t points = reader->readInt();
const SkPoint* pos = (const SkPoint*)reader->skip(points * sizeof(SkPoint));
const SkScalar top = reader->readScalar();
const SkScalar bottom = reader->readScalar();
if (!canvas->quickRejectY(top, bottom)) {
canvas->drawPosText(text.text(), text.length(), pos, paint);
}
} break;
case DRAW_POS_TEXT_H: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
size_t xCount = reader->readInt();
const SkScalar constY = reader->readScalar();
const SkScalar* xpos = (const SkScalar*)reader->skip(xCount * sizeof(SkScalar));
canvas->drawPosTextH(text.text(), text.length(), xpos, constY, paint);
} break;
case DRAW_POS_TEXT_H_TOP_BOTTOM: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
size_t xCount = reader->readInt();
const SkScalar* xpos = (const SkScalar*)reader->skip((3 + xCount) * sizeof(SkScalar));
const SkScalar top = *xpos++;
const SkScalar bottom = *xpos++;
const SkScalar constY = *xpos++;
if (!canvas->quickRejectY(top, bottom)) {
canvas->drawPosTextH(text.text(), text.length(), xpos, constY, paint);
}
} break;
case DRAW_RECT: {
const SkPaint& paint = *fPictureData->getPaint(reader);
canvas->drawRect(reader->skipT<SkRect>(), paint);
} break;
case DRAW_RRECT: {
const SkPaint& paint = *fPictureData->getPaint(reader);
SkRRect rrect;
reader->readRRect(&rrect);
canvas->drawRRect(rrect, paint);
} break;
case DRAW_SPRITE: {
const SkPaint* paint = fPictureData->getPaint(reader);
const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader));
int left = reader->readInt();
int top = reader->readInt();
canvas->drawSprite(bitmap, left, top, paint);
} break;
case DRAW_TEXT: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
SkScalar x = reader->readScalar();
SkScalar y = reader->readScalar();
canvas->drawText(text.text(), text.length(), x, y, paint);
} break;
case DRAW_TEXT_TOP_BOTTOM: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
const SkScalar* ptr = (const SkScalar*)reader->skip(4 * sizeof(SkScalar));
// ptr[0] == x
// ptr[1] == y
// ptr[2] == top
// ptr[3] == bottom
if (!canvas->quickRejectY(ptr[2], ptr[3])) {
canvas->drawText(text.text(), text.length(), ptr[0], ptr[1], paint);
}
} break;
case DRAW_TEXT_ON_PATH: {
const SkPaint& paint = *fPictureData->getPaint(reader);
TextContainer text;
get_text(reader, &text);
const SkPath& path = fPictureData->getPath(reader);
SkMatrix matrix;
reader->readMatrix(&matrix);
canvas->drawTextOnPath(text.text(), text.length(), path, &matrix, paint);
} break;
case DRAW_VERTICES: {
SkAutoTUnref<SkXfermode> xfer;
const SkPaint& paint = *fPictureData->getPaint(reader);
DrawVertexFlags flags = (DrawVertexFlags)reader->readInt();
SkCanvas::VertexMode vmode = (SkCanvas::VertexMode)reader->readInt();
int vCount = reader->readInt();
const SkPoint* verts = (const SkPoint*)reader->skip(vCount * sizeof(SkPoint));
const SkPoint* texs = NULL;
const SkColor* colors = NULL;
const uint16_t* indices = NULL;
int iCount = 0;
if (flags & DRAW_VERTICES_HAS_TEXS) {
texs = (const SkPoint*)reader->skip(vCount * sizeof(SkPoint));
}
if (flags & DRAW_VERTICES_HAS_COLORS) {
colors = (const SkColor*)reader->skip(vCount * sizeof(SkColor));
}
if (flags & DRAW_VERTICES_HAS_INDICES) {
iCount = reader->readInt();
indices = (const uint16_t*)reader->skip(iCount * sizeof(uint16_t));
}
if (flags & DRAW_VERTICES_HAS_XFER) {
int mode = reader->readInt();
if (mode < 0 || mode > SkXfermode::kLastMode) {
mode = SkXfermode::kModulate_Mode;
}
xfer.reset(SkXfermode::Create((SkXfermode::Mode)mode));
}
canvas->drawVertices(vmode, vCount, verts, texs, colors, xfer, indices, iCount, paint);
} break;
case RESTORE:
canvas->restore();
break;
case ROTATE:
canvas->rotate(reader->readScalar());
break;
case SAVE:
// SKPs with version < 29 also store a SaveFlags param.
if (size > 4) {
SkASSERT(8 == size);
reader->readInt();
}
canvas->save();
break;
case SAVE_LAYER: {
const SkRect* boundsPtr = get_rect_ptr(reader);
const SkPaint* paint = fPictureData->getPaint(reader);
canvas->saveLayer(boundsPtr, paint, (SkCanvas::SaveFlags) reader->readInt());
} break;
case SCALE: {
SkScalar sx = reader->readScalar();
SkScalar sy = reader->readScalar();
canvas->scale(sx, sy);
} break;
case SET_MATRIX: {
SkMatrix matrix;
reader->readMatrix(&matrix);
matrix.postConcat(initialMatrix);
canvas->setMatrix(matrix);
} break;
case SKEW: {
SkScalar sx = reader->readScalar();
SkScalar sy = reader->readScalar();
canvas->skew(sx, sy);
} break;
case TRANSLATE: {
SkScalar dx = reader->readScalar();
SkScalar dy = reader->readScalar();
canvas->translate(dx, dy);
} break;
default:
SkASSERT(0);
}
}
| {
"content_hash": "24c717f9cd53063bb7d00b271e668b0a",
"timestamp": "",
"source": "github",
"line_count": 514,
"max_line_length": 99,
"avg_line_length": 39.83657587548638,
"alnum_prop": 0.5574330924008596,
"repo_name": "xin3liang/platform_external_chromium_org_third_party_skia",
"id": "6197d88d6655e3d46ea07aee6a0852f8bda6fd97",
"size": "20619",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/core/SkPicturePlayback.cpp",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "51856"
},
{
"name": "C",
"bytes": "2128647"
},
{
"name": "C++",
"bytes": "24176087"
},
{
"name": "CSS",
"bytes": "17321"
},
{
"name": "Go",
"bytes": "29067"
},
{
"name": "Java",
"bytes": "24340"
},
{
"name": "JavaScript",
"bytes": "423148"
},
{
"name": "Objective-C",
"bytes": "49769"
},
{
"name": "Objective-C++",
"bytes": "111441"
},
{
"name": "Python",
"bytes": "567376"
},
{
"name": "Shell",
"bytes": "62081"
}
],
"symlink_target": ""
} |
require 'helper'
describe Octokit::Client::Issues do
before do
Octokit.reset!
@client = oauth_client
end
after do
Octokit.reset!
end
describe ".list_issues", :vcr do
it "returns issues for a repository" do
issues = @client.issues("sferik/rails_admin")
expect(issues).to be_kind_of Array
assert_requested :get, github_url("/repos/sferik/rails_admin/issues")
end
it "returns dashboard issues for the authenticated user" do
issues = @client.issues
expect(issues).to be_kind_of Array
assert_requested :get, github_url("/issues")
end
end # .list_issues
describe ".user_issues", :vcr do
it "returns issues for the authenticated user for owned and member repos" do
issues = @client.user_issues
expect(issues).to be_kind_of Array
assert_requested :get, github_url("/user/issues")
end
end # .user_issues
describe ".org_issues", :vcr do
it "returns issues for the organization for the authenticated user" do
issues = @client.org_issues(test_github_org)
expect(issues).to be_kind_of Array
assert_requested :get, github_url("/orgs/#{test_github_org}/issues")
end
end # .org_issues
context "with repository" do
before(:each) do
@repo = @client.create_repository("#{test_github_repository}_#{Time.now.to_f}")
end
after(:each) do
begin
@client.delete_repository(@repo.full_name)
rescue Octokit::NotFound
end
end
describe ".create_issue", :vcr do
it "creates an issue" do
issue = @client.create_issue \
@repo.full_name,
"Migrate issues to v3",
"Move all Issues calls to v3 of the API"
expect(issue.title).to match(/Migrate/)
assert_requested :post, github_url("/repos/#{@repo.full_name}/issues")
end
it "creates an issue with delimited labels" do
issue = @client.create_issue \
@repo.full_name,
"New issue with delimited labels",
"Testing",
:labels => "bug, feature"
expect(issue.title).to match(/delimited/)
expect(issue.labels.map(&:name)).to include("feature")
assert_requested :post, github_url("/repos/#{@repo.full_name}/issues")
end
it "creates an issue with labels array" do
issue = @client.create_issue \
@repo.full_name,
"New issue with labels array",
"Testing",
:labels => %w(bug feature)
expect(issue.title).to match(/array/)
expect(issue.labels.map(&:name)).to include("feature")
assert_requested :post, github_url("/repos/#{@repo.full_name}/issues")
end
it "creates an issue without body argument" do
issue = @client.create_issue(@repo.full_name, "New issue without body argument")
expect(issue.body).to be_nil
assert_requested :post, github_url("/repos/#{@repo.full_name}/issues")
end
end # .create_issue
context "with issue" do
before(:each) do
@issue = @client.create_issue(@repo.full_name, "Migrate issues to v3", "Move all Issues calls to v3 of the API")
end
describe ".issue", :vcr do
it "returns an issue" do
issue = @client.issue(@repo.full_name, @issue.number)
assert_requested :get, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}")
expect(issue.number).to eq(@issue.number)
end
it "returns a full issue" do
issue = @client.issue(@repo.full_name, @issue.number, :accept => 'application/vnd.github.full+json')
assert_requested :get, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}")
expect(issue.body_html).to include('<p>Move all')
expect(issue.body_text).to include('Move all')
end
end # .issue
describe ".close_issue", :vcr do
it "closes an issue" do
issue = @client.close_issue(@repo.full_name, @issue.number)
expect(issue.state).to eq "closed"
expect(issue.number).to eq(@issue.number)
assert_requested :patch, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}")
end
end # .close_issue
context "with closed issue" do
before(:each) do
@client.close_issue(@repo.full_name, @issue.number)
end
describe ".reopen_issue", :vcr do
it "reopens an issue" do
issue = @client.reopen_issue(@repo.full_name, @issue.number)
expect(issue.state).to eq "open"
expect(issue.number).to eq(@issue.number)
assert_requested :patch, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}"), :times => 2
end
end # .reopen_issue
end # with closed issue
describe ".lock_issue", :vcr do
it "locks an issue" do
@client.lock_issue(@repo.full_name, @issue.number)
assert_requested :put, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}/lock")
end
end # .lock_issue
context "with locked issue" do
before(:each) do
@client.lock_issue(@repo.full_name, @issue.number)
end
describe ".unlock_issue", :vcr do
it "unlocks an issue" do
@client.unlock_issue(@repo.full_name, @issue.number)
assert_requested :delete, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}/lock")
end
end # .unlock_issue
end # with locked issue
describe ".update_issue", :vcr do
it "updates an issue" do
issue = @client.update_issue(@repo.full_name, @issue.number, "Use all the v3 api!", "")
expect(issue.number).to eq(@issue.number)
assert_requested :patch, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}")
end
it "updates an issue without positional args" do
issue = @client.update_issue(@repo.full_name, @issue.number, :title => "Use all the v3 api!", :body => "")
expect(issue.number).to eq(@issue.number)
assert_requested :patch, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}")
end
end # .update_issue
describe ".add_comment", :vcr do
it "adds a comment" do
comment = @client.add_comment(@repo.full_name, @issue.number, "A test comment")
expect(comment.user.login).to eq(test_github_login)
assert_requested :post, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}/comments")
end
end # .add_comment
context "with issue comment" do
before(:each) do
@issue_comment = @client.add_comment(@repo.full_name, @issue.number, "Another test comment")
end
describe ".update_comment", :vcr do
it "updates an existing comment" do
@client.update_comment(@repo.full_name, @issue_comment.id, "A test comment update")
assert_requested :patch, github_url("/repos/#{@repo.full_name}/issues/comments/#{@issue_comment.id}")
end
end # .update_comment
describe ".delete_comment", :vcr do
it "deletes an existing comment" do
@client.delete_comment(@repo.full_name, @issue_comment.id)
assert_requested :delete, github_url("/repos/#{@repo.full_name}/issues/comments/#{@issue_comment.id}")
end
end # .delete_comment
end # with issue comment
describe ".issue_timeline", :vcr do
it "returns an issue timeline" do
timeline = @client.issue_timeline(@repo.full_name, @issue.number)
expect(timeline).to be_kind_of Array
assert_requested :get, github_url("/repos/#{@repo.full_name}/issues/#{@issue.number}/timeline")
end
end # .issue_timeline
end # with issue
end # with repo
describe ".repository_issues_comments", :vcr do
it "returns comments for all issues in a repository" do
comments = @client.issues_comments("octokit/octokit.rb")
expect(comments).to be_kind_of Array
assert_requested :get, github_url('/repos/octokit/octokit.rb/issues/comments')
end
end # .repository_issues_comments
describe ".issue_comments", :vcr do
it "returns comments for an issue" do
comments = @client.issue_comments("octokit/octokit.rb", 25)
expect(comments).to be_kind_of Array
assert_requested :get, github_url('/repos/octokit/octokit.rb/issues/25/comments')
end
end # .issue_comments
describe ".issue_comment", :vcr do
it "returns a single comment for an issue" do
comment = @client.issue_comment("octokit/octokit.rb", 1194690)
expect(comment.rels[:self].href).to eq("https://api.github.com/repos/octokit/octokit.rb/issues/comments/1194690")
assert_requested :get, github_url('/repos/octokit/octokit.rb/issues/comments/1194690')
end
end # .issue_comment
describe ".add_assignees", :vcr do
it "adds assignees" do
issue = @client.add_assignees('tomb0y/wheelbarrow', 10, ["tomb0y"])
expect(issue.assignees.count).not_to be_zero
assert_requested :post, github_url("repos/tomb0y/wheelbarrow/issues/10/assignees")
end
end # .add_assignees
end
| {
"content_hash": "ab29da436a855d00921edeb29113c45f",
"timestamp": "",
"source": "github",
"line_count": 240,
"max_line_length": 120,
"avg_line_length": 38.44583333333333,
"alnum_prop": 0.6195946678226942,
"repo_name": "LizzHale/octokit.rb",
"id": "2c5dd5d8ca9bdfc4563480842d303b5a8e3de039",
"size": "9227",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "spec/octokit/client/issues_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "38"
},
{
"name": "Ruby",
"bytes": "629513"
},
{
"name": "Shell",
"bytes": "1186"
}
],
"symlink_target": ""
} |
from django.contrib import admin
from .models import CertificateMonitor, DomainMonitor, IpMonitor, IndicatorAlert, IndicatorTag, CertificateSubscription, DomainSubscription, IpSubscription
from profiles.models import Profile
def subscription_owner(obj):
if type(obj) == CertificateMonitor:
owner = Profile.objects.filter(id__in=CertificateSubscription.objects.filter(certificate_id=obj.certificate_value).values('owner'));
elif type(obj) == DomainMonitor:
owner = Profile.objects.filter(id__in=DomainSubscription.objects.filter(domain_name_id=obj.domain_name).values('owner'));
elif type(obj) == IpMonitor:
owner = Profile.objects.filter(id__in=IpSubscription.objects.filter(ip_address_id=obj.ip_address).values('owner'));
return owner
class CertificateMonitorAdmin(admin.ModelAdmin):
owner = subscription_owner
list_display = ('certificate_value', 'last_hosts', 'modified', owner)
class IpMonitorAdmin(admin.ModelAdmin):
list_display = ('ip_address', 'last_hosts', 'modified', 'owner')
class DomainMonitorAdmin(admin.ModelAdmin):
list_display = ('domain_name', 'last_hosts', 'modified', 'owner')
class IndicatorAlertAdmin(admin.ModelAdmin):
list_display = ('indicator', 'message', 'created', 'recipient')
class IndicatorTagAdmin(admin.ModelAdmin):
list_display = ('tag', 'owner')
admin.site.register(IndicatorTag, IndicatorTagAdmin)
admin.site.register(CertificateMonitor, CertificateMonitorAdmin)
admin.site.register(IpMonitor, IpMonitorAdmin)
admin.site.register(DomainMonitor, DomainMonitorAdmin)
admin.site.register(IndicatorAlert, IndicatorAlertAdmin) | {
"content_hash": "e079165f48dee924af0c17ff88b1a8a6",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 155,
"avg_line_length": 37.15909090909091,
"alnum_prop": 0.7620795107033639,
"repo_name": "LindaTNguyen/RAPID",
"id": "d5004f9a81ae25172962f90c015a5710ff0d0a36",
"size": "1635",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "monitors/admin.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "184203"
},
{
"name": "HTML",
"bytes": "7180410"
},
{
"name": "JavaScript",
"bytes": "1702997"
},
{
"name": "PHP",
"bytes": "55444"
},
{
"name": "Python",
"bytes": "313767"
},
{
"name": "Shell",
"bytes": "31724"
}
],
"symlink_target": ""
} |
module MongoidMarkdownExtension
VERSION = '0.2.0'.freeze
end
| {
"content_hash": "85bb12a5e4a99bdfa32159e8b2458992",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 31,
"avg_line_length": 21,
"alnum_prop": 0.7777777777777778,
"repo_name": "tomasc/mongoid_markdown_extension",
"id": "f79065a6e56a083b2e354b48dfc85a98888f1739",
"size": "63",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/mongoid_markdown_extension/version.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "8931"
}
],
"symlink_target": ""
} |
layout: page
title: Citation styles
---
If you are not sure how to edit and add citation styles in Mendeley, you check out [this tutorial](https://blog.mendeley.com/2011/05/03/howto-edit-citation-styles-for-use-in-mendeley/).
*Please always check your references since there might be glitches in the code!*
Population Studies (Taylor & Francis, 2016) - [Mendeley .csl file](https://gist.github.com/alburezg/b946b7efb2864cec500de68a3a684dc0) | {
"content_hash": "1d9790627780374074d6557c0f63f3ff",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 185,
"avg_line_length": 55.25,
"alnum_prop": 0.7805429864253394,
"repo_name": "alburezg/alburezg.github.io",
"id": "89daebb8f17b3d9603f74e9ea1bb233c11cea488",
"size": "446",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "citations.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17877"
},
{
"name": "Dockerfile",
"bytes": "1101"
},
{
"name": "HTML",
"bytes": "27293"
},
{
"name": "JavaScript",
"bytes": "4356"
},
{
"name": "Ruby",
"bytes": "1105"
}
],
"symlink_target": ""
} |
@class NSArray, NSMutableArray, NSString;
@interface XCTouchGesture : NSObject <NSSecureCoding>
{
NSMutableArray *_touchPaths;
_Bool _immutable;
NSString *_name;
}
+ (_Bool)supportsSecureCoding;
- (void)addTouchPath:(id)arg1;
- (void)dealloc;
- (id)description;
- (void)encodeWithCoder:(id)arg1;
@property _Bool immutable; // @synthesize immutable=_immutable;
- (id)init;
- (id)initWithCoder:(id)arg1;
- (id)initWithName:(id)arg1;
- (void)makeImmutable;
@property(readonly) double maximumOffset;
@property(readonly, copy) NSString *name; // @synthesize name=_name;
@property(readonly) NSArray *touchPaths;
@end
| {
"content_hash": "b84ebc635ed702961077920f88362d87",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 68,
"avg_line_length": 25.08,
"alnum_prop": 0.7288676236044657,
"repo_name": "bootstraponline/xcuitest",
"id": "f0fd98a356f3120d5fce9654c97edce8d6643c8c",
"size": "883",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/Xcode_7.2_(7C68)/private_headers/XCTouchGesture.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Ruby",
"bytes": "3640"
}
],
"symlink_target": ""
} |
package com.intel.analytics.bigdl.nn.ops
import com.intel.analytics.bigdl.tensor.Tensor
import com.intel.analytics.bigdl.tensor.TensorNumericMath.{NumericWildCard, TensorNumeric}
import scala.reflect.ClassTag
class Sign[T: ClassTag, D: ClassTag]()(implicit ev: TensorNumeric[T], ev2: TensorNumeric[D])
extends Operation[Tensor[D], Tensor[D], T] {
output = Tensor[D]()
override def updateOutput(input: Tensor[D]): Tensor[D] = {
output.resizeAs(input).copy(input).sign()
output
}
override def getClassTagNumerics() : (Array[ClassTag[_]], Array[TensorNumeric[_]]) = {
(Array[ClassTag[_]](scala.reflect.classTag[T], scala.reflect.classTag[D]),
Array[TensorNumeric[_]](ev, ev2))
}
}
object Sign {
def apply[T: ClassTag, D: ClassTag]()(implicit ev: TensorNumeric[T],
ev2: TensorNumeric[D]): Sign[T, D] = new Sign()
}
| {
"content_hash": "e1901a69c3c20f0669b860147450b3c4",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 92,
"avg_line_length": 30.535714285714285,
"alnum_prop": 0.7017543859649122,
"repo_name": "i8run/BigDL-1",
"id": "e88c8b93d9b2fe9d6c97bd3d98273e53a52a340c",
"size": "1456",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/ops/Sign.scala",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "5170"
},
{
"name": "Java",
"bytes": "6829"
},
{
"name": "Lua",
"bytes": "1904"
},
{
"name": "Python",
"bytes": "1078431"
},
{
"name": "RobotFramework",
"bytes": "30098"
},
{
"name": "Scala",
"bytes": "9596593"
},
{
"name": "Shell",
"bytes": "55733"
}
],
"symlink_target": ""
} |
external help file: Microsoft.WindowsAzure.Commands.Storage.dll-Help.xml
ms.assetid: C21CC2FA-017E-492E-96E7-B37829917FAF
online version:
schema: 2.0.0
---
# Set-AzureStorageShareStoredAccessPolicy
## SYNOPSIS
Updates a stored access policy on a Storage share.
## SYNTAX
```
Set-AzureStorageShareStoredAccessPolicy [-ShareName] <String> [-Policy] <String> [-Permission <String>]
[-StartTime <DateTime>] [-ExpiryTime <DateTime>] [-NoStartTime] [-NoExpiryTime]
[-Context <AzureStorageContext>] [-ServerTimeoutPerRequest <Int32>] [-ClientTimeoutPerRequest <Int32>]
[-ConcurrentTaskCount <Int32>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```
## DESCRIPTION
The **Set-AzureStorageShareStoredAccessPolicy** cmdlet updates stored access policy on an Azure Storage share.
## EXAMPLES
### Example 1: Update a stored access policy in Storage share
```
PS C:\>Set-AzureStorageShareStoredAccessPolicy -ShareName "ContosoShare" -Policy "GeneralPolicy" -Permission "rwdl"
```
This command updates a stored access policy that has full permission in a share.
## PARAMETERS
### -ShareName
Specifies the name of the Storage share.
```yaml
Type: String
Parameter Sets: (All)
Aliases: N, Name
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```
### -Policy
Specifies a name for the stored access policy.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Permission
Specifies permissions in the stored access policy to access the share or files under it.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -StartTime
Specifies the time at which the stored access policy becomes valid.
```yaml
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ExpiryTime
Specifies the time at which the stored access policy becomes invalid.
```yaml
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -NoStartTime
Indicates that this cmdlet clears the **StartTime** property in the stored access policy.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -NoExpiryTime
Indicates that this cmdlet clears the **ExpiryTime** property in the stored access policy.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Context
Specifies an Azure storage context.
To obtain a storage context, use the [New-AzureStorageContext](./New-AzureStorageContext.md) cmdlet.
```yaml
Type: AzureStorageContext
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
```
### -ServerTimeoutPerRequest
Specifies the length of the time-out period for the server part of a request.
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ClientTimeoutPerRequest
Specifies the client-side time-out interval, in seconds, for one service request.
If the previous call fails in the specified interval, this cmdlet retries the request.
If this cmdlet does not receive a successful response before the interval elapses, this cmdlet returns an error.
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ConcurrentTaskCount
Specifies the maximum concurrent network calls.
You can use this parameter to limit the concurrency to throttle local CPU and bandwidth usage by specifying the maximum number of concurrent network calls.
The specified value is an absolute count and is not multiplied by the core count.
This parameter can help reduce network connection problems in low bandwidth environments, such as 100 kilobits per second.
The default value is 10.
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InformationAction
Specifies how this cmdlet responds to an information event.
The acceptable values for this parameter are:
- Continue
- Ignore
- Inquire
- SilentlyContinue
- Stop
- Suspend
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InformationVariable
Specifies an information variable.
```yaml
Type: String
Parameter Sets: (All)
Aliases: iv
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
## NOTES
## RELATED LINKS
[Get-AzureStorageShareStoredAccessPolicy](./Get-AzureStorageShareStoredAccessPolicy.md)
[New-AzureStorageContext](./New-AzureStorageContext.md)
[New-AzureStorageShareStoredAccessPolicy](./New-AzureStorageShareStoredAccessPolicy.md)
[Remove-AzureStorageShareStoredAccessPolicy](./Remove-AzureStorageShareStoredAccessPolicy.md)
| {
"content_hash": "86653f8160d31b0e985bb02963a937cb",
"timestamp": "",
"source": "github",
"line_count": 294,
"max_line_length": 314,
"avg_line_length": 22.58843537414966,
"alnum_prop": 0.7783466345429905,
"repo_name": "pankajsn/azure-powershell",
"id": "0cdd2df2a36bb828f39e219b04cda8e6613ecae4",
"size": "6645",
"binary": false,
"copies": "9",
"ref": "refs/heads/dev",
"path": "src/Storage/Commands.Storage/help/Set-AzureStorageShareStoredAccessPolicy.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "16509"
},
{
"name": "C#",
"bytes": "38528895"
},
{
"name": "HTML",
"bytes": "209"
},
{
"name": "JavaScript",
"bytes": "4979"
},
{
"name": "PHP",
"bytes": "41"
},
{
"name": "PowerShell",
"bytes": "3821358"
},
{
"name": "Ruby",
"bytes": "265"
},
{
"name": "Shell",
"bytes": "50"
},
{
"name": "XSLT",
"bytes": "6114"
}
],
"symlink_target": ""
} |
/* contains rules unsuitable for Netscape 4.x; simpler rules are in ns4_only.css. see <http://style.tigris.org/> */
/* colors, backgrounds, borders, link indication */
body {
background: #fff;
color: #000;
}
.app h3, .app h4, .app th, .tabs td, .tabs th, .functnbar {
background-image: url(../images/nw_min.gif);
background-repeat: no-repeat;
}
#navcolumn div div, body.docs #toc li li {
background-image: url(../images/strich.gif);
background-repeat: no-repeat;
background-position: .5em .5em;
}
#navcolumn div div.heading {
background-image: none;
}
.app h3, .app h4 {
color: #fff;
}
.app h3 {
background-color: #036;
}
.app h4 {
background-color: #888;
}
.a td {
background: #ddd;
}
.b td {
background: #efefef;
}
table, th, td {
border: none
}
.mtb {
border-top: solid 1px #ddd;
}
div.colbar {
background: #bbb;
}
div#banner {
border-top: 1px solid #369;
border-bottom: 1px solid #003;
}
div#helptext th {
border-bottom: 1px solid #996;
border-right: 1px solid #996;
}
div#helptext td {
border-bottom: 1px solid #cc9;
border-right: 1px solid #cc9;
}
.tabs {
border-bottom: .75em #888 solid;
}
.tabs th, .tabs td {
border-right: 1px solid #333;
}
.tabs td {
border-bottom: 1px solid #ddd;
}
#navcolumn {
background: #eee;
border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa;
}
#breadcrumbs {
border-bottom: 1px solid #aaa;
background-color: #ddd;
}
#navcolumn, #breadcrumbs {
border-top: 1px solid #fff;
}
#rightcol div.www, #rightcol div.help {
border: 1px solid #ddd;
}
div#navcolumn div.focus {
border-top: 1px solid #aaa;
border-left: 1px solid #aaa;
background-color: #fff;
}
body.docs div.docs {
background: #fff;
border-left: 1px solid #ddd;
border-top: 1px solid #ddd;
}
body.docs {
background: #eee url(../images/help_logo.gif) top right no-repeat !important;
}
.docs h3, .docs h4 {
border-top: solid 1px #000;
}
#alerterrormessage {
background: url(../images/icon_alert.gif) top left no-repeat !important;
}
.functnbar {
background-color: #aaa;
}
.functnbar2, .functnbar3 {
background: #aaa url(../images/sw_min.gif) no-repeat bottom left;
}
.functnbar3 {
background-color: #ddd;
}
.functnbar, .functnbar2, .functnbar3 {
color: #000;
}
.functnbar a, .functnbar2 a, .functnbar3 a {
color: #000;
text-decoration: underline;
}
#topmodule {
background: #ddd;
border-top: 1px solid #fff;
border-bottom: 1px solid #aaa;
border-right: 1px solid #aaa;
}
#topmodule #issueid {
border-right: 1px solid #aaa;
}
a:link, #navcolumn a:visited, .app a:visited, .tasknav a:visited {
color: blue;
}
a:active, a:hover, #leftcol a:active, #leftcol a:hover {
color: #f30 !important;
}
#login a:link, #login a:visited {
color: white;
text-decoration: underline;
}
#banner a:active, #banner a:hover {
color: #f90 !important;
}
#leftcol a, #breadcrumbs a {
text-decoration: none;
}
a:link.selfref, a:visited.selfref {
color: #555 !important;
text-decoration: none;
}
h2 .lastchild {
color: #777
}
.tabs td, .tabs th {
background-color: #ddd;
}
.app th {
background-color: #bbb;
}
.tabs th {
background-color: #888;
color: #fff;
}
.axial th {
background-color: #ddd;
color: black
}
.tabs td {
background-color: #ddd;
}
.alert {
color: #c00;
}
.confirm {
color: green;
}
.info {
color: blue;
}
.selection {
background: #ffc;
}
#login {
color: #fff;
}
#helptext th {
background: #cc9;
}
#helptext td {
background: #ffc;
}
.tabs a {
text-decoration: none;
}
#navcolumn div strong {
color: #000;
}
#banner, #banner td {
background: #036;
color: #fff;
}
body #banner #login a {
color: #fff;
}
/* font and text properties, exclusive of link indication, alignment, text-indent */
body, th, td, input, select, textarea, h2 small {
font-family: Verdana, Helvetica, Arial, sans-serif;
}
code, pre {
font-family: 'Andale Mono', Courier, monospace;
}
html body, body th, body td, textarea, h2 small, .app h3, .app h4, #rightcol h3, #bodycol pre, #bodycol code {
font-size: x-small;
voice-family: "\"}\"";
voice-family: inherit;
font-size: small
}
html>body, html>body th, html>body td, html>body input, html>body select, html>body textarea, html>body h2 small, html>body .app h3, html>body .app h4, html>body #rightcol h3, html>body #bodycol pre, html>body #bodycol code {
font-size: small
}
small, div#footer td, div#login, div#helptext th, div#helptext td, div.tabs th, div.tabs td, input, select, .paginate, .functnbar, .functnbar2, .functnbar3, #breadcrumbs td, .courtesylinks, #rightcol div.help, .colbar, .tasknav, body.docs div#toc {
font-size: xx-small;
voice-family: "\"}\"";
voice-family: inherit;
font-size: x-small
}
html>body small, html>body div#footer td, html>body div#login, html>body div#helptext td, html>body div#helptext th, html>body div.tabs th, html>body div.tabs td, html>body input, html>body select, html>body .paginate, html>body .functnbar, html>body .functnbar2, html>body .functnbar3, html>body #breadcrumbs td, html>body .courtesylinks, html>body #rightcol div.help, html>body .colbar, html>body .tasknav, html>body.docs #toc {
font-size: x-small
}
#bodycol h2 {
font-family: Tahoma, Verdana, Helvetica, Arial, sans-serif;
font-size: 1.5em;
font-weight: normal;
}
h2 small {
font-weight: bold;
letter-spacing: .06em;
}
dt {
font-weight: bold
}
#login .username {
font-weight: bold;
}
h4 {
font-size: 1em;
}
#breadcrumbs td {
font-weight: bold;
}
.selection {
font-weight: bold
}
/* box properties (exclusive of borders), positioning, alignments, list types, text-indent */
#bodycol h2 {
margin-top: .3em;
margin-bottom: .5em;
}
p, ul, ol, dl {
margin-top: .67em;
margin-bottom: .67em;
}
h3, h4 {
margin-bottom: 0;
}
form {
margin-top: 0;
margin-bottom: 0;
}
#bodycol {
padding-left: 12px;
padding-right: 12px;
width: 100%;
voice-family: "\"}\"";
voice-family: inherit;
width: auto;
}
html>body #bodycol {
width: auto;
}
.docs {
line-height: 1.4;
}
.app h3, .app h4 {
padding: 5px;
margin-right: 2px;
margin-left: 2px;
}
.h3 p, .h4 p, .h3 dt, .h4 dt {
margin-right: 7px;
margin-left: 7px;
}
.tasknav {
margin-bottom: 1.33em
}
div.colbar {
padding: 4px;
margin: 2px 2px 0;
}
.tabs {
margin-top: .67em;
margin-right: 2px;
margin-left: 2px;
}
#leftcol {
padding-bottom: .5em;
}
#breadcrumbs td {
vertical-align: middle;
padding: 2px 8px;
}
#rightcol div.www, #rightcol div.help {
padding: 0 .5em
}
#navcolumn {
margin: -8px -8px 0 -8px;
padding: 4px;
}
#navcolumn div {
padding-left: 5px
}
div#navcolumn div div {
margin-top: .3em;
margin-bottom: .3em;
}
div#navcolumn div.focus {
margin-top: -.1em;
padding: .2em 4px;
}
body.docs #toc {
position: absolute;
top: 15px;
left: 0px;
width: 120px;
padding: 0 20px 0 0
}
body.docs #toc ul, #toc ol {
margin-left: 0;
padding-left: 0;
}
body.docs #toc li {
margin-top: 7px;
padding-left: 10px;
list-style-type: none;
}
body.docs div.docs {
margin: 61px 0 0 150px;
padding: 1em 2em 1em 1em !important;
}
.docs p+p {
text-indent: 5%;
margin-top: -.67em
}
.docs h3, .docs h4 {
margin-bottom: .1em;
padding-top: .3em;
}
#alerterrormessage {
padding-left: 100px;
}
.functnbar, .functnbar2, .functnbar3 {
padding: 5px;
margin: .67em 2px;
}
#topmodule td {
vertical-align: middle;
padding: 2px 8px
}
body {
padding: 1em;
}
body.composite, body.docs {
margin: 0;
padding: 0;
}
th, td {
text-align: left;
vertical-align: top
}
.right {
text-align: right !important;
}
.center {
text-align: center !important;
}
.tabs td, .tabs th {
padding-left: 7px;
padding-right: 7px;
}
.axial th {
text-align: right;
}
.app .axial td th {
text-align: left;
}
body td .stb {
margin-top: 1em;
text-indent: 0;
}
body td .mtb {
margin-top: 2em;
text-indent: 0;
}
dd {
margin-bottom: .67em;
}
#footer {
margin: 4px
}
#helptext {
margin-top: 1em
}
#helptext td div {
margin: .5em
}
.courtesylinks {
margin-top: 1em;
padding-top: 1em
}
#navcolumn div {
margin-bottom: .5em;
}
#navcolumn div div {
margin-top: .3em
}
#navcolumn div div {
padding-left: 1em;
}
#banner, #banner td {
vertical-align: middle;
}
body.docs, body.nonav {
margin: 1em
}
| {
"content_hash": "ee6b77b227e181f52f1e0c4175b8fafd",
"timestamp": "",
"source": "github",
"line_count": 434,
"max_line_length": 430,
"avg_line_length": 18.933179723502302,
"alnum_prop": 0.6599732262382865,
"repo_name": "vkorbut/jibx",
"id": "3cf368de88e063c532264fc3d8770b529c2bc023",
"size": "8217",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "jibx/docs/style/tigris.css",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "5565541"
}
],
"symlink_target": ""
} |
[](https://travis-ci.org/PHPixie/Template)
[](https://codeclimate.com/github/PHPixie/Template)
[](https://codeclimate.com/github/PHPixie/Template)
[](http://hhvm.h4cc.de/package/phpixie/template)
[](https://twitter.com/dracony)
[](https://github.com/phpixie/template)
[](https://github.com/phpixie/template/blob/master/LICENSE)
[](https://packagist.org/packages/phpixie/template)
PHPixie Template uses PHP as the templating language, but can also handle layouts, content blocks, custom extensions and even custom formats. It’s super easy to use it to parse HAML, Markdown or whatever else you like. All you need to do is provide a compiler that will translate your format into a plain PHP template, the library will take care of caching the result, updating it when the files are modified etc. by itself.
**Inheritance**
It’s pretty inuitive to understand template inheritance, especially if you used Twig or even Smarty. Here is a quick example:
```php
<!--layout.php-->
<html>
<title>
<?php $this->block('title'); ?>
</title>
<body>
<?php $this->childContent(); ?>
</body>
</html>
``````php
<!--fairy.php-->
<?php $this->layout('layout'); ?>
<?php $this->startBlock('title'); ?>
Fairy page
<?php $this->endBlock(); ?>
<h2>Hello <?=$_($name) ?></h2>
```
Now lets render it:
```php
echo $template->render('fairy', array('name' => 'Pixie'));
```
```html
<html>
<title>Fairy page</title>
<body>
<h2>Hello Pixie</h2>
</body>
</html>
```
You can also include a subtemplate to render a partial:
```php
include $this->resolve('fairy');
```
**Template name resolution**
Usually templating libraries have some way of providing fallback tempates, that are used if the template you wan’t to use does not exist. And usually they handle it via some naming convention. PHPixie alows you to fine tune name resolutiion using 3 locator types:
- Directory – Maps template name to a folder location, simplest one
- Group – allows you to specify an array of locators. The template will be searched in those locators one by one until it’s found. This is used for providing fallbacks
- Prefix – allows you to route the resolution based on a prefix
This sounds more complex then it actually is, so let’s look at an example, assume the following config:
```php
$config = $slice->arrayData([
'resolver' => [
'locator' => [
'type' => 'prefix',
'locators' => [
'Site' => [
'directory' => __DIR__.'/site/',
],
'Theme' => [
'type' => 'group',
'locators' => [
[
'directory' => __DIR__.'/templates/',
],
[
'directory' => __DIR__.'/fallback/',
],
]
]
]
]
]
]);
```
It means that _Site::layout_ template will be searched for in the _site/_ folder, while the _Theme::home_ one will be searched for in _templates/_ and _fallback/_.
> When using the PHPixie Framework you define your locator in the `templateLocator.php` configuration file. Your locator will be prefixed
> using the name of your bundle.
**Extensions**
Extensions provide additional methods that you may use inside your views, they are helpful for things like formatting and escaping. As an example let’s look at the HTML extension:
```php
class HTML implements \PHPixie\Template\Extensions\Extension
{
public function name()
{
return 'html';
}
//Methods we would like to expose
public function methods()
{
return array('escape', 'output');
}
//Also we can assign aliases to some methods, meaning that they will also
//be assigned to a specified local variable
//In this case it allows us to use $_($name) instead of $this->escape($name)
public function aliases()
{
return array(
'_' => 'escape'
);
}
public function escape($string)
{
return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
}
public function output($string)
{
echo $this->escape($string);
}
}
```
Your Extensions then have to be injected in the library constructor just like Formats.
## Creating a custom format
So let’s try integrating it with Markdown, we’ll use [mthaml/mthaml](https://packagist.org/packages/mthaml/mthaml) for that:
```php
//composer.json
{
"require": {
"phpixie/template": "3.*@dev",
"phpixie/slice": "3.*@dev",
"mthaml/mthaml": "1.7.0"
}
}
```
And here is our compiler:
```php
class HamlFormat implements \PHPixie\Template\Formats\Format
{
protected $mtHaml;
public function __construct()
{
$this->mtHaml = new \MtHaml\Environment('php');
}
public function handledExtensions()
{
return array('haml'); // register which file extension we handle
}
public function compile($file)
{
$contents = file_get_contents($file);
return $this->mtHaml->compileString($contents, $file);
}
}
```
And now let’s inject it into Template:
```php
$slice = new \PHPixie\Slice();
$config = $slice->arrayData(array(
'resolver' => array(
'locator' => array(
//template directory
'directory' => __DIR__.'/templates/',
'defaultExtension' => 'haml',
)
),
'compiler' => array(
'cacheDirectory' => > __DIR__.'/cache/',
)
));
$template = new \PHPixie\Template($slice, $config, array(), array(
new HamlCompiler()
));
```
That’s it, we can now use HAML for our templates while retaining all the original features like Extensions and inheritance.
| {
"content_hash": "f188792d9b41baef11d28a7b4d508812",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 424,
"avg_line_length": 31.82125603864734,
"alnum_prop": 0.6248671625929861,
"repo_name": "PHPixie/Template",
"id": "ad63c1ae320a6155f84a0f1db1353f66923e618c",
"size": "6625",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "PHP",
"bytes": "64888"
}
],
"symlink_target": ""
} |
<?php
declare(strict_types=1);
namespace Doctrine\ORM;
use Doctrine\ORM\Mapping\ClassMetadata;
/**
* Makes a Persistent Object aware of its own object-manager.
*
* Using this interface the managing object manager and class metadata instances
* are injected into the persistent object after construction. This allows
* you to implement ActiveRecord functionality on top of the persistence-ignorance
* that Doctrine propagates.
*
* Word of Warning: This is a very powerful hook to change how you can work with your domain models.
* Using this hook will break the Single Responsibility Principle inside your Domain Objects
* and increase the coupling of database and objects.
*
* Every EntityManager has to implement this functionality itself.
*/
interface EntityManagerAware
{
/**
* Injects responsible EntityManager and the ClassMetadata into this persistent object.
*/
public function injectEntityManager(EntityManagerInterface $entityManager, ClassMetadata $classMetadata) : void;
}
| {
"content_hash": "2e4678d19fb598a319fcd3a1d04ec655",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 116,
"avg_line_length": 35.13793103448276,
"alnum_prop": 0.7782139352306182,
"repo_name": "stof/doctrine2",
"id": "1df09dd5a06aa0b05d5b996ae732caa990dbbf14",
"size": "1019",
"binary": false,
"copies": "9",
"ref": "refs/heads/master",
"path": "lib/Doctrine/ORM/EntityManagerAware.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "220"
},
{
"name": "PHP",
"bytes": "4578204"
},
{
"name": "Shell",
"bytes": "1544"
}
],
"symlink_target": ""
} |
package gce_pd
import (
"os"
"path"
"strconv"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/exec"
"k8s.io/kubernetes/pkg/util/mount"
"k8s.io/kubernetes/pkg/volume"
)
// This is the primary entrypoint for volume plugins.
func ProbeVolumePlugins() []volume.VolumePlugin {
return []volume.VolumePlugin{&gcePersistentDiskPlugin{nil}}
}
type gcePersistentDiskPlugin struct {
host volume.VolumeHost
}
var _ volume.VolumePlugin = &gcePersistentDiskPlugin{}
var _ volume.PersistentVolumePlugin = &gcePersistentDiskPlugin{}
const (
gcePersistentDiskPluginName = "kubernetes.io/gce-pd"
)
func (plugin *gcePersistentDiskPlugin) Init(host volume.VolumeHost) {
plugin.host = host
}
func (plugin *gcePersistentDiskPlugin) Name() string {
return gcePersistentDiskPluginName
}
func (plugin *gcePersistentDiskPlugin) CanSupport(spec *volume.Spec) bool {
return (spec.PersistentVolume != nil && spec.PersistentVolume.Spec.GCEPersistentDisk != nil) ||
(spec.Volume != nil && spec.Volume.GCEPersistentDisk != nil)
}
func (plugin *gcePersistentDiskPlugin) GetAccessModes() []api.PersistentVolumeAccessMode {
return []api.PersistentVolumeAccessMode{
api.ReadWriteOnce,
api.ReadOnlyMany,
}
}
func (plugin *gcePersistentDiskPlugin) NewBuilder(spec *volume.Spec, pod *api.Pod, _ volume.VolumeOptions) (volume.Builder, error) {
// Inject real implementations here, test through the internal function.
return plugin.newBuilderInternal(spec, pod.UID, &GCEDiskUtil{}, plugin.host.GetMounter())
}
func (plugin *gcePersistentDiskPlugin) newBuilderInternal(spec *volume.Spec, podUID types.UID, manager pdManager, mounter mount.Interface) (volume.Builder, error) {
// GCEPDs used directly in a pod have a ReadOnly flag set by the pod author.
// GCEPDs used as a PersistentVolume gets the ReadOnly flag indirectly through the persistent-claim volume used to mount the PV
var readOnly bool
var gce *api.GCEPersistentDiskVolumeSource
if spec.Volume != nil && spec.Volume.GCEPersistentDisk != nil {
gce = spec.Volume.GCEPersistentDisk
readOnly = gce.ReadOnly
} else {
gce = spec.PersistentVolume.Spec.GCEPersistentDisk
readOnly = spec.ReadOnly
}
pdName := gce.PDName
fsType := gce.FSType
partition := ""
if gce.Partition != 0 {
partition = strconv.Itoa(gce.Partition)
}
return &gcePersistentDiskBuilder{
gcePersistentDisk: &gcePersistentDisk{
podUID: podUID,
volName: spec.Name(),
pdName: pdName,
partition: partition,
mounter: mounter,
manager: manager,
plugin: plugin,
},
fsType: fsType,
readOnly: readOnly,
diskMounter: &mount.SafeFormatAndMount{mounter, exec.New()}}, nil
}
func (plugin *gcePersistentDiskPlugin) NewCleaner(volName string, podUID types.UID) (volume.Cleaner, error) {
// Inject real implementations here, test through the internal function.
return plugin.newCleanerInternal(volName, podUID, &GCEDiskUtil{}, plugin.host.GetMounter())
}
func (plugin *gcePersistentDiskPlugin) newCleanerInternal(volName string, podUID types.UID, manager pdManager, mounter mount.Interface) (volume.Cleaner, error) {
return &gcePersistentDiskCleaner{&gcePersistentDisk{
podUID: podUID,
volName: volName,
manager: manager,
mounter: mounter,
plugin: plugin,
}}, nil
}
// Abstract interface to PD operations.
type pdManager interface {
// Attaches the disk to the kubelet's host machine.
AttachAndMountDisk(b *gcePersistentDiskBuilder, globalPDPath string) error
// Detaches the disk from the kubelet's host machine.
DetachDisk(c *gcePersistentDiskCleaner) error
}
// gcePersistentDisk volumes are disk resources provided by Google Compute Engine
// that are attached to the kubelet's host machine and exposed to the pod.
type gcePersistentDisk struct {
volName string
podUID types.UID
// Unique identifier of the PD, used to find the disk resource in the provider.
pdName string
// Specifies the partition to mount
partition string
// Utility interface that provides API calls to the provider to attach/detach disks.
manager pdManager
// Mounter interface that provides system calls to mount the global path to the pod local path.
mounter mount.Interface
plugin *gcePersistentDiskPlugin
}
func detachDiskLogError(pd *gcePersistentDisk) {
err := pd.manager.DetachDisk(&gcePersistentDiskCleaner{pd})
if err != nil {
glog.Warningf("Failed to detach disk: %v (%v)", pd, err)
}
}
type gcePersistentDiskBuilder struct {
*gcePersistentDisk
// Filesystem type, optional.
fsType string
// Specifies whether the disk will be attached as read-only.
readOnly bool
// diskMounter provides the interface that is used to mount the actual block device.
diskMounter *mount.SafeFormatAndMount
}
var _ volume.Builder = &gcePersistentDiskBuilder{}
func (b *gcePersistentDiskBuilder) GetAttributes() volume.Attributes {
return volume.Attributes{
ReadOnly: b.readOnly,
Managed: !b.readOnly,
SupportsOwnershipManagement: true,
SupportsSELinux: true,
}
}
// SetUp attaches the disk and bind mounts to the volume path.
func (b *gcePersistentDiskBuilder) SetUp() error {
return b.SetUpAt(b.GetPath())
}
// SetUpAt attaches the disk and bind mounts to the volume path.
func (b *gcePersistentDiskBuilder) SetUpAt(dir string) error {
// TODO: handle failed mounts here.
notMnt, err := b.mounter.IsLikelyNotMountPoint(dir)
glog.V(4).Infof("PersistentDisk set up: %s %v %v", dir, !notMnt, err)
if err != nil && !os.IsNotExist(err) {
return err
}
if !notMnt {
return nil
}
globalPDPath := makeGlobalPDName(b.plugin.host, b.pdName)
if err := b.manager.AttachAndMountDisk(b, globalPDPath); err != nil {
return err
}
if err := os.MkdirAll(dir, 0750); err != nil {
// TODO: we should really eject the attach/detach out into its own control loop.
detachDiskLogError(b.gcePersistentDisk)
return err
}
// Perform a bind mount to the full path to allow duplicate mounts of the same PD.
options := []string{"bind"}
if b.readOnly {
options = append(options, "ro")
}
err = b.mounter.Mount(globalPDPath, dir, "", options)
if err != nil {
notMnt, mntErr := b.mounter.IsLikelyNotMountPoint(dir)
if mntErr != nil {
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
return err
}
if !notMnt {
if mntErr = b.mounter.Unmount(dir); mntErr != nil {
glog.Errorf("Failed to unmount: %v", mntErr)
return err
}
notMnt, mntErr := b.mounter.IsLikelyNotMountPoint(dir)
if mntErr != nil {
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
return err
}
if !notMnt {
// This is very odd, we don't expect it. We'll try again next sync loop.
glog.Errorf("%s is still mounted, despite call to unmount(). Will try again next sync loop.", dir)
return err
}
}
os.Remove(dir)
// TODO: we should really eject the attach/detach out into its own control loop.
detachDiskLogError(b.gcePersistentDisk)
return err
}
return nil
}
func makeGlobalPDName(host volume.VolumeHost, devName string) string {
return path.Join(host.GetPluginDir(gcePersistentDiskPluginName), "mounts", devName)
}
func (pd *gcePersistentDisk) GetPath() string {
name := gcePersistentDiskPluginName
return pd.plugin.host.GetPodVolumeDir(pd.podUID, util.EscapeQualifiedNameForDisk(name), pd.volName)
}
type gcePersistentDiskCleaner struct {
*gcePersistentDisk
}
var _ volume.Cleaner = &gcePersistentDiskCleaner{}
// Unmounts the bind mount, and detaches the disk only if the PD
// resource was the last reference to that disk on the kubelet.
func (c *gcePersistentDiskCleaner) TearDown() error {
return c.TearDownAt(c.GetPath())
}
// Unmounts the bind mount, and detaches the disk only if the PD
// resource was the last reference to that disk on the kubelet.
func (c *gcePersistentDiskCleaner) TearDownAt(dir string) error {
notMnt, err := c.mounter.IsLikelyNotMountPoint(dir)
if err != nil {
return err
}
if notMnt {
return os.Remove(dir)
}
refs, err := mount.GetMountRefs(c.mounter, dir)
if err != nil {
return err
}
// Unmount the bind-mount inside this pod
if err := c.mounter.Unmount(dir); err != nil {
return err
}
// If len(refs) is 1, then all bind mounts have been removed, and the
// remaining reference is the global mount. It is safe to detach.
if len(refs) == 1 {
// c.pdName is not initially set for volume-cleaners, so set it here.
c.pdName = path.Base(refs[0])
if err := c.manager.DetachDisk(c); err != nil {
return err
}
}
notMnt, mntErr := c.mounter.IsLikelyNotMountPoint(dir)
if mntErr != nil {
glog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)
return err
}
if notMnt {
if err := os.Remove(dir); err != nil {
return err
}
}
return nil
}
| {
"content_hash": "6fac5050a97075f22367ee49ae2daf05",
"timestamp": "",
"source": "github",
"line_count": 288,
"max_line_length": 164,
"avg_line_length": 30.74652777777778,
"alnum_prop": 0.7317899491812535,
"repo_name": "jackgr/kubernetes",
"id": "5624835fe2f177d71803031863c60ddda2a90db9",
"size": "9444",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "pkg/volume/gce_pd/gce_pd.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "15920270"
},
{
"name": "HTML",
"bytes": "1193991"
},
{
"name": "Makefile",
"bytes": "20081"
},
{
"name": "Nginx",
"bytes": "1013"
},
{
"name": "Python",
"bytes": "68188"
},
{
"name": "SaltStack",
"bytes": "39817"
},
{
"name": "Shell",
"bytes": "1083385"
}
],
"symlink_target": ""
} |
const fs = require('fs-extra')
const log = require('log4js').getLogger('buffer')
const path = require('path')
//
// Buffer implements the logging for buffering points in memory, while
// persisting them on disk in situations where the processing is temporarily
// malfunctioning.
//
const DATA_PATH = process.env.DATA_PATH || path.resolve(process.cwd(), 'data')
const QUEUE_PATH = path.resolve(DATA_PATH, '_queue')
const ERROR_PATH = path.resolve(DATA_PATH, '_error')
const WRITE_INTERVAL = process.env.WRITE_INTERVAL || 1000
const WRITE_BATCHSIZE = process.env.WRITE_BATCHSIZE || 1000
let ABORTED = false
let MEMBUFFER = []
let SEQUENTIAL_WRITE_ERRORS = 0
let WRITEFUNC = (points) => console.log(points)
//
// start initialises the buffer by preparing the buffer directories
// and starting the main processing loop.
//
async function start (writefunc) {
if (writefunc) WRITEFUNC = writefunc
_prepareDirectories()
_processBuffer()
}
// stop quits the buffer by quiting the main processing loop
// and persisting the remaining buffer.
async function stop () {
ABORTED = true
// persist the remaining buffer
await _persistBuffer()
}
// addPoints takes an array of points and pushes them to the in-memory buffer.
async function addPoints (points) {
let pts = points.map((p) => {
return {
measurement: p.metric.measurement,
datatype: p.metric.datatype,
value: p.value,
status: p.status,
timestamp: p.timestamp,
tags: p.metric.tags || {}
}
})
MEMBUFFER.push(...pts)
}
// _prepareDirectories initializes the directory that will be used to dump
// bufferfiles when processing temporarily fails.
function _prepareDirectories () {
// create a _queue directory for queued buffer files.
try {
fs.ensureDirSync(QUEUE_PATH)
} catch (e) {
if (e.code !== 'EEXIST') {
throw new Error('Could not create _queue dir [ ' + QUEUE_PATH +
' ]: ' + e.message)
}
}
// create an _error directory for invalid buffer files.
try {
fs.ensureDirSync(ERROR_PATH)
} catch (e) {
if (e.code !== 'EEXIST') {
throw new Error('Could not create _error dir [ ' + ERROR_PATH +
' ]: ' + e.message)
}
}
}
// _processBuffer contains the main logic for dealing with the buffered data.
// It checks if the in memory buffer has grown too big and persists it if
// required. After that, it will continue by processing the persisted
// bufferfiles until none are left, after which processing of the in memory
// buffer is resumed.
async function _processBuffer () {
if (ABORTED) return
let wait = WRITE_INTERVAL
// Check if buffer contains more than allowed. If it does, dump the buffer
// to disk. This should only be the case if there is something wrong with
// the influx connection.
if (MEMBUFFER.length > WRITE_BATCHSIZE * 2) {
await _persistBuffer()
}
// check for buffer files
let files = await fs.readdir(QUEUE_PATH)
if (files.length > 0) {
let writeErr = false
try {
await _processBufferFile(files[0])
} catch (e) {
writeErr = true
}
// if there was no error, don't wait.
if (!writeErr) wait = 0
} else if (MEMBUFFER.length > 0) {
let points = MEMBUFFER.splice(0, WRITE_BATCHSIZE)
try {
await WRITEFUNC(points)
if (points.length === WRITE_BATCHSIZE) {
wait = 0
log.warn('MaxBatchSize exceeded.', { max: WRITE_BATCHSIZE })
}
SEQUENTIAL_WRITE_ERRORS = 0
} catch (e) {
log.error('Failed to write points from membuffer.',
{ error: e.message })
SEQUENTIAL_WRITE_ERRORS++
wait = SEQUENTIAL_WRITE_ERRORS > 10 ? 20000 : 5000
log.error(`Will try again in ${wait / 1000}s.`)
// restore the errored points to the membuffer
MEMBUFFER.splice(0, 0, ...points)
}
}
setTimeout(() => { _processBuffer() }, wait)
}
// _persistBuffer persists the full contents of the in-memory buffer. It splits
// the content into files that contain at most processbatchsize points.
async function _persistBuffer () {
log.info('Persisting membuffer.')
let buffer = MEMBUFFER.splice(0)
MEMBUFFER = []
let count = 0
while (buffer.length > 0) {
let content = buffer.splice(0, WRITE_BATCHSIZE)
let ts = Date.now().toString()
let fp = path.resolve(QUEUE_PATH, ts + '_' + count + '.json')
try {
await fs.writeFile(fp, JSON.stringify(content))
log.info('Buffer persisted.', { bufferfile: fp })
} catch (e) {
log.error('Failed to dump buffer.', { error: e.message })
}
count++
}
}
// _processBufferFile takes a single bufferfile name as an argument and
// tries to load and parse that file and write its contents to InfluxDB. If
// loading / parsing / writing fails, the files is moved to the ../_invalid
// folder. If the InfluxDB service is unavailable, an error is thrown.
async function _processBufferFile (bufferFile) {
let points = []
let filepathQueue = path.resolve(QUEUE_PATH, bufferFile)
let filepathInvalid = path.resolve(ERROR_PATH, bufferFile)
log.info('Start processing of bufferfile', { file: filepathQueue })
// try loading the bufferfile and parse it to a javascript array.
let fileError = false
try {
let file = await fs.readFile(filepathQueue)
points = JSON.parse(file)
points
.map(p => {
p.timestamp = new Date(p.timestamp)
return p
}) // parse date strings
.filter(p => !isNaN(p.timestamp)) // remove any invalid dates (should not happen)
} catch (e) {
fileError = true
log.error('Failed to load bufferfile',
{ file: filepathQueue, error: e.message })
}
// If the parsing was successful (points.length > 0), we can try processing
// the points.
let writeError = false
if (points.length > 0) {
try {
await WRITEFUNC(points)
} catch (e) {
if (e.message.indexOf('ERR_INVALID') > -1) {
writeError = true
log.error('Invalid request sent.', { error: e.message })
} else {
log.error('Error writing points', { error: e.message })
// throw error up the stack.
throw new Error('API unavailable.')
}
}
}
// If there was an error in parsing the file or in writing the file, move it
// to the _invalid folder. Else, all went well, so delete the bufferfile.
if (fileError || writeError) {
try {
log.info('Moving invalid bufferfile.', { file: filepathQueue })
await fs.rename(filepathQueue, filepathInvalid)
} catch (e) {
log.error('Failed to move bufferfile.',
{ file: filepathQueue, error: e.message })
}
} else {
try {
log.info('Delete processed bufferfile.', { file: filepathQueue })
await fs.unlink(filepathQueue)
} catch (e) {
log.error('Failed to delete bufferfile.',
{ file: filepathQueue, error: e.message })
}
}
}
module.exports = { start, stop, addPoints }
| {
"content_hash": "29f587b914ba94ae8fa06354a6460133",
"timestamp": "",
"source": "github",
"line_count": 222,
"max_line_length": 87,
"avg_line_length": 31.175675675675677,
"alnum_prop": 0.6540962288686606,
"repo_name": "coussej/node-opcua-logger",
"id": "e0da74dcf7634a2fc0bead51b0485e041af6f59d",
"size": "6921",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/buffer.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "22294"
}
],
"symlink_target": ""
} |
require 'pathname'
$:.unshift Pathname.new(__FILE__).dirname.expand_path
require 'percy/irc'
require 'percy/formatting'
Thread.abort_on_exception = true
module Percy
VERSION = 'Percy 1.4.2 (http://github.com/tbuehlmann/percy)'
# set the percy root directory
Object::const_set(:PERCY_ROOT, Pathname.new($0).dirname.expand_path)
end
def delegate(*methods)
methods.each do |method|
eval <<-EOS
def #{method}(*args, &block)
Percy::IRC.send(#{method.inspect}, *args, &block)
end
EOS
end
end
delegate :action, :channel_limit, :configure, :connect, :is_online, :join, :kick, :message,
:mode, :nick, :notice, :on, :part, :quit, :raw, :topic, :users_on, :users_with_status_on,
:reload, :reloading?
| {
"content_hash": "3df22787120391f47da249462bf6394b",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 98,
"avg_line_length": 28.846153846153847,
"alnum_prop": 0.6586666666666666,
"repo_name": "tbuehlmann/percy",
"id": "00c94c9b7ebed0645a1d6ac3428b0b8a558269e4",
"size": "750",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/percy.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "18629"
}
],
"symlink_target": ""
} |
//
// ForegroundLayer.m
// Jipozhuan
//
// Created by sui toney on 11-2-2.
// Copyright 2011 ms. All rights reserved.
//
#import "ForegroundLayer.h"
#import "MoveController.h"
#import "ShootController.h"
#import "AlertController.h"
@implementation ForegroundLayer
-(id) init
{
// Apple recommends to re-assign "self" with the "super" return value
if( (self=[super init] )) {
self.isTouchEnabled = YES;
}
return self;
}
-(void) initControllers {
controllers = [[NSMutableArray alloc] init];
MoveController *controller1 = [[MoveController alloc] init];
ShootController *controller2 = [[ShootController alloc] init];
AlertController *controller3 = [[AlertController alloc] init];
[controllers addObject:controller1];
[controllers addObject:controller2];
[controllers addObject:controller3];
[controller1 addToScene:self];
[controller2 addToScene:self];
[controller3 addToScene:self];
[controller3 setTarget:controller];
/*
Character *ch1 = [[Character alloc] initWithChar:@"上" Size:25];
[ch1 setPositionX:[controller1 getPosition].x Y:[controller1 getPosition].y + 35];
[ch1 setColor:[Color R:255 G:255 B:255]];
[ch1 addToScene:self];
Character *ch2 = [[Character alloc] initWithChar:@"下" Size:25];
[ch2 setPositionX:[controller1 getPosition].x Y:[controller1 getPosition].y - 35];
[ch2 setColor:[Color R:255 G:255 B:255]];
[ch2 addToScene:self];
Character *ch3 = [[Character alloc] initWithChar:@"左" Size:25];
[ch3 setPositionX:[controller1 getPosition].x - 35 Y:[controller1 getPosition].y];
[ch3 setColor:[Color R:255 G:255 B:255]];
[ch3 addToScene:self];
Character *ch4 = [[Character alloc] initWithChar:@"右" Size:25];
[ch4 setPositionX:[controller1 getPosition].x + 35 Y:[controller1 getPosition].y];
[ch4 setColor:[Color R:255 G:255 B:255]];
[ch4 addToScene:self];
*/
}
-(void) removeControllers {
for (int i = [controllers count] - 1; i >= 0; i--) {
[[controllers objectAtIndex:i] removeFromCurrentScene];
[controllers removeObjectAtIndex:i];
}
}
- (void) ccTouchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
NSLog(@"Clicked");
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView: [touch view]];
CGPoint convertedLocation = [[CCDirector sharedDirector] convertToGL:location];
[self controllerPressed: convertedLocation];
}
- (void) ccTouchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView: [touch view]];
CGPoint convertedLocation = [[CCDirector sharedDirector] convertToGL:location];
[self controllerMoved: convertedLocation];
}
- (void) ccTouchesEnded:(NSSet*)touches withEvent:(UIEvent*)event {
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView: [touch view]];
CGPoint convertedLocation = [[CCDirector sharedDirector] convertToGL:location];
[self controllerReleased: convertedLocation];
}
-(void) controllerPressed: (CGPoint)location {
for (int i=0; i< [controllers count]; i++) {
[[controllers objectAtIndex:i] pressed:location];
}
}
-(void) controllerMoved: (CGPoint)location {
for (int i=0; i< [controllers count]; i++) {
[[controllers objectAtIndex:i] draged:location];
}
}
-(void) controllerReleased: (CGPoint)location {
for (int i=0; i< [controllers count]; i++) {
[[controllers objectAtIndex:i] released: location];
}
}
@end
| {
"content_hash": "c7b1af220f1c4f5f9a34a5918220162f",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 83,
"avg_line_length": 27.43548387096774,
"alnum_prop": 0.7175191064079953,
"repo_name": "Toneyisnow/Jipozhuan",
"id": "d382c095976f1c91a0acdea0f2a3521da80366ce",
"size": "3410",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Classes/ForegroundLayer.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "483119"
},
{
"name": "C++",
"bytes": "14481"
},
{
"name": "JavaScript",
"bytes": "61982"
},
{
"name": "Matlab",
"bytes": "656"
},
{
"name": "Objective-C",
"bytes": "1821525"
},
{
"name": "Perl",
"bytes": "54"
}
],
"symlink_target": ""
} |
Manage Scheme > Share Scheme
Edit the main Scheme
Test -> Post-Actions -> Add Run Script Action
Choose Provide build settings from man project
```
LOG_PATH=`echo "${BUILD_DIR}" | sed "s/Build\/Products/Logs\/Test/"`
"${SRCROOT}/test_runner.sh" "$LOG_PATH" "${SRCROOT}"
```
DELETE THIS WHEN YOU DO THIS
# <%= project_name %>
## Instructions
## Advanced
## Hints
| {
"content_hash": "d63267a0f3cd70a3dcfea961163f11ab",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 68,
"avg_line_length": 20.333333333333332,
"alnum_prop": 0.680327868852459,
"repo_name": "learn-co/learn-generate",
"id": "a4f1fea93b5ecd629af1193f803d59f06c357344",
"size": "391",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/templates/ios/.liftoff/templates/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "390"
},
{
"name": "Objective-C",
"bytes": "2968"
},
{
"name": "Python",
"bytes": "402"
},
{
"name": "Ruby",
"bytes": "44875"
},
{
"name": "Shell",
"bytes": "1453"
}
],
"symlink_target": ""
} |
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ghidra.dbg.test;
import static org.junit.Assert.*;
import static org.junit.Assume.assumeNotNull;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;
import org.junit.Test;
import ghidra.dbg.target.*;
import ghidra.dbg.target.schema.TargetObjectSchema;
/**
* Tests the functionality of a register bank
*
* <p>
* Note that multiple sub-cases of this test can be generated to separate
* testing various types of registers. E.g., one for user registers, one for
* control registers, another for vector registers, etc. The model developer
* should be thorough, and decide how best to break the tests down, depending on
* the mechanism the model uses to read and/or write to each set. Even if
* different cases are not used, the total register set should exercise all the
* various register types.
*/
public abstract class AbstractDebuggerModelRegistersTest extends AbstractDebuggerModelTest
implements RequiresTarget {
/**
* Get the expected (absolute) path of the target's (inner-most) register
* bank
*
* @param threadPath the path of the target (usually a thread)
* @return the expected path, or {@code null} for no assertion
*/
public List<String> getExpectedRegisterBankPath(List<String> threadPath) {
return null;
}
/**
* This has been a popular convention, and may soon become required
*
* <p>
* Background: Technically, the descriptions (register container) can be
* higher up the model tree, e.g., to apply to an entire process, rather
* than to specific threads. Of course, this might imply all threads have
* the same set of registers. That assumption seems intuitive, but on some
* platforms, e.g., dbgeng with WoW64, some threads may only have the 32-bit
* registers available. Even then, a process could present two register
* containers, one for the 64-bit and one for the 32-bit registers,
* assigning the bank's {@link TargetRegisterBank#getDescriptions()}
* attribute accordingly.
*
* <p>
* However, none of that really matters if you choose the
* banks-are-containers convention. The primary motivation for doing this is
* to present register values as attributes in the tree. This makes them
* accessible from the "Objects" window of the UI, which is significant,
* because using the "Registers" window requires the target be recorded into
* a trace. Thus, if this test detects that the model's
* {@link TargetRegisterBank}s are also {@link TargetRegisterContainer}s,
* then this method must return true, and it will further verify the
* {@link TargetObject#getValue()} attribute of each register object
* correctly reports the same values as
* {@link TargetRegisterBank#readRegistersNamed(Collection)}. TODO:
* Currently the value is given as a string, encoding the value in base-16.
* I'd rather it were a byte array.
*
* @return true if the convention is expected and should be tested, false if
* not
*/
public boolean isRegisterBankAlsoContainer() {
return true;
}
/**
* Get the values to write to the registers
*
* <p>
* This collection is used for validation in other tests. The descriptions
* are validated to have lengths consistent with the written values, and the
* read values are expected to have lengths equal to the written values.
*
* @return the name-value map to write, and use for validation
*/
public abstract Map<String, byte[]> getRegisterWrites();
/**
* This various slightly from the usual find pattern, since we attempt to
* find any thread first
*
* @param seedPath the path to the target or thread
* @return the bank, or {@code null} if one cannot be uniquely identified in
* a thread, or the target
* @throws Throwable if anything goes wrong
*/
protected TargetRegisterBank findRegisterBank(List<String> seedPath) throws Throwable {
return m.findWithIndex(TargetRegisterBank.class, "0", seedPath);
}
/**
* @param seedPath the path to the target or thread
* @return the set of banks
* @throws Throwable if anything goes wrong
*/
protected Map<List<String>, TargetRegisterBank> findRegisterBanks(List<String> seedPath) throws Throwable {
return m.findAll(TargetRegisterBank.class, seedPath, true);
}
@Test
public void testRegisterBankIsWhereExpected() throws Throwable {
m.build();
TargetObject target = maybeSubstituteThread(obtainTarget());
List<String> expectedRegisterBankPath =
getExpectedRegisterBankPath(target.getPath());
assumeNotNull(expectedRegisterBankPath);
TargetRegisterBank bank = findRegisterBank(target.getPath());
assertEquals(expectedRegisterBankPath, bank.getPath());
}
@Test
public void testBanksAreContainersConventionIsAsExpected() throws Throwable {
m.build();
boolean banksAreContainers = true;
for (TargetObjectSchema schema : m.getModel()
.getRootSchema()
.getContext()
.getAllSchemas()) {
if (schema.getInterfaces().contains(TargetRegisterBank.class)) {
banksAreContainers &=
schema.getInterfaces().contains(TargetRegisterContainer.class);
}
}
assertEquals(isRegisterBankAlsoContainer(), banksAreContainers);
}
@Test
public void testRegistersHaveExpectedSizes() throws Throwable {
m.build();
TargetObject target = maybeSubstituteThread(obtainTarget());
TargetRegisterBank bank = m.findWithIndex(TargetRegisterBank.class, "0", target.getPath());
TargetObject descriptions = bank.getDescriptions();
for (Entry<String, byte[]> ent : getRegisterWrites().entrySet()) {
String regName = ent.getKey();
TargetRegister reg =
m.findWithIndex(TargetRegister.class, regName, descriptions.getPath());
assertEquals(ent.getValue().length, (reg.getBitLength() + 7) / 8);
}
}
// TODO: Test cases for writing to non-existing registers (by name)
@Test
public void testReadRegisters() throws Throwable {
m.build();
TargetObject target = maybeSubstituteThread(obtainTarget());
TargetRegisterBank bank = m.findWithIndex(TargetRegisterBank.class, "0", target.getPath());
Map<String, byte[]> exp = getRegisterWrites();
Map<String, byte[]> read = waitOn(bank.readRegistersNamed(exp.keySet()));
assertEquals("Not all registers were read, or extras were read", exp.keySet(),
read.keySet());
// NB. The specimen is not expected to control the register values. Just validate lengths
for (String name : exp.keySet()) {
assertEquals(exp.get(name).length, read.get(name).length);
}
if (!isRegisterBankAlsoContainer()) {
return; // pass
}
for (String name : exp.keySet()) {
expectRegisterObjectValue(bank, name, read.get(name));
}
}
protected void expectRegisterObjectValue(TargetRegisterBank bank, String name, byte[] value)
throws Throwable {
retryVoid(() -> {
TargetRegister reg = m.findWithIndex(TargetRegister.class, name, bank.getPath());
assertNotNull(reg);
String actualHex = (String) reg.getValue();
assertNotNull(actualHex);
assertEquals(new BigInteger(1, value), new BigInteger(actualHex, 16));
}, List.of(AssertionError.class));
}
@Test
public void testWriteRegisters() throws Throwable {
m.build();
TargetObject target = maybeSubstituteThread(obtainTarget());
TargetRegisterBank bank = m.findWithIndex(TargetRegisterBank.class, "0", target.getPath());
Map<String, byte[]> write = getRegisterWrites();
waitOn(bank.writeRegistersNamed(write));
// NB. This only really tests the cache, if applicable. A scenario checks for efficacy.
Map<String, byte[]> read = waitOn(bank.readRegistersNamed(write.keySet()));
assertEquals("Not all registers were read, or extras were read", write.keySet(),
read.keySet());
for (String name : write.keySet()) {
assertArrayEquals(write.get(name), read.get(name));
}
if (!isRegisterBankAlsoContainer()) {
return; // pass
}
for (String name : write.keySet()) {
expectRegisterObjectValue(bank, name, read.get(name));
}
}
}
| {
"content_hash": "31fc00e210e541edb359039a4e57d8de",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 108,
"avg_line_length": 36.38461538461539,
"alnum_prop": 0.7316185106882781,
"repo_name": "NationalSecurityAgency/ghidra",
"id": "bc296217536d60025a39cc87bdc5beddce3b9935",
"size": "8514",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Ghidra/Debug/Framework-Debugging/src/test/java/ghidra/dbg/test/AbstractDebuggerModelRegistersTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "77536"
},
{
"name": "Batchfile",
"bytes": "21610"
},
{
"name": "C",
"bytes": "1132868"
},
{
"name": "C++",
"bytes": "7334484"
},
{
"name": "CSS",
"bytes": "75788"
},
{
"name": "GAP",
"bytes": "102771"
},
{
"name": "GDB",
"bytes": "3094"
},
{
"name": "HTML",
"bytes": "4121163"
},
{
"name": "Hack",
"bytes": "31483"
},
{
"name": "Haskell",
"bytes": "453"
},
{
"name": "Java",
"bytes": "88669329"
},
{
"name": "JavaScript",
"bytes": "1109"
},
{
"name": "Lex",
"bytes": "22193"
},
{
"name": "Makefile",
"bytes": "15883"
},
{
"name": "Objective-C",
"bytes": "23937"
},
{
"name": "Pawn",
"bytes": "82"
},
{
"name": "Python",
"bytes": "587415"
},
{
"name": "Shell",
"bytes": "234945"
},
{
"name": "TeX",
"bytes": "54049"
},
{
"name": "XSLT",
"bytes": "15056"
},
{
"name": "Xtend",
"bytes": "115955"
},
{
"name": "Yacc",
"bytes": "127754"
}
],
"symlink_target": ""
} |
title: arg41
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: g41
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:
alt: kkkk
---
| {
"content_hash": "9504474a28142b510a69fc2a5c1da3c2",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 61,
"avg_line_length": 22.333333333333332,
"alnum_prop": 0.6656716417910448,
"repo_name": "pblack/kaldi-hugo-cms-template",
"id": "6ed8e6b8f1062e45f514a82947ed21ee3eb15641",
"size": "339",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "site/content/pages2/arg41.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "94394"
},
{
"name": "HTML",
"bytes": "18889"
},
{
"name": "JavaScript",
"bytes": "10014"
}
],
"symlink_target": ""
} |
const highlighterDriverFactory = ({ element }) => {
return {
exists: () => !!element,
html: () => element.innerHTML,
getElement: () => element,
};
};
export default highlighterDriverFactory;
| {
"content_hash": "335815ffff452f944111957109102211",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 51,
"avg_line_length": 23.11111111111111,
"alnum_prop": 0.6201923076923077,
"repo_name": "wix/wix-style-react",
"id": "7ffd85165db03b1191bbba679a594feeaf5daffe",
"size": "208",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "packages/wix-style-react/src/Highlighter/Highlighter.driver.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "325595"
},
{
"name": "HTML",
"bytes": "20584"
},
{
"name": "JavaScript",
"bytes": "4465095"
},
{
"name": "Shell",
"bytes": "4264"
},
{
"name": "TypeScript",
"bytes": "219813"
}
],
"symlink_target": ""
} |
(function() {
var namespace = WEBLAB.namespace("WEBLAB.robots.webcam");
var CanvasFactory = WEBLAB.namespace("WEBLAB.utils.canvas.utils").CanvasFactory;
var EventDispatcher = WEBLAB.namespace("WEBLAB.utils.events").EventDispatcher;
var ListenerFunctions = WEBLAB.namespace("WEBLAB.utils.events").ListenerFunctions;
var WebCamEventTypes = WEBLAB.namespace("WEBLAB.robots.constants").WebCamEventTypes;
if (namespace.WebCamManager === undefined) {
var WebCamManager = function WebCamManager() {
this.me = this;
};
namespace.WebCamManager = WebCamManager;
var p = namespace.WebCamManager.prototype = new EventDispatcher();
var s = EventDispatcher.prototype;
p.init = function(swfURL, w, h, callback) {
// this.size = {w:this.roundToNearestMultipleOf(15, w), h:this.roundToNearestMultipleOf(15, h)};
this.size = {
w: w,
h: h
};
this.useWebCamImage = callback;
this.webRTC = (navigator.webkitGetUserMedia == undefined) ? false : true;
console.log('WebRTC available:', this.webRTC);
// this.webRTC = true; //MENOTE: is this a debug setting or are we not using webRTC
if (this.webRTC) this.useRTC();
else this.useFlash(swfURL);
};
p.destroy = function() {
if (this.webCam && this.webCam.parentNode) {
this.webCam.parentNode.removeChild(this.webCam);
this.webCam = null;
}
};
p.reset = function() {
var stoppedVideoCanvas = document.getElementById('stoppedVideoCanvas');
if (stoppedVideoCanvas) {
stoppedVideoCanvas.parentNode.removeChild(stoppedVideoCanvas);
}
if (this.webCam)
this.webCam.style.display = null;
var canvas = document.getElementById('stoppedWebCam');
if (canvas) {
canvas.parentNode.removeChild(canvas);
this.canvas = null;
}
};
p.roundToNearestMultiple = function(roundTo, value) {
var b = Math.round(value / roundTo);
return roundTo * b;
}
p.takePicture = function(onFaceChecked) {
//console.log('take picture');
this.onFaceChecked = onFaceChecked;
if (this.webRTC) this.takeRTCPicture();
else this.webCam.takeFlashPicture();
};
p.encodePicture = function() {
//console.log('encode picture');
// This was checking for a face twice when using webRTC
// if (this.webRTC) this.checkFace();
// else this.webCam.encodeFlashPicture();
if (!this.webRTC) this.webCam.encodeFlashPicture();
}
p.setUpWebCamAgain = function() {
var restartingCamera = true;
if (this.webRTC) restartingCamera = false;
else this.webCam.restartCamera();
return restartingCamera;
}
////////////// WebRTC Webcam ///////////////
p.useRTC = function() {
this.webCam = document.createElement("video");
this.webCam.id = "webCam";
this.webCam.width = this.size.w;
this.webCam.height = 352;
this.webCam.setAttribute('camPhase', 'intro');
this.webCam.setAttribute('autoplay', 'true');
this.webCam.style.display = null;
this.webCam.style.webkitTransform = 'scaleX(-1)';
this.dispatchCustomEvent(WebCamEventTypes.NEED_WEBRTC_PERMISSION, this.canvas);
document.getElementById("webCamPreviewHolder").appendChild(this.webCam);
// navigator.webkitGetUserMedia('video', this.gotRTCStream.bind(this), this.noRTCStream.bind(this));
navigator.webkitGetUserMedia({
audio: false,
video: true
}, this.gotRTCStream.bind(this), this.noRTCStream.bind(this));
}
p.takeRTCPicture = function() {
var ctx = CanvasFactory.create(468, 352);
ctx.save();
ctx.translate(ctx.canvas.width, 0);
ctx.scale(-1, 1);
ctx.drawImage(this.webCam, 0, 0, ctx.canvas.width, ctx.canvas.height);
ctx.restore();
this.canvas = ctx.canvas;
//this.stopRTCcam();
var stoppedVideoCanvas = CanvasFactory.clone(this.canvas).canvas;
stoppedVideoCanvas.id = 'stoppedWebCam';
stoppedVideoCanvas.setAttribute('camPhase', 'active');
// without this and removing the parent's children (below), it sits to the right, then jumps back on inspection - browser bug..?
stoppedVideoCanvas.style.position = 'relative';
stoppedVideoCanvas.style.left = '0px';
var webCamBox = document.getElementById('webCamPreviewHolder');
if (this.webCam) this.webCam.style.display = 'none';
webCamBox.appendChild(stoppedVideoCanvas);
this.dispatchCustomEvent(WebCamEventTypes.PICTURE_TAKEN, this.canvas);
}
p.gotRTCStream = function(stream) {
console.log('gotRTCStream!');
this.webCam.setAttribute('camPhase', 'active');
this.webCam.src = webkitURL.createObjectURL(stream);
this.webCam.onerror = this.noRTCStream;
this.dispatchCustomEvent(WebCamEventTypes.WEBCAM_READY, this);
}
p.noRTCStream = function() {
if (!this.webCam) return; //false alarm!
//console.log('WEB RTC FAILED!');
this.dispatchCustomEvent(WebCamEventTypes.WEBCAM_ACCESS_DENIED, this);
}
p.stopRTCcam = function() {
console.log("STOP RTC CAM");
this.webCam.src = "";
}
////////////// Flash Webcam ///////////////
p.useFlash = function(swfURL) {
var div = document.createElement("div");
div.id = 'webCam';
var webCamBox = document.getElementById("webCamPreviewHolder");
if (webCamBox.hasChildNodes()) webCamBox.insertBefore(div, webCamBox.childNodes[0]);
else webCamBox.appendChild(div);
var swfVersionStr = "0";
var xiSwfUrlStr = "";
var flashvars = {
webCamManagerInstance: 'robotsWebCamManager'
};
var params = {
wmode: 'transparent'
};
var attributes = {
name: "webCam",
camPhase: 'intro',
visible: 'false'
};
swfobject.embedSWF(
swfURL,
'webCam', this.size.w, this.size.h,
'10', null,
flashvars, params, attributes, this.flashLoaded.bind(this.me)
);
}
p.flashLoaded = function(e) {
console.log("Flash loaded ok");
this.webCam = document.getElementById('webCam');
this.webCam.className += ' ease-in06';
this.webCam.style.display = null;
}
p.allowed = function() {
this.webCam.setAttribute('camPhase', 'active');
this.dispatchCustomEvent(WebCamEventTypes.WEBCAM_READY, this);
}
p.addEvent = function(type, callback) {
return this.addEventListener(type, callback, false);
}
p.denied = function() {
this.dispatchCustomEvent(WebCamEventTypes.WEBCAM_ACCESS_DENIED, this);
}
p.noWebCam = function() {
this.dispatchCustomEvent(WebCamEventTypes.WEBCAM_NOT_FOUND, this);
}
p.processFlashImage = function(data) {
//MENOTE: this is called from flash
this.faceImage = new Image();
this.faceImage.onload = this.onFlashImageLoad.bind(this);
this.faceImage.src = "data:image/jpeg;base64," + data;
};
p.onFlashImageLoad = function() {
this.canvas = this.canvas || document.createElement('canvas');
this.canvas.width = this.faceImage.width; // this.roundToNearestMultipleOf(15, this.faceImage.width);
this.canvas.height = this.faceImage.height; // this.roundToNearestMultipleOf(15, this.faceImage.height);
var ctx = this.canvas.getContext('2d');
ctx.drawImage(this.faceImage, 0, 0, this.canvas.width, this.canvas.height);
//this.checkFace(); //MENOTE: this is the old face check call
this.dispatchCustomEvent(WebCamEventTypes.PICTURE_TAKEN, this.canvas);
};
}
})();
| {
"content_hash": "c284bf716665abcacfb2bb4ca49fba4f",
"timestamp": "",
"source": "github",
"line_count": 259,
"max_line_length": 140,
"avg_line_length": 33.66023166023166,
"alnum_prop": 0.5689378297774719,
"repo_name": "mattjjohnson007/ChromeWebLab",
"id": "2aaa674ac9abd94443dbebe241bf5d24a098fb58",
"size": "9312",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "Sketchbots/sw/ui/controller/libs/weblab/robots/webcam/WebCamManager.js",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "ActionScript",
"bytes": "10732"
},
{
"name": "Arduino",
"bytes": "5683"
},
{
"name": "C++",
"bytes": "5834"
},
{
"name": "CSS",
"bytes": "61464"
},
{
"name": "Eagle",
"bytes": "88470"
},
{
"name": "HTML",
"bytes": "35646"
},
{
"name": "JavaScript",
"bytes": "2526255"
},
{
"name": "Max",
"bytes": "95700"
},
{
"name": "Prolog",
"bytes": "981"
},
{
"name": "Python",
"bytes": "423291"
},
{
"name": "Shell",
"bytes": "5000"
}
],
"symlink_target": ""
} |
package org.apache.druid.segment.realtime.firehose;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.TrueFileFilter;
import org.apache.commons.io.filefilter.WildcardFileFilter;
import org.apache.druid.data.input.FiniteFirehoseFactory;
import org.apache.druid.data.input.InputSplit;
import org.apache.druid.data.input.impl.AbstractTextFilesFirehoseFactory;
import org.apache.druid.data.input.impl.StringInputRowParser;
import org.apache.druid.java.util.emitter.EmittingLogger;
import org.apache.druid.utils.CompressionUtils;
import javax.annotation.Nullable;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
/**
* Firehose that reads data from files on local disk
*/
public class LocalFirehoseFactory extends AbstractTextFilesFirehoseFactory<File>
{
private static final EmittingLogger log = new EmittingLogger(LocalFirehoseFactory.class);
private final File baseDir;
private final String filter;
@Nullable
private final StringInputRowParser parser;
@JsonCreator
public LocalFirehoseFactory(
@JsonProperty("baseDir") File baseDir,
@JsonProperty("filter") String filter,
// Backwards compatible
@Nullable @JsonProperty("parser") StringInputRowParser parser
)
{
this.baseDir = baseDir;
this.filter = filter;
this.parser = parser;
}
@JsonProperty
public File getBaseDir()
{
return baseDir;
}
@JsonProperty
public String getFilter()
{
return filter;
}
@JsonProperty
@Nullable
public StringInputRowParser getParser()
{
return parser;
}
@Override
protected Collection<File> initObjects()
{
final Collection<File> files = FileUtils.listFiles(
Preconditions.checkNotNull(baseDir).getAbsoluteFile(),
new WildcardFileFilter(filter),
TrueFileFilter.INSTANCE
);
log.info("Initialized with " + files + " files");
return files;
}
@Override
protected InputStream openObjectStream(File object) throws IOException
{
return FileUtils.openInputStream(object);
}
@Override
protected InputStream wrapObjectStream(File object, InputStream stream) throws IOException
{
return CompressionUtils.decompress(stream, object.getPath());
}
@Override
public FiniteFirehoseFactory<StringInputRowParser, File> withSplit(InputSplit<File> split)
{
final File newFile = split.get();
final File baseDir = newFile.getParentFile();
final String filter = newFile.getName();
return new LocalFirehoseFactory(baseDir, filter, parser);
}
}
| {
"content_hash": "ec78e7132daa16b759586ea34c8a5692",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 92,
"avg_line_length": 27.41,
"alnum_prop": 0.7570229843122948,
"repo_name": "deltaprojects/druid",
"id": "beb713adf2d59a1fb6c772aed1658d2b7c2ed082",
"size": "3548",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "server/src/main/java/org/apache/druid/segment/realtime/firehose/LocalFirehoseFactory.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "4575"
},
{
"name": "CSS",
"bytes": "101151"
},
{
"name": "Dockerfile",
"bytes": "7491"
},
{
"name": "HTML",
"bytes": "20210"
},
{
"name": "Java",
"bytes": "25726182"
},
{
"name": "JavaScript",
"bytes": "356973"
},
{
"name": "Makefile",
"bytes": "659"
},
{
"name": "PostScript",
"bytes": "5"
},
{
"name": "Python",
"bytes": "53060"
},
{
"name": "R",
"bytes": "17002"
},
{
"name": "Roff",
"bytes": "3617"
},
{
"name": "Shell",
"bytes": "49585"
},
{
"name": "TSQL",
"bytes": "8021"
},
{
"name": "TeX",
"bytes": "399508"
},
{
"name": "Thrift",
"bytes": "1003"
},
{
"name": "TypeScript",
"bytes": "847969"
}
],
"symlink_target": ""
} |
{% extends "base/navbar.html" %}
{% block content %}
<!-- Set the title of the page to be what is on the page -->
<title>HealthNet - Preferred Hospitals</title>
<div id='form-container'>
<form id="Preferred Hospitals" method="post" action="{% url 'profile:preferredHospitals' patient.id %}">
{% csrf_token %}
<h3>What hospital would you prefer to visit? </h3>
{{ form.as_p }}
<a class='neutral' href="{% url 'profile:viewProfile' %}">Cancel</a>
<input class='confirm' type="submit" name='submit' value="Add hospital"/>
</form>
</div>
{% endblock content %}
| {
"content_hash": "05a48f5a0098e8d83a4c84e6442f2f26",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 108,
"avg_line_length": 35.611111111111114,
"alnum_prop": 0.5881435257410297,
"repo_name": "blackpan2/HealthNet",
"id": "53ec46ee2cef0aa676ba838dae01135cfcaa0676",
"size": "641",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/healthnet/userprofile/templates/userprofile/preferredHospital.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "36066"
},
{
"name": "HTML",
"bytes": "214171"
},
{
"name": "JavaScript",
"bytes": "319793"
},
{
"name": "Python",
"bytes": "279530"
}
],
"symlink_target": ""
} |
#pragma once
#include <aws/eventbridge/EventBridge_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace EventBridge
{
namespace Model
{
/**
* <p>The retry strategy to use for failed jobs, if the target is an Batch job. If
* you specify a retry strategy here, it overrides the retry strategy defined in
* the job definition.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/BatchRetryStrategy">AWS
* API Reference</a></p>
*/
class AWS_EVENTBRIDGE_API BatchRetryStrategy
{
public:
BatchRetryStrategy();
BatchRetryStrategy(Aws::Utils::Json::JsonView jsonValue);
BatchRetryStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 1–10.</p>
*/
inline int GetAttempts() const{ return m_attempts; }
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 1–10.</p>
*/
inline bool AttemptsHasBeenSet() const { return m_attemptsHasBeenSet; }
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 1–10.</p>
*/
inline void SetAttempts(int value) { m_attemptsHasBeenSet = true; m_attempts = value; }
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 1–10.</p>
*/
inline BatchRetryStrategy& WithAttempts(int value) { SetAttempts(value); return *this;}
private:
int m_attempts;
bool m_attemptsHasBeenSet;
};
} // namespace Model
} // namespace EventBridge
} // namespace Aws
| {
"content_hash": "6dc63149a330262c1a78b2dc9ff90f0e",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 96,
"avg_line_length": 26.130434782608695,
"alnum_prop": 0.663338879645036,
"repo_name": "cedral/aws-sdk-cpp",
"id": "2ca87a3700fa37199953a207452ae506079cfb5f",
"size": "1930",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "aws-cpp-sdk-eventbridge/include/aws/eventbridge/model/BatchRetryStrategy.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "294220"
},
{
"name": "C++",
"bytes": "428637022"
},
{
"name": "CMake",
"bytes": "862025"
},
{
"name": "Dockerfile",
"bytes": "11688"
},
{
"name": "HTML",
"bytes": "7904"
},
{
"name": "Java",
"bytes": "352201"
},
{
"name": "Python",
"bytes": "106761"
},
{
"name": "Shell",
"bytes": "10891"
}
],
"symlink_target": ""
} |
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<AllStuff>
<Product label="Toys">
<children label="Toy Bear"/>
<children label="Action Figure" />
<children label="Creepy Creatures" />
</Product>
<Product label="Cookware">
<children label="Grill Pan"/>
<children label="Slow Cooker" />
<children label="Whisk" />
<children label="Mixing Bowls" />
<children label="Dishes" />
</Product>
<Product label="Clothing">
<children label="Sweaters"/>
<children label="Shoes" />
<children label="Jackets" />
</Product>
<Product label="Furniture">
<children label="Couch"/>
<children label="Lamps" />
<children label="Beds" />
</Product>
</AllStuff> | {
"content_hash": "65ce63adbb55baf8b1333825e9b660e6",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 74,
"avg_line_length": 33.23255813953488,
"alnum_prop": 0.7207837648705389,
"repo_name": "shyamalschandra/flex-sdk",
"id": "579bc4d61b480703a211c6b09079d06af59bb81b",
"size": "1429",
"binary": false,
"copies": "10",
"ref": "refs/heads/master",
"path": "mustella/tests/apollo/FlexNativeMenu/SWFs/Assets/myXMLFile.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AGS Script",
"bytes": "478"
},
{
"name": "ASP",
"bytes": "6381"
},
{
"name": "ActionScript",
"bytes": "34905828"
},
{
"name": "Awk",
"bytes": "1958"
},
{
"name": "Batchfile",
"bytes": "40336"
},
{
"name": "C",
"bytes": "4601"
},
{
"name": "C++",
"bytes": "10259"
},
{
"name": "CSS",
"bytes": "508448"
},
{
"name": "Groff",
"bytes": "59633"
},
{
"name": "HTML",
"bytes": "84174"
},
{
"name": "Java",
"bytes": "15072097"
},
{
"name": "JavaScript",
"bytes": "110516"
},
{
"name": "PureBasic",
"bytes": "362"
},
{
"name": "Shell",
"bytes": "306431"
},
{
"name": "Visual Basic",
"bytes": "4498"
},
{
"name": "XSLT",
"bytes": "757371"
}
],
"symlink_target": ""
} |
namespace OrchardCore.Shells.Database.Configuration
{
public class DatabaseShellsStorageOptions
{
public bool MigrateFromFiles { get; set; }
public string DatabaseProvider { get; set; }
public string ConnectionString { get; set; }
public string TablePrefix { get; set; }
}
}
| {
"content_hash": "a5cfd154860d6188d02439debc464788",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 52,
"avg_line_length": 31.9,
"alnum_prop": 0.6739811912225705,
"repo_name": "petedavis/Orchard2",
"id": "7e6ef02305b1381e06c3e95e9a09f5976fd2efac",
"size": "319",
"binary": false,
"copies": "6",
"ref": "refs/heads/spatial",
"path": "src/OrchardCore/OrchardCore.Infrastructure/Shells.Database/Configuration/DatabaseShellsStorageOptions.cs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C#",
"bytes": "2965569"
},
{
"name": "CSS",
"bytes": "1051211"
},
{
"name": "HTML",
"bytes": "37155"
},
{
"name": "JavaScript",
"bytes": "1875847"
},
{
"name": "Liquid",
"bytes": "8676"
},
{
"name": "PHP",
"bytes": "1241"
}
],
"symlink_target": ""
} |
extern "C" {
#endif
__isl_overload
__isl_give isl_aff *isl_aff_zero_on_domain_space(__isl_take isl_space *space);
__isl_export
__isl_give isl_aff *isl_space_zero_aff_on_domain(__isl_take isl_space *space);
__isl_give isl_aff *isl_aff_zero_on_domain(__isl_take isl_local_space *ls);
__isl_give isl_aff *isl_aff_val_on_domain_space(__isl_take isl_space *space,
__isl_take isl_val *val);
__isl_give isl_aff *isl_aff_val_on_domain(__isl_take isl_local_space *ls,
__isl_take isl_val *val);
__isl_give isl_aff *isl_aff_var_on_domain(__isl_take isl_local_space *ls,
enum isl_dim_type type, unsigned pos);
__isl_give isl_aff *isl_aff_nan_on_domain_space(__isl_take isl_space *space);
__isl_give isl_aff *isl_aff_nan_on_domain(__isl_take isl_local_space *ls);
__isl_give isl_aff *isl_aff_param_on_domain_space_id(
__isl_take isl_space *space, __isl_take isl_id *id);
__isl_overload
__isl_give isl_aff *isl_space_param_aff_on_domain_id(
__isl_take isl_space *space, __isl_take isl_id *id);
__isl_give isl_aff *isl_aff_copy(__isl_keep isl_aff *aff);
__isl_null isl_aff *isl_aff_free(__isl_take isl_aff *aff);
isl_ctx *isl_aff_get_ctx(__isl_keep isl_aff *aff);
uint32_t isl_aff_get_hash(__isl_keep isl_aff *aff);
isl_bool isl_aff_involves_locals(__isl_keep isl_aff *aff);
isl_size isl_aff_dim(__isl_keep isl_aff *aff, enum isl_dim_type type);
isl_bool isl_aff_involves_dims(__isl_keep isl_aff *aff,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_give isl_space *isl_aff_get_domain_space(__isl_keep isl_aff *aff);
__isl_give isl_space *isl_aff_get_space(__isl_keep isl_aff *aff);
__isl_give isl_local_space *isl_aff_get_domain_local_space(
__isl_keep isl_aff *aff);
__isl_give isl_local_space *isl_aff_get_local_space(__isl_keep isl_aff *aff);
const char *isl_aff_get_dim_name(__isl_keep isl_aff *aff,
enum isl_dim_type type, unsigned pos);
__isl_export
__isl_give isl_val *isl_aff_get_constant_val(__isl_keep isl_aff *aff);
__isl_give isl_val *isl_aff_get_coefficient_val(__isl_keep isl_aff *aff,
enum isl_dim_type type, int pos);
int isl_aff_coefficient_sgn(__isl_keep isl_aff *aff,
enum isl_dim_type type, int pos);
__isl_give isl_val *isl_aff_get_denominator_val(__isl_keep isl_aff *aff);
__isl_give isl_aff *isl_aff_set_constant_si(__isl_take isl_aff *aff, int v);
__isl_give isl_aff *isl_aff_set_constant_val(__isl_take isl_aff *aff,
__isl_take isl_val *v);
__isl_give isl_aff *isl_aff_set_coefficient_si(__isl_take isl_aff *aff,
enum isl_dim_type type, int pos, int v);
__isl_give isl_aff *isl_aff_set_coefficient_val(__isl_take isl_aff *aff,
enum isl_dim_type type, int pos, __isl_take isl_val *v);
__isl_give isl_aff *isl_aff_add_constant_si(__isl_take isl_aff *aff, int v);
__isl_overload
__isl_give isl_aff *isl_aff_add_constant_val(__isl_take isl_aff *aff,
__isl_take isl_val *v);
__isl_give isl_aff *isl_aff_add_constant_num_si(__isl_take isl_aff *aff, int v);
__isl_give isl_aff *isl_aff_add_coefficient_si(__isl_take isl_aff *aff,
enum isl_dim_type type, int pos, int v);
__isl_give isl_aff *isl_aff_add_coefficient_val(__isl_take isl_aff *aff,
enum isl_dim_type type, int pos, __isl_take isl_val *v);
__isl_export
isl_bool isl_aff_is_cst(__isl_keep isl_aff *aff);
__isl_give isl_aff *isl_aff_set_tuple_id(__isl_take isl_aff *aff,
enum isl_dim_type type, __isl_take isl_id *id);
__isl_give isl_aff *isl_aff_set_dim_name(__isl_take isl_aff *aff,
enum isl_dim_type type, unsigned pos, const char *s);
__isl_give isl_aff *isl_aff_set_dim_id(__isl_take isl_aff *aff,
enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
int isl_aff_find_dim_by_name(__isl_keep isl_aff *aff, enum isl_dim_type type,
const char *name);
isl_bool isl_aff_plain_is_equal(__isl_keep isl_aff *aff1,
__isl_keep isl_aff *aff2);
isl_bool isl_aff_plain_is_zero(__isl_keep isl_aff *aff);
isl_bool isl_aff_is_nan(__isl_keep isl_aff *aff);
__isl_give isl_aff *isl_aff_get_div(__isl_keep isl_aff *aff, int pos);
__isl_give isl_aff *isl_aff_from_range(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_aff *isl_aff_neg(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_aff *isl_aff_ceil(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_aff *isl_aff_floor(__isl_take isl_aff *aff);
__isl_overload
__isl_give isl_aff *isl_aff_mod_val(__isl_take isl_aff *aff,
__isl_take isl_val *mod);
__isl_export
__isl_give isl_aff *isl_aff_mul(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_aff *isl_aff_div(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_aff *isl_aff_add(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_aff *isl_aff_sub(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_overload
__isl_give isl_aff *isl_aff_scale_val(__isl_take isl_aff *aff,
__isl_take isl_val *v);
__isl_give isl_aff *isl_aff_scale_down_ui(__isl_take isl_aff *aff, unsigned f);
__isl_overload
__isl_give isl_aff *isl_aff_scale_down_val(__isl_take isl_aff *aff,
__isl_take isl_val *v);
__isl_give isl_aff *isl_aff_insert_dims(__isl_take isl_aff *aff,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_give isl_aff *isl_aff_add_dims(__isl_take isl_aff *aff,
enum isl_dim_type type, unsigned n);
__isl_give isl_aff *isl_aff_move_dims(__isl_take isl_aff *aff,
enum isl_dim_type dst_type, unsigned dst_pos,
enum isl_dim_type src_type, unsigned src_pos, unsigned n);
__isl_give isl_aff *isl_aff_drop_dims(__isl_take isl_aff *aff,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_give isl_aff *isl_aff_project_domain_on_params(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_aff *isl_aff_unbind_params_insert_domain(
__isl_take isl_aff *aff, __isl_take isl_multi_id *domain);
__isl_give isl_aff *isl_aff_align_params(__isl_take isl_aff *aff,
__isl_take isl_space *model);
__isl_export
__isl_give isl_aff *isl_aff_gist(__isl_take isl_aff *aff,
__isl_take isl_set *context);
__isl_export
__isl_give isl_aff *isl_aff_gist_params(__isl_take isl_aff *aff,
__isl_take isl_set *context);
__isl_export
__isl_give isl_val *isl_aff_eval(__isl_take isl_aff *aff,
__isl_take isl_point *pnt);
__isl_give isl_aff *isl_aff_pullback_aff(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_overload
__isl_give isl_aff *isl_aff_pullback_multi_aff(__isl_take isl_aff *aff,
__isl_take isl_multi_aff *ma);
__isl_give isl_basic_set *isl_aff_zero_basic_set(__isl_take isl_aff *aff);
__isl_give isl_basic_set *isl_aff_neg_basic_set(__isl_take isl_aff *aff);
__isl_give isl_basic_set *isl_aff_eq_basic_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_set *isl_aff_eq_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_set *isl_aff_ne_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_give isl_basic_set *isl_aff_le_basic_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_set *isl_aff_le_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_give isl_basic_set *isl_aff_lt_basic_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_set *isl_aff_lt_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_give isl_basic_set *isl_aff_ge_basic_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_set *isl_aff_ge_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_give isl_basic_set *isl_aff_gt_basic_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_export
__isl_give isl_set *isl_aff_gt_set(__isl_take isl_aff *aff1,
__isl_take isl_aff *aff2);
__isl_overload
__isl_give isl_basic_set *isl_aff_bind_id(__isl_take isl_aff *aff,
__isl_take isl_id *id);
__isl_constructor
__isl_give isl_aff *isl_aff_read_from_str(isl_ctx *ctx, const char *str);
__isl_give char *isl_aff_to_str(__isl_keep isl_aff *aff);
__isl_give isl_printer *isl_printer_print_aff(__isl_take isl_printer *p,
__isl_keep isl_aff *aff);
void isl_aff_dump(__isl_keep isl_aff *aff);
isl_ctx *isl_pw_aff_get_ctx(__isl_keep isl_pw_aff *pwaff);
uint32_t isl_pw_aff_get_hash(__isl_keep isl_pw_aff *pa);
__isl_give isl_space *isl_pw_aff_get_domain_space(__isl_keep isl_pw_aff *pwaff);
__isl_export
__isl_give isl_space *isl_pw_aff_get_space(__isl_keep isl_pw_aff *pwaff);
__isl_constructor
__isl_give isl_pw_aff *isl_pw_aff_from_aff(__isl_take isl_aff *aff);
__isl_give isl_pw_aff *isl_pw_aff_empty(__isl_take isl_space *space);
__isl_give isl_pw_aff *isl_pw_aff_alloc(__isl_take isl_set *set,
__isl_take isl_aff *aff);
__isl_give isl_pw_aff *isl_pw_aff_zero_on_domain(
__isl_take isl_local_space *ls);
__isl_give isl_pw_aff *isl_pw_aff_var_on_domain(__isl_take isl_local_space *ls,
enum isl_dim_type type, unsigned pos);
__isl_give isl_pw_aff *isl_pw_aff_nan_on_domain_space(
__isl_take isl_space *space);
__isl_give isl_pw_aff *isl_pw_aff_nan_on_domain(__isl_take isl_local_space *ls);
__isl_give isl_pw_aff *isl_pw_aff_val_on_domain(__isl_take isl_set *domain,
__isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_aff *isl_set_pw_aff_on_domain_val(__isl_take isl_set *domain,
__isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_param_on_domain_id(
__isl_take isl_set *domain, __isl_take isl_id *id);
__isl_overload
__isl_give isl_pw_aff *isl_set_param_pw_aff_on_domain_id(
__isl_take isl_set *domain, __isl_take isl_id *id);
__isl_export
__isl_give isl_pw_aff *isl_set_indicator_function(__isl_take isl_set *set);
const char *isl_pw_aff_get_dim_name(__isl_keep isl_pw_aff *pa,
enum isl_dim_type type, unsigned pos);
isl_bool isl_pw_aff_has_dim_id(__isl_keep isl_pw_aff *pa,
enum isl_dim_type type, unsigned pos);
__isl_give isl_id *isl_pw_aff_get_dim_id(__isl_keep isl_pw_aff *pa,
enum isl_dim_type type, unsigned pos);
__isl_give isl_pw_aff *isl_pw_aff_set_dim_id(__isl_take isl_pw_aff *pma,
enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
int isl_pw_aff_find_dim_by_name(__isl_keep isl_pw_aff *pa,
enum isl_dim_type type, const char *name);
isl_bool isl_pw_aff_is_empty(__isl_keep isl_pw_aff *pwaff);
isl_bool isl_pw_aff_involves_nan(__isl_keep isl_pw_aff *pa);
int isl_pw_aff_plain_cmp(__isl_keep isl_pw_aff *pa1,
__isl_keep isl_pw_aff *pa2);
isl_bool isl_pw_aff_plain_is_equal(__isl_keep isl_pw_aff *pwaff1,
__isl_keep isl_pw_aff *pwaff2);
isl_bool isl_pw_aff_is_equal(__isl_keep isl_pw_aff *pa1,
__isl_keep isl_pw_aff *pa2);
__isl_give isl_pw_aff *isl_pw_aff_union_min(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_give isl_pw_aff *isl_pw_aff_union_max(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_union_add(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_give isl_pw_aff *isl_pw_aff_copy(__isl_keep isl_pw_aff *pwaff);
__isl_null isl_pw_aff *isl_pw_aff_free(__isl_take isl_pw_aff *pwaff);
isl_size isl_pw_aff_dim(__isl_keep isl_pw_aff *pwaff, enum isl_dim_type type);
isl_bool isl_pw_aff_involves_param_id(__isl_keep isl_pw_aff *pa,
__isl_keep isl_id *id);
isl_bool isl_pw_aff_involves_dims(__isl_keep isl_pw_aff *pwaff,
enum isl_dim_type type, unsigned first, unsigned n);
isl_bool isl_pw_aff_is_cst(__isl_keep isl_pw_aff *pwaff);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_insert_domain(__isl_take isl_pw_aff *pa,
__isl_take isl_space *domain);
__isl_give isl_pw_aff *isl_pw_aff_project_domain_on_params(
__isl_take isl_pw_aff *pa);
__isl_give isl_pw_aff *isl_pw_aff_align_params(__isl_take isl_pw_aff *pwaff,
__isl_take isl_space *model);
__isl_give isl_pw_aff *isl_pw_aff_drop_unused_params(
__isl_take isl_pw_aff *pa);
isl_bool isl_pw_aff_has_tuple_id(__isl_keep isl_pw_aff *pa,
enum isl_dim_type type);
__isl_give isl_id *isl_pw_aff_get_tuple_id(__isl_keep isl_pw_aff *pa,
enum isl_dim_type type);
__isl_give isl_pw_aff *isl_pw_aff_set_tuple_id(__isl_take isl_pw_aff *pwaff,
enum isl_dim_type type, __isl_take isl_id *id);
__isl_give isl_pw_aff *isl_pw_aff_reset_tuple_id(__isl_take isl_pw_aff *pa,
enum isl_dim_type type);
__isl_give isl_pw_aff *isl_pw_aff_reset_user(__isl_take isl_pw_aff *pa);
__isl_give isl_set *isl_pw_aff_params(__isl_take isl_pw_aff *pwa);
__isl_export
__isl_give isl_set *isl_pw_aff_domain(__isl_take isl_pw_aff *pwaff);
__isl_give isl_pw_aff *isl_pw_aff_from_range(__isl_take isl_pw_aff *pwa);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_min(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_max(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_mul(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_div(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_add(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_sub(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_neg(__isl_take isl_pw_aff *pwaff);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_ceil(__isl_take isl_pw_aff *pwaff);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_floor(__isl_take isl_pw_aff *pwaff);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_mod_val(__isl_take isl_pw_aff *pa,
__isl_take isl_val *mod);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_tdiv_q(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_tdiv_r(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_intersect_params(__isl_take isl_pw_aff *pa,
__isl_take isl_set *set);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_intersect_domain(__isl_take isl_pw_aff *pa,
__isl_take isl_set *set);
__isl_give isl_pw_aff *isl_pw_aff_intersect_domain_wrapped_domain(
__isl_take isl_pw_aff *pa, __isl_take isl_set *set);
__isl_give isl_pw_aff *isl_pw_aff_intersect_domain_wrapped_range(
__isl_take isl_pw_aff *pa, __isl_take isl_set *set);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_subtract_domain(__isl_take isl_pw_aff *pa,
__isl_take isl_set *set);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_cond(__isl_take isl_pw_aff *cond,
__isl_take isl_pw_aff *pwaff_true, __isl_take isl_pw_aff *pwaff_false);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_add_constant_val(__isl_take isl_pw_aff *pa,
__isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_scale_val(__isl_take isl_pw_aff *pa,
__isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_scale_down_val(__isl_take isl_pw_aff *pa,
__isl_take isl_val *f);
__isl_give isl_pw_aff *isl_pw_aff_insert_dims(__isl_take isl_pw_aff *pwaff,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_give isl_pw_aff *isl_pw_aff_add_dims(__isl_take isl_pw_aff *pwaff,
enum isl_dim_type type, unsigned n);
__isl_give isl_pw_aff *isl_pw_aff_move_dims(__isl_take isl_pw_aff *pa,
enum isl_dim_type dst_type, unsigned dst_pos,
enum isl_dim_type src_type, unsigned src_pos, unsigned n);
__isl_give isl_pw_aff *isl_pw_aff_drop_dims(__isl_take isl_pw_aff *pwaff,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_coalesce(__isl_take isl_pw_aff *pa);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_gist(__isl_take isl_pw_aff *pwaff,
__isl_take isl_set *context);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_gist_params(__isl_take isl_pw_aff *pwaff,
__isl_take isl_set *context);
__isl_export
__isl_give isl_val *isl_pw_aff_eval(__isl_take isl_pw_aff *pa,
__isl_take isl_point *pnt);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_pullback_multi_aff(
__isl_take isl_pw_aff *pa, __isl_take isl_multi_aff *ma);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_pullback_pw_multi_aff(
__isl_take isl_pw_aff *pa, __isl_take isl_pw_multi_aff *pma);
__isl_overload
__isl_give isl_pw_aff *isl_pw_aff_pullback_multi_pw_aff(
__isl_take isl_pw_aff *pa, __isl_take isl_multi_pw_aff *mpa);
isl_size isl_pw_aff_n_piece(__isl_keep isl_pw_aff *pwaff);
isl_stat isl_pw_aff_foreach_piece(__isl_keep isl_pw_aff *pwaff,
isl_stat (*fn)(__isl_take isl_set *set, __isl_take isl_aff *aff,
void *user), void *user);
isl_bool isl_pw_aff_every_piece(__isl_keep isl_pw_aff *pa,
isl_bool (*test)(__isl_keep isl_set *set, __isl_keep isl_aff *aff,
void *user), void *user);
__isl_export
isl_bool isl_pw_aff_isa_aff(__isl_keep isl_pw_aff *pa);
__isl_export
__isl_give isl_aff *isl_pw_aff_as_aff(__isl_take isl_pw_aff *pa);
__isl_export
__isl_give isl_map *isl_pw_aff_as_map(__isl_take isl_pw_aff *pa);
__isl_give isl_set *isl_set_from_pw_aff(__isl_take isl_pw_aff *pwaff);
__isl_give isl_map *isl_map_from_pw_aff(__isl_take isl_pw_aff *pwaff);
__isl_give isl_set *isl_pw_aff_pos_set(__isl_take isl_pw_aff *pa);
__isl_give isl_set *isl_pw_aff_nonneg_set(__isl_take isl_pw_aff *pwaff);
__isl_give isl_set *isl_pw_aff_zero_set(__isl_take isl_pw_aff *pwaff);
__isl_give isl_set *isl_pw_aff_non_zero_set(__isl_take isl_pw_aff *pwaff);
__isl_export
__isl_give isl_set *isl_pw_aff_eq_set(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_set *isl_pw_aff_ne_set(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_set *isl_pw_aff_le_set(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_set *isl_pw_aff_lt_set(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_set *isl_pw_aff_ge_set(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_export
__isl_give isl_set *isl_pw_aff_gt_set(__isl_take isl_pw_aff *pwaff1,
__isl_take isl_pw_aff *pwaff2);
__isl_give isl_map *isl_pw_aff_eq_map(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_give isl_map *isl_pw_aff_le_map(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_give isl_map *isl_pw_aff_lt_map(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_give isl_map *isl_pw_aff_ge_map(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_give isl_map *isl_pw_aff_gt_map(__isl_take isl_pw_aff *pa1,
__isl_take isl_pw_aff *pa2);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_bind_domain(__isl_take isl_pw_aff *pa,
__isl_take isl_multi_id *tuple);
__isl_export
__isl_give isl_pw_aff *isl_pw_aff_bind_domain_wrapped_domain(
__isl_take isl_pw_aff *pa, __isl_take isl_multi_id *tuple);
__isl_overload
__isl_give isl_set *isl_pw_aff_bind_id(__isl_take isl_pw_aff *pa,
__isl_take isl_id *id);
__isl_constructor
__isl_give isl_pw_aff *isl_pw_aff_read_from_str(isl_ctx *ctx, const char *str);
__isl_give char *isl_pw_aff_to_str(__isl_keep isl_pw_aff *pa);
__isl_give isl_printer *isl_printer_print_pw_aff(__isl_take isl_printer *p,
__isl_keep isl_pw_aff *pwaff);
void isl_pw_aff_dump(__isl_keep isl_pw_aff *pwaff);
__isl_give isl_pw_aff *isl_pw_aff_list_min(__isl_take isl_pw_aff_list *list);
__isl_give isl_pw_aff *isl_pw_aff_list_max(__isl_take isl_pw_aff_list *list);
__isl_give isl_set *isl_pw_aff_list_eq_set(__isl_take isl_pw_aff_list *list1,
__isl_take isl_pw_aff_list *list2);
__isl_give isl_set *isl_pw_aff_list_ne_set(__isl_take isl_pw_aff_list *list1,
__isl_take isl_pw_aff_list *list2);
__isl_give isl_set *isl_pw_aff_list_le_set(__isl_take isl_pw_aff_list *list1,
__isl_take isl_pw_aff_list *list2);
__isl_give isl_set *isl_pw_aff_list_lt_set(__isl_take isl_pw_aff_list *list1,
__isl_take isl_pw_aff_list *list2);
__isl_give isl_set *isl_pw_aff_list_ge_set(__isl_take isl_pw_aff_list *list1,
__isl_take isl_pw_aff_list *list2);
__isl_give isl_set *isl_pw_aff_list_gt_set(__isl_take isl_pw_aff_list *list1,
__isl_take isl_pw_aff_list *list2);
ISL_DECLARE_MULTI(aff)
ISL_DECLARE_MULTI_IDENTITY(aff)
ISL_DECLARE_MULTI_CMP(aff)
ISL_DECLARE_MULTI_ARITH(aff)
ISL_DECLARE_MULTI_ADD_CONSTANT(aff)
ISL_DECLARE_MULTI_ZERO(aff)
ISL_DECLARE_MULTI_NAN(aff)
ISL_DECLARE_MULTI_DIMS(aff)
ISL_DECLARE_MULTI_INSERT_DOMAIN(aff)
ISL_DECLARE_MULTI_LOCALS(aff)
ISL_DECLARE_MULTI_DIM_ID(aff)
ISL_DECLARE_MULTI_TUPLE_ID(aff)
ISL_DECLARE_MULTI_WITH_DOMAIN(aff)
ISL_DECLARE_MULTI_BIND_DOMAIN(aff)
ISL_DECLARE_MULTI_UNBIND_PARAMS(aff)
__isl_constructor
__isl_give isl_multi_aff *isl_multi_aff_from_aff(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_multi_aff *isl_multi_aff_domain_map(__isl_take isl_space *space);
__isl_export
__isl_give isl_multi_aff *isl_space_domain_map_multi_aff(
__isl_take isl_space *space);
__isl_export
__isl_give isl_multi_aff *isl_multi_aff_range_map(__isl_take isl_space *space);
__isl_export
__isl_give isl_multi_aff *isl_space_range_map_multi_aff(
__isl_take isl_space *space);
__isl_give isl_multi_aff *isl_multi_aff_project_out_map(
__isl_take isl_space *space, enum isl_dim_type type,
unsigned first, unsigned n);
__isl_overload
__isl_give isl_multi_aff *isl_multi_aff_multi_val_on_domain_space(
__isl_take isl_space *space, __isl_take isl_multi_val *mv);
__isl_overload
__isl_give isl_multi_aff *isl_space_multi_aff_on_domain_multi_val(
__isl_take isl_space *space, __isl_take isl_multi_val *mv);
__isl_give isl_multi_aff *isl_multi_aff_multi_val_on_space(
__isl_take isl_space *space, __isl_take isl_multi_val *mv);
__isl_export
__isl_give isl_multi_val *isl_multi_aff_get_constant_multi_val(
__isl_keep isl_multi_aff *ma);
__isl_export
__isl_give isl_multi_aff *isl_multi_aff_floor(__isl_take isl_multi_aff *ma);
__isl_export
__isl_give isl_multi_aff *isl_multi_aff_gist_params(
__isl_take isl_multi_aff *maff, __isl_take isl_set *context);
__isl_export
__isl_give isl_multi_aff *isl_multi_aff_gist(__isl_take isl_multi_aff *maff,
__isl_take isl_set *context);
__isl_give isl_multi_aff *isl_multi_aff_lift(__isl_take isl_multi_aff *maff,
__isl_give isl_local_space **ls);
__isl_overload
__isl_give isl_multi_aff *isl_multi_aff_pullback_multi_aff(
__isl_take isl_multi_aff *ma1, __isl_take isl_multi_aff *ma2);
__isl_give isl_multi_aff *isl_multi_aff_move_dims(__isl_take isl_multi_aff *ma,
enum isl_dim_type dst_type, unsigned dst_pos,
enum isl_dim_type src_type, unsigned src_pos, unsigned n);
__isl_give isl_set *isl_multi_aff_lex_lt_set(__isl_take isl_multi_aff *ma1,
__isl_take isl_multi_aff *ma2);
__isl_give isl_set *isl_multi_aff_lex_le_set(__isl_take isl_multi_aff *ma1,
__isl_take isl_multi_aff *ma2);
__isl_give isl_set *isl_multi_aff_lex_gt_set(__isl_take isl_multi_aff *ma1,
__isl_take isl_multi_aff *ma2);
__isl_give isl_set *isl_multi_aff_lex_ge_set(__isl_take isl_multi_aff *ma1,
__isl_take isl_multi_aff *ma2);
__isl_export
__isl_give isl_basic_set *isl_multi_aff_bind(__isl_take isl_multi_aff *ma,
__isl_take isl_multi_id *tuple);
__isl_give char *isl_multi_aff_to_str(__isl_keep isl_multi_aff *ma);
__isl_give isl_printer *isl_printer_print_multi_aff(__isl_take isl_printer *p,
__isl_keep isl_multi_aff *maff);
__isl_constructor
__isl_give isl_multi_aff *isl_multi_aff_read_from_str(isl_ctx *ctx,
const char *str);
void isl_multi_aff_dump(__isl_keep isl_multi_aff *maff);
ISL_DECLARE_MULTI(pw_aff)
ISL_DECLARE_MULTI_IDENTITY(pw_aff)
ISL_DECLARE_MULTI_ARITH(pw_aff)
ISL_DECLARE_MULTI_MIN_MAX(pw_aff)
ISL_DECLARE_MULTI_ADD_CONSTANT(pw_aff)
ISL_DECLARE_MULTI_ZERO(pw_aff)
ISL_DECLARE_MULTI_NAN(pw_aff)
ISL_DECLARE_MULTI_DIMS(pw_aff)
ISL_DECLARE_MULTI_DIM_ID(pw_aff)
ISL_DECLARE_MULTI_INSERT_DOMAIN(pw_aff)
ISL_DECLARE_MULTI_TUPLE_ID(pw_aff)
ISL_DECLARE_MULTI_WITH_DOMAIN(pw_aff)
ISL_DECLARE_MULTI_BIND_DOMAIN(pw_aff)
ISL_DECLARE_MULTI_PARAM(pw_aff)
ISL_DECLARE_MULTI_UNBIND_PARAMS(pw_aff)
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_zero(__isl_take isl_space *space);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity_on_domain_space(
__isl_take isl_space *space);
__isl_export
__isl_give isl_pw_multi_aff *isl_space_identity_pw_multi_aff_on_domain(
__isl_take isl_space *space);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_identity(
__isl_take isl_space *space);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_domain_map(
__isl_take isl_space *space);
__isl_export
__isl_give isl_pw_multi_aff *isl_space_domain_map_pw_multi_aff(
__isl_take isl_space *space);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_map(
__isl_take isl_space *space);
__isl_export
__isl_give isl_pw_multi_aff *isl_space_range_map_pw_multi_aff(
__isl_take isl_space *space);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_out_map(
__isl_take isl_space *space, enum isl_dim_type type,
unsigned first, unsigned n);
__isl_export
__isl_give isl_pw_multi_aff *isl_multi_aff_to_pw_multi_aff(
__isl_take isl_multi_aff *ma);
__isl_constructor
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_aff(
__isl_take isl_multi_aff *ma);
__isl_constructor
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_pw_aff(
__isl_take isl_pw_aff *pa);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_alloc(__isl_take isl_set *set,
__isl_take isl_multi_aff *maff);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_copy(
__isl_keep isl_pw_multi_aff *pma);
__isl_null isl_pw_multi_aff *isl_pw_multi_aff_free(
__isl_take isl_pw_multi_aff *pma);
isl_size isl_pw_multi_aff_dim(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type);
__isl_export
isl_bool isl_pw_multi_aff_involves_locals(__isl_keep isl_pw_multi_aff *pma);
isl_bool isl_pw_multi_aff_involves_param_id(__isl_keep isl_pw_multi_aff *pma,
__isl_keep isl_id *id);
isl_bool isl_pw_multi_aff_involves_dims(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_export
__isl_give isl_pw_aff *isl_pw_multi_aff_get_at(
__isl_keep isl_pw_multi_aff *pma, int pos);
__isl_give isl_pw_aff *isl_pw_multi_aff_get_pw_aff(
__isl_keep isl_pw_multi_aff *pma, int pos);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_pw_aff(
__isl_take isl_pw_multi_aff *pma, unsigned pos,
__isl_take isl_pw_aff *pa);
isl_ctx *isl_pw_multi_aff_get_ctx(__isl_keep isl_pw_multi_aff *pma);
__isl_give isl_space *isl_pw_multi_aff_get_domain_space(
__isl_keep isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_space *isl_pw_multi_aff_get_space(
__isl_keep isl_pw_multi_aff *pma);
isl_bool isl_pw_multi_aff_has_tuple_name(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type);
const char *isl_pw_multi_aff_get_tuple_name(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type);
__isl_export
__isl_give isl_id *isl_pw_multi_aff_get_range_tuple_id(
__isl_keep isl_pw_multi_aff *pma);
__isl_give isl_id *isl_pw_multi_aff_get_tuple_id(
__isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type);
__isl_export
isl_bool isl_pw_multi_aff_has_range_tuple_id(__isl_keep isl_pw_multi_aff *pma);
isl_bool isl_pw_multi_aff_has_tuple_id(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_tuple_id(
__isl_take isl_pw_multi_aff *pma,
enum isl_dim_type type, __isl_take isl_id *id);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_range_tuple_id(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_id *id);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_reset_tuple_id(
__isl_take isl_pw_multi_aff *pma, enum isl_dim_type type);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_reset_user(
__isl_take isl_pw_multi_aff *pma);
int isl_pw_multi_aff_find_dim_by_name(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type, const char *name);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_dims(
__isl_take isl_pw_multi_aff *pma,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_export
__isl_give isl_set *isl_pw_multi_aff_domain(__isl_take isl_pw_multi_aff *pma);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_empty(__isl_take isl_space *space);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_domain(
__isl_take isl_set *set);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_multi_val_on_domain(
__isl_take isl_set *domain, __isl_take isl_multi_val *mv);
__isl_overload
__isl_give isl_pw_multi_aff *isl_set_pw_multi_aff_on_domain_multi_val(
__isl_take isl_set *domain, __isl_take isl_multi_val *mv);
const char *isl_pw_multi_aff_get_dim_name(__isl_keep isl_pw_multi_aff *pma,
enum isl_dim_type type, unsigned pos);
__isl_give isl_id *isl_pw_multi_aff_get_dim_id(
__isl_keep isl_pw_multi_aff *pma, enum isl_dim_type type,
unsigned pos);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_set_dim_id(
__isl_take isl_pw_multi_aff *pma,
enum isl_dim_type type, unsigned pos, __isl_take isl_id *id);
isl_bool isl_pw_multi_aff_involves_nan(__isl_keep isl_pw_multi_aff *pma);
isl_bool isl_pw_multi_aff_plain_is_equal(__isl_keep isl_pw_multi_aff *pma1,
__isl_keep isl_pw_multi_aff *pma2);
isl_bool isl_pw_multi_aff_is_equal(__isl_keep isl_pw_multi_aff *pma1,
__isl_keep isl_pw_multi_aff *pma2);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_fix_si(
__isl_take isl_pw_multi_aff *pma, enum isl_dim_type type,
unsigned pos, int value);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_add(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_neg(
__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_add(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_sub(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_add_constant_val(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_add_constant_multi_val(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_val *mv);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_val(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_down_val(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_val *v);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_multi_val(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_val *mv);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_scale_down_multi_val(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_val *mv);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmin(
__isl_take isl_pw_multi_aff *pma1,
__isl_take isl_pw_multi_aff *pma2);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_union_lexmax(
__isl_take isl_pw_multi_aff *pma1,
__isl_take isl_pw_multi_aff *pma2);
__isl_give isl_multi_aff *isl_multi_aff_flatten_domain(
__isl_take isl_multi_aff *ma);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_product(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_flat_range_product(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_product(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_factor_domain(
__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_range_factor_range(
__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_params(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain_wrapped_domain(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_intersect_domain_wrapped_range(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_subtract_domain(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_insert_domain(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_space *domain);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_project_domain_on_params(
__isl_take isl_pw_multi_aff *pma);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_align_params(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_space *model);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_drop_unused_params(
__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_coalesce(
__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist_params(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_gist(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_set *set);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_multi_aff(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_aff *ma);
__isl_overload
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_pullback_pw_multi_aff(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_overload
__isl_give isl_pw_multi_aff *
isl_pw_multi_aff_preimage_domain_wrapped_domain_pw_multi_aff(
__isl_take isl_pw_multi_aff *pma1, __isl_take isl_pw_multi_aff *pma2);
__isl_export
isl_size isl_pw_multi_aff_n_piece(__isl_keep isl_pw_multi_aff *pma);
__isl_export
isl_stat isl_pw_multi_aff_foreach_piece(__isl_keep isl_pw_multi_aff *pma,
isl_stat (*fn)(__isl_take isl_set *set, __isl_take isl_multi_aff *maff,
void *user), void *user);
isl_bool isl_pw_multi_aff_every_piece(__isl_keep isl_pw_multi_aff *pma,
isl_bool (*test)(__isl_keep isl_set *set, __isl_keep isl_multi_aff *ma,
void *user), void *user);
__isl_export
isl_bool isl_pw_multi_aff_isa_multi_aff(__isl_keep isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_multi_aff *isl_pw_multi_aff_as_multi_aff(
__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_map *isl_pw_multi_aff_as_map(__isl_take isl_pw_multi_aff *pma);
__isl_give isl_map *isl_map_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_set *isl_pw_multi_aff_as_set(__isl_take isl_pw_multi_aff *pma);
__isl_give isl_set *isl_set_from_pw_multi_aff(__isl_take isl_pw_multi_aff *pma);
__isl_give char *isl_pw_multi_aff_to_str(__isl_keep isl_pw_multi_aff *pma);
__isl_give isl_printer *isl_printer_print_pw_multi_aff(__isl_take isl_printer *p,
__isl_keep isl_pw_multi_aff *pma);
__isl_export
__isl_give isl_pw_multi_aff *isl_set_as_pw_multi_aff(__isl_take isl_set *set);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_set(__isl_take isl_set *set);
__isl_export
__isl_give isl_pw_multi_aff *isl_map_as_pw_multi_aff(__isl_take isl_map *map);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_map(__isl_take isl_map *map);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_bind_domain(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_id *tuple);
__isl_export
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_bind_domain_wrapped_domain(
__isl_take isl_pw_multi_aff *pma, __isl_take isl_multi_id *tuple);
__isl_constructor
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_read_from_str(isl_ctx *ctx,
const char *str);
void isl_pw_multi_aff_dump(__isl_keep isl_pw_multi_aff *pma);
__isl_overload
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty_ctx(
isl_ctx *ctx);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty_space(
__isl_take isl_space *space);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_empty(
__isl_take isl_space *space);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_aff(
__isl_take isl_aff *aff);
__isl_constructor
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_multi_aff(
__isl_take isl_multi_aff *ma);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_pw_multi_aff_to_union_pw_multi_aff(
__isl_take isl_pw_multi_aff *pma);
__isl_constructor
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_pw_multi_aff(
__isl_take isl_pw_multi_aff *pma);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_domain(
__isl_take isl_union_set *uset);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_multi_val_on_domain(
__isl_take isl_union_set *domain, __isl_take isl_multi_val *mv);
__isl_give isl_union_pw_aff *isl_union_pw_aff_param_on_domain_id(
__isl_take isl_union_set *domain, __isl_take isl_id *id);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_copy(
__isl_keep isl_union_pw_multi_aff *upma);
__isl_null isl_union_pw_multi_aff *isl_union_pw_multi_aff_free(
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_union_pw_multi_aff *isl_union_set_identity_union_pw_multi_aff(
__isl_take isl_union_set *uset);
__isl_give isl_union_pw_aff *isl_union_pw_multi_aff_get_union_pw_aff(
__isl_keep isl_union_pw_multi_aff *upma, int pos);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_pw_multi_aff *pma);
isl_ctx *isl_union_pw_multi_aff_get_ctx(
__isl_keep isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_space *isl_union_pw_multi_aff_get_space(
__isl_keep isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_pw_multi_aff_list *isl_union_pw_multi_aff_get_pw_multi_aff_list(
__isl_keep isl_union_pw_multi_aff *upma);
isl_size isl_union_pw_multi_aff_dim(__isl_keep isl_union_pw_multi_aff *upma,
enum isl_dim_type type);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_set_dim_name(
__isl_take isl_union_pw_multi_aff *upma,
enum isl_dim_type type, unsigned pos, const char *s);
int isl_union_pw_multi_aff_find_dim_by_name(
__isl_keep isl_union_pw_multi_aff *upma, enum isl_dim_type type,
const char *name);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_drop_dims(
__isl_take isl_union_pw_multi_aff *upma,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_reset_user(
__isl_take isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_coalesce(
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_gist_params(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_set *context);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_gist(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *context);
__isl_overload
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_pullback_union_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_overload
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_apply_union_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_overload
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_preimage_domain_wrapped_domain_union_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_align_params(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_space *model);
isl_size isl_union_pw_multi_aff_n_pw_multi_aff(
__isl_keep isl_union_pw_multi_aff *upma);
isl_stat isl_union_pw_multi_aff_foreach_pw_multi_aff(
__isl_keep isl_union_pw_multi_aff *upma,
isl_stat (*fn)(__isl_take isl_pw_multi_aff *pma, void *user),
void *user);
isl_bool isl_union_pw_multi_aff_every_pw_multi_aff(
__isl_keep isl_union_pw_multi_aff *upma,
isl_bool (*test)(__isl_keep isl_pw_multi_aff *pma, void *user),
void *user);
__isl_export
__isl_give isl_pw_multi_aff *isl_union_pw_multi_aff_extract_pw_multi_aff(
__isl_keep isl_union_pw_multi_aff *upma, __isl_take isl_space *space);
__isl_export
isl_bool isl_union_pw_multi_aff_isa_pw_multi_aff(
__isl_keep isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_pw_multi_aff *isl_union_pw_multi_aff_as_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma);
__isl_export
isl_bool isl_union_pw_multi_aff_plain_is_empty(
__isl_keep isl_union_pw_multi_aff *upma);
__isl_export
isl_bool isl_union_pw_multi_aff_involves_locals(
__isl_keep isl_union_pw_multi_aff *upma);
isl_bool isl_union_pw_multi_aff_involves_nan(
__isl_keep isl_union_pw_multi_aff *upma);
isl_bool isl_union_pw_multi_aff_plain_is_equal(
__isl_keep isl_union_pw_multi_aff *upma1,
__isl_keep isl_union_pw_multi_aff *upma2);
__isl_export
__isl_give isl_union_set *isl_union_pw_multi_aff_domain(
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_neg(
__isl_take isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_add(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_union_add(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_sub(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_val(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_val *val);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_down_val(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_val *val);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_scale_multi_val(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_multi_val *mv);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_range_product(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_flat_range_product(
__isl_take isl_union_pw_multi_aff *upma1,
__isl_take isl_union_pw_multi_aff *upma2);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_range_factor_domain(
__isl_take isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_range_factor_range(
__isl_take isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_intersect_params(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_set *set);
__isl_overload
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_intersect_domain_union_set(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *uset);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_intersect_domain(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *uset);
__isl_overload
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_intersect_domain_space(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_space *space);
__isl_export
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_intersect_domain_wrapped_domain(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *uset);
__isl_export
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_intersect_domain_wrapped_range(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *uset);
__isl_overload
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_subtract_domain_union_set(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *uset);
__isl_overload
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_subtract_domain_space(
__isl_take isl_union_pw_multi_aff *upma, __isl_take isl_space *space);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_subtract_domain(
__isl_take isl_union_pw_multi_aff *upma,
__isl_take isl_union_set *uset);
__isl_export
__isl_give isl_union_map *isl_union_pw_multi_aff_as_union_map(
__isl_take isl_union_pw_multi_aff *upma);
__isl_overload
__isl_give isl_union_map *isl_union_map_from_union_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_printer *isl_printer_print_union_pw_multi_aff(
__isl_take isl_printer *p, __isl_keep isl_union_pw_multi_aff *upma);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_set(
__isl_take isl_union_set *uset);
__isl_export
__isl_give isl_union_pw_multi_aff *isl_union_map_as_union_pw_multi_aff(
__isl_take isl_union_map *umap);
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_map(
__isl_take isl_union_map *umap);
__isl_constructor
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_read_from_str(
isl_ctx *ctx, const char *str);
void isl_union_pw_multi_aff_dump(__isl_keep isl_union_pw_multi_aff *upma);
__isl_give char *isl_union_pw_multi_aff_to_str(
__isl_keep isl_union_pw_multi_aff *upma);
uint32_t isl_multi_pw_aff_get_hash(__isl_keep isl_multi_pw_aff *mpa);
__isl_constructor
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_aff(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_multi_pw_aff *isl_multi_aff_to_multi_pw_aff(
__isl_take isl_multi_aff *ma);
__isl_constructor
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_multi_aff(
__isl_take isl_multi_aff *ma);
__isl_constructor
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_aff(
__isl_take isl_pw_aff *pa);
__isl_export
__isl_give isl_set *isl_multi_pw_aff_domain(__isl_take isl_multi_pw_aff *mpa);
__isl_export
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_intersect_params(
__isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *set);
__isl_export
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_intersect_domain(
__isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *domain);
__isl_export
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_coalesce(
__isl_take isl_multi_pw_aff *mpa);
__isl_export
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_gist(
__isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *set);
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_gist_params(
__isl_take isl_multi_pw_aff *mpa, __isl_take isl_set *set);
isl_bool isl_multi_pw_aff_is_cst(__isl_keep isl_multi_pw_aff *mpa);
isl_bool isl_multi_pw_aff_is_equal(__isl_keep isl_multi_pw_aff *mpa1,
__isl_keep isl_multi_pw_aff *mpa2);
__isl_overload
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_pullback_multi_aff(
__isl_take isl_multi_pw_aff *mpa, __isl_take isl_multi_aff *ma);
__isl_overload
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_pullback_pw_multi_aff(
__isl_take isl_multi_pw_aff *mpa, __isl_take isl_pw_multi_aff *pma);
__isl_overload
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_pullback_multi_pw_aff(
__isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
__isl_export
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_union_add(
__isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_move_dims(
__isl_take isl_multi_pw_aff *pma,
enum isl_dim_type dst_type, unsigned dst_pos,
enum isl_dim_type src_type, unsigned src_pos, unsigned n);
__isl_export
isl_bool isl_multi_pw_aff_isa_multi_aff(__isl_keep isl_multi_pw_aff *mpa);
__isl_export
__isl_give isl_multi_aff *isl_multi_pw_aff_as_multi_aff(
__isl_take isl_multi_pw_aff *mpa);
__isl_export
__isl_give isl_set *isl_multi_pw_aff_as_set(__isl_take isl_multi_pw_aff *mpa);
__isl_give isl_set *isl_set_from_multi_pw_aff(__isl_take isl_multi_pw_aff *mpa);
__isl_export
__isl_give isl_map *isl_multi_pw_aff_as_map(__isl_take isl_multi_pw_aff *mpa);
__isl_give isl_map *isl_map_from_multi_pw_aff(__isl_take isl_multi_pw_aff *mpa);
__isl_give isl_pw_multi_aff *isl_pw_multi_aff_from_multi_pw_aff(
__isl_take isl_multi_pw_aff *mpa);
__isl_export
__isl_give isl_multi_pw_aff *isl_pw_multi_aff_to_multi_pw_aff(
__isl_take isl_pw_multi_aff *pma);
__isl_constructor
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_from_pw_multi_aff(
__isl_take isl_pw_multi_aff *pma);
__isl_give isl_map *isl_multi_pw_aff_eq_map(__isl_take isl_multi_pw_aff *mpa1,
__isl_take isl_multi_pw_aff *mpa2);
__isl_give isl_map *isl_multi_pw_aff_lex_le_map(
__isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
__isl_give isl_map *isl_multi_pw_aff_lex_lt_map(
__isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
__isl_give isl_map *isl_multi_pw_aff_lex_ge_map(
__isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
__isl_give isl_map *isl_multi_pw_aff_lex_gt_map(
__isl_take isl_multi_pw_aff *mpa1, __isl_take isl_multi_pw_aff *mpa2);
__isl_export
__isl_give isl_set *isl_multi_pw_aff_bind(__isl_take isl_multi_pw_aff *mpa,
__isl_take isl_multi_id *tuple);
__isl_constructor
__isl_give isl_multi_pw_aff *isl_multi_pw_aff_read_from_str(isl_ctx *ctx,
const char *str);
__isl_give char *isl_multi_pw_aff_to_str(__isl_keep isl_multi_pw_aff *mpa);
__isl_give isl_printer *isl_printer_print_multi_pw_aff(
__isl_take isl_printer *p, __isl_keep isl_multi_pw_aff *mpa);
void isl_multi_pw_aff_dump(__isl_keep isl_multi_pw_aff *mpa);
__isl_give isl_union_pw_aff *isl_union_pw_aff_copy(
__isl_keep isl_union_pw_aff *upa);
__isl_null isl_union_pw_aff *isl_union_pw_aff_free(
__isl_take isl_union_pw_aff *upa);
isl_ctx *isl_union_pw_aff_get_ctx(__isl_keep isl_union_pw_aff *upa);
__isl_export
__isl_give isl_space *isl_union_pw_aff_get_space(
__isl_keep isl_union_pw_aff *upa);
__isl_give isl_pw_aff_list *isl_union_pw_aff_get_pw_aff_list(
__isl_keep isl_union_pw_aff *upa);
isl_size isl_union_pw_aff_dim(__isl_keep isl_union_pw_aff *upa,
enum isl_dim_type type);
__isl_give isl_union_pw_aff *isl_union_pw_aff_set_dim_name(
__isl_take isl_union_pw_aff *upa, enum isl_dim_type type,
unsigned pos, const char *s);
int isl_union_pw_aff_find_dim_by_name(__isl_keep isl_union_pw_aff *upa,
enum isl_dim_type type, const char *name);
__isl_give isl_union_pw_aff *isl_union_pw_aff_drop_dims(
__isl_take isl_union_pw_aff *upa,
enum isl_dim_type type, unsigned first, unsigned n);
__isl_give isl_union_pw_aff *isl_union_pw_aff_reset_user(
__isl_take isl_union_pw_aff *upa);
__isl_give isl_union_pw_aff *isl_union_pw_aff_empty_ctx(isl_ctx *ctx);
__isl_give isl_union_pw_aff *isl_union_pw_aff_empty_space(
__isl_take isl_space *space);
__isl_give isl_union_pw_aff *isl_union_pw_aff_empty(
__isl_take isl_space *space);
__isl_constructor
__isl_give isl_union_pw_aff *isl_union_pw_aff_from_aff(__isl_take isl_aff *aff);
__isl_export
__isl_give isl_union_pw_aff *isl_pw_aff_to_union_pw_aff(
__isl_take isl_pw_aff *pa);
__isl_constructor
__isl_give isl_union_pw_aff *isl_union_pw_aff_from_pw_aff(
__isl_take isl_pw_aff *pa);
__isl_give isl_union_pw_aff *isl_union_pw_aff_val_on_domain(
__isl_take isl_union_set *domain, __isl_take isl_val *v);
__isl_give isl_union_pw_aff *isl_union_pw_aff_aff_on_domain(
__isl_take isl_union_set *domain, __isl_take isl_aff *aff);
__isl_give isl_union_pw_aff *isl_union_pw_aff_pw_aff_on_domain(
__isl_take isl_union_set *domain, __isl_take isl_pw_aff *pa);
__isl_give isl_union_pw_aff *isl_union_pw_aff_add_pw_aff(
__isl_take isl_union_pw_aff *upa, __isl_take isl_pw_aff *pa);
__isl_constructor
__isl_give isl_union_pw_multi_aff *isl_union_pw_multi_aff_from_union_pw_aff(
__isl_take isl_union_pw_aff *upa);
isl_size isl_union_pw_aff_n_pw_aff(__isl_keep isl_union_pw_aff *upa);
isl_stat isl_union_pw_aff_foreach_pw_aff(__isl_keep isl_union_pw_aff *upa,
isl_stat (*fn)(__isl_take isl_pw_aff *pa, void *user), void *user);
isl_bool isl_union_pw_aff_every_pw_aff(__isl_keep isl_union_pw_aff *upa,
isl_bool (*test)(__isl_keep isl_pw_aff *pa, void *user), void *user);
__isl_give isl_pw_aff *isl_union_pw_aff_extract_pw_aff(
__isl_keep isl_union_pw_aff *upa, __isl_take isl_space *space);
isl_bool isl_union_pw_aff_involves_nan(__isl_keep isl_union_pw_aff *upa);
isl_bool isl_union_pw_aff_plain_is_equal(__isl_keep isl_union_pw_aff *upa1,
__isl_keep isl_union_pw_aff *upa2);
__isl_export
__isl_give isl_union_set *isl_union_pw_aff_domain(
__isl_take isl_union_pw_aff *upa);
__isl_give isl_union_pw_aff *isl_union_pw_aff_neg(
__isl_take isl_union_pw_aff *upa);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_add(
__isl_take isl_union_pw_aff *upa1, __isl_take isl_union_pw_aff *upa2);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_union_add(
__isl_take isl_union_pw_aff *upa1, __isl_take isl_union_pw_aff *upa2);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_sub(
__isl_take isl_union_pw_aff *upa1, __isl_take isl_union_pw_aff *upa2);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_coalesce(
__isl_take isl_union_pw_aff *upa);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_gist(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *context);
__isl_give isl_union_pw_aff *isl_union_pw_aff_gist_params(
__isl_take isl_union_pw_aff *upa, __isl_take isl_set *context);
__isl_overload
__isl_give isl_union_pw_aff *isl_union_pw_aff_pullback_union_pw_multi_aff(
__isl_take isl_union_pw_aff *upa,
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_union_pw_aff *isl_union_pw_aff_floor(
__isl_take isl_union_pw_aff *upa);
__isl_give isl_union_pw_aff *isl_union_pw_aff_scale_val(
__isl_take isl_union_pw_aff *upa, __isl_take isl_val *v);
__isl_give isl_union_pw_aff *isl_union_pw_aff_scale_down_val(
__isl_take isl_union_pw_aff *upa, __isl_take isl_val *v);
__isl_give isl_union_pw_aff *isl_union_pw_aff_mod_val(
__isl_take isl_union_pw_aff *upa, __isl_take isl_val *f);
__isl_give isl_union_pw_aff *isl_union_pw_aff_align_params(
__isl_take isl_union_pw_aff *upa, __isl_take isl_space *model);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_params(
__isl_take isl_union_pw_aff *upa, __isl_take isl_set *set);
__isl_overload
__isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_domain_space(
__isl_take isl_union_pw_aff *upa, __isl_take isl_space *space);
__isl_overload
__isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_domain_union_set(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
__isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_domain(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_domain_wrapped_domain(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
__isl_export
__isl_give isl_union_pw_aff *isl_union_pw_aff_intersect_domain_wrapped_range(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
__isl_overload
__isl_give isl_union_pw_aff *isl_union_pw_aff_subtract_domain_union_set(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
__isl_overload
__isl_give isl_union_pw_aff *isl_union_pw_aff_subtract_domain_space(
__isl_take isl_union_pw_aff *upa, __isl_take isl_space *space);
__isl_give isl_union_pw_aff *isl_union_pw_aff_subtract_domain(
__isl_take isl_union_pw_aff *upa, __isl_take isl_union_set *uset);
__isl_give isl_union_pw_aff *isl_union_pw_aff_set_dim_name(
__isl_take isl_union_pw_aff *upa,
enum isl_dim_type type, unsigned pos, const char *s);
__isl_give isl_union_set *isl_union_pw_aff_zero_union_set(
__isl_take isl_union_pw_aff *upa);
__isl_give isl_union_map *isl_union_map_from_union_pw_aff(
__isl_take isl_union_pw_aff *upa);
__isl_overload
__isl_give isl_union_set *isl_union_pw_aff_bind_id(
__isl_take isl_union_pw_aff *upa, __isl_take isl_id *id);
__isl_constructor
__isl_give isl_union_pw_aff *isl_union_pw_aff_read_from_str(isl_ctx *ctx,
const char *str);
__isl_give char *isl_union_pw_aff_to_str(__isl_keep isl_union_pw_aff *upa);
__isl_give isl_printer *isl_printer_print_union_pw_aff(
__isl_take isl_printer *p, __isl_keep isl_union_pw_aff *upa);
void isl_union_pw_aff_dump(__isl_keep isl_union_pw_aff *upa);
ISL_DECLARE_MULTI(union_pw_aff)
ISL_DECLARE_MULTI_ARITH(union_pw_aff)
ISL_DECLARE_MULTI_ZERO(union_pw_aff)
ISL_DECLARE_MULTI_NAN(union_pw_aff)
ISL_DECLARE_MULTI_DROP_DIMS(union_pw_aff)
ISL_DECLARE_MULTI_DIM_ID(union_pw_aff)
ISL_DECLARE_MULTI_TUPLE_ID(union_pw_aff)
__isl_export
__isl_give isl_multi_union_pw_aff *isl_multi_aff_to_multi_union_pw_aff(
__isl_take isl_multi_aff *ma);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_from_multi_aff(
__isl_take isl_multi_aff *ma);
__isl_constructor
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_from_union_pw_aff(
__isl_take isl_union_pw_aff *upa);
__isl_constructor
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_from_multi_pw_aff(
__isl_take isl_multi_pw_aff *mpa);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_multi_val_on_domain(
__isl_take isl_union_set *domain, __isl_take isl_multi_val *mv);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_multi_aff_on_domain(
__isl_take isl_union_set *domain, __isl_take isl_multi_aff *ma);
__isl_give isl_multi_union_pw_aff *
isl_multi_union_pw_aff_pw_multi_aff_on_domain(__isl_take isl_union_set *domain,
__isl_take isl_pw_multi_aff *pma);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_floor(
__isl_take isl_multi_union_pw_aff *mupa);
__isl_export
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_intersect_domain(
__isl_take isl_multi_union_pw_aff *mupa,
__isl_take isl_union_set *uset);
__isl_export
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_intersect_params(
__isl_take isl_multi_union_pw_aff *mupa, __isl_take isl_set *params);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_intersect_range(
__isl_take isl_multi_union_pw_aff *mupa, __isl_take isl_set *set);
__isl_export
__isl_give isl_union_set *isl_multi_union_pw_aff_domain(
__isl_take isl_multi_union_pw_aff *mupa);
__isl_export
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_coalesce(
__isl_take isl_multi_union_pw_aff *mupa);
__isl_export
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_gist(
__isl_take isl_multi_union_pw_aff *mupa,
__isl_take isl_union_set *context);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_gist_params(
__isl_take isl_multi_union_pw_aff *mupa, __isl_take isl_set *context);
__isl_give isl_union_pw_aff *isl_multi_union_pw_aff_apply_aff(
__isl_take isl_multi_union_pw_aff *mupa, __isl_take isl_aff *aff);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_apply_multi_aff(
__isl_take isl_multi_union_pw_aff *mupa, __isl_take isl_multi_aff *ma);
__isl_give isl_union_pw_aff *isl_multi_union_pw_aff_apply_pw_aff(
__isl_take isl_multi_union_pw_aff *mupa, __isl_take isl_pw_aff *pa);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_apply_pw_multi_aff(
__isl_take isl_multi_union_pw_aff *mupa,
__isl_take isl_pw_multi_aff *pma);
__isl_overload
__isl_give isl_multi_union_pw_aff *
isl_multi_union_pw_aff_pullback_union_pw_multi_aff(
__isl_take isl_multi_union_pw_aff *mupa,
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_union_pw_multi_aff *
isl_union_pw_multi_aff_from_multi_union_pw_aff(
__isl_take isl_multi_union_pw_aff *mupa);
__isl_export
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_union_add(
__isl_take isl_multi_union_pw_aff *mupa1,
__isl_take isl_multi_union_pw_aff *mupa2);
__isl_export
__isl_give isl_multi_union_pw_aff *
isl_union_pw_multi_aff_as_multi_union_pw_aff(
__isl_take isl_union_pw_multi_aff *upma);
__isl_give isl_multi_union_pw_aff *
isl_multi_union_pw_aff_from_union_pw_multi_aff(
__isl_take isl_union_pw_multi_aff *upma);
__isl_export
__isl_give isl_multi_union_pw_aff *isl_union_map_as_multi_union_pw_aff(
__isl_take isl_union_map *umap);
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_from_union_map(
__isl_take isl_union_map *umap);
__isl_overload
__isl_give isl_union_map *isl_union_map_from_multi_union_pw_aff(
__isl_take isl_multi_union_pw_aff *mupa);
__isl_give isl_union_set *isl_multi_union_pw_aff_zero_union_set(
__isl_take isl_multi_union_pw_aff *mupa);
__isl_export
__isl_give isl_union_set *isl_multi_union_pw_aff_bind(
__isl_take isl_multi_union_pw_aff *mupa,
__isl_take isl_multi_id *tuple);
__isl_give isl_multi_pw_aff *isl_multi_union_pw_aff_extract_multi_pw_aff(
__isl_keep isl_multi_union_pw_aff *mupa, __isl_take isl_space *space);
__isl_constructor
__isl_give isl_multi_union_pw_aff *isl_multi_union_pw_aff_read_from_str(
isl_ctx *ctx, const char *str);
__isl_give char *isl_multi_union_pw_aff_to_str(
__isl_keep isl_multi_union_pw_aff *mupa);
__isl_give isl_printer *isl_printer_print_multi_union_pw_aff(
__isl_take isl_printer *p, __isl_keep isl_multi_union_pw_aff *mupa);
void isl_multi_union_pw_aff_dump(__isl_keep isl_multi_union_pw_aff *mupa);
ISL_DECLARE_EXPORTED_LIST_FN(aff)
ISL_DECLARE_EXPORTED_LIST_FN_READ(aff)
ISL_DECLARE_EXPORTED_LIST_FN(pw_aff)
ISL_DECLARE_EXPORTED_LIST_FN_READ(pw_aff)
ISL_DECLARE_EXPORTED_LIST_FN(pw_multi_aff)
ISL_DECLARE_EXPORTED_LIST_FN_READ(pw_multi_aff)
ISL_DECLARE_EXPORTED_LIST_FN(union_pw_aff)
ISL_DECLARE_EXPORTED_LIST_FN_READ(union_pw_aff)
ISL_DECLARE_LIST_FN(union_pw_multi_aff)
#if defined(__cplusplus)
}
#endif
#endif
| {
"content_hash": "2f127dd8a27890ca5940a3a36368b6cb",
"timestamp": "",
"source": "github",
"line_count": 1474,
"max_line_length": 81,
"avg_line_length": 41.415875169606515,
"alnum_prop": 0.6952020574311596,
"repo_name": "Meinersbur/isl",
"id": "cf0b5f6107b16a4fe9b062946f8cdd86991d0408",
"size": "61391",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "include/isl/aff.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "5275210"
},
{
"name": "C++",
"bytes": "358515"
},
{
"name": "M4",
"bytes": "135582"
},
{
"name": "Makefile",
"bytes": "18299"
},
{
"name": "Python",
"bytes": "15341"
},
{
"name": "Scala",
"bytes": "1789"
},
{
"name": "Shell",
"bytes": "3204"
},
{
"name": "Smalltalk",
"bytes": "152425"
},
{
"name": "SuperCollider",
"bytes": "8868"
}
],
"symlink_target": ""
} |
def deprecation_warning():
print("""
=============================================================================
*** DEPRECATION WARNING ***
Cookiecutter data science is moving to v2 soon, which will entail using
the command `ccds ...` rather than `cookiecutter ...`. The cookiecutter command
will continue to work, and this version of the template will still be available.
To use the legacy template, you will need to explicitly use `-c v1` to select it.
Please update any scripts/automation you have to append the `-c v1` option,
which is available now.
For example:
cookiecutter -c v1 https://github.com/drivendata/cookiecutter-data-science
=============================================================================
""")
deprecation_warning()
| {
"content_hash": "f06aa523533c6f1193d6d8caaf11a48b",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 81,
"avg_line_length": 35,
"alnum_prop": 0.5909090909090909,
"repo_name": "drivendata/cookiecutter-data-science",
"id": "2bd49c083d871e53c199dfe0aa6f9ba410d8303f",
"size": "770",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "hooks/pre_gen_project.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "5140"
},
{
"name": "Makefile",
"bytes": "10365"
},
{
"name": "Python",
"bytes": "15337"
},
{
"name": "Shell",
"bytes": "459"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Sun Jan 10 17:24:01 PST 2016 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Package com.fasterxml.jackson.dataformat.xml.ser (Jackson-dataformat-XML 2.7.0 API)</title>
<meta name="date" content="2016-01-10">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Package com.fasterxml.jackson.dataformat.xml.ser (Jackson-dataformat-XML 2.7.0 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/fasterxml/jackson/dataformat/xml/ser/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Uses of Package com.fasterxml.jackson.dataformat.xml.ser" class="title">Uses of Package<br>com.fasterxml.jackson.dataformat.xml.ser</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/package-summary.html">com.fasterxml.jackson.dataformat.xml.ser</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#com.fasterxml.jackson.dataformat.xml">com.fasterxml.jackson.dataformat.xml</a></td>
<td class="colLast">
<div class="block">Package that contains XML-based backends which can serialize POJOs
to and deserialize from XML, using Stax XML parsers and generators
for XML processing and mostly standard Jackson data binding otherwise.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#com.fasterxml.jackson.dataformat.xml.ser">com.fasterxml.jackson.dataformat.xml.ser</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="com.fasterxml.jackson.dataformat.xml">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/package-summary.html">com.fasterxml.jackson.dataformat.xml.ser</a> used by <a href="../../../../../../com/fasterxml/jackson/dataformat/xml/package-summary.html">com.fasterxml.jackson.dataformat.xml</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.html#com.fasterxml.jackson.dataformat.xml">ToXmlGenerator</a>
<div class="block"><code>JsonGenerator</code> that outputs JAXB-style XML output instead of JSON content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.Feature.html#com.fasterxml.jackson.dataformat.xml">ToXmlGenerator.Feature</a>
<div class="block">Enumeration that defines all togglable extra XML-specific features</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="com.fasterxml.jackson.dataformat.xml.ser">
<!-- -->
</a>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/package-summary.html">com.fasterxml.jackson.dataformat.xml.ser</a> used by <a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/package-summary.html">com.fasterxml.jackson.dataformat.xml.ser</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.html#com.fasterxml.jackson.dataformat.xml.ser">ToXmlGenerator</a>
<div class="block"><code>JsonGenerator</code> that outputs JAXB-style XML output instead of JSON content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/ToXmlGenerator.Feature.html#com.fasterxml.jackson.dataformat.xml.ser">ToXmlGenerator.Feature</a>
<div class="block">Enumeration that defines all togglable extra XML-specific features</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/UnwrappingXmlBeanSerializer.html#com.fasterxml.jackson.dataformat.xml.ser">UnwrappingXmlBeanSerializer</a>
<div class="block">Copy of <code>UnwrappingBeanSerializer</code> required to extend
<a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerBase.html" title="class in com.fasterxml.jackson.dataformat.xml.ser"><code>XmlBeanSerializerBase</code></a> for XML-specific handling.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlBeanSerializerBase.html#com.fasterxml.jackson.dataformat.xml.ser">XmlBeanSerializerBase</a>
<div class="block">Specific sub-class of <code>BeanSerializerBase</code> needed to take care
of some xml-specific aspects, such as distinction between attributes
and elements.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/fasterxml/jackson/dataformat/xml/ser/class-use/XmlSerializerProvider.html#com.fasterxml.jackson.dataformat.xml.ser">XmlSerializerProvider</a>
<div class="block">We need to override some parts of
<code>SerializerProvider</code>
implementation to handle oddities of XML output, like "extra" root element.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/fasterxml/jackson/dataformat/xml/ser/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
</body>
</html>
| {
"content_hash": "7474300189dcb28f3abae3757ade7e30",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 354,
"avg_line_length": 44.5024154589372,
"alnum_prop": 0.6698871037776812,
"repo_name": "FasterXML/jackson-dataformat-xml",
"id": "4fdd50c274361044d32032071b4347ca6e6c94bd",
"size": "9212",
"binary": false,
"copies": "1",
"ref": "refs/heads/2.15",
"path": "docs/javadoc/2.7/com/fasterxml/jackson/dataformat/xml/ser/package-use.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "796457"
},
{
"name": "Logos",
"bytes": "24505"
}
],
"symlink_target": ""
} |
package boofcv.abst.feature.orientation;
import boofcv.abst.filter.derivative.ImageGradient;
import boofcv.core.image.GeneralizedImageOps;
import boofcv.struct.image.ImageSingleBand;
/**
* Converts an implementation of {@link OrientationGradient} into {@link OrientationImage}.
*
* @author Peter Abeles
*/
public class OrientationGradientToImage<T extends ImageSingleBand, D extends ImageSingleBand>
implements OrientationImage<T>
{
ImageGradient<T,D> gradient;
OrientationGradient<D> alg;
// storage for image gradient
D derivX;
D derivY;
// Input image type
Class<T> inputType;
public OrientationGradientToImage(OrientationGradient<D> alg,
ImageGradient<T, D> gradient,
Class<T> inputType ,
Class<D> gradientType ) {
this.alg = alg;
this.gradient = gradient;
this.inputType = inputType;
derivX = GeneralizedImageOps.createSingleBand(gradientType,1,1);
derivY = GeneralizedImageOps.createSingleBand(gradientType,1,1);
}
@Override
public void setImage(T image) {
derivX.reshape(image.width,image.height);
derivY.reshape(image.width,image.height);
gradient.process(image,derivX,derivY);
alg.setImage(derivX,derivY);
}
@Override
public Class<T> getImageType() {
return inputType;
}
@Override
public void setScale(double scale) {
alg.setScale(scale);
}
@Override
public double compute(double c_x, double c_y) {
return alg.compute(c_x,c_y);
}
}
| {
"content_hash": "916a1f29179a46070417bb92be63934c",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 93,
"avg_line_length": 23.177419354838708,
"alnum_prop": 0.7383437717466945,
"repo_name": "intrack/BoofCV-master",
"id": "6b21972bad9b54539547273e76a0452170f0479d",
"size": "2117",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "main/feature/src/boofcv/abst/feature/orientation/OrientationGradientToImage.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "4638"
},
{
"name": "Java",
"bytes": "8541941"
},
{
"name": "Python",
"bytes": "14673"
}
],
"symlink_target": ""
} |
<?php
namespace Zend\Db\Sql\Predicate;
class NotLike extends Like
{
protected $specification = '%1$s NOT LIKE %2$s';
}
| {
"content_hash": "40511424958b39bdad6cce8198ea97dd",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 52,
"avg_line_length": 13.7,
"alnum_prop": 0.6277372262773723,
"repo_name": "mabdullah92/10001",
"id": "c2681d2f8a21be0eadf70cc7196556c5129862e1",
"size": "445",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "vendor/zendframework/zendframework/library/Zend/Db/Sql/Predicate/NotLike.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "1454"
},
{
"name": "CSS",
"bytes": "1365"
},
{
"name": "Gettext Catalog",
"bytes": "106424"
},
{
"name": "HTML",
"bytes": "14011"
},
{
"name": "JavaScript",
"bytes": "134327"
},
{
"name": "PHP",
"bytes": "54827"
}
],
"symlink_target": ""
} |
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.html import urlize as urlize
from django.utils.safestring import mark_safe
register = template.Library()
@register.filter(is_safe=True, needs_autoescape=True)
@stringfilter
def urlize_newtab(value, autoescape=True):
"""Converts URLs in plain text into clickable links that open in new tabs."""
url = urlize(value, nofollow=True, autoescape=autoescape)
url = url.replace("a href", 'a target="_blank" rel="noreferrer" href')
return mark_safe(url)
| {
"content_hash": "380f0f4ba6a5a48124381edeb23009c0",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 81,
"avg_line_length": 37.733333333333334,
"alnum_prop": 0.7632508833922261,
"repo_name": "pbanaszkiewicz/amy",
"id": "ed2a7e04824876b77dcae3a8045dda8ad8b8b63e",
"size": "566",
"binary": false,
"copies": "2",
"ref": "refs/heads/develop",
"path": "amy/workshops/templatetags/links.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "5850"
},
{
"name": "Dockerfile",
"bytes": "1034"
},
{
"name": "HTML",
"bytes": "313293"
},
{
"name": "JavaScript",
"bytes": "39427"
},
{
"name": "Makefile",
"bytes": "1780"
},
{
"name": "Python",
"bytes": "2707815"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.