Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: JSON parse error: Missing a closing quotation mark in string. in row 364
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 145, in _generate_tables
dataset = json.load(f)
File "/usr/local/lib/python3.9/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 3242)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1995, in _prepare_split_single
for _, table in generator:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 148, in _generate_tables
raise e
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Missing a closing quotation mark in string. in row 364
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text
string | meta
dict |
|---|---|
package com.jetbrains.python.findUsages;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.usages.PsiNamedElementUsageGroupBase;
import com.intellij.usages.Usage;
import com.intellij.usages.UsageGroup;
import com.intellij.usages.impl.FileStructureGroupRuleProvider;
import com.intellij.usages.rules.PsiElementUsage;
import com.intellij.usages.rules.UsageGroupingRule;
import com.jetbrains.python.psi.PyClass;
import com.jetbrains.python.psi.PyFunction;
import org.jetbrains.annotations.NotNull;
/**
* @author yole
*/
public class PyFunctionGroupingRuleProvider implements FileStructureGroupRuleProvider {
public UsageGroupingRule getUsageGroupingRule(Project project) {
return new PyFunctionGroupingRule();
}
private static class PyFunctionGroupingRule implements UsageGroupingRule {
public UsageGroup groupUsage(@NotNull Usage usage) {
if (!(usage instanceof PsiElementUsage)) return null;
final PsiElement psiElement = ((PsiElementUsage)usage).getElement();
final PyFunction pyFunction = PsiTreeUtil.getParentOfType(psiElement, PyFunction.class, false, PyClass.class);
if (pyFunction != null) {
return new PsiNamedElementUsageGroupBase<>(pyFunction);
}
return null;
}
}
}
|
{
"content_hash": "4a39596cad3e8085af74386cbadd766b",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 116,
"avg_line_length": 37.111111111111114,
"alnum_prop": 0.7904191616766467,
"repo_name": "fitermay/intellij-community",
"id": "2a54070123a6ee8d2d6f41db447f51b53c9ec828",
"size": "1936",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "python/src/com/jetbrains/python/findUsages/PyFunctionGroupingRuleProvider.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "20665"
},
{
"name": "AspectJ",
"bytes": "182"
},
{
"name": "Batchfile",
"bytes": "59458"
},
{
"name": "C",
"bytes": "215610"
},
{
"name": "C#",
"bytes": "1538"
},
{
"name": "C++",
"bytes": "196925"
},
{
"name": "CSS",
"bytes": "197224"
},
{
"name": "CoffeeScript",
"bytes": "1759"
},
{
"name": "Erlang",
"bytes": "10"
},
{
"name": "Gherkin",
"bytes": "14382"
},
{
"name": "Groff",
"bytes": "35232"
},
{
"name": "Groovy",
"bytes": "2959417"
},
{
"name": "HLSL",
"bytes": "57"
},
{
"name": "HTML",
"bytes": "1826250"
},
{
"name": "J",
"bytes": "5050"
},
{
"name": "Java",
"bytes": "157395762"
},
{
"name": "JavaScript",
"bytes": "563135"
},
{
"name": "Jupyter Notebook",
"bytes": "93222"
},
{
"name": "Kotlin",
"bytes": "2119317"
},
{
"name": "Lex",
"bytes": "178923"
},
{
"name": "Makefile",
"bytes": "2352"
},
{
"name": "NSIS",
"bytes": "49952"
},
{
"name": "Objective-C",
"bytes": "28750"
},
{
"name": "Perl",
"bytes": "903"
},
{
"name": "Perl 6",
"bytes": "26"
},
{
"name": "Protocol Buffer",
"bytes": "6607"
},
{
"name": "Python",
"bytes": "23898534"
},
{
"name": "Ruby",
"bytes": "1217"
},
{
"name": "Scala",
"bytes": "11698"
},
{
"name": "Shell",
"bytes": "62269"
},
{
"name": "Smalltalk",
"bytes": "64"
},
{
"name": "TeX",
"bytes": "25473"
},
{
"name": "Thrift",
"bytes": "1846"
},
{
"name": "TypeScript",
"bytes": "9469"
},
{
"name": "XSLT",
"bytes": "113040"
}
]
}
|
"""
Created on 12 Sep 2020
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
example:
csv_reader.py -l 10 pm2p5-h1-validation.csv | ./pmx_inference_test.py
example CSV:
label,
praxis.meteo.val.hmd, praxis.meteo.val.tmp, praxis.pmx.val.per, praxis.pmx.val.bin:0, praxis.pmx.val.bin:1,
praxis.pmx.val.bin:2, praxis.pmx.val.bin:3, praxis.pmx.val.bin:4, praxis.pmx.val.bin:5, praxis.pmx.val.bin:6,
praxis.pmx.val.bin:7, praxis.pmx.val.bin:8, praxis.pmx.val.bin:9, praxis.pmx.val.bin:10, praxis.pmx.val.bin:11,
praxis.pmx.val.bin:12, praxis.pmx.val.bin:13, praxis.pmx.val.bin:14, praxis.pmx.val.bin:15, praxis.pmx.val.bin:16,
praxis.pmx.val.bin:17, praxis.pmx.val.bin:18, praxis.pmx.val.bin:19, praxis.pmx.val.bin:20, praxis.pmx.val.bin:21,
praxis.pmx.val.bin:22, praxis.pmx.val.bin:23,
praxis.pmx.val.mtf1, praxis.pmx.val.mtf3, praxis.pmx.val.mtf5, praxis.pmx.val.mtf7,
praxis.pmx.val.sfr, praxis.pmx.val.sht.hmd, praxis.pmx.val.sht.tmp
"""
import json
import os
import sys
import time
from collections import OrderedDict
from scs_core.comms.uds_client import UDSClient
from scs_core.data.datum import Datum
from scs_core.data.json import JSONify
from scs_core.data.path_dict import PathDict
from scs_core.model.pmx.s1.pmx_request import PMxRequest
from scs_core.sample.sample import Sample
from scs_core.sys.logging import Logging
from scs_host.comms.domain_socket import DomainSocket
from scs_host.sys.host import Host
# --------------------------------------------------------------------------------------------------------------------
# references...
uds_path = 'pipes/lambda-model-pmx-s1.uds'
document_count = 0
processed_count = 0
start_time = None
# --------------------------------------------------------------------------------------------------------------------
# resources...
# logger...
Logging.config(__name__, verbose=True)
# inference client...
client = UDSClient(DomainSocket, os.path.join(Host.scs_path(), uds_path))
print("pmx_inference_test: %s" % client, file=sys.stderr)
# --------------------------------------------------------------------------------------------------------------------
# run...
try:
client.open()
start_time = time.time()
for line in sys.stdin:
# request...
datum = PathDict.construct_from_jstr(line)
document_count += 1
if datum is None:
break
datum.append('praxis.pmx.src', 'N3')
sample = Sample.construct_from_jdict(datum.node('praxis.pmx'))
climate = Sample.construct_from_jdict(datum.node('praxis.meteo'))
label = Datum.float(datum.node('label'), 1)
combined = PMxRequest(sample, climate)
# inference...
client.request(JSONify.dumps(combined.as_json()))
response = client.wait_for_response()
jdict = json.loads(response, object_hook=OrderedDict)
# response...
if jdict is None:
print("pmx_inference_test: inference rejected: %s" % JSONify.dumps(combined.as_json()), file=sys.stderr)
sys.stderr.flush()
break
opc_sample = Sample.construct_from_jdict(jdict)
jdict = opc_sample.as_json()
jdict['label'] = label
print(JSONify.dumps(jdict))
sys.stdout.flush()
processed_count += 1
# ---------------------------------------------------------------------------------------------------------------------
# end...
except KeyboardInterrupt:
print(file=sys.stderr)
finally:
client.close()
print("pmx_inference_test: documents: %d processed: %d" % (document_count, processed_count),
file=sys.stderr)
if start_time and processed_count > 0:
elapsed_time = round(time.time() - start_time, 1)
avg_per_inference = round(elapsed_time / processed_count, 3)
print("pmx_inference_test: elapsed time: %s avg_per_inference: %s" % (elapsed_time, avg_per_inference),
file=sys.stderr)
|
{
"content_hash": "4e86dc82f292e87f701c99b4d56ee065",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 119,
"avg_line_length": 30.15267175572519,
"alnum_prop": 0.5944303797468354,
"repo_name": "south-coast-science/scs_dev",
"id": "a37d7e9009ea9c5639ae10dcc616fd91d99cf6bf",
"size": "3974",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "tests/inference/pmx_inference_test.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "264120"
},
{
"name": "Shell",
"bytes": "2059"
}
]
}
|
# Clientes
* Adicionar Clientes
* Atualizar Clientes
* Excluir Clientes
* Listar Clientes
## Dados Clientes
* Razão Social
* CNPJ
* Endereço
* Relacionamento de Pessoa com Cliente * Pessoa (s) de contato (Gestor do contrato)
* Relacionamento do Equipamento com o Cliente
* Relacionamento do Tipo de contrato com o Cliente
* Senha de serviços do sistema (a maioria muda a cada ano) (equipamento)
* Espaço para incluir pelo gerenciador a situação de pagamento do contrato
* Cópia do contrato/orçamento firmado e seus aditivos.
# Pessoas
* Adicionar Pessoa
* Atualizar Pessoa
* Excluir Pessoa
* Listar Pessoas por Tipo
## Dados Pessoa
* Tipo de Pessoa (Contato(Gestor do contrato), Técnico)
* Nome
* Telefone
* E*mail
* Senha de Usuario de Pessoa
* Nome de Usuário de Pessoa
# Tipo Pessoa
* Adicionar Tipo Pessoa
* Atualizar Tipo Pessoa
* Excluir Tipo Pessoa
* Listar Tipo Pessoa
## Dados Tipo Pessoa
* Id do Tipo de Pessoa
* Descrição do Tipo de Pessoa
# Equipamento
* Adicionar Equipamento
* Atualizar Equipamento
* Excluir Equipamento
## Dados Equipamento
* Id do Equipamento
* Código do Equipamento
* Nome do Equipamento
* Número de série do sistema
* Lista de peças do Equipamento
# Peças
* Adicionar Peça
* Atualizar Peça
* Excluir Peça
* Listar Peças
## Dados Peças
* Id
* Código identificador da Peça
* Descrição da Peça
# Contratos
* Adicionar Contrato
* Atualizar Contrato
* Excluir Contrato
* Listar Contratos
## Dados Contrato
* Id do Contrato
* Relacionamento de Contratos com o Tipo de Contratos
* Status do contrato ou orçamento (item deve sinalizar para o browser se o contrato/orçamento está válido ou adimplente)
* Validade do contrato ou orçamento
* Arquivo Tipo de Contrato
# Tipos de Contratos
* Adicionar Tipo Contrato
* Atualizar Tipo Contrato
* Excluir Tipo Contrato
* Listar Tipo Contrato
## Dados Tipo de Contrato
* Id Tipo de Contrato
* Descrição Tipo de Contrato
### Tipo
* [Light, Basic, Full, Top]
### Observações
> O contrato Top contempla atendimento técnico com fornecimento de peças, enquanto o contrato Light apenas dá direito a 02 manutenções preventivas/ano + suporte via telefone.
# Perfil de Permissão
* Adicionar Perfil
* Atualizar Perfil
* Excluir Perfil
* Listar Perfil
## Dados Perfil de Permissão
* Id Perfil
* Descrição do Perfil
# Ordens de serviços
* Abrir Ordem de Serviço
* Atualizar Status da Ordem de Serviço
* Remover Ordem de Serviço
## Dados Ordem de Serviço
* Id da Ordem de Serviço
* Descrição do problema
* Status da Ordem de Serviço
* Relacionamento da Ordem de Serviço com o Cliente
|
{
"content_hash": "fbad51d1e60eceb07572f7b5a2327d32",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 176,
"avg_line_length": 23.99122807017544,
"alnum_prop": 0.717001828153565,
"repo_name": "Gambya/mod",
"id": "66a436b228d673112b007292e0d21e58c266f306",
"size": "2797",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/requisitos.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "627946"
}
]
}
|
NSString *const CIOAPISessionURLResponseErrorKey = @"io.context.error.response";
@interface CIODownloadTask : NSObject
@property (nullable, nonatomic) NSURL *saveToURL;
@property (nullable, nonatomic, copy) CIOSessionDownloadProgressBlock progressBlock;
@property (nullable, nonatomic, copy) void (^successBlock)();
@property (nullable, nonatomic, copy) void (^failureBlock)(NSError *error);
@end
@implementation CIODownloadTask
@end
#pragma mark -
@interface CIOAPISession () <NSURLSessionDownloadDelegate>
@property (nonatomic) NSURLSession *urlSession;
@property (nonatomic) NSIndexSet *acceptableStatusCodes;
// Mapping from Task ID to CIODownloadTask. Must only be read/written on the underlying NSURLSession queue.
@property (nonatomic) NSMutableDictionary *downloadTaskIDToCIOTask;
@end
@implementation CIOAPISession
- (instancetype)init {
if ((self = [super init])) {
self.urlSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]
delegate:self
delegateQueue:nil];
// Hat tip to AFNetworking
self.acceptableStatusCodes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(200, 100)];
self.downloadTaskIDToCIOTask = [NSMutableDictionary dictionary];
}
return self;
}
- (void)downloadRequest:(NSURLRequest *)request
toFileURL:(NSURL *)saveToURL
success:(void (^)())successBlock
failure:(void (^)(NSError *))failureBlock
progress:(void (^)(int64_t, int64_t, int64_t))progressBlock {
NSURLSessionDownloadTask *downloadTask = [self.urlSession downloadTaskWithRequest:request];
CIODownloadTask *cioTask = [CIODownloadTask new];
cioTask.saveToURL = saveToURL;
cioTask.successBlock = successBlock;
cioTask.failureBlock = failureBlock;
cioTask.progressBlock = progressBlock;
[self.urlSession.delegateQueue addOperationWithBlock:^{
self.downloadTaskIDToCIOTask[@(downloadTask.taskIdentifier)] = cioTask;
[downloadTask resume];
}];
}
#pragma mark -
// If `block` is nonnull, calls it with `parameter` on the main dispatch queue
- (void)_dispatchMain:(nullable void (^)(id param))block parameter:(id)parameter {
if (block) {
dispatch_async(dispatch_get_main_queue(), ^{
block(parameter);
});
}
}
- (NSError *)errorForResponse:(NSHTTPURLResponse *)response responseObject:(id)responseObject {
NSString *errorString = nil;
if ([responseObject isKindOfClass:[NSDictionary class]]) {
if ([responseObject[@"type"] isEqual:@"error"]) {
errorString = responseObject[@"value"];
} else if ([responseObject[@"success"] isEqual:@NO]) {
NSArray *responseValues =
@[responseObject[@"feedback_code"] ?: @"", responseObject[@"connectionLog"] ?: @""];
errorString = [responseValues componentsJoinedByString:@"\n"];
}
}
if (!errorString) {
NSInteger code = response.statusCode;
errorString = [NSString stringWithFormat:@"Invalid server response: %@ (%ld)",
[NSHTTPURLResponse localizedStringForStatusCode:code], (long)code];
}
return
[NSError errorWithDomain:@"io.context.error.statuscode"
code:NSURLErrorBadServerResponse
userInfo:@{NSLocalizedDescriptionKey: errorString, CIOAPISessionURLResponseErrorKey: response}];
}
- (id)parseResponse:(NSURLResponse *)response data:(NSData *)data error:(NSError **)error {
id responseObject = nil;
if (data && [data length] > 0) {
if ([[response MIMEType] isEqualToString:@"application/json"]) {
NSError *jsonError;
responseObject = [NSJSONSerialization JSONObjectWithData:data options:0 error:&jsonError];
if (jsonError) {
*error = jsonError;
return nil;
}
} else {
NSStringEncoding encoding = NSUTF8StringEncoding;
if (response.textEncodingName) {
encoding = CFStringConvertEncodingToNSStringEncoding(
CFStringConvertIANACharSetNameToEncoding((__bridge CFStringRef)response.textEncodingName));
}
responseObject = [[NSString alloc] initWithData:data encoding:encoding];
}
}
if ([response isKindOfClass:[NSHTTPURLResponse class]]) {
NSUInteger code = (NSUInteger)[(NSHTTPURLResponse *)response statusCode];
if (![self.acceptableStatusCodes containsIndex:code]) {
if (error) {
*error = [self errorForResponse:(NSHTTPURLResponse *)response responseObject:responseObject];
}
return responseObject;
}
}
return responseObject;
}
- (void)executeRequest:(NSURLRequest *)request
success:(void (^)(id responseObject))successBlock
failure:(void (^)(NSError *error))failureBlock {
NSURLSessionDataTask *dataTask =
[self.urlSession dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
[self _dispatchMain:failureBlock parameter:error];
return;
}
id responseObject = [self parseResponse:response data:data error:&error];
if (error) {
[self _dispatchMain:failureBlock parameter:error];
return;
}
[self _dispatchMain:successBlock parameter:responseObject];
}];
[dataTask resume];
}
#pragma mark - NSURLSessionTaskDelegate
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error {
CIODownloadTask *cioTask = self.downloadTaskIDToCIOTask[@(task.taskIdentifier)];
if (cioTask) {
if (error) {
[self _dispatchMain:cioTask.failureBlock parameter:error];
} else if (cioTask.successBlock) {
dispatch_async(dispatch_get_main_queue(), cioTask.successBlock);
}
[self.downloadTaskIDToCIOTask removeObjectForKey:@(task.taskIdentifier)];
}
}
#pragma mark - NSURLSessionDownloadDelegate
- (void)URLSession:(NSURLSession *)session
downloadTask:(NSURLSessionDownloadTask *)downloadTask
didWriteData:(int64_t)bytesWritten
totalBytesWritten:(int64_t)totalBytesWritten
totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite {
CIODownloadTask *cioTask = self.downloadTaskIDToCIOTask[@(downloadTask.taskIdentifier)];
if (cioTask.progressBlock) {
dispatch_async(dispatch_get_main_queue(), ^{
cioTask.progressBlock(bytesWritten, totalBytesWritten, totalBytesExpectedToWrite);
});
}
}
- (void)URLSession:(NSURLSession *)session
downloadTask:(NSURLSessionDownloadTask *)downloadTask
didFinishDownloadingToURL:(NSURL *)location {
CIODownloadTask *cioTask = self.downloadTaskIDToCIOTask[@(downloadTask.taskIdentifier)];
if (cioTask.saveToURL) {
NSError *error = nil;
[[NSFileManager defaultManager] moveItemAtURL:location toURL:cioTask.saveToURL error:&error];
if (error) {
[self _dispatchMain:cioTask.failureBlock parameter:error];
[self.downloadTaskIDToCIOTask removeObjectForKey:@(downloadTask.taskIdentifier)];
}
}
}
@end
|
{
"content_hash": "efadbb941cbb1d1c30d3f9314f35eb1b",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 120,
"avg_line_length": 41.553763440860216,
"alnum_prop": 0.641997671108811,
"repo_name": "contextio/contextio-ios",
"id": "12f6d829ccff869df9305b796f8afb7d25e5d27b",
"size": "7900",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CIOAPIClient/CIOAPISession.m",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Objective-C",
"bytes": "223608"
},
{
"name": "Ruby",
"bytes": "1628"
},
{
"name": "Swift",
"bytes": "6292"
}
]
}
|
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2010 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it.
// =================================================================================================
#include "XMPFiles/source/FormatSupport/IFF/ChunkPath.h"
#include "source/XMP_LibUtils.hpp"
#include <vector>
using namespace IFF_RIFF;
typedef std::vector<ChunkIdentifier>::size_type ChunkSizeType;
//-----------------------------------------------------------------------------
//
// ChunkPath::ChunkPath(...)
//
// Purpose: ctor/dtor
//
//-----------------------------------------------------------------------------
ChunkPath::ChunkPath( const ChunkIdentifier* path /*= NULL*/, XMP_Uns32 size /*=0*/ )
{
if( path != NULL )
{
for( XMP_Uns32 i=0; i<size; i++ )
{
this->append( path[i] );
}
}
}
ChunkPath::ChunkPath( const ChunkPath& path )
{
for( XMP_Int32 i=0; i<path.length(); i++ )
{
this->append( path.identifier(i) );
}
}
ChunkPath::ChunkPath( const ChunkIdentifier& identifier )
{
this->append( identifier );
}
ChunkPath::~ChunkPath()
{
this->clear();
}
ChunkPath & ChunkPath::operator=( const ChunkPath &rhs )
{
for( XMP_Int32 i = 0; i < rhs.length(); i++ )
{
this->append( rhs.identifier(i) );
}
return *this;
}
//-----------------------------------------------------------------------------
//
// ChunkPath::clear(...)
//
// Purpose: Remove all ChunkIdentifier's from the path
//
//-----------------------------------------------------------------------------
void ChunkPath::clear()
{
mPath.clear();
}
//-----------------------------------------------------------------------------
//
// ChunkPath::append(...)
//
// Purpose: Append a ChunkIdentifier to the end of the path
//
//-----------------------------------------------------------------------------
void ChunkPath::append( XMP_Uns32 id, XMP_Uns32 type /*= kType_NONE*/ )
{
ChunkIdentifier ci;
ci.id = id;
ci.type = type;
mPath.push_back(ci);
}
void ChunkPath::append( const ChunkIdentifier& identifier )
{
mPath.push_back(identifier);
}
void ChunkPath::append( const ChunkIdentifier* path, XMP_Uns32 size )
{
if( path != NULL )
{
for( XMP_Uns32 i=0; i < size; i++ )
{
this->append( path[i] );
}
}
}
//-----------------------------------------------------------------------------
//
// ChunkPath::insert(...)
//
// Purpose: Insert an identifier
//
//-----------------------------------------------------------------------------
void ChunkPath::insert( const ChunkIdentifier& identifier, XMP_Uns32 pos /*= 0*/ )
{
if( pos >= mPath.size() )
{
this->append( identifier );
}
else
{
mPath.insert( mPath.begin() + pos, identifier );
}
}
//-----------------------------------------------------------------------------
//
// ChunkPath::remove(...)
//
// Purpose: Remove the endmost ChunkIdentifier from the path
//
//-----------------------------------------------------------------------------
void ChunkPath::remove()
{
mPath.pop_back();
}
//-----------------------------------------------------------------------------
//
// ChunkPath::removeAt(...)
//
// Purpose: Remove the ChunkIdentifier at the passed position in the path
//
//-----------------------------------------------------------------------------
void ChunkPath::removeAt( XMP_Int32 pos )
{
if( ! mPath.empty() && pos >= 0 && (ChunkSizeType)pos < mPath.size() )
{
mPath.erase( mPath.begin() + pos );
}
else
{
XMP_Throw( "Index out of range.", kXMPErr_BadIndex );
}
}
//-----------------------------------------------------------------------------
//
// ChunkPath::identifier(...)
//
// Purpose: Return ChunkIdentifier at the passed position
//
//-----------------------------------------------------------------------------
const ChunkIdentifier& ChunkPath::identifier( XMP_Int32 pos ) const
{
return mPath.at(pos);
}
//-----------------------------------------------------------------------------
//
// ChunkPath::length(...)
//
// Purpose: Return the number of ChunkIdentifier's in the path
//
//-----------------------------------------------------------------------------
XMP_Int32 ChunkPath::length() const
{
return (XMP_Int32)mPath.size();
}
//-----------------------------------------------------------------------------
//
// ChunkPath::match(...)
//
// Purpose: Compare the passed ChunkPath with this path.
//
//-----------------------------------------------------------------------------
ChunkPath::MatchResult ChunkPath::match( const ChunkPath& path ) const
{
MatchResult ret = kNoMatch;
if( path.length() > 0 )
{
XMP_Int32 depth = ( this->length() > path.length() ? path.length() : this->length() );
XMP_Int32 matchCount = 0;
for( XMP_Int32 i=0; i<depth; i++ )
{
const ChunkIdentifier& id1 = this->identifier(i);
const ChunkIdentifier& id2 = path.identifier(i);
if( id1.id == id2.id )
{
if( i == this->length() - 1 && id1.type == kType_NONE )
{
matchCount++;
}
else if( id1.type == id2.type )
{
matchCount++;
}
}
else
break;
}
if( matchCount == depth )
{
ret = ( path.length() >= this->length() ? kFullMatch : kPartMatch );
}
}
return ret;
}
|
{
"content_hash": "893f7077cb08b20d194e8eb8a2829b64",
"timestamp": "",
"source": "github",
"line_count": 239,
"max_line_length": 100,
"avg_line_length": 22.828451882845187,
"alnum_prop": 0.4398826979472141,
"repo_name": "apavlenko/vmf",
"id": "54680f847c7ef5b49fa03e675714b8e19dbcf6f6",
"size": "5456",
"binary": false,
"copies": "5",
"ref": "refs/heads/vmf-3.0",
"path": "3rdparty/xmp/XMPFiles/source/FormatSupport/IFF/ChunkPath.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "416"
},
{
"name": "C++",
"bytes": "1067536"
},
{
"name": "CMake",
"bytes": "117761"
},
{
"name": "HTML",
"bytes": "2276"
},
{
"name": "Java",
"bytes": "219648"
},
{
"name": "Objective-C",
"bytes": "58920"
},
{
"name": "Objective-C++",
"bytes": "50718"
},
{
"name": "Python",
"bytes": "8170"
},
{
"name": "QML",
"bytes": "15245"
},
{
"name": "QMake",
"bytes": "1197"
},
{
"name": "Shell",
"bytes": "397"
}
]
}
|
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for app/shared/input/select/input-select.component.ts</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../../../prettify.css" />
<link rel="stylesheet" href="../../../../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../../../../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../../../../index.html">all files</a> / <a href="index.html">app/shared/input/select/</a> input-select.component.ts
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>18/18</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
<span class="quiet">Branches</span>
<span class='fraction'>1/2</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>2/2</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>14/14</span>
</div>
</div>
</div>
<div class='status-line high'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral"> </span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { Component, Input, Output, EventEmitter } from '@angular/core';
import { FormControl, NgModel } from '@angular/forms';
import { InputSelectOption } from './input-select-option.interface';
@Component({
selector: 'ecrm-input-select',
templateUrl: 'input-select.component.html'
})
export class InputSelectComponent {
@Input() loadingId: string = 'county';
@Input() label: string;
@Input() control: FormControl;
@Input() value: any;
@Input() options: InputSelectOption[];
@Input() isDisabled: boolean = false;
@Output() changed: EventEmitter<any> = new EventEmitter<any>();
handlerChange(e) {
this.changed.emit(this.value ? <span class="branch-0 cbranch-no" title="branch not covered" >this.value </span>: this.control.value);
}
}
</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Dec 23 2016 17:07:03 GMT+0100 (CET)
</div>
</div>
<script src="../../../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../../../sorter.js"></script>
</body>
</html>
|
{
"content_hash": "89db7088e749d718523ad6060e976593",
"timestamp": "",
"source": "github",
"line_count": 134,
"max_line_length": 177,
"avg_line_length": 32.007462686567166,
"alnum_prop": 0.6292842154348333,
"repo_name": "darekf77/account-login",
"id": "ff6a610ffa1206fc4542e1a68b61df076e7ce967",
"size": "4303",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/coverage/app/shared/input/select/input-select.component.ts.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1539"
},
{
"name": "Cucumber",
"bytes": "615"
},
{
"name": "HTML",
"bytes": "4100"
},
{
"name": "JavaScript",
"bytes": "53420"
},
{
"name": "Shell",
"bytes": "754"
},
{
"name": "TypeScript",
"bytes": "48631"
}
]
}
|
using namespace Eigen;
using namespace std;
void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
// check number of arguments
if (nrhs < 4) {
mexErrMsgIdAndTxt("Drake:collidingPointsmex:NotEnoughInputs",
"Usage: colliding_points = "
"collidingPoints(mex_model_ptr, cache_ptr, points, "
"collision_threshold)");
}
// check argument types
if (!mxIsClass(prhs[0], "DrakeMexPointer")) {
mexErrMsgIdAndTxt(
"Drake:collidingPointsmex:InvalidInputType",
"Expected a DrakeMexPointer for mex_model_ptr but got something else.");
}
if (!mxIsClass(prhs[1], "DrakeMexPointer")) {
mexErrMsgIdAndTxt(
"Drake:collidingPointsmex:InvalidInputType",
"Expected a DrakeMexPointer for cache_ptr but got something else.");
}
if (!mxIsDouble(prhs[2])) {
mexErrMsgIdAndTxt(
"Drake:collidingPointsmex:InvalidInputType",
"Expected a double type for points but got something else.");
}
if (!mxIsDouble(prhs[3])) {
mexErrMsgIdAndTxt("Drake:collidingPointsmex:InvalidInputType",
"Expected a double type for collision_threshold but got "
"something else.");
}
int arg_num = 0;
RigidBodyTree* model =
static_cast<RigidBodyTree*>(getDrakeMexPointer(prhs[arg_num++]));
KinematicsCache<double>* cache = static_cast<KinematicsCache<double>*>(
getDrakeMexPointer(prhs[arg_num++]));
const mxArray* points_mx = prhs[arg_num++];
const mxArray* collision_threshold_mx = prhs[arg_num++];
int n_points;
vector<Vector3d> points;
double collision_threshold = *(double*)mxGetData(collision_threshold_mx);
n_points = mxGetN(points_mx);
double* points_mx_p = (double*)mxGetData(points_mx);
for (int i = 0; i < n_points; ++i) {
Vector3d point(points_mx_p[3 * i + 0], points_mx_p[3 * i + 1],
points_mx_p[3 * i + 2]);
points.push_back(point);
}
vector<size_t> colliding_points =
model->collidingPoints(*cache, points, collision_threshold);
transform(colliding_points.begin(), colliding_points.end(),
colliding_points.begin(), bind2nd(plus<int>(), 1));
if (nlhs > 0) {
plhs[0] = mxCreateNumericMatrix(
1, static_cast<int>(colliding_points.size()), mxUINT64_CLASS, mxREAL);
memcpy(mxGetData(plhs[0]), colliding_points.data(),
sizeof(size_t) * static_cast<int>(colliding_points.size()));
}
}
|
{
"content_hash": "dd40330313e060954c23ba40ee773bfa",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 80,
"avg_line_length": 35.140845070422536,
"alnum_prop": 0.6420841683366734,
"repo_name": "sheim/drake",
"id": "576e52adf3e6f5043130c04d427ac122c240a3d2",
"size": "2636",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "drake/systems/plants/collidingPointsmex.cpp",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "329914"
},
{
"name": "C++",
"bytes": "3321947"
},
{
"name": "CMake",
"bytes": "322742"
},
{
"name": "CSS",
"bytes": "8598"
},
{
"name": "FORTRAN",
"bytes": "5597"
},
{
"name": "HTML",
"bytes": "13148"
},
{
"name": "Java",
"bytes": "29789"
},
{
"name": "M",
"bytes": "23582"
},
{
"name": "Makefile",
"bytes": "15099"
},
{
"name": "Mathematica",
"bytes": "115"
},
{
"name": "Matlab",
"bytes": "4322614"
},
{
"name": "Objective-C",
"bytes": "2755"
},
{
"name": "Perl",
"bytes": "22532"
},
{
"name": "Python",
"bytes": "54166"
},
{
"name": "Shell",
"bytes": "11322"
},
{
"name": "TeX",
"bytes": "38033"
}
]
}
|
/
class RemoteEnrolleeResource
{
friend class EnrolleeSecurity;
public:
typedef std::shared_ptr< RemoteEnrolleeResource > Ptr;
typedef std::function< void(std::shared_ptr< ProvisioningStatus >) > ProvStatusCb;
/**
* RemoteEnrolleeResource constructor
*
* @param enrolleeNWProvInfo Provisioning information for the Enrollee
*
* @throw ESBadRequestException is thrown if the parameters are invalid
*/
RemoteEnrolleeResource(ProvConfig enrolleeNWProvInfo, WiFiOnboadingConnection onboardingconn);
~RemoteEnrolleeResource() = default;
/**
* Register provisioning status handler.
*
* @param callback Callback to get Provisioning status.
*
* @throws InvalidParameterException If callback is an empty function or null.
* @throws ESBadRequestException If registration is already completed.
*
* @see ProvisioningStatus
*/
void registerProvStatusCallback (ProvStatusCb provStatusCb);
/**
* Construct Remote OIC resource using the enrollee host and connectivity information
* provided in the constructor of RemoteEnrolleeResource.
*
* @throws InvalidParameterException If the provided information is invalid.
* @throws ESBadRequestException If resource is already constructed.
*
* @see ProvisioningStatus
*/
ESResult constructResourceObject();
/**
* Function for provisioning of Remote Enrollee resource using the information provided.
*
* @throws InvalidParameterException If cb is empty.
*/
void provisionEnrollee();
/**
* Function for unprovisioning of Remote Enrollee and bring to unprovisioned state
*
* @throws ESBadRequestException If device is not provisioned already.
*/
void unprovisionEnrollee();
private:
std::shared_ptr< OC::OCResource > m_ocResource;
std::mutex m_mutex;
ProvStatusCb m_provStatusCb;
ProvConfig m_ProvConfig;
WiFiOnboadingConnection m_wifiOnboardingconn;
bool m_discoveryResponse;
void getProvStatusResponse(const HeaderOptions& headerOptions, const OCRepresentation& rep,
const int eCode);
void checkProvInformationCb(const HeaderOptions& headerOptions, const OCRepresentation& rep,
const int eCode);
ESResult ESDiscoveryTimeout(unsigned short waittime);
void onDeviceDiscovered(std::shared_ptr<OC::OCResource> resource);
void triggerNetworkConnection();
void triggerNetworkConnectionCb(
const HeaderOptions& headerOptions, const OCRepresentation& rep,
const int eCode);
};
}
}
#endif
|
{
"content_hash": "7bb1a31767d765a5c936828194713e20",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 106,
"avg_line_length": 36.333333333333336,
"alnum_prop": 0.5934830749762733,
"repo_name": "santais/iotivity",
"id": "019a51494f00f3d7c39029c82c4f7d7dc41a6980",
"size": "4407",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "service/easy-setup/mediator/richsdk/inc/RemoteEnrolleeResource.h",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Arduino",
"bytes": "2338"
},
{
"name": "C",
"bytes": "5402474"
},
{
"name": "C++",
"bytes": "6156761"
},
{
"name": "Groff",
"bytes": "2808"
},
{
"name": "HTML",
"bytes": "176"
},
{
"name": "Java",
"bytes": "2893685"
},
{
"name": "Makefile",
"bytes": "59380"
},
{
"name": "Perl",
"bytes": "13289"
},
{
"name": "Python",
"bytes": "557886"
},
{
"name": "Shell",
"bytes": "28191"
}
]
}
|
// Boost.Geometry - gis-projections (based on PROJ4)
// Copyright (c) 2008-2015 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2017, 2018.
// Modifications copyright (c) 2017-2018, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// This file is converted from PROJ4, http://trac.osgeo.org/proj
// PROJ4 is originally written by Gerald Evenden (then of the USGS)
// PROJ4 is maintained by Frank Warmerdam
// PROJ4 is converted to Boost.Geometry by Barend Gehrels
// Last updated version of proj: 5.0.0
// Original copyright notice:
// This implements the Quadrilateralized Spherical Cube (QSC) projection.
// Copyright (c) 2011, 2012 Martin Lambers <marlam@marlam.de>
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// The QSC projection was introduced in:
// [OL76]
// E.M. O'Neill and R.E. Laubscher, "Extended Studies of a Quadrilateralized
// Spherical Cube Earth Data Base", Naval Environmental Prediction Research
// Facility Tech. Report NEPRF 3-76 (CSC), May 1976.
// The preceding shift from an ellipsoid to a sphere, which allows to apply
// this projection to ellipsoids as used in the Ellipsoidal Cube Map model,
// is described in
// [LK12]
// M. Lambers and A. Kolb, "Ellipsoidal Cube Maps for Accurate Rendering of
// Planetary-Scale Terrain Data", Proc. Pacfic Graphics (Short Papers), Sep.
// 2012
// You have to choose one of the following projection centers,
// corresponding to the centers of the six cube faces:
// phi0 = 0.0, lam0 = 0.0 ("front" face)
// phi0 = 0.0, lam0 = 90.0 ("right" face)
// phi0 = 0.0, lam0 = 180.0 ("back" face)
// phi0 = 0.0, lam0 = -90.0 ("left" face)
// phi0 = 90.0 ("top" face)
// phi0 = -90.0 ("bottom" face)
// Other projection centers will not work!
// In the projection code below, each cube face is handled differently.
// See the computation of the face parameter in the ENTRY0(qsc) function
// and the handling of different face values (FACE_*) in the forward and
// inverse projections.
// Furthermore, the projection is originally only defined for theta angles
// between (-1/4 * PI) and (+1/4 * PI) on the current cube face. This area
// of definition is named AREA_0 in the projection code below. The other
// three areas of a cube face are handled by rotation of AREA_0.
#ifndef BOOST_GEOMETRY_PROJECTIONS_QSC_HPP
#define BOOST_GEOMETRY_PROJECTIONS_QSC_HPP
#include <boost/core/ignore_unused.hpp>
#include <boost/geometry/util/math.hpp>
#include <boost/geometry/srs/projections/impl/base_static.hpp>
#include <boost/geometry/srs/projections/impl/base_dynamic.hpp>
#include <boost/geometry/srs/projections/impl/projects.hpp>
#include <boost/geometry/srs/projections/impl/factory_entry.hpp>
namespace boost { namespace geometry
{
namespace projections
{
#ifndef DOXYGEN_NO_DETAIL
namespace detail { namespace qsc
{
/* The six cube faces. */
enum face_type {
face_front = 0,
face_right = 1,
face_back = 2,
face_left = 3,
face_top = 4,
face_bottom = 5
};
template <typename T>
struct par_qsc
{
face_type face;
T a_squared;
T b;
T one_minus_f;
T one_minus_f_squared;
};
static const double epsilon10 = 1.e-10;
/* The four areas on a cube face. AREA_0 is the area of definition,
* the other three areas are counted counterclockwise. */
enum area_type {
area_0 = 0,
area_1 = 1,
area_2 = 2,
area_3 = 3
};
/* Helper function for forward projection: compute the theta angle
* and determine the area number. */
template <typename T>
inline T qsc_fwd_equat_face_theta(T const& phi, T const& y, T const& x, area_type *area)
{
static const T fourth_pi = detail::fourth_pi<T>();
static const T half_pi = detail::half_pi<T>();
static const T pi = detail::pi<T>();
T theta;
if (phi < epsilon10) {
*area = area_0;
theta = 0.0;
} else {
theta = atan2(y, x);
if (fabs(theta) <= fourth_pi) {
*area = area_0;
} else if (theta > fourth_pi && theta <= half_pi + fourth_pi) {
*area = area_1;
theta -= half_pi;
} else if (theta > half_pi + fourth_pi || theta <= -(half_pi + fourth_pi)) {
*area = area_2;
theta = (theta >= 0.0 ? theta - pi : theta + pi);
} else {
*area = area_3;
theta += half_pi;
}
}
return theta;
}
/* Helper function: shift the longitude. */
template <typename T>
inline T qsc_shift_lon_origin(T const& lon, T const& offset)
{
static const T pi = detail::pi<T>();
static const T two_pi = detail::two_pi<T>();
T slon = lon + offset;
if (slon < -pi) {
slon += two_pi;
} else if (slon > +pi) {
slon -= two_pi;
}
return slon;
}
/* Forward projection, ellipsoid */
// template class, using CRTP to implement forward/inverse
template <typename T, typename Parameters>
struct base_qsc_ellipsoid
: public base_t_fi<base_qsc_ellipsoid<T, Parameters>, T, Parameters>
{
par_qsc<T> m_proj_parm;
inline base_qsc_ellipsoid(const Parameters& par)
: base_t_fi<base_qsc_ellipsoid<T, Parameters>, T, Parameters>(*this, par)
{}
// FORWARD(e_forward)
// Project coordinates from geographic (lon, lat) to cartesian (x, y)
inline void fwd(T const& lp_lon, T const& lp_lat, T& xy_x, T& xy_y) const
{
static const T fourth_pi = detail::fourth_pi<T>();
static const T half_pi = detail::half_pi<T>();
static const T pi = detail::pi<T>();
T lat, lon;
T theta, phi;
T t, mu; /* nu; */
area_type area;
/* Convert the geodetic latitude to a geocentric latitude.
* This corresponds to the shift from the ellipsoid to the sphere
* described in [LK12]. */
if (this->m_par.es != 0.0) {
lat = atan(this->m_proj_parm.one_minus_f_squared * tan(lp_lat));
} else {
lat = lp_lat;
}
/* Convert the input lat, lon into theta, phi as used by QSC.
* This depends on the cube face and the area on it.
* For the top and bottom face, we can compute theta and phi
* directly from phi, lam. For the other faces, we must use
* unit sphere cartesian coordinates as an intermediate step. */
lon = lp_lon;
if (this->m_proj_parm.face == face_top) {
phi = half_pi - lat;
if (lon >= fourth_pi && lon <= half_pi + fourth_pi) {
area = area_0;
theta = lon - half_pi;
} else if (lon > half_pi + fourth_pi || lon <= -(half_pi + fourth_pi)) {
area = area_1;
theta = (lon > 0.0 ? lon - pi : lon + pi);
} else if (lon > -(half_pi + fourth_pi) && lon <= -fourth_pi) {
area = area_2;
theta = lon + half_pi;
} else {
area = area_3;
theta = lon;
}
} else if (this->m_proj_parm.face == face_bottom) {
phi = half_pi + lat;
if (lon >= fourth_pi && lon <= half_pi + fourth_pi) {
area = area_0;
theta = -lon + half_pi;
} else if (lon < fourth_pi && lon >= -fourth_pi) {
area = area_1;
theta = -lon;
} else if (lon < -fourth_pi && lon >= -(half_pi + fourth_pi)) {
area = area_2;
theta = -lon - half_pi;
} else {
area = area_3;
theta = (lon > 0.0 ? -lon + pi : -lon - pi);
}
} else {
T q, r, s;
T sinlat, coslat;
T sinlon, coslon;
if (this->m_proj_parm.face == face_right) {
lon = qsc_shift_lon_origin(lon, +half_pi);
} else if (this->m_proj_parm.face == face_back) {
lon = qsc_shift_lon_origin(lon, +pi);
} else if (this->m_proj_parm.face == face_left) {
lon = qsc_shift_lon_origin(lon, -half_pi);
}
sinlat = sin(lat);
coslat = cos(lat);
sinlon = sin(lon);
coslon = cos(lon);
q = coslat * coslon;
r = coslat * sinlon;
s = sinlat;
if (this->m_proj_parm.face == face_front) {
phi = acos(q);
theta = qsc_fwd_equat_face_theta(phi, s, r, &area);
} else if (this->m_proj_parm.face == face_right) {
phi = acos(r);
theta = qsc_fwd_equat_face_theta(phi, s, -q, &area);
} else if (this->m_proj_parm.face == face_back) {
phi = acos(-q);
theta = qsc_fwd_equat_face_theta(phi, s, -r, &area);
} else if (this->m_proj_parm.face == face_left) {
phi = acos(-r);
theta = qsc_fwd_equat_face_theta(phi, s, q, &area);
} else {
/* Impossible */
phi = theta = 0.0;
area = area_0;
}
}
/* Compute mu and nu for the area of definition.
* For mu, see Eq. (3-21) in [OL76], but note the typos:
* compare with Eq. (3-14). For nu, see Eq. (3-38). */
mu = atan((12.0 / pi) * (theta + acos(sin(theta) * cos(fourth_pi)) - half_pi));
// TODO: (cos(mu) * cos(mu)) could be replaced with sqr(cos(mu))
t = sqrt((1.0 - cos(phi)) / (cos(mu) * cos(mu)) / (1.0 - cos(atan(1.0 / cos(theta)))));
/* nu = atan(t); We don't really need nu, just t, see below. */
/* Apply the result to the real area. */
if (area == area_1) {
mu += half_pi;
} else if (area == area_2) {
mu += pi;
} else if (area == area_3) {
mu += half_pi + pi;
}
/* Now compute x, y from mu and nu */
/* t = tan(nu); */
xy_x = t * cos(mu);
xy_y = t * sin(mu);
}
/* Inverse projection, ellipsoid */
// INVERSE(e_inverse)
// Project coordinates from cartesian (x, y) to geographic (lon, lat)
inline void inv(T const& xy_x, T const& xy_y, T& lp_lon, T& lp_lat) const
{
static const T half_pi = detail::half_pi<T>();
static const T pi = detail::pi<T>();
T mu, nu, cosmu, tannu;
T tantheta, theta, cosphi, phi;
T t;
int area;
/* Convert the input x, y to the mu and nu angles as used by QSC.
* This depends on the area of the cube face. */
nu = atan(sqrt(xy_x * xy_x + xy_y * xy_y));
mu = atan2(xy_y, xy_x);
if (xy_x >= 0.0 && xy_x >= fabs(xy_y)) {
area = area_0;
} else if (xy_y >= 0.0 && xy_y >= fabs(xy_x)) {
area = area_1;
mu -= half_pi;
} else if (xy_x < 0.0 && -xy_x >= fabs(xy_y)) {
area = area_2;
mu = (mu < 0.0 ? mu + pi : mu - pi);
} else {
area = area_3;
mu += half_pi;
}
/* Compute phi and theta for the area of definition.
* The inverse projection is not described in the original paper, but some
* good hints can be found here (as of 2011-12-14):
* http://fits.gsfc.nasa.gov/fitsbits/saf.93/saf.9302
* (search for "Message-Id: <9302181759.AA25477 at fits.cv.nrao.edu>") */
t = (pi / 12.0) * tan(mu);
tantheta = sin(t) / (cos(t) - (1.0 / sqrt(2.0)));
theta = atan(tantheta);
cosmu = cos(mu);
tannu = tan(nu);
cosphi = 1.0 - cosmu * cosmu * tannu * tannu * (1.0 - cos(atan(1.0 / cos(theta))));
if (cosphi < -1.0) {
cosphi = -1.0;
} else if (cosphi > +1.0) {
cosphi = +1.0;
}
/* Apply the result to the real area on the cube face.
* For the top and bottom face, we can compute phi and lam directly.
* For the other faces, we must use unit sphere cartesian coordinates
* as an intermediate step. */
if (this->m_proj_parm.face == face_top) {
phi = acos(cosphi);
lp_lat = half_pi - phi;
if (area == area_0) {
lp_lon = theta + half_pi;
} else if (area == area_1) {
lp_lon = (theta < 0.0 ? theta + pi : theta - pi);
} else if (area == area_2) {
lp_lon = theta - half_pi;
} else /* area == AREA_3 */ {
lp_lon = theta;
}
} else if (this->m_proj_parm.face == face_bottom) {
phi = acos(cosphi);
lp_lat = phi - half_pi;
if (area == area_0) {
lp_lon = -theta + half_pi;
} else if (area == area_1) {
lp_lon = -theta;
} else if (area == area_2) {
lp_lon = -theta - half_pi;
} else /* area == area_3 */ {
lp_lon = (theta < 0.0 ? -theta - pi : -theta + pi);
}
} else {
/* Compute phi and lam via cartesian unit sphere coordinates. */
T q, r, s;
q = cosphi;
t = q * q;
if (t >= 1.0) {
s = 0.0;
} else {
s = sqrt(1.0 - t) * sin(theta);
}
t += s * s;
if (t >= 1.0) {
r = 0.0;
} else {
r = sqrt(1.0 - t);
}
/* Rotate q,r,s into the correct area. */
if (area == area_1) {
t = r;
r = -s;
s = t;
} else if (area == area_2) {
r = -r;
s = -s;
} else if (area == area_3) {
t = r;
r = s;
s = -t;
}
/* Rotate q,r,s into the correct cube face. */
if (this->m_proj_parm.face == face_right) {
t = q;
q = -r;
r = t;
} else if (this->m_proj_parm.face == face_back) {
q = -q;
r = -r;
} else if (this->m_proj_parm.face == face_left) {
t = q;
q = r;
r = -t;
}
/* Now compute phi and lam from the unit sphere coordinates. */
lp_lat = acos(-s) - half_pi;
lp_lon = atan2(r, q);
if (this->m_proj_parm.face == face_right) {
lp_lon = qsc_shift_lon_origin(lp_lon, -half_pi);
} else if (this->m_proj_parm.face == face_back) {
lp_lon = qsc_shift_lon_origin(lp_lon, -pi);
} else if (this->m_proj_parm.face == face_left) {
lp_lon = qsc_shift_lon_origin(lp_lon, +half_pi);
}
}
/* Apply the shift from the sphere to the ellipsoid as described
* in [LK12]. */
if (this->m_par.es != 0.0) {
int invert_sign;
T tanphi, xa;
invert_sign = (lp_lat < 0.0 ? 1 : 0);
tanphi = tan(lp_lat);
xa = this->m_proj_parm.b / sqrt(tanphi * tanphi + this->m_proj_parm.one_minus_f_squared);
lp_lat = atan(sqrt(this->m_par.a * this->m_par.a - xa * xa) / (this->m_proj_parm.one_minus_f * xa));
if (invert_sign) {
lp_lat = -lp_lat;
}
}
}
static inline std::string get_name()
{
return "qsc_ellipsoid";
}
};
// Quadrilateralized Spherical Cube
template <typename Parameters, typename T>
inline void setup_qsc(Parameters& par, par_qsc<T>& proj_parm)
{
static const T fourth_pi = detail::fourth_pi<T>();
static const T half_pi = detail::half_pi<T>();
/* Determine the cube face from the center of projection. */
if (par.phi0 >= half_pi - fourth_pi / 2.0) {
proj_parm.face = face_top;
} else if (par.phi0 <= -(half_pi - fourth_pi / 2.0)) {
proj_parm.face = face_bottom;
} else if (fabs(par.lam0) <= fourth_pi) {
proj_parm.face = face_front;
} else if (fabs(par.lam0) <= half_pi + fourth_pi) {
proj_parm.face = (par.lam0 > 0.0 ? face_right : face_left);
} else {
proj_parm.face = face_back;
}
/* Fill in useful values for the ellipsoid <-> sphere shift
* described in [LK12]. */
if (par.es != 0.0) {
proj_parm.a_squared = par.a * par.a;
proj_parm.b = par.a * sqrt(1.0 - par.es);
proj_parm.one_minus_f = 1.0 - (par.a - proj_parm.b) / par.a;
proj_parm.one_minus_f_squared = proj_parm.one_minus_f * proj_parm.one_minus_f;
}
}
}} // namespace detail::qsc
#endif // doxygen
/*!
\brief Quadrilateralized Spherical Cube projection
\ingroup projections
\tparam Geographic latlong point type
\tparam Cartesian xy point type
\tparam Parameters parameter type
\par Projection characteristics
- Azimuthal
- Spheroid
\par Example
\image html ex_qsc.gif
*/
template <typename T, typename Parameters>
struct qsc_ellipsoid : public detail::qsc::base_qsc_ellipsoid<T, Parameters>
{
template <typename Params>
inline qsc_ellipsoid(Params const& , Parameters const& par)
: detail::qsc::base_qsc_ellipsoid<T, Parameters>(par)
{
detail::qsc::setup_qsc(this->m_par, this->m_proj_parm);
}
};
#ifndef DOXYGEN_NO_DETAIL
namespace detail
{
// Static projection
BOOST_GEOMETRY_PROJECTIONS_DETAIL_STATIC_PROJECTION(srs::spar::proj_qsc, qsc_ellipsoid, qsc_ellipsoid)
// Factory entry(s)
BOOST_GEOMETRY_PROJECTIONS_DETAIL_FACTORY_ENTRY_FI(qsc_entry, qsc_ellipsoid)
BOOST_GEOMETRY_PROJECTIONS_DETAIL_FACTORY_INIT_BEGIN(qsc_init)
{
BOOST_GEOMETRY_PROJECTIONS_DETAIL_FACTORY_INIT_ENTRY(qsc, qsc_entry)
}
} // namespace detail
#endif // doxygen
} // namespace projections
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_PROJECTIONS_QSC_HPP
|
{
"content_hash": "eec21282e014b8ab4b227e6e876b9111",
"timestamp": "",
"source": "github",
"line_count": 537,
"max_line_length": 128,
"avg_line_length": 45.81750465549348,
"alnum_prop": 0.4225735652739392,
"repo_name": "Simran-B/arangodb",
"id": "e4a1ff953082a5697f41129d465e93f052b93569",
"size": "24604",
"binary": false,
"copies": "31",
"ref": "refs/heads/devel",
"path": "3rdParty/boost/1.71.0/boost/geometry/srs/projections/proj/qsc.hpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "61827"
},
{
"name": "Batchfile",
"bytes": "3282"
},
{
"name": "C",
"bytes": "275955"
},
{
"name": "C++",
"bytes": "29221660"
},
{
"name": "CMake",
"bytes": "375992"
},
{
"name": "CSS",
"bytes": "212174"
},
{
"name": "EJS",
"bytes": "218744"
},
{
"name": "HTML",
"bytes": "23114"
},
{
"name": "JavaScript",
"bytes": "30616196"
},
{
"name": "LLVM",
"bytes": "14753"
},
{
"name": "Makefile",
"bytes": "526"
},
{
"name": "NASL",
"bytes": "129286"
},
{
"name": "NSIS",
"bytes": "49153"
},
{
"name": "PHP",
"bytes": "46519"
},
{
"name": "Pascal",
"bytes": "75391"
},
{
"name": "Perl",
"bytes": "9811"
},
{
"name": "PowerShell",
"bytes": "7885"
},
{
"name": "Python",
"bytes": "181384"
},
{
"name": "Ruby",
"bytes": "1041531"
},
{
"name": "SCSS",
"bytes": "254419"
},
{
"name": "Shell",
"bytes": "128175"
},
{
"name": "TypeScript",
"bytes": "25245"
},
{
"name": "Yacc",
"bytes": "68516"
}
]
}
|
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2013050100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2013050100; // Requires this Moodle version
$plugin->component = 'format_scorm'; // Full name of the plugin (used for diagnostics)
|
{
"content_hash": "f2ecfd725915ae6770866c23d68b9225",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 89,
"avg_line_length": 42.65217391304348,
"alnum_prop": 0.7186544342507645,
"repo_name": "OscarMesa/AppLiderazgoMoodel",
"id": "14b026681a866fcc381df0b981d8d3a4b810ccf5",
"size": "1193",
"binary": false,
"copies": "44",
"ref": "refs/heads/master",
"path": "moodle_pnl/course/format/scorm/version.php",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "ActionScript",
"bytes": "1205"
},
{
"name": "CSS",
"bytes": "2197095"
},
{
"name": "Erlang",
"bytes": "2301"
},
{
"name": "Groovy",
"bytes": "113"
},
{
"name": "Java",
"bytes": "14870"
},
{
"name": "JavaScript",
"bytes": "15089171"
},
{
"name": "PHP",
"bytes": "54460318"
},
{
"name": "Perl",
"bytes": "312769"
},
{
"name": "Python",
"bytes": "6721"
},
{
"name": "R",
"bytes": "342"
},
{
"name": "Shell",
"bytes": "624255"
},
{
"name": "XSLT",
"bytes": "40051"
}
]
}
|
var v = function * () { }
//// [FunctionExpression1_es6.js]
var v = function () { };
|
{
"content_hash": "4c62039d75f2c0503c4df77363b56452",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 33,
"avg_line_length": 21.5,
"alnum_prop": 0.5581395348837209,
"repo_name": "freedot/tstolua",
"id": "73ad9419d3c883c5c968b8177db417a352e64ec7",
"size": "120",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/baselines/reference/FunctionExpression1_es6.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1125"
},
{
"name": "HTML",
"bytes": "4659"
},
{
"name": "JavaScript",
"bytes": "85"
},
{
"name": "Lua",
"bytes": "68588"
},
{
"name": "PowerShell",
"bytes": "2780"
},
{
"name": "TypeScript",
"bytes": "22883724"
}
]
}
|
<html>
<!--
Copyright (c) 1999 The Apache Software Foundation. All rights
reserved.
-->
<head>
<title>View Source Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<p><font color="#0000FF"><a href="products.jsp"><img src="../../images/execute.gif" align="right" border="0"></a>
<a href="../../index.html"><img src="../../images/return.gif" width="24" height="24" align="right" border="0"></a></font></p>
<h3><a href="products.jsp.html">Source Code for products.jsp<font color="#0000FF"></a>
</font> </h3>
<h3><a href="displayProducts.tag.html">Source Code for displayProducts.tag<font color="#0000FF"></a>
</font> </h3>
</body>
</html>
|
{
"content_hash": "499c73bdd3318ba293176f8830ebc29b",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 125,
"avg_line_length": 34.19047619047619,
"alnum_prop": 0.6518105849582173,
"repo_name": "devjin24/howtomcatworks",
"id": "b03e84d9fbb8703ca66aa5d3064f1813390e7bf4",
"size": "718",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "bookrefer/jakarta-tomcat-5.0.18-src/jakarta-servletapi-5/jsr152/examples/jsp2/tagfiles/products.html",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "52224"
},
{
"name": "C",
"bytes": "2123859"
},
{
"name": "C++",
"bytes": "5454"
},
{
"name": "CSS",
"bytes": "4762"
},
{
"name": "HTML",
"bytes": "232523"
},
{
"name": "Java",
"bytes": "25349050"
},
{
"name": "Makefile",
"bytes": "2331"
},
{
"name": "NSIS",
"bytes": "25933"
},
{
"name": "Perl",
"bytes": "100975"
},
{
"name": "Shell",
"bytes": "49871"
},
{
"name": "Visual Basic",
"bytes": "9998"
},
{
"name": "XSLT",
"bytes": "27566"
}
]
}
|
import {inject, Lazy} from 'aurelia-framework';
import {HttpClient} from 'aurelia-fetch-client';
import {RestService} from '../rest-service';
const serviceUri = require('../host').core + '/articles/categories';
export class Service extends RestService{
constructor(http, aggregator) {
super(http, aggregator);
}
search(keyword) {
return super.get(serviceUri);
}
getById(id)
{
var endpoint = `${serviceUri}/${id}`;
return super.get(endpoint);
}
create(data)
{
var endpoint = `${serviceUri}`;
return super.post(endpoint, data);
}
update(data)
{
var endpoint = `${serviceUri}/${data._id}`;
return super.put(endpoint, data);
}
delete(data)
{
var endpoint = `${serviceUri}/${data._id}`;
return super.delete(endpoint, data);
}
}
|
{
"content_hash": "9e6b6f6f6987dc7fa1d34827d284bbc0",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 68,
"avg_line_length": 20.225,
"alnum_prop": 0.6328800988875154,
"repo_name": "lioenel/bateeq-ui",
"id": "487f704265082fa9ae823ced86325ec6d85a63ef",
"size": "809",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/article-category-crud/service.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "8572"
},
{
"name": "HTML",
"bytes": "329338"
},
{
"name": "JavaScript",
"bytes": "283473"
}
]
}
|
/**
* Stylesheet assets for apeman.
* @module apeman-asset-stylesheets
*/
'use strict'
const path = require('path')
const basedir = path.resolve(__dirname)
exports.reactDemo = path.resolve(basedir, "dist/react-demo.css")
|
{
"content_hash": "2a42564c40de65ad334821ba13318900",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 64,
"avg_line_length": 19,
"alnum_prop": 0.7105263157894737,
"repo_name": "apeman-asset-labo/apeman-asset-stylesheets",
"id": "67f56e6d767c9860ea58cafbf87b95edf2144cf8",
"size": "228",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3841"
},
{
"name": "HTML",
"bytes": "227"
},
{
"name": "JavaScript",
"bytes": "3787"
}
]
}
|
/* table cc_student_health_insurance */
CREATE TABLE cc_student_health_insurance
(
/* core */
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
college_id INT(11) NOT NULL,
created_at DATETIME NOT NULL,
opt_out TINYINT(1),
/* primary */
primary_policy_holder VARCHAR(128),
primary_dob DATE,
primary_company VARCHAR(128),
primary_phone VARCHAR(12),
primary_member_id VARCHAR(64),
primary_group_no VARCHAR(64),
primary_policy_type VARCHAR(128),
primary_policy_state VARCHAR(2),
primary_policy_address TEXT,
/* secondary */
secondary_policy_holder VARCHAR(128),
secondary_dob DATE,
secondary_company VARCHAR(128),
secondary_phone VARCHAR(12),
secondary_member_id VARCHAR(64),
secondary_group_no VARCHAR(64),
secondary_policy_type VARCHAR(128),
secondary_policy_state VARCHAR(2),
secondary_policy_address TEXT
);
|
{
"content_hash": "6dfe841c9abf55a20e381ea7e55976ce",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 72,
"avg_line_length": 38.333333333333336,
"alnum_prop": 0.5391304347826087,
"repo_name": "carthage-college/django-djsani",
"id": "184be1b618adf8200e702497ab9754558b9105fb",
"size": "1150",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "djsani/database/tables/mysql/cc_student_health_insurance.sql",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "7487"
},
{
"name": "HTML",
"bytes": "184789"
},
{
"name": "JavaScript",
"bytes": "3879"
},
{
"name": "Python",
"bytes": "177226"
},
{
"name": "Shell",
"bytes": "2021"
}
]
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 Fernando Rincon Martin <frm.rincon@gmail.com>
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.
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<bean id="windowManager" class="org.openeos.services.ui.internal.WindowManagerServiceImpl" />
<bean id="windowActionService" class="org.openeos.services.ui.internal.WindowActionServiceImpl" />
<bean id="defaultWindowActions" class="org.openeos.services.ui.SimpleWindowActionContributor">
<property name="windowActionList">
<list>
<bean class="org.openeos.services.ui.window.action.DeleteWindowAction">
<argument ref="uidaoService" />
</bean>
<bean class="org.openeos.services.ui.window.action.NewWindowAction">
<argument ref="dictionaryService" />
<argument ref="uidaoService" />
</bean>
<bean class="org.openeos.services.ui.window.action.SaveWindowAction">
<argument ref="uidaoService" />
</bean>
<bean class="org.openeos.services.ui.window.action.ViewListWindowAction" />
<bean class="org.openeos.services.ui.window.action.EditWindowAction">
<argument ref="uidaoService" />
</bean>
</list>
</property>
</bean>
<bean id="formRegistryService" class="org.openeos.services.ui.internal.form.FormRegistryServiceImpl" />
<service interface="org.openeos.services.ui.form.FormRegistryService" ref="formRegistryService" />
<reference-list availability="optional" interface="org.openeos.services.ui.form.abstractform.UIBForm">
<reference-listener bind-method="bindAbstractBForm" unbind-method="unbindAbstractBForm">
<bean class="org.openeos.services.ui.internal.form.abstractform.AbstractFormRegistry">
<property name="formRegistryService" ref="formRegistryService" />
</bean>
</reference-listener>
</reference-list>
<bean id="uidaoService" class="org.openeos.services.ui.internal.UIDAOServiceImpl">
<property name="dictionaryService" ref="dictionaryService" />
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<bean id="abstractFormUIBeanBindingService" class="org.openeos.services.ui.internal.form.abstractform.binding.eclipse.UIBeanEclipseBindingToolkit">
<property name="dictionaryService" ref="dictionaryService" />
</bean>
<service ref="windowManager" interface="org.openeos.services.ui.WindowManagerService" />
<service ref="uidaoService" interface="org.openeos.services.ui.UIDAOService" />
<service ref="defaultWindowActions" interface="org.openeos.services.ui.WindowActionContributor" />
<service ref="windowActionService" interface="org.openeos.services.ui.WindowActionService" />
<service ref="abstractFormUIBeanBindingService" interface="org.abstractform.binding.BBindingToolkit">
<service-properties>
<entry key="service.pid" value="org.openeos.services.ui.form.abstractform.service.SERVICE_UIBEAN_BINDING_PID" />
</service-properties>
</service>
<service interface="org.abstractform.binding.BBindingToolkit">
<service-properties>
<entry key="service.pid" value="org.openeos.services.ui.form.abstractform.service.SERVICE_COMMON_BINDING_PID" />
</service-properties>
<bean class="org.abstractform.binding.eclipse.EclipseBindingToolkit" />
</service>
<reference interface="org.openeos.services.dictionary.IDictionaryService" id="dictionaryService" availability="mandatory" />
<reference interface="org.hibernate.SessionFactory" id="sessionFactory" availability="mandatory" />
<reference-list availability="optional" interface="org.openeos.services.ui.WindowActionContributor">
<reference-listener ref="windowActionService" bind-method="addActionContributor" unbind-method="removeActionContributor" />
</reference-list>
<reference-list availability="optional" interface="org.openeos.services.ui.WindowContributor">
<reference-listener ref="windowManager" bind-method="bindWindowContributor" />
</reference-list>
<reference id="listTypeService" interface="org.openeos.dao.ListTypeService" availability="mandatory" />
<service interface="org.abstractform.binding.fluent.BFFieldFactory" ranking="100">
<service-properties>
<entry key="service.pid" value="org.openeos.services.ui.form.abstractform.service.SERVICE_FIELD_FACTORY_PID" />
</service-properties>
<bean class="org.openeos.services.ui.internal.form.abstractform.UIBeanBFFieldFactory">
<property name="dictionaryService" ref="dictionaryService" />
<property name="sessionFactory" ref="sessionFactory" />
<property name="delegateFieldFactory">
<bean class="org.abstractform.binding.fluent.DefaultBFFieldFactory" />
</property>
<property name="uidaoService" ref="uidaoService" />
<property name="listTypeService" ref="listTypeService" />
</bean>
</service>
<bean id="dictionaryBasedWindowBuilder" class="org.openeos.services.ui.internal.window.DictionaryBasedWindowBuilderImpl">
<property name="dictionaryService" ref="dictionaryService" />
</bean>
<service interface="org.openeos.services.ui.window.DictionaryBasedWindowBuilder" ref="dictionaryBasedWindowBuilder" />
<bean id="menuManagerService" class="org.openeos.services.ui.internal.menu.MenuManagerServiceImpl" />
<service ref="menuManagerService">
<interfaces>
<value>org.openeos.services.ui.menu.MenuManagerService</value>
<value>org.openeos.services.ui.menu.MenuContributor</value>
</interfaces>
</service>
<bean id="entityActionManager" class="org.openeos.services.ui.internal.action.EntityActionManagerImpl" init-method="init"
destroy-method="destroy">
<argument ref="blueprintBundleContext" />
</bean>
<bean id="uiEntityActionManager" class="org.openeos.services.ui.internal.action.UIEntityActionManagerImpl">
<argument ref="entityActionManager" />
<argument ref="uidaoService" />
</bean>
<bean id="throwableToMessageService" class="org.openeos.services.ui.internal.ThrowableToMessageServiceImpl" init-method="init"
destroy-method="destroy">
<argument ref="blueprintBundleContext" />
</bean>
<service ref="entityActionManager" interface="org.openeos.services.ui.action.EntityActionManager" />
<service ref="uiEntityActionManager" interface="org.openeos.services.ui.action.UIEntityActionManager" />
<service ref="throwableToMessageService" interface="org.openeos.services.ui.ThrowableToMessageService" />
<service interface="org.openeos.services.ui.ThrowableToMessageResolver" ranking="10000">
<bean class="org.openeos.services.ui.internal.UnencapsulateCauseExceptionResolver">
<argument ref="throwableToMessageService" />
</bean>
</service>
<service interface="org.openeos.services.ui.ThrowableToMessageResolver" ranking="5000">
<bean class="org.openeos.services.ui.internal.NullPointerExceptionResolver" />
</service>
<service interface="org.openeos.services.ui.ThrowableToMessageResolver" ranking="20000">
<bean class="org.openeos.services.ui.internal.PostgreSQLDialectBatchUpdateResolver">
<argument ref="throwableToMessageService" />
<argument>
<reference interface="org.hibernate.exception.spi.ConversionContext" filter="(service.pid=unoDialect)" />
</argument>
</bean>
</service>
<service interface="org.openeos.services.ui.SessionObjectsService">
<bean class="org.openeos.services.ui.internal.SessionObjectServiceThreadLocalImpl" />
</service>
<bean id="customActionManagerService" class="org.openeos.services.ui.internal.CustomActionManagerOsgiService">
<argument ref="blueprintBundleContext" />
</bean>
<reference-list availability="optional" interface="org.openeos.services.ui.action.CustomAction">
<reference-listener bind-method="bindCustomAction" unbind-method="unbindCustomAction" ref="customActionManagerService" />
</reference-list>
<service interface="org.openeos.services.ui.CustomActionManagerService" ref="customActionManagerService" />
</blueprint>
|
{
"content_hash": "e619c7ec22a1645eca46285a68bfa19a",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 148,
"avg_line_length": 48.672413793103445,
"alnum_prop": 0.7749439130948164,
"repo_name": "frincon/openeos",
"id": "d784c07f309f8ead026d87a4ffe593ea3b449eec",
"size": "8469",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "modules/org.openeos.services.ui/src/main/resources/OSGI-INF/blueprint/services.ui.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AspectJ",
"bytes": "37665"
},
{
"name": "CSS",
"bytes": "439"
},
{
"name": "Groovy",
"bytes": "4095"
},
{
"name": "Java",
"bytes": "1395884"
},
{
"name": "Shell",
"bytes": "6138"
}
]
}
|
"""Formatters."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def format_python(text):
try:
import black
except ImportError:
raise RuntimeError(u"install black formatter to format: pip install black")
return black.format_str(text, mode=black.FileMode())
|
{
"content_hash": "b6d5015b43399e59725f64f72e368c44",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 83,
"avg_line_length": 25.071428571428573,
"alnum_prop": 0.7008547008547008,
"repo_name": "google/ci_edit",
"id": "058739e519ff663b54516783e438eb856fe00835",
"size": "926",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/formatter.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "865502"
},
{
"name": "Rust",
"bytes": "9249"
},
{
"name": "Shell",
"bytes": "5986"
}
]
}
|
// Include gulp
var gulp = require("gulp");
// Install tools and plugins.
var es = require("event-stream"),
del = require("del"),
path = require("path"),
plugins = require("gulp-load-plugins")();
// Set paths
var basePath = {
src: "./src/",
build: "./build/",
dist: "./dist/"
},
path = {
sass: {
src: basePath.src + "sass/",
build: basePath.build
},
js: {
src: basePath.src + "js/",
build: basePath.build
}
};
var sassSrc = path.sass.src + "responsive.scss";
var jsSrc = [
path.js.src + "responsive.core.js",
path.js.src + "responsive.autosize.js",
path.js.src + "responsive.carousel.js",
path.js.src + "responsive.conditional.js",
path.js.src + "responsive.dismiss.js",
path.js.src + "responsive.dropdown.js",
path.js.src + "responsive.modal.js",
path.js.src + "responsive.tablelist.js",
path.js.src + "responsive.tabs.js"
];
// Concatenate & Minify SCSS
gulp.task("sass", function (cb) {
gulp.src(sassSrc)
//.pipe(plugins.rubySass({ unixNewlines: true, precision: 4, noCache: true, "sourcemap=none": true })) //hack to allow autoprefixer to work
.pipe(plugins.rubySass({ unixNewlines: true, precision: 4, noCache: true, sourcemap: false }))
.pipe(plugins.autoprefixer({
browsers: ["> 1%", "last 2 versions", "ie 9"],
cascade: true,
remove: false
}))
.pipe(gulp.dest(path.sass.build))
.pipe(plugins.rename({ suffix: ".min" }))
.pipe(plugins.minifyCss())
.pipe(gulp.dest(path.sass.build))
.on("end", cb);
});
// Concatenate & Minify JS
gulp.task("scripts", function (cb) {
es.concat(
// Lint
gulp.src(path.js.src + "*.js")
.pipe(plugins.jshint())
.pipe(plugins.jshint.reporter("default")),
gulp.src(jsSrc)
.pipe(plugins.concat("responsive.js"))
.pipe(gulp.dest(path.js.build))
.pipe(plugins.rename({ suffix: ".min" }))
.pipe(plugins.uglify({ preserveComments: "some" }))
.pipe(gulp.dest(path.js.build))
).on("end", cb);
});
gulp.task("clean", ["sass", "scripts"], function (cb) {
del("./dist/responsive.zip", cb);
});
gulp.task("zip", ["clean"], function (cb) {
gulp.src(basePath.build + "**/*")
.pipe(plugins.zip("responsive.zip"))
.pipe(gulp.dest(basePath.dist))
.on("end", cb);
});
gulp.task("watch", function () {
// Watch for changes to our JS
gulp.watch(path.js.src + "**/*.js", ["scripts"]);
// Watch for changes to our Sass
gulp.watch(path.sass.src + "**/*.scss", ["sass"]);
});
gulp.task("release", ["zip"]);
// Default Task
gulp.task("default", ["sass", "scripts"]);
|
{
"content_hash": "47f7732bee41767b83fd56809a49d26b",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 147,
"avg_line_length": 27.52,
"alnum_prop": 0.5701308139534884,
"repo_name": "devette/experiments",
"id": "99034a8db7599a847b72e86dfb2c69df3085ebb5",
"size": "2752",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "OWL2HTML-web/src/main/resources/themes/fancy/static/bower_components/responsive/gulpfile.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "94913"
},
{
"name": "FreeMarker",
"bytes": "122276"
},
{
"name": "Gherkin",
"bytes": "1678"
},
{
"name": "Groovy",
"bytes": "2711"
},
{
"name": "Java",
"bytes": "184845"
},
{
"name": "JavaScript",
"bytes": "2150"
}
]
}
|
package com.game.src.main;
import java.awt.Rectangle;
public class GameObject {
public double x, y;
public GameObject(double x, double y)
{
this.x = x;
this.y = y;
}
public Rectangle getBounds(int width, int height)
{
return new Rectangle((int)x, (int) y, width, height);
}
}
|
{
"content_hash": "a51c10590084356cd65d8724c8cfe07a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 55,
"avg_line_length": 15.285714285714286,
"alnum_prop": 0.616822429906542,
"repo_name": "Clicuter/SpaceGame",
"id": "a39d8871209a18a447cf47603322c37c95eaee59",
"size": "321",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Space Game/src/com/game/src/main/GameObject.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "157909"
}
]
}
|
package foundation.softwaredesign.orbi.persistence.repo.music;
import foundation.softwaredesign.orbi.model.music.Song;
import foundation.softwaredesign.orbi.persistence.entity.music.SongEntity;
import foundation.softwaredesign.orbi.service.game.server.DateConverter;
import org.apache.deltaspike.data.api.mapping.SimpleQueryInOutMapperBase;
import javax.inject.Inject;
/**
* @author Lucas Reeh <lr86gm@gmail.com>
*/
public class SongMappper extends SimpleQueryInOutMapperBase<SongEntity, Song> {
@Inject
DateConverter date;
@Override
protected Object getPrimaryKey(Song dto) {
return dto.getId();
}
@Override
protected Song toDto(SongEntity entity) {
Song dto = new Song();
dto.setId(entity.getId());
dto.setTitle(entity.getTitle());
dto.setUrl(entity.getUrl());
return dto;
}
@Override
protected SongEntity toEntity(SongEntity oldEntity, Song dto) {
return null;
}
}
|
{
"content_hash": "ccac40de6dc12520406350c0fa652dbe",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 79,
"avg_line_length": 27.13888888888889,
"alnum_prop": 0.7164790174002047,
"repo_name": "sd-f/orbi",
"id": "facefcf666144b51e5f9bc66e52b761f3b00221c",
"size": "977",
"binary": false,
"copies": "1",
"ref": "refs/heads/development",
"path": "Orbi-Server/src/main/java/foundation/softwaredesign/orbi/persistence/repo/music/SongMappper.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "1353474"
},
{
"name": "GLSL",
"bytes": "21494"
},
{
"name": "Java",
"bytes": "160471"
},
{
"name": "Mask",
"bytes": "319"
}
]
}
|
// *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy,
// Seaford, Vic 3198, Australia and are supplied subject to licence terms.
//
// Version 4.4.1.0 www.ComponentFactory.com
// *****************************************************************************
using System;
using System.Text;
using System.Drawing;
using System.Drawing.Text;
using System.Drawing.Drawing2D;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Diagnostics;
namespace ComponentFactory.Krypton.Toolkit
{
/// <summary>
/// Redirect general ribbon values based on the incoming state of the request.
/// </summary>
public class PaletteRedirectRibbonGeneral : PaletteRedirect
{
#region Instance Fields
private IPaletteRibbonGeneral _disabled;
private IPaletteRibbonGeneral _normal;
private IPaletteRibbonGeneral _pressed;
private IPaletteRibbonGeneral _tracking;
#endregion
#region Identity
/// <summary>
/// Initialize a new instance of the PaletteRedirectRibbonGeneral class.
/// </summary>
/// <param name="target">Initial palette target for redirection.</param>
public PaletteRedirectRibbonGeneral(IPalette target)
: this(target, null, null, null, null)
{
}
/// <summary>
/// Initialize a new instance of the PaletteRedirectRibbonGeneral class.
/// </summary>
/// <param name="target">Initial palette target for redirection.</param>
/// <param name="disabled">Redirection for disabled state requests.</param>
/// <param name="normal">Redirection for normal state requests.</param>
/// <param name="pressed">Redirection for pressed state requests.</param>
/// <param name="tracking">Redirection for tracking state requests.</param>
public PaletteRedirectRibbonGeneral(IPalette target,
IPaletteRibbonGeneral disabled,
IPaletteRibbonGeneral normal,
IPaletteRibbonGeneral pressed,
IPaletteRibbonGeneral tracking
)
: base(target)
{
// Remember state specific inheritance
_disabled = disabled;
_normal = normal;
_pressed = pressed;
_tracking = tracking;
}
#endregion
#region RibbonGeneral
/// <summary>
/// Gets the dark disabled color used for ribbon glyphs.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonDisabledDark(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonDisabledDark(state);
else
return Target.GetRibbonDisabledDark(state);
}
/// <summary>
/// Gets the light disabled color used for ribbon glyphs.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonDisabledLight(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonDisabledLight(state);
else
return Target.GetRibbonDisabledLight(state);
}
/// <summary>
/// Gets the color for the dialog launcher dark.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonGroupDialogDark(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonGroupDialogDark(state);
else
return Target.GetRibbonGroupDialogDark(state);
}
/// <summary>
/// Gets the color for the dialog launcher light.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonGroupDialogLight(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonGroupDialogLight(state);
else
return Target.GetRibbonGroupDialogLight(state);
}
/// <summary>
/// Gets the color for the group separator dark.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonGroupSeparatorDark(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonGroupSeparatorDark(state);
else
return Target.GetRibbonGroupSeparatorDark(state);
}
/// <summary>
/// Gets the color for the group separator light.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonGroupSeparatorLight(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonGroupSeparatorLight(state);
else
return Target.GetRibbonGroupSeparatorLight(state);
}
/// <summary>
/// Gets the color for the minimize bar dark.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonMinimizeBarDark(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonMinimizeBarDark(state);
else
return Target.GetRibbonMinimizeBarDark(state);
}
/// <summary>
/// Gets the color for the minimize bar light.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonMinimizeBarLight(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonMinimizeBarLight(state);
else
return Target.GetRibbonMinimizeBarLight(state);
}
/// <summary>
/// Gets the color for the tab separator.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonTabSeparatorColor(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonTabSeparatorColor(state);
else
return Target.GetRibbonTabSeparatorColor(state);
}
/// <summary>
/// Gets the color for the tab context separators.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonTabSeparatorContextColor(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonTabSeparatorContextColor(state);
else
return Target.GetRibbonTabSeparatorContextColor(state);
}
/// <summary>
/// Gets the font for the ribbon text.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Font value.</returns>
public override Font GetRibbonTextFont(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonTextFont(state);
else
return Target.GetRibbonTextFont(state);
}
/// <summary>
/// Gets the rendering hint for the ribbon font.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>PaletteTextHint value.</returns>
public override PaletteTextHint GetRibbonTextHint(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonTextHint(state);
else
return Target.GetRibbonTextHint(state);
}
/// <summary>
/// Gets the color for the extra QAT button dark content color.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonQATButtonDark(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonQATButtonDark(state);
else
return Target.GetRibbonQATButtonDark(state);
}
/// <summary>
/// Gets the color for the extra QAT button light content color.
/// </summary>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetRibbonQATButtonLight(PaletteState state)
{
IPaletteRibbonGeneral inherit = GetInherit(state);
if (inherit != null)
return inherit.GetRibbonQATButtonLight(state);
else
return Target.GetRibbonQATButtonLight(state);
}
#endregion
#region Implementation
private IPaletteRibbonGeneral GetInherit(PaletteState state)
{
switch (state)
{
case PaletteState.Disabled:
return _disabled;
case PaletteState.Normal:
return _normal;
case PaletteState.Pressed:
return _pressed;
case PaletteState.Tracking:
return _tracking;
default:
// Should never happen!
Debug.Assert(false);
return null;
}
}
#endregion
}
}
|
{
"content_hash": "0ea1fc4d5059f18045545af39f86c661",
"timestamp": "",
"source": "github",
"line_count": 301,
"max_line_length": 89,
"avg_line_length": 38.245847176079735,
"alnum_prop": 0.5793085476025017,
"repo_name": "Cocotteseb/Krypton",
"id": "595346311e11beda1703fcf7c6c31bf40acc3613",
"size": "11515",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Palette Base/PaletteRedirect/PaletteRedirectRibbonGeneral.cs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C#",
"bytes": "20059021"
}
]
}
|
using System.Net.Http.Formatting;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using RedfieldWeather.Common;
namespace RedfieldWeather
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
var config = GlobalConfiguration.Configuration;
var index = config.Formatters.IndexOf(config.Formatters.JsonFormatter);
config.Formatters[index] = new JsonMediaTypeFormatter
{
SerializerSettings = new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver()
}
};
AzureStorage.SetConnectionString();
}
}
}
|
{
"content_hash": "affac9999f6e5f4e3e523808fbf11b87",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 74,
"avg_line_length": 28.6,
"alnum_prop": 0.7882117882117882,
"repo_name": "erenken/redfieldweather",
"id": "8a507d8f52ecf59ab87c35aa64090c36279dd21b",
"size": "1003",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "RedfieldWeather/RedfieldWeather/Global.asax.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "109"
},
{
"name": "C#",
"bytes": "34249"
},
{
"name": "CSS",
"bytes": "854"
},
{
"name": "HTML",
"bytes": "19032"
},
{
"name": "JavaScript",
"bytes": "211075"
},
{
"name": "TypeScript",
"bytes": "11433"
}
]
}
|
<?php
/**
* Signals that an entity count limit was exceeded for some level.
* For example, too many criteria for a campaign.
* @package Google_Api_Ads_AdWords_v201605
* @subpackage v201605
*/
class EntityCountLimitExceeded extends ApiError
{
const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201605";
const XSI_TYPE = "EntityCountLimitExceeded";
/**
* @access public
* @var tnsEntityCountLimitExceededReason
*/
public $reason;
/**
* @access public
* @var string
*/
public $enclosingId;
/**
* @access public
* @var integer
*/
public $limit;
/**
* @access public
* @var string
*/
public $accountLimitType;
/**
* @access public
* @var integer
*/
public $existingCount;
/**
* Gets the namesapce of this class
* @return string the namespace of this class
*/
public function getNamespace()
{
return self::WSDL_NAMESPACE;
}
/**
* Gets the xsi:type name of this class
* @return string the xsi:type name of this class
*/
public function getXsiTypeName()
{
return self::XSI_TYPE;
}
public function __construct(
$reason = null,
$enclosingId = null,
$limit = null,
$accountLimitType = null,
$existingCount = null,
$fieldPath = null,
$trigger = null,
$errorString = null,
$ApiErrorType = null
) {
parent::__construct();
$this->reason = $reason;
$this->enclosingId = $enclosingId;
$this->limit = $limit;
$this->accountLimitType = $accountLimitType;
$this->existingCount = $existingCount;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
}
|
{
"content_hash": "754b57c0e530ffd4cf0b29d21169802d",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 79,
"avg_line_length": 21.942528735632184,
"alnum_prop": 0.5746464117338921,
"repo_name": "SonicGD/google-adwords-api-light",
"id": "b7aaa86202d3b803b2170a7548204753a352768f",
"size": "1909",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Google/Api/Ads/AdWords/v201605/classes/EntityCountLimitExceeded.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "PHP",
"bytes": "2102670"
}
]
}
|
/*
|--------------------------------------------------------------------------
| Hashii :: Easily parse hashtags.
|--------------------------------------------------------------------------
*/
var Hashii = (function() {
/**
* Hashii module scope accessor.
*/
var $scope;
/**
* Hashii constructor.
*
* @param {Object} options
*/
function Hashii(options) {
$scope = this;
$scope.options = _override(_defaults(), options);
_validateArguments(arguments[0]);
}
/*
|--------------------------------------------------------------------------
| Hashii initialization methods :: ~ Private ~
|--------------------------------------------------------------------------
*/
/**
* Hashii instance defaults.
*
* @return {Object} :: Return defaults for overriding.
*/
function _defaults() {
return {
ref: '',
format: '[]',
includeHash: false,
};
}
/**
* Validate constructor arguments and boot.
*
* @param {Object} options :: Throw error if argument is incorrect otherwise boot.
*/
function _validateArguments(options) {
if (options && typeof options !== 'object') {
throw new Error('Options argument must be of type object');
}
}
/**
* Override Hashii default options.
*
* @param {Object} source :: Default options object.
* @param {Object} options :: User passed options argument.
* @return {Object}
*/
function _override(source, options) {
for (var prop in options) {
if (source.hasOwnProperty(prop)) {
source[prop] = options[prop];
}
}
return source;
}
/*
|--------------------------------------------------------------------------
| Hashii internal methods :: ~ Private ~
|--------------------------------------------------------------------------
*/
/**
* Hashii DOM element.
*
* @return {Element} :: Validate and return element with Hashii reference hook.
*/
function _returnHashiiDomElement() {
var element = document.querySelector('[hashii\\:' + $scope.options.ref.toLowerCase() + ']');
if (_elementMeetsConditions(element)) {
return element;
}
}
/**
* Check element validity.
*
* @param {Element} element :: DOM element utilized by Hashii
* @return {Boolean} :: Element has met conditions
*/
function _elementMeetsConditions(element) {
if (element === null) {
throw new Error('Hashii key is incorrect or does not exist.');
}
if (element.tagName !== 'FORM' &&
element.tagName !== 'INPUT' &&
element.tagName !== 'TEXTAREA')
{
throw new Error('Hashii selector must be of element type form, input or textarea.');
}
return true;
}
function _returnInstanceSettings() {
return $scope.options;
}
/**
* Collection of valid parsable Hashii field elements.
*
* @param {Element} element :: Hashii DOM element.
* @return {Array} :: Filtered fields collection
*/
function _validFieldsArray(element) {
var collection = _buildFieldsArrayFrom(element);
var filteredCollection = collection.filter(function(field) {
return field.tagName === 'TEXTAREA' || field.tagName === 'INPUT';
});
return filteredCollection;
}
/**
* Builds collection of fields from element.
*
* @param {Element} element :: Hashii DOM element.
* @return {Array} :: Return newly built collection.
*/
function _buildFieldsArrayFrom(element) {
var collection;
if (element.tagName === 'FORM' && element.childElementCount > 0) {
collection = [].slice.call(element.children);
} else {
collection = [element];
}
return collection;
}
/**
* Parse hashtags that match hash regex.
*
* @param {String} field :: String value to compare regex with.
* @return {Array} :: Return array containing hashtag matches.
*/
function _parseTagsFrom(field) {
if (!$scope.options.includeHash) {
var strippedHashes = field.match(/(?:^|)(?:#)([a-zA-Z\d]+)/g).map(function (tag) {
return tag.replace('#','');
});
return strippedHashes;
}
return field.match(/(?:^|)(?:#)([a-zA-Z\d]+)/g);
}
/**
* Create hashtags array from element field(s).
*
* @param {Array} collection :: Array of DOM inputs within Hashii scope.
* @return {Array} :: Return formatted array of hashtags.
*/
function _createTagsArrayFrom(collection) {
var hashtags = [];
collection.filter(function(field) {
return field.value != '';
}).forEach(function(field) {
hashtags = hashtags.concat(_parseTagsFrom(field.value));
});
return hashtags;
}
/**
* Convert hashtags array into JSON string.
*
* @return {Object} :: JSON hashtags using index as keys.
*/
function _convertTagsToJSON() {
var hashtagArray = _createTagsArrayFrom(_validFieldsArray($scope.$element));
var tags = hashtagArray.reduce(function(obj, value, index) {
obj[index] = value;
return obj;
}, {});
return JSON.stringify(tags);
}
/**
* Return formatted hashtags to caller.
*
* @return {Function} :: Converts tags into object or array.
*/
function _returnTags() {
var format = $scope.options.format;
if (format.indexOf('[') >= 0) {
return _createTagsArrayFrom(
_validFieldsArray($scope.$element)
);
}
if (format.indexOf('{') >= 0) {
return _convertTagsToJSON();
}
}
/*
|--------------------------------------------------------------------------
| Hashii API methods :: ~ Public ~
|--------------------------------------------------------------------------
*/
/**
* Return hashtags to caller.
*
* @return {Array | Object} :: Return based on instance 'format' options.
*/
Hashii.prototype.$tags = _returnTags;
/**
* Hashii reference element
*
* @return {DOM Element} :: Returns the DOM element attached to Hashii instance.
*/
Hashii.prototype.$element = _returnHashiiDomElement;
/**
* Hashii constructor defaults.
*
* @return {Object} :: Returns the Hashii constructor defaults object.
*/
Hashii.prototype.$defaults = _defaults;
/**
* Instance settings.
*
* @return {Object} :: Returns the Hashii instance settings.
*/
Hashii.prototype.$settings = _returnInstanceSettings;
/**
* Exposes the Hashii constructor for the user.
*
* @return {Function}
*/
return Hashii;
})();
|
{
"content_hash": "a69bc3b475e6149814465e8606142302",
"timestamp": "",
"source": "github",
"line_count": 260,
"max_line_length": 100,
"avg_line_length": 27.619230769230768,
"alnum_prop": 0.49519565520122544,
"repo_name": "JoshuaCoquelle/Hashii",
"id": "8d1a35e19dd38c7e2bdcf860cc33f08c18130c4e",
"size": "7181",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "hashii.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "7181"
}
]
}
|
using namespace swift;
using namespace Lowering;
/// Emit a copy of this value with independent ownership.
ManagedValue ManagedValue::copy(SILGenFunction &gen, SILLocation l) {
if (!cleanup.isValid()) {
assert(gen.getTypeLowering(getType()).isTrivial());
return *this;
}
auto &lowering = gen.getTypeLowering(getType());
assert(!lowering.isTrivial() && "trivial value has cleanup?");
if (!lowering.isAddressOnly()) {
return gen.emitManagedRetain(l, getValue(), lowering);
}
SILValue buf = gen.emitTemporaryAllocation(l, getType());
gen.B.createCopyAddr(l, getValue(), buf, IsNotTake, IsInitialization);
return gen.emitManagedRValueWithCleanup(buf, lowering);
}
/// Store a copy of this value with independent ownership into the given
/// uninitialized address.
void ManagedValue::copyInto(SILGenFunction &gen, SILValue dest,
SILLocation loc) {
auto &lowering = gen.getTypeLowering(getType());
if (lowering.isAddressOnly()) {
gen.B.createCopyAddr(loc, getValue(), dest, IsNotTake, IsInitialization);
return;
}
SILValue copy = lowering.emitCopyValue(gen.B, loc, getValue());
lowering.emitStoreOfCopy(gen.B, loc, copy, dest, IsInitialization);
}
/// This is the same operation as 'copy', but works on +0 values that don't
/// have cleanups. It returns a +1 value with one.
ManagedValue ManagedValue::copyUnmanaged(SILGenFunction &gen, SILLocation loc) {
auto &lowering = gen.getTypeLowering(getType());
if (lowering.isTrivial())
return *this;
SILValue result;
if (!lowering.isAddressOnly()) {
result = lowering.emitCopyValue(gen.B, loc, getValue());
} else {
result = gen.emitTemporaryAllocation(loc, getType());
gen.B.createCopyAddr(loc, getValue(), result, IsNotTake,IsInitialization);
}
return gen.emitManagedRValueWithCleanup(result, lowering);
}
/// Disable the cleanup for this value.
void ManagedValue::forwardCleanup(SILGenFunction &gen) const {
assert(hasCleanup() && "value doesn't have cleanup!");
gen.Cleanups.forwardCleanup(getCleanup());
}
/// Forward this value, deactivating the cleanup and returning the
/// underlying value.
SILValue ManagedValue::forward(SILGenFunction &gen) const {
if (hasCleanup())
forwardCleanup(gen);
return getValue();
}
void ManagedValue::forwardInto(SILGenFunction &gen, SILLocation loc,
SILValue address) {
if (hasCleanup())
forwardCleanup(gen);
auto &addrTL = gen.getTypeLowering(address->getType());
gen.emitSemanticStore(loc, getValue(), address, addrTL, IsInitialization);
}
void ManagedValue::assignInto(SILGenFunction &gen, SILLocation loc,
SILValue address) {
if (hasCleanup())
forwardCleanup(gen);
auto &addrTL = gen.getTypeLowering(address->getType());
gen.emitSemanticStore(loc, getValue(), address, addrTL,
IsNotInitialization);
}
|
{
"content_hash": "af4ee0ab61f4e6d108fd6c2e92f60bdd",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 80,
"avg_line_length": 34.50588235294118,
"alnum_prop": 0.7009887487214456,
"repo_name": "gmilos/swift",
"id": "4257995337f8cb1972d07d9fd19e4f9ce7ac32e3",
"size": "3770",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "lib/SILGen/ManagedValue.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "2144"
},
{
"name": "Batchfile",
"bytes": "26"
},
{
"name": "C",
"bytes": "49224"
},
{
"name": "C++",
"bytes": "21616196"
},
{
"name": "CMake",
"bytes": "336306"
},
{
"name": "DTrace",
"bytes": "3545"
},
{
"name": "Emacs Lisp",
"bytes": "54383"
},
{
"name": "LLVM",
"bytes": "56821"
},
{
"name": "Makefile",
"bytes": "1841"
},
{
"name": "Objective-C",
"bytes": "227649"
},
{
"name": "Objective-C++",
"bytes": "209206"
},
{
"name": "Perl",
"bytes": "2211"
},
{
"name": "Python",
"bytes": "689921"
},
{
"name": "Ruby",
"bytes": "2091"
},
{
"name": "Shell",
"bytes": "190243"
},
{
"name": "Swift",
"bytes": "16436819"
},
{
"name": "Vim script",
"bytes": "13393"
}
]
}
|
"""Tests for the SWIG-wrapped events writer."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os.path
from tensorflow.core.framework import summary_pb2
from tensorflow.core.util import event_pb2
# pylint: disable=invalid-import-order, g-bad-import-order, wildcard-import, unused-import, undefined-variable
from tensorflow.python import pywrap_tensorflow
from tensorflow.python.client import _pywrap_events_writer
from tensorflow.python.framework import errors
from tensorflow.python.framework import test_util
from tensorflow.python.lib.io import tf_record
from tensorflow.python.platform import googletest
from tensorflow.python.util import compat
class PywrapeventsWriterTest(test_util.TensorFlowTestCase):
def testWriteEvents(self):
file_prefix = os.path.join(self.get_temp_dir(), "events")
writer = _pywrap_events_writer.EventsWriter(compat.as_bytes(file_prefix))
filename = compat.as_text(writer.FileName())
event_written = event_pb2.Event(
wall_time=123.45,
step=67,
summary=summary_pb2.Summary(
value=[summary_pb2.Summary.Value(
tag="foo", simple_value=89.0)]))
writer.WriteEvent(event_written)
writer.Flush()
writer.Close()
with self.assertRaises(errors.NotFoundError):
for r in tf_record.tf_record_iterator(filename + "DOES_NOT_EXIST"):
self.assertTrue(False)
reader = tf_record.tf_record_iterator(filename)
event_read = event_pb2.Event()
event_read.ParseFromString(next(reader))
self.assertTrue(event_read.HasField("file_version"))
event_read.ParseFromString(next(reader))
# Second event
self.assertProtoEquals("""
wall_time: 123.45 step: 67
summary { value { tag: 'foo' simple_value: 89.0 } }
""", event_read)
with self.assertRaises(StopIteration):
next(reader)
def testWriteEventInvalidType(self):
class _Invalid(object):
def __str__(self):
return "Invalid"
with self.assertRaisesRegex(TypeError, "Invalid"):
_pywrap_events_writer.EventsWriter(b"foo").WriteEvent(_Invalid())
if __name__ == "__main__":
googletest.main()
|
{
"content_hash": "b7917e162a5602b7a0db9f0e53c093be",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 110,
"avg_line_length": 31.89855072463768,
"alnum_prop": 0.7119491140390731,
"repo_name": "frreiss/tensorflow-fred",
"id": "7702b2e7855842d6e2fb053c95b1a5753fdd317f",
"size": "2890",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tensorflow/python/client/events_writer_test.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "6729"
},
{
"name": "Batchfile",
"bytes": "49527"
},
{
"name": "C",
"bytes": "871761"
},
{
"name": "C#",
"bytes": "8562"
},
{
"name": "C++",
"bytes": "79093233"
},
{
"name": "CMake",
"bytes": "6500"
},
{
"name": "Dockerfile",
"bytes": "110545"
},
{
"name": "Go",
"bytes": "1852128"
},
{
"name": "HTML",
"bytes": "4686483"
},
{
"name": "Java",
"bytes": "961600"
},
{
"name": "Jupyter Notebook",
"bytes": "549457"
},
{
"name": "LLVM",
"bytes": "6536"
},
{
"name": "MLIR",
"bytes": "1644156"
},
{
"name": "Makefile",
"bytes": "62398"
},
{
"name": "Objective-C",
"bytes": "116558"
},
{
"name": "Objective-C++",
"bytes": "303063"
},
{
"name": "PHP",
"bytes": "20523"
},
{
"name": "Pascal",
"bytes": "3982"
},
{
"name": "Pawn",
"bytes": "18876"
},
{
"name": "Perl",
"bytes": "7536"
},
{
"name": "Python",
"bytes": "40003007"
},
{
"name": "RobotFramework",
"bytes": "891"
},
{
"name": "Roff",
"bytes": "2472"
},
{
"name": "Ruby",
"bytes": "7464"
},
{
"name": "Shell",
"bytes": "681596"
},
{
"name": "Smarty",
"bytes": "34740"
},
{
"name": "Swift",
"bytes": "62814"
},
{
"name": "Vim Snippet",
"bytes": "58"
}
]
}
|
/*
* 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 kr.co.bitnine.octopus.meta.jdo.model;
import kr.co.bitnine.octopus.meta.model.MetaConstants;
import kr.co.bitnine.octopus.meta.model.MetaUser;
import kr.co.bitnine.octopus.meta.privilege.SystemPrivilege;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
@PersistenceCapable
public final class MUser implements MetaUser {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT)
private long id;
@Persistent
@Unique(name = "NAME_IDX")
@Column(length = MetaConstants.IDENTIFIER_MAX)
private String name;
@Persistent
@Column(length = MetaConstants.PASSWORD_MAX)
private String password;
private Set<SystemPrivilege> sysPrivs;
@Persistent
@Column(length = MetaConstants.COMMENT_MAX)
private String comment;
@Persistent(mappedBy = "user", dependentElement = "true")
private Collection<MSchemaPrivilege> schemaPrivileges;
public MUser(String name, String password) {
this.name = name;
this.password = password;
sysPrivs = new HashSet<>();
comment = "";
}
@Override
public String getName() {
return name;
}
@Override
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public Set<SystemPrivilege> getSystemPrivileges() {
return new HashSet<>(sysPrivs);
}
public boolean addSystemPrivilege(SystemPrivilege sysPriv) {
return sysPrivs.add(sysPriv);
}
public boolean removeSystemPrivilege(SystemPrivilege sysPriv) {
return sysPrivs.remove(sysPriv);
}
@Override
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
}
|
{
"content_hash": "8ca54359f8c9e7a7d789ad1bcbe71774",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 75,
"avg_line_length": 27.587628865979383,
"alnum_prop": 0.7100149476831091,
"repo_name": "protodef/octopus",
"id": "e7e4d37b42ea68e3588b48aa2b9eb25c6b439558",
"size": "2676",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "octopus-meta-jdo/src/main/java/kr/co/bitnine/octopus/meta/jdo/model/MUser.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "10195"
},
{
"name": "Java",
"bytes": "832316"
},
{
"name": "Shell",
"bytes": "14866"
}
]
}
|
package com.attensa.rubberband.data;
import lombok.Value;
import java.util.Map;
@Value
public class DocumentUpdate {
String documentId;
Map<String, Object> fieldUpdates;
}
|
{
"content_hash": "c71d951fca4d1de617d453fb3eb7fedf",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 37,
"avg_line_length": 15.333333333333334,
"alnum_prop": 0.75,
"repo_name": "jkwatson/rubberband",
"id": "5fd796922a4099b60c581b5fad1d7a01135beedf",
"size": "184",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/main/java/com/attensa/rubberband/data/DocumentUpdate.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "24009"
}
]
}
|
using Raksha.Asn1;
namespace Raksha.Asn1.Misc
{
public class VerisignCzagExtension
: DerIA5String
{
public VerisignCzagExtension(DerIA5String str)
: base(str.GetString())
{
}
public override string ToString()
{
return "VerisignCzagExtension: " + this.GetString();
}
}
}
|
{
"content_hash": "1f291699f9ae4da8bf9712aa236f581e",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 64,
"avg_line_length": 19.72222222222222,
"alnum_prop": 0.5859154929577465,
"repo_name": "Everbytes/Raksha",
"id": "e55f30cd4cfbe149d348fc653db76300858230e6",
"size": "355",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/Raksha.Shared/Asn1/Misc/VerisignCzagExtension.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "7135288"
},
{
"name": "PowerShell",
"bytes": "34903"
}
]
}
|
<?php
namespace Tests\Mollie\TestHelpers;
trait LinkObjectTestHelpers
{
protected function assertLinkObject($href, $type, $linkObject)
{
$this->assertEquals(
$this->createLinkObject($href, $type),
$linkObject
);
}
protected function createNamedLinkObject($name, $href, $type)
{
return (object) [
$name => $this->createLinkObject($href, $type),
];
}
protected function createLinkObject($href, $type)
{
return (object) [
'href' => $href,
'type' => $type,
];
}
}
|
{
"content_hash": "a183284e0dfd5996468bb350113f9649",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 66,
"avg_line_length": 20.96551724137931,
"alnum_prop": 0.5394736842105263,
"repo_name": "mollie/mollie-api-php",
"id": "d1717e2b1e8169808190aa870cef47f02ea4385c",
"size": "608",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tests/Mollie/TestHelpers/LinkObjectTestHelpers.php",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "PHP",
"bytes": "671710"
}
]
}
|
var common = require('../common');
var assert = common.assert;
var fixture = common.helper.fixture;
var writer = common.m3u.httpLiveStreamingWriter();
// EXT-X-TARGETDURATION: Maximum media file duration.
writer.targetDuration(10);
// EXT-X-MEDIA-SEQUENCE: Sequence number of first file (optional).
// (optional)
writer.mediaSequence(0)
// EXT-X-PROGRAM-DATE-TIME: The date of the program's origin, optional.
// (optional)
writer.programDateTime('2011-04-11T21:24:06Z');
// EXT-X-ALLOW-CACHE: Set if the client is allowed to cache this m3u file.
// (optional)
writer.allowCache(true);
writer.allowCache(false);
// EXT-X-PLAYLIST-TYPE: Provides mutability information about the m3u file.
// (optional)
writer.playlistType('EVENT');
writer.playlistType('VOD');
// Adds a playlist as the next item preceeded by an EXT-X-STREAM-INF tag.
writer.playlist('simple.m3u', {
bandwidth: 3000000,
programId: 1,
});
writer.playlist('another.m3u', {
bandwidth: 3000000, // required
programId: 1,
codecs: ['avc1.4d001e', 'mp4a.40.5'],
resolution: '640x480',
});
// EXT-X-ENDLIST: Indicates that no more media files will be added to the m3u file.
// (optional)
writer.endlist();
// EXT-X-VERSION: Indicates the compatibility version of the Playlist file.
// (optional)
writer.version(3);
// EXT-X-DISCONTINUITY: Indicates there is a change coming.
// (optional)
writer.discontinuity();
fixture.compare(writer, 'http_live_streaming_writer.m3u8');
|
{
"content_hash": "9de0d342276aed7da73f29a1c4dcfcaf",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 83,
"avg_line_length": 27.96153846153846,
"alnum_prop": 0.7269601100412655,
"repo_name": "brunosantos/node-m3u",
"id": "1c519545ee922dd485612838226a6c163afd6948",
"size": "1454",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "test/integration/test-http-live-streaming-writer.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "6418"
},
{
"name": "Makefile",
"bytes": "93"
}
]
}
|
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="box-body">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Cadastros de Exemplares</h3>
<input type="hidden" name="captcha">
</div>
<!-- Horizontal Form -->
<form class="form-horizontal" <?php echo form_open_multipart('catalogo/cadastrar'); ?>
<div class="col-md-6">
<div class="box-body">
<div class="hidden">
<span for="cod" class="col-sm-2 control-label">Código</span>
<div class="col-sm-3">
<input type="text" class="form-control" id="cod" placeholder="Código" disabled="disabled">
</div>
</div>
<div class="form-group">
<label for="cuter" class="col-sm-2 control-label ">Cutter *</label>
<div class="col-sm-5">
<input type="text" class="form-control" name="cuter" id="cuter" placeholder="Número de Classificação do Autor">
</div>
</div>
<div class="form-group">
<label for="classificacao" class="col-sm-2 control-label">Classificaçao*</label>
<!-- select -->
<div class="col-sm-5">
<select class="form-control" name="classificacao" id="classificacao">
<option value="" selected="">Selecione</option>
<?php foreach ($cla as $classificacao){?>
<option value="<?=$classificacao['idclassificacao']?>"> <?=$classificacao['descricao_cla'];?> </option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group">
<label for="classificacao" class="col-sm-2 control-label">Autores *</label>
<!-- select -->
<div class="col-sm-4">
<select class="form-control" name="aut" id="aut">
<option value="" selected="">Selecione</option>
<?php foreach ($aut as $autor){?>
<option value="<?=$autor['idautor']?>"><?=$autor['nome_aut'];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group ">
<label for="inputEmail3" class="col-sm-2 control-label">Titulo *</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="titulo" name="titulo" placeholder="Titulo ">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Subtitulo</span>
<div class="col-sm-7">
<input type="text" class="form-control" id="subtitulo" name="subtitulo" placeholder="Subtitulo">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Edição</span>
<div class="col-sm-3">
<input type="text" class="form-control" id="edicao" name="edicao" placeholder="Edição">
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Paginas *</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="totalpagina"name="totalpagina" placeholder="Paginas">
</div>
</div>
<div class="form-group ">
<label for="inputEmail3" class="col-sm-2 control-label">Cidade *</label>
<!-- select -->
<div class="col-sm-5">
<select class="form-control" name="cid" id="cid">
<option value="" selected="">Selecione</option>
<?php foreach ($cid as $cidade){?>
<option value="<?=$cidade['idcidade']?>"> <?=$cidade['nome'];?> </option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Volume</span>
<div class="col-sm-5">
<input type="number" class="form-control" id="volume" name="volume" placeholder="Volume">
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="box-body">
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">ISSN</span>
<div class="col-sm-5">
<input type="text" class="form-control" id="issn" name="issn" placeholder="ISSN">
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Tipo de documento</label>
<div class="col-sm-5">
<select class="form-control" name="tipo" id="tipo">
<option value="" selected="">Selecione</option>
<?php foreach ($tipo as $tipo_documento){?>
<option value="<?=$tipo_documento['idtipo_documento']?>"> <?=$tipo_documento['descricao'];?> </option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Nota de Serie</span>
<div class="col-sm-8">
<input type="text" class="form-control" id="nota_serie" name="nota_serie" placeholder="Nota de Serie">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">ISBN</span>
<div class="col-sm-9">
<input type="text" class="form-control" id="isbn" name="isbn" placeholder="ISBN">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Editora</span>
<div class="col-sm-7">
<input type="text" class="form-control" id="editora" name="editora" placeholder="Editora">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Data da publicação</span>
<div class="col-sm-5">
<input type="date" class="form-control" id="datapub" name="datapub" placeholder="data da publicação">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Imagem</span>
<div class="col-sm-3">
<input type="file" id="nome_arquivo" name="nome_arquivo">
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Observações</span>
<!-- textarea -->
<div class="col-sm-10">
<textarea class="form-control" rows="3" placeholder="Enter ..." id="obs" name="obs"></textarea>
</div>
</div>
<div class="form-group">
<span for="inputEmail3" class="col-sm-2 control-label">Fasciculo</span>
<div class="col-sm-4">
<input type="text" class="form-control" id="fasciculo" name="fasciculo" placeholder="fasciculo">
</div>
</div>
</div>
</div>
<div class="box-footer">
</div>
<!-- /.box-body -->
<div class="box-footer">
<a href="<?php echo base_url('dashboard'); ?>" type="submit" class="btn bg-black btn-sm btn-flat">voltar</a>
<button type="submit" name="cadastrar" value="cadastrar" class="btn btn-success btn-sm btn-flat">Cadastar</button>
<label for=""><i> * Todos os campos em negrito sao obrigatórios</i></label>
<!-- /.box-footer -->
</form>
</div>
<?php if($modal==true){?>
<!-- Modal da pesquiisa de livros-->
<div class="modal fade" id="exemplomodal" tabindex="-1" role="dialog" aria-
labelledby="myLargeModalLabel">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body" style="text-align: center">
</div>
<?php if ($alerta) { ?>
<div class=" alert alert-<?php echo $alerta['class']; ?>">
<?php echo $alerta['mensagem']; ?>
</div>
<?php } ?>
<div class="modal-footer">
<a href="<?php echo base_url('catalogo/visualizar_todos'); ?>" type="submit" class="btn bg-black btn-sm ">Ok</a>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('#exemplomodal').modal('show');
})
</script>
<?php }?>
<script src="<?php echo base_url('assets/js/cadastro.js')?>"></script>
|
{
"content_hash": "6db35654d5941eae97494d230b358799",
"timestamp": "",
"source": "github",
"line_count": 231,
"max_line_length": 152,
"avg_line_length": 46.96103896103896,
"alnum_prop": 0.4252396755162242,
"repo_name": "giovaninovello/PDS",
"id": "11c069360c32875bd9e5c95f5f6a6f3faaca95bf",
"size": "10866",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "application/views/catalogo/cadastrar.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "401"
},
{
"name": "CSS",
"bytes": "505219"
},
{
"name": "HTML",
"bytes": "11669514"
},
{
"name": "JavaScript",
"bytes": "2722057"
},
{
"name": "PHP",
"bytes": "2151434"
}
]
}
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_checkin_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp" >
<ScrollView
android:id="@+id/poi_detail_scroll"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:orientation="vertical" >
<TableLayout
android:id="@+id/poi_detail_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:shrinkColumns="0" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/poi_detail_icon_location"
android:layout_width="30dp"
android:layout_height="wrap_content"
android:src="@drawable/studgent_logo" />
<TextView
android:id="@+id/poi_detail_location"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/poi_detail_icon_location"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/poi_detail_icon_location"
android:gravity="center_vertical"
android:text="Location"
android:textSize="18sp" />
</RelativeLayout>
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/poi_detail_summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Summary"
android:textSize="18sp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/poi_detail_uri"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="URI"
android:textSize="18sp" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/check_in_Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="check voor de 1e keer in"
android:onClick="checkIn" />
</TableRow>
</TableLayout>
</ScrollView>
</RelativeLayout>
|
{
"content_hash": "03c0143ede82502465eb11487afa9058",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 82,
"avg_line_length": 37.9468085106383,
"alnum_prop": 0.504345388281469,
"repo_name": "studgent/android",
"id": "80f2f2eda97abcb249ad66a7596e999589ae611c",
"size": "3567",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "res/layout/activity_checkin_details.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Groovy",
"bytes": "1575"
},
{
"name": "Java",
"bytes": "256304"
},
{
"name": "Shell",
"bytes": "391"
}
]
}
|
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "ca820e228480fd73ebc5ea91b1bef93c",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "8e3365ae2c88656f0928af169fe57609ffbeb4cb",
"size": "193",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Myrtales/Myrtaceae/Eugenia/Eugenia daaouiensis/ Syn. Eugenia daaouiensis glabriflora/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "fc5790e73198f3af7e9a7d71d07f7277",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "9d3ae428833331912f6db14dd01fb4750780fad9",
"size": "176",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Lamiaceae/Calamintha/Calamintha acinoides/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
<?xml version="1.0" ?>
<template xmlns="http://schemas.sulu.io/template/template"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.sulu.io/template/template http://schemas.sulu.io/template/template-1.0.xsd">
<key>startbootstrap</key>
<view>ClientWebsiteBundle:templates:startbootstrap</view>
<controller>SuluWebsiteBundle:Default:index</controller>
<cacheLifetime>2400</cacheLifetime>
<meta>
<title lang="de">Start Bootstrap Theme</title>
<title lang="en">Start Bootstrap Theme</title>
</meta>
<properties>
<section name="highlight">
<properties>
<property name="profile_image" type="media_selection" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Profile Image</title>
</meta>
<params>
<param name="headline" value="true"/>
</params>
<tag name="sulu.search.field" role="image" index="false"/>
</property>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Title</title>
</meta>
<params>
<param name="headline" value="true"/>
</params>
<tag name="sulu.rlp.part"/>
</property>
<property name="skills" type="text_line" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Skills</title>
</meta>
<params>
<param name="headline" value="true"/>
</params>
<tag name="sulu.rlp.part"/>
</property>
<property name="url" type="resource_locator" mandatory="true">
<meta>
<title lang="de">Adresse</title>
<title lang="en">Resourcelocator</title>
</meta>
<tag name="sulu.rlp"/>
</property>
</properties>
</section>
<property name="portfolio_images" type="media_selection">
<tag name="sulu.search.field" role="image" index="false"/>
<meta>
<title lang="de">Bilder</title>
<title lang="en">Portfolio Images</title>
</meta>
</property>
<section name="content">
<meta>
<title lang="de">Inhalt</title>
<title lang="en">Content</title>
<info_text lang="de">Bereich für den Inhalt</info_text>
<info_text lang="en">Content Section</info_text>
</meta>
<properties>
<property name="about" type="text_editor">
<meta>
<title lang="de">Artikel</title>
<title lang="en">About</title>
</meta>
<params>
<param name="link" value="true"/>
<param name="table" value="true"/>
<param name="height" value="100"/>
<param name="max_height" value="500"/>
<param name="paste_from_word" value="true"/>
<param name="extra_allowed_content"
value="img(*)[*]; span(*)[*]; div(*)[*]; iframe(*)[*]; script(*)[*]"/>
</params>
</property>
<block name="block"
default-type="editor"
minOccurs="2"
maxOccurs="10"
mandatory="true">
<meta>
<title lang="de">Block</title>
<title lang="en">Block</title>
</meta>
<types>
<type name="editor">
<meta>
<title lang="de">Texteditor</title>
<title lang="en">Text editor</title>
</meta>
<properties>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Title</title>
</meta>
</property>
<property name="article" type="text_editor" mandatory="true">
<meta>
<title lang="de">Artikel</title>
<title lang="en">Article</title>
</meta>
</property>
</properties>
</type>
<type name="images">
<meta>
<title lang="de">Bilder</title>
<title lang="en">Images</title>
</meta>
<properties>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Title</title>
</meta>
</property>
<property name="logos" type="media_selection">
<meta>
<title lang="de">Bilder</title>
<title lang="en">Images</title>
</meta>
</property>
<property name="article" type="text_editor" mandatory="true">
<meta>
<title lang="de">Artikel</title>
<title lang="en">Article</title>
</meta>
</property>
</properties>
</type>
<type name="textarea">
<meta>
<title lang="de">Texteingabe</title>
<title lang="en">Text area</title>
</meta>
<properties>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Title</title>
</meta>
</property>
<property name="article" type="text_area" mandatory="true">
<meta>
<title lang="de">Artikel</title>
<title lang="en">Article</title>
</meta>
</property>
</properties>
</type>
<type name="title_only">
<meta>
<title lang="de">Nur Titel</title>
<title lang="en">Title Only</title>
</meta>
<properties>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="de">Titel</title>
<title lang="en">Title</title>
</meta>
</property>
</properties>
</type>
</types>
</block>
</properties>
</section>
<property name="pages" type="smart_content">
<meta>
<title lang="en">Smart Content</title>
</meta>
<params>
<param name="properties" type="collection">
<param name="title" value="title"/>
<param name="description" value="excerpt.description"/>
</param>
<param name="present_as" type="collection">
<param name="one">
<meta>
<title lang="en">One column</title>
</meta>
</param>
<param name="two">
<meta>
<title lang="en">Two column</title>
</meta>
</param>
</param>
</params>
</property>
</properties>
</template>
|
{
"content_hash": "e37accf5b3f965a058a3d977572296b6",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 121,
"avg_line_length": 43.65022421524664,
"alnum_prop": 0.3502157386480378,
"repo_name": "fahadonline/sulu",
"id": "1113b57b6005477d3b19e1fb37701b2a734fe3f1",
"size": "9735",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/Resources/pages/startbootstrap.xml",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "3764"
},
{
"name": "CSS",
"bytes": "120902"
},
{
"name": "HTML",
"bytes": "76011"
},
{
"name": "JavaScript",
"bytes": "43258"
},
{
"name": "PHP",
"bytes": "56167"
},
{
"name": "Shell",
"bytes": "1956"
}
]
}
|
package com.viro.graph;
public class Edge {
Node from;
Node to;
String label;
}
|
{
"content_hash": "09c113cfb34b56f5257e8dec7dece63d",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 23,
"avg_line_length": 11.75,
"alnum_prop": 0.6276595744680851,
"repo_name": "prakharagrawal/ViRo",
"id": "a82510016ba2d45698bdccbf6634ff601ab70e4a",
"size": "708",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "code/src/com/viro/graph/Edge.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "23047"
},
{
"name": "JavaScript",
"bytes": "986107"
}
]
}
|
public class NetworkWaitingGuiFactory
{
private NetworkEntityWaiting networkEntity;
public static NetworkWaitingGuiFactory With(NetworkEntity networkEntity)
{
return new NetworkWaitingGuiFactory() { networkEntity = (NetworkEntityWaiting) networkEntity };
}
public NetworkWaitingGui Get(NetworkEntityRole role)
{
switch (role) {
case NetworkEntityRole.Client:
return new ClientNetworkWaitingGui(networkEntity);
case NetworkEntityRole.Server:
return new ServerNetworkWaitingGui(networkEntity);
default:
return null;
}
}
}
|
{
"content_hash": "6ea6254b48c320982cd3e594542f6e2a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 97,
"avg_line_length": 26.19047619047619,
"alnum_prop": 0.7963636363636364,
"repo_name": "alvarogzp/nextation",
"id": "065b76367187462ab87b9c3379f7027843abcceb",
"size": "550",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Assets/Scripts/Network/Waiting/Gui/NetworkWaitingGuiFactory.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "179337"
},
{
"name": "JavaScript",
"bytes": "1437"
},
{
"name": "Shell",
"bytes": "3196"
}
]
}
|
from supriya.tools.requesttools.Request import Request
class ParallelGroupNewRequest(Request):
### CLASS VARIABLES ###
__slots__ = (
)
### INITIALIZER ###
def __init__(
self,
):
Request.__init__(self)
raise NotImplementedError
### PUBLIC METHODS ###
def to_osc_message(self):
raise NotImplementedError
### PUBLIC PROPERTIES ###
@property
def response_specification(self):
return None
@property
def request_id(self):
from supriya.tools import requesttools
return requesttools.RequestId.PARALLEL_GROUP_NEW
|
{
"content_hash": "bf49634d335f5835898dfd733047e960",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 56,
"avg_line_length": 19.09090909090909,
"alnum_prop": 0.6063492063492063,
"repo_name": "andrewyoung1991/supriya",
"id": "fc66c4ff386b32911ced02901b389f3d3b38c261",
"size": "656",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "supriya/tools/requesttools/ParallelGroupNewRequest.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "6712"
},
{
"name": "CSS",
"bytes": "446"
},
{
"name": "HTML",
"bytes": "1083"
},
{
"name": "JavaScript",
"bytes": "6163"
},
{
"name": "Makefile",
"bytes": "6775"
},
{
"name": "Python",
"bytes": "2693776"
}
]
}
|
@interface RightBarButton : UIButton
@end
|
{
"content_hash": "ed29acc88836c4e0781fbd6907626803",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 36,
"avg_line_length": 14.333333333333334,
"alnum_prop": 0.7906976744186046,
"repo_name": "linjohn527/aifengxian",
"id": "781ce40efd37299cb5ffa3c0117dc5c299699e19",
"size": "203",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "LoveBeeFresh/LoveBeeFresh/Classes/Home(首页)/Views/RightBarButton.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "232408"
}
]
}
|
"""
Test some twanager commands which map to the fastly api
This test requires that fastly.* keys are in tiddlywebconfig.py
and that those keys are not checked in. These tests only work
for @cdent as they test against the live api.
As such they are not tests, really, but learning exercises.
"""
import os
import pytest
from tiddlyweb.config import config
from tiddlyweb.manage import handle
from tiddlywebplugins.fastly.commands import initialize_commands
# skip if this is not cdent
pytestmark = pytest.mark.skipif("os.environ['USER'] != 'cdent'")
def setup_module(module):
initialize_commands(config)
def test_service(capsys):
handle(['', 'fastlyservice'])
results, err = capsys.readouterr()
assert '2013-09-12T10:56:29+00:00' in results
def test_version(capsys):
handle(['', 'fastlyversion', '2'])
results, err = capsys.readouterr()
assert '2013-09-12T10:56:36+00:00' in results
def test_active_version(capsys):
handle(['', 'fastlyactiveversion'])
results, err = capsys.readouterr()
assert results.strip() == '4'
def test_domain(capsys):
handle(['', 'fastlydomain', '3', 'fastiddly.peermore.com'])
results, err = capsys.readouterr()
assert config['fastly.service_id'] in results
def test_purge_url(capsys):
handle(['', 'fastlypurgeurl', 'fastiddly.peermore.com', '/bags'])
results, err = capsys.readouterr()
assert err == ''
def test_purge_service(capsys):
handle(['', 'fastlypurgeservice'])
results, err = capsys.readouterr()
assert err == ''
def test_purge_key(capsys):
handle(['', 'fastlypurgekey', 'BT:system'])
results, err = capsys.readouterr()
assert err == ''
|
{
"content_hash": "9b491fa3ef385fddf64677f4b4f99e7f",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 69,
"avg_line_length": 25.119402985074625,
"alnum_prop": 0.6892453951277481,
"repo_name": "cdent/tiddlywebplugins.fastly",
"id": "ee09503958ae8f1c121ccfa3da250919d53e170b",
"size": "1683",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/test_commands.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "33568"
}
]
}
|
import sys
import re
import os
import shutil
import subprocess
"""Copy Special exercise
"""
def get_special_paths(dir) :
abs_dir = os.path.abspath(dir)
files = ()
for file in os.listdir(dir):
if re.search('\_\_.*\_\_',file) is not None:
files += (abs_dir + '/' + file,)
return files
def copy_to(files,todir):
for file in files:
shutil.copy(file,todir)
return
def zip_to(files,tozip):
cmd_base = 'zip -j %s%s'
str_files = ''
for file in files :
str_files += ' "' + file + '"'
cmd = cmd_base % (tozip,str_files)
print("Command I'm going to do is:\n%s" % cmd)
subprocess.run(cmd, shell=True)
return
def main():
# This basic command line argument parsing code is provided.
# Add code to call your functions below.
# Make a list of command line arguments, omitting the [0] element
# which is the script itself.
args = sys.argv[1:]
if not args:
print("usage: [--todir dir][--tozip zipfile] dir [dir ...]")
sys.exit(1)
# todir and tozip are either set from command line
# or left as the empty string.
# The args array is left just containing the dirs.
todir = ''
if args[0] == '--todir':
todir = args[1]
del args[0:2]
tozip = ''
if args[0] == '--tozip':
tozip = args[1]
del args[0:2]
if len(args) == 0:
print("error: must specify one or more dirs")
sys.exit(1)
files = get_special_paths(args[1])
if not (todir + tozip):
for file in files:
print(file)
if todir:
copy_to(files,todir)
if tozip:
zip_to(files,tozip)
if __name__ == "__main__":
main()
|
{
"content_hash": "7cb1733c4499b473059e074597b3cce1",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 69,
"avg_line_length": 20.795180722891565,
"alnum_prop": 0.5608342989571263,
"repo_name": "Jaimenms/google-python-exercises",
"id": "39432af70ff37d429b01968fc51a72c295b68693",
"size": "2044",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "copyspecial/copyspecial.py",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "DIGITAL Command Language",
"bytes": "191608"
},
{
"name": "HTML",
"bytes": "648402"
},
{
"name": "Python",
"bytes": "25710"
}
]
}
|
#ifndef IdentifierTransformer_h
#define IdentifierTransformer_h
#ifdef __cplusplus
#include <sbml/common/extern.h>
#include <sbml/common/libsbml-namespace.h>
LIBSBML_CPP_NAMESPACE_BEGIN
class SBase;
class LIBSBML_EXTERN IdentifierTransformer
{
public:
IdentifierTransformer();
virtual ~IdentifierTransformer();
int transform(const SBase* element);
virtual int transform(SBase* element);
#ifndef SWIG
void* getUserData();
void setUserData(void* userData);
#endif
private:
void* mUserData;
};
LIBSBML_CPP_NAMESPACE_END
#endif /* __cplusplus */
#endif /* IdentifierTransformer_h */
/** @endcond */
|
{
"content_hash": "f2554cfb567f2374d20547fa51d2914b",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 42,
"avg_line_length": 16.128205128205128,
"alnum_prop": 0.7360890302066773,
"repo_name": "Fairly/opencor",
"id": "ca09dd75b987c17473fb400134e925f2262110a4",
"size": "2322",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/plugins/api/SBMLAPI/include/sbml/util/IdentifierTransformer.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "1617"
},
{
"name": "Batchfile",
"bytes": "5129"
},
{
"name": "C",
"bytes": "9283641"
},
{
"name": "C++",
"bytes": "127655731"
},
{
"name": "CMake",
"bytes": "216018"
},
{
"name": "HTML",
"bytes": "9294"
},
{
"name": "NSIS",
"bytes": "4599"
},
{
"name": "Objective-C",
"bytes": "282234"
},
{
"name": "PHP",
"bytes": "317578"
},
{
"name": "Shell",
"bytes": "2879"
},
{
"name": "SourcePawn",
"bytes": "1544"
},
{
"name": "Visual Basic",
"bytes": "332"
},
{
"name": "XSLT",
"bytes": "58213"
}
]
}
|
package io.carml.model;
public interface DatatypeMap extends Resource, ExpressionMap {
}
|
{
"content_hash": "f0ee39701915ac4603d8c78c057586fa",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 62,
"avg_line_length": 22.5,
"alnum_prop": 0.8111111111111111,
"repo_name": "carml/carml",
"id": "98bb613256dda04561fcd91ab9502e0685f91296",
"size": "90",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "carml-model/src/main/java/io/carml/model/DatatypeMap.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "516012"
}
]
}
|
using HttpException = Saklient.Errors.HttpException;
namespace Saklient.Errors
{
/// <summary>要求されたHTTPメソッドは対応していません。
/// </summary>
public class HttpMethodNotAllowedException : HttpException
{
/// <summary>
/// <param name="status" />
/// <param name="code" />
/// <param name="message" />
/// </summary>
public HttpMethodNotAllowedException(long status, string code=null, string message="") : base(status, code, message == null || message == "" ? "要求されたHTTPメソッドは対応していません。" : message)
{
/*!base!*/;
}
}
}
|
{
"content_hash": "a1cb70ff147447992a14e03c61cf4511",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 181,
"avg_line_length": 23.47826086956522,
"alnum_prop": 0.6518518518518519,
"repo_name": "sakura-internet/saklient.cs",
"id": "de4870b6bfcfe33bfa3f99288c42b42e3a8d82c2",
"size": "616",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Saklient/Errors/HttpMethodNotAllowedException.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "1313"
},
{
"name": "C#",
"bytes": "561568"
},
{
"name": "Shell",
"bytes": "1311"
}
]
}
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Runtime.CompilerServices;
// We publish our internal attributes to other sub-projects of the framework.
// Note, that we omit visual tests as they are meant to test the framework
// behavior "in the wild".
[assembly: InternalsVisibleTo("osu.Framework.Tests")]
[assembly: InternalsVisibleTo("osu.Framework.Tests.Dynamic")]
|
{
"content_hash": "4183f66464c0ffaa208d8f29a5b9cfe6",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 102,
"avg_line_length": 45.36363636363637,
"alnum_prop": 0.7695390781563126,
"repo_name": "Nabile-Rahmani/osu-framework",
"id": "d17cc2f2d09614e17b950b1e6f9aba0915a04cf5",
"size": "501",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "osu.Framework/Properties/AssemblyInfo.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "2141499"
},
{
"name": "C++",
"bytes": "777"
},
{
"name": "GLSL",
"bytes": "7949"
}
]
}
|
package com.myrunning.leaderboard.web;
/**
* File: AddComparatorFormController.java
* Author: Joshua Forester
* Date: 2009/08/26
* Description: Controller object for the comparator app.
**/
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.bind.ServletRequestUtils;
import org.springframework.validation.BindException;
import org.apache.log4j.Logger;
import org.apache.log4j.MDC;
import com.myrunning.leaderboard.global.Constants;
import com.myrunning.leaderboard.model.Admin;
import com.myrunning.leaderboard.model.Comparator;
import com.myrunning.leaderboard.services.ifacesvc.ComparatorService;
import com.myrunning.leaderboard.db.DataAccessFilter;
public class AddComparatorFormController extends ComparatorFormController {
static Logger logger = Logger.getLogger(AddComparatorFormController.class);
private static ComparatorService comparatorService;
public AddComparatorFormController() {
// empty
}
public void setComparatorService(ComparatorService comparatorService) {
this.comparatorService=comparatorService;
}
public ModelAndView onSubmit (HttpServletRequest request,
HttpServletResponse response,
Object command,
BindException errors)
throws Exception {
MDC.put("Session", request.getSession().getId());
logger.debug("handling request");
Comparator comparator = (Comparator) command;
Admin admin = (Admin) request.getSession().getAttribute(Constants.ADMIN_SESSION_KEY);
if (admin == null) {
return new ModelAndView(Constants.OWNERSHIP_ERROR);
}
if (DataAccessFilter.filterDataResourceById(comparator.getCourseId(), admin.getId()) == null) {
return new ModelAndView(Constants.OWNERSHIP_ERROR);
}
comparatorService.addComparator(comparator, admin);
return new ModelAndView(this.getSuccessView());
}
}
|
{
"content_hash": "25cc4c08c0a0d43f88ed050175f06fa5",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 96,
"avg_line_length": 28.728571428571428,
"alnum_prop": 0.7856787667826952,
"repo_name": "joshforester/rdboard",
"id": "c0bc90d6b216214252ed17c12bb28e3463182aa1",
"size": "2011",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/java/com/myrunning/leaderboard/web/AddComparatorFormController.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "792"
},
{
"name": "CSS",
"bytes": "181787"
},
{
"name": "HTML",
"bytes": "47328"
},
{
"name": "Java",
"bytes": "790065"
},
{
"name": "JavaScript",
"bytes": "2586273"
},
{
"name": "PHP",
"bytes": "32890"
},
{
"name": "Shell",
"bytes": "3626"
}
]
}
|
'-------------------------------------------------------------------------------------------'
' Inicio del codigo
'-------------------------------------------------------------------------------------------'
' Importando librerias
'-------------------------------------------------------------------------------------------'
Imports System.Data
'-------------------------------------------------------------------------------------------'
' Inicio de clase "fPurchase_Drop_Ship"
'-------------------------------------------------------------------------------------------'
Partial Class fPurchase_Drop_Ship
Inherits vis2formularios.frmReporte
Dim loObjetoReporte As CrystalDecisions.CrystalReports.Engine.ReportDocument
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim loComandoSeleccionar As New StringBuilder()
loComandoSeleccionar.AppendLine(" SELECT Ordenes_Compras.Cod_Pro, ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Proveedores.Generico = 0) THEN Proveedores.Nom_Pro ELSE ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Ordenes_Compras.Nom_Pro = '') THEN Proveedores.Nom_Pro ELSE Ordenes_Compras.Nom_Pro END) END) AS Nom_Pro, ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Proveedores.Generico = 0) THEN Proveedores.Rif ELSE ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Ordenes_Compras.Rif = '') THEN Proveedores.Rif ELSE Ordenes_Compras.Rif END) END) AS Rif, ")
loComandoSeleccionar.AppendLine(" Proveedores.Nit, ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Proveedores.Generico = 0) THEN SUBSTRING(Proveedores.Dir_Fis,1, 200) ELSE ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (SUBSTRING(Ordenes_Compras.Dir_Fis,1, 200) = '') THEN SUBSTRING(Proveedores.Dir_Fis,1, 200) ELSE SUBSTRING(Ordenes_Compras.Dir_Fis,1, 200) END) END) AS Dir_Fis, ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Proveedores.Generico = 0) THEN Proveedores.Telefonos ELSE ")
loComandoSeleccionar.AppendLine(" (CASE WHEN (Ordenes_Compras.Telefonos = '') THEN Proveedores.Telefonos ELSE Ordenes_Compras.Telefonos END) END) AS Telefonos, ")
loComandoSeleccionar.AppendLine(" Proveedores.Fax, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Nom_Pro As Nom_Gen, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Rif As Rif_Gen, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Nit As Nit_Gen, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Dir_Fis As Dir_Gen, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Telefonos As Tel_Gen, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Documento, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Cod_Uni, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Fec_Ini, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Fec_Fin, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Mon_Bru, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Mon_Des1, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Control, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Cod_Tra, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Mon_Rec1, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Por_Imp1, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Dis_Imp, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Mon_Imp1, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Mon_Net, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Cod_For, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Comentario, ")
loComandoSeleccionar.AppendLine(" Formas_Pagos.Nom_For, ")
loComandoSeleccionar.AppendLine(" Ordenes_Compras.Cod_Ven, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Cod_Art, ")
loComandoSeleccionar.AppendLine(" Vendedores.Nom_Ven, ")
loComandoSeleccionar.AppendLine(" CASE")
loComandoSeleccionar.AppendLine(" WHEN Articulos.Generico = 0 THEN Articulos.Nom_Art")
loComandoSeleccionar.AppendLine(" ELSE Renglones_OCompras.Notas")
loComandoSeleccionar.AppendLine(" END AS Nom_Art, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Renglon, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Can_Art1, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Por_Des As Por_Des1, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Precio1 As Precio1, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Precio1 As Precio1, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Mon_Net As Neto, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Cod_Imp As Cod_Imp, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Por_Imp1 As Por_Imp, ")
loComandoSeleccionar.AppendLine(" Renglones_OCompras.Mon_Imp1 As Impuesto, ")
loComandoSeleccionar.AppendLine(" ISNULL(Unidades_Articulos.Can_Uni,Articulos.Can_Uni) AS Can_Uni ")
loComandoSeleccionar.AppendLine(" FROM Ordenes_Compras ")
loComandoSeleccionar.AppendLine(" LEFT JOIN Renglones_OCompras ON (Renglones_OCompras.Documento = Ordenes_Compras.Documento)")
loComandoSeleccionar.AppendLine(" LEFT JOIN Proveedores ON (Proveedores.Cod_Pro = Ordenes_Compras.Cod_Pro)")
loComandoSeleccionar.AppendLine(" LEFT JOIN Formas_Pagos ON (Formas_Pagos.Cod_For = Ordenes_Compras.Cod_For)")
loComandoSeleccionar.AppendLine(" LEFT JOIN Articulos ON (Articulos.Cod_Art = Renglones_OCompras.Cod_Art)")
loComandoSeleccionar.AppendLine(" LEFT JOIN Vendedores ON (Vendedores.Cod_Ven = Ordenes_Compras.Cod_Ven)")
loComandoSeleccionar.AppendLine(" LEFT JOIN Unidades_Articulos ON (Unidades_Articulos.Cod_Art= Renglones_OCompras.Cod_Art) ")
loComandoSeleccionar.AppendLine(" WHERE " & cusAplicacion.goFormatos.pcCondicionPrincipal)
Dim loServicios As New cusDatos.goDatos
Dim laDatosReporte As DataSet = loServicios.mObtenerTodosSinEsquema(loComandoSeleccionar.ToString, "curReportes")
'--------------------------------------------------'
' Carga la imagen del logo en cusReportes '
'--------------------------------------------------'
Me.mCargarLogoEmpresa(laDatosReporte.Tables(0), "LogoEmpresa")
'-------------------------------------------------------------------------------------------------------
' Verificando si el select (tabla nº0) trae registros
'-------------------------------------------------------------------------------------------------------
If (laDatosReporte.Tables(0).Rows.Count <= 0) Then
Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Información", _
"No se Encontraron Registros para los Parámetros Especificados. ", _
vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Informacion, _
"350px", _
"200px")
End If
loObjetoReporte = cusAplicacion.goFormatos.mCargarInforme("fPurchase_Drop_Ship", laDatosReporte)
'CType(loObjetoReporte.ReportDefinition.ReportObjects("Text25"), CrystalDecisions.CrystalReports.Engine.TextObject).Text = lcPorcentajesImpueto.ToString
Me.mTraducirReporte(loObjetoReporte)
Me.mFormatearCamposReporte(loObjetoReporte)
Me.crvfPurchase_Drop_Ship.ReportSource = loObjetoReporte
Catch loExcepcion As Exception
Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Error", _
"No se pudo Completar el Proceso: " & loExcepcion.Message, _
vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Error, _
"auto", _
"auto")
End Try
End Sub
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
Try
loObjetoReporte.Close()
Catch loExcepcion As Exception
End Try
End Sub
End Class
'-------------------------------------------------------------------------------------------'
' Fin del codigo '
'-------------------------------------------------------------------------------------------'
' MAT: 10/03/11: Programacion inicial '
'-------------------------------------------------------------------------------------------'
|
{
"content_hash": "d8b4b222846074a2b352a42dcb31ae5d",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 235,
"avg_line_length": 65.76712328767124,
"alnum_prop": 0.5538429493855447,
"repo_name": "kodeitsolutions/ef-reports",
"id": "f7dfda913daf3ea823402a5d795a38753e3b292c",
"size": "9607",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "fPurchase_Drop_Ship.aspx.vb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "6246816"
},
{
"name": "Visual Basic",
"bytes": "25803337"
}
]
}
|
<!doctype html>
<html>
<title>npm-start</title>
<meta http-equiv="content-type" value="text/html;utf-8">
<link rel="stylesheet" type="text/css" href="../../static/style.css">
<link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-start.html">
<script async=true src="../../static/toc.js"></script>
<body>
<div id="wrapper">
<h1><a href="../cli/npm-start.html">npm-start</a></h1> <p>Start a package</p>
<h2 id="SYNOPSIS">SYNOPSIS</h2>
<pre><code>npm start <name></code></pre>
<h2 id="DESCRIPTION">DESCRIPTION</h2>
<p>This runs a package's "start" script, if one was provided.</p>
<h2 id="SEE-ALSO">SEE ALSO</h2>
<ul><li><a href="../cli/npm-run-script.html">npm-run-script(1)</a></li><li><a href="../misc/npm-scripts.html">npm-scripts(7)</a></li><li><a href="../cli/npm-test.html">npm-test(1)</a></li><li><a href="../cli/npm-restart.html">npm-restart(1)</a></li><li><a href="../cli/npm-stop.html">npm-stop(1)</a></li></ul>
</div>
<table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
<tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18> </td></tr>
<tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td colspan=6 style="width:60px;height:10px;background:#fff"> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td></tr>
<tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2> </td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td></tr>
<tr><td style="width:10px;height:10px;background:#fff" rowspan=2> </td></tr>
<tr><td style="width:10px;height:10px;background:#fff"> </td></tr>
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr>
<tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr>
</table>
<p id="footer">npm-start — npm@1.4.9</p>
|
{
"content_hash": "34d4ad588f2c62ec407cdf71dba59e6a",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 807,
"avg_line_length": 84.5945945945946,
"alnum_prop": 0.6958466453674121,
"repo_name": "ebelair/jdg15-info",
"id": "ec10f71c33b8c44d32a1022163c6a3ab18139520",
"size": "3130",
"binary": false,
"copies": "8",
"ref": "refs/heads/master",
"path": "node_modules/npm/html/doc/cli/npm-start.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "9787"
},
{
"name": "HTML",
"bytes": "2847"
},
{
"name": "JavaScript",
"bytes": "12952"
},
{
"name": "Shell",
"bytes": "209"
}
]
}
|
//
// Copyright (c) articy Software GmbH & Co. KG. All rights reserved.
//
#pragma once
#include "ArticyObjectWith_Base.h"
#include "ArticyObjectWithZIndex.generated.h"
UINTERFACE(MinimalAPI, BlueprintType, meta=(CannotImplementInterfaceInBlueprint))
class UArticyObjectWithZIndex : public UArticyObjectWith_Base { GENERATED_BODY() };
/**
* All objects that have a property called 'ZIndex' implement this interface.
*/
class IArticyObjectWithZIndex : public IArticyObjectWith_Base
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category="ArticyObjectWithZIndex")
virtual float& GetZIndex()
{
static const auto PropName = FName("ZIndex");
return GetProperty<float>(PropName);
}
virtual const float& GetZIndex() const
{
return const_cast<IArticyObjectWithZIndex*>(this)->GetZIndex();
}
//---------------------------------------------------------------------------//
UFUNCTION(BlueprintCallable, Category="ArticyObjectWithZIndex")
virtual float& SetZIndex(UPARAM(ref) const float& ZIndex)
{
return GetZIndex() = ZIndex;
}
};
|
{
"content_hash": "5d139d919a0c352358d9b79baf0c54c2",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 83,
"avg_line_length": 26.097560975609756,
"alnum_prop": 0.6981308411214954,
"repo_name": "ArticySoftware/ArticyImporterForUnreal",
"id": "e094626f186c1e2b1cef8b6c8d84c28aade77518",
"size": "1070",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Source/ArticyRuntime/Public/Interfaces/ArticyObjectWithZIndex.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "1161"
},
{
"name": "C#",
"bytes": "2674"
},
{
"name": "C++",
"bytes": "603028"
}
]
}
|
package uk.gov.gchq.gaffer.accumulostore.key.core.impl.bytedEntity;
import uk.gov.gchq.gaffer.accumulostore.key.core.AbstractCoreKeyIteratorSettingsFactoryTest;
import uk.gov.gchq.gaffer.accumulostore.key.core.impl.byteEntity.ByteEntityIteratorSettingsFactory;
public class ByteEntityIteratorSettingsFactoryTest extends AbstractCoreKeyIteratorSettingsFactoryTest {
public ByteEntityIteratorSettingsFactoryTest() {
super(new ByteEntityIteratorSettingsFactory());
}
}
|
{
"content_hash": "d9bb73be2c9335bfce3d14719c7e1e76",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 103,
"avg_line_length": 44.09090909090909,
"alnum_prop": 0.843298969072165,
"repo_name": "GovernmentCommunicationsHeadquarters/Gaffer",
"id": "1bb417c7a2f8304f316e1773d35e93d2f08cfb56",
"size": "1088",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "store-implementation/accumulo-store/src/test/java/uk/gov/gchq/gaffer/accumulostore/key/core/impl/bytedEntity/ByteEntityIteratorSettingsFactoryTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "101626"
},
{
"name": "HTML",
"bytes": "2306"
},
{
"name": "Java",
"bytes": "3164134"
},
{
"name": "JavaScript",
"bytes": "1835320"
},
{
"name": "Python",
"bytes": "36585"
}
]
}
|
End of preview.
No dataset card yet
- Downloads last month
- 5