text stringlengths 2 1.04M | meta dict |
|---|---|
<?php
namespace App\Test\TestCase\Model\Table;
use App\Model\Table\SystemInfoTable;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;
/**
* App\Model\Table\SystemInfoTable Test Case
*/
class SystemInfoTableTest extends TestCase
{
/**
* Fixtures
*
* @var array
*/
public $fixtures = [
'app.system_info'
];
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
$config = TableRegistry::exists('SystemInfo') ? [] : ['className' => 'App\Model\Table\SystemInfoTable'];
$this->SystemInfo = TableRegistry::get('SystemInfo', $config);
}
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->SystemInfo);
parent::tearDown();
}
/**
* Test initialize method
*
* @return void
*/
public function testInitialize()
{
$this->markTestIncomplete('Not implemented yet.');
}
/**
* Test validationDefault method
*
* @return void
*/
public function testValidationDefault()
{
$this->markTestIncomplete('Not implemented yet.');
}
}
| {
"content_hash": "e1d07af4924012dea04c047f4d43a6ec",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 112,
"avg_line_length": 18.53030303030303,
"alnum_prop": 0.5633687653311529,
"repo_name": "Shahlal47/testcake",
"id": "2d02080c502cbf7f0941f965c37c1407ca6fc224",
"size": "1223",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "tests/TestCase/Model/Table/SystemInfoTableTest.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "140"
},
{
"name": "Batchfile",
"bytes": "925"
},
{
"name": "PHP",
"bytes": "386074"
},
{
"name": "Shell",
"bytes": "1352"
}
],
"symlink_target": ""
} |
.class public final Landroid/provider/Telephony$GprsInfo;
.super Ljava/lang/Object;
.source "Telephony.java"
# interfaces
.implements Landroid/provider/BaseColumns;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/provider/Telephony;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "GprsInfo"
.end annotation
# static fields
.field public static final CONTENT_URI:Landroid/net/Uri; = null
.field public static final GPRS_IN:Ljava/lang/String; = "gprs_in"
.field public static final GPRS_OUT:Ljava/lang/String; = "gprs_out"
.field public static final SIM_ID:Ljava/lang/String; = "sim_id"
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
.line 3176
const-string v0, "content://telephony/gprsinfo"
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
sput-object v0, Landroid/provider/Telephony$GprsInfo;->CONTENT_URI:Landroid/net/Uri;
return-void
.end method
.method public constructor <init>()V
.locals 0
.prologue
.line 3175
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
| {
"content_hash": "7cc441fa310ae23e1a62b0f86d59a553",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 88,
"avg_line_length": 22.545454545454547,
"alnum_prop": 0.728225806451613,
"repo_name": "baidurom/devices-g520",
"id": "f06541d1eeb2c86aaffc7b7c2f6d80ff4c6906d1",
"size": "1240",
"binary": false,
"copies": "2",
"ref": "refs/heads/coron-4.1",
"path": "framework.jar.out/smali/android/provider/Telephony$GprsInfo.smali",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Makefile",
"bytes": "12575"
},
{
"name": "Python",
"bytes": "1261"
},
{
"name": "Shell",
"bytes": "2159"
}
],
"symlink_target": ""
} |
const uuid = require('src/typeStrategies/uuid')
describe('type:uuid', () => {
describe('default', () => {
it('calls context.fail if type is not a valid UUID', () => {
const context = {
value: 'foo',
fail: jest.fn()
}
uuid.default(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID')
})
it('calls context.fail if type is empty', () => {
const context = {
value: '',
fail: jest.fn()
}
uuid.default(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID')
})
it('does not call context.fail if type is a valid UUID', () => {
const context = {
value: 'ef3d56e1-6046-4743-aa69-b94bc9e66181',
fail: jest.fn()
}
uuid.default(context)
expect(context.fail).not.toHaveBeenCalled()
})
it('allows uppercase characters', () => {
const context = {
value: 'EF3D56E1-6046-4743-AA69-B94BC9E66181',
fail: jest.fn()
}
uuid.default(context)
expect(context.fail).not.toHaveBeenCalled()
})
})
describe('upper', () => {
it('calls context.fail if type is not a valid UUID', () => {
const context = {
value: 'foo',
fail: jest.fn()
}
uuid.upper(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID with all uppercase letters')
})
it('calls context.fail if type is empty', () => {
const context = {
value: '',
fail: jest.fn()
}
uuid.upper(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID with all uppercase letters')
})
it('does not call context.fail if type is a valid uppercase UUID', () => {
const context = {
value: 'EF3D56E1-6046-4743-AA69-B94BC9E66181',
fail: jest.fn()
}
uuid.upper(context)
expect(context.fail).not.toHaveBeenCalled()
})
it('calls context.fail if type is not an uppercase UUID', () => {
const context = {
value: 'ef3d56e1-6046-4743-aa69-b94bc9e66181',
fail: jest.fn()
}
uuid.upper(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID with all uppercase letters')
})
})
describe('lower', () => {
it('calls context.fail if type is not a valid UUID', () => {
const context = {
value: 'foo',
fail: jest.fn()
}
uuid.lower(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID with all lowercase letters')
})
it('calls context.fail if type is empty', () => {
const context = {
value: '',
fail: jest.fn()
}
uuid.lower(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID with all lowercase letters')
})
it('does not call context.fail if type is a valid lowercase UUID', () => {
const context = {
value: 'ef3d56e1-6046-4743-aa69-b94bc9e66181',
fail: jest.fn()
}
uuid.lower(context)
expect(context.fail).not.toHaveBeenCalled()
})
it('calls context.fail if type is not a lowercase UUID', () => {
const context = {
value: 'EF3D56E1-6046-4743-AA69-B94BC9E66181',
fail: jest.fn()
}
uuid.lower(context)
expect(context.fail).toHaveBeenCalledWith('Value must be a valid UUID with all lowercase letters')
})
})
})
| {
"content_hash": "fbaca8d04a27ba6331314a169cde3558",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 104,
"avg_line_length": 32.70754716981132,
"alnum_prop": 0.5863859244303432,
"repo_name": "TechnologyAdvice/obey",
"id": "887dd1a6db0ab868126d06eebaf65f2242e03884",
"size": "3467",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/src/typeStrategies/uuid.spec.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "76889"
}
],
"symlink_target": ""
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace Microsoft.R.LanguageServer.Logging {
internal interface IOutput {
void Write(string text);
void WriteError(string text);
}
}
| {
"content_hash": "e63bdfad8b99a03dbe91702be7836b32",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 91,
"avg_line_length": 34.888888888888886,
"alnum_prop": 0.7229299363057324,
"repo_name": "AlexanderSher/RTVS",
"id": "9a1229d32d9085ac6f629cb0744cf53149ef9844",
"size": "316",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/VsCode/LanguageServer/Impl/Logging/IOutput.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "189"
},
{
"name": "C",
"bytes": "14326"
},
{
"name": "C#",
"bytes": "8026418"
},
{
"name": "C++",
"bytes": "31801"
},
{
"name": "CMake",
"bytes": "1617"
},
{
"name": "CSS",
"bytes": "4389"
},
{
"name": "HTML",
"bytes": "8339"
},
{
"name": "M4",
"bytes": "1854"
},
{
"name": "PLSQL",
"bytes": "283"
},
{
"name": "PowerShell",
"bytes": "729"
},
{
"name": "R",
"bytes": "332447"
},
{
"name": "Rebol",
"bytes": "436"
},
{
"name": "Roff",
"bytes": "2612"
},
{
"name": "SQLPL",
"bytes": "1116"
},
{
"name": "Shell",
"bytes": "13837"
},
{
"name": "TypeScript",
"bytes": "22792"
},
{
"name": "XSLT",
"bytes": "421"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<title>CRSTemporalDatum Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
<script src="../js/lunr.min.js" defer></script>
<script src="../js/typeahead.jquery.js" defer></script>
<script src="../js/jazzy.search.js" defer></script>
</head>
<body>
<a name="//apple_ref/objc/Class/CRSTemporalDatum" class="dashAnchor"></a>
<a title="CRSTemporalDatum Class Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../index.html">geopackage-ios 7.3.0 Docs</a> (85% documented)</p>
<p class="header-right"><a href="https://github.com/ngageoint/geopackage-ios"><img src="../img/gh.png" alt="GitHub"/>View on GitHub</a></p>
<div class="header-right">
<form role="search" action="../search.json">
<input type="text" placeholder="Search documentation" data-typeahead>
</form>
</div>
</div>
</header>
<div class="content-wrapper">
<p id="breadcrumbs">
<a href="../index.html">geopackage-ios Reference</a>
<img id="carat" src="../img/carat.png" alt=""/>
CRSTemporalDatum Class Reference
</p>
</div>
<div class="content-wrapper">
<nav class="sidebar">
<ul class="nav-groups">
<li class="nav-group-name">
<a href="../Classes.html">Classes</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Classes/CLRColor.html">CLRColor</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSAbridgedCoordinateTransformation.html">CRSAbridgedCoordinateTransformation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSAxis.html">CRSAxis</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSAxisDirectionTypes.html">CRSAxisDirectionTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSBoundCoordinateReferenceSystem.html">CRSBoundCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCategoryTypes.html">CRSCategoryTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCommon.html">CRSCommon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCompoundCoordinateReferenceSystem.html">CRSCompoundCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSConcatenatedOperation.html">CRSConcatenatedOperation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCoordinateMetadata.html">CRSCoordinateMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCoordinateOperation.html">CRSCoordinateOperation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCoordinateReferenceSystem.html">CRSCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCoordinateSystem.html">CRSCoordinateSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSCoordinateSystemTypes.html">CRSCoordinateSystemTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSDateTime.html">CRSDateTime</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSDatumEnsemble.html">CRSDatumEnsemble</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSDatumEnsembleMember.html">CRSDatumEnsembleMember</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSDerivedCoordinateReferenceSystem.html">CRSDerivedCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSDerivingConversion.html">CRSDerivingConversion</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSDynamic.html">CRSDynamic</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSEllipsoid.html">CRSEllipsoid</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSEllipsoidTypes.html">CRSEllipsoidTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSEllipsoids.html">CRSEllipsoids</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSEngineeringCoordinateReferenceSystem.html">CRSEngineeringCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSEngineeringDatum.html">CRSEngineeringDatum</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSExtent.html">CRSExtent</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSGeoCoordinateReferenceSystem.html">CRSGeoCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSGeoDatumEnsemble.html">CRSGeoDatumEnsemble</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSGeoDatums.html">CRSGeoDatums</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSGeoReferenceFrame.html">CRSGeoReferenceFrame</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSGeographicBoundingBox.html">CRSGeographicBoundingBox</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSIdentifier.html">CRSIdentifier</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSKeyword.html">CRSKeyword</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSMapProjection.html">CRSMapProjection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSObject.html">CRSObject</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSOperation.html">CRSOperation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSOperationMethod.html">CRSOperationMethod</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSOperationMethods.html">CRSOperationMethods</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSOperationParameter.html">CRSOperationParameter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSOperationParameters.html">CRSOperationParameters</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSOperationTypes.html">CRSOperationTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSParametricCoordinateReferenceSystem.html">CRSParametricCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSParametricDatum.html">CRSParametricDatum</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSPointMotionOperation.html">CRSPointMotionOperation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSPrimeMeridian.html">CRSPrimeMeridian</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSPrimeMeridians.html">CRSPrimeMeridians</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)CRSProjConstants">CRSProjConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSProjParams.html">CRSProjParams</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSProjParser.html">CRSProjParser</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSProjectedCoordinateReferenceSystem.html">CRSProjectedCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSReader.html">CRSReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSReferenceFrame.html">CRSReferenceFrame</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSSimpleCoordinateReferenceSystem.html">CRSSimpleCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSSimpleOperation.html">CRSSimpleOperation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTemporalCoordinateReferenceSystem.html">CRSTemporalCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTemporalDatum.html">CRSTemporalDatum</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTemporalExtent.html">CRSTemporalExtent</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)CRSTextConstants">CRSTextConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTextReader.html">CRSTextReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTextUtils.html">CRSTextUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTriaxialEllipsoid.html">CRSTriaxialEllipsoid</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSTypes.html">CRSTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSUnit.html">CRSUnit</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSUnitTypes.html">CRSUnitTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSUnits.html">CRSUnits</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSUsage.html">CRSUsage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSVerticalCoordinateReferenceSystem.html">CRSVerticalCoordinateReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSVerticalDatumEnsemble.html">CRSVerticalDatumEnsemble</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSVerticalExtent.html">CRSVerticalExtent</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSVerticalReferenceFrame.html">CRSVerticalReferenceFrame</a>
</li>
<li class="nav-group-task">
<a href="../Classes/CRSWriter.html">CRSWriter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAlterTable.html">GPKGAlterTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesColumn.html">GPKGAttributesColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesColumns.html">GPKGAttributesColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesDao.html">GPKGAttributesDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesRow.html">GPKGAttributesRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesTable.html">GPKGAttributesTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesTableMetadata.html">GPKGAttributesTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGAttributesTableReader.html">GPKGAttributesTableReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGBaseDao.html">GPKGBaseDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGBaseExtension.html">GPKGBaseExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGBoundedOverlay.html">GPKGBoundedOverlay</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGBoundingBox.html">GPKGBoundingBox</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGColumnConstraints.html">GPKGColumnConstraints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGColumnValue.html">GPKGColumnValue</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGColumnValues.html">GPKGColumnValues</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCompositeOverlay.html">GPKGCompositeOverlay</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCompressFormats.html">GPKGCompressFormats</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConnection.html">GPKGConnection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConnectionFunction.html">GPKGConnectionFunction</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConnectionPool.html">GPKGConnectionPool</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConstraint.html">GPKGConstraint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConstraintParser.html">GPKGConstraintParser</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConstraintTypes.html">GPKGConstraintTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGConstraints.html">GPKGConstraints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentValues.html">GPKGContentValues</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContents.html">GPKGContents</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentsDao.html">GPKGContentsDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentsDataTypes.html">GPKGContentsDataTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentsId.html">GPKGContentsId</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentsIdDao.html">GPKGContentsIdDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentsIdExtension.html">GPKGContentsIdExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGContentsIdTableCreator.html">GPKGContentsIdTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageData.html">GPKGCoverageData</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataAlgorithms.html">GPKGCoverageDataAlgorithms</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataPng.html">GPKGCoverageDataPng</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataPngImage.html">GPKGCoverageDataPngImage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataRequest.html">GPKGCoverageDataRequest</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataResults.html">GPKGCoverageDataResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataSourcePixel.html">GPKGCoverageDataSourcePixel</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataTiff.html">GPKGCoverageDataTiff</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataTiffImage.html">GPKGCoverageDataTiffImage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCoverageDataTileMatrixResults.html">GPKGCoverageDataTileMatrixResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGCrsWktExtension.html">GPKGCrsWktExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDataColumnConstraints.html">GPKGDataColumnConstraints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDataColumnConstraintsDao.html">GPKGDataColumnConstraintsDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDataColumns.html">GPKGDataColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDataColumnsDao.html">GPKGDataColumnsDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDataTypes.html">GPKGDataTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDateTimeUtils.html">GPKGDateTimeUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDbConnection.html">GPKGDbConnection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDublinCoreMetadata.html">GPKGDublinCoreMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGDublinCoreTypes.html">GPKGDublinCoreTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGExtendedRelation.html">GPKGExtendedRelation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGExtendedRelationsDao.html">GPKGExtendedRelationsDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGExtensionManagement.html">GPKGExtensionManagement</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGExtensionManager.html">GPKGExtensionManager</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGExtensions.html">GPKGExtensions</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGExtensionsDao.html">GPKGExtensionsDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureCache.html">GPKGFeatureCache</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureCacheTables.html">GPKGFeatureCacheTables</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureColumn.html">GPKGFeatureColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureColumns.html">GPKGFeatureColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureDao.html">GPKGFeatureDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureGenerator.html">GPKGFeatureGenerator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexFeatureResults.html">GPKGFeatureIndexFeatureResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexGeoPackageResults.html">GPKGFeatureIndexGeoPackageResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexListResults.html">GPKGFeatureIndexListResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexLocation.html">GPKGFeatureIndexLocation</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexManager.html">GPKGFeatureIndexManager</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexMetadataResults.html">GPKGFeatureIndexMetadataResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexRTreeResults.html">GPKGFeatureIndexRTreeResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexResultSetResults.html">GPKGFeatureIndexResultSetResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexResults.html">GPKGFeatureIndexResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexTypes.html">GPKGFeatureIndexTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexer.html">GPKGFeatureIndexer</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexerIdQuery.html">GPKGFeatureIndexerIdQuery</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureIndexerIdResultSet.html">GPKGFeatureIndexerIdResultSet</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureInfoBuilder.html">GPKGFeatureInfoBuilder</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureOverlay.html">GPKGFeatureOverlay</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureOverlayQuery.html">GPKGFeatureOverlayQuery</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeaturePreview.html">GPKGFeaturePreview</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureRow.html">GPKGFeatureRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureRowData.html">GPKGFeatureRowData</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureShape.html">GPKGFeatureShape</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureShapes.html">GPKGFeatureShapes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureStyle.html">GPKGFeatureStyle</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureStyleExtension.html">GPKGFeatureStyleExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureStyles.html">GPKGFeatureStyles</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTable.html">GPKGFeatureTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTableData.html">GPKGFeatureTableData</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTableIndex.html">GPKGFeatureTableIndex</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTableMetadata.html">GPKGFeatureTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTableReader.html">GPKGFeatureTableReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTableStyles.html">GPKGFeatureTableStyles</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTileContext.html">GPKGFeatureTileContext</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTileGenerator.html">GPKGFeatureTileGenerator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTileLink.html">GPKGFeatureTileLink</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTileLinkDao.html">GPKGFeatureTileLinkDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTileLinkTableCreator.html">GPKGFeatureTileLinkTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTilePointIcon.html">GPKGFeatureTilePointIcon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTileTableLinker.html">GPKGFeatureTileTableLinker</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGFeatureTiles.html">GPKGFeatureTiles</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackage.html">GPKGGeoPackage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageCache.html">GPKGGeoPackageCache</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)GPKGGeoPackageConstants">GPKGGeoPackageConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageFactory.html">GPKGGeoPackageFactory</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageManager.html">GPKGGeoPackageManager</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageMetadata.html">GPKGGeoPackageMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageMetadataDao.html">GPKGGeoPackageMetadataDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageMetadataTableCreator.html">GPKGGeoPackageMetadataTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageOverlay.html">GPKGGeoPackageOverlay</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageTableCreator.html">GPKGGeoPackageTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageTile.html">GPKGGeoPackageTile</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageTileRetriever.html">GPKGGeoPackageTileRetriever</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeoPackageValidate.html">GPKGGeoPackageValidate</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryColumns.html">GPKGGeometryColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryColumnsDao.html">GPKGGeometryColumnsDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryCrop.html">GPKGGeometryCrop</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryData.html">GPKGGeometryData</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryExtensions.html">GPKGGeometryExtensions</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryIndex.html">GPKGGeometryIndex</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryIndexDao.html">GPKGGeometryIndexDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryIndexTableCreator.html">GPKGGeometryIndexTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryMetadata.html">GPKGGeometryMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryMetadataDao.html">GPKGGeometryMetadataDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGeometryUtils.html">GPKGGeometryUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGriddedCoverage.html">GPKGGriddedCoverage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGriddedCoverageDao.html">GPKGGriddedCoverageDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGriddedCoverageDataTypes.html">GPKGGriddedCoverageDataTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGriddedCoverageEncodingTypes.html">GPKGGriddedCoverageEncodingTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGriddedTile.html">GPKGGriddedTile</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGGriddedTileDao.html">GPKGGriddedTileDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGIOUtils.html">GPKGIOUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGIconCache.html">GPKGIconCache</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGIconDao.html">GPKGIconDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGIconRow.html">GPKGIconRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGIconTable.html">GPKGIconTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGIcons.html">GPKGIcons</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGImageConverter.html">GPKGImageConverter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGLocationBoundingBox.html">GPKGLocationBoundingBox</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGManualFeatureQuery.html">GPKGManualFeatureQuery</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGManualFeatureQueryResults.html">GPKGManualFeatureQueryResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapPoint.html">GPKGMapPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapPointOptions.html">GPKGMapPointOptions</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapShape.html">GPKGMapShape</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapShapeConverter.html">GPKGMapShapeConverter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapShapePoints.html">GPKGMapShapePoints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapShapeTypes.html">GPKGMapShapeTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapTolerance.html">GPKGMapTolerance</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMapUtils.html">GPKGMapUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMappedColumn.html">GPKGMappedColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMediaDao.html">GPKGMediaDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMediaRow.html">GPKGMediaRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMediaTable.html">GPKGMediaTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMediaTableMetadata.html">GPKGMediaTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadata.html">GPKGMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadataDao.html">GPKGMetadataDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadataDb.html">GPKGMetadataDb</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadataExtension.html">GPKGMetadataExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadataReference.html">GPKGMetadataReference</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadataReferenceDao.html">GPKGMetadataReferenceDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMetadataScope.html">GPKGMetadataScope</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMultiPoint.html">GPKGMultiPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMultiPolygon.html">GPKGMultiPolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMultiPolygonPoints.html">GPKGMultiPolygonPoints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMultiPolyline.html">GPKGMultiPolyline</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMultiPolylinePoints.html">GPKGMultiPolylinePoints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGMultipleFeatureIndexResults.html">GPKGMultipleFeatureIndexResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGNGAExtensions.html">GPKGNGAExtensions</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)GPKGNGATableCreator">GPKGNGATableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGNetworkUtils.html">GPKGNetworkUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGNumberFeaturesTile.html">GPKGNumberFeaturesTile</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGOAPIFeatureGenerator.html">GPKGOAPIFeatureGenerator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGObjectPaginatedResults.html">GPKGObjectPaginatedResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGObjectResultSet.html">GPKGObjectResultSet</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGOverlayFactory.html">GPKGOverlayFactory</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPaginatedResults.html">GPKGPaginatedResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPagination.html">GPKGPagination</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPixelBounds.html">GPKGPixelBounds</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPlatteCarreOptimize.html">GPKGPlatteCarreOptimize</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolygon.html">GPKGPolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolygonHolePoints.html">GPKGPolygonHolePoints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolygonOptions.html">GPKGPolygonOptions</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)GPKGPolygonOrientations">GPKGPolygonOrientations</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolygonPoints.html">GPKGPolygonPoints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolyline.html">GPKGPolyline</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolylineOptions.html">GPKGPolylineOptions</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPolylinePoints.html">GPKGPolylinePoints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGProperties.html">GPKGProperties</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPropertiesExtension.html">GPKGPropertiesExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGPropertiesManager.html">GPKGPropertiesManager</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)GPKGPropertyConstants">GPKGPropertyConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)GPKGPropertyNames">GPKGPropertyNames</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRTreeIndexExtension.html">GPKGRTreeIndexExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRTreeIndexTableDao.html">GPKGRTreeIndexTableDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRTreeIndexTableRow.html">GPKGRTreeIndexTableRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRawConstraint.html">GPKGRawConstraint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRelatedTablesExtension.html">GPKGRelatedTablesExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRelationTypes.html">GPKGRelationTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGResultSet.html">GPKGResultSet</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRow.html">GPKGRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRowPaginatedResults.html">GPKGRowPaginatedResults</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGRowResultSet.html">GPKGRowResultSet</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSQLiteMaster.html">GPKGSQLiteMaster</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSQLiteMasterColumns.html">GPKGSQLiteMasterColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSQLiteMasterQuery.html">GPKGSQLiteMasterQuery</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSQLiteMasterTypes.html">GPKGSQLiteMasterTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSchemaExtension.html">GPKGSchemaExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSessionTaskData.html">GPKGSessionTaskData</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSimpleAttributesDao.html">GPKGSimpleAttributesDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSimpleAttributesRow.html">GPKGSimpleAttributesRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSimpleAttributesTable.html">GPKGSimpleAttributesTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSimpleAttributesTableMetadata.html">GPKGSimpleAttributesTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSpatialReferenceSystem.html">GPKGSpatialReferenceSystem</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSpatialReferenceSystemDao.html">GPKGSpatialReferenceSystemDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSqlLiteQueryBuilder.html">GPKGSqlLiteQueryBuilder</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSqlUtils.html">GPKGSqlUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGSqliteConnection.html">GPKGSqliteConnection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleCache.html">GPKGStyleCache</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleDao.html">GPKGStyleDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleMappingDao.html">GPKGStyleMappingDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleMappingRow.html">GPKGStyleMappingRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleMappingTable.html">GPKGStyleMappingTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleRow.html">GPKGStyleRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleTable.html">GPKGStyleTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyleUtils.html">GPKGStyleUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGStyles.html">GPKGStyles</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableColumn.html">GPKGTableColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableConstraints.html">GPKGTableConstraints</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableCreator.html">GPKGTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableIndex.html">GPKGTableIndex</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableIndexDao.html">GPKGTableIndexDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableInfo.html">GPKGTableInfo</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableMapping.html">GPKGTableMapping</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableMetadata.html">GPKGTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTableMetadataDao.html">GPKGTableMetadataDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileBoundingBoxUtils.html">GPKGTileBoundingBoxUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileColumn.html">GPKGTileColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileColumns.html">GPKGTileColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileCreator.html">GPKGTileCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileDao.html">GPKGTileDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileDaoUtils.html">GPKGTileDaoUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileGenerator.html">GPKGTileGenerator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileGrid.html">GPKGTileGrid</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileMatrix.html">GPKGTileMatrix</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileMatrixDao.html">GPKGTileMatrixDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileMatrixSet.html">GPKGTileMatrixSet</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileMatrixSetDao.html">GPKGTileMatrixSetDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileReprojection.html">GPKGTileReprojection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileReprojectionOptimize.html">GPKGTileReprojectionOptimize</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileReprojectionZoom.html">GPKGTileReprojectionZoom</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileRow.html">GPKGTileRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileScaling.html">GPKGTileScaling</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileScalingDao.html">GPKGTileScalingDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileScalingTableCreator.html">GPKGTileScalingTableCreator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileScalingTypes.html">GPKGTileScalingTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileTable.html">GPKGTileTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileTableMetadata.html">GPKGTileTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileTableReader.html">GPKGTileTableReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileTableScaling.html">GPKGTileTableScaling</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGTileUtils.html">GPKGTileUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUniqueConstraint.html">GPKGUniqueConstraint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUrlTileGenerator.html">GPKGUrlTileGenerator</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserColumn.html">GPKGUserColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserColumns.html">GPKGUserColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserCustomColumn.html">GPKGUserCustomColumn</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserCustomColumns.html">GPKGUserCustomColumns</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserCustomDao.html">GPKGUserCustomDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserCustomRow.html">GPKGUserCustomRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserCustomTable.html">GPKGUserCustomTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserCustomTableReader.html">GPKGUserCustomTableReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserDao.html">GPKGUserDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserMappingDao.html">GPKGUserMappingDao</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserMappingRow.html">GPKGUserMappingRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserMappingTable.html">GPKGUserMappingTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserRelatedTable.html">GPKGUserRelatedTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserRow.html">GPKGUserRow</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserRowSync.html">GPKGUserRowSync</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserTable.html">GPKGUserTable</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserTableMetadata.html">GPKGUserTableMetadata</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUserTableReader.html">GPKGUserTableReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGUtils.html">GPKGUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGWebMercatorOptimize.html">GPKGWebMercatorOptimize</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGWebPExtension.html">GPKGWebPExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGXYZOverlay.html">GPKGXYZOverlay</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGXYZTileRetriever.html">GPKGXYZTileRetriever</a>
</li>
<li class="nav-group-task">
<a href="../Classes/GPKGZoomOtherExtension.html">GPKGZoomOtherExtension</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFCollection.html">OAFCollection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFCollections.html">OAFCollections</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFCrs.html">OAFCrs</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFExtent.html">OAFExtent</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFFeatureCollection.html">OAFFeatureCollection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFFeaturesConverter.html">OAFFeaturesConverter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFFeaturesObject.html">OAFFeaturesObject</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFLink.html">OAFLink</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFSpatial.html">OAFSpatial</a>
</li>
<li class="nav-group-task">
<a href="../Classes/OAFTemporal.html">OAFTemporal</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJAuthorityProjections.html">PROJAuthorityProjections</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJCRSParser.html">PROJCRSParser</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)PROJConstants">PROJConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJIOUtils.html">PROJIOUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJLocationCoordinate3D.html">PROJLocationCoordinate3D</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJProjection.html">PROJProjection</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)PROJProjectionConstants">PROJProjectionConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJProjectionFactory.html">PROJProjectionFactory</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)PROJProjectionFactoryTypes">PROJProjectionFactoryTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJProjectionRetriever.html">PROJProjectionRetriever</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJProjectionTransform.html">PROJProjectionTransform</a>
</li>
<li class="nav-group-task">
<a href="../Classes/PROJProjections.html">PROJProjections</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)PROJUnits">PROJUnits</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFByteReader.html">SFByteReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFByteWriter.html">SFByteWriter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCentroidCurve.html">SFCentroidCurve</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCentroidPoint.html">SFCentroidPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCentroidSurface.html">SFCentroidSurface</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCircularString.html">SFCircularString</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCompoundCurve.html">SFCompoundCurve</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCurve.html">SFCurve</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFCurvePolygon.html">SFCurvePolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFDegreesCentroid.html">SFDegreesCentroid</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFEvent.html">SFEvent</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFEventQueue.html">SFEventQueue</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)SFEventTypes">SFEventTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFExtendedGeometryCollection.html">SFExtendedGeometryCollection</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)SFFiniteFilterTypes">SFFiniteFilterTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGFeature.html">SFGFeature</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGFeatureCollection.html">SFGFeatureCollection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGFeatureConverter.html">SFGFeatureConverter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGGeoJSONObject.html">SFGGeoJSONObject</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGGeometry.html">SFGGeometry</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGGeometryCollection.html">SFGGeometryCollection</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGGeometryTypes.html">SFGGeometryTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGLineString.html">SFGLineString</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGMultiLineString.html">SFGMultiLineString</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGMultiPoint.html">SFGMultiPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGMultiPolygon.html">SFGMultiPolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGOrderedDictionary.html">SFGOrderedDictionary</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGPoint.html">SFGPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGPolygon.html">SFGPolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGPosition.html">SFGPosition</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometry.html">SFGeometry</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometryCollection.html">SFGeometryCollection</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)SFGeometryConstants">SFGeometryConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometryEnvelope.html">SFGeometryEnvelope</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometryEnvelopeBuilder.html">SFGeometryEnvelopeBuilder</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometryPrinter.html">SFGeometryPrinter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometryTypes.html">SFGeometryTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFGeometryUtils.html">SFGeometryUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFLine.html">SFLine</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFLineString.html">SFLineString</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFLinearRing.html">SFLinearRing</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFMultiCurve.html">SFMultiCurve</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFMultiLineString.html">SFMultiLineString</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFMultiPoint.html">SFMultiPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFMultiPolygon.html">SFMultiPolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFMultiSurface.html">SFMultiSurface</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFPGeometryTransform.html">SFPGeometryTransform</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFPoint.html">SFPoint</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFPointFiniteFilter.html">SFPointFiniteFilter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFPolygon.html">SFPolygon</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFPolyhedralSurface.html">SFPolyhedralSurface</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFSegment.html">SFSegment</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFShamosHoey.html">SFShamosHoey</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFSurface.html">SFSurface</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFSweepLine.html">SFSweepLine</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFTIN.html">SFTIN</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFTextReader.html">SFTextReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFTriangle.html">SFTriangle</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFWBGeometryCodes.html">SFWBGeometryCodes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFWBGeometryReader.html">SFWBGeometryReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFWBGeometryTypeInfo.html">SFWBGeometryTypeInfo</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SFWBGeometryWriter.html">SFWBGeometryWriter</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFByteReader.html">TIFFByteReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFByteWriter.html">TIFFByteWriter</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)TIFFConstants">TIFFConstants</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)TIFFDeflateCompression">TIFFDeflateCompression</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFFieldTagTypes.html">TIFFFieldTagTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFFieldTypes.html">TIFFFieldTypes</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFFileDirectory.html">TIFFFileDirectory</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFFileDirectoryEntry.html">TIFFFileDirectoryEntry</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFIOUtils.html">TIFFIOUtils</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFImage.html">TIFFImage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFImageWindow.html">TIFFImageWindow</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)TIFFLZWCompression">TIFFLZWCompression</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)TIFFPackbitsCompression">TIFFPackbitsCompression</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFPredictor.html">TIFFPredictor</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFRasters.html">TIFFRasters</a>
</li>
<li class="nav-group-task">
<a href="../Classes.html#/c:objc(cs)TIFFRawCompression">TIFFRawCompression</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFReader.html">TIFFReader</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFUnsupportedCompression.html">TIFFUnsupportedCompression</a>
</li>
<li class="nav-group-task">
<a href="../Classes/TIFFWriter.html">TIFFWriter</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Constants.html">Constants</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserColumn.h@AUTOINCREMENT_CONSTRAINT_ORDER">AUTOINCREMENT_CONSTRAINT_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_AFT_NAME">CRS_AXIS_AFT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_AWAY_FROM_NAME">CRS_AXIS_AWAY_FROM_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_CLOCKWISE_NAME">CRS_AXIS_CLOCKWISE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_COLUMN_NEGATIVE_NAME">CRS_AXIS_COLUMN_NEGATIVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_COLUMN_POSITIVE_NAME">CRS_AXIS_COLUMN_POSITIVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_COUNTER_CLOCKWISE_NAME">CRS_AXIS_COUNTER_CLOCKWISE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_DOWN_NAME">CRS_AXIS_DISPLAY_DOWN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_LEFT_NAME">CRS_AXIS_DISPLAY_LEFT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_RIGHT_NAME">CRS_AXIS_DISPLAY_RIGHT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_DISPLAY_UP_NAME">CRS_AXIS_DISPLAY_UP_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_DOWN_NAME">CRS_AXIS_DOWN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_EAST_NAME">CRS_AXIS_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_EAST_NORTH_EAST_NAME">CRS_AXIS_EAST_NORTH_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_EAST_SOUTH_EAST_NAME">CRS_AXIS_EAST_SOUTH_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_FORWARD_NAME">CRS_AXIS_FORWARD_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_FUTURE_NAME">CRS_AXIS_FUTURE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_GEOCENTRIC_X_NAME">CRS_AXIS_GEOCENTRIC_X_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_GEOCENTRIC_Y_NAME">CRS_AXIS_GEOCENTRIC_Y_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_GEOCENTRIC_Z_NAME">CRS_AXIS_GEOCENTRIC_Z_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_NORTH_EAST_NAME">CRS_AXIS_NORTH_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_NORTH_NAME">CRS_AXIS_NORTH_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_NORTH_NORTH_EAST_NAME">CRS_AXIS_NORTH_NORTH_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_NORTH_NORTH_WEST_NAME">CRS_AXIS_NORTH_NORTH_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_NORTH_WEST_NAME">CRS_AXIS_NORTH_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_PAST_NAME">CRS_AXIS_PAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_PORT_NAME">CRS_AXIS_PORT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_ROW_NEGATIVE_NAME">CRS_AXIS_ROW_NEGATIVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_ROW_POSITIVE_NAME">CRS_AXIS_ROW_POSITIVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_SOUTH_EAST_NAME">CRS_AXIS_SOUTH_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_SOUTH_NAME">CRS_AXIS_SOUTH_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_SOUTH_SOUTH_EAST_NAME">CRS_AXIS_SOUTH_SOUTH_EAST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_SOUTH_SOUTH_WEST_NAME">CRS_AXIS_SOUTH_SOUTH_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_SOUTH_WEST_NAME">CRS_AXIS_SOUTH_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_STARBOARD_NAME">CRS_AXIS_STARBOARD_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_TOWARDS_NAME">CRS_AXIS_TOWARDS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_UNSPECIFIED_NAME">CRS_AXIS_UNSPECIFIED_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_UP_NAME">CRS_AXIS_UP_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_WEST_NAME">CRS_AXIS_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_WEST_NORTH_WEST_NAME">CRS_AXIS_WEST_NORTH_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_AXIS_WEST_SOUTH_WEST_NAME">CRS_AXIS_WEST_SOUTH_WEST_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CATEGORY_CRS_NAME">CRS_CATEGORY_CRS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CATEGORY_METADATA_NAME">CRS_CATEGORY_METADATA_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CATEGORY_OPERATION_NAME">CRS_CATEGORY_OPERATION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_AFFINE_NAME">CRS_CS_AFFINE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_CARTESIAN_NAME">CRS_CS_CARTESIAN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_CYLINDRICAL_NAME">CRS_CS_CYLINDRICAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_ELLIPSOIDAL_NAME">CRS_CS_ELLIPSOIDAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_LINEAR_NAME">CRS_CS_LINEAR_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_ORDINAL_NAME">CRS_CS_ORDINAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_PARAMETRIC_NAME">CRS_CS_PARAMETRIC_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_POLAR_NAME">CRS_CS_POLAR_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_SPHERICAL_NAME">CRS_CS_SPHERICAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_TEMPORAL_COUNT_NAME">CRS_CS_TEMPORAL_COUNT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_TEMPORAL_DATE_TIME_NAME">CRS_CS_TEMPORAL_DATE_TIME_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_TEMPORAL_MEASURE_NAME">CRS_CS_TEMPORAL_MEASURE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_CS_VERTICAL_NAME">CRS_CS_VERTICAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_ELLIPSOID_OBLATE_NAME">CRS_ELLIPSOID_OBLATE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_ELLIPSOID_TRIAXIAL_NAME">CRS_ELLIPSOID_TRIAXIAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_OPERATION_ABRIDGED_COORDINATE_TRANSFORMATION_NAME">CRS_OPERATION_ABRIDGED_COORDINATE_TRANSFORMATION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_OPERATION_COORDINATE_NAME">CRS_OPERATION_COORDINATE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_OPERATION_DERIVING_CONVERSION_NAME">CRS_OPERATION_DERIVING_CONVERSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_OPERATION_MAP_PROJECTION_NAME">CRS_OPERATION_MAP_PROJECTION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_OPERATION_POINT_MOTION_NAME">CRS_OPERATION_POINT_MOTION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_DOWN">CRS_PROJ_AXIS_DOWN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_EAST">CRS_PROJ_AXIS_EAST</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_NORTH">CRS_PROJ_AXIS_NORTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_SOUTH">CRS_PROJ_AXIS_SOUTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_UP">CRS_PROJ_AXIS_UP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_WEST">CRS_PROJ_AXIS_WEST</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_AXIS_WEST_SOUTH_UP">CRS_PROJ_AXIS_WEST_SOUTH_UP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_AEA">CRS_PROJ_NAME_AEA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_CASS">CRS_PROJ_NAME_CASS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_CEA">CRS_PROJ_NAME_CEA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_EQC">CRS_PROJ_NAME_EQC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_KROVAK">CRS_PROJ_NAME_KROVAK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_LAEA">CRS_PROJ_NAME_LAEA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_LCC">CRS_PROJ_NAME_LCC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_LONGLAT">CRS_PROJ_NAME_LONGLAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_MERC">CRS_PROJ_NAME_MERC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_NZMG">CRS_PROJ_NAME_NZMG</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_OMERC">CRS_PROJ_NAME_OMERC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_POLY">CRS_PROJ_NAME_POLY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_SOMERC">CRS_PROJ_NAME_SOMERC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_STERE">CRS_PROJ_NAME_STERE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_STEREA">CRS_PROJ_NAME_STEREA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_TMERC">CRS_PROJ_NAME_TMERC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_NAME_UTM">CRS_PROJ_NAME_UTM</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_A">CRS_PROJ_PARAM_A</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_ALPHA">CRS_PROJ_PARAM_ALPHA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_AXIS">CRS_PROJ_PARAM_AXIS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_B">CRS_PROJ_PARAM_B</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_DATUM">CRS_PROJ_PARAM_DATUM</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_ELLPS">CRS_PROJ_PARAM_ELLPS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_GAMMA">CRS_PROJ_PARAM_GAMMA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_K_0">CRS_PROJ_PARAM_K_0</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_0">CRS_PROJ_PARAM_LAT_0</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_1">CRS_PROJ_PARAM_LAT_1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_2">CRS_PROJ_PARAM_LAT_2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_LAT_TS">CRS_PROJ_PARAM_LAT_TS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_LONC">CRS_PROJ_PARAM_LONC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_LON_0">CRS_PROJ_PARAM_LON_0</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_NADGRIDS">CRS_PROJ_PARAM_NADGRIDS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_NO_DEFS">CRS_PROJ_PARAM_NO_DEFS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_NO_UOFF">CRS_PROJ_PARAM_NO_UOFF</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_PM">CRS_PROJ_PARAM_PM</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_PROJ">CRS_PROJ_PARAM_PROJ</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_SOUTH">CRS_PROJ_PARAM_SOUTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_TOWGS84">CRS_PROJ_PARAM_TOWGS84</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_TO_METER">CRS_PROJ_PARAM_TO_METER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_UNITS">CRS_PROJ_PARAM_UNITS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_WKTEXT">CRS_PROJ_PARAM_WKTEXT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_X_0">CRS_PROJ_PARAM_X_0</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_Y_0">CRS_PROJ_PARAM_Y_0</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PARAM_ZONE">CRS_PROJ_PARAM_ZONE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_PSEUDO_MERCATOR">CRS_PROJ_PSEUDO_MERCATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_SWISS_OBLIQUE_MERCATOR">CRS_PROJ_SWISS_OBLIQUE_MERCATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_SWISS_OBLIQUE_MERCATOR_COMPAT">CRS_PROJ_SWISS_OBLIQUE_MERCATOR_COMPAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_UNITS_DEGREE">CRS_PROJ_UNITS_DEGREE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_UNITS_FOOT">CRS_PROJ_UNITS_FOOT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_UNITS_METRE">CRS_PROJ_UNITS_METRE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_UNITS_US_SURVEY_FOOT">CRS_PROJ_UNITS_US_SURVEY_FOOT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_PROJ_UTM_ZONE">CRS_PROJ_UTM_ZONE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_BOUND_NAME">CRS_TYPE_BOUND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_COMPOUND_NAME">CRS_TYPE_COMPOUND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_CONCATENATED_OPERATION_NAME">CRS_TYPE_CONCATENATED_OPERATION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_COORDINATE_METADATA_NAME">CRS_TYPE_COORDINATE_METADATA_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_COORDINATE_OPERATION_NAME">CRS_TYPE_COORDINATE_OPERATION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_DERIVED_NAME">CRS_TYPE_DERIVED_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_ENGINEERING_NAME">CRS_TYPE_ENGINEERING_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_GEODETIC_NAME">CRS_TYPE_GEODETIC_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_GEOGRAPHIC_NAME">CRS_TYPE_GEOGRAPHIC_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_PARAMETRIC_NAME">CRS_TYPE_PARAMETRIC_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_POINT_MOTION_OPERATION_NAME">CRS_TYPE_POINT_MOTION_OPERATION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_PROJECTED_NAME">CRS_TYPE_PROJECTED_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_TEMPORAL_NAME">CRS_TYPE_TEMPORAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_TYPE_VERTICAL_NAME">CRS_TYPE_VERTICAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_ARC_MINUTE_NAME">CRS_UNITS_ARC_MINUTE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_ARC_SECOND_NAME">CRS_UNITS_ARC_SECOND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_BIN_NAME">CRS_UNITS_BIN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_CALENDAR_MONTH_NAME">CRS_UNITS_CALENDAR_MONTH_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_CALENDAR_SECOND_NAME">CRS_UNITS_CALENDAR_SECOND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_DAY_NAME">CRS_UNITS_DAY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_DEGREE_NAME">CRS_UNITS_DEGREE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_FOOT_NAME">CRS_UNITS_FOOT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_GERMAN_LEGAL_METRE_NAME">CRS_UNITS_GERMAN_LEGAL_METRE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_GRAD_NAME">CRS_UNITS_GRAD_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_HECTOPASCAL_NAME">CRS_UNITS_HECTOPASCAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_HOUR_NAME">CRS_UNITS_HOUR_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_KILOMETRE_NAME">CRS_UNITS_KILOMETRE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_METRE_NAME">CRS_UNITS_METRE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MICROMETRE_NAME">CRS_UNITS_MICROMETRE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MICRORADIAN_NAME">CRS_UNITS_MICRORADIAN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MICROSECOND_NAME">CRS_UNITS_MICROSECOND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MILLIMETRE_NAME">CRS_UNITS_MILLIMETRE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MILLIRADIAN_NAME">CRS_UNITS_MILLIRADIAN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MILLISECOND_NAME">CRS_UNITS_MILLISECOND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_MINUTE_NAME">CRS_UNITS_MINUTE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_PARTS_PER_MILLION_NAME">CRS_UNITS_PARTS_PER_MILLION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_PASCAL_NAME">CRS_UNITS_PASCAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_RADIAN_NAME">CRS_UNITS_RADIAN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_SECOND_NAME">CRS_UNITS_SECOND_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_UNITY_NAME">CRS_UNITS_UNITY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_US_SURVEY_FOOT_NAME">CRS_UNITS_US_SURVEY_FOOT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNITS_YEAR_NAME">CRS_UNITS_YEAR_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNIT_ANGLE_NAME">CRS_UNIT_ANGLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNIT_LENGTH_NAME">CRS_UNIT_LENGTH_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNIT_NAME">CRS_UNIT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNIT_PARAMETRIC_NAME">CRS_UNIT_PARAMETRIC_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNIT_SCALE_NAME">CRS_UNIT_SCALE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_UNIT_TIME_NAME">CRS_UNIT_TIME_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_ABBREV_LEFT_DELIMITER">CRS_WKT_AXIS_ABBREV_LEFT_DELIMITER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_ABBREV_RIGHT_DELIMITER">CRS_WKT_AXIS_ABBREV_RIGHT_DELIMITER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_DIRECTION_OTHER">CRS_WKT_AXIS_DIRECTION_OTHER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_LAT">CRS_WKT_AXIS_NAME_LAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_LON">CRS_WKT_AXIS_NAME_LON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_X">CRS_WKT_AXIS_NAME_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_Y">CRS_WKT_AXIS_NAME_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_AXIS_NAME_Z">CRS_WKT_AXIS_NAME_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_DATUM_TYPE">CRS_WKT_DATUM_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_LEFT_DELIMITER">CRS_WKT_LEFT_DELIMITER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_LEFT_DELIMITER_COMPAT">CRS_WKT_LEFT_DELIMITER_COMPAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_RIGHT_DELIMITER">CRS_WKT_RIGHT_DELIMITER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_RIGHT_DELIMITER_COMPAT">CRS_WKT_RIGHT_DELIMITER_COMPAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@CRS_WKT_SEPARATOR">CRS_WKT_SEPARATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserTable.h@DEFAULT_AUTOINCREMENT">DEFAULT_AUTOINCREMENT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGFeatureTiles.h@DEFAULT_BOUNDING_BOX_CACHE_SIZE">DEFAULT_BOUNDING_BOX_CACHE_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGFeatureCache.h@DEFAULT_FEATURE_CACHE_MAX_SIZE">DEFAULT_FEATURE_CACHE_MAX_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGIconCache.h@DEFAULT_ICON_CACHE_SIZE">DEFAULT_ICON_CACHE_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGFeatureTiles.h@DEFAULT_MAP_SHAPE_CACHE_SIZE">DEFAULT_MAP_SHAPE_CACHE_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserTable.h@DEFAULT_PK_NOT_NULL">DEFAULT_PK_NOT_NULL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:SFByteReader.h@DEFAULT_READ_BYTE_ORDER">DEFAULT_READ_BYTE_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserColumn.h@DEFAULT_VALUE_CONSTRAINT_ORDER">DEFAULT_VALUE_CONSTRAINT_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:SFByteWriter.h@DEFAULT_WRITE_BYTE_ORDER">DEFAULT_WRITE_BYTE_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_APPLICATION_ID">GPKG_APPLICATION_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_BUNDLE_NAME">GPKG_BUNDLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDA_BICUBIC_NAME">GPKG_CDA_BICUBIC_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDA_BILINEAR_NAME">GPKG_CDA_BILINEAR_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDA_NEAREST_NEIGHBOR_NAME">GPKG_CDA_NEAREST_NEIGHBOR_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_DATATYPE">GPKG_CDGC_COLUMN_DATATYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_DATA_NULL">GPKG_CDGC_COLUMN_DATA_NULL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_FIELD_NAME">GPKG_CDGC_COLUMN_FIELD_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_GRID_CELL_ENCODING">GPKG_CDGC_COLUMN_GRID_CELL_ENCODING</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_ID">GPKG_CDGC_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_OFFSET">GPKG_CDGC_COLUMN_OFFSET</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_PK">GPKG_CDGC_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_PRECISION">GPKG_CDGC_COLUMN_PRECISION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_QUANTITY_DEFINITION">GPKG_CDGC_COLUMN_QUANTITY_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_SCALE">GPKG_CDGC_COLUMN_SCALE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_TILE_MATRIX_SET_NAME">GPKG_CDGC_COLUMN_TILE_MATRIX_SET_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_COLUMN_UOM">GPKG_CDGC_COLUMN_UOM</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGC_TABLE_NAME">GPKG_CDGC_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_ID">GPKG_CDGT_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_MAX">GPKG_CDGT_COLUMN_MAX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_MEAN">GPKG_CDGT_COLUMN_MEAN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_MIN">GPKG_CDGT_COLUMN_MIN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_OFFSET">GPKG_CDGT_COLUMN_OFFSET</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_PK">GPKG_CDGT_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_SCALE">GPKG_CDGT_COLUMN_SCALE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_STANDARD_DEVIATION">GPKG_CDGT_COLUMN_STANDARD_DEVIATION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_TABLE_ID">GPKG_CDGT_COLUMN_TABLE_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_COLUMN_TABLE_NAME">GPKG_CDGT_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDGT_TABLE_NAME">GPKG_CDGT_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDT_ATTRIBUTES_NAME">GPKG_CDT_ATTRIBUTES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDT_FEATURES_NAME">GPKG_CDT_FEATURES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CDT_TILES_NAME">GPKG_CDT_TILES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CD_GRIDDED_COVERAGE">GPKG_CD_GRIDDED_COVERAGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CF_JPEG_NAME">GPKG_CF_JPEG_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CF_NONE_NAME">GPKG_CF_NONE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CF_PNG_NAME">GPKG_CF_PNG_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CI_COLUMN_ID">GPKG_CI_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CI_COLUMN_PK">GPKG_CI_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CI_COLUMN_TABLE_NAME">GPKG_CI_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CI_TABLE_NAME">GPKG_CI_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CONSTRAINT">GPKG_CONSTRAINT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_DATA_TYPE">GPKG_CON_COLUMN_DATA_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_DESCRIPTION">GPKG_CON_COLUMN_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_IDENTIFIER">GPKG_CON_COLUMN_IDENTIFIER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_LAST_CHANGE">GPKG_CON_COLUMN_LAST_CHANGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_MAX_X">GPKG_CON_COLUMN_MAX_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_MAX_Y">GPKG_CON_COLUMN_MAX_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_MIN_X">GPKG_CON_COLUMN_MIN_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_MIN_Y">GPKG_CON_COLUMN_MIN_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_PK">GPKG_CON_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_SRS_ID">GPKG_CON_COLUMN_SRS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_COLUMN_TABLE_NAME">GPKG_CON_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CON_TABLE_NAME">GPKG_CON_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CRS_WKT_EXTENSION_NAME">GPKG_CRS_WKT_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_AUTOINCREMENT_NAME">GPKG_CT_AUTOINCREMENT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_CHECK_NAME">GPKG_CT_CHECK_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_COLLATE_NAME">GPKG_CT_COLLATE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_DEFAULT_NAME">GPKG_CT_DEFAULT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_FOREIGN_KEY_NAME">GPKG_CT_FOREIGN_KEY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_NOT_NULL_NAME">GPKG_CT_NOT_NULL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_PRIMARY_KEY_NAME">GPKG_CT_PRIMARY_KEY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_CT_UNIQUE_NAME">GPKG_CT_UNIQUE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCCT_ENUM_NAME">GPKG_DCCT_ENUM_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCCT_GLOB_NAME">GPKG_DCCT_GLOB_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCCT_RANGE_NAME">GPKG_DCCT_RANGE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_CONSTRAINT_NAME">GPKG_DCC_COLUMN_CONSTRAINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_CONSTRAINT_TYPE">GPKG_DCC_COLUMN_CONSTRAINT_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_DESCRIPTION">GPKG_DCC_COLUMN_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MAX">GPKG_DCC_COLUMN_MAX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MAX_IS_INCLUSIVE">GPKG_DCC_COLUMN_MAX_IS_INCLUSIVE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MIN">GPKG_DCC_COLUMN_MIN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_MIN_IS_INCLUSIVE">GPKG_DCC_COLUMN_MIN_IS_INCLUSIVE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_COLUMN_VALUE">GPKG_DCC_COLUMN_VALUE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCC_TABLE_NAME">GPKG_DCC_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_CONTENT_TYPE_NAME">GPKG_DCM_CONTENT_TYPE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_DATE_NAME">GPKG_DCM_DATE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_DESCRIPTION_NAME">GPKG_DCM_DESCRIPTION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_FORMAT_NAME">GPKG_DCM_FORMAT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_IDENTIFIER_NAME">GPKG_DCM_IDENTIFIER_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_ID_NAME">GPKG_DCM_ID_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_SOURCE_NAME">GPKG_DCM_SOURCE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DCM_TITLE_NAME">GPKG_DCM_TITLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_COLUMN_NAME">GPKG_DC_COLUMN_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_CONSTRAINT_NAME">GPKG_DC_COLUMN_CONSTRAINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_DESCRIPTION">GPKG_DC_COLUMN_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_MIME_TYPE">GPKG_DC_COLUMN_MIME_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_NAME">GPKG_DC_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_PK1">GPKG_DC_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_PK2">GPKG_DC_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_TABLE_NAME">GPKG_DC_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_COLUMN_TITLE">GPKG_DC_COLUMN_TITLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DC_TABLE_NAME">GPKG_DC_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_DATETIME_FORMAT">GPKG_DTU_DATETIME_FORMAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_DATETIME_FORMAT2">GPKG_DTU_DATETIME_FORMAT2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_DATE_FORMAT">GPKG_DTU_DATE_FORMAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_DATE_FORMAT2">GPKG_DTU_DATE_FORMAT2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_DATE">GPKG_DTU_FUNCTION_DATE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_DATETIME">GPKG_DTU_FUNCTION_DATETIME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_JULIANDAY">GPKG_DTU_FUNCTION_JULIANDAY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_STRFTIME">GPKG_DTU_FUNCTION_STRFTIME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DTU_FUNCTION_TIME">GPKG_DTU_FUNCTION_TIME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_BLOB_NAME">GPKG_DT_BLOB_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_BOOLEAN_NAME">GPKG_DT_BOOLEAN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_DATETIME_NAME">GPKG_DT_DATETIME_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_DATE_NAME">GPKG_DT_DATE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_DOUBLE_NAME">GPKG_DT_DOUBLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_FLOAT_NAME">GPKG_DT_FLOAT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_INTEGER_NAME">GPKG_DT_INTEGER_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_INT_NAME">GPKG_DT_INT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_MEDIUMINT_NAME">GPKG_DT_MEDIUMINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_REAL_NAME">GPKG_DT_REAL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_SMALLINT_NAME">GPKG_DT_SMALLINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_TEXT_NAME">GPKG_DT_TEXT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_DT_TINYINT_NAME">GPKG_DT_TINYINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EARTH_RADIUS">GPKG_EARTH_RADIUS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_BASE_PRIMARY_COLUMN">GPKG_ER_COLUMN_BASE_PRIMARY_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_BASE_TABLE_NAME">GPKG_ER_COLUMN_BASE_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_ID">GPKG_ER_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_MAPPING_TABLE_NAME">GPKG_ER_COLUMN_MAPPING_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_PK">GPKG_ER_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_RELATED_PRIMARY_COLUMN">GPKG_ER_COLUMN_RELATED_PRIMARY_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_RELATED_TABLE_NAME">GPKG_ER_COLUMN_RELATED_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_COLUMN_RELATION_NAME">GPKG_ER_COLUMN_RELATION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ER_TABLE_NAME">GPKG_ER_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EST_READ_WRITE_NAME">GPKG_EST_READ_WRITE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EST_WRITE_ONLY_NAME">GPKG_EST_WRITE_ONLY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENDED_EXTENSION">GPKG_EXTENDED_EXTENSION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION">GPKG_EXTENSION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_AUTHOR">GPKG_EXTENSION_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_CONTENTS_ID_NAME_NO_AUTHOR">GPKG_EXTENSION_CONTENTS_ID_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_FEATURE_STYLE_NAME_NO_AUTHOR">GPKG_EXTENSION_FEATURE_STYLE_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_FEATURE_TILE_LINK_NAME_NO_AUTHOR">GPKG_EXTENSION_FEATURE_TILE_LINK_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_GEOMETRY_INDEX_NAME_NO_AUTHOR">GPKG_EXTENSION_GEOMETRY_INDEX_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_COLUMN_PROPERTY">GPKG_EXTENSION_PROPERTIES_COLUMN_PROPERTY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_COLUMN_VALUE">GPKG_EXTENSION_PROPERTIES_COLUMN_VALUE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_NAME_NO_AUTHOR">GPKG_EXTENSION_PROPERTIES_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_PROPERTIES_TABLE_NAME">GPKG_EXTENSION_PROPERTIES_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_RELATED_TABLES_NAME_NO_AUTHOR">GPKG_EXTENSION_RELATED_TABLES_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EXTENSION_TILE_SCALING_NAME_NO_AUTHOR">GPKG_EXTENSION_TILE_SCALING_NAME_NO_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_COLUMN_COLUMN_NAME">GPKG_EX_COLUMN_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_COLUMN_DEFINITION">GPKG_EX_COLUMN_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_COLUMN_EXTENSION_NAME">GPKG_EX_COLUMN_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_COLUMN_SCOPE">GPKG_EX_COLUMN_SCOPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_COLUMN_TABLE_NAME">GPKG_EX_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_EXTENSION_NAME_DIVIDER">GPKG_EX_EXTENSION_NAME_DIVIDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_EX_TABLE_NAME">GPKG_EX_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FIT_GEOPACKAGE_NAME">GPKG_FIT_GEOPACKAGE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FIT_METADATA_NAME">GPKG_FIT_METADATA_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FIT_NONE_NAME">GPKG_FIT_NONE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FIT_RTREE_NAME">GPKG_FIT_RTREE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_ICON">GPKG_FSE_TABLE_MAPPING_ICON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_STYLE">GPKG_FSE_TABLE_MAPPING_STYLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_TABLE_ICON">GPKG_FSE_TABLE_MAPPING_TABLE_ICON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FSE_TABLE_MAPPING_TABLE_STYLE">GPKG_FSE_TABLE_MAPPING_TABLE_STYLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FTL_COLUMN_FEATURE_TABLE_NAME">GPKG_FTL_COLUMN_FEATURE_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FTL_COLUMN_PK1">GPKG_FTL_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FTL_COLUMN_PK2">GPKG_FTL_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FTL_COLUMN_TILE_TABLE_NAME">GPKG_FTL_COLUMN_TILE_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_FTL_TABLE_NAME">GPKG_FTL_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GCDT_FLOAT_NAME">GPKG_GCDT_FLOAT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GCDT_INTEGER_NAME">GPKG_GCDT_INTEGER_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GCET_AREA_NAME">GPKG_GCET_AREA_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GCET_CENTER_NAME">GPKG_GCET_CENTER_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GCET_CORNER_NAME">GPKG_GCET_CORNER_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_COLUMN_NAME">GPKG_GC_COLUMN_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_GEOMETRY_TYPE_NAME">GPKG_GC_COLUMN_GEOMETRY_TYPE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_M">GPKG_GC_COLUMN_M</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_PK1">GPKG_GC_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_PK2">GPKG_GC_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_SRS_ID">GPKG_GC_COLUMN_SRS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_TABLE_NAME">GPKG_GC_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_COLUMN_Z">GPKG_GC_COLUMN_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GC_TABLE_NAME">GPKG_GC_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GEOMETRY_EXTENSION_PREFIX">GPKG_GEOMETRY_EXTENSION_PREFIX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GEOMETRY_MAGIC_NUMBER">GPKG_GEOMETRY_MAGIC_NUMBER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GEOMETRY_VERSION_1">GPKG_GEOMETRY_VERSION_1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_GEOM_ID">GPKG_GI_COLUMN_GEOM_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_M">GPKG_GI_COLUMN_MAX_M</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_X">GPKG_GI_COLUMN_MAX_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_Y">GPKG_GI_COLUMN_MAX_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MAX_Z">GPKG_GI_COLUMN_MAX_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_M">GPKG_GI_COLUMN_MIN_M</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_X">GPKG_GI_COLUMN_MIN_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_Y">GPKG_GI_COLUMN_MIN_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_MIN_Z">GPKG_GI_COLUMN_MIN_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_PK1">GPKG_GI_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_PK2">GPKG_GI_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_COLUMN_TABLE_NAME">GPKG_GI_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GI_TABLE_NAME">GPKG_GI_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_GEOPACKAGE_ID">GPKG_GPGM_COLUMN_GEOPACKAGE_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_ID">GPKG_GPGM_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_M">GPKG_GPGM_COLUMN_MAX_M</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_X">GPKG_GPGM_COLUMN_MAX_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_Y">GPKG_GPGM_COLUMN_MAX_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MAX_Z">GPKG_GPGM_COLUMN_MAX_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_M">GPKG_GPGM_COLUMN_MIN_M</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_X">GPKG_GPGM_COLUMN_MIN_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_Y">GPKG_GPGM_COLUMN_MIN_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_MIN_Z">GPKG_GPGM_COLUMN_MIN_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_PK1">GPKG_GPGM_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_PK2">GPKG_GPGM_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_PK3">GPKG_GPGM_COLUMN_PK3</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_COLUMN_TABLE_NAME">GPKG_GPGM_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPGM_TABLE_NAME">GPKG_GPGM_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPM_COLUMN_ID">GPKG_GPM_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPM_COLUMN_NAME">GPKG_GPM_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPM_COLUMN_PATH">GPKG_GPM_COLUMN_PATH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPM_COLUMN_PK">GPKG_GPM_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPM_TABLE_NAME">GPKG_GPM_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_GEOPACKAGE_ID">GPKG_GPTM_COLUMN_GEOPACKAGE_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_LAST_INDEXED">GPKG_GPTM_COLUMN_LAST_INDEXED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_PK1">GPKG_GPTM_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_PK2">GPKG_GPTM_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPTM_COLUMN_TABLE_NAME">GPKG_GPTM_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GPTM_TABLE_NAME">GPKG_GPTM_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_GRIDDED_COVERAGE_EXTENSION_NAME">GPKG_GRIDDED_COVERAGE_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_COLUMN_ANCHOR_U">GPKG_IT_COLUMN_ANCHOR_U</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_COLUMN_ANCHOR_V">GPKG_IT_COLUMN_ANCHOR_V</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_COLUMN_DESCRIPTION">GPKG_IT_COLUMN_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_COLUMN_HEIGHT">GPKG_IT_COLUMN_HEIGHT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_COLUMN_NAME">GPKG_IT_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_COLUMN_WIDTH">GPKG_IT_COLUMN_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_IT_TABLE_NAME">GPKG_IT_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MEDIA_TYPE">GPKG_MEDIA_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_METADATA_APPLICATION_ID">GPKG_METADATA_APPLICATION_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_METADATA_EXTENSION_NAME">GPKG_METADATA_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_METADATA_TABLES">GPKG_METADATA_TABLES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_COLUMN_NAME">GPKG_MR_COLUMN_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_FILE_ID">GPKG_MR_COLUMN_FILE_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_PARENT_ID">GPKG_MR_COLUMN_PARENT_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_REFERENCE_SCOPE">GPKG_MR_COLUMN_REFERENCE_SCOPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_ROW_ID_VALUE">GPKG_MR_COLUMN_ROW_ID_VALUE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_TABLE_NAME">GPKG_MR_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_COLUMN_TIMESTAMP">GPKG_MR_COLUMN_TIMESTAMP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MR_TABLE_NAME">GPKG_MR_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_ATTRIBUTE_NAME">GPKG_MST_ATTRIBUTE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_ATTRIBUTE_TYPE_NAME">GPKG_MST_ATTRIBUTE_TYPE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_CATALOG_NAME">GPKG_MST_CATALOG_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_COLLECTION_HARDWARE_NAME">GPKG_MST_COLLECTION_HARDWARE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_COLLECTION_NAME">GPKG_MST_COLLECTION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_COLLECTION_SESSION_NAME">GPKG_MST_COLLECTION_SESSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_DATASET_NAME">GPKG_MST_DATASET_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_DIMENSION_GROUP_NAME">GPKG_MST_DIMENSION_GROUP_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_FEATURE_NAME">GPKG_MST_FEATURE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_FEATURE_TYPE_NAME">GPKG_MST_FEATURE_TYPE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_FIELD_SESSION_NAME">GPKG_MST_FIELD_SESSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_MODEL_NAME">GPKG_MST_MODEL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_MULTI_POINT_NAME">GPKG_MST_MULTI_POINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYGON_NAME">GPKG_MST_MULTI_POLYGON_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYGON_POINTS_NAME">GPKG_MST_MULTI_POLYGON_POINTS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYLINE_NAME">GPKG_MST_MULTI_POLYLINE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_MULTI_POLYLINE_POINTS_NAME">GPKG_MST_MULTI_POLYLINE_POINTS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_NON_GEOGRAPHIC_DATASET_NAME">GPKG_MST_NON_GEOGRAPHIC_DATASET_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_POINT_NAME">GPKG_MST_POINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_POLYGON_NAME">GPKG_MST_POLYGON_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_POLYGON_POINTS_NAME">GPKG_MST_POLYGON_POINTS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_POLYLINE_NAME">GPKG_MST_POLYLINE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_POLYLINE_POINTS_NAME">GPKG_MST_POLYLINE_POINTS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_SCHEMA_NAME">GPKG_MST_SCHEMA_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_SERIES_NAME">GPKG_MST_SERIES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_SERVICE_NAME">GPKG_MST_SERVICE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_SOFTWARE_NAME">GPKG_MST_SOFTWARE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_STYLE_NAME">GPKG_MST_STYLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_TAXONOMY_NAME">GPKG_MST_TAXONOMY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_TILE_NAME">GPKG_MST_TILE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_MST_UNDEFINED_NAME">GPKG_MST_UNDEFINED_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_COLUMN_ID">GPKG_M_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_COLUMN_METADATA">GPKG_M_COLUMN_METADATA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_COLUMN_MIME_TYPE">GPKG_M_COLUMN_MIME_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_COLUMN_PK">GPKG_M_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_COLUMN_SCOPE">GPKG_M_COLUMN_SCOPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_COLUMN_STANDARD_URI">GPKG_M_COLUMN_STANDARD_URI</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_M_TABLE_NAME">GPKG_M_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_NGA_EXTENSION_AUTHOR">GPKG_NGA_EXTENSION_AUTHOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_NGA_TABLES">GPKG_NGA_TABLES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_CONTRIBUTOR">GPKG_PE_CONTRIBUTOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_COVERAGE">GPKG_PE_COVERAGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_CREATED">GPKG_PE_CREATED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_CREATOR">GPKG_PE_CREATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_DATE">GPKG_PE_DATE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_DESCRIPTION">GPKG_PE_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_IDENTIFIER">GPKG_PE_IDENTIFIER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_LICENSE">GPKG_PE_LICENSE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_MODIFIED">GPKG_PE_MODIFIED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_PUBLISHER">GPKG_PE_PUBLISHER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_REFERENCES">GPKG_PE_REFERENCES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_RELATION">GPKG_PE_RELATION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_SOURCE">GPKG_PE_SOURCE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_SPATIAL">GPKG_PE_SPATIAL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_SUBJECT">GPKG_PE_SUBJECT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_TAG">GPKG_PE_TAG</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_TEMPORAL">GPKG_PE_TEMPORAL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_TITLE">GPKG_PE_TITLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_TYPE">GPKG_PE_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_URI">GPKG_PE_URI</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_VALID">GPKG_PE_VALID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PE_VERSION">GPKG_PE_VERSION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROPERTY_LIST_TYPE">GPKG_PROPERTY_LIST_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_COLORS_ALPHA">GPKG_PROP_COLORS_ALPHA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_COLORS_BLUE">GPKG_PROP_COLORS_BLUE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_COLORS_GREEN">GPKG_PROP_COLORS_GREEN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_COLORS_RED">GPKG_PROP_COLORS_RED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_COLORS_WHITE">GPKG_PROP_COLORS_WHITE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL">GPKG_PROP_CONNECTION_POOL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS">GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_FREQUENCY">GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_FREQUENCY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_WARNING_TIME">GPKG_PROP_CONNECTION_POOL_CHECK_CONNECTIONS_WARNING_TIME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_MAINTAIN_STACK_TRACES">GPKG_PROP_CONNECTION_POOL_MAINTAIN_STACK_TRACES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONNECTION_POOL_OPEN_CONNECTIONS_PER_POOL">GPKG_PROP_CONNECTION_POOL_OPEN_CONNECTIONS_PER_POOL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_CONTENTS_DATA_TYPE">GPKG_PROP_CONTENTS_DATA_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_DATETIME_FORMATS">GPKG_PROP_DATETIME_FORMATS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_DIR_DATABASE">GPKG_PROP_DIR_DATABASE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_DIR_GEOPACKAGE">GPKG_PROP_DIR_GEOPACKAGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_DIR_METADATA">GPKG_PROP_DIR_METADATA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_DIR_METADATA_FILE_DB">GPKG_PROP_DIR_METADATA_FILE_DB</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_DIVIDER">GPKG_PROP_DIVIDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_CONTENTS_ID_DEFINITION">GPKG_PROP_EXTENSION_CONTENTS_ID_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_FEATURE_STYLE_DEFINITION">GPKG_PROP_EXTENSION_FEATURE_STYLE_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_FEATURE_TILE_LINK_DEFINITION">GPKG_PROP_EXTENSION_FEATURE_TILE_LINK_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_GEOMETRY_INDEX_DEFINITION">GPKG_PROP_EXTENSION_GEOMETRY_INDEX_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_PROPERTIES_DEFINITION">GPKG_PROP_EXTENSION_PROPERTIES_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_RELATED_TABLES_DEFINITION">GPKG_PROP_EXTENSION_RELATED_TABLES_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_EXTENSION_TILE_SCALING_DEFINITION">GPKG_PROP_EXTENSION_TILE_SCALING_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_GENERATOR">GPKG_PROP_FEATURE_GENERATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_GENERATOR_DOWNLOAD_ATTEMPTS">GPKG_PROP_FEATURE_GENERATOR_DOWNLOAD_ATTEMPTS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_LINE_STROKE_WIDTH">GPKG_PROP_FEATURE_LINE_STROKE_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_OVERLAY_QUERY">GPKG_PROP_FEATURE_OVERLAY_QUERY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_POINT_RADIUS">GPKG_PROP_FEATURE_POINT_RADIUS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_POLYGON_FILL">GPKG_PROP_FEATURE_POLYGON_FILL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_POLYGON_STROKE_WIDTH">GPKG_PROP_FEATURE_POLYGON_STROKE_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_FEATURES">GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_FEATURES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_POINTS">GPKG_PROP_FEATURE_QUERY_DETAILED_INFO_PRINT_POINTS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_FEATURES_INFO">GPKG_PROP_FEATURE_QUERY_FEATURES_INFO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_MAX_FEATURES_INFO">GPKG_PROP_FEATURE_QUERY_MAX_FEATURES_INFO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_MAX_FEATURE_DETAILED_INFO">GPKG_PROP_FEATURE_QUERY_MAX_FEATURE_DETAILED_INFO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_MAX_POINT_DETAILED_INFO">GPKG_PROP_FEATURE_QUERY_MAX_POINT_DETAILED_INFO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_QUERY_SCREEN_CLICK_PERCENTAGE">GPKG_PROP_FEATURE_QUERY_SCREEN_CLICK_PERCENTAGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_TILES">GPKG_PROP_FEATURE_TILES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_FEATURE_TILES_COMPRESS_FORMAT">GPKG_PROP_FEATURE_TILES_COMPRESS_FORMAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION">GPKG_PROP_MANAGER_VALIDATION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_IMPORT_HEADER">GPKG_PROP_MANAGER_VALIDATION_IMPORT_HEADER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_IMPORT_INTEGRITY">GPKG_PROP_MANAGER_VALIDATION_IMPORT_INTEGRITY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_OPEN_HEADER">GPKG_PROP_MANAGER_VALIDATION_OPEN_HEADER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_MANAGER_VALIDATION_OPEN_INTEGRITY">GPKG_PROP_MANAGER_VALIDATION_OPEN_INTEGRITY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_MAX_ZOOM_LEVEL">GPKG_PROP_MAX_ZOOM_LEVEL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES">GPKG_PROP_NUMBER_FEATURE_TILES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_FILL_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_FILL_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_PADDING_PERCENTAGE">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_PADDING_PERCENTAGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_STROKE_WIDTH">GPKG_PROP_NUMBER_FEATURE_TILES_CIRCLE_STROKE_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_CIRCLE">GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_CIRCLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_TILE_BORDER">GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_TILE_BORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_UNINDEXED_TILES">GPKG_PROP_NUMBER_FEATURE_TILES_DRAW_UNINDEXED_TILES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_FILL_CIRCLE">GPKG_PROP_NUMBER_FEATURE_TILES_FILL_CIRCLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_FILL_TILE">GPKG_PROP_NUMBER_FEATURE_TILES_FILL_TILE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT">GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT_SIZE">GPKG_PROP_NUMBER_FEATURE_TILES_TEXT_FONT_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_STROKE_WIDTH">GPKG_PROP_NUMBER_FEATURE_TILES_TILE_BORDER_STROKE_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_TILE_FILL_COLOR">GPKG_PROP_NUMBER_FEATURE_TILES_TILE_FILL_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_NUMBER_FEATURE_TILES_UNINDEXED_TEXT">GPKG_PROP_NUMBER_FEATURE_TILES_UNINDEXED_TEXT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_DEFINITION">GPKG_PROP_SRS_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_DEFINITION_12_063">GPKG_PROP_SRS_DEFINITION_12_063</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_DESCRIPTION">GPKG_PROP_SRS_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_ORGANIZATION">GPKG_PROP_SRS_ORGANIZATION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_ORGANIZATION_COORDSYS_ID">GPKG_PROP_SRS_ORGANIZATION_COORDSYS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_SRS_ID">GPKG_PROP_SRS_SRS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_SRS_NAME">GPKG_PROP_SRS_SRS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_UNDEFINED_CARTESIAN">GPKG_PROP_SRS_UNDEFINED_CARTESIAN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_UNDEFINED_GEOGRAPHIC">GPKG_PROP_SRS_UNDEFINED_GEOGRAPHIC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_WEB_MERCATOR">GPKG_PROP_SRS_WEB_MERCATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_WGS_84">GPKG_PROP_SRS_WGS_84</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_SRS_WGS_84_3D">GPKG_PROP_SRS_WGS_84_3D</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE">GPKG_PROP_TILE_GENERATOR_VARIABLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LAT">GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LON">GPKG_PROP_TILE_GENERATOR_VARIABLE_MAX_LON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LAT">GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LON">GPKG_PROP_TILE_GENERATOR_VARIABLE_MIN_LON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_X">GPKG_PROP_TILE_GENERATOR_VARIABLE_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_Y">GPKG_PROP_TILE_GENERATOR_VARIABLE_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_PROP_TILE_GENERATOR_VARIABLE_Z">GPKG_PROP_TILE_GENERATOR_VARIABLE_Z</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RESOURCES_PROPERTIES">GPKG_RESOURCES_PROPERTIES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RESOURCES_TABLES">GPKG_RESOURCES_TABLES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RMT_COLUMN_CONTENT_TYPE">GPKG_RMT_COLUMN_CONTENT_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RMT_COLUMN_DATA">GPKG_RMT_COLUMN_DATA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RSAT_COLUMN_ID">GPKG_RSAT_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RST_COLUMN_NAME">GPKG_RST_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RST_GEOPACKAGE_NAME">GPKG_RST_GEOPACKAGE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RST_ROW_COL_NAME">GPKG_RST_ROW_COL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RST_ROW_NAME">GPKG_RST_ROW_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RST_TABLE_NAME">GPKG_RST_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_ID">GPKG_RTREE_INDEX_EXTENSION_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_X">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_Y">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MAX_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_X">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_Y">GPKG_RTREE_INDEX_EXTENSION_COLUMN_MIN_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_EXTENSION_NAME">GPKG_RTREE_INDEX_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RTREE_INDEX_PREFIX">GPKG_RTREE_INDEX_PREFIX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RT_ATTRIBUTES_NAME">GPKG_RT_ATTRIBUTES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RT_FEATURES_NAME">GPKG_RT_FEATURES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RT_MEDIA_NAME">GPKG_RT_MEDIA_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RT_SIMPLE_ATTRIBUTES_NAME">GPKG_RT_SIMPLE_ATTRIBUTES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_RT_TILES_NAME">GPKG_RT_TILES_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SCHEMA_EXTENSION_NAME">GPKG_SCHEMA_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMC_NAME_NAME">GPKG_SMC_NAME_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMC_ROOTPAGE_NAME">GPKG_SMC_ROOTPAGE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMC_SQL_NAME">GPKG_SMC_SQL_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMC_TBL_NAME_NAME">GPKG_SMC_TBL_NAME_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMC_TYPE_NAME">GPKG_SMC_TYPE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMT_COLUMN_GEOMETRY_TYPE_NAME">GPKG_SMT_COLUMN_GEOMETRY_TYPE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMT_INDEX_NAME">GPKG_SMT_INDEX_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMT_TABLE_NAME">GPKG_SMT_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMT_TRIGGER_NAME">GPKG_SMT_TRIGGER_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SMT_VIEW_NAME">GPKG_SMT_VIEW_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SM_TABLE_NAME">GPKG_SM_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SQLITE_APPLICATION_ID">GPKG_SQLITE_APPLICATION_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SQLITE_HEADER_PREFIX">GPKG_SQLITE_HEADER_PREFIX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_DEFINITION">GPKG_SRS_COLUMN_DEFINITION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_DEFINITION_12_063">GPKG_SRS_COLUMN_DEFINITION_12_063</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_DESCRIPTION">GPKG_SRS_COLUMN_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_ORGANIZATION">GPKG_SRS_COLUMN_ORGANIZATION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_ORGANIZATION_COORDSYS_ID">GPKG_SRS_COLUMN_ORGANIZATION_COORDSYS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_PK">GPKG_SRS_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_SRS_ID">GPKG_SRS_COLUMN_SRS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_COLUMN_SRS_NAME">GPKG_SRS_COLUMN_SRS_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_SRS_TABLE_NAME">GPKG_SRS_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_COLOR">GPKG_ST_COLUMN_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_DESCRIPTION">GPKG_ST_COLUMN_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_FILL_COLOR">GPKG_ST_COLUMN_FILL_COLOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_FILL_OPACITY">GPKG_ST_COLUMN_FILL_OPACITY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_ID">GPKG_ST_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_NAME">GPKG_ST_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_OPACITY">GPKG_ST_COLUMN_OPACITY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_COLUMN_WIDTH">GPKG_ST_COLUMN_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ST_TABLE_NAME">GPKG_ST_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TC_COLUMN_ID">GPKG_TC_COLUMN_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TC_COLUMN_TILE_COLUMN">GPKG_TC_COLUMN_TILE_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TC_COLUMN_TILE_DATA">GPKG_TC_COLUMN_TILE_DATA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TC_COLUMN_TILE_ROW">GPKG_TC_COLUMN_TILE_ROW</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TC_COLUMN_ZOOM_LEVEL">GPKG_TC_COLUMN_ZOOM_LEVEL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_CID">GPKG_TI_CID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_CID_INDEX">GPKG_TI_CID_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_COLUMN_LAST_INDEXED">GPKG_TI_COLUMN_LAST_INDEXED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_COLUMN_PK">GPKG_TI_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_COLUMN_TABLE_NAME">GPKG_TI_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_DEFAULT_NULL">GPKG_TI_DEFAULT_NULL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_DFLT_VALUE">GPKG_TI_DFLT_VALUE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_DFLT_VALUE_INDEX">GPKG_TI_DFLT_VALUE_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_NAME">GPKG_TI_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_NAME_INDEX">GPKG_TI_NAME_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_NOT_NULL">GPKG_TI_NOT_NULL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_NOT_NULL_INDEX">GPKG_TI_NOT_NULL_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_PK">GPKG_TI_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_PK_INDEX">GPKG_TI_PK_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_TABLE_NAME">GPKG_TI_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_TYPE">GPKG_TI_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TI_TYPE_INDEX">GPKG_TI_TYPE_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MAX_X">GPKG_TMS_COLUMN_MAX_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MAX_Y">GPKG_TMS_COLUMN_MAX_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MIN_X">GPKG_TMS_COLUMN_MIN_X</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_MIN_Y">GPKG_TMS_COLUMN_MIN_Y</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_PK">GPKG_TMS_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_SRS_ID">GPKG_TMS_COLUMN_SRS_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_COLUMN_TABLE_NAME">GPKG_TMS_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TMS_TABLE_NAME">GPKG_TMS_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_MATRIX_HEIGHT">GPKG_TM_COLUMN_MATRIX_HEIGHT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_MATRIX_WIDTH">GPKG_TM_COLUMN_MATRIX_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_PIXEL_X_SIZE">GPKG_TM_COLUMN_PIXEL_X_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_PIXEL_Y_SIZE">GPKG_TM_COLUMN_PIXEL_Y_SIZE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_PK1">GPKG_TM_COLUMN_PK1</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_PK2">GPKG_TM_COLUMN_PK2</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_TABLE_NAME">GPKG_TM_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_TILE_HEIGHT">GPKG_TM_COLUMN_TILE_HEIGHT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_TILE_WIDTH">GPKG_TM_COLUMN_TILE_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_COLUMN_ZOOM_LEVEL">GPKG_TM_COLUMN_ZOOM_LEVEL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TM_TABLE_NAME">GPKG_TM_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TSC_CLOSEST_IN_OUT_NAME">GPKG_TSC_CLOSEST_IN_OUT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TSC_CLOSEST_OUT_IN_NAME">GPKG_TSC_CLOSEST_OUT_IN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TSC_IN_NAME">GPKG_TSC_IN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TSC_IN_OUT_NAME">GPKG_TSC_IN_OUT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TSC_OUT_IN_NAME">GPKG_TSC_OUT_IN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TSC_OUT_NAME">GPKG_TSC_OUT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TS_COLUMN_PK">GPKG_TS_COLUMN_PK</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TS_COLUMN_SCALING_TYPE">GPKG_TS_COLUMN_SCALING_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TS_COLUMN_TABLE_NAME">GPKG_TS_COLUMN_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TS_COLUMN_ZOOM_IN">GPKG_TS_COLUMN_ZOOM_IN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TS_COLUMN_ZOOM_OUT">GPKG_TS_COLUMN_ZOOM_OUT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TS_TABLE_NAME">GPKG_TS_TABLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TU_SCALE_FACTOR_DEFAULT">GPKG_TU_SCALE_FACTOR_DEFAULT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TU_TILE_DP">GPKG_TU_TILE_DP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TU_TILE_PIXELS_DEFAULT">GPKG_TU_TILE_PIXELS_DEFAULT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_TU_TILE_PIXELS_HIGH">GPKG_TU_TILE_PIXELS_HIGH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_UMT_COLUMN_BASE_ID">GPKG_UMT_COLUMN_BASE_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_UMT_COLUMN_RELATED_ID">GPKG_UMT_COLUMN_RELATED_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_UNIQUE">GPKG_UNIQUE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_USER_VERSION">GPKG_USER_VERSION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_UTM_DEFAULT_ID_COLUMN_NAME">GPKG_UTM_DEFAULT_ID_COLUMN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_WEBP_EXTENSION_NAME">GPKG_WEBP_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@GPKG_ZOOM_OTHER_EXTENSION_NAME">GPKG_ZOOM_OTHER_EXTENSION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserColumn.h@NOT_NULL_CONSTRAINT_ORDER">NOT_NULL_CONSTRAINT_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserColumn.h@NO_INDEX">NO_INDEX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_BBOX">OAF_BBOX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_COLLECTIONS">OAF_COLLECTIONS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_CRS">OAF_CRS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_CRS_BASE_URL">OAF_CRS_BASE_URL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_CRS_PATTERN">OAF_CRS_PATTERN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_CRS_PATTERN_AUTHORITY_GROUP">OAF_CRS_PATTERN_AUTHORITY_GROUP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_CRS_PATTERN_CODE_GROUP">OAF_CRS_PATTERN_CODE_GROUP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_CRS_PATTERN_VERSION_GROUP">OAF_CRS_PATTERN_VERSION_GROUP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_DESCRIPTION">OAF_DESCRIPTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_EXTENT">OAF_EXTENT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_HREF">OAF_HREF</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_HREFLANG">OAF_HREFLANG</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_ID">OAF_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_INTERVAL">OAF_INTERVAL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_ITEM_TYPE">OAF_ITEM_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_LENGTH">OAF_LENGTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_LIMIT_DEFAULT">OAF_LIMIT_DEFAULT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_LINKS">OAF_LINKS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_LINK_RELATION_NEXT">OAF_LINK_RELATION_NEXT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_NUMBER_MATCHED">OAF_NUMBER_MATCHED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_NUMBER_RETURNED">OAF_NUMBER_RETURNED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_REL">OAF_REL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_SPATIAL">OAF_SPATIAL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_TEMPORAL">OAF_TEMPORAL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_TIME_STAMP">OAF_TIME_STAMP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_TITLE">OAF_TITLE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_TRS">OAF_TRS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@OAF_TYPE">OAF_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserColumn.h@PRIMARY_KEY_CONSTRAINT_ORDER">PRIMARY_KEY_CONSTRAINT_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_AUTHORITY_EPSG">PROJ_AUTHORITY_EPSG</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_AUTHORITY_NONE">PROJ_AUTHORITY_NONE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_AUTHORITY_NSG">PROJ_AUTHORITY_NSG</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_AUTHORITY_OGC">PROJ_AUTHORITY_OGC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_BUNDLE_NAME">PROJ_BUNDLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_EPSG_WEB_MERCATOR">PROJ_EPSG_WEB_MERCATOR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_EPSG_WORLD_GEODETIC_SYSTEM">PROJ_EPSG_WORLD_GEODETIC_SYSTEM</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_EPSG_WORLD_GEODETIC_SYSTEM_GEOGRAPHICAL_3D">PROJ_EPSG_WORLD_GEODETIC_SYSTEM_GEOGRAPHICAL_3D</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_MERCATOR_RADIUS">PROJ_MERCATOR_RADIUS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_OGC_CRS84">PROJ_OGC_CRS84</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_PROPERTIES">PROJ_PROPERTIES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_PROPERTY_LIST_TYPE">PROJ_PROPERTY_LIST_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_UNDEFINED_CARTESIAN">PROJ_UNDEFINED_CARTESIAN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_UNDEFINED_GEOGRAPHIC">PROJ_UNDEFINED_GEOGRAPHIC</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_WEB_MERCATOR_HALF_WORLD_WIDTH">PROJ_WEB_MERCATOR_HALF_WORLD_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_WEB_MERCATOR_MAX_LAT_RANGE">PROJ_WEB_MERCATOR_MAX_LAT_RANGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_WEB_MERCATOR_MIN_LAT_RANGE">PROJ_WEB_MERCATOR_MIN_LAT_RANGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_WGS84_HALF_WORLD_LAT_HEIGHT">PROJ_WGS84_HALF_WORLD_LAT_HEIGHT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@PROJ_WGS84_HALF_WORLD_LON_WIDTH">PROJ_WGS84_HALF_WORLD_LON_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_BBOX">SFG_MEMBER_BBOX</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_COORDINATES">SFG_MEMBER_COORDINATES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_FEATURES">SFG_MEMBER_FEATURES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_GEOMETRIES">SFG_MEMBER_GEOMETRIES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_GEOMETRY">SFG_MEMBER_GEOMETRY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_ID">SFG_MEMBER_ID</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_PROPERTIES">SFG_MEMBER_PROPERTIES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_MEMBER_TYPE">SFG_MEMBER_TYPE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_TYPE_FEATURE">SFG_TYPE_FEATURE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SFG_TYPE_FEATURE_COLLECTION">SFG_TYPE_FEATURE_COLLECTION</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_BEARING_EAST">SF_BEARING_EAST</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_BEARING_NORTH">SF_BEARING_NORTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_BEARING_SOUTH">SF_BEARING_SOUTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_BEARING_WEST">SF_BEARING_WEST</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_CIRCULARSTRING_NAME">SF_CIRCULARSTRING_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_COMPOUNDCURVE_NAME">SF_COMPOUNDCURVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_CURVEPOLYGON_NAME">SF_CURVEPOLYGON_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_CURVE_NAME">SF_CURVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_DEFAULT_EQUAL_EPSILON">SF_DEFAULT_EQUAL_EPSILON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_DEFAULT_LINE_EPSILON">SF_DEFAULT_LINE_EPSILON</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_DEGREES_TO_METERS_MIN_LAT">SF_DEGREES_TO_METERS_MIN_LAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_DEGREES_TO_RADIANS">SF_DEGREES_TO_RADIANS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_GEOMETRYCOLLECTION_NAME">SF_GEOMETRYCOLLECTION_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_GEOMETRY_NAME">SF_GEOMETRY_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_LINESTRING_NAME">SF_LINESTRING_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_MULTICURVE_NAME">SF_MULTICURVE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_MULTILINESTRING_NAME">SF_MULTILINESTRING_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_MULTIPOINT_NAME">SF_MULTIPOINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_MULTIPOLYGON_NAME">SF_MULTIPOLYGON_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_MULTISURFACE_NAME">SF_MULTISURFACE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_NONE_NAME">SF_NONE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_POINT_NAME">SF_POINT_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_POLYGON_NAME">SF_POLYGON_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_POLYHEDRALSURFACE_NAME">SF_POLYHEDRALSURFACE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_RADIANS_TO_DEGREES">SF_RADIANS_TO_DEGREES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_SURFACE_NAME">SF_SURFACE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_TIN_NAME">SF_TIN_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_TRIANGLE_NAME">SF_TRIANGLE_NAME</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_WEB_MERCATOR_HALF_WORLD_WIDTH">SF_WEB_MERCATOR_HALF_WORLD_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_WEB_MERCATOR_MAX_LAT_RANGE">SF_WEB_MERCATOR_MAX_LAT_RANGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_WEB_MERCATOR_MIN_LAT_RANGE">SF_WEB_MERCATOR_MIN_LAT_RANGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_WGS84_HALF_WORLD_LAT_HEIGHT">SF_WGS84_HALF_WORLD_LAT_HEIGHT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@SF_WGS84_HALF_WORLD_LON_WIDTH">SF_WGS84_HALF_WORLD_LON_WIDTH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_BYTE_ORDER_BIG_ENDIAN">TIFF_BYTE_ORDER_BIG_ENDIAN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_BYTE_ORDER_LITTLE_ENDIAN">TIFF_BYTE_ORDER_LITTLE_ENDIAN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_CCITT_HUFFMAN">TIFF_COMPRESSION_CCITT_HUFFMAN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_DEFLATE">TIFF_COMPRESSION_DEFLATE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_JPEG_NEW">TIFF_COMPRESSION_JPEG_NEW</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_JPEG_OLD">TIFF_COMPRESSION_JPEG_OLD</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_LZW">TIFF_COMPRESSION_LZW</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_NO">TIFF_COMPRESSION_NO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_PACKBITS">TIFF_COMPRESSION_PACKBITS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_PKZIP_DEFLATE">TIFF_COMPRESSION_PKZIP_DEFLATE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_T4">TIFF_COMPRESSION_T4</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_COMPRESSION_T6">TIFF_COMPRESSION_T6</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_DEFAULT_MAX_BYTES_PER_STRIP">TIFF_DEFAULT_MAX_BYTES_PER_STRIP</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_EXTRA_SAMPLES_ASSOCIATED_ALPHA">TIFF_EXTRA_SAMPLES_ASSOCIATED_ALPHA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_EXTRA_SAMPLES_UNASSOCIATED_ALPHA">TIFF_EXTRA_SAMPLES_UNASSOCIATED_ALPHA</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_EXTRA_SAMPLES_UNSPECIFIED">TIFF_EXTRA_SAMPLES_UNSPECIFIED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_FILE_IDENTIFIER">TIFF_FILE_IDENTIFIER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_FILL_ORDER_LOWER_COLUMN_HIGHER_ORDER">TIFF_FILL_ORDER_LOWER_COLUMN_HIGHER_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_FILL_ORDER_LOWER_COLUMN_LOWER_ORDER">TIFF_FILL_ORDER_LOWER_COLUMN_LOWER_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_HUNDREDTHS">TIFF_GRAY_RESPONSE_HUNDREDTHS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_HUNDRED_THOUSANDTHS">TIFF_GRAY_RESPONSE_HUNDRED_THOUSANDTHS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_TENTHS">TIFF_GRAY_RESPONSE_TENTHS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_TEN_THOUSANDTHS">TIFF_GRAY_RESPONSE_TEN_THOUSANDTHS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_GRAY_RESPONSE_THOUSANDTHS">TIFF_GRAY_RESPONSE_THOUSANDTHS</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_HEADER_BYTES">TIFF_HEADER_BYTES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_IFD_ENTRY_BYTES">TIFF_IFD_ENTRY_BYTES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_IFD_HEADER_BYTES">TIFF_IFD_HEADER_BYTES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_IFD_OFFSET_BYTES">TIFF_IFD_OFFSET_BYTES</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_BOTTOM_ROW_LEFT_COLUMN">TIFF_ORIENTATION_BOTTOM_ROW_LEFT_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_BOTTOM_ROW_RIGHT_COLUMN">TIFF_ORIENTATION_BOTTOM_ROW_RIGHT_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_LEFT_ROW_BOTTOM_COLUMN">TIFF_ORIENTATION_LEFT_ROW_BOTTOM_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_LEFT_ROW_TOP_COLUMN">TIFF_ORIENTATION_LEFT_ROW_TOP_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_RIGHT_ROW_BOTTOM_COLUMN">TIFF_ORIENTATION_RIGHT_ROW_BOTTOM_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_RIGHT_ROW_TOP_COLUMN">TIFF_ORIENTATION_RIGHT_ROW_TOP_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_TOP_ROW_LEFT_COLUMN">TIFF_ORIENTATION_TOP_ROW_LEFT_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_ORIENTATION_TOP_ROW_RIGHT_COLUMN">TIFF_ORIENTATION_TOP_ROW_RIGHT_COLUMN</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO">TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_PALETTE">TIFF_PHOTOMETRIC_INTERPRETATION_PALETTE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_RGB">TIFF_PHOTOMETRIC_INTERPRETATION_RGB</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_TRANSPARENCY">TIFF_PHOTOMETRIC_INTERPRETATION_TRANSPARENCY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO">TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PLANAR_CONFIGURATION_CHUNKY">TIFF_PLANAR_CONFIGURATION_CHUNKY</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PLANAR_CONFIGURATION_PLANAR">TIFF_PLANAR_CONFIGURATION_PLANAR</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PREDICTOR_FLOATINGPOINT">TIFF_PREDICTOR_FLOATINGPOINT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PREDICTOR_HORIZONTAL">TIFF_PREDICTOR_HORIZONTAL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_PREDICTOR_NO">TIFF_PREDICTOR_NO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_RESOLUTION_UNIT_CENTIMETER">TIFF_RESOLUTION_UNIT_CENTIMETER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_RESOLUTION_UNIT_INCH">TIFF_RESOLUTION_UNIT_INCH</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_RESOLUTION_UNIT_NO">TIFF_RESOLUTION_UNIT_NO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_FLOAT">TIFF_SAMPLE_FORMAT_FLOAT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_SIGNED_INT">TIFF_SAMPLE_FORMAT_SIGNED_INT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_SINGLE_PAGE_MULTI_PAGE">TIFF_SAMPLE_FORMAT_SINGLE_PAGE_MULTI_PAGE</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_UNDEFINED">TIFF_SAMPLE_FORMAT_UNDEFINED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SAMPLE_FORMAT_UNSIGNED_INT">TIFF_SAMPLE_FORMAT_UNSIGNED_INT</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SUBFILE_TYPE_FULL">TIFF_SUBFILE_TYPE_FULL</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_SUBFILE_TYPE_REDUCED">TIFF_SUBFILE_TYPE_REDUCED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_THRESHHOLDING_NO">TIFF_THRESHHOLDING_NO</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_THRESHHOLDING_ORDERED">TIFF_THRESHHOLDING_ORDERED</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@TIFF_THRESHHOLDING_RANDOM">TIFF_THRESHHOLDING_RANDOM</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGUserColumn.h@UNIQUE_CONSTRAINT_ORDER">UNIQUE_CONSTRAINT_ORDER</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@geopackage_iosVersionNumber">geopackage_iosVersionNumber</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@geopackage_iosVersionString">geopackage_iosVersionString</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:GPKGTileReprojection.h@pixelSizeDelta">pixelSizeDelta</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_datums">pj_datums</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_ellps">pj_ellps</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_errno">pj_errno</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_list">pj_list</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_prime_meridians">pj_prime_meridians</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_release">pj_release</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_selftest_list">pj_selftest_list</a>
</li>
<li class="nav-group-task">
<a href="../Constants.html#/c:@pj_units">pj_units</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Enums.html">Enumerations</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Enums/CRSAxisDirectionType.html">CRSAxisDirectionType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSCategoryType.html">CRSCategoryType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSCoordinateSystemType.html">CRSCoordinateSystemType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSEllipsoidType.html">CRSEllipsoidType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSEllipsoidsType.html">CRSEllipsoidsType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSGeoDatumType.html">CRSGeoDatumType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSKeywordType.html">CRSKeywordType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSOperationMethodType.html">CRSOperationMethodType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSOperationParameterType.html">CRSOperationParameterType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSOperationType.html">CRSOperationType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSPrimeMeridianType.html">CRSPrimeMeridianType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSType.html">CRSType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSUnitType.html">CRSUnitType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CRSUnitsType.html">CRSUnitsType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGCompressFormat.html">GPKGCompressFormat</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGConstraintType.html">GPKGConstraintType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGContentsDataType.html">GPKGContentsDataType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGCoverageDataAlgorithm.html">GPKGCoverageDataAlgorithm</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGDataColumnConstraintType.html">GPKGDataColumnConstraintType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGDataType.html">GPKGDataType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGDublinCoreType.html">GPKGDublinCoreType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGExtensionScopeType.html">GPKGExtensionScopeType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGFeatureIndexType.html">GPKGFeatureIndexType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGGriddedCoverageDataType.html">GPKGGriddedCoverageDataType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGGriddedCoverageEncodingType.html">GPKGGriddedCoverageEncodingType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGMapShapeType.html">GPKGMapShapeType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGMetadataScopeType.html">GPKGMetadataScopeType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGPolygonOrientation.html">GPKGPolygonOrientation</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGReferenceScopeType.html">GPKGReferenceScopeType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGRelationType.html">GPKGRelationType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGSQLiteMasterColumn.html">GPKGSQLiteMasterColumn</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGSQLiteMasterType.html">GPKGSQLiteMasterType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/GPKGTileScalingType.html">GPKGTileScalingType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/PROJProjectionFactoryType.html">PROJProjectionFactoryType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/PROJUnit.html">PROJUnit</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SFEventType.html">SFEventType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SFFiniteFilterType.html">SFFiniteFilterType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SFGGeometryType.html">SFGGeometryType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SFGeometryType.html">SFGeometryType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/TIFFFieldTagType.html">TIFFFieldTagType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/TIFFFieldType.html">TIFFFieldType</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Protocols/CRSCommonOperation.html">CRSCommonOperation</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/CRSGeoDatum.html">CRSGeoDatum</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/CRSIdentifiable.html">CRSIdentifiable</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/CRSScopeExtentIdentifierRemark.html">CRSScopeExtentIdentifierRemark</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGCoverageDataImage.html">GPKGCoverageDataImage</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGCustomFeaturesTile.html">GPKGCustomFeaturesTile</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGMapPointInitializer.html">GPKGMapPointInitializer</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGProgress.html">GPKGProgress</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGShapePoints.html">GPKGShapePoints</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGShapeWithChildrenPoints.html">GPKGShapeWithChildrenPoints</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/GPKGTileRetriever.html">GPKGTileRetriever</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SFGeometryFilter.html">SFGeometryFilter</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/TIFFCompressionDecoder.html">TIFFCompressionDecoder</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/TIFFCompressionEncoder.html">TIFFCompressionEncoder</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Type%20Definitions.html">Type Definitions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Type%20Definitions/COMPLEX.html">COMPLEX</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/FLP.html">FLP</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/ILP.html">ILP</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions.html#/c:proj_api.h@T@PAFile">PAFile</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/PJ.html">PJ</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/PJ_GRIDINFO.html">PJ_GRIDINFO</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/PJ_GridCatalog.html">PJ_GridCatalog</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/PJ_GridCatalogEntry.html">PJ_GridCatalogEntry</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/PJ_Region.html">PJ_Region</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/PROJVALUE.html">PROJVALUE</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/Tseries.html">Tseries</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/paralist.html">paralist</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions.html#/c:proj_api.h@T@projCtx">projCtx</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/projCtx_t.html">projCtx_t</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/projFileAPI.html">projFileAPI</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions.html#/c:proj_api.h@T@projPJ">projPJ</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/projUV.html">projUV</a>
</li>
<li class="nav-group-task">
<a href="../Type%20Definitions/projUVW.html">projUVW</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Functions.html">Functions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@aacos">aacos</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@aasin">aasin</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@aatan2">aatan2</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@adjlon">adjlon</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@asqrt">asqrt</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@bch2bps">bch2bps</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@bcheval">bcheval</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@bchgen">bchgen</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@biveval">biveval</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@bpseval">bpseval</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@dmstor">dmstor</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@dmstor_ctx">dmstor_ctx</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@freev2">freev2</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@hypot">hypot</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@mk_cheby">mk_cheby</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_ctable2_init">nad_ctable2_init</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_ctable2_load">nad_ctable2_load</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_ctable_init">nad_ctable_init</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_ctable_load">nad_ctable_load</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_cvt">nad_cvt</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_free">nad_free</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_init">nad_init</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@nad_intr">nad_intr</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_acquire_lock">pj_acquire_lock</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_angular_units_set">pj_angular_units_set</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_apply_gridshift">pj_apply_gridshift</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_apply_gridshift_2">pj_apply_gridshift_2</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_apply_gridshift_3">pj_apply_gridshift_3</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_apply_vgridshift">pj_apply_vgridshift</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_atof">pj_atof</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_authlat">pj_authlat</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_authset">pj_authset</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_calloc">pj_calloc</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_cleanup_lock">pj_cleanup_lock</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_clear_initcache">pj_clear_initcache</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_clone_paralist">pj_clone_paralist</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_compare_datums">pj_compare_datums</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_alloc">pj_ctx_alloc</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_fclose">pj_ctx_fclose</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_fgets">pj_ctx_fgets</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_fopen">pj_ctx_fopen</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_fread">pj_ctx_fread</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_free">pj_ctx_free</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_fseek">pj_ctx_fseek</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_ftell">pj_ctx_ftell</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_get_app_data">pj_ctx_get_app_data</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_get_errno">pj_ctx_get_errno</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_get_fileapi">pj_ctx_get_fileapi</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_set_app_data">pj_ctx_set_app_data</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_set_debug">pj_ctx_set_debug</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_set_errno">pj_ctx_set_errno</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_set_fileapi">pj_ctx_set_fileapi</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ctx_set_logger">pj_ctx_set_logger</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_dalloc">pj_dalloc</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_datum_set">pj_datum_set</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_datum_transform">pj_datum_transform</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_dealloc">pj_dealloc</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_deallocate_grids">pj_deallocate_grids</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_deriv">pj_deriv</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_ell_set">pj_ell_set</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_enfn">pj_enfn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_factors">pj_factors</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_free">pj_free</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_fwd">pj_fwd</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_fwd3d">pj_fwd3d</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gauss">pj_gauss</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gauss_ini">pj_gauss_ini</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gc_apply_gridshift">pj_gc_apply_gridshift</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gc_findcatalog">pj_gc_findcatalog</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gc_findgrid">pj_gc_findgrid</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gc_parsedate">pj_gc_parsedate</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gc_readcatalog">pj_gc_readcatalog</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gc_unloadall">pj_gc_unloadall</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_generic_selftest">pj_generic_selftest</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_geocentric_to_geodetic">pj_geocentric_to_geodetic</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_geodetic_to_geocentric">pj_geodetic_to_geocentric</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_ctx">pj_get_ctx</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_datums_ref">pj_get_datums_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_def">pj_get_def</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_default_ctx">pj_get_default_ctx</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_default_fileapi">pj_get_default_fileapi</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_ellps_ref">pj_get_ellps_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_errno_ref">pj_get_errno_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_list_ref">pj_get_list_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_prime_meridians_ref">pj_get_prime_meridians_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_release">pj_get_release</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_selftest_list_ref">pj_get_selftest_list_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_spheroid_defn">pj_get_spheroid_defn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_get_units_ref">pj_get_units_ref</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gridinfo_free">pj_gridinfo_free</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gridinfo_init">pj_gridinfo_init</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gridinfo_load">pj_gridinfo_load</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_gridlist_from_nadgrids">pj_gridlist_from_nadgrids</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_init">pj_init</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_init_ctx">pj_init_ctx</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_init_plus">pj_init_plus</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_init_plus_ctx">pj_init_plus_ctx</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_insert_initcache">pj_insert_initcache</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_inv">pj_inv</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_inv3d">pj_inv3d</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_inv_gauss">pj_inv_gauss</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_inv_mlfn">pj_inv_mlfn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_is_geocent">pj_is_geocent</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_is_latlong">pj_is_latlong</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_latlong_from_proj">pj_latlong_from_proj</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_log">pj_log</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_malloc">pj_malloc</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_mkparam">pj_mkparam</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_mlfn">pj_mlfn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_msfn">pj_msfn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_open_lib">pj_open_lib</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_param">pj_param</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_phi2">pj_phi2</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_pr_list">pj_pr_list</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_prepare">pj_prepare</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_prime_meridian_set">pj_prime_meridian_set</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_qsfn">pj_qsfn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_qsfn_">pj_qsfn_</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_release_lock">pj_release_lock</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_run_selftests">pj_run_selftests</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_search_initcache">pj_search_initcache</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_set_ctx">pj_set_ctx</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_set_finder">pj_set_finder</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_set_searchpath">pj_set_searchpath</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_stderr_logger">pj_stderr_logger</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_strerrno">pj_strerrno</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_strtod">pj_strtod</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_transform">pj_transform</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_tsfn">pj_tsfn</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_zpoly1">pj_zpoly1</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@pj_zpolyd1">pj_zpolyd1</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@proj_inv_mdist">proj_inv_mdist</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@proj_mdist">proj_mdist</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@proj_mdist_ini">proj_mdist_ini</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@rtodms">rtodms</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@set_rtodms">set_rtodms</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@vector1">vector1</a>
</li>
<li class="nav-group-task">
<a href="../Functions.html#/c:@F@vector2">vector2</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Structs.html">Structures</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Structs/ARG_list.html">ARG_list</a>
</li>
<li class="nav-group-task">
<a href="../Structs/CTABLE.html">CTABLE</a>
</li>
<li class="nav-group-task">
<a href="../Structs/DERIVS.html">DERIVS</a>
</li>
<li class="nav-group-task">
<a href="../Structs/FACTORS.html">FACTORS</a>
</li>
<li class="nav-group-task">
<a href="../Structs/GPKGBoundingBoxSize.html">GPKGBoundingBoxSize</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJ_DATUMS.html">PJ_DATUMS</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJ_ELLPS.html">PJ_ELLPS</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJ_LIST.html">PJ_LIST</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJ_PRIME_MERIDIANS.html">PJ_PRIME_MERIDIANS</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJ_SELFTEST_LIST.html">PJ_SELFTEST_LIST</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJ_UNITS.html">PJ_UNITS</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PJconsts.html">PJconsts</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PW_COEF.html">PW_COEF</a>
</li>
<li class="nav-group-task">
<a href="../Structs/_PJ_GridCatalog.html">_PJ_GridCatalog</a>
</li>
<li class="nav-group-task">
<a href="../Structs/_pj_gi.html">_pj_gi</a>
</li>
<li class="nav-group-task">
<a href="../Structs/projFileAPI_t.html">projFileAPI_t</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section>
<section class="section">
<h1>CRSTemporalDatum</h1>
<div class="declaration">
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">@interface</span> <span class="nc">CRSTemporalDatum</span> <span class="p">:</span> <span class="nc">NSObject</span><span class="o"><</span><span class="n"><a href="../Protocols/CRSIdentifiable.html">CRSIdentifiable</a></span><span class="o">></span>
<span class="cm">/**
* Datum Name
*/</span>
<span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">name</span><span class="p">;</span>
<span class="cm">/**
* Calendar Identifier
*/</span>
<span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">calendar</span><span class="p">;</span>
<span class="cm">/**
* Origin Description
*/</span>
<span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">origin</span><span class="p">;</span>
<span class="cm">/**
* Origin Description date time
*/</span>
<span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n"><a href="../Classes/CRSDateTime.html">CRSDateTime</a></span> <span class="o">*</span><span class="n">originDateTime</span><span class="p">;</span>
<span class="cm">/**
* Identifiers
*/</span>
<span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSMutableArray</span><span class="o"><</span><span class="n"><a href="../Classes/CRSIdentifier.html">CRSIdentifier</a></span> <span class="o">*></span> <span class="o">*</span><span class="n">identifiers</span><span class="p">;</span>
<span class="cm">/**
* Create
*
* @return new instance
*/</span>
<span class="k">+</span><span class="p">(</span><span class="n">CRSTemporalDatum</span> <span class="o">*</span><span class="p">)</span> <span class="n">create</span><span class="p">;</span>
<span class="cm">/**
* Initialize
*
* @return new instance
*/</span>
<span class="k">-</span><span class="p">(</span><span class="n">instancetype</span><span class="p">)</span> <span class="n">init</span><span class="p">;</span>
<span class="cm">/**
* Initialize
*
* @param name
* name
*
* @return new instance
*/</span>
<span class="k">-</span><span class="p">(</span><span class="n">instancetype</span><span class="p">)</span> <span class="nf">initWithName</span><span class="p">:</span> <span class="p">(</span><span class="n">NSString</span> <span class="o">*</span><span class="p">)</span> <span class="n">name</span><span class="p">;</span>
<span class="cm">/**
* Has a calendar identifier
*
* @return true if has calendar identifier
*/</span>
<span class="k">-</span><span class="p">(</span><span class="n">BOOL</span><span class="p">)</span> <span class="n">hasCalendar</span><span class="p">;</span>
<span class="cm">/**
* Has an origin
*
* @return true if has origin
*/</span>
<span class="k">-</span><span class="p">(</span><span class="n">BOOL</span><span class="p">)</span> <span class="n">hasOrigin</span><span class="p">;</span>
<span class="cm">/**
* Has an origin date time
*
* @return true if has origin date time
*/</span>
<span class="k">-</span><span class="p">(</span><span class="n">BOOL</span><span class="p">)</span> <span class="n">hasOriginDateTime</span><span class="p">;</span>
<span class="cm">/**
* Set the origin date time
*
* @param origin
* origin date time
*/</span>
<span class="k">-</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> <span class="nf">setOriginDateTimeWithOrigin</span><span class="p">:</span> <span class="p">(</span><span class="n">NSString</span> <span class="o">*</span><span class="p">)</span> <span class="n">origin</span><span class="p">;</span>
<span class="k">@end</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">CRSTemporalDatum</span> <span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt"><a href="../Protocols/CRSIdentifiable.html">CRSIdentifiable</a></span></code></pre>
</div>
</div>
<p>Undocumented</p>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L13-L93">Show on GitHub</a>
</div>
</section>
<section class="section task-group-section">
<div class="task-group">
<ul>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(py)name"></a>
<a name="//apple_ref/objc/Property/name" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(py)name">name</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Datum Name</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">name</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">var</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L18">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(py)calendar"></a>
<a name="//apple_ref/objc/Property/calendar" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(py)calendar">calendar</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Calendar Identifier</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">calendar</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">var</span> <span class="nv">calendar</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L23">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(py)origin"></a>
<a name="//apple_ref/objc/Property/origin" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(py)origin">origin</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Origin Description</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSString</span> <span class="o">*</span><span class="n">origin</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">var</span> <span class="nv">origin</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L28">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(py)originDateTime"></a>
<a name="//apple_ref/objc/Property/originDateTime" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(py)originDateTime">originDateTime</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Origin Description date time</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n"><a href="../Classes/CRSDateTime.html">CRSDateTime</a></span> <span class="o">*</span><span class="n">originDateTime</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">var</span> <span class="nv">originDateTime</span><span class="p">:</span> <span class="kt"><a href="../Classes/CRSDateTime.html">CRSDateTime</a></span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L33">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(py)identifiers"></a>
<a name="//apple_ref/objc/Property/identifiers" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(py)identifiers">identifiers</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Identifiers</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">nonatomic</span><span class="p">,</span> <span class="n">strong</span><span class="p">)</span> <span class="n">NSMutableArray</span><span class="o"><</span><span class="n"><a href="../Classes/CRSIdentifier.html">CRSIdentifier</a></span> <span class="o">*></span> <span class="o">*</span><span class="n">identifiers</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">var</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="kt">NSMutableArray</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L38">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(cm)create"></a>
<a name="//apple_ref/objc/Method/+create" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(cm)create">+create</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Create</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">+</span> <span class="p">(</span><span class="n">CRSTemporalDatum</span> <span class="o">*</span><span class="p">)</span><span class="n">create</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kd">func</span> <span class="nf">create</span><span class="p">()</span> <span class="o">-></span> <span class="kt">CRSTemporalDatum</span><span class="o">!</span></code></pre>
</div>
</div>
<div>
<h4>Return Value</h4>
<p>new instance</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L45">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(im)init"></a>
<a name="//apple_ref/objc/Method/-init" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(im)init">-init</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Initialize</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">instancetype</span><span class="p">)</span><span class="n">init</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="nf">init</span><span class="o">!</span><span class="p">()</span></code></pre>
</div>
</div>
<div>
<h4>Return Value</h4>
<p>new instance</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L52">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(im)initWithName:"></a>
<a name="//apple_ref/objc/Method/-initWithName:" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(im)initWithName:">-initWithName:<wbr></a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Initialize</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">instancetype</span><span class="p">)</span><span class="nf">initWithName</span><span class="p">:(</span><span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">name</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="nf">init</span><span class="o">!</span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span><span class="p">)</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>name</em>
</code>
</td>
<td>
<div>
<p>name</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<h4>Return Value</h4>
<p>new instance</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L62">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(im)hasCalendar"></a>
<a name="//apple_ref/objc/Method/-hasCalendar" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(im)hasCalendar">-hasCalendar</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Has a calendar identifier</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">BOOL</span><span class="p">)</span><span class="n">hasCalendar</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">hasCalendar</span><span class="p">()</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
</div>
</div>
<div>
<h4>Return Value</h4>
<p>true if has calendar identifier</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L69">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(im)hasOrigin"></a>
<a name="//apple_ref/objc/Method/-hasOrigin" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(im)hasOrigin">-hasOrigin</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Has an origin</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">BOOL</span><span class="p">)</span><span class="n">hasOrigin</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">hasOrigin</span><span class="p">()</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
</div>
</div>
<div>
<h4>Return Value</h4>
<p>true if has origin</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L76">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(im)hasOriginDateTime"></a>
<a name="//apple_ref/objc/Method/-hasOriginDateTime" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(im)hasOriginDateTime">-hasOriginDateTime</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Has an origin date time</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">BOOL</span><span class="p">)</span><span class="n">hasOriginDateTime</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">hasOriginDateTime</span><span class="p">()</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
</div>
</div>
<div>
<h4>Return Value</h4>
<p>true if has origin date time</p>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L83">Show on GitHub</a>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/c:objc(cs)CRSTemporalDatum(im)setOriginDateTimeWithOrigin:"></a>
<a name="//apple_ref/objc/Method/-setOriginDateTimeWithOrigin:" class="dashAnchor"></a>
<a class="token" href="#/c:objc(cs)CRSTemporalDatum(im)setOriginDateTimeWithOrigin:">-setOriginDateTimeWithOrigin:<wbr></a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Set the origin date time</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Objective-C</p>
<pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="nf">setOriginDateTimeWithOrigin</span><span class="p">:(</span><span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">origin</span><span class="p">;</span></code></pre>
</div>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">setOriginDateTimeWithOrigin</span><span class="p">(</span><span class="n">_</span> <span class="nv">origin</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span><span class="p">)</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>origin</em>
</code>
</td>
<td>
<div>
<p>origin date time</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slightly-smaller">
<a href="https://github.com/ngageoint/geopackage-ios/tree/7.3.0/Pods/crs-ios/crs-ios/temporal/CRSTemporalDatum.h#L91">Show on GitHub</a>
</div>
</section>
</div>
</li>
</ul>
</div>
</section>
</section>
<section id="footer">
<p>© 2022 <a class="link" href="https://www.nga.mil" target="_blank" rel="external noopener">NGA</a>. All rights reserved. (Last updated: 2022-09-08)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫ v0.14.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external noopener">Realm</a> project.</p>
</section>
</article>
</div>
</body>
</html>
| {
"content_hash": "db927563201fca04fa32201ad2049b37",
"timestamp": "",
"source": "github",
"line_count": 5315,
"max_line_length": 504,
"avg_line_length": 52.25079962370649,
"alnum_prop": 0.4942008476376691,
"repo_name": "ngageoint/geopackage-ios",
"id": "5fdec451a24889e7a0d6a7960ed6afead6a9ae38",
"size": "277717",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "docs/docs/api/docsets/geopackage-ios.docset/Contents/Resources/Documents/Classes/CRSTemporalDatum.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "6395019"
},
{
"name": "Ruby",
"bytes": "1469"
},
{
"name": "Swift",
"bytes": "8139"
}
],
"symlink_target": ""
} |
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
| {
"content_hash": "8038482fac2582408b0f05aecded83d1",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 90,
"avg_line_length": 26.166666666666668,
"alnum_prop": 0.6624203821656051,
"repo_name": "songwut/colorOfImages",
"id": "c6dad14ab1d59c8d09e5f1d619c727557d878d84",
"size": "333",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "colorOfImages/main.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "5950"
}
],
"symlink_target": ""
} |
package com.sksamuel.elastic4s.searches.aggs.pipeline
import org.elasticsearch.search.aggregations.pipeline.PipelineAggregatorBuilders
import org.elasticsearch.search.aggregations.pipeline.bucketmetrics.stats.StatsBucketPipelineAggregationBuilder
import scala.collection.JavaConverters._
object StatsBucketPipelineBuilder {
def apply(p: StatsBucketDefinition): StatsBucketPipelineAggregationBuilder = {
val builder = PipelineAggregatorBuilders.statsBucket(p.name, p.bucketsPath)
if (p.metadata.nonEmpty) builder.setMetaData(p.metadata.asJava)
p.format.foreach(builder.format)
p.gapPolicy.foreach(builder.gapPolicy)
builder
}
}
| {
"content_hash": "aaff2ef87998b6f970d8f7e09d605cf5",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 111,
"avg_line_length": 40.875,
"alnum_prop": 0.827217125382263,
"repo_name": "FabienPennequin/elastic4s",
"id": "7ed62ad97ee0fdf199a99d82ff4832d0db841f7c",
"size": "654",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "elastic4s-tcp/src/main/scala/com/sksamuel/elastic4s/searches/aggs/pipeline/StatsBucketPipelineBuilder.scala",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Scala",
"bytes": "1153486"
}
],
"symlink_target": ""
} |
<?php
namespace Dialog\Log;
/**
* Holds a log message handler
*/
interface HandlerInterface
{
/**
* Handles the log message
*
* @param string $level the log level
* @param string $message the message
*/
public function handle($level, $message);
}
| {
"content_hash": "6d23ba43b68002c05a2964f11cb532e3",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 45,
"avg_line_length": 17.6875,
"alnum_prop": 0.6219081272084805,
"repo_name": "m1lt0n/dialog",
"id": "3ec333981bd05b9a8c97d99f9ef456ae9a4d9150",
"size": "283",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Dialog/Log/HandlerInterface.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "43545"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_11) on Mon Jul 12 21:36:35 CEST 2010 -->
<TITLE>
Uses of Class org.apache.fop.render.java2d.SystemFontMetricsMapper (Apache FOP 1.0 API)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Uses of Class org.apache.fop.render.java2d.SystemFontMetricsMapper (Apache FOP 1.0 API)";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/fop/render/java2d/SystemFontMetricsMapper.html" title="class in org.apache.fop.render.java2d"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
fop 1.0</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="SystemFontMetricsMapper.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>org.apache.fop.render.java2d.SystemFontMetricsMapper</B></H2>
</CENTER>
No usage of org.apache.fop.render.java2d.SystemFontMetricsMapper
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/fop/render/java2d/SystemFontMetricsMapper.html" title="class in org.apache.fop.render.java2d"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
fop 1.0</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="SystemFontMetricsMapper.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.
</BODY>
</HTML>
| {
"content_hash": "427f3f4d02803995b435ccadad8061b9",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 240,
"avg_line_length": 43.74264705882353,
"alnum_prop": 0.6148932593713229,
"repo_name": "lewismc/yax",
"id": "6dcbeb1d0ed33d91630344b2f71fb4c257b7593f",
"size": "5949",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "lib/fop-1.0/javadocs/org/apache/fop/render/java2d/class-use/SystemFontMetricsMapper.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "188343"
},
{
"name": "JavaScript",
"bytes": "28474"
},
{
"name": "Shell",
"bytes": "21771"
}
],
"symlink_target": ""
} |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __cplusplus
# error This header can only be compiled as C++.
#endif
#ifndef __INCLUDED_PROTOCOL_H__
#define __INCLUDED_PROTOCOL_H__
#include "serialize.h"
#include "netbase.h"
#include <string>
#include "uint256.h"
#define PPCOIN_PORT 9901
#define RPC_PORT 9902
#define TESTNET_PORT 9903
#define TESTNET_RPC_PORT 9904
extern bool fTestNet;
extern unsigned char pchMessageStart[4];
void GetMessageStart(unsigned char pchMessageStart[], bool fPersistent = false);
static inline unsigned short GetDefaultPort(const bool testnet = fTestNet)
{
return testnet ? TESTNET_PORT : PPCOIN_PORT;
}
/** Message header.
* (4) message start.
* (12) command.
* (4) size.
* (4) checksum.
*/
class CMessageHeader
{
public:
CMessageHeader();
CMessageHeader(const char* pszCommand, unsigned int nMessageSizeIn);
std::string GetCommand() const;
bool IsValid() const;
IMPLEMENT_SERIALIZE
(
READWRITE(FLATDATA(pchMessageStart));
READWRITE(FLATDATA(pchCommand));
READWRITE(nMessageSize);
READWRITE(nChecksum);
)
// TODO: make private (improves encapsulation)
public:
enum {
MESSAGE_START_SIZE=4,
COMMAND_SIZE=12,
MESSAGE_SIZE_SIZE=sizeof(int),
CHECKSUM_SIZE=sizeof(int),
MESSAGE_SIZE_OFFSET=MESSAGE_START_SIZE+COMMAND_SIZE,
CHECKSUM_OFFSET=MESSAGE_SIZE_OFFSET+MESSAGE_SIZE_SIZE,
HEADER_SIZE=MESSAGE_START_SIZE+COMMAND_SIZE+MESSAGE_SIZE_SIZE+CHECKSUM_SIZE
};
unsigned char pchMessageStart[MESSAGE_START_SIZE];
char pchCommand[COMMAND_SIZE];
unsigned int nMessageSize;
unsigned int nChecksum;
};
/** nServices flags */
enum
{
NODE_NETWORK = (1 << 0),
};
/** A CService with information about it as peer */
class CAddress : public CService
{
public:
CAddress();
explicit CAddress(CService ipIn, uint64 nServicesIn=NODE_NETWORK);
void Init();
IMPLEMENT_SERIALIZE
(
CAddress* pthis = const_cast<CAddress*>(this);
CService* pip = (CService*)pthis;
if (fRead)
pthis->Init();
if (nType & SER_DISK)
READWRITE(nVersion);
if ((nType & SER_DISK) ||
(nVersion >= CADDR_TIME_VERSION && !(nType & SER_GETHASH)))
READWRITE(nTime);
READWRITE(nServices);
READWRITE(*pip);
)
void print() const;
// TODO: make private (improves encapsulation)
public:
uint64 nServices;
// disk and network only
unsigned int nTime;
// memory only
int64 nLastTry;
};
/** inv message data */
class CInv
{
public:
CInv();
CInv(int typeIn, const uint256& hashIn);
CInv(const std::string& strType, const uint256& hashIn);
IMPLEMENT_SERIALIZE
(
READWRITE(type);
READWRITE(hash);
)
friend bool operator<(const CInv& a, const CInv& b);
bool IsKnownType() const;
const char* GetCommand() const;
std::string ToString() const;
void print() const;
// TODO: make private (improves encapsulation)
public:
int type;
uint256 hash;
};
enum
{
MSG_TX = 1,
MSG_BLOCK,
// Nodes may always request a MSG_FILTERED_BLOCK in a getdata, however,
// MSG_FILTERED_BLOCK should not appear in any invs except as a part of getdata.
MSG_FILTERED_BLOCK,
};
#endif // __INCLUDED_PROTOCOL_H__
| {
"content_hash": "ab162601c2470f562d289386406d069f",
"timestamp": "",
"source": "github",
"line_count": 154,
"max_line_length": 87,
"avg_line_length": 25.207792207792206,
"alnum_prop": 0.6058732612055642,
"repo_name": "peerdb/cors",
"id": "9aa84ca5b8bd624c101da6f4513e5ffdcee07eba",
"size": "3882",
"binary": false,
"copies": "2",
"ref": "refs/heads/peercoin",
"path": "src/protocol.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "91380"
},
{
"name": "C++",
"bytes": "2564581"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Objective-C++",
"bytes": "2734"
},
{
"name": "Python",
"bytes": "69703"
},
{
"name": "Ruby",
"bytes": "14038"
},
{
"name": "Shell",
"bytes": "15092"
},
{
"name": "TypeScript",
"bytes": "5231056"
}
],
"symlink_target": ""
} |
package de.decoit.simu.cbor.ifmap.deserializer.metadata;
import co.nstant.in.cbor.model.Array;
import co.nstant.in.cbor.model.DataItem;
import co.nstant.in.cbor.model.MajorType;
import de.decoit.simu.cbor.ifmap.deserializer.MetadataDeserializerManager;
import de.decoit.simu.cbor.ifmap.deserializer.vendor.VendorMetadataDeserializer;
import de.decoit.simu.cbor.ifmap.enums.IfMapSignificance;
import de.decoit.simu.cbor.ifmap.exception.CBORDeserializationException;
import de.decoit.simu.cbor.ifmap.metadata.multivalue.CBORUnexpectedBehavior;
import de.decoit.simu.cbor.ifmap.util.TimestampHelper;
import de.decoit.simu.cbor.xml.dictionary.DictionarySimpleElement;
import java.time.ZonedDateTime;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
/**
* The singleton instance of this class may be used to deserialize metadata of type {@link CBORUnexpectedBehavior}.
*
* @author Thomas Rix (rix@decoit.de)
*/
@Slf4j
public class UnexpectedBehaviorDeserializer implements VendorMetadataDeserializer<CBORUnexpectedBehavior> {
private static UnexpectedBehaviorDeserializer instance;
/**
* Get the singleton instance of this deserializer.
*
* @return Deserializer instance
*/
public static UnexpectedBehaviorDeserializer getInstance() {
if(instance == null) {
instance = new UnexpectedBehaviorDeserializer();
}
return instance;
}
/**
* Private constructor, this is a singleton class.
*/
private UnexpectedBehaviorDeserializer() {}
@Override
public CBORUnexpectedBehavior deserialize(final Array attributes,
final DataItem nestedDataItem,
final DictionarySimpleElement elementDictEntry) throws CBORDeserializationException {
if(log.isDebugEnabled()) {
log.debug("Attributes array: " + attributes);
log.debug("Nested data item: " + nestedDataItem);
log.debug("Dictionary entry: " + elementDictEntry);
}
if(nestedDataItem.getMajorType() != MajorType.ARRAY) {
throw new CBORDeserializationException("Expected nested Array, found " + nestedDataItem.getMajorType());
}
Array nestedTags = (Array) nestedDataItem;
// Initially define the required variables to build the target object
String publisherId = null;
ZonedDateTime timestamp = null;
ZonedDateTime discoveredTime = null;
String discovererId = null;
Integer magnitude = null;
Integer confidence = null;
IfMapSignificance significance = null;
String type = null;
String information = null;
DataItem timestampDi = null;
DataItem timestampFractionDi = null;
// Get list of all attribute data items
List<DataItem> attributesDataItems = attributes.getDataItems();
// Iterate over the data items in steps of 2
for(int i=0; i<attributesDataItems.size(); i=i+2) {
// Get name and value data items
DataItem attrName = attributesDataItems.get(i);
DataItem attrValue = attributesDataItems.get(i+1);
String attrNameStr = MetadataDeserializerManager.getAttributeXmlName(attrName, elementDictEntry);
// Process the attribute value
switch(attrNameStr) {
case CBORUnexpectedBehavior.IFMAP_PUBLISHER_ID:
publisherId = MetadataDeserializerManager.processUnicodeStringItem(attrValue, true);
break;
case CBORUnexpectedBehavior.IFMAP_TIMESTAMP:
timestampDi = attrValue;
break;
case CBORUnexpectedBehavior.IFMAP_TIMESTAMP_FRACTION:
timestampFractionDi = attrValue;
}
}
// Get list of all nested tags data items
List<DataItem> nestedTagsDataItems = nestedTags.getDataItems();
// Iterate over the data items in steps of 4
for(int i=0; i<nestedTagsDataItems.size(); i=i+4) {
// Get namespace, name and nested tag/value data items (index i and i+1)
// The attributes array is ignore because a IF-MAP 'unexpected-behavior' has no attributes on nested tags
// No further nested elements are expected, only a value should be present (index i+3)
DataItem ntNamespace = nestedTagsDataItems.get(i);
DataItem ntName = nestedTagsDataItems.get(i+1);
DataItem ntNestedValue = nestedTagsDataItems.get(i+3);
// The namespace should be of simple type NULL, no namespace is expected to be found here
if(!MetadataDeserializerManager.isSimpleValueNull(ntNamespace)) {
throw new CBORDeserializationException("Unexpected nested element with namespace found inside 'unexpected-behavior' element");
}
String nestedTagName = MetadataDeserializerManager.getNestedTagXmlName(ntName, elementDictEntry);
// Process the nested element value
switch(nestedTagName) {
case CBORUnexpectedBehavior.MAGNITUDE:
magnitude = MetadataDeserializerManager.processUnsignedIntegerItem(ntNestedValue, true).intValueExact();
break;
case CBORUnexpectedBehavior.CONFIDENCE:
confidence = MetadataDeserializerManager.processUnsignedIntegerItem(ntNestedValue, true).intValueExact();
break;
case CBORUnexpectedBehavior.SIGNIFICANCE:
significance = IfMapSignificance.fromXmlName(MetadataDeserializerManager.getNestedTagEnumValueXmlName(ntName, ntNestedValue, elementDictEntry));
break;
case CBORUnexpectedBehavior.DISCOVERED_TIME:
discoveredTime = TimestampHelper.fromEpochTimeDataItem(ntNestedValue, null);
break;
case CBORUnexpectedBehavior.DISCOVERER_ID:
discovererId = MetadataDeserializerManager.processUnicodeStringItem(ntNestedValue, true);
break;
case CBORUnexpectedBehavior.TYPE:
type = MetadataDeserializerManager.processUnicodeStringItem(ntNestedValue, true);
break;
case CBORUnexpectedBehavior.INFORMATION:
information = MetadataDeserializerManager.processUnicodeStringItem(ntNestedValue, true);
break;
}
}
if(timestampDi != null) {
timestamp = TimestampHelper.fromEpochTimeDataItem(timestampDi, timestampFractionDi);
}
// Build return value object
CBORUnexpectedBehavior rv;
if(publisherId != null && timestamp != null) {
rv = new CBORUnexpectedBehavior(publisherId, timestamp, discoveredTime, discovererId, magnitude, significance);
}
else {
rv = new CBORUnexpectedBehavior(discoveredTime, discovererId, magnitude, significance);
}
rv.setConfidence(confidence);
rv.setInformation(information);
rv.setType(type);
return rv;
}
}
| {
"content_hash": "c2a83ef5d8a09ad1a81fbaca85abf579",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 149,
"avg_line_length": 38.0920245398773,
"alnum_prop": 0.768078595587051,
"repo_name": "decoit/cbor-if-map-tnc-base",
"id": "10d452f070c1e12c846067a452abf78be10fa012",
"size": "6805",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/de/decoit/simu/cbor/ifmap/deserializer/metadata/UnexpectedBehaviorDeserializer.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "1610115"
}
],
"symlink_target": ""
} |
namespace safe_browsing {
class ClientPhishingRequest;
class ClientSideDetectionService;
// This class is used to receive the IPC from the renderer which
// notifies the browser that a URL was classified as phishing. This
// class relays this information to the client-side detection service
// class which sends a ping to a server to validate the verdict.
// TODO(noelutz): move all client-side detection IPCs to this class.
class ClientSideDetectionHost : public content::WebContentsObserver,
public SafeBrowsingUIManager::Observer {
public:
// The caller keeps ownership of the tab object and is responsible for
// ensuring that it stays valid until WebContentsDestroyed is called.
static ClientSideDetectionHost* Create(content::WebContents* tab);
~ClientSideDetectionHost() override;
// From content::WebContentsObserver.
bool OnMessageReceived(const IPC::Message& message,
content::RenderFrameHost* render_frame_host) override;
void DidGetResourceResponseStart(
const content::ResourceRequestDetails& details) override;
// From content::WebContentsObserver. If we navigate away we cancel all
// pending callbacks that could show an interstitial, and check to see whether
// we should classify the new URL.
void DidNavigateMainFrame(
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) override;
// Called when the SafeBrowsingService found a hit with one of the
// SafeBrowsing lists. This method is called on the UI thread.
void OnSafeBrowsingHit(
const SafeBrowsingUIManager::UnsafeResource& resource) override;
// Called when the SafeBrowsingService finds a match on the SB lists.
// Called on the UI thread. Called even if the resource is whitelisted.
void OnSafeBrowsingMatch(
const SafeBrowsingUIManager::UnsafeResource& resource) override;
virtual scoped_refptr<SafeBrowsingDatabaseManager> database_manager();
// Returns whether the current page contains a malware or phishing safe
// browsing match.
bool DidPageReceiveSafeBrowsingMatch() const;
protected:
explicit ClientSideDetectionHost(content::WebContents* tab);
// From content::WebContentsObserver.
void WebContentsDestroyed() override;
// Used for testing.
void set_safe_browsing_managers(
SafeBrowsingUIManager* ui_manager,
SafeBrowsingDatabaseManager* database_manager);
private:
friend class ClientSideDetectionHostTest;
class ShouldClassifyUrlRequest;
friend class ShouldClassifyUrlRequest;
// These methods are called when pre-classification checks are done for
// the phishing and malware clasifiers.
void OnPhishingPreClassificationDone(bool should_classify);
void OnMalwarePreClassificationDone(bool should_classify);
// Verdict is an encoded ClientPhishingRequest protocol message.
void OnPhishingDetectionDone(const std::string& verdict);
// Callback that is called when the server ping back is
// done. Display an interstitial if |is_phishing| is true.
// Otherwise, we do nothing. Called in UI thread.
void MaybeShowPhishingWarning(GURL phishing_url, bool is_phishing);
// Callback that is called when the malware IP server ping back is
// done. Display an interstitial if |is_malware| is true.
// Otherwise, we do nothing. Called in UI thread.
void MaybeShowMalwareWarning(GURL original_url, GURL malware_url,
bool is_malware);
// Callback that is called when the browser feature extractor is done.
// This method is responsible for deleting the request object. Called on
// the UI thread.
void FeatureExtractionDone(bool success,
scoped_ptr<ClientPhishingRequest> request);
// Start malware classification once the onload handler was called and
// malware pre-classification checks are done and passed.
void MaybeStartMalwareFeatureExtraction();
// Function to be called when the browser malware feature extractor is done.
// Called on the UI thread.
void MalwareFeatureExtractionDone(
bool success, scoped_ptr<ClientMalwareRequest> request);
// Update the entries in browse_info_->ips map.
void UpdateIPUrlMap(const std::string& ip,
const std::string& url,
const std::string& method,
const std::string& referrer,
const content::ResourceType resource_type);
// Inherited from WebContentsObserver. This is called once the page is
// done loading.
void DidStopLoading() override;
// Returns true if the user has seen a regular SafeBrowsing
// interstitial for the current page. This is only true if the user has
// actually clicked through the warning. This method is called on the UI
// thread.
bool DidShowSBInterstitial() const;
// Used for testing. This function does not take ownership of the service
// class.
void set_client_side_detection_service(ClientSideDetectionService* service);
// This pointer may be NULL if client-side phishing detection is disabled.
ClientSideDetectionService* csd_service_;
// These pointers may be NULL if SafeBrowsing is disabled.
scoped_refptr<SafeBrowsingDatabaseManager> database_manager_;
scoped_refptr<SafeBrowsingUIManager> ui_manager_;
// Keep a handle to the latest classification request so that we can cancel
// it if necessary.
scoped_refptr<ShouldClassifyUrlRequest> classification_request_;
// Browser-side feature extractor.
scoped_ptr<BrowserFeatureExtractor> feature_extractor_;
// Keeps some info about the current page visit while the renderer
// classification is going on. Since we cancel classification on
// every page load we can simply keep this data around as a member
// variable. This information will be passed on to the feature extractor.
scoped_ptr<BrowseInfo> browse_info_;
// Redirect chain that leads to the first page of the current host. We keep
// track of this for browse_info_.
std::vector<GURL> cur_host_redirects_;
// Current host, used to help determine cur_host_redirects_.
std::string cur_host_;
// Max number of ips we save for each browse
static const size_t kMaxIPsPerBrowse;
// Max number of urls we report for each malware IP.
static const size_t kMaxUrlsPerIP;
bool should_extract_malware_features_;
bool should_classify_for_malware_;
bool pageload_complete_;
// Unique page ID of the most recent unsafe site that was loaded in this tab
// as well as the UnsafeResource.
int unsafe_unique_page_id_;
scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_;
base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost);
};
} // namespace safe_browsing
#endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
| {
"content_hash": "6fa3a4e03458b1fd184446aa174fee57",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 80,
"avg_line_length": 43.05,
"alnum_prop": 0.7453542392566783,
"repo_name": "Bysmyyr/chromium-crosswalk",
"id": "49566743c19c28ecd686ff0cec43dfe8ff68f250",
"size": "7654",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "chrome/browser/safe_browsing/client_side_detection_host.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
'use strict';
module.exports = grunt => {
// load all grunt tasks matching the ['grunt-*', '@*/grunt-*'] patterns
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
// Configuration to be run (and then tested).
apexdoc: {
development: {
config: {
source: './node_modules/apex-doc-node/_test/data/',
target: './node_modules/apex-doc-node/docs/',
scopes: ['global', 'public'],
json: true,
html: false
}
}
},
jshint: {
files: ['gruntfile.js', 'tasks/*js'],
options: {
esversion: 6,
node: true
}
},
jsbeautifier: {
files: ['gruntfile.js', 'tasks/*.js'],
options: {
js: {
braceStyle: "end-expand",
breakChainedMethods: false,
e4x: false,
evalCode: false,
indentChar: " ",
indentLevel: 0,
indentSize: 2,
indentWithTabs: false,
jslintHappy: false,
keepArrayIndentation: false,
keepFunctionIndentation: false,
maxPreserveNewlines: 10,
preserveNewlines: true,
spaceBeforeConditional: false,
spaceInParen: false,
unescapeStrings: false,
wrapLineLength: 0,
endWithNewline: true
}
}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'jsbeautifier']);
grunt.registerTask('test', ['jshint']);
};
| {
"content_hash": "7e8502218e6b4817f9bc177977d346aa",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 73,
"avg_line_length": 24.553846153846155,
"alnum_prop": 0.5375939849624061,
"repo_name": "dsharrison/grunt-apex-doc",
"id": "f7103bf967acddad1765ec6feec5b2776e6309ef",
"size": "1740",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Gruntfile.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "2252"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="design-properties" content="{"RULERS_VISIBLE":true,"GUIDELINES_VISIBLE":false,"SNAP_TO_OBJECTS":true,"SNAP_TO_GRID":true,"SNAPPING_DISTANCE":10,"PAPER_WIDTH":914,"PAPER_HEIGHT":535,"PAPER_SCROLL_LEFT":2010,"PAPER_SCROLL_TOP":2200,"JAVA_SOURCES_ROOT":"src","THEME":"valo"}">
</head>
<body>
<v-vertical-layout margin="true" spacing="true">
<v-button plain-text="" _id="clickMe">
Click Me
</v-button>
<v-label size-auto="true" plain-text="" _id="welcomeLabel">
Hello Vaadin User
</v-label>
</v-vertical-layout>
</body>
</html> | {
"content_hash": "a327203e1e7661bb1801b01806e2cf94",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 433,
"avg_line_length": 47,
"alnum_prop": 0.6808510638297872,
"repo_name": "vaadin-kim/declarative-vaadin-hello-world",
"id": "bc06d630f6fe4b295bb2d012888445c5dad0a033",
"size": "752",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/resources/org/vaadin/hello/HelloDesign.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "752"
},
{
"name": "Java",
"bytes": "1707"
}
],
"symlink_target": ""
} |
"""
Very basic functionality for a Reactor implementation.
"""
from __future__ import division, absolute_import
import socket # needed only for sync-dns
from zope.interface import implementer, classImplements
import sys
import warnings
from heapq import heappush, heappop, heapify
import traceback
from twisted.internet.interfaces import (
IReactorCore, IReactorTime, IReactorThreads, IResolverSimple,
IReactorPluggableResolver, IReactorPluggableNameResolver, IConnector,
IDelayedCall,
)
from twisted.internet import fdesc, main, error, abstract, defer, threads
from twisted.internet._resolver import (
GAIResolver as _GAIResolver,
ComplexResolverSimplifier as _ComplexResolverSimplifier,
SimpleResolverComplexifier as _SimpleResolverComplexifier,
)
from twisted.python import log, failure, reflect
from twisted.python.compat import unicode, iteritems
from twisted.python.runtime import seconds as runtimeSeconds, platform
from twisted.internet.defer import Deferred, DeferredList
from twisted.python._oldstyle import _oldStyle
# This import is for side-effects! Even if you don't see any code using it
# in this module, don't delete it.
from twisted.python import threadable
@implementer(IDelayedCall)
@_oldStyle
class DelayedCall:
# enable .debug to record creator call stack, and it will be logged if
# an exception occurs while the function is being run
debug = False
_str = None
def __init__(self, time, func, args, kw, cancel, reset,
seconds=runtimeSeconds):
"""
@param time: Seconds from the epoch at which to call C{func}.
@param func: The callable to call.
@param args: The positional arguments to pass to the callable.
@param kw: The keyword arguments to pass to the callable.
@param cancel: A callable which will be called with this
DelayedCall before cancellation.
@param reset: A callable which will be called with this
DelayedCall after changing this DelayedCall's scheduled
execution time. The callable should adjust any necessary
scheduling details to ensure this DelayedCall is invoked
at the new appropriate time.
@param seconds: If provided, a no-argument callable which will be
used to determine the current time any time that information is
needed.
"""
self.time, self.func, self.args, self.kw = time, func, args, kw
self.resetter = reset
self.canceller = cancel
self.seconds = seconds
self.cancelled = self.called = 0
self.delayed_time = 0
if self.debug:
self.creator = traceback.format_stack()[:-2]
def getTime(self):
"""Return the time at which this call will fire
@rtype: C{float}
@return: The number of seconds after the epoch at which this call is
scheduled to be made.
"""
return self.time + self.delayed_time
def cancel(self):
"""Unschedule this call
@raise AlreadyCancelled: Raised if this call has already been
unscheduled.
@raise AlreadyCalled: Raised if this call has already been made.
"""
if self.cancelled:
raise error.AlreadyCancelled
elif self.called:
raise error.AlreadyCalled
else:
self.canceller(self)
self.cancelled = 1
if self.debug:
self._str = bytes(self)
del self.func, self.args, self.kw
def reset(self, secondsFromNow):
"""Reschedule this call for a different time
@type secondsFromNow: C{float}
@param secondsFromNow: The number of seconds from the time of the
C{reset} call at which this call will be scheduled.
@raise AlreadyCancelled: Raised if this call has been cancelled.
@raise AlreadyCalled: Raised if this call has already been made.
"""
if self.cancelled:
raise error.AlreadyCancelled
elif self.called:
raise error.AlreadyCalled
else:
newTime = self.seconds() + secondsFromNow
if newTime < self.time:
self.delayed_time = 0
self.time = newTime
self.resetter(self)
else:
self.delayed_time = newTime - self.time
def delay(self, secondsLater):
"""Reschedule this call for a later time
@type secondsLater: C{float}
@param secondsLater: The number of seconds after the originally
scheduled time for which to reschedule this call.
@raise AlreadyCancelled: Raised if this call has been cancelled.
@raise AlreadyCalled: Raised if this call has already been made.
"""
if self.cancelled:
raise error.AlreadyCancelled
elif self.called:
raise error.AlreadyCalled
else:
self.delayed_time += secondsLater
if self.delayed_time < 0:
self.activate_delay()
self.resetter(self)
def activate_delay(self):
self.time += self.delayed_time
self.delayed_time = 0
def active(self):
"""Determine whether this call is still pending
@rtype: C{bool}
@return: True if this call has not yet been made or cancelled,
False otherwise.
"""
return not (self.cancelled or self.called)
def __le__(self, other):
"""
Implement C{<=} operator between two L{DelayedCall} instances.
Comparison is based on the C{time} attribute (unadjusted by the
delayed time).
"""
return self.time <= other.time
def __lt__(self, other):
"""
Implement C{<} operator between two L{DelayedCall} instances.
Comparison is based on the C{time} attribute (unadjusted by the
delayed time).
"""
return self.time < other.time
def __str__(self):
if self._str is not None:
return self._str
if hasattr(self, 'func'):
# This code should be replaced by a utility function in reflect;
# see ticket #6066:
if hasattr(self.func, '__qualname__'):
func = self.func.__qualname__
elif hasattr(self.func, '__name__'):
func = self.func.func_name
if hasattr(self.func, 'im_class'):
func = self.func.im_class.__name__ + '.' + func
else:
func = reflect.safe_repr(self.func)
else:
func = None
now = self.seconds()
L = ["<DelayedCall 0x%x [%ss] called=%s cancelled=%s" % (
id(self), self.time - now, self.called,
self.cancelled)]
if func is not None:
L.extend((" ", func, "("))
if self.args:
L.append(", ".join([reflect.safe_repr(e) for e in self.args]))
if self.kw:
L.append(", ")
if self.kw:
L.append(", ".join(['%s=%s' % (k, reflect.safe_repr(v)) for (k, v) in self.kw.items()]))
L.append(")")
if self.debug:
L.append("\n\ntraceback at creation: \n\n%s" % (' '.join(self.creator)))
L.append('>')
return "".join(L)
@implementer(IResolverSimple)
class ThreadedResolver(object):
"""
L{ThreadedResolver} uses a reactor, a threadpool, and
L{socket.gethostbyname} to perform name lookups without blocking the
reactor thread. It also supports timeouts indepedently from whatever
timeout logic L{socket.gethostbyname} might have.
@ivar reactor: The reactor the threadpool of which will be used to call
L{socket.gethostbyname} and the I/O thread of which the result will be
delivered.
"""
def __init__(self, reactor):
self.reactor = reactor
self._runningQueries = {}
def _fail(self, name, err):
err = error.DNSLookupError("address %r not found: %s" % (name, err))
return failure.Failure(err)
def _cleanup(self, name, lookupDeferred):
userDeferred, cancelCall = self._runningQueries[lookupDeferred]
del self._runningQueries[lookupDeferred]
userDeferred.errback(self._fail(name, "timeout error"))
def _checkTimeout(self, result, name, lookupDeferred):
try:
userDeferred, cancelCall = self._runningQueries[lookupDeferred]
except KeyError:
pass
else:
del self._runningQueries[lookupDeferred]
cancelCall.cancel()
if isinstance(result, failure.Failure):
userDeferred.errback(self._fail(name, result.getErrorMessage()))
else:
userDeferred.callback(result)
def getHostByName(self, name, timeout = (1, 3, 11, 45)):
"""
See L{twisted.internet.interfaces.IResolverSimple.getHostByName}.
Note that the elements of C{timeout} are summed and the result is used
as a timeout for the lookup. Any intermediate timeout or retry logic
is left up to the platform via L{socket.gethostbyname}.
"""
if timeout:
timeoutDelay = sum(timeout)
else:
timeoutDelay = 60
userDeferred = defer.Deferred()
lookupDeferred = threads.deferToThreadPool(
self.reactor, self.reactor.getThreadPool(),
socket.gethostbyname, name)
cancelCall = self.reactor.callLater(
timeoutDelay, self._cleanup, name, lookupDeferred)
self._runningQueries[lookupDeferred] = (userDeferred, cancelCall)
lookupDeferred.addBoth(self._checkTimeout, name, lookupDeferred)
return userDeferred
@implementer(IResolverSimple)
@_oldStyle
class BlockingResolver:
def getHostByName(self, name, timeout = (1, 3, 11, 45)):
try:
address = socket.gethostbyname(name)
except socket.error:
msg = "address %r not found" % (name,)
err = error.DNSLookupError(msg)
return defer.fail(err)
else:
return defer.succeed(address)
class _ThreePhaseEvent(object):
"""
Collection of callables (with arguments) which can be invoked as a group in
a particular order.
This provides the underlying implementation for the reactor's system event
triggers. An instance of this class tracks triggers for all phases of a
single type of event.
@ivar before: A list of the before-phase triggers containing three-tuples
of a callable, a tuple of positional arguments, and a dict of keyword
arguments
@ivar finishedBefore: A list of the before-phase triggers which have
already been executed. This is only populated in the C{'BEFORE'} state.
@ivar during: A list of the during-phase triggers containing three-tuples
of a callable, a tuple of positional arguments, and a dict of keyword
arguments
@ivar after: A list of the after-phase triggers containing three-tuples
of a callable, a tuple of positional arguments, and a dict of keyword
arguments
@ivar state: A string indicating what is currently going on with this
object. One of C{'BASE'} (for when nothing in particular is happening;
this is the initial value), C{'BEFORE'} (when the before-phase triggers
are in the process of being executed).
"""
def __init__(self):
self.before = []
self.during = []
self.after = []
self.state = 'BASE'
def addTrigger(self, phase, callable, *args, **kwargs):
"""
Add a trigger to the indicate phase.
@param phase: One of C{'before'}, C{'during'}, or C{'after'}.
@param callable: An object to be called when this event is triggered.
@param *args: Positional arguments to pass to C{callable}.
@param **kwargs: Keyword arguments to pass to C{callable}.
@return: An opaque handle which may be passed to L{removeTrigger} to
reverse the effects of calling this method.
"""
if phase not in ('before', 'during', 'after'):
raise KeyError("invalid phase")
getattr(self, phase).append((callable, args, kwargs))
return phase, callable, args, kwargs
def removeTrigger(self, handle):
"""
Remove a previously added trigger callable.
@param handle: An object previously returned by L{addTrigger}. The
trigger added by that call will be removed.
@raise ValueError: If the trigger associated with C{handle} has already
been removed or if C{handle} is not a valid handle.
"""
return getattr(self, 'removeTrigger_' + self.state)(handle)
def removeTrigger_BASE(self, handle):
"""
Just try to remove the trigger.
@see: removeTrigger
"""
try:
phase, callable, args, kwargs = handle
except (TypeError, ValueError):
raise ValueError("invalid trigger handle")
else:
if phase not in ('before', 'during', 'after'):
raise KeyError("invalid phase")
getattr(self, phase).remove((callable, args, kwargs))
def removeTrigger_BEFORE(self, handle):
"""
Remove the trigger if it has yet to be executed, otherwise emit a
warning that in the future an exception will be raised when removing an
already-executed trigger.
@see: removeTrigger
"""
phase, callable, args, kwargs = handle
if phase != 'before':
return self.removeTrigger_BASE(handle)
if (callable, args, kwargs) in self.finishedBefore:
warnings.warn(
"Removing already-fired system event triggers will raise an "
"exception in a future version of Twisted.",
category=DeprecationWarning,
stacklevel=3)
else:
self.removeTrigger_BASE(handle)
def fireEvent(self):
"""
Call the triggers added to this event.
"""
self.state = 'BEFORE'
self.finishedBefore = []
beforeResults = []
while self.before:
callable, args, kwargs = self.before.pop(0)
self.finishedBefore.append((callable, args, kwargs))
try:
result = callable(*args, **kwargs)
except:
log.err()
else:
if isinstance(result, Deferred):
beforeResults.append(result)
DeferredList(beforeResults).addCallback(self._continueFiring)
def _continueFiring(self, ignored):
"""
Call the during and after phase triggers for this event.
"""
self.state = 'BASE'
self.finishedBefore = []
for phase in self.during, self.after:
while phase:
callable, args, kwargs = phase.pop(0)
try:
callable(*args, **kwargs)
except:
log.err()
@implementer(IReactorCore, IReactorTime, IReactorPluggableResolver,
IReactorPluggableNameResolver)
class ReactorBase(object):
"""
Default base class for Reactors.
@type _stopped: C{bool}
@ivar _stopped: A flag which is true between paired calls to C{reactor.run}
and C{reactor.stop}. This should be replaced with an explicit state
machine.
@type _justStopped: C{bool}
@ivar _justStopped: A flag which is true between the time C{reactor.stop}
is called and the time the shutdown system event is fired. This is
used to determine whether that event should be fired after each
iteration through the mainloop. This should be replaced with an
explicit state machine.
@type _started: C{bool}
@ivar _started: A flag which is true from the time C{reactor.run} is called
until the time C{reactor.run} returns. This is used to prevent calls
to C{reactor.run} on a running reactor. This should be replaced with
an explicit state machine.
@ivar running: See L{IReactorCore.running}
@ivar _registerAsIOThread: A flag controlling whether the reactor will
register the thread it is running in as the I/O thread when it starts.
If C{True}, registration will be done, otherwise it will not be.
"""
_registerAsIOThread = True
_stopped = True
installed = False
usingThreads = False
resolver = BlockingResolver()
__name__ = "twisted.internet.reactor"
def __init__(self):
self.threadCallQueue = []
self._eventTriggers = {}
self._pendingTimedCalls = []
self._newTimedCalls = []
self._cancellations = 0
self.running = False
self._started = False
self._justStopped = False
self._startedBefore = False
# reactor internal readers, e.g. the waker.
self._internalReaders = set()
self._nameResolver = None
self.waker = None
# Arrange for the running attribute to change to True at the right time
# and let a subclass possibly do other things at that time (eg install
# signal handlers).
self.addSystemEventTrigger(
'during', 'startup', self._reallyStartRunning)
self.addSystemEventTrigger('during', 'shutdown', self.crash)
self.addSystemEventTrigger('during', 'shutdown', self.disconnectAll)
if platform.supportsThreads():
self._initThreads()
self.installWaker()
# override in subclasses
_lock = None
def installWaker(self):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement installWaker")
def installResolver(self, resolver):
"""
See L{IReactorPluggableResolver}.
@param resolver: see L{IReactorPluggableResolver}.
@return: see L{IReactorPluggableResolver}.
"""
assert IResolverSimple.providedBy(resolver)
oldResolver = self.resolver
self.resolver = resolver
self._nameResolver = _SimpleResolverComplexifier(resolver)
return oldResolver
def installNameResolver(self, resolver):
"""
See L{IReactorPluggableNameResolver}.
@param resolver: See L{IReactorPluggableNameResolver}.
@return: see L{IReactorPluggableNameResolver}.
"""
previousNameResolver = self._nameResolver
self._nameResolver = resolver
self.resolver = _ComplexResolverSimplifier(resolver)
return previousNameResolver
@property
def nameResolver(self):
"""
Implementation of read-only
L{IReactorPluggableNameResolver.nameResolver}.
"""
return self._nameResolver
def wakeUp(self):
"""
Wake up the event loop.
"""
if self.waker:
self.waker.wakeUp()
# if the waker isn't installed, the reactor isn't running, and
# therefore doesn't need to be woken up
def doIteration(self, delay):
"""
Do one iteration over the readers and writers which have been added.
"""
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement doIteration")
def addReader(self, reader):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement addReader")
def addWriter(self, writer):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement addWriter")
def removeReader(self, reader):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement removeReader")
def removeWriter(self, writer):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement removeWriter")
def removeAll(self):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement removeAll")
def getReaders(self):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement getReaders")
def getWriters(self):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement getWriters")
def resolve(self, name, timeout = (1, 3, 11, 45)):
"""Return a Deferred that will resolve a hostname.
"""
if not name:
# XXX - This is *less than* '::', and will screw up IPv6 servers
return defer.succeed('0.0.0.0')
if abstract.isIPAddress(name):
return defer.succeed(name)
return self.resolver.getHostByName(name, timeout)
# Installation.
# IReactorCore
def stop(self):
"""
See twisted.internet.interfaces.IReactorCore.stop.
"""
if self._stopped:
raise error.ReactorNotRunning(
"Can't stop reactor that isn't running.")
self._stopped = True
self._justStopped = True
self._startedBefore = True
def crash(self):
"""
See twisted.internet.interfaces.IReactorCore.crash.
Reset reactor state tracking attributes and re-initialize certain
state-transition helpers which were set up in C{__init__} but later
destroyed (through use).
"""
self._started = False
self.running = False
self.addSystemEventTrigger(
'during', 'startup', self._reallyStartRunning)
def sigInt(self, *args):
"""Handle a SIGINT interrupt.
"""
log.msg("Received SIGINT, shutting down.")
self.callFromThread(self.stop)
def sigBreak(self, *args):
"""Handle a SIGBREAK interrupt.
"""
log.msg("Received SIGBREAK, shutting down.")
self.callFromThread(self.stop)
def sigTerm(self, *args):
"""Handle a SIGTERM interrupt.
"""
log.msg("Received SIGTERM, shutting down.")
self.callFromThread(self.stop)
def disconnectAll(self):
"""Disconnect every reader, and writer in the system.
"""
selectables = self.removeAll()
for reader in selectables:
log.callWithLogger(reader,
reader.connectionLost,
failure.Failure(main.CONNECTION_LOST))
def iterate(self, delay=0):
"""See twisted.internet.interfaces.IReactorCore.iterate.
"""
self.runUntilCurrent()
self.doIteration(delay)
def fireSystemEvent(self, eventType):
"""See twisted.internet.interfaces.IReactorCore.fireSystemEvent.
"""
event = self._eventTriggers.get(eventType)
if event is not None:
event.fireEvent()
def addSystemEventTrigger(self, _phase, _eventType, _f, *args, **kw):
"""See twisted.internet.interfaces.IReactorCore.addSystemEventTrigger.
"""
assert callable(_f), "%s is not callable" % _f
if _eventType not in self._eventTriggers:
self._eventTriggers[_eventType] = _ThreePhaseEvent()
return (_eventType, self._eventTriggers[_eventType].addTrigger(
_phase, _f, *args, **kw))
def removeSystemEventTrigger(self, triggerID):
"""See twisted.internet.interfaces.IReactorCore.removeSystemEventTrigger.
"""
eventType, handle = triggerID
self._eventTriggers[eventType].removeTrigger(handle)
def callWhenRunning(self, _callable, *args, **kw):
"""See twisted.internet.interfaces.IReactorCore.callWhenRunning.
"""
if self.running:
_callable(*args, **kw)
else:
return self.addSystemEventTrigger('after', 'startup',
_callable, *args, **kw)
def startRunning(self):
"""
Method called when reactor starts: do some initialization and fire
startup events.
Don't call this directly, call reactor.run() instead: it should take
care of calling this.
This method is somewhat misnamed. The reactor will not necessarily be
in the running state by the time this method returns. The only
guarantee is that it will be on its way to the running state.
"""
if self._started:
raise error.ReactorAlreadyRunning()
if self._startedBefore:
raise error.ReactorNotRestartable()
self._started = True
self._stopped = False
if self._registerAsIOThread:
threadable.registerAsIOThread()
self.fireSystemEvent('startup')
def _reallyStartRunning(self):
"""
Method called to transition to the running state. This should happen
in the I{during startup} event trigger phase.
"""
self.running = True
# IReactorTime
seconds = staticmethod(runtimeSeconds)
def callLater(self, _seconds, _f, *args, **kw):
"""See twisted.internet.interfaces.IReactorTime.callLater.
"""
assert callable(_f), "%s is not callable" % _f
assert _seconds >= 0, \
"%s is not greater than or equal to 0 seconds" % (_seconds,)
tple = DelayedCall(self.seconds() + _seconds, _f, args, kw,
self._cancelCallLater,
self._moveCallLaterSooner,
seconds=self.seconds)
self._newTimedCalls.append(tple)
return tple
def _moveCallLaterSooner(self, tple):
# Linear time find: slow.
heap = self._pendingTimedCalls
try:
pos = heap.index(tple)
# Move elt up the heap until it rests at the right place.
elt = heap[pos]
while pos != 0:
parent = (pos-1) // 2
if heap[parent] <= elt:
break
# move parent down
heap[pos] = heap[parent]
pos = parent
heap[pos] = elt
except ValueError:
# element was not found in heap - oh well...
pass
def _cancelCallLater(self, tple):
self._cancellations+=1
def getDelayedCalls(self):
"""
Return all the outstanding delayed calls in the system.
They are returned in no particular order.
This method is not efficient -- it is really only meant for
test cases.
@return: A list of outstanding delayed calls.
@type: L{list} of L{DelayedCall}
"""
return [x for x in (self._pendingTimedCalls + self._newTimedCalls) if not x.cancelled]
def _insertNewDelayedCalls(self):
for call in self._newTimedCalls:
if call.cancelled:
self._cancellations-=1
else:
call.activate_delay()
heappush(self._pendingTimedCalls, call)
self._newTimedCalls = []
def timeout(self):
"""
Determine the longest time the reactor may sleep (waiting on I/O
notification, perhaps) before it must wake up to service a time-related
event.
@return: The maximum number of seconds the reactor may sleep.
@rtype: L{float}
"""
# insert new delayed calls to make sure to include them in timeout value
self._insertNewDelayedCalls()
if not self._pendingTimedCalls:
return None
delay = self._pendingTimedCalls[0].time - self.seconds()
# Pick a somewhat arbitrary maximum possible value for the timeout.
# This value is 2 ** 31 / 1000, which is the number of seconds which can
# be represented as an integer number of milliseconds in a signed 32 bit
# integer. This particular limit is imposed by the epoll_wait(3)
# interface which accepts a timeout as a C "int" type and treats it as
# representing a number of milliseconds.
longest = 2147483
# Don't let the delay be in the past (negative) or exceed a plausible
# maximum (platform-imposed) interval.
return max(0, min(longest, delay))
def runUntilCurrent(self):
"""
Run all pending timed calls.
"""
if self.threadCallQueue:
# Keep track of how many calls we actually make, as we're
# making them, in case another call is added to the queue
# while we're in this loop.
count = 0
total = len(self.threadCallQueue)
for (f, a, kw) in self.threadCallQueue:
try:
f(*a, **kw)
except:
log.err()
count += 1
if count == total:
break
del self.threadCallQueue[:count]
if self.threadCallQueue:
self.wakeUp()
# insert new delayed calls now
self._insertNewDelayedCalls()
now = self.seconds()
while self._pendingTimedCalls and (self._pendingTimedCalls[0].time <= now):
call = heappop(self._pendingTimedCalls)
if call.cancelled:
self._cancellations-=1
continue
if call.delayed_time > 0:
call.activate_delay()
heappush(self._pendingTimedCalls, call)
continue
try:
call.called = 1
call.func(*call.args, **call.kw)
except:
log.deferr()
if hasattr(call, "creator"):
e = "\n"
e += " C: previous exception occurred in " + \
"a DelayedCall created here:\n"
e += " C:"
e += "".join(call.creator).rstrip().replace("\n","\n C:")
e += "\n"
log.msg(e)
if (self._cancellations > 50 and
self._cancellations > len(self._pendingTimedCalls) >> 1):
self._cancellations = 0
self._pendingTimedCalls = [x for x in self._pendingTimedCalls
if not x.cancelled]
heapify(self._pendingTimedCalls)
if self._justStopped:
self._justStopped = False
self.fireSystemEvent("shutdown")
# IReactorProcess
def _checkProcessArgs(self, args, env):
"""
Check for valid arguments and environment to spawnProcess.
@return: A two element tuple giving values to use when creating the
process. The first element of the tuple is a C{list} of C{bytes}
giving the values for argv of the child process. The second element
of the tuple is either L{None} if C{env} was L{None} or a C{dict}
mapping C{bytes} environment keys to C{bytes} environment values.
"""
# Any unicode string which Python would successfully implicitly
# encode to a byte string would have worked before these explicit
# checks were added. Anything which would have failed with a
# UnicodeEncodeError during that implicit encoding step would have
# raised an exception in the child process and that would have been
# a pain in the butt to debug.
#
# So, we will explicitly attempt the same encoding which Python
# would implicitly do later. If it fails, we will report an error
# without ever spawning a child process. If it succeeds, we'll save
# the result so that Python doesn't need to do it implicitly later.
#
# -exarkun
defaultEncoding = sys.getfilesystemencoding()
# Common check function
def argChecker(arg):
"""
Return either L{bytes} or L{None}. If the given value is not
allowable for some reason, L{None} is returned. Otherwise, a
possibly different object which should be used in place of arg is
returned. This forces unicode encoding to happen now, rather than
implicitly later.
"""
if isinstance(arg, unicode):
try:
arg = arg.encode(defaultEncoding)
except UnicodeEncodeError:
return None
if isinstance(arg, bytes) and b'\0' not in arg:
return arg
return None
# Make a few tests to check input validity
if not isinstance(args, (tuple, list)):
raise TypeError("Arguments must be a tuple or list")
outputArgs = []
for arg in args:
arg = argChecker(arg)
if arg is None:
raise TypeError("Arguments contain a non-string value")
else:
outputArgs.append(arg)
outputEnv = None
if env is not None:
outputEnv = {}
for key, val in iteritems(env):
key = argChecker(key)
if key is None:
raise TypeError("Environment contains a non-string key")
val = argChecker(val)
if val is None:
raise TypeError("Environment contains a non-string value")
outputEnv[key] = val
return outputArgs, outputEnv
# IReactorThreads
if platform.supportsThreads():
threadpool = None
# ID of the trigger starting the threadpool
_threadpoolStartupID = None
# ID of the trigger stopping the threadpool
threadpoolShutdownID = None
def _initThreads(self):
self.installNameResolver(_GAIResolver(self, self.getThreadPool))
self.usingThreads = True
def callFromThread(self, f, *args, **kw):
"""
See
L{twisted.internet.interfaces.IReactorFromThreads.callFromThread}.
"""
assert callable(f), "%s is not callable" % (f,)
# lists are thread-safe in CPython, but not in Jython
# this is probably a bug in Jython, but until fixed this code
# won't work in Jython.
self.threadCallQueue.append((f, args, kw))
self.wakeUp()
def _initThreadPool(self):
"""
Create the threadpool accessible with callFromThread.
"""
from twisted.python import threadpool
self.threadpool = threadpool.ThreadPool(
0, 10, 'twisted.internet.reactor')
self._threadpoolStartupID = self.callWhenRunning(
self.threadpool.start)
self.threadpoolShutdownID = self.addSystemEventTrigger(
'during', 'shutdown', self._stopThreadPool)
def _uninstallHandler(self):
pass
def _stopThreadPool(self):
"""
Stop the reactor threadpool. This method is only valid if there
is currently a threadpool (created by L{_initThreadPool}). It
is not intended to be called directly; instead, it will be
called by a shutdown trigger created in L{_initThreadPool}.
"""
triggers = [self._threadpoolStartupID, self.threadpoolShutdownID]
for trigger in filter(None, triggers):
try:
self.removeSystemEventTrigger(trigger)
except ValueError:
pass
self._threadpoolStartupID = None
self.threadpoolShutdownID = None
self.threadpool.stop()
self.threadpool = None
def getThreadPool(self):
"""
See L{twisted.internet.interfaces.IReactorThreads.getThreadPool}.
"""
if self.threadpool is None:
self._initThreadPool()
return self.threadpool
def callInThread(self, _callable, *args, **kwargs):
"""
See L{twisted.internet.interfaces.IReactorInThreads.callInThread}.
"""
self.getThreadPool().callInThread(_callable, *args, **kwargs)
def suggestThreadPoolSize(self, size):
"""
See L{twisted.internet.interfaces.IReactorThreads.suggestThreadPoolSize}.
"""
self.getThreadPool().adjustPoolsize(maxthreads=size)
else:
# This is for signal handlers.
def callFromThread(self, f, *args, **kw):
assert callable(f), "%s is not callable" % (f,)
# See comment in the other callFromThread implementation.
self.threadCallQueue.append((f, args, kw))
if platform.supportsThreads():
classImplements(ReactorBase, IReactorThreads)
@implementer(IConnector)
@_oldStyle
class BaseConnector:
"""Basic implementation of connector.
State can be: "connecting", "connected", "disconnected"
"""
timeoutID = None
factoryStarted = 0
def __init__(self, factory, timeout, reactor):
self.state = "disconnected"
self.reactor = reactor
self.factory = factory
self.timeout = timeout
def disconnect(self):
"""Disconnect whatever our state is."""
if self.state == 'connecting':
self.stopConnecting()
elif self.state == 'connected':
self.transport.loseConnection()
def connect(self):
"""Start connection to remote server."""
if self.state != "disconnected":
raise RuntimeError("can't connect in this state")
self.state = "connecting"
if not self.factoryStarted:
self.factory.doStart()
self.factoryStarted = 1
self.transport = transport = self._makeTransport()
if self.timeout is not None:
self.timeoutID = self.reactor.callLater(self.timeout, transport.failIfNotConnected, error.TimeoutError())
self.factory.startedConnecting(self)
def stopConnecting(self):
"""Stop attempting to connect."""
if self.state != "connecting":
raise error.NotConnectingError("we're not trying to connect")
self.state = "disconnected"
self.transport.failIfNotConnected(error.UserError())
del self.transport
def cancelTimeout(self):
if self.timeoutID is not None:
try:
self.timeoutID.cancel()
except ValueError:
pass
del self.timeoutID
def buildProtocol(self, addr):
self.state = "connected"
self.cancelTimeout()
return self.factory.buildProtocol(addr)
def connectionFailed(self, reason):
self.cancelTimeout()
self.transport = None
self.state = "disconnected"
self.factory.clientConnectionFailed(self, reason)
if self.state == "disconnected":
# factory hasn't called our connect() method
self.factory.doStop()
self.factoryStarted = 0
def connectionLost(self, reason):
self.state = "disconnected"
self.factory.clientConnectionLost(self, reason)
if self.state == "disconnected":
# factory hasn't called our connect() method
self.factory.doStop()
self.factoryStarted = 0
def getDestination(self):
raise NotImplementedError(
reflect.qual(self.__class__) + " did not implement "
"getDestination")
class BasePort(abstract.FileDescriptor):
"""Basic implementation of a ListeningPort.
Note: This does not actually implement IListeningPort.
"""
addressFamily = None
socketType = None
def createInternetSocket(self):
s = socket.socket(self.addressFamily, self.socketType)
s.setblocking(0)
fdesc._setCloseOnExec(s.fileno())
return s
def doWrite(self):
"""Raises a RuntimeError"""
raise RuntimeError(
"doWrite called on a %s" % reflect.qual(self.__class__))
class _SignalReactorMixin(object):
"""
Private mixin to manage signals: it installs signal handlers at start time,
and define run method.
It can only be used mixed in with L{ReactorBase}, and has to be defined
first in the inheritance (so that method resolution order finds
startRunning first).
@type _installSignalHandlers: C{bool}
@ivar _installSignalHandlers: A flag which indicates whether any signal
handlers will be installed during startup. This includes handlers for
SIGCHLD to monitor child processes, and SIGINT, SIGTERM, and SIGBREAK
to stop the reactor.
"""
_installSignalHandlers = False
def _handleSignals(self):
"""
Install the signal handlers for the Twisted event loop.
"""
try:
import signal
except ImportError:
log.msg("Warning: signal module unavailable -- "
"not installing signal handlers.")
return
if signal.getsignal(signal.SIGINT) == signal.default_int_handler:
# only handle if there isn't already a handler, e.g. for Pdb.
signal.signal(signal.SIGINT, self.sigInt)
signal.signal(signal.SIGTERM, self.sigTerm)
# Catch Ctrl-Break in windows
if hasattr(signal, "SIGBREAK"):
signal.signal(signal.SIGBREAK, self.sigBreak)
def startRunning(self, installSignalHandlers=True):
"""
Extend the base implementation in order to remember whether signal
handlers should be installed later.
@type installSignalHandlers: C{bool}
@param installSignalHandlers: A flag which, if set, indicates that
handlers for a number of (implementation-defined) signals should be
installed during startup.
"""
self._installSignalHandlers = installSignalHandlers
ReactorBase.startRunning(self)
def _reallyStartRunning(self):
"""
Extend the base implementation by also installing signal handlers, if
C{self._installSignalHandlers} is true.
"""
ReactorBase._reallyStartRunning(self)
if self._installSignalHandlers:
# Make sure this happens before after-startup events, since the
# expectation of after-startup is that the reactor is fully
# initialized. Don't do it right away for historical reasons
# (perhaps some before-startup triggers don't want there to be a
# custom SIGCHLD handler so that they can run child processes with
# some blocking api).
self._handleSignals()
def run(self, installSignalHandlers=True):
self.startRunning(installSignalHandlers=installSignalHandlers)
self.mainLoop()
def mainLoop(self):
while self._started:
try:
while self._started:
# Advance simulation time in delayed event
# processors.
self.runUntilCurrent()
t2 = self.timeout()
t = self.running and t2
self.doIteration(t)
except:
log.msg("Unexpected error in main loop.")
log.err()
else:
log.msg('Main loop terminated.')
__all__ = []
| {
"content_hash": "4aab653bd536e2f6fad2765a25a342b4",
"timestamp": "",
"source": "github",
"line_count": 1260,
"max_line_length": 117,
"avg_line_length": 34.467460317460315,
"alnum_prop": 0.5992769808192683,
"repo_name": "EricMuller/mynotes-backend",
"id": "3e1c63cbf61fde8ff756daf70f946921ac3ccd35",
"size": "43587",
"binary": false,
"copies": "11",
"ref": "refs/heads/master",
"path": "requirements/twisted/Twisted-17.1.0/build/lib.linux-x86_64-3.5/twisted/internet/base.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "11880"
},
{
"name": "Batchfile",
"bytes": "3516"
},
{
"name": "C",
"bytes": "37168"
},
{
"name": "CSS",
"bytes": "6613"
},
{
"name": "DIGITAL Command Language",
"bytes": "1032"
},
{
"name": "GAP",
"bytes": "36244"
},
{
"name": "HTML",
"bytes": "233863"
},
{
"name": "Makefile",
"bytes": "6766"
},
{
"name": "Nginx",
"bytes": "998"
},
{
"name": "Objective-C",
"bytes": "2584"
},
{
"name": "Python",
"bytes": "22991176"
},
{
"name": "Roff",
"bytes": "160293"
},
{
"name": "Shell",
"bytes": "13496"
},
{
"name": "Smarty",
"bytes": "1366"
}
],
"symlink_target": ""
} |
angular.module('BookmarksCtrl', [])
.controller('BookmarksController', ['$scope', '$location', '$state',
'BookmarksService', function($scope, $location, $state, BookmarksService) {
$scope.service = BookmarksService;
$scope.canDelete = false;
$scope.data = { name: null };
$scope.toggleShowDelete = function(){
$scope.canDelete = !$scope.canDelete;
};
$scope.showDelete = function(){
return $scope.canDelete;
};
$scope.addJournal = function(journalName){
$scope.canDelete = false;
$scope.service.add_journal(journalName);
};
$scope.loadJournal = function(journalName) {
$state.go('app.journal',{journalName:journalName});
};
}]);
| {
"content_hash": "6156b8b8f3ef6b0c087dfafe82dd4a13",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 79,
"avg_line_length": 26.814814814814813,
"alnum_prop": 0.6284530386740331,
"repo_name": "leoz/blogga",
"id": "6eb2e6916622d20a97b92dcd8a43f900ffafa211",
"size": "725",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "www/app/bookmarks/bookmarksctrl.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "5132"
},
{
"name": "HTML",
"bytes": "23165"
},
{
"name": "JavaScript",
"bytes": "49128"
}
],
"symlink_target": ""
} |
class SecretAgent(val name:String) {
def shoot(n:Int) {
import SecretAgent._
decrementBullets(n)
}
}
object SecretAgent {
private var b:Int = 3000
private def decrementBullets(count:Int) {
if (b - count <= 0) b = 0
else b = b - count
}
def bullets = b
}
object SecretAgentRunner extends App {
val bond = new SecretAgent("James Bond")
val felix = new SecretAgent("Felix Leitner")
val jason = new SecretAgent("Jason Bourne")
val _99 = new SecretAgent("99")
val max = new SecretAgent("Max Smart")
bond.shoot(800)
felix.shoot(200)
jason.shoot(150)
_99.shoot(120)
max.shoot(100)
println(SecretAgent.bullets)
}
| {
"content_hash": "19f12fd5f27242b186348b5b950e1c57",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 47,
"avg_line_length": 22.419354838709676,
"alnum_prop": 0.6330935251798561,
"repo_name": "chrisheckler/Scala_scripts",
"id": "ec40de0bb22af30eb337e04babcd25ee85ca0d1b",
"size": "695",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SecretAgent.scala",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Scala",
"bytes": "6353"
}
],
"symlink_target": ""
} |

Machine lets you create Docker hosts on your computer, on cloud providers, and
inside your own data center. It creates servers, installs Docker on them, then
configures the Docker client to talk to them.
It works a bit like this:
```console
$ docker-machine create -d virtualbox dev
Creating CA: /home/username/.docker/machine/certs/ca.pem
Creating client certificate: /home/username/.docker/machine/certs/cert.pem
Image cache does not exist, creating it at /home/username/.docker/machine/cache...
No default boot2docker iso found locally, downloading the latest release...
Downloading https://github.com/boot2docker/boot2docker/releases/download/v1.6.2/boot2docker.iso to /home/username/.docker/machine/cache/boot2docker.iso...
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
To see how to connect Docker to this machine, run: docker-machine env dev
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
dev * virtualbox Running tcp://192.168.99.127:2376
$ eval "$(docker-machine env dev)"
$ docker run busybox echo hello world
Unable to find image 'busybox:latest' locally
511136ea3c5a: Pull complete
df7546f9f060: Pull complete
ea13149945cb: Pull complete
4986bf8c1536: Pull complete
hello world
$ docker-machine create -d digitalocean --digitalocean-access-token=secret staging
Creating SSH key...
Creating Digital Ocean droplet...
To see how to connect Docker to this machine, run: docker-machine env staging
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
dev - virtualbox Running tcp://192.168.99.127:2376
staging * digitalocean Running tcp://104.236.253.181:2376
```
## Installation and documentation
Full documentation [is available here](https://docs.docker.com/machine/).
## Contributing
Want to hack on Machine? Please start with the [Contributing Guide](https://github.com/docker/machine/blob/master/CONTRIBUTING.md).
## Troubleshooting
Docker Machine tries to do the right thing in a variety of scenarios but
sometimes things do not go according to plan. Here is a quick troubleshooting
guide which may help you to resolve of the issues you may be seeing.
Note that some of the suggested solutions are only available on the Docker
Machine master branch. If you need them, consider compiling Docker Machine from
source. There are also [unofficial pre-compiled master
binaries](https://docker-machine-builds.evanhazlett.com/latest) hosted by
[@ehazlett](https://github.com/ehazlett).
#### `docker-machine` hangs
A common issue with Docker Machine is that it will hang when attempting to start
up the virtual machine. Since starting the machine is part of the `create`
process, `create` is often where these types of errors show up.
A hang could be due to a variety of factors, but the most common suspect is
networking. Consider the following:
- Are you using a VPN? If so, try disconnecting and see if creation will
succeed without the VPN. Some VPN software aggressively controls routes and
you may need to [manually add the route](https://github.com/docker/machine/issues/1500#issuecomment-121134958).
- Are you connected to a proxy server, corporate or otherwise? If so, take a
look at the `--no-proxy` flag for `env` and at [setting environment variables
for the created Docker Engine](https://docs.docker.com/machine/reference/create/#specifying-configuration-options-for-the-created-docker-engine).
- Are there a lot of host-only interfaces listed by the command `VBoxManage list
hostonlyifs`? If so, this has sometimes been known to cause bugs. Consider
removing the ones you are not using (`VBoxManage hostonlyif remove name`) and
trying machine creation again.
We are keenly aware of this as an issue and working towards a set of solutions
which is robust for all users, so please give us feedback and/or report issues,
workarounds, and desired workflows as you discover them.
#### Machine creation errors out before finishing
If you see messages such as "exit status 1" creating machines with VirtualBox,
this frequently indicates that there is an issue with VirtualBox itself. Please
[file an issue](https://github.com/docker/machine/issues/new) and include a link
to a [Github Gist](https://gist.github.com/) with the output of the VirtualBox
log (usually located at
`$HOME/.docker/machine/machines/machinename/machinename/Logs/VBox.log`), as well
as the output of running the Docker Machine command which is failing with the
global `--debug` flag enabled. This will help us to track down which versions
of VirtualBox are failing where, and under which conditions.
If you see messages such as "exit status 255", this frequently indicates there
has been an issue with SSH. Please investigate your SSH configuration if you
have one, and/or [file an issue](https://github.com/docker/machine/issues).
#### "You may be getting rate limited by Github" error message
In order to `create` or `upgrade` virtual machines running Docker, Docker
Machine will check the Github API for the latest release of the [boot2docker
operating system](https://github.com/boot2docker/boot2docker). The Github API
allows for a small number of unauthenticated requests from a given client, but
if you share an IP address with many other users (e.g. in an office), you may
get rate limited by their API, and Docker Machine will error out with messages
indicating this.
In order to work around this issue, you can [generate a
token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
and pass it to Docker Machine using the global `--github-api-token` flag like
so:
```console
$ docker-machine --github-api-token=token create -d virtualbox newbox
```
This should eliminate any issues you've been experiencing with rate limiting.
| {
"content_hash": "3a03648e893f80d220bc6ed60156ab1e",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 154,
"avg_line_length": 46.91269841269841,
"alnum_prop": 0.7648452038572153,
"repo_name": "wlan0/machine",
"id": "adee962024808072a1b655c934da23d0a9eeee09",
"size": "5929",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "1039"
},
{
"name": "Go",
"bytes": "679202"
},
{
"name": "Makefile",
"bytes": "8145"
},
{
"name": "Shell",
"bytes": "46222"
}
],
"symlink_target": ""
} |
<?php
namespace JYmusic\Assets;
/**
* Handles HTTP digest authentication
*
* <p>HTTP digest authentication can be used with the URI router.
* HTTP digest is much more recommended over the use of HTTP Basic auth which doesn't provide any encryption.
* If you are running PHP on Apache in CGI/FastCGI mode, you would need to
* add the following line to your .htaccess for digest auth to work correctly.</p>
* <code>RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</code>
*
* <p>This class is tested under Apache 2.2 and Cherokee web server. It should work in both mod_php and cgi mode.</p>
*
* @author Leng Sheng Hong <darkredz@gmail.com>
* @version $Id: DooDigestAuth.php 1000 2009-07-7 18:27:22
* @package doo.auth
* @since 1.0
*
* @deprecated 2.3 This will be removed in Minify 3.0
*/
class DooDigestAuth{
/**
* Authenticate against a list of username and passwords.
*
* <p>HTTP Digest Authentication doesn't work with PHP in CGI mode,
* you have to add this into your .htaccess <code>RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</code></p>
*
* @param string $realm Name of the authentication session
* @param array $users An assoc array of username and password: array('uname1'=>'pwd1', 'uname2'=>'pwd2')
* @param string $fail_msg Message to be displayed if the User cancel the login
* @param string $fail_url URL to be redirect if the User cancel the login
* @return string The username if login success.
*/
public static function http_auth($realm, $users, $fail_msg=NULL, $fail_url=NULL){
$realm = "Restricted area - $realm";
//user => password
//$users = array('admin' => '1234', 'guest' => 'guest');
if(!empty($_SERVER['REDIRECT_HTTP_AUTHORIZATION']) && strpos($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 'Digest')===0){
$_SERVER['PHP_AUTH_DIGEST'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
}
if (empty($_SERVER['PHP_AUTH_DIGEST'])) {
header('WWW-Authenticate: Digest realm="'.$realm.
'",qop="auth",nonce="'.uniqid().'",opaque="'.md5($realm).'"');
header('HTTP/1.1 401 Unauthorized');
if($fail_msg!=NULL)
die($fail_msg);
if($fail_url!=NULL)
die("<script>window.location.href = '$fail_url'</script>");
exit;
}
// analyze the PHP_AUTH_DIGEST variable
if (!($data = self::http_digest_parse($_SERVER['PHP_AUTH_DIGEST'])) || !isset($users[$data['username']])){
header('WWW-Authenticate: Digest realm="'.$realm.
'",qop="auth",nonce="'.uniqid().'",opaque="'.md5($realm).'"');
header('HTTP/1.1 401 Unauthorized');
if($fail_msg!=NULL)
die($fail_msg);
if($fail_url!=NULL)
die("<script>window.location.href = '$fail_url'</script>");
exit;
}
// generate the valid response
$A1 = md5($data['username'] . ':' . $realm . ':' . $users[$data['username']]);
$A2 = md5($_SERVER['REQUEST_METHOD'].':'.$data['uri']);
$valid_response = md5($A1.':'.$data['nonce'].':'.$data['nc'].':'.$data['cnonce'].':'.$data['qop'].':'.$A2);
if ($data['response'] != $valid_response){
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Digest realm="'.$realm.
'",qop="auth",nonce="'.uniqid().'",opaque="'.md5($realm).'"');
if($fail_msg!=NULL)
die($fail_msg);
if($fail_url!=NULL)
die("<script>window.location.href = '$fail_url'</script>");
exit;
}
// ok, valid username & password
return $data['username'];
}
/**
* Method to parse the http auth header, works with IE.
*
* Internet Explorer returns a qop="xxxxxxxxxxx" in the header instead of qop=xxxxxxxxxxx as most browsers do.
*
* @param string $txt header string to parse
* @return array An assoc array of the digest auth session
*/
private static function http_digest_parse($txt)
{
$res = preg_match("/username=\"([^\"]+)\"/i", $txt, $match);
$data['username'] = (isset($match[1]))?$match[1]:null;
$res = preg_match('/nonce=\"([^\"]+)\"/i', $txt, $match);
$data['nonce'] = $match[1];
$res = preg_match('/nc=([0-9]+)/i', $txt, $match);
$data['nc'] = $match[1];
$res = preg_match('/cnonce=\"([^\"]+)\"/i', $txt, $match);
$data['cnonce'] = $match[1];
$res = preg_match('/qop=([^,]+)/i', $txt, $match);
$data['qop'] = str_replace('"','',$match[1]);
$res = preg_match('/uri=\"([^\"]+)\"/i', $txt, $match);
$data['uri'] = $match[1];
$res = preg_match('/response=\"([^\"]+)\"/i', $txt, $match);
$data['response'] = $match[1];
return $data;
}
}
| {
"content_hash": "b7e66de074d135bff9587ec9e01bb71e",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 128,
"avg_line_length": 42.41880341880342,
"alnum_prop": 0.5555107797703002,
"repo_name": "jymusic/assets",
"id": "49488fedd2f47ab8201326e8b5f0a73285757109",
"size": "5176",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/DooDigestAuth.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "14870"
},
{
"name": "PHP",
"bytes": "365774"
}
],
"symlink_target": ""
} |
TOOLS=../../build/tools
GLOG_logtostderr=1 $TOOLS/caffe.bin train \
--solver_proto_file=imagenet_solver.prototxt
echo "Done."
| {
"content_hash": "6cdc3fa2529e951f20c9c79c4073ae7d",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 46,
"avg_line_length": 21.666666666666668,
"alnum_prop": 0.7230769230769231,
"repo_name": "orentadmor/caffe",
"id": "90dcdfaddb88e620f010de99eeac8e02f65a8edd",
"size": "149",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/imagenet/train_imagenet.sh",
"mode": "33261",
"license": "bsd-2-clause",
"language": [
{
"name": "C++",
"bytes": "1928584"
},
{
"name": "CSS",
"bytes": "9155"
},
{
"name": "Cuda",
"bytes": "90331"
},
{
"name": "Matlab",
"bytes": "9721"
},
{
"name": "Python",
"bytes": "235484"
},
{
"name": "Shell",
"bytes": "12690"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;
namespace SumNumbersWebForms
{
public class Global : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
} | {
"content_hash": "4b98d800f4aa33a4d31fd023cc673727",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 62,
"avg_line_length": 25.80952380952381,
"alnum_prop": 0.7066420664206642,
"repo_name": "adzhazhev/ASP.NET-Web-Forms",
"id": "0eb7985afc212709c9cd54a0120c2bb1b96f1312",
"size": "544",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "01. Introduction-to-ASP.NET/02. Sum-Numbers/SumNumbersWebForms/Global.asax.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "74398"
},
{
"name": "C#",
"bytes": "623346"
},
{
"name": "CSS",
"bytes": "10230"
},
{
"name": "JavaScript",
"bytes": "1021472"
}
],
"symlink_target": ""
} |
package swagger
type Sector struct {
Sector string `json:"sector,omitempty"`
Group string `json:"group,omitempty"`
Name string `json:"name,omitempty"`
}
| {
"content_hash": "6d9dd840525416ad45a6bfb7299b4834",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 40,
"avg_line_length": 22.857142857142858,
"alnum_prop": 0.73125,
"repo_name": "Forau/yanngo",
"id": "38f20024dd63d0283889d972201c0c6ff4593930",
"size": "160",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "swagger/sector.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "159332"
},
{
"name": "HTML",
"bytes": "1312"
},
{
"name": "JavaScript",
"bytes": "21223"
}
],
"symlink_target": ""
} |
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.resources.commerce.customer;
import com.mozu.api.ApiContext;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;
import com.mozu.api.AsyncCallback;
import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;
import java.util.concurrent.CountDownLatch;
/** <summary>
* Use the Customer Credits resource to manage the store credit associated with a customer account. Store credit can represent a static amount the customer can redeem at any of the tenant's sites, or a gift card registered for a customer account. At this time, gift card functionality is reserved for future use.
* </summary>
*/
public class CreditResource {
///
/// <see cref="Mozu.Api.ApiContext"/>
///
private ApiContext _apiContext;
public CreditResource(ApiContext apiContext)
{
_apiContext = apiContext;
}
/**
* Retrieves a list of store credits applied to customer accounts, according any filter and sort criteria specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* CreditCollection creditCollection = credit.getCredits();
* </code></pre></p>
* @return com.mozu.api.contracts.customer.credit.CreditCollection
* @see com.mozu.api.contracts.customer.credit.CreditCollection
*/
public com.mozu.api.contracts.customer.credit.CreditCollection getCredits() throws Exception
{
return getCredits( null, null, null, null, null);
}
/**
* Retrieves a list of store credits applied to customer accounts, according any filter and sort criteria specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.getCredits( callback );
* latch.await() * </code></pre></p>
* @param callback callback handler for asynchronous operations
* @return com.mozu.api.contracts.customer.credit.CreditCollection
* @see com.mozu.api.contracts.customer.credit.CreditCollection
*/
public CountDownLatch getCreditsAsync( AsyncCallback<com.mozu.api.contracts.customer.credit.CreditCollection> callback) throws Exception
{
return getCreditsAsync( null, null, null, null, null, callback);
}
/**
* Retrieves a list of store credits applied to customer accounts, according any filter and sort criteria specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* CreditCollection creditCollection = credit.getCredits( startIndex, pageSize, sortBy, filter, responseFields);
* </code></pre></p>
* @param filter A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true"
* @param pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
* @param responseFields Use this field to include those fields which are not included by default.
* @param sortBy The property by which to sort results and whether the results appear in ascending (a-z) order, represented by ASC or in descending (z-a) order, represented by DESC. The sortBy parameter follows an available property. For example: "sortBy=productCode+asc"
* @param startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with a PageSize of 25, to get the 51st through the 75th items, use startIndex=3.
* @return com.mozu.api.contracts.customer.credit.CreditCollection
* @see com.mozu.api.contracts.customer.credit.CreditCollection
*/
public com.mozu.api.contracts.customer.credit.CreditCollection getCredits(Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.CreditCollection> client = com.mozu.api.clients.commerce.customer.CreditClient.getCreditsClient( startIndex, pageSize, sortBy, filter, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* Retrieves a list of store credits applied to customer accounts, according any filter and sort criteria specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.getCredits( startIndex, pageSize, sortBy, filter, responseFields, callback );
* latch.await() * </code></pre></p>
* @param filter A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true"
* @param pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
* @param responseFields Use this field to include those fields which are not included by default.
* @param sortBy The property by which to sort results and whether the results appear in ascending (a-z) order, represented by ASC or in descending (z-a) order, represented by DESC. The sortBy parameter follows an available property. For example: "sortBy=productCode+asc"
* @param startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with a PageSize of 25, to get the 51st through the 75th items, use startIndex=3.
* @param callback callback handler for asynchronous operations
* @return com.mozu.api.contracts.customer.credit.CreditCollection
* @see com.mozu.api.contracts.customer.credit.CreditCollection
*/
public CountDownLatch getCreditsAsync(Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields, AsyncCallback<com.mozu.api.contracts.customer.credit.CreditCollection> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.CreditCollection> client = com.mozu.api.clients.commerce.customer.CreditClient.getCreditsClient( startIndex, pageSize, sortBy, filter, responseFields);
client.setContext(_apiContext);
return client.executeRequest(callback);
}
/**
* Retrieves the details of a store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.getCredit( code);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit getCredit(String code) throws Exception
{
return getCredit( code, null);
}
/**
* Retrieves the details of a store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.getCredit( code, callback );
* latch.await() * </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param callback callback handler for asynchronous operations
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch getCreditAsync(String code, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
return getCreditAsync( code, null, callback);
}
/**
* Retrieves the details of a store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.getCredit( code, responseFields);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit getCredit(String code, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.getCreditClient( code, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* Retrieves the details of a store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.getCredit( code, responseFields, callback );
* latch.await() * </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @param callback callback handler for asynchronous operations
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch getCreditAsync(String code, String responseFields, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.getCreditClient( code, responseFields);
client.setContext(_apiContext);
return client.executeRequest(callback);
}
/**
* Creates a new store credit for the customer account specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.addCredit( credit);
* </code></pre></p>
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit addCredit(com.mozu.api.contracts.customer.credit.Credit credit) throws Exception
{
return addCredit( credit, null);
}
/**
* Creates a new store credit for the customer account specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.addCredit( credit, callback );
* latch.await() * </code></pre></p>
* @param callback callback handler for asynchronous operations
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch addCreditAsync(com.mozu.api.contracts.customer.credit.Credit credit, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
return addCreditAsync( credit, null, callback);
}
/**
* Creates a new store credit for the customer account specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.addCredit( credit, responseFields);
* </code></pre></p>
* @param responseFields Use this field to include those fields which are not included by default.
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit addCredit(com.mozu.api.contracts.customer.credit.Credit credit, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.addCreditClient( credit, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* Creates a new store credit for the customer account specified in the request.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.addCredit( credit, responseFields, callback );
* latch.await() * </code></pre></p>
* @param responseFields Use this field to include those fields which are not included by default.
* @param callback callback handler for asynchronous operations
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch addCreditAsync(com.mozu.api.contracts.customer.credit.Credit credit, String responseFields, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.addCreditClient( credit, responseFields);
client.setContext(_apiContext);
return client.executeRequest(callback);
}
/**
* Associates an unclaimed customer credit with the shopper user authenticated in the request header.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.associateCreditToShopper( code);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit associateCreditToShopper(String code) throws Exception
{
return associateCreditToShopper( code, null);
}
/**
* Associates an unclaimed customer credit with the shopper user authenticated in the request header.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.associateCreditToShopper( code, callback );
* latch.await() * </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param callback callback handler for asynchronous operations
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch associateCreditToShopperAsync(String code, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
return associateCreditToShopperAsync( code, null, callback);
}
/**
* Associates an unclaimed customer credit with the shopper user authenticated in the request header.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.associateCreditToShopper( code, responseFields);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit associateCreditToShopper(String code, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.associateCreditToShopperClient( code, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* Associates an unclaimed customer credit with the shopper user authenticated in the request header.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.associateCreditToShopper( code, responseFields, callback );
* latch.await() * </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @param callback callback handler for asynchronous operations
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch associateCreditToShopperAsync(String code, String responseFields, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.associateCreditToShopperClient( code, responseFields);
client.setContext(_apiContext);
return client.executeRequest(callback);
}
/**
* customer-credits Put ResendCreditCreatedEmail description DOCUMENT_HERE
* <p><pre><code>
* Credit credit = new Credit();
* credit.resendCreditCreatedEmail( code);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @return
*/
public void resendCreditCreatedEmail(String code) throws Exception
{
MozuClient client = com.mozu.api.clients.commerce.customer.CreditClient.resendCreditCreatedEmailClient( code);
client.setContext(_apiContext);
client.executeRequest();
client.cleanupHttpConnection();
}
/**
* Updates one or more properties of a defined store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.updateCredit( credit, code);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit updateCredit(com.mozu.api.contracts.customer.credit.Credit credit, String code) throws Exception
{
return updateCredit( credit, code, null);
}
/**
* Updates one or more properties of a defined store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.updateCredit( credit, code, callback );
* latch.await() * </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param callback callback handler for asynchronous operations
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch updateCreditAsync(com.mozu.api.contracts.customer.credit.Credit credit, String code, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
return updateCreditAsync( credit, code, null, callback);
}
/**
* Updates one or more properties of a defined store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* Credit credit = credit.updateCredit( credit, code, responseFields);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public com.mozu.api.contracts.customer.credit.Credit updateCredit(com.mozu.api.contracts.customer.credit.Credit credit, String code, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.updateCreditClient( credit, code, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* Updates one or more properties of a defined store credit applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* CountDownLatch latch = credit.updateCredit( credit, code, responseFields, callback );
* latch.await() * </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @param callback callback handler for asynchronous operations
* @param credit Properties of the store credit of gift card applied to a customer account. At this time, gift card functionality is reserved for future use.
* @return com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
* @see com.mozu.api.contracts.customer.credit.Credit
*/
public CountDownLatch updateCreditAsync(com.mozu.api.contracts.customer.credit.Credit credit, String code, String responseFields, AsyncCallback<com.mozu.api.contracts.customer.credit.Credit> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.customer.credit.Credit> client = com.mozu.api.clients.commerce.customer.CreditClient.updateCreditClient( credit, code, responseFields);
client.setContext(_apiContext);
return client.executeRequest(callback);
}
/**
* Deletes a store credit previously applied to a customer account.
* <p><pre><code>
* Credit credit = new Credit();
* credit.deleteCredit( code);
* </code></pre></p>
* @param code User-defined code that uniqely identifies the channel group.
* @return
*/
public void deleteCredit(String code) throws Exception
{
MozuClient client = com.mozu.api.clients.commerce.customer.CreditClient.deleteCreditClient( code);
client.setContext(_apiContext);
client.executeRequest();
client.cleanupHttpConnection();
}
}
| {
"content_hash": "482e5e1d1255f504ba7ccd623da7f528",
"timestamp": "",
"source": "github",
"line_count": 448,
"max_line_length": 389,
"avg_line_length": 51.69419642857143,
"alnum_prop": 0.7399715013601623,
"repo_name": "johngatti/mozu-java",
"id": "6e4942a059c7b6c78c3feb36e3872842a9021800",
"size": "23159",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/customer/CreditResource.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "102"
},
{
"name": "Java",
"bytes": "10444263"
}
],
"symlink_target": ""
} |
<?php
/**
* INIT - includes all the required files adepending on the current section.
*
* @author Pexeto
*/
//styles and scripts
require_once 'scripts-and-styles.php';
//portfolio functionality
require_once 'portfolio.php';
//general theme functions
require_once 'functions-general.php';
//meta functionality
require_once 'meta.php';
//data initialization functionality
require_once 'init-data.php';
//sidebars functionality
require_once 'sidebars.php';
//register shortcodes functionality
require_once 'shortcodes.php';
//register gallery functionality
require_once 'gallery.php';
//HTML building functions
require_once 'html-builders.php';
//front-end AJAX functions
require_once 'ajax.php';
if (!is_admin()){
require_once 'fullpage-slider.php';
}
require_once 'mega-menu.php';
if ( is_admin() ) {
//formatting buttons
require_once 'formatting-buttons/buttons-init.php';
}
//comments functionality
if ( !is_admin() ) {
require_once 'comments.php';
}
if ( !function_exists( 'pexeto_load_captcha_lib' ) ) {
function pexeto_load_captcha_lib() {
require_once PEXETO_LIB_PATH.'utils/recaptchalib.php';
}
}
if ( PEXETO_WOOCOMMERCE_ACTIVE) {
require_once 'woocommerce.php';
}
| {
"content_hash": "7a348cbae761575ad9749187af601806",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 76,
"avg_line_length": 20.063492063492063,
"alnum_prop": 0.692246835443038,
"repo_name": "dnjuguna/wepesi-theme",
"id": "3379cf4e62f501c6e2d77871dd4fd0d8be8312fa",
"size": "1264",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "functions/init.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "140101"
},
{
"name": "JavaScript",
"bytes": "397360"
},
{
"name": "PHP",
"bytes": "543129"
}
],
"symlink_target": ""
} |
using NBitcoin;
using Stratis.Bitcoin.Utilities;
namespace Stratis.Bitcoin.Base.Deployments
{
public class NodeDeployments
{
/// <summary>Specification of the network the node runs on - regtest/testnet/mainnet.</summary>
private readonly Network network;
public ThresholdConditionCache BIP9 { get; }
/// <summary>Thread safe access to the best chain of block headers (that the node is aware of) from genesis.</summary>
private readonly ChainIndexer chainIndexer;
public NodeDeployments(Network network, ChainIndexer chainIndexer)
{
Guard.NotNull(network, nameof(network));
Guard.NotNull(chainIndexer, nameof(chainIndexer));
this.network = network;
this.chainIndexer = chainIndexer;
this.BIP9 = new ThresholdConditionCache(network.Consensus);
}
public virtual DeploymentFlags GetFlags(ChainedHeader block)
{
Guard.NotNull(block, nameof(block));
lock (this.BIP9)
{
ThresholdState[] states = this.BIP9.GetStates(block.Previous);
var flags = new DeploymentFlags(block, states, this.network.Consensus, this.chainIndexer);
return flags;
}
}
}
}
| {
"content_hash": "0e69134c63ae79dc4e457186570688b2",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 126,
"avg_line_length": 34.28947368421053,
"alnum_prop": 0.6354566385264774,
"repo_name": "stratisproject/StratisBitcoinFullNode",
"id": "119085482614c20de587ac8c497a24e7858caddc",
"size": "1305",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "src/Stratis.Bitcoin/Base/Deployments/NodeDeployments.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "216"
},
{
"name": "C#",
"bytes": "12914965"
},
{
"name": "Dockerfile",
"bytes": "1636"
},
{
"name": "PowerShell",
"bytes": "32780"
},
{
"name": "Shell",
"bytes": "3446"
}
],
"symlink_target": ""
} |
const _require = require('./_initLoader')(module)
_require('./index.js')
| {
"content_hash": "f1a2c75bef48c22034d979d4d93dc152",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 49,
"avg_line_length": 36.5,
"alnum_prop": 0.6712328767123288,
"repo_name": "substance/substance",
"id": "ee2818fd47bfeedb5cfd0bbbfe982506f23f3af7",
"size": "73",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "test/_runTests.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1006"
},
{
"name": "HTML",
"bytes": "186248"
},
{
"name": "JavaScript",
"bytes": "1527774"
}
],
"symlink_target": ""
} |
layout: doc_de
title: Anleitung - Einen Blogeintrag schreiben
previous: Benchmarks schreiben
previous_url: how-to/write-benchmarks
next: Dokumentation schreiben
next_url: how-to/write-documentation
---
Der Rubinius Blog benutzt Jekyll und ist in die Webseite sowie die
Dokumentationsseiten integriert. Wir unterstützen und schätzen Gasteinträge
über Erfahrungen, die beim Nutzen und Entwickeln von Rubinius gemacht wurden.
Für den Einstieg sollte sichergestellt sein, dass die `kramdown` and
`jekyll` Gems installiert sind.
rbx gem install jekyll kramdown
Das bevorzugte Format für Blogeinträge ist Markdown. Falls allerding spezielle
Formatierungsoptionen benötigt werden, kann der Eintrag auch direkt in HTML
verfasst werden.
1. Erstelle eine Datei in `web/_posts/` mit dem Format
`YYYY-MM-DD-perma-link.markdown` als Dateinamen
1. Schreibe den Eintrag
1. Im `web/` Verzeichnis, führe `rbx -S jekyll` aus
1. Erstelle einen Commiteintrag mit allen Veränderungen im `web/` Verzeichnis.
1. Reiche einen Patch ein oder falls du Commitrechte besitzt push den
Commiteintrag in den master Zweig.
1. Sag uns bescheid, wenn es einen neuen Blogeintrag gibt. Eventuell haben wir
ein paar Rückmeldungen bzgl. deines Eintrags bevor er veröffentlicht wird.
| {
"content_hash": "21e39a85a618afc639d501a8b47da1c5",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 78,
"avg_line_length": 42.2,
"alnum_prop": 0.80173775671406,
"repo_name": "slawosz/rubinius",
"id": "ae4491cdac871bf92465ab5f847750d553bd62c1",
"size": "1282",
"binary": false,
"copies": "9",
"ref": "refs/heads/master",
"path": "web/doc/de/how-to/write-a-blog-post.markdown",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "2541110"
},
{
"name": "C++",
"bytes": "4632208"
},
{
"name": "JavaScript",
"bytes": "144194"
},
{
"name": "Perl",
"bytes": "256305"
},
{
"name": "Python",
"bytes": "21905"
},
{
"name": "Ruby",
"bytes": "13573760"
},
{
"name": "Scheme",
"bytes": "557"
},
{
"name": "Shell",
"bytes": "64303"
},
{
"name": "VimL",
"bytes": "671"
}
],
"symlink_target": ""
} |
from __future__ import division, print_function, absolute_import
import sys
import numpy as np
from heapq import heappush, heappop
import scipy.sparse
__all__ = ['minkowski_distance_p', 'minkowski_distance',
'distance_matrix',
'Rectangle', 'KDTree']
def minkowski_distance_p(x, y, p=2):
"""
Compute the p-th power of the L**p distance between two arrays.
For efficiency, this function computes the L**p distance but does
not extract the pth root. If `p` is 1 or infinity, this is equal to
the actual L**p distance.
Parameters
----------
x : (M, K) array_like
Input array.
y : (N, K) array_like
Input array.
p : float, 1 <= p <= infinity
Which Minkowski p-norm to use.
Examples
--------
>>> from scipy.spatial import minkowski_distance_p
>>> minkowski_distance_p([[0,0],[0,0]], [[1,1],[0,1]])
array([2, 1])
"""
x = np.asarray(x)
y = np.asarray(y)
# Find smallest common datatype with float64 (return type of this function) - addresses #10262.
# Don't just cast to float64 for complex input case.
common_datatype = np.promote_types(np.promote_types(x.dtype, y.dtype), 'float64')
# Make sure x and y are numpy arrays of correct datatype.
x = x.astype(common_datatype)
y = y.astype(common_datatype)
if p == np.inf:
return np.amax(np.abs(y-x), axis=-1)
elif p == 1:
return np.sum(np.abs(y-x), axis=-1)
else:
return np.sum(np.abs(y-x)**p, axis=-1)
def minkowski_distance(x, y, p=2):
"""
Compute the L**p distance between two arrays.
Parameters
----------
x : (M, K) array_like
Input array.
y : (N, K) array_like
Input array.
p : float, 1 <= p <= infinity
Which Minkowski p-norm to use.
Examples
--------
>>> from scipy.spatial import minkowski_distance
>>> minkowski_distance([[0,0],[0,0]], [[1,1],[0,1]])
array([ 1.41421356, 1. ])
"""
x = np.asarray(x)
y = np.asarray(y)
if p == np.inf or p == 1:
return minkowski_distance_p(x, y, p)
else:
return minkowski_distance_p(x, y, p)**(1./p)
class Rectangle(object):
"""Hyperrectangle class.
Represents a Cartesian product of intervals.
"""
def __init__(self, maxes, mins):
"""Construct a hyperrectangle."""
self.maxes = np.maximum(maxes,mins).astype(float)
self.mins = np.minimum(maxes,mins).astype(float)
self.m, = self.maxes.shape
def __repr__(self):
return "<Rectangle %s>" % list(zip(self.mins, self.maxes))
def volume(self):
"""Total volume."""
return np.prod(self.maxes-self.mins)
def split(self, d, split):
"""
Produce two hyperrectangles by splitting.
In general, if you need to compute maximum and minimum
distances to the children, it can be done more efficiently
by updating the maximum and minimum distances to the parent.
Parameters
----------
d : int
Axis to split hyperrectangle along.
split : float
Position along axis `d` to split at.
"""
mid = np.copy(self.maxes)
mid[d] = split
less = Rectangle(self.mins, mid)
mid = np.copy(self.mins)
mid[d] = split
greater = Rectangle(mid, self.maxes)
return less, greater
def min_distance_point(self, x, p=2.):
"""
Return the minimum distance between input and points in the hyperrectangle.
Parameters
----------
x : array_like
Input.
p : float, optional
Input.
"""
return minkowski_distance(0, np.maximum(0,np.maximum(self.mins-x,x-self.maxes)),p)
def max_distance_point(self, x, p=2.):
"""
Return the maximum distance between input and points in the hyperrectangle.
Parameters
----------
x : array_like
Input array.
p : float, optional
Input.
"""
return minkowski_distance(0, np.maximum(self.maxes-x,x-self.mins),p)
def min_distance_rectangle(self, other, p=2.):
"""
Compute the minimum distance between points in the two hyperrectangles.
Parameters
----------
other : hyperrectangle
Input.
p : float
Input.
"""
return minkowski_distance(0, np.maximum(0,np.maximum(self.mins-other.maxes,other.mins-self.maxes)),p)
def max_distance_rectangle(self, other, p=2.):
"""
Compute the maximum distance between points in the two hyperrectangles.
Parameters
----------
other : hyperrectangle
Input.
p : float, optional
Input.
"""
return minkowski_distance(0, np.maximum(self.maxes-other.mins,other.maxes-self.mins),p)
class KDTree(object):
"""
kd-tree for quick nearest-neighbor lookup
This class provides an index into a set of k-dimensional points which
can be used to rapidly look up the nearest neighbors of any point.
Parameters
----------
data : (N,K) array_like
The data points to be indexed. This array is not copied, and
so modifying this data will result in bogus results.
leafsize : int, optional
The number of points at which the algorithm switches over to
brute-force. Has to be positive.
Raises
------
RuntimeError
The maximum recursion limit can be exceeded for large data
sets. If this happens, either increase the value for the `leafsize`
parameter or increase the recursion limit by::
>>> import sys
>>> sys.setrecursionlimit(10000)
See Also
--------
cKDTree : Implementation of `KDTree` in Cython
Notes
-----
The algorithm used is described in Maneewongvatana and Mount 1999.
The general idea is that the kd-tree is a binary tree, each of whose
nodes represents an axis-aligned hyperrectangle. Each node specifies
an axis and splits the set of points based on whether their coordinate
along that axis is greater than or less than a particular value.
During construction, the axis and splitting point are chosen by the
"sliding midpoint" rule, which ensures that the cells do not all
become long and thin.
The tree can be queried for the r closest neighbors of any given point
(optionally returning only those within some maximum distance of the
point). It can also be queried, with a substantial gain in efficiency,
for the r approximate closest neighbors.
For large dimensions (20 is already large) do not expect this to run
significantly faster than brute force. High-dimensional nearest-neighbor
queries are a substantial open problem in computer science.
The tree also supports all-neighbors queries, both with arrays of points
and with other kd-trees. These do use a reasonably efficient algorithm,
but the kd-tree is not necessarily the best data structure for this
sort of calculation.
"""
def __init__(self, data, leafsize=10):
self.data = np.asarray(data)
self.n, self.m = np.shape(self.data)
self.leafsize = int(leafsize)
if self.leafsize < 1:
raise ValueError("leafsize must be at least 1")
self.maxes = np.amax(self.data,axis=0)
self.mins = np.amin(self.data,axis=0)
self.tree = self.__build(np.arange(self.n), self.maxes, self.mins)
class node(object):
if sys.version_info[0] >= 3:
def __lt__(self, other):
return id(self) < id(other)
def __gt__(self, other):
return id(self) > id(other)
def __le__(self, other):
return id(self) <= id(other)
def __ge__(self, other):
return id(self) >= id(other)
def __eq__(self, other):
return id(self) == id(other)
class leafnode(node):
def __init__(self, idx):
self.idx = idx
self.children = len(idx)
class innernode(node):
def __init__(self, split_dim, split, less, greater):
self.split_dim = split_dim
self.split = split
self.less = less
self.greater = greater
self.children = less.children+greater.children
def __build(self, idx, maxes, mins):
if len(idx) <= self.leafsize:
return KDTree.leafnode(idx)
else:
data = self.data[idx]
# maxes = np.amax(data,axis=0)
# mins = np.amin(data,axis=0)
d = np.argmax(maxes-mins)
maxval = maxes[d]
minval = mins[d]
if maxval == minval:
# all points are identical; warn user?
return KDTree.leafnode(idx)
data = data[:,d]
# sliding midpoint rule; see Maneewongvatana and Mount 1999
# for arguments that this is a good idea.
split = (maxval+minval)/2
less_idx = np.nonzero(data <= split)[0]
greater_idx = np.nonzero(data > split)[0]
if len(less_idx) == 0:
split = np.amin(data)
less_idx = np.nonzero(data <= split)[0]
greater_idx = np.nonzero(data > split)[0]
if len(greater_idx) == 0:
split = np.amax(data)
less_idx = np.nonzero(data < split)[0]
greater_idx = np.nonzero(data >= split)[0]
if len(less_idx) == 0:
# _still_ zero? all must have the same value
if not np.all(data == data[0]):
raise ValueError("Troublesome data array: %s" % data)
split = data[0]
less_idx = np.arange(len(data)-1)
greater_idx = np.array([len(data)-1])
lessmaxes = np.copy(maxes)
lessmaxes[d] = split
greatermins = np.copy(mins)
greatermins[d] = split
return KDTree.innernode(d, split,
self.__build(idx[less_idx],lessmaxes,mins),
self.__build(idx[greater_idx],maxes,greatermins))
def __query(self, x, k=1, eps=0, p=2, distance_upper_bound=np.inf):
side_distances = np.maximum(0,np.maximum(x-self.maxes,self.mins-x))
if p != np.inf:
side_distances **= p
min_distance = np.sum(side_distances)
else:
min_distance = np.amax(side_distances)
# priority queue for chasing nodes
# entries are:
# minimum distance between the cell and the target
# distances between the nearest side of the cell and the target
# the head node of the cell
q = [(min_distance,
tuple(side_distances),
self.tree)]
# priority queue for the nearest neighbors
# furthest known neighbor first
# entries are (-distance**p, i)
neighbors = []
if eps == 0:
epsfac = 1
elif p == np.inf:
epsfac = 1/(1+eps)
else:
epsfac = 1/(1+eps)**p
if p != np.inf and distance_upper_bound != np.inf:
distance_upper_bound = distance_upper_bound**p
while q:
min_distance, side_distances, node = heappop(q)
if isinstance(node, KDTree.leafnode):
# brute-force
data = self.data[node.idx]
ds = minkowski_distance_p(data,x[np.newaxis,:],p)
for i in range(len(ds)):
if ds[i] < distance_upper_bound:
if len(neighbors) == k:
heappop(neighbors)
heappush(neighbors, (-ds[i], node.idx[i]))
if len(neighbors) == k:
distance_upper_bound = -neighbors[0][0]
else:
# we don't push cells that are too far onto the queue at all,
# but since the distance_upper_bound decreases, we might get
# here even if the cell's too far
if min_distance > distance_upper_bound*epsfac:
# since this is the nearest cell, we're done, bail out
break
# compute minimum distances to the children and push them on
if x[node.split_dim] < node.split:
near, far = node.less, node.greater
else:
near, far = node.greater, node.less
# near child is at the same distance as the current node
heappush(q,(min_distance, side_distances, near))
# far child is further by an amount depending only
# on the split value
sd = list(side_distances)
if p == np.inf:
min_distance = max(min_distance, abs(node.split-x[node.split_dim]))
elif p == 1:
sd[node.split_dim] = np.abs(node.split-x[node.split_dim])
min_distance = min_distance - side_distances[node.split_dim] + sd[node.split_dim]
else:
sd[node.split_dim] = np.abs(node.split-x[node.split_dim])**p
min_distance = min_distance - side_distances[node.split_dim] + sd[node.split_dim]
# far child might be too far, if so, don't bother pushing it
if min_distance <= distance_upper_bound*epsfac:
heappush(q,(min_distance, tuple(sd), far))
if p == np.inf:
return sorted([(-d,i) for (d,i) in neighbors])
else:
return sorted([((-d)**(1./p),i) for (d,i) in neighbors])
def query(self, x, k=1, eps=0, p=2, distance_upper_bound=np.inf):
"""
Query the kd-tree for nearest neighbors
Parameters
----------
x : array_like, last dimension self.m
An array of points to query.
k : int, optional
The number of nearest neighbors to return.
eps : nonnegative float, optional
Return approximate nearest neighbors; the kth returned value
is guaranteed to be no further than (1+eps) times the
distance to the real kth nearest neighbor.
p : float, 1<=p<=infinity, optional
Which Minkowski p-norm to use.
1 is the sum-of-absolute-values "Manhattan" distance
2 is the usual Euclidean distance
infinity is the maximum-coordinate-difference distance
distance_upper_bound : nonnegative float, optional
Return only neighbors within this distance. This is used to prune
tree searches, so if you are doing a series of nearest-neighbor
queries, it may help to supply the distance to the nearest neighbor
of the most recent point.
Returns
-------
d : float or array of floats
The distances to the nearest neighbors.
If x has shape tuple+(self.m,), then d has shape tuple if
k is one, or tuple+(k,) if k is larger than one. Missing
neighbors (e.g. when k > n or distance_upper_bound is
given) are indicated with infinite distances. If k is None,
then d is an object array of shape tuple, containing lists
of distances. In either case the hits are sorted by distance
(nearest first).
i : integer or array of integers
The locations of the neighbors in self.data. i is the same
shape as d.
Examples
--------
>>> from scipy import spatial
>>> x, y = np.mgrid[0:5, 2:8]
>>> tree = spatial.KDTree(list(zip(x.ravel(), y.ravel())))
>>> tree.data
array([[0, 2],
[0, 3],
[0, 4],
[0, 5],
[0, 6],
[0, 7],
[1, 2],
[1, 3],
[1, 4],
[1, 5],
[1, 6],
[1, 7],
[2, 2],
[2, 3],
[2, 4],
[2, 5],
[2, 6],
[2, 7],
[3, 2],
[3, 3],
[3, 4],
[3, 5],
[3, 6],
[3, 7],
[4, 2],
[4, 3],
[4, 4],
[4, 5],
[4, 6],
[4, 7]])
>>> pts = np.array([[0, 0], [2.1, 2.9]])
>>> tree.query(pts)
(array([ 2. , 0.14142136]), array([ 0, 13]))
>>> tree.query(pts[0])
(2.0, 0)
"""
x = np.asarray(x)
if np.shape(x)[-1] != self.m:
raise ValueError("x must consist of vectors of length %d but has shape %s" % (self.m, np.shape(x)))
if p < 1:
raise ValueError("Only p-norms with 1<=p<=infinity permitted")
retshape = np.shape(x)[:-1]
if retshape != ():
if k is None:
dd = np.empty(retshape,dtype=object)
ii = np.empty(retshape,dtype=object)
elif k > 1:
dd = np.empty(retshape+(k,),dtype=float)
dd.fill(np.inf)
ii = np.empty(retshape+(k,),dtype=int)
ii.fill(self.n)
elif k == 1:
dd = np.empty(retshape,dtype=float)
dd.fill(np.inf)
ii = np.empty(retshape,dtype=int)
ii.fill(self.n)
else:
raise ValueError("Requested %s nearest neighbors; acceptable numbers are integers greater than or equal to one, or None")
for c in np.ndindex(retshape):
hits = self.__query(x[c], k=k, eps=eps, p=p, distance_upper_bound=distance_upper_bound)
if k is None:
dd[c] = [d for (d,i) in hits]
ii[c] = [i for (d,i) in hits]
elif k > 1:
for j in range(len(hits)):
dd[c+(j,)], ii[c+(j,)] = hits[j]
elif k == 1:
if len(hits) > 0:
dd[c], ii[c] = hits[0]
else:
dd[c] = np.inf
ii[c] = self.n
return dd, ii
else:
hits = self.__query(x, k=k, eps=eps, p=p, distance_upper_bound=distance_upper_bound)
if k is None:
return [d for (d,i) in hits], [i for (d,i) in hits]
elif k == 1:
if len(hits) > 0:
return hits[0]
else:
return np.inf, self.n
elif k > 1:
dd = np.empty(k,dtype=float)
dd.fill(np.inf)
ii = np.empty(k,dtype=int)
ii.fill(self.n)
for j in range(len(hits)):
dd[j], ii[j] = hits[j]
return dd, ii
else:
raise ValueError("Requested %s nearest neighbors; acceptable numbers are integers greater than or equal to one, or None")
def __query_ball_point(self, x, r, p=2., eps=0):
R = Rectangle(self.maxes, self.mins)
def traverse_checking(node, rect):
if rect.min_distance_point(x, p) > r / (1. + eps):
return []
elif rect.max_distance_point(x, p) < r * (1. + eps):
return traverse_no_checking(node)
elif isinstance(node, KDTree.leafnode):
d = self.data[node.idx]
return node.idx[minkowski_distance(d, x, p) <= r].tolist()
else:
less, greater = rect.split(node.split_dim, node.split)
return traverse_checking(node.less, less) + \
traverse_checking(node.greater, greater)
def traverse_no_checking(node):
if isinstance(node, KDTree.leafnode):
return node.idx.tolist()
else:
return traverse_no_checking(node.less) + \
traverse_no_checking(node.greater)
return traverse_checking(self.tree, R)
def query_ball_point(self, x, r, p=2., eps=0):
"""Find all points within distance r of point(s) x.
Parameters
----------
x : array_like, shape tuple + (self.m,)
The point or points to search for neighbors of.
r : positive float
The radius of points to return.
p : float, optional
Which Minkowski p-norm to use. Should be in the range [1, inf].
eps : nonnegative float, optional
Approximate search. Branches of the tree are not explored if their
nearest points are further than ``r / (1 + eps)``, and branches are
added in bulk if their furthest points are nearer than
``r * (1 + eps)``.
Returns
-------
results : list or array of lists
If `x` is a single point, returns a list of the indices of the
neighbors of `x`. If `x` is an array of points, returns an object
array of shape tuple containing lists of neighbors.
Notes
-----
If you have many points whose neighbors you want to find, you may save
substantial amounts of time by putting them in a KDTree and using
query_ball_tree.
Examples
--------
>>> from scipy import spatial
>>> x, y = np.mgrid[0:5, 0:5]
>>> points = np.c_[x.ravel(), y.ravel()]
>>> tree = spatial.KDTree(points)
>>> tree.query_ball_point([2, 0], 1)
[5, 10, 11, 15]
Query multiple points and plot the results:
>>> import matplotlib.pyplot as plt
>>> points = np.asarray(points)
>>> plt.plot(points[:,0], points[:,1], '.')
>>> for results in tree.query_ball_point(([2, 0], [3, 3]), 1):
... nearby_points = points[results]
... plt.plot(nearby_points[:,0], nearby_points[:,1], 'o')
>>> plt.margins(0.1, 0.1)
>>> plt.show()
"""
x = np.asarray(x)
if x.shape[-1] != self.m:
raise ValueError("Searching for a %d-dimensional point in a "
"%d-dimensional KDTree" % (x.shape[-1], self.m))
if len(x.shape) == 1:
return self.__query_ball_point(x, r, p, eps)
else:
retshape = x.shape[:-1]
result = np.empty(retshape, dtype=object)
for c in np.ndindex(retshape):
result[c] = self.__query_ball_point(x[c], r, p=p, eps=eps)
return result
def query_ball_tree(self, other, r, p=2., eps=0):
"""Find all pairs of points whose distance is at most r
Parameters
----------
other : KDTree instance
The tree containing points to search against.
r : float
The maximum distance, has to be positive.
p : float, optional
Which Minkowski norm to use. `p` has to meet the condition
``1 <= p <= infinity``.
eps : float, optional
Approximate search. Branches of the tree are not explored
if their nearest points are further than ``r/(1+eps)``, and
branches are added in bulk if their furthest points are nearer
than ``r * (1+eps)``. `eps` has to be non-negative.
Returns
-------
results : list of lists
For each element ``self.data[i]`` of this tree, ``results[i]`` is a
list of the indices of its neighbors in ``other.data``.
"""
results = [[] for i in range(self.n)]
def traverse_checking(node1, rect1, node2, rect2):
if rect1.min_distance_rectangle(rect2, p) > r/(1.+eps):
return
elif rect1.max_distance_rectangle(rect2, p) < r*(1.+eps):
traverse_no_checking(node1, node2)
elif isinstance(node1, KDTree.leafnode):
if isinstance(node2, KDTree.leafnode):
d = other.data[node2.idx]
for i in node1.idx:
results[i] += node2.idx[minkowski_distance(d,self.data[i],p) <= r].tolist()
else:
less, greater = rect2.split(node2.split_dim, node2.split)
traverse_checking(node1,rect1,node2.less,less)
traverse_checking(node1,rect1,node2.greater,greater)
elif isinstance(node2, KDTree.leafnode):
less, greater = rect1.split(node1.split_dim, node1.split)
traverse_checking(node1.less,less,node2,rect2)
traverse_checking(node1.greater,greater,node2,rect2)
else:
less1, greater1 = rect1.split(node1.split_dim, node1.split)
less2, greater2 = rect2.split(node2.split_dim, node2.split)
traverse_checking(node1.less,less1,node2.less,less2)
traverse_checking(node1.less,less1,node2.greater,greater2)
traverse_checking(node1.greater,greater1,node2.less,less2)
traverse_checking(node1.greater,greater1,node2.greater,greater2)
def traverse_no_checking(node1, node2):
if isinstance(node1, KDTree.leafnode):
if isinstance(node2, KDTree.leafnode):
for i in node1.idx:
results[i] += node2.idx.tolist()
else:
traverse_no_checking(node1, node2.less)
traverse_no_checking(node1, node2.greater)
else:
traverse_no_checking(node1.less, node2)
traverse_no_checking(node1.greater, node2)
traverse_checking(self.tree, Rectangle(self.maxes, self.mins),
other.tree, Rectangle(other.maxes, other.mins))
return results
def query_pairs(self, r, p=2., eps=0):
"""
Find all pairs of points within a distance.
Parameters
----------
r : positive float
The maximum distance.
p : float, optional
Which Minkowski norm to use. `p` has to meet the condition
``1 <= p <= infinity``.
eps : float, optional
Approximate search. Branches of the tree are not explored
if their nearest points are further than ``r/(1+eps)``, and
branches are added in bulk if their furthest points are nearer
than ``r * (1+eps)``. `eps` has to be non-negative.
Returns
-------
results : set
Set of pairs ``(i,j)``, with ``i < j``, for which the corresponding
positions are close.
"""
results = set()
def traverse_checking(node1, rect1, node2, rect2):
if rect1.min_distance_rectangle(rect2, p) > r/(1.+eps):
return
elif rect1.max_distance_rectangle(rect2, p) < r*(1.+eps):
traverse_no_checking(node1, node2)
elif isinstance(node1, KDTree.leafnode):
if isinstance(node2, KDTree.leafnode):
# Special care to avoid duplicate pairs
if id(node1) == id(node2):
d = self.data[node2.idx]
for i in node1.idx:
for j in node2.idx[minkowski_distance(d,self.data[i],p) <= r]:
if i < j:
results.add((i,j))
else:
d = self.data[node2.idx]
for i in node1.idx:
for j in node2.idx[minkowski_distance(d,self.data[i],p) <= r]:
if i < j:
results.add((i,j))
elif j < i:
results.add((j,i))
else:
less, greater = rect2.split(node2.split_dim, node2.split)
traverse_checking(node1,rect1,node2.less,less)
traverse_checking(node1,rect1,node2.greater,greater)
elif isinstance(node2, KDTree.leafnode):
less, greater = rect1.split(node1.split_dim, node1.split)
traverse_checking(node1.less,less,node2,rect2)
traverse_checking(node1.greater,greater,node2,rect2)
else:
less1, greater1 = rect1.split(node1.split_dim, node1.split)
less2, greater2 = rect2.split(node2.split_dim, node2.split)
traverse_checking(node1.less,less1,node2.less,less2)
traverse_checking(node1.less,less1,node2.greater,greater2)
# Avoid traversing (node1.less, node2.greater) and
# (node1.greater, node2.less) (it's the same node pair twice
# over, which is the source of the complication in the
# original KDTree.query_pairs)
if id(node1) != id(node2):
traverse_checking(node1.greater,greater1,node2.less,less2)
traverse_checking(node1.greater,greater1,node2.greater,greater2)
def traverse_no_checking(node1, node2):
if isinstance(node1, KDTree.leafnode):
if isinstance(node2, KDTree.leafnode):
# Special care to avoid duplicate pairs
if id(node1) == id(node2):
for i in node1.idx:
for j in node2.idx:
if i < j:
results.add((i,j))
else:
for i in node1.idx:
for j in node2.idx:
if i < j:
results.add((i,j))
elif j < i:
results.add((j,i))
else:
traverse_no_checking(node1, node2.less)
traverse_no_checking(node1, node2.greater)
else:
# Avoid traversing (node1.less, node2.greater) and
# (node1.greater, node2.less) (it's the same node pair twice
# over, which is the source of the complication in the
# original KDTree.query_pairs)
if id(node1) == id(node2):
traverse_no_checking(node1.less, node2.less)
traverse_no_checking(node1.less, node2.greater)
traverse_no_checking(node1.greater, node2.greater)
else:
traverse_no_checking(node1.less, node2)
traverse_no_checking(node1.greater, node2)
traverse_checking(self.tree, Rectangle(self.maxes, self.mins),
self.tree, Rectangle(self.maxes, self.mins))
return results
def count_neighbors(self, other, r, p=2.):
"""
Count how many nearby pairs can be formed.
Count the number of pairs (x1,x2) can be formed, with x1 drawn
from self and x2 drawn from ``other``, and where
``distance(x1, x2, p) <= r``.
This is the "two-point correlation" described in Gray and Moore 2000,
"N-body problems in statistical learning", and the code here is based
on their algorithm.
Parameters
----------
other : KDTree instance
The other tree to draw points from.
r : float or one-dimensional array of floats
The radius to produce a count for. Multiple radii are searched with
a single tree traversal.
p : float, 1<=p<=infinity, optional
Which Minkowski p-norm to use
Returns
-------
result : int or 1-D array of ints
The number of pairs. Note that this is internally stored in a numpy
int, and so may overflow if very large (2e9).
"""
def traverse(node1, rect1, node2, rect2, idx):
min_r = rect1.min_distance_rectangle(rect2,p)
max_r = rect1.max_distance_rectangle(rect2,p)
c_greater = r[idx] > max_r
result[idx[c_greater]] += node1.children*node2.children
idx = idx[(min_r <= r[idx]) & (r[idx] <= max_r)]
if len(idx) == 0:
return
if isinstance(node1,KDTree.leafnode):
if isinstance(node2,KDTree.leafnode):
ds = minkowski_distance(self.data[node1.idx][:,np.newaxis,:],
other.data[node2.idx][np.newaxis,:,:],
p).ravel()
ds.sort()
result[idx] += np.searchsorted(ds,r[idx],side='right')
else:
less, greater = rect2.split(node2.split_dim, node2.split)
traverse(node1, rect1, node2.less, less, idx)
traverse(node1, rect1, node2.greater, greater, idx)
else:
if isinstance(node2,KDTree.leafnode):
less, greater = rect1.split(node1.split_dim, node1.split)
traverse(node1.less, less, node2, rect2, idx)
traverse(node1.greater, greater, node2, rect2, idx)
else:
less1, greater1 = rect1.split(node1.split_dim, node1.split)
less2, greater2 = rect2.split(node2.split_dim, node2.split)
traverse(node1.less,less1,node2.less,less2,idx)
traverse(node1.less,less1,node2.greater,greater2,idx)
traverse(node1.greater,greater1,node2.less,less2,idx)
traverse(node1.greater,greater1,node2.greater,greater2,idx)
R1 = Rectangle(self.maxes, self.mins)
R2 = Rectangle(other.maxes, other.mins)
if np.shape(r) == ():
r = np.array([r])
result = np.zeros(1,dtype=int)
traverse(self.tree, R1, other.tree, R2, np.arange(1))
return result[0]
elif len(np.shape(r)) == 1:
r = np.asarray(r)
n, = r.shape
result = np.zeros(n,dtype=int)
traverse(self.tree, R1, other.tree, R2, np.arange(n))
return result
else:
raise ValueError("r must be either a single value or a one-dimensional array of values")
def sparse_distance_matrix(self, other, max_distance, p=2.):
"""
Compute a sparse distance matrix
Computes a distance matrix between two KDTrees, leaving as zero
any distance greater than max_distance.
Parameters
----------
other : KDTree
max_distance : positive float
p : float, optional
Returns
-------
result : dok_matrix
Sparse matrix representing the results in "dictionary of keys" format.
"""
result = scipy.sparse.dok_matrix((self.n,other.n))
def traverse(node1, rect1, node2, rect2):
if rect1.min_distance_rectangle(rect2, p) > max_distance:
return
elif isinstance(node1, KDTree.leafnode):
if isinstance(node2, KDTree.leafnode):
for i in node1.idx:
for j in node2.idx:
d = minkowski_distance(self.data[i],other.data[j],p)
if d <= max_distance:
result[i,j] = d
else:
less, greater = rect2.split(node2.split_dim, node2.split)
traverse(node1,rect1,node2.less,less)
traverse(node1,rect1,node2.greater,greater)
elif isinstance(node2, KDTree.leafnode):
less, greater = rect1.split(node1.split_dim, node1.split)
traverse(node1.less,less,node2,rect2)
traverse(node1.greater,greater,node2,rect2)
else:
less1, greater1 = rect1.split(node1.split_dim, node1.split)
less2, greater2 = rect2.split(node2.split_dim, node2.split)
traverse(node1.less,less1,node2.less,less2)
traverse(node1.less,less1,node2.greater,greater2)
traverse(node1.greater,greater1,node2.less,less2)
traverse(node1.greater,greater1,node2.greater,greater2)
traverse(self.tree, Rectangle(self.maxes, self.mins),
other.tree, Rectangle(other.maxes, other.mins))
return result
def distance_matrix(x, y, p=2, threshold=1000000):
"""
Compute the distance matrix.
Returns the matrix of all pair-wise distances.
Parameters
----------
x : (M, K) array_like
Matrix of M vectors in K dimensions.
y : (N, K) array_like
Matrix of N vectors in K dimensions.
p : float, 1 <= p <= infinity
Which Minkowski p-norm to use.
threshold : positive int
If ``M * N * K`` > `threshold`, algorithm uses a Python loop instead
of large temporary arrays.
Returns
-------
result : (M, N) ndarray
Matrix containing the distance from every vector in `x` to every vector
in `y`.
Examples
--------
>>> from scipy.spatial import distance_matrix
>>> distance_matrix([[0,0],[0,1]], [[1,0],[1,1]])
array([[ 1. , 1.41421356],
[ 1.41421356, 1. ]])
"""
x = np.asarray(x)
m, k = x.shape
y = np.asarray(y)
n, kk = y.shape
if k != kk:
raise ValueError("x contains %d-dimensional vectors but y contains %d-dimensional vectors" % (k, kk))
if m*n*k <= threshold:
return minkowski_distance(x[:,np.newaxis,:],y[np.newaxis,:,:],p)
else:
result = np.empty((m,n),dtype=float) # FIXME: figure out the best dtype
if m < n:
for i in range(m):
result[i,:] = minkowski_distance(x[i],y,p)
else:
for j in range(n):
result[:,j] = minkowski_distance(x,y[j],p)
return result
| {
"content_hash": "97379c164c244fb6a2d145ef7432eeae",
"timestamp": "",
"source": "github",
"line_count": 994,
"max_line_length": 137,
"avg_line_length": 38.627766599597585,
"alnum_prop": 0.5262787790394833,
"repo_name": "jor-/scipy",
"id": "239438686bdc20778e9811db48cdb8ada57652b6",
"size": "38466",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "scipy/spatial/kdtree.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "4395724"
},
{
"name": "C++",
"bytes": "649714"
},
{
"name": "Dockerfile",
"bytes": "1236"
},
{
"name": "Fortran",
"bytes": "5367732"
},
{
"name": "MATLAB",
"bytes": "4346"
},
{
"name": "Makefile",
"bytes": "778"
},
{
"name": "Python",
"bytes": "12479679"
},
{
"name": "Shell",
"bytes": "538"
},
{
"name": "TeX",
"bytes": "52106"
}
],
"symlink_target": ""
} |
@interface UICollectionView (DraggableCardLayout)
@end
| {
"content_hash": "7017574c6b5a0aa4289e9add0b97b42b",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 49,
"avg_line_length": 18.666666666666668,
"alnum_prop": 0.8392857142857143,
"repo_name": "minhntran/MTCardLayout",
"id": "af8f86f5a5c3b5c16d52eebde4aab355b49f738a",
"size": "81",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MTCardLayout/UICollectionView+DraggableCardLayout.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "49064"
},
{
"name": "Ruby",
"bytes": "1066"
}
],
"symlink_target": ""
} |
package q.rorbin.fastimagesize;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} | {
"content_hash": "2f318001defec29a7b0bb1edffd9b0fb",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 23.529411764705884,
"alnum_prop": 0.6925,
"repo_name": "qstumn/FastImageSize",
"id": "8dad5f1c6c0f355f9a02fe4655c5fdd683da74ba",
"size": "400",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "fastimagesize/src/test/java/q/rorbin/fastimagesize/ExampleUnitTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "34016"
}
],
"symlink_target": ""
} |
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'libs'))
import logging
import datetime
import json
from functools import partial
from operator import itemgetter
from decimal import Decimal as D, InvalidOperation
from collections import defaultdict, namedtuple
import jinja2
import webapp2
from wtforms import Form, DecimalField, IntegerField, RadioField, DateField
from wtforms.validators import InputRequired, Optional
Installment = namedtuple('Installment', (
'year',
'month',
'original_balance',
'principal',
'interest',
'monthly_installment',
'current_balance',
)
)
tojson = partial(json.dumps, default=lambda obj: '{:.2f}'.format(obj) if isinstance(obj, D) else obj)
currency_format = lambda val: '{:,.2f}'.format(val) if isinstance(val, (float, D)) else val
TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates')
JINJA_ENV = jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATE_DIR),
extensions=['jinja2.ext.autoescape'], autoescape=True)
JINJA_ENV.filters['tojson'] = tojson
JINJA_ENV.filters['currency_format'] = currency_format
YEARS = 'Y'
MONTHS = 'M'
PERIOD_TYPE_CHOICES = [
(YEARS, 'Years'),
(MONTHS, 'Months'),
]
class ScheduleForm(Form):
amount = DecimalField('Loan Amount:',
[InputRequired()],
default=D(500000),
)
interest_rate = DecimalField('Interest Rate:',
[InputRequired()],
default=D('12.5'),
)
period = IntegerField('Loan Period:',
[InputRequired()],
default=5,
)
period_type = RadioField('Period Type',
[InputRequired()],
choices=PERIOD_TYPE_CHOICES,
default=YEARS,
)
start_date = DateField('Start Date:',
[Optional()],
default=datetime.date.today,
format='%d/%m/%Y',
)
def render_template(template_name, **ctx):
template = JINJA_ENV.get_template(template_name)
return template.render(ctx)
def next_month(year, month):
if month == 12:
nmonth = 1
nyear = year + 1
else:
nmonth = month + 1
nyear = year
return nyear, nmonth
def generate_schedule(amount, interest_rate, period, period_type='Y', start_date=None):
_loan_paid_indicator = D('0.00')
n = period
if period_type == 'Y':
n = period * 12
mir = (interest_rate / 100) / 12
discount_factor = (((1 + mir) ** n) - 1) / (mir * (1 + mir) ** n)
monthly_installment = amount / discount_factor
if start_date is None:
start_date = datetime.date.today()
installments = []
current_balance = original_balance = amount
year = start_date.year
month = start_date.month
while current_balance >= _loan_paid_indicator:
interest = current_balance * mir
principal = monthly_installment - interest
original_balance = current_balance
current_balance -= principal
month_name = datetime.date(year, month, 1).strftime('%B')
installment = Installment(year, month_name, original_balance, principal, interest, monthly_installment, current_balance)
installments.append(installment)
year, month = next_month(year, month)
return installments
class MainHandler(webapp2.RequestHandler):
def get(self):
loan = {}
schedule = []
total_interest = None
form = ScheduleForm(self.request.GET)
if self.request.GET and form.validate():
amount = form.amount.data
interest_rate = form.interest_rate.data
period = form.period.data
period_type = form.period_type.data
start_date = form.start_date.data or datetime.date.today()
loan = form.data.copy()
if not form.start_date.data:
loan['start_date'] = start_date
logging.info('Amount: {0:,.2f}\tInterest Rate: {1:,.2f}\tPeriod: '
'{2}\tPeriod Type: {3}\tStart Date: {4}'.format(amount,
interest_rate, period, period_type, start_date))
schedule = generate_schedule(amount, interest_rate, period, period_type, start_date)
total_interest = sum(map(itemgetter(4), schedule))
self.response.write(render_template('index.html',
form=form,
loan=loan,
schedule=schedule,
total_interest=total_interest,
)
)
app = webapp2.WSGIApplication([
('/', MainHandler),
], debug=True)
| {
"content_hash": "a2f378410302d9b2e43f2b5028e5dd11",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 128,
"avg_line_length": 30.11764705882353,
"alnum_prop": 0.6078559027777778,
"repo_name": "gledi/amortsched",
"id": "7a070016c5520bef3b08d1a392437f654be24012",
"size": "4630",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "main.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "19494"
},
{
"name": "HTML",
"bytes": "6432"
},
{
"name": "JavaScript",
"bytes": "32518"
},
{
"name": "Python",
"bytes": "184762"
}
],
"symlink_target": ""
} |
package blogger // import "google.golang.org/api/blogger/v2"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "blogger:v2"
const apiName = "blogger"
const apiVersion = "v2"
const basePath = "https://www.googleapis.com/blogger/v2/"
// OAuth2 scopes used by this API.
const (
// Manage your Blogger account
BloggerScope = "https://www.googleapis.com/auth/blogger"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Blogs = NewBlogsService(s)
s.Comments = NewCommentsService(s)
s.Pages = NewPagesService(s)
s.Posts = NewPostsService(s)
s.Users = NewUsersService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Blogs *BlogsService
Comments *CommentsService
Pages *PagesService
Posts *PostsService
Users *UsersService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewBlogsService(s *Service) *BlogsService {
rs := &BlogsService{s: s}
return rs
}
type BlogsService struct {
s *Service
}
func NewCommentsService(s *Service) *CommentsService {
rs := &CommentsService{s: s}
return rs
}
type CommentsService struct {
s *Service
}
func NewPagesService(s *Service) *PagesService {
rs := &PagesService{s: s}
return rs
}
type PagesService struct {
s *Service
}
func NewPostsService(s *Service) *PostsService {
rs := &PostsService{s: s}
return rs
}
type PostsService struct {
s *Service
}
func NewUsersService(s *Service) *UsersService {
rs := &UsersService{s: s}
rs.Blogs = NewUsersBlogsService(s)
return rs
}
type UsersService struct {
s *Service
Blogs *UsersBlogsService
}
func NewUsersBlogsService(s *Service) *UsersBlogsService {
rs := &UsersBlogsService{s: s}
return rs
}
type UsersBlogsService struct {
s *Service
}
type Blog struct {
// Description: The description of this blog. This is displayed
// underneath the title.
Description string `json:"description,omitempty"`
// Id: The identifier for this resource.
Id int64 `json:"id,omitempty,string"`
// Kind: The kind of this entry. Always blogger#blog
Kind string `json:"kind,omitempty"`
// Locale: The locale this Blog is set to.
Locale *BlogLocale `json:"locale,omitempty"`
// Name: The name of this blog. This is displayed as the title.
Name string `json:"name,omitempty"`
// Pages: The container of pages in this blog.
Pages *BlogPages `json:"pages,omitempty"`
// Posts: The container of posts in this blog.
Posts *BlogPosts `json:"posts,omitempty"`
// Published: RFC 3339 date-time when this blog was published.
Published string `json:"published,omitempty"`
// SelfLink: The API REST URL to fetch this resource from.
SelfLink string `json:"selfLink,omitempty"`
// Updated: RFC 3339 date-time when this blog was last updated.
Updated string `json:"updated,omitempty"`
// Url: The URL where this blog is published.
Url string `json:"url,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Blog) MarshalJSON() ([]byte, error) {
type NoMethod Blog
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BlogLocale: The locale this Blog is set to.
type BlogLocale struct {
// Country: The country this blog's locale is set to.
Country string `json:"country,omitempty"`
// Language: The language this blog is authored in.
Language string `json:"language,omitempty"`
// Variant: The language variant this blog is authored in.
Variant string `json:"variant,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BlogLocale) MarshalJSON() ([]byte, error) {
type NoMethod BlogLocale
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BlogPages: The container of pages in this blog.
type BlogPages struct {
// SelfLink: The URL of the container for pages in this blog.
SelfLink string `json:"selfLink,omitempty"`
// TotalItems: The count of pages in this blog.
TotalItems int64 `json:"totalItems,omitempty"`
// ForceSendFields is a list of field names (e.g. "SelfLink") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SelfLink") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BlogPages) MarshalJSON() ([]byte, error) {
type NoMethod BlogPages
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BlogPosts: The container of posts in this blog.
type BlogPosts struct {
// SelfLink: The URL of the container for posts in this blog.
SelfLink string `json:"selfLink,omitempty"`
// TotalItems: The count of posts in this blog.
TotalItems int64 `json:"totalItems,omitempty"`
// ForceSendFields is a list of field names (e.g. "SelfLink") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SelfLink") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BlogPosts) MarshalJSON() ([]byte, error) {
type NoMethod BlogPosts
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BlogList struct {
// Items: The list of Blogs this user has Authorship or Admin rights
// over.
Items []*Blog `json:"items,omitempty"`
// Kind: The kind of this entity. Always blogger#blogList
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BlogList) MarshalJSON() ([]byte, error) {
type NoMethod BlogList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Comment struct {
// Author: The author of this Comment.
Author *CommentAuthor `json:"author,omitempty"`
// Blog: Data about the blog containing this comment.
Blog *CommentBlog `json:"blog,omitempty"`
// Content: The actual content of the comment. May include HTML markup.
Content string `json:"content,omitempty"`
// Id: The identifier for this resource.
Id int64 `json:"id,omitempty,string"`
// InReplyTo: Data about the comment this is in reply to.
InReplyTo *CommentInReplyTo `json:"inReplyTo,omitempty"`
// Kind: The kind of this entry. Always blogger#comment
Kind string `json:"kind,omitempty"`
// Post: Data about the post containing this comment.
Post *CommentPost `json:"post,omitempty"`
// Published: RFC 3339 date-time when this comment was published.
Published string `json:"published,omitempty"`
// SelfLink: The API REST URL to fetch this resource from.
SelfLink string `json:"selfLink,omitempty"`
// Updated: RFC 3339 date-time when this comment was last updated.
Updated string `json:"updated,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Author") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Comment) MarshalJSON() ([]byte, error) {
type NoMethod Comment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CommentAuthor: The author of this Comment.
type CommentAuthor struct {
// DisplayName: The display name.
DisplayName string `json:"displayName,omitempty"`
// Id: The identifier of the Comment creator.
Id string `json:"id,omitempty"`
// Image: The comment creator's avatar.
Image *CommentAuthorImage `json:"image,omitempty"`
// Url: The URL of the Comment creator's Profile page.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommentAuthor) MarshalJSON() ([]byte, error) {
type NoMethod CommentAuthor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CommentAuthorImage: The comment creator's avatar.
type CommentAuthorImage struct {
// Url: The comment creator's avatar URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Url") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Url") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommentAuthorImage) MarshalJSON() ([]byte, error) {
type NoMethod CommentAuthorImage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CommentBlog: Data about the blog containing this comment.
type CommentBlog struct {
// Id: The identifier of the blog containing this comment.
Id int64 `json:"id,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommentBlog) MarshalJSON() ([]byte, error) {
type NoMethod CommentBlog
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CommentInReplyTo: Data about the comment this is in reply to.
type CommentInReplyTo struct {
// Id: The identified of the parent of this comment.
Id int64 `json:"id,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommentInReplyTo) MarshalJSON() ([]byte, error) {
type NoMethod CommentInReplyTo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CommentPost: Data about the post containing this comment.
type CommentPost struct {
// Id: The identifier of the post containing this comment.
Id int64 `json:"id,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommentPost) MarshalJSON() ([]byte, error) {
type NoMethod CommentPost
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CommentList struct {
// Items: The List of Comments for a Post.
Items []*Comment `json:"items,omitempty"`
// Kind: The kind of this entry. Always blogger#commentList
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to fetch the next page, if one
// exists.
NextPageToken string `json:"nextPageToken,omitempty"`
// PrevPageToken: Pagination token to fetch the previous page, if one
// exists.
PrevPageToken string `json:"prevPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommentList) MarshalJSON() ([]byte, error) {
type NoMethod CommentList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Page struct {
// Author: The author of this Page.
Author *PageAuthor `json:"author,omitempty"`
// Blog: Data about the blog containing this Page.
Blog *PageBlog `json:"blog,omitempty"`
// Content: The body content of this Page, in HTML.
Content string `json:"content,omitempty"`
// Id: The identifier for this resource.
Id int64 `json:"id,omitempty,string"`
// Kind: The kind of this entity. Always blogger#page
Kind string `json:"kind,omitempty"`
// Published: RFC 3339 date-time when this Page was published.
Published string `json:"published,omitempty"`
// SelfLink: The API REST URL to fetch this resource from.
SelfLink string `json:"selfLink,omitempty"`
// Title: The title of this entity. This is the name displayed in the
// Admin user interface.
Title string `json:"title,omitempty"`
// Updated: RFC 3339 date-time when this Page was last updated.
Updated string `json:"updated,omitempty"`
// Url: The URL that this Page is displayed at.
Url string `json:"url,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Author") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Page) MarshalJSON() ([]byte, error) {
type NoMethod Page
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PageAuthor: The author of this Page.
type PageAuthor struct {
// DisplayName: The display name.
DisplayName string `json:"displayName,omitempty"`
// Id: The identifier of the Page creator.
Id string `json:"id,omitempty"`
// Image: The page author's avatar.
Image *PageAuthorImage `json:"image,omitempty"`
// Url: The URL of the Page creator's Profile page.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PageAuthor) MarshalJSON() ([]byte, error) {
type NoMethod PageAuthor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PageAuthorImage: The page author's avatar.
type PageAuthorImage struct {
// Url: The page author's avatar URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Url") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Url") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PageAuthorImage) MarshalJSON() ([]byte, error) {
type NoMethod PageAuthorImage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PageBlog: Data about the blog containing this Page.
type PageBlog struct {
// Id: The identifier of the blog containing this page.
Id int64 `json:"id,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PageBlog) MarshalJSON() ([]byte, error) {
type NoMethod PageBlog
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type PageList struct {
// Items: The list of Pages for a Blog.
Items []*Page `json:"items,omitempty"`
// Kind: The kind of this entity. Always blogger#pageList
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PageList) MarshalJSON() ([]byte, error) {
type NoMethod PageList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Post struct {
// Author: The author of this Post.
Author *PostAuthor `json:"author,omitempty"`
// Blog: Data about the blog containing this Post.
Blog *PostBlog `json:"blog,omitempty"`
// Content: The content of the Post. May contain HTML markup.
Content string `json:"content,omitempty"`
// Id: The identifier of this Post.
Id int64 `json:"id,omitempty,string"`
// Kind: The kind of this entity. Always blogger#post
Kind string `json:"kind,omitempty"`
// Labels: The list of labels this Post was tagged with.
Labels []string `json:"labels,omitempty"`
// Published: RFC 3339 date-time when this Post was published.
Published string `json:"published,omitempty"`
// Replies: The container of comments on this Post.
Replies *PostReplies `json:"replies,omitempty"`
// SelfLink: The API REST URL to fetch this resource from.
SelfLink string `json:"selfLink,omitempty"`
// Title: The title of the Post.
Title string `json:"title,omitempty"`
// Updated: RFC 3339 date-time when this Post was last updated.
Updated string `json:"updated,omitempty"`
// Url: The URL where this Post is displayed.
Url string `json:"url,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Author") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Post) MarshalJSON() ([]byte, error) {
type NoMethod Post
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PostAuthor: The author of this Post.
type PostAuthor struct {
// DisplayName: The display name.
DisplayName string `json:"displayName,omitempty"`
// Id: The identifier of the Post creator.
Id string `json:"id,omitempty"`
// Image: The Post author's avatar.
Image *PostAuthorImage `json:"image,omitempty"`
// Url: The URL of the Post creator's Profile page.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PostAuthor) MarshalJSON() ([]byte, error) {
type NoMethod PostAuthor
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PostAuthorImage: The Post author's avatar.
type PostAuthorImage struct {
// Url: The Post author's avatar URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Url") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Url") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PostAuthorImage) MarshalJSON() ([]byte, error) {
type NoMethod PostAuthorImage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PostBlog: Data about the blog containing this Post.
type PostBlog struct {
// Id: The identifier of the Blog that contains this Post.
Id int64 `json:"id,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PostBlog) MarshalJSON() ([]byte, error) {
type NoMethod PostBlog
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PostReplies: The container of comments on this Post.
type PostReplies struct {
// SelfLink: The URL of the comments on this post.
SelfLink string `json:"selfLink,omitempty"`
// TotalItems: The count of comments on this post.
TotalItems int64 `json:"totalItems,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "SelfLink") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SelfLink") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PostReplies) MarshalJSON() ([]byte, error) {
type NoMethod PostReplies
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type PostList struct {
// Items: The list of Posts for this Blog.
Items []*Post `json:"items,omitempty"`
// Kind: The kind of this entity. Always blogger#postList
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to fetch the next page, if one
// exists.
NextPageToken string `json:"nextPageToken,omitempty"`
// PrevPageToken: Pagination token to fetch the previous page, if one
// exists.
PrevPageToken string `json:"prevPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Items") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Items") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PostList) MarshalJSON() ([]byte, error) {
type NoMethod PostList
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type User struct {
// About: Profile summary information.
About string `json:"about,omitempty"`
// Blogs: The container of blogs for this user.
Blogs *UserBlogs `json:"blogs,omitempty"`
// Created: The timestamp of when this profile was created, in seconds
// since epoch.
Created string `json:"created,omitempty"`
// DisplayName: The display name.
DisplayName string `json:"displayName,omitempty"`
// Id: The identifier for this User.
Id string `json:"id,omitempty"`
// Kind: The kind of this entity. Always blogger#user
Kind string `json:"kind,omitempty"`
// Locale: This user's locale
Locale *UserLocale `json:"locale,omitempty"`
// SelfLink: The API REST URL to fetch this resource from.
SelfLink string `json:"selfLink,omitempty"`
// Url: The user's profile page.
Url string `json:"url,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "About") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "About") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *User) MarshalJSON() ([]byte, error) {
type NoMethod User
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserBlogs: The container of blogs for this user.
type UserBlogs struct {
// SelfLink: The URL of the Blogs for this user.
SelfLink string `json:"selfLink,omitempty"`
// ForceSendFields is a list of field names (e.g. "SelfLink") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "SelfLink") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UserBlogs) MarshalJSON() ([]byte, error) {
type NoMethod UserBlogs
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserLocale: This user's locale
type UserLocale struct {
// Country: The user's country setting.
Country string `json:"country,omitempty"`
// Language: The user's language setting.
Language string `json:"language,omitempty"`
// Variant: The user's language variant setting.
Variant string `json:"variant,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UserLocale) MarshalJSON() ([]byte, error) {
type NoMethod UserLocale
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "blogger.blogs.get":
type BlogsGetCall struct {
s *Service
blogId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets one blog by id.
func (r *BlogsService) Get(blogId string) *BlogsGetCall {
c := &BlogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BlogsGetCall) Fields(s ...googleapi.Field) *BlogsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *BlogsGetCall) IfNoneMatch(entityTag string) *BlogsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *BlogsGetCall) Context(ctx context.Context) *BlogsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BlogsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BlogsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.blogs.get" call.
// Exactly one of *Blog or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Blog.ServerResponse.Header or (if a response was returned at all) in
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
// whether the returned error was because http.StatusNotModified was
// returned.
func (c *BlogsGetCall) Do(opts ...googleapi.CallOption) (*Blog, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Blog{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets one blog by id.",
// "httpMethod": "GET",
// "id": "blogger.blogs.get",
// "parameterOrder": [
// "blogId"
// ],
// "parameters": {
// "blogId": {
// "description": "The ID of the blog to get.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "blogs/{blogId}",
// "response": {
// "$ref": "Blog"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// method id "blogger.comments.get":
type CommentsGetCall struct {
s *Service
blogId string
postId string
commentId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets one comment by id.
func (r *CommentsService) Get(blogId string, postId string, commentId string) *CommentsGetCall {
c := &CommentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
c.postId = postId
c.commentId = commentId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *CommentsGetCall) Fields(s ...googleapi.Field) *CommentsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *CommentsGetCall) IfNoneMatch(entityTag string) *CommentsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *CommentsGetCall) Context(ctx context.Context) *CommentsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *CommentsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}/posts/{postId}/comments/{commentId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
"postId": c.postId,
"commentId": c.commentId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.comments.get" call.
// Exactly one of *Comment or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Comment.ServerResponse.Header or (if a response was returned at all)
// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
// check whether the returned error was because http.StatusNotModified
// was returned.
func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Comment{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets one comment by id.",
// "httpMethod": "GET",
// "id": "blogger.comments.get",
// "parameterOrder": [
// "blogId",
// "postId",
// "commentId"
// ],
// "parameters": {
// "blogId": {
// "description": "ID of the blog to containing the comment.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "commentId": {
// "description": "The ID of the comment to get.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "postId": {
// "description": "ID of the post to fetch posts from.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}",
// "response": {
// "$ref": "Comment"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// method id "blogger.comments.list":
type CommentsListCall struct {
s *Service
blogId string
postId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Retrieves the comments for a blog, possibly filtered.
func (r *CommentsService) List(blogId string, postId string) *CommentsListCall {
c := &CommentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
c.postId = postId
return c
}
// FetchBodies sets the optional parameter "fetchBodies": Whether the
// body content of the comments is included.
func (c *CommentsListCall) FetchBodies(fetchBodies bool) *CommentsListCall {
c.urlParams_.Set("fetchBodies", fmt.Sprint(fetchBodies))
return c
}
// MaxResults sets the optional parameter "maxResults": Maximum number
// of comments to include in the result.
func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken": Continuation token
// if request is paged.
func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// StartDate sets the optional parameter "startDate": Earliest date of
// comment to fetch, a date-time with RFC 3339 formatting.
func (c *CommentsListCall) StartDate(startDate string) *CommentsListCall {
c.urlParams_.Set("startDate", startDate)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *CommentsListCall) Fields(s ...googleapi.Field) *CommentsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *CommentsListCall) IfNoneMatch(entityTag string) *CommentsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *CommentsListCall) Context(ctx context.Context) *CommentsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *CommentsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}/posts/{postId}/comments")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
"postId": c.postId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.comments.list" call.
// Exactly one of *CommentList or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *CommentList.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentList, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &CommentList{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves the comments for a blog, possibly filtered.",
// "httpMethod": "GET",
// "id": "blogger.comments.list",
// "parameterOrder": [
// "blogId",
// "postId"
// ],
// "parameters": {
// "blogId": {
// "description": "ID of the blog to fetch comments from.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "fetchBodies": {
// "description": "Whether the body content of the comments is included.",
// "location": "query",
// "type": "boolean"
// },
// "maxResults": {
// "description": "Maximum number of comments to include in the result.",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "Continuation token if request is paged.",
// "location": "query",
// "type": "string"
// },
// "postId": {
// "description": "ID of the post to fetch posts from.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "startDate": {
// "description": "Earliest date of comment to fetch, a date-time with RFC 3339 formatting.",
// "format": "date-time",
// "location": "query",
// "type": "string"
// }
// },
// "path": "blogs/{blogId}/posts/{postId}/comments",
// "response": {
// "$ref": "CommentList"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentList) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "blogger.pages.get":
type PagesGetCall struct {
s *Service
blogId string
pageId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets one blog page by id.
func (r *PagesService) Get(blogId string, pageId string) *PagesGetCall {
c := &PagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
c.pageId = pageId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PagesGetCall) Fields(s ...googleapi.Field) *PagesGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *PagesGetCall) IfNoneMatch(entityTag string) *PagesGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *PagesGetCall) Context(ctx context.Context) *PagesGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PagesGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PagesGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}/pages/{pageId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
"pageId": c.pageId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.pages.get" call.
// Exactly one of *Page or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Page.ServerResponse.Header or (if a response was returned at all) in
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
// whether the returned error was because http.StatusNotModified was
// returned.
func (c *PagesGetCall) Do(opts ...googleapi.CallOption) (*Page, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Page{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets one blog page by id.",
// "httpMethod": "GET",
// "id": "blogger.pages.get",
// "parameterOrder": [
// "blogId",
// "pageId"
// ],
// "parameters": {
// "blogId": {
// "description": "ID of the blog containing the page.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageId": {
// "description": "The ID of the page to get.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "blogs/{blogId}/pages/{pageId}",
// "response": {
// "$ref": "Page"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// method id "blogger.pages.list":
type PagesListCall struct {
s *Service
blogId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Retrieves pages for a blog, possibly filtered.
func (r *PagesService) List(blogId string) *PagesListCall {
c := &PagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
return c
}
// FetchBodies sets the optional parameter "fetchBodies": Whether to
// retrieve the Page bodies.
func (c *PagesListCall) FetchBodies(fetchBodies bool) *PagesListCall {
c.urlParams_.Set("fetchBodies", fmt.Sprint(fetchBodies))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PagesListCall) Fields(s ...googleapi.Field) *PagesListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *PagesListCall) IfNoneMatch(entityTag string) *PagesListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *PagesListCall) Context(ctx context.Context) *PagesListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PagesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PagesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}/pages")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.pages.list" call.
// Exactly one of *PageList or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *PageList.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *PagesListCall) Do(opts ...googleapi.CallOption) (*PageList, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &PageList{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves pages for a blog, possibly filtered.",
// "httpMethod": "GET",
// "id": "blogger.pages.list",
// "parameterOrder": [
// "blogId"
// ],
// "parameters": {
// "blogId": {
// "description": "ID of the blog to fetch pages from.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "fetchBodies": {
// "description": "Whether to retrieve the Page bodies.",
// "location": "query",
// "type": "boolean"
// }
// },
// "path": "blogs/{blogId}/pages",
// "response": {
// "$ref": "PageList"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// method id "blogger.posts.get":
type PostsGetCall struct {
s *Service
blogId string
postId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Get a post by id.
func (r *PostsService) Get(blogId string, postId string) *PostsGetCall {
c := &PostsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
c.postId = postId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PostsGetCall) Fields(s ...googleapi.Field) *PostsGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *PostsGetCall) IfNoneMatch(entityTag string) *PostsGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *PostsGetCall) Context(ctx context.Context) *PostsGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PostsGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PostsGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}/posts/{postId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
"postId": c.postId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.posts.get" call.
// Exactly one of *Post or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Post.ServerResponse.Header or (if a response was returned at all) in
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
// whether the returned error was because http.StatusNotModified was
// returned.
func (c *PostsGetCall) Do(opts ...googleapi.CallOption) (*Post, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Post{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Get a post by id.",
// "httpMethod": "GET",
// "id": "blogger.posts.get",
// "parameterOrder": [
// "blogId",
// "postId"
// ],
// "parameters": {
// "blogId": {
// "description": "ID of the blog to fetch the post from.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "postId": {
// "description": "The ID of the post",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "blogs/{blogId}/posts/{postId}",
// "response": {
// "$ref": "Post"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// method id "blogger.posts.list":
type PostsListCall struct {
s *Service
blogId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Retrieves a list of posts, possibly filtered.
func (r *PostsService) List(blogId string) *PostsListCall {
c := &PostsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.blogId = blogId
return c
}
// FetchBodies sets the optional parameter "fetchBodies": Whether the
// body content of posts is included.
func (c *PostsListCall) FetchBodies(fetchBodies bool) *PostsListCall {
c.urlParams_.Set("fetchBodies", fmt.Sprint(fetchBodies))
return c
}
// MaxResults sets the optional parameter "maxResults": Maximum number
// of posts to fetch.
func (c *PostsListCall) MaxResults(maxResults int64) *PostsListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken": Continuation token
// if the request is paged.
func (c *PostsListCall) PageToken(pageToken string) *PostsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// StartDate sets the optional parameter "startDate": Earliest post date
// to fetch, a date-time with RFC 3339 formatting.
func (c *PostsListCall) StartDate(startDate string) *PostsListCall {
c.urlParams_.Set("startDate", startDate)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PostsListCall) Fields(s ...googleapi.Field) *PostsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *PostsListCall) IfNoneMatch(entityTag string) *PostsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *PostsListCall) Context(ctx context.Context) *PostsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PostsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PostsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "blogs/{blogId}/posts")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"blogId": c.blogId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.posts.list" call.
// Exactly one of *PostList or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *PostList.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *PostsListCall) Do(opts ...googleapi.CallOption) (*PostList, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &PostList{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves a list of posts, possibly filtered.",
// "httpMethod": "GET",
// "id": "blogger.posts.list",
// "parameterOrder": [
// "blogId"
// ],
// "parameters": {
// "blogId": {
// "description": "ID of the blog to fetch posts from.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "fetchBodies": {
// "description": "Whether the body content of posts is included.",
// "location": "query",
// "type": "boolean"
// },
// "maxResults": {
// "description": "Maximum number of posts to fetch.",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "Continuation token if the request is paged.",
// "location": "query",
// "type": "string"
// },
// "startDate": {
// "description": "Earliest post date to fetch, a date-time with RFC 3339 formatting.",
// "format": "date-time",
// "location": "query",
// "type": "string"
// }
// },
// "path": "blogs/{blogId}/posts",
// "response": {
// "$ref": "PostList"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *PostsListCall) Pages(ctx context.Context, f func(*PostList) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "blogger.users.get":
type UsersGetCall struct {
s *Service
userId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get: Gets one user by id.
func (r *UsersService) Get(userId string) *UsersGetCall {
c := &UsersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.userId = userId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *UsersGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *UsersGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "users/{userId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"userId": c.userId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.users.get" call.
// Exactly one of *User or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *User.ServerResponse.Header or (if a response was returned at all) in
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
// whether the returned error was because http.StatusNotModified was
// returned.
func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &User{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Gets one user by id.",
// "httpMethod": "GET",
// "id": "blogger.users.get",
// "parameterOrder": [
// "userId"
// ],
// "parameters": {
// "userId": {
// "description": "The ID of the user to get.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "users/{userId}",
// "response": {
// "$ref": "User"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
// method id "blogger.users.blogs.list":
type UsersBlogsListCall struct {
s *Service
userId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Retrieves a list of blogs, possibly filtered.
func (r *UsersBlogsService) List(userId string) *UsersBlogsListCall {
c := &UsersBlogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.userId = userId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *UsersBlogsListCall) Fields(s ...googleapi.Field) *UsersBlogsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *UsersBlogsListCall) IfNoneMatch(entityTag string) *UsersBlogsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *UsersBlogsListCall) Context(ctx context.Context) *UsersBlogsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *UsersBlogsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *UsersBlogsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "users/{userId}/blogs")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"userId": c.userId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "blogger.users.blogs.list" call.
// Exactly one of *BlogList or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *BlogList.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *UsersBlogsListCall) Do(opts ...googleapi.CallOption) (*BlogList, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BlogList{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves a list of blogs, possibly filtered.",
// "httpMethod": "GET",
// "id": "blogger.users.blogs.list",
// "parameterOrder": [
// "userId"
// ],
// "parameters": {
// "userId": {
// "description": "ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "users/{userId}/blogs",
// "response": {
// "$ref": "BlogList"
// },
// "scopes": [
// "https://www.googleapis.com/auth/blogger"
// ]
// }
}
| {
"content_hash": "642c97c82fb7378b2895c6c1f86f874a",
"timestamp": "",
"source": "github",
"line_count": 2584,
"max_line_length": 149,
"avg_line_length": 33.171826625387,
"alnum_prop": 0.6963460730785385,
"repo_name": "cloudfoundry-community/stackdriver-tools",
"id": "e5794fa769371caa185e33f5f021c994d3fd500d",
"size": "86180",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/stackdriver-spinner/vendor/google.golang.org/api/blogger/v2/blogger-gen.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "1165"
},
{
"name": "Go",
"bytes": "241405"
},
{
"name": "HCL",
"bytes": "488"
},
{
"name": "HTML",
"bytes": "13123"
},
{
"name": "Makefile",
"bytes": "4359"
},
{
"name": "Ruby",
"bytes": "7380"
},
{
"name": "Shell",
"bytes": "35782"
},
{
"name": "Smarty",
"bytes": "1523"
}
],
"symlink_target": ""
} |
package opts
import (
"testing"
"github.com/dcbw/go-dockerclient-dcbw/external/github.com/docker/docker/pkg/ulimit"
)
func TestUlimitOpt(t *testing.T) {
ulimitMap := map[string]*ulimit.Ulimit{
"nofile": {"nofile", 1024, 512},
}
ulimitOpt := NewUlimitOpt(&ulimitMap)
expected := "[nofile=512:1024]"
if ulimitOpt.String() != expected {
t.Fatalf("Expected %v, got %v", expected, ulimitOpt)
}
// Valid ulimit append to opts
if err := ulimitOpt.Set("core=1024:1024"); err != nil {
t.Fatal(err)
}
// Invalid ulimit type returns an error and do not append to opts
if err := ulimitOpt.Set("notavalidtype=1024:1024"); err == nil {
t.Fatalf("Expected error on invalid ulimit type")
}
expected = "[nofile=512:1024 core=1024:1024]"
expected2 := "[core=1024:1024 nofile=512:1024]"
result := ulimitOpt.String()
if result != expected && result != expected2 {
t.Fatalf("Expected %v or %v, got %v", expected, expected2, ulimitOpt)
}
// And test GetList
ulimits := ulimitOpt.GetList()
if len(ulimits) != 2 {
t.Fatalf("Expected a ulimit list of 2, got %v", ulimits)
}
}
| {
"content_hash": "61b2b7bc01cc3cb5f9e66a45b6104272",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 84,
"avg_line_length": 26.047619047619047,
"alnum_prop": 0.676416819012797,
"repo_name": "dcbw/go-dockerclient-dcbw",
"id": "8fdea310356706fe9277a23e63a5c174166b4932",
"size": "1094",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "external/github.com/docker/docker/opts/ulimit_test.go",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Go",
"bytes": "339350"
},
{
"name": "Makefile",
"bytes": "805"
}
],
"symlink_target": ""
} |
#pragma once
#include "CoreMinimal.h"
#include "VoxelQueuedWork.h"
class VOXEL_API FVoxelAsyncWork : public IVoxelQueuedWork
{
public:
FORCEINLINE FVoxelAsyncWork(FName Name, EVoxelTaskType TaskType, EPriority Priority, bool bAutoDelete = false)
: IVoxelQueuedWork(Name, TaskType, Priority)
, bAutodelete(bAutoDelete)
{
}
//~ Begin IVoxelQueuedWork Interface
virtual void DoThreadedWork() override final;
virtual void Abandon() override final;
//~ End IVoxelQueuedWork Interface
//~ Begin FVoxelAsyncWork Interface
virtual void DoWork() = 0;
virtual void PostDoWork() {} // Will be called when IsDone is true
//~ End FVoxelAsyncWork Interface
// @return: IsDone and PostDoWork was called
bool CancelAndAutodelete();
bool IsDone() const
{
return IsDoneCounter.GetValue() > 0;
}
bool WasAbandoned() const
{
return WasAbandonedCounter.GetValue() > 0;
}
protected:
// Important: do not allow public delete
~FVoxelAsyncWork() override;
bool IsCanceled() const
{
return CanceledCounter.GetValue() > 0;
}
void SetIsDone(bool bIsDone)
{
check(!bAutodelete);
IsDoneCounter.Set(bIsDone ? 1 : 0);
}
void WaitForDoThreadedWorkToExit();
private:
struct FSafeCriticalSection
{
FCriticalSection Section;
FThreadSafeCounter IsLocked;
FORCEINLINE void Lock()
{
Section.Lock();
ensure(IsLocked.Set(1) == 0);
}
FORCEINLINE void Unlock()
{
ensure(IsLocked.Set(0) == 1);
Section.Unlock();
}
};
FThreadSafeCounter IsDoneCounter;
FSafeCriticalSection DoneSection;
FThreadSafeCounter CanceledCounter;
bool bAutodelete = false;
FThreadSafeCounter WasAbandonedCounter;
};
template<typename T>
struct TVoxelAsyncWorkDelete
{
void operator()(T* Ptr) const
{
if (Ptr)
{
Ptr->WaitForDoThreadedWorkToExit();
}
delete Ptr;
}
};
template<typename T>
using TVoxelAsyncWorkPtr = TUniquePtr<T, TVoxelAsyncWorkDelete<T>>;
#define GENERATED_VOXEL_ASYNC_WORK_BODY(Type) \
protected: \
void __Dummy##Type(const Type&); \
~Type() = default; \
\
template<typename T> \
friend struct TVoxelAsyncWorkDelete; \
template<typename T, typename... TArgs>
TVoxelAsyncWorkPtr<T> MakeVoxelAsyncWork(TArgs&&... Args)
{
return TVoxelAsyncWorkPtr<T>(new T(Forward<TArgs>(Args)...));
}
class VOXEL_API FVoxelAsyncWorkWithWait : public FVoxelAsyncWork
{
public:
FVoxelAsyncWorkWithWait(FName Name, EVoxelTaskType TaskType, EPriority Priority, bool bAutoDelete = false);
//~ Begin IVoxelQueuedWork Interface
virtual void PostDoWork() override final;
//~ End IVoxelQueuedWork Interface
//~ Begin FVoxelAsyncWorkWithWait Interface
virtual void PostDoWorkBeforeTrigger() {};
//~ End FVoxelAsyncWorkWithWait Interface
void WaitForCompletion();
protected:
// Important: do not allow public delete
virtual ~FVoxelAsyncWorkWithWait() override;
private:
FEvent* DoneEvent;
}; | {
"content_hash": "dfa126fb3926e425efbbca581d1758f2",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 111,
"avg_line_length": 22.606060606060606,
"alnum_prop": 0.7084450402144772,
"repo_name": "Phyronnaz/MarchingCubes",
"id": "96a174c30ed0a2db5b706c2011873b0a825120cb",
"size": "3013",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Source/Voxel/Public/VoxelAsyncWork.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "120"
},
{
"name": "C#",
"bytes": "1506"
},
{
"name": "C++",
"bytes": "4425"
},
{
"name": "HLSL",
"bytes": "7990"
}
],
"symlink_target": ""
} |
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.dialogflow.v2.model;
/**
* Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Dialogflow API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudDialogflowV2ConversationEvent extends com.google.api.client.json.GenericJson {
/**
* The unique identifier of the conversation this notification refers to. Format:
* `projects//conversations/`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String conversation;
/**
* More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleRpcStatus errorStatus;
/**
* Payload of NEW_MESSAGE event.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudDialogflowV2Message newMessagePayload;
/**
* The type of the event that this notification refers to.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* The unique identifier of the conversation this notification refers to. Format:
* `projects//conversations/`.
* @return value or {@code null} for none
*/
public java.lang.String getConversation() {
return conversation;
}
/**
* The unique identifier of the conversation this notification refers to. Format:
* `projects//conversations/`.
* @param conversation conversation or {@code null} for none
*/
public GoogleCloudDialogflowV2ConversationEvent setConversation(java.lang.String conversation) {
this.conversation = conversation;
return this;
}
/**
* More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
* @return value or {@code null} for none
*/
public GoogleRpcStatus getErrorStatus() {
return errorStatus;
}
/**
* More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
* @param errorStatus errorStatus or {@code null} for none
*/
public GoogleCloudDialogflowV2ConversationEvent setErrorStatus(GoogleRpcStatus errorStatus) {
this.errorStatus = errorStatus;
return this;
}
/**
* Payload of NEW_MESSAGE event.
* @return value or {@code null} for none
*/
public GoogleCloudDialogflowV2Message getNewMessagePayload() {
return newMessagePayload;
}
/**
* Payload of NEW_MESSAGE event.
* @param newMessagePayload newMessagePayload or {@code null} for none
*/
public GoogleCloudDialogflowV2ConversationEvent setNewMessagePayload(GoogleCloudDialogflowV2Message newMessagePayload) {
this.newMessagePayload = newMessagePayload;
return this;
}
/**
* The type of the event that this notification refers to.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The type of the event that this notification refers to.
* @param type type or {@code null} for none
*/
public GoogleCloudDialogflowV2ConversationEvent setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public GoogleCloudDialogflowV2ConversationEvent set(String fieldName, Object value) {
return (GoogleCloudDialogflowV2ConversationEvent) super.set(fieldName, value);
}
@Override
public GoogleCloudDialogflowV2ConversationEvent clone() {
return (GoogleCloudDialogflowV2ConversationEvent) super.clone();
}
}
| {
"content_hash": "b4a8046cd577af713d62c7d6b62d3639",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 182,
"avg_line_length": 32.829787234042556,
"alnum_prop": 0.7269388636854612,
"repo_name": "googleapis/google-api-java-client-services",
"id": "059a3190653e97ff2a7ce1c537244a2efea748fc",
"size": "4629",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "clients/google-api-services-dialogflow/v2/2.0.0/com/google/api/services/dialogflow/v2/model/GoogleCloudDialogflowV2ConversationEvent.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package management.operations.ops.jmx;
import static management.util.HydraUtil.logInfo;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.management.AttributeList;
import javax.management.ObjectName;
import management.Expectations;
import management.jmx.Expectation;
import management.operations.ops.JMXOperations;
import management.util.HydraUtil;
import util.TestException;
import com.gemstone.gemfire.management.internal.MBeanJMXAdapter;
import com.gemstone.gemfire.management.internal.beans.ResourceNotification;
/**
*
* @author tushark
*/
@SuppressWarnings("serial")
public class GatewaySenderTestMBean extends AbstractTestMBean<GatewaySenderTestMBean> {
static {
prefix = "GatewaySenderTestMBean : ";
}
public GatewaySenderTestMBean(List<String> attrs, List<Object[]> ops, String ton, String[] tests) {
super(attrs, ops, GatewaySenderTestMBean.class, ton, tests);
}
@Override
public String getType() {
return gemfireDefinedMBeanTypes[GatewaySenderMBean];
}
public void checkSenderConfig(JMXOperations ops, ObjectName targetMbean){
String attributes[] = {
"RemoteDSId",
"SocketBufferSize",
"SocketReadTimeout",
"OverflowDiskStoreName",
"MaximumQueueMemory",
"BatchSize",
"BatchTimeInterval",
"BatchConflationEnabled",
"PersistenceEnabled",
"AlertThreshold",
"GatewayEventFilters",
"GatewayTransportFilters",
"ManualStart",
"OrderPolicy",
"DiskSynchronous",
"Parallel"
};
logInfo(prefix + " Calling checkSenderConfig");
String url = ops.selectManagingNode();
AttributeList attrList = (AttributeList) ops.getAttributes(url, targetMbean, attributes);
logInfo("checkSenderConfig " + HydraUtil.ObjectToString(attrList));
}
public void checkSenderRuntime(JMXOperations ops, ObjectName targetMbean){
String attributes[] = {
"Running",
"Paused",
"Primary",
"DispatcherThreads"
};
logInfo(prefix + " Calling checkSenderRuntime");
String url = ops.selectManagingNode();
AttributeList attrList = (AttributeList) ops.getAttributes(url, targetMbean, attributes);
logInfo("checkSenderRuntime " + HydraUtil.ObjectToString(attrList));
}
public void checkSenderStatistics(JMXOperations ops, ObjectName targetMbean){
String attributes[] = {
"EventsReceivedRate",
"EventsQueuedRate",
"EventQueueSize",
"TotalEventsConflated",
"AverageDistributionTimePerBatch",
"TotalBatchesRedistributed"
};
logInfo(prefix + " Calling checkSenderStatistics");
String url = ops.selectManagingNode();
AttributeList attrList = (AttributeList) ops.getAttributes(url, targetMbean, attributes);
logInfo("checkSenderStatistics " + HydraUtil.ObjectToString(attrList));
}
public void startStopSender(JMXOperations ops, ObjectName targetMbean) throws MalformedURLException, IOException{
logInfo(prefix + " Calling startStopSender on GW-Sender " + targetMbean);
String url = ops.selectManagingNode();
/*
callJmxOperation(url, ops, buildOperationArray("stop", null, null, null),targetMbean);
HydraUtil.sleepForReplicationJMX();
if(!ManagementUtil.checkIfMBeanExists(ManagementUtil.connectToUrl(url), targetMbean)){
throw new TestException("Stop operation failed to stop the gateway sender, mbean still exiists" +
" represented by mbean " + targetMbean);
}*/
boolean isRunning = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(isRunning){
InPlaceJMXNotifValidator validator = new InPlaceJMXNotifValidator("startStopSender-stop",targetMbean,url);
callJmxOperation(url, ops, buildOperationArray("stop", null, null, null),targetMbean);
validator.expectationList.add(Expectations.
forMBean(targetMbean).
expectMBeanAt(url).
expectNotification(
ResourceNotification.GATEWAY_SENDER_STOPPED,
getWanSenderMemberId(targetMbean),
ResourceNotification.GATEWAY_SENDER_STOPPED_PREFIX,
null,
Expectation.MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS));
HydraUtil.sleepForReplicationJMX();
boolean running = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(running)
throw new TestException("Stop operation failed to stop the gateway sender represented by mbean " + targetMbean);
validator.validateNotifications();
validator = new InPlaceJMXNotifValidator("startStopSender-start",targetMbean,url);
callJmxOperation(url, ops, buildOperationArray("start", null, null, null),targetMbean);
//addGWSenderStoppedNotificationExp();
HydraUtil.sleepForReplicationJMX();
/* It might be resume notif instead of start notif
validator.expectationList.add(Expectations.
forMBean(targetMbean).
expectMBeanAt(url).
expectNotification(
ResourceNotification.GATEWAY_SENDER_STARTED,
getWanSenderMemberId(targetMbean),
ResourceNotification.GATEWAY_SENDER_STARTED_PREFIX,
null,
Expectation.MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS));
validator.validateNotifications();
*/
boolean isStarted = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(!isStarted)
throw new TestException("Start operation failed to stop the gateway sender represented by mbean " + targetMbean);
}else{
callJmxOperation(url, ops, buildOperationArray("start", null, null, null),targetMbean);
HydraUtil.sleepForReplicationJMX();
boolean isStarted = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(!isStarted)
throw new TestException("Start operation failed to stop the gateway sender represented by mbean " + targetMbean);
/* It might be resume notif instead of start notif
validator.expectationList.add(Expectations.
forMBean(targetMbean).
expectMBeanAt(url).
expectNotification(
ResourceNotification.GATEWAY_SENDER_STARTED,
getWanSenderMemberId(targetMbean),
ResourceNotification.GATEWAY_SENDER_STARTED_PREFIX,
null,
Expectation.MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS));
validator.validateNotifications();
*/
//leave it running
}
logInfo(prefix + " startStopSender test completed successfully");
}
public void pauseResumeSender(JMXOperations ops, ObjectName targetMbean){
logInfo(prefix + " Calling pauseResumeSender on GW-Sender " + targetMbean);
String url = ops.selectManagingNode();
boolean isRunning = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(isRunning){
ObjectName dsObjectName = MBeanJMXAdapter.getDistributedSystemName();
InPlaceJMXNotifValidator validator = new InPlaceJMXNotifValidator("pauseResumeSender-pause",dsObjectName,url);
callJmxOperation(url, ops, buildOperationArray("pause", null, null, null),targetMbean);
HydraUtil.sleepForReplicationJMX();
validator.expectationList.add(Expectations.
forMBean(dsObjectName).
expectMBeanAt(url).
expectNotification(
ResourceNotification.GATEWAY_SENDER_PAUSED,
getWanSenderMemberId(targetMbean),
ResourceNotification.GATEWAY_SENDER_PAUSED_PREFIX,
null,
Expectation.MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS));
boolean isPaused = (Boolean) ops.getAttribute(url,targetMbean,"Paused");
if(!isPaused)
throw new TestException("Pause operation failed to pause the gateway sender represented by mbean " + targetMbean);
validator.validateNotifications();
validator = new InPlaceJMXNotifValidator("pauseResumeSender-resume",targetMbean,url);
callJmxOperation(url, ops, buildOperationArray("resume", null, null, null),targetMbean);
HydraUtil.sleepForReplicationJMX();
boolean isResumed = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(!isResumed)
throw new TestException("Resume operation failed to resume the gateway sender represented by mbean " + targetMbean);
/*
validator.expectationList.add(Expectations.
forMBean(targetMbean).
expectMBeanAt(url).
expectNotification(
ResourceNotification.GATEWAY_SENDER_RESUMED,
getWanSenderMemberId(targetMbean),
ResourceNotification.GATEWAY_SENDER_RESUMED_PREFIX,
null,
Expectation.MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS));
validator.validateNotifications();
*/
}else{
logInfo(prefix + " Calling GW-Sender is stopeed starting it : " + targetMbean);
callJmxOperation(url, ops, buildOperationArray("start", null, null, null),targetMbean);
HydraUtil.sleepForReplicationJMX();
logInfo(prefix + " Now Calling GW-Sender resume() : " + targetMbean);
callJmxOperation(url, ops, buildOperationArray("resume", null, null, null),targetMbean);
HydraUtil.sleepForReplicationJMX();
boolean isResumed = (Boolean) ops.getAttribute(url,targetMbean,"Running");
if(!isResumed)
throw new TestException("Start/Resume operation failed to resume the gateway sender represented by mbean " + targetMbean);
//leave it running
}
logInfo(prefix + " pauseResumeSender test completed successfully");
}
private static final Pattern memberPattern = Pattern.compile("GemFire:service=GatewaySender,gatewaySender=(.*),type=Member,member=(.*)");
private Object getWanSenderMemberId(ObjectName targetMbean) {
String name = targetMbean.toString();
Matcher match = memberPattern.matcher(name.toString());
String memberName = null;
if(match.find()){
memberName = match.group(2);
}
HydraUtil.logFine("WanSenderMember Id = " + memberName + " for ON" + name);
return memberName;
}
@Override
public void doValidation(JMXOperations ops) {
}
} | {
"content_hash": "8b742b5c001fa7d5070fcd3179ddc5c9",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 139,
"avg_line_length": 39.23134328358209,
"alnum_prop": 0.685657218946167,
"repo_name": "gemxd/gemfirexd-oss",
"id": "d2f7714f63f7c451ec89c3e240725ea8d2b19706",
"size": "11179",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "tests/core/src/main/java/management/operations/ops/jmx/GatewaySenderTestMBean.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AGS Script",
"bytes": "90653"
},
{
"name": "Assembly",
"bytes": "962433"
},
{
"name": "Batchfile",
"bytes": "30248"
},
{
"name": "C",
"bytes": "311620"
},
{
"name": "C#",
"bytes": "1352292"
},
{
"name": "C++",
"bytes": "2030283"
},
{
"name": "CSS",
"bytes": "54987"
},
{
"name": "Gnuplot",
"bytes": "3125"
},
{
"name": "HTML",
"bytes": "8609160"
},
{
"name": "Java",
"bytes": "118027963"
},
{
"name": "JavaScript",
"bytes": "33027"
},
{
"name": "Makefile",
"bytes": "18443"
},
{
"name": "Mathematica",
"bytes": "92588"
},
{
"name": "Objective-C",
"bytes": "1069"
},
{
"name": "PHP",
"bytes": "581417"
},
{
"name": "PLSQL",
"bytes": "86549"
},
{
"name": "PLpgSQL",
"bytes": "33847"
},
{
"name": "Pascal",
"bytes": "808"
},
{
"name": "Perl",
"bytes": "196843"
},
{
"name": "Python",
"bytes": "12796"
},
{
"name": "Ruby",
"bytes": "1380"
},
{
"name": "SQLPL",
"bytes": "219147"
},
{
"name": "Shell",
"bytes": "533575"
},
{
"name": "SourcePawn",
"bytes": "22351"
},
{
"name": "Thrift",
"bytes": "33033"
},
{
"name": "XSLT",
"bytes": "67112"
}
],
"symlink_target": ""
} |
package ebuero.aatasiei.tracker.api.model;
import com.google.common.collect.Lists;
import ebuero.aatasiei.tracker.model.entities.WeeklyPlan;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author aatasiei
* @version 1.0
* @since 26-iul.-2015
*/
public class WeeklyPlanResponse {
private final List<IssueResponse> stories;
public WeeklyPlanResponse(WeeklyPlan plan) {
this.stories = Lists.newArrayList();
this.stories.addAll(plan.getStories().stream().map(IssueResponse::new).collect(Collectors.toList()));
}
public List<IssueResponse> getStories() {
return stories;
}
}
| {
"content_hash": "ae430f38cfa917bec31dcfb47744a628",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 109,
"avg_line_length": 25.692307692307693,
"alnum_prop": 0.688622754491018,
"repo_name": "PinguinAG/issue_tracker",
"id": "b6117b5acbe74b42fa1b1010d808129f76d09e82",
"size": "668",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "backend/src/main/ebuero/aatasiei/tracker/api/model/WeeklyPlanResponse.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "8027"
},
{
"name": "Java",
"bytes": "92970"
}
],
"symlink_target": ""
} |
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FormatVariadic.h"
#include "mlir/IR/Attributes.h" // from @llvm-project
#include "mlir/IR/Operation.h" // from @llvm-project
#include "mlir/IR/Types.h" // from @llvm-project
#include "mlir/Support/LLVM.h" // from @llvm-project
#include "mlir/Support/LogicalResult.h" // from @llvm-project
#include "tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h"
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_device.h"
#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
namespace mlir {
namespace TFTPU {
namespace {
constexpr char kXlaOutsideCompilationAttr[] = "_xla_outside_compilation";
struct TPUOutsideCompilationCluster
: public TF::PerFunctionAggregateAnalysisConsumerPass<
TPUOutsideCompilationCluster, TF::SideEffectAnalysis> {
void runOnFunction(FuncOp func,
const TF::SideEffectAnalysis::Info& side_effect_analysis);
};
// Represents an outside compiled cluster. All ops that are added to the same
// cluster will be extracted together in a later pass.
class OutsideCompiledCluster {
public:
explicit OutsideCompiledCluster(int number)
: cluster_name_(llvm::formatv("cluster{0}", number).str()) {}
// Attempts to add an op to this cluster. Ops can be grouped to the same
// cluster if they have data dependency and are inside the same block.
bool AddOp(Operation* op,
const TF::SideEffectAnalysis::Info& side_effect_analysis) {
// Check if the op is safe to add before adding it.
if (IsSafeToAdd(op, side_effect_analysis)) {
op->setAttr(kXlaOutsideCompilationAttr,
StringAttr::get(cluster_name_, op->getContext()));
host_cluster_ops_.insert(op);
return true;
}
return false;
}
private:
// Checks if it is safe for an op to be merged into this cluster.
bool IsSafeToAdd(Operation* op,
const TF::SideEffectAnalysis::Info& side_effect_analysis) {
if (closed_) return false;
// If the op is not marked for outside compilation it doesn't belong in a
// cluster.
if (!op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) {
auto successors = side_effect_analysis.DirectControlSuccessors(op);
// If non outside compiled op with side effect successors is encountered,
// close this cluster to additions so that no cluster cyclic dependencies
// can be created.
if (!successors.empty()) {
closed_ = true;
}
return false;
}
if (host_cluster_ops_.empty()) return true;
// Checks to see if there is data dependency between ops in
// `host_cluster_ops_` and `op`.
const bool contains_data_dependency = llvm::any_of(
op->getUsers(),
[&](Operation* user) { return host_cluster_ops_.contains(user); });
const bool inside_same_block =
llvm::all_of(host_cluster_ops_, [&](Operation* op_in_cluster) {
return op_in_cluster->getBlock() == op->getBlock();
});
return inside_same_block && contains_data_dependency;
}
// `host_cluster_op_` stores a set of ops that will be grouped and computed
// on host as single XlaHostCompute op. An outside compiled op can be grouped
// to a single cluster if it has data dependency to another op already in the
// cluster.
llvm::SmallPtrSet<Operation*, 8> host_cluster_ops_;
std::string cluster_name_;
bool closed_ = false; // Cluster is closed to further additions.
};
void TPUOutsideCompilationCluster::runOnFunction(
FuncOp func, const TF::SideEffectAnalysis::Info& side_effect_analysis) {
llvm::SmallVector<OutsideCompiledCluster, 8> clusters;
int cluster_counter = 0;
func.walk([&](tf_device::ClusterOp tpu_cluster) {
llvm::SmallVector<Operation*, 4> tpu_cluster_ops;
tpu_cluster_ops.reserve(tpu_cluster.getBody()->getOperations().size());
tpu_cluster.walk([&](Operation* op) { tpu_cluster_ops.emplace_back(op); });
// In order to cluster ops feeding results to the same operation, traverse
// the ops in reverse order.
for (Operation* op : llvm::reverse(tpu_cluster_ops)) {
// Try to add the op to existing clusters.
bool added = false;
for (auto& cluster : clusters)
if ((added = cluster.AddOp(op, side_effect_analysis))) break;
// If the op cannot be added to existing clusters, create a new cluster.
if (!added) {
OutsideCompiledCluster new_cluster(cluster_counter++);
new_cluster.AddOp(op, side_effect_analysis);
clusters.push_back(new_cluster);
}
}
});
}
} // anonymous namespace
std::unique_ptr<OperationPass<ModuleOp>>
CreateTPUOutsideCompilationClusterPass() {
return std::make_unique<TPUOutsideCompilationCluster>();
}
static PassRegistration<TPUOutsideCompilationCluster> pass(
"tf-tpu-outside-compilation-cluster",
"Identifies clusters of operations assigned to outside compilation");
} // namespace TFTPU
} // namespace mlir
| {
"content_hash": "d23ff7e55d0af0fc481d933eb1be187f",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 79,
"avg_line_length": 37.49264705882353,
"alnum_prop": 0.6930770739360659,
"repo_name": "davidzchen/tensorflow",
"id": "900bdf6f519e81eedb63030fab307f3f7f9d15b6",
"size": "5767",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tensorflow/compiler/mlir/tensorflow/transforms/tpu_outside_compilation_cluster.cc",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "32240"
},
{
"name": "Batchfile",
"bytes": "55269"
},
{
"name": "C",
"bytes": "887514"
},
{
"name": "C#",
"bytes": "8562"
},
{
"name": "C++",
"bytes": "81865221"
},
{
"name": "CMake",
"bytes": "6500"
},
{
"name": "Dockerfile",
"bytes": "112853"
},
{
"name": "Go",
"bytes": "1867241"
},
{
"name": "HTML",
"bytes": "4686483"
},
{
"name": "Java",
"bytes": "971474"
},
{
"name": "Jupyter Notebook",
"bytes": "549437"
},
{
"name": "LLVM",
"bytes": "6536"
},
{
"name": "MLIR",
"bytes": "1921657"
},
{
"name": "Makefile",
"bytes": "65901"
},
{
"name": "Objective-C",
"bytes": "116558"
},
{
"name": "Objective-C++",
"bytes": "316967"
},
{
"name": "PHP",
"bytes": "4236"
},
{
"name": "Pascal",
"bytes": "318"
},
{
"name": "Pawn",
"bytes": "19963"
},
{
"name": "Perl",
"bytes": "7536"
},
{
"name": "Python",
"bytes": "37285698"
},
{
"name": "RobotFramework",
"bytes": "1779"
},
{
"name": "Roff",
"bytes": "2705"
},
{
"name": "Ruby",
"bytes": "7464"
},
{
"name": "SWIG",
"bytes": "8992"
},
{
"name": "Shell",
"bytes": "700629"
},
{
"name": "Smarty",
"bytes": "35540"
},
{
"name": "Starlark",
"bytes": "3604653"
},
{
"name": "Swift",
"bytes": "62814"
},
{
"name": "Vim Snippet",
"bytes": "58"
}
],
"symlink_target": ""
} |
package freemind.modes.mindmapmode.actions;
import java.util.Iterator;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import freemind.controller.actions.generated.instance.CompoundAction;
import freemind.controller.actions.generated.instance.RemoveAllIconsXmlAction;
import freemind.controller.actions.generated.instance.XmlAction;
import freemind.main.Tools;
import freemind.modes.IconInformation;
import freemind.modes.MindIcon;
import freemind.modes.MindMap;
import freemind.modes.MindMapNode;
import freemind.modes.mindmapmode.MindMapController;
import freemind.modes.mindmapmode.actions.xml.ActionPair;
/**
* @author foltin
*
*/
public class RemoveAllIconsAction extends NodeGeneralAction implements
NodeActorXml, IconInformation {
private final IconAction addIconAction;
/**
*/
public RemoveAllIconsAction(MindMapController modeController,
IconAction addIconAction) {
super(modeController, "remove_all_icons", "images/edittrash.png");
this.addIconAction = addIconAction;
addActor(this);
}
public ActionPair apply(MindMap model, MindMapNode selected) {
CompoundAction undoAction = new CompoundAction();
for (Iterator i = selected.getIcons().iterator(); i.hasNext();) {
MindIcon icon = (MindIcon) i.next();
undoAction.addChoice(addIconAction.createAddIconAction(selected,
icon, MindIcon.LAST));
}
return new ActionPair(createRemoveAllIconsXmlAction(selected),
undoAction);
}
public RemoveAllIconsXmlAction createRemoveAllIconsXmlAction(
MindMapNode node) {
RemoveAllIconsXmlAction action = new RemoveAllIconsXmlAction();
action.setNode(node.getObjectId(modeController));
return action;
}
public void act(XmlAction action) {
if (action instanceof RemoveAllIconsXmlAction) {
RemoveAllIconsXmlAction removeAction = (RemoveAllIconsXmlAction) action;
MindMapNode node = modeController.getNodeFromID(removeAction
.getNode());
while (node.getIcons().size() > 0) {
node.removeIcon(MindIcon.LAST);
}
modeController.nodeChanged(node);
}
}
public void removeAllIcons(MindMapNode node) {
modeController.doTransaction(
(String) getValue(NAME), apply(modeController.getMap(), node));
}
public Class getDoActionClass() {
return RemoveAllIconsXmlAction.class;
}
public String getDescription() {
return (String) getValue(Action.SHORT_DESCRIPTION);
}
public ImageIcon getIcon() {
return (ImageIcon) getValue(Action.SMALL_ICON);
}
public KeyStroke getKeyStroke() {
return Tools.getKeyStroke(getMindMapController().getFrame()
.getAdjustableProperty(getKeystrokeResourceName()));
}
public String getKeystrokeResourceName() {
return "keystroke_remove_all_icons";
}
}
| {
"content_hash": "2bc701730504bf857426478717d1e363",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 78,
"avg_line_length": 28.427083333333332,
"alnum_prop": 0.7757420300476365,
"repo_name": "jmflorezff/cs-6301",
"id": "a13602966d4dad490e5b2ec8429706c742021525",
"size": "3641",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "Assignment4/TestASTVisitor/SourceCode/freemind/RemoveAllIconsAction.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "41925"
},
{
"name": "Java",
"bytes": "35260"
},
{
"name": "PowerShell",
"bytes": "7474"
},
{
"name": "Python",
"bytes": "674155"
},
{
"name": "Visual Basic",
"bytes": "8265"
}
],
"symlink_target": ""
} |
Stellar aims for the stars. And the nearest star system to us is Alpha Centauri!
The next step to get there is a functional app for sending and receiving payments.
The app is built using AngularJS, Cordova and the Ionic Framework. We first focus on android, but as Ionic is a platform agnostic tool, feel free to try it on the platform you like.
## Features
* Display account balances
* Send by manually pasting an address
* Send by scanning a QR-code
* QR-code for receiving
* Display recent transactions
* Encrypted backups
## Get it from [Google Play](https://play.google.com/store/apps/details?id=de.xcoins.centaurus)
## Contribute
I am a complete newbee to HTML/JS, Ionic, so
* Use the app and report any bugs
* Just contribute new code
* Peer review and improve existing code
* Donate to our Stellar-Address `GDJXQYEWDPGYK4LGCLFEV6HBIW3M22IK6NN2WQONHP3ELH6HINIKBVY7`
## Levels of Contribution
There is a simple way for contribution as long as you don't develop on phone specific issues.
While the simple mode is a good way to get started, you will soon want to see this on your own device. Or check the layout on several emulated devices or whatever.
### Simple
* [Fork project](https://github.com/klopper/Centaurus) as usual.
* Open file './www/index.html' with your browser. What you see is close to what you have in the app.
* Modify the html views in './www/templates/' or the JS files in './www/js/'. Watch your changes immediatly by refreshing the page in the browser.
* You might also want to add some JS libs to './www/lib/'.
* See [www/Readme.md](https://github.com/klopper/Centaurus/blob/master/www/README.md)
### Advanced (Android)
* We recommend VisualStudio Community Edition (free) and [Tools for Apache Cordova](taco.visualstudio.com/) (a.k.a. Taco)
* Otherwise [Install Ionic](http://ionicframework.com/getting-started/). The [video tutorial for Windows users](http://learn.ionicframework.com/videos/windows-android/) is quite comprehensive
* [Fork project](https://github.com/klopper/Centaurus) as usual.
* make a copy of configTemplate.xml and name it config.xml
* Make sure your device is visible to your computer. You can check this by running ```adb devices```. More information coming soon.
* Navigate to your Centaurus root folder in the command line, use ionic to add android platform
* Build, deploy and run the app. Be Happy!
```bash
ionic platform android
ionic run android
```
Some problems might arise with the latest android platform version. Centaurus is best tested with version 3.7.1. You can get it by
```bash
cordova remove platform android
cordova add platform android@3.7.1
```
### Advanced (other platforms)
No experience yet, so let us know.
## Links
* [Ionic](http://ionicframework.com/)
* [Stellar](https://www.stellar.org/blog/introducing-stellar/)
* ...
| {
"content_hash": "5de86e0ef7cf9d7adc000888dd1c8bfd",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 193,
"avg_line_length": 44.125,
"alnum_prop": 0.7588526912181303,
"repo_name": "raymens/Centaurus",
"id": "4cf23ec6801a3c961153a66ec1160c67f0cf0fd9",
"size": "2878",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1063"
},
{
"name": "HTML",
"bytes": "14416"
},
{
"name": "JavaScript",
"bytes": "101053"
}
],
"symlink_target": ""
} |
..\PortableApps\SahanaFoundation.org\usr\local\php\php.exe build_vesuvius.php zip
pause | {
"content_hash": "e4d425c9969c85f88e45ca075c836beb",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 81,
"avg_line_length": 44,
"alnum_prop": 0.8181818181818182,
"repo_name": "ravihansa3000/vesuvius-portable-windows",
"id": "c4902fa1a35d8f4e0bef8bdebf5e61878c04feb4",
"size": "88",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "build/build_zip.bat",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "AutoHotkey",
"bytes": "7891"
},
{
"name": "C",
"bytes": "16581"
},
{
"name": "CSS",
"bytes": "190758"
},
{
"name": "JavaScript",
"bytes": "91079"
},
{
"name": "PHP",
"bytes": "8592788"
},
{
"name": "Perl",
"bytes": "9526"
},
{
"name": "Python",
"bytes": "15874"
},
{
"name": "Shell",
"bytes": "57972"
},
{
"name": "Visual Basic",
"bytes": "1136312"
}
],
"symlink_target": ""
} |
<?php namespace CertifiedWebNinja\Talia;
use Exception;
use Pimple\Container;
use Symfony\Component\HttpFoundation\Response;
use CertifiedWebNinja\Talia\Providers\TaliaServiceProvider;
class Application extends Container
{
/**
* Construct application and register Talia Service Provider
*/
public function __construct($environment = 'production', array $providers = array())
{
parent::__construct();
$this->setEnvironment($environment);
$this->registerProviders(array_merge($providers, [
new TaliaServiceProvider
]));
}
/**
* Set the environment for the app
*
* @param mixed $environment Closure or string
*/
public function setEnvironment($environment)
{
if (is_callable($environment)) $environment = $environment();
$this['talia.environment'] = $environment;
}
/**
* Return the application environment
*
* @return string environment
*/
public function getEnvironment()
{
return $this['talia.environment'];
}
/**
* Route all non-defined methods to routing
*
* @param string $method Method to call
* @param array $args Arguments to pass
* @return object
*/
public function __call($method, $args)
{
if (!method_exists($this['routes'], $method)) throw new Exception("Method {$method} does not exist");
return call_user_func_array([$this['routes'], $method], $args);
}
/**
* Bind a service to the container
*
* @param string $key Service name
* @param closure $callback Callable function returning object
* @param bool $override Override the service if already exists
* @return object
*/
public function bind($key, $callback, $override = false)
{
if (isset($this[$key]) && !$override) throw new Exception("Unable to bind {$key}");
$this[$key] = $callback;
return $this;
}
/**
* Resolve the service from the container
*
* @param string $key Name of service
* @return object
*/
public function make($key)
{
if (!isset($this[$key])) throw new Exception("{$key} does not exist");
return $this[$key];
}
/**
* Allow registering multiple providers via an array
*
* @param mixed $providers Provider or array of providers
* @return void
*/
public function registerProviders($providers)
{
if (is_array($providers))
{
foreach ($providers as $provider)
{
parent::register($provider);
}
}
else parent::register($providers);
}
/**
* Dispatch routing and send response
*
* @return Response
*/
public function run()
{
$response = $this['dispatcher']->dispatch($this['request']->getMethod(), $this['request']->getPathInfo());
if ($response instanceof Response) return $response->send();
else return $this['response']->create($response)->send();
}
}
| {
"content_hash": "34ff69996bb3931a23388157fb5dc7b7",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 114,
"avg_line_length": 27.785714285714285,
"alnum_prop": 0.5880462724935732,
"repo_name": "oojacoboo/talia",
"id": "cb5c76c4ab2be31b21695e66b2714538b7f8bfde",
"size": "3112",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "src/Application.php",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
#include "config.h"
#include "core/svg/SVGMaskElement.h"
#include "core/layout/svg/LayoutSVGResourceMasker.h"
namespace blink {
inline SVGMaskElement::SVGMaskElement(Document& document)
: SVGElement(SVGNames::maskTag, document)
, SVGTests(this)
, m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVGLengthMode::Width), AllowNegativeLengths))
, m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVGLengthMode::Height), AllowNegativeLengths))
, m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::create(SVGLengthMode::Width), ForbidNegativeLengths))
, m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::create(SVGLengthMode::Height), ForbidNegativeLengths))
, m_maskUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::maskUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX))
, m_maskContentUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(this, SVGNames::maskContentUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE))
{
// Spec: If the x/y attribute is not specified, the effect is as if a value of "-10%" were specified.
m_x->setDefaultValueAsString("-10%");
m_y->setDefaultValueAsString("-10%");
// Spec: If the width/height attribute is not specified, the effect is as if a value of "120%" were specified.
m_width->setDefaultValueAsString("120%");
m_height->setDefaultValueAsString("120%");
addToPropertyMap(m_x);
addToPropertyMap(m_y);
addToPropertyMap(m_width);
addToPropertyMap(m_height);
addToPropertyMap(m_maskUnits);
addToPropertyMap(m_maskContentUnits);
}
DEFINE_TRACE(SVGMaskElement)
{
visitor->trace(m_x);
visitor->trace(m_y);
visitor->trace(m_width);
visitor->trace(m_height);
visitor->trace(m_maskUnits);
visitor->trace(m_maskContentUnits);
SVGElement::trace(visitor);
SVGTests::trace(visitor);
}
DEFINE_NODE_FACTORY(SVGMaskElement)
bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
if (supportedAttributes.isEmpty()) {
SVGTests::addSupportedAttributes(supportedAttributes);
supportedAttributes.add(SVGNames::maskUnitsAttr);
supportedAttributes.add(SVGNames::maskContentUnitsAttr);
supportedAttributes.add(SVGNames::xAttr);
supportedAttributes.add(SVGNames::yAttr);
supportedAttributes.add(SVGNames::widthAttr);
supportedAttributes.add(SVGNames::heightAttr);
}
return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
}
bool SVGMaskElement::isPresentationAttribute(const QualifiedName& attrName) const
{
if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr
|| attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr)
return true;
return SVGElement::isPresentationAttribute(attrName);
}
bool SVGMaskElement::isPresentationAttributeWithSVGDOM(const QualifiedName& attrName) const
{
if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr
|| attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr)
return true;
return SVGElement::isPresentationAttributeWithSVGDOM(attrName);
}
void SVGMaskElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> property = propertyFromAttribute(name);
if (property == m_x)
addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyX, *m_x->currentValue());
else if (property == m_y)
addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyY, *m_y->currentValue());
else if (property == m_width)
addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyWidth, *m_width->currentValue());
else if (property == m_height)
addSVGLengthPropertyToPresentationAttributeStyle(style, CSSPropertyHeight, *m_height->currentValue());
else
SVGElement::collectStyleForPresentationAttribute(name, value, style);
}
void SVGMaskElement::svgAttributeChanged(const QualifiedName& attrName)
{
if (!isSupportedAttribute(attrName)) {
SVGElement::svgAttributeChanged(attrName);
return;
}
SVGElement::InvalidationGuard invalidationGuard(this);
if (attrName == SVGNames::xAttr
|| attrName == SVGNames::yAttr
|| attrName == SVGNames::widthAttr
|| attrName == SVGNames::heightAttr) {
invalidateSVGPresentationAttributeStyle();
setNeedsStyleRecalc(LocalStyleChange,
StyleChangeReasonForTracing::fromAttribute(attrName));
updateRelativeLengthsInformation();
}
LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->layoutObject());
if (renderer)
renderer->invalidateCacheAndMarkForLayout();
}
void SVGMaskElement::childrenChanged(const ChildrenChange& change)
{
SVGElement::childrenChanged(change);
if (change.byParser)
return;
if (LayoutObject* object = layoutObject())
object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::ChildChanged);
}
LayoutObject* SVGMaskElement::createLayoutObject(const ComputedStyle&)
{
return new LayoutSVGResourceMasker(this);
}
bool SVGMaskElement::selfHasRelativeLengths() const
{
return m_x->currentValue()->isRelative()
|| m_y->currentValue()->isRelative()
|| m_width->currentValue()->isRelative()
|| m_height->currentValue()->isRelative();
}
} // namespace blink
| {
"content_hash": "8f743bb30010ba810853aad45ffdb1c6",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 165,
"avg_line_length": 39.213793103448275,
"alnum_prop": 0.735138937741822,
"repo_name": "kurli/blink-crosswalk",
"id": "f634cfa5638983e7a666363eaec19262c55d7b6f",
"size": "6798",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Source/core/svg/SVGMaskElement.cpp",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "1835"
},
{
"name": "Assembly",
"bytes": "14768"
},
{
"name": "Batchfile",
"bytes": "35"
},
{
"name": "Bison",
"bytes": "64588"
},
{
"name": "C",
"bytes": "124323"
},
{
"name": "C++",
"bytes": "44371388"
},
{
"name": "CSS",
"bytes": "565212"
},
{
"name": "CoffeeScript",
"bytes": "163"
},
{
"name": "GLSL",
"bytes": "11578"
},
{
"name": "Groff",
"bytes": "28067"
},
{
"name": "HTML",
"bytes": "58015328"
},
{
"name": "Java",
"bytes": "109391"
},
{
"name": "JavaScript",
"bytes": "24469331"
},
{
"name": "Objective-C",
"bytes": "47687"
},
{
"name": "Objective-C++",
"bytes": "301733"
},
{
"name": "PHP",
"bytes": "184068"
},
{
"name": "Perl",
"bytes": "585293"
},
{
"name": "Python",
"bytes": "3817314"
},
{
"name": "Ruby",
"bytes": "141818"
},
{
"name": "Shell",
"bytes": "10037"
},
{
"name": "XSLT",
"bytes": "49926"
}
],
"symlink_target": ""
} |
"""
Some fancy helper functions.
"""
import os
import ctypes
from ctypes import POINTER
import operator
import numpy
from numpy import linalg
import logging;logger = logging.getLogger("pyassimp")
from .errors import AssimpError
additional_dirs, ext_whitelist = [],[]
# populate search directories and lists of allowed file extensions
# depending on the platform we're running on.
if os.name=='posix':
additional_dirs.append('/usr/lib/')
additional_dirs.append('/usr/local/lib/')
# note - this won't catch libassimp.so.N.n, but
# currently there's always a symlink called
# libassimp.so in /usr/local/lib.
ext_whitelist.append('.so')
elif os.name=='nt':
ext_whitelist.append('.dll')
path_dirs = os.environ['PATH'].split(';')
for dir_candidate in path_dirs:
if 'assimp' in dir_candidate.lower():
additional_dirs.append(dir_candidate)
#print(additional_dirs)
def vec2tuple(x):
""" Converts a VECTOR3D to a Tuple """
return (x.x, x.y, x.z)
def transform(vector3, matrix4x4):
""" Apply a transformation matrix on a 3D vector.
:param vector3: a numpy array with 3 elements
:param matrix4x4: a numpy 4x4 matrix
"""
return numpy.dot(matrix4x4, numpy.append(vector3, 1.))
def get_bounding_box(scene):
bb_min = [1e10, 1e10, 1e10] # x,y,z
bb_max = [-1e10, -1e10, -1e10] # x,y,z
return get_bounding_box_for_node(scene.rootnode, bb_min, bb_max, linalg.inv(scene.rootnode.transformation))
def get_bounding_box_for_node(node, bb_min, bb_max, transformation):
transformation = numpy.dot(transformation, node.transformation)
for mesh in node.meshes:
for v in mesh.vertices:
v = transform(v, transformation)
bb_min[0] = min(bb_min[0], v[0])
bb_min[1] = min(bb_min[1], v[1])
bb_min[2] = min(bb_min[2], v[2])
bb_max[0] = max(bb_max[0], v[0])
bb_max[1] = max(bb_max[1], v[1])
bb_max[2] = max(bb_max[2], v[2])
for child in node.children:
bb_min, bb_max = get_bounding_box_for_node(child, bb_min, bb_max, transformation)
return bb_min, bb_max
def try_load_functions(library,dll,candidates):
"""try to functbind to aiImportFile and aiReleaseImport
library - path to current lib
dll - ctypes handle to it
candidates - receives matching candidates
They serve as signal functions to detect assimp,
also they're currently the only functions we need.
insert (library,aiImportFile,aiReleaseImport,dll)
into 'candidates' if successful.
"""
try:
load = dll.aiImportFile
release = dll.aiReleaseImport
except AttributeError:
#OK, this is a library, but it has not the functions we need
pass
else:
#Library found!
from .structs import Scene
load.restype = POINTER(Scene)
candidates.append((library, load, release, dll))
def search_library():
"""Loads the assimp-Library.
result (load-function, release-function)
exception AssimpError if no library is found
"""
#this path
folder = os.path.dirname(__file__)
# silence 'DLL not found' message boxes on win
try:
ctypes.windll.kernel32.SetErrorMode(0x8007)
except AttributeError:
pass
candidates = []
# test every file
for curfolder in [folder]+additional_dirs:
for filename in os.listdir(curfolder):
# our minimum requirement for candidates is that
# they should contain 'assimp' somewhere in
# their name
if filename.lower().find('assimp')==-1 or\
os.path.splitext(filename)[-1].lower() not in ext_whitelist:
continue
library = os.path.join(curfolder, filename)
logger.debug('Try ' + library)
try:
dll = ctypes.cdll.LoadLibrary(library)
except Exception as e:
logger.warning(str(e))
# OK, this except is evil. But different OSs will throw different
# errors. So just ignore any errors.
continue
try_load_functions(library,dll,candidates)
if not candidates:
# no library found
raise AssimpError("assimp library not found")
else:
# get the newest library
candidates = map(lambda x: (os.lstat(x[0])[-2], x), candidates)
res = max(candidates, key=operator.itemgetter(0))[1]
logger.debug('Using assimp library located at ' + res[0])
# XXX: if there are 1000 dll/so files containing 'assimp'
# in their name, do we have all of them in our address
# space now until gc kicks in?
# XXX: take version postfix of the .so on linux?
return res[1:]
def hasattr_silent(object, name):
"""
Calls hasttr() with the given parameters and preserves the legacy (pre-Python 3.2)
functionality of silently catching exceptions.
Returns the result of hasatter() or False if an exception was raised.
"""
try:
return hasattr(object, name)
except:
return False
| {
"content_hash": "7d8f27a979955fe4688c2c08aa62b011",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 111,
"avg_line_length": 30.729411764705883,
"alnum_prop": 0.6196401225114855,
"repo_name": "ivansoban/ILEngine",
"id": "4e9f8ec69d909f115702da7ea86bebcf78a00cd6",
"size": "5248",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "thirdparty/assimp/port/PyAssimp/pyassimp/helper.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "516"
},
{
"name": "C++",
"bytes": "37989"
}
],
"symlink_target": ""
} |
/**
* IndexedList
* 类似联系人应用中的联系人列表,可以按首字母分组
* 右侧的字母定位工具条,可以快速定位列表位置
* varstion 1.0.0
* by Houfeng
* Houfeng@DCloud.io
**/
(function($, window, document) {
var classSelector = function(name) {
return '.' + $.className(name);
}
var IndexedList = $.IndexedList = $.Class.extend({
/**
* 通过 element 和 options 构造 IndexedList 实例
**/
init: function(holder, options) {
var self = this;
self.options = options || {};
self.box = holder;
if (!self.box) {
throw "实例 IndexedList 时需要指定 element";
}
self.createDom();
self.findElements();
self.caleLayout();
self.bindEvent();
},
createDom: function() {
var self = this;
self.el = self.el || {};
//styleForSearch 用于搜索,此方式能在数据较多时获取很好的性能
self.el.styleForSearch = document.createElement('style');
(document.head || document.body).appendChild(self.el.styleForSearch);
},
findElements: function() {
var self = this;
self.el = self.el || {};
self.el.search = self.box.querySelector(classSelector('indexed-list-search'));
self.el.searchInput = self.box.querySelector(classSelector('indexed-list-search-input'));
self.el.searchClear = self.box.querySelector(classSelector('indexed-list-search') + ' ' + classSelector('icon-clear'));
self.el.bar = self.box.querySelector(classSelector('indexed-list-bar'));
self.el.barItems = [].slice.call(self.box.querySelectorAll(classSelector('indexed-list-bar') + ' a'));
self.el.inner = self.box.querySelector(classSelector('indexed-list-inner'));
self.el.items = [].slice.call(self.box.querySelectorAll(classSelector('indexed-list-item')));
self.el.liArray = [].slice.call(self.box.querySelectorAll(classSelector('indexed-list-inner') + ' li'));
self.el.alert = self.box.querySelector(classSelector('indexed-list-alert'));
},
caleLayout: function() {
var self = this;
var withoutSearchHeight = (self.box.offsetHeight - self.el.search.offsetHeight) + 'px';
self.el.bar.style.height = withoutSearchHeight;
self.el.inner.style.height = withoutSearchHeight;
var barItemHeight = ((self.el.bar.offsetHeight - 40) / self.el.barItems.length) + 'px';
self.el.barItems.forEach(function(item) {
item.style.height = barItemHeight;
item.style.lineHeight = barItemHeight;
});
},
scrollTo: function(group) {
var self = this;
var groupElement = self.el.inner.querySelector('[data-group="' + group + '"]');
if (!groupElement || (self.hiddenGroups && self.hiddenGroups.indexOf(groupElement) > -1)) {
return;
}
self.el.inner.scrollTop = groupElement.offsetTop;
},
bindBarEvent: function() {
var self = this;
var pointElement = null;
var findStart = function(event) {
if (pointElement) {
pointElement.classList.remove('active');
pointElement = null;
}
self.el.bar.classList.add('active');
var point = event.changedTouches ? event.changedTouches[0] : event;
pointElement = document.elementFromPoint(point.pageX, point.pageY);
if (pointElement) {
var group = pointElement.innerText;
if (group && group.length == 1) {
pointElement.classList.add('active');
self.el.alert.innerText = group;
self.el.alert.classList.add('active');
self.scrollTo(group);
}
}
event.preventDefault();
};
var findEnd = function(event) {
self.el.alert.classList.remove('active');
self.el.bar.classList.remove('active');
if (pointElement) {
pointElement.classList.remove('active');
pointElement = null;
}
};
self.el.bar.addEventListener('touchmove', function(event) {
findStart(event);
}, false);
self.el.bar.addEventListener('touchstart', function(event) {
findStart(event);
}, false);
document.body.addEventListener('touchend', function(event) {
findEnd(event);
}, false);
document.body.addEventListener('touchcancel', function(event) {
findEnd(event);
}, false);
},
search: function(keyword) {
var self = this;
keyword = (keyword || '').toLowerCase();
var selectorBuffer = [];
var groupIndex = -1;
var itemCount = 0;
var liArray = self.el.liArray;
var itemTotal = liArray.length;
self.hiddenGroups = [];
var checkGroup = function(currentIndex, last) {
if (itemCount >= currentIndex - groupIndex - (last ? 0 : 1)) {
selectorBuffer.push(classSelector('indexed-list-inner li') + ':nth-child(' + (groupIndex + 1) + ')');
self.hiddenGroups.push(liArray[groupIndex]);
};
groupIndex = currentIndex;
itemCount = 0;
}
liArray.forEach(function(item) {
var currentIndex = liArray.indexOf(item);
if (item.classList.contains($.className('indexed-list-group'))) {
checkGroup(currentIndex, false);
} else {
var text = (item.innerText || '').toLowerCase();
var value = (item.getAttribute('data-value') || '').toLowerCase();
var tags = (item.getAttribute('data-tags') || '').toLowerCase();
if (keyword && text.indexOf(keyword) < 0 &&
value.indexOf(keyword) < 0 &&
tags.indexOf(keyword) < 0) {
selectorBuffer.push(classSelector('indexed-list-inner li') + ':nth-child(' + (currentIndex + 1) + ')');
itemCount++;
}
if (currentIndex >= itemTotal - 1) {
checkGroup(currentIndex, true);
}
}
});
if (selectorBuffer.length >= itemTotal) {
self.el.inner.classList.add('empty');
} else if (selectorBuffer.length > 0) {
self.el.inner.classList.remove('empty');
self.el.styleForSearch.innerText = selectorBuffer.join(', ') + "{display:none;}";
} else {
self.el.inner.classList.remove('empty');
self.el.styleForSearch.innerText = "";
}
},
bindSearchEvent: function() {
var self = this;
self.el.searchInput.addEventListener('input', function() {
var keyword = this.value;
self.search(keyword);
}, false);
$(self.el.search).on('tap', classSelector('icon-clear'), function() {
self.search('');
}, false);
},
bindEvent: function() {
var self = this;
self.bindBarEvent();
self.bindSearchEvent();
}
});
//mui(selector).indexedList 方式
$.fn.indexedList = function(options) {
//遍历选择的元素
this.each(function(i, element) {
if (element.indexedList) return;
element.indexedList = new IndexedList(element, options);
});
return this[0] ? this[0].indexedList : null;
};
})(mui, window, document); | {
"content_hash": "7398c0b3c50f0e3c251ba68994fe0cee",
"timestamp": "",
"source": "github",
"line_count": 187,
"max_line_length": 122,
"avg_line_length": 33.967914438502675,
"alnum_prop": 0.6520780856423174,
"repo_name": "phillyx/mui",
"id": "0e734903878649e8c71d22af6265faca5e38b923",
"size": "6530",
"binary": false,
"copies": "14",
"ref": "refs/heads/master",
"path": "examples/hello-mui/js/mui.indexedlist.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "218051"
},
{
"name": "JavaScript",
"bytes": "480032"
},
{
"name": "Ruby",
"bytes": "22928"
}
],
"symlink_target": ""
} |
var clone = require('safe-clone-deep');
var Tools = {};
Tools.serialize = clone;
| {
"content_hash": "c59b757d16458378a31e1d4f479b5880",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 43,
"avg_line_length": 17.4,
"alnum_prop": 0.632183908045977,
"repo_name": "glemarchand/photobooth",
"id": "2bd3d3ceff84c4765ba64030fa7cdc0ba9aa1246",
"size": "88",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "node_modules/pm2/lib/Interactor/Tools.js",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1174"
},
{
"name": "HTML",
"bytes": "904"
},
{
"name": "JavaScript",
"bytes": "11514"
}
],
"symlink_target": ""
} |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.qq.mid;
public final class R {
public static final class string {
public static final int app_name = 0x7f080034;
}
}
| {
"content_hash": "af6e21ed88d329627d76ca3546fa6965",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 54,
"avg_line_length": 25.384615384615383,
"alnum_prop": 0.693939393939394,
"repo_name": "lx0708/DailyPush",
"id": "a97edef1165d590e5e19b36078a82b3ffd0cbdcc",
"size": "330",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/build/generated/source/r/debug/com/qq/mid/R.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "2"
},
{
"name": "HTML",
"bytes": "4979"
},
{
"name": "Java",
"bytes": "3363250"
},
{
"name": "Kotlin",
"bytes": "19300"
}
],
"symlink_target": ""
} |
class FluidListDelegate : public QAbstractItemDelegate {
public:
FluidListDelegate(QObject *parent = 0);
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const;
virtual ~FluidListDelegate();
};
class QDialogNewPlot : public QDialog
{
Q_OBJECT
private:
const QScopedPointer<Ui::QDialogNewPlot> ui;
private:
static bool fluidDBStoreToQListWidget(const CoolGuiApp::FluidDBStore* store, QListWidget* lw);
public:
double dbl_tmp;
public:
explicit QDialogNewPlot(QWidget *parent = 0);
//~QDialogNewPlot();
bool initalize_internal_objects();
bool update_gui_from_internal_objects();
QString getTabLabel() const;
std::size_t getFluidHash() const;
CoolGuiApp::StateDataProviderBackends getBackend() const;
private slots:
void on_comboBoxPropertySource_currentTextChanged(const QString &text);
//void on_comboBoxPropertySource_currentIndexChanged(int opt);
//void on_doubleSpinBox_valueChanged(double arg1) {
//}
};
#endif
| {
"content_hash": "a6ea3983ed6d139043e3a51f63b35025",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 105,
"avg_line_length": 26.348837209302324,
"alnum_prop": 0.7378640776699029,
"repo_name": "IPUdk/CoolPlot",
"id": "46f9aa599726cc7c643e0042f7f34b81d91f3347",
"size": "1456",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "Sources/Ui/QDialogNewPlot.hpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "178157"
},
{
"name": "CMake",
"bytes": "51849"
},
{
"name": "Jupyter Notebook",
"bytes": "44300"
}
],
"symlink_target": ""
} |
test_description='object name disambiguation
Create blobs, trees, commits and a tag that all share the same
prefix, and make sure "git rev-parse" can take advantage of
type information to disambiguate short object names that are
not necessarily unique.
The final history used in the test has five commits, with the bottom
one tagged as v1.0.0. They all have one regular file each.
+-------------------------------------------+
| |
| .-------b3wettvi---- ad2uee |
| / / |
| a2onsxbvj---czy8f73t--ioiley5o |
| |
+-------------------------------------------+
'
. ./test-lib.sh
test_expect_success 'blob and tree' '
test_tick &&
(
for i in 0 1 2 3 4 5 6 7 8 9
do
echo $i
done
echo
echo b1rwzyc3
) >a0blgqsjc &&
# create one blob 0000000000b36
git add a0blgqsjc &&
# create one tree 0000000000cdc
git write-tree
'
test_expect_success 'warn ambiguity when no candidate matches type hint' '
test_must_fail git rev-parse --verify 000000000^{commit} 2>actual &&
grep "short SHA1 000000000 is ambiguous" actual
'
test_expect_success 'disambiguate tree-ish' '
# feed tree-ish in an unambiguous way
git rev-parse --verify 0000000000cdc:a0blgqsjc &&
# ambiguous at the object name level, but there is only one
# such tree-ish (the other is a blob)
git rev-parse --verify 000000000:a0blgqsjc
'
test_expect_success 'disambiguate blob' '
sed -e "s/|$//" >patch <<-EOF &&
diff --git a/frotz b/frotz
index 000000000..ffffff 100644
--- a/frotz
+++ b/frotz
@@ -10,3 +10,4 @@
9
|
b1rwzyc3
+irwry
EOF
(
GIT_INDEX_FILE=frotz &&
export GIT_INDEX_FILE &&
git apply --build-fake-ancestor frotz patch &&
git cat-file blob :frotz >actual
) &&
test_cmp a0blgqsjc actual
'
test_expect_success 'disambiguate tree' '
commit=$(echo "d7xm" | git commit-tree 000000000) &&
test $(git rev-parse $commit^{tree}) = $(git rev-parse 0000000000cdc)
'
test_expect_success 'first commit' '
# create one commit 0000000000e4f
git commit -m a2onsxbvj
'
test_expect_success 'disambiguate commit-ish' '
# feed commit-ish in an unambiguous way
git rev-parse --verify 0000000000e4f^{commit} &&
# ambiguous at the object name level, but there is only one
# such commit (the others are tree and blob)
git rev-parse --verify 000000000^{commit} &&
# likewise
git rev-parse --verify 000000000^0
'
test_expect_success 'disambiguate commit' '
commit=$(echo "hoaxj" | git commit-tree 0000000000cdc -p 000000000) &&
test $(git rev-parse $commit^) = $(git rev-parse 0000000000e4f)
'
test_expect_success 'log name1..name2 takes only commit-ishes on both ends' '
git log 000000000..000000000 &&
git log ..000000000 &&
git log 000000000.. &&
git log 000000000...000000000 &&
git log ...000000000 &&
git log 000000000...
'
test_expect_success 'rev-parse name1..name2 takes only commit-ishes on both ends' '
git rev-parse 000000000..000000000 &&
git rev-parse ..000000000 &&
git rev-parse 000000000..
'
test_expect_success 'git log takes only commit-ish' '
git log 000000000
'
test_expect_success 'git reset takes only commit-ish' '
git reset 000000000
'
test_expect_success 'first tag' '
# create one tag 0000000000f8f
git tag -a -m j7cp83um v1.0.0
'
test_expect_failure 'two semi-ambiguous commit-ish' '
# Once the parser becomes ultra-smart, it could notice that
# 110282 before ^{commit} name many different objects, but
# that only two (HEAD and v1.0.0 tag) can be peeled to commit,
# and that peeling them down to commit yield the same commit
# without ambiguity.
git rev-parse --verify 110282^{commit} &&
# likewise
git log 000000000..000000000 &&
git log ..000000000 &&
git log 000000000.. &&
git log 000000000...000000000 &&
git log ...000000000 &&
git log 000000000...
'
test_expect_failure 'three semi-ambiguous tree-ish' '
# Likewise for tree-ish. HEAD, v1.0.0 and HEAD^{tree} share
# the prefix but peeling them to tree yields the same thing
git rev-parse --verify 000000000^{tree}
'
test_expect_success 'parse describe name' '
# feed an unambiguous describe name
git rev-parse --verify v1.0.0-0-g0000000000e4f &&
# ambiguous at the object name level, but there is only one
# such commit (others are blob, tree and tag)
git rev-parse --verify v1.0.0-0-g000000000
'
test_expect_success 'more history' '
# commit 0000000000043
git mv a0blgqsjc d12cr3h8t &&
echo h62xsjeu >>d12cr3h8t &&
git add d12cr3h8t &&
test_tick &&
git commit -m czy8f73t &&
# commit 00000000008ec
git mv d12cr3h8t j000jmpzn &&
echo j08bekfvt >>j000jmpzn &&
git add j000jmpzn &&
test_tick &&
git commit -m ioiley5o &&
# commit 0000000005b0
git checkout v1.0.0^0 &&
git mv a0blgqsjc f5518nwu &&
for i in h62xsjeu j08bekfvt kg7xflhm
do
echo $i
done >>f5518nwu &&
git add f5518nwu &&
test_tick &&
git commit -m b3wettvi &&
side=$(git rev-parse HEAD) &&
# commit 000000000066
git checkout master &&
# If you use recursive, merge will fail and you will need to
# clean up a0blgqsjc as well. If you use resolve, merge will
# succeed.
test_might_fail git merge --no-commit -s recursive $side &&
git rm -f f5518nwu j000jmpzn &&
test_might_fail git rm -f a0blgqsjc &&
(
git cat-file blob $side:f5518nwu
echo j3l0i9s6
) >ab2gs879 &&
git add ab2gs879 &&
test_tick &&
git commit -m ad2uee
'
test_expect_failure 'parse describe name taking advantage of generation' '
# ambiguous at the object name level, but there is only one
# such commit at generation 0
git rev-parse --verify v1.0.0-0-g000000000 &&
# likewise for generation 2 and 4
git rev-parse --verify v1.0.0-2-g000000000 &&
git rev-parse --verify v1.0.0-4-g000000000
'
# Note: because rev-parse does not even try to disambiguate based on
# the generation number, this test currently succeeds for a wrong
# reason. When it learns to use the generation number, the previous
# test should succeed, and also this test should fail because the
# describe name used in the test with generation number can name two
# commits. Make sure that such a future enhancement does not randomly
# pick one.
test_expect_success 'parse describe name not ignoring ambiguity' '
# ambiguous at the object name level, and there are two such
# commits at generation 1
test_must_fail git rev-parse --verify v1.0.0-1-g000000000
'
test_expect_success 'ambiguous commit-ish' '
# Now there are many commits that begin with the
# common prefix, none of these should pick one at
# random. They all should result in ambiguity errors.
test_must_fail git rev-parse --verify 110282^{commit} &&
# likewise
test_must_fail git log 000000000..000000000 &&
test_must_fail git log ..000000000 &&
test_must_fail git log 000000000.. &&
test_must_fail git log 000000000...000000000 &&
test_must_fail git log ...000000000 &&
test_must_fail git log 000000000...
'
test_expect_success 'rev-parse --disambiguate' '
# The test creates 16 objects that share the prefix and two
# commits created by commit-tree in earlier tests share a
# different prefix.
git rev-parse --disambiguate=000000000 >actual &&
test $(wc -l <actual) = 16 &&
test "$(sed -e "s/^\(.........\).*/\1/" actual | sort -u)" = 000000000
'
test_done
| {
"content_hash": "55cd7d23262695085bbe10a364008967",
"timestamp": "",
"source": "github",
"line_count": 262,
"max_line_length": 83,
"avg_line_length": 27.900763358778626,
"alnum_prop": 0.6872777017783858,
"repo_name": "htanya/Symfo",
"id": "6b3d797ceabad069aefd1337ffe366b86b523412",
"size": "7321",
"binary": false,
"copies": "16",
"ref": "refs/heads/master",
"path": "app/config/git/t/t1512-rev-parse-disambiguation.sh",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "7443"
},
{
"name": "C",
"bytes": "4831803"
},
{
"name": "C++",
"bytes": "5436"
},
{
"name": "CSS",
"bytes": "82862"
},
{
"name": "Emacs Lisp",
"bytes": "86984"
},
{
"name": "Go",
"bytes": "15064"
},
{
"name": "JavaScript",
"bytes": "1153080"
},
{
"name": "Objective-C",
"bytes": "20071"
},
{
"name": "PHP",
"bytes": "141216"
},
{
"name": "Perl",
"bytes": "1078860"
},
{
"name": "Python",
"bytes": "297820"
},
{
"name": "Ruby",
"bytes": "76"
},
{
"name": "Shell",
"bytes": "3676687"
},
{
"name": "Tcl",
"bytes": "305432"
},
{
"name": "XSLT",
"bytes": "4439"
}
],
"symlink_target": ""
} |
module.exports = function(app) {
/*app.models.User.destroyAll();*/
/*app.models.Host.destroyAll();
app.models.Data.destroyAll();
app.models.ComplexStat.destroyAll();*/
app.models.ComplexStat.find(function(error, instances){
var n=instances.length;
if(n>0){
for(var i=0; i<n; ++i){
app.models.Host.createNewJob(instances[i]);
console.log("complexStat "+ instances[i].name +" recreated");
}
}
});
};
| {
"content_hash": "3d0f81e628f88c65a1e7ba3dbd158327",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 65,
"avg_line_length": 22.68421052631579,
"alnum_prop": 0.654292343387471,
"repo_name": "monitool/monitool-backend",
"id": "28f5a5235159641dc805bbab072546f472c542ca",
"size": "431",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "server/boot/complexStatInit.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "87225"
}
],
"symlink_target": ""
} |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>raw_socket_service::async_receive_from</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../raw_socket_service.html" title="raw_socket_service">
<link rel="prev" href="async_receive.html" title="raw_socket_service::async_receive">
<link rel="next" href="async_send.html" title="raw_socket_service::async_send">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="async_receive.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../raw_socket_service.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="async_send.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_asio.reference.raw_socket_service.async_receive_from"></a><a class="link" href="async_receive_from.html" title="raw_socket_service::async_receive_from">raw_socket_service::async_receive_from</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="idm45773604344480"></a>
Start an asynchronous receive that
will get the endpoint of the sender.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="../MutableBufferSequence.html" title="Mutable buffer sequence requirements">MutableBufferSequence</a><span class="special">,</span>
<span class="keyword">typename</span> <a class="link" href="../ReadHandler.html" title="Read handler requirements">ReadHandler</a><span class="special">></span>
<a class="link" href="../asynchronous_operations.html#boost_asio.reference.asynchronous_operations.return_type_of_an_initiating_function"><span class="emphasis"><em>void-or-deduced</em></span></a> <span class="identifier">async_receive_from</span><span class="special">(</span>
<span class="identifier">implementation_type</span> <span class="special">&</span> <span class="identifier">impl</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">MutableBufferSequence</span> <span class="special">&</span> <span class="identifier">buffers</span><span class="special">,</span>
<span class="identifier">endpoint_type</span> <span class="special">&</span> <span class="identifier">sender_endpoint</span><span class="special">,</span>
<span class="identifier">socket_base</span><span class="special">::</span><span class="identifier">message_flags</span> <span class="identifier">flags</span><span class="special">,</span>
<span class="identifier">ReadHandler</span> <span class="identifier">handler</span><span class="special">);</span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2015 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="async_receive.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../raw_socket_service.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="async_send.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
| {
"content_hash": "2ddbfac781fbada54837f1eaf5f5c589",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 439,
"avg_line_length": 80.57627118644068,
"alnum_prop": 0.6600757257046698,
"repo_name": "zjutjsj1004/third",
"id": "17b95f88eeaf69c316f0e0b369fad17c2691e330",
"size": "4754",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "boost/doc/html/boost_asio/reference/raw_socket_service/async_receive_from.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "224158"
},
{
"name": "Batchfile",
"bytes": "33175"
},
{
"name": "C",
"bytes": "5576593"
},
{
"name": "C#",
"bytes": "41850"
},
{
"name": "C++",
"bytes": "179595990"
},
{
"name": "CMake",
"bytes": "28348"
},
{
"name": "CSS",
"bytes": "331303"
},
{
"name": "Cuda",
"bytes": "26521"
},
{
"name": "FORTRAN",
"bytes": "1856"
},
{
"name": "Groff",
"bytes": "1305458"
},
{
"name": "HTML",
"bytes": "159660377"
},
{
"name": "IDL",
"bytes": "15"
},
{
"name": "JavaScript",
"bytes": "285786"
},
{
"name": "Lex",
"bytes": "1290"
},
{
"name": "Makefile",
"bytes": "1202020"
},
{
"name": "Max",
"bytes": "37424"
},
{
"name": "Objective-C",
"bytes": "3674"
},
{
"name": "Objective-C++",
"bytes": "651"
},
{
"name": "PHP",
"bytes": "60249"
},
{
"name": "Perl",
"bytes": "37297"
},
{
"name": "Perl6",
"bytes": "2130"
},
{
"name": "Python",
"bytes": "1833677"
},
{
"name": "QML",
"bytes": "613"
},
{
"name": "QMake",
"bytes": "17385"
},
{
"name": "Rebol",
"bytes": "372"
},
{
"name": "Shell",
"bytes": "1144162"
},
{
"name": "Tcl",
"bytes": "1205"
},
{
"name": "TeX",
"bytes": "38313"
},
{
"name": "XSLT",
"bytes": "564356"
},
{
"name": "Yacc",
"bytes": "20341"
}
],
"symlink_target": ""
} |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\TimeType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
class HojarutadetalleType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('cliente', EntityType::class, array(
'class' => 'AppBundle:Cliente',
'choice_label' => 'textocombo',
))
->add('hora', TimeType::class, array(
'input' => 'datetime',
'widget' => 'choice'))
->add('notas', TextareaType::class);
}
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'AppBundle\Entity\Hojarutadetalle'
));
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'appbundle_hojarutadetalle';
}
}
| {
"content_hash": "fe0d74b71f86da30e07d744cc4174bdd",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 76,
"avg_line_length": 27.22,
"alnum_prop": 0.5929463629684056,
"repo_name": "ezgatrabajo/sf_prueba1",
"id": "7475f0466bef943317fa074f5fa306cfd55c3d6c",
"size": "1361",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/AppBundle/Form/HojarutadetalleType.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "173258"
},
{
"name": "HTML",
"bytes": "349693"
},
{
"name": "JavaScript",
"bytes": "18736"
},
{
"name": "PHP",
"bytes": "370382"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Not Found Error</title>
<style>
html, body, h1 {
margin: 0;
padding: 0;
border:0;
box-sizing: border-box;
}
h1 {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<h1>Looks Like you have Stumbled upon something not here</h1>
</body>
</html> | {
"content_hash": "385157378f393bb08b1da680f04e470b",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 74,
"avg_line_length": 23.321428571428573,
"alnum_prop": 0.557427258805513,
"repo_name": "boseji/golang-appengine-examples",
"id": "b23dd818ce043f836ee72c0e8abc7ebf14fe826c",
"size": "653",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "06_error_routing_static/public/404.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "74"
},
{
"name": "CSS",
"bytes": "1419"
},
{
"name": "Dockerfile",
"bytes": "1353"
},
{
"name": "Go",
"bytes": "29070"
},
{
"name": "HTML",
"bytes": "2647"
},
{
"name": "Shell",
"bytes": "132"
}
],
"symlink_target": ""
} |
var Aria = require("ariatemplates/Aria");
require("ariatemplates/widgets/errorlist/ErrorListTemplate.tpl"); // just to be sure the template is loaded when the test is run, since it depends on its (DOM) content
module.exports = Aria.classDefinition({
$classpath : "test.aria.widgets.wai.errorlist.titleTag.ErrorListTitleTagJawsTestCase",
$extends : require("ariatemplates/jsunit/JawsTestCase"),
$constructor : function() {
this.$JawsTestCase.constructor.call(this);
this.setTestEnv({
template : "test.aria.widgets.wai.errorlist.titleTag.ErrorListTitleTagTpl"
});
},
$prototype : {
skipClearHistory: true,
runTemplateTest : function () {
this.waitFor({
condition: function () {
return this.getElementsByClassName(this.testDiv, "xICNstd").length == 4;
},
callback: this.afterErrorListDisplayed
});
},
afterErrorListDisplayed : function () {
var classNameCheck = this.getElementsByClassName(this.testDiv, "myErrorListH1ClassName");
this.assertEquals(classNameCheck.length, 1, "Unexpected number of tags with the myErrorListH1ClassName class: %1");
this.assertEquals(classNameCheck[0].tagName.toLowerCase(), "h1", "Unexpected element with the myErrorListH1ClassName class: %1");
this.assertTrue(classNameCheck[0].innerHTML.indexOf("MyErrorListTitleWithFirstHeadingLevel") > -1, "The element with the myErrorListH1ClassName class does not have the expected content.");
var tf = this.getElementById("tf");
this.execute([
["click", tf],
["waitFocus", tf],
["type",null,"[<insert>][F6][>insert<]"],
["waitForJawsToSay","Heading List dialog"],
["waitForJawsToSay","headings List view"],
["waitForJawsToSay","My Error List Title With First Heading Level colon 1"],
["waitForJawsToSay","1 of 3"],
["type",null,"[down]"],
["waitForJawsToSay","My Error List Title With Second Heading Level colon 2"],
["type",null,"[down]"],
["waitForJawsToSay","My Error List Title With Third Heading Level colon 3"],
["type",null,"[enter]"],
["waitForJawsToSay","Enter"],
["waitForJawsToSay","My Error List Title With Third Heading Level"],
["type",null,"[down]"],
["waitForJawsToSay","list of 1 items"],
["type",null,"[down]"],
["waitForJawsToSay","My Error 3 Description"],
["type",null,"[down]"],
["waitForJawsToSay","list end"],
["type",null,"[down]"],
["waitForJawsToSay","My Error List Title With No H Tag"]
], {
fn: this.end,
scope: this
});
}
}
});
| {
"content_hash": "80a336ac6e64edcba85d3b67339c1c4c",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 200,
"avg_line_length": 45.666666666666664,
"alnum_prop": 0.570670205706702,
"repo_name": "ariatemplates/ariatemplates",
"id": "3cd2e857c39bc62d66b9ab9da4f326a6e090c4a1",
"size": "3607",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "test/aria/widgets/wai/errorlist/titleTag/ErrorListTitleTagJawsTestCase.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "216088"
},
{
"name": "EJS",
"bytes": "893"
},
{
"name": "HTML",
"bytes": "18792"
},
{
"name": "JavaScript",
"bytes": "10553877"
},
{
"name": "Pug",
"bytes": "5387"
},
{
"name": "Shell",
"bytes": "2112"
},
{
"name": "Smarty",
"bytes": "1118499"
}
],
"symlink_target": ""
} |
<?php
// Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
// Defines the object for the Norwegian Nynorsk language.
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'Det var ikke mulig å utføre forespørselen. (Feil %1)',
'Errors' => array (
'10' => 'Ugyldig kommando.',
'11' => 'Ressurstypen ble ikke spesifisert i forepørselen.',
'12' => 'Ugyldig ressurstype.',
'102' => 'Ugyldig fil- eller mappenavn.',
'103' => 'Kunne ikke utføre forespørselen pga manglende autorisasjon.',
'104' => 'Kunne ikke utføre forespørselen pga manglende tilgang til filsystemet.',
'105' => 'Ugyldig filtype.',
'109' => 'Ugyldig forespørsel.',
'110' => 'Ukjent feil.',
'115' => 'Det finnes allerede en fil eller mappe med dette navnet.',
'116' => 'Kunne ikke finne mappen. Oppdater vinduet og prøv igjen.',
'117' => 'Kunne ikke finne filen. Oppdater vinduet og prøv igjen.',
'118' => 'Source and target paths are equal.',
'201' => 'Det fantes allerede en fil med dette navnet. Den opplastede filens navn har blitt endret til "%1".',
'202' => 'Ugyldig fil.',
'203' => 'Ugyldig fil. Filen er for stor.',
'204' => 'Den opplastede filen er korrupt.',
'205' => 'Det finnes ingen midlertidig mappe for filopplastinger.',
'206' => 'Opplastingen ble avbrutt av sikkerhetshensyn. Filen inneholder HTML-aktig data.',
'207' => 'Den opplastede filens navn har blitt endret til "%1".',
'300' => 'Moving file(s) failed.',
'301' => 'Copying file(s) failed.',
'500' => 'Filvelgeren ikke tilgjengelig av sikkerhetshensyn. Kontakt systemansvarlig og be han sjekke CKFinder\'s konfigurasjonsfil.',
'501' => 'Funksjon for minityrbilder er skrudd av.',
)
);
| {
"content_hash": "d4a907754a545a79415b352fd85a7c9b",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 136,
"avg_line_length": 51.31428571428572,
"alnum_prop": 0.6675946547884187,
"repo_name": "choufun/Lab-Petri-1.0",
"id": "1726c5aa7ad9b74a4715db1a7909c9b6eccde422",
"size": "1807",
"binary": false,
"copies": "32",
"ref": "refs/heads/master",
"path": "assets/js/ckfinder/core/connector/php/lang/no.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "30817"
},
{
"name": "ApacheConf",
"bytes": "1399"
},
{
"name": "CSS",
"bytes": "191647"
},
{
"name": "HTML",
"bytes": "321491"
},
{
"name": "JavaScript",
"bytes": "1039098"
},
{
"name": "Makefile",
"bytes": "133"
},
{
"name": "PHP",
"bytes": "2711658"
},
{
"name": "Ruby",
"bytes": "161"
},
{
"name": "Shell",
"bytes": "6893"
}
],
"symlink_target": ""
} |
cask "remnote" do
arch arm: "-arm64", intel: ""
version "1.8.35"
sha256 arm: "3f842b647d77556a152485419674623acc899cb1603a209411d728c770e8397f",
intel: "19dfc069688f4299dc6bf951ebbcac152079b6126121d5dbc1fd2a309d91b878"
url "https://download.remnote.io/RemNote-#{version}#{arch}.dmg",
verified: "remnote.io"
name "RemNote"
desc "Spaced-repetition powered note-taking tool"
homepage "https://www.remnote.com/"
livecheck do
url "https://s3.amazonaws.com/download.remnote.io/latest-mac.yml"
strategy :electron_builder
end
app "RemNote.app"
zap trash: [
"~/Library/Application Support/RemNote",
"~/Library/Preferences/io.remnote.plist",
"~/Library/Saved Application State/io.remnote.savedState",
]
end
| {
"content_hash": "1b7a247728dcebf62329da4f7b1ded69",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 83,
"avg_line_length": 29.346153846153847,
"alnum_prop": 0.7169069462647444,
"repo_name": "BenjaminHCCarr/homebrew-cask",
"id": "fd2e2aa66c2f0c29e86e8dc23f215f767ecbdd72",
"size": "763",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Casks/remnote.rb",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Python",
"bytes": "3630"
},
{
"name": "Ruby",
"bytes": "3062030"
},
{
"name": "Shell",
"bytes": "32035"
}
],
"symlink_target": ""
} |
<?php header("Content-type: text/javascript");?>
(function(a){a.fn.superfish=function(c){var b=a.fn.superfish,h=b.c,n=a(['<span class="',h.arrowClass,'"> »</span>'].join("")),i=function(){var d=a(this),e=j(d);clearTimeout(e.sfTimer);d.showSuperfishUl().siblings().hideSuperfishUl()},k=function(){var d=a(this),e=j(d),g=b.op;clearTimeout(e.sfTimer);e.sfTimer=setTimeout(function(){g.retainPath=a.inArray(d[0],g.$path)>-1;d.hideSuperfishUl();g.$path.length&&d.parents(["li.",g.hoverClass].join("")).length<1&&i.call(g.$path)},g.delay)},j=function(d){d=
d.parents(["ul.",h.menuClass,":first"].join(""))[0];b.op=b.o[d.serial];return d};return this.each(function(){var d=this.serial=b.o.length,e=a.extend({},b.defaults,c);e.$path=a("li."+e.pathClass,this).slice(0,e.pathLevels).each(function(){a(this).addClass([e.hoverClass,h.bcClass].join(" ")).filter("li:has(ul)").removeClass(e.pathClass)});b.o[d]=b.op=e;a("li:has(ul)",this)[a.fn.hoverIntent&&!e.disableHI?"hoverIntent":"hover"](i,k).each(function(){e.autoArrows&&a(">a:first-child",this).addClass(h.anchorClass).append(n.clone())}).not("."+
h.bcClass).hideSuperfishUl();var g=a("a",this);g.each(function(l){var m=g.eq(l).parents("li");g.eq(l).focus(function(){i.call(m)}).blur(function(){k.call(m)})});e.onInit.call(this)}).each(function(){menuClasses=[h.menuClass];b.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)&&menuClasses.push(h.shadowClass);a(this).addClass(menuClasses.join(" "))})};var f=a.fn.superfish;f.o=[];f.op={};f.IE7fix=function(){var c=f.op;a.browser.msie&&a.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined&&
this.toggleClass(f.c.shadowClass+"-off")};f.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};f.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var c=f.op,b=c.retainPath===
true?c.$path:"";c.retainPath=false;b=a(["li.",c.hoverClass].join(""),this).add(this).not(b).removeClass(c.hoverClass).find(">ul").hide().css("visibility","hidden");c.onHide.call(b);return this},showSuperfishUl:function(){var c=f.op,b=this.addClass(c.hoverClass).find(">ul:hidden").css("visibility","visible");f.IE7fix.call(b);c.onBeforeShow.call(b);b.animate(c.animation,c.speed,function(){f.IE7fix.call(b);c.onShow.call(b)});return this}})})(jQuery);
/*
itx theme functions
*/
(function($) {
$(document).ready(function(){
<?php if ( itx_get_option('misc','nohover') == false ):?>
$('a:not(.tabbed-a,#header a)').each(function(){
var on=$('#on').css('color');
var off=$(this).css('color');
$(this).hover(
function(){$(this).stop().css({'color':on})},
function(){$(this).stop().animate({'color':off},500)}
);
});
<?php endif;?>
<?php if (itx_get_option('front','type')=='fl'):?>
$('.linepost .left').samew();
<?php endif;?>
for(i=1;i<100;i++){$('.postwrap-'+i).sameh();}
if($('#menu ul.sf-menu').width()<1) $('#menu .wrap2').width($('.wrap').width()-50);
$('.wp-pagenavi, .wp-pagenavi a,#comments #submit').addClass('ui-state-active');
$('.wp-pagenavi .current').addClass('ui-state-hover');
$('.commentcount').hover(
function(){$(this).removeClass('ui-state-hover').addClass('ui-state-active')},
function(){$(this).addClass('ui-state-hover').removeClass('ui-state-active')}
);
$('.wp-pagenavi a,#comments #submit').hover(
function(){$(this).removeClass('ui-state-active').addClass('ui-state-hover')},
function(){$(this).addClass('ui-state-active').removeClass('ui-state-hover')}
);
$('ul.sf-menu').superfish({autoArrows:false});
});
})(jQuery);
jQuery.fn.sameh = function() {
var h=0;
jQuery(this).each(function(){
if(jQuery(this).height()>h){h=jQuery(this).height();}
});
jQuery(this).children('.postwrap').height(h-25);
};
jQuery.fn.samew = function() {
var w=0;
jQuery(this).each(function(){
if(jQuery(this).width()>w){w=jQuery(this).width();}
});
jQuery(this).width(w);
}; | {
"content_hash": "1bf6ada418c95c709384110894816549",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 540,
"avg_line_length": 70,
"alnum_prop": 0.6503512880562061,
"repo_name": "wangjingfei/now-code",
"id": "b5268d641a3ffa759907865a1a2179de4506df74",
"size": "4579",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "php/wp-content/themes/bombax/includes/js.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1453826"
},
{
"name": "JavaScript",
"bytes": "2290242"
},
{
"name": "PHP",
"bytes": "18424947"
},
{
"name": "XSLT",
"bytes": "3793"
}
],
"symlink_target": ""
} |
- Split configuration into two files | {
"content_hash": "55bdf8a9a4073ea34d65bf10302aa16d",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 36,
"avg_line_length": 36,
"alnum_prop": 0.8333333333333334,
"repo_name": "lwdgit/gitbook-plugin-search-plus",
"id": "f4b12058d5baab0bdacacee7345923412c04c04d",
"size": "36",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "examples/book/Creating-a-dev-and-production-config.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1199"
},
{
"name": "HTML",
"bytes": "857"
},
{
"name": "JavaScript",
"bytes": "8629"
}
],
"symlink_target": ""
} |
/*
* car.cc
* class Car.
*/
#include <iostream>
using namespace std;
class Car {
private:
string make;
string model;
int prodYear;
double price;
public:
Car() {}
Car( const string &m ) {
make = m;
}
Car( const string &m, const string &mod ) {
make = m;
model = mod;
}
Car( const string &m, const string &mod, const int &p ) {
make = m;
model = mod;
prodYear = p;
}
Car( const string &m, const string &mod, const int &p, const double &pr ) {
make = m;
model = mod;
prodYear = p;
price = pr;
}
void setMake( const string &m );
void setModel( const string &m );
void setYear( const int &p );
void setPrice( const double &p );
string getMake() const;
string getModel() const;
int getYear() const;
double getPrice() const;
void compare( const Car &another ) const;
void output() const;
};
void Car::setMake( const string &m ) {
make = m;
}
void Car::setModel( const string &m ) {
model = m;
}
void Car::setYear( const int &y ) {
prodYear = y;
}
void Car::setPrice( const double &p ) {
price = p;
}
string Car::getMake() const {
return make;
}
string Car::getModel() const {
return model;
}
int Car::getYear() const {
return prodYear;
}
double Car::getPrice() const {
return price;
}
void Car::compare( const Car &another ) const {
if ( prodYear < another.prodYear ) {
cout << make << " is earlier than " << another.make << endl;
} else {
cout << make << " is later than " << another.make << endl;
}
if ( price > another.price ) {
cout << make << " is more expensive than " << another.make << endl;
} else {
cout << make << " is cheaper than " << another.make << endl;
}
cout << endl;
}
void Car::output() const {
cout << "Make: " << make << endl;
cout << "Model: " << model << endl;
cout << "Production Year: " << prodYear << endl;
cout << "Price: " << price << endl;
cout << "***************************************" << endl;
}
int main() {
Car one;
Car two( "Font" );
Car three( "Volvo", "Civic" );
Car four( "Toyota", "Home", 1999 );
Car five( "Bench", "Business", 2008, 345678912.23 );
one.setMake( "Fond" );
one.setModel( "Civic" );
one.setYear( 1988 );
one.setPrice( 23456.90 );
two.setModel( "Business" );
two.setYear( 2005 );
two.setPrice( 200000 );
three.setYear( 2003 );
three.setPrice( 23405.09 );
four.setPrice( 12345.23 );
one.output();
two.output();
three.output();
four.output();
five.output();
one.compare( two );
two.compare( three );
three.compare( four );
four.compare( five );
return 0;
}
| {
"content_hash": "7b7834241f9093603cf7f3e58b627884",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 77,
"avg_line_length": 20.73015873015873,
"alnum_prop": 0.5777182235834609,
"repo_name": "alexhilton/miscellaneous",
"id": "d2e9cac02b243813d7935f3a4d8a8a915373897d",
"size": "2612",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "cc-work/basics/oop-in-cpp/chap03/car.cc",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Awk",
"bytes": "2857"
},
{
"name": "C",
"bytes": "973615"
},
{
"name": "C++",
"bytes": "181958"
},
{
"name": "CSS",
"bytes": "20109"
},
{
"name": "Groovy",
"bytes": "130"
},
{
"name": "HTML",
"bytes": "171760"
},
{
"name": "Java",
"bytes": "236452"
},
{
"name": "JavaScript",
"bytes": "45233"
},
{
"name": "Makefile",
"bytes": "291"
},
{
"name": "Perl",
"bytes": "58226"
},
{
"name": "Perl6",
"bytes": "772"
},
{
"name": "Python",
"bytes": "84195"
},
{
"name": "R",
"bytes": "2989"
},
{
"name": "Shell",
"bytes": "8778"
}
],
"symlink_target": ""
} |
import json
import os
from .. import base
from girder.api.rest import endpoint
from girder.utility import config
def setUpModule():
pluginRoot = os.path.join(os.path.dirname(os.path.dirname(__file__)),
'test_plugins')
conf = config.getConfig()
conf['plugins'] = {'plugin_directory': pluginRoot}
base.enabledPlugins = ['test_plugin']
base.startServer()
def tearDownModule():
base.stopServer()
class TestEndpointDecoratorException(base.TestCase):
"""Tests the endpoint decorator exception handling."""
@endpoint
def pointlessEndpointAscii(self, path, params):
raise Exception('You did something wrong.')
@endpoint
def pointlessEndpointUnicode(self, path, params):
raise Exception(u'\u0400 cannot be converted to ascii.')
@endpoint
def pointlessEndpointBytes(self, path, params):
raise Exception('\x80\x80 cannot be converted to unicode or ascii.')
def testEndpointExceptionAscii(self):
resp = self.pointlessEndpointAscii('', {}).decode()
obj = json.loads(resp)
self.assertEqual(obj['type'], 'internal')
def testEndpointExceptionUnicode(self):
resp = self.pointlessEndpointUnicode('', {}).decode('utf8')
obj = json.loads(resp)
self.assertEqual(obj['type'], 'internal')
def testEndpointExceptionBytes(self):
resp = self.pointlessEndpointBytes('', {}).decode('utf8')
obj = json.loads(resp)
self.assertEqual(obj['type'], 'internal')
def testBoundHandlerDecorator(self):
resp = self.request('/collection/unbound/default', params={
'val': False
})
self.assertStatusOk(resp)
self.assertEqual(resp.json, True)
resp = self.request('/collection/unbound/explicit')
self.assertStatusOk(resp)
self.assertEqual(resp.json, {
'name': 'collection',
'user': None
})
def testRawResponse(self):
resp = self.request('/other/rawWithDecorator', isJson=False)
self.assertStatusOk(resp)
self.assertEqual(self.getBody(resp), 'this is a raw response')
resp = self.request('/other/rawInternal', isJson=False)
self.assertStatusOk(resp)
self.assertEqual(self.getBody(resp), 'this is also a raw response')
| {
"content_hash": "6d296e3dcc1fbd49161915c3e1f106a4",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 76,
"avg_line_length": 31.58108108108108,
"alnum_prop": 0.6469833119383825,
"repo_name": "msmolens/girder",
"id": "78fcd6d0585ee7103297f822d1418179ae0803b3",
"size": "3126",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tests/cases/rest_decorator_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CMake",
"bytes": "51477"
},
{
"name": "CSS",
"bytes": "42637"
},
{
"name": "HTML",
"bytes": "106882"
},
{
"name": "JavaScript",
"bytes": "955299"
},
{
"name": "Mako",
"bytes": "5674"
},
{
"name": "Python",
"bytes": "1416993"
},
{
"name": "Ruby",
"bytes": "12419"
},
{
"name": "Shell",
"bytes": "9961"
}
],
"symlink_target": ""
} |
// TR1 functional -*- C++ -*-
// Copyright (C) 2005 Free Software Foundation, Inc.
// Written by Douglas Gregor <doug.gregor -at- gmail.com>
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
/** @file tr1/bind_iterate.h
* This is an internal header file, included by other library headers.
* You should not attempt to use it directly.
*/
#if _GLIBCXX_BIND_NUM_ARGS > 0
template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
#endif
#ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
result_type
#else
typename result_of<_Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS())>::type
#endif
operator()(_GLIBCXX_BIND_PARAMS)
{ return _M_f(_GLIBCXX_BIND_V_ARGS); }
#if _GLIBCXX_BIND_NUM_ARGS > 0
template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
#endif
#ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
result_type
#else
typename result_of<const _Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS(const))>::type
#endif
operator()(_GLIBCXX_BIND_PARAMS) const
{ return _M_f(_GLIBCXX_BIND_V_ARGS); }
#if _GLIBCXX_BIND_NUM_ARGS > 0
template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
#endif
#ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
result_type
#else
typename result_of<volatile _Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS(volatile))>::type
#endif
operator()(_GLIBCXX_BIND_PARAMS) volatile
{ return _M_f(_GLIBCXX_BIND_V_ARGS); }
#if _GLIBCXX_BIND_NUM_ARGS > 0
template<_GLIBCXX_BIND_TEMPLATE_PARAMS>
#endif
#ifdef _GLIBCXX_BIND_HAS_RESULT_TYPE
result_type
#else
typename result_of<const volatile _Functor(_GLIBCXX_BIND_V_TEMPLATE_ARGS(const volatile))>::type
#endif
operator()(_GLIBCXX_BIND_PARAMS) const volatile
{ return _M_f(_GLIBCXX_BIND_V_ARGS); }
| {
"content_hash": "7b42f0f2441a420c6d02a6de22f655ba",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 96,
"avg_line_length": 37.333333333333336,
"alnum_prop": 0.728021978021978,
"repo_name": "yogasuhas/espCoap",
"id": "fe6fceae4971ee50fd1f5a4bc98c08f3091dd315",
"size": "2912",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "esp_iot_sdk_v0.9.4/include/xcc/c++/tr1/bind_iterate.h",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "3923874"
},
{
"name": "Batchfile",
"bytes": "1661"
},
{
"name": "C",
"bytes": "4217222"
},
{
"name": "C++",
"bytes": "6015148"
},
{
"name": "Makefile",
"bytes": "46834"
},
{
"name": "Objective-C",
"bytes": "69196"
},
{
"name": "Python",
"bytes": "2100"
},
{
"name": "Shell",
"bytes": "2117"
}
],
"symlink_target": ""
} |
from datetime import datetime
from tracker import db
from tracker.util import issue_to_numeric
from .enum import Remote
from .enum import Severity
cve_id_regex = r'^(CVE\-\d{4}\-\d{4,})$'
issue_types = [
'unknown',
'access restriction bypass',
'arbitrary code execution',
'arbitrary command execution',
'arbitrary file overwrite',
'arbitrary filesystem access',
'arbitrary file upload',
'authentication bypass',
'certificate verification bypass',
'content spoofing',
'cross-site request forgery',
'cross-site scripting',
'denial of service',
'directory traversal',
'incorrect calculation',
'information disclosure',
'insufficient validation',
'man-in-the-middle',
'open redirect',
'private key recovery',
'privilege escalation',
'proxy injection',
'same-origin policy bypass',
'sandbox escape',
'session hijacking',
'signature forgery',
'silent downgrade',
'sql injection',
'time alteration',
'url request injection',
'xml external entity injection'
]
class CVE(db.Model):
DESCRIPTION_LENGTH = 4096
REFERENCES_LENGTH = 4096
NOTES_LENGTH = 4096
__versioned__ = {}
__tablename__ = 'cve'
id = db.Column(db.String(15), index=True, unique=True, primary_key=True)
issue_type = db.Column(db.String(64), default='unknown')
description = db.Column(db.String(DESCRIPTION_LENGTH))
severity = db.Column(Severity.as_type(), nullable=False, default=Severity.unknown)
remote = db.Column(Remote.as_type(), nullable=False, default=Remote.unknown)
reference = db.Column(db.String(REFERENCES_LENGTH))
notes = db.Column(db.String(NOTES_LENGTH))
created = db.Column(db.DateTime, default=datetime.utcnow, nullable=False, index=True)
changed = db.Column(db.DateTime, default=datetime.utcnow, nullable=False, index=True)
@staticmethod
def new(id):
return CVE(id=id,
issue_type='unknown',
description='',
severity=Severity.unknown,
remote=Remote.unknown,
reference='',
notes='')
def __repr__(self):
return '{}'.format(self.id)
@property
def numerical_repr(self):
return issue_to_numeric(self.id)
def __gt__(self, other):
return self.numerical_repr > other.numerical_repr
def __lt__(self, other):
return self.numerical_repr < other.numerical_repr
| {
"content_hash": "64dd8a937f911aae8a88ecf6b651283e",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 89,
"avg_line_length": 29.36470588235294,
"alnum_prop": 0.6394230769230769,
"repo_name": "jelly/arch-security-tracker",
"id": "0adcdbed434ec385adc7940709d7330d60c2e821",
"size": "2496",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "tracker/model/cve.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "9806"
},
{
"name": "HTML",
"bytes": "65601"
},
{
"name": "Makefile",
"bytes": "1441"
},
{
"name": "Mako",
"bytes": "494"
},
{
"name": "Python",
"bytes": "345600"
}
],
"symlink_target": ""
} |
package controlP5;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PGraphics;
import processing.event.Event;
import processing.event.KeyEvent;
/**
* controlP5 is a processing gui library.
*
* 2006-2012 by Andreas Schlegel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
*
* @author Andreas Schlegel (http://www.sojamo.de)
* @modified 07/30/2015
* @version 2.2.5
*
*/
/**
* A singleline input textfield, use arrow keys to go back and forth, use backspace to delete
* characters. Using the up and down arrows lets you cycle through the history of the textfield.
*
* This is the best you can get. Font handling, font switching, measuring, left align, right align,
* etc. was giving me a big headache. not perfect, i think this is a good compromise.
*
* @example controllers/ControlP5textfield
* @nosuperclasses Controller Controller
*/
public class Textfield extends Controller< Textfield > {
/* TODO textspacing does not work properly for bitfonts sometimes first row of pixels in a
* bitfont texture gets cut off */
protected boolean isTexfieldActive;
protected boolean isKeepFocus;
protected StringBuffer _myTextBuffer = new StringBuffer( );
protected int _myTextBufferIndex = 0;
protected int _myTextBufferOverflow = 0;
protected int _myTextBufferIndexPosition = 0;
public static int cursorWidth = 1;
protected Map< Integer , TextfieldCommand > keyMapping;
protected InputFilter _myInputFilter = InputFilter.BITFONT;
protected List< Integer > ignorelist;
protected LinkedList< String > _myHistory;
protected int _myHistoryIndex;
protected int len = 0;
protected int offset = 2;
protected int margin = 2;
protected boolean isPasswordMode;
protected boolean autoclear = true;
protected int _myColorCursor = 0x88ffffff;
private PGraphics buffer;
public enum InputFilter {
INTEGER(Arrays.asList( '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' )), FLOAT(Arrays.asList( '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , '.' )), BITFONT(Arrays.asList( '\n' , '\r' , ' ' , '!' , '"' , '#' , '$' , '%' ,
'&' , '\'' , '(' , ')' , '*' , '+' , ',' , '-' , '.' , '/' , '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , ':' , ';' , '<' , '=' , '>' , '?' , '@' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' ,
'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' , '[' , '\\' , ']' , '^' , '_' , '`' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' , 'q' , 'r' , 's' , 't' , 'u' ,
'v' , 'w' , 'x' , 'y' , 'z' , '{' , '|' , '}' , '~' )), DEFAULT(new LinkedList< Character >( ));
final List< Character > allowed;
InputFilter( List< Character > theList ) {
allowed = theList;
}
protected boolean apply( char theCharater ) {
if ( allowed.isEmpty( ) ) {
return true;
} else {
return allowed.contains( theCharater );
}
}
}
/**
* Convenience constructor to extend Textfield.
*
* @example use/ControlP5extendController
* @param theControlP5
* @param theName
*/
public Textfield( ControlP5 theControlP5 , String theName ) {
this( theControlP5 , theControlP5.getDefaultTab( ) , theName , "" , 0 , 0 , 199 , 19 );
theControlP5.register( theControlP5.papplet , theName , this );
}
public Textfield( ControlP5 theControlP5 , ControllerGroup< ? > theParent , String theName , String theDefaultValue , int theX , int theY , int theWidth , int theHeight ) {
super( theControlP5 , theParent , theName , theX , theY , theWidth , theHeight );
_myCaptionLabel = new Label( cp5 , theName.toUpperCase( ) , 0 , 0 , color.getCaptionLabel( ) );
_myValueLabel.setFont( cp5.controlFont == cp5.defaultFont ? cp5.defaultFontForText : cp5.controlFont );
_myCaptionLabel.align( ControlP5.LEFT , ControlP5.BOTTOM_OUTSIDE );
_myCaptionLabel.setPaddingX( 0 );
_myBroadcastType = STRING;
_myValueLabel.setFixedSize( true );
_myValueLabel.set( "" );
_myValueLabel.setWidth( getWidth( ) - margin * 2 );
_myValueLabel.setPadding( 0 , 0 );
_myValueLabel.align( LEFT , CENTER );
_myValueLabel.setColor( color.getValueLabel( ) );
_myValueLabel.toUpperCase( false );
_myValueLabel.setLabeltype( _myValueLabel.new SinglelineTextfield( ) );
_myHistory = new LinkedList< String >( );
_myHistory.addFirst( "" );
setSize( getWidth( ) , getHeight( ) );
keyMapping = new HashMap< Integer , TextfieldCommand >( );
keyMapping.put( ENTER , new Enter( ) );
keyMapping.put( DEFAULT , new InsertCharacter( ) );
keyMapping.put( DELETE , new DeleteCharacter( ) );
keyMapping.put( BACKSPACE , new DeleteCharacter( ) );
keyMapping.put( LEFT , new MoveLeft( ) );
keyMapping.put( RIGHT , new MoveRight( ) );
keyMapping.put( UP , new MoveUp( ) );
keyMapping.put( DOWN , new MoveDown( ) );
ignorelist = new LinkedList< Integer >( );
ignorelist.add( SHIFT );
ignorelist.add( ALT );
ignorelist.add( CONTROL );
ignorelist.add( TAB );
ignorelist.add( COMMANDKEY );
setInputFilter( DEFAULT );
}
@Override public Textfield setWidth( int theWidth ) {
_myValueLabel.setWidth( theWidth );
return super.setWidth( theWidth );
}
@Override public Textfield setHeight( int theHeight ) {
_myValueLabel.setHeight( theHeight );
return super.setHeight( theHeight );
}
public Textfield setFocus( boolean theValue ) {
isTexfieldActive = isActive = theValue;
return this;
}
/**
* check if the textfield is active and in focus.
*
* @return boolean
*/
public boolean isFocus( ) {
return isTexfieldActive;
}
public Textfield keepFocus( boolean theValue ) {
isKeepFocus = theValue;
if ( isKeepFocus ) {
setFocus( true );
}
return this;
}
public Textfield setFont( PFont thePFont ) {
getValueLabel( ).setFont( thePFont );
return this;
}
public Textfield setFont( ControlFont theFont ) {
getValueLabel( ).setFont( theFont );
return this;
}
public Textfield setFont( int theFont ) {
getValueLabel( ).setFont( theFont );
return this;
}
public Textfield setPasswordMode( boolean theFlag ) {
isPasswordMode = theFlag;
return this;
}
public Textfield setInputFilter( int theInputType ) {
switch ( theInputType ) {
case ( INTEGER ):
_myInputFilter = InputFilter.INTEGER;
break;
case ( FLOAT ):
_myInputFilter = InputFilter.FLOAT;
break;
case ( BITFONT ):
_myInputFilter = InputFilter.BITFONT;
break;
default:
_myInputFilter = InputFilter.DEFAULT;
break;
}
return this;
}
@Override public Textfield setValue( float theValue ) {
// use setText(String) instead
return this;
}
@Override protected void updateFont( ControlFont theControlFont ) {
super.updateFont( theControlFont );
}
public Textfield setValue( String theText ) {
_myTextBuffer = new StringBuffer( theText );
setIndex( _myTextBuffer.length( ) );
return this;
}
public Textfield setText( String theText ) {
return setValue( theText );
}
public Textfield clear( ) {
// create a new text buffer
_myTextBuffer = new StringBuffer( );
// reset the buffer index
setIndex( 0 );
return this;
}
public Textfield setAutoClear( boolean theValue ) {
autoclear = theValue;
return this;
}
public boolean isAutoClear( ) {
return autoclear;
}
@Override protected void mousePressed( ) {
if ( isActive ) {
// TODO System.out.println("adjust cursor");
}
int x = ( int ) ( getControlWindow( ).mouseX - x( getAbsolutePosition( ) ) );
int y = ( int ) ( getControlWindow( ).mouseY - y( getAbsolutePosition( ) ) );
// TODO System.out.println(x + ":" + y);
setFocus( true );
}
@Override protected void mouseReleasedOutside( ) {
if ( isKeepFocus == false ) {
isTexfieldActive = isActive = false;
}
}
public int getIndex( ) {
return _myTextBufferIndex;
}
public String getText( ) {
return _myTextBuffer.toString( );
}
public Textfield setColor( int theColor ) {
getValueLabel( ).setColor( theColor );
return this;
}
public Textfield setColorCursor( int theColor ) {
_myColorCursor = theColor;
return this;
}
@Override public Textfield setSize( int theWidth , int theHeight ) {
super.setSize( theWidth , theHeight );
buffer = cp5.papplet.createGraphics( getWidth( ) , getHeight( ) );
return this;
}
@Override public void draw( PGraphics theGraphics ) {
theGraphics.pushStyle( );
theGraphics.fill( color.getBackground( ) );
theGraphics.pushMatrix( );
theGraphics.translate( x( position ) , y( position ) );
theGraphics.rect( 0 , 0 , getWidth( ) , getHeight( ) );
theGraphics.noStroke( );
theGraphics.fill( _myColorCursor );
theGraphics.pushMatrix( );
theGraphics.pushStyle( );
buffer.beginDraw( );
buffer.background( 0 , 0 );
final String text = passCheck( getText( ) );
final int textWidth = ControlFont.getWidthFor( text.substring( 0 , _myTextBufferIndex ) , _myValueLabel , buffer );
final int dif = PApplet.max( textWidth - _myValueLabel.getWidth( ) , 0 );
final int _myTextBufferIndexPosition = ControlFont.getWidthFor( text.substring( 0 , _myTextBufferIndex ) , _myValueLabel , buffer );
_myValueLabel.setText( text );
_myValueLabel.draw( buffer , -dif , 0 , this );
buffer.noStroke( );
if ( isTexfieldActive ) {
if ( !cp5.papplet.keyPressed ) {
buffer.fill( _myColorCursor , PApplet.abs( PApplet.sin( cp5.papplet.frameCount * 0.05f )) * 255 );
} else {
buffer.fill( _myColorCursor );
}
buffer.rect( PApplet.max( 1 , PApplet.min( _myTextBufferIndexPosition , _myValueLabel.getWidth( ) - 3 ) ) , 0 , 1 , getHeight( ) );
}
buffer.endDraw( );
theGraphics.image( buffer , 0 , 0 );
theGraphics.popStyle( );
theGraphics.popMatrix( );
theGraphics.fill( isTexfieldActive ? color.getActive( ) : color.getForeground( ) );
theGraphics.rect( 0 , 0 , getWidth( ) , 1 );
theGraphics.rect( 0 , getHeight( ) - 1 , getWidth( ) , 1 );
theGraphics.rect( -1 , 0 , 1 , getHeight( ) );
theGraphics.rect( getWidth( ) , 0 , 1 , getHeight( ) );
_myCaptionLabel.draw( theGraphics , 0 , 0 , this );
theGraphics.popMatrix( );
theGraphics.popStyle( );
}
private String passCheck( String label ) {
if ( !isPasswordMode ) {
return label;
}
String newlabel = "";
for ( int i = 0 ; i < label.length( ) ; i++ ) {
newlabel += "*";
}
return newlabel;
}
public void keyEvent( KeyEvent theKeyEvent ) {
if ( isUserInteraction && isTexfieldActive && isActive && theKeyEvent.getAction( ) == KeyEvent.PRESS ) {
if ( ignorelist.contains( cp5.getKeyCode( ) ) ) {
return;
}
if ( keyMapping.containsKey( cp5.getKeyCode( ) ) ) {
keyMapping.get( cp5.getKeyCode( ) ).execute( );
} else {
keyMapping.get( DEFAULT ).execute( );
}
}
}
/**
* make the controller execute a return event. submit the current content of the texfield.
*
*/
public Textfield submit( ) {
keyMapping.get( ENTER ).execute( );
return this;
}
public String[] getTextList( ) {
String[] s = new String[ _myHistory.size( ) ];
_myHistory.toArray( s );
return s;
}
private Textfield setIndex( int theIndex ) {
_myTextBufferIndex = theIndex;
return this;
}
interface TextfieldCommand {
void execute( );
}
class InsertCharacter implements TextfieldCommand {
public void execute( ) {
if ( ( int ) ( cp5.getKey( ) ) == 65535 ) {
return;
}
if ( _myInputFilter.apply( cp5.getKey( ) ) ) {
_myTextBuffer.insert( _myTextBufferIndex , ( char ) cp5.getKey( ) );
setIndex( _myTextBufferIndex + 1 );
}
}
}
class Enter implements TextfieldCommand {
public void execute( ) {
setStringValue( _myTextBuffer.toString( ) );
broadcast( );
// update current buffer with the last item inside the input history
_myHistory.set( _myHistory.size( ) - 1 , _myTextBuffer.toString( ) );
// set the history index to our last item
_myHistoryIndex = _myHistory.size( );
// add a new and empty buffer to the history
_myHistory.add( "" );
if ( autoclear ) {
clear( );
}
}
}
class DeleteCharacter implements TextfieldCommand {
public void execute( ) {
if ( _myTextBuffer.length( ) > 0 && _myTextBufferIndex > 0 ) {
_myTextBuffer.deleteCharAt( _myTextBufferIndex - 1 );
setIndex( _myTextBufferIndex - 1 );
}
}
}
class MoveLeft implements TextfieldCommand {
public void execute( ) {
setIndex( ( ( cp5.modifiers & Event.META ) > 0 ) ? 0 : PApplet.max( 0 , _myTextBufferIndex - 1 ) );
}
}
class MoveRight implements TextfieldCommand {
public void execute( ) {
setIndex( ( ( cp5.modifiers & Event.META ) > 0 ) ? _myTextBuffer.length( ) : PApplet.min( _myTextBuffer.length( ) , _myTextBufferIndex + 1 ) );
}
}
class MoveUp implements TextfieldCommand {
public void execute( ) {
if ( _myHistoryIndex == 0 ) {
return;
}
_myHistoryIndex = PApplet.max( 0 , --_myHistoryIndex );
_myTextBuffer = new StringBuffer( _myHistory.get( _myHistoryIndex ) );
setIndex( _myTextBuffer.length( ) );
}
}
class MoveDown implements TextfieldCommand {
public void execute( ) {
if ( _myHistoryIndex >= _myHistory.size( ) - 1 ) {
return;
}
_myHistoryIndex = PApplet.min( _myHistory.size( ) - 1 , ++_myHistoryIndex );
_myTextBuffer = new StringBuffer( _myHistory.get( _myHistoryIndex ) );
setIndex( _myTextBuffer.length( ) );
}
}
} | {
"content_hash": "e865d3d37cac37ceebfa60de92acc1f5",
"timestamp": "",
"source": "github",
"line_count": 475,
"max_line_length": 248,
"avg_line_length": 29.869473684210526,
"alnum_prop": 0.6549196504087962,
"repo_name": "oroca/SkyRoverNano2_Processing",
"id": "6c7cfc2f7021e9e70103b7107dd3214646315c1c",
"size": "14188",
"binary": false,
"copies": "10",
"ref": "refs/heads/master",
"path": "libraries/controlP5/src/controlP5/Textfield.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "19250"
},
{
"name": "HTML",
"bytes": "8970302"
},
{
"name": "Java",
"bytes": "2158774"
},
{
"name": "JavaScript",
"bytes": "827"
},
{
"name": "Processing",
"bytes": "518945"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-word: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.0~camlp4 / mathcomp-word - 2.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-word
<small>
2.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-11-04 11:54:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-04 11:54:16 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp4 4.04+1 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
coq 8.5.0~camlp4 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.04.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.04.2 Official 4.04.2 release
ocaml-config 1 OCaml Switch Configuration
ocamlbuild 0.14.2 OCamlbuild is a build system with builtin rules to easily build most OCaml projects
# opam file:
opam-version: "2.0"
maintainer: "pierre-yves@strub.nu"
homepage: "https://github.com/jasmin-lang/coqword"
bug-reports: "https://github.com/jasmin-lang/coqword/issues"
dev-repo: "git+https://github.com/jasmin-lang/coqword.git"
license: "MIT"
synopsis: "Yet Another Coq Library on Machine Words"
build: [ "dune" "build" "-p" name "-j" jobs ]
depends: [
"dune" {>= "2.8"}
"coq" {>= "8.12"}
"coq-mathcomp-ssreflect" {>= "1.12" & < "1.16~"}
"coq-mathcomp-algebra"
]
tags: [
"category:Computer Science/Data Types and Data Structures"
"keyword:machine words"
"logpath:mathcomp.word"
"date:2022-09-27"
]
authors: ["Pierre-Yves Strub"]
url {
src: "https://github.com/jasmin-lang/coqword/archive/refs/tags/v2.0.tar.gz"
checksum: "sha512=07bb65131cccf64df60d256cec695a60052cd3d2de00c2be90e51e601b7cdc89c6fbc7fcf0a346849f9f4d5d46901b208a65bde97bb5dfe8e35b2612afd5c66a"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-word.2.0 coq.8.5.0~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0~camlp4).
The following dependencies couldn't be met:
- coq-mathcomp-word -> coq >= 8.12 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-word.2.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "9e7be71a205fd431c34827c67c170e2a",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 159,
"avg_line_length": 42.266666666666666,
"alnum_prop": 0.546314883854316,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "be40063ea5a440f7cd99b5bcba5afe813acaa0dd",
"size": "6999",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.0~camlp4/mathcomp-word/2.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Beans;
/**
*
* @author Phuong
*/
public class GioHangBean implements java.io.Serializable {
private String TenMonAn = null;
private int Gia = 0;
private String MaMonan = null;
private int SL = 0;
public GioHangBean()
{
}
public void setMaMonan(String mamon)
{
MaMonan = mamon;
}
public void setTenMonan(String tenmon)
{
TenMonAn = tenmon;
}
public void setGia(int gia)
{
Gia = gia;
}
public void setSL(int sl)
{
SL = sl;
if(SL < 0)
SL = 0;
}
public String getMamon()
{
return MaMonan;
}
public int getSL()
{
return SL;
}
public String getTenmon()
{
return TenMonAn;
}
public int getGia()
{
return Gia;
}
}
| {
"content_hash": "cc8bc1891f2f3d718cae141839e17acd",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 79,
"avg_line_length": 18.232142857142858,
"alnum_prop": 0.5563173359451518,
"repo_name": "duyphuong5126/Web",
"id": "7867be9ee6ad5d70abf802109ccb475e8da1a179",
"size": "1021",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ProjectKFC/ProjectKFC/src/java/Beans/GioHangBean.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "26"
},
{
"name": "CSS",
"bytes": "186980"
},
{
"name": "HTML",
"bytes": "1327182"
},
{
"name": "Java",
"bytes": "719118"
},
{
"name": "JavaScript",
"bytes": "84913"
},
{
"name": "PHP",
"bytes": "1506838"
}
],
"symlink_target": ""
} |
using Aspose.BarCode.Generation;
namespace Aspose.BarCode.Examples.CSharp.BarcodeGeneration
{
internal class GenerateBarcodeViewPadding : GenerateBarcodeViewBase
{
public static void Run()
{
string path = GetFolder();
System.Console.WriteLine("GenerateBarcodeViewPadding:");
BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.Code128, "ASPOSE");
//set border
gen.Parameters.Border.Visible = true;
gen.Parameters.Border.Width.Pixels = 5;
gen.Parameters.Border.DashStyle = BorderDashStyle.Solid;
//set padding to 10 pixels
gen.Parameters.Barcode.Padding.Left.Pixels = 10;
gen.Parameters.Barcode.Padding.Top.Pixels = 10;
gen.Parameters.Barcode.Padding.Right.Pixels = 10;
gen.Parameters.Barcode.Padding.Bottom.Pixels = 10;
gen.Save($"{path}Padding10Pixels.png", BarCodeImageFormat.Png);
//set padding to 10 Millimeters
gen.Parameters.Barcode.Padding.Left.Millimeters = 10;
gen.Parameters.Barcode.Padding.Top.Millimeters = 10;
gen.Parameters.Barcode.Padding.Right.Millimeters = 10;
gen.Parameters.Barcode.Padding.Bottom.Millimeters = 10;
gen.Save($"{path}Padding10Millimeters.png", BarCodeImageFormat.Png);
}
}
} | {
"content_hash": "8dc531d4e48242c6ce5473a380b31af7",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 87,
"avg_line_length": 44.70967741935484,
"alnum_prop": 0.6457431457431457,
"repo_name": "aspose-barcode/Aspose.BarCode-for-.NET",
"id": "96ebbb1bc59be7fcbb92eea1c7707eb47220d8b3",
"size": "1507",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Examples/CSharp/BarcodeGeneration/BarcodeView/GenerateBarcodeViewPadding.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP.NET",
"bytes": "2339"
},
{
"name": "C#",
"bytes": "34258"
},
{
"name": "CSS",
"bytes": "3794"
},
{
"name": "HTML",
"bytes": "1778"
},
{
"name": "JavaScript",
"bytes": "54709"
}
],
"symlink_target": ""
} |
<?php
/**
* Example of the campaignClickDetailAIM() API call
* @link http://apidocs.mailchimp.com/api/1.3/campaignclickdetailaim.func.php
* @author Ben Tadiar <ben@handcraftedbyben.co.uk>
*/
// Require the bootstrap
require_once(dirname(__FILE__) . '/../bootstrap.php');
// Retrieve the report manager object
$reportManager = $mailchimp->getManager('CampaignReportData');
$id = ''; // Specify the campaign ID
$url = ''; // Define a URL to check
// Get email addresses that clicked on $url
$clicks = $reportManager->campaignClickDetailAIM($id, $url);
// Dump the output
var_dump($clicks);
| {
"content_hash": "f7a93a7e9b3d0d4ff5b1d04708434762",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 77,
"avg_line_length": 27.181818181818183,
"alnum_prop": 0.7073578595317725,
"repo_name": "BenExile/MailChimp",
"id": "5bd3d6f9625aab1a6a69a2e834ab5bccc5b2e90a",
"size": "598",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Examples/CampaignReportData/campaignClickDetailAIM.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "104226"
}
],
"symlink_target": ""
} |
from django.test import TestCase
from django.test.utils import override_settings
from rapidsms.contrib.echo.handlers.echo import EchoHandler
from rapidsms.contrib.echo.handlers.ping import PingHandler
from rapidsms.contrib.handlers.utils import get_handlers
import mock
__all__ = ['TestGetHandlers']
class TestGetHandlers(TestCase):
DEFAULT_APP = 'rapidsms.contrib.default' # Defines no handlers
ECHO_APP = 'rapidsms.contrib.echo' # Defines exactly 2 handlers
ECHO_HANDLER = 'rapidsms.contrib.echo.handlers.echo'
PING_HANDLER = 'rapidsms.contrib.echo.handlers.ping'
ECHO_HANDLER_CLASS = 'rapidsms.contrib.echo.handlers.echo.EchoHandler'
PING_HANDLER_CLASS = 'rapidsms.contrib.echo.handlers.ping.PingHandler'
def setUp(self):
# Used with override_settings, so that we test in a predictable
# environment.
self.settings = {
'INSTALLED_APPS': [],
'INSTALLED_HANDLERS': None,
'EXCLUDED_HANDLERS': [],
'RAPIDSMS_HANDLERS_EXCLUDE_APPS': [],
}
def _check_get_handlers(self, *args):
with override_settings(**self.settings):
with mock.patch('rapidsms.contrib.handlers.utils.warn') as warn:
handlers = get_handlers()
self.assertEqual(set(handlers), set(args))
# If RAPIDSMS_HANDLERS is not defined, a deprecation warning is issued
self.assertEqual(warn.called, 'RAPIDSMS_HANDLERS' not in self.settings)
def test_no_installed_apps(self):
"""App should not load any handlers if there are no installed apps."""
self._check_get_handlers()
def test_no_relevant_installed_apps(self):
"""App should not load any handlers if no app contains handlers."""
self.settings['INSTALLED_APPS'] = [self.DEFAULT_APP]
self._check_get_handlers()
def test_installed_apps(self):
"""App should load handlers from any app in INSTALLED_APPS."""
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self._check_get_handlers(EchoHandler, PingHandler)
def test_installed_handler__installed_apps(self):
"""
App should only include handlers listed in INSTALLED_HANDLERS, if it
is defined.
"""
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self.settings['INSTALLED_HANDLERS'] = [self.PING_HANDLER]
self._check_get_handlers(PingHandler)
def test_installed_handlers__installed_apps(self):
"""
App should only include handlers listedin INSTALLED_HANDLERS, if it
is defined.
"""
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self.settings['INSTALLED_HANDLERS'] = [self.PING_HANDLER,
self.ECHO_HANDLER]
self._check_get_handlers(PingHandler, EchoHandler)
def test_installed_handlers__no_installed_apps(self):
"""App should handle when an INSTALLED_HANDLER can't be found."""
self.settings['INSTALLED_HANDLERS'] = [self.PING_HANDLER]
self._check_get_handlers()
def test_installed_app(self):
"""App should use prefix matching to determine handlers to include."""
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self.settings['INSTALLED_HANDLERS'] = [self.ECHO_APP]
self._check_get_handlers(EchoHandler, PingHandler)
def test_exclude_handlers__installed_apps(self):
"""App should exclude handlers listed in EXCLUDED_HANDLERS."""
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self.settings['EXCLUDED_HANDLERS'] = [self.PING_HANDLER]
self._check_get_handlers(EchoHandler)
def test_exclude_handlers__no_installed_apps(self):
"""App should handle when an EXCLUDED_HANDLER can't be found."""
self.settings['EXCLUDED_HANDLERS'] = [self.PING_HANDLER]
self._check_get_handlers()
def test_exclude_app(self):
"""App should use prefix matching to determine handlers to exclude."""
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self.settings['EXCLUDED_HANDLERS'] = [self.ECHO_APP]
self._check_get_handlers()
def test_empty_rapidsms_handlers(self):
# If RAPIDSMS_HANDLERS is empty, no handlers are loaded.
self.settings['INSTALLED_APPS'] = [self.ECHO_APP]
self.settings['INSTALLED_HANDLERS'] = [self.ECHO_APP]
self.settings['RAPIDSMS_HANDLERS'] = []
self._check_get_handlers()
def test_rapidsms_handlers(self):
# If RAPIDSMS_HANDLERS is set, it completely controls which handlers
# are loaded.
self.settings['INSTALLED_APPS'] = [self.DEFAULT_APP]
self.settings['INSTALLED_HANDLERS'] = []
self.settings['EXCLUDED_HANDLERS'] = [self.PING_HANDLER]
self.settings['RAPIDSMS_HANDLERS'] = [
self.ECHO_HANDLER_CLASS,
self.PING_HANDLER_CLASS
]
self._check_get_handlers(EchoHandler, PingHandler)
| {
"content_hash": "2ab0e233217fbef09f8c1cbba5f76437",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 79,
"avg_line_length": 42.16101694915254,
"alnum_prop": 0.652462311557789,
"repo_name": "eHealthAfrica/rapidsms",
"id": "d9c1d2666b2beebb1ed3c1d64e8c3b8a411362d9",
"size": "5027",
"binary": false,
"copies": "7",
"ref": "refs/heads/develop",
"path": "rapidsms/contrib/handlers/tests/utils.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "27100"
},
{
"name": "JavaScript",
"bytes": "16887"
},
{
"name": "Python",
"bytes": "350060"
},
{
"name": "Shell",
"bytes": "5100"
}
],
"symlink_target": ""
} |
Browser Sync
==============
gulp is a toolkit for automating painful or time-consuming tasks in your development workflow, so you can stop messing around and build something.
https://www.browsersync.io/
https://github.com/Browsersync/browser-sync
| {
"content_hash": "187d2fea604e086b17ff924e66dd3d4d",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 146,
"avg_line_length": 31.25,
"alnum_prop": 0.756,
"repo_name": "CodeLaunchUK/vvv-codelaunch-utilities",
"id": "a09236ccda36a8a39efbaf7d875508c224f57ffb",
"size": "250",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "browser-sync/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Shell",
"bytes": "2206"
}
],
"symlink_target": ""
} |
<?php
/* Load Solero modules */
add_theme_support('solero-jquery-cdn');
add_theme_support('solero-clean-up');
add_theme_support('solero-nav-walker');
// add_theme_support('solero-relative-urls');
add_theme_support('solero-js-to-footer');
add_theme_support('solero-disable-trackbacks');
add_theme_support('solero-disable-asset-versioning');
add_theme_support('solero-google-analytics', 'UA-26195791-1');
add_theme_support(
'solero-google-fonts',
[
'Lato' => '300,400,700,900,300italic,400italic,700italic,900italic',
'Merriweather' => '400,700,400italic,700italic',
'Playfair Display' => '400,400italic',
]
);
/**
* Setup function. All child themes should run their setup within this function. The idea is to add/remove
* filters and actions after the parent theme has been set up. This function provides you that opportunity.
*/
function starsailor_theme_setup()
{
/*
* Add a custom background to overwrite the defaults.
* @link http://codex.wordpress.org/Custom_Backgrounds
*/
add_theme_support(
'custom-background',
[
'default-color' => '2C3E50',
'default-image' => ''
]
);
/*
* Add a custom header to overwrite the defaults.
* @link http://codex.wordpress.org/Custom_Headers
*/
add_theme_support(
'custom-header',
[
'default-text-color' => 'dadada',
'default-image' => ''
]
);
}
add_action( 'after_setup_theme', 'starsailor_theme_setup' );
/**
* Remove/modify hooks
*/
function starsailor_clean_hooks()
{
add_filter('hybrid_meta_template', '__return_false');
remove_action('wp_head', 'hybrid_link_pingback', 3);
}
add_action('init', 'starsailor_clean_hooks');
/**
* Enqueue/dequeue scripts and styles.
*/
function starsailor_scripts()
{
wp_dequeue_style('saga-fonts');
}
add_action('wp_enqueue_scripts', 'starsailor_scripts', 11);
/**
* Adds a custom excerpt length.
*/
function starsailor_excerpt_length($length)
{
return 32;
}
remove_filter('excerpt_length', 'saga_excerpt_length');
add_filter('excerpt_length', 'starsailor_excerpt_length', 999);
/**
* Register widget area.
* @link https://codex.wordpress.org/Function_Reference/register_sidebar
*/
function starsailor_widgets_init()
{
register_sidebar([
'name' => __('Widget Area', 'starsailor'),
'id' => 'primary',
'description' => __('Add widgets here to make them appearing in header.', 'starsailor'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
]);
}
add_action('widgets_init', 'starsailor_widgets_init');
| {
"content_hash": "c065e5c58cfcecfe3f768611ab7c849b",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 107,
"avg_line_length": 27.2020202020202,
"alnum_prop": 0.6520608986260675,
"repo_name": "starise/starsailor",
"id": "093fce22317790946a6428aa572a7335422df2c8",
"size": "2804",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "functions.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1263"
},
{
"name": "PHP",
"bytes": "9930"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Edument.CQRS;
using NUnit.Framework;
using Cafe.Tab;
using Events.Cafe;
namespace CafeTests
{
[TestFixture]
public class TabTests : BDDTest<TabAggregate>
{
private Guid testId;
private int testTable;
private string testWaiter;
private OrderedItem testDrink1;
private OrderedItem testDrink2;
private OrderedItem testFood1;
private OrderedItem testFood2;
[SetUp]
public void Setup()
{
testId = Guid.NewGuid();
testTable = 42;
testWaiter = "Derek";
testDrink1 = new OrderedItem
{
MenuNumber = 4,
Description = "Sprite",
Price = 1.50M,
IsDrink = true
};
testDrink2 = new OrderedItem
{
MenuNumber = 10,
Description = "Beer",
Price = 2.50M,
IsDrink = true
};
testFood1 = new OrderedItem
{
MenuNumber = 16,
Description = "Beef Noodles",
Price = 7.50M,
IsDrink = false
};
testFood2 = new OrderedItem
{
MenuNumber = 25,
Description = "Vegetable Curry",
Price = 6.00M,
IsDrink = false
};
}
[Test]
public void CanOpenANewTab()
{
Test(
Given(),
When(new OpenTab
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
}),
Then(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
}));
}
[Test]
public void CanNotOrderWithUnopenedTab()
{
Test(
Given(),
When(new PlaceOrder
{
Id = testId,
Items = new List<OrderedItem> { testDrink1 }
}),
ThenFailWith<TabNotOpen>());
}
[Test]
public void CanPlaceDrinksOrder()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
}),
When(new PlaceOrder
{
Id = testId,
Items = new List<OrderedItem> { testDrink1, testDrink2 }
}),
Then(new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink1, testDrink2 }
}));
}
[Test]
public void CanPlaceFoodOrder()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
}),
When(new PlaceOrder
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood1 }
}),
Then(new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood1 }
}));
}
[Test]
public void CanPlaceFoodAndDrinkOrder()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
}),
When(new PlaceOrder
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testDrink2 }
}),
Then(new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink2 }
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1 }
}));
}
[Test]
public void OrderedDrinksCanBeServed()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink1, testDrink2 }
}),
When(new MarkDrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink1.MenuNumber, testDrink2.MenuNumber }
}),
Then(new DrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink1.MenuNumber, testDrink2.MenuNumber }
}));
}
[Test]
public void CanNotServeAnUnorderedDrink()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink1 }
}),
When(new MarkDrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink2.MenuNumber }
}),
ThenFailWith<DrinksNotOutstanding>());
}
[Test]
public void CanNotServeAnOrderedDrinkTwice()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink1 }
},
new DrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink1.MenuNumber }
}),
When(new MarkDrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink1.MenuNumber }
}),
ThenFailWith<DrinksNotOutstanding>());
}
[Test]
public void OrderedFoodCanBeMarkedPrepared()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood1 }
}),
When(new MarkFoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber, testFood1.MenuNumber }
}),
Then(new FoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber, testFood1.MenuNumber }
}));
}
[Test]
public void FoodNotOrderedCanNotBeMarkedPrepared()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
}),
When(new MarkFoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber }
}),
ThenFailWith<FoodNotOutstanding>());
}
[Test]
public void CanNotMarkFoodAsPreparedTwice()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood1 }
},
new FoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber, testFood1.MenuNumber }
}),
When(new MarkFoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber }
}),
ThenFailWith<FoodNotOutstanding>());
}
[Test]
public void CanServePreparedFood()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood2 }
},
new FoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber, testFood2.MenuNumber }
}),
When(new MarkFoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber, testFood1.MenuNumber }
}),
Then(new FoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber, testFood1.MenuNumber }
}));
}
[Test]
public void CanNotServePreparedFoodTwice()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood2 }
},
new FoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber, testFood2.MenuNumber }
},
new FoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber, testFood1.MenuNumber }
}),
When(new MarkFoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber, testFood1.MenuNumber }
}),
ThenFailWith<FoodNotPrepared>());
}
[Test]
public void CanNotServeUnorderedFood()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1 }
}),
When(new MarkFoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber }
}),
ThenFailWith<FoodNotPrepared>());
}
[Test]
public void CanNotServeOrderedButUnpreparedFood()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1 }
}),
When(new MarkFoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber }
}),
ThenFailWith<FoodNotPrepared>());
}
[Test]
public void CanCloseTabByPayingExactAmount()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1, testFood2 }
},
new FoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber, testFood2.MenuNumber }
},
new FoodServed
{
Id = testId,
MenuNumbers = new List<int> { testFood2.MenuNumber, testFood1.MenuNumber }
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testFood1.Price + testFood2.Price
}),
Then(new TabClosed
{
Id = testId,
AmountPaid = testFood1.Price + testFood2.Price,
OrderValue = testFood1.Price + testFood2.Price,
TipValue = 0.00M
}));
}
[Test]
public void CanCloseTabWithTip()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink2 }
},
new DrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink2.MenuNumber }
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testDrink2.Price + 0.50M
}),
Then(new TabClosed
{
Id = testId,
AmountPaid = testDrink2.Price + 0.50M,
OrderValue = testDrink2.Price,
TipValue = 0.50M
}));
}
[Test]
public void MustPayEnoughToCloseTab()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink2 }
},
new DrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink2.MenuNumber }
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testDrink2.Price - 0.50M
}),
ThenFailWith<MustPayEnough>());
}
[Test]
public void CanNotCloseTabTwice()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink2 }
},
new DrinksServed
{
Id = testId,
MenuNumbers = new List<int> { testDrink2.MenuNumber }
},
new TabClosed
{
Id = testId,
AmountPaid = testDrink2.Price + 0.50M,
OrderValue = testDrink2.Price,
TipValue = 0.50M
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testDrink2.Price
}),
ThenFailWith<TabNotOpen>());
}
[Test]
public void CanNotCloseTabWithUnservedDrinksItems()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new DrinksOrdered
{
Id = testId,
Items = new List<OrderedItem> { testDrink2 }
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testDrink2.Price
}),
ThenFailWith<TabHasUnservedItems>());
}
[Test]
public void CanNotCloseTabWithUnpreparedFoodItems()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1 }
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testFood1.Price
}),
ThenFailWith<TabHasUnservedItems>());
}
[Test]
public void CanNotCloseTabWithUnservedFoodItems()
{
Test(
Given(new TabOpened
{
Id = testId,
TableNumber = testTable,
Waiter = testWaiter
},
new FoodOrdered
{
Id = testId,
Items = new List<OrderedItem> { testFood1 }
},
new FoodPrepared
{
Id = testId,
MenuNumbers = new List<int> { testFood1.MenuNumber }
}),
When(new CloseTab
{
Id = testId,
AmountPaid = testFood1.Price
}),
ThenFailWith<TabHasUnservedItems>());
}
}
}
| {
"content_hash": "643dc2e422afafea8f9762e88689ed3c",
"timestamp": "",
"source": "github",
"line_count": 636,
"max_line_length": 96,
"avg_line_length": 30.562893081761008,
"alnum_prop": 0.37910278835271116,
"repo_name": "edumentab/cqrs-starter-kit",
"id": "eb6dda7eb62f8ce22ed21d38ce44a9368ec7f727",
"size": "19440",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "sample-app/CafeTests/TabTests.cs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ASP.NET",
"bytes": "102"
},
{
"name": "C#",
"bytes": "110703"
},
{
"name": "CSS",
"bytes": "963"
},
{
"name": "HTML",
"bytes": "8290"
},
{
"name": "JavaScript",
"bytes": "281"
},
{
"name": "TSQL",
"bytes": "1585"
}
],
"symlink_target": ""
} |
namespace JexusManager.Features.Certificates
{
using System.ComponentModel;
using System.Windows.Forms;
partial class CompleteRequestDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.txtTitle = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtName = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.cbStore = new System.Windows.Forms.ComboBox();
this.btnOK = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.txtPath = new System.Windows.Forms.TextBox();
this.btnBrowse = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.txtTitle);
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(670, 65);
this.panel1.TabIndex = 11;
//
// pictureBox1
//
this.pictureBox1.Image = global::JexusManager.Features.Certificates.Properties.Resources.certificates_48;
this.pictureBox1.Location = new System.Drawing.Point(10, 10);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(48, 48);
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// txtTitle
//
this.txtTitle.AutoSize = true;
this.txtTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtTitle.Location = new System.Drawing.Point(87, 22);
this.txtTitle.Name = "txtTitle";
this.txtTitle.Size = new System.Drawing.Size(326, 24);
this.txtTitle.TabIndex = 2;
this.txtTitle.Text = "Specify Certificate Authority Response";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(23, 82);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(502, 26);
this.label1.TabIndex = 12;
this.label1.Text = "Specify a previously created certificate request by retrieving the file that cont" +
"ains the certificate authority\'s\r\nresponse.";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(23, 180);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(75, 13);
this.label2.TabIndex = 13;
this.label2.Text = "Friendly name:";
//
// txtName
//
this.txtName.Location = new System.Drawing.Point(26, 196);
this.txtName.Name = "txtName";
this.txtName.Size = new System.Drawing.Size(238, 20);
this.txtName.TabIndex = 2;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(23, 246);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(229, 13);
this.label3.TabIndex = 15;
this.label3.Text = "Select a certificate store for the new certificate:";
//
// cbStore
//
this.cbStore.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbStore.FormattingEnabled = true;
this.cbStore.Items.AddRange(new object[] {
"Personal",
"Web Hosting"});
this.cbStore.Location = new System.Drawing.Point(26, 262);
this.cbStore.Name = "cbStore";
this.cbStore.Size = new System.Drawing.Size(238, 21);
this.cbStore.TabIndex = 3;
//
// btnOK
//
this.btnOK.Enabled = false;
this.btnOK.Location = new System.Drawing.Point(466, 441);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(85, 23);
this.btnOK.TabIndex = 4;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
//
// btnCancel
//
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(557, 441);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(85, 23);
this.btnCancel.TabIndex = 5;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(23, 119);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(278, 13);
this.label4.TabIndex = 19;
this.label4.Text = "File name containing the certification authority\'s response:";
//
// txtPath
//
this.txtPath.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.txtPath.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.FileSystem;
this.txtPath.Location = new System.Drawing.Point(26, 135);
this.txtPath.Name = "txtPath";
this.txtPath.Size = new System.Drawing.Size(360, 20);
this.txtPath.TabIndex = 0;
//
// btnBrowse
//
this.btnBrowse.Location = new System.Drawing.Point(392, 133);
this.btnBrowse.Name = "btnBrowse";
this.btnBrowse.Size = new System.Drawing.Size(30, 23);
this.btnBrowse.TabIndex = 1;
this.btnBrowse.Text = "...";
this.btnBrowse.UseVisualStyleBackColor = true;
//
// CompleteRequestDialog
//
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(654, 476);
this.Controls.Add(this.btnBrowse);
this.Controls.Add(this.txtPath);
this.Controls.Add(this.label4);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.cbStore);
this.Controls.Add(this.label3);
this.Controls.Add(this.txtName);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.panel1);
this.Name = "CompleteRequestDialog";
this.Text = "Complete Certificate Request";
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Panel panel1;
private PictureBox pictureBox1;
private Label txtTitle;
private Label label1;
private Label label2;
private TextBox txtName;
private Label label3;
private ComboBox cbStore;
private Button btnOK;
private Button btnCancel;
private Label label4;
private TextBox txtPath;
private Button btnBrowse;
}
}
| {
"content_hash": "ac51e6f05ddbc4f17e9dc22da19c3686",
"timestamp": "",
"source": "github",
"line_count": 220,
"max_line_length": 171,
"avg_line_length": 43.095454545454544,
"alnum_prop": 0.5685054319164645,
"repo_name": "jexuswebserver/JexusManager",
"id": "5c8f502f6c5bc6163df5c364598f48b96c4a25ce",
"size": "9483",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "JexusManager.Features.Certificates/CompleteRequestDialog.Designer.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "1193"
},
{
"name": "C#",
"bytes": "3017979"
},
{
"name": "HTML",
"bytes": "161"
},
{
"name": "PowerShell",
"bytes": "4614"
}
],
"symlink_target": ""
} |
<div style="background-color: white" class="_main-content _middle-content md-whiteframe-z1 my-profile-body"
ng-class="{'_sm': $mdMedia('sm'), '_gt-sm': $mdMedia('gt-sm')}">
<md-toolbar class="my-profile-toolbar _content-nav"
ng-class="{'_sm': $mdMedia('sm'), '_gt-sm': $mdMedia('gt-sm')}">
<div class="md-toolbar-tools">
<div class="my-profile-header _nav-title">Settings</div>
<div class="md-actions" layout="row" layout-align="end center" flex>
<md-menu>
<md-button aria-label="Actions" ng-click="$mdOpenMenu($event)">
<md-icon md-font-set="material-icons">more_vert</md-icon>
<md-tooltip>Actions</md-tooltip>
</md-button>
<md-menu-content>
<md-menu-item>
<md-button aria-label="View Profile" ng-click="vm.edit=false"
ng-show="vm.edit">View Profile
</md-button>
<md-button aria-label="Edit Profile" ng-click="vm.edit=true; vm.awsAccountEdit=false;"
ng-hide="vm.edit">Edit Profile
</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="vm.awsAccountEdit=true; vm.edit=false;">
{{ vm.aws_account.id ? 'Edit MTurk/AWS' : 'Add MTurk/AWS' }}</md-button>
</md-menu-item>
<md-menu-item>
<md-button ng-click="vm.getCredentials($event)">Get Credentials</md-button>
</md-menu-item>
</md-menu-content>
</md-menu>
</div>
</div>
</md-toolbar>
<div style="background-color: white" class="md-padding" ng-cloak="">
<div layout="row" layout-align="start start">
<div layout-align="start" flex>
<p class="md-display-1 md-margin-0">{{ vm.user.user.first_name }} {{ vm.user.user.last_name }}</p>
<div style="padding-left: 16px; line-height: 24px">Member
since {{ vm.user.created_at | date:'MMM dd, yyyy' }}</div>
<div flex="" ng-show="vm.user">
<div ng-hide="vm.edit" style="padding-right: 16px; padding-left: 16px; line-height: 24px">
<div ng-show="vm.user.birthday" class="layout-row layout-align-start-center">
<div>Date of Birth</div>
<div flex="" style="text-align: right">{{ vm.user.birthday | date:"MMM dd, yyyy" }}</div>
</div>
<div ng-show="vm.user.gender" class="layout-row layout-align-start-center">
<div>Gender</div>
<div flex="" style="text-align: right">{{ vm.user.gender.value }}</div>
</div>
<div ng-show="vm.user.ethnicity" class="layout-row layout-align-start-center">
<div>Ethnicity</div>
<div flex="" style="text-align: right">{{ vm.user.ethnicity.value }}</div>
</div>
<div ng-show="vm.user.address" class="layout-row layout-align-start-center">
<div>Address</div>
<div flex="" style="text-align: right" ng-bind-html="vm.user.address_text"></div>
</div>
<div ng-show="vm.user.education" class="layout-row layout-align-start-center">
<div>Education</div>
<div flex="" style="text-align: right">{{ vm.user.education.value }}</div>
</div>
</div>
<!--md-list ng-hide="vm.edit">
<md-list-item ng-show="vm.user.birthday">
<p class="_sub-header">Date of Birth</p>
<span>{{ vm.user.birthday | date:"MMM dd, yyyy" }}</span>
</md-list-item>
<md-list-item ng-show="vm.user.gender">
<p class="_sub-header">Gender</p>
<span>{{ vm.user.gender.value }}</span>
</md-list-item>
<md-list-item ng-show="vm.user.ethnicity">
<p class="_sub-header">Ethnicity</p>
<span>{{ vm.user.ethnicity.value }}</span>
</md-list-item>
<md-list-item ng-show="vm.user.address">
<p class="_sub-header">Address</p>
<span ng-bind-html="vm.user.address_text"></span>
</md-list-item>
<md-list-item ng-show="vm.user.education">
<p class="_sub-header">Education</p>
<span>{{ vm.user.education.value }}</span>
</md-list-item>
</md-list-->
<div ng-if="vm.edit || vm.awsAccountEdit" class="md-padding" flex>
<form ng-if="vm.edit">
<div layout="column">
<div layout="row">
<div id="node"></div>
<md-input-container flex>
<label>First name</label>
<input type="text" ng-model="vm.user.user.first_name" ng-required="true">
</md-input-container>
<md-input-container flex>
<label>Last name</label>
<input type="text" ng-model="vm.user.user.last_name" ng-required="true">
</md-input-container>
</div>
<md-autocomplete md-no-cache="true"
md-selected-item="vm.user.address_text"
md-search-text-change="vm.addressSearch(vm.addressSearchValue)"
md-search-text="vm.addressSearchValue"
md-items="item in vm.addressSearch(vm.addressSearchValue)"
md-item-text="item.description"
md-min-length="0"
md-floating-label="Address"
placeholder="Type your address">
<md-item-template>
<span md-highlight-text="vm.addressSearchValue"
md-highlight-flags="^i">{{ item.description }}</span>
</md-item-template>
<md-not-found>
No matches found for "{{ vm.addressSearchValue }}".
</md-not-found>
<div ng-messages="vm">
<p ng-message="autocompleteError">Please enter a valid address</p>
</div>
</md-autocomplete>
<label class="label-style">Date of Birth</label>
<md-datepicker ng-model="vm.user.birthday"
md-placeholder="Choose a date">
</md-datepicker>
<div layout="row">
<md-input-container class="max-width">
<label>Gender</label>
<md-select ng-model="vm.user.gender">
<md-option ng-repeat="gender in vm.genders"
ng-value="gender">{{ gender.value }}
</md-option>
</md-select>
</md-input-container>
<md-input-container class="max-width">
<label>Ethnicity</label>
<md-select ng-model="vm.user.ethnicity">
<md-option ng-repeat="ethnicity in vm.ethnicities"
ng-value="ethnicity">{{ ethnicity.value }}
</md-option>
</md-select>
</md-input-container>
</div>
<div layout="row">
<md-input-container class="max-width">
<label>Education</label>
<md-select ng-model="vm.user.education">
<md-option ng-repeat="education in vm.educations"
ng-value="education">{{ education.value }}
</md-option>
</md-select>
</md-input-container>
</div>
<div layout="row" layout-align="end center">
<md-button class="md-primary" ng-click="vm.update()">Submit</md-button>
<md-button aria-label="Cancel" ng-click="vm.edit=false">Cancel</md-button>
</div>
</div>
</form>
<div ng-if="vm.aws_account || vm.awsAccountEdit">
<div class="md-no-sticky _sub-header">AWS Account</div>
<div>
<p class="_ml-16" ng-if="!vm.awsAccountEdit"
style="text-transform: lowercase;">{{ vm.aws_account.client_id }}
</p>
<div layout="row" ng-if="vm.awsAccountEdit">
<md-input-container class="_ml-16 md-block _small-container">
<label>Client ID</label>
<input name="client_id" required ng-model="vm.aws_account.client_id">
</md-input-container>
<md-input-container class="_ml-24 md-block _small-container">
<label>Client Secret</label>
<input name="client_secret" autocomplete="off" required
ng-model="vm.aws_account.client_secret">
</md-input-container>
</div>
<div layout="row" ng-if="vm.awsAccountEdit" layout-align="end center">
<md-button class="md-primary" ng-click="vm.create_or_update_aws()">Save
</md-button>
<md-button ng-if="vm.aws_account.id"
ng-click="vm.removeAWSAccount()">
Delete
</md-button>
<md-button ng-click="vm.awsAccountEdit=false">Cancel</md-button>
</div>
<div class="_small-note _error _ml-16">{{ vm.AWSError }}</div>
</div>
<div ng-if="!vm.aws_account.id && vm.awsAccountEdit" class="_small-note">
To obtain Amazon keys for posting to Mechanical Turk, click
<a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html"
target="_blank">here</a>
and add the AmazonMechanicalTurkFullAccess Policy.
Then, copy/paste the ID and secret here.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="background-color: white" ng-if="vm.financial_data">
<md-subheader style="height: 32px; line-height: 32px">Account Balance</md-subheader>
<div style="padding: 8px 32px 16px;">
<div style="display: flex; align-items: center; line-height: 24px" ng-if="vm.user.is_requester">
<div>Funds</div>
<div style="flex-grow: 1; text-align: right">{{ vm.financial_data.account_balance | currency }}</div>
</div>
<div style="display: flex; align-items: center; line-height: 24px" ng-if="vm.user.is_requester">
<div>Held for current projects</div>
<div style="flex-grow: 1; text-align: right">{{ vm.financial_data.held_for_liability | currency }}</div>
</div>
<div style="display: flex; align-items: center; line-height: 24px" ng-if="vm.user.is_worker">
<div>Awaiting payment</div>
<div style="flex-grow: 1; text-align: right">{{ vm.financial_data.awaiting_payment | currency }}</div>
</div>
<div style="display: flex; align-items: center; line-height: 24px;" ng-if="vm.user.is_requester">
<div>Total</div>
<div style="flex-grow: 1; text-align: right">
{{ (vm.financial_data.account_balance - vm.financial_data.held_for_liability) | currency }}</div>
</div>
<div style="display: flex; align-items: center; line-height: 24px" ng-if="vm.user.is_worker">
<div>Total tasks completed</div>
<div style="flex-grow: 1; text-align: right">{{ vm.financial_data.tasks_completed }}</div>
</div>
<div style="display: flex; align-items: center; line-height: 24px" ng-if="vm.user.is_worker">
<div>Total earned</div>
<div style="flex-grow: 1; text-align: right">{{ vm.financial_data.total_earned | currency }}</div>
</div>
<div>
<md-button ng-click="vm.goTo('payment_deposit')" style="left: -13px">Deposit Funds</md-button>
</div>
</div>
</div>
<div ng-if="vm.financial_data.default_card">
<md-subheader style="height: 32px; line-height: 32px">Credit Card</md-subheader>
<div style="padding: 8px 32px 16px;">
<div style="display: flex; align-items: center; line-height: 24px">
<div>Card</div>
<div style="flex-grow: 1; text-align: right">****-{{ vm.financial_data.default_card.last_4 }}</div>
</div>
<div style="display: flex; align-items: center; line-height: 24px">
<div>Expiration</div>
<div style="flex-grow: 1; text-align: right">{{ vm.financial_data.default_card.exp_month }}/{{ vm.financial_data.default_card.exp_year }}</div>
</div>
<div>
<md-button ng-click="vm.goTo('payment_card')" style="left: -18px">Edit Card</md-button>
</div>
</div>
</div>
<div ng-if="vm.financial_data.default_bank">
<md-subheader style="height: 32px; line-height: 32px">Bank Account</md-subheader>
<div style="padding: 8px 32px 16px;">
<div style="display: flex; align-items: center; line-height: 24px">
<div>Account</div>
<div style="flex-grow: 1; text-align: right">****-{{ vm.financial_data.default_bank.last_4 }}</div>
</div>
<div>
<md-button ng-click="vm.goTo('payment_bank')" style="left: -14px">Edit Account</md-button>
</div>
</div>
</div>
<!--div>
<md-subheader style="height: 32px; line-height: 32px">Transaction History</md-subheader>
<div style="padding: 8px 32px 16px;">
<div style="display: flex; align-items: center; line-height: 24px">
<div>04/04/2017 1:21 am</div>
<div style="flex-grow: 1; text-align: right">$1000</div>
</div>
</div>
</div-->
</div>
| {
"content_hash": "063a6d778cb122d22b099ac7bafe7f4a",
"timestamp": "",
"source": "github",
"line_count": 287,
"max_line_length": 159,
"avg_line_length": 59.65853658536585,
"alnum_prop": 0.4226141805863801,
"repo_name": "shirishgoyal/crowdsource-platform",
"id": "ed6549a56e8ef1ebad3cd5f793e233e20cce5dd6",
"size": "17122",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop2",
"path": "static/templates/user/profile.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "63075"
},
{
"name": "HTML",
"bytes": "229504"
},
{
"name": "JavaScript",
"bytes": "312581"
},
{
"name": "Python",
"bytes": "748797"
},
{
"name": "Shell",
"bytes": "838"
}
],
"symlink_target": ""
} |
// Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.android_quick_settings;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} | {
"content_hash": "5bfd95756d28183aa68e6aa34d851b1f",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 93,
"avg_line_length": 35.44444444444444,
"alnum_prop": 0.7439916405433646,
"repo_name": "googlecodelabs/android-n-quick-settings",
"id": "42cbbe5dc5ecef2d814ffa895c6d456f94d63a7e",
"size": "957",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/src/androidTest/java/com/google/android_quick_settings/ApplicationTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "19525"
}
],
"symlink_target": ""
} |
@implementation ExternalBaseSegue
- (id)initWithIdentifier:(NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination {
if ([destination isKindOfClass:[ExternalViewController class]]) {
self = [super initWithIdentifier:identifier
source:source
destination:[(ExternalViewController *)destination externalViewController]];
} else {
self = [super initWithIdentifier:identifier source:source destination:destination];
}
return self;
}
- (void)perform {
NSLog(@"Needs to be implemented in subclasses");
}
@end
| {
"content_hash": "c3dd17e1563aba33a20f3a7a58a6ad32",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 127,
"avg_line_length": 34.611111111111114,
"alnum_prop": 0.7046548956661316,
"repo_name": "cristianbica/CBExternalStoryboard",
"id": "f010b021f3f4894637648e8d9fa02e9ac66b1639",
"size": "835",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CBExternalStoryboard/ExternalBaseSegue.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "6314"
},
{
"name": "Ruby",
"bytes": "571"
}
],
"symlink_target": ""
} |
package com.clemble.casino.server.hibernate;
import java.io.Serializable;
import org.hibernate.HibernateException;
import org.hibernate.usertype.UserType;
abstract public class ImmutableHibernateType<T extends Serializable> implements UserType {
@Override
final public boolean equals(Object x, Object y) throws HibernateException {
return x == y;
}
@Override
final public int hashCode(Object x) throws HibernateException {
return x != null ? x.hashCode() : 0;
}
@Override
final public Object deepCopy(Object value) throws HibernateException {
return value;
}
@Override
final public boolean isMutable() {
return false;
}
@Override
@SuppressWarnings("unchecked")
final public Serializable disassemble(Object value) throws HibernateException {
return (T) value;
}
@Override
final public Object assemble(Serializable cached, Object owner) throws HibernateException {
return cached;
}
@Override
final public Object replace(Object original, Object target, Object owner) throws HibernateException {
return original;
}
}
| {
"content_hash": "44abac1c6b9b4aa86014fd0751f7d0ed",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 105,
"avg_line_length": 25.391304347826086,
"alnum_prop": 0.6977739726027398,
"repo_name": "clemble/backend-common",
"id": "b8b61e86484614fe0dfc75ecec173aebaf2f7a76",
"size": "1168",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "common-web/src/test/java/com/clemble/casino/server/hibernate/ImmutableHibernateType.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "16"
},
{
"name": "Java",
"bytes": "192497"
}
],
"symlink_target": ""
} |
'use strict';
/*eslint-env browser*/
/*global $, _*/
var mdurl = require('mdurl');
var mdHtml, mdSrc, permalink, scrollMap;
var defaults = {
html: false, // Enable HTML tags in source
xhtmlOut: false, // Use '/' to close single tags (<br />)
breaks: false, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks
linkify: true, // autoconvert URL-like texts to links
typographer: true, // Enable smartypants and other sweet transforms
// options below are for demo only
_highlight: true,
_strict: false,
_view: 'html' // html / src / debug
};
defaults.highlight = function (str, lang) {
if (!defaults._highlight || !window.hljs) { return ''; }
var hljs = window.hljs;
if (lang && hljs.getLanguage(lang)) {
try {
return hljs.highlight(lang, str).value;
} catch (__) {}
}
try {
return hljs.highlightAuto(str).value;
} catch (__) {}
return '';
};
function setOptionClass(name, val) {
if (val) {
$('body').addClass('opt_' + name);
} else {
$('body').removeClass('opt_' + name);
}
}
function setResultView(val) {
$('body').removeClass('result-as-html');
$('body').removeClass('result-as-src');
$('body').removeClass('result-as-debug');
$('body').addClass('result-as-' + val);
defaults._view = val;
}
function mdInit() {
if (defaults._strict) {
mdHtml = window.markdownit('commonmark');
mdSrc = window.markdownit('commonmark');
} else {
mdHtml = window.markdownit(defaults)
.use(require('markdown-it-abbr'))
.use(require('markdown-it-container'), 'warning')
.use(require('markdown-it-deflist'))
.use(require('markdown-it-emoji'))
.use(require('markdown-it-footnote'))
.use(require('markdown-it-ins'))
.use(require('markdown-it-mark'))
.use(require('markdown-it-sub'))
.use(require('markdown-it-sup'));
mdSrc = window.markdownit(defaults)
.use(require('markdown-it-abbr'))
.use(require('markdown-it-container'), 'warning')
.use(require('markdown-it-deflist'))
.use(require('markdown-it-emoji'))
.use(require('markdown-it-footnote'))
.use(require('markdown-it-ins'))
.use(require('markdown-it-mark'))
.use(require('markdown-it-sub'))
.use(require('markdown-it-sup'));
}
// Beautify output of parser for html content
mdHtml.renderer.rules.table_open = function () {
return '<table class="table table-striped">\n';
};
// Replace emoji codes with images
mdHtml.renderer.rules.emoji = function(token, idx) {
return window.twemoji.parse(token[idx].content);
};
//
// Inject line numbers for sync scroll. Notes:
//
// - We track only headings and paragraphs on first level. That's enough.
// - Footnotes content causes jumps. Level limit filter it automatically.
function injectLineNumbers(tokens, idx, options, env, self) {
var line;
if (tokens[idx].map && tokens[idx].level === 0) {
line = tokens[idx].map[0];
tokens[idx].attrPush([ 'class', 'line' ]);
tokens[idx].attrPush([ 'data-line', String(line) ]);
}
return self.renderToken(tokens, idx, options, env, self);
}
mdHtml.renderer.rules.paragraph_open = mdHtml.renderer.rules.heading_open = injectLineNumbers;
}
function setHighlightedlContent(selector, content, lang) {
if (window.hljs) {
$(selector).html(window.hljs.highlight(lang, content).value);
} else {
$(selector).text(content);
}
}
function updateResult() {
var source = $('.source').val();
// Update only active view to avoid slowdowns
// (debug & src view with highlighting are a bit slow)
if (defaults._view === 'src') {
setHighlightedlContent('.result-src-content', mdSrc.render(source), 'html');
} else if (defaults._view === 'debug') {
setHighlightedlContent(
'.result-debug-content',
JSON.stringify(mdSrc.parse(source, { references: {} }), null, 2),
'json'
);
} else { /*defaults._view === 'html'*/
$('.result-html').html(mdHtml.render(source));
}
// reset lines mapping cache on content update
scrollMap = null;
try {
if (source) {
// serialize state - source and options
permalink.href = '#md3=' + mdurl.encode(JSON.stringify({
source: source,
defaults: _.omit(defaults, 'highlight')
}), '-_.!~', false);
} else {
permalink.href = '';
}
} catch (__) {
permalink.href = '';
}
}
// Build offsets for each line (lines can be wrapped)
// That's a bit dirty to process each line everytime, but ok for demo.
// Optimizations are required only for big texts.
function buildScrollMap() {
var i, offset, nonEmptyList, pos, a, b, lineHeightMap, linesCount,
acc, sourceLikeDiv, textarea = $('.source'),
_scrollMap;
sourceLikeDiv = $('<div />').css({
position: 'absolute',
visibility: 'hidden',
height: 'auto',
width: textarea[0].clientWidth,
'font-size': textarea.css('font-size'),
'font-family': textarea.css('font-family'),
'line-height': textarea.css('line-height'),
'white-space': textarea.css('white-space')
}).appendTo('body');
offset = $('.result-html').scrollTop() - $('.result-html').offset().top;
_scrollMap = [];
nonEmptyList = [];
lineHeightMap = [];
acc = 0;
textarea.val().split('\n').forEach(function(str) {
var h, lh;
lineHeightMap.push(acc);
if (str.length === 0) {
acc++;
return;
}
sourceLikeDiv.text(str);
h = parseFloat(sourceLikeDiv.css('height'));
lh = parseFloat(sourceLikeDiv.css('line-height'));
acc += Math.round(h / lh);
});
sourceLikeDiv.remove();
lineHeightMap.push(acc);
linesCount = acc;
for (i = 0; i < linesCount; i++) { _scrollMap.push(-1); }
nonEmptyList.push(0);
_scrollMap[0] = 0;
$('.line').each(function(n, el) {
var $el = $(el), t = $el.data('line');
if (t === '') { return; }
t = lineHeightMap[t];
if (t !== 0) { nonEmptyList.push(t); }
_scrollMap[t] = Math.round($el.offset().top + offset);
});
nonEmptyList.push(linesCount);
_scrollMap[linesCount] = $('.result-html')[0].scrollHeight;
pos = 0;
for (i = 1; i < linesCount; i++) {
if (_scrollMap[i] !== -1) {
pos++;
continue;
}
a = nonEmptyList[pos];
b = nonEmptyList[pos + 1];
_scrollMap[i] = Math.round((_scrollMap[b] * (i - a) + _scrollMap[a] * (b - i)) / (b - a));
}
return _scrollMap;
}
// Synchronize scroll position from source to result
var syncResultScroll = _.debounce(function () {
var textarea = $('.source'),
lineHeight = parseFloat(textarea.css('line-height')),
lineNo, posTo;
lineNo = Math.floor(textarea.scrollTop() / lineHeight);
if (!scrollMap) { scrollMap = buildScrollMap(); }
posTo = scrollMap[lineNo];
$('.result-html').stop(true).animate({
scrollTop: posTo
}, 100, 'linear');
}, 50, { maxWait: 50 });
// Synchronize scroll position from result to source
var syncSrcScroll = _.debounce(function () {
var resultHtml = $('.result-html'),
scrollTop = resultHtml.scrollTop(),
textarea = $('.source'),
lineHeight = parseFloat(textarea.css('line-height')),
lines,
i,
line;
if (!scrollMap) { scrollMap = buildScrollMap(); }
lines = Object.keys(scrollMap);
if (lines.length < 1) {
return;
}
line = lines[0];
for (i = 1; i < lines.length; i++) {
if (scrollMap[lines[i]] < scrollTop) {
line = lines[i];
continue;
}
break;
}
textarea.stop(true).animate({
scrollTop: lineHeight * line
}, 100, 'linear');
}, 50, { maxWait: 50 });
function loadPermalink() {
if (!location.hash) { return; }
var cfg, opts;
try {
if (/^#md3=/.test(location.hash)) {
cfg = JSON.parse(mdurl.decode(location.hash.slice(5), mdurl.decode.componentChars));
} else if (/^#md64=/.test(location.hash)) {
cfg = JSON.parse(window.atob(location.hash.slice(6)));
} else if (/^#md=/.test(location.hash)) {
cfg = JSON.parse(decodeURIComponent(location.hash.slice(4)));
} else {
return;
}
if (_.isString(cfg.source)) {
$('.source').val(cfg.source);
}
} catch (__) {
return;
}
opts = _.isObject(cfg.defaults) ? cfg.defaults : {};
// copy config to defaults, but only if key exists
// and value has the same type
_.forOwn(opts, function (val, key) {
if (!_.has(defaults, key)) { return; }
// Legacy, for old links
if (key === '_src') {
defaults._view = val ? 'src' : 'html';
return;
}
if ((_.isBoolean(defaults[key]) && _.isBoolean(val)) ||
(_.isString(defaults[key]) && _.isString(val))) {
defaults[key] = val;
}
});
// sanitize for sure
if ([ 'html', 'src', 'debug' ].indexOf(defaults._view) === -1) {
defaults._view = 'html';
}
}
//////////////////////////////////////////////////////////////////////////////
// Init on page load
//
$(function() {
// highlight snippet
if (window.hljs) {
$('pre.code-sample code').each(function(i, block) {
window.hljs.highlightBlock(block);
});
}
loadPermalink();
// Activate tooltips
$('._tip').tooltip({ container: 'body' });
// Set default option values and option listeners
_.forOwn(defaults, function (val, key) {
if (key === 'highlight') { return; }
var el = document.getElementById(key);
if (!el) { return; }
var $el = $(el);
if (_.isBoolean(val)) {
$el.prop('checked', val);
$el.on('change', function () {
var value = Boolean($el.prop('checked'));
setOptionClass(key, value);
defaults[key] = value;
mdInit();
updateResult();
});
setOptionClass(key, val);
} else {
$(el).val(val);
$el.on('change update keyup', function () {
defaults[key] = String($(el).val());
mdInit();
updateResult();
});
}
});
setResultView(defaults._view);
mdInit();
permalink = document.getElementById('permalink');
// Setup listeners
$('.source').on('keyup paste cut mouseup', _.debounce(updateResult, 300, { maxWait: 500 }));
$('.source').on('touchstart mouseover', function () {
$('.result-html').off('scroll');
$('.source').on('scroll', syncResultScroll);
});
$('.result-html').on('touchstart mouseover', function () {
$('.source').off('scroll');
$('.result-html').on('scroll', syncSrcScroll);
});
$('.source-clear').on('click', function (event) {
$('.source').val('');
updateResult();
event.preventDefault();
});
$(document).on('click', '[data-result-as]', function (event) {
var view = $(this).data('resultAs');
if (view) {
setResultView(view);
// only to update permalink
updateResult();
event.preventDefault();
}
});
// Need to recalculate line positions on window resize
$(window).on('resize', function () {
scrollMap = null;
});
updateResult();
});
| {
"content_hash": "b8f2744406ce035453e18a06eef7a9d8",
"timestamp": "",
"source": "github",
"line_count": 421,
"max_line_length": 96,
"avg_line_length": 26.717339667458432,
"alnum_prop": 0.5770803698435277,
"repo_name": "Thynix/markdown-it",
"id": "39f40ea1afb3525c57d1a1d2a4c71836b7ba802a",
"size": "11248",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "support/demo_template/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2322"
},
{
"name": "HTML",
"bytes": "4127"
},
{
"name": "JavaScript",
"bytes": "616837"
},
{
"name": "Makefile",
"bytes": "3315"
}
],
"symlink_target": ""
} |
import 'babel-polyfill'
import * as assert from 'assert'
import blizzardForum from '../lib/index.js'
let blizForum = new blizzardForum()
blizForum.set('general.debug', false)
describe('set', () => {
it('should set region to en', () => {
blizForum.set('server.region', 'en')
})
}) | {
"content_hash": "e46dd3d1cac983957ccb18409ac48631",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 44,
"avg_line_length": 22.923076923076923,
"alnum_prop": 0.6409395973154363,
"repo_name": "BirkhoffLee/blizzard_forum.js",
"id": "4d58aca53fac11f0e65bb63d245cefea3506fb40",
"size": "298",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/set.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "10436"
}
],
"symlink_target": ""
} |
namespace boost {
namespace compute {
// forward declaration for counting_iterator<T>
template<class T> class counting_iterator;
namespace detail {
// helper class which defines the iterator_facade super-class
// type for counting_iterator<T>
template<class T>
class counting_iterator_base
{
public:
typedef ::boost::iterator_facade<
::boost::compute::counting_iterator<T>,
T,
::std::random_access_iterator_tag
> type;
};
template<class T, class IndexExpr>
struct counting_iterator_index_expr
{
typedef T result_type;
counting_iterator_index_expr(const T init, const IndexExpr &expr)
: m_init(init),
m_expr(expr)
{
}
const T m_init;
const IndexExpr m_expr;
};
template<class T, class IndexExpr>
inline meta_kernel& operator<<(meta_kernel &kernel,
const counting_iterator_index_expr<T, IndexExpr> &expr)
{
return kernel << '(' << expr.m_init << '+' << expr.m_expr << ')';
}
} // end detail namespace
/// \class counting_iterator
/// \brief The counting_iterator class implements a counting iterator.
///
/// A counting iterator returns an internal value (initialized with \p init)
/// which is incremented each time the iterator is incremented.
///
/// For example, this could be used to implement the iota() algorithm in terms
/// of the copy() algorithm by copying from a range of counting iterators:
///
/// \snippet test/test_counting_iterator.cpp iota_with_copy
///
/// \see make_counting_iterator()
template<class T>
class counting_iterator : public detail::counting_iterator_base<T>::type
{
public:
typedef typename detail::counting_iterator_base<T>::type super_type;
typedef typename super_type::reference reference;
typedef typename super_type::difference_type difference_type;
counting_iterator(const T &init)
: m_init(init)
{
}
counting_iterator(const counting_iterator<T> &other)
: m_init(other.m_init)
{
}
counting_iterator<T>& operator=(const counting_iterator<T> &other)
{
if(this != &other){
m_init = other.m_init;
}
return *this;
}
~counting_iterator()
{
}
size_t get_index() const
{
return 0;
}
template<class Expr>
detail::counting_iterator_index_expr<T, Expr>
operator[](const Expr &expr) const
{
return detail::counting_iterator_index_expr<T, Expr>(m_init, expr);
}
private:
friend class ::boost::iterator_core_access;
reference dereference() const
{
return m_init;
}
bool equal(const counting_iterator<T> &other) const
{
return m_init == other.m_init;
}
void increment()
{
m_init++;
}
void decrement()
{
m_init--;
}
void advance(difference_type n)
{
m_init += static_cast<T>(n);
}
difference_type distance_to(const counting_iterator<T> &other) const
{
return difference_type(other.m_init) - difference_type(m_init);
}
private:
T m_init;
};
/// Returns a new counting_iterator starting at \p init.
///
/// \param init the initial value
///
/// \return a counting_iterator with \p init.
///
/// For example, to create a counting iterator which returns unsigned integers
/// and increments from one:
/// \code
/// auto iter = make_counting_iterator<uint_>(1);
/// \endcode
template<class T>
inline counting_iterator<T> make_counting_iterator(const T &init)
{
return counting_iterator<T>(init);
}
/// \internal_ (is_device_iterator specialization for counting_iterator)
template<class T>
struct is_device_iterator<counting_iterator<T> > : boost::true_type {};
} // end compute namespace
} // end boost namespace
#endif // BOOST_COMPUTE_ITERATOR_COUNTING_ITERATOR_HPP
| {
"content_hash": "5c9adcdae428cf9ec851613a5593b60a",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 86,
"avg_line_length": 23.537037037037038,
"alnum_prop": 0.6472593758195646,
"repo_name": "LedgerHQ/lib-ledger-core",
"id": "384486bcb3d2bd1eec577ec81298d55dd5809f39",
"size": "4602",
"binary": false,
"copies": "38",
"ref": "refs/heads/main",
"path": "core/lib/boost/boost/compute/iterator/counting_iterator.hpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ada",
"bytes": "87492"
},
{
"name": "Assembly",
"bytes": "95273"
},
{
"name": "Batchfile",
"bytes": "49710"
},
{
"name": "C",
"bytes": "17901111"
},
{
"name": "C++",
"bytes": "136103115"
},
{
"name": "CMake",
"bytes": "1117135"
},
{
"name": "CSS",
"bytes": "2536"
},
{
"name": "DIGITAL Command Language",
"bytes": "312789"
},
{
"name": "Dockerfile",
"bytes": "1746"
},
{
"name": "Emacs Lisp",
"bytes": "5297"
},
{
"name": "HTML",
"bytes": "474505"
},
{
"name": "JavaScript",
"bytes": "15286"
},
{
"name": "M4",
"bytes": "58734"
},
{
"name": "Makefile",
"bytes": "243"
},
{
"name": "Nix",
"bytes": "6555"
},
{
"name": "Perl",
"bytes": "2222280"
},
{
"name": "Prolog",
"bytes": "29177"
},
{
"name": "Python",
"bytes": "26175"
},
{
"name": "Raku",
"bytes": "34072"
},
{
"name": "Roff",
"bytes": "5"
},
{
"name": "Scala",
"bytes": "1392"
},
{
"name": "Scheme",
"bytes": "4249"
},
{
"name": "Shell",
"bytes": "186270"
},
{
"name": "XS",
"bytes": "4319"
},
{
"name": "eC",
"bytes": "5127"
}
],
"symlink_target": ""
} |
@interface QHPModel : NSObject
@end
| {
"content_hash": "5a8d74c0e415f0aa58b6ca8904618cc3",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 30,
"avg_line_length": 12.333333333333334,
"alnum_prop": 0.7567567567567568,
"repo_name": "QinHuPo/weibo",
"id": "7f624e55a443e20b4a13f397ab45193eb550b9a2",
"size": "200",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "weibo/weibo/QHPModel.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Objective-C",
"bytes": "5997"
}
],
"symlink_target": ""
} |
namespace PyCuDNN {
typedef cudnnDirectionMode_t DirectionMode;
} // PyCuDNN
#endif // PYCUDNN_DIRECTION_MODE_HPP | {
"content_hash": "3b1b0d2224852b0c8710e3a29d170cf1",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 44,
"avg_line_length": 23,
"alnum_prop": 0.782608695652174,
"repo_name": "komarov-k/pycudnn",
"id": "17568535f74fca1139c8dd8aae8a6ba6d5605f86",
"size": "206",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "include/PyCuDNNDirectionMode.hpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "83807"
},
{
"name": "Python",
"bytes": "1795"
}
],
"symlink_target": ""
} |
import React from 'react'
import ReactDOM from 'react-dom'
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithTag,
Simulate
} from 'react-addons-test-utils'
import VerifyRegistrationInfo from './VerifyRegistrationInfo'
describe('When rendering VerifyRegistrationInfo ', () => {
it('should show user registration info for verification', () => {
const state = {
userName: 'John Doe',
email: 'john.doe@example.com'
}
const component = renderIntoDocument(
<VerifyRegistrationInfo state={state} />
)
const renderedDOM = ReactDOM.findDOMNode(component)
const title = renderedDOM.querySelector('#title')
expect(title).toBeDefined()
expect(title.textContent).toEqual('Verify Registration Information')
const userName = renderedDOM.querySelector('#userName')
expect(userName).toBeDefined()
expect(userName.textContent).toEqual(state.userName)
const email = renderedDOM.querySelector('#email')
expect(email).toBeDefined()
expect(email.textContent).toEqual(state.email)
const buttons = scryRenderedDOMComponentsWithTag(component, 'button')
expect(buttons.length).toEqual(2)
expect(buttons[0].textContent).toEqual('Edit')
expect(buttons[1].textContent).toEqual('Register')
})
})
| {
"content_hash": "d6c051cd45e036ab6bf369fb1dade54b",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 73,
"avg_line_length": 29.977272727272727,
"alnum_prop": 0.7278241091736164,
"repo_name": "jack-hoang/registration",
"id": "a663892feb8b308490abb54756d235d34adfdd1f",
"size": "1319",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/components/VerifyRegistrationInfo-spec.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "394"
},
{
"name": "JavaScript",
"bytes": "28824"
}
],
"symlink_target": ""
} |
#define CallbackTemplate(name, rettype, template_, template__, _template, _tsep_, classdef, \
classlist, paramdef, paramlist, return_, extension) \
\
template_ classdef _template \
struct name##Action { \
int count; \
virtual rettype Execute(paramdef) = 0; \
virtual bool IsEqual(const name##Action *other) const = 0; \
virtual unsigned GetHashValue() const = 0; \
\
name##Action() { count = 1; } \
virtual ~name##Action() {} \
}; \
\
template <class OBJECT_, class METHOD_ _tsep_ classdef> \
struct name##MethodAction : public name##Action template__ classlist _template { \
OBJECT_ *object; \
METHOD_ method; \
rettype Execute(paramdef) { return_ (object->*method)(paramlist); } \
bool IsEqual(const name##Action template__ classlist _template *other) const { \
const name##MethodAction *q = dynamic_cast<const name##MethodAction *>(other); \
return q ? q->object == object && q->method == method : false; \
} \
unsigned GetHashValue() const { \
return (unsigned)object ^ brutal_cast<unsigned>(method); \
} \
\
name##MethodAction(OBJECT_ *object, METHOD_ method) \
: object(object), method(method) {} \
}; \
\
template_ classdef _template \
struct name##FnAction : public name##Action template__ classlist _template { \
rettype (*fn)(paramdef); \
rettype Execute(paramdef) { return_ (*fn)(paramlist); } \
bool IsEqual(const name##Action template__ classlist _template *other) const { \
const name##FnAction *q = dynamic_cast<const name##FnAction *>(other); \
return q ? q->fn == fn : false; \
} \
unsigned GetHashValue() const { \
return (unsigned)fn; \
} \
\
name##FnAction(rettype (*fn)(paramdef)) : fn(fn) {} \
}; \
\
template_ classdef _template \
class name : Moveable< name template__ classlist _template > { \
name##Action template__ classlist _template *action; \
\
void Retain() const { if(*this) action->count++; } \
void Release() { if(*this && --action->count == 0) delete action; } \
\
public: \
typedef name CLASSNAME; \
name& operator=(const name& c); \
name(const name& c); \
void Clear() { Release(); action = NULL; } \
extension \
\
unsigned GetHashValue() const { return action->GetHashValue(); } \
\
explicit name(name##Action template__ classlist _template *newaction) { action = newaction; } \
name& operator=(name##Action template__ classlist _template *newaction) { action = newaction; return *this; } \
name() { action = NULL; } \
name(_CNULL) { action = NULL; } \
~name(); \
\
static name Empty() { return CNULL; } \
\
friend bool operator==(const name& a, const name& b) { return a.action ? a.action->IsEqual(b.action) : !b.action; } \
friend bool operator!=(const name& a, const name& b) { return !(a == b); } \
/*friend unsigned GetHashValue(const name& m) { return m.action->GetHashValue(); }*/ \
}; \
\
template <class Object, class M _tsep_ classdef> \
name template__ classlist _template callback(Object *object, rettype (M::*method)(paramdef)) { \
return name template__ classlist _template \
(new name##MethodAction<M, rettype (M::*)(paramdef) _tsep_ classlist>(object, method)); \
} \
\
template <class Object, class M _tsep_ classdef> \
name template__ classlist _template callback(const Object *object, rettype (M::*method)(paramdef) const) { \
return name template__ classlist _template \
(new name##MethodAction<const M, rettype (M::*)(paramdef) const _tsep_ classlist>(object, method)); \
} \
\
template_ classdef _template \
inline name template__ classlist _template callback(rettype (*fn)(paramdef)) { \
return name template__ classlist _template \
(new name##FnAction template__ classlist _template(fn)); \
} \
template_ classdef _template \
struct name##ForkAction : public name##Action template__ classlist _template { \
name template__ classlist _template cb1, cb2; \
rettype Execute(paramdef) { cb1(paramlist); return_ cb2(paramlist); } \
bool IsEqual(const name##Action template__ classlist _template *other) const { \
const name##ForkAction *q = dynamic_cast<const name##ForkAction *>(other); \
return q ? q->cb1 == cb1 && q->cb2 == cb2 : false; \
} \
unsigned GetHashValue() const { \
return ::GetHashValue(cb1) ^ ::GetHashValue(cb2); \
} \
\
name##ForkAction(name template__ classlist _template cb1, \
name template__ classlist _template cb2) : cb1(cb1), cb2(cb2) {} \
}; \
\
template_ classdef _template \
inline \
name template__ classlist _template callback( \
name template__ classlist _template cb1, \
name template__ classlist _template cb2) { \
return name template__ classlist _template \
(new name##ForkAction template__ classlist _template(cb1, cb2)); \
} \
\
template_ classdef _template \
inline \
name template__ classlist _template& operator<<( \
name template__ classlist _template& a, \
name template__ classlist _template b) { \
if(a) \
a = callback(a, b); \
else \
a = b; \
return a; \
}
#define CallbackBodyTemplate(name, template_, tlist) \
template_ \
name tlist& name tlist::operator=(const name& c) { \
c.Retain(); Release(); action = c.action; return *this; \
} \
\
template_ \
name tlist::name(const name& c) { action = c.action; Retain(); } \
\
template_ \
name tlist::~name() { Release(); }
#define _empty_
//$ struct Callback;
//$-
CallbackTemplate(
/* name */ Callback,
/* rettype */ void,
/* template_ */ _empty_,
/* template__ */ _empty_,
/* _template */ _empty_,
/* tsep */ _empty_,
/* classdef */ _empty_,
/* classlist */ _empty_,
/* paramdef */ _empty_,
/* paramlist */ _empty_,
/* return_ */ _empty_,
operator bool() const { return action; }
void operator()() const;
)
CallbackTemplate(
/* name */ Callback1,
/* rettype */ void,
/* template_ */ template<,
/* template__ */ <,
/* _template */ >,
/* tsep */ _cm_,
/* classdef */ class P1,
/* classlist */ P1,
/* paramdef */ P1 p1,
/* paramlist */ p1,
/* return_ */ _empty_,
operator bool() const { return action; }
void operator()(P1 p1) const { if(action) action->Execute(p1); }
)
CallbackBodyTemplate(Callback1, template<class P1>, <P1>)
| {
"content_hash": "d3125f70ca98c4014f058edb924cfc9d",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 118,
"avg_line_length": 36.09444444444444,
"alnum_prop": 0.6070494074188086,
"repo_name": "dreamsxin/ultimatepp",
"id": "cfda9f5aa31430b961c7146321a9312c71e44b3d",
"size": "6497",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "uppsrc/Core/CallbackN.h",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Assembly",
"bytes": "8477"
},
{
"name": "C",
"bytes": "47921993"
},
{
"name": "C++",
"bytes": "28354499"
},
{
"name": "CSS",
"bytes": "659"
},
{
"name": "JavaScript",
"bytes": "7006"
},
{
"name": "Objective-C",
"bytes": "178854"
},
{
"name": "Perl",
"bytes": "65041"
},
{
"name": "Python",
"bytes": "38142"
},
{
"name": "Shell",
"bytes": "91097"
},
{
"name": "Smalltalk",
"bytes": "101"
},
{
"name": "Turing",
"bytes": "661569"
}
],
"symlink_target": ""
} |
<component name="libraryTable">
<library name="Solr example library">
<CLASSES>
<root url="file://$PROJECT_DIR$/solr/server/lib" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$PROJECT_DIR$/solr/server/lib" recursive="true" />
</library>
</component> | {
"content_hash": "6523f5ec89c1d03aa445955a60726794",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 80,
"avg_line_length": 29.7,
"alnum_prop": 0.6296296296296297,
"repo_name": "yida-lxw/solr-5.2.0",
"id": "4003bf7e11d1bf8ec8ce16ba3ebcc05d2820dc74",
"size": "297",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "dev-tools/idea/.idea/libraries/Solr_example_library.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "53286"
},
{
"name": "C++",
"bytes": "13377"
},
{
"name": "CSS",
"bytes": "226047"
},
{
"name": "GAP",
"bytes": "11057"
},
{
"name": "Gnuplot",
"bytes": "2444"
},
{
"name": "HTML",
"bytes": "1590759"
},
{
"name": "JFlex",
"bytes": "108436"
},
{
"name": "Java",
"bytes": "46317546"
},
{
"name": "JavaScript",
"bytes": "1170431"
},
{
"name": "Perl",
"bytes": "86514"
},
{
"name": "Python",
"bytes": "218341"
},
{
"name": "Shell",
"bytes": "167334"
},
{
"name": "XSLT",
"bytes": "160271"
}
],
"symlink_target": ""
} |
puzzle.c
========
There is a typo in this programme. Source:
https://news.ycombinator.com/item?id=12921755
| {
"content_hash": "ea7442835324edf54cc818f7de925df4",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 45,
"avg_line_length": 18.166666666666668,
"alnum_prop": 0.7064220183486238,
"repo_name": "jloughry/experiments",
"id": "0200fc18b20e9c71eae1ed8451cb05daa3e4d091",
"size": "109",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "C_kata/C_puzzles/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "87993"
},
{
"name": "C++",
"bytes": "510"
},
{
"name": "HTML",
"bytes": "2730"
},
{
"name": "Java",
"bytes": "32422"
},
{
"name": "Makefile",
"bytes": "38417"
},
{
"name": "Objective-C",
"bytes": "681"
},
{
"name": "Scheme",
"bytes": "2594"
},
{
"name": "Shell",
"bytes": "4305"
},
{
"name": "TeX",
"bytes": "4043"
}
],
"symlink_target": ""
} |
<?php
/**
* @file
* Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
*/
namespace Drupal\Tests\Core\Entity;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\EntityDisplayRepositoryInterface;
use Drupal\Core\Entity\EntityFieldManager;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Entity\EntityTypeRepositoryInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Field\FieldTypePluginManagerInterface;
use Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem;
use Drupal\Core\KeyValueStore\KeyValueFactoryInterface;
use Drupal\Core\KeyValueStore\KeyValueStoreInterface;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\StringTranslation\TranslationInterface;
use Drupal\Core\TypedData\TypedDataManagerInterface;
use Drupal\Tests\UnitTestCase;
use Prophecy\Argument;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* @coversDefaultClass \Drupal\Core\Entity\EntityFieldManager
* @group Entity
*/
class EntityFieldManagerTest extends UnitTestCase {
/**
* The typed data manager.
*
* @var \Drupal\Core\TypedData\TypedDataManagerInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $typedDataManager;
/**
* The module handler.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $moduleHandler;
/**
* The cache backend to use.
*
* @var \Drupal\Core\Cache\CacheBackendInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $cacheBackend;
/**
* The cache tags invalidator.
*
* @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $cacheTagsInvalidator;
/**
* The language manager.
*
* @var \Drupal\Core\Language\LanguageManagerInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $languageManager;
/**
* The keyvalue factory.
*
* @var \Drupal\Core\KeyValueStore\KeyValueFactoryInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $keyValueFactory;
/**
* The event dispatcher.
*
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $eventDispatcher;
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $entityTypeManager;
/**
* The entity type repository.
*
* @var \Drupal\Core\Entity\EntityTypeRepositoryInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $entityTypeRepository;
/**
* The entity type bundle info.
*
* @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $entityTypeBundleInfo;
/**
* The entity display repository.
*
* @var \Drupal\Core\Entity\EntityDisplayRepositoryInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $entityDisplayRepository;
/**
* The entity field manager under test.
*
* @var \Drupal\Core\Entity\EntityFieldManager
*/
protected $entityFieldManager;
/**
* The dependency injection container.
*
* @var \Symfony\Component\DependencyInjection\ContainerInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $container;
/**
* The entity type definition.
*
* @var \Drupal\Core\Entity\EntityTypeInterface|\Prophecy\Prophecy\ProphecyInterface
*/
protected $entityType;
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->container = $this->prophesize(ContainerInterface::class);
\Drupal::setContainer($this->container->reveal());
$this->typedDataManager = $this->prophesize(TypedDataManagerInterface::class);
$this->typedDataManager->getDefinition('field_item:boolean')->willReturn([
'class' => BooleanItem::class,
]);
$this->container->get('typed_data_manager')->willReturn($this->typedDataManager->reveal());
$this->moduleHandler = $this->prophesize(ModuleHandlerInterface::class);
$this->moduleHandler->alter('entity_base_field_info', Argument::type('array'), Argument::any())->willReturn(NULL);
$this->moduleHandler->alter('entity_bundle_field_info', Argument::type('array'), Argument::any(), Argument::type('string'))->willReturn(NULL);
$this->cacheBackend = $this->prophesize(CacheBackendInterface::class);
$this->cacheTagsInvalidator = $this->prophesize(CacheTagsInvalidatorInterface::class);
$language = new Language(['id' => 'en']);
$this->languageManager = $this->prophesize(LanguageManagerInterface::class);
$this->languageManager->getCurrentLanguage()->willReturn($language);
$this->languageManager->getLanguages()->willReturn(['en' => (object) ['id' => 'en']]);
$this->keyValueFactory = $this->prophesize(KeyValueFactoryInterface::class);
$this->entityTypeManager = $this->prophesize(EntityTypeManagerInterface::class);
$this->entityTypeRepository = $this->prophesize(EntityTypeRepositoryInterface::class);
$this->entityTypeBundleInfo = $this->prophesize(EntityTypeBundleInfoInterface::class);
$this->entityDisplayRepository = $this->prophesize(EntityDisplayRepositoryInterface::class);
$this->entityFieldManager = new TestEntityFieldManager($this->entityTypeManager->reveal(), $this->entityTypeBundleInfo->reveal(), $this->entityDisplayRepository->reveal(), $this->typedDataManager->reveal(), $this->languageManager->reveal(), $this->keyValueFactory->reveal(), $this->moduleHandler->reveal(), $this->cacheBackend->reveal());
}
/**
* Sets up the entity type manager to be tested.
*
* @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions
* (optional) An array of entity type definitions.
*/
protected function setUpEntityTypeDefinitions($definitions = []) {
$class = $this->getMockClass(EntityInterface::class);
foreach ($definitions as $key => $entity_type) {
// \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called
// by \Drupal\Core\Entity\EntityManager::processDefinition() so it must
// always be mocked.
$entity_type->getLinkTemplates()->willReturn([]);
// Give the entity type a legitimate class to return.
$entity_type->getClass()->willReturn($class);
$definitions[$key] = $entity_type->reveal();
}
$this->entityTypeManager->getDefinition(Argument::type('string'))
->will(function ($args) use ($definitions) {
if (isset($definitions[$args[0]])) {
return $definitions[$args[0]];
}
throw new PluginNotFoundException($args[0]);
});
$this->entityTypeManager->getDefinition(Argument::type('string'), FALSE)
->will(function ($args) use ($definitions) {
if (isset($definitions[$args[0]])) {
return $definitions[$args[0]];
}
});
$this->entityTypeManager->getDefinitions()->willReturn($definitions);
}
/**
* Tests the getBaseFieldDefinitions() method.
*
* @covers ::getBaseFieldDefinitions
* @covers ::buildBaseFieldDefinitions
*/
public function testGetBaseFieldDefinitions() {
$field_definition = $this->setUpEntityWithFieldDefinition();
$expected = ['id' => $field_definition];
$this->assertSame($expected, $this->entityFieldManager->getBaseFieldDefinitions('test_entity_type'));
}
/**
* Tests the getFieldDefinitions() method.
*
* @covers ::getFieldDefinitions
* @covers ::buildBundleFieldDefinitions
*/
public function testGetFieldDefinitions() {
$field_definition = $this->setUpEntityWithFieldDefinition();
$expected = ['id' => $field_definition];
$this->assertSame($expected, $this->entityFieldManager->getFieldDefinitions('test_entity_type', 'test_entity_bundle'));
}
/**
* Tests the getFieldStorageDefinitions() method.
*
* @covers ::getFieldStorageDefinitions
* @covers ::buildFieldStorageDefinitions
*/
public function testGetFieldStorageDefinitions() {
$field_definition = $this->setUpEntityWithFieldDefinition(TRUE);
$field_storage_definition = $this->prophesize(FieldStorageDefinitionInterface::class);
$field_storage_definition->getName()->willReturn('field_storage');
$definitions = ['field_storage' => $field_storage_definition->reveal()];
$this->moduleHandler->getImplementations('entity_base_field_info')->willReturn([]);
$this->moduleHandler->getImplementations('entity_field_storage_info')->willReturn(['example_module']);
$this->moduleHandler->invoke('example_module', 'entity_field_storage_info', [$this->entityType])->willReturn($definitions);
$this->moduleHandler->alter('entity_field_storage_info', $definitions, $this->entityType)->willReturn(NULL);
$expected = [
'id' => $field_definition,
'field_storage' => $field_storage_definition->reveal(),
];
$this->assertSame($expected, $this->entityFieldManager->getFieldStorageDefinitions('test_entity_type'));
}
/**
* Tests the getBaseFieldDefinitions() method with a translatable entity type.
*
* @covers ::getBaseFieldDefinitions
* @covers ::buildBaseFieldDefinitions
*
* @dataProvider providerTestGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode
*/
public function testGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode($default_langcode_key) {
$this->setUpEntityWithFieldDefinition(FALSE, 'id', ['langcode' => 'langcode', 'default_langcode' => $default_langcode_key]);
$field_definition = $this->prophesize()->willImplement(FieldDefinitionInterface::class)->willImplement(FieldStorageDefinitionInterface::class);
$field_definition->isTranslatable()->willReturn(TRUE);
$entity_class = EntityManagerTestEntity::class;
$entity_class::$baseFieldDefinitions += ['langcode' => $field_definition];
$this->entityType->isTranslatable()->willReturn(TRUE);
$definitions = $this->entityFieldManager->getBaseFieldDefinitions('test_entity_type');
$this->assertTrue(isset($definitions[$default_langcode_key]));
}
/**
* Provides test data for testGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode().
*
* @return array
* Test data.
*/
public function providerTestGetBaseFieldDefinitionsTranslatableEntityTypeDefaultLangcode() {
return [
['default_langcode'],
['custom_default_langcode_key'],
];
}
/**
* Tests the getBaseFieldDefinitions() method with a translatable entity type.
*
* @covers ::getBaseFieldDefinitions
* @covers ::buildBaseFieldDefinitions
*
* @dataProvider providerTestGetBaseFieldDefinitionsTranslatableEntityTypeLangcode
*/
public function testGetBaseFieldDefinitionsTranslatableEntityTypeLangcode($provide_key, $provide_field, $translatable) {
$keys = $provide_key ? ['langcode' => 'langcode'] : [];
$this->setUpEntityWithFieldDefinition(FALSE, 'id', $keys);
if ($provide_field) {
$field_definition = $this->prophesize()->willImplement(FieldDefinitionInterface::class)->willImplement(FieldStorageDefinitionInterface::class);
$field_definition->isTranslatable()->willReturn($translatable);
if (!$translatable) {
$field_definition->setTranslatable(!$translatable)->shouldBeCalled();
}
$entity_class = EntityManagerTestEntity::class;
$entity_class::$baseFieldDefinitions += ['langcode' => $field_definition->reveal()];
}
$this->entityType->isTranslatable()->willReturn(TRUE);
$this->entityType->getLabel()->willReturn('Test');
$this->setExpectedException(\LogicException::class, 'The Test entity type cannot be translatable as it does not define a translatable "langcode" field.');
$this->entityFieldManager->getBaseFieldDefinitions('test_entity_type');
}
/**
* Provides test data for testGetBaseFieldDefinitionsTranslatableEntityTypeLangcode().
*
* @return array
* Test data.
*/
public function providerTestGetBaseFieldDefinitionsTranslatableEntityTypeLangcode() {
return [
[FALSE, TRUE, TRUE],
[TRUE, FALSE, TRUE],
[TRUE, TRUE, FALSE],
];
}
/**
* Tests the getBaseFieldDefinitions() method with caching.
*
* @covers ::getBaseFieldDefinitions
*/
public function testGetBaseFieldDefinitionsWithCaching() {
$field_definition = $this->setUpEntityWithFieldDefinition();
$expected = ['id' => $field_definition];
$this->cacheBackend->get('entity_base_field_definitions:test_entity_type:en')
->willReturn(FALSE)
->shouldBeCalled();
$this->cacheBackend->set('entity_base_field_definitions:test_entity_type:en', Argument::any(), Cache::PERMANENT, ['entity_types', 'entity_field_info'])
->will(function ($args) {
$data = (object) ['data' => $args[1]];
$this->get('entity_base_field_definitions:test_entity_type:en')
->willReturn($data)
->shouldBeCalled();
})
->shouldBeCalled();
$this->assertSame($expected, $this->entityFieldManager->getBaseFieldDefinitions('test_entity_type'));
$this->entityFieldManager->testClearEntityFieldInfo();
$this->assertSame($expected, $this->entityFieldManager->getBaseFieldDefinitions('test_entity_type'));
}
/**
* Tests the getFieldDefinitions() method with caching.
*
* @covers ::getFieldDefinitions
*/
public function testGetFieldDefinitionsWithCaching() {
$field_definition = $this->setUpEntityWithFieldDefinition(FALSE, 'id');
$expected = ['id' => $field_definition];
$this->cacheBackend->get('entity_base_field_definitions:test_entity_type:en')
->willReturn((object) ['data' => $expected])
->shouldBeCalledTimes(2);
$this->cacheBackend->get('entity_bundle_field_definitions:test_entity_type:test_bundle:en')
->willReturn(FALSE)
->shouldBeCalledTimes(1);
$this->cacheBackend->set('entity_bundle_field_definitions:test_entity_type:test_bundle:en', Argument::any(), Cache::PERMANENT, ['entity_types', 'entity_field_info'])
->will(function ($args) {
$data = (object) ['data' => $args[1]];
$this->get('entity_bundle_field_definitions:test_entity_type:test_bundle:en')
->willReturn($data)
->shouldBeCalled();
})
->shouldBeCalled();
$this->assertSame($expected, $this->entityFieldManager->getFieldDefinitions('test_entity_type', 'test_bundle'));
$this->entityFieldManager->testClearEntityFieldInfo();
$this->assertSame($expected, $this->entityFieldManager->getFieldDefinitions('test_entity_type', 'test_bundle'));
}
/**
* Tests the getFieldStorageDefinitions() method with caching.
*
* @covers ::getFieldStorageDefinitions
*/
public function testGetFieldStorageDefinitionsWithCaching() {
$field_definition = $this->setUpEntityWithFieldDefinition(TRUE, 'id');
$field_storage_definition = $this->prophesize(FieldStorageDefinitionInterface::class);
$field_storage_definition->getName()->willReturn('field_storage');
$definitions = ['field_storage' => $field_storage_definition->reveal()];
$this->moduleHandler->getImplementations('entity_field_storage_info')->willReturn(['example_module']);
$this->moduleHandler->invoke('example_module', 'entity_field_storage_info', [$this->entityType])->willReturn($definitions);
$this->moduleHandler->alter('entity_field_storage_info', $definitions, $this->entityType)->willReturn(NULL);
$expected = [
'id' => $field_definition,
'field_storage' => $field_storage_definition->reveal(),
];
$this->cacheBackend->get('entity_base_field_definitions:test_entity_type:en')
->willReturn((object) ['data' => ['id' => $expected['id']]])
->shouldBeCalledTimes(2);
$this->cacheBackend->get('entity_field_storage_definitions:test_entity_type:en')->willReturn(FALSE);
$this->cacheBackend->set('entity_field_storage_definitions:test_entity_type:en', Argument::any(), Cache::PERMANENT, ['entity_types', 'entity_field_info'])
->will(function () use ($expected) {
$this->get('entity_field_storage_definitions:test_entity_type:en')
->willReturn((object) ['data' => $expected])
->shouldBeCalled();
})
->shouldBeCalled();
$this->assertSame($expected, $this->entityFieldManager->getFieldStorageDefinitions('test_entity_type'));
$this->entityFieldManager->testClearEntityFieldInfo();
$this->assertSame($expected, $this->entityFieldManager->getFieldStorageDefinitions('test_entity_type'));
}
/**
* Tests the getBaseFieldDefinitions() method with an invalid definition.
*
* @covers ::getBaseFieldDefinitions
* @covers ::buildBaseFieldDefinitions
*/
public function testGetBaseFieldDefinitionsInvalidDefinition() {
$this->setUpEntityWithFieldDefinition(FALSE, 'langcode', ['langcode' => 'langcode']);
$this->entityType->isTranslatable()->willReturn(TRUE);
$this->entityType->getLabel()->willReturn('the_label');
$this->setExpectedException(\LogicException::class);
$this->entityFieldManager->getBaseFieldDefinitions('test_entity_type');
}
/**
* Tests that getFieldDefinitions() method sets the 'provider' definition key.
*
* @covers ::getFieldDefinitions
* @covers ::buildBundleFieldDefinitions
*/
public function testGetFieldDefinitionsProvider() {
$this->setUpEntityWithFieldDefinition(TRUE);
$module = 'entity_manager_test_module';
// @todo Mock FieldDefinitionInterface once it exposes a proper provider
// setter. See https://www.drupal.org/node/2225961.
$field_definition = $this->prophesize(BaseFieldDefinition::class);
// We expect two calls as the field definition will be returned from both
// base and bundle entity field info hook implementations.
$field_definition->getProvider()->shouldBeCalled();
$field_definition->setProvider($module)->shouldBeCalledTimes(2);
$field_definition->setName(0)->shouldBeCalledTimes(2);
$field_definition->setTargetEntityTypeId('test_entity_type')->shouldBeCalled();
$field_definition->setTargetBundle(NULL)->shouldBeCalled();
$field_definition->setTargetBundle('test_bundle')->shouldBeCalled();
$this->moduleHandler->getImplementations(Argument::type('string'))->willReturn([$module]);
$this->moduleHandler->invoke($module, 'entity_base_field_info', [$this->entityType])->willReturn([$field_definition->reveal()]);
$this->moduleHandler->invoke($module, 'entity_bundle_field_info', Argument::type('array'))->willReturn([$field_definition->reveal()]);
$this->entityFieldManager->getFieldDefinitions('test_entity_type', 'test_bundle');
}
/**
* Prepares an entity that defines a field definition.
*
* @param bool $custom_invoke_all
* (optional) Whether the test will set up its own
* ModuleHandlerInterface::invokeAll() implementation. Defaults to FALSE.
* @param string $field_definition_id
* (optional) The ID to use for the field definition. Defaults to 'id'.
* @param array $entity_keys
* (optional) An array of entity keys for the mocked entity type. Defaults
* to an empty array.
*
* @return \Drupal\Core\Field\BaseFieldDefinition|\Prophecy\Prophecy\ProphecyInterface
* A field definition object.
*/
protected function setUpEntityWithFieldDefinition($custom_invoke_all = FALSE, $field_definition_id = 'id', $entity_keys = []) {
$field_type_manager = $this->prophesize(FieldTypePluginManagerInterface::class);
$field_type_manager->getDefaultStorageSettings('boolean')->willReturn([]);
$field_type_manager->getDefaultFieldSettings('boolean')->willReturn([]);
$this->container->get('plugin.manager.field.field_type')->willReturn($field_type_manager->reveal());
$string_translation = $this->prophesize(TranslationInterface::class);
$this->container->get('string_translation')->willReturn($string_translation->reveal());
$entity_class = EntityManagerTestEntity::class;
$field_definition = $this->prophesize()->willImplement(FieldDefinitionInterface::class)->willImplement(FieldStorageDefinitionInterface::class);
$entity_class::$baseFieldDefinitions = [
$field_definition_id => $field_definition->reveal(),
];
$entity_class::$bundleFieldDefinitions = [];
if (!$custom_invoke_all) {
$this->moduleHandler->getImplementations(Argument::cetera())->willReturn([]);
}
// Mock the base field definition override.
$override_entity_type = $this->prophesize(EntityTypeInterface::class);
$this->entityType = $this->prophesize(EntityTypeInterface::class);
$this->setUpEntityTypeDefinitions(['test_entity_type' => $this->entityType, 'base_field_override' => $override_entity_type]);
$storage = $this->prophesize(ConfigEntityStorageInterface::class);
$storage->loadMultiple(Argument::type('array'))->willReturn([]);
$this->entityTypeManager->getStorage('base_field_override')->willReturn($storage->reveal());
$this->entityType->getClass()->willReturn($entity_class);
$this->entityType->getKeys()->willReturn($entity_keys + ['default_langcode' => 'default_langcode']);
$this->entityType->entityClassImplements(FieldableEntityInterface::class)->willReturn(TRUE);
$this->entityType->isTranslatable()->willReturn(FALSE);
$this->entityType->getProvider()->willReturn('the_provider');
$this->entityType->id()->willReturn('the_entity_id');
return $field_definition->reveal();
}
/**
* Tests the clearCachedFieldDefinitions() method.
*
* @covers ::clearCachedFieldDefinitions
*/
public function testClearCachedFieldDefinitions() {
$this->setUpEntityTypeDefinitions();
$this->cacheTagsInvalidator->invalidateTags(['entity_field_info'])->shouldBeCalled();
$this->container->get('cache_tags.invalidator')->willReturn($this->cacheTagsInvalidator->reveal())->shouldBeCalled();
$this->typedDataManager->clearCachedDefinitions()->shouldBeCalled();
$this->entityFieldManager->clearCachedFieldDefinitions();
}
/**
* @covers ::getExtraFields
*/
public function testGetExtraFields() {
$this->setUpEntityTypeDefinitions();
$entity_type_id = $this->randomMachineName();
$bundle = $this->randomMachineName();
$language_code = 'en';
$hook_bundle_extra_fields = [
$entity_type_id => [
$bundle => [
'form' => [
'foo_extra_field' => [
'label' => 'Foo',
],
],
],
],
];
$processed_hook_bundle_extra_fields = $hook_bundle_extra_fields;
$processed_hook_bundle_extra_fields[$entity_type_id][$bundle] += [
'display' => [],
];
$cache_id = 'entity_bundle_extra_fields:' . $entity_type_id . ':' . $bundle . ':' . $language_code;
$language = new Language(['id' => $language_code]);
$this->languageManager->getCurrentLanguage()
->willReturn($language)
->shouldBeCalledTimes(1);
$this->cacheBackend->get($cache_id)->shouldBeCalled();
$this->moduleHandler->invokeAll('entity_extra_field_info')->willReturn($hook_bundle_extra_fields);
$this->moduleHandler->alter('entity_extra_field_info', $hook_bundle_extra_fields)->shouldBeCalled();
$this->cacheBackend->set($cache_id, $processed_hook_bundle_extra_fields[$entity_type_id][$bundle], Cache::PERMANENT, ['entity_field_info'])->shouldBeCalled();
$this->assertSame($processed_hook_bundle_extra_fields[$entity_type_id][$bundle], $this->entityFieldManager->getExtraFields($entity_type_id, $bundle));
}
/**
* @covers ::getFieldMap
*/
public function testGetFieldMap() {
$this->entityTypeBundleInfo->getBundleInfo('test_entity_type')->willReturn([])->shouldBeCalled();
// Set up a content entity type.
$entity_type = $this->prophesize(ContentEntityTypeInterface::class);
$entity_class = EntityManagerTestEntity::class;
// Define an ID field definition as a base field.
$id_definition = $this->prophesize(FieldDefinitionInterface::class);
$id_definition->getType()->willReturn('integer');
$base_field_definitions = [
'id' => $id_definition->reveal(),
];
$entity_class::$baseFieldDefinitions = $base_field_definitions;
// Set up the stored bundle field map.
$key_value_store = $this->prophesize(KeyValueStoreInterface::class);
$this->keyValueFactory->get('entity.definitions.bundle_field_map')->willReturn($key_value_store->reveal());
$key_value_store->getAll()->willReturn([
'test_entity_type' => [
'by_bundle' => [
'type' => 'string',
'bundles' => ['second_bundle' => 'second_bundle'],
],
],
]);
// Set up a non-content entity type.
$non_content_entity_type = $this->prophesize(EntityTypeInterface::class);
// Mock the base field definition override.
$override_entity_type = $this->prophesize(EntityTypeInterface::class);
$this->setUpEntityTypeDefinitions([
'test_entity_type' => $entity_type,
'non_fieldable' => $non_content_entity_type,
'base_field_override' => $override_entity_type,
]);
$entity_type->getClass()->willReturn($entity_class);
$entity_type->getKeys()->willReturn(['default_langcode' => 'default_langcode']);
$entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(TRUE);
$entity_type->isTranslatable()->shouldBeCalled();
$entity_type->getProvider()->shouldBeCalled();
$non_content_entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(FALSE);
$override_entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(FALSE);
// Set up the entity type bundle info to return two bundles for the
// fieldable entity type.
$this->entityTypeBundleInfo->getBundleInfo('test_entity_type')->willReturn([
'first_bundle' => 'first_bundle',
'second_bundle' => 'second_bundle',
])->shouldBeCalled();
$this->moduleHandler->getImplementations('entity_base_field_info')->willReturn([]);
$expected = [
'test_entity_type' => [
'id' => [
'type' => 'integer',
'bundles' => ['first_bundle' => 'first_bundle', 'second_bundle' => 'second_bundle'],
],
'by_bundle' => [
'type' => 'string',
'bundles' => ['second_bundle' => 'second_bundle'],
],
]
];
$this->assertEquals($expected, $this->entityFieldManager->getFieldMap());
}
/**
* @covers ::getFieldMap
*/
public function testGetFieldMapFromCache() {
$expected = [
'test_entity_type' => [
'id' => [
'type' => 'integer',
'bundles' => ['first_bundle' => 'first_bundle', 'second_bundle' => 'second_bundle'],
],
'by_bundle' => [
'type' => 'string',
'bundles' => ['second_bundle' => 'second_bundle'],
],
]
];
$this->setUpEntityTypeDefinitions();
$this->cacheBackend->get('entity_field_map')->willReturn((object) ['data' => $expected]);
// Call the field map twice to make sure the static cache works.
$this->assertEquals($expected, $this->entityFieldManager->getFieldMap());
$this->assertEquals($expected, $this->entityFieldManager->getFieldMap());
}
/**
* @covers ::getFieldMapByFieldType
*/
public function testGetFieldMapByFieldType() {
// Set up a content entity type.
$entity_type = $this->prophesize(ContentEntityTypeInterface::class);
$entity_class = EntityManagerTestEntity::class;
// Set up the entity type bundle info to return two bundles for the
// fieldable entity type.
$this->entityTypeBundleInfo->getBundleInfo('test_entity_type')->willReturn([
'first_bundle' => 'first_bundle',
'second_bundle' => 'second_bundle',
])->shouldBeCalled();
$this->moduleHandler->getImplementations('entity_base_field_info')->willReturn([])->shouldBeCalled();
// Define an ID field definition as a base field.
$id_definition = $this->prophesize(FieldDefinitionInterface::class);
$id_definition->getType()->willReturn('integer')->shouldBeCalled();
$base_field_definitions = [
'id' => $id_definition->reveal(),
];
$entity_class::$baseFieldDefinitions = $base_field_definitions;
// Set up the stored bundle field map.
$key_value_store = $this->prophesize(KeyValueStoreInterface::class);
$this->keyValueFactory->get('entity.definitions.bundle_field_map')->willReturn($key_value_store->reveal())->shouldBeCalled();
$key_value_store->getAll()->willReturn([
'test_entity_type' => [
'by_bundle' => [
'type' => 'string',
'bundles' => ['second_bundle' => 'second_bundle'],
],
],
])->shouldBeCalled();
// Mock the base field definition override.
$override_entity_type = $this->prophesize(EntityTypeInterface::class);
$this->setUpEntityTypeDefinitions([
'test_entity_type' => $entity_type,
'base_field_override' => $override_entity_type,
]);
$entity_type->getClass()->willReturn($entity_class)->shouldBeCalled();
$entity_type->getKeys()->willReturn(['default_langcode' => 'default_langcode'])->shouldBeCalled();
$entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(TRUE)->shouldBeCalled();
$entity_type->isTranslatable()->shouldBeCalled();
$entity_type->getProvider()->shouldBeCalled();
$override_entity_type->entityClassImplements(FieldableEntityInterface::class)->willReturn(FALSE)->shouldBeCalled();
$integerFields = $this->entityFieldManager->getFieldMapByFieldType('integer');
$this->assertCount(1, $integerFields['test_entity_type']);
$this->assertArrayNotHasKey('non_fieldable', $integerFields);
$this->assertArrayHasKey('id', $integerFields['test_entity_type']);
$this->assertArrayNotHasKey('by_bundle', $integerFields['test_entity_type']);
$stringFields = $this->entityFieldManager->getFieldMapByFieldType('string');
$this->assertCount(1, $stringFields['test_entity_type']);
$this->assertArrayNotHasKey('non_fieldable', $stringFields);
$this->assertArrayHasKey('by_bundle', $stringFields['test_entity_type']);
$this->assertArrayNotHasKey('id', $stringFields['test_entity_type']);
}
}
class TestEntityFieldManager extends EntityFieldManager {
/**
* Allows the static caches to be cleared.
*/
public function testClearEntityFieldInfo() {
$this->baseFieldDefinitions = [];
$this->fieldDefinitions = [];
$this->fieldStorageDefinitions = [];
}
}
/**
* Provides a content entity with dummy static method implementations.
*/
abstract class EntityManagerTestEntity implements \Iterator, ContentEntityInterface {
/**
* The base field definitions.
*
* @var \Drupal\Core\Field\FieldDefinitionInterface[]
*/
public static $baseFieldDefinitions = [];
/**
* The bundle field definitions.
*
* @var array[]
* Keys are entity type IDs, values are arrays of which the keys are bundle
* names and the values are field definitions.
*/
public static $bundleFieldDefinitions = [];
/**
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
return static::$baseFieldDefinitions;
}
/**
* {@inheritdoc}
*/
public static function bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {
return isset(static::$bundleFieldDefinitions[$entity_type->id()][$bundle]) ? static::$bundleFieldDefinitions[$entity_type->id()][$bundle] : [];
}
}
| {
"content_hash": "e0dc669d0df4c14ef2929aacb01a7e50",
"timestamp": "",
"source": "github",
"line_count": 822,
"max_line_length": 342,
"avg_line_length": 39.289537712895374,
"alnum_prop": 0.6952873420857072,
"repo_name": "kgatjens/d8_vm_vagrant",
"id": "4985470de0aadf5cf7b5c5f48fd69dddc02c976d",
"size": "32296",
"binary": false,
"copies": "193",
"ref": "refs/heads/master",
"path": "project/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "9038"
},
{
"name": "CSS",
"bytes": "962176"
},
{
"name": "HTML",
"bytes": "1769288"
},
{
"name": "JavaScript",
"bytes": "1302117"
},
{
"name": "PHP",
"bytes": "40520904"
},
{
"name": "PLpgSQL",
"bytes": "2020"
},
{
"name": "PowerShell",
"bytes": "471"
},
{
"name": "Ruby",
"bytes": "6985"
},
{
"name": "Shell",
"bytes": "85027"
}
],
"symlink_target": ""
} |
cwd=$(pwd)
source base.sh
run . cabal update
# Install the codeworld-base and codeworld-api packages
run . cabal_install --ghcjs ./codeworld-prediction \
./codeworld-error-sanitizer \
./codeworld-api \
./codeworld-base \
./codeworld-game-api \
QuickCheck
run codeworld-base cabal configure --ghcjs
run codeworld-base cabal haddock --html
run codeworld-base cabal haddock --hoogle
# Work-around for haddock dropping pattern synonyms in hoogle output.
grep -r -s -h 'pattern\s*[A-Za-z_0-9]*\s*::.*' codeworld-base/ \
>> web/codeworld-base.txt
run codeworld-api cabal configure --ghcjs
run codeworld-api cabal haddock --html
run codeworld-api cabal haddock --hoogle
# Build codeworld-server from this project.
run . cabal_install ./funblocks-server \
./codeworld-error-sanitizer \
./codeworld-compiler \
./codeworld-server \
./codeworld-game-api \
./codeworld-prediction \
./codeworld-api \
./codeworld-collab-server
# Build the JavaScript client code for FunBlocks, the block-based UI.
run . cabal_install --ghcjs ./funblocks-client
| {
"content_hash": "956fc90d45b417d5eb6bddf010ba0615",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 69,
"avg_line_length": 33.75,
"alnum_prop": 0.577037037037037,
"repo_name": "parvmor/codeworld",
"id": "d4289f068f05409de77da258e6949a13b958a04e",
"size": "1971",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "build.sh",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "24330"
},
{
"name": "HTML",
"bytes": "53324"
},
{
"name": "Haskell",
"bytes": "462707"
},
{
"name": "JavaScript",
"bytes": "241524"
},
{
"name": "Makefile",
"bytes": "296"
},
{
"name": "Shell",
"bytes": "12011"
}
],
"symlink_target": ""
} |
package org.vaadin.patrik.events;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
public class EventListenerList<LISTENER extends Listener<EVENT>, EVENT> implements Serializable {
private final List<LISTENER> listeners;
public EventListenerList() {
listeners = new ArrayList<LISTENER>();
}
public void addListener(LISTENER l) {
listeners.add(l);
}
public void removeListener(LISTENER l) {
listeners.remove(l);
}
public void clearListeners() {
listeners.clear();
}
public void dispatch(EVENT event) {
for(LISTENER l : listeners) {
l.onEvent(event);
}
}
} | {
"content_hash": "c38da1c717a59c7bca13b476c68f7040",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 97,
"avg_line_length": 23.096774193548388,
"alnum_prop": 0.63268156424581,
"repo_name": "thinwire/GridFastNavigation",
"id": "a89350b1985a02f6c3439806684618e890294a53",
"size": "716",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "GridFastNavigation-addon/src/main/java/org/vaadin/patrik/events/EventListenerList.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1108"
},
{
"name": "Java",
"bytes": "68063"
}
],
"symlink_target": ""
} |
'use strict';
var tripExchange = angular.module('tripExchange', ['ngRoute', 'ngResource', 'ngCookies', 'kendo.directives']).
config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/home', {
templateUrl: 'templates/home/home.html',
controller: 'HomeController',
controllerAs: 'vm'
})
.when('/unauthorized', {
templateUrl: 'templates/auth/unauthorized.html'
})
.when('/register', {
templateUrl: 'templates/auth/register.html',
controller: 'SignUpCtrl'
})
.when('/drivers', {
templateUrl: 'templates/drivers/drivers.html',
controller: 'DriversController',
controllerAs: 'vm'
})
.when('/drivers/:id', {
templateUrl: 'templates/drivers/drivers-details.html',
controller: 'DriverDetailsController',
controllerAs: 'vm'
})
.when('/trips', {
templateUrl: 'templates/trips/trips.html',
controller: 'TripsController',
controllerAs: 'vm'
})
.when('/trips/create', {
templateUrl: 'templates/trips/create-trip.html',
controller: 'TripsCreateController',
controllerAs: 'vm'
})
.when('/trips/:id', {
templateUrl: 'templates/trips/trip-details.html',
controller: 'TripsDetailsController',
controllerAs: 'vm'
})
.otherwise({ redirectTo: '/home' });
}])
.value('toastr', toastr)
//.constant('baseServiceUrl', 'http://localhost:1337/');
.constant('baseServiceUrl', 'http://spa2014.bgcoder.com/'); | {
"content_hash": "b0e1970fa81da1536f6f6c8ccc1d4fe9",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 110,
"avg_line_length": 39.680851063829785,
"alnum_prop": 0.5040214477211796,
"repo_name": "AdrianApostolov/TelerikAcademy",
"id": "90be6d681ad9097c22b0ffc2c390e8968f992c18",
"size": "1865",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Homeworks/SinglePageApplication/Exam 2014 - Trip Exchange/TripExchange.Web.Client/app/app.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "21510"
},
{
"name": "C#",
"bytes": "1819391"
},
{
"name": "CSS",
"bytes": "158896"
},
{
"name": "HTML",
"bytes": "6010402"
},
{
"name": "JavaScript",
"bytes": "1395750"
},
{
"name": "Python",
"bytes": "3523"
},
{
"name": "SQLPL",
"bytes": "941"
},
{
"name": "Shell",
"bytes": "111"
},
{
"name": "XSLT",
"bytes": "3922"
}
],
"symlink_target": ""
} |
hljs.registerLanguage("haskell",function(){"use strict";return function(e){
var n={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]
},i={className:"meta",begin:"{-#",end:"#-}"},a={className:"meta",begin:"^#",
end:"$"},s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={
begin:"\\(",end:"\\)",illegal:'"',contains:[i,a,{className:"type",
begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{
begin:"[_a-z][\\w']*"}),n]};return{name:"Haskell",aliases:["hs"],
keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",
contains:[{beginKeywords:"module",end:"where",keywords:"module where",
contains:[l,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",
keywords:"import qualified as hiding",contains:[l,n],illegal:"\\W\\.|;"},{
className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",
keywords:"class family instance where",contains:[s,l,n]},{className:"class",
begin:"\\b(data|(new)?type)\\b",end:"$",
keywords:"data family type newtype deriving",contains:[i,s,l,{begin:"{",end:"}",
contains:l.contains},n]},{beginKeywords:"default",end:"$",contains:[s,l,n]},{
beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{
begin:"\\bforeign\\b",end:"$",
keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",
contains:[s,e.QUOTE_STRING_MODE,n]},{className:"meta",
begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"
},i,a,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,s,e.inherit(e.TITLE_MODE,{
begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}]}}}()); | {
"content_hash": "0548b88fe4c1e9638ffc42ad7afd8445",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 241,
"avg_line_length": 74.6086956521739,
"alnum_prop": 0.6468531468531469,
"repo_name": "cdnjs/cdnjs",
"id": "4ed39ba4746e3652f6db225bc64666a2124d14ff",
"size": "1716",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "ajax/libs/highlight.js/10.3.2/languages/haskell.min.js",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
from django.core.management.base import BaseCommand, CommandError
from stalku.core.management.commands._lectures import crawl_institutes, \
crawl_lectures_grad, crawl_lecture_grad
from stalku.core.models import Lecture, LectureInstance, Institute
class Command(BaseCommand):
help = 'Crawls DAC website'
def add_arguments(self, parser):
parser.add_argument('year', type=int,
help='Year to get lectures from.')
parser.add_argument('semester', type=int,
help='Semester to get lectures from.')
parser.add_argument('degree_level', nargs='?', default='grad',
type=str, choices=[code for code, _ in Lecture.DEGREE_LEVELS],
help='Specify the degree level to get information from.')
def handle(self, *args, **options):
institutes = crawl_institutes(**options)
self.stdout.write('Institutes for \'{}\' ({}):'.format(
options['degree_level'],
len(institutes))
)
for institute in institutes:
self.stdout.write('\t- {}'.format(institute['name']))
Institute.objects.update_or_create(**institute)
for institute in Institute.objects.all():
# Getting lectures
code, name = institute.code, institute.name
lectures = crawl_lectures_grad(code, **options)
self.stdout.write('Getting lectures for {}: {} found. '.format(name, len(lectures)))
existing_lecs = [x['code'] for x in Lecture.objects.values('code')]
for l in [lec for lec in lectures if lec.replace('_', ' ') not in existing_lecs]:
try:
lecture_args = crawl_lecture_grad(l, **options)
lecture_args['institute'] = institute
groups = lecture_args.pop('groups', [])
obj = Lecture.objects.create(**lecture_args)
for g in groups:
LectureInstance.objects.create(
lecture=obj, group=g,
year=options['year'],
semester=options['semester']
)
except Exception as e:
raise CommandError('Error trying to parse {}: {}'.format(l, e))
| {
"content_hash": "68632e58de4585e9e1a0239376395150",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 96,
"avg_line_length": 43.77777777777778,
"alnum_prop": 0.5516074450084603,
"repo_name": "henriquenogueira/stalku",
"id": "46cfc128388cc7bff839d3e37ecf3d36614721cd",
"size": "2364",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "stalku/core/management/commands/crawl_lectures.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "25714"
}
],
"symlink_target": ""
} |
from azure.cli.core.help_files import helps
# pylint: disable=line-too-long, too-many-lines
helps['storage entity insert'] = """
type: command
short-summary: Insert an entity into a table.
parameters:
- name: --table-name -t
type: string
short-summary: The name of the table to insert the entity into.
- name: --entity -e
type: list
short-summary: A space-separated list of key=value pairs. Must contain a PartitionKey and a RowKey.
long-summary: The PartitionKey and RowKey must be unique within the table, and may be up to 64Kb in size. If using an integer value as a key,
convert it to a fixed-width string which can be canonically sorted.
For example, convert the integer value 1 to the string value "0000001" to ensure proper sorting.
- name: --if-exists
type: string
short-summary: Behavior when an entity already exists for the specified PartitionKey and RowKey.
- name: --timeout
short-summary: The server timeout, expressed in seconds.
"""
helps['storage blob upload'] = """
type: command
short-summary: Upload a file to a storage blob.
long-summary: Creates a new blob from a file path, or updates the content of an existing blob with automatic chunking and progress notifications.
examples:
- name: Upload to a blob.
text: az storage blob upload -f /path/to/file -c MyContainer -n MyBlob
"""
helps['storage file upload'] = """
type: command
short-summary: Upload a file to a share that uses the SMB 3.0 protocol.
long-summary: Creates or updates an Azure file from a source path with automatic chunking and progress notifications.
examples:
- name: Upload to a local file to a share.
text: az storage file upload -s MyShare -source /path/to/file
"""
helps['storage blob show'] = """
type: command
short-summary: Get the details of a blob.
examples:
- name: Show all properties of a blob.
text: az storage blob show -c MyContainer -n MyBlob
"""
helps['storage blob delete'] = """
type: command
short-summary: Mark a blob or snapshot for deletion.
long-summary: >
The blob is marked for later deletion during garbage collection. In order to delete a blob, all of its snapshots must also be deleted.
Both can be removed at the same time.
examples:
- name: Delete a blob.
text: az storage blob delete -c MyContainer -n MyBlob
"""
helps['storage account create'] = """
type: command
short-summary: Create a storage account.
examples:
- name: Create a storage account 'MyStorageAccount' in resource group 'MyResourceGroup' in the West US region with locally redundant storage.
text: az storage account create -n MyStorageAccount -g MyResourceGroup -l westus --sku Standard_LRS
min_profile: latest
- name: Create a storage account 'MyStorageAccount' in resource group 'MyResourceGroup' in the West US region with locally redundant storage.
text: az storage account create -n MyStorageAccount -g MyResourceGroup -l westus --account-type Standard_LRS
max_profile: 2017-03-09-profile
"""
helps['storage container create'] = """
type: command
short-summary: Create a container in a storage account.
examples:
- name: Create a storage container in a storage account.
text: az storage container create -n MyStorageContainer
- name: Create a storage container in a storage account and return an error if the container already exists.
text: az storage container create -n MyStorageContainer --fail-on-exist
"""
helps['storage account list'] = """
type: command
short-summary: List storage accounts.
examples:
- name: List all storage accounts in a subscription.
text: az storage account list
- name: List all storage accounts in a resource group.
text: az storage account list -g MyResourceGroup
"""
helps['storage account show'] = """
type: command
short-summary: Show storage account properties.
examples:
- name: Show properties for a storage account by resource ID.
text: az storage account show --ids /subscriptions/{SubID}/resourceGroups/{MyResourceGroup}/providers/Microsoft.Storage/storageAccounts/{MyStorageAccount}
- name: Show properties for a storage account using an account name and resource group.
text: az storage account show -g MyResourceGroup -n MyStorageAccount
"""
helps['storage blob list'] = """
type: command
short-summary: List storage blobs in a container.
examples:
- name: List all storage blobs in a container.
text: az storage blob list -c MyContainer
"""
helps['storage account delete'] = """
type: command
short-summary: Delete a storage account.
examples:
- name: Delete a storage account using a resource ID.
text: az storage account delete --ids /subscriptions/{SubID}/resourceGroups/{MyResourceGroup}/providers/Microsoft.Storage/storageAccounts/{MyStorageAccount}
- name: Delete a storage account using an account name and resource group.
text: az storage account delete -n MyStorageAccount -g MyResourceGroup
"""
helps['storage account show-connection-string'] = """
type: command
short-summary: Get the connection string for a storage account.
examples:
- name: Get a connection string for a storage account.
text: az storage account show-connection-string -g MyResourceGroup -n MyStorageAccount
"""
helps['storage'] = """
type: group
short-summary: Manage Azure Cloud Storage resources.
"""
helps['storage account'] = """
type: group
short-summary: Manage storage accounts.
"""
helps['storage account update'] = """
type: command
short-summary: Update the properties of a storage account.
"""
helps['storage account keys'] = """
type: group
short-summary: Manage storage account keys.
"""
helps['storage account keys list'] = """
type: command
short-summary: List the primary and secondary keys for a storage account.
examples:
- name: List the primary and secondary keys for a storage account.
text: az storage account keys list -g MyResourceGroup -n MyStorageAccount
"""
helps['storage blob'] = """
type: group
short-summary: Manage object storage for unstructured data (blobs).
"""
helps['storage blob exists'] = """
type: command
short-summary: Check for the existence of a blob in a container.
"""
helps['storage blob list'] = """
type: command
short-summary: List blobs in a given container.
"""
helps['storage blob copy'] = """
type: group
short-summary: Manage blob copy operations.
"""
helps['storage blob incremental-copy'] = """
type: group
short-summary: Manage blob incremental copy operations.
"""
helps['storage blob lease'] = """
type: group
short-summary: Manage storage blob leases.
"""
helps['storage blob metadata'] = """
type: group
short-summary: Manage blob metadata.
"""
helps['storage blob service-properties'] = """
type: group
short-summary: Manage storage blob service properties.
"""
helps['storage blob set-tier'] = """
type: command
short-summary: Set the block or page tiers on the blob.
long-summary: >
For block blob this command only supports block blob on standard storage accounts.
For page blob, this command only supports for page blobs on premium accounts.
"""
helps['storage blob copy start-batch'] = """
type: command
short-summary: Copy multiple blobs or files to a blob container.
parameters:
- name: --destination-container
type: string
short-summary: The blob container where the selected source files or blobs will be copied to.
- name: --pattern
type: string
short-summary: The pattern used for globbing files or blobs in the source. The supported patterns are '*', '?', '[seq', and '[!seq]'.
- name: --dryrun
type: bool
short-summary: List the files or blobs to be uploaded. No actual data transfer will occur.
- name: --source-account-name
type: string
short-summary: The source storage account from which the files or blobs are copied to the destination. If omitted, the source account is used.
- name: --source-account-key
type: string
short-summary: The account key for the source storage account.
- name: --source-container
type: string
short-summary: The source container from which blobs are copied.
- name: --source-share
type: string
short-summary: The source share from which files are copied.
- name: --source-uri
type: string
short-summary: A URI specifying a file share or blob container from which the files or blobs are copied.
long-summary: If the source is in another account, the source must either be public or be authenticated by using a shared access signature.
- name: --source-sas
type: string
short-summary: The shared access signature for the source storage account.
"""
helps['storage container'] = """
type: group
short-summary: Manage blob storage containers.
"""
helps['storage container exists'] = """
type: command
short-summary: Check for the existence of a storage container.
"""
helps['storage container list'] = """
type: command
short-summary: List containers in a storage account.
"""
helps['storage container lease'] = """
type: group
short-summary: Manage blob storage container leases.
"""
helps['storage container metadata'] = """
type: group
short-summary: Manage container metadata.
"""
helps['storage container policy'] = """
type: group
short-summary: Manage container stored access policies.
"""
helps['storage cors'] = """
type: group
short-summary: Manage storage service Cross-Origin Resource Sharing (CORS).
"""
helps['storage cors add'] = """
type: command
short-summary: Add a CORS rule to a storage account.
parameters:
- name: --services
short-summary: >
The storage service(s) to add rules to. Allowed options are: (b)lob, (f)ile,
(q)ueue, (t)able. Can be combined.
- name: --max-age
short-summary: The maximum number of seconds the client/browser should cache a preflight response.
- name: --origins
short-summary: List of origin domains that will be allowed via CORS, or "*" to allow all domains.
- name: --methods
short-summary: List of HTTP methods allowed to be executed by the origin.
- name: --allowed-headers
short-summary: List of response headers allowed to be part of the cross-origin request.
- name: --exposed-headers
short-summary: List of response headers to expose to CORS clients.
"""
helps['storage cors clear'] = """
type: command
short-summary: Remove all CORS rules from a storage account.
parameters:
- name: --services
short-summary: >
The storage service(s) to remove rules from. Allowed options are: (b)lob, (f)ile,
(q)ueue, (t)able. Can be combined.
"""
helps['storage cors list'] = """
type: command
short-summary: List all CORS rules for a storage account.
parameters:
- name: --services
short-summary: >
The storage service(s) to list rules for. Allowed options are: (b)lob, (f)ile,
(q)ueue, (t)able. Can be combined.
"""
helps['storage directory'] = """
type: group
short-summary: Manage file storage directories.
"""
helps['storage directory exists'] = """
type: command
short-summary: Check for the existence of a storage directory.
"""
helps['storage directory metadata'] = """
type: group
short-summary: Manage file storage directory metadata.
"""
helps['storage directory list'] = """
type: command
short-summary: List directories in a share.
"""
helps['storage entity'] = """
type: group
short-summary: Manage table storage entities.
"""
helps['storage entity query'] = """
type: command
short-summary: List entities which satisfy a query.
"""
helps['storage file'] = """
type: group
short-summary: Manage file shares that use the SMB 3.0 protocol.
"""
helps['storage file exists'] = """
type: command
short-summary: Check for the existence of a file.
"""
helps['storage file list'] = """
type: command
short-summary: List files and directories in a share.
parameters:
- name: --exclude-dir
type: bool
short-summary: List only files in the given share.
"""
helps['storage file copy'] = """
type: group
short-summary: Manage file copy operations.
"""
helps['storage file metadata'] = """
type: group
short-summary: Manage file metadata.
"""
helps['storage file upload-batch'] = """
type: command
short-summary: Upload files from a local directory to an Azure Storage File Share in a batch operation.
parameters:
- name: --source -s
type: string
short-summary: The directory to upload files from.
- name: --destination -d
type: string
short-summary: The destination of the upload operation.
long-summary: The destination can be the file share URL or the share name. When the destination is the share URL, the storage account name is parsed from the URL.
- name: --pattern
type: string
short-summary: The pattern used for file globbing. The supported patterns are '*', '?', '[seq', and '[!seq]'.
- name: --dryrun
type: bool
short-summary: List the files and blobs to be uploaded. No actual data transfer will occur.
- name: --max-connections
type: integer
short-summary: The maximum number of parallel connections to use. Default value is 1.
- name: --validate-content
type: bool
short-summary: If set, calculates an MD5 hash for each range of the file for validation.
long-summary: >
The storage service checks the hash of the content that has arrived is identical to the hash that was sent.
This is mostly valuable for detecting bitflips during transfer if using HTTP instead of HTTPS. This hash is not stored.
"""
helps['storage file download-batch'] = """
type: command
short-summary: Download files from an Azure Storage File Share to a local directory in a batch operation.
parameters:
- name: --source -s
type: string
short-summary: The source of the file download operation. The source can be the file share URL or the share name.
- name: --destination -d
type: string
short-summary: The local directory where the files are downloaded to. This directory must already exist.
- name: --pattern
type: string
short-summary: The pattern used for file globbing. The supported patterns are '*', '?', '[seq', and '[!seq]'.
- name: --dryrun
type: bool
short-summary: List the files and blobs to be downloaded. No actual data transfer will occur.
- name: --max-connections
type: integer
short-summary: The maximum number of parallel connections to use. Default value is 1.
- name: --validate-content
type: bool
short-summary: If set, calculates an MD5 hash for each range of the file for validation.
long-summary: >
The storage service checks the hash of the content that has arrived is identical to the hash that was sent.
This is mostly valuable for detecting bitflips during transfer if using HTTP instead of HTTPS. This hash is not stored.
"""
helps['storage file copy start-batch'] = """
type: command
short-summary: Copy multiple files or blobs to a file share.
parameters:
- name: --destination-share
type: string
short-summary: The file share where the source data is copied to.
- name: --destination-path
type: string
short-summary: The directory where the source data is copied to. If omitted, data is copied to the root directory.
- name: --pattern
type: string
short-summary: The pattern used for globbing files and blobs. The supported patterns are '*', '?', '[seq', and '[!seq]'.
- name: --dryrun
type: bool
short-summary: List the files and blobs to be copied. No actual data transfer will occur.
- name: --source-account-name
type: string
short-summary: The source storage account to copy the data from. If omitted, the destination account is used.
- name: --source-account-key
type: string
short-summary: The account key for the source storage account. If omitted, the active login is used to determine the account key.
- name: --source-container
type: string
short-summary: The source container blobs are copied from.
- name: --source-share
type: string
short-summary: The source share files are copied from.
- name: --source-uri
type: string
short-summary: A URI that specifies a the source file share or blob container.
long-summary: If the source is in another account, the source must either be public or authenticated via a shared access signature.
- name: --source-sas
type: string
short-summary: The shared access signature for the source storage account.
"""
helps['storage logging'] = """
type: group
short-summary: Manage storage service logging information.
"""
helps['storage logging show'] = """
type: command
short-summary: Show logging settings for a storage account.
"""
helps['storage logging update'] = """
type: command
short-summary: Update logging settings for a storage account.
"""
helps['storage message'] = """
type: group
short-summary: Manage queue storage messages.
"""
helps['storage metrics'] = """
type: group
short-summary: Manage storage service metrics.
"""
helps['storage metrics show'] = """
type: command
short-summary: Show metrics settings for a storage account.
"""
helps['storage metrics update'] = """
type: command
short-summary: Update metrics settings for a storage account.
"""
helps['storage queue'] = """
type: group
short-summary: Manage storage queues.
"""
helps['storage queue list'] = """
type: command
short-summary: List queues in a storage account.
"""
helps['storage queue metadata'] = """
type: group
short-summary: Manage the metadata for a storage queue.
"""
helps['storage queue policy'] = """
type: group
short-summary: Manage shared access policies for a storage queue.
"""
helps['storage share'] = """
type: group
short-summary: Manage file shares.
"""
helps['storage share exists'] = """
type: command
short-summary: Check for the existence of a file share.
"""
helps['storage share list'] = """
type: command
short-summary: List the file shares in a storage account.
"""
helps['storage share metadata'] = """
type: group
short-summary: Manage the metadata of a file share.
"""
helps['storage share policy'] = """
type: group
short-summary: Manage shared access policies of a storage file share.
"""
helps['storage table'] = """
type: group
short-summary: Manage NoSQL key-value storage.
"""
helps['storage table list'] = """
type: command
short-summary: List tables in a storage account.
"""
helps['storage table policy'] = """
type: group
short-summary: Manage shared access policies of a storage table.
"""
helps['storage account network-rule'] = """
type: group
short-summary: Manage network rules.
"""
helps['storage account network-rule add'] = """
type: command
short-summary: Add a network rule.
long-summary: >
Rules can be created for an IPv4 address, address range (CIDR format), or a virtual network subnet.
examples:
- name: Create a rule to allow a specific address-range.
text: az storage account network-rule add -g myRg --account-name mystorageaccount --ip-address 23.45.1.0/24
- name: Create a rule to allow access for a subnet.
text: az storage account network-rule add -g myRg --account-name mystorageaccount --vnet myvnet --subnet mysubnet
"""
helps['storage account network-rule list'] = """
type: command
short-summary: List network rules.
"""
helps['storage account network-rule remove'] = """
type: command
short-summary: Remove a network rule.
"""
| {
"content_hash": "189e18ed49587989933b5245d65e182f",
"timestamp": "",
"source": "github",
"line_count": 584,
"max_line_length": 172,
"avg_line_length": 36.08390410958904,
"alnum_prop": 0.6585678356190385,
"repo_name": "QingChenmsft/azure-cli",
"id": "7b560c4d4ad18c0a5cc51a8a504eb8797084b008",
"size": "21419",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/_help.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "11279"
},
{
"name": "C++",
"bytes": "275"
},
{
"name": "JavaScript",
"bytes": "380"
},
{
"name": "Python",
"bytes": "5372365"
},
{
"name": "Shell",
"bytes": "25445"
}
],
"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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: Alfred::Log
— Documentation by YARD 0.8.7.4
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '../';
framesUrl = "../frames.html#!Alfred/Log.html";
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div id="header">
<div id="menu">
<a href="../_index.html">Index (L)</a> »
<span class='title'><span class='object_link'><a href="../Alfred.html" title="Alfred (module)">Alfred</a></span></span>
»
<span class="title">Log</span>
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="../class_list.html">
Class List
</a>
<a class="full_list_link" id="method_list_link"
href="../method_list.html">
Method List
</a>
<a class="full_list_link" id="file_list_link"
href="../file_list.html">
File List
</a>
</div>
<div class="clear"></div>
</div>
<iframe id="search_frame"></iframe>
<div id="content"><h1>Class: Alfred::Log
</h1>
<dl class="box">
<dt class="r1">Inherits:</dt>
<dd class="r1">
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">Alfred::Log</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
<dt class="r2 last">Defined in:</dt>
<dd class="r2 last">bundler/AlfredBundler.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>A simple function that wraps around the Logger class.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">See Also:</p>
<ul class="see">
<li><a href="http://www.ruby-doc.org/stdlib-2.1.2/libdoc/logger/rdoc/Logger.html" target="_parent" title="Logger">Logger</a></li>
<li><span class='object_link'><a href="Internal.html#log-instance_method" title="Alfred::Internal#log (method)">Internal#log</a></span></li>
<li><span class='object_link'><a href="Internal.html#console-instance_method" title="Alfred::Internal#console (method)">Internal#console</a></span></li>
</ul>
<p class="tag_title">Author:</p>
<ul class="author">
<li>
<div class='inline'><p>The Alfred Bundler Team</p>
</div>
</li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div>
<h2>
Instance Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#create_log_file-instance_method" title="#create_log_file (instance method)">- (Object) <strong>create_log_file</strong>(location) </a>
</span>
<span class="summary_desc"><div class='inline'><p>Creates a file to be used for Logger.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#format_log-instance_method" title="#format_log (instance method)">- (Object) <strong>format_log</strong>(log, date) </a>
</span>
<span class="summary_desc"><div class='inline'><p>Reformats a Logger object to output in standard Alfred Bundler format.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#init_log-instance_method" title="#init_log (instance method)">- (Object) <strong>init_log</strong>(location = STDERR) </a>
</span>
<span class="summary_desc"><div class='inline'><p>Creates a new log Small wrapper around a Logger object.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Log) <strong>initialize</strong>(location, level = Logger::INFO) </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'><p>Creates a log object as a class variable.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(name, *arguments) </a>
</span>
<span class="summary_desc"><div class='inline'><p>Redirects method call to log object if it is a valid Logger method.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#normalize_log_level-instance_method" title="#normalize_log_level (instance method)">- (Object) <strong>normalize_log_level</strong>(level) </a>
</span>
<span class="summary_desc"><div class='inline'><p>Normalizes the log level to keep in line with the bundler.</p>
</div></span>
</li>
</ul>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
- (<tt><span class='object_link'><a href="" title="Alfred::Log (class)">Log</a></span></tt>) <strong>initialize</strong>(location, level = Logger::INFO)
</h3><div class="docstring">
<div class="discussion">
<p>Creates a log object as a class variable</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>location</span>
<span class='type'></span>
—
<div class='inline'><p>String, IO the location for the log, either a file path
(string) or an IO (<code>STDERR</code> or <code>STDOUT</code>). <em>Note: creating a log that
passes to <code>STDOUT</code> will disrupt script filters.</em></p>
</div>
</li>
<li>
<span class='name'>level</span>
<span class='type'></span>
<em class="default">(defaults to: <tt>Logger::INFO</tt>)</em>
—
<div class='inline'><p>= Logger::INFO [type] [description]</p>
</div>
</li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
797
798
799
800
801</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'bundler/AlfredBundler.rb', line 797</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>INFO</span><span class='rparen'>)</span>
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>logger</span><span class='tstring_end'>'</span></span>
<span class='ivar'>@log</span> <span class='op'>=</span> <span class='id identifier rubyid_init_log'>init_log</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='rparen'>)</span>
<span class='ivar'>@log</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='id identifier rubyid_level'>level</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="method_missing_details" class="method_details_list">
<h2>Dynamic Method Handling</h2>
<p class="notice this">
This class handles dynamic methods through the <tt>method_missing</tt> method
</p>
<div class="method_details first">
<h3 class="signature first" id="method_missing-instance_method">
- (<tt>Object</tt>) <strong>method_missing</strong>(name, *arguments)
</h3><div class="docstring">
<div class="discussion">
<p>Redirects method call to log object if it is a valid Logger method</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>name</span>
<span class='type'></span>
—
<div class='inline'><p>String method name</p>
</div>
</li>
<li>
<span class='name'>arguments</span>
<span class='type'></span>
—
<div class='inline'><p>Array an array of arguments sent</p>
</div>
</li>
</ul>
<p class="tag_title">Raises:</p>
<ul class="raise">
<li>
<span class='type'></span>
<div class='inline'><p>StandardError when a Logger object does not respond to the method</p>
</div>
</li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
810
811
812
813</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'bundler/AlfredBundler.rb', line 810</span>
<span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span>
<span class='kw'>return</span> <span class='ivar'>@log</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_arguments'>arguments</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@log</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:method</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>StandardError</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> is not a valid logging method.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="create_log_file-instance_method">
- (<tt>Object</tt>) <strong>create_log_file</strong>(location)
</h3><div class="docstring">
<div class="discussion">
<p>Creates a file to be used for Logger</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>location</span>
<span class='type'></span>
—
<div class='inline'><p>String path to a file</p>
</div>
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'><p>Object a file object</p>
</div>
</li>
</ul>
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="#init_log-instance_method" title="Alfred::Log#init_log (method)">#init_log</a></span></li>
<li><a href="http://www.ruby-doc.org/stdlib-2.1.2/libdoc/logger/rdoc/Logger.html" target="_parent" title="Logger">Logger</a></li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
849
850
851
852
853
854
855</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'bundler/AlfredBundler.rb', line 849</span>
<span class='kw'>def</span> <span class='id identifier rubyid_create_log_file'>create_log_file</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='rparen'>)</span>
<span class='comment'># The log is a file, so let's make the path if it doesn't exist
</span> <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkpath'>mkpath</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='rparen'>)</span>
<span class='comment'># Make and / or open the log file
</span> <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>WRONLY</span> <span class='op'>|</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>APPEND</span> <span class='op'>|</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>CREAT</span><span class='rparen'>)</span>
<span class='kw'>return</span> <span class='id identifier rubyid_file'>file</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="format_log-instance_method">
- (<tt>Object</tt>) <strong>format_log</strong>(log, date)
</h3><div class="docstring">
<div class="discussion">
<p>Reformats a Logger object to output in standard Alfred Bundler format</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>log</span>
<span class='type'></span>
—
<div class='inline'><p>Object a Logger object</p>
</div>
</li>
<li>
<span class='name'>date</span>
<span class='type'></span>
—
<div class='inline'><p>String the format for the date/time</p>
</div>
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'><p>Object a newly reformatted Logger object</p>
</div>
</li>
</ul>
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="#init_log-instance_method" title="Alfred::Log#init_log (method)">#init_log</a></span></li>
<li><a href="http://www.ruby-doc.org/stdlib-2.1.2/libdoc/logger/rdoc/Logger.html" target="_parent" title="Logger">Logger</a></li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'bundler/AlfredBundler.rb', line 866</span>
<span class='kw'>def</span> <span class='id identifier rubyid_format_log'>format_log</span><span class='lparen'>(</span><span class='id identifier rubyid_log'>log</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
<span class='comment'># We need to make the format match the bundler's
</span> <span class='id identifier rubyid_log'>log</span><span class='period'>.</span><span class='id identifier rubyid_formatter'>formatter</span> <span class='op'>=</span> <span class='id identifier rubyid_proc'>proc</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_datetime'>datetime</span><span class='comma'>,</span> <span class='id identifier rubyid_progname'>progname</span><span class='comma'>,</span> <span class='id identifier rubyid_msg'>msg</span><span class='op'>|</span>
<span class='comment'># Get the last stack trace
</span> <span class='id identifier rubyid_trace'>trace</span> <span class='op'>=</span> <span class='id identifier rubyid_caller'>caller</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
<span class='comment'># Get the filename from the stacktrace without the directory
</span> <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_trace'>trace</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span>
<span class='comment'># Get the line number fron the trace
</span> <span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='id identifier rubyid_trace'>trace</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span>
<span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_date'>date</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
<span class='comment'># Normalize the log levels to be in line with the rest of the bundler
</span> <span class='id identifier rubyid_severity'>severity</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>CRITICAL</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_severity'>severity</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>FATAL</span><span class='tstring_end'>'</span></span>
<span class='id identifier rubyid_severity'>severity</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>WARNING</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_severity'>severity</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>WARN</span><span class='tstring_end'>'</span></span>
<span class='comment'># Set the message format to the bundler standard
</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>[</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_date'>date</span><span class='embexpr_end'>}</span><span class='tstring_content'>] [</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file'>file</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_line'>line</span><span class='embexpr_end'>}</span><span class='tstring_content'>] [</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_severity'>severity</span><span class='embexpr_end'>}</span><span class='tstring_content'>] </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_msg'>msg</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
<span class='kw'>return</span> <span class='id identifier rubyid_log'>log</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="init_log-instance_method">
- (<tt>Object</tt>) <strong>init_log</strong>(location = STDERR)
</h3><div class="docstring">
<div class="discussion">
<p>Creates a new log
Small wrapper around a Logger object</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>location</span>
<span class='type'></span>
<em class="default">(defaults to: <tt>STDERR</tt>)</em>
—
<div class='inline'><p>Sting, IO either a file path or an IO stream</p>
</div>
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'><p>Object a Logger object</p>
</div>
</li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'bundler/AlfredBundler.rb', line 821</span>
<span class='kw'>def</span> <span class='id identifier rubyid_init_log'>init_log</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span> <span class='op'>=</span> <span class='const'>STDERR</span><span class='rparen'>)</span>
<span class='comment'># Check to see the type of log
</span> <span class='kw'>if</span> <span class='id identifier rubyid_location'>location</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span>
<span class='comment'># Creates the log file
</span> <span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_log_file'>create_log_file</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='rparen'>)</span>
<span class='comment'># Create the log with only one backup and a max size of 1MB
</span> <span class='id identifier rubyid_log'>log</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='int'>1</span><span class='comma'>,</span> <span class='int'>1048576</span><span class='rparen'>)</span>
<span class='comment'># Set the date format to YYYY-MM-DD HH:MM:SS
</span> <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%Y-%m-%d %H:%M:%S</span><span class='tstring_end'>"</span></span>
<span class='kw'>else</span>
<span class='comment'># The log is to STDOUT / STDERR (probably just the latter)
</span> <span class='id identifier rubyid_log'>log</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='rparen'>)</span>
<span class='comment'># Set the date format to HH:MM:SS
</span> <span class='id identifier rubyid_date'>date</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%H:%M:%S</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
<span class='id identifier rubyid_log'>log</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_format_log'>format_log</span><span class='lparen'>(</span><span class='id identifier rubyid_log'>log</span><span class='comma'>,</span> <span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
<span class='comment'># Return the newly created log object
</span> <span class='kw'>return</span> <span class='id identifier rubyid_log'>log</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="normalize_log_level-instance_method">
- (<tt>Object</tt>) <strong>normalize_log_level</strong>(level)
</h3><div class="docstring">
<div class="discussion">
<p>Normalizes the log level to keep in line with the bundler</p>
<p>Accepts <code>debug</code>, <code>info</code>, <code>warn</code>, <code>warning</code>, <code>error</code>, <code>fatal</code>, <code>critical</code></p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>level</span>
<span class='type'></span>
—
<div class='inline'><p>String a log level</p>
</div>
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'></span>
<div class='inline'><p>String a valid log level, defaulting to <code>info</code></p>
</div>
</li>
</ul>
<p class="tag_title">Since:</p>
<ul class="since">
<li>
<div class='inline'><p>Taurus 1</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'bundler/AlfredBundler.rb', line 892</span>
<span class='kw'>def</span> <span class='id identifier rubyid_normalize_log_level'>normalize_log_level</span><span class='lparen'>(</span><span class='id identifier rubyid_level'>level</span><span class='rparen'>)</span>
<span class='comment'># Lowercase the level name
</span> <span class='id identifier rubyid_level'>level</span><span class='period'>.</span><span class='id identifier rubyid_downcase!'>downcase!</span>
<span class='comment'># define the levels and their
</span> <span class='id identifier rubyid_levels'>levels</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>debug</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>debug</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>info</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>info</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>warning</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>warn</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>warn</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>warn</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>error</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>error</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fatal</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fatal</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>critical</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>fatal</span><span class='tstring_end'>'</span></span>
<span class='rbrace'>}</span>
<span class='kw'>unless</span> <span class='id identifier rubyid_levels'>levels</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_level'>level</span><span class='rparen'>)</span>
<span class='comment'># The level isn't valid, so set it to `info`
</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_level'>level</span><span class='embexpr_end'>}</span><span class='tstring_content'> is not a valid level, falling back to 'info'</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>debug</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>info</span><span class='tstring_end'>'</span></span>
<span class='kw'>end</span>
<span class='kw'>return</span> <span class='id identifier rubyid_levels'>levels</span><span class='lbracket'>[</span><span class='id identifier rubyid_level'>level</span><span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri Aug 22 22:06:57 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.4 (ruby-2.0.0).
</div>
</body>
</html> | {
"content_hash": "d155cae0c1fb15d2fb83ee92f1124b58",
"timestamp": "",
"source": "github",
"line_count": 1049,
"max_line_length": 988,
"avg_line_length": 32.80552907530982,
"alnum_prop": 0.614477087147299,
"repo_name": "shawnrice/alfred-bundler",
"id": "9dcf87ee45a42dd3428cad6443bedad6fae6bf27",
"size": "34413",
"binary": false,
"copies": "1",
"ref": "refs/heads/devel",
"path": "docs/ruby/Alfred/Log.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "AppleScript",
"bytes": "42977"
},
{
"name": "CSS",
"bytes": "32222"
},
{
"name": "JavaScript",
"bytes": "143884"
},
{
"name": "Makefile",
"bytes": "6790"
},
{
"name": "PHP",
"bytes": "222224"
},
{
"name": "Python",
"bytes": "191010"
},
{
"name": "Ruby",
"bytes": "99098"
},
{
"name": "Shell",
"bytes": "85267"
}
],
"symlink_target": ""
} |
layout: post
title: "Android Malware Datasets"
category: [resource ]
tags: [Android,Dataset]
description: 安卓恶意软件数据集
header-img: "img/pages/template.jpg"
---
----
**新搭建了个人博客,文章全部转到[http://blog.datarepo.cn](http://blog.datarepo.cn)上更新。**
> Android malware datasets.
>
## 1. [Android Malware Genome Project](http://www.malgenomeproject.org/)
In this project, we focus on the Android platform and aim to systematize or characterize existing Android malware. Particularly, with more than one year effort, we have managed to collect more than 1,200 malware samples that cover the majority of existing Android malware families, ranging from their debut in August 2010 to recent ones in October 2011.
**Publication**
[Dissecting Android Malware: Characterization and Evolution.](http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6234407&tag=1)
Yajin Zhou, Xuxian Jiang.
Proceedings of the 33rd IEEE Symposium on Security and Privacy (Oakland 2012).
San Francisco, CA, May 2012
**Homepage** (No longer supported)
[http://www.malgenomeproject.org](http://www.malgenomeproject.org)
## 2. [M0Droid Dataset](http://m0droid.netai.net/modroid/)
M0Droid basically is android application behavioral pattern recognition tool which is used to identify android malwares and categorize them according to their behavior. It utilized a kernel level hook to capture all system call requests of the application and then generate a signature for the behavior of the application.
**Publication**
Damshenas M, Dehghantanha A, Choo K K R, et al. M0droid: An android behavioral-based malware detection model[J]. Journal of Information Privacy and Security, 2015, 11(3): 141-157.
**Homepage**
[http://m0droid.netai.net/modroid/](http://m0droid.netai.net/modroid/)
**Blog**
[http://www.alid.info/blog/2015/2/4/android-malware-research-dataset](http://www.alid.info/blog/2015/2/4/android-malware-research-dataset)
## 3. [The Drebin Dataset ](http://user.informatik.uni-goettingen.de/~darp/drebin/)
The dataset contains 5,560 applications from 179 different malware families. The samples have been collected in the period of August 2010 to October 2012 and were made available to us by the MobileSandbox project. You can find more details on the dataset in the [paper](http://filepool.informatik.uni-goettingen.de/publication/sec//2014-ndss.pdf).
**Publication**
Arp D, Spreitzenbarth M, Hubner M, et al. [Drebin: Efficient and explainable detection of android malware in your pocket[C]](http://filepool.informatik.uni-goettingen.de/publication/sec//2014-ndss.pdf)//Proc. of 17th Network and Distributed System Security Symposium, NDSS. 14.
**Homepage**
[http://user.informatik.uni-goettingen.de/~darp/drebin/](http://user.informatik.uni-goettingen.de/~darp/drebin/)
## 4. [A Dataset based on ContagioDump](http://cgi.cs.indiana.edu/~nhusted/dokuwiki/doku.php?id=datasets)
*The dataset is a collection of Android based malware seen in the wild. The malware pieces were downloaded on October 26th, 2011. The total number of malware included in the sample is 189. I have qualitatively split them into categories based on their primary behaviours where available. I obtained their primary behaviours from malware reports from the various AV companies.If the malware would download a separate payload as its primary function, it was put in the Trojan category. If the malware executed an escalation of privilege attack, it was in the escalation of privilege category. If the malware primarily stole data from the phone, it was classified as information stealing. If the malware sent premium SMS messages, it was a premium SMS transmitting malware. *
**Homepage**
[http://cgi.cs.indiana.edu/~nhusted/dokuwiki/doku.php?id=datasets](http://cgi.cs.indiana.edu/~nhusted/dokuwiki/doku.php?id=datasets)
## 5. [AndroMalShare](http://sanddroid.xjtu.edu.cn:8080/#home)
AndroMalShare is a project focused on sharing Android malware samples. It's only for research, no commercial use. We present statistical information of the samples, a detail report of each malware sample scanned by [SandDroid](http://sanddroid.xjtu.edu.cn) and the detection results by the anti-virus productions. You can upload malware samples to share with others and each malware sample can be downloaded(only by registered users)!
**Homepage**
[http://sanddroid.xjtu.edu.cn:8080/#home](http://sanddroid.xjtu.edu.cn:8080/#home)
## 6. [Kharon Malware Dataset](http://kharon.gforge.inria.fr/dataset/)
The Kharon dataset is a collection of malware totally reversed and documented. This dataset has been constructed to help us to evaluate our research experiments. Its construction has required a huge amount of work to understand the malicous code, trigger it and then construct the documentation. This dataset is now available for research purpose, we hope it will help you to lead your own experiments.
**Publication**
CIDRE, EPI. [Kharon dataset: Android malware under a microscope.](https://www.usenix.org/system/files/conference/laser2016/laser2016-paper-kiss.pdf) Learning from Authoritative Security Experiment Results (2016): 1.
**Homepage**
[http://kharon.gforge.inria.fr/dataset/](http://kharon.gforge.inria.fr/dataset/)
## 7. [AMD Project](http://amd.arguslab.org)
AMD contains 24,553 samples, categorized in 135 varieties among 71 malware families ranging from 2010 to 2016. The dataset provides an up-to-date picture of the current landscape of Android malware, and is publicly shared with the community.
**Publication**
Li Y, Jang J, Hu X, et al. [Android malware clustering through malicious payload mining](https://arxiv.org/pdf/1707.04795.pdf)[C]//International Symposium on Research in Attacks, Intrusions, and Defenses. Springer, Cham, 2017: 192-214.
Wei F, Li Y, Roy S, et al. [Deep Ground Truth Analysis of Current Android Malware](http://www.fengguow.com/resources/papers/AMD-DIMVA17.pdf)[C]//International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment. Springer, Cham, 2017: 252-276.
**Homepage**
[http://amd.arguslab.org](http://amd.arguslab.org)
## 8. [AAGM Dataset](http://www.unb.ca/cic/datasets/android-adware.html)
AAGM dataset is captured by installing the Android apps on the real smartphones semi-automated. The dataset is generated from 1900 applications.
**Publication**
Arash Habibi Lashkari, Andi Fitriah A.Kadir, Hugo Gonzalez, Kenneth Fon Mbah and Ali A. Ghorbani, [Towards a Network-Based Framework for Android Malware Detection and Characterization](https://www.ucalgary.ca/pst2017/files/pst2017/paper-3.pdf), In the proceeding of the 15th International Conference on Privacy, Security and Trust, PST, Calgary, Canada, 2017.
**Homepage**
[http://www.unb.ca/cic/datasets/android-adware.html](http://www.unb.ca/cic/datasets/android-adware.html)
## 9. [Android PRAGuard Dataset](http://pralab.diee.unica.it/en/AndroidPRAGuardDataset)
As retrieving malware for research purposes is a difficult task, we decided to release our dataset of obfuscated malware.
The dataset contains 10479 samples, obtained by obfuscating the MalGenome and the Contagio Minidump datasets with seven different obfuscation techniques.
**Publication**
Davide Maiorca, Davide Ariu, Igino Corona, Marco Aresu and Giorgio Giacinto. [Stealth attacks: an extended insight into the obfuscation effects on Android malware](http://pralab.diee.unica.it/sites/default/files/MaiorcaCoSe2015Final.pdf). In Computers and Security, vol. 51, pp. 16-31, 2015.
**Homepage**
[http://pralab.diee.unica.it/en/AndroidPRAGuardDataset](http://pralab.diee.unica.it/en/AndroidPRAGuardDataset)
## 10. [AndroZoo](https://androzoo.uni.lu/)
AndroZoo is a growing collection of Android Applications collected from several sources, including the official Google Play app market.It currently contains 5,781,781 different APKs, each of which has been (or will soon be) analysed by tens of different AntiVirus products to know which applications are detected as Malware.
We provide this dataset to contribute to ongoing research efforts, as well as to enable new potential research topics on Android Apps.By releasing our dataset to the research community, we also aim at encouraging our fellow researchers to engage in reproducible experiments.
**Publication**
K. Allix, T. F. Bissyandé, J. Klein, and Y. Le Traon. [AndroZoo: Collecting Millions of Android Apps for the Research Community](https://androzoo.uni.lu/static/papers/androzoo-msr.pdf). Mining Software Repositories (MSR) 2016.
**Homepage**
[https://androzoo.uni.lu/](https://androzoo.uni.lu/)
| {
"content_hash": "60befe515cadc7e79e4e94b4be20cebf",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 772,
"avg_line_length": 71.61157024793388,
"alnum_prop": 0.7721869590305828,
"repo_name": "traceflight/traceflight.github.io",
"id": "02f61adec5170d051dec52e526c4e68b2623ab53",
"size": "8727",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/resources/2018-01-24-andoird-malware-datasets.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "22647"
},
{
"name": "HTML",
"bytes": "26444"
},
{
"name": "JavaScript",
"bytes": "53786"
}
],
"symlink_target": ""
} |
package cucumber.runtime.javascript;
import cucumber.runtime.snippets.SnippetGenerator;
import gherkin.formatter.model.Comment;
import gherkin.formatter.model.Step;
import org.junit.Test;
import java.util.Collections;
import static org.junit.Assert.assertEquals;
public class JavaScriptSnippetTest {
@Test
public void generatesPlainSnippet() {
String expected = "" +
"Given(/^I have (\\d+) cukes in my \"([^\"]*)\" belly$/, function(arg1, arg2) {\n" +
" // Express the Regexp above with the code you wish you had\n" +
" throw new Packages.cucumber.runtime.PendingException();\n" +
"});\n";
assertEquals(expected, snippetFor("I have 4 cukes in my \"big\" belly"));
}
private String snippetFor(String name) {
Step step = new Step(Collections.<Comment>emptyList(), "Given ", name, 0, null, null);
return new SnippetGenerator(new JavaScriptSnippet()).getSnippet(step);
}
} | {
"content_hash": "04c103adf5b54c1cff7bc61913db10d0",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 100,
"avg_line_length": 35.42857142857143,
"alnum_prop": 0.6512096774193549,
"repo_name": "mbellani/cucumber-jvm",
"id": "dc9e935f6c8b4a8e36f32f862e0f10ede36792ce",
"size": "992",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "rhino/src/test/java/cucumber/runtime/javascript/JavaScriptSnippetTest.java",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
#ifndef ZORBA_CSV_H
#define ZORBA_CSV_H
#include <zorba/internal/cxx_util.h>
#include "zorbatypes/zstring.h"
namespace zorba {
///////////////////////////////////////////////////////////////////////////////
/**
* Parses a CSV (Comma-Separated Values) stream.
* See RFC 4180: "Common Format and MIME Type for Comma-Separated Values (CSV)
* Files."
*/
class csv_parser {
public:
/**
* Constructs a %csv_parser.
*
* @param sep The value separator to use.
* @param quote The quote character to use. (The quote escape is a doubling
* of this character.)
*/
csv_parser( char sep = ',', char quote = '"' ) {
is_ = nullptr;
sep_ = sep;
quote_ = quote_esc_ = quote;
}
/**
* Constructs a %csv_parser.
*
* @param sep The value separator to use.
* @param quote The quote character to use.
* @param quote_esc The quote-escape character to use. If it matches
* \a quote, then a quote is escaped by doubling it.
*/
csv_parser( char sep, char quote, char quote_esc ) {
is_ = nullptr;
sep_ = sep;
quote_ = quote;
quote_esc_ = quote_esc;
}
/**
* Constructs a %csv_parser.
*
* @param is The istream to read from.
* @param sep The value separator to use.
* @param quote The quote character to use. (The quote escape is a doubling
* of this character.)
*/
csv_parser( std::istream &is, char sep = ',', char quote = '"' ) {
is_ = &is;
sep_ = sep;
quote_ = quote_esc_ = quote;
}
/**
* Constructs a %csv_parser.
*
* @param is The istream to read from.
* @param sep The value separator to use.
* @param quote The quote character to use.
* @param quote_esc The quote-escape character to use. If it matches
* \a quote, then a quote is escaped by doubling it.
*/
csv_parser( std::istream &is, char sep, char quote, char quote_esc ) {
is_ = &is;
sep_ = sep;
quote_ = quote;
quote_esc_ = quote_esc;
}
/**
* Parses the next value.
*
* @param value A pointer to the string to receive the next value.
* @param eol Set to \c true only when \a value is set to the last value on a
* line.
* @param quoted If not \c null, set to \c true only when \a value was
* quoted.
* @return Returns \c true only if a value was parsed; \c false otherwise.
*/
bool next_value( zstring *value, bool *eol, bool *quoted = nullptr ) const;
/**
* Sets the quote character to use.
*
* @param quote The quote character to use.
*/
void set_quote( char quote ) {
quote_ = quote;
}
/**
* Sets the quote-escape character to use. If it matches the quote
* character, en a quote is escaped by doubling it.
*
* @param quote_esc The quote-escape character to use.
*/
void set_quote_esc( char quote_esc ) {
quote_esc_ = quote_esc;
}
/**
* Sets the value-separator character to use.
*
* @param sep The value separator character to use.
*/
void set_separator( char sep ) {
sep_ = sep;
}
/**
* Sets the istream to read from.
*
* @param is The istream to read from.
*/
void set_stream( std::istream &is ) {
is_ = &is;
}
private:
std::istream *is_;
char quote_;
char quote_esc_;
char sep_;
};
///////////////////////////////////////////////////////////////////////////////
} // namespace std
#endif /* ZORBA_CSV_H */
/* vim:set et sw=2 ts=2: */
| {
"content_hash": "49d712e02c624fc6f6d5d642d893686a",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 79,
"avg_line_length": 24.257142857142856,
"alnum_prop": 0.5780329799764429,
"repo_name": "bgarrels/zorba",
"id": "50971bb8a621514445b4897bbb981c2edcbf2f20",
"size": "4004",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/util/csv_parser.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "964197"
},
{
"name": "C++",
"bytes": "17448935"
},
{
"name": "CMake",
"bytes": "497427"
},
{
"name": "HTML",
"bytes": "3131726"
},
{
"name": "JSONiq",
"bytes": "162641"
},
{
"name": "Java",
"bytes": "136"
},
{
"name": "Lex",
"bytes": "41399"
},
{
"name": "NSIS",
"bytes": "19787"
},
{
"name": "PHP",
"bytes": "6790"
},
{
"name": "Perl",
"bytes": "17432"
},
{
"name": "Python",
"bytes": "2118"
},
{
"name": "Shell",
"bytes": "38023"
},
{
"name": "XQuery",
"bytes": "2800978"
},
{
"name": "XSLT",
"bytes": "92314"
}
],
"symlink_target": ""
} |
/******************************************************************************
*
* Module Name: exstoren - AML Interpreter object store support,
* Store to Node (namespace object)
*
*****************************************************************************/
/******************************************************************************
*
* 1. Copyright Notice
*
* Some or all of this work - Copyright (c) 1999 - 2014, Intel Corp.
* All rights reserved.
*
* 2. License
*
* 2.1. This is your license from Intel Corp. under its intellectual property
* rights. You may have additional license terms from the party that provided
* you this software, covering your right to use that party's intellectual
* property rights.
*
* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
* copy of the source code appearing in this file ("Covered Code") an
* irrevocable, perpetual, worldwide license under Intel's copyrights in the
* base code distributed originally by Intel ("Original Intel Code") to copy,
* make derivatives, distribute, use and display any portion of the Covered
* Code in any form, with the right to sublicense such rights; and
*
* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
* license (with the right to sublicense), under only those claims of Intel
* patents that are infringed by the Original Intel Code, to make, use, sell,
* offer to sell, and import the Covered Code and derivative works thereof
* solely to the minimum extent necessary to exercise the above copyright
* license, and in no event shall the patent license extend to any additions
* to or modifications of the Original Intel Code. No other license or right
* is granted directly or by implication, estoppel or otherwise;
*
* The above copyright and patent license is granted only if the following
* conditions are met:
*
* 3. Conditions
*
* 3.1. Redistribution of Source with Rights to Further Distribute Source.
* Redistribution of source code of any substantial portion of the Covered
* Code or modification with rights to further distribute source must include
* the above Copyright Notice, the above License, this list of Conditions,
* and the following Disclaimer and Export Compliance provision. In addition,
* Licensee must cause all Covered Code to which Licensee contributes to
* contain a file documenting the changes Licensee made to create that Covered
* Code and the date of any change. Licensee must include in that file the
* documentation of any changes made by any predecessor Licensee. Licensee
* must include a prominent statement that the modification is derived,
* directly or indirectly, from Original Intel Code.
*
* 3.2. Redistribution of Source with no Rights to Further Distribute Source.
* Redistribution of source code of any substantial portion of the Covered
* Code or modification without rights to further distribute source must
* include the following Disclaimer and Export Compliance provision in the
* documentation and/or other materials provided with distribution. In
* addition, Licensee may not authorize further sublicense of source of any
* portion of the Covered Code, and must include terms to the effect that the
* license from Licensee to its licensee is limited to the intellectual
* property embodied in the software Licensee provides to its licensee, and
* not to intellectual property embodied in modifications its licensee may
* make.
*
* 3.3. Redistribution of Executable. Redistribution in executable form of any
* substantial portion of the Covered Code or modification must reproduce the
* above Copyright Notice, and the following Disclaimer and Export Compliance
* provision in the documentation and/or other materials provided with the
* distribution.
*
* 3.4. Intel retains all right, title, and interest in and to the Original
* Intel Code.
*
* 3.5. Neither the name Intel nor any other trademark owned or controlled by
* Intel shall be used in advertising or otherwise to promote the sale, use or
* other dealings in products derived from or relating to the Covered Code
* without prior written authorization from Intel.
*
* 4. Disclaimer and Export Compliance
*
* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
* PARTICULAR PURPOSE.
*
* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
* LIMITED REMEDY.
*
* 4.3. Licensee shall not export, either directly or indirectly, any of this
* software or system incorporating such software without first obtaining any
* required license or other approval from the U. S. Department of Commerce or
* any other agency or department of the United States Government. In the
* event Licensee exports any such software from the United States or
* re-exports any such software from a foreign destination, Licensee shall
* ensure that the distribution and export/re-export of the software is in
* compliance with all laws, regulations, orders, or other restrictions of the
* U.S. Export Administration Regulations. Licensee agrees that neither it nor
* any of its subsidiaries will export/re-export any technical data, process,
* software, or service, directly or indirectly, to any country for which the
* United States government or any agency thereof requires an export license,
* other governmental approval, or letter of assurance, without first obtaining
* such license, approval or letter.
*
*****************************************************************************/
#include "acpi.h"
#include "accommon.h"
#include "acinterp.h"
#include "amlcode.h"
#define _COMPONENT ACPI_EXECUTER
ACPI_MODULE_NAME ("exstoren")
/*******************************************************************************
*
* FUNCTION: AcpiExResolveObject
*
* PARAMETERS: SourceDescPtr - Pointer to the source object
* TargetType - Current type of the target
* WalkState - Current walk state
*
* RETURN: Status, resolved object in SourceDescPtr.
*
* DESCRIPTION: Resolve an object. If the object is a reference, dereference
* it and return the actual object in the SourceDescPtr.
*
******************************************************************************/
ACPI_STATUS
AcpiExResolveObject (
ACPI_OPERAND_OBJECT **SourceDescPtr,
ACPI_OBJECT_TYPE TargetType,
ACPI_WALK_STATE *WalkState)
{
ACPI_OPERAND_OBJECT *SourceDesc = *SourceDescPtr;
ACPI_STATUS Status = AE_OK;
ACPI_FUNCTION_TRACE (ExResolveObject);
/* Ensure we have a Target that can be stored to */
switch (TargetType)
{
case ACPI_TYPE_BUFFER_FIELD:
case ACPI_TYPE_LOCAL_REGION_FIELD:
case ACPI_TYPE_LOCAL_BANK_FIELD:
case ACPI_TYPE_LOCAL_INDEX_FIELD:
/*
* These cases all require only Integers or values that
* can be converted to Integers (Strings or Buffers)
*/
case ACPI_TYPE_INTEGER:
case ACPI_TYPE_STRING:
case ACPI_TYPE_BUFFER:
/*
* Stores into a Field/Region or into a Integer/Buffer/String
* are all essentially the same. This case handles the
* "interchangeable" types Integer, String, and Buffer.
*/
if (SourceDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE)
{
/* Resolve a reference object first */
Status = AcpiExResolveToValue (SourceDescPtr, WalkState);
if (ACPI_FAILURE (Status))
{
break;
}
}
/* For CopyObject, no further validation necessary */
if (WalkState->Opcode == AML_COPY_OP)
{
break;
}
/* Must have a Integer, Buffer, or String */
if ((SourceDesc->Common.Type != ACPI_TYPE_INTEGER) &&
(SourceDesc->Common.Type != ACPI_TYPE_BUFFER) &&
(SourceDesc->Common.Type != ACPI_TYPE_STRING) &&
!((SourceDesc->Common.Type == ACPI_TYPE_LOCAL_REFERENCE) &&
(SourceDesc->Reference.Class== ACPI_REFCLASS_TABLE)))
{
/* Conversion successful but still not a valid type */
ACPI_ERROR ((AE_INFO,
"Cannot assign type %s to %s (must be type Int/Str/Buf)",
AcpiUtGetObjectTypeName (SourceDesc),
AcpiUtGetTypeName (TargetType)));
Status = AE_AML_OPERAND_TYPE;
}
break;
case ACPI_TYPE_LOCAL_ALIAS:
case ACPI_TYPE_LOCAL_METHOD_ALIAS:
/*
* All aliases should have been resolved earlier, during the
* operand resolution phase.
*/
ACPI_ERROR ((AE_INFO, "Store into an unresolved Alias object"));
Status = AE_AML_INTERNAL;
break;
case ACPI_TYPE_PACKAGE:
default:
/*
* All other types than Alias and the various Fields come here,
* including the untyped case - ACPI_TYPE_ANY.
*/
break;
}
return_ACPI_STATUS (Status);
}
/*******************************************************************************
*
* FUNCTION: AcpiExStoreObjectToObject
*
* PARAMETERS: SourceDesc - Object to store
* DestDesc - Object to receive a copy of the source
* NewDesc - New object if DestDesc is obsoleted
* WalkState - Current walk state
*
* RETURN: Status
*
* DESCRIPTION: "Store" an object to another object. This may include
* converting the source type to the target type (implicit
* conversion), and a copy of the value of the source to
* the target.
*
* The Assignment of an object to another (not named) object
* is handled here.
* The Source passed in will replace the current value (if any)
* with the input value.
*
* When storing into an object the data is converted to the
* target object type then stored in the object. This means
* that the target object type (for an initialized target) will
* not be changed by a store operation.
*
* This module allows destination types of Number, String,
* Buffer, and Package.
*
* Assumes parameters are already validated. NOTE: SourceDesc
* resolution (from a reference object) must be performed by
* the caller if necessary.
*
******************************************************************************/
ACPI_STATUS
AcpiExStoreObjectToObject (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *DestDesc,
ACPI_OPERAND_OBJECT **NewDesc,
ACPI_WALK_STATE *WalkState)
{
ACPI_OPERAND_OBJECT *ActualSrcDesc;
ACPI_STATUS Status = AE_OK;
ACPI_FUNCTION_TRACE_PTR (ExStoreObjectToObject, SourceDesc);
ActualSrcDesc = SourceDesc;
if (!DestDesc)
{
/*
* There is no destination object (An uninitialized node or
* package element), so we can simply copy the source object
* creating a new destination object
*/
Status = AcpiUtCopyIobjectToIobject (ActualSrcDesc, NewDesc, WalkState);
return_ACPI_STATUS (Status);
}
if (SourceDesc->Common.Type != DestDesc->Common.Type)
{
/*
* The source type does not match the type of the destination.
* Perform the "implicit conversion" of the source to the current type
* of the target as per the ACPI specification.
*
* If no conversion performed, ActualSrcDesc = SourceDesc.
* Otherwise, ActualSrcDesc is a temporary object to hold the
* converted object.
*/
Status = AcpiExConvertToTargetType (DestDesc->Common.Type,
SourceDesc, &ActualSrcDesc, WalkState);
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);
}
if (SourceDesc == ActualSrcDesc)
{
/*
* No conversion was performed. Return the SourceDesc as the
* new object.
*/
*NewDesc = SourceDesc;
return_ACPI_STATUS (AE_OK);
}
}
/*
* We now have two objects of identical types, and we can perform a
* copy of the *value* of the source object.
*/
switch (DestDesc->Common.Type)
{
case ACPI_TYPE_INTEGER:
DestDesc->Integer.Value = ActualSrcDesc->Integer.Value;
/* Truncate value if we are executing from a 32-bit ACPI table */
(void) AcpiExTruncateFor32bitTable (DestDesc);
break;
case ACPI_TYPE_STRING:
Status = AcpiExStoreStringToString (ActualSrcDesc, DestDesc);
break;
case ACPI_TYPE_BUFFER:
Status = AcpiExStoreBufferToBuffer (ActualSrcDesc, DestDesc);
break;
case ACPI_TYPE_PACKAGE:
Status = AcpiUtCopyIobjectToIobject (ActualSrcDesc, &DestDesc,
WalkState);
break;
default:
/*
* All other types come here.
*/
ACPI_WARNING ((AE_INFO, "Store into type %s not implemented",
AcpiUtGetObjectTypeName (DestDesc)));
Status = AE_NOT_IMPLEMENTED;
break;
}
if (ActualSrcDesc != SourceDesc)
{
/* Delete the intermediate (temporary) source object */
AcpiUtRemoveReference (ActualSrcDesc);
}
*NewDesc = DestDesc;
return_ACPI_STATUS (Status);
}
| {
"content_hash": "07e812e371c77055ccd647e143e6078d",
"timestamp": "",
"source": "github",
"line_count": 375,
"max_line_length": 80,
"avg_line_length": 38.672,
"alnum_prop": 0.6361881119845538,
"repo_name": "cmsd2/ChrisOS",
"id": "82944c5a56e4675fb4ec3dbbe0abfe834448a5fc",
"size": "14502",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "libs/acpica/source/components/executer/exstoren.c",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Assembly",
"bytes": "7681"
},
{
"name": "Batchfile",
"bytes": "1295"
},
{
"name": "Bison",
"bytes": "199644"
},
{
"name": "C",
"bytes": "9699988"
},
{
"name": "C++",
"bytes": "235267"
},
{
"name": "CSS",
"bytes": "2170"
},
{
"name": "HTML",
"bytes": "339865"
},
{
"name": "Makefile",
"bytes": "51745"
},
{
"name": "Objective-C",
"bytes": "17857"
},
{
"name": "Perl",
"bytes": "3631"
},
{
"name": "Python",
"bytes": "4107"
},
{
"name": "Shell",
"bytes": "166441"
}
],
"symlink_target": ""
} |
'use strict';
let cli = require('heroku-cli-util');
let co = require('co');
let extend = require('util')._extend;
function* run(context, heroku) {
let appName = context.app;
let request = heroku.delete(`/apps/${appName}/collaborators/${context.args.email}`);
yield cli.action(`Removing ${cli.color.cyan(context.args.email)} access from the app ${cli.color.magenta(appName)}`, request);
}
let cmd = {
topic: 'access',
needsAuth: true,
needsApp: true,
command: 'remove',
description: 'Remove users from your app',
help: 'heroku access:remove user@email.com --app APP',
args: [{name: 'email', optional: false}],
run: cli.command(co.wrap(run))
};
module.exports = cmd;
module.exports.sharing = extend({}, cmd);
module.exports.sharing.hidden = true;
module.exports.sharing.topic = 'sharing';
module.exports.sharing.run = function () {
cli.error(`This command is now ${cli.color.cyan('heroku access:remove')}`); process.exit(1);
};
| {
"content_hash": "bdccf2c5b73789ed634282f730afcf02",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 128,
"avg_line_length": 32.766666666666666,
"alnum_prop": 0.6673448626653102,
"repo_name": "Confkins/CloudComputing",
"id": "05f2c7a186372bc81d1dda9e0abed82883e03139",
"size": "983",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": ".local/share/heroku/cli/lib/node_modules/heroku-orgs/commands/access/remove.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "787"
},
{
"name": "CSS",
"bytes": "5635"
},
{
"name": "Groff",
"bytes": "35357"
},
{
"name": "HTML",
"bytes": "4974"
},
{
"name": "JavaScript",
"bytes": "1068612"
},
{
"name": "Makefile",
"bytes": "4946"
},
{
"name": "Python",
"bytes": "424"
},
{
"name": "Shell",
"bytes": "21813"
},
{
"name": "VimL",
"bytes": "8383"
}
],
"symlink_target": ""
} |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.InteropServices;
namespace System.Data.SqlClient.SNI
{
/// <summary>
/// Managed SNI proxy implementation. Contains many SNI entry points used by SqlClient.
/// </summary>
internal class SNIProxy
{
public static readonly SNIProxy Singleton = new SNIProxy();
private readonly GCHandle _gcHandle;
/// <summary>
/// Terminate SNI
/// </summary>
public void Terminate()
{
}
/// <summary>
/// Check if GC handle is allocated
/// </summary>
/// <returns></returns>
public bool IsGcHandleAllocated()
{
return _gcHandle.IsAllocated;
}
/// <summary>
/// Free GC handle
/// </summary>
public void FreeGcHandle()
{
_gcHandle.Free();
}
/// <summary>
/// Enable MARS support on a connection
/// </summary>
/// <param name="handle">Connection handle</param>
/// <returns>SNI error code</returns>
public uint EnableMars(SNIHandle handle)
{
if (SNIMarsManager.Singleton.CreateMarsConnection(handle) == TdsEnums.SNI_SUCCESS_IO_PENDING)
{
return TdsEnums.SNI_SUCCESS;
}
return TdsEnums.SNI_ERROR;
}
/// <summary>
/// Enable SSL on a connection
/// </summary>
/// <param name="handle">Connection handle</param>
/// <returns>SNI error code</returns>
public uint EnableSsl(SNIHandle handle, uint options)
{
try
{
return handle.EnableSsl(options);
}
catch (Exception e)
{
SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.TCP_PROV, 0, 0, string.Format("Encryption(ssl/tls) handshake failed: {0}", e.ToString()));
return TdsEnums.SNI_ERROR;
}
}
/// <summary>
/// Disable SSL on a connection
/// </summary>
/// <param name="handle">Connection handle</param>
/// <returns>SNI error code</returns>
public uint DisableSsl(SNIHandle handle)
{
handle.DisableSsl();
return TdsEnums.SNI_SUCCESS;
}
/// <summary>
/// Generate SSPI context
/// </summary>
/// <param name="handle">SNI connection handle</param>
/// <param name="receivedBuff">Receive buffer</param>
/// <param name="receivedLength">Received length</param>
/// <param name="sendBuff">Send buffer</param>
/// <param name="sendLength">Send length</param>
/// <param name="serverName">Service Principal Name buffer</param>
/// <param name="serverNameLength">Length of Service Principal Name</param>
/// <returns>SNI error code</returns>
public uint GenSspiClientContext(SNIHandle handle, byte[] receivedBuff, uint receivedLength, byte[] sendBuff, ref uint sendLength, byte[] serverName, uint serverNameLength)
{
throw new PlatformNotSupportedException();
}
/// <summary>
/// Initialize SSPI
/// </summary>
/// <param name="maxLength">Max length of SSPI packet</param>
/// <returns>SNI error code</returns>
public uint InitializeSspiPackage(ref uint maxLength)
{
throw new PlatformNotSupportedException();
}
/// <summary>
/// Set connection buffer size
/// </summary>
/// <param name="handle">SNI handle</param>
/// <param name="bufferSize">Buffer size</param>
/// <returns>SNI error code</returns>
public uint SetConnectionBufferSize(SNIHandle handle, uint bufferSize)
{
if (handle is SNITCPHandle)
{
(handle as SNITCPHandle).SetBufferSize((int)bufferSize);
}
return TdsEnums.SNI_SUCCESS;
}
/// <summary>
/// Get packet data
/// </summary>
/// <param name="packet">SNI packet</param>
/// <param name="inBuff">Buffer</param>
/// <param name="dataSize">Data size</param>
/// <returns>SNI error status</returns>
public uint PacketGetData(SNIPacket packet, byte[] inBuff, ref uint dataSize)
{
int dataSizeInt = 0;
packet.GetData(inBuff, ref dataSizeInt);
dataSize = (uint)dataSizeInt;
return TdsEnums.SNI_SUCCESS;
}
/// <summary>
/// Read synchronously
/// </summary>
/// <param name="handle">SNI handle</param>
/// <param name="packet">SNI packet</param>
/// <param name="timeout">Timeout</param>
/// <returns>SNI error status</returns>
public uint ReadSyncOverAsync(SNIHandle handle, ref SNIPacket packet, int timeout)
{
return handle.Receive(ref packet, timeout);
}
/// <summary>
/// Get SNI connection ID
/// </summary>
/// <param name="handle">SNI handle</param>
/// <param name="clientConnectionId">Client connection ID</param>
/// <returns>SNI error status</returns>
public uint GetConnectionId(SNIHandle handle, ref Guid clientConnectionId)
{
clientConnectionId = handle.ConnectionId;
return TdsEnums.SNI_SUCCESS;
}
/// <summary>
/// Send a packet
/// </summary>
/// <param name="handle">SNI handle</param>
/// <param name="packet">SNI packet</param>
/// <param name="sync">true if synchronous, false if asynchronous</param>
/// <returns>SNI error status</returns>
public uint WritePacket(SNIHandle handle, SNIPacket packet, bool sync)
{
if (sync)
{
return handle.Send(packet.Clone());
}
else
{
return handle.SendAsync(packet.Clone());
}
}
/// <summary>
/// Reset a packet
/// </summary>
/// <param name="handle">SNI handle</param>
/// <param name="write">true if packet is for write</param>
/// <param name="packet">SNI packet</param>
public void PacketReset(SNIHandle handle, bool write, SNIPacket packet)
{
packet.Reset();
}
/// <summary>
/// Create a SNI connection handle
/// </summary>
/// <param name="callbackObject">Asynchronous I/O callback object</param>
/// <param name="fullServerName">Full server name from connection string</param>
/// <param name="ignoreSniOpenTimeout">Ignore open timeout</param>
/// <param name="timerExpire">Timer expiration</param>
/// <param name="instanceName">Instance name</param>
/// <param name="spnBuffer">SPN</param>
/// <param name="flushCache">Flush packet cache</param>
/// <param name="async">Asynchronous connection</param>
/// <param name="parallel">Attempt parallel connects</param>
/// <returns>SNI handle</returns>
public SNIHandle CreateConnectionHandle(object callbackObject, string fullServerName, bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, byte[] spnBuffer, bool flushCache, bool async, bool parallel)
{
instanceName = new byte[1];
instanceName[0] = 0;
string[] serverNameParts = fullServerName.Split(':');
if (serverNameParts.Length > 2)
{
SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.INVALID_PROV, 0, 0, "Connection string is not formatted correctly");
return null;
}
// Default to using tcp if no protocol is provided
if (serverNameParts.Length == 1)
{
return ConstructTcpHandle(serverNameParts[0], timerExpire, callbackObject);
}
switch (serverNameParts[0])
{
case TdsEnums.TCP:
return ConstructTcpHandle(serverNameParts[1], timerExpire, callbackObject);
default:
SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.INVALID_PROV, 0, 0, string.Format("Unsupported transport protocol: '{0}'", serverNameParts[0]));
return null;
}
}
/// <summary>
/// Helper function to construct an SNITCPHandle object
/// </summary>
/// <param name="fullServerName">Server string. May contain a comma delimited port number.</param>
/// <param name="timerExpire">Timer expiration</param>
/// <param name="callbackObject">Asynchronous I/O callback object</param>
/// <returns></returns>
private SNITCPHandle ConstructTcpHandle(string fullServerName, long timerExpire, object callbackObject)
{
// TCP Format:
// tcp:<host name>\<instance name>
// tcp:<host name>,<TCP/IP port number>
int portNumber = 1433;
string[] serverAndPortParts = fullServerName.Split(',');
if (serverAndPortParts.Length == 2)
{
try
{
portNumber = ushort.Parse(serverAndPortParts[1]);
}
catch (Exception)
{
SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.TCP_PROV, 0, 0, "Port number is malformed");
return null;
}
}
else if (serverAndPortParts.Length > 2)
{
SNILoadHandle.SingletonInstance.LastError = new SNIError(SNIProviders.TCP_PROV, 0, 0, "Connection string is not formatted correctly");
return null;
}
return new SNITCPHandle(serverAndPortParts[0], portNumber, timerExpire, callbackObject);
}
/// <summary>
/// Create MARS handle
/// </summary>
/// <param name="callbackObject">Asynchronous I/O callback object</param>
/// <param name="physicalConnection">SNI connection handle</param>
/// <param name="defaultBufferSize">Default buffer size</param>
/// <param name="async">Asynchronous connection</param>
/// <returns>SNI error status</returns>
public SNIHandle CreateMarsHandle(object callbackObject, SNIHandle physicalConnection, int defaultBufferSize, bool async)
{
SNIMarsConnection connection = SNIMarsManager.Singleton.GetConnection(physicalConnection);
return connection.CreateSession(callbackObject, async);
}
/// <summary>
/// Read packet asynchronously
/// </summary>
/// <param name="handle">SNI handle</param>
/// <param name="packet">Packet</param>
/// <returns>SNI error status</returns>
public uint ReadAsync(SNIHandle handle, ref SNIPacket packet)
{
packet = new SNIPacket(null);
return handle.ReceiveAsync(ref packet);
}
/// <summary>
/// Set packet data
/// </summary>
/// <param name="packet">SNI packet</param>
/// <param name="data">Data</param>
/// <param name="length">Length</param>
public void PacketSetData(SNIPacket packet, byte[] data, int length)
{
packet.SetData(data, length);
}
/// <summary>
/// Release packet
/// </summary>
/// <param name="packet">SNI packet</param>
public void PacketRelease(SNIPacket packet)
{
packet.Release();
}
/// <summary>
/// Check SNI handle connection
/// </summary>
/// <param name="handle"></param>
/// <returns>SNI error status</returns>
public uint CheckConnection(SNIHandle handle)
{
return handle.CheckConnection();
}
/// <summary>
/// Get last SNI error on this thread
/// </summary>
/// <returns></returns>
public SNIError GetLastError()
{
return SNILoadHandle.SingletonInstance.LastError;
}
}
} | {
"content_hash": "ecd3e67c0ea5be0a703af163c14648b0",
"timestamp": "",
"source": "github",
"line_count": 343,
"max_line_length": 225,
"avg_line_length": 36.49562682215743,
"alnum_prop": 0.5627895830004793,
"repo_name": "comdiv/corefx",
"id": "1a44d22afb2ba7460d0871dfb3ac29afd4900900",
"size": "12520",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIProxy.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "1782"
},
{
"name": "C",
"bytes": "74619"
},
{
"name": "C#",
"bytes": "96889489"
},
{
"name": "C++",
"bytes": "99907"
},
{
"name": "CMake",
"bytes": "5974"
},
{
"name": "Groovy",
"bytes": "1495"
},
{
"name": "Shell",
"bytes": "22731"
},
{
"name": "Smalltalk",
"bytes": "1768"
},
{
"name": "Visual Basic",
"bytes": "827616"
}
],
"symlink_target": ""
} |
package com.picas.util;
import java.util.Collection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StringUtil extends org.springframework.util.StringUtils
{
// SQL防注入过滤字符,多个过滤字符用#分隔
public static final String FILTER_SQL_INJECT = "'#and#exec#insert#select#delete# #update#count#*#%#chr#mid#master#truncate#char#declare#;#or#-#+#,";
public static final String[] INJECT_STRING_ARRAY = FILTER_SQL_INJECT.split("#"); // SQL防注入过滤数组
/**
* 过滤文本中的特殊字符,只保留字符串和数字
*
* @param str
* 要过滤的字符串
* @return 过滤后的结果
*/
public static String onlyLetterAndDigital(String str)
{
String regEx = "[`~!@#$%^&*()+=|{}':;',//[//].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。,、?]";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(str);
return m.replaceAll("").trim();
}
/**
* 过滤SQL条件中的非法字符,防注入
*
* @param condition
* SQL拼接条件和参数
* @return 过滤后的结果
*/
public static String filterSQLCondition(String condition)
{
if (condition == null || condition.equals(""))
{
return "";
}
for (String s : INJECT_STRING_ARRAY)
{
condition = condition.replace(s, "");
}
return condition;
}
/**
* 安全的从字符串中截取指定长度的开始内容
*
* @param content
* 内容
* @param length
* 截取的长度
* @return 截取并追加的结果
*/
public static String subStart(String str, int length)
{
if (str.length() > length)
{
return str.substring(0, length);
}
return str;
}
/**
* 安全的从字符串中按照索引截取指定长度内容
*
* @param str
* @param startIndex
* @param endIndex
* @return
*/
public static String substring(String str, int startIndex, int endIndex)
{
startIndex = startIndex < 0 ? 0 : startIndex;
endIndex = endIndex > str.length() ? str.length() : endIndex;
if (startIndex < endIndex)
{
return "";
}
return str.substring(startIndex, endIndex);
}
/**
* 安全的从字符串中按照索引截取指定长度内容
*
* @param str
* @param startIndex
* @param endIndex
* @return
*/
public static String substr(String str, int startIndex, int length)
{
return substring(str, startIndex, startIndex + length);
}
/**
* 判断字符串是否不为空或null
*
* @param str
* 字符串对象
* @return 是否不为空
*/
public static boolean isNotNullAndEmpty(Object str)
{
return str != null && (!str.toString().trim().equals(""));
}
/**
* Check whether the given {@code CharSequence} contains actual
* <em>text</em>.
* <p>
* More specifically, this method returns {@code true} if the
* {@code CharSequence} is not {@code null}, its length is greater than 0,
* and it contains at least one non-whitespace character.
* <p>
*
* <pre class="code">
* StringUtils.isBlank(null) = true
* StringUtils.isBlank("") = true
* StringUtils.isBlank(" ") = true
* StringUtils.isBlank("12345") = false
* StringUtils.isBlank(" 12345 ") = false
* </pre>
*
* @param str
* the {@code CharSequence} to check (may be {@code null})
* @return {@code true} if the {@code CharSequence} is not {@code null}, its
* length is greater than 0, and it does not contain whitespace only
* @see Character#isWhitespace
*/
public static boolean isBlank(final CharSequence cs)
{
return !StringUtil.isNotBlank(cs);
}
/**
* <p>
* Checks if a CharSequence is not empty (""), not null and not whitespace
* only.
* </p>
*
* <pre>
* StringUtils.isNotBlank(null) = false
* StringUtils.isNotBlank("") = false
* StringUtils.isNotBlank(" ") = false
* StringUtils.isNotBlank("bob") = true
* StringUtils.isNotBlank(" bob ") = true
* </pre>
*
* @param cs
* the CharSequence to check, may be null
* @return {@code true} if the CharSequence is not empty and not null and
* not whitespace
* @see Character#isWhitespace
*/
public static boolean isNotBlank(final CharSequence cs)
{
return StringUtil.hasText(cs);
}
/**
* Convert a {@code Collection} into a delimited {@code String} (e.g. CSV).
* <p>
* Useful for {@code toString()} implementations.
*
* @param coll
* the {@code Collection} to convert
* @param delim
* the delimiter to use (typically a ",")
* @return the delimited {@code String}
*/
public static String join(Collection<?> coll, String delim)
{
return StringUtil.collectionToDelimitedString(coll, delim);
}
/**
* Convert a {@code String} array into a delimited {@code String} (e.g.
* CSV).
* <p>
* Useful for {@code toString()} implementations.
*
* @param arr
* the array to display
* @param delim
* the delimiter to use (typically a ",")
* @return the delimited {@code String}
*/
public static String join(Object[] arr, String delim)
{
return StringUtil.arrayToDelimitedString(arr, delim);
}
}
| {
"content_hash": "8638eca5251c660d48f4304017126859",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 149,
"avg_line_length": 24.258883248730964,
"alnum_prop": 0.6229336681314083,
"repo_name": "Rocky-Hu/picas",
"id": "61a94b1dcc624d688098930059badf992bba33e4",
"size": "5177",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/picas/util/StringUtil.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "27"
},
{
"name": "CSS",
"bytes": "620903"
},
{
"name": "HTML",
"bytes": "339"
},
{
"name": "Java",
"bytes": "248476"
},
{
"name": "JavaScript",
"bytes": "631352"
},
{
"name": "Shell",
"bytes": "27"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.