text
stringlengths 2
1.04M
| meta
dict |
|---|---|
import _catchWrapper from './_catchWrapper';
import PassThrough from './PassThrough';
/**
* ```javascript
*
* let chain = InSeries(
* function(next, ...args) {...},
* function(next, ...args) {...},
* ...
* );
*
* new Promise()
* .then(
* Promisify(chain)
* );
*
* ```
*
* Wraps around a task function and greates a promise generator,
* to make it easier to integrate task functions and promises.
*
* NOTE: uchain does not come bundled with a promise library,
* it expects Promise to already exists in the global namespace.
*
* NOTE: because uchain can 'return' multiple values through the next callback,
* Promisify always resolves to an array of the results returned.
*
* @param {function} task - a function that generates a promise from the args.
* @returns {function} a function that generates a Promise when called
* @memberof uchain
*/
const Promisify = (task) => {
if (task == null) {
return PassThrough;
} else {
task = _catchWrapper(task);
}
const taskWrapper = function (...args) {
const handler = (resolve, reject) => {
const callback = (err, ...results) => {
if (err) {
reject(err);
} else {
resolve(results);
}
};
task(callback, ...args);
};
return new Promise(handler);
};
return taskWrapper;
};
export default Promisify;
|
{
"content_hash": "320f5a78aca8b1ed90826381f551b4e1",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 78,
"avg_line_length": 21.95,
"alnum_prop": 0.642369020501139,
"repo_name": "somesocks/uchain",
"id": "dc8787622711c835423c8303aee1cc0caa33bafe",
"size": "1317",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Promisify.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "60909"
},
{
"name": "Makefile",
"bytes": "731"
}
],
"symlink_target": ""
}
|
"""Uncategorized utilities"""
from __future__ import unicode_literals, absolute_import
import collections
import contextlib
import sys
__author__ = 'Constantin Roganov'
def flatten(iterable):
"""Generator of flattened sequence from input iterable.
iterable can contain scalars and another iterables.
[1, 2, 3, 4, [[[5, 6], 7]], 8, [9]] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
"""
for e in iterable:
if isinstance(e, collections.Iterable):
for i in flatten(e):
yield i
else:
yield e
if sys.version_info[0] == 2:
@contextlib.contextmanager
def ignored(*exceptions):
"""Create context manager ignoring exceptions from input sequence"""
try:
yield
except exceptions:
pass
class Singleton(type):
"""Meta class for Singleton creation"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
|
{
"content_hash": "6c7e45a568f594b73d70ce29db27f4a0",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 81,
"avg_line_length": 22.41176470588235,
"alnum_prop": 0.5625546806649169,
"repo_name": "brake/python-utl",
"id": "851f3a1fc11e74fb5e81abd6466afccd4badb5af",
"size": "2664",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "utl/misc.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "52208"
}
],
"symlink_target": ""
}
|
<!-- function.html -->
<html>
<head>
<title>SJSD.TemplateSet.render</title>
<link rel="stylesheet" type="text/css" href="sjsd.css" />
</head>
<body>
<h1 class="pagetitle function"><a href="SJSD.TemplateSet.html">SJSD.TemplateSet.</a>render</h1>
<p class="longdesc function">Render all templates to html on disk.</p>
<div class="sectionwrapper parameter">
<h2 class="sectiontitle parameter">Parameters</h2>
<div class="items parameter">
<div class="item parameter">
<span class="itemlink parameter">parser</span>
<div class="itemdesc parameter">(Parser) A filled Parser object.</div>
</div>
</div>
</div>
<div id="footer">This page was generated by <a href="https://github.com/joepal1976/sjsd.git">sjsd</a> using the "default" template</div>
</body>
</html>
|
{
"content_hash": "b58f7ba13b808b78cc6ebd025696339b",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 139,
"avg_line_length": 26.294117647058822,
"alnum_prop": 0.6073825503355704,
"repo_name": "joepal1976/sjsd",
"id": "8c67f4f7d4c1b91b5647afeed307995c71f821f5",
"size": "894",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/SJSD.TemplateSet.render.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1556"
},
{
"name": "HTML",
"bytes": "4778"
},
{
"name": "JavaScript",
"bytes": "32005"
}
],
"symlink_target": ""
}
|
package com.intuit.autumn.view;
import org.junit.Test;
import javax.ws.rs.core.Response;
import static javax.ws.rs.core.MediaType.TEXT_PLAIN;
import static javax.ws.rs.core.Response.Status.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
public class ResourceTest {
@Test
public void textIndex() throws Exception {
Resource resource = new Resource(5);
Response response = resource.index("foo", "txt");
assertThat(response.getStatus(), is(OK.getStatusCode()));
assertThat(new String((byte[]) response.getEntity()), is("ello ello"));
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is(TEXT_PLAIN));
}
@Test
public void missingIndex() throws Exception {
Resource resource = new Resource(5);
Response response = resource.index("foo", "bar");
assertThat(response.getStatus(), is(INTERNAL_SERVER_ERROR.getStatusCode()));
assertThat((String) response.getEntity(), startsWith("unable to load content, cause: "));
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is(TEXT_PLAIN));
}
@Test
public void cssIndex() throws Exception {
Resource resource = new Resource(5);
Response response = resource.index("jquery-ui", "css");
assertThat(response.getStatus(), is(OK.getStatusCode()));
assertThat(response.getEntity(), notNullValue());
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is("text/css"));
}
@Test
public void imageResource() throws Exception {
Resource resource = new Resource(5);
Response response = resource.resource("images", "loading", "gif");
assertThat(response.getStatus(), is(OK.getStatusCode()));
assertThat(response.getEntity(), notNullValue());
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is("image/gif"));
}
@Test
public void jsResource() throws Exception {
Resource resource = new Resource(5);
Response response = resource.index("jquery.min", "js");
assertThat(response.getStatus(), is(OK.getStatusCode()));
assertThat(response.getEntity(), notNullValue());
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is("application/javascript"));
}
@Test
public void textResource() throws Exception {
Resource resource = new Resource(5);
Response response = resource.resource("txt", "foo", "txt");
assertThat(response.getStatus(), is(OK.getStatusCode()));
assertThat(new String((byte[]) response.getEntity()), is("ello ello"));
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is(TEXT_PLAIN));
}
@Test
public void missingResourceWithSubtype() throws Exception {
Resource resource = new Resource(5);
Response response = resource.resource("foo", "bar", "bop");
assertThat(response.getStatus(), is(INTERNAL_SERVER_ERROR.getStatusCode()));
assertThat((String) response.getEntity(), startsWith("unable to load content, cause: "));
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is(TEXT_PLAIN));
}
@Test
public void nullType() throws Exception {
Resource resource = new Resource(5);
Response response = resource.resource(null, "bar", "bop");
assertThat(response.getStatus(), is(BAD_REQUEST.getStatusCode()));
assertThat((String) response.getEntity(), is("incomplete resource request"));
}
@Test
public void subtypeWithDot() throws Exception {
Resource resource = new Resource(5);
Response response = resource.resource("txt", "foo", "bar.txt");
assertThat(response.getStatus(), is(OK.getStatusCode()));
assertThat(new String((byte[]) response.getEntity()), is("ello ello"));
assertThat(response.getMetadata().getFirst("Content-Type").toString(), is(TEXT_PLAIN));
}
}
|
{
"content_hash": "b6c8dcd7e911527ba9b421db33a71af7",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 109,
"avg_line_length": 38.99038461538461,
"alnum_prop": 0.66288532675709,
"repo_name": "intuit/Autumn",
"id": "4985535230edc463312e85fdf64f641e2cb17848",
"size": "4644",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "modules/view/src/test/java/com/intuit/autumn/view/ResourceTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "311188"
},
{
"name": "JavaScript",
"bytes": "4491"
},
{
"name": "Shell",
"bytes": "17583"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ext-lib: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.12.2 / ext-lib - 0.9.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ext-lib
<small>
0.9.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-10-23 21:58:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-23 21:58:20 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.12.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "dev@clarus.me"
homepage: "https://github.com/coq-community/coq-ext-lib"
dev-repo: "git+https://github.com/coq-community/coq-ext-lib.git"
bug-reports: "https://github.com/coq-community/coq-ext-lib/issues"
authors: ["Gregory Malecha"]
license: "BSD-2-Clause-FreeBSD"
build: [
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
depends: [
"ocaml"
"coq" {>= "8.4pl4" & < "8.5~"}
]
synopsis: "A library of Coq definitions, theorems, and tactics"
url {
src: "https://github.com/coq-community/coq-ext-lib/archive/v0.9.1.tar.gz"
checksum: "md5=062cf7e440b8de59875a408bf4c911b4"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ext-lib.0.9.1 coq.8.12.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.12.2).
The following dependencies couldn't be met:
- coq-ext-lib -> coq < 8.5~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ext-lib.0.9.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "bdb47c29e8bcaf1d394b1c7a7a8b46f7",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 159,
"avg_line_length": 39.67080745341615,
"alnum_prop": 0.5226240801628308,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "4d34dbe91ab828292f187afe31a1b7610a382d69",
"size": "6412",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.05.0-2.0.1/released/8.12.2/ext-lib/0.9.1.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces;
using Microsoft.VisualStudio.LanguageServices.CSharp.Debugging;
using Roslyn.Test.Utilities;
using Roslyn.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Debugging
{
public class LocationInfoGetterTests
{
private void Test(string markup, string expectedName, int expectedLineOffset)
{
using (var workspace = CSharpWorkspaceFactory.CreateWorkspaceFromLines(markup))
{
var testDocument = workspace.Documents.Single();
var position = testDocument.CursorPosition.Value;
var locationInfo = LocationInfoGetter.GetInfoAsync(
workspace.CurrentSolution.Projects.Single().Documents.Single(),
position,
CancellationToken.None).WaitAndGetResult(CancellationToken.None);
Assert.Equal(expectedName, locationInfo.Name);
Assert.Equal(expectedLineOffset, locationInfo.LineOffset);
}
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestClass()
{
Test("class F$$oo { }", "Foo", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(527668), WorkItem(538415)]
public void TestMethod()
{
Test(
@"class Class
{
public static void Meth$$od()
{
}
}
", "Class.Method()", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(527668)]
public void TestNamespace()
{
Test(
@"namespace Namespace
{
class Class
{
void Method()
{
}$$
}
}", "Namespace.Class.Method()", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(527668)]
public void TestDottedNamespace()
{
Test(
@"namespace Namespace.Another
{
class Class
{
void Method()
{
}$$
}
}", "Namespace.Another.Class.Method()", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestNestedNamespace()
{
Test(
@"namespace Namespace
{
namespace Another
{
class Class
{
void Method()
{
}$$
}
}
}", "Namespace.Another.Class.Method()", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(527668)]
public void TestNestedType()
{
Test(
@"class Outer
{
class Inner
{
void Quux()
{$$
}
}
}", "Outer.Inner.Quux()", 1);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(527668)]
public void TestPropertyGetter()
{
Test(
@"class Class
{
string Property
{
get
{
return null;$$
}
}
}", "Class.Property", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(527668)]
public void TestPropertySetter()
{
Test(
@"class Class
{
string Property
{
get
{
return null;
}
set
{
string s = $$value;
}
}
}", "Class.Property", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(538415)]
public void TestField()
{
Test(
@"class Class
{
int fi$$eld;
}", "Class.field", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(543494)]
public void TestLambdaInFieldInitializer()
{
Test(
@"class Class
{
Action<int> a = b => { in$$t c; };
}", "Class.a", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
[WorkItem(543494)]
public void TestMultipleFields()
{
Test(
@"class Class
{
int a1, a$$2;
}", "Class.a2", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestConstructor()
{
Test(
@"class C1
{
C1()
{
$$}
}
", "C1.C1()", 3);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestDestructor()
{
Test(
@"class C1
{
~C1()
{
$$}
}
", "C1.~C1()", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestOperator()
{
Test(
@"namespace N1
{
class C1
{
public static int operator +(C1 x, C1 y)
{
$$return 42;
}
}
}
", "N1.C1.+(C1 x, C1 y)", 2); // Old implementation reports "operator +" (rather than "+")...
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestConversionOperator()
{
Test(
@"namespace N1
{
class C1
{
public static explicit operator N1.C2(N1.C1 x)
{
$$return null;
}
}
class C2
{
}
}
", "N1.C1.N1.C2(N1.C1 x)", 2); // Old implementation reports "explicit operator N1.C2" (rather than "N1.C2")...
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestEvent()
{
Test(
@"class C1
{
delegate void D1();
event D1 e1$$;
}
", "C1.e1", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TextExplicitInterfaceImplementation()
{
Test(
@"interface I1
{
void M1();
}
class C1
{
void I1.M1()
{
$$}
}
", "C1.M1()", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TextIndexer()
{
Test(
@"class C1
{
C1 this[int x]
{
get
{
$$return null;
}
}
}
", "C1.this[int x]", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestParamsParameter()
{
Test(
@"class C1
{
void M1(params int[] x) { $$ }
}
", "C1.M1(params int[] x)", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestArglistParameter()
{
Test(
@"class C1
{
void M1(__arglist) { $$ }
}
", "C1.M1(__arglist)", 0); // Old implementation does not show "__arglist"...
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestRefAndOutParameters()
{
Test(
@"class C1
{
void M1( ref int x, out int y )
{
$$y = x;
}
}
", "C1.M1( ref int x, out int y )", 2); // Old implementation did not show extra spaces around the parameters...
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestOptionalParameters()
{
Test(
@"class C1
{
void M1(int x =1)
{
$$y = x;
}
}
", "C1.M1(int x =1)", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestExtensionMethod()
{
Test(
@"static class C1
{
static void M1(this int x)
{
}$$
}
", "C1.M1(this int x)", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestGenericType()
{
Test(
@"class C1<T, U>
{
static void M1() { $$ }
}
", "C1.M1()", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestGenericMethod()
{
Test(
@"class C1<T, U>
{
static void M1<V>() { $$ }
}
", "C1.M1()", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestGenericParameters()
{
Test(
@"class C1<T, U>
{
static void M1<V>(C1<int, V> x, V y) { $$ }
}
", "C1.M1(C1<int, V> x, V y)", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestMissingNamespace()
{
Test(
@"{
class Class
{
int a1, a$$2;
}
}", "Class.a2", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestMissingNamespaceName()
{
Test(
@"namespace
{
class C1
{
int M1()
$${
}
}
}", "?.C1.M1()", 1);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestMissingClassName()
{
Test(
@"namespace N1
class
{
int M1()
$${
}
}
}", "N1.M1()", 1); // Old implementation displayed "N1.?.M1", but we don't see a class declaration in the syntax tree...
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestMissingMethodName()
{
Test(
@"namespace N1
{
class C1
{
static void (int x)
{
$$}
}
}", "N1.C1", 4);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TestMissingParameterList()
{
Test(
@"namespace N1
{
class C1
{
static void M1
{
$$}
}
}", "N1.C1.M1", 2);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TopLevelField()
{
Test(
@"$$int f1;
", "f1", 0);
}
[Fact, Trait(Traits.Feature, Traits.Features.DebuggingLocationName)]
public void TopLevelMethod()
{
Test(
@"int M1(int x)
{
$$}
", "M1(int x)", 2);
}
}
}
|
{
"content_hash": "2985fa62a78dc4a6a3ff113f0d05b837",
"timestamp": "",
"source": "github",
"line_count": 482,
"max_line_length": 120,
"avg_line_length": 21.136929460580912,
"alnum_prop": 0.5271888496270122,
"repo_name": "MavenRain/roslyn",
"id": "5e100ea41eb0ea6985e860ae281a438603e24493",
"size": "10350",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/VisualStudio/CSharp/Test/Debugging/LocationInfoGetterTests.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "8388"
},
{
"name": "C#",
"bytes": "72045407"
},
{
"name": "C++",
"bytes": "2298"
},
{
"name": "F#",
"bytes": "421"
},
{
"name": "PowerShell",
"bytes": "801"
},
{
"name": "Shell",
"bytes": "8169"
},
{
"name": "Visual Basic",
"bytes": "58165340"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<sem:triples uri="http://www.lds.org/vrl/specific-people/media/kunzel-erich" xmlns:sem="http://marklogic.com/semantics">
<sem:triple>
<sem:subject>http://www.lds.org/vrl/specific-people/media/kunzel-erich</sem:subject>
<sem:predicate>http://www.w3.org/2004/02/skos/core#prefLabel</sem:predicate>
<sem:object datatype="xsd:string" xml:lang="eng">Kunzel, Erich</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://www.lds.org/vrl/specific-people/media/kunzel-erich</sem:subject>
<sem:predicate>http://www.w3.org/2004/02/skos/core#inScheme</sem:predicate>
<sem:object datatype="sem:iri">http://www.lds.org/concept-scheme/vrl</sem:object>
</sem:triple>
<sem:triple>
<sem:subject>http://www.lds.org/vrl/specific-people/media/kunzel-erich</sem:subject>
<sem:predicate>http://www.lds.org/core#entityType</sem:predicate>
<sem:object datatype="sem:iri">http://www.schema.org/Place</sem:object>
</sem:triple>
</sem:triples>
|
{
"content_hash": "445a5dfbb34150dac330e72af94ef77c",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 120,
"avg_line_length": 56,
"alnum_prop": 0.7103174603174603,
"repo_name": "freshie/ml-taxonomies",
"id": "e2d31d74da06fa593c9ad57cb106e866c3e84ebd",
"size": "1008",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "roxy/data/gospel-topical-explorer-v2/taxonomies/vrl/specific-people/media/kunzel-erich.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "4422"
},
{
"name": "CSS",
"bytes": "38665"
},
{
"name": "HTML",
"bytes": "356"
},
{
"name": "JavaScript",
"bytes": "411651"
},
{
"name": "Ruby",
"bytes": "259121"
},
{
"name": "Shell",
"bytes": "7329"
},
{
"name": "XQuery",
"bytes": "857170"
},
{
"name": "XSLT",
"bytes": "13753"
}
],
"symlink_target": ""
}
|
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_RPCDCE_H
#define __WINE_RPCDCE_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef IN
#define IN
#endif
#ifndef OUT
#define OUT
#endif
#ifndef OPTIONAL
#define OPTIONAL
#endif
#ifndef GUID_DEFINED
#include <guiddef.h>
#endif
#ifndef UUID_DEFINED
#define UUID_DEFINED
typedef GUID UUID;
#endif
typedef unsigned char* RPC_CSTR;
typedef unsigned short* RPC_WSTR;
typedef void* RPC_AUTH_IDENTITY_HANDLE;
typedef void* RPC_AUTHZ_HANDLE;
typedef void* RPC_IF_HANDLE;
typedef I_RPC_HANDLE RPC_BINDING_HANDLE;
typedef RPC_BINDING_HANDLE handle_t;
#define rpc_binding_handle_t RPC_BINDING_HANDLE
#define RPC_MGR_EPV void
typedef struct _RPC_BINDING_VECTOR
{
ULONG Count;
RPC_BINDING_HANDLE BindingH[1];
} RPC_BINDING_VECTOR;
#define rpc_binding_vector_t RPC_BINDING_VECTOR
typedef struct _UUID_VECTOR
{
ULONG Count;
UUID *Uuid[1];
} UUID_VECTOR;
#define uuid_vector_t UUID_VECTOR
typedef struct _RPC_IF_ID
{
UUID Uuid;
unsigned short VersMajor;
unsigned short VersMinor;
} RPC_IF_ID;
typedef struct
{
ULONG Count;
RPC_IF_ID *IfId[1];
} RPC_IF_ID_VECTOR;
typedef struct
{
unsigned int Count;
ULONG Stats[1];
} RPC_STATS_VECTOR;
typedef struct _RPC_PROTSEQ_VECTORA
{
unsigned int Count;
unsigned char *Protseq[1];
} RPC_PROTSEQ_VECTORA;
typedef struct _RPC_PROTSEQ_VECTORW
{
unsigned int Count;
unsigned short *Protseq[1];
} RPC_PROTSEQ_VECTORW;
DECL_WINELIB_TYPE_AW(RPC_PROTSEQ_VECTOR)
typedef I_RPC_HANDLE *RPC_EP_INQ_HANDLE;
#define RPC_C_EP_ALL_ELTS 0
#define RPC_C_EP_MATCH_BY_IF 1
#define RPC_C_EP_MATCH_BY_OBJ 2
#define RPC_C_EP_MATCH_BY_BOTH 3
#define RPC_C_VERS_ALL 1
#define RPC_C_VERS_COMPATIBLE 2
#define RPC_C_VERS_EXACT 3
#define RPC_C_VERS_MAJOR_ONLY 4
#define RPC_C_VERS_UPTO 5
#define RPC_C_BINDING_INFINITE_TIMEOUT 10
#define RPC_C_BINDING_MIN_TIMEOUT 0
#define RPC_C_BINDING_DEFAULT_TIMEOUT 5
#define RPC_C_BINDING_MAX_TIMEOUT 9
#define RPC_C_CANCEL_INFINITE_TIMEOUT -1
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
#define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
#define RPC_PROTSEQ_TCP 0x1
#define RPC_PROTSEQ_NMP 0x2
#define RPC_PROTSEQ_LRPC 0x3
#define RPC_PROTSEQ_HTTP 0x4
/* RPC_POLICY EndpointFlags */
#define RPC_C_BIND_TO_ALL_NICS 0x1
#define RPC_C_USE_INTERNET_PORT 0x1
#define RPC_C_USE_INTRANET_PORT 0x2
#define RPC_C_DONT_FAIL 0x4
/* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
#define RPC_C_MQ_TEMPORARY 0x0000
#define RPC_C_MQ_PERMANENT 0x0001
#define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
#define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
#define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
#define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
#define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
#define RPC_C_AUTHN_LEVEL_DEFAULT 0
#define RPC_C_AUTHN_LEVEL_NONE 1
#define RPC_C_AUTHN_LEVEL_CONNECT 2
#define RPC_C_AUTHN_LEVEL_CALL 3
#define RPC_C_AUTHN_LEVEL_PKT 4
#define RPC_C_AUTHN_LEVEL_PKT_INTEGRITY 5
#define RPC_C_AUTHN_LEVEL_PKT_PRIVACY 6
#define RPC_C_AUTHN_NONE 0
#define RPC_C_AUTHN_DCE_PRIVATE 1
#define RPC_C_AUTHN_DCE_PUBLIC 2
#define RPC_C_AUTHN_DEC_PUBLIC 4
#define RPC_C_AUTHN_GSS_NEGOTIATE 9
#define RPC_C_AUTHN_WINNT 10
#define RPC_C_AUTHN_GSS_SCHANNEL 14
#define RPC_C_AUTHN_GSS_KERBEROS 16
#define RPC_C_AUTHN_DPA 17
#define RPC_C_AUTHN_MSN 18
#define RPC_C_AUTHN_DIGEST 21
#define RPC_C_AUTHN_MQ 100
#define RPC_C_AUTHN_DEFAULT 0xffffffff
#define RPC_C_AUTHZ_NONE 0
#define RPC_C_AUTHZ_NAME 1
#define RPC_C_AUTHZ_DCE 2
#define RPC_C_AUTHZ_DEFAULT 0xffffffff
/* values for RPC_SECURITY_QOS*::ImpersonationType */
#define RPC_C_IMP_LEVEL_DEFAULT 0
#define RPC_C_IMP_LEVEL_ANONYMOUS 1
#define RPC_C_IMP_LEVEL_IDENTIFY 2
#define RPC_C_IMP_LEVEL_IMPERSONATE 3
#define RPC_C_IMP_LEVEL_DELEGATE 4
/* values for RPC_SECURITY_QOS*::IdentityTracking */
#define RPC_C_QOS_IDENTITY_STATIC 0
#define RPC_C_QOS_IDENTITY_DYNAMIC 1
/* flags for RPC_SECURITY_QOS*::Capabilities */
#define RPC_C_QOS_CAPABILITIES_DEFAULT 0x0
#define RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH 0x1
#define RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC 0x2
#define RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY 0x4
/* values for RPC_SECURITY_QOS*::Version */
#define RPC_C_SECURITY_QOS_VERSION 1
#define RPC_C_SECURITY_QOS_VERSION_1 1
#define RPC_C_SECURITY_QOS_VERSION_2 2
/* flags for RPC_SECURITY_QOS_V2::AdditionalSecurityInfoType */
#define RPC_C_AUTHN_INFO_TYPE_HTTP 1
/* flags for RPC_HTTP_TRANSPORT_CREDENTIALS::Flags */
#define RPC_C_HTTP_FLAG_USE_SSL 0x1
#define RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME 0x2
/* values for RPC_HTTP_TRANSPORT_CREDENTIALS::AuthenticationTarget */
#define RPC_C_HTTP_AUTHN_TARGET_SERVER 1
#define RPC_C_HTTP_AUTHN_TARGET_PROXY 2
#define RPC_C_HTTP_AUTHN_SCHEME_BASIC 0x01
#define RPC_C_HTTP_AUTHN_SCHEME_NTLM 0x02
#define RPC_C_HTTP_AUTHN_SCHEME_PASSPORT 0x04
#define RPC_C_HTTP_AUTHN_SCHEME_DIGEST 0x08
#define RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE 0x10
typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, void *Context );
typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)(void *, RPC_WSTR, ULONG, void **, RPC_STATUS *);
typedef struct _RPC_POLICY
{
unsigned int Length;
ULONG EndpointFlags;
ULONG NICFlags;
} RPC_POLICY, *PRPC_POLICY;
typedef struct _SEC_WINNT_AUTH_IDENTITY_W
{
unsigned short* User;
ULONG UserLength;
unsigned short* Domain;
ULONG DomainLength;
unsigned short* Password;
ULONG PasswordLength;
ULONG Flags;
} SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W;
typedef struct _SEC_WINNT_AUTH_IDENTITY_A
{
unsigned char* User;
ULONG UserLength;
unsigned char* Domain;
ULONG DomainLength;
unsigned char* Password;
ULONG PasswordLength;
ULONG Flags;
} SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A;
typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W
{
SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials;
ULONG Flags;
ULONG AuthenticationTarget;
ULONG NumberOfAuthnSchemes;
ULONG *AuthnSchemes;
unsigned short *ServerCertificateSubject;
} RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W;
typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A
{
SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials;
ULONG Flags;
ULONG AuthenticationTarget;
ULONG NumberOfAuthnSchemes;
ULONG *AuthnSchemes;
unsigned char *ServerCertificateSubject;
} RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A;
typedef struct _RPC_SECURITY_QOS {
ULONG Version;
ULONG Capabilities;
ULONG IdentityTracking;
ULONG ImpersonationType;
} RPC_SECURITY_QOS, *PRPC_SECURITY_QOS;
typedef struct _RPC_SECURITY_QOS_V2_W
{
ULONG Version;
ULONG Capabilities;
ULONG IdentityTracking;
ULONG ImpersonationType;
ULONG AdditionalSecurityInfoType;
union
{
RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
} u;
} RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W;
typedef struct _RPC_SECURITY_QOS_V2_A
{
ULONG Version;
ULONG Capabilities;
ULONG IdentityTracking;
ULONG ImpersonationType;
ULONG AdditionalSecurityInfoType;
union
{
RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
} u;
} RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A;
#define _SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(_SEC_WINNT_AUTH_IDENTITY_)
#define SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(SEC_WINNT_AUTH_IDENTITY_)
#define PSEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(PSEC_WINNT_AUTH_IDENTITY_)
#define RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(RPC_HTTP_TRANSPORT_CREDENTIALS_)
#define PRPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_)
#define _RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(_RPC_HTTP_TRANSPORT_CREDENTIALS_)
#define RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(RPC_SECURITY_QOS_V2_)
#define PRPC_SECURITY_QOS_V2 WINELIB_NAME_AW(PRPC_SECURITY_QOS_V2_)
#define _RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(_RPC_SECURITY_QOS_V2_)
/* SEC_WINNT_AUTH Flags */
#define SEC_WINNT_AUTH_IDENTITY_ANSI 0x1
#define SEC_WINNT_AUTH_IDENTITY_UNICODE 0x2
/* RpcServerRegisterIfEx Flags */
#define RPC_IF_AUTOLISTEN 0x01
#define RPC_IF_OLE 0x02
#define RPC_IF_ALLOW_UNKNOWN_AUTHORITY 0x04
#define RPC_IF_ALLOW_SECURE_ONLY 0x08
#define RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH 0x10
#define RPC_IF_ALLOW_LOCAL_ONLY 0x20
#define RPC_IF_SEC_NO_CACHE 0x40
RPC_STATUS RPC_ENTRY DceErrorInqTextA(RPC_STATUS e, RPC_CSTR buffer);
RPC_STATUS RPC_ENTRY DceErrorInqTextW(RPC_STATUS e, RPC_WSTR buffer);
#define DceErrorInqText WINELIB_NAME_AW(DceErrorInqText)
RPCRTAPI DECLSPEC_NORETURN void RPC_ENTRY
RpcRaiseException( RPC_STATUS exception );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingCopy( RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE* DestinationBinding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingFree( RPC_BINDING_HANDLE* Binding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR *OptionValue );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingReset( RPC_BINDING_HANDLE Binding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingSetObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingSetOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR OptionValue );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcObjectSetType( UUID* ObjUuid, UUID* TypeUuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BINDING_HANDLE* Binding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BINDING_HANDLE* Binding );
#define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, RPC_CSTR *StringBinding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingToStringBindingW( RPC_BINDING_HANDLE Binding, RPC_WSTR *StringBinding );
#define RpcBindingToStringBinding WINELIB_NAME_AW(RpcBindingToStringBinding)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringBindingComposeA( RPC_CSTR ObjUuid, RPC_CSTR Protseq, RPC_CSTR NetworkAddr,
RPC_CSTR Endpoint, RPC_CSTR Options, RPC_CSTR *StringBinding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringBindingComposeW( RPC_WSTR ObjUuid, RPC_WSTR Protseq, RPC_WSTR NetworkAddr,
RPC_WSTR Endpoint, RPC_WSTR Options, RPC_WSTR *StringBinding );
#define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringBindingParseA( RPC_CSTR StringBinding, RPC_CSTR *ObjUuid, RPC_CSTR *Protseq,
RPC_CSTR *NetworkAddr, RPC_CSTR *Endpoint, RPC_CSTR *NetworkOptions );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringBindingParseW( RPC_WSTR StringBinding, RPC_WSTR *ObjUuid, RPC_WSTR *Protseq,
RPC_WSTR *NetworkAddr, RPC_WSTR *Endpoint, RPC_WSTR *NetworkOptions );
#define RpcStringBindingParse WINELIB_NAME_AW(RpcStringBindingParse)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE IfSpec );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcEpRegisterA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcEpRegisterW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
#define RpcEpRegister WINELIB_NAME_AW(RpcEpRegister)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcEpRegisterNoReplaceA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcEpRegisterNoReplaceW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
#define RpcEpRegisterNoReplace WINELIB_NAME_AW(RpcEpRegisterNoReplace)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcEpUnregister( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
UUID_VECTOR* UuidVector );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerInqBindings( RPC_BINDING_VECTOR** BindingVector );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerListen( unsigned int MinimumCallThreads, unsigned int MaxCalls, unsigned int DontWait );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtEnableIdleCleanup( void );
typedef int (__RPC_API *RPC_MGMT_AUTHORIZATION_FN)( RPC_BINDING_HANDLE, ULONG, RPC_STATUS * );
RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetAuthorizationFn( RPC_MGMT_AUTHORIZATION_FN );
RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetCancelTimeout(LONG);
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtWaitServerListen( void );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtInqStats( RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR **Statistics );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtStopServerListening( RPC_BINDING_HANDLE Binding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtInqIfIds( RPC_BINDING_HANDLE Binding, RPC_IF_ID_VECTOR** IfIdVector );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtEpEltInqBegin( RPC_BINDING_HANDLE EpBinding, ULONG InquiryType, RPC_IF_ID *IfId,
ULONG VersOption, UUID *ObjectUuid, RPC_EP_INQ_HANDLE *InquiryContext);
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtSetComTimeout( RPC_BINDING_HANDLE Binding, unsigned int Timeout );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtSetServerStackSize( ULONG ThreadStackSize );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcMgmtStatsVectorFree( RPC_STATS_VECTOR **StatsVector );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
unsigned int Flags, unsigned int MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
unsigned int Flags, unsigned int MaxCalls, unsigned int MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, unsigned int WaitForCallsToComplete );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUnregisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, int RundownContextHandles );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUseProtseqA(RPC_CSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUseProtseqW(RPC_WSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
#define RpcServerUseProtseq WINELIB_NAME_AW(RpcServerUseProtseq)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUseProtseqEpA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUseProtseqEpW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor );
#define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUseProtseqEpExA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor,
PRPC_POLICY Policy );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerUseProtseqEpExW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor,
PRPC_POLICY Policy );
#define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerRegisterAuthInfoA( RPC_CSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
void *Arg );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerRegisterAuthInfoW( RPC_WSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
void *Arg );
#define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
RPC_SECURITY_QOS *SecurityQos );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingSetAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
RPC_SECURITY_QOS *SecurityQos );
#define RpcBindingSetAuthInfoEx WINELIB_NAME_AW(RpcBindingSetAuthInfoEx)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingSetAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingSetAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
#define RpcBindingSetAuthInfo WINELIB_NAME_AW(RpcBindingSetAuthInfo)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
#define RpcBindingInqAuthInfoEx WINELIB_NAME_AW(RpcBindingInqAuthInfoEx)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
#define RpcBindingInqAuthInfo WINELIB_NAME_AW(RpcBindingInqAuthInfo)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthClientA( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
RPC_CSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
ULONG *AuthzSvc );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthClientW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
RPC_WSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
ULONG *AuthzSvc );
#define RpcBindingInqAuthClient WINELIB_NAME_AW(RpcBindingInqAuthClient)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthClientExA( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
RPC_CSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
ULONG *AuthzSvc, ULONG Flags );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingInqAuthClientExW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
RPC_WSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
ULONG *AuthzSvc, ULONG Flags );
#define RpcBindingInqAuthClientEx WINELIB_NAME_AW(RpcBindingInqAuthClientEx)
RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThread(void*);
RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThreadEx(void*,LONG);
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcImpersonateClient( RPC_BINDING_HANDLE Binding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcNetworkIsProtseqValidA( RPC_CSTR protseq );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcNetworkIsProtseqValidW( RPC_WSTR protseq );
#define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcNetworkInqProtseqsA( RPC_PROTSEQ_VECTORA** protseqs );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcNetworkInqProtseqsW( RPC_PROTSEQ_VECTORW** protseqs );
#define RpcNetworkInqProtseqs WINELIB_NAME_AW(RpcNetworkInqProtseqs)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcProtseqVectorFreeA( RPC_PROTSEQ_VECTORA** protseqs );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcProtseqVectorFreeW( RPC_PROTSEQ_VECTORW** protseqs );
#define RpcProtseqVectorFree WINELIB_NAME_AW(RpcProtseqVectorFree)
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcRevertToSelf( void );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcRevertToSelfEx( RPC_BINDING_HANDLE Binding );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringFreeA(RPC_CSTR* String);
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringFreeW(RPC_WSTR* String);
#define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidToStringA( UUID* Uuid, RPC_CSTR* StringUuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidToStringW( UUID* Uuid, RPC_WSTR* StringUuid );
#define UuidToString WINELIB_NAME_AW(UuidToString)
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidFromStringA( RPC_CSTR StringUuid, UUID* Uuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidFromStringW( RPC_WSTR StringUuid, UUID* Uuid );
#define UuidFromString WINELIB_NAME_AW(UuidFromString)
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidCreate( UUID* Uuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidCreateSequential( UUID* Uuid );
RPCRTAPI RPC_STATUS RPC_ENTRY
UuidCreateNil( UUID* Uuid );
RPCRTAPI signed int RPC_ENTRY
UuidCompare( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
RPCRTAPI int RPC_ENTRY
UuidEqual( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
RPCRTAPI unsigned short RPC_ENTRY
UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
RPCRTAPI int RPC_ENTRY
UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerInqDefaultPrincNameA( ULONG AuthnSvc, RPC_CSTR *PrincName );
RPCRTAPI RPC_STATUS RPC_ENTRY
RpcServerInqDefaultPrincNameW( ULONG AuthnSvc, RPC_WSTR *PrincName );
#define RpcServerInqDefaultPrincName WINELIB_NAME_AW(RpcServerInqDefaultPrincName)
#ifdef __cplusplus
}
#endif
#include <rpcdcep.h>
#endif /*__WINE_RPCDCE_H */
|
{
"content_hash": "d2767465b687ed140481495dcc84b02b",
"timestamp": "",
"source": "github",
"line_count": 619,
"max_line_length": 127,
"avg_line_length": 37.38449111470113,
"alnum_prop": 0.7421027613326996,
"repo_name": "egraba/vbox_openbsd",
"id": "8e95ec84f5cff3495097f0022d4b7f278e6d57d2",
"size": "23924",
"binary": false,
"copies": "11",
"ref": "refs/heads/master",
"path": "VirtualBox-5.0.0/src/VBox/Devices/Graphics/shaderlib/wine/include/rpcdce.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ada",
"bytes": "88714"
},
{
"name": "Assembly",
"bytes": "4303680"
},
{
"name": "AutoIt",
"bytes": "2187"
},
{
"name": "Batchfile",
"bytes": "95534"
},
{
"name": "C",
"bytes": "192632221"
},
{
"name": "C#",
"bytes": "64255"
},
{
"name": "C++",
"bytes": "83842667"
},
{
"name": "CLIPS",
"bytes": "5291"
},
{
"name": "CMake",
"bytes": "6041"
},
{
"name": "CSS",
"bytes": "26756"
},
{
"name": "D",
"bytes": "41844"
},
{
"name": "DIGITAL Command Language",
"bytes": "56579"
},
{
"name": "DTrace",
"bytes": "1466646"
},
{
"name": "GAP",
"bytes": "350327"
},
{
"name": "Groff",
"bytes": "298540"
},
{
"name": "HTML",
"bytes": "467691"
},
{
"name": "IDL",
"bytes": "106734"
},
{
"name": "Java",
"bytes": "261605"
},
{
"name": "JavaScript",
"bytes": "80927"
},
{
"name": "Lex",
"bytes": "25122"
},
{
"name": "Logos",
"bytes": "4941"
},
{
"name": "Makefile",
"bytes": "426902"
},
{
"name": "Module Management System",
"bytes": "2707"
},
{
"name": "NSIS",
"bytes": "177212"
},
{
"name": "Objective-C",
"bytes": "5619792"
},
{
"name": "Objective-C++",
"bytes": "81554"
},
{
"name": "PHP",
"bytes": "58585"
},
{
"name": "Pascal",
"bytes": "69941"
},
{
"name": "Perl",
"bytes": "240063"
},
{
"name": "PowerShell",
"bytes": "10664"
},
{
"name": "Python",
"bytes": "9094160"
},
{
"name": "QMake",
"bytes": "3055"
},
{
"name": "R",
"bytes": "21094"
},
{
"name": "SAS",
"bytes": "1847"
},
{
"name": "Shell",
"bytes": "1460572"
},
{
"name": "SourcePawn",
"bytes": "4139"
},
{
"name": "TypeScript",
"bytes": "142342"
},
{
"name": "Visual Basic",
"bytes": "7161"
},
{
"name": "XSLT",
"bytes": "1034475"
},
{
"name": "Yacc",
"bytes": "22312"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>pur-assemblies</artifactId>
<packaging>pom</packaging>
<version>9.2.0.0-SNAPSHOT</version>
<name>PDI PUR Plugin Assemblies</name>
<parent>
<groupId>org.pentaho.di.plugins</groupId>
<artifactId>pur</artifactId>
<version>9.2.0.0-SNAPSHOT</version>
</parent>
<modules>
<module>plugin</module>
</modules>
</project>
|
{
"content_hash": "0275432365d8bed88024c5915c249211",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 108,
"avg_line_length": 30.952380952380953,
"alnum_prop": 0.683076923076923,
"repo_name": "pedrofvteixeira/pentaho-kettle",
"id": "f769843e8163aea39637756bda3bd6446ade9e1f",
"size": "650",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "plugins/pur/assemblies/pom.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "41477"
},
{
"name": "CSS",
"bytes": "91728"
},
{
"name": "GAP",
"bytes": "4005"
},
{
"name": "HTML",
"bytes": "88982"
},
{
"name": "Java",
"bytes": "43367501"
},
{
"name": "JavaScript",
"bytes": "613581"
},
{
"name": "Shell",
"bytes": "45854"
}
],
"symlink_target": ""
}
|
package threads;
import org.junit.Test;
import java.util.Timer;
import java.util.TimerTask;
/**
* Created by Ivan Sliusar on 23.10.2017.
* Red Line Soft corp.
*/
public class CountingTest {
/**
* Test 1.
*/
@Test
public void countingWords() {
String inputString = "200 тысяч лет назад человекообразное существо, известное под именем Homo erectus (Человек прямостоящий), внезапно превратилось в Homo sapiens (Человека разумного). При этом объем головного мозга у него увеличился на 50 %, он обрел способность говорить, и его анатомическое строение приблизилось к анатомическому строению современного человека. Спрашивается, как это могло произойти так внезапно после 1,2 миллиона лет полного отсутствия прогресса? Именно странности такого рода ставили в весьма затруднительное положение чрезвычайно уважаемых ученых-эволюционистов — таких как Ноам Хомски и Роджер Пенроуз. Когда мы применяем систему эволюционных принципов к Homo sapiens, то единственный логический вывод состоит в том, что человечество не могло бы существовать.";
System.out.println("Start calculating");
Thread count = new Counting(inputString);
count.start();
try {
count.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("End calculating");
}
}
|
{
"content_hash": "a150936f01d7228468a5c5593513869f",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 795,
"avg_line_length": 44.225806451612904,
"alnum_prop": 0.7242888402625821,
"repo_name": "simvip/isliusar",
"id": "01139af71cd13408b290df63de74a5c7696c6520",
"size": "1976",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "chapter_004_Multithreading/src/test/java/threads/CountingTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "8449"
},
{
"name": "HTML",
"bytes": "58353"
},
{
"name": "Java",
"bytes": "530832"
},
{
"name": "JavaScript",
"bytes": "89575"
}
],
"symlink_target": ""
}
|
package stsiface
import (
"github.com/aws/aws-sdk-go/aws/service"
"github.com/aws/aws-sdk-go/service/sts"
)
// STSAPI is the interface type for sts.STS.
type STSAPI interface {
AssumeRoleRequest(*sts.AssumeRoleInput) (*service.Request, *sts.AssumeRoleOutput)
AssumeRole(*sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)
AssumeRoleWithSAMLRequest(*sts.AssumeRoleWithSAMLInput) (*service.Request, *sts.AssumeRoleWithSAMLOutput)
AssumeRoleWithSAML(*sts.AssumeRoleWithSAMLInput) (*sts.AssumeRoleWithSAMLOutput, error)
AssumeRoleWithWebIdentityRequest(*sts.AssumeRoleWithWebIdentityInput) (*service.Request, *sts.AssumeRoleWithWebIdentityOutput)
AssumeRoleWithWebIdentity(*sts.AssumeRoleWithWebIdentityInput) (*sts.AssumeRoleWithWebIdentityOutput, error)
DecodeAuthorizationMessageRequest(*sts.DecodeAuthorizationMessageInput) (*service.Request, *sts.DecodeAuthorizationMessageOutput)
DecodeAuthorizationMessage(*sts.DecodeAuthorizationMessageInput) (*sts.DecodeAuthorizationMessageOutput, error)
GetFederationTokenRequest(*sts.GetFederationTokenInput) (*service.Request, *sts.GetFederationTokenOutput)
GetFederationToken(*sts.GetFederationTokenInput) (*sts.GetFederationTokenOutput, error)
GetSessionTokenRequest(*sts.GetSessionTokenInput) (*service.Request, *sts.GetSessionTokenOutput)
GetSessionToken(*sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error)
}
|
{
"content_hash": "ccf890f2148c70602b01225809abd9c2",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 130,
"avg_line_length": 42.24242424242424,
"alnum_prop": 0.8357245337159254,
"repo_name": "marcosnils/aws-sdk-go",
"id": "e63f1146ee943d1cf4e01bf3b290a6a6400881eb",
"size": "1527",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "service/sts/stsiface/interface.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Cucumber",
"bytes": "22856"
},
{
"name": "Go",
"bytes": "9674675"
},
{
"name": "HTML",
"bytes": "3690"
},
{
"name": "Makefile",
"bytes": "1767"
},
{
"name": "Ruby",
"bytes": "7377"
}
],
"symlink_target": ""
}
|
require 'spec_helper'
describe Blamescope do
describe "#user" do
it "should get user from warden key" do
Thread.current[:user] = nil
Blamescope.configure(warden: true)
warden = double('warden')
allow(warden).to receive_message_chain(:user, email: 'user@example.com')
Thread.current[:env] = {'warden' => warden }
expect(Blamescope.user).to eq('user@example.com')
end
it "should use system user if warden is not available" do
Thread.current[:user] = nil
Blamescope.configure(warden: false)
expect(Blamescope.user).to eq("#{ENV['USER']}@#{Socket.gethostname}")
end
end
describe "#emit" do
it "should publish event" do
allow(Blamescope).to receive(:user).and_return('user@example.com')
expect(Blamescope).to receive_message_chain(:exchange, :publish).with({model:'USER', email: 'user@example.com'}.to_json, {routing_key: "events"})
Blamescope.emit('events', model: 'USER')
end
end
end
|
{
"content_hash": "0c3c31e8425781710cc3aed9de7670d0",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 151,
"avg_line_length": 35.285714285714285,
"alnum_prop": 0.659919028340081,
"repo_name": "Demandbase/blamescope",
"id": "978dcf9f39d94d40f92da44fac6acbb69235d1a7",
"size": "988",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/blamescope_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "11966"
}
],
"symlink_target": ""
}
|
'use strict';
/**
* Controller for Cateringcorpinfo
**/
cateringcorpinfoModule.controller('CateringcorpinfoCtrl', ['Cateringcorpinfo', '$scope', '$routeParams', '$http', '$location', '$cookies', 'MessageHandler', 'restURL', function(Cateringcorpinfo, $scope, $routeParams, $http, $location, $cookies, MessageHandler, restURL) {
// edition mode
$scope.mode = null;
// list of cateringcorpinfos
$scope.cateringcorpinfos = [];
// cateringcorpinfo to edit
$scope.cateringcorpinfo = null;
// referencies entities
$scope.items = {};
/**
* Load all referencies entities
*/
$scope.loadAllReferencies = function() {
};
/**
* Refresh cateringcorpinfos list
*/
$scope.refreshCateringcorpinfoList = function() {
try {
$scope.cateringcorpinfos = [];
Cateringcorpinfo.getAll().then(
function(success) {
$scope.cateringcorpinfos = success.data;
},
MessageHandler.manageError);
} catch(ex) {
MessageHandler.manageException(ex);
}
}
/**
* Refresh cateringcorpinfo
*/
$scope.refreshCateringcorpinfo = function(uid) {
try {
$scope.cateringcorpinfo = null;
Cateringcorpinfo.get(uid).then(
function(success) {
$scope.cateringcorpinfo = success.data;
},
MessageHandler.manageError);
} catch(ex) {
MessageHandler.manageException(ex);
}
}
/**
* Go to the cateringcorpinfos list page
*/
$scope.goToCateringcorpinfoList = function() {
$scope.refreshCateringcorpinfoList();
$location.path('/cateringcorpinfo');
}
/**
* Go to the cateringcorpinfo edit page
*/
$scope.goToCateringcorpinfo = function(uid) {
$scope.refreshCateringcorpinfo(uid);
$location.path('/cateringcorpinfo/'+uid);
}
// Actions
/**
* Save cateringcorpinfo
*/
$scope.save = function() {
try {
MessageHandler.cleanMessage();
var save;
if( $scope.mode === 'create' ) {
save = Cateringcorpinfo.create;
} else {
save = Cateringcorpinfo.update;
}
save($scope.cateringcorpinfo).then(
function(success) {
MessageHandler.addSuccess('save ok');
$scope.cateringcorpinfo = success.data;
},
MessageHandler.manageError);
} catch(ex) {
MessageHandler.manageException(ex);
}
};
/**
* Delete cateringcorpinfo
*/
$scope.delete = function(uid) {
try {
MessageHandler.cleanMessage();
Cateringcorpinfo.delete(uid).then(
function(success) {
$scope.goToCateringcorpinfoList();
},
MessageHandler.manageError);
} catch(ex) {
MessageHandler.manageException(ex);
}
};
// Main
MessageHandler.cleanMessage();
if( $location.path().endsWith('/new') ) {
// Creation page
$scope.cateringcorpinfo = {};
$scope.mode = 'create';
$scope.loadAllReferencies();
$scope.bookorderitem = null;
} else if( $routeParams.uid != null ) {
// Edit page
$scope.loadAllReferencies();
$scope.refreshCateringcorpinfo($routeParams.uid);
} else {
// List page
$scope.refreshCateringcorpinfoList();
}
}]);
|
{
"content_hash": "085b2a3721371ece0cb34857f0629702",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 272,
"avg_line_length": 26.6796875,
"alnum_prop": 0.5792093704245974,
"repo_name": "cytochromewangdong/HippoStart",
"id": "a5f12bbc9a5278aaf0e58a71c0eb5f6114ce2791",
"size": "3415",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/main/webapp/app_back/js/cateringcorpinfo/cateringcorpinfo_controller.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "203953"
},
{
"name": "HTML",
"bytes": "647372"
},
{
"name": "Java",
"bytes": "906680"
},
{
"name": "JavaScript",
"bytes": "3969828"
}
],
"symlink_target": ""
}
|
require 'spree_core'
require 'spree_paysio/engine'
require 'paysio'
|
{
"content_hash": "407ea3c04746418003cf4a20355200c3",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 29,
"avg_line_length": 22.333333333333332,
"alnum_prop": 0.7910447761194029,
"repo_name": "itima/spree_paysio",
"id": "c2546b1103492b29cdc555450b603cc3a5baa73a",
"size": "67",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/spree_paysio.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "70"
},
{
"name": "CoffeeScript",
"bytes": "923"
},
{
"name": "JavaScript",
"bytes": "82"
},
{
"name": "Ruby",
"bytes": "17835"
}
],
"symlink_target": ""
}
|
package org.kuali.rice.core.impl.config.property;
import org.apache.log4j.Logger;
import org.kuali.rice.core.api.util.xml.XmlException;
import org.kuali.rice.core.api.util.xml.XmlJotter;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Properties;
/**
* A configuration parser that can get properties already parsed passed in and
* override them. Also, can do token replace based on values already parsed
* using ${ } to denote tokens.
*
* @author Kuali Rice Team (rice.collab@kuali.org)
*/
class HierarchicalConfigParser {
private static final Logger LOG = Logger.getLogger(HierarchicalConfigParser.class);
private static final String VAR_START_TOKEN = "${";
private static final String VAR_END_TOKEN = "}";
public static final String ALTERNATE_BUILD_LOCATION_KEY = "alt.build.location";
// this Map is for token replacement this represents the set of tokens that
// has been made by a parent config file of the one this is parsing
Map currentProperties;
HierarchicalConfigParser(final Map currentProperties) {
if (currentProperties == null) {
this.currentProperties = new LinkedHashMap();
} else {
this.currentProperties = currentProperties;
}
}
public Map<String, Object> parse(String fileLoc) throws IOException {
Map<String, Object> fileProperties = new LinkedHashMap<String, Object>();
parse(fileLoc, fileProperties, true);
return fileProperties;
}
private void parse(String fileLoc, Map<String, Object> fileProperties, boolean baseFile) throws IOException {
InputStream configStream = getConfigAsStream(fileLoc);
if (configStream == null) {
LOG.warn("###############################");
LOG.warn("#");
LOG.warn("# Configuration file " + fileLoc + " not found!");
LOG.warn("#");
LOG.warn("###############################");
return;
}
LOG.info("Parsing config: " + fileLoc);
if (!baseFile) {
fileProperties.put(fileLoc, new Properties());
}
Properties props = (Properties) fileProperties.get(fileLoc);
Document doc;
try {
doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(configStream);
if (LOG.isDebugEnabled()) {
LOG.debug("Contents of config " + fileLoc + ": \n" + XmlJotter.jotNode(doc, true));
}
} catch (SAXException se) {
IOException ioe = new IOException("Error parsing config resource: " + fileLoc);
ioe.initCause(se);
throw ioe;
} catch (ParserConfigurationException pce) {
IOException ioe = new IOException("Unable to obtain document builder");
ioe.initCause(pce);
throw ioe;
} finally {
configStream.close();
}
Element root = doc.getDocumentElement();
// ignore the actual type of the document element for now
// so that plugin descriptors can be parsed
NodeList list = root.getChildNodes();
StringBuffer content = new StringBuffer();
for (int i = 0; i < list.getLength(); i++) {
Node node = list.item(i);
if (node.getNodeType() != Node.ELEMENT_NODE)
continue;
if (!"param".equals(node.getNodeName())) {
LOG.warn("Encountered non-param config node: " + node.getNodeName());
continue;
}
Element param = (Element) node;
String name = param.getAttribute("name");
Boolean override = Boolean.TRUE;
if (param.getAttribute("override") != null && param.getAttribute("override").trim().length() > 0) {
override = new Boolean(param.getAttribute("override"));
}
if (name == null) {
LOG.error("Unnamed parameter in config resource '" + fileLoc + "': " + XmlJotter.jotNode(param));
continue;
}
NodeList contents = param.getChildNodes();
// accumulate all content (preserving any XML content)
try {
content.setLength(0);
for (int j = 0; j < contents.getLength(); j++) {
content.append(XmlJotter.jotNode(contents.item(j), true));
}
String contentValue;
try {
contentValue = resolvePropertyTokens(content.toString(), fileProperties);
} catch (Exception e) {
LOG.error("Exception caught parsing " + content, e);
throw new RuntimeException(e);
}
if (name.equals("config.location")) {
if (!contentValue.contains(ALTERNATE_BUILD_LOCATION_KEY)) {
parse(contentValue, fileProperties, false);
}
} else {
if (props == null) {
updateProperties(fileProperties, override, name, contentValue, fileProperties);
} else {
updateProperties(props, override, name, contentValue, fileProperties);
}
}
} catch (XmlException te) {
IOException ioe = new IOException("Error obtaining parameter '" + name + "' from config resource: " + fileLoc);
ioe.initCause(te);
throw ioe;
}
}
LOG.info("Parsed config: " + fileLoc);
}
private void updateProperties(Map props, Boolean override, String name, String value, Map<String, Object> fileProperties) {
if (value == null || "null".equals(value)) {
LOG.warn("Not adding property [" + name + "] because it is null - most likely no token could be found for substituion.");
return;
}
if (override) {
setProperty(props, name, value);
} else {
if (!override && !fileProperties.containsKey(name)) {
setProperty(props, name, value);
}
}
}
private void setProperty(Map map, String name, String value) {
if (map.containsKey(name)) {
map.remove(name);
}
map.put(name, value);
}
public static InputStream getConfigAsStream(String fileLoc) throws MalformedURLException, IOException {
if (fileLoc.lastIndexOf("classpath:") > -1) {
String configName = fileLoc.split("classpath:")[1];
/*ClassPathResource cpr = new ClassPathResource(configName, Thread.currentThread().getContextClassLoader());
if (cpr.exists()) {
return cpr.getInputStream();
} else {
return null;
}*/
return Thread.currentThread().getContextClassLoader().getResourceAsStream(configName);
} else if (fileLoc.lastIndexOf("http://") > -1 || fileLoc.lastIndexOf("file:/") > -1) {
return new URL(fileLoc).openStream();
} else {
try {
return new FileInputStream(fileLoc);
} catch (FileNotFoundException e) {
return null; // logged by caller
}
}
}
private String resolvePropertyTokens(String content, Map<String, Object> properties) {
// TODO: consider implementing with iteration instead of recursion, and using the jakarta commons support for
// parameter expansion
if (content.contains(VAR_START_TOKEN)) {
int tokenStart = content.indexOf(VAR_START_TOKEN);
int tokenEnd = content.indexOf(VAR_END_TOKEN, tokenStart + VAR_START_TOKEN.length());
if (tokenEnd == -1) {
throw new RuntimeException("No ending bracket on token in value " + content);
}
String token = content.substring(tokenStart + VAR_START_TOKEN.length(), tokenEnd);
String tokenValue = null;
// get all the properties from all the potentially nested configs in
// the master set
// of propertiesUsed. Do it now so that all the values are available
// for token replacement
// next iteration
//
// The properties map is sorted with the top of the hierarchy as the
// first element in the iteration, however
// we want to include starting with the bottom of the hierarchy, so
// we will iterate over the Map in reverse
// order (this reverse iteration fixes the bug referenced by EN-68.
LinkedList<Map.Entry<String, Object>> propertiesList = new LinkedList<Map.Entry<String, Object>>(properties.entrySet());
Collections.reverse(propertiesList);
for (Map.Entry<String, Object> config : propertiesList) {
if (!(config.getValue() instanceof Properties)) {
if (token.equals(config.getKey())) {
tokenValue = (String) config.getValue();
break;
} else {
continue;
}
}
Properties configProps = (Properties) config.getValue();
tokenValue = (String) configProps.get(token);
if (tokenValue != null) {
break;
}
LOG.debug("Found token " + token + " in included config file " + config.getKey());
}
if (tokenValue == null) {
if (token.contains(ALTERNATE_BUILD_LOCATION_KEY)) {
return token;
}
LOG.debug("Did not find token " + token + " in local properties. Looking in parent.");
tokenValue = (String) this.currentProperties.get(token);
if (tokenValue == null) {
LOG.debug("Did not find token " + token + " in parent properties. Looking in system properties.");
tokenValue = System.getProperty(token);
if (tokenValue == null) {
LOG.warn("Did not find token " + token + " in all available configuration properties!");
} else {
LOG.debug("Found token " + token + " in sytem properties");
}
} else {
LOG.debug("Found token " + token + "=" + tokenValue + " in parent.");
}
} else {
LOG.debug("Found token in local properties");
}
// NOTE: this will result in any variables that are not found being replaced with the string 'null'
// this is the place to change that behavior (e.g. if (tokenvalue == null) do something else)
String tokenizedContent = content.substring(0, tokenStart) + tokenValue + content.substring(tokenEnd + VAR_END_TOKEN.length(), content.length());
// give it back to this method so we can have multiple tokens per
// config entry.
return resolvePropertyTokens(tokenizedContent, properties);
}
return content;
}
}
|
{
"content_hash": "033dbd5d973dcdb549981ed839aab9e4",
"timestamp": "",
"source": "github",
"line_count": 271,
"max_line_length": 157,
"avg_line_length": 43.25830258302583,
"alnum_prop": 0.5727202934402457,
"repo_name": "sbower/kuali-rice-1",
"id": "010edc6ece3548798cc196b0544b0d1e97cd393b",
"size": "12343",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "core/impl/src/main/java/org/kuali/rice/core/impl/config/property/HierarchicalConfigParser.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
using Newtonsoft.Json;
namespace Logos.Git.GitHub
{
/// <summary>
/// Data describing a Git commit comparison returned from GitHub API.
/// </summary>
public sealed class CommitComparison
{
/// <summary>
/// Number of total commits.
/// </summary>
[JsonProperty("total_commits")]
public int TotalCommits { get; set; }
/// <summary>
/// Details about the commits.
/// </summary>
public Commit[] Commits { get; set; }
}
}
|
{
"content_hash": "8b62bed75bb292824db260ec4d9e990f",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 70,
"avg_line_length": 21.285714285714285,
"alnum_prop": 0.6487695749440716,
"repo_name": "LogosBible/LogosGit",
"id": "58f673191e63d956e81dfa789f8f89635b1a983e",
"size": "449",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Logos.Git/GitHub/CommitComparison.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "27266"
}
],
"symlink_target": ""
}
|
import React from 'react';
import PropTypes from 'prop-types';
import { TouchableOpacity, StatusBar } from 'react-native';
import {
KeyboardAwareScrollView,
} from 'react-native-keyboard-aware-scroll-view';
import LinearGradient from 'react-native-linear-gradient';
import { TextButton } from '../Atoms/Text';
import { StepOne, StepTwo } from './SMSCode';
import styles from './styles';
import theme from '../../theme';
const { color } = theme;
const SignIn = ({
form,
smsCodeStep,
navigateToSignUp,
handlerText,
signIn,
auth,
backToPhoneNumber,
}) => (
<KeyboardAwareScrollView
style={{
backgroundColor: color.primary,
}}
>
<LinearGradient colors={['#00796B', '#009688']} style={styles.container}>
<StatusBar barStyle="light-content" />
<TouchableOpacity style={styles.buttonSignUp} onPress={navigateToSignUp}>
<TextButton value="REGISTRARSE" />
</TouchableOpacity>
{smsCodeStep === 1
? <StepOne
form={form}
handlerText={handlerText}
signIn={signIn}
auth={auth}
/>
: <StepTwo
form={form}
handlerText={handlerText}
signIn={signIn}
auth={auth}
backToPhoneNumber={backToPhoneNumber}
/>}
</LinearGradient>
</KeyboardAwareScrollView>
);
SignIn.propTypes = {
form: PropTypes.shape({}).isRequired,
smsCodeStep: PropTypes.number.isRequired,
navigateToSignUp: PropTypes.func.isRequired,
handlerText: PropTypes.func.isRequired,
signIn: PropTypes.func.isRequired,
auth: PropTypes.shape({}).isRequired,
backToPhoneNumber: PropTypes.func.isRequired,
};
export default SignIn;
|
{
"content_hash": "af56a6daaaed8d940157516a1ab48734",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 79,
"avg_line_length": 25.892307692307693,
"alnum_prop": 0.6607248960190136,
"repo_name": "martinvarelaaaa/tintina",
"id": "2f3063f09c20c824445a712e8ab931c01ebcdbcb",
"size": "1683",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/Components/SignIn/SignIn.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "3491"
},
{
"name": "JavaScript",
"bytes": "59910"
}
],
"symlink_target": ""
}
|
micro location open platform storage api wrapper
|
{
"content_hash": "84f7f3d061260350af9e84b69580b30f",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 49,
"avg_line_length": 50,
"alnum_prop": 0.84,
"repo_name": "cloudnapps/mlop-storage-api",
"id": "934384c6a10c333ebb12c778eeccd329a38d0371",
"size": "69",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "4325"
}
],
"symlink_target": ""
}
|
/**
* Shpere implementation
* position is the sphere's center
* lookAt is the direction of the north pole
*/
using JRayXLib.Colors;
using JRayXLib.Math;
using JRayXLib.Math.intersections;
namespace JRayXLib.Shapes
{
public class Sphere : Basic3DObject
{
public double Radius { get; protected set; }
protected Vect3 RotVect;
public Sphere(Vect3 position, double radius, Color color)
: this(position, radius, color, 0)
{
}
public Sphere(Vect3 position, double radius, Color color, double reflectivity)
: this(position, new Vect3 { Y = radius }, 0, color)
{
Reflectivity = reflectivity;
}
public Sphere(Vect3 position, Vect3 lookAt, double rotationRad, Color color, double reflectivity)
: this(position, lookAt, rotationRad, color)
{
Reflectivity = reflectivity;
}
public Sphere(Vect3 position, Vect3 lookAt, double rotationRad, Color color) : base(position, lookAt)
{
Color = color;
Radius = lookAt.Length();
// calculate the rotation of the 0-meridian
RotVect = lookAt;
// check so we don't end up with two linear dependent vectors
if (System.Math.Abs(RotVect.Y) > Constants.EPS
&& System.Math.Abs(RotVect.X) < Constants.EPS
&& System.Math.Abs(RotVect.Z) < Constants.EPS)
{
RotVect.X += 1;
}
else
{
RotVect.Y += 1;
}
RotVect = RotVect.CrossProduct(lookAt).Normalize();
LookAt = LookAt.Normalize();
Rotate(lookAt, rotationRad);
}
public override double GetHitPointDistance(Ray r)
{
return RaySphere.GetHitPointRaySphereDistance(r.Origin, r.Direction, Position, Radius);
}
public override Vect3 GetNormalAt(Vect3 hitPoint)
{
Vect3 tmp = hitPoint - Position;
return tmp.Normalize();
}
public override bool Contains(Vect3 hitPoint)
{
return System.Math.Abs(hitPoint.Distance(Position) - Radius) < Constants.EPS;
}
public override void Rotate(Matrix4 rotationMatrix)
{
LookAt = VectMatrix.Multiply(LookAt, rotationMatrix);
RotVect = VectMatrix.Multiply(RotVect, rotationMatrix);
LookAt = LookAt.Normalize();
RotVect = RotVect.Normalize();
}
public new Sphere GetBoundingSphere()
{
return this;
}
public override double GetBoundingSphereRadius()
{
return Radius;
}
}
}
|
{
"content_hash": "d23ab58b52875f7590b1ba20542a8eae",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 109,
"avg_line_length": 29.361702127659573,
"alnum_prop": 0.5702898550724638,
"repo_name": "FrankyBoy/JRayX",
"id": "65aeb0f6948fc8442bb33ef6097deb91ce15bbdc",
"size": "2760",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "JRayXLib/Shapes/Sphere.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "138346"
},
{
"name": "Smalltalk",
"bytes": "2285"
}
],
"symlink_target": ""
}
|
// Copyright 2018 Google LLC
//
// 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
//
// https://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.
#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_INTERNAL_LOGGING_CLIENT_H
#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_INTERNAL_LOGGING_CLIENT_H
#include "google/cloud/storage/internal/raw_client.h"
#include "google/cloud/storage/version.h"
#include <string>
namespace google {
namespace cloud {
namespace storage {
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
namespace internal {
/**
* A decorator for `RawClient` that logs each operation.
*/
class LoggingClient : public RawClient {
public:
explicit LoggingClient(std::shared_ptr<RawClient> client);
~LoggingClient() override = default;
ClientOptions const& client_options() const override;
Options options() const override;
StatusOr<ListBucketsResponse> ListBuckets(
ListBucketsRequest const& request) override;
StatusOr<BucketMetadata> CreateBucket(
CreateBucketRequest const& request) override;
StatusOr<BucketMetadata> GetBucketMetadata(
GetBucketMetadataRequest const& request) override;
StatusOr<EmptyResponse> DeleteBucket(DeleteBucketRequest const&) override;
StatusOr<BucketMetadata> UpdateBucket(
UpdateBucketRequest const& request) override;
StatusOr<BucketMetadata> PatchBucket(
PatchBucketRequest const& request) override;
StatusOr<NativeIamPolicy> GetNativeBucketIamPolicy(
GetBucketIamPolicyRequest const& request) override;
StatusOr<NativeIamPolicy> SetNativeBucketIamPolicy(
SetNativeBucketIamPolicyRequest const& request) override;
StatusOr<TestBucketIamPermissionsResponse> TestBucketIamPermissions(
TestBucketIamPermissionsRequest const& request) override;
StatusOr<BucketMetadata> LockBucketRetentionPolicy(
LockBucketRetentionPolicyRequest const& request) override;
StatusOr<ObjectMetadata> InsertObjectMedia(
InsertObjectMediaRequest const& request) override;
StatusOr<ObjectMetadata> CopyObject(
CopyObjectRequest const& request) override;
StatusOr<ObjectMetadata> GetObjectMetadata(
GetObjectMetadataRequest const& request) override;
StatusOr<std::unique_ptr<ObjectReadSource>> ReadObject(
ReadObjectRangeRequest const&) override;
StatusOr<ListObjectsResponse> ListObjects(ListObjectsRequest const&) override;
StatusOr<EmptyResponse> DeleteObject(DeleteObjectRequest const&) override;
StatusOr<ObjectMetadata> UpdateObject(
UpdateObjectRequest const& request) override;
StatusOr<ObjectMetadata> PatchObject(
PatchObjectRequest const& request) override;
StatusOr<ObjectMetadata> ComposeObject(
ComposeObjectRequest const& request) override;
StatusOr<RewriteObjectResponse> RewriteObject(
RewriteObjectRequest const&) override;
StatusOr<CreateResumableUploadResponse> CreateResumableUpload(
ResumableUploadRequest const& request) override;
StatusOr<QueryResumableUploadResponse> QueryResumableUpload(
QueryResumableUploadRequest const& request) override;
StatusOr<EmptyResponse> DeleteResumableUpload(
DeleteResumableUploadRequest const& request) override;
StatusOr<QueryResumableUploadResponse> UploadChunk(
UploadChunkRequest const& request) override;
StatusOr<ListBucketAclResponse> ListBucketAcl(
ListBucketAclRequest const& request) override;
StatusOr<BucketAccessControl> CreateBucketAcl(
CreateBucketAclRequest const&) override;
StatusOr<EmptyResponse> DeleteBucketAcl(
DeleteBucketAclRequest const&) override;
StatusOr<BucketAccessControl> GetBucketAcl(
GetBucketAclRequest const&) override;
StatusOr<BucketAccessControl> UpdateBucketAcl(
UpdateBucketAclRequest const&) override;
StatusOr<BucketAccessControl> PatchBucketAcl(
PatchBucketAclRequest const&) override;
StatusOr<ListObjectAclResponse> ListObjectAcl(
ListObjectAclRequest const& request) override;
StatusOr<ObjectAccessControl> CreateObjectAcl(
CreateObjectAclRequest const&) override;
StatusOr<EmptyResponse> DeleteObjectAcl(
DeleteObjectAclRequest const&) override;
StatusOr<ObjectAccessControl> GetObjectAcl(
GetObjectAclRequest const&) override;
StatusOr<ObjectAccessControl> UpdateObjectAcl(
UpdateObjectAclRequest const&) override;
StatusOr<ObjectAccessControl> PatchObjectAcl(
PatchObjectAclRequest const&) override;
StatusOr<ListDefaultObjectAclResponse> ListDefaultObjectAcl(
ListDefaultObjectAclRequest const& request) override;
StatusOr<ObjectAccessControl> CreateDefaultObjectAcl(
CreateDefaultObjectAclRequest const&) override;
StatusOr<EmptyResponse> DeleteDefaultObjectAcl(
DeleteDefaultObjectAclRequest const&) override;
StatusOr<ObjectAccessControl> GetDefaultObjectAcl(
GetDefaultObjectAclRequest const&) override;
StatusOr<ObjectAccessControl> UpdateDefaultObjectAcl(
UpdateDefaultObjectAclRequest const&) override;
StatusOr<ObjectAccessControl> PatchDefaultObjectAcl(
PatchDefaultObjectAclRequest const&) override;
StatusOr<ServiceAccount> GetServiceAccount(
GetProjectServiceAccountRequest const&) override;
StatusOr<ListHmacKeysResponse> ListHmacKeys(
ListHmacKeysRequest const&) override;
StatusOr<CreateHmacKeyResponse> CreateHmacKey(
CreateHmacKeyRequest const&) override;
StatusOr<EmptyResponse> DeleteHmacKey(DeleteHmacKeyRequest const&) override;
StatusOr<HmacKeyMetadata> GetHmacKey(GetHmacKeyRequest const&) override;
StatusOr<HmacKeyMetadata> UpdateHmacKey(UpdateHmacKeyRequest const&) override;
StatusOr<SignBlobResponse> SignBlob(SignBlobRequest const&) override;
StatusOr<ListNotificationsResponse> ListNotifications(
ListNotificationsRequest const&) override;
StatusOr<NotificationMetadata> CreateNotification(
CreateNotificationRequest const&) override;
StatusOr<NotificationMetadata> GetNotification(
GetNotificationRequest const&) override;
StatusOr<EmptyResponse> DeleteNotification(
DeleteNotificationRequest const&) override;
std::shared_ptr<RawClient> client() const { return client_; }
private:
std::shared_ptr<RawClient> client_;
};
} // namespace internal
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
} // namespace storage
} // namespace cloud
} // namespace google
#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_INTERNAL_LOGGING_CLIENT_H
|
{
"content_hash": "f76a048f0c9a942482d56986c7073bd4",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 80,
"avg_line_length": 43.47770700636943,
"alnum_prop": 0.7963668326985057,
"repo_name": "googleapis/google-cloud-cpp",
"id": "20d9a4a104c530e3bea5ad36e4ba50ca8e34d4b3",
"size": "6826",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "google/cloud/storage/internal/logging_client.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Awk",
"bytes": "2387"
},
{
"name": "Batchfile",
"bytes": "3052"
},
{
"name": "C",
"bytes": "21004"
},
{
"name": "C++",
"bytes": "41174129"
},
{
"name": "CMake",
"bytes": "1350320"
},
{
"name": "Dockerfile",
"bytes": "111570"
},
{
"name": "Makefile",
"bytes": "138270"
},
{
"name": "PowerShell",
"bytes": "41266"
},
{
"name": "Python",
"bytes": "21338"
},
{
"name": "Shell",
"bytes": "249894"
},
{
"name": "Starlark",
"bytes": "722015"
}
],
"symlink_target": ""
}
|
<link rel="shortcut icon" href="favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel='stylesheet' href='<?php echo Yii::app()->theme->baseUrl?>/frontend/css/bootstrap.css' />
<link rel='stylesheet' href='<?php echo Yii::app()->theme->baseUrl?>/frontend/css/flexslider.css' />
<link rel='stylesheet' href='<?php echo Yii::app()->theme->baseUrl?>/frontend/css/device.css' />
<link rel='stylesheet' href='<?php echo Yii::app()->theme->baseUrl?>/frontend/css/style.css' />
|
{
"content_hash": "c06469842eb3a997dfcd6054c896b799",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 100,
"avg_line_length": 84.83333333333333,
"alnum_prop": 0.693516699410609,
"repo_name": "huytap/example",
"id": "ba2c0df21b1a71568ca60835689e2df6e8232f83",
"size": "509",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "protected/components/views/css.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP",
"bytes": "46548"
},
{
"name": "CSS",
"bytes": "606820"
},
{
"name": "JavaScript",
"bytes": "4579979"
},
{
"name": "PHP",
"bytes": "18137886"
},
{
"name": "Ruby",
"bytes": "1384"
},
{
"name": "Shell",
"bytes": "1846"
}
],
"symlink_target": ""
}
|
package org.apache.asterix.om.typecomputer.impl;
import org.apache.asterix.om.exceptions.TypeMismatchException;
import org.apache.asterix.om.typecomputer.base.AbstractResultTypeComputer;
import org.apache.asterix.om.types.ATypeTag;
import org.apache.asterix.om.types.BuiltinType;
import org.apache.asterix.om.types.IAType;
import org.apache.hyracks.algebricks.common.exceptions.AlgebricksException;
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalExpression;
public class NumericInt8OutputFunctionTypeComputer extends AbstractResultTypeComputer {
public static final NumericInt8OutputFunctionTypeComputer INSTANCE = new NumericInt8OutputFunctionTypeComputer();
private NumericInt8OutputFunctionTypeComputer() {
}
@Override
protected void checkArgType(String funcName, int argIndex, IAType type) throws AlgebricksException {
ATypeTag tag = type.getTypeTag();
switch (tag) {
case INT8:
case INT16:
case INT32:
case INT64:
case FLOAT:
case DOUBLE:
break;
default:
throw new TypeMismatchException(funcName, argIndex, tag, ATypeTag.INT8, ATypeTag.INT16, ATypeTag.INT32,
ATypeTag.INT64, ATypeTag.FLOAT, ATypeTag.DOUBLE);
}
}
@Override
protected IAType getResultType(ILogicalExpression expr, IAType... strippedInputTypes) throws AlgebricksException {
return BuiltinType.AINT8;
}
}
|
{
"content_hash": "e05ee94e36b67c28940b4d71c18490f6",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 119,
"avg_line_length": 36.707317073170735,
"alnum_prop": 0.7182724252491695,
"repo_name": "waans11/incubator-asterixdb",
"id": "25ead33e2185203d4f10be5a9b304a58005b3494",
"size": "2312",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/NumericInt8OutputFunctionTypeComputer.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "16145"
},
{
"name": "C",
"bytes": "421"
},
{
"name": "CSS",
"bytes": "17665"
},
{
"name": "Crystal",
"bytes": "453"
},
{
"name": "FreeMarker",
"bytes": "68104"
},
{
"name": "Gnuplot",
"bytes": "89"
},
{
"name": "HTML",
"bytes": "131935"
},
{
"name": "Java",
"bytes": "20780094"
},
{
"name": "JavaScript",
"bytes": "636055"
},
{
"name": "Python",
"bytes": "281315"
},
{
"name": "Ruby",
"bytes": "3078"
},
{
"name": "Scheme",
"bytes": "1105"
},
{
"name": "Shell",
"bytes": "232529"
},
{
"name": "Smarty",
"bytes": "31412"
},
{
"name": "TeX",
"bytes": "1059"
}
],
"symlink_target": ""
}
|
package com.gdgssu.rowirsender;
public interface SocketReceiveListener {
/**
* SocketReceiverThread에서 RowIRService로 JsonText 데이터를 전달하는 기능을 수행하는 인터페이스입니다
* @param message
*/
void onReceive(String message);
}
|
{
"content_hash": "b72ed4473611a67dca5c8be168f591c4",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 80,
"avg_line_length": 21.181818181818183,
"alnum_prop": 0.7167381974248928,
"repo_name": "GDG-SSU/remote_on_wear",
"id": "7f26494a43f1f1c481c57f9f0ee82edd6a994f11",
"size": "285",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "RowIRSender/app/src/main/java/com/gdgssu/rowirsender/SocketReceiveListener.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "87599"
}
],
"symlink_target": ""
}
|
require 'httparty'
module RegistrarClient
# Error indicating that a registrar provider is required but none was
# available.
class ProviderRequiredError < RuntimeError
end
# Base error for any errors encountered while communicating with a registrar.
class RegistrarError < RuntimeError
end
end
require 'registrar_client/client'
|
{
"content_hash": "6bcc8721c4a99462c1794413e0c602a7",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 79,
"avg_line_length": 24.714285714285715,
"alnum_prop": 0.7861271676300579,
"repo_name": "aeden/registrar-client",
"id": "09f04095175083ec24eab25ebc996bb601651b2a",
"size": "346",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/registrar_client.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "91895"
}
],
"symlink_target": ""
}
|
/* $NetBSD: netif.c,v 1.12 1999/03/31 01:50:25 cgd Exp $ */
/*
* Copyright (c) 1993 Adam Glass
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Adam Glass.
* 4. The name of the Author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY Adam Glass ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <sys/param.h>
#include <sys/types.h>
#include <sys/cdefs.h>
#include <sys/mount.h>
#ifdef _STANDALONE
#include <lib/libkern/libkern.h>
#else
#include <string.h>
#endif
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include "stand.h"
#include "net.h"
#include "netif.h"
struct iodesc sockets[SOPEN_MAX];
#ifdef NETIF_DEBUG
int netif_debug = 0;
#endif
/*
* netif_init:
*
* initialize the generic network interface layer
*/
void
netif_init()
{
struct netif_driver *drv;
int d, i;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("netif_init: called\n");
#endif
for (d = 0; d < n_netif_drivers; d++) {
drv = netif_drivers[d];
for (i = 0; i < drv->netif_nifs; i++)
drv->netif_ifs[i].dif_used = 0;
}
}
int netif_match __P((struct netif *, void *));
int
netif_match(nif, machdep_hint)
struct netif *nif;
void *machdep_hint;
{
struct netif_driver *drv = nif->nif_driver;
#if 0
if (netif_debug)
printf("%s%d: netif_match (%d)\n", drv->netif_bname,
nif->nif_unit, nif->nif_sel);
#endif
return drv->netif_match(nif, machdep_hint);
}
struct netif *
netif_select(machdep_hint)
void *machdep_hint;
{
int d, u, unit_done, s;
struct netif_driver *drv;
struct netif cur_if;
static struct netif best_if;
int best_val;
int val;
best_val = 0;
best_if.nif_driver = NULL;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("netif_select: %d interfaces\n", n_netif_drivers);
#endif
for (d = 0; d < n_netif_drivers; d++) {
cur_if.nif_driver = netif_drivers[d];
drv = cur_if.nif_driver;
for (u = 0; u < drv->netif_nifs; u++) {
cur_if.nif_unit = u;
unit_done = 0;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("\t%s%d:", drv->netif_bname,
cur_if.nif_unit);
#endif
for (s = 0; s < drv->netif_ifs[u].dif_nsel; s++) {
cur_if.nif_sel = s;
if (drv->netif_ifs[u].dif_used & (1 << s)) {
#ifdef NETIF_DEBUG
if (netif_debug)
printf(" [%d used]", s);
#endif
continue;
}
val = netif_match(&cur_if, machdep_hint);
#ifdef NETIF_DEBUG
if (netif_debug)
printf(" [%d -> %d]", s, val);
#endif
if (val > best_val) {
best_val = val;
best_if = cur_if;
}
}
#ifdef NETIF_DEBUG
if (netif_debug)
printf("\n");
#endif
}
}
if (best_if.nif_driver == NULL)
return NULL;
best_if.nif_driver->
netif_ifs[best_if.nif_unit].dif_used |= (1 << best_if.nif_sel);
#ifdef NETIF_DEBUG
if (netif_debug)
printf("netif_select: %s%d(%d) wins\n",
best_if.nif_driver->netif_bname,
best_if.nif_unit, best_if.nif_sel);
#endif
return &best_if;
}
int
netif_probe(nif, machdep_hint)
struct netif *nif;
void *machdep_hint;
{
struct netif_driver *drv = nif->nif_driver;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_probe\n", drv->netif_bname, nif->nif_unit);
#endif
return drv->netif_probe(nif, machdep_hint);
}
void
netif_attach(nif, desc, machdep_hint)
struct netif *nif;
struct iodesc *desc;
void *machdep_hint;
{
struct netif_driver *drv = nif->nif_driver;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_attach\n", drv->netif_bname, nif->nif_unit);
#endif
desc->io_netif = nif;
#ifdef PARANOID
if (drv->netif_init == NULL)
panic("%s%d: no netif_init support\n", drv->netif_bname,
nif->nif_unit);
#endif
drv->netif_init(desc, machdep_hint);
bzero(drv->netif_ifs[nif->nif_unit].dif_stats,
sizeof(struct netif_stats));
}
void
netif_detach(nif)
struct netif *nif;
{
struct netif_driver *drv = nif->nif_driver;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_detach\n", drv->netif_bname, nif->nif_unit);
#endif
#ifdef PARANOID
if (drv->netif_end == NULL)
panic("%s%d: no netif_end support\n", drv->netif_bname,
nif->nif_unit);
#endif
drv->netif_end(nif);
}
ssize_t
netif_get(desc, pkt, len, timo)
struct iodesc *desc;
void *pkt;
size_t len;
time_t timo;
{
#ifdef NETIF_DEBUG
struct netif *nif = desc->io_netif;
#endif
struct netif_driver *drv = desc->io_netif->nif_driver;
ssize_t rv;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_get\n", drv->netif_bname, nif->nif_unit);
#endif
#ifdef PARANOID
if (drv->netif_get == NULL)
panic("%s%d: no netif_get support\n", drv->netif_bname,
nif->nif_unit);
#endif
rv = drv->netif_get(desc, pkt, len, timo);
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_get returning %d\n", drv->netif_bname,
nif->nif_unit, (int)rv);
#endif
return rv;
}
ssize_t
netif_put(desc, pkt, len)
struct iodesc *desc;
void *pkt;
size_t len;
{
#ifdef NETIF_DEBUG
struct netif *nif = desc->io_netif;
#endif
struct netif_driver *drv = desc->io_netif->nif_driver;
ssize_t rv;
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_put\n", drv->netif_bname, nif->nif_unit);
#endif
#ifdef PARANOID
if (drv->netif_put == NULL)
panic("%s%d: no netif_put support\n", drv->netif_bname,
nif->nif_unit);
#endif
rv = drv->netif_put(desc, pkt, len);
#ifdef NETIF_DEBUG
if (netif_debug)
printf("%s%d: netif_put returning %d\n", drv->netif_bname,
nif->nif_unit, (int)rv);
#endif
return rv;
}
struct iodesc *
socktodesc(sock)
int sock;
{
#if !defined(LIBSA_NO_FD_CHECKING)
if (sock >= SOPEN_MAX) {
errno = EBADF;
return (NULL);
}
#endif
return (&sockets[sock]);
}
int
netif_open(machdep_hint)
void *machdep_hint;
{
int fd;
register struct iodesc *s;
struct netif *nif;
/* find a free socket */
for (fd = 0, s = sockets; fd < SOPEN_MAX; fd++, s++)
if (s->io_netif == (struct netif *)0)
goto fnd;
errno = EMFILE;
return (-1);
fnd:
bzero(s, sizeof(*s));
netif_init();
nif = netif_select(machdep_hint);
if (!nif)
panic("netboot: no interfaces left untried");
if (netif_probe(nif, machdep_hint)) {
printf("netboot: couldn't probe %s%d\n",
nif->nif_driver->netif_bname, nif->nif_unit);
errno = EINVAL;
return(-1);
}
netif_attach(nif, s, machdep_hint);
return(fd);
}
int
netif_close(sock)
int sock;
{
#if !defined(LIBSA_NO_FD_CHECKING)
if (sock >= SOPEN_MAX) {
errno = EBADF;
return(-1);
}
#endif
netif_detach(sockets[sock].io_netif);
sockets[sock].io_netif = (struct netif *)0;
return(0);
}
|
{
"content_hash": "d7f1b5051f6a012c819f9bc5b69b58f5",
"timestamp": "",
"source": "github",
"line_count": 347,
"max_line_length": 77,
"avg_line_length": 22.639769452449567,
"alnum_prop": 0.6635692464358453,
"repo_name": "MarginC/kame",
"id": "facd34484b1c9b5ebd538946b184c37db9339cea",
"size": "7856",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "netbsd/sys/lib/libsa/netif.c",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Arc",
"bytes": "7491"
},
{
"name": "Assembly",
"bytes": "14375563"
},
{
"name": "Awk",
"bytes": "313712"
},
{
"name": "Batchfile",
"bytes": "6819"
},
{
"name": "C",
"bytes": "356715789"
},
{
"name": "C++",
"bytes": "4231647"
},
{
"name": "DIGITAL Command Language",
"bytes": "11155"
},
{
"name": "Emacs Lisp",
"bytes": "790"
},
{
"name": "Forth",
"bytes": "253695"
},
{
"name": "GAP",
"bytes": "9964"
},
{
"name": "Groff",
"bytes": "2220485"
},
{
"name": "Lex",
"bytes": "168376"
},
{
"name": "Logos",
"bytes": "570213"
},
{
"name": "Makefile",
"bytes": "1778847"
},
{
"name": "Mathematica",
"bytes": "16549"
},
{
"name": "Objective-C",
"bytes": "529629"
},
{
"name": "PHP",
"bytes": "11283"
},
{
"name": "Perl",
"bytes": "151251"
},
{
"name": "Perl6",
"bytes": "2572"
},
{
"name": "Ruby",
"bytes": "7283"
},
{
"name": "Scheme",
"bytes": "76872"
},
{
"name": "Shell",
"bytes": "583253"
},
{
"name": "Stata",
"bytes": "408"
},
{
"name": "Yacc",
"bytes": "606054"
}
],
"symlink_target": ""
}
|
package org.camunda.bpm.example.acm.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class CreditApplication {
@GeneratedValue
@Id
private long id;
private String customerId;
private String customerName;
private String ratingCreditreform;
private String ratingSchufa;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getRatingCreditreform() {
return ratingCreditreform;
}
public void setRatingCreditreform(String ratingCreditreform) {
this.ratingCreditreform = ratingCreditreform;
}
public String getRatingSchufa() {
return ratingSchufa;
}
public void setRatingSchufa(String ratingSchufa) {
this.ratingSchufa = ratingSchufa;
}
}
|
{
"content_hash": "cd09dd0e6fdfdcfd806cae2dab690262",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 64,
"avg_line_length": 19.016666666666666,
"alnum_prop": 0.7283085013146363,
"repo_name": "tobiasschaefer/camunda-consulting",
"id": "337dab16eefaddfeee7b5d9d7ec408a1798f1319",
"size": "1141",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "one-time-examples/acm-showcase/src/main/java/org/camunda/bpm/example/acm/domain/CreditApplication.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
<div class="form-group">
<label class="text-muted font-weight-light"><?php echo $lang->get('ID'); ?></label>
<div class="form-text font-weight-bolder"><?php echo $cateRow['cate_id']; ?></div>
</div>
<div class="form-group">
<label class="text-muted font-weight-light"><?php echo $lang->get('Status'); ?></label>
<div class="form-text font-weight-bolder">
<?php $str_status = $cateRow['cate_status'];
include($tpl_include . 'status_process' . GK_EXT_TPL); ?>
</div>
</div>
<div class="form-group">
<label class="text-muted font-weight-light"><?php echo $lang->get('Parent category'); ?></label>
<div class="form-text font-weight-bolder"><?php if (isset($cateParent['cate_name'])) {
echo $cateParent['cate_name'];
} else {
echo $lang->get('As a primary category');
} ?></div>
</div>
<div class="form-group">
<label class="text-muted font-weight-light"><?php echo $lang->get('Template'); ?></label>
<div class="form-text font-weight-bolder">
<?php if ($cateRow['cate_tpl'] == '-1') {
echo $lang->get('Inherit');
} else {
echo $cateRow['cate_tpl'];
} ?>
</div>
</div>
<div class="form-group">
<label class="text-muted font-weight-light"><?php echo $lang->get('Cover'); ?></label>
<div class="mb-2">
<?php if (isset($attachRow['attach_thumb']) && !empty($attachRow['attach_thumb'])) { ?>
<a data-toggle="modal" href="#modal_xl" data-href="<?php echo $hrefRow['attach-show'], $attachRow['attach_id']; ?>">
<img src="<?php echo $attachRow['attach_thumb']; ?>" class="img-fluid">
</a>
<?php } ?>
</div>
<small class="form-text"><?php if (isset($attachRow['attach_thumb']) && !empty($attachRow['attach_thumb'])) { echo $attachRow['attach_thumb']; } ?></small>
</div>
|
{
"content_hash": "d709857c31e5da1ea9f5e8d386106e9b",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 159,
"avg_line_length": 40.955555555555556,
"alnum_prop": 0.5789473684210527,
"repo_name": "baigoStudio/baigoCMS",
"id": "bed15dad87db290aa6d9bf4af24b8e831454b5ff",
"size": "1843",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/tpl/console/default/cate/include/cate_info.tpl.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "38669"
},
{
"name": "Hack",
"bytes": "4167"
},
{
"name": "JavaScript",
"bytes": "4741282"
},
{
"name": "PHP",
"bytes": "4304303"
}
],
"symlink_target": ""
}
|
/* ----------------------------------------------------------------- */
/* The Japanese TTS System "Open JTalk" */
/* developed by HTS Working Group */
/* http://open-jtalk.sourceforge.net/ */
/* ----------------------------------------------------------------- */
/* */
/* Copyright (c) 2008-2013 Nagoya Institute of Technology */
/* Department of Computer Science */
/* */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or */
/* without modification, are permitted provided that the following */
/* conditions are met: */
/* */
/* - Redistributions of source code must retain the above copyright */
/* notice, this list of conditions and the following disclaimer. */
/* - Redistributions in binary form must reproduce the above */
/* copyright notice, this list of conditions and the following */
/* disclaimer in the documentation and/or other materials provided */
/* with the distribution. */
/* - Neither the name of the HTS working group nor the names of its */
/* contributors may be used to endorse or promote products derived */
/* from this software without specific prior written permission. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */
/* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */
/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */
/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
/* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS */
/* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
/* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */
/* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */
/* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, */
/* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY */
/* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
/* POSSIBILITY OF SUCH DAMAGE. */
/* ----------------------------------------------------------------- */
#ifndef NJD_SET_ACCENT_TYPE_C
#define NJD_SET_ACCENT_TYPE_C
#ifdef __cplusplus
#define NJD_SET_ACCENT_TYPE_C_START extern "C" {
#define NJD_SET_ACCENT_TYPE_C_END }
#else
#define NJD_SET_ACCENT_TYPE_C_START
#define NJD_SET_ACCENT_TYPE_C_END
#endif /* __CPLUSPLUS */
NJD_SET_ACCENT_TYPE_C_START;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "njd.h"
#include "njd_set_accent_type.h"
#ifdef ASCII_HEADER
#if defined(CHARSET_EUC_JP)
#include "njd_set_accent_type_rule_ascii_for_euc_jp.h"
#elif defined(CHARSET_SHIFT_JIS)
#include "njd_set_accent_type_rule_ascii_for_shift_jis.h"
#elif defined(CHARSET_UTF_8)
#include "njd_set_accent_type_rule_ascii_for_utf_8.h"
#else
#error CHARSET is not specified
#endif
#else
#if defined(CHARSET_EUC_JP)
#include "njd_set_accent_type_rule_euc_jp.h"
#elif defined(CHARSET_SHIFT_JIS)
#include "njd_set_accent_type_rule_shift_jis.h"
#elif defined(CHARSET_UTF_8)
#include "njd_set_accent_type_rule_utf_8.h"
#else
#error CHARSET is not specified
#endif
#endif
#define MAXBUFLEN 1024
static char get_token_from_string(const char *str, int *index, char *buff)
{
char c;
int i = 0;
c = str[(*index)];
if (c != '\0') {
while (c != '%' && c != '@' && c != '/' && c != '\0') {
buff[i++] = c;
c = str[++(*index)];
}
if (c == '%' || c == '@' || c == '/')
(*index)++;
}
buff[i] = '\0';
return c;
}
static void get_rule(const char *input_rule, const char *prev_pos, char *rule, int *add_type)
{
int index = 0;
char buff[MAXBUFLEN];
char c = ' ';
if (input_rule) {
while (c != '\0') {
c = get_token_from_string(input_rule, &index, buff);
if ((c == '%' && strstr(prev_pos, buff) != NULL) || c == '@' || c == '/' || c == '\0') {
/* find */
if (c == '%')
c = get_token_from_string(input_rule, &index, rule);
else
strcpy(rule, buff);
if (c == '@') {
c = get_token_from_string(input_rule, &index, buff);
(*add_type) = atoi(buff);
} else {
(*add_type) = 0;
}
return;
} else {
/* skip */
while (c == '%' || c == '@')
c = get_token_from_string(input_rule, &index, buff);
}
}
}
/* not found */
strcpy(rule, "*");
(*add_type) = 0;
}
void njd_set_accent_type(NJD * njd)
{
NJDNode *node;
NJDNode *top_node = NULL;
char rule[MAXBUFLEN];
int add_type = 0;
int mora_size = 0;
if (njd == NULL || njd->head == NULL)
return;
for (node = njd->head; node != NULL; node = node->next) {
if (NJDNode_get_string(node) == NULL)
continue;
if ((node == njd->head) || (NJDNode_get_chain_flag(node) != 1)) {
/* store the top node */
top_node = node;
mora_size = 0;
} else if (node->prev != NULL && NJDNode_get_chain_flag(node) == 1) {
/* get accent change type */
get_rule(NJDNode_get_chain_rule(node), NJDNode_get_pos(node->prev), rule, &add_type);
/* change accent type */
if (strcmp(rule, "*") == 0) { /* no chnage */
} else if (strcmp(rule, "F1") == 0) { /* for ancillary word */
} else if (strcmp(rule, "F2") == 0) {
if (NJDNode_get_acc(top_node) == 0)
NJDNode_set_acc(top_node, mora_size + add_type);
} else if (strcmp(rule, "F3") == 0) {
if (NJDNode_get_acc(top_node) != 0)
NJDNode_set_acc(top_node, mora_size + add_type);
} else if (strcmp(rule, "F4") == 0) {
NJDNode_set_acc(top_node, mora_size + add_type);
} else if (strcmp(rule, "F5") == 0) {
NJDNode_set_acc(top_node, 0);
} else if (strcmp(rule, "C1") == 0) { /* for noun */
NJDNode_set_acc(top_node, mora_size + NJDNode_get_acc(node));
} else if (strcmp(rule, "C2") == 0) {
NJDNode_set_acc(top_node, mora_size + 1);
} else if (strcmp(rule, "C3") == 0) {
NJDNode_set_acc(top_node, mora_size);
} else if (strcmp(rule, "C4") == 0) {
NJDNode_set_acc(top_node, 0);
} else if (strcmp(rule, "C5") == 0) {
} else if (strcmp(rule, "P1") == 0) { /* for postfix */
if (NJDNode_get_acc(node) == 0)
NJDNode_set_acc(top_node, 0);
else
NJDNode_set_acc(top_node, mora_size + NJDNode_get_acc(node));
} else if (strcmp(rule, "P2") == 0) {
if (NJDNode_get_acc(node) == 0)
NJDNode_set_acc(top_node, mora_size + 1);
else
NJDNode_set_acc(top_node, mora_size + NJDNode_get_acc(node));
} else if (strcmp(rule, "P6") == 0) {
NJDNode_set_acc(top_node, 0);
} else if (strcmp(rule, "P14") == 0) {
if (NJDNode_get_acc(node) != 0)
NJDNode_set_acc(top_node, mora_size + NJDNode_get_acc(node));
}
}
/* change accent type for digit */
if (node->prev != NULL && NJDNode_get_chain_flag(node) == 1 &&
strcmp(NJDNode_get_pos_group1(node->prev), NJD_SET_ACCENT_TYPE_KAZU) == 0 &&
strcmp(NJDNode_get_pos_group1(node), NJD_SET_ACCENT_TYPE_KAZU) == 0) {
if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_JYUU) == 0) { /* 10^1 */
if (NJDNode_get_string(node->prev) != NULL &&
(strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_SAN) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_YON) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_KYUU) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_NAN) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_SUU) == 0)) {
NJDNode_set_acc(node->prev, 1);
} else {
NJDNode_set_acc(node->prev, 1);
}
if (NJDNode_get_string(node->prev) != NULL &&
(strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_GO) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_ROKU) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_HACHI) == 0)) {
if (node->next != NULL && NJDNode_get_string(node->next) != NULL
&& (strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_ICHI) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_NI) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_SAN) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_YON) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_GO) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_ROKU) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_NANA) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_HACHI) == 0
|| strcmp(NJDNode_get_string(node->next), NJD_SET_ACCENT_TYPE_KYUU) == 0))
NJDNode_set_acc(node->prev, 0);
}
} else if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_HYAKU) == 0) { /* 10^2 */
if (NJDNode_get_string(node->prev) != NULL
&& strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_NANA) == 0) {
NJDNode_set_acc(node->prev, 2);
} else if (NJDNode_get_string(node->prev) != NULL &&
(strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_SAN) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_YON) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_KYUU) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_NAN) == 0)) {
NJDNode_set_acc(node->prev, 1);
} else {
NJDNode_set_acc(node->prev,
NJDNode_get_mora_size(node->prev) + NJDNode_get_mora_size(node));
}
} else if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_SEN) == 0) { /* 10^3 */
NJDNode_set_acc(node->prev, NJDNode_get_mora_size(node->prev) + 1);
} else if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_MAN) == 0) { /* 10^4 */
NJDNode_set_acc(node->prev, NJDNode_get_mora_size(node->prev) + 1);
} else if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_OKU) == 0) { /* 10^8 */
if (NJDNode_get_string(node->prev) != NULL &&
(strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_ICHI) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_ROKU) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_NANA) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_HACHI) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_IKU) == 0)) {
NJDNode_set_acc(node->prev, 2);
} else {
NJDNode_set_acc(node->prev, 1);
}
} else if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_CHOU) == 0) { /* 10^12 */
if (NJDNode_get_string(node->prev) != NULL &&
(strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_ROKU) == 0 ||
strcmp(NJDNode_get_string(node->prev), NJD_SET_ACCENT_TYPE_NANA) == 0)) {
NJDNode_set_acc(node->prev, 2);
} else {
NJDNode_set_acc(node->prev, 1);
}
}
}
if (strcmp(NJDNode_get_string(node), NJD_SET_ACCENT_TYPE_JYUU) == 0 &&
NJDNode_get_chain_flag(node) != 1 && node->next != NULL &&
strcmp(NJDNode_get_pos_group1(node->next), NJD_SET_ACCENT_TYPE_KAZU) == 0) {
NJDNode_set_acc(node, 0);
}
mora_size += NJDNode_get_mora_size(node);
}
}
NJD_SET_ACCENT_TYPE_C_END;
#endif /* !NJD_SET_ACCENT_TYPE_C */
|
{
"content_hash": "6e93d5ba6df3dbab0e1164f04d088e18",
"timestamp": "",
"source": "github",
"line_count": 283,
"max_line_length": 99,
"avg_line_length": 46.53003533568904,
"alnum_prop": 0.5100243013365735,
"repo_name": "SavantCat/Openjtalk_vc_projects",
"id": "9cf58f1d807ef6f6c1869624b2b1a25a8c95549d",
"size": "13168",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Openjtalk_vc_projects/njd_set_accent_type/src/njd_set_accent_type.c",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "11574593"
},
{
"name": "C++",
"bytes": "5913100"
},
{
"name": "JavaScript",
"bytes": "1761"
},
{
"name": "Objective-C",
"bytes": "86693"
},
{
"name": "Python",
"bytes": "288"
},
{
"name": "Shell",
"bytes": "84"
}
],
"symlink_target": ""
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vortex.scripts;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.sql.SQLException;
import sandbox.dataIO.DatasetStub;
import vortex.util.Config;
import vortex.util.ConnectionManager;
import util.MatrixOp;
import util.Optimization;
import util.logger;
/**
*
* @author Nikolay
*/
public class CountEventsInGate implements Script {
@Override
public Object runScript() throws Exception {
do {
try {
if (Config.getDefaultDatabaseHost() == null) {
ConnectionManager.showDlgSelectDatabaseHost();
}
if (Config.getDefaultDatabaseHost() == null) {
System.exit(0);
}
ConnectionManager.setDatabaseHost(Config.getDefaultDatabaseHost());
} catch (SQLException | IOException e) {
logger.showException(e);
ConnectionManager.showDlgSelectDatabaseHost();
}
} while (ConnectionManager.getDatabaseHost() == null);
File f = new File("C:\\Users\\Nikolay\\Local Working Folder\\Hip Surgery CyTOF\\Sep 2013CD45+CD66-\\");
File[] files = f.listFiles(new FileFilter() {
@Override
public boolean accept(File pathname) {
return pathname.getName().endsWith(".fcs");// && pathname.getName().contains("CD45+CD66-");
}
});
double[][][] stubVecLists = new double[files.length][][];
for (int i = 0; i < files.length; i++) {
logger.print("reading: " + files[i].getName());
DatasetStub stub = DatasetStub.createFromFCS(files[i]);
int[] featureColIdx = new int[5];
featureColIdx[0] = Optimization.indexOf(stub.getShortColumnNames(), "CD7");
featureColIdx[1] = Optimization.indexOf(stub.getShortColumnNames(), "CD3");
featureColIdx[2] = Optimization.indexOf(stub.getShortColumnNames(), "CD123");
featureColIdx[3] = Optimization.indexOf(stub.getShortColumnNames(), "CD11c");
featureColIdx[4] = Optimization.indexOf(stub.getShortColumnNames(), "HLADR");
int cntGate = 0;
int cntAll = 0;
double[][] vec = new double[(int)stub.getRowCount()][];
for (int j = 0; j < stub.getRowCount(); j++) {
vec[j] = MatrixOp.subset(stub.getRow(j), featureColIdx);
if (vec[j][0] < 10 && vec[j][1] < 10 && vec[j][2] >100 && vec[j][3] <10 && vec[j][4] >10) {
cntGate++;
}
cntAll++;
}
logger.print(files[i].getName() + " cntGate: " + cntGate + ", total: " + cntAll);
}
return null;
}
}
|
{
"content_hash": "d5951f02351132f2e32f6aef45350e87",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 111,
"avg_line_length": 35.41975308641975,
"alnum_prop": 0.5698849773440223,
"repo_name": "nolanlab/vortex",
"id": "7065846bb30e4dcb15fa8fd1311562f165dcc4e3",
"size": "2869",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/vortex/scripts/CountEventsInGate.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "1282145"
},
{
"name": "TSQL",
"bytes": "7318"
}
],
"symlink_target": ""
}
|
<?php
namespace Hydrogen\Route\Rule;
use Hydrogen\Http\Exception\InvalidArgumentException;
use Psr\Http\Message\ResponseInterface;
use Hydrogen\Http\Request\FrameworkServerRequestInterface as RequestInterface;
class RuleFixed extends AbstractRule
{
public function __construct($ruleStr)
{
if (0 == strlen($ruleStr)) {
throw new InvalidArgumentException('rule str must not be empty');
}
$this->_ruleStr = $this->fmtRuleStr($ruleStr);
}
/**
* @param $path
* @param RequestInterface $request
* @param ResponseInterface $response
* @return \Closure|bool
*/
public function apply(&$path, RequestInterface $request, ResponseInterface $response)
{
if (!is_string($path) || 0 == strlen($path)) {
throw new InvalidArgumentException('path must be type string and can not be empty!');
}
if ($path == $this->_ruleStr) {
$this->performCallback($request, $response);
return true;
}
return false;
}
}
|
{
"content_hash": "561e85a2ff2a441346e413956a7d4761",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 97,
"avg_line_length": 27.102564102564102,
"alnum_prop": 0.630085146641438,
"repo_name": "TF-Joynic/Hydrogen",
"id": "819207dda2d9ba43c53d67d8e1dd35601a874c17",
"size": "1057",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/Hydrogen/Route/Rule/RuleFixed.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "146"
},
{
"name": "HTML",
"bytes": "553"
},
{
"name": "PHP",
"bytes": "374853"
},
{
"name": "Shell",
"bytes": "107"
},
{
"name": "Smarty",
"bytes": "24"
}
],
"symlink_target": ""
}
|
//
// MOWordPicker.h
// MOCompletionTextField
//
// Created by Jan Christiansen on 7/26/12.
// Copyright (c) 2012, Monoid - Development and Consulting - Jan Christiansen
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
// disclaimer in the documentation and/or other materials provided
// with the distribution.
//
// * Neither the name of Monoid - Development and Consulting -
// Jan Christiansen nor the names of other
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
#import <UIKit/UIKit.h>
@class MOWordPicker;
@protocol MOWordPickerDelegate
/**
* Invoked when a word is selected by user
*/
- (void)wordPicker:(MOWordPicker *)wordPicker
didPickWord:(NSString *)word;
/**
* Invoked when a word is removed by dragging it out of the word picker
*/
- (void)wordPicker:(MOWordPicker *)wordPicker
didDropWord:(NSString *)word;
@end
/**
* View that displays an array of strings in a similar style as word
* corrections are displayed on the iPhone
*/
@interface MOWordPicker : UIView
/// @name
/**
* Delegate that is inform if the user selects a word
*/
@property(assign, nonatomic) id<MOWordPickerDelegate> delegate;
/**
* Words that are presented in the view
*/
@property(strong, nonatomic) NSArray *words;
/**
* Specifies whether the user can remove words from the trie by draging it
* out of the word picker
*/
@property(assign, nonatomic) BOOL removableWords;
@end
|
{
"content_hash": "a1f7a929faf0cec1a3105a4c998ec442",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 79,
"avg_line_length": 30.166666666666668,
"alnum_prop": 0.7381215469613259,
"repo_name": "plancalculus/MOCompletionTextField",
"id": "ef14d1d053780a2dc5037e588af6100a7bc79737",
"size": "2715",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MOCompletionTextField/MOWordPicker.h",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "Objective-C",
"bytes": "86676"
},
{
"name": "Perl",
"bytes": "1559"
}
],
"symlink_target": ""
}
|
require File.dirname(__FILE__) + '/../haml'
require 'haml/engine'
require 'rubygems'
require 'hpricot'
module Haml
# This class contains the functionality used in the +html2haml+ utility,
# namely converting HTML documents to Haml templates.
# It depends on Hpricot for HTML parsing (http://code.whytheluckystiff.net/hpricot/).
class HTML
# Creates a new instance of Haml::HTML that will compile the given template,
# which can either be a string containing HTML or an Hpricot node,
# to a Haml string when +render+ is called.
def initialize(template)
if template.is_a? Hpricot::Node
@template = template
else
@template = Hpricot(template)
end
end
# Processes the document and returns the result as a string
# containing the Haml template.
def render
@template.to_haml(0)
end
alias_method :to_haml, :render
module ::Hpricot::Node
# Returns the Haml representation of the given node,
# at the given tabulation.
def to_haml(tabs = 0)
parse_text(self.to_s, tabs)
end
private
def tabulate(tabs)
' ' * tabs
end
def parse_text(text, tabs)
text.strip!
if text.empty?
String.new
else
lines = text.split("\n")
lines.map do |line|
line.strip!
"#{tabulate(tabs)}#{'\\' if Haml::Engine::SPECIAL_CHARACTERS.include?(line[0])}#{line}\n"
end.join
end
end
end
# :stopdoc:
TEXT_REGEXP = /^(\s*).*$/
class ::Hpricot::Doc
def to_haml(tabs = 0)
output = ''
children.each { |child| output += child.to_haml(0) }
output
end
end
class ::Hpricot::XMLDecl
def to_haml(tabs = 0)
"#{tabulate(tabs)}!!! XML\n"
end
end
class ::Hpricot::DocType
def to_haml(tabs = 0)
attrs = public_id.scan(/DTD\s+([^\s]+)\s*([^\s]*)\s*([^\s]*)\s*\/\//)[0]
if attrs == nil
raise Exception.new("Invalid doctype")
end
type, version, strictness = attrs.map { |a| a.downcase }
if type == "html"
version = "1.0"
strictness = "transitional"
end
if version == "1.0" || version.empty?
version = nil
end
if strictness == 'transitional' || strictness.empty?
strictness = nil
end
version = " #{version}" if version
if strictness
strictness[0] = strictness[0] - 32
strictness = " #{strictness}"
end
"#{tabulate(tabs)}!!!#{version}#{strictness}\n"
end
end
class ::Hpricot::Comment
def to_haml(tabs = 0)
"#{tabulate(tabs)}/\n#{parse_text(self.content, tabs + 1)}"
end
end
class ::Hpricot::Elem
def to_haml(tabs = 0)
output = "#{tabulate(tabs)}"
output += "%#{name}" unless name == 'div' && (attributes.include?('id') || attributes.include?('class'))
if attributes
output += "##{attributes['id']}" if attributes['id']
attributes['class'].split(' ').each { |c| output += ".#{c}" } if attributes['class']
attributes.delete("id")
attributes.delete("class")
output += attributes.inspect if attributes.length > 0
end
output += "/" if children.length == 0
output += "\n"
self.children.each do |child|
output += child.to_haml(tabs + 1)
end
output
end
end
# :startdoc:
end
end
|
{
"content_hash": "a9cb1a8f456d9292d51faa4dea9385d7",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 112,
"avg_line_length": 26.079710144927535,
"alnum_prop": 0.5420950263962212,
"repo_name": "bricooke/my-biz-expenses",
"id": "a410d1a17d32195babcd3383b657557700b2b89c",
"size": "3599",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/plugins/haml/lib/haml/html.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "249"
},
{
"name": "Ruby",
"bytes": "67840"
}
],
"symlink_target": ""
}
|
/*Estilos Para Las Tesorerias*/
.no-permitido-tesoreria{
display: none;
}
.solo-tesoreria{
display: block !important;
}
|
{
"content_hash": "99b3e5822f7e1880ea069c4447cc902e",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 31,
"avg_line_length": 18.142857142857142,
"alnum_prop": 0.7007874015748031,
"repo_name": "alevilar/afigestion-theme-bootstrap",
"id": "9b0ec6f6bbefc882d453329446b560447ac68e3a",
"size": "127",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "webroot/css/roles/style_tesoreria.css",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "16538"
},
{
"name": "JavaScript",
"bytes": "113629"
},
{
"name": "PHP",
"bytes": "39630"
}
],
"symlink_target": ""
}
|
require 'test_helper'
class WelcomeControllerControllerTest < ActionController::TestCase
# test "the truth" do
# assert true
# end
end
|
{
"content_hash": "e2c6de60f8d1758f88d28259ebfb823b",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 66,
"avg_line_length": 20.571428571428573,
"alnum_prop": 0.7430555555555556,
"repo_name": "dm-istomin/practice-apps",
"id": "496c48556af41a67483af5a7888fc3d9b3dec80e",
"size": "144",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "simple-rails-react-example/test/controllers/welcome_controller_controller_test.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "8410"
},
{
"name": "HTML",
"bytes": "17166"
},
{
"name": "JavaScript",
"bytes": "22441"
},
{
"name": "Ruby",
"bytes": "41698"
},
{
"name": "Shell",
"bytes": "213"
}
],
"symlink_target": ""
}
|
package net.ypresto.androidtranscoder.compat;
import android.media.MediaCodec;
import android.os.Build;
import java.nio.ByteBuffer;
/**
* A Wrapper to MediaCodec that facilitates the use of API-dependent get{Input/Output}Buffer methods,
* in order to prevent: http://stackoverflow.com/q/30646885
*/
public class MediaCodecBufferCompatWrapper {
final MediaCodec mMediaCodec;
final ByteBuffer[] mInputBuffers;
final ByteBuffer[] mOutputBuffers;
public MediaCodecBufferCompatWrapper(MediaCodec mediaCodec) {
mMediaCodec = mediaCodec;
if (Build.VERSION.SDK_INT < 21) {
mInputBuffers = mediaCodec.getInputBuffers();
mOutputBuffers = mediaCodec.getOutputBuffers();
} else {
mInputBuffers = mOutputBuffers = null;
}
}
public ByteBuffer getInputBuffer(final int index) {
if (Build.VERSION.SDK_INT >= 21) {
return mMediaCodec.getInputBuffer(index);
}
return mInputBuffers[index];
}
public ByteBuffer getOutputBuffer(final int index) {
if (Build.VERSION.SDK_INT >= 21) {
return mMediaCodec.getOutputBuffer(index);
}
return mOutputBuffers[index];
}
}
|
{
"content_hash": "7bab0cf175267f66585d403596f9ba98",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 101,
"avg_line_length": 29.214285714285715,
"alnum_prop": 0.6723716381418093,
"repo_name": "ypresto/android-transcoder",
"id": "e36db4b721f38d660c18f6c85d41e63139cbf27e",
"size": "1227",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "lib/src/main/java/net/ypresto/androidtranscoder/compat/MediaCodecBufferCompatWrapper.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "135179"
},
{
"name": "Shell",
"bytes": "213"
}
],
"symlink_target": ""
}
|
<?php
/**
* @namespace
*/
namespace Stdlib;
/**
* @category Stdlib
* @package Stdlib
* @author stealth35
*/
class ResourceBundleIterator extends \RecursiveArrayIterator
{
public function __construct(\ResourceBundle $bundle)
{
$storage = array();
foreach($bundle as $key => $value)
{
$storage[$key] = $value instanceof \ResourceBundle ? new self($value) : $value;
}
parent::__construct($storage);
}
}
|
{
"content_hash": "5573b4b76543540dcf9b3183c7e87580",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 90,
"avg_line_length": 18.64,
"alnum_prop": 0.6030042918454935,
"repo_name": "stealth35/Stdlib",
"id": "3f12a03a53ec60ab5a98d414173734b453288e97",
"size": "466",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Stdlib/ResourceBundleIterator.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "19111"
}
],
"symlink_target": ""
}
|
UNIX_RemoteAccessAvailableToElementFixture::UNIX_RemoteAccessAvailableToElementFixture()
{
}
UNIX_RemoteAccessAvailableToElementFixture::~UNIX_RemoteAccessAvailableToElementFixture()
{
}
void UNIX_RemoteAccessAvailableToElementFixture::Run()
{
CIMName className("UNIX_RemoteAccessAvailableToElement");
CIMNamespaceName nameSpace("root/cimv2");
UNIX_RemoteAccessAvailableToElement _p;
UNIX_RemoteAccessAvailableToElementProvider _provider;
Uint32 propertyCount;
CIMOMHandle omHandle;
_provider.initialize(omHandle);
_p.initialize();
for(int pIndex = 0; _p.load(pIndex); pIndex++)
{
CIMInstance instance = _provider.constructInstance(className,
nameSpace,
_p);
CIMObjectPath path = instance.getPath();
cout << path.toString() << endl;
propertyCount = instance.getPropertyCount();
for(Uint32 i = 0; i < propertyCount; i++)
{
CIMProperty propertyItem = instance.getProperty(i);
cout << " Name: " << propertyItem.getName().getString() << " - Value: " << propertyItem.getValue().toString() << endl;
}
cout << "------------------------------------" << endl;
cout << endl;
}
_p.finalize();
}
|
{
"content_hash": "f6aa79876a8e6b3f260def9d5f0b5ff9",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 121,
"avg_line_length": 27.73170731707317,
"alnum_prop": 0.7080035180299032,
"repo_name": "brunolauze/openpegasus-providers-old",
"id": "1f85314b99d0046b981a30fececfbe9779cec03a",
"size": "2972",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/Providers/UNIXProviders/tests/UNIXProviders.Tests/UNIX_RemoteAccessAvailableToElementFixture.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "2631164"
},
{
"name": "C++",
"bytes": "120884401"
},
{
"name": "Objective-C",
"bytes": "64"
},
{
"name": "Shell",
"bytes": "17094"
}
],
"symlink_target": ""
}
|
import { Device } from './twin.js';
import * as JP from "../jsonpath/jsonpath.js";
class ProtocolError extends Error {
}
class RestProtocol {
constructor(url, onupdate, interval = 100, usePolling = false) {
this.url = url;
this.interval = interval;
this.pollInterval = 250;
this.usePolling = usePolling;
this.streamingTimeout = 11000;
this.onload = onload;
this.onupdate = onupdate;
}
async probe() {
try {
const result = await fetch(`${this.url}/probe`, {
headers: {
'Accept': 'application/json'
}
});
const text = await result.text();
const probe = JSON.parse(text);
const device = JSONPath.JSONPath({
path: "$..Devices[0].Device",
json: probe
});
this.device = new Device(device[0]);
//console.debug(this.device);
} catch (error) {
console.log(error);
throw new ProtocolError("Cannot probe");
}
return this.device;
}
async current() {
const result = await fetch(`${this.url}/current?${this.path}`, {
headers: {
'Accept': 'application/json'
}
});
const text = await result.text();
this.handleData(text);
}
sleep(delay) {
return new Promise(resolve => setTimeout(resolve, delay));
}
async pollSample() {
while (true) {
try {
const result = await fetch(`${this.url}/sample?${this.path}&from=${this.nextSequence}&count=1000`, {
headers: {
'Accept': 'application/json'
}
});
const text = await result.text();
this.handleData(text);
await this.sleep(this.interval);
} catch (error) {
console.log(error);
if (error instanceof ProtocolError) {
throw error;
}
await this.sleep(this.pollInterval);
}
}
}
async streamSample() {
while (true) {
try {
const controller = new AbortController();
let id = setTimeout(() => controller.abort(), this.streamingTimeout);
const uri = `${this.url}/sample?${this.path}&interval=${this.interval}&from=${this.nextSequence}&count=1000`;
//console.debug(uri);
const response = await fetch(uri, {
headers: {
'Accept': 'application/json'
},
signal: controller.signal
});
clearTimeout(id);
const content = response.headers.get('Content-Type');
const pos = content.indexOf("boundary=");
if (pos < 0) {
throw Error("Cound not find boundary in content type");
}
this.boundary = `--${content.substr(pos + 9)}`;
//console.debug(this.boundary);
const reader = response.body.getReader();
while (true) {
const { value, done } = await reader.read();
if (done) break;
const text = new TextDecoder().decode(value);
//console.log("Read " + text.length + " bytes");
if (!this.buffer) {
this.buffer = text;
} else {
this.buffer += text;
}
let more = this.processChunk();
while (more)
{
more = false;
const ind = this.buffer.indexOf(this.boundary);
if (ind >= 0)
{
const body = this.buffer.indexOf("\r\n\r\n", ind);
if (body > ind) {
// Parse header fields
const headers = this.parseHeader(this.buffer.substring(ind + this.boundary.length + 2, body));
if (headers['content-length']) {
this.length = Number(headers['content-length']);
this.buffer = this.buffer.substr(body + 4)
more = this.processChunk();
} else {
this.usePolling = true;
throw new ProtocolError("Missing content length in frame header, switching to polling");
}
}
}
}
}
} catch(error) {
console.log(error);
if (error instanceof ProtocolError) {
throw error;
}
if (error.name == 'AbortError') {
this.usePolling = true;
throw new ProtocolError('Switching to polling');
}
await this.sleep(this.interval);
}
}
}
parseHeader(header) {
return Object.fromEntries(header.split("\r\n").
map(s => s.split(/:[ ]*/)).map(v => [v[0].toLowerCase(), v[1]]));
}
processChunk() {
if (this.length && this.buffer.length >= this.length)
{
this.handleData(this.buffer.substr(0, this.length));
if (this.buffer.length > this.length) {
this.buffer = this.buffer.substr(this.length);
} else {
this.buffer = undefined;
}
this.length = undefined;
}
return this.buffer && this.buffer.length > 0;
}
handleData(text) {
const data = JSON.parse(text);
if (this.instanceId && data.MTConnectStreams.Header.instanceId != this.instanceId) {
this.instanceId = undefined;
this.nextSequence = undefined;
throw new ProtocolError("Restart stream");
} else if (!this.instanceId) {
this.instanceId = data.MTConnectStreams.Header.instanceId;
}
this.nextSequence = data.MTConnectStreams.Header.nextSequence;
this.transform(data);
}
transform(data) {
const values = JSONPath.JSONPath({ path: '$..ComponentStream.[Events,Samples,Condition].*', json: data });
//console.log(JSON.stringify(values, null, 2));
const updates = [];
for (const obs of values) {
let [key, data] = Object.entries(obs)[0];
const di = this.dataItems[data.dataItemId];
if (di) {
di.apply(obs);
updates.push([di, obs]);
}
}
this.onupdate(updates);
}
pascalize(str) {
return str.split('_').map(s => s[0] + s.substr(1).toLowerCase()).join('');
}
async streamData(dataItems) {
this.dataItems = Object.fromEntries(dataItems.map(di => [di.id, di]));
this.path = `path=//DataItem[${Object.keys(this.dataItems).map(id => "@id='" + id + "'").join(" or ")}]`;
while (true) {
try {
await this.current();
if (this.usePolling)
await this.pollSample();
else
await this.streamSample();
} catch (error) {
console.log(error);
if (error instanceof ProtocolError) {
await this.sleep(1000);
}
}
}
}
async probeMachine() {
while (true) {
try {
await this.probe();
return this.device;
} catch (error) {
console.log(error);
if (error instanceof ProtocolError) {
await this.sleep(1000);
} else {
return undefined;
}
}
}
}
async loadModel(onload) {
await this.device.load(onload);
return this;
};
}
export { RestProtocol };
|
{
"content_hash": "07b55a4b7b99edfcda6d64aad09727e9",
"timestamp": "",
"source": "github",
"line_count": 257,
"max_line_length": 117,
"avg_line_length": 27.007782101167315,
"alnum_prop": 0.54228497334678,
"repo_name": "mtconnect/cppagent",
"id": "cbd45953d0a89f86632ad3382f04b6b6810ac87a",
"size": "6941",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "demo/twin/lib/mtconnect/protocol.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "1960"
},
{
"name": "C++",
"bytes": "1862877"
},
{
"name": "CMake",
"bytes": "36516"
},
{
"name": "CSS",
"bytes": "3718"
},
{
"name": "Dockerfile",
"bytes": "4208"
},
{
"name": "HTML",
"bytes": "25194"
},
{
"name": "JavaScript",
"bytes": "6759"
},
{
"name": "NSIS",
"bytes": "19502"
},
{
"name": "Python",
"bytes": "10503"
},
{
"name": "Ruby",
"bytes": "16669"
},
{
"name": "Shell",
"bytes": "10167"
},
{
"name": "TeX",
"bytes": "219813"
},
{
"name": "VBScript",
"bytes": "11370"
},
{
"name": "XSLT",
"bytes": "24808"
}
],
"symlink_target": ""
}
|
<?php
namespace BeUbi\JobeetBundle\Entity;
use BeUbi\JobeetBundle\Utils\Jobeet;
use Doctrine\ORM\Mapping as ORM;
/**
* BeUbi\JobeetBundle\Entity\Category
*/
class Category
{
/**
* @var integer $id
*/
private $id;
private $more_jobs;
/**
* Get Category Name
*
* @return integer
*/
public function __toString()
{
return $this->getName();
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* @var string $name
*/
private $name;
/**
* @var \Doctrine\Common\Collections\ArrayCollection
*/
private $jobs;
/**
* @var \Doctrine\Common\Collections\ArrayCollection
*/
private $category_affiliates;
private $active_jobs;
/**
* Constructor
*/
public function __construct()
{
$this->jobs = new \Doctrine\Common\Collections\ArrayCollection();
$this->category_affiliates = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Set name
*
* @param string $name
* @return Category
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Add jobs
*
* @param BeUbi\JobeetBundle\Entity\Job $jobs
* @return Category
*/
public function addJob(\BeUbi\JobeetBundle\Entity\Job $jobs)
{
$this->jobs[] = $jobs;
return $this;
}
/**
* Remove jobs
*
* @param BeUbi\JobeetBundle\Entity\Job $jobs
*/
public function removeJob(\BeUbi\JobeetBundle\Entity\Job $jobs)
{
$this->jobs->removeElement($jobs);
}
/**
* Get jobs
*
* @return Doctrine\Common\Collections\Collection
*/
public function getJobs()
{
return $this->jobs;
}
/**
* Get category_affiliates
*
* @return Doctrine\Common\Collections\Collection
*/
public function getCategoryAffiliates()
{
return $this->category_affiliates;
}
public function setActiveJobs($jobs)
{
$this->active_jobs = $jobs;
}
public function getActiveJobs()
{
return $this->active_jobs;
}
public function getSlug()
{
return Jobeet::slugify($this->getName());
}
public function setMoreJobs($jobs)
{
$this->more_jobs = $jobs >= 0 ? $jobs : 0;
}
public function getMoreJobs()
{
return $this->more_jobs;
}
/**
* @var string $slug
*/
private $slug;
/**
* Set slug
*
* @param string $slug
* @return Category
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* @ORM\PrePersist
*/
public function setSlugValue()
{
$this->slug = Jobeet::slugify($this->getName());
}
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $affiliates;
/**
* Add affiliates
*
* @param \BeUbi\JobeetBundle\Entity\Affiliate $affiliates
* @return Category
*/
public function addAffiliate(\BeUbi\JobeetBundle\Entity\Affiliate $affiliates)
{
$this->affiliates[] = $affiliates;
return $this;
}
/**
* Remove affiliates
*
* @param \BeUbi\JobeetBundle\Entity\Affiliate $affiliates
*/
public function removeAffiliate(\BeUbi\JobeetBundle\Entity\Affiliate $affiliates)
{
$this->affiliates->removeElement($affiliates);
}
/**
* Get affiliates
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAffiliates()
{
return $this->affiliates;
}
}
|
{
"content_hash": "4d654a41794decb98513c95c3fb2ac21",
"timestamp": "",
"source": "github",
"line_count": 216,
"max_line_length": 88,
"avg_line_length": 18.22222222222222,
"alnum_prop": 0.5383638211382114,
"repo_name": "tiagobrito/jobeet",
"id": "6692d09dc83a1148b84c09bf65b249417ecee7e3",
"size": "3936",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/BeUbi/JobeetBundle/Entity/Category.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "11907"
},
{
"name": "PHP",
"bytes": "163613"
}
],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_06) on Mon Mar 10 09:02:55 ART 2008 -->
<TITLE>
grammarGuidedGeneticProgramming Class Hierarchy
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="grammarGuidedGeneticProgramming Class Hierarchy";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../gggpIsokinetics/package-tree.html"><B>PREV</B></A>
<A HREF="../rules/package-tree.html"><B>NEXT</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?grammarGuidedGeneticProgramming/package-tree.html" target="_top"><B>FRAMES</B></A>
<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
Hierarchy For Package grammarGuidedGeneticProgramming
</H2>
</CENTER>
<DL>
<DT><B>Package Hierarchies:</B><DD><A HREF="../overview-tree.html">All Packages</A></DL>
<HR>
<H2>
Class Hierarchy
</H2>
<UL>
<LI TYPE="circle">java.lang.Object<UL>
<LI TYPE="circle">grammarGuidedGeneticProgramming.<A HREF="../grammarGuidedGeneticProgramming/GggpImpl.html" title="class in grammarGuidedGeneticProgramming"><B>GggpImpl</B></A> (implements grammarGuidedGeneticProgramming.<A HREF="../grammarGuidedGeneticProgramming/Gggp.html" title="interface in grammarGuidedGeneticProgramming">Gggp</A><I,T,S,U,G>)
<LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
<UL>
<LI TYPE="circle">java.lang.Exception<UL>
<LI TYPE="circle">grammarGuidedGeneticProgramming.<A HREF="../grammarGuidedGeneticProgramming/GggpExceptionImpl.html" title="class in grammarGuidedGeneticProgramming"><B>GggpExceptionImpl</B></A></UL>
</UL>
</UL>
</UL>
<H2>
Interface Hierarchy
</H2>
<UL>
<LI TYPE="circle">grammarGuidedGeneticProgramming.<A HREF="../grammarGuidedGeneticProgramming/Gggp.html" title="interface in grammarGuidedGeneticProgramming"><B>Gggp</B></A><I,T,S,U,G></UL>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../gggpIsokinetics/package-tree.html"><B>PREV</B></A>
<A HREF="../rules/package-tree.html"><B>NEXT</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?grammarGuidedGeneticProgramming/package-tree.html" target="_top"><B>FRAMES</B></A>
<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
|
{
"content_hash": "f93ae3c57919ef33816ae755a7c0d650",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 356,
"avg_line_length": 41.7625,
"alnum_prop": 0.6432205926369351,
"repo_name": "uyjco0/geli",
"id": "4132b1f8b6dac2b4c56b59fb38b23ac47cbb3c4d",
"size": "6682",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "GeLi/doc/grammarGuidedGeneticProgramming/package-tree.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "579904"
}
],
"symlink_target": ""
}
|
bumpversion $1 --allow-dirty
go build
|
{
"content_hash": "4964218e576ba2d7bbca38b9f3ccb598",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 28,
"avg_line_length": 18.5,
"alnum_prop": 0.7837837837837838,
"repo_name": "KensoDev/gong",
"id": "ebe6648cb1c3d4e72c6a37a3f8985146b72f7e0c",
"size": "37",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cmd/gong/build.sh",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "21921"
},
{
"name": "Shell",
"bytes": "346"
}
],
"symlink_target": ""
}
|
header, main, aside {
display: block;
}
header {
background-color: steelblue;
}
.container {
/* Establishes a new BFC */
overflow: hidden;
}
.container .main,
.container .sidebar {
/* Float the two columns left */
float: left;
/* changes the box model to border-box sizing */
box-sizing: border-box;
}
.container main {
width: 70%;
}
.container aside {
/* Adds a margin as a gutter */
margin-left: 1.5em;
/* Subtracts 1.5em from the width */
width: calc(30% - 1.5em);
}
.container main {
background-color: red;
}
.container aside {
background-color: lightblue;
}
|
{
"content_hash": "92cf250b4c2926cd85381d6e8646deb3",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 50,
"avg_line_length": 15.35897435897436,
"alnum_prop": 0.6477462437395659,
"repo_name": "Yuan-Projects/YuanUI",
"id": "a3f15006717191f7d0c5ac432a40bb66c6ca651a",
"size": "599",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "layout/css/two-columns-float.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "64823"
},
{
"name": "HTML",
"bytes": "87292"
},
{
"name": "JavaScript",
"bytes": "61885"
}
],
"symlink_target": ""
}
|
package ru.job4j.repository;
import org.springframework.data.repository.CrudRepository;
import ru.job4j.models.Orders;
public interface OrderDao extends CrudRepository<Orders, Integer> {
}
|
{
"content_hash": "9c34d559270fb3eab3325f5f17300f73",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 67,
"avg_line_length": 21.444444444444443,
"alnum_prop": 0.8186528497409327,
"repo_name": "kirillkrohmal/krohmal",
"id": "541fcd9e98a90615ffc37f9d7c8d916605524881",
"size": "193",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "chapter_011/springboot/src/main/java/ru/job4j/repository/OrderDao.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "40777"
},
{
"name": "Java",
"bytes": "790631"
}
],
"symlink_target": ""
}
|
import json
import httplib
import urllib
import urllib2
class SearchError(Exception):
"""Raised when the results of a search are unexpected or
incorrectly formatted
"""
pass
class SearchEngine(object):
def search(self, search_term, count, skip=0):
""" Need to override this method to perform the search and
return a list of dict objects containing url, title
and description entries.
Example:
[{"url": "http://www.myexample.com",
"title": "Example search item",
"description": "This is my example search result ..."},
]
Keyword arguments:
search_term -- search term. Spaces will be handled
appropriately by this method
count -- how many results to fetch
skip -- skip over this number of initial results. This
allows paginated fetches of the results.
"""
raise NotImplementedError("search() needs to be implemented")
class BingSearchEngine(SearchEngine):
BASE_URI = "https://api.datamarket.azure.com:443"
def __init__(self, account_key):
"""Keyword arguments:
account_key -- account key as provided by the Windows
Azure Marketplace.
"""
if not account_key:
raise ValueError("account_key is required to use the Bing Api")
auth_handler = urllib2.HTTPBasicAuthHandler()
auth_handler.add_password(realm="", uri=self.BASE_URI, user="", passwd=account_key)
self._opener = urllib2.build_opener(auth_handler)
def _construct_search_url(self, search_term, count, skip):
search_url = urllib.basejoin(self.BASE_URI, "Data.ashx/Bing/Search/v1/Web")
search_url += "?Query=%%27%s%%27" % (urllib.quote(search_term))
search_url += "&$top=%d" % (count)
if skip:
search_url += "&$skip=%d" % (skip)
search_url += "&$format=JSON"
return search_url
def _process_results(self, results):
"""Process JSON formatted Bing search results and convert
to a list of dict objects containing url, title
and description entries.
Keyword arguments:
results -- string of raw JSON formatted response
"""
try:
search_results = list()
for result in json.loads(results)['d']["results"]:
search_results.append({
"url": result["Url"],
"title": result["Title"],
"description": result["Description"]})
return search_results
except KeyError as e:
raise SearchError("Unexpected formatting in search results")
def search(self, search_term, count, skip=0):
""" Search web using Bing API for the specified search term
and return a list of dict objects. Each dictionary contains
a url, title and description entry.
Keyword arguments:
search_term -- search term. Spaces will be handled
appropriately by this method
count -- how many results to fetch
skip -- skip over this number of initial results. This
allows paginated fetches of the results.
"""
response = self._opener.open(self._construct_search_url(search_term, count, skip))
returncode = response.getcode()
if returncode == httplib.OK:
return self._process_results(response.read())
else:
raise urllib2.HTTPError("HTTP GET failed, status code = %d" % (returncode))
def rank_search_results(search_results, providers):
"""Given a list of RankProvider objects calculate the page
rank for each URL in the search results.
The search_result dict passed in will have a rank key added
pointing to a new dict. The dict will contain the name of the
RankProvider class and the page rank figure.
Example:
search_results = {
"url": "http://www.google.com",
"title": ...,
"description": ...
"rank" : {"GooglePageRank", 5}}
Keyword arguments:
search_results -- as obtained from the search() function in a
SearchEngine object.
providers -- list of RankProvider objects to use
"""
for result in search_results:
rank = dict()
for provider in providers:
rank[provider.__class__.__name__] = provider.get_rank(result["url"])
result["rank"] = rank
def sort_search_results(search_results, provider_name, reverse=False):
""" Sort a list of search results from least popular to most
popular. Results should been ranked first using rank_search_results.
Keyword arguments:
search_results -- dictionary of search results
provider_name -- name of the rank provider class
reverse -- sort in reverse-rank order
"""
# for these providers a higher number = more popular
if provider_name in ("GooglePageRank"):
return sorted(search_results,
key=lambda x: x["rank"][provider_name] or 0, reverse=not reverse)
# for these providers a lower number = more popular
elif provider_name in ("AlexaTrafficRank"):
return sorted(search_results,
key=lambda x: x["rank"][provider_name] or float("inf"), reverse=reverse)
|
{
"content_hash": "db7468b79a6bffd99fdf31135033efd0",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 91,
"avg_line_length": 33.89032258064516,
"alnum_prop": 0.6268798781648581,
"repo_name": "aablack/websearchapp",
"id": "b684942ca4b21fdbcc54596743105c2f8ffbba05",
"size": "5253",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "search/searchutils.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "JavaScript",
"bytes": "2845"
},
{
"name": "Python",
"bytes": "22605"
}
],
"symlink_target": ""
}
|
namespace Microsoft.Win32.TaskScheduler
{
public partial class TriggerEditDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TriggerEditDialog));
this.triggerTypeLabel = new System.Windows.Forms.Label();
this.triggerTypeCombo = new System.Windows.Forms.ComboBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.settingsTabControl = new System.Windows.Forms.TabControl();
this.scheduleTab = new System.Windows.Forms.TabPage();
this.calendarTriggerUI1 = new Microsoft.Win32.TaskScheduler.UIComponents.CalendarTriggerUI();
this.logonTab = new System.Windows.Forms.TabPage();
this.logonRemotePanel = new System.Windows.Forms.Panel();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.logonLocalRadio = new System.Windows.Forms.RadioButton();
this.logonRemoteRadio = new System.Windows.Forms.RadioButton();
this.logonChgUserBtn = new System.Windows.Forms.Button();
this.logonUserLabel = new System.Windows.Forms.Label();
this.logonSpecUserRadio = new System.Windows.Forms.RadioButton();
this.logonAnyUserRadio = new System.Windows.Forms.RadioButton();
this.startupTab = new System.Windows.Forms.TabPage();
this.startupIntroLabel = new System.Windows.Forms.Label();
this.idleTab = new System.Windows.Forms.TabPage();
this.label8 = new System.Windows.Forms.Label();
this.onEventTab = new System.Windows.Forms.TabPage();
this.eventTriggerUI1 = new Microsoft.Win32.TaskScheduler.UIComponents.EventTriggerUI();
this.customTab = new System.Windows.Forms.TabPage();
this.customPropsListView = new System.Windows.Forms.ListView();
this.propNameCol = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.propValCol = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.customNameText = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.advSettingsGroup = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.expireDatePicker = new Microsoft.Win32.TaskScheduler.FullDateTimePicker();
this.expireCheckBox = new System.Windows.Forms.CheckBox();
this.activateDatePicker = new Microsoft.Win32.TaskScheduler.FullDateTimePicker();
this.activateCheckBox = new System.Windows.Forms.CheckBox();
this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
this.stopIfRunsCheckBox = new System.Windows.Forms.CheckBox();
this.stopIfRunsSpan = new System.Windows.Forms.TimeSpanPicker();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.repeatCheckBox = new System.Windows.Forms.CheckBox();
this.repeatSpan = new System.Windows.Forms.TimeSpanPicker();
this.durationLabel = new System.Windows.Forms.Label();
this.durationSpan = new System.Windows.Forms.TimeSpanPicker();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.delayCheckBox = new System.Windows.Forms.CheckBox();
this.delaySpan = new System.Windows.Forms.TimeSpanPicker();
this.stopAfterDurationCheckBox = new System.Windows.Forms.CheckBox();
this.enabledCheckBox = new System.Windows.Forms.CheckBox();
this.cancelBtn = new System.Windows.Forms.Button();
this.okBtn = new System.Windows.Forms.Button();
this.triggerIdText = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.dateErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
this.groupBox1.SuspendLayout();
this.settingsTabControl.SuspendLayout();
this.scheduleTab.SuspendLayout();
this.logonTab.SuspendLayout();
this.logonRemotePanel.SuspendLayout();
this.startupTab.SuspendLayout();
this.idleTab.SuspendLayout();
this.onEventTab.SuspendLayout();
this.customTab.SuspendLayout();
this.advSettingsGroup.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.tableLayoutPanel3.SuspendLayout();
this.flowLayoutPanel3.SuspendLayout();
this.flowLayoutPanel2.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dateErrorProvider)).BeginInit();
this.SuspendLayout();
//
// triggerTypeLabel
//
resources.ApplyResources(this.triggerTypeLabel, "triggerTypeLabel");
this.triggerTypeLabel.Name = "triggerTypeLabel";
//
// triggerTypeCombo
//
this.triggerTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.triggerTypeCombo.FormattingEnabled = true;
resources.ApplyResources(this.triggerTypeCombo, "triggerTypeCombo");
this.triggerTypeCombo.Name = "triggerTypeCombo";
this.triggerTypeCombo.SelectedValueChanged += new System.EventHandler(this.triggerTypeCombo_SelectedValueChanged);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.settingsTabControl);
resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
// settingsTabControl
//
resources.ApplyResources(this.settingsTabControl, "settingsTabControl");
this.settingsTabControl.Controls.Add(this.scheduleTab);
this.settingsTabControl.Controls.Add(this.logonTab);
this.settingsTabControl.Controls.Add(this.startupTab);
this.settingsTabControl.Controls.Add(this.idleTab);
this.settingsTabControl.Controls.Add(this.onEventTab);
this.settingsTabControl.Controls.Add(this.customTab);
this.settingsTabControl.Name = "settingsTabControl";
this.settingsTabControl.SelectedIndex = 0;
this.settingsTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.settingsTabControl.TabStop = false;
//
// scheduleTab
//
this.scheduleTab.Controls.Add(this.calendarTriggerUI1);
resources.ApplyResources(this.scheduleTab, "scheduleTab");
this.scheduleTab.Name = "scheduleTab";
this.scheduleTab.UseVisualStyleBackColor = true;
//
// calendarTriggerUI1
//
resources.ApplyResources(this.calendarTriggerUI1, "calendarTriggerUI1");
this.calendarTriggerUI1.Name = "calendarTriggerUI1";
this.calendarTriggerUI1.StartBoundaryChanged += new System.EventHandler(this.calendarTriggerUI1_StartBoundaryChanged);
this.calendarTriggerUI1.TriggerTypeChanged += new System.EventHandler(this.calendarTriggerUI1_TriggerTypeChanged);
//
// logonTab
//
this.logonTab.Controls.Add(this.logonRemotePanel);
this.logonTab.Controls.Add(this.logonChgUserBtn);
this.logonTab.Controls.Add(this.logonUserLabel);
this.logonTab.Controls.Add(this.logonSpecUserRadio);
this.logonTab.Controls.Add(this.logonAnyUserRadio);
resources.ApplyResources(this.logonTab, "logonTab");
this.logonTab.Name = "logonTab";
this.logonTab.UseVisualStyleBackColor = true;
//
// logonRemotePanel
//
this.logonRemotePanel.Controls.Add(this.groupBox6);
this.logonRemotePanel.Controls.Add(this.logonLocalRadio);
this.logonRemotePanel.Controls.Add(this.logonRemoteRadio);
resources.ApplyResources(this.logonRemotePanel, "logonRemotePanel");
this.logonRemotePanel.Name = "logonRemotePanel";
//
// groupBox6
//
resources.ApplyResources(this.groupBox6, "groupBox6");
this.groupBox6.Name = "groupBox6";
this.groupBox6.TabStop = false;
//
// logonLocalRadio
//
resources.ApplyResources(this.logonLocalRadio, "logonLocalRadio");
this.logonLocalRadio.Name = "logonLocalRadio";
this.logonLocalRadio.UseVisualStyleBackColor = true;
//
// logonRemoteRadio
//
resources.ApplyResources(this.logonRemoteRadio, "logonRemoteRadio");
this.logonRemoteRadio.Name = "logonRemoteRadio";
this.logonRemoteRadio.UseVisualStyleBackColor = true;
//
// logonChgUserBtn
//
resources.ApplyResources(this.logonChgUserBtn, "logonChgUserBtn");
this.logonChgUserBtn.Name = "logonChgUserBtn";
this.logonChgUserBtn.UseVisualStyleBackColor = true;
this.logonChgUserBtn.Click += new System.EventHandler(this.logonChgUserBtn_Click);
//
// logonUserLabel
//
resources.ApplyResources(this.logonUserLabel, "logonUserLabel");
this.logonUserLabel.Name = "logonUserLabel";
//
// logonSpecUserRadio
//
resources.ApplyResources(this.logonSpecUserRadio, "logonSpecUserRadio");
this.logonSpecUserRadio.Name = "logonSpecUserRadio";
this.logonSpecUserRadio.UseVisualStyleBackColor = true;
this.logonSpecUserRadio.CheckedChanged += new System.EventHandler(this.logonAnyUserRadio_CheckedChanged);
//
// logonAnyUserRadio
//
resources.ApplyResources(this.logonAnyUserRadio, "logonAnyUserRadio");
this.logonAnyUserRadio.Name = "logonAnyUserRadio";
this.logonAnyUserRadio.UseVisualStyleBackColor = true;
this.logonAnyUserRadio.CheckedChanged += new System.EventHandler(this.logonAnyUserRadio_CheckedChanged);
//
// startupTab
//
this.startupTab.Controls.Add(this.startupIntroLabel);
resources.ApplyResources(this.startupTab, "startupTab");
this.startupTab.Name = "startupTab";
this.startupTab.UseVisualStyleBackColor = true;
//
// startupIntroLabel
//
resources.ApplyResources(this.startupIntroLabel, "startupIntroLabel");
this.startupIntroLabel.Name = "startupIntroLabel";
//
// idleTab
//
this.idleTab.Controls.Add(this.label8);
resources.ApplyResources(this.idleTab, "idleTab");
this.idleTab.Name = "idleTab";
this.idleTab.UseVisualStyleBackColor = true;
//
// label8
//
resources.ApplyResources(this.label8, "label8");
this.label8.Name = "label8";
//
// onEventTab
//
this.onEventTab.Controls.Add(this.eventTriggerUI1);
resources.ApplyResources(this.onEventTab, "onEventTab");
this.onEventTab.Name = "onEventTab";
this.onEventTab.UseVisualStyleBackColor = true;
//
// eventTriggerUI1
//
resources.ApplyResources(this.eventTriggerUI1, "eventTriggerUI1");
this.eventTriggerUI1.Name = "eventTriggerUI1";
//
// customTab
//
this.customTab.Controls.Add(this.customPropsListView);
this.customTab.Controls.Add(this.customNameText);
this.customTab.Controls.Add(this.label1);
resources.ApplyResources(this.customTab, "customTab");
this.customTab.Name = "customTab";
this.customTab.UseVisualStyleBackColor = true;
//
// customPropsListView
//
this.customPropsListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.propNameCol,
this.propValCol});
this.customPropsListView.FullRowSelect = true;
this.customPropsListView.GridLines = true;
this.customPropsListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
resources.ApplyResources(this.customPropsListView, "customPropsListView");
this.customPropsListView.MultiSelect = false;
this.customPropsListView.Name = "customPropsListView";
this.customPropsListView.UseCompatibleStateImageBehavior = false;
this.customPropsListView.View = System.Windows.Forms.View.Details;
//
// propNameCol
//
resources.ApplyResources(this.propNameCol, "propNameCol");
//
// propValCol
//
resources.ApplyResources(this.propValCol, "propValCol");
//
// customNameText
//
resources.ApplyResources(this.customNameText, "customNameText");
this.customNameText.Name = "customNameText";
this.customNameText.ReadOnly = true;
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
//
// advSettingsGroup
//
resources.ApplyResources(this.advSettingsGroup, "advSettingsGroup");
this.advSettingsGroup.Controls.Add(this.tableLayoutPanel2);
this.advSettingsGroup.Name = "advSettingsGroup";
this.advSettingsGroup.TabStop = false;
//
// tableLayoutPanel2
//
resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2");
this.tableLayoutPanel2.Controls.Add(this.tableLayoutPanel3, 0, 4);
this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel3, 0, 3);
this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel2, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.flowLayoutPanel1, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.stopAfterDurationCheckBox, 0, 2);
this.tableLayoutPanel2.Controls.Add(this.enabledCheckBox, 0, 5);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
//
// tableLayoutPanel3
//
resources.ApplyResources(this.tableLayoutPanel3, "tableLayoutPanel3");
this.tableLayoutPanel3.Controls.Add(this.expireDatePicker, 1, 1);
this.tableLayoutPanel3.Controls.Add(this.expireCheckBox, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.activateDatePicker, 1, 0);
this.tableLayoutPanel3.Controls.Add(this.activateCheckBox, 0, 0);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
//
// expireDatePicker
//
resources.ApplyResources(this.expireDatePicker, "expireDatePicker");
this.expireDatePicker.Name = "expireDatePicker";
this.expireDatePicker.Value = new System.DateTime(2009, 7, 30, 13, 10, 48, 186);
this.expireDatePicker.ValueChanged += new System.EventHandler(this.expireDatePicker_ValueChanged);
//
// expireCheckBox
//
resources.ApplyResources(this.expireCheckBox, "expireCheckBox");
this.expireCheckBox.Name = "expireCheckBox";
this.expireCheckBox.UseVisualStyleBackColor = true;
this.expireCheckBox.CheckedChanged += new System.EventHandler(this.expireCheckBox_CheckedChanged);
//
// activateDatePicker
//
resources.ApplyResources(this.activateDatePicker, "activateDatePicker");
this.activateDatePicker.Name = "activateDatePicker";
this.activateDatePicker.Value = new System.DateTime(2009, 7, 30, 13, 10, 48, 206);
this.activateDatePicker.ValueChanged += new System.EventHandler(this.activateDatePicker_ValueChanged);
//
// activateCheckBox
//
resources.ApplyResources(this.activateCheckBox, "activateCheckBox");
this.activateCheckBox.Name = "activateCheckBox";
this.activateCheckBox.UseVisualStyleBackColor = true;
this.activateCheckBox.CheckedChanged += new System.EventHandler(this.activateCheckBox_CheckedChanged);
//
// flowLayoutPanel3
//
resources.ApplyResources(this.flowLayoutPanel3, "flowLayoutPanel3");
this.flowLayoutPanel3.Controls.Add(this.stopIfRunsCheckBox);
this.flowLayoutPanel3.Controls.Add(this.stopIfRunsSpan);
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
//
// stopIfRunsCheckBox
//
resources.ApplyResources(this.stopIfRunsCheckBox, "stopIfRunsCheckBox");
this.stopIfRunsCheckBox.Name = "stopIfRunsCheckBox";
this.stopIfRunsCheckBox.UseVisualStyleBackColor = true;
this.stopIfRunsCheckBox.CheckedChanged += new System.EventHandler(this.stopIfRunsCheckBox_CheckedChanged);
//
// stopIfRunsSpan
//
resources.ApplyResources(this.stopIfRunsSpan, "stopIfRunsSpan");
this.stopIfRunsSpan.Name = "stopIfRunsSpan";
this.stopIfRunsSpan.ValueChanged += new System.EventHandler(this.stopIfRunsSpan_ValueChanged);
this.stopIfRunsSpan.Validating += new System.ComponentModel.CancelEventHandler(this.span_Validating);
//
// flowLayoutPanel2
//
resources.ApplyResources(this.flowLayoutPanel2, "flowLayoutPanel2");
this.flowLayoutPanel2.Controls.Add(this.repeatCheckBox);
this.flowLayoutPanel2.Controls.Add(this.repeatSpan);
this.flowLayoutPanel2.Controls.Add(this.durationLabel);
this.flowLayoutPanel2.Controls.Add(this.durationSpan);
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
//
// repeatCheckBox
//
resources.ApplyResources(this.repeatCheckBox, "repeatCheckBox");
this.repeatCheckBox.Name = "repeatCheckBox";
this.repeatCheckBox.UseVisualStyleBackColor = true;
this.repeatCheckBox.CheckedChanged += new System.EventHandler(this.repeatCheckBox_CheckedChanged);
//
// repeatSpan
//
resources.ApplyResources(this.repeatSpan, "repeatSpan");
this.repeatSpan.Name = "repeatSpan";
this.repeatSpan.ValueChanged += new System.EventHandler(this.repeatSpan_ValueChanged);
this.repeatSpan.Validating += new System.ComponentModel.CancelEventHandler(this.span_Validating);
//
// durationLabel
//
resources.ApplyResources(this.durationLabel, "durationLabel");
this.durationLabel.Name = "durationLabel";
//
// durationSpan
//
resources.ApplyResources(this.durationSpan, "durationSpan");
this.durationSpan.Name = "durationSpan";
this.durationSpan.ValueChanged += new System.EventHandler(this.durationSpan_ValueChanged);
this.durationSpan.Validating += new System.ComponentModel.CancelEventHandler(this.span_Validating);
//
// flowLayoutPanel1
//
resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
this.flowLayoutPanel1.Controls.Add(this.delayCheckBox);
this.flowLayoutPanel1.Controls.Add(this.delaySpan);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
//
// delayCheckBox
//
resources.ApplyResources(this.delayCheckBox, "delayCheckBox");
this.delayCheckBox.Name = "delayCheckBox";
this.delayCheckBox.UseVisualStyleBackColor = true;
this.delayCheckBox.CheckedChanged += new System.EventHandler(this.delayCheckBox_CheckedChanged);
//
// delaySpan
//
resources.ApplyResources(this.delaySpan, "delaySpan");
this.delaySpan.Name = "delaySpan";
this.delaySpan.ValueChanged += new System.EventHandler(this.delaySpan_ValueChanged);
this.delaySpan.Validating += new System.ComponentModel.CancelEventHandler(this.span_Validating);
//
// stopAfterDurationCheckBox
//
resources.ApplyResources(this.stopAfterDurationCheckBox, "stopAfterDurationCheckBox");
this.stopAfterDurationCheckBox.Name = "stopAfterDurationCheckBox";
this.stopAfterDurationCheckBox.UseVisualStyleBackColor = true;
this.stopAfterDurationCheckBox.CheckedChanged += new System.EventHandler(this.stopAfterDurationCheckBox_CheckedChanged);
//
// enabledCheckBox
//
resources.ApplyResources(this.enabledCheckBox, "enabledCheckBox");
this.enabledCheckBox.Name = "enabledCheckBox";
this.enabledCheckBox.UseVisualStyleBackColor = true;
this.enabledCheckBox.CheckedChanged += new System.EventHandler(this.enabledCheckBox_CheckedChanged);
//
// cancelBtn
//
resources.ApplyResources(this.cancelBtn, "cancelBtn");
this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.UseVisualStyleBackColor = true;
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
//
// okBtn
//
resources.ApplyResources(this.okBtn, "okBtn");
this.okBtn.Name = "okBtn";
this.okBtn.UseVisualStyleBackColor = true;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
//
// triggerIdText
//
resources.ApplyResources(this.triggerIdText, "triggerIdText");
this.triggerIdText.Name = "triggerIdText";
this.triggerIdText.TextChanged += new System.EventHandler(this.triggerIdText_TextChanged);
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
//
// errorProvider
//
this.errorProvider.ContainerControl = this;
//
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.triggerTypeLabel, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.triggerIdText, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.triggerTypeCombo, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 2, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// dateErrorProvider
//
this.dateErrorProvider.ContainerControl = this;
//
// TriggerEditDialog
//
this.AcceptButton = this.okBtn;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelBtn;
this.Controls.Add(this.cancelBtn);
this.Controls.Add(this.okBtn);
this.Controls.Add(this.advSettingsGroup);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "TriggerEditDialog";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.groupBox1.ResumeLayout(false);
this.settingsTabControl.ResumeLayout(false);
this.scheduleTab.ResumeLayout(false);
this.logonTab.ResumeLayout(false);
this.logonTab.PerformLayout();
this.logonRemotePanel.ResumeLayout(false);
this.logonRemotePanel.PerformLayout();
this.startupTab.ResumeLayout(false);
this.startupTab.PerformLayout();
this.idleTab.ResumeLayout(false);
this.idleTab.PerformLayout();
this.onEventTab.ResumeLayout(false);
this.customTab.ResumeLayout(false);
this.customTab.PerformLayout();
this.advSettingsGroup.ResumeLayout(false);
this.advSettingsGroup.PerformLayout();
this.tableLayoutPanel2.ResumeLayout(false);
this.tableLayoutPanel2.PerformLayout();
this.tableLayoutPanel3.ResumeLayout(false);
this.tableLayoutPanel3.PerformLayout();
this.flowLayoutPanel3.ResumeLayout(false);
this.flowLayoutPanel3.PerformLayout();
this.flowLayoutPanel2.ResumeLayout(false);
this.flowLayoutPanel2.PerformLayout();
this.flowLayoutPanel1.ResumeLayout(false);
this.flowLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dateErrorProvider)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label triggerTypeLabel;
private System.Windows.Forms.ComboBox triggerTypeCombo;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TabControl settingsTabControl;
private System.Windows.Forms.TabPage scheduleTab;
private System.Windows.Forms.TabPage logonTab;
private System.Windows.Forms.TabPage startupTab;
private System.Windows.Forms.TabPage idleTab;
private System.Windows.Forms.TabPage onEventTab;
private System.Windows.Forms.GroupBox advSettingsGroup;
private System.Windows.Forms.CheckBox delayCheckBox;
private System.Windows.Forms.CheckBox stopAfterDurationCheckBox;
private System.Windows.Forms.CheckBox stopIfRunsCheckBox;
private System.Windows.Forms.CheckBox repeatCheckBox;
private System.Windows.Forms.CheckBox enabledCheckBox;
private System.Windows.Forms.CheckBox expireCheckBox;
private System.Windows.Forms.CheckBox activateCheckBox;
private System.Windows.Forms.Label durationLabel;
private System.Windows.Forms.TimeSpanPicker delaySpan;
private FullDateTimePicker expireDatePicker;
private FullDateTimePicker activateDatePicker;
private System.Windows.Forms.TimeSpanPicker stopIfRunsSpan;
private System.Windows.Forms.TimeSpanPicker durationSpan;
private System.Windows.Forms.TimeSpanPicker repeatSpan;
private System.Windows.Forms.Button logonChgUserBtn;
private System.Windows.Forms.Label logonUserLabel;
private System.Windows.Forms.RadioButton logonSpecUserRadio;
private System.Windows.Forms.RadioButton logonAnyUserRadio;
private System.Windows.Forms.Label startupIntroLabel;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Panel logonRemotePanel;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.RadioButton logonLocalRadio;
private System.Windows.Forms.RadioButton logonRemoteRadio;
private System.Windows.Forms.Button cancelBtn;
private System.Windows.Forms.Button okBtn;
private UIComponents.EventTriggerUI eventTriggerUI1;
private System.Windows.Forms.TabPage customTab;
private System.Windows.Forms.TextBox customNameText;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListView customPropsListView;
private System.Windows.Forms.ColumnHeader propNameCol;
private System.Windows.Forms.ColumnHeader propValCol;
private Microsoft.Win32.TaskScheduler.UIComponents.CalendarTriggerUI calendarTriggerUI1;
private System.Windows.Forms.TextBox triggerIdText;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ErrorProvider errorProvider;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
private System.Windows.Forms.ErrorProvider dateErrorProvider;
}
}
|
{
"content_hash": "d1b848bc497617eaaeea4a419312bc81",
"timestamp": "",
"source": "github",
"line_count": 592,
"max_line_length": 140,
"avg_line_length": 44.86824324324324,
"alnum_prop": 0.7458022739251562,
"repo_name": "dahall/TaskScheduler",
"id": "ab8a224a2135366af292b7330b59162d44a704b9",
"size": "26564",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "TaskEditor/TriggerEditDialog.Designer.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "2018686"
},
{
"name": "Visual Basic .NET",
"bytes": "2216"
}
],
"symlink_target": ""
}
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Story extends Model
{
protected $fillable = ['plot', 'writer', 'upvotes', 'downvotes'];
public static function findOrAbort($id){
if (!$story = Story::find($id)) {
$error = [
'error' => [
'code' => 'ERR-NOTFOUND',
'http_code' => '404',
'message' => 'Requested story cannot be found in the database.',
]
];
return \Response::json($error, 404);
}
return $story;
}
}
|
{
"content_hash": "95a097bb7a3c570d7ff9357f6937fdda",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 84,
"avg_line_length": 24.916666666666668,
"alnum_prop": 0.4765886287625418,
"repo_name": "fire17643/Vue-resource",
"id": "190497243f21aece5ec79cdc9a67735a35fa807b",
"size": "598",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "the-majesty-of-vuejs-master/apis/stories/app/Story.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "1659"
},
{
"name": "CSS",
"bytes": "159533"
},
{
"name": "CoffeeScript",
"bytes": "157"
},
{
"name": "HTML",
"bytes": "1077688"
},
{
"name": "Java",
"bytes": "77707"
},
{
"name": "JavaScript",
"bytes": "4264426"
},
{
"name": "PHP",
"bytes": "236755"
},
{
"name": "Shell",
"bytes": "2368"
},
{
"name": "Vue",
"bytes": "50414"
}
],
"symlink_target": ""
}
|
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>"definitions/ModifyAccountBusinessAddressRequest" | ringcentral-ts API Reference</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">ringcentral-ts API Reference</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="_definitions_modifyaccountbusinessaddressrequest_.html">"definitions/ModifyAccountBusinessAddressRequest"</a>
</li>
</ul>
<h1>External module "definitions/ModifyAccountBusinessAddressRequest"</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-external">
<h3>Interfaces</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-interface tsd-parent-kind-external-module tsd-is-external"><a href="../interfaces/_definitions_modifyaccountbusinessaddressrequest_.modifyaccountbusinessaddressrequest.html" class="tsd-kind-icon">Modify<wbr>Account<wbr>Business<wbr>Address<wbr>Request</a></li>
</ul>
</section>
</div>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-external-module tsd-is-external">
<a href="_definitions_modifyaccountbusinessaddressrequest_.html">"definitions/<wbr>Modify<wbr>Account<wbr>Business<wbr>Address<wbr>Request"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-interface tsd-parent-kind-external-module tsd-is-external">
<a href="../interfaces/_definitions_modifyaccountbusinessaddressrequest_.modifyaccountbusinessaddressrequest.html" class="tsd-kind-icon">Modify<wbr>Account<wbr>Business<wbr>Address<wbr>Request</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>
|
{
"content_hash": "90a5dde0666836f90742f835a3992e3d",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 288,
"avg_line_length": 52.71764705882353,
"alnum_prop": 0.6746261995090381,
"repo_name": "zengfenfei/ringcentral-ts",
"id": "b5f558f92615b2af0e96eb65ca558916ca629dcc",
"size": "8962",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/modules/_definitions_modifyaccountbusinessaddressrequest_.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "2277"
},
{
"name": "JavaScript",
"bytes": "1310"
},
{
"name": "Shell",
"bytes": "470"
},
{
"name": "TypeScript",
"bytes": "495515"
}
],
"symlink_target": ""
}
|
{-# LANGUAGE OverloadedStrings #-}
import Data.Bits
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as B8
import System.Environment
import System.Exit
import System.IO
-- | Hamming distance between bytestrings.
--
-- Returns Nothing if bytestrings are of unequal length.
distance :: B.ByteString -> B.ByteString -> Maybe Int
distance s0 s1
| B.length s0 /= B.length s1 = Nothing
| otherwise = Just (foldr alg 0 (B.zip s0 s1))
where
hamming (a, b) = popCount (xor a b)
alg = (+) . hamming
main :: IO ()
main = do
args <- getArgs
case args of
(s0:s1:_) -> do
let b0 = B8.pack s0
b1 = B8.pack s1
mhamming = distance b0 b1
case mhamming of
Nothing -> do
hPutStrLn stderr "hamming: string lengths unequal"
exitFailure
Just hamming -> print hamming
_ -> hPutStrLn stderr "USAGE: ./hamming STRING STRING"
|
{
"content_hash": "b58fa6d615d972e3f1e09b6eedc0d8c4",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 60,
"avg_line_length": 25.513513513513512,
"alnum_prop": 0.6377118644067796,
"repo_name": "jtobin/cryptopals",
"id": "4fbdf30b758740cc49151540f2a84cbb8be3f2a4",
"size": "944",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/hamming/Hamming.hs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Haskell",
"bytes": "6942"
},
{
"name": "Rust",
"bytes": "37619"
}
],
"symlink_target": ""
}
|
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIURIContentListener.idl
*/
#ifndef __gen_nsIURIContentListener_h__
#define __gen_nsIURIContentListener_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIRequest; /* forward declaration */
class nsIStreamListener; /* forward declaration */
class nsIURI; /* forward declaration */
/* starting interface: nsIURIContentListener */
#define NS_IURICONTENTLISTENER_IID_STR "10a28f38-32e8-4c63-8aa1-12eaaebc369a"
#define NS_IURICONTENTLISTENER_IID \
{0x10a28f38, 0x32e8, 0x4c63, \
{ 0x8a, 0xa1, 0x12, 0xea, 0xae, 0xbc, 0x36, 0x9a }}
class NS_NO_VTABLE nsIURIContentListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURICONTENTLISTENER_IID)
/* boolean onStartURIOpen (in nsIURI aURI); */
NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) = 0;
/* boolean doContent (in ACString aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */
NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) = 0;
/* boolean isPreferred (in string aContentType, out string aDesiredContentType); */
NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) = 0;
/* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */
NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) = 0;
/* attribute nsISupports loadCookie; */
NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) = 0;
NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) = 0;
/* attribute nsIURIContentListener parentContentListener; */
NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) = 0;
NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIContentListener, NS_IURICONTENTLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURICONTENTLISTENER \
NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) override; \
NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) override; \
NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) override; \
NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) override; \
NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) override; \
NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) override; \
NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) override; \
NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURICONTENTLISTENER(_to) \
NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) override { return _to OnStartURIOpen(aURI, _retval); } \
NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) override { return _to DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \
NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) override { return _to IsPreferred(aContentType, aDesiredContentType, _retval); } \
NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) override { return _to CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \
NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) override { return _to GetLoadCookie(aLoadCookie); } \
NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) override { return _to SetLoadCookie(aLoadCookie); } \
NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) override { return _to GetParentContentListener(aParentContentListener); } \
NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) override { return _to SetParentContentListener(aParentContentListener); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIURICONTENTLISTENER(_to) \
NS_IMETHOD OnStartURIOpen(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartURIOpen(aURI, _retval); } \
NS_IMETHOD DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoContent(aContentType, aIsContentPreferred, aRequest, aContentHandler, _retval); } \
NS_IMETHOD IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPreferred(aContentType, aDesiredContentType, _retval); } \
NS_IMETHOD CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanHandleContent(aContentType, aIsContentPreferred, aDesiredContentType, _retval); } \
NS_IMETHOD GetLoadCookie(nsISupports * *aLoadCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadCookie(aLoadCookie); } \
NS_IMETHOD SetLoadCookie(nsISupports *aLoadCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadCookie(aLoadCookie); } \
NS_IMETHOD GetParentContentListener(nsIURIContentListener * *aParentContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentContentListener(aParentContentListener); } \
NS_IMETHOD SetParentContentListener(nsIURIContentListener *aParentContentListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentContentListener(aParentContentListener); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsURIContentListener : public nsIURIContentListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIURICONTENTLISTENER
nsURIContentListener();
private:
~nsURIContentListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsURIContentListener, nsIURIContentListener)
nsURIContentListener::nsURIContentListener()
{
/* member initializers and constructor code */
}
nsURIContentListener::~nsURIContentListener()
{
/* destructor code */
}
/* boolean onStartURIOpen (in nsIURI aURI); */
NS_IMETHODIMP nsURIContentListener::OnStartURIOpen(nsIURI *aURI, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean doContent (in ACString aContentType, in boolean aIsContentPreferred, in nsIRequest aRequest, out nsIStreamListener aContentHandler); */
NS_IMETHODIMP nsURIContentListener::DoContent(const nsACString & aContentType, bool aIsContentPreferred, nsIRequest *aRequest, nsIStreamListener * *aContentHandler, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isPreferred (in string aContentType, out string aDesiredContentType); */
NS_IMETHODIMP nsURIContentListener::IsPreferred(const char * aContentType, char * *aDesiredContentType, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean canHandleContent (in string aContentType, in boolean aIsContentPreferred, out string aDesiredContentType); */
NS_IMETHODIMP nsURIContentListener::CanHandleContent(const char * aContentType, bool aIsContentPreferred, char * *aDesiredContentType, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsISupports loadCookie; */
NS_IMETHODIMP nsURIContentListener::GetLoadCookie(nsISupports * *aLoadCookie)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsURIContentListener::SetLoadCookie(nsISupports *aLoadCookie)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIURIContentListener parentContentListener; */
NS_IMETHODIMP nsURIContentListener::GetParentContentListener(nsIURIContentListener * *aParentContentListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsURIContentListener::SetParentContentListener(nsIURIContentListener *aParentContentListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIURIContentListener_h__ */
|
{
"content_hash": "69a1fd388019195284f5e9e5947746d0",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 296,
"avg_line_length": 52.23699421965318,
"alnum_prop": 0.7654088746265354,
"repo_name": "andrasigneczi/TravelOptimizer",
"id": "87a05633350204ad8bf100e9bad19989c8f358e7",
"size": "9037",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DataCollector/mozilla/xulrunner-sdk/include/nsIURIContentListener.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "3443874"
},
{
"name": "C++",
"bytes": "33624518"
},
{
"name": "CSS",
"bytes": "1225"
},
{
"name": "HTML",
"bytes": "13117"
},
{
"name": "IDL",
"bytes": "1110940"
},
{
"name": "Java",
"bytes": "562163"
},
{
"name": "JavaScript",
"bytes": "1480"
},
{
"name": "Makefile",
"bytes": "360"
},
{
"name": "Objective-C",
"bytes": "3166"
},
{
"name": "Python",
"bytes": "322743"
},
{
"name": "Shell",
"bytes": "2539"
}
],
"symlink_target": ""
}
|
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace UltimateManagementTool
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private void App_OnStartup(object sender, StartupEventArgs e)
{
new Bootstrapper().Run();
}
}
}
|
{
"content_hash": "6aa1afd538c0c11c147a4e79081f020e",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 69,
"avg_line_length": 22.095238095238095,
"alnum_prop": 0.6681034482758621,
"repo_name": "HerrLoesch/DDC2016",
"id": "c384bbc27ef66482896b9c27a561775fdc962af7",
"size": "466",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "UltimateManagementTool/UltimateManagementTool/App.xaml.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "17496"
}
],
"symlink_target": ""
}
|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using System.Text.RegularExpressions;
using CodeOwls.SeeShell.Common.Attributes;
using CodeOwls.SeeShell.Common.Exceptions;
namespace CodeOwls.SeeShell.Common.DataSources
{
public class DynamicMemberFactory
{
private static readonly Log Log = new Log(typeof (DynamicMemberFactory));
private readonly IPowerShellDataSource _dataSource;
private readonly IEnumerable<DynamicMemberSpecification> _spec;
private readonly PSObject _dataItem;
public DynamicMemberFactory( IPowerShellDataSource dataSource, IEnumerable<DynamicMemberSpecification> spec, PSObject dataItem )
{
_dataSource = dataSource;
_spec = spec;
_dataItem = dataItem;
}
public IEnumerable<DynamicMemberDescriptor> CreateDynamicMembers()
{
using(Log.PushContext( "CreateDynamicMembers"))
{
List<DynamicMemberDescriptor> descriptors = new List<DynamicMemberDescriptor>();
try
{
using (DefaultRunspaceManager.ForCurrentThread)
{
foreach (var spec in _spec)
{
var specDescriptors = CreateDynamicMembers(spec, _dataItem);
descriptors.AddRange(specDescriptors);
}
}
}
catch( Exception ei )
{
Log.Error( "An exception was raised while creating dynamic members", ei );
throw;
}
return descriptors.Where(l => l != null).ToList();
}
}
private void CreateDynamicMemberProperty(ref PSPropertyInfo plotMember, string name, string proxyPropertyName)
{
if (String.IsNullOrEmpty(proxyPropertyName))
{
return;
}
var pm = plotMember as PSScriptProperty;
var script = String.Format("$this.'{0}' | foreach-object {{ {1} }}", proxyPropertyName, pm.GetterScript);
plotMember = new PSScriptProperty(name, System.Management.Automation.ScriptBlock.Create(script));
}
private PSScriptProperty CreateDynamicMemberProperty(string memberName, string proxyPropertyName)
{
if (null == proxyPropertyName)
{
return null;
}
var newMemberName = proxyPropertyName + "_" + memberName;
const string scriptFormat = "$this.'{1}'.'{0}'";
var script = String.Format(scriptFormat, memberName, proxyPropertyName);
return new PSScriptProperty(newMemberName, System.Management.Automation.ScriptBlock.Create(script));
}
IEnumerable<DynamicMemberDescriptor> AddWildcardDynamicMembers(DynamicMemberSpecification spec, WildcardPattern pattern, PSObject ps, string proxyPropertyName)
{
var props = ps.Properties;
var scriptFormat = "$this.'{0}'";
if (null != proxyPropertyName)
{
props = ps.Properties[proxyPropertyName].ToPSObject().Properties;
scriptFormat = "$this.'{1}'.'{0}'";
}
var matchingPropertyNames = from prop in props
where pattern.IsMatch(prop.Name)
select prop.Name;
var members = matchingPropertyNames.ToList().ConvertAll(
s => new
{
PropertyName = s,
Member = new PSScriptProperty(
(proxyPropertyName ?? "" ) + "_" + s,
System.Management.Automation.ScriptBlock.Create(String.Format(scriptFormat, s,
proxyPropertyName))
)
});
return (from m in members
let s = (from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(m.PropertyName)
select sd.Value).FirstOrDefault()
select new DynamicMemberDescriptor(m.Member, s)).ToList();
}
private IEnumerable<DynamicMemberDescriptor> CreateDynamicMembers(DynamicMemberSpecification spec, PSObject ps)
{
using (Log.PushContext("CreateDynamicMembers"))
{
List<DynamicMemberDescriptor> descriptors = new List<DynamicMemberDescriptor>();
if (null != spec.AcrossSpecifier)
{
descriptors.Add(new DynamicMemberDescriptor(spec.AcrossSpecifier, null));
}
var byItemMembers = CreateByItemMemberDescriptors(spec, ps).ToList();
if (byItemMembers.Any())
{
descriptors.AddRange(byItemMembers);
foreach (var byItemMember in byItemMembers)
{
descriptors.AddRange(CreateMemberDescriptors(spec, ps, byItemMember));
}
}
else
{
descriptors.AddRange(CreateMemberDescriptors(spec, ps, null));
}
return descriptors;
}
}
private IEnumerable<DynamicMemberDescriptor> CreateMemberDescriptors(DynamicMemberSpecification spec, PSObject ps, DynamicMemberDescriptor byItemMember)
{
var list = new List<DynamicMemberDescriptor>();
PSScriptProperty scriptProperty = null;
var plotItemMembers = UpdatePlotItemMembers(spec, ps, byItemMember);
list.AddRange( plotItemMembers );
list.Add( UpdateAgainstItemMember(spec, ps, byItemMember) );
return list;
}
private DynamicMemberDescriptor UpdateAgainstItemMember(DynamicMemberSpecification spec, PSObject ps, DynamicMemberDescriptor byItemMember)
{
if (null == spec.AgainstItem)
{
return null;
}
var againstMember = GetMemberDescriptorForSpecItem(spec, ps, spec.AgainstItem, byItemMember).FirstOrDefault();
if (null == againstMember)
{
//todo
return null;
}
spec.AgainstProperty = againstMember.MemberInfo;
//SafeAddDynamicMember(againstMember.MemberInfo);
return new DynamicMemberDescriptor( againstMember.MemberInfo, null );
}
private IEnumerable<DynamicMemberDescriptor> UpdatePlotItemMembers(DynamicMemberSpecification spec, PSObject ps, DynamicMemberDescriptor byItemMember)
{
var plotItemMembers = CreatePlotItemMembers(byItemMember, spec, ps);
if (null == plotItemMembers || !plotItemMembers.Any())
{
return new List<DynamicMemberDescriptor>();
}
foreach (var item in plotItemMembers.Where(a=>null != a && null !=a.MemberInfo))
{
Log.DebugFormat( "adding plot property [{0}]", item.MemberInfo );
spec.PlotItemDescriptors.Add(item);
}
return plotItemMembers
.Where( pm => null != pm && null != pm.MemberInfo && ! String.IsNullOrEmpty( pm.MemberInfo.Name))
.Where(pm => !ps.Properties.Match(pm.MemberInfo.Name).Any())
.ToList();
}
private IEnumerable<DynamicMemberDescriptor> CreatePlotItemMembers(DynamicMemberDescriptor byItemMember, DynamicMemberSpecification spec, PSObject ps)
{
List<DynamicMemberDescriptor> list = new List<DynamicMemberDescriptor>();
bool acrossSpecifierAdded = false;
bool bySpecifierAdded = false;
if (null != spec.AcrossSpecifier)
{
acrossSpecifierAdded = ps.SafeAddDynamicProperty(spec.AcrossSpecifier);
}
if (null != byItemMember)
{
bySpecifierAdded = ps.SafeAddDynamicProperty(byItemMember.MemberInfo);
}
foreach (var plot in spec.PlotItems)
{
foreach (var memberDescriptor in GetMemberDescriptorForSpecItem(spec, ps, plot, byItemMember))
{
list.Add(memberDescriptor);
}
}
if (bySpecifierAdded)
{
ps.Properties.Remove(byItemMember.MemberInfo.Name);
}
if (acrossSpecifierAdded)
{
ps.Properties.Remove(spec.AcrossSpecifier.Name);
}
return list;
}
private IEnumerable<DynamicMemberDescriptor> GetMemberDescriptorForSpecItem(DynamicMemberSpecification spec, PSObject ps, object specItem, DynamicMemberDescriptor byProperty)
{
var list = new List<DynamicMemberDescriptor>();
var specMember = specItem as PSPropertyInfo;
string proxyPropertyName = null;
if( null != byProperty && null != byProperty.MemberInfo )
{
proxyPropertyName = byProperty.MemberInfo.Name;
}
if (null != specMember)
{
var name = specItem.ToString();
var psp = specMember as PSScriptProperty;
if (null != psp)
{
name = ScriptBlockDynamicPropertyArgumentTransformationAttribute.GetReadableName(psp);
}
if (null != byProperty && null != byProperty.IndexValue)
{
name = byProperty.IndexValue.ToString() + "\\" + name;
//name.Replace("$", "").Replace("{","").Replace("}","").Replace(".","");
}
CreateDynamicMemberProperty(ref specMember, "_" + Guid.NewGuid().ToString(), proxyPropertyName);
IScaleDescriptor scale = new DynamicPropertyScaleDescriptor(_dataSource, specMember.Name);
scale = (from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(name)
select sd.Value).FirstOrDefault() ??
(from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(specMember.Name)
select sd.Value).FirstOrDefault() ??
scale;
spec.ScaleDescriptors.Add( new Regex( Regex.Escape(specMember.Name)), scale );
//var assignment = AddDynamicScaleForProperty(specMember.Name);
list.Add( new DynamicMemberDescriptor(specMember, scale, name) );
}
else if (specItem is string && WildcardPattern.ContainsWildcardCharacters(specItem.ToString()))
{
var p = new WildcardPattern(specItem.ToString());
var members = AddWildcardDynamicMembers(spec, p, ps, proxyPropertyName);
foreach (var member in members)
{
list.Add(member);
}
}
else
{
var name = specItem.ToString();
if( null != byProperty && null != byProperty.IndexValue )
{
name = byProperty.IndexValue.ToString() + "\\" + name;
}
if (null != proxyPropertyName)
{
var m = CreateDynamicMemberProperty(specItem.ToString(), proxyPropertyName);
var scale = (from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(m.Name)
select sd.Value).FirstOrDefault();
//var s = GetOrCreateScaleAssignment(name, m).Scale;
list.Add(new DynamicMemberDescriptor(m, scale, name));
}
else
{
var scale = (from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(name)
select sd.Value).FirstOrDefault();
if (null == ps.Properties[name])
{
//throw new DataPropertyNotFoundException(name);
list.Add(new DynamicMemberDescriptor(
new PSScriptProperty(
"_" + Guid.NewGuid().ToString("N") + "_" + name,
ScriptBlock.Create(String.Format("$local:val = $this.'{0}'; if( $local:val ) {{ $local:val }} else {{ 0 }}", specItem.ToString()))
),
scale,
name
)
);
}
list.Add(new DynamicMemberDescriptor(ps.Properties[name],scale,name));
}
}
return list;
}
private IEnumerable<DynamicMemberDescriptor> CreateByItemMemberDescriptors(DynamicMemberSpecification spec, PSObject ps)
{
if (null == spec.AcrossSpecifier)
{
return new DynamicMemberDescriptor[]{ };
}
var list = new List<DynamicMemberDescriptor>();
var acrossAccessorName = spec.AcrossSpecifier.Name;
ps.Properties.Add(spec.AcrossSpecifier);
var sps = new PSObjectSolidifier().AsConcreteType(ps) as SolidPSObjectBase;
object oitem = sps.GetPropValue<object>(acrossAccessorName);
ps.Properties.Remove(acrossAccessorName);
var items = oitem as ICollection;
if (null == items)
{
items = new object[] { oitem };
}
if (null == spec.IndexSpecifier)
{
for (int i = 0; i < items.Count; ++i)
{
var byItemScript = String.Format("$this.'{1}' | select-object -index '{0}'", i, acrossAccessorName);
var prop = new PSScriptProperty(
acrossAccessorName + i,
System.Management.Automation.ScriptBlock.Create(byItemScript));
var scale = ( from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(prop.Name)
select sd.Value ).FirstOrDefault();
list.Add( new DynamicMemberDescriptor( prop, scale, "Index " + i ));
}
}
else
{
foreach (var item in items)
{
var pso = item.ToPSObject();
var tempProperty = new PSScriptProperty(
"_" + Guid.NewGuid().ToString("N"),
System.Management.Automation.ScriptBlock.Create(
"$this | " + spec.IndexSpecifier.GetterScript));
pso.Properties.Add(tempProperty);
var specValue = pso.Properties[tempProperty.Name].Value.ToPSObject();
pso.Properties.Remove(tempProperty.Name);
var name = specValue.Properties["Name"].Value;
var byItemScript =
String.Format("$this.'{1}' | {2} | where {{ $_.Name -eq '{0}' }} | select -expand Group",
name, acrossAccessorName, spec.IndexSpecifier.GetterScript);
var prop = new PSScriptProperty(
acrossAccessorName + "_" + name,
System.Management.Automation.ScriptBlock.Create(byItemScript));
var scale = (from sd in spec.ScaleDescriptors
where sd.Key.IsMatch(prop.Name)
select sd.Value).FirstOrDefault();
list.Add( new DynamicMemberDescriptor( prop, scale, name));
}
}
return list;
}
}
}
|
{
"content_hash": "f6f249688960fa61650bf4ad3bcf30ef",
"timestamp": "",
"source": "github",
"line_count": 385,
"max_line_length": 182,
"avg_line_length": 43.01038961038961,
"alnum_prop": 0.5205024457998672,
"repo_name": "beefarino/seeshell",
"id": "c404b79191caf630f681927fedca28c99d767697",
"size": "16561",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CodeOwls.SeeShell/CodeOwls.SeeShell.Common/DataSources/DynamicMemberFactory.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "358195"
},
{
"name": "PowerShell",
"bytes": "41564"
},
{
"name": "Smalltalk",
"bytes": "868"
}
],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Fri Feb 15 10:06:11 EET 2013 -->
<TITLE>
fi.vtt
</TITLE>
<META NAME="date" CONTENT="2013-02-15">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<FONT size="+1" CLASS="FrameTitleFont">
<A HREF="../../fi/vtt/package-summary.html" target="classFrame">fi.vtt</A></FONT>
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
<TR>
<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
Classes</FONT>
<FONT CLASS="FrameItemFont">
<BR>
<A HREF="ApplicationNameResource.html" title="class in fi.vtt" target="classFrame">ApplicationNameResource</A>
<BR>
<A HREF="ApplicationsResource.html" title="class in fi.vtt" target="classFrame">ApplicationsResource</A>
<BR>
<A HREF="DeviceNameResource.html" title="class in fi.vtt" target="classFrame">DeviceNameResource</A>
<BR>
<A HREF="DevicesResource.html" title="class in fi.vtt" target="classFrame">DevicesResource</A>
<BR>
<A HREF="HelloResource.html" title="class in fi.vtt" target="classFrame">HelloResource</A>
<BR>
<A HREF="LoggerApplicationsResource.html" title="class in fi.vtt" target="classFrame">LoggerApplicationsResource</A>
<BR>
<A HREF="MccResource.html" title="class in fi.vtt" target="classFrame">MccResource</A>
<BR>
<A HREF="MccsResource.html" title="class in fi.vtt" target="classFrame">MccsResource</A>
<BR>
<A HREF="NewRoutineLearnedReceiver.html" title="class in fi.vtt" target="classFrame">NewRoutineLearnedReceiver</A>
<BR>
<A HREF="RawDataReceiver.html" title="class in fi.vtt" target="classFrame">RawDataReceiver</A>
<BR>
<A HREF="RawMeasurementIdResource.html" title="class in fi.vtt" target="classFrame">RawMeasurementIdResource</A>
<BR>
<A HREF="RawMeasurementsResource.html" title="class in fi.vtt" target="classFrame">RawMeasurementsResource</A>
<BR>
<A HREF="RoutineClassesResource.html" title="class in fi.vtt" target="classFrame">RoutineClassesResource</A>
<BR>
<A HREF="RoutineClassIdResource.html" title="class in fi.vtt" target="classFrame">RoutineClassIdResource</A>
<BR>
<A HREF="RoutineClassTypeIdResource.html" title="class in fi.vtt" target="classFrame">RoutineClassTypeIdResource</A>
<BR>
<A HREF="RoutineRecognizedReceiver.html" title="class in fi.vtt" target="classFrame">RoutineRecognizedReceiver</A>
<BR>
<A HREF="UserRoutineResource.html" title="class in fi.vtt" target="classFrame">UserRoutineResource</A>
<BR>
<A HREF="UserRoutinesResource.html" title="class in fi.vtt" target="classFrame">UserRoutinesResource</A></FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
|
{
"content_hash": "ffea1b5164629e50ac11b50031415b14",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 116,
"avg_line_length": 40.75757575757576,
"alnum_prop": 0.7394052044609666,
"repo_name": "cavtt/VTTRoutineLibrary",
"id": "21a7fdb46239163fd14ee79ffd3b6b7390d0e628",
"size": "2690",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Server/Documentation/Javadoc/fi/vtt/package-frame.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "424200"
}
],
"symlink_target": ""
}
|
using Newtonsoft.Json;
#endregion
namespace Dnn.PersonaBar.SiteSettings.Services.Dto
{
public class UpdateProfilePropertyRequest
{
public int? PortalId { get; set; }
public int? PropertyDefinitionId { get; set; }
public string PropertyName { get; set; }
public int DataType { get; set; }
public string PropertyCategory { get; set; }
public int Length { get; set; }
public string DefaultValue { get; set; }
public string ValidationExpression { get; set; }
public bool Required { get; set; }
public bool ReadOnly { get; set; }
public bool Visible { get; set; }
public int ViewOrder { get; set; }
public int DefaultVisibility { get; set; }
}
}
|
{
"content_hash": "1903aafb446824cad57d21f8567f0c69",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 56,
"avg_line_length": 22,
"alnum_prop": 0.6142857142857143,
"repo_name": "dnnsoftware/Dnn.AdminExperience.Extensions",
"id": "fb3bd8a20b08396046e53fe691781a80bde5b9b7",
"size": "1992",
"binary": false,
"copies": "1",
"ref": "refs/heads/development",
"path": "src/Modules/Settings/Dnn.PersonaBar.SiteSettings/Services/Dto/UpdateProfilePropertyRequest.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "362"
},
{
"name": "C#",
"bytes": "1752728"
},
{
"name": "CSS",
"bytes": "495897"
},
{
"name": "HTML",
"bytes": "38779"
},
{
"name": "JavaScript",
"bytes": "3436901"
}
],
"symlink_target": ""
}
|
If you are using angular, check out this awesome [AngularJS Module](https://github.com/wodka/angular-radios-to-slider) by wodka
[](https://img.shields.io/bower/v/radios-to-slider.svg)
jQuery plugin to create a slider using a list of radio buttons
## Usage
```html
<div id="radios">
<input id="option1" name="options" type="radio" value="1">
<label for="option1">1 <br>year</label>
<input id="option2" name="options" type="radio" value="2">
<label for="option2">2 years</label>
<input id="option3" name="options" type="radio" value="3" checked>
<label for="option3">3 years</label>
<input id="option4" name="options" type="radio" value="4">
<label for="option4">4 years</label>
<input id="option5" name="options" type="radio" value="5">
<label for="option5">5+ years</label>
</div>
<script>
$(document).ready(function(){
var radios = $("#radios").radiosToSlider();
// Disable input
radios.setDisable();
// Enable input
radios.setEnable();
// Retrieve value
radios.getValue();
});
</script>
```
## Options
Option | Values | Default
------------ | ----------- | --------
animation | true, false | true
onSelect | callback | null
size | string | "medium"
fitContainer | true, false | true
isDisable | true, false | false
## API
Function | Callback | Args
---------- | -------- | ----------------
setDisable | true | $levels, $inputs
setEnable | true | $levels, $inputs
getValue | false | -
Events | Triggered
----------- | -------------
radiochange | If triggered [click, change] events
radiodisabled | When disabled radio
radiodenabled | When enabled radio
## Demo and examples
- [rubentd.com/radios-to-slider](http://rubentd.com/radios-to-slider)
|
{
"content_hash": "c9b30041539445b0a5589fc3329282e8",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 127,
"avg_line_length": 27.463768115942027,
"alnum_prop": 0.6052770448548813,
"repo_name": "rubentd/radios-to-slider",
"id": "68d3c3c94dd565ccc6fd690f67ad13246dee31f5",
"size": "1915",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4389"
},
{
"name": "HTML",
"bytes": "5754"
},
{
"name": "JavaScript",
"bytes": "10122"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../">
<title data-ice="title">src/dom-observer.js | API Document</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="script/prettify/prettify.js"></script>
<script src="script/manual.js"></script>
</head>
<body class="layout-container" data-ice="rootContainer">
<header>
<a href="./">Home</a>
<a href="identifiers.html">Reference</a>
<a href="source.html">Source</a>
<a data-ice="repoURL" href="https://github.com/jstoolkit/dom-observer" class="repo-url-github">Repository</a>
<div class="search-box">
<span>
<img src="./image/search.png">
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span>
</span>
<ul class="search-result"></ul>
</div>
</header>
<nav class="navigation" data-ice="nav"><div>
<ul>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-makeObserver">makeObserver</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MutationObserver">MutationObserver</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MutationObserverInit">MutationObserverInit</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-MutationRecord">MutationRecord</a></span></span></li>
</ul>
</div>
</nav>
<div class="content" data-ice="content"><h1 data-ice="title">src/dom-observer.js</h1>
<pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">/**
* dom-observer v1.0.0
* https://github.com/jstoolkit/dom-observer
* @license MIT LICENSE
* @author Matheus R. Kautzmann
*/
/**
* The MutationObserver object
* @typedef {Object} MutationObserver
* @see https://developer.mozilla.org/docs/Web/API/MutationObserver
*/
/**
* The MutationObserverInit object to specify the observer config
* @typedef {Object} MutationObserverInit
* @see https://developer.mozilla.org/docs/Web/API/MutationObserver
*/
/**
* The MutationRecord object that states the changes made in the DOM
* @typedef {Object} MutationRecord
* @see https://developer.mozilla.org/docs/Web/API/MutationObserver
*/
/**
* The callback used to report mutations
* @callback changeCallback
* @param {MutationRecord[]|MutationRecord} mutations - Report array of changes
* @see https://developer.mozilla.org/docs/Web/API/MutationObserver
*/
/**
* Instantiate dom-observer
* @param {HTMLElement} target - The element to observe
* @param {changeCallback} callback - The function that will receive the reports
* @param {MutationObserverInit} [options] - The object with the observer config
* @param {Object} [options={}] - Object containing onlyFirstChange and onlyLastChange
* @access public
* @exports dom-observer
* @example <caption>Instantiates an observer for all elements in body</caption>
* var observer = require('dom-observer');
* @returns {DomObserver} self - The newly created instance of DomObserver
* var myObserver = observer(document.body, myCallback, { subtree: true });
* @since 0.1.0
*/
const makeObserver = (target, callback, options = {}) => {
const { onlyLastChange = false, onlyFirstChange = false } = options;
// Bring prefixed MutationObserver for older Chrome/Safari and Firefox
// TODO: REMOVE THIS VARIABLE WHEN POSSIBLE
const MutationObserver = window.MutationObserver ||
window.WebKitMutationObserver ||
window.MozMutationObserver;
let self;
let currentCallback = callback;
/**
* Handle MutationObserver mutations
* @function
* @param {MutationRecord[]} _mutations - The mutations
* @access private
* @since 0.1.0
*/
const mutationHandler = (_mutations) => {
if (onlyFirstChange) {
self.wipe();
self.disconnect();
return currentCallback(_mutations);
}
if (onlyLastChange) return currentCallback(_mutations.pop());
return currentCallback(_mutations);
};
/**
* The inner MutationObserver used to watch for mutations
* @access private
* @type MutationObserver
* @const
* @since 0.1.0
*/
const observer = new MutationObserver(mutationHandler);
/**
* Spawn a new observer with the specified config
* @function
* @param {HTMLElement} _target - The element to observe
* @param {MutationObserverInit} [options] - The config to respect
* @access private
* @since 0.1.0
*/
function observe(_target, _options) {
const config = _options;
const { attributes, childList, characterData } = config;
if (!(attributes || childList || characterData)) {
config.attributes = true;
config.childList = true;
config.characterData = true;
}
if (!(_target instanceof HTMLElement)) {
throw new Error('You must set a target element!');
}
if (currentCallback) {
observer.observe(_target, config);
}
}
/**
* The instance of DomObserver with the public API
* @const
* @access public
* @since 0.1.0
*/
self = (() => {
observe(target, options);
return {
/**
* Add a target to the current observer
* @function
* @param {HTMLElement} _target - The element to observe
* @example <caption>Add a new element to an existent observer</caption>
* var myElement = document.querySelector('#awesomeElement');
* myObserver.addTarget(myElement);
* @returns {DomObserver} self - The current instance of dom-observer
* @access public
* @since 0.1.0
*/
addTarget: (_target) => {
observe(_target, options);
return self;
},
/**
* Add a new target and config to the current observer
* @function
* @param {HTMLElement} _target - The element to observe
* @param {MutationObserverInit} _options - The config to respect
* @example <caption>Add a new element and config to an observer</caption>
* var myElement = document.querySelector('#awesomeElement');
* myObserver.andObserve(myElement, { childList: true });
* @returns {DomObserver} self - The current instance of dom-observer
* @access public
* @since 0.1.0
*/
andObserve: (_target, _options) => {
observe(_target, _options);
return self;
},
/**
* Change the function to be called when reporting changes
* @function
* @param {Function} fn - The new callback to use
* @returns {DomObserver} self - The current instance of dom-observer
* @example <caption>Change the function that handle the changes</caption>
* var myNewFunc = function(mutations) { console.log('YAY', mutations); }
* myObserver.callback = myNewFunc;
* @returns {DomObserver} self - The current instance of dom-observer
* @access public
* @since 1.0.0
*/
set callback(_fn) {
currentCallback = _fn;
return self;
},
get callback() {
return currentCallback;
},
/**
* Expose MutationObserver's takeRecords method
* @function
* @example <caption>Taking records</caption>
* myObserver.takeRecords(); // Now do something with the info.
* @returns {MutationRecord[]} The array of mutations
* @access public
* @since 0.1.0
*/
takeRecords: () => observer.takeRecords(),
/**
* Clean the MutationObserver record pool and return this instance
* @function
* @example <caption>Wiping the reports</caption>
* myObserver.wipe(); // OK, clean.
* @returns {DomObserver} self - The current instance of dom-observer
* @access public
* @since 0.1.0
*/
wipe: () => {
observer.takeRecords();
return self;
},
/**
* Remove all previous observer configuration
* @function
* @example <caption>Stopping all reporters</caption>
* myObserver.disconnect(); // No more change reports
* @returns {DomObserver} self - The current instance of dom-observer
* @access public
* @since 0.1.0
*/
disconnect: () => {
observer.disconnect();
return self;
},
};
})();
return self;
};
export default makeObserver;
</code></pre>
</div>
<footer class="footer">
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.4.8)</span></a>
</footer>
<script src="script/search_index.js"></script>
<script src="script/search.js"></script>
<script src="script/pretty-print.js"></script>
<script src="script/inherited-summary.js"></script>
<script src="script/test-summary.js"></script>
<script src="script/inner-link.js"></script>
<script src="script/patch-for-local.js"></script>
</body>
</html>
|
{
"content_hash": "e592af6aa58e226d9c665a359f0ca910",
"timestamp": "",
"source": "github",
"line_count": 269,
"max_line_length": 206,
"avg_line_length": 35.17100371747212,
"alnum_prop": 0.6482401437480182,
"repo_name": "leafui/dom-observer",
"id": "7df4828665477a04c3cba7fd2d10775f45b5230b",
"size": "9461",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "docs/file/src/dom-observer.js.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "270"
},
{
"name": "JavaScript",
"bytes": "25656"
}
],
"symlink_target": ""
}
|
namespace jackal {
class OpenGLShader;
class OpenGLCommandBuffer;
class OpenGLTexture;
class OpenGLTexture2D;
class OpenGLTexture3D;
class OpenGLCubeMap;
class OpenGLSampler;
class OpenGLGraphicsPipelineState;
class OpenGLComputePipelineState;
class OpenGLRenderTarget;
class OpenGLRenderPass;
class OpenGLVertexBuffer;
class OpenGLUniformBuffer;
class OpenGLResources;
class OpenGLMaterialLayout;
// OpenGL Rendering Device. This Device handles all
// Rendering calls, creation, and modification of OpenGL
// Rendering functionality. It should act as a RHI, or
// Rendering Hardware Interface implementation of OpenGL.
class OpenGLDevice : public RenderDevice {
static const char *renderAPI;
// Keep Track of the number of opengl objects allocated by OpenGLDevice.
static uint32 OGLShaders;
static uint32 OGLFrameBuffers;
static uint32 OGLRenderPasses;
static uint32 OGLTextures;
static uint32 OGLTexture2Ds;
static uint32 OGLTexture3Ds;
static uint32 OGLCubeMaps;
static uint32 OGLSamplers;
static uint32 OGLUniformBuffers;
static uint32 OGLGraphicsPipelineStates;
static uint32 OGLComputePipelineStates;
static uint32 OGLRenderTargets;
static uint32 OGLVertexBuffers;
static uint32 OGLCommandBuffers;
static uint32 OGLMaterialLayouts;
public:
// Initialize OpenGL library for first time.
// This must be called if you plan on using OpenGL.
static bool8 InitOpenGL();
OpenGLDevice()
: mCurrentComputePipelineState(nullptr)
, mCurrentGraphicsPipelineState(nullptr)
, mCurrentVertexBuffer(nullptr)
, mCurrentUniformBuffer(nullptr)
, mCurrentRenderPass(nullptr)
, mClearColor(Color(0, 0, 0, 255))
, mCommandBuffers(nullptr)
, mCommandBuffersCount(0) { }
void Initialize() override;
void CleanUp() override;
Resources* GetResources() override;
Shader* CreateShader() override;
RenderPass* CreateRenderPass() override;
Texture* CreateTexture() override;
UniformBuffer* CreateUniformBuffer() override;
GraphicsPipelineState* CreateGraphicsPipelineState() override;
ComputePipelineState* CreateComputePipelineState() override;
RenderTarget* CreateRenderTarget() override;
VertexBuffer* CreateVertexBuffer() override;
CommandBuffer* CreateCommandBuffer() override;
MaterialLayout* CreateMaterialLayout() override;
Sampler* CreateSampler() override;
Texture2D* CreateTexture2D() override;
Texture3D* CreateTexture3D() override;
CubeMap* CreateCubeMap() override;
StorageBuffer* CreateStorageBuffer() override { return nullptr; }
void SetResourceHandler(Resources *resources) override;
void DestroyShader(Shader *shader) override;
void DestroyRenderPass(RenderPass *pass) override;
void DestroyTexture(Texture *texture) override;
void DestroyUniformBuffer(UniformBuffer *uniformbuffer) override;
void DestroyGraphicsPipelineState(GraphicsPipelineState *pipeline) override;
void DestroyComputePipelineState(ComputePipelineState *pipeline) override;
void DestroyRenderTarget(RenderTarget *target) override;
void DestroyCommandBuffer(CommandBuffer *buffer) override;
void DestroyMaterialLayout(MaterialLayout *material) override;
void DestroyVertexBuffer(VertexBuffer *vb) override;
void DestroySampler(Sampler *sampler) override;
void DestroyTexture2D(Texture2D *texture) override;
void DestroyTexture3D(Texture3D *texture) override;
void DestroyCubeMap(CubeMap *cube) override;
void DestroyStorageBuffer(StorageBuffer* buffer) override { }
const char *API() const override { return renderAPI; }
CommandBuffer** SwapChainCommandBuffers(uint16* count) override;
// Still Ongoing work.
// TODO(): Setters for setting up the pipeline and rendering core.
// Submit command buffers to the GPU for rendering. If OpenGL is being used,
// we go with CPU based rendering calls.
void SubmitCommandBuffers(CommandBuffer *commandbuffers, uint32 buffers) override;
// OpenGL Graphics Pipeline State object currently being used by this rendering
// device.
OpenGLGraphicsPipelineState* mCurrentGraphicsPipelineState;
// OpenGL Compute Pipeline State object currently being used by this rendering
// device.
OpenGLComputePipelineState* mCurrentComputePipelineState;
// OpenGL Vertex Buffer object currently being used by this rendering device.
OpenGLVertexBuffer* mCurrentVertexBuffer;
// OpenGL Uniform Buffer object currently being used by this rendering device.
OpenGLUniformBuffer* mCurrentUniformBuffer;
// OpenGL Material object currently being use by this rendering device.
OpenGLMaterialLayout* mCurrentMaterialLayout;
// Current OpenGL RenderPass bound.
OpenGLRenderPass* mCurrentRenderPass;
Color mClearColor;
private:
CommandBuffer** mCommandBuffers;
uint16 mCommandBuffersCount;
};
} // jackal
|
{
"content_hash": "233dc90744cd4cbbe3bd9ff886f54c1d",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 105,
"avg_line_length": 43.53383458646616,
"alnum_prop": 0.6602763385146805,
"repo_name": "CheezBoiger/Jackal",
"id": "695af24c4b2cec29d01447417470e57cea1e37b1",
"size": "5991",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Jackal/Source/OpenGLDevice/Public/OpenGLDevice/OpenGLDevice.hpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "691367"
},
{
"name": "C++",
"bytes": "1990761"
},
{
"name": "CMake",
"bytes": "58284"
},
{
"name": "GLSL",
"bytes": "3175"
},
{
"name": "Objective-C",
"bytes": "39969"
},
{
"name": "Python",
"bytes": "563"
}
],
"symlink_target": ""
}
|
/**
* @file mip-cr173-eject 组件
* @author
*/
define(function (require) {
var $ = require('zepto');
var templates = require('templates');
var util = require('util');
var platform = util.platform;
var customElement = require('customElement').create();
var pageInfo = {
id: $('.f-information').attr('data-id'),
path: $('.f-information').attr('data-path'),
categroyId: Math.ceil($('.f-information').attr('data-categroyId')),
rootId: $('.f-information').attr('data-rootid'),
commendid: $('.f-information').attr('data-commendid'),
system: $('.f-information').attr('data-system'),
ppaddress: $('.f-information').attr('data-ppaddress'),
ismoney: $('.f-information').attr('data-ismoney'),
toprecomdandroid: $('.f-toprecomd-azhtml').html(),
toprecomdios: $('.f-toprecomd-ioshtml').html(),
ejectandroid: $('.f-android-eject').html(),
ejectOhterAndroid: $('f-outer-city-android').html()
};
var addRecomdHtml = {
init: function () {
this.addRecomdHtml(); // 添加推荐游戏
},
addRecomdHtml: function () {
var androidDateArry = JSON.parse(pageInfo.toprecomdandroid); // 获取安卓数据
var iosDateArry = JSON.parse(pageInfo.toprecomdios); // 获取ios数据
var androidData = {
list: []
};
var iosData = {
list: []
};
var i = 0;
for (i = 0; i < androidDateArry.length; i++) {
var title = androidDateArry[i][0];
var url = androidDateArry[i][1];
var smallimg = androidDateArry[i][2];
var amp = '&';
if (url.indexOf(amp) !== -1) {
url = url.replace(new RegExp(amp, 'g'), '&');
}
androidData.list.push({title: title, url: url, smallimg: smallimg});
}
for (i = 0; i < iosDateArry.length; i++) {
var amp = '&';
if (iosDateArry[i][1].indexOf(amp) !== -1) {
iosDateArry[i][1] = iosDateArry[i][1].replace(new RegExp(amp, 'g'), '&');
}
iosData.list.push({title: iosDateArry[i][0], url: iosDateArry[i][1], smallimg: iosDateArry[i][2]});
}
if (platform.isIos()) {
// 获取数据后,通过 template 模板渲染到页面的
this.addDate(document.querySelector('.group'), iosData);
}
else {
// 获取数据后,通过 template 模板渲染到页面的
this.addDate(document.querySelector('.group'), androidData);
}
},
addDate: function (htmldom, date) {
// 获取数据后,通过 template 模板渲染到页面的
templates.render(htmldom, date).then(function (html) {
htmldom.innerHTML = html;
});
}
};
customElement.prototype.build = function () {
addRecomdHtml.init();
};
return customElement;
});
|
{
"content_hash": "6cd2723073834c720e2d57e229089d42",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 115,
"avg_line_length": 38.39506172839506,
"alnum_prop": 0.49163987138263665,
"repo_name": "mipengine/mip-extensions-platform",
"id": "c35b6d3591ad4ce9691055f8dc7e03f815532a9d",
"size": "3242",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mip-cr173-addrecomd/mip-cr173-addrecomd.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "966670"
},
{
"name": "HTML",
"bytes": "24624"
},
{
"name": "JavaScript",
"bytes": "11914398"
}
],
"symlink_target": ""
}
|
package com.github.landyking.learnActiviti;
import com.github.landyking.learnActiviti.util.ModelRollBack;
import org.activiti.engine.*;
import org.activiti.engine.history.HistoricActivityInstance;
import org.activiti.engine.history.HistoricProcessInstance;
import org.activiti.engine.history.HistoricTaskInstance;
import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
import org.activiti.engine.impl.history.HistoryLevel;
import org.activiti.engine.repository.Deployment;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import org.apache.log4j.PropertyConfigurator;
import java.util.Collections;
import java.util.List;
/**
*
* @author: landy
* @date: 2017/7/5 9:57
* note:
*/
public class LeaveBillRollBackTest {
public static void main(String[] args) {
PropertyConfigurator.configure(BasicUseEngine.class.getResourceAsStream("/log4j-2.properties"));
ProcessEngineConfiguration configuration = new StandaloneProcessEngineConfiguration()
.setJdbcUrl("jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000")
.setJdbcDriver("org.h2.Driver")
.setJdbcUsername("sa")
.setJdbcPassword("")
// .setHistoryLevel(HistoryLevel.FULL)
.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
ProcessEngine processEngine = configuration.buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
Deployment deploy = repositoryService.createDeployment().addClasspathResource("leaveBill.bpmn20.xml").deploy();
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(deploy.getId()).singleResult();
RuntimeService runtimeService = processEngine.getRuntimeService();
processEngine.getIdentityService().setAuthenticatedUserId("landyking");
ProcessInstance instance = runtimeService.startProcessInstanceById(processDefinition.getId());
String processInstanceId = instance.getId();
System.out.println("############################################启动流程,id: " + processInstanceId +
", name: " + instance.getName());
TaskService taskService = processEngine.getTaskService();
HistoryService historyService = processEngine.getHistoryService();
showInstance(processInstanceId, historyService);
showTaskList(processInstanceId, taskService);
showHistoryTaskList(processInstanceId, historyService);
showActivityList(processInstanceId, historyService);
System.out.println("\n\n############################################提交请假单");
Task user = taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee("user").singleResult();
taskService.complete(user.getId(), Collections.<String, Object>singletonMap("hello", "world"));
showInstance(processInstanceId, historyService);
showTaskList(processInstanceId, taskService);
showHistoryTaskList(processInstanceId, historyService);
showActivityList(processInstanceId, historyService);
System.out.println("\n\n############################################撤销请假单");
Task leader = taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee("leader").singleResult();
new ModelRollBack(processEngine).rollBackWorkFlow(leader.getId());
showInstance(processInstanceId, historyService);
showTaskList(processInstanceId, taskService);
showHistoryTaskList(processInstanceId, historyService);
showActivityList(processInstanceId, historyService);
System.out.println("\n\n############################################提交请假单");
user = taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee("user").singleResult();
taskService.complete(user.getId(), Collections.<String, Object>singletonMap("hello", "world"));
showInstance(processInstanceId, historyService);
showTaskList(processInstanceId, taskService);
showHistoryTaskList(processInstanceId, historyService);
showActivityList(processInstanceId, historyService);
System.out.println("\n\n############################################上级领导审批");
leader = taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee("leader").singleResult();
taskService.complete(leader.getId(), Collections.<String, Object>singletonMap("test", "okbeng"));
showInstance(processInstanceId, historyService);
showTaskList(processInstanceId, taskService);
showHistoryTaskList(processInstanceId, historyService);
showActivityList(processInstanceId, historyService);
System.out.println("\n\n############################################经理审批");
Task boss = taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee("boss").singleResult();
taskService.complete(boss.getId(), Collections.<String, Object>singletonMap("mama", "didadada"));
showInstance(processInstanceId, historyService);
showTaskList(processInstanceId, taskService);
showHistoryTaskList(processInstanceId, historyService);
showActivityList(processInstanceId, historyService);
}
private static void showTaskList(String processInstanceId, TaskService taskService) {
List<Task> list = taskService.createTaskQuery().processInstanceId(processInstanceId).list();
System.out.println("当前任务列表展示");
System.out.println("\tall active task size: " + list.size());
for (Task one : list) {
System.out.println("\t__________________");
System.out.println("\ttask create time: " + Tools.longFmt(one.getCreateTime()));
System.out.println("\ttask due date: " + one.getDueDate());
System.out.println("\ttask name: " + one.getName());
System.out.println("\ttask assignee: " + one.getAssignee());
System.out.println("\ttask definition key: " + one.getTaskDefinitionKey());
System.out.println("\ttask execution id: " + one.getExecutionId());
System.out.println("\ttask id: " + one.getId());
}
}
private static void showActivityList(String processInstanceId, HistoryService historyService) {
System.out.println("历史活动列表展示");
List<HistoricActivityInstance> list = historyService.createHistoricActivityInstanceQuery().processInstanceId(processInstanceId).orderByHistoricActivityInstanceStartTime().asc().list();
System.out.println("\tall activity size: " + list.size());
for (HistoricActivityInstance one : list) {
System.out.println("\t_______________");
System.out.println("\tactivity start time: " + Tools.longFmt(one.getStartTime()));
System.out.println("\tactivity task id: " + one.getTaskId());
System.out.println("\tactivity id: " + one.getActivityId());
System.out.println("\tactivity name: " + one.getActivityName());
System.out.println("\tactivity assignee: " + one.getAssignee());
System.out.println("\tactivity type: " + one.getActivityType());
System.out.println("\tactivity end time: " + Tools.longFmt(one.getEndTime()));
}
}
private static void showHistoryTaskList(String processInstanceId, HistoryService historyService) {
System.out.println("历史任务列表展示");
List<HistoricTaskInstance> historyTaskList = historyService.createHistoricTaskInstanceQuery().processInstanceId(processInstanceId)
.orderByTaskCreateTime().asc().list();
System.out.println("\tall historic task size: " + historyTaskList.size());
for (HistoricTaskInstance historyTask : historyTaskList) {
System.out.println("\t___________");
System.out.println("\thistory task id: " + historyTask.getId());
System.out.println("\thistory task start time: " + Tools.longFmt(historyTask.getStartTime()));
System.out.println("\thistory task name: " + historyTask.getName());
System.out.println("\thistory task description: " + historyTask.getDescription());
System.out.println("\thistory task end time: " + Tools.longFmt(historyTask.getEndTime()));
}
}
private static void showInstance(String processInstanceId, HistoryService historyService) {
System.out.println("流程实例详情");
HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstanceId).singleResult();
System.out.println("\tinstance name: " + historicProcessInstance.getName());
System.out.println("\tinstance start time: " + Tools.longFmt(historicProcessInstance.getStartTime()));
System.out.println("\tinstance start user id: " + historicProcessInstance.getStartUserId());
System.out.println("\tinstance variables: " + historicProcessInstance.getProcessVariables().toString());
System.out.println("\tinstance end time: " + Tools.longFmt(historicProcessInstance.getEndTime()));
}
}
|
{
"content_hash": "e8a0688127fc44e12fe37b67b19350bd",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 192,
"avg_line_length": 61.4635761589404,
"alnum_prop": 0.6904428402111842,
"repo_name": "landyking/daydayup",
"id": "96abd497ee5a8ce430bc0582c4260d87f27ee3f5",
"size": "9401",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "learn-activiti/src/test/java/com/github/landyking/learnActiviti/LeaveBillRollBackTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "31"
},
{
"name": "CSS",
"bytes": "267097"
},
{
"name": "HTML",
"bytes": "285090"
},
{
"name": "Java",
"bytes": "310566"
},
{
"name": "JavaScript",
"bytes": "3701816"
},
{
"name": "PHP",
"bytes": "20012"
}
],
"symlink_target": ""
}
|
<?php
/**
* InvoicesTest
*
* PHP version 5
*
* @category Class
* @package SidneyAllen\XeroPHP
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Accounting API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.0.0
* Contact: api@xero.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.3.4
*/
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Please update the test case below to test the model.
*/
namespace SidneyAllen\XeroPHP;
/**
* InvoicesTest Class Doc Comment
*
* @category Class
* @description Invoices
* @package SidneyAllen\XeroPHP
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class InvoicesTest extends \PHPUnit_Framework_TestCase
{
/**
* Setup before running any test case
*/
public static function setUpBeforeClass()
{
}
/**
* Setup before running each test case
*/
public function setUp()
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
{
}
/**
* Test "Invoices"
*/
public function testInvoices()
{
}
/**
* Test attribute "invoices"
*/
public function testPropertyInvoices()
{
}
}
|
{
"content_hash": "ee3700ecc2e6a6ee248a6233248ea6c5",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 109,
"avg_line_length": 18.847058823529412,
"alnum_prop": 0.6260923845193508,
"repo_name": "unaio/una",
"id": "16258264cfd6fede4ee862f9547b943cdab8d618",
"size": "1602",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "modules/boonex/xero/plugins/xeroapi/xero-php-oauth2/test/Model/InvoicesTest.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "9522763"
},
{
"name": "Dockerfile",
"bytes": "2367"
},
{
"name": "HTML",
"bytes": "6194660"
},
{
"name": "JavaScript",
"bytes": "24733694"
},
{
"name": "Less",
"bytes": "3020615"
},
{
"name": "Makefile",
"bytes": "1196"
},
{
"name": "PHP",
"bytes": "158741504"
},
{
"name": "Ruby",
"bytes": "210"
},
{
"name": "Shell",
"bytes": "3327"
},
{
"name": "Smarty",
"bytes": "3461"
}
],
"symlink_target": ""
}
|
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "5b502c135a440a16d30a82d7b861c70a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "133ea24a4d5df449d1647d6bae52cedbfd020cc6",
"size": "184",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Ferreyranthus vernonioides/ Syn. Liabum vernonioides/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
namespace ROCKSDB_NAMESPACE {
const char* Status::CopyState(const char* state) {
#ifdef OS_WIN
const size_t cch = std::strlen(state) + 1; // +1 for the null terminator
char* result = new char[cch];
errno_t ret
#if defined(_MSC_VER)
;
#else
__attribute__((__unused__));
#endif
ret = strncpy_s(result, cch, state, cch - 1);
result[cch - 1] = '\0';
assert(ret == 0);
return result;
#else
const size_t cch = std::strlen(state) + 1; // +1 for the null terminator
return std::strncpy(new char[cch], state, cch);
#endif
}
static const char* msgs[static_cast<int>(Status::kMaxSubCode)] = {
"", // kNone
"Timeout Acquiring Mutex", // kMutexTimeout
"Timeout waiting to lock key", // kLockTimeout
"Failed to acquire lock due to max_num_locks limit", // kLockLimit
"No space left on device", // kNoSpace
"Deadlock", // kDeadlock
"Stale file handle", // kStaleFile
"Memory limit reached", // kMemoryLimit
"Space limit reached", // kSpaceLimit
"No such file or directory", // kPathNotFound
// KMergeOperandsInsufficientCapacity
"Insufficient capacity for merge operands",
// kManualCompactionPaused
"Manual compaction paused",
};
Status::Status(Code _code, SubCode _subcode, const Slice& msg,
const Slice& msg2)
: code_(_code), subcode_(_subcode), sev_(kNoError) {
assert(code_ != kOk);
assert(subcode_ != kMaxSubCode);
const size_t len1 = msg.size();
const size_t len2 = msg2.size();
const size_t size = len1 + (len2 ? (2 + len2) : 0);
char* const result = new char[size + 1]; // +1 for null terminator
memcpy(result, msg.data(), len1);
if (len2) {
result[len1] = ':';
result[len1 + 1] = ' ';
memcpy(result + len1 + 2, msg2.data(), len2);
}
result[size] = '\0'; // null terminator for C style string
state_ = result;
}
std::string Status::ToString() const {
char tmp[30];
const char* type;
switch (code_) {
case kOk:
return "OK";
case kNotFound:
type = "NotFound: ";
break;
case kCorruption:
type = "Corruption: ";
break;
case kNotSupported:
type = "Not implemented: ";
break;
case kInvalidArgument:
type = "Invalid argument: ";
break;
case kIOError:
type = "IO error: ";
break;
case kMergeInProgress:
type = "Merge in progress: ";
break;
case kIncomplete:
type = "Result incomplete: ";
break;
case kShutdownInProgress:
type = "Shutdown in progress: ";
break;
case kTimedOut:
type = "Operation timed out: ";
break;
case kAborted:
type = "Operation aborted: ";
break;
case kBusy:
type = "Resource busy: ";
break;
case kExpired:
type = "Operation expired: ";
break;
case kTryAgain:
type = "Operation failed. Try again.: ";
break;
case kColumnFamilyDropped:
type = "Column family dropped: ";
break;
default:
snprintf(tmp, sizeof(tmp), "Unknown code(%d): ",
static_cast<int>(code()));
type = tmp;
break;
}
std::string result(type);
if (subcode_ != kNone) {
uint32_t index = static_cast<int32_t>(subcode_);
assert(sizeof(msgs) > index);
result.append(msgs[index]);
}
if (state_ != nullptr) {
result.append(state_);
}
return result;
}
} // namespace ROCKSDB_NAMESPACE
|
{
"content_hash": "faeeb63d3270fd885a221cc264ff13cd",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 75,
"avg_line_length": 29.293650793650794,
"alnum_prop": 0.5529666756976429,
"repo_name": "Simran-B/arangodb",
"id": "3b1ffde566b8943f7b705375fb34de42ac7f611d",
"size": "4304",
"binary": false,
"copies": "2",
"ref": "refs/heads/devel",
"path": "3rdParty/rocksdb/6.8/util/status.cc",
"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"
}
],
"symlink_target": ""
}
|
package templates
import (
"strings"
"unicode"
"github.com/knq/chromedp/cmd/chromedp-gen/internal"
"github.com/knq/snaker"
)
const (
commentWidth = 80
commentPrefix = `// `
)
var toUpper = map[string]bool{
"DOM": true,
"X": true,
"Y": true,
}
var keep = map[string]bool{
"JavaScript": true,
}
var badHTMLReplacer = strings.NewReplacer(
"<", "<",
">", ">",
">", ">",
)
// formatComment formats a comment.
func formatComment(s, chop, newstr string) string {
s = strings.TrimPrefix(s, chop)
s = strings.TrimSpace(internal.CodeRE.ReplaceAllString(s, ""))
s = badHTMLReplacer.Replace(s)
l := len(s)
if newstr != "" && l > 0 {
if i := strings.IndexFunc(s, unicode.IsSpace); i != -1 {
firstWord, remaining := s[:i], s[i:]
if snaker.IsInitialism(firstWord) || toUpper[firstWord] {
s = strings.ToUpper(firstWord)
} else if keep[firstWord] {
s = firstWord
} else {
s = strings.ToLower(firstWord[:1]) + firstWord[1:]
}
s += remaining
}
}
s = newstr + strings.TrimSuffix(s, ".")
if l < 1 {
s += "[no description]"
}
s += "."
s, _ = internal.MisspellReplacer.Replace(s)
return wrap(s, commentWidth-len(commentPrefix), commentPrefix)
}
// wrap wraps a line of text to the specified width, and adding the prefix to
// each wrapped line.
func wrap(s string, width int, prefix string) string {
words := strings.Fields(strings.TrimSpace(s))
if len(words) == 0 {
return s
}
wrapped := prefix + words[0]
spaceLeft := width - len(wrapped)
for _, word := range words[1:] {
if len(word)+1 > spaceLeft {
wrapped += "\n" + prefix + word
spaceLeft = width - len(word)
} else {
wrapped += " " + word
spaceLeft -= 1 + len(word)
}
}
return wrapped
}
|
{
"content_hash": "7f058cd5a7c1aad69ba853e7f1232bbf",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 77,
"avg_line_length": 20.666666666666668,
"alnum_prop": 0.6267281105990783,
"repo_name": "AdityaMili95/Wallte",
"id": "d3bc324f30803f7849bd0a666ee78ade908e276b",
"size": "1849",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/github.com/knq/chromedp/cmd/chromedp-gen/templates/util.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "104640"
}
],
"symlink_target": ""
}
|
package com.google.cloud.tools.appengine.operations.cloudsdk;
import com.google.cloud.tools.appengine.AppEngineException;
import com.google.cloud.tools.appengine.operations.cloudsdk.serialization.CloudSdkVersion;
import com.google.common.base.Preconditions;
import javax.annotation.Nullable;
/** The Cloud SDK that was found is too old (generally before 133.0.0). */
public class CloudSdkOutOfDateException extends AppEngineException {
private static final String MESSAGE = "Cloud SDK versions before %s are not supported";
@Nullable private CloudSdkVersion installedVersion;
private final CloudSdkVersion requiredVersion;
/**
* Installed version is too old.
*
* @param installedVersion version of the Cloud SDK we found
* @param requiredVersion minimum version of the Cloud SDK we want
*/
public CloudSdkOutOfDateException(
CloudSdkVersion installedVersion, CloudSdkVersion requiredVersion) {
super(
"Requires version " + requiredVersion + " or later but found version " + installedVersion);
this.requiredVersion = Preconditions.checkNotNull(requiredVersion);
this.installedVersion = Preconditions.checkNotNull(installedVersion);
}
/**
* Installed version predates version files in the Cloud SDK.
*
* @param requiredVersion minimum version of the Cloud SDK we want
*/
public CloudSdkOutOfDateException(CloudSdkVersion requiredVersion) {
super(String.format(MESSAGE, requiredVersion.toString()));
this.requiredVersion = requiredVersion;
}
/**
* Returns the minimum required version of the cloud SDK for the current operation.
*
* @return minimum acceptable version of the Cloud SDK
*/
public CloudSdkVersion getRequiredVersion() {
return requiredVersion;
}
/**
* Returns the version of the local cloud SDK if known, otherwise null.
*
* @return actual version of the Cloud SDK, or null if it's really old.
*/
@Nullable
public CloudSdkVersion getInstalledVersion() {
return installedVersion;
}
}
|
{
"content_hash": "7113b02604dd3e57ee3d8f584f787770",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 99,
"avg_line_length": 33.81666666666667,
"alnum_prop": 0.7516017742730409,
"repo_name": "GoogleCloudPlatform/appengine-plugins-core",
"id": "5e83e3b16b0c9fdfe238d76cc330466587eaacc1",
"size": "2623",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/CloudSdkOutOfDateException.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "369"
},
{
"name": "Java",
"bytes": "674879"
},
{
"name": "Shell",
"bytes": "1102"
}
],
"symlink_target": ""
}
|
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Core;
using Azure.ResourceManager.Network;
namespace Azure.ResourceManager.Network.Models
{
/// <summary> Creates or updates the specified ExpressRoutePort resource. </summary>
public partial class ExpressRoutePortCreateOrUpdateOperation : Operation<ExpressRoutePort>, IOperationSource<ExpressRoutePort>
{
private readonly OperationInternals<ExpressRoutePort> _operation;
private readonly ArmResource _operationBase;
/// <summary> Initializes a new instance of ExpressRoutePortCreateOrUpdateOperation for mocking. </summary>
protected ExpressRoutePortCreateOrUpdateOperation()
{
}
internal ExpressRoutePortCreateOrUpdateOperation(ArmResource operationsBase, ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response)
{
_operation = new OperationInternals<ExpressRoutePort>(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.AzureAsyncOperation, "ExpressRoutePortCreateOrUpdateOperation");
_operationBase = operationsBase;
}
/// <inheritdoc />
public override string Id => _operation.Id;
/// <inheritdoc />
public override ExpressRoutePort Value => _operation.Value;
/// <inheritdoc />
public override bool HasCompleted => _operation.HasCompleted;
/// <inheritdoc />
public override bool HasValue => _operation.HasValue;
/// <inheritdoc />
public override Response GetRawResponse() => _operation.GetRawResponse();
/// <inheritdoc />
public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
/// <inheritdoc />
public override ValueTask<Response> UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
/// <inheritdoc />
public override ValueTask<Response<ExpressRoutePort>> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken);
/// <inheritdoc />
public override ValueTask<Response<ExpressRoutePort>> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken);
ExpressRoutePort IOperationSource<ExpressRoutePort>.CreateResult(Response response, CancellationToken cancellationToken)
{
using var document = JsonDocument.Parse(response.ContentStream);
return new ExpressRoutePort(_operationBase, ExpressRoutePortData.DeserializeExpressRoutePortData(document.RootElement));
}
async ValueTask<ExpressRoutePort> IOperationSource<ExpressRoutePort>.CreateResultAsync(Response response, CancellationToken cancellationToken)
{
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
return new ExpressRoutePort(_operationBase, ExpressRoutePortData.DeserializeExpressRoutePortData(document.RootElement));
}
}
}
|
{
"content_hash": "ede74d58aa16fa18f117e63ae2884449",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 231,
"avg_line_length": 48.51428571428571,
"alnum_prop": 0.7449941107184923,
"repo_name": "AsrOneSdk/azure-sdk-for-net",
"id": "803dfe7f960b4f64db6ebf8a4f980b1f2f3fef1b",
"size": "3534",
"binary": false,
"copies": "1",
"ref": "refs/heads/psSdkJson6Current",
"path": "sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/ExpressRoutePortCreateOrUpdateOperation.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "15473"
},
{
"name": "Bicep",
"bytes": "13438"
},
{
"name": "C#",
"bytes": "72203239"
},
{
"name": "CSS",
"bytes": "6089"
},
{
"name": "Dockerfile",
"bytes": "5652"
},
{
"name": "HTML",
"bytes": "6169271"
},
{
"name": "JavaScript",
"bytes": "16012"
},
{
"name": "PowerShell",
"bytes": "649218"
},
{
"name": "Shell",
"bytes": "31287"
},
{
"name": "Smarty",
"bytes": "11135"
}
],
"symlink_target": ""
}
|
/*global document, confirm, $ */
import Nanoajax from 'nanoajax'
import qs from 'qs'
var usersList = {
init: function() {
var scope = document.querySelector('.user-list')
if (scope != null) {
this._ajax = Nanoajax.ajax
this._scope = scope
this._table = this._scope.querySelector('#filtered-list tbody')
this._alert = document.querySelector('.alert')
this._handleActivate = this._activate.bind(this)
this._handleDeactivate = this._deactivate.bind(this)
this._handleRemove = this._remove.bind(this)
this._handleEdit = this._edit.bind(this)
this._handleUpdate = this._update.bind(this)
this._handleCloseUpdate = this._closeUpdate.bind(this)
this._handleAdd = this._add.bind(this)
this._bindEvents()
}
if (document.querySelectorAll('#filtered-list').length > 0) {
var orderables = document.querySelectorAll('#filtered-list thead th')
var columns = []
Array.prototype.forEach.call(orderables, orderable => {
var order = orderable.getAttribute('data-orderable')
if (order != null) {
columns.push({orderable: order == 'true' ? true : false})
} else {
columns.push(null)
}
})
this.table = $('#filtered-list').DataTable({
paging: false,
info: false,
columns: columns
})
}
if (document.querySelectorAll('#filtered-list-url').length > 0) {
this._handleFormUserRoleSubmit = this._formUserRoleSubmit.bind(this)
this._formUserRole = document.querySelector('[data-user-role]')
this._formUserRoleSave = document.querySelector('[data-save-user-role]')
if (
typeof this._formUserRole !== 'undefined' &&
this._formUserRole !== null
) {
this._formUserRole.addEventListener(
'submit',
this._handleFormUserRoleSubmit
)
}
}
},
_bindEvents: function() {
this._activateBtn = this._scope.querySelectorAll('[data-activate]')
this._deactivateBtn = this._scope.querySelectorAll('[data-deactivate]')
this._removeBtn = this._scope.querySelectorAll('[data-remove]')
this._editBtn = this._scope.querySelectorAll('[data-edit]')
this._updateBtn = this._scope.querySelectorAll('[data-update]')
this._addBtn = this._scope.querySelector('[data-add-user]')
Array.prototype.forEach.call(this._activateBtn, btn => {
btn.removeEventListener('click', this._handleActivate)
btn.addEventListener('click', this._handleActivate)
})
Array.prototype.forEach.call(this._deactivateBtn, btn => {
btn.removeEventListener('click', this._handleDeactivate)
btn.addEventListener('click', this._handleDeactivate)
})
Array.prototype.forEach.call(this._removeBtn, btn => {
btn.removeEventListener('click', this._handleRemove)
btn.addEventListener('click', this._handleRemove)
})
Array.prototype.forEach.call(this._editBtn, btn => {
btn.removeEventListener('click', this._handleEdit, true)
btn.addEventListener('click', this._handleEdit, true)
})
Array.prototype.forEach.call(this._updateBtn, btn => {
btn.removeEventListener('click', this._handleUpdate, true)
btn.addEventListener('click', this._handleUpdate, true)
})
if (typeof this._addBtn !== 'undefined' && this._addBtn !== null) {
this._addBtn.addEventListener('click', this._handleAdd)
}
},
_formUserRoleSubmit: function(e) {
e.preventDefault()
var inputs = this._formUserRole.querySelectorAll('input[type=checkbox]')
var data = {}
Array.prototype.forEach.call(inputs, input => {
if (!input.disabled) {
var name = input.getAttribute('name')
if (data[name] == null) {
data[name] = []
}
if (input.checked) {
data[name].push(input.getAttribute('value'))
}
}
})
var toSave = qs.stringify(data)
this._ajax(
{
url: '/abe/list-url/save',
body: toSave,
method: 'post'
},
() => {}
)
},
_activate: function(e) {
var target = e.currentTarget
var id = target.getAttribute('data-user-id')
var toSave = qs.stringify({
id: id
})
this._ajax(
{
url: '/abe/users/activate',
body: toSave,
method: 'post'
},
() => {
var childGlyph = target.querySelector('.fa')
childGlyph.classList.remove('fa-eye', 'text-info')
childGlyph.classList.add('fa-eye-slash', 'text-danger')
target.classList.remove('fa-eye-slash', 'text-danger')
target.classList.add('fa-eye', 'text-info')
target.removeEventListener('click', this._handleActivate)
target.addEventListener('click', this._handleDeactivate)
}
)
},
_deactivate: function(e) {
var target = e.currentTarget
var id = target.getAttribute('data-user-id')
var toSave = qs.stringify({
id: id
})
this._ajax(
{
url: '/abe/users/deactivate',
body: toSave,
method: 'post'
},
() => {
var childGlyph = target.querySelector('.fa')
childGlyph.classList.remove('fa-eye-slash', 'text-danger')
childGlyph.classList.add('fa-eye', 'text-info')
target.classList.remove('fa-eye', 'text-info')
target.classList.add('fa-eye-slash', 'text-danger')
target.removeEventListener('click', this._handleDeactivate)
target.addEventListener('click', this._handleActivate)
}
)
},
_edit: function(e) {
var parent = e.currentTarget.parentNode.parentNode
e.currentTarget.removeEventListener('click', this._handleEdit, true)
parent.classList.add('editing')
var closeUpdateBtn = parent.querySelector('[data-close-update]')
closeUpdateBtn.removeEventListener('click', this._handleCloseUpdate)
closeUpdateBtn.addEventListener('click', this._handleCloseUpdate)
},
_closeFormUpdate(target) {
var parent = target.parentNode.parentNode.parentNode
var edit = parent.querySelector('[data-edit]')
parent.classList.remove('editing')
edit.addEventListener('click', this._handleEdit, true)
target.removeEventListener('click', this._handleCloseUpdate)
},
_closeUpdate: function(e) {
this._closeFormUpdate(e.currentTarget)
},
_update: function(e) {
var parent = e.currentTarget.parentNode.parentNode.parentNode
var target = e.currentTarget
var data = {
id: target.getAttribute('data-user-id')
}
var inputs = parent.querySelectorAll('.form-control')
var msg = ''
var hasError = false
Array.prototype.forEach.call(
inputs,
function(input) {
data[input.name] = input.value
if (input.name === 'email' && !this._validateEmail(input.value)) {
hasError = true
input.parentNode.classList.add('has-error')
this._alert.classList.remove('hidden')
msg += 'email is invalid<br />'
return
} else if (input.value.trim() === '') {
hasError = true
input.parentNode.classList.add('has-error')
this._alert.classList.remove('hidden')
msg += input.name + ' is invalid<br />'
return
} else {
input.parentNode.classList.remove('has-error')
}
}.bind(this)
)
if (hasError) {
this._alert.innerHTML = msg
return
} else {
this._alert.classList.add('hidden')
this._alert.innerHTML = ''
}
var toSave = qs.stringify(data)
this._ajax(
{
url: '/abe/users/update',
body: toSave,
method: 'post'
},
(code, responseText) => {
var response = JSON.parse(responseText)
if (response.success === 1) {
Array.prototype.forEach.call(inputs, function(input) {
input.parentNode.parentNode.querySelector('.value').innerHTML =
input.value
})
this._closeFormUpdate(target)
} else {
this._alert.classList.remove('hidden')
this._alert.innerHTML = response.message
}
}
)
},
_remove: function(e) {
var confirmDelete = confirm(e.currentTarget.getAttribute('data-text'))
if (!confirmDelete) return
var target = e.currentTarget
var id = target.getAttribute('data-user-id')
var toSave = qs.stringify({
id: id
})
this._ajax(
{
url: '/abe/users/remove',
body: toSave,
method: 'post'
},
() => {
target.parentNode.parentNode.remove()
}
)
},
_validateEmail: function(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
return re.test(email)
},
_add: function() {
this._alert.classList.add('hidden')
var username = document.querySelector('[data-add-user-username]')
if (
typeof username.value === 'undefined' ||
username.value === null ||
username.value === ''
) {
username.parentNode.classList.add('has-error')
return
}
username.parentNode.classList.remove('has-error')
var name = document.querySelector('[data-add-user-name]')
if (
typeof name.value === 'undefined' ||
name.value === null ||
name.value === ''
) {
name.parentNode.classList.add('has-error')
return
}
name.parentNode.classList.remove('has-error')
var email = document.querySelector('[data-add-user-email]')
if (
typeof email.value === 'undefined' ||
email.value === null ||
email.value === ''
) {
email.parentNode.classList.add('has-error')
return
}
if (!this._validateEmail(email.value)) {
email.parentNode.classList.add('has-error')
this._alert.classList.remove('hidden')
this._alert.innerHTML = 'email is invalid'
return
}
email.parentNode.classList.remove('has-error')
var password = document.querySelector('[data-add-user-password]')
if (
typeof password.value === 'undefined' ||
password.value === null ||
password.value === ''
) {
password.parentNode.classList.add('has-error')
return
}
password.parentNode.classList.remove('has-error')
var role = document.querySelector('[data-add-user-role]')
var toSave = qs.stringify({
username: username.value,
name: name.value,
email: email.value,
password: password.value,
role: role.value
})
this._ajax(
{
url: '/abe/users/add',
body: toSave,
method: 'post'
},
(code, responseText) => {
var data = JSON.parse(responseText)
if (data.success === 1) {
var tr = document.createElement('tr')
var oldTr = document.querySelector('[data-user-base]')
if (typeof oldTr !== 'undefined' && oldTr !== null) {
tr.innerHTML = oldTr.innerHTML
var tdUsername = tr.querySelector('.td-username')
tdUsername.querySelector('.value').innerHTML = data.user.username
tdUsername.querySelector('input').value = data.user.username
var tdName = tr.querySelector('.td-name')
tdName.querySelector('.value').innerHTML = data.user.name
tdName.querySelector('input').value = data.user.name
var tdEmail = tr.querySelector('.td-email')
tdEmail.querySelector('.value').innerHTML = data.user.email
tdEmail.querySelector('input').value = data.user.email
var tdRole = tr.querySelector('.td-role')
tdRole.querySelector('.value').innerHTML = data.user.role.name
var tdRoleOptions = tdRole.querySelectorAll('select option')
Array.prototype.forEach.call(tdRoleOptions, function(option) {
if (option.value === data.user.role.name) {
option.selected = 'selected'
}
})
var tdActive = tr.querySelector('.td-active')
var glypEyeClose = tdActive.querySelector('.fa-eye-slash')
glypEyeClose.addEventListener('click', this._handleActivate, true)
glypEyeClose.setAttribute('data-user-id', data.user.id)
var tdActions = tr.querySelector('.td-actions')
var glypEdit = tdActions.querySelector('.fa-pencil')
glypEdit.addEventListener('click', this._handleEdit, true)
glypEdit.setAttribute('data-user-id', data.user.id)
var glypOk = tdActions.querySelector('.fa-ok')
glypOk.addEventListener('click', this._handleUpdate, true)
glypOk.setAttribute('data-user-id', data.user.id)
var glypCloseUpdate = tdActions.querySelector('.fa-remove')
glypCloseUpdate.setAttribute('data-user-id', data.user.id)
// glypCloseUpdate.addEventListener('click', this._handleCloseUpdate, true)
var glypRemove = tdActions.querySelector('.fa-trash')
glypRemove.setAttribute('data-user-id', data.user.id)
glypRemove.addEventListener('click', this._handleRemove, true)
}
this._table.appendChild(tr)
username.value = ''
name.value = ''
email.value = ''
password.value = ''
} else {
this._alert.classList.remove('hidden')
this._alert.innerHTML = data.message
}
}
)
}
}
export default usersList
// var userListEle = document.querySelector('.user-list');
// if(typeof userListEle !== 'undefined' && userListEle !== null) {
// usersList.init(userListEle)
// }
|
{
"content_hash": "ea3463b136b849d345c4b5e6e910af12",
"timestamp": "",
"source": "github",
"line_count": 423,
"max_line_length": 165,
"avg_line_length": 32.43735224586288,
"alnum_prop": 0.5976969608629109,
"repo_name": "abecms/abecms",
"id": "9ef52dabd61967471d8cb278dc9063e3fca0a6e9",
"size": "13721",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/server/public/abecms/scripts/modules/UserList.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "197285"
},
{
"name": "HTML",
"bytes": "172530"
},
{
"name": "JavaScript",
"bytes": "1313836"
},
{
"name": "Python",
"bytes": "683"
},
{
"name": "SCSS",
"bytes": "163293"
}
],
"symlink_target": ""
}
|
There used to be a website (an old one, from when Haxe spelled "haXe") that got you started.
But that is no more. I decided to get some of that back.
Based upon the information from the old site and my own need to document this.
### Original haxejs.org
You can find the original data with [WayBack Machine](https://web.archive.org/web/20130917142452/http://www.haxejs.org/externs)
|
{
"content_hash": "3372bbed93ba730823b55f404e917605",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 127,
"avg_line_length": 48,
"alnum_prop": 0.7604166666666666,
"repo_name": "MatthijsKamstra/haxejs",
"id": "03a701329e23831779067af8c10156197d14b815",
"size": "407",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/README.md",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
/*
* Maintains a lookup of connected IRC clients. These connection are transient
* and may be closed for a variety of reasons.
*/
"use strict";
var RECONNECT_TIME_MS = 10000;
var stats = require("../config/stats");
var BridgedClient = require("./client").BridgedClient;
var log = require("../logging").get("client-pool");
// The list of bot clients on servers (not specific users)
var botClients = {
// server_domain: BridgedClient
};
// list of virtual users on servers
var virtualClients = {
// server_domain: {
// nicks: {
// <nickname>: BridgedClient
// },
// userIds: {
// <user_id>: BridgedClient
// },
// desiredNicks: {
// <nickname>: BridgedClient
// }
// }
};
module.exports.addBot = function(server, client) {
if (botClients[server.domain]) {
log.error(
"Bot for %s already exists (old=%s new=%s) - disconnecting it.",
server.domain, botClients[server.domain]._id, client._id
);
botClients[server.domain].disconnect();
}
botClients[server.domain] = client;
};
module.exports.getBot = function(server) {
return botClients[server.domain];
};
module.exports.createIrcClient = function(ircUser, matrixUser, isBot) {
var bridgedClient = new BridgedClient(ircUser, matrixUser, isBot);
var server = bridgedClient.server;
if (virtualClients[server.domain] === undefined) {
virtualClients[server.domain] = {
nicks: {},
userIds: {},
desiredNicks: {}
};
}
// add event listeners
bridgedClient.on("client-connected", onClientConnected);
bridgedClient.on("client-disconnected", onClientDisconnected);
bridgedClient.on("nick-change", onNickChange);
// store the bridged client immediately in the pool even though it isn't
// connected yet, else we could spawn 2 clients for a single user if this
// function is called quickly.
virtualClients[server.domain].userIds[bridgedClient.userId] = bridgedClient;
virtualClients[server.domain].desiredNicks[bridgedClient.nick] = bridgedClient;
// Does this server have a max clients limit? If so, check if the limit is
// reached and start cycling based on oldest time.
checkClientLimit(server);
return bridgedClient;
};
module.exports.getBridgedClientByUserId = function(server, userId) {
if (!virtualClients[server.domain]) {
return undefined;
}
var cli = virtualClients[server.domain].userIds[userId];
if (!cli || cli.isDead()) {
return undefined;
}
return cli;
};
module.exports.getBridgedClientByNick = function(server, nick) {
if (!virtualClients[server.domain]) {
return undefined;
}
var cli = virtualClients[server.domain].nicks[nick];
if (!cli || cli.isDead()) {
return undefined;
}
return cli;
};
module.exports.getBridgedClientsForUserId = function(userId) {
var domainList = Object.keys(virtualClients);
var clientList = [];
domainList.forEach(function(domain) {
var cli = virtualClients[domain].userIds[userId];
if (cli && !cli.isDead()) {
clientList.push(cli);
}
});
return clientList;
};
function checkClientLimit(server) {
if (server.maxClients === 0) {
return;
}
var numConnections = getNumberOfConnections(server);
sendConnectionMetric(server);
if (numConnections < server.maxClients) {
// under the limit, we're good for now.
log.debug(
"%s active connections on %s",
numConnections, server.domain
);
return;
}
log.debug(
"%s active connections on %s (limit %s)",
numConnections, server.domain, server.maxClients
);
// find the oldest client to kill.
var oldest = null;
Object.keys(virtualClients[server.domain].nicks).forEach(function(nick) {
var client = virtualClients[server.domain].nicks[nick];
if (!client) {
// possible since undefined/null values can be present from culled entries
return;
}
if (client.isBot) {
return; // don't ever kick the bot off.
}
if (oldest === null) {
oldest = client;
return;
}
if (client.getLastActionTs() < oldest.getLastActionTs()) {
oldest = client;
}
});
if (!oldest) {
return;
}
// disconnect and remove mappings.
removeVirtualUser(oldest);
oldest.disconnect("Client limit exceeded: " + server.maxClients).done(
function() {
log.info("Client limit exceeded: Disconnected %s on %s.",
oldest.nick, oldest.server.domain);
},
function(e) {
log.error("Error when disconnecting %s on server %s: %s",
oldest.nick, oldest.server.domain, JSON.stringify(e));
});
}
var getNumberOfConnections = function(server) {
if (!server || !virtualClients[server.domain]) { return 0; }
var connectedNickMap = virtualClients[server.domain].nicks;
var connectingNickMap = virtualClients[server.domain].desiredNicks;
var numConnectedNicks = Object.keys(connectedNickMap).filter(function(nick) {
return Boolean(connectedNickMap[nick]); // remove 'undefined' values
}).length;
var numConnectingNicks = Object.keys(connectingNickMap).filter(function(nick) {
return Boolean(connectingNickMap[nick]); // remove 'undefined' values
}).length;
return numConnectedNicks + numConnectingNicks;
};
var sendConnectionMetric = function(server) {
stats.ircClients(server.domain, getNumberOfConnections(server));
};
var removeVirtualUser = function(virtualUser) {
var server = virtualUser.server;
virtualClients[server.domain].userIds[virtualUser.userId] = undefined;
virtualClients[server.domain].nicks[virtualUser.nick] = undefined;
};
var onClientConnected = function(virtualUser) {
var server = virtualUser.server;
var oldNick = virtualUser.nick;
var actualNick = virtualUser.unsafeClient.nick;
// move from desired to actual.
virtualClients[server.domain].desiredNicks[oldNick] = undefined;
virtualClients[server.domain].nicks[actualNick] = virtualUser;
// informative logging
if (oldNick !== actualNick) {
log.debug("Connected with nick '%s' instead of desired nick '%s'",
actualNick, oldNick);
}
};
var onClientDisconnected = function(virtualUser) {
removeVirtualUser(virtualUser);
sendConnectionMetric(virtualUser.server);
if (virtualUser.explicitDisconnect) {
// don't reconnect users which explicitly disconnected e.g. client
// cycling, idle timeouts, leaving rooms, etc.
return;
}
// Reconnect this user
log.debug(
"onClientDisconnected: <%s> Reconnecting %s@%s in %sms",
virtualUser._id, virtualUser.nick, virtualUser.server.domain, RECONNECT_TIME_MS
);
var cli = module.exports.createIrcClient(
virtualUser.ircUser, virtualUser.matrixUser, virtualUser.isBot
);
var callbacks = virtualUser.callbacks;
var chanList = virtualUser.chanList;
virtualUser = undefined;
setTimeout(function() {
cli.connect(callbacks).then(function() {
log.info(
"<%s> Reconnected %s@%s", cli._id, cli.nick, cli.server.domain
);
if (chanList.length > 0) {
log.info("<%s> Rejoining %s channels", cli._id, chanList.length);
chanList.forEach(function(c) {
cli.joinChannel(c);
});
}
}, function(e) {
log.error(
"<%s> Failed to reconnect %s@%s", cli._id, cli.nick, cli.server.domain
);
});
}, RECONNECT_TIME_MS);
};
var onNickChange = function(virtualUser, oldNick, newNick) {
virtualClients[virtualUser.server.domain].nicks[oldNick] = undefined;
virtualClients[virtualUser.server.domain].nicks[newNick] = virtualUser;
};
|
{
"content_hash": "113e7e4b6c87ecd2598b1b76757b9f9c",
"timestamp": "",
"source": "github",
"line_count": 250,
"max_line_length": 87,
"avg_line_length": 32.308,
"alnum_prop": 0.6361272749783335,
"repo_name": "martindale/matrix-appservice-irc",
"id": "c59267cc76c1dbfaf06aeaad511f666863ec5159",
"size": "8077",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/irclib/client-pool.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "JavaScript",
"bytes": "306214"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/>
<link rel="stylesheet" href="../../../../../aui/css/aui-experimental.min.css" media="all"/>
<!--[if IE 9]><link rel="stylesheet" href="../../../../../aui/css/aui-ie9.min.css" media="all"/><![endif]-->
<style type="text/css" media="all">
@import url('../../../../../style.css');
@import url('../../../../../tree.css');
</style>
<script src="../../../../../jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-experimental.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-soy.min.js" type="text/javascript"></script>
<script src="../../../../../package-nodes-tree.js" type="text/javascript"></script>
<script src="../../../../../clover-tree.js" type="text/javascript"></script>
<script src="../../../../../clover.js" type="text/javascript"></script>
<script src="../../../../../clover-descriptions.js" type="text/javascript"></script>
<script src="../../../../../cloud.js" type="text/javascript"></script>
<title>ABA Route Transit Number Validator 1.0.1-SNAPSHOT</title>
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo aui-header-logo-clover">
<a href="http://openclover.org" title="Visit OpenClover home page"><span class="aui-header-logo-device">OpenClover</span></a>
</h1>
</div>
<div class="aui-header-secondary">
<ul class="aui-nav">
<li id="system-help-menu">
<a class="aui-nav-link" title="Open online documentation" target="_blank"
href="http://openclover.org/documentation">
<span class="aui-icon aui-icon-small aui-iconfont-help"> Help</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<div class="aui-page-panel-nav aui-page-panel-nav-clover">
<div class="aui-page-header-inner" style="margin-bottom: 20px;">
<div class="aui-page-header-image">
<a href="http://cardatechnologies.com" target="_top">
<div class="aui-avatar aui-avatar-large aui-avatar-project">
<div class="aui-avatar-inner">
<img src="../../../../../img/clover_logo_large.png" alt="Clover icon"/>
</div>
</div>
</a>
</div>
<div class="aui-page-header-main" >
<h1>
<a href="http://cardatechnologies.com" target="_top">
ABA Route Transit Number Validator 1.0.1-SNAPSHOT
</a>
</h1>
</div>
</div>
<nav class="aui-navgroup aui-navgroup-vertical">
<div class="aui-navgroup-inner">
<ul class="aui-nav">
<li class="">
<a href="../../../../../dashboard.html">Project overview</a>
</li>
</ul>
<div class="aui-nav-heading packages-nav-heading">
<strong>Packages</strong>
</div>
<div class="aui-nav project-packages">
<form method="get" action="#" class="aui package-filter-container">
<input type="text" autocomplete="off" class="package-filter text"
placeholder="Type to filter packages..." name="package-filter" id="package-filter"
title="Start typing package name (or part of the name) to search through the tree. Use arrow keys and the Enter key to navigate."/>
</form>
<p class="package-filter-no-results-message hidden">
<small>No results found.</small>
</p>
<div class="packages-tree-wrapper" data-root-relative="../../../../../" data-package-name="com.cardatechnologies.utils.validators.abaroutevalidator">
<div class="packages-tree-container"></div>
<div class="clover-packages-lozenges"></div>
</div>
</div>
</div>
</nav> </div>
<section class="aui-page-panel-content">
<div class="aui-page-panel-content-clover">
<div class="aui-page-header-main"><ol class="aui-nav aui-nav-breadcrumbs">
<li><a href="../../../../../dashboard.html"> Project Clover database Sat Aug 7 2021 12:29:33 MDT</a></li>
<li><a href="test-pkg-summary.html">Package com.cardatechnologies.utils.validators.abaroutevalidator</a></li>
<li><a href="test-Test_AbaRouteValidator_04.html">Class Test_AbaRouteValidator_04</a></li>
</ol></div>
<h1 class="aui-h2-clover">
Test testAbaNumberCheck_6980_bad
</h1>
<table class="aui">
<thead>
<tr>
<th>Test</th>
<th><label title="The test result. Either a Pass, Fail or Error.">Status</label></th>
<th><label title="When the test execution was started">Start time</label></th>
<th><label title="The total time in seconds taken to run this test.">Time (seconds)</label></th>
<th><label title="A failure or error message if the test is not successful.">Message</label></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_04.html?line=47560#src-47560" >testAbaNumberCheck_6980_bad</a>
</td>
<td>
<span class="sortValue">1</span><span class="aui-lozenge aui-lozenge-success">PASS</span>
</td>
<td>
7 Aug 12:34:28
</td>
<td>
0.0 </td>
<td>
<div></div>
<div class="errorMessage"></div>
</td>
</tr>
</tbody>
</table>
<div> </div>
<table class="aui aui-table-sortable">
<thead>
<tr>
<th style="white-space:nowrap;"><label title="A class that was directly hit by this test.">Target Class</label></th>
<th colspan="4"><label title="The percentage of coverage contributed by each single test.">Coverage contributed by</label> testAbaNumberCheck_6980_bad</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.exceptions.AbaRouteValidationException</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/exceptions/AbaRouteValidationException.html?id=12431#AbaRouteValidationException" title="AbaRouteValidationException" name="sl-43">com.cardatechnologies.utils.validators.abaroutevalidator.exceptions.AbaRouteValidationException</a>
</td>
<td>
<span class="sortValue">0.5714286</span>57.1%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="57.1% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:57.1%"></div></div></div> </td>
</tr>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/ErrorCodes.html?id=12431#ErrorCodes" title="ErrorCodes" name="sl-42">com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes</a>
</td>
<td>
<span class="sortValue">0.5714286</span>57.1%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="57.1% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:57.1%"></div></div></div> </td>
</tr>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/AbaRouteValidator.html?id=12431#AbaRouteValidator" title="AbaRouteValidator" name="sl-47">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</a>
</td>
<td>
<span class="sortValue">0.29411766</span>29.4%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="29.4% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:29.4%"></div></div></div> </td>
</tr>
</tbody>
</table>
</div> <!-- class="aui-page-panel-content-clover" -->
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul>
<li>
Report generated by <a target="_new" href="http://openclover.org">OpenClover</a> v 4.4.1
on Sat Aug 7 2021 12:49:26 MDT using coverage data from Sat Aug 7 2021 12:47:23 MDT.
</li>
</ul>
<ul>
<li>OpenClover is free and open-source software. </li>
</ul>
</section>
</footer> </section> <!-- class="aui-page-panel-content" -->
</div> <!-- class="aui-page-panel-inner" -->
</div> <!-- class="aui-page-panel" -->
</div> <!-- id="page" -->
</body>
</html>
|
{
"content_hash": "90b95df92b83dc5be29940463e2df8c5",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 359,
"avg_line_length": 46.740425531914894,
"alnum_prop": 0.5302257829570284,
"repo_name": "dcarda/aba.route.validator",
"id": "27365009d0cd64f70022c5f4b6e3c4e44fdab7b3",
"size": "10984",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "target13/site/clover/com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_04_testAbaNumberCheck_6980_bad_9lb.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "18715254"
}
],
"symlink_target": ""
}
|
@class BATCrimeObject;
@interface BATCrimeTableViewCell : UITableViewCell
@property (nonatomic, weak) IBOutlet UIImageView *villainImageView;
@property (nonatomic, weak) IBOutlet UILabel *villainNameLabel;
@property (nonatomic, weak) IBOutlet UILabel *crimeTitleLabel;
@property (nonatomic, weak) IBOutlet UILabel *crimeReportTimeLabel;
@property (nonatomic, strong) BATCrimeObject *crime;
- (void)setupCellByCrime:(BATCrimeObject *)crime;
@end
|
{
"content_hash": "11f8583ecf862cbc5f6b5ba01e60a1e3",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 67,
"avg_line_length": 32.142857142857146,
"alnum_prop": 0.8066666666666666,
"repo_name": "yingogobot/JayW-Salon-Apple-Watch-Hackday-Demo",
"id": "78380bc9842acfd62b17df666376ad7d21431360",
"size": "616",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "BatmanRaderAppDemo/BatmanRaderApp/Views/BATCrimeTableViewCell.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "39045"
}
],
"symlink_target": ""
}
|
package com.google.googleidentity.oauth2.exception;
/** OAuth2Exception with type "invalid_request" */
public final class InvalidRequestException extends OAuth2Exception {
private static final String INVALID_REQUEST = "invalid_request";
private final ErrorCode errorCode;
public InvalidRequestException(ErrorCode errorCode) {
super();
this.errorCode = errorCode;
}
public String getErrorType() {
return INVALID_REQUEST;
}
public String getErrorDescription() {
switch (errorCode) {
case NO_RESPONSE_TYPE:
return "No Response Type!";
case NO_CLIENT_ID:
return "No Client ID!";
case NONEXISTENT_CLIENT_ID:
return "Client ID does not exist!";
case NO_REDIRECT_URI:
return "No Redirect Uri!";
case REDIRECT_URI_MISMATCH:
return "Redirect Uri Mismatch!";
case NO_USER_CONSENT:
return "No User consent information!";
case NO_AUTHORIZATION_REQUEST:
return "No request need to approve!";
case INVALID_USER_CONSENT:
return "Invalid user consent information!";
case UNSUPPORTED_REQUEST_METHOD:
return "Request method is not supported!";
case NON_URL_ENCODED_URI:
return "URI is in invalid format!";
case IMPLICIT_GRANT_IN_TOKEN_ENDPOINT:
return "Implicit flow is not supported at token endpoint!";
case NO_AUTHORIZATION_CODE:
return "No authorization code!";
case NO_REFRESH_TOKEN:
return "No refresh_token!";
case NO_INTENT:
return "No Intent!";
case NO_ASSERTION:
return "No assertion!";
case UNSUPPORTED_INTENT:
return "Unsupported intent!";
case INVALID_JWT_ISS:
return "Invalid jwt iss!";
case INVALID_JWT:
return "Invalid jwt!";
case WRONG_JWT_AUD:
return "Wrong jwt aud!";
case NO_REVOKE_TOKEN:
return "No token to revoke!";
case INVALID_TOKEN_TYPE:
return "Invalid token type!";
case NO_ACCESS_TOKEN:
return "No access token!";
case INVALID_ACCESS_TOKEN:
return "Invalid access token!";
default:
throw new IllegalArgumentException(String.valueOf(errorCode));
}
}
public enum ErrorCode {
NO_REDIRECT_URI,
REDIRECT_URI_MISMATCH,
NO_CLIENT_ID,
NONEXISTENT_CLIENT_ID,
NO_AUTHORIZATION_REQUEST,
NO_USER_CONSENT,
INVALID_USER_CONSENT,
NO_RESPONSE_TYPE,
UNSUPPORTED_REQUEST_METHOD,
NON_URL_ENCODED_URI,
IMPLICIT_GRANT_IN_TOKEN_ENDPOINT,
NO_AUTHORIZATION_CODE,
NO_REFRESH_TOKEN,
NO_INTENT,
NO_ASSERTION,
UNSUPPORTED_INTENT,
INVALID_JWT_ISS,
INVALID_JWT,
WRONG_JWT_AUD,
NO_REVOKE_TOKEN,
INVALID_TOKEN_TYPE,
NO_ACCESS_TOKEN,
INVALID_ACCESS_TOKEN
}
}
|
{
"content_hash": "8e014442d30756276e832ab538906e68",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 70,
"avg_line_length": 28.70408163265306,
"alnum_prop": 0.6473515819409883,
"repo_name": "googleinterns/demo-for-google-identity",
"id": "3f4a91eb940a57b086a9ae5c18dc3cf5d64458bd",
"size": "3406",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/google/googleidentity/oauth2/exception/InvalidRequestException.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "9934"
},
{
"name": "FreeMarker",
"bytes": "47509"
},
{
"name": "Java",
"bytes": "458492"
}
],
"symlink_target": ""
}
|
module Envcrypt
class Envcrypter
# Public: Returns the key used to encrypt/decrypt secrets
attr_reader :key
# Public: Initialize an Envcrypter object
#
# key - A string representing the key to be used for encryption
# and decryption (default: ENV['ENVCRYPT_KEY'])
def initialize(key = ENV['ENVCRYPT_KEY'])
@key = key == nil ? generate_key : key
@de_cipher = nil
@en_cipher = nil
end
# Public: Generates a random key
#
# Returns the key
def generate_key
@key = "#{SecureRandom.base64}$#{SecureRandom.base64(32)}$#{SecureRandom.base64}"
end
# Public: Encrypts a secret
#
# secret - the secret string to be encrypted
#
# Returns the encrypted string
def encrypt(secret)
cipher = create_cipher(:encrypt)
encrypted = cipher.update secret
encrypted << cipher.final
Base64.encode64(encrypted).chomp
end
# Public: Decrypts a secret
#
# secret - the encrypted string to be decrypted
#
# Returns the plain text decrypted string
def decrypt(encrypted)
cipher = create_cipher(:decrypt)
plaintxt = cipher.update Base64.decode64(encrypted)
plaintxt << cipher.final
end
private
# Internal: Parses a key string into three components used by the
# encryption ciphers. The components are stored as private
# instance variables. Keeping it all in a single string
# simplifies storing the key in environment variables.
#
# key - the key to be parsed
#
# Returns the key parsed into three components (iv,pwd,salt)
def parse_key(key)
parsed = key.split('$')
if parsed.length != 3
raise "Bad key format - generate a new one"
else
parsed
end
end
# Internal: Create an encryption cipher
#
# mode - Set the mode to either :encrypt or :decrypt
#
# Returns a cipher to be used for encryption or decryption
def create_cipher(mode)
create_cipher_simple(mode)
end
# Internal: Create a simple encryption cipher
#
# mode - Set the mode to either :encrypt or :decrypt
#
# Returns a cipher to be used for encryption or decryption
def create_cipher_simple(mode)
iv,pwd,salt = parse_key(@key)
cipher = OpenSSL::Cipher.new 'AES-128-CBC'
cipher.send(mode)
cipher.iv = iv
cipher.key = pwd
cipher
end
# Future: Create a cipher using the more secure pbkdf2_mac method
#
# This one is more secure but doesn't work on Heroku
# Would like to optionally detect OpenSSL version
# and use this if possible
def create_cipher_pbkdf2(mode)
iv,pwd,salt = parse_key(@key)
cipher = OpenSSL::Cipher.new 'AES-128-CBC'
cipher.send(mode)
cipher.iv = iv
digest = OpenSSL::Digest::SHA256.new
key_len = cipher.key_len
iter = 20000
cipher.key = OpenSSL::PKCS5.pbkdf2_hmac(pwd, salt, iter, key_len, digest)
cipher
end
end
end
|
{
"content_hash": "52a521a0a3dade4469ef8f3b12a2a8ea",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 87,
"avg_line_length": 27.07758620689655,
"alnum_prop": 0.6147723654886978,
"repo_name": "gnilrets/envcrypt",
"id": "85c2978cc98cf01cda11fd418f0104770a508184",
"size": "3418",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/envcrypt/envcrypt.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "8706"
}
],
"symlink_target": ""
}
|
<div class="jw-card">
<div class="jw-card-aspect" jw-card-poster="vm.item">
<div class="jw-card-poster is-active is-loading"></div>
</div>
<div class="jw-card-container">
<div class="jw-card-controls">
<div class="jw-card-controls-align">
<a class="jw-button jw-card-play-button jw-button-play">
<i class="jwy-icon jwy-icon-play"></i>
</a>
<div class="jw-card-text jw-card-text-now-playing">Currently playing</div>
</div>
<div class="jw-card-duration jw-card-text"></div>
</div>
<div class="jw-card-info">
<div class="jw-card-watch-progress ng-hide"></div>
<div class="jw-card-info-mask">
<a class="jw-card-title jw-card-text"></a>
<div class="jw-card-description jw-card-text jw-markdown">
<jw-markdown ng-model="vm.item.description"></jw-markdown>
</div>
</div>
</div>
</div>
<jw-button class="jw-card-menu-button">
<i class="jwy-icon jwy-icon-more jwy-icon-rotate-90"></i>
</jw-button>
<div class="jw-card-toasts"></div>
</div>
|
{
"content_hash": "4565eb37ea6922a451aba0a6c4b647c4",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 82,
"avg_line_length": 32.63636363636363,
"alnum_prop": 0.5951717734447539,
"repo_name": "j2d2/jw-showcase-lib",
"id": "d3436856a8ede3eb7bf520c3315cbb0bb5cd44c1",
"size": "1077",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "views/core/card.html",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "55813"
},
{
"name": "HTML",
"bytes": "19981"
},
{
"name": "JavaScript",
"bytes": "246789"
}
],
"symlink_target": ""
}
|
package org.telegram.api.messages.chats;
import org.telegram.api.chat.TLAbsChat;
import org.telegram.tl.TLObject;
import org.telegram.tl.TLVector;
/**
* @author Ruben Bermudez
* @version 1.0
*/
public abstract class TLAbsMessagesChats extends TLObject {
/**
* The Chats.
*/
protected TLVector<TLAbsChat> chats;
public TLVector<TLAbsChat> getChats() {
return chats;
}
}
|
{
"content_hash": "4236061d33d173170db65947fcceea72",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 59,
"avg_line_length": 20.45,
"alnum_prop": 0.6894865525672371,
"repo_name": "rubenlagus/TelegramApi",
"id": "b58025f5fed7340d449bbb2abdb3d548ddb30dd4",
"size": "409",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/telegram/api/messages/chats/TLAbsMessagesChats.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "2393726"
}
],
"symlink_target": ""
}
|
/**
* Shopware Model - Global Stores and Models
*/
//{block name="backend/base/model/country_state"}
Ext.define('Shopware.apps.Base.model.CountryState', {
extend: 'Shopware.data.Model',
fields: [
//{block name="backend/base/model/country_state/fields"}{/block}
{ name: 'id', type: 'int' },
{ name: 'countryId', type: 'int' },
{ name: 'name', type: 'string' },
{ name: 'shortCode', type: 'string' },
{ name: 'position', type: 'int' },
{ name: 'active', type: 'boolean' }
]
});
//{/block}
|
{
"content_hash": "c2ed2a2641d7b4dad4a2f9494166687c",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 66,
"avg_line_length": 29.105263157894736,
"alnum_prop": 0.5587703435804702,
"repo_name": "edwint88/CoolPlugin",
"id": "943674f7e9e711fff6ad2050424ee6d491ee851e",
"size": "1594",
"binary": false,
"copies": "30",
"ref": "refs/heads/master",
"path": "Resources/views/tests/vendors/Shopware/base/model/country_state.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "703"
},
{
"name": "JavaScript",
"bytes": "131882"
},
{
"name": "PHP",
"bytes": "3730"
}
],
"symlink_target": ""
}
|
/** Patch operation.
*
* A Patch operation is a recipe to perform a task over an object.
*/
export interface IPatch {
/** Operation to perform.
*
* Possible values are: add, replace, remove
*/
op: string;
/** The path to the attribute to patch */
path: string;
/** Optional value used for some operations (add & remove for example).
*/
value?: string;
}
|
{
"content_hash": "81f69ccd19117011b65e65aae9bf3389",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 73,
"avg_line_length": 21.27777777777778,
"alnum_prop": 0.6422976501305483,
"repo_name": "zephyrec/rest-hal-sequelize",
"id": "acf36aac49cbef563bbc874668740ffb07d7357e",
"size": "383",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/patch.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "TypeScript",
"bytes": "21908"
}
],
"symlink_target": ""
}
|
#pragma once
#include <aws/s3-crt/S3Crt_EXPORTS.h>
#include <aws/s3-crt/model/SseKmsEncryptedObjects.h>
#include <aws/s3-crt/model/ReplicaModifications.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3Crt
{
namespace Model
{
/**
* <p>A container that describes additional filters for identifying the source
* objects that you want to replicate. You can choose to enable or disable the
* replication of these objects. Currently, Amazon S3 supports only the filter that
* you can specify for objects created with server-side encryption using a customer
* managed key stored in Amazon Web Services Key Management Service
* (SSE-KMS).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/SourceSelectionCriteria">AWS
* API Reference</a></p>
*/
class AWS_S3CRT_API SourceSelectionCriteria
{
public:
SourceSelectionCriteria();
SourceSelectionCriteria(const Aws::Utils::Xml::XmlNode& xmlNode);
SourceSelectionCriteria& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline const SseKmsEncryptedObjects& GetSseKmsEncryptedObjects() const{ return m_sseKmsEncryptedObjects; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline bool SseKmsEncryptedObjectsHasBeenSet() const { return m_sseKmsEncryptedObjectsHasBeenSet; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline void SetSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = value; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline void SetSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = std::move(value); }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { SetSseKmsEncryptedObjects(value); return *this;}
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { SetSseKmsEncryptedObjects(std::move(value)); return *this;}
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline const ReplicaModifications& GetReplicaModifications() const{ return m_replicaModifications; }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline bool ReplicaModificationsHasBeenSet() const { return m_replicaModificationsHasBeenSet; }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline void SetReplicaModifications(const ReplicaModifications& value) { m_replicaModificationsHasBeenSet = true; m_replicaModifications = value; }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline void SetReplicaModifications(ReplicaModifications&& value) { m_replicaModificationsHasBeenSet = true; m_replicaModifications = std::move(value); }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline SourceSelectionCriteria& WithReplicaModifications(const ReplicaModifications& value) { SetReplicaModifications(value); return *this;}
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline SourceSelectionCriteria& WithReplicaModifications(ReplicaModifications&& value) { SetReplicaModifications(std::move(value)); return *this;}
private:
SseKmsEncryptedObjects m_sseKmsEncryptedObjects;
bool m_sseKmsEncryptedObjectsHasBeenSet;
ReplicaModifications m_replicaModifications;
bool m_replicaModificationsHasBeenSet;
};
} // namespace Model
} // namespace S3Crt
} // namespace Aws
|
{
"content_hash": "76394317178894192330d1b163811c9f",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 165,
"avg_line_length": 48.822857142857146,
"alnum_prop": 0.723314606741573,
"repo_name": "cedral/aws-sdk-cpp",
"id": "9ded77c815d0daa08d182aa15119f072d881949b",
"size": "8663",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-cpp-sdk-s3-crt/include/aws/s3-crt/model/SourceSelectionCriteria.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "294220"
},
{
"name": "C++",
"bytes": "428637022"
},
{
"name": "CMake",
"bytes": "862025"
},
{
"name": "Dockerfile",
"bytes": "11688"
},
{
"name": "HTML",
"bytes": "7904"
},
{
"name": "Java",
"bytes": "352201"
},
{
"name": "Python",
"bytes": "106761"
},
{
"name": "Shell",
"bytes": "10891"
}
],
"symlink_target": ""
}
|
//=============================================================================================================
#ifndef FIFFCOORDTRANSOLD_H
#define FIFFCOORDTRANSOLD_H
//*************************************************************************************************************
//=============================================================================================================
// INCLUDES
//=============================================================================================================
#include "../fiff_global.h"
#include "../fiff_types.h"
#include "../fiff_stream.h"
#include "../fiff_dir_node.h"
//*************************************************************************************************************
//=============================================================================================================
// Eigen INCLUDES
//=============================================================================================================
#include <Eigen/Core>
//*************************************************************************************************************
//=============================================================================================================
// Qt INCLUDES
//=============================================================================================================
#include <QSharedPointer>
namespace FIFFLIB
{
class FiffTag;
}
//*************************************************************************************************************
//=============================================================================================================
// DEFINE NAMESPACE FIFFLIB
//=============================================================================================================
namespace FIFFLIB
{
//=============================================================================================================
/**
* Implements an Fiff Coordinate Descriptor (Replaces *fiffCoordTrans, fiffCoordTransRec; struct of MNE-C fiff_types.h).
*
* @brief Coordinate transformation descriptor
*/
class FIFFSHARED_EXPORT FiffCoordTransOld
{
public:
typedef QSharedPointer<FiffCoordTransOld> SPtr; /**< Shared pointer type for FiffCoordTransOld. */
typedef QSharedPointer<const FiffCoordTransOld> ConstSPtr; /**< Const shared pointer type for FiffCoordTransOld. */
//=========================================================================================================
/**
* Constructs the FiffCoordTransOld
*/
FiffCoordTransOld();
//=========================================================================================================
/**
* Copy constructor.
* Refactored: fiff_dup_transform (fiff_trans.c)
*
* @param[in] p_FiffCoordTransOld FiffCoordTransOld which should be copied
*/
FiffCoordTransOld(const FiffCoordTransOld& p_FiffCoordTransOld);
static FiffCoordTransOld* catenate(FiffCoordTransOld* t1,FiffCoordTransOld* t2);
//=========================================================================================================
/**
* Compose the coordinate transformation structure from a known forward transform
* Refactored: fiff_make_transform (make_volume_source_space.c)
*
*/
FiffCoordTransOld(int from,int to,float rot[3][3],float move[3]);
//=========================================================================================================
/**
* Destroys the FiffCoordTransOld
* Refactored: (.c)
*/
~FiffCoordTransOld();
//============================= make_volume_source_space.c =============================
/*
* Add inverse transform to an existing one
*/
static int add_inverse(FiffCoordTransOld* t);
//============================= fiff_trans.c =============================
FiffCoordTransOld* fiff_invert_transform () const;
static void fiff_coord_trans (float r[3],FiffCoordTransOld* t,int do_move);
static FiffCoordTransOld* fiff_combine_transforms (int from,int to,FiffCoordTransOld* t1,FiffCoordTransOld* t2);
static void fiff_coord_trans_inv (float r[3],FiffCoordTransOld* t,int do_move);
//============================= mne_coord_transforms.c =============================
static const char *mne_coord_frame_name(int frame);
static void mne_print_coord_transform_label(FILE *log,char *label, FiffCoordTransOld* t);
static void mne_print_coord_transform(FILE *log, FiffCoordTransOld* t);
static FiffCoordTransOld* mne_read_transform(const QString& name,int from, int to);
static FiffCoordTransOld* mne_read_transform_from_node(//fiffFile in,
FIFFLIB::FiffStream::SPtr& stream,
const FIFFLIB::FiffDirNode::SPtr& node,
int from, int to);
static FiffCoordTransOld* mne_read_mri_transform(const QString& name);
static FiffCoordTransOld* mne_read_meas_transform(const QString& name);
static FiffCoordTransOld* mne_read_transform_ascii(char *name, int from, int to);
static FiffCoordTransOld* mne_read_FShead2mri_transform(char *name);
static FiffCoordTransOld* mne_identity_transform(int from, int to);
//*************************************************************************************************************
//TODO: remove later on
static FiffCoordTransOld* read_helper( QSharedPointer<FIFFLIB::FiffTag>& tag );
public:
FIFFLIB::fiff_int_t from; /**< Source coordinate system. */
FIFFLIB::fiff_int_t to; /**< Destination coordinate system. */
FIFFLIB::fiff_float_t rot[3][3]; /**< The forward transform (rotation part) */
FIFFLIB::fiff_float_t move[3]; /**< The forward transform (translation part) */
FIFFLIB::fiff_float_t invrot[3][3]; /**< The inverse transform (rotation part) */
FIFFLIB::fiff_float_t invmove[3]; /**< The inverse transform (translation part) */
// ### OLD STRUCT ###
//typedef struct _fiffCoordTransRec {
// fiff_int_t from; /**< Source coordinate system. */
// fiff_int_t to; /**< Destination coordinate system. */
// fiff_float_t rot[3][3]; /**< The forward transform (rotation part) */
// fiff_float_t move[3]; /**< The forward transform (translation part) */
// fiff_float_t invrot[3][3]; /**< The inverse transform (rotation part) */
// fiff_float_t invmove[3]; /**< The inverse transform (translation part) */
//} *fiffCoordTrans, fiffCoordTransRec; /**< Coordinate transformation descriptor */
};
//*************************************************************************************************************
//=============================================================================================================
// INLINE DEFINITIONS
//=============================================================================================================
} // NAMESPACE FIFFLIB
#endif // FIFFCOORDTRANSOLD_H
|
{
"content_hash": "8575d85f5f1df350c899565ad593b2c1",
"timestamp": "",
"source": "github",
"line_count": 194,
"max_line_length": 121,
"avg_line_length": 37.54123711340206,
"alnum_prop": 0.4076616778799945,
"repo_name": "LostSign/mne-cpp",
"id": "4f3943300eed2d7fced7c2365ad80fa31389b1d5",
"size": "9118",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MNE/fiff/c/fiff_coord_trans_old.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "266300"
},
{
"name": "C++",
"bytes": "10830336"
},
{
"name": "Prolog",
"bytes": "25474"
},
{
"name": "QMake",
"bytes": "230713"
}
],
"symlink_target": ""
}
|
<HTML><HEAD>
<TITLE>Review for Perfect Murder, A (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0120787">Perfect Murder, A (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?David+N.+Butterworth">David N. Butterworth</A></H3><HR WIDTH="40%" SIZE="4">
<PRE>A PERFECT MURDER
A film review by David N. Butterworth
Copyright 1998 David N. Butterworth</PRE>
<PRE>*** (out of ****)</PRE>
<P> Perhaps I should preface this review by stating, for the record,
that I happen to love Michael Douglas.</P>
<P> Well, I'm not *in* love with him. Gwyneth Paltrow is in love with
him. Well, not Gwyneth Paltrow exactly, but the character she plays in her
latest film, one Emily Bradford. Well, she *was* in love with him,
presumably at some point (not Michael Douglas per se, but the character he
plays, Emily's husband Steven Taylor). But now Emily, as the movie opens,
is in love with Viggo Mortensen. Well, the character *he* plays that is,
emerging--and chronically handsome--artist David Shaw.</P>
<P> So here we have a problem. Emily's married to Steven but she's in
love with David. Steven, who knows it, is set to inherit a tidy sum if his
wife, er, expires. Hmm... How are we going to rectify this situation?
Well how about a juicy little murder for starters?</P>
<P> Yes. That would certainly resolve a thing or two. And it's
certainly the least we can expect from a movie called "A Perfect Murder,"
loosely based on Alfred Hitchcock's "Dial M for Murder."</P>
<P> In Hitch's 1953 film, Ray Milland schemes to knock off his lovely
wife (played by the even lovelier Grace Kelly) in order to bolster his
flagging bank balance. His cause is also "justified" by the fact that his
wife is guilty of cheating on him.</P>
<P> In this '90's update, Michael Douglas has similar designs on
Gwyneth Paltrow's cashflow, even though he's filthy rich himself (Douglas
plays yet another one of his classic "greed is good"
banker-broker-commodities-trader-dealer-investor types. It's a role
Douglas could play in his sleep ... and probably does! Emily's passionate
trysts with the afore-mentioned David provide Steven with similar
"justification" for orchestrating her timely demise.</P>
<P> The twist? Steven entertains his wife's lover and makes him an
offer he can't refuse: $500,000 tax free. "For just walking away from
her?" asks the painter with, it turns out, a scurrilous past (handy for
blackmailing purposes). "I said tax free, I didn't say free. You get
$100,000 now and $400,000 later." "For what?" "Killing my wife." Well,
we've all seen the previews...</P>
<P> OK, so it's not the most pleasant proposition on the planet but the
way Douglas says "my wife" is totally delicious. I mean, I bet he's said
it a million times before in a million different movies but it's the sort
of phrase you want to record on a dictaphone and play back to yourself over
and over. "My wife." It's got that mean, menacing, rasping quality that
gives you the shivers. Damn, that Michael Douglas is good!</P>
<P> "A Perfect Murder" is a slick, smart, sexy, and satisfying thriller
from director Andrew Davis ("The Fugitive"). The film is well
cast--everyone and everything is gorgeous looking--and it doesn't insult
the intelligence like some other hack psychodramas. There are the
requisite twists and turns and the murder weapon--a pair of scissors in the
original--is tastefully inspired, if a little too telegraphed, this time
out (causing this reviewer to mutter under his breath "he's done!").</P>
<P> Davis' film is less than perfect--the ending briefly descends into
slasher flick-dom for one thing--but it's a murderously fun way to spend a
couple of hours in a darkened movie theater with or, preferably, without
"my wife."</P>
<PRE>--
David N. Butterworth
<A HREF="mailto:dnb@mail.med.upenn.edu">dnb@mail.med.upenn.edu</A></PRE>
<HR><P CLASS=flush><SMALL>The review above was posted to the
<A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR>
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.<BR>
Please direct comments/criticisms of the review to relevant newsgroups.<BR>
Broken URLs inthe reviews are the responsibility of the author.<BR>
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
</SMALL></P>
<P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P>
</P></BODY></HTML>
|
{
"content_hash": "f14885dd0971b346ba896b15f0c871e3",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 219,
"avg_line_length": 62.98717948717949,
"alnum_prop": 0.7268471402401792,
"repo_name": "xianjunzhengbackup/code",
"id": "17ddd53fbc543234b987a062913987ef93d2a023",
"size": "4913",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "data science/machine_learning_for_the_web/chapter_4/movie/12907.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "BitBake",
"bytes": "113"
},
{
"name": "BlitzBasic",
"bytes": "256"
},
{
"name": "CSS",
"bytes": "49827"
},
{
"name": "HTML",
"bytes": "157006325"
},
{
"name": "JavaScript",
"bytes": "14029"
},
{
"name": "Jupyter Notebook",
"bytes": "4875399"
},
{
"name": "Mako",
"bytes": "2060"
},
{
"name": "Perl",
"bytes": "716"
},
{
"name": "Python",
"bytes": "874414"
},
{
"name": "R",
"bytes": "454"
},
{
"name": "Shell",
"bytes": "3984"
}
],
"symlink_target": ""
}
|
<?php
defined('XAPP') || require_once(dirname(__FILE__) . '/../../Core/core.php');
xapp_import('xapp.Rpc.Smd');
/**
* Rpc smd json class
*
* @package Rpc
* @subpackage Rpc_Smd
* @class Xapp_Rpc_Smd_Json
* @error 148
* @author Frank Mueller <support@xapp-studio.com>
*/
class Xapp_Rpc_Smd_Json extends Xapp_Rpc_Smd
{
/**
* option to define smd json transport protocol
*
* @const TRANSPORT
*/
const TRANSPORT = 'RPC_SMD_JSON_TRANSPORT';
/**
* option to define smd json base target value
*
* @const TARGET
*/
const TARGET = 'RPC_SMD_JSON_TARGET';
/**
* option to define smd json envelope value
*
* @const ENVELOPE
*/
const ENVELOPE = 'RPC_SMD_JSON_ENVELOPE';
/**
* contains static singleton class instance
*
* @var null|Xapp_Rpc_Smd_Json
*/
protected static $_instance = null;
/**
* options dictionary for this class containing all data type values
*
* @var array
*/
public static $optionsDict = array
(
self::TRANSPORT => XAPP_TYPE_STRING,
self::TARGET => XAPP_TYPE_STRING,
self::ENVELOPE => XAPP_TYPE_STRING,
self::RELATIVE_TARGETS => XAPP_TYPE_BOOL
);
/**
* options mandatory map for this class contains all mandatory values
*
* @var array
*/
public static $optionsRule = array
(
self::TRANSPORT => 1,
self::TARGET => 0,
self::ENVELOPE => 1,
self::RELATIVE_TARGETS => 1
);
/**
* options default value array containing all class option default values
*
* @var array
*/
public $options = array
(
self::IGNORE_PREFIXES => array('__'),
self::TRANSPORT => 'POST',
self::ENVELOPE => 'JSON-RPC-2.0',
self::CONTENT_TYPE => 'application/json',
self::VERSION => '2.0',
self::DESCRIPTION => 'Xapp JSON RPC Server',
self::RELATIVE_TARGETS => false,
self::SERVICE_DESCRIPTION => false
);
/**
* class constructor sets class options
*
* @error 14801
* @param null|array|object $options expects optional class options
*/
public function __construct($options = null)
{
xapp_init_options($options, $this);
}
/**
* creates and returns singleton instance of class
*
* @error 14802
* @param null|array|object $options expects optional class options
* @return Xapp_Rpc_Smd_Json
*/
public static function instance($options = null)
{
if(self::$_instance === null)
{
self::$_instance = new self($options);
}
return self::$_instance;
}
/**
* compile smd schema by calling compile function for root smd part, additional parameters
* and service part. returns XO object which is a stdObject which can be casted to array and
* digested by json_encode function
*
* @error 14803
* @return XO
*/
public function compile()
{
$obj = new XO();
$this->compileRoot($obj);
$this->compileAdditionalParameter($obj);
$this->compileService($obj);
return $obj;
}
/**
* compile root part of smd schema
*
* @error 14804
* @param XO $obj expects reference variable of schema object
* @return void
*/
protected function compileRoot(&$obj)
{
$obj->SMDVersion = xapp_get_option(self::VERSION, $this);
if(xapp_is_option(self::DESCRIPTION, $this))
{
$obj->description = xapp_get_option(self::DESCRIPTION, $this);
}
if(xapp_is_option(self::CONTENT_TYPE, $this))
{
$obj->contentType = xapp_get_option(self::CONTENT_TYPE, $this);
}
$obj->transport = xapp_get_option(self::TRANSPORT, $this);
$obj->envelope = xapp_get_option(self::ENVELOPE, $this);
if(xapp_is_option(self::TARGET, $this))
{
$obj->target = xapp_get_option(self::TARGET, $this);
}else{
$obj->target = $this->getTarget();
}
}
/**
* compile additional parameter part of smd schema
*
* @error 14805
* @param XO $obj expects reference variable of schema object
* @return void
*/
protected function compileAdditionalParameter(&$obj)
{
$tmp = array();
if(xapp_is_option(self::ADDITIONAL_PARAMETERS, $this))
{
$obj->additionalParameters = true;
foreach(xapp_get_option(self::ADDITIONAL_PARAMETERS, $this) as $k => $v)
{
$o = new XO();
$o->name = $k;
if(array_key_exists(0, $v))
{
$o->type = $v[0];
}
if(array_key_exists(1, $v))
{
$o->optional = $v[1];
}
if(array_key_exists(2, $v))
{
$o->default = $v[2];
}
$tmp[] = $o;
}
$obj->parameters = $tmp;
}
}
/**
* compile service part of smd schema
*
* @error 14806
* @param XO $obj expects reference variable of schema object
* @return void
*/
protected function compileService(&$obj)
{
$tmp = array();
if(xapp_is_option(self::METHOD_AS_SERVICE, $this))
{
foreach($this->map() as $key => $val)
{
if(is_array($val))
{
foreach($val as $k => $v)
{
$v->transport = 'POST';
$v->target = $this->getTarget("$key.$k");
$tmp["$key.$k"] = $v;
}
}else{
$val->transport = 'POST';
$val->target = $this->getTarget($key);
$tmp[$key] = $val;
}
}
}else{
foreach($this->map() as $key => $val)
{
if(is_array($val))
{
foreach($val as $k => $v)
{
$v->target = $this->getTarget();
$v->transport = 'POST';
$tmp["$key.$k"] = $v;
}
}else{
$val->target = $this->getTarget();
$val->transport = 'POST';
$tmp[$key] = $val;
}
}
}
$obj->services = $tmp;
}
}
|
{
"content_hash": "9fb42e00d25cd5ff561ca16e60019aa0",
"timestamp": "",
"source": "github",
"line_count": 253,
"max_line_length": 96,
"avg_line_length": 27.122529644268774,
"alnum_prop": 0.46866802681433983,
"repo_name": "back1992/ticool",
"id": "204a5b290d10c373e04b7fb74117862e376f2d16",
"size": "6862",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "components/com_xas/xapp/lib/rpc/lib/vendor/xapp/Rpc/Smd/Json.php",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1157815"
},
{
"name": "JavaScript",
"bytes": "335767"
},
{
"name": "PHP",
"bytes": "5865040"
},
{
"name": "Perl",
"bytes": "26515"
}
],
"symlink_target": ""
}
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("13. Vowel or Digit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("13. Vowel or Digit")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e300a806-b436-493a-8279-629ee262d871")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
{
"content_hash": "ffbebec026eff0226751dc76edd41c90",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39,
"alnum_prop": 0.7443019943019943,
"repo_name": "Warglaive/TechModuleSeptember2017",
"id": "bbb60e972a9dde970069fb275a092aaebb83324a",
"size": "1407",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Data Types and Variables - Exercises/13. Vowel or Digit/Properties/AssemblyInfo.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "449692"
}
],
"symlink_target": ""
}
|
if (typeof define !== 'function') { var define = require('amdefine')(module); }
define([
'jquery',
'game/level/LevelEditorHUD',
'game/Constants',
'game/tile/Tile',
'game/level/Level1'
], function(
$,
LevelEditorHUD,
Constants,
Tile,
Level
) {
return function() {
//canvas
var canvas = $('<canvas width="' + Constants.WIDTH + 'px" height = "' + Constants.HEIGHT + 'px" ' +
'style="display:block;margin: 15px auto;" />').appendTo(document.body);
var ctx = canvas[0].getContext('2d');
var lastMousedOver = null;
var mouseDown = false;
var startOfDrag = null;
var removeDragged = false;
var hudIsHandlingMouseEvent = false;
//init stuff
var camera = { x: 0, y: 0 };
var level = new Level();
var hud = new LevelEditorHUD();
//the main game loop
function tick() {
var moveDirX = keys[MOVE_KEYS.LEFT] ? -1 : (keys[MOVE_KEYS.RIGHT] ? 1 : 0);
var moveDirY = keys[MOVE_KEYS.UP] ? -1 : (keys[MOVE_KEYS.DOWN] ? 1 : 0);
camera.x += moveDirX * 10;
camera.y += moveDirY * 10;
}
function render() {
ctx.fillStyle = '#fff';
ctx.fillRect(0, 0, Constants.WIDTH, Constants.HEIGHT);
level.backgroundTileGrid.render(ctx, camera, true);
level.tileGrid.render(ctx, camera);
if(startOfDrag && lastMousedOver) {
ctx.strokeStyle = '#f00';
ctx.lineWidth = 1;
ctx.strokeRect(Math.min(startOfDrag.col, lastMousedOver.col) * Constants.TILE_SIZE - camera.x,
Math.min(startOfDrag.row, lastMousedOver.row) * Constants.TILE_SIZE - camera.y,
(Math.abs(startOfDrag.col - lastMousedOver.col) + 1) * Constants.TILE_SIZE,
(Math.abs(startOfDrag.row - lastMousedOver.row) + 1) * Constants.TILE_SIZE);
}
hud.render(ctx, camera);
}
//add input bindings
var keys = { pressed: {} };
var MOVE_KEYS = {
UP: 87, //W
LEFT: 65, //A
DOWN: 83, //S
RIGHT: 68 //D
};
var EXPORT_KEY = 69; //E
$(document).on('keydown', function(evt) {
if(!keys[evt.which]) {
keys[evt.which] = true;
if(evt.which === EXPORT_KEY) {
exportMap();
}
}
});
$(document).on('keyup', function(evt) {
if(keys[evt.which]) {
keys[evt.which] = false;
}
});
canvas.on('mousedown', function(evt) {
handleMouseEvent(evt);
});
canvas.on('mouseup', function(evt) {
handleMouseEvent(evt, true);
});
canvas.on('mousemove', function(evt) {
if(mouseDown) {
handleMouseEvent(evt);
}
});
function handleMouseEvent(evt, finishDrag) {
var x = evt.offsetX + camera.x;
var y = evt.offsetY + camera.y;
var col = Math.floor(x / Constants.TILE_SIZE);
var row = Math.floor(y / Constants.TILE_SIZE);
//always triggered by a mousedown event:
if(!mouseDown) {
mouseDown = true;
if(evt.shiftKey) {
startOfDrag = { row: row, col: col };
removeDragged = evt.altKey;
}
if(hud.handleMouseEvent(evt, finishDrag)) {
hudIsHandlingMouseEvent = true;
}
}
if(hudIsHandlingMouseEvent) {
hud.handleMouseEvent(evt, finishDrag);
}
//if you aren't shift-dragging, operate on the current block
else if(!startOfDrag && (!lastMousedOver || lastMousedOver.col !== col || lastMousedOver.row !== row)) {
if(evt.altKey) {
removeBlock(col, row);
}
else {
addBlock(col, row, 0);
}
}
//always triggered by a mouseup event:
if(finishDrag) {
//if you are shift dragging, operate on the selected rectangle of tiles
if(startOfDrag && !hudIsHandlingMouseEvent) {
var colMin = Math.min(startOfDrag.col, lastMousedOver.col);
var colMax = Math.max(startOfDrag.col, lastMousedOver.col);
var rowMin = Math.min(startOfDrag.row, lastMousedOver.row);
var rowMax = Math.max(startOfDrag.row, lastMousedOver.row);
for(var c = colMin; c <= colMax; c++) {
for(var r = rowMin; r <= rowMax; r++) {
if(removeDragged) {
removeBlock(c, r);
}
else {
var frameOffset = 10;
if(c === colMin && c === colMax) { frameOffset -= 2; }
else if(c === colMin) { frameOffset -= 1; }
else if(c === colMax) { frameOffset += 1; }
if(r === rowMin && r === rowMax) { frameOffset -= 8; }
else if(r === rowMin) { frameOffset -= 4; }
else if(r === rowMax) { frameOffset += 4; }
addBlock(c, r, frameOffset);
}
}
}
}
mouseDown = false;
startOfDrag = null;
lastMousedOver = null;
hudIsHandlingMouseEvent = false;
}
else {
lastMousedOver = { col: col, row: row };
}
}
function addBlock(col, row, frameOffset) {
var tileType = hud.getTileType();
var frame = (frameOffset === 0 ? hud.getFrame() : 0);
var variant = Math.floor(tileType.variants * Math.random());
var grid = (tileType.background ? level.backgroundTileGrid : level.tileGrid);
var currentTile = grid.get(col, row);
if(currentTile) {
var v = (currentTile.variant || currentTile.tileType.variants === 1 ? 0 :
1 + Math.floor(Math.random() * (currentTile.tileType.variants - 1)));
grid.add(new Tile(col, row, currentTile.tileType, currentTile.frame, v));
}
else if(typeof frame === 'number') {
grid.add(new Tile(col, row, tileType, frame + frameOffset));
}
else {
grid.add(new Tile(col - 1, row, tileType, frame[0]));
grid.add(new Tile(col, row, tileType, frame[1]));
grid.add(new Tile(col + 1, row, tileType, frame[2]));
}
}
function removeBlock(col, row) {
level.backgroundTileGrid.remove(col, row);
level.tileGrid.remove(col, row);
}
function exportMap() {
console.log("\t\tforeground: {\n" +
exportTileGrid(level.tileGrid) +
"\n\t\t}," +
"\n\t\tbackground: {\n" +
exportTileGrid(level.backgroundTileGrid) +
"\n\t\t}");
}
function exportTileGrid(tileGrid) {
var minCol = Math.min(level.tileGrid.getMinCol(), level.backgroundTileGrid.getMinCol());
var minRow = Math.min(level.tileGrid.getMinRow(), level.backgroundTileGrid.getMinRow());
var symbols = tileGrid.toSymbolMaps(minCol, minRow);
var indent = "\t\t\t";
var s = indent + "tiles: [";
for(var i = 0; i < symbols.tiles.length; i++) {
s += (i > 0 ? "," : "") + "\n" + indent + "\t'" + symbols.tiles[i] + "'";
}
s += "\n" + indent + "], shapes: [";
for(i = 0; i < symbols.shapes.length; i++) {
s += (i > 0 ? "," : "") + "\n" + indent + "\t'" + symbols.shapes[i] + "'";
}
s += "\n" + indent + "], variants: [";
for(i = 0; i < symbols.variants.length; i++) {
s += (i > 0 ? "," : "") + "\n" + indent + "\t'" + symbols.variants[i] + "'";
}
s += "\n" + indent + "]";
return s;
}
//set up animation frame functionality
function loop() {
tick();
render();
requestAnimationFrame(loop);
}
requestAnimationFrame(loop);
};
});
|
{
"content_hash": "955ae8efbcdf5426724b5503350e595e",
"timestamp": "",
"source": "github",
"line_count": 213,
"max_line_length": 107,
"avg_line_length": 31.582159624413144,
"alnum_prop": 0.6014568158168574,
"repo_name": "bridgs/robot-game",
"id": "de10c21c437dc7e92270898ebea92091987b0c23",
"size": "6727",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "javascripts/game/level/LevelEditorMain.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "340"
},
{
"name": "JavaScript",
"bytes": "87536"
}
],
"symlink_target": ""
}
|
DEFINE_EXPORTED_UI_CLASS_PROPERTY_TYPE(WM_PUBLIC_EXPORT, wm::TooltipClient*)
DEFINE_EXPORTED_UI_CLASS_PROPERTY_TYPE(WM_PUBLIC_EXPORT, void**)
namespace wm {
DEFINE_UI_CLASS_PROPERTY_KEY(TooltipClient*, kRootWindowTooltipClientKey, NULL)
DEFINE_UI_CLASS_PROPERTY_KEY(std::u16string*, kTooltipTextKey, NULL)
DEFINE_UI_CLASS_PROPERTY_KEY(void*, kTooltipIdKey, NULL)
void SetTooltipClient(aura::Window* root_window, TooltipClient* client) {
DCHECK_EQ(root_window->GetRootWindow(), root_window);
root_window->SetProperty(kRootWindowTooltipClientKey, client);
}
TooltipClient* GetTooltipClient(aura::Window* root_window) {
if (root_window)
DCHECK_EQ(root_window->GetRootWindow(), root_window);
return root_window ?
root_window->GetProperty(kRootWindowTooltipClientKey) : NULL;
}
void SetTooltipText(aura::Window* window, std::u16string* tooltip_text) {
window->SetProperty(kTooltipTextKey, tooltip_text);
}
void SetTooltipId(aura::Window* window, void* id) {
if (id != GetTooltipId(window))
window->SetProperty(kTooltipIdKey, id);
}
const std::u16string GetTooltipText(aura::Window* window) {
std::u16string* string_ptr = window->GetProperty(kTooltipTextKey);
return string_ptr ? *string_ptr : std::u16string();
}
const void* GetTooltipId(aura::Window* window) {
return window->GetProperty(kTooltipIdKey);
}
} // namespace wm
|
{
"content_hash": "1ec21995b87be958d306c5b64977a87b",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 79,
"avg_line_length": 34.05,
"alnum_prop": 0.7547723935389133,
"repo_name": "nwjs/chromium.src",
"id": "2b79b214723edb5ba49dd28d60228257db7b66c7",
"size": "1613",
"binary": false,
"copies": "6",
"ref": "refs/heads/nw70",
"path": "ui/wm/public/tooltip_client.cc",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
}
|
import functools
import inspect
import re
from abc import ABC, ABCMeta, abstractmethod
from typing import Optional, Type
from pants.engine.selectors import Get
from pants.option.errors import OptionsError
from pants.option.scope import Scope, ScopedOptions, ScopeInfo
from pants.util.meta import classproperty
async def _construct_optionable(optionable_factory):
scope = optionable_factory.options_scope
scoped_options = await Get(ScopedOptions, Scope(str(scope)))
return optionable_factory.optionable_cls(scope, scoped_options.options)
class OptionableFactory(ABC):
"""A mixin that provides a method that returns an @rule to construct subclasses of Optionable.
Optionable subclasses constructed in this manner must have a particular constructor shape, which
is loosely defined by `_construct_optionable` and `OptionableFactory.signature`.
"""
@property
@abstractmethod
def optionable_cls(self) -> Type["Optionable"]:
"""The Optionable class that is constructed by this OptionableFactory."""
@property
@abstractmethod
def options_scope(self):
"""The scope from which the ScopedOptions for the target Optionable will be parsed."""
@classmethod
def signature(cls):
"""Returns kwargs to construct a `TaskRule` that will construct the target Optionable.
TODO: This indirection avoids a cycle between this module and the `rules` module.
"""
partial_construct_optionable = functools.partial(_construct_optionable, cls)
# NB: We must populate several dunder methods on the partial function because partial functions
# do not have these defined by default and the engine uses these values to visualize functions
# in error messages and the rule graph.
snake_scope = cls.options_scope.replace("-", "_")
partial_construct_optionable.__name__ = f"construct_scope_{snake_scope}"
partial_construct_optionable.__module__ = cls.__module__
_, class_definition_lineno = inspect.getsourcelines(cls)
partial_construct_optionable.__line_number__ = class_definition_lineno
return dict(
output_type=cls.optionable_cls,
input_selectors=tuple(),
func=partial_construct_optionable,
input_gets=(Get.create_statically_for_rule_graph(ScopedOptions, Scope),),
dependency_optionables=(cls.optionable_cls,),
)
class Optionable(OptionableFactory, metaclass=ABCMeta):
"""A mixin for classes that can register options on some scope."""
# Subclasses must override.
options_scope: Optional[str] = None
options_scope_category: Optional[str] = None
# Subclasses may override these to specify a deprecated former name for this Optionable's scope.
# Option values can be read from the deprecated scope, but a deprecation warning will be issued.
# The deprecation warning becomes an error at the given Pants version (which must therefore be
# a valid semver).
deprecated_options_scope: Optional[str] = None
deprecated_options_scope_removal_version: Optional[str] = None
_scope_name_component_re = re.compile(r"^(?:[a-z0-9])+(?:-(?:[a-z0-9])+)*$")
@classproperty
def optionable_cls(cls):
# Fills the `OptionableFactory` contract.
return cls
@classmethod
def is_valid_scope_name_component(cls, s: str) -> bool:
return s == "" or cls._scope_name_component_re.match(s) is not None
@classmethod
def validate_scope_name_component(cls, s: str) -> None:
if not cls.is_valid_scope_name_component(s):
raise OptionsError(
f'Options scope "{s}" is not valid:\nReplace in code with a new scope name consisting of '
f"dash-separated-words, with words consisting only of lower-case letters and digits."
)
@classmethod
def get_scope_info(cls):
"""Returns a ScopeInfo instance representing this Optionable's options scope."""
if cls.options_scope is None or cls.options_scope_category is None:
raise OptionsError(f"{cls.__name__} must set options_scope and options_scope_category.")
return ScopeInfo(cls.options_scope, cls.options_scope_category, cls)
@classmethod
def subscope(cls, scope):
"""Create a subscope under this Optionable's scope."""
return f"{cls.options_scope}.{scope}"
@classmethod
def known_scope_infos(cls):
"""Yields ScopeInfo for all known scopes for this optionable, in no particular order.
Specific Optionable subtypes may override to provide information about other optionables.
"""
yield cls.get_scope_info()
@classmethod
def get_options_scope_equivalent_flag_component(cls):
"""Return a string representing this optionable's scope as it would be in a command line
flag.
This method can be used to generate error messages with flags e.g. to fix some error with a
pants command. These flags will then be as specific as possible, including e.g. all
dependent subsystem scopes.
"""
return re.sub(r"\.", "-", cls.options_scope)
@classmethod
def get_description(cls):
# First line of docstring.
return "" if cls.__doc__ is None else cls.__doc__.partition("\n")[0].strip()
@classmethod
def register_options(cls, register):
"""Register options for this optionable.
Subclasses may override and call register(*args, **kwargs).
"""
@classmethod
def register_options_on_scope(cls, options):
"""Trigger registration of this optionable's options.
Subclasses should not generally need to override this method.
"""
cls.register_options(options.registration_function_for_optionable(cls))
def __init__(self) -> None:
# Check that the instance's class defines options_scope.
# Note: It is a bit odd to validate a class when instantiating an object of it. but checking
# the class itself (e.g., via metaclass magic) turns out to be complicated, because
# non-instantiable subclasses (such as TaskBase, Task, Subsystem and other domain-specific
# intermediate classes) don't define options_scope, so we can only apply this check to
# instantiable classes. And the easiest way to know if a class is instantiable is to hook into
# its __init__, as we do here. We usually only create a single instance of an Optionable
# subclass anyway.
cls = type(self)
if not isinstance(cls.options_scope, str):
raise NotImplementedError(f"{cls} must set an options_scope class-level property.")
|
{
"content_hash": "98b26927cda4744816e70f8531f1a35c",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 106,
"avg_line_length": 42.82802547770701,
"alnum_prop": 0.6842653182629387,
"repo_name": "wisechengyi/pants",
"id": "095c9ccb9c708a513cd284980756fbacd23b9319",
"size": "6856",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/python/pants/option/optionable.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "655"
},
{
"name": "C++",
"bytes": "2010"
},
{
"name": "CSS",
"bytes": "9444"
},
{
"name": "Dockerfile",
"bytes": "6634"
},
{
"name": "GAP",
"bytes": "1283"
},
{
"name": "Gherkin",
"bytes": "919"
},
{
"name": "Go",
"bytes": "2765"
},
{
"name": "HTML",
"bytes": "44381"
},
{
"name": "Java",
"bytes": "507948"
},
{
"name": "JavaScript",
"bytes": "22906"
},
{
"name": "Python",
"bytes": "7608990"
},
{
"name": "Rust",
"bytes": "1005243"
},
{
"name": "Scala",
"bytes": "106520"
},
{
"name": "Shell",
"bytes": "105217"
},
{
"name": "Starlark",
"bytes": "489739"
},
{
"name": "Thrift",
"bytes": "2953"
}
],
"symlink_target": ""
}
|
package game;
import java.io.FileInputStream;
import java.io.IOException;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import sun.audio.AudioData;
import sun.audio.AudioPlayer;
import sun.audio.AudioStream;
import sun.audio.ContinuousAudioDataStream;
import sun.audio.*;
import java.io.IOException;
import java.io.*;
public class Audio {
public static synchronized void playSound(final String url,
final boolean muted) {
new Thread(new Runnable() {
public void run() {
if (!muted) {
try {
Clip clip = AudioSystem.getClip();
AudioInputStream inputStream = AudioSystem.getAudioInputStream(Audio.class
.getResourceAsStream("/Samples/" + url));
clip.open(inputStream);
clip.start();
// clip.loop(Clip.LOOP_CONTINUOUSLY);
} catch (Exception e) {
System.err.println(e.getMessage());
}
}
}
}).start();
}
public static void music(MainMenu menu) {
System.out.println("Music is called");
try {
Clip clip = AudioSystem.getClip();
AudioInputStream inputStream = AudioSystem
.getAudioInputStream(Audio.class
.getResourceAsStream("/Samples/Music.wav"));
clip.open(inputStream);
MuteListener ml = new MuteListener() {
@Override
public void muteAction(boolean isMuted) {
try{
if (isMuted) {
stopClip(clip);
}else
playClipLoop(clip);
}catch(Exception e){
}
}
};
menu.addMuteListener(ml);
if(!menu.mute)
playClipLoop(clip);
}
catch (Exception e) {
System.err.println(e.getMessage());
}
}
private static void playClipLoop(Clip clip) throws Exception {
clip.start();
clip.loop(Clip.LOOP_CONTINUOUSLY);
}
private static void stopClip(Clip clip) throws Exception {
clip.stop();
}
}
|
{
"content_hash": "1814d3cef01f542859a3f35b4cccb86c",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 80,
"avg_line_length": 21.056818181818183,
"alnum_prop": 0.6740420939017809,
"repo_name": "andreRBarata/runningman",
"id": "8c4b57e489f7234c34d8b0aa68b49402c33267a2",
"size": "1853",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/game/Audio.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "50785"
}
],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WPILIB: CoordinateTransform_struct Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>CoordinateTransform_struct Struct Reference</h1><!-- doxytag: class="CoordinateTransform_struct" --><code>#include <<a class="el" href="nivision_8h-source.html">nivision.h</a>></code>
<p>
<p>
<a href="structCoordinateTransform__struct-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structPoint__struct.html">Point</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structCoordinateTransform__struct.html#ef069d3dd5b11fa88c8c068cb5bb975a">initialOrigin</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="structCoordinateTransform__struct.html#55181d79cf0d1a88a3c553d05288adab">initialAngle</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structPoint__struct.html">Point</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structCoordinateTransform__struct.html#46130a6771554d6652f099c944d0073e">finalOrigin</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="structCoordinateTransform__struct.html#53dfa395fd10f7ee7fe8e76062603679">finalAngle</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition at line <a class="el" href="nivision_8h-source.html#l03461">3461</a> of file <a class="el" href="nivision_8h-source.html">nivision.h</a>.</p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="53dfa395fd10f7ee7fe8e76062603679"></a><!-- doxytag: member="CoordinateTransform_struct::finalAngle" ref="53dfa395fd10f7ee7fe8e76062603679" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float <a class="el" href="structCoordinateTransform__struct.html#53dfa395fd10f7ee7fe8e76062603679">CoordinateTransform_struct::finalAngle</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="nivision_8h-source.html#l03465">3465</a> of file <a class="el" href="nivision_8h-source.html">nivision.h</a>.</p>
</div>
</div><p>
<a class="anchor" name="46130a6771554d6652f099c944d0073e"></a><!-- doxytag: member="CoordinateTransform_struct::finalOrigin" ref="46130a6771554d6652f099c944d0073e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structPoint__struct.html">Point</a> <a class="el" href="structCoordinateTransform__struct.html#46130a6771554d6652f099c944d0073e">CoordinateTransform_struct::finalOrigin</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="nivision_8h-source.html#l03464">3464</a> of file <a class="el" href="nivision_8h-source.html">nivision.h</a>.</p>
</div>
</div><p>
<a class="anchor" name="55181d79cf0d1a88a3c553d05288adab"></a><!-- doxytag: member="CoordinateTransform_struct::initialAngle" ref="55181d79cf0d1a88a3c553d05288adab" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float <a class="el" href="structCoordinateTransform__struct.html#55181d79cf0d1a88a3c553d05288adab">CoordinateTransform_struct::initialAngle</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="nivision_8h-source.html#l03463">3463</a> of file <a class="el" href="nivision_8h-source.html">nivision.h</a>.</p>
</div>
</div><p>
<a class="anchor" name="ef069d3dd5b11fa88c8c068cb5bb975a"></a><!-- doxytag: member="CoordinateTransform_struct::initialOrigin" ref="ef069d3dd5b11fa88c8c068cb5bb975a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structPoint__struct.html">Point</a> <a class="el" href="structCoordinateTransform__struct.html#ef069d3dd5b11fa88c8c068cb5bb975a">CoordinateTransform_struct::initialOrigin</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="nivision_8h-source.html#l03462">3462</a> of file <a class="el" href="nivision_8h-source.html">nivision.h</a>.</p>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="nivision_8h-source.html">nivision.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 9 11:20:47 2011 for WPILIB by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
|
{
"content_hash": "1fd42d25697dc5552a682eb3333afe10",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 289,
"avg_line_length": 50.107438016528924,
"alnum_prop": 0.6839848259937324,
"repo_name": "rubik951/Neat-Team-1943",
"id": "a7db698a9d2cf8153f9b4cd5019b6f30101fec97",
"size": "6063",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Documentation/WPILib-doxygen/html/structCoordinateTransform__struct.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1081"
},
{
"name": "C++",
"bytes": "29230"
},
{
"name": "CSS",
"bytes": "10373"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bitcoin</source>
<translation>À propos de Bitcoin</translation>
</message>
<message>
<location filename="../forms/aboutdialog.ui" line="53"/>
<source><b>Bitcoin</b> version</source>
<translation><b>Bitcoin</b> version</translation>
</message>
<message>
<location filename="../forms/aboutdialog.ui" line="97"/>
<source>Copyright © 2009-2012 Bitcoin Developers
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>Copyright © 2009-2012 Développeurs de Bitcoin
Ce logiciel est en phase expérimentale.
Distribué sous licence MIT/X11, voir le fichier license.txt ou http://www.opensource.org/licenses/mit-license.php.
Ce produit comprend des logiciels développés par le projet OpenSSL pour être utilisés dans la boîte à outils OpenSSL (http://www.openssl.org/), un logiciel cryptographique écrit par Eric Young (eay@cryptsoft.com) et un logiciel UPnP écrit par Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="14"/>
<source>Address Book</source>
<translation>Options interface utilisateur</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="20"/>
<source>These are your Bitcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation>Voici vos adresses Bitcoin qui vous permettent de recevoir des paiements. Vous pouvez donner une adresse différente à chaque expéditeur afin de savoir qui vous paye.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="36"/>
<source>Double-click to edit address or label</source>
<translation>Double cliquez afin de modifier l'adresse ou l'étiquette</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="63"/>
<source>Create a new address</source>
<translation>Créer une nouvelle adresse</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="77"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Signature invalide</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="66"/>
<source>&New Address</source>
<translation>&Nouvelle adresse</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="80"/>
<source>&Copy Address</source>
<translation>&Copier l'adresse</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="91"/>
<source>Show &QR Code</source>
<translation>Afficher le &QR Code</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="102"/>
<source>Sign a message to prove you own this address</source>
<translation>Signer un message pour prouver que vous détenez cette adresse</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="105"/>
<source>&Sign Message</source>
<translation>&Signer un message</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="116"/>
<source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source>
<translation>Supprimer l'adresse sélectionnée dans la liste. Seules les adresses d'envoi peuvent être supprimées.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="119"/>
<source>&Delete</source>
<translation>&Supprimer</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="63"/>
<source>Copy &Label</source>
<translation>Copier l'é&tiquette</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="65"/>
<source>&Edit</source>
<translation>&Éditer</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="292"/>
<source>Export Address Book Data</source>
<translation>Exporter les données du carnet d'adresses</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="293"/>
<source>Comma separated file (*.csv)</source>
<translation>Valeurs séparées par des virgules (*.csv)</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="306"/>
<source>Error exporting</source>
<translation>Erreur lors de l'exportation</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="306"/>
<source>Could not write to file %1.</source>
<translation>Impossible d'écrire sur le fichier %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="142"/>
<source>Label</source>
<translation>Étiquette</translation>
</message>
<message>
<location filename="../addresstablemodel.cpp" line="142"/>
<source>Address</source>
<translation>Adresse</translation>
</message>
<message>
<location filename="../addresstablemodel.cpp" line="178"/>
<source>(no label)</source>
<translation>(aucune étiquette)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="26"/>
<source>Passphrase Dialog</source>
<translation>Dialogue de phrase de passe</translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="47"/>
<source>Enter passphrase</source>
<translation>Entrez la phrase de passe</translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="61"/>
<source>New passphrase</source>
<translation>Nouvelle phrase de passe</translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="75"/>
<source>Repeat new passphrase</source>
<translation>Répétez la phrase de passe</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Entrez une nouvelle phrase de passe pour le porte-monnaie.<br/>Veuillez utiliser une phrase de <b>10 caractères au hasard ou plus</b> ou bien de <b>huit mots ou plus</b>.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="34"/>
<source>Encrypt wallet</source>
<translation>Chiffrer le porte-monnaie</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="37"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Cette opération nécessite votre phrase de passe pour déverrouiller le porte-monnaie.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="42"/>
<source>Unlock wallet</source>
<translation>Déverrouiller le porte-monnaie</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="45"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Cette opération nécessite votre phrase de passe pour décrypter le porte-monnaie.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="50"/>
<source>Decrypt wallet</source>
<translation>Décrypter le porte-monnaie</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="53"/>
<source>Change passphrase</source>
<translation>Changer la phrase de passe</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="54"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Entrez l’ancienne phrase de passe pour le porte-monnaie ainsi que la nouvelle.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="100"/>
<source>Confirm wallet encryption</source>
<translation>Confirmer le chiffrement du porte-monnaie</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="101"/>
<source>WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>!
Are you sure you wish to encrypt your wallet?</source>
<translation>ATTENTION : Si vous chiffrez votre porte-monnaie et perdez votre phrase de passe, vous <b>PERDREZ TOUS VOS BITCOINS</b> !
Êtes-vous sûr de vouloir chiffrer votre porte-monnaie ?</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="110"/>
<location filename="../askpassphrasedialog.cpp" line="159"/>
<source>Wallet encrypted</source>
<translation>Porte-monnaie chiffré</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="111"/>
<source>Bitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source>
<translation>Bitcoin va à présent se fermer pour terminer la procédure de cryptage. N'oubliez pas que le chiffrement de votre porte-monnaie ne peut pas fournir une protection totale contre le vol par des logiciels malveillants qui infecteraient votre ordinateur.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="207"/>
<location filename="../askpassphrasedialog.cpp" line="231"/>
<source>Warning: The Caps Lock key is on.</source>
<translation>Attention : la touche Verrouiller Maj est activée.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="116"/>
<location filename="../askpassphrasedialog.cpp" line="123"/>
<location filename="../askpassphrasedialog.cpp" line="165"/>
<location filename="../askpassphrasedialog.cpp" line="171"/>
<source>Wallet encryption failed</source>
<translation>Le chiffrement du porte-monnaie a échoué</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="117"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Le chiffrement du porte-monnaie a échoué en raison d'une erreur interne. Votre porte-monnaie n'a pas été chiffré.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="124"/>
<location filename="../askpassphrasedialog.cpp" line="172"/>
<source>The supplied passphrases do not match.</source>
<translation>Les phrases de passe entrées ne correspondent pas.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="135"/>
<source>Wallet unlock failed</source>
<translation>Le déverrouillage du porte-monnaie a échoué</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="136"/>
<location filename="../askpassphrasedialog.cpp" line="147"/>
<location filename="../askpassphrasedialog.cpp" line="166"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>La phrase de passe entrée pour décrypter le porte-monnaie était incorrecte.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="146"/>
<source>Wallet decryption failed</source>
<translation>Le décryptage du porte-monnaie a échoué</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="160"/>
<source>Wallet passphrase was succesfully changed.</source>
<translation>La phrase de passe du porte-monnaie a été modifiée avec succès.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="73"/>
<source>Bitcoin Wallet</source>
<translation>Porte-monnaie Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="215"/>
<source>Sign &message...</source>
<translation>Signer le &message...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="248"/>
<source>Show/Hide &Bitcoin</source>
<translation>Afficher/Cacher &Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="515"/>
<source>Synchronizing with network...</source>
<translation>Synchronisation avec le réseau...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="185"/>
<source>&Overview</source>
<translation>&Vue d'ensemble</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="186"/>
<source>Show general overview of wallet</source>
<translation>Affiche une vue d'ensemble du porte-monnaie</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="191"/>
<source>&Transactions</source>
<translation>&Transactions</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="192"/>
<source>Browse transaction history</source>
<translation>Permet de parcourir l'historique des transactions</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="197"/>
<source>&Address Book</source>
<translation>Carnet d'&adresses</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="198"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Éditer la liste des adresses et des étiquettes stockées</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="203"/>
<source>&Receive coins</source>
<translation>&Recevoir des pièces</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="204"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Affiche la liste des adresses pour recevoir des paiements</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="209"/>
<source>&Send coins</source>
<translation>&Envoyer des pièces</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="216"/>
<source>Prove you control an address</source>
<translation>Prouver que vous contrôlez une adresse</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="235"/>
<source>E&xit</source>
<translation>Q&uitter</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="236"/>
<source>Quit application</source>
<translation>Quitter l'application</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="239"/>
<source>&About %1</source>
<translation>&À propos de %1</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="240"/>
<source>Show information about Bitcoin</source>
<translation>Afficher des informations à propos de Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="242"/>
<source>About &Qt</source>
<translation>À propos de &Qt</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="243"/>
<source>Show information about Qt</source>
<translation>Afficher des informations sur Qt</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="245"/>
<source>&Options...</source>
<translation>&Options...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="252"/>
<source>&Encrypt Wallet...</source>
<translation>&Chiffrer le porte-monnaie...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="255"/>
<source>&Backup Wallet...</source>
<translation>&Sauvegarder le porte-monnaie...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="257"/>
<source>&Change Passphrase...</source>
<translation>&Modifier la phrase de passe...</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="517"/>
<source>~%n block(s) remaining</source>
<translation><numerusform>~%n bloc restant</numerusform><numerusform>~%n blocs restants</numerusform></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="528"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation>%1 blocs de l'historique des transactions sur %2 téléchargés (%3% effectué).</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="250"/>
<source>&Export...</source>
<translation>&Exporter...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="210"/>
<source>Send coins to a Bitcoin address</source>
<translation>Envoyer des pièces à une adresse Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="246"/>
<source>Modify configuration options for Bitcoin</source>
<translation>Modifier les options de configuration de Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="249"/>
<source>Show or hide the Bitcoin window</source>
<translation>Afficher ou cacher la fenêtre Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="251"/>
<source>Export the data in the current tab to a file</source>
<translation>Exporter les données de l'onglet courant vers un fichier</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="253"/>
<source>Encrypt or decrypt wallet</source>
<translation>Chiffrer ou décrypter le porte-monnaie</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="256"/>
<source>Backup wallet to another location</source>
<translation>Sauvegarder le porte-monnaie à un autre emplacement</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="258"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Modifier la phrase de passe utilisée pour le cryptage du porte-monnaie</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="259"/>
<source>&Debug window</source>
<translation>Fenêtre de &débogage</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="260"/>
<source>Open debugging and diagnostic console</source>
<translation>Ouvrir une console de débogage et de diagnostic</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="261"/>
<source>&Verify message...</source>
<translation>&Vérifier le message...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="262"/>
<source>Verify a message signature</source>
<translation>Vérifier la signature d'un message</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="286"/>
<source>&File</source>
<translation>&Fichier</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="296"/>
<source>&Settings</source>
<translation>&Réglages</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="302"/>
<source>&Help</source>
<translation>&Aide</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="311"/>
<source>Tabs toolbar</source>
<translation>Barre d'outils des onglets</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="322"/>
<source>Actions toolbar</source>
<translation>Barre d'outils des actions</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="334"/>
<location filename="../bitcoingui.cpp" line="343"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="343"/>
<location filename="../bitcoingui.cpp" line="399"/>
<source>Bitcoin client</source>
<translation>Client Bitcoin</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="492"/>
<source>%n active connection(s) to Bitcoin network</source>
<translation><numerusform>%n connexion active avec le réseau Bitcoin</numerusform><numerusform>%n connexions actives avec le réseau Bitcoin</numerusform></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="540"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation>%1 blocs de l'historique des transactions téléchargés.</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="555"/>
<source>%n second(s) ago</source>
<translation><numerusform>il y a %n seconde</numerusform><numerusform>il y a %n secondes</numerusform></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="559"/>
<source>%n minute(s) ago</source>
<translation><numerusform>il y a %n minute</numerusform><numerusform>il y a %n minutes</numerusform></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="563"/>
<source>%n hour(s) ago</source>
<translation><numerusform>il y a %n heure</numerusform><numerusform>il y a %n heures</numerusform></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="567"/>
<source>%n day(s) ago</source>
<translation><numerusform>il y a %n jour</numerusform><numerusform>il y a %n jours</numerusform></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="573"/>
<source>Up to date</source>
<translation>À jour</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="580"/>
<source>Catching up...</source>
<translation>Rattrapage...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="590"/>
<source>Last received block was generated %1.</source>
<translation>Le dernier bloc reçu a été généré %1.</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="649"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation>Cette transaction dépasse la limite de taille. Vous pouvez quand même l'envoyer en vous acquittant de frais d'un montant de %1, qui iront aux nœuds qui traiteront la transaction et aideront à soutenir le réseau. Voulez-vous payer les frais ?</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="654"/>
<source>Confirm transaction fee</source>
<translation>Confirmer les frais de transaction</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="681"/>
<source>Sent transaction</source>
<translation>Transaction envoyée</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="682"/>
<source>Incoming transaction</source>
<translation>Transaction entrante</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="683"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Date : %1
Montant : %2
Type : %3
Adresse : %4
</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="804"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Le porte-monnaie est <b>chiffré</b> et est actuellement <b>déverrouillé</b></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="812"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Le porte-monnaie est <b>chiffré</b> et est actuellement <b>verrouillé</b></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="835"/>
<source>Backup Wallet</source>
<translation>Sauvegarder le porte-monnaie</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="835"/>
<source>Wallet Data (*.dat)</source>
<translation>Données de porte-monnaie (*.dat)</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="838"/>
<source>Backup Failed</source>
<translation>La sauvegarde a échoué</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="838"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Une erreur est survenue lors de l'enregistrement des données de porte-monnaie à un autre emplacement.</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="112"/>
<source>A fatal error occured. Bitcoin can no longer continue safely and will quit.</source>
<translation>Une erreur fatale est survenue. Bitcoin ne peut plus continuer à fonctionner de façon sûre et va s'arrêter.</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="84"/>
<source>Network Alert</source>
<translation>Alerte réseau</translation>
</message>
</context>
<context>
<name>DisplayOptionsPage</name>
<message>
<location filename="../optionsdialog.cpp" line="246"/>
<source>Display</source>
<translation>Affichage</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="257"/>
<source>default</source>
<translation>par défaut</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="263"/>
<source>The user interface language can be set here. This setting will only take effect after restarting Bitcoin.</source>
<translation>La langue de l'interface utilisateur peut être définie ici. Ce réglage ne sera pris en compte qu'après un redémarrage de Bitcoin.</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="252"/>
<source>User Interface &Language:</source>
<translation>&Langue de l'interface utilisateur :</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="273"/>
<source>&Unit to show amounts in:</source>
<translation>&Unité d'affichage des montants :</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="277"/>
<source>Choose the default subdivision unit to show in the interface, and when sending coins</source>
<translation>Choisissez la sous-unité par défaut pour l'affichage dans l'interface et lors de l'envoi de pièces</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="284"/>
<source>&Display addresses in transaction list</source>
<translation>&Afficher les adresses sur la liste des transactions</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="285"/>
<source>Whether to show Bitcoin addresses in the transaction list</source>
<translation>Détermine si les adresses Bitcoin seront affichées sur la liste des transactions</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="303"/>
<source>Warning</source>
<translation>Attention</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="303"/>
<source>This setting will take effect after restarting Bitcoin.</source>
<translation>Ce réglage sera pris en compte après un redémarrage de Bitcoin.</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="14"/>
<source>Edit Address</source>
<translation>Éditer l'adresse</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="25"/>
<source>&Label</source>
<translation>&Étiquette</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="35"/>
<source>The label associated with this address book entry</source>
<translation>L'étiquette associée à cette entrée du carnet d'adresses</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="42"/>
<source>&Address</source>
<translation>&Adresse</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="52"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>L'adresse associée avec cette entrée du carnet d'adresses. Ne peut être modifiée que pour les adresses d'envoi.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="20"/>
<source>New receiving address</source>
<translation>Nouvelle adresse de réception</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="24"/>
<source>New sending address</source>
<translation>Nouvelle adresse d'envoi</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="27"/>
<source>Edit receiving address</source>
<translation>Éditer l'adresse de réception</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="31"/>
<source>Edit sending address</source>
<translation>Éditer l'adresse d'envoi</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="91"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>L'adresse fournie « %1 » est déjà présente dans le carnet d'adresses.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="96"/>
<source>The entered address "%1" is not a valid Bitcoin address.</source>
<translation>L'adresse fournie « %1 » n'est pas une adresse Bitcoin valide.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="101"/>
<source>Could not unlock wallet.</source>
<translation>Impossible de déverrouiller le porte-monnaie.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="106"/>
<source>New key generation failed.</source>
<translation>Échec de la génération de la nouvelle clef.</translation>
</message>
</context>
<context>
<name>HelpMessageBox</name>
<message>
<location filename="../bitcoin.cpp" line="133"/>
<location filename="../bitcoin.cpp" line="143"/>
<source>Bitcoin-Qt</source>
<translation>Bitcoin-Qt</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="133"/>
<source>version</source>
<translation>version</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="135"/>
<source>Usage:</source>
<translation>Utilisation :</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="136"/>
<source>options</source>
<translation>options</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="138"/>
<source>UI options</source>
<translation>Options Interface Utilisateur</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="139"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Définir la langue, par exemple « de_DE » (par défaut : la langue du système)</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="140"/>
<source>Start minimized</source>
<translation>Démarrer sous forme minimisée</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="141"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Afficher l'écran d'accueil au démarrage (par défaut : 1)</translation>
</message>
</context>
<context>
<name>MainOptionsPage</name>
<message>
<location filename="../optionsdialog.cpp" line="227"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation>Détacher les bases de données des blocs et des adresses lors de la fermeture. Cela permet de les déplacer dans un autre répertoire de données mais ralentit la fermeture. Le porte-monnaie est toujours détaché.</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="212"/>
<source>Pay transaction &fee</source>
<translation>Payer des &frais de transaction</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="204"/>
<source>Main</source>
<translation>Principal</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="206"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation>Frais de transaction optionnels par ko qui aident à garantir un traitement rapide des transactions. La plupart des transactions occupent 1 ko. Des frais de 0.01 sont recommandés.</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="222"/>
<source>&Start Bitcoin on system login</source>
<translation>&Démarrer Bitcoin lors de l'ouverture d'une session</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="223"/>
<source>Automatically start Bitcoin after logging in to the system</source>
<translation>Démarrer Bitcoin automatiquement après avoir ouvert une session sur l'ordinateur</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="226"/>
<source>&Detach databases at shutdown</source>
<translation>&Détacher les bases de données lors de la fermeture</translation>
</message>
</context>
<context>
<name>MessagePage</name>
<message>
<location filename="../forms/messagepage.ui" line="14"/>
<source>Sign Message</source>
<translation>Signer le message</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="20"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Vous pouvez signer des messages avec vos adresses pour prouver que les détenez. Faites attention à ne pas signer quoi que ce soit de vague car des attaques d'hameçonnage peuvent essayer d'obtenir votre identité par votre signature. Ne signez que des déclarations entièrement détaillées et avec lesquelles vous serez d'accord.</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="38"/>
<source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>L'adresse avec laquelle le message sera signé ( par ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="48"/>
<source>Choose adress from address book</source>
<translation>Choisir une adresse depuis le carnet d'adresses</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="58"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="71"/>
<source>Paste address from clipboard</source>
<translation>Coller une adresse depuis le presse-papiers</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="81"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="93"/>
<source>Enter the message you want to sign here</source>
<translation>Entrez ici le message que vous désirez signer</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="128"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Copier la signature actuelle dans le presse-papiers</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="131"/>
<source>&Copy Signature</source>
<translation>&Copier la signature</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="142"/>
<source>Reset all sign message fields</source>
<translation>Remettre à zéro tous les champs de signature de message</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="145"/>
<source>Clear &All</source>
<translation>&Tout nettoyer</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="31"/>
<source>Click "Sign Message" to get signature</source>
<translation>Cliquez sur « Signer le message » pour obtenir la signature</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="114"/>
<source>Sign a message to prove you own this address</source>
<translation>Signer le message pour prouver que vous détenez cette adresse</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="117"/>
<source>&Sign Message</source>
<translation>&Signer le message</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="30"/>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Entrez une adresse Bitcoin (par ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="83"/>
<location filename="../messagepage.cpp" line="90"/>
<location filename="../messagepage.cpp" line="105"/>
<location filename="../messagepage.cpp" line="117"/>
<source>Error signing</source>
<translation>Une erreur est survenue lors de la signature</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="83"/>
<source>%1 is not a valid address.</source>
<translation>%1 n'est pas une adresse valide.</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="90"/>
<source>%1 does not refer to a key.</source>
<translation>%1 ne renvoie pas à une clef.</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="105"/>
<source>Private key for %1 is not available.</source>
<translation>La clef privée pour %1 n'est pas disponible.</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="117"/>
<source>Sign failed</source>
<translation>Échec de la signature</translation>
</message>
</context>
<context>
<name>NetworkOptionsPage</name>
<message>
<location filename="../optionsdialog.cpp" line="345"/>
<source>Network</source>
<translation>Réseau</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="347"/>
<source>Map port using &UPnP</source>
<translation>Ouvrir le port avec l'&UPnP</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="348"/>
<source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Ouvrir le port du client Bitcoin automatiquement sur le routeur. Cela ne fonctionne que si votre routeur supporte l'UPnP et si la fonctionnalité est activée.</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="351"/>
<source>&Connect through SOCKS4 proxy:</source>
<translation>&Connexion à travers un proxy SOCKS4 :</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="352"/>
<source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source>
<translation>Connexion au réseau Bitcoin à travers un proxy SOCKS4 (par ex. lors d'une connexion via Tor)</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="357"/>
<source>Proxy &IP:</source>
<translation>&IP du proxy :</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="366"/>
<source>&Port:</source>
<translation>&Port :</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="363"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>Adresse IP du proxy (par ex. 127.0.0.1)</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="372"/>
<source>Port of the proxy (e.g. 1234)</source>
<translation>Port du proxy (par ex. 1234)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../optionsdialog.cpp" line="135"/>
<source>Options</source>
<translation>Options</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="14"/>
<source>Form</source>
<translation>Formulaire</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="47"/>
<location filename="../forms/overviewpage.ui" line="204"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.</source>
<translation>L'information affichée peut être obsolète. Votre porte-monnaie est automatiquement synchronisé avec le réseau Bitcoin lorsque la connexion s'établit, mais ce processus n'est pas encore terminé.</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="89"/>
<source>Balance:</source>
<translation>Solde :</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="147"/>
<source>Number of transactions:</source>
<translation>Nombre de transactions :</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="118"/>
<source>Unconfirmed:</source>
<translation>Non confirmé :</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="40"/>
<source>Wallet</source>
<translation>Porte-monnaie</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="197"/>
<source><b>Recent transactions</b></source>
<translation><b>Transactions récentes</b></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="105"/>
<source>Your current balance</source>
<translation>Votre solde actuel</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="134"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Total des transactions qui doivent encore être confirmées et qui ne sont pas prises en compte pour le solde actuel</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="154"/>
<source>Total number of transactions in wallet</source>
<translation>Nombre total de transactions dans le porte-monnaie</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="110"/>
<location filename="../overviewpage.cpp" line="111"/>
<source>out of sync</source>
<translation>désynchronisé</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="14"/>
<source>QR Code Dialog</source>
<translation>Dialogue de QR Code</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="32"/>
<source>QR Code</source>
<translation>QR Code</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="55"/>
<source>Request Payment</source>
<translation>Demande de paiement</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="70"/>
<source>Amount:</source>
<translation>Montant :</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="105"/>
<source>KIN</source>
<translation>KIN</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="121"/>
<source>Label:</source>
<translation>Étiquette :</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="144"/>
<source>Message:</source>
<translation>Message :</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="186"/>
<source>&Save As...</source>
<translation>&Enregistrer sous...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="45"/>
<source>Error encoding URI into QR Code.</source>
<translation>Erreur de l'encodage de l'URI dans le QR Code.</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="63"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>L'URI résultant est trop long, essayez avec un texte d'étiquette ou de message plus court.</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="120"/>
<source>Save QR Code</source>
<translation>Sauvegarder le QR Code</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="120"/>
<source>PNG Images (*.png)</source>
<translation>Images PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="14"/>
<source>Bitcoin debug window</source>
<translation>Fenêtre de débogage de Bitcoin</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="46"/>
<source>Client name</source>
<translation>Nom du client</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="56"/>
<location filename="../forms/rpcconsole.ui" line="79"/>
<location filename="../forms/rpcconsole.ui" line="102"/>
<location filename="../forms/rpcconsole.ui" line="125"/>
<location filename="../forms/rpcconsole.ui" line="161"/>
<location filename="../forms/rpcconsole.ui" line="214"/>
<location filename="../forms/rpcconsole.ui" line="237"/>
<location filename="../forms/rpcconsole.ui" line="260"/>
<location filename="../rpcconsole.cpp" line="245"/>
<source>N/A</source>
<translation>Indisponible</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="69"/>
<source>Client version</source>
<translation>Version du client</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="24"/>
<source>&Information</source>
<translation>&Information</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="39"/>
<source>Client</source>
<translation>Client</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="115"/>
<source>Startup time</source>
<translation>Temps de démarrage</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="144"/>
<source>Network</source>
<translation>Réseau</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="151"/>
<source>Number of connections</source>
<translation>Nombre de connexions</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="174"/>
<source>On testnet</source>
<translation>Sur testnet</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="197"/>
<source>Block chain</source>
<translation>Chaîne de blocs</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="204"/>
<source>Current number of blocks</source>
<translation>Nombre actuel de blocs</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="227"/>
<source>Estimated total blocks</source>
<translation>Nombre total estimé de blocs</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="250"/>
<source>Last block time</source>
<translation>Horodatage du dernier bloc</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="292"/>
<source>Debug logfile</source>
<translation>Journal de débogage</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="299"/>
<source>Open the Bitcoin debug logfile from the current data directory. This can take a few seconds for large logfiles.</source>
<translation>Ouvrir le journal de débogage de Bitcoin depuis le répertoire courant. Cela peut prendre quelques secondes pour les journaux de grande taille.</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="302"/>
<source>&Open</source>
<translation>&Ouvrir</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="323"/>
<source>&Console</source>
<translation>&Console</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="92"/>
<source>Build date</source>
<translation>Date de compilation</translation>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="372"/>
<source>Clear console</source>
<translation>Nettoyer la console</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="212"/>
<source>Welcome to the Bitcoin RPC console.</source>
<translation>Bienvenue sur la console RPC de Bitcoin.</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="213"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Utilisez les touches de curseur pour naviguer dans l'historique et <b>Ctrl-L</b> pour effacer l'écran.</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="214"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Tapez <b>help</b> pour afficher une vue générale des commandes disponibles.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="14"/>
<location filename="../sendcoinsdialog.cpp" line="122"/>
<location filename="../sendcoinsdialog.cpp" line="127"/>
<location filename="../sendcoinsdialog.cpp" line="132"/>
<location filename="../sendcoinsdialog.cpp" line="137"/>
<location filename="../sendcoinsdialog.cpp" line="143"/>
<location filename="../sendcoinsdialog.cpp" line="148"/>
<location filename="../sendcoinsdialog.cpp" line="153"/>
<source>Send Coins</source>
<translation>Envoyer des pièces</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="64"/>
<source>Send to multiple recipients at once</source>
<translation>Envoyer des pièces à plusieurs destinataires à la fois</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="67"/>
<source>&Add Recipient</source>
<translation>&Ajouter un destinataire</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="84"/>
<source>Remove all transaction fields</source>
<translation>Enlever tous les champs de transaction</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="87"/>
<source>Clear &All</source>
<translation>&Tout nettoyer</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="106"/>
<source>Balance:</source>
<translation>Solde :</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="113"/>
<source>123.456 KIN</source>
<translation>123.456 KIN</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="144"/>
<source>Confirm the send action</source>
<translation>Confirmer l'action d'envoi</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="147"/>
<source>&Send</source>
<translation>&Envoyer</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="94"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> à %2 (%3)</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="99"/>
<source>Confirm send coins</source>
<translation>Confirmer l'envoi des pièces</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="100"/>
<source>Are you sure you want to send %1?</source>
<translation>Êtes-vous sûr de vouloir envoyer %1 ?</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="100"/>
<source> and </source>
<translation> et </translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="123"/>
<source>The recepient address is not valid, please recheck.</source>
<translation>L'adresse du destinataire n'est pas valide, veuillez la vérifier.</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="128"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Le montant à payer doit être supérieur à 0.</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="133"/>
<source>The amount exceeds your balance.</source>
<translation>Le montant dépasse votre solde.</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="138"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Le montant dépasse votre solde lorsque les frais de transaction de %1 sont inclus.</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="144"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Adresse dupliquée trouvée, il n'est possible d'envoyer qu'une fois à chaque adresse par opération d'envoi.</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="149"/>
<source>Error: Transaction creation failed.</source>
<translation>Erreur : échec de la création de la transaction.</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="154"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Erreur : la transaction a été rejetée. Cela peut arriver si certaines pièces de votre porte-monnaie ont déjà été dépensées, par exemple si vous avez utilisé une copie de wallet.dat avec laquelle les pièces ont été dépensées mais pas marquées comme telles ici.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="14"/>
<source>Form</source>
<translation>Formulaire</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="29"/>
<source>A&mount:</source>
<translation>&Montant :</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="42"/>
<source>Pay &To:</source>
<translation>Payer &à :</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="66"/>
<location filename="../sendcoinsentry.cpp" line="25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Entrez une étiquette pour cette adresse afin de l'ajouter à votre carnet d'adresses</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="75"/>
<source>&Label:</source>
<translation>&Étiquette :</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="93"/>
<source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>L'adresse à laquelle le paiement sera envoyé (par ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="103"/>
<source>Choose address from address book</source>
<translation>Choisir une adresse dans le carnet d'adresses</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="113"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="120"/>
<source>Paste address from clipboard</source>
<translation>Coller une adresse depuis le presse-papiers</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="130"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="137"/>
<source>Remove this recipient</source>
<translation>Enlever ce destinataire</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="26"/>
<source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Entrez une adresse Bitcoin (par ex. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="21"/>
<source>Open for %1 blocks</source>
<translation>Ouvert pour %1 blocs</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="23"/>
<source>Open until %1</source>
<translation>Ouvert jusqu'à %1</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="29"/>
<source>%1/offline?</source>
<translation>%1/hors ligne ?</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="31"/>
<source>%1/unconfirmed</source>
<translation>%1/non confirmée</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="33"/>
<source>%1 confirmations</source>
<translation>%1 confirmations</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="51"/>
<source><b>Status:</b> </source>
<translation><b>État :</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="56"/>
<source>, has not been successfully broadcast yet</source>
<translation>, n'a pas encore été diffusée avec succès</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="58"/>
<source>, broadcast through %1 node</source>
<translation>, diffusée à travers %1 nœud</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="60"/>
<source>, broadcast through %1 nodes</source>
<translation>, diffusée à travers %1 nœuds</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="64"/>
<source><b>Date:</b> </source>
<translation><b>Date :</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="71"/>
<source><b>Source:</b> Generated<br></source>
<translation><b>Source :</b> Généré<br></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="77"/>
<location filename="../transactiondesc.cpp" line="94"/>
<source><b>From:</b> </source>
<translation><b>De :</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="94"/>
<source>unknown</source>
<translation>inconnu</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="95"/>
<location filename="../transactiondesc.cpp" line="118"/>
<location filename="../transactiondesc.cpp" line="178"/>
<source><b>To:</b> </source>
<translation><b>À :</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="98"/>
<source> (yours, label: </source>
<translation> (vôtre, étiquette : </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="100"/>
<source> (yours)</source>
<translation> (vôtre)</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="136"/>
<location filename="../transactiondesc.cpp" line="150"/>
<location filename="../transactiondesc.cpp" line="195"/>
<location filename="../transactiondesc.cpp" line="212"/>
<source><b>Credit:</b> </source>
<translation><b>Crédit : </b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="138"/>
<source>(%1 matures in %2 more blocks)</source>
<translation>(%1 sera considérée comme mûre suite à %2 blocs de plus)</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="142"/>
<source>(not accepted)</source>
<translation>(pas accepté)</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="186"/>
<location filename="../transactiondesc.cpp" line="194"/>
<location filename="../transactiondesc.cpp" line="209"/>
<source><b>Debit:</b> </source>
<translation><b>Débit : </b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="200"/>
<source><b>Transaction fee:</b> </source>
<translation><b>Frais de transaction :</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="216"/>
<source><b>Net amount:</b> </source>
<translation><b>Montant net :</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="222"/>
<source>Message:</source>
<translation>Message :</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="224"/>
<source>Comment:</source>
<translation>Commentaire :</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="226"/>
<source>Transaction ID:</source>
<translation>ID de la transaction :</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="229"/>
<source>Generated coins must wait 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to "not accepted" and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>Les pièces générées doivent attendre 120 blocs avant de pouvoir être dépensées. Lorsque vous avez généré ce bloc, il a été diffusé sur le réseau pour être ajouté à la chaîne des blocs. S'il échoue a intégrer la chaîne, il sera modifié en « pas accepté » et il ne sera pas possible de le dépenser. Cela peut arriver occasionnellement si un autre nœud génère un bloc quelques secondes avant ou après vous.</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="14"/>
<source>Transaction details</source>
<translation>Détails de la transaction</translation>
</message>
<message>
<location filename="../forms/transactiondescdialog.ui" line="20"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Ce panneau affiche une description détaillée de la transaction</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="226"/>
<source>Date</source>
<translation>Date</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="226"/>
<source>Type</source>
<translation>Type</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="226"/>
<source>Address</source>
<translation>Adresse</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="226"/>
<source>Amount</source>
<translation>Montant</translation>
</message>
<message numerus="yes">
<location filename="../transactiontablemodel.cpp" line="281"/>
<source>Open for %n block(s)</source>
<translation><numerusform>Ouvert pour %n bloc</numerusform><numerusform>Ouvert pour %n blocs</numerusform></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="284"/>
<source>Open until %1</source>
<translation>Ouvert jusqu'à %1</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="287"/>
<source>Offline (%1 confirmations)</source>
<translation>Hors ligne (%1 confirmations)</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="290"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Non confirmée (%1 confirmations sur un total de %2)</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="293"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confirmée (%1 confirmations)</translation>
</message>
<message numerus="yes">
<location filename="../transactiontablemodel.cpp" line="301"/>
<source>Mined balance will be available in %n more blocks</source>
<translation><numerusform>Le solde d'extraction (mined) sera disponible dans %n bloc</numerusform><numerusform>Le solde d'extraction (mined) sera disponible dans %n blocs</numerusform></translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="307"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Ce bloc n'a été reçu par aucun autre nœud et ne sera probablement pas accepté !</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="310"/>
<source>Generated but not accepted</source>
<translation>Généré mais pas accepté</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="353"/>
<source>Received with</source>
<translation>Reçue avec</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="355"/>
<source>Received from</source>
<translation>Reçue de</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="358"/>
<source>Sent to</source>
<translation>Envoyée à</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="360"/>
<source>Payment to yourself</source>
<translation>Paiement à vous-même</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="362"/>
<source>Mined</source>
<translation>Extraction</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="400"/>
<source>(n/a)</source>
<translation>(indisponible)</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="599"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>État de la transaction. Laissez le pointeur de la souris sur ce champ pour voir le nombre de confirmations.</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="601"/>
<source>Date and time that the transaction was received.</source>
<translation>Date et heure de réception de la transaction.</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="603"/>
<source>Type of transaction.</source>
<translation>Type de transaction.</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="605"/>
<source>Destination address of transaction.</source>
<translation>L'adresse de destination de la transaction.</translation>
</message>
<message>
<location filename="../transactiontablemodel.cpp" line="607"/>
<source>Amount removed from or added to balance.</source>
<translation>Montant ajouté au ou enlevé du solde.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="55"/>
<location filename="../transactionview.cpp" line="71"/>
<source>All</source>
<translation>Toutes</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="56"/>
<source>Today</source>
<translation>Aujourd'hui</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="57"/>
<source>This week</source>
<translation>Cette semaine</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="58"/>
<source>This month</source>
<translation>Ce mois</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="59"/>
<source>Last month</source>
<translation>Mois dernier</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="60"/>
<source>This year</source>
<translation>Cette année</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="61"/>
<source>Range...</source>
<translation>Intervalle...</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="72"/>
<source>Received with</source>
<translation>Reçues avec</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="74"/>
<source>Sent to</source>
<translation>Envoyées à</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="76"/>
<source>To yourself</source>
<translation>À vous-même</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="77"/>
<source>Mined</source>
<translation>Extraction</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="78"/>
<source>Other</source>
<translation>Autres</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="85"/>
<source>Enter address or label to search</source>
<translation>Entrez une adresse ou une étiquette à rechercher</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="92"/>
<source>Min amount</source>
<translation>Montant min</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="126"/>
<source>Copy address</source>
<translation>Copier l'adresse</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="127"/>
<source>Copy label</source>
<translation>Copier l'étiquette</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="128"/>
<source>Copy amount</source>
<translation>Copier le montant</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="129"/>
<source>Edit label</source>
<translation>Éditer l'étiquette</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="130"/>
<source>Show transaction details</source>
<translation>Afficher les détails de la transaction</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="270"/>
<source>Export Transaction Data</source>
<translation>Exporter les données des transactions</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="271"/>
<source>Comma separated file (*.csv)</source>
<translation>Valeurs séparées par des virgules (*.csv)</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="279"/>
<source>Confirmed</source>
<translation>Confirmée</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="280"/>
<source>Date</source>
<translation>Date</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="281"/>
<source>Type</source>
<translation>Type</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="282"/>
<source>Label</source>
<translation>Étiquette</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="283"/>
<source>Address</source>
<translation>Adresse</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="284"/>
<source>Amount</source>
<translation>Montant</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="285"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="289"/>
<source>Error exporting</source>
<translation>Erreur lors de l'exportation</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="289"/>
<source>Could not write to file %1.</source>
<translation>Impossible d'écrire sur le fichier %1.</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="384"/>
<source>Range:</source>
<translation>Intervalle :</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="392"/>
<source>to</source>
<translation>à</translation>
</message>
</context>
<context>
<name>VerifyMessageDialog</name>
<message>
<location filename="../forms/verifymessagedialog.ui" line="14"/>
<source>Verify Signed Message</source>
<translation>Vérifier le message signé</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="20"/>
<source>Enter the message and signature below (be careful to correctly copy newlines, spaces, tabs and other invisible characters) to obtain the Bitcoin address used to sign the message.</source>
<translation>Entrez le message et la signature ci-dessous (faites attention à copier correctement les nouvelles lignes, les espacement, tabulations et autre caractères invisibles) pour obtenir l'adresse Bitcoin utilisée pour signer le message.</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="62"/>
<source>Verify a message and obtain the Bitcoin address used to sign the message</source>
<translation>Vérifier un message et obtenir l'adresse Bitcoin utilisée pour le signer</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="65"/>
<source>&Verify Message</source>
<translation>&Vérifier le message</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="79"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copier l'adresse surlignée dans votre presse-papiers</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="82"/>
<source>&Copy Address</source>
<translation>&Copier l'adresse</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="93"/>
<source>Reset all verify message fields</source>
<translation>Remettre à zéro tous les champs de vérification de message</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="96"/>
<source>Clear &All</source>
<translation>&Tout nettoyer</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="28"/>
<source>Enter Bitcoin signature</source>
<translation>Entrer une signature Bitcoin</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="29"/>
<source>Click "Verify Message" to obtain address</source>
<translation>Cliquez sur « Vérifier le message » pour obtenir l'adresse</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="55"/>
<location filename="../verifymessagedialog.cpp" line="62"/>
<source>Invalid Signature</source>
<translation>Signature Invalide</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="55"/>
<source>The signature could not be decoded. Please check the signature and try again.</source>
<translation>La signature n'a pu être décodée. Veuillez la vérifier et réessayer.</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="62"/>
<source>The signature did not match the message digest. Please check the signature and try again.</source>
<translation>La signature ne correspond pas au hachage du message. Veuillez vérifier la signature et réessayer.</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="72"/>
<source>Address not found in address book.</source>
<translation>Addresse non trouvée dans l'annuaire.</translation>
</message>
<message>
<location filename="../verifymessagedialog.cpp" line="72"/>
<source>Address found in address book: %1</source>
<translation>Adresse trouvée dans le carnet d'adresses : %1</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="158"/>
<source>Sending...</source>
<translation>Envoi en cours...</translation>
</message>
</context>
<context>
<name>WindowOptionsPage</name>
<message>
<location filename="../optionsdialog.cpp" line="313"/>
<source>Window</source>
<translation>Fenêtre</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="316"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimiser dans la barre système au lieu de la barre des tâches</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="317"/>
<source>Show only a tray icon after minimizing the window</source>
<translation>Montrer uniquement une icône système après minimisation</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="320"/>
<source>M&inimize on close</source>
<translation>M&inimiser lors de la fermeture</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="321"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Minimiser au lieu quitter l'application lorsque la fenêtre est fermée. Lorsque cette option est activée, l'application ne pourra être fermée qu'en sélectionnant Quitter dans le menu déroulant.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="43"/>
<source>Bitcoin version</source>
<translation>Version de Bitcoin</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="44"/>
<source>Usage:</source>
<translation>Utilisation :</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="45"/>
<source>Send command to -server or bitcoind</source>
<translation>Envoyer une commande à -server ou à bitcoind</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="46"/>
<source>List commands</source>
<translation>Lister les commandes</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="47"/>
<source>Get help for a command</source>
<translation>Obtenir de l'aide pour une commande</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="49"/>
<source>Options:</source>
<translation>Options :</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="50"/>
<source>Specify configuration file (default: bitcoin.conf)</source>
<translation>Spécifier le fichier de configuration (par défaut : bitcoin.conf)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="51"/>
<source>Specify pid file (default: bitcoind.pid)</source>
<translation>Spécifier le fichier pid (par défaut : bitcoind.pid)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="52"/>
<source>Generate coins</source>
<translation>Générer des pièces</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="53"/>
<source>Don't generate coins</source>
<translation>Ne pas générer de pièces</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="54"/>
<source>Specify data directory</source>
<translation>Spécifier le répertoire de données</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="55"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Définir la taille du tampon en mégaoctets (par défaut :25)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="56"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation>Définir la taille du journal de la base de données sur le disque en mégaoctets (par défaut : 100)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="57"/>
<source>Specify connection timeout (in milliseconds)</source>
<translation>Spécifier le délai d'expiration de la connexion (en millisecondes)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="63"/>
<source>Listen for connections on <port> (default: 8333 or testnet: 18333)</source>
<translation>Écouter les connexions sur le <port> (par défaut : 8333 ou testnet : 18333)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="64"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Garder au plus <n> connexions avec les pairs (par défaut : 125)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="66"/>
<source>Connect only to the specified node</source>
<translation>Ne se connecter qu'au nœud spécifié</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="67"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Se connecter à un nœud pour obtenir des adresses de pairs puis se déconnecter</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="68"/>
<source>Specify your own public address</source>
<translation>Spécifier votre propre adresse publique</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="69"/>
<source>Only connect to nodes in network <net> (IPv4 or IPv6)</source>
<translation>Se connecter uniquement aux nœuds du réseau <net> (IPv4 ou IPv6)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="70"/>
<source>Try to discover public IP address (default: 1)</source>
<translation>Essayer de découvrir l'adresse IP publique (par défaut : 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="73"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation>Attacher à l'adresse définie. Utilisez la notation [hôte]:port pour l'IPv6</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="75"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Seuil de déconnexion des pairs de mauvaise qualité (par défaut : 100)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="76"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Délai en secondes de refus de reconnexion aux pairs de mauvaise qualité (par défaut : 86400)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="79"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 10000)</source>
<translation>Tampon maximal de réception par connexion, <n>*1000 octets (par défaut : 10000)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="80"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 10000)</source>
<translation>Tampon maximal d'envoi par connexion, <n>*1000 octets (par défaut : 10000)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="83"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation>Détacher les bases de données des blocs et des adresses. Augmente le délai de fermeture (par défaut : 0)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="86"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Accepter les commandes de JSON-RPC et de la ligne de commande</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="87"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Fonctionner en arrière-plan en tant que démon et accepter les commandes</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="88"/>
<source>Use the test network</source>
<translation>Utiliser le réseau de test</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="89"/>
<source>Output extra debugging information</source>
<translation>Informations de débogage supplémentaires</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="90"/>
<source>Prepend debug output with timestamp</source>
<translation>Faire précéder les données de débogage par un horodatage</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="91"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Envoyer les informations de débogage/trace à la console au lieu du fichier debug.log</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="92"/>
<source>Send trace/debug info to debugger</source>
<translation>Envoyer les informations de débogage/trace au débogueur</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="93"/>
<source>Username for JSON-RPC connections</source>
<translation>Nom d'utilisateur pour les connexions JSON-RPC</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="94"/>
<source>Password for JSON-RPC connections</source>
<translation>Mot de passe pour les connexions JSON-RPC</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="95"/>
<source>Listen for JSON-RPC connections on <port> (default: 8332)</source>
<translation>Écouter les connexions JSON-RPC sur le <port> (par défaut : 8332)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="96"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Autoriser les connexions JSON-RPC depuis l'adresse IP spécifiée</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="97"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Envoyer des commandes au nœud fonctionnant à <ip> (par défaut : 127.0.0.1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="98"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Exécuter la commande lorsque le meilleur bloc change (%s est remplacé par le hachage du bloc dans cmd)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="101"/>
<source>Upgrade wallet to latest format</source>
<translation>Mettre à jour le format du porte-monnaie</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="102"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Régler la taille de la plage de clefs sur <n> (par défaut : 100)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="103"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Réanalyser la chaîne de blocs pour les transactions de porte-monnaie manquantes</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="104"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation>Nombre de blocs à tester au démarrage (par défaut : 2500, 0 = tous)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="105"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation>Profondeur de la vérification des blocs (0-6, par défaut : 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="106"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation>Importe des blocs depuis un fichier blk000?.dat externe</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="108"/>
<source>
SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>
Options SSL : (cf. le wiki Bitcoin pour les réglages SSL)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="111"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Utiliser OpenSSL (https) pour les connexions JSON-RPC</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="112"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Fichier de certificat serveur (par défaut : server.cert)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="113"/>
<source>Server private key (default: server.pem)</source>
<translation>Clef privée du serveur (par défaut : server.pem)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="114"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Clefs de chiffrement acceptables (par défaut : TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="145"/>
<source>Warning: Disk space is low</source>
<translation>Attention : l'espace disque est faible</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="107"/>
<source>This help message</source>
<translation>Ce message d'aide</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="121"/>
<source>Cannot obtain a lock on data directory %s. Bitcoin is probably already running.</source>
<translation>Impossible d'obtenir un verrou sur le répertoire de données %s. Bitcoin fonctionne probablement déjà.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="48"/>
<source>Bitcoin</source>
<translation>Bitcoin</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="30"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Impossible de se lier à %s sur cet ordinateur (bind a retourné l'erreur %d, %s)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="58"/>
<source>Connect through socks proxy</source>
<translation>Connexion via un proxy socks</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="59"/>
<source>Select the version of socks proxy to use (4 or 5, 5 is default)</source>
<translation>Sélectionner la version du proxy socks à utiliser (4 ou 5, 5 étant la valeur par défaut)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="60"/>
<source>Do not use proxy for connections to network <net> (IPv4 or IPv6)</source>
<translation>Ne pas utiliser de proxy pour les connexions au réseau <net> (IPv4 ou IPv6)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="61"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Autoriser les recherches DNS pour -addnode, -seednode et -connect</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="62"/>
<source>Pass DNS requests to (SOCKS5) proxy</source>
<translation>Transmettre les requêtes DNS au proxy (SOCKS5)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="142"/>
<source>Loading addresses...</source>
<translation>Chargement des adresses...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="132"/>
<source>Error loading blkindex.dat</source>
<translation>Erreur lors du chargement de blkindex.dat</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="134"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Erreur lors du chargement de wallet.dat : porte-monnaie corrompu</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="135"/>
<source>Error loading wallet.dat: Wallet requires newer version of Bitcoin</source>
<translation>Erreur lors du chargement de wallet.dat : le porte-monnaie nécessite une version plus récente de Bitcoin</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="136"/>
<source>Wallet needed to be rewritten: restart Bitcoin to complete</source>
<translation>Le porte-monnaie nécessitait une réécriture. Veuillez redémarrer Bitcoin pour terminer l'opération</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="137"/>
<source>Error loading wallet.dat</source>
<translation>Erreur lors du chargement de wallet.dat</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="124"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Adresse -proxy invalide : « %s »</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="125"/>
<source>Unknown network specified in -noproxy: '%s'</source>
<translation>Le réseau spécifié dans -noproxy est inconnu : « %s »</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="127"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Réseau inconnu spécifié sur -onlynet : « %s »</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="126"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Version inconnue de proxy -socks demandée : %i</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="128"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Impossible de résoudre l'adresse -bind : « %s »</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="129"/>
<source>Not listening on any port</source>
<translation>Aucune écoute sur quel port que ce soit</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="130"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Impossible de résoudre l'adresse -externalip : « %s »</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="117"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Montant invalide pour -paytxfee=<montant> : « %s »</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="143"/>
<source>Error: could not start node</source>
<translation>Erreur : le nœud n'a pu être démarré</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="31"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation>Erreur : le porte-monnaie est verrouillé, impossible de créer la transaction </translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="32"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation>Erreur : cette transaction nécessite des frais de transaction d'au moins %s en raison de son montant, de sa complexité ou parce que des fonds reçus récemment sont utilisés </translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="35"/>
<source>Error: Transaction creation failed </source>
<translation>Erreur : échec de la création de la transaction </translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="36"/>
<source>Sending...</source>
<translation>Envoi en cours...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="37"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Erreur : la transaction a été rejetée. Cela peut arriver si certaines pièces de votre porte-monnaie ont déjà été dépensées, par exemple si vous avez utilisé une copie de wallet.dat et si des pièces ont été dépensées avec cette copie sans être marquées comme telles ici.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="41"/>
<source>Invalid amount</source>
<translation>Montant invalide</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="42"/>
<source>Insufficient funds</source>
<translation>Fonds insuffisants</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="131"/>
<source>Loading block index...</source>
<translation>Chargement de l'index des blocs...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="65"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Ajouter un nœud auquel se connecter et tenter de garder la connexion ouverte</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="28"/>
<source>Unable to bind to %s on this computer. Bitcoin is probably already running.</source>
<translation>Impossible de se lier à %s sur cet ordinateur. Bitcoin fonctionne probablement déjà.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="71"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation>Trouver des pairs en utilisant Internet Relay Chat (par défaut : 0)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="72"/>
<source>Accept connections from outside (default: 1)</source>
<translation>Accepter les connexions entrantes (par défaut : 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="74"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation>Trouver des pairs en utilisant la recherche DNS (par défaut : 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="81"/>
<source>Use Universal Plug and Play to map the listening port (default: 1)</source>
<translation>Utiliser Universal Plug and Play pour rediriger le port d'écoute (par défaut : 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="82"/>
<source>Use Universal Plug and Play to map the listening port (default: 0)</source>
<translation>Utiliser Universal Plug and Play pour rediriger le port d'écoute (par défaut : 0)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="85"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Frais par Ko à ajouter aux transactions que vous enverrez</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="118"/>
<source>Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction.</source>
<translation>Attention : -paytxfee est réglée sur un montant très élevé. Il s'agit des frais de transaction que vous payerez si vous envoyez une transaction.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="133"/>
<source>Loading wallet...</source>
<translation>Chargement du porte-monnaie...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="138"/>
<source>Cannot downgrade wallet</source>
<translation>Impossible de revenir à une version antérieure du porte-monnaie</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="139"/>
<source>Cannot initialize keypool</source>
<translation>Impossible d'initialiser le keypool</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="140"/>
<source>Cannot write default address</source>
<translation>Impossible d'écrire l'adresse par défaut</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="141"/>
<source>Rescanning...</source>
<translation>Nouvelle analyse...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="144"/>
<source>Done loading</source>
<translation>Chargement terminé</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="8"/>
<source>To use the %s option</source>
<translation>Pour utiliser l'option %s</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="9"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=%s
(you do not need to remember this password)
If the file does not exist, create it with owner-readable-only file permissions.
</source>
<translation>%s, vous devez établir un mot de passe rpc dans le fichier de configuration :
%s
Il est recommandé d'utiliser le mot de passe aléatoire suivant :
rcpuser=bitcoinrpc
rpcpassword=%s
(vous n'avez pas besoin de mémoriser ce mot de passe)
Si le fichier n'existe pas, créez-le avec les droits de lecture accordés au propriétaire.
</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="18"/>
<source>Error</source>
<translation>Erreur</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="19"/>
<source>An error occured while setting up the RPC port %i for listening: %s</source>
<translation>Une erreur est survenue lors de mise en place du port RPC d'écoute %i : %s</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="20"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Vous devez ajouter la ligne rpcpassword=<mot-de-passe> au fichier de configuration :
%s
Si le fichier n'existe pas, créez-le avec les droits de lecture seule accordés au propriétaire.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="25"/>
<source>Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly.</source>
<translation>Attention : veuillez vérifier que l'heure et la date de votre ordinateur sont correctes. Si votre horloge n'est pas à l'heure, Bitcoin ne fonctionnera pas correctement.</translation>
</message>
</context>
</TS>
|
{
"content_hash": "13c682d3586b49e9a729656884f8632d",
"timestamp": "",
"source": "github",
"line_count": 2520,
"max_line_length": 446,
"avg_line_length": 46.9,
"alnum_prop": 0.6547534436660236,
"repo_name": "beziergrin/kincoin",
"id": "a59a661b10eb25e4336e2572fbcaa4004a144d0e",
"size": "118823",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_fr.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "78622"
},
{
"name": "C++",
"bytes": "1370874"
},
{
"name": "IDL",
"bytes": "11401"
},
{
"name": "Objective-C",
"bytes": "2463"
},
{
"name": "Python",
"bytes": "47538"
},
{
"name": "Shell",
"bytes": "1402"
},
{
"name": "TypeScript",
"bytes": "3810608"
}
],
"symlink_target": ""
}
|
Determines via power consumption if the projector is on or off. To switch the power state of the projector it sends infrared signals via lirc.
Yes, this is weird.
|
{
"content_hash": "e92122d584a09efaf44dff10c27cf574",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 142,
"avg_line_length": 54.666666666666664,
"alnum_prop": 0.7926829268292683,
"repo_name": "bluemaex/homebridge-projector-maex",
"id": "f7fc1ad3e57186c89f156786ef2da572633e7d05",
"size": "193",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "2655"
}
],
"symlink_target": ""
}
|
Data goes here.
|
{
"content_hash": "0e7c1063d2a3adaf53b51722ade3c687",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 15,
"avg_line_length": 16,
"alnum_prop": 0.75,
"repo_name": "Rise-Hub/events-view",
"id": "c065befaf4e11029856e9768cbdf62de6804dff9",
"size": "16",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/data/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "8089"
},
{
"name": "HTML",
"bytes": "1951"
},
{
"name": "JavaScript",
"bytes": "5451"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.webber.dial"
xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:allowBackup="true"
android:icon="@drawable/low"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
|
{
"content_hash": "afa67f4e44ce6704dd8c3665e615ec03",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 75,
"avg_line_length": 32.65,
"alnum_prop": 0.6049004594180705,
"repo_name": "ieewbbwe/studySpace",
"id": "b947d3c460dc0a239bcdf3c12f779104f33083e3",
"size": "653",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dial/src/main/AndroidManifest.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "2544508"
}
],
"symlink_target": ""
}
|
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "113a81de45062c6083d4541daf30ac13",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "b532424dfba4f96610bb8f292141b3ea23430828",
"size": "197",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Cymbidium/Cymbidium erythrostylum/ Syn. Cyperorchis erythrostyla/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
class ProposalController < ApplicationController
before_filter :authenticate_user!, except: [:show, :new, :create]
load_resource :conference, find_by: :short_title
load_and_authorize_resource :event, parent: false, through: :conference
def index
@events = current_user.proposals(@conference)
end
def show
# FIXME: We should show more than the first speaker
@speaker = @event.speakers.first || @event.submitter
end
def new
@user = User.new
@url = conference_proposal_index_path(@conference.short_title)
end
def edit
authorize! :edit, @event
@url = conference_proposal_path(@conference.short_title, params[:id])
end
def create
@url = conference_proposal_index_path(@conference.short_title)
unless current_user
@user = User.new(user_params)
if @user.save
sign_in(@user)
else
flash[:error] = "Could not save user: #{@user.errors.full_messages.join(', ')}"
render action: 'new'
return
end
end
params[:event].delete :user
@event = Event.new(event_params)
@event.conference = @conference
@event.event_users.new(user: current_user,
event_role: 'submitter')
@event.event_users.new(user: current_user,
event_role: 'speaker')
unless @event.save
flash[:error] = "Could not submit proposal: #{@event.errors.full_messages.join(', ')}"
render action: 'new'
return
end
ahoy.track 'Event submission', title: 'New submission'
flash[:notice] = 'Proposal was successfully submitted.'
redirect_to conference_proposal_index_path(@conference.short_title)
end
def update
authorize! :update, @event
@url = conference_proposal_path(@conference.short_title, params[:id])
if !@event.update(event_params)
flash[:error] = "Could not update proposal: #{@event.errors.full_messages.join(', ')}"
render action: 'new'
return
end
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
notice: 'Proposal was successfully updated.')
end
def destroy
authorize! :destroy, @event
@url = conference_proposal_path(@conference.short_title, params[:id])
begin
@event.withdraw
rescue Transitions::InvalidTransition
redirect_to(:back, error: "Event can't be withdrawn")
return
end
@event.save(validate: false)
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
notice: 'Proposal was successfully withdrawn.')
end
def confirm
authorize! :update, @event
@url = conference_proposal_path(@conference.short_title, params[:id])
begin
@event.confirm!
rescue Transitions::InvalidTransition
redirect_to(:back, error: "Event can't be confirmed")
return
end
if !@event.save
flash[:error] = "Could not confirm proposal: #{@event.errors.full_messages.join(', ')}"
render action: 'new'
return
end
if @conference.user_registered?(current_user)
redirect_to(conference_proposal_index_path(@conference.short_title),
notice: 'The proposal was confirmed.')
else
redirect_to(new_conference_conference_registrations_path(conference_id: @conference.short_title),
alert: 'The proposal was confirmed. Please register to attend the conference.')
end
end
def restart
authorize! :update, @event
@url = conference_proposal_path(@conference.short_title, params[:id])
begin
@event.restart
rescue Transitions::InvalidTransition
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
error: "The proposal can't be re-submitted.")
return
end
if !@event.save
flash[:error] = "Could not re-submit proposal: #{@event.errors.full_messages.join(', ')}"
render action: 'new'
return
end
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
notice: "The proposal was re-submitted. The #{@conference.short_title} organizers will review it again.")
end
private
def event_params
params.require(:event).permit(:title, :subtitle, :event_type_id, :abstract, :description, :require_registration, :difficulty_level_id)
end
def user_params
params.require(:user).permit(:email, :password, :password_confirmation, :username)
end
end
# FIXME: Introduce strong_parameters pronto!
|
{
"content_hash": "6014b23967bf89f7613fe62cc4db6a3b",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 138,
"avg_line_length": 30.273333333333333,
"alnum_prop": 0.6593261396168245,
"repo_name": "raluka/osem",
"id": "18d985b36ca366e6f469d527bf9bfa170b439949",
"size": "4541",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/proposal_controller.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "17148"
},
{
"name": "HTML",
"bytes": "197395"
},
{
"name": "JavaScript",
"bytes": "129403"
},
{
"name": "Ruby",
"bytes": "556699"
},
{
"name": "Shell",
"bytes": "2131"
}
],
"symlink_target": ""
}
|
package com.outbrain.aletheia.datum.serialization.Json;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import com.outbrain.aletheia.datum.DatumUtils;
import com.outbrain.aletheia.datum.serialization.DatumSerDe;
import com.outbrain.aletheia.datum.serialization.DatumTypeVersion;
import com.outbrain.aletheia.datum.serialization.SerializedDatum;
import java.nio.ByteBuffer;
/**
* A default implementation for a Json based datum serialization.
*
* @param <TDomainClass> The type of the datum to be serialized.
*/
public class JsonDatumSerDe<TDomainClass> implements DatumSerDe<TDomainClass> {
public static final String UTF_8 = "UTF-8";
private static final int VERSION = 1;
private final ObjectMapper jsonSerDe;
private final Class<TDomainClass> datumClass;
public JsonDatumSerDe(@JsonProperty("datum.class") final Class<TDomainClass> datumClass) {
this.datumClass = datumClass;
jsonSerDe = new ObjectMapper();
jsonSerDe.registerModule(new JodaModule());
}
@Override
public SerializedDatum serializeDatum(final TDomainClass datum) {
final byte[] bytes;
try {
bytes = jsonSerDe.writeValueAsBytes(datum);
return new SerializedDatum(ByteBuffer.wrap(bytes),
new DatumTypeVersion(DatumUtils.getDatumTypeId(datumClass), VERSION));
} catch (final Exception e) {
throw new RuntimeException(e);
}
}
@Override
public TDomainClass deserializeDatum(final SerializedDatum serializedDatum) {
try {
final byte[] datumJsonStringBytes = new byte[serializedDatum.getPayload().remaining()];
serializedDatum.getPayload().get(datumJsonStringBytes);
final String datumJsonString = new String(datumJsonStringBytes, UTF_8);
return jsonSerDe.readValue(datumJsonString, datumClass);
} catch (final Exception e) {
throw new RuntimeException(e);
}
}
}
|
{
"content_hash": "c1b05073089600a6aab9b447aa667525",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 103,
"avg_line_length": 36.236363636363635,
"alnum_prop": 0.7511289513296537,
"repo_name": "outbrain/Aletheia",
"id": "0a124cecbfc00a258b9ac79eb5650ffc5279ea7b",
"size": "1993",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aletheia-core/src/main/java/com/outbrain/aletheia/datum/serialization/Json/JsonDatumSerDe.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "364549"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Property DefaultMerchantUrl
| Yort.OnlineEftpos </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Property DefaultMerchantUrl
| Yort.OnlineEftpos ">
<meta name="generator" content="docfx 2.24.0.0">
<link rel="shortcut icon" href="../images/OnlineEftposIcon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
<link rel="stylesheet" href="../styles/docfx.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc">
<meta property="docfx:tocrel" content="toc">
</head>
<body data-spy="scroll" data-target="#affix">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../images/OnlineEftposIconSmall.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
<ul class="nav level1 navbar-nav">
<li class="">
<a href="../api/Yort.OnlineEftpos.html" title="API Documentation" class="">API Documentation</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div>
<div class="sidefilter">
<form class="toc-filter">
<span class="glyphicon glyphicon-filter filter-icon"></span>
<input type="text" id="toc_filter_input" placeholder="Enter here to filter..." onkeypress="if(event.keyCode==13) {return false;}">
</form>
</div>
<div class="sidetoc">
<div class="toc" id="toc">
<ul class="nav level1">
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.html" title="Yort.OnlineEftpos" class="">Yort.OnlineEftpos</a>
<ul class="nav level2">
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.ApiErrorMessage.html" title="ApiErrorMessage" class="">ApiErrorMessage</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.ApiErrorMessage.Field.html" title="Field" class="">Field</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.ApiErrorMessage.Message.html" title="Message" class="">Message</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.BankDefinition.html" title="BankDefinition" class="">BankDefinition</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.BankDefinition.-ctor.html" title="BankDefinition" class="">BankDefinition</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDefinition.DisplayName.html" title="DisplayName" class="">DisplayName</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDefinition.Id.html" title="Id" class="">Id</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDefinition.PayerIdTypes.html" title="PayerIdTypes" class="">PayerIdTypes</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.BankDeletedTrustRelationship.html" title="BankDeletedTrustRelationship" class="">BankDeletedTrustRelationship</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.BankDeletedTrustRelationship.Id.html" title="Id" class="">Id</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDeletedTrustRelationship.Status.html" title="Status" class="">Status</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.BankDetails.html" title="BankDetails" class="">BankDetails</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.BankDetails.BankId.html" title="BankId" class="">BankId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDetails.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDetails.PayerId.html" title="PayerId" class="">PayerId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.BankDetails.PayerIdType.html" title="PayerIdType" class="">PayerIdType</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.CooperativeBankCustomerIdPayerId.html" title="CooperativeBankCustomerIdPayerId" class="">CooperativeBankCustomerIdPayerId</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.CooperativeBankCustomerIdPayerId.DisplayName.html" title="DisplayName" class="">DisplayName</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.CooperativeBankCustomerIdPayerId.IsValid.html" title="IsValid" class="">IsValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.CooperativeBankCustomerIdPayerId.Name.html" title="Name" class="">Name</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.CooperativeBankCustomerIdPayerId.Normalize.html" title="Normalize" class="">Normalize</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.ErasableString.html" title="ErasableString" class="">ErasableString</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.ErasableString.Clear.html" title="Clear" class="">Clear</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.ErasableString.Dispose.html" title="Dispose" class="">Dispose</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.ErasableString.-ctor.html" title="ErasableString" class="">ErasableString</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.ErasableString.IsCleared.html" title="IsCleared" class="">IsCleared</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.ErasableString.IsDisposed.html" title="IsDisposed" class="">IsDisposed</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.ErasableString.Value.html" title="Value" class="">Value</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.HateoasLink.html" title="HateoasLink" class="">HateoasLink</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.HateoasLink.Href.html" title="Href" class="">Href</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.HateoasLink.Rel.html" title="Rel" class="">Rel</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.HateoasLink.Title.html" title="Title" class="">Title</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.INotificationVerifier.html" title="INotificationVerifier" class="">INotificationVerifier</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.INotificationVerifier.ThrowIfNotVerified.html" title="ThrowIfNotVerified" class="">ThrowIfNotVerified</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.INotificationVerifier.Verify.html" title="Verify" class="">Verify</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.IOnlineEftposClient.html" title="IOnlineEftposClient" class="">IOnlineEftposClient</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.ApiEnvironment.html" title="ApiEnvironment" class="">ApiEnvironment</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.ApiVersion.html" title="ApiVersion" class="">ApiVersion</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.CheckPaymentStatus.html" title="CheckPaymentStatus" class="">CheckPaymentStatus</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.CheckRefundStatus.html" title="CheckRefundStatus" class="">CheckRefundStatus</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.DeleteTrust.html" title="DeleteTrust" class="">DeleteTrust</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.PaymentSearch.html" title="PaymentSearch" class="">PaymentSearch</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.RefundSearch.html" title="RefundSearch" class="">RefundSearch</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.RequestPayment.html" title="RequestPayment" class="">RequestPayment</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposClient.SendRefund.html" title="SendRefund" class="">SendRefund</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.IOnlineEftposCredentialProvider.html" title="IOnlineEftposCredentialProvider" class="">IOnlineEftposCredentialProvider</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.IOnlineEftposCredentialProvider.GetCredentials.html" title="GetCredentials" class="">GetCredentials</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.IPayerIdType.html" title="IPayerIdType" class="">IPayerIdType</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.IPayerIdType.DisplayName.html" title="DisplayName" class="">DisplayName</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IPayerIdType.IsValid.html" title="IsValid" class="">IsValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IPayerIdType.Name.html" title="Name" class="">Name</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.IPayerIdType.Normalize.html" title="Normalize" class="">Normalize</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.KnownBanks.html" title="KnownBanks" class="">KnownBanks</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.KnownBanks.AddBank.html" title="AddBank" class="">AddBank</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.KnownBanks.All.html" title="All" class="">All</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.KnownBanks.GetBank.html" title="GetBank" class="">GetBank</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.KnownBanks.RemoveBank.html" title="RemoveBank" class="">RemoveBank</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.MerchantDetails.html" title="MerchantDetails" class="">MerchantDetails</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.MerchantDetails.CallbackUrl.html" title="CallbackUrl" class="">CallbackUrl</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.MerchantDetails.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.MerchantDetails.MerchantIdCode.html" title="MerchantIdCode" class="">MerchantIdCode</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.MerchantDetails.MerchantUrl.html" title="MerchantUrl" class="">MerchantUrl</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.NotificationVerifierBase.html" title="NotificationVerifierBase" class="">NotificationVerifierBase</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.NotificationVerifierBase.GetPublicKey.html" title="GetPublicKey" class="">GetPublicKey</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.NotificationVerifierBase.-ctor.html" title="NotificationVerifierBase" class="">NotificationVerifierBase</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.NotificationVerifierBase.ThrowIfNotVerified.html" title="ThrowIfNotVerified" class="">ThrowIfNotVerified</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.NotificationVerifierBase.Verify.html" title="Verify" class="">Verify</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.NZMobilePayerIdType.html" title="NZMobilePayerIdType" class="">NZMobilePayerIdType</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.NZMobilePayerIdType.DisplayName.html" title="DisplayName" class="">DisplayName</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.NZMobilePayerIdType.IsValid.html" title="IsValid" class="">IsValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.NZMobilePayerIdType.Name.html" title="Name" class="">Name</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.NZMobilePayerIdType.Normalize.html" title="Normalize" class="">Normalize</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposApiEnvironment.html" title="OnlineEftposApiEnvironment" class="">OnlineEftposApiEnvironment</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiEnvironment.Live.html#Yort_OnlineEftpos_OnlineEftposApiEnvironment_Live" title="Live" class="">Live</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiEnvironment.Sandbox.html#Yort_OnlineEftpos_OnlineEftposApiEnvironment_Sandbox" title="Sandbox" class="">Sandbox</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiEnvironment.Uat.html#Yort_OnlineEftpos_OnlineEftposApiEnvironment_Uat" title="Uat" class="">Uat</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposApiError.html" title="OnlineEftposApiError" class="">OnlineEftposApiError</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiError.Error.html" title="Error" class="">Error</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiError.Messages.html" title="Messages" class="">Messages</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiError.Reference.html" title="Reference" class="">Reference</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposApiException.html" title="OnlineEftposApiException" class="">OnlineEftposApiException</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiException.ErrorContent.html" title="ErrorContent" class="">ErrorContent</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiException.ErrorMessage.html" title="ErrorMessage" class="">ErrorMessage</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiException.-ctor.html" title="OnlineEftposApiException" class="">OnlineEftposApiException</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiException.ReasonPhrase.html" title="ReasonPhrase" class="">ReasonPhrase</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiException.StatusCode.html" title="StatusCode" class="">StatusCode</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposApiVersion.html" title="OnlineEftposApiVersion" class="">OnlineEftposApiVersion</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiVersion.None.html#Yort_OnlineEftpos_OnlineEftposApiVersion_None" title="None" class="">None</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposApiVersion.V1P1.html#Yort_OnlineEftpos_OnlineEftposApiVersion_V1P1" title="V1P1" class="">V1P1</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.html" title="OnlineEftposAuthenticationException" class="">OnlineEftposAuthenticationException</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.Error.html" title="Error" class="">Error</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.ErrorDescription.html" title="ErrorDescription" class="">ErrorDescription</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.ErrorUrl.html" title="ErrorUrl" class="">ErrorUrl</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.-ctor.html" title="OnlineEftposAuthenticationException" class="">OnlineEftposAuthenticationException</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.ReasonPhrase.html" title="ReasonPhrase" class="">ReasonPhrase</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposAuthenticationException.StatusCode.html" title="StatusCode" class="">StatusCode</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposClient.html" title="OnlineEftposClient" class="">OnlineEftposClient</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.ApiEnvironment.html" title="ApiEnvironment" class="">ApiEnvironment</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.ApiVersion.html" title="ApiVersion" class="">ApiVersion</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.CheckPaymentStatus.html" title="CheckPaymentStatus" class="">CheckPaymentStatus</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.CheckRefundStatus.html" title="CheckRefundStatus" class="">CheckRefundStatus</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.DeleteTrust.html" title="DeleteTrust" class="">DeleteTrust</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.Dispose.html" title="Dispose" class="">Dispose</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.-ctor.html" title="OnlineEftposClient" class="">OnlineEftposClient</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.PaymentSearch.html" title="PaymentSearch" class="">PaymentSearch</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.RefundSearch.html" title="RefundSearch" class="">RefundSearch</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.RequestPayment.html" title="RequestPayment" class="">RequestPayment</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposClient.SendRefund.html" title="SendRefund" class="">SendRefund</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposCredentials.html" title="OnlineEftposCredentials" class="">OnlineEftposCredentials</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentials.ConsumerKey.html" title="ConsumerKey" class="">ConsumerKey</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentials.ConsumerSecret.html" title="ConsumerSecret" class="">ConsumerSecret</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentials.Dispose.html" title="Dispose" class="">Dispose</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentials.-ctor.html" title="OnlineEftposCredentials" class="">OnlineEftposCredentials</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposCredentialsProvider.html" title="OnlineEftposCredentialsProvider" class="">OnlineEftposCredentialsProvider</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentialsProvider.Dispose.html" title="Dispose" class="">Dispose</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentialsProvider.GetCredentials.html" title="GetCredentials" class="">GetCredentials</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposCredentialsProvider.-ctor.html" title="OnlineEftposCredentialsProvider" class="">OnlineEftposCredentialsProvider</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustOptions.html" title="OnlineEftposDeleteTrustOptions" class="">OnlineEftposDeleteTrustOptions</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustOptions.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustOptions.TrustId.html" title="TrustId" class="">TrustId</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.html" title="OnlineEftposDeleteTrustResult" class="">OnlineEftposDeleteTrustResult</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.Bank.html" title="Bank" class="">Bank</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.BankId.html" title="BankId" class="">BankId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.CreationTime.html" title="CreationTime" class="">CreationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.Id.html" title="Id" class="">Id</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.Links.html" title="Links" class="">Links</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.MerchantIdCode.html" title="MerchantIdCode" class="">MerchantIdCode</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.ModificationTime.html" title="ModificationTime" class="">ModificationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.PayerId.html" title="PayerId" class="">PayerId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposDeleteTrustResult.PayerIdType.html" title="PayerIdType" class="">PayerIdType</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposException.html" title="OnlineEftposException" class="">OnlineEftposException</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposException.-ctor.html" title="OnlineEftposException" class="">OnlineEftposException</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposInvalidDataException.html" title="OnlineEftposInvalidDataException" class="">OnlineEftposInvalidDataException</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposInvalidDataException.-ctor.html" title="OnlineEftposInvalidDataException" class="">OnlineEftposInvalidDataException</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposNotification.html" title="OnlineEftposNotification" class="">OnlineEftposNotification</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.MerchantOrderId.html" title="MerchantOrderId" class="">MerchantOrderId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.-ctor.html" title="OnlineEftposNotification" class="">OnlineEftposNotification</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.Signature.html" title="Signature" class="">Signature</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.SignedData.html" title="SignedData" class="">SignedData</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.Status.html" title="Status" class="">Status</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.TransactionId.html" title="TransactionId" class="">TransactionId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.TrustId.html" title="TrustId" class="">TrustId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposNotification.TrustStatus.html" title="TrustStatus" class="">TrustStatus</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposPaymentRequest.html" title="OnlineEftposPaymentRequest" class="">OnlineEftposPaymentRequest</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentRequest.Bank.html" title="Bank" class="">Bank</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentRequest.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentRequest.Merchant.html" title="Merchant" class="">Merchant</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentRequest.Transaction.html" title="Transaction" class="">Transaction</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.html" title="OnlineEftposPaymentSearchOptions" class="">OnlineEftposPaymentSearchOptions</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.BuildSearchQueryString.html" title="BuildSearchQueryString" class="">BuildSearchQueryString</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.CreationTime.html" title="CreationTime" class="">CreationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.Fields.html" title="Fields" class="">Fields</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.Limit.html" title="Limit" class="">Limit</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.MerchantIdCode.html" title="MerchantIdCode" class="">MerchantIdCode</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.Offset.html" title="Offset" class="">Offset</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.OrderId.html" title="OrderId" class="">OrderId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.PaginationUri.html" title="PaginationUri" class="">PaginationUri</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.PayerId.html" title="PayerId" class="">PayerId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchOptions.Status.html" title="Status" class="">Status</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchResult.html" title="OnlineEftposPaymentSearchResult" class="">OnlineEftposPaymentSearchResult</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchResult.Links.html" title="Links" class="">Links</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchResult.NextPageUri.html" title="NextPageUri" class="">NextPageUri</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchResult.Payments.html" title="Payments" class="">Payments</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentSearchResult.PreviousPageUri.html" title="PreviousPageUri" class="">PreviousPageUri</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.html" title="OnlineEftposPaymentStatus" class="">OnlineEftposPaymentStatus</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.Bank.html" title="Bank" class="">Bank</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.CreationTime.html" title="CreationTime" class="">CreationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.Id.html" title="Id" class="">Id</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.Merchant.html" title="Merchant" class="">Merchant</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.ModificationTime.html" title="ModificationTime" class="">ModificationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.Status.html" title="Status" class="">Status</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.Transaction.html" title="Transaction" class="">Transaction</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposPaymentStatus.Trust.html" title="Trust" class="">Trust</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposRefundRequest.html" title="OnlineEftposRefundRequest" class="">OnlineEftposRefundRequest</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundRequest.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundRequest.Merchant.html" title="Merchant" class="">Merchant</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundRequest.Transaction.html" title="Transaction" class="">Transaction</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.html" title="OnlineEftposRefundSearchOptions" class="">OnlineEftposRefundSearchOptions</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.BuildSearchQueryString.html" title="BuildSearchQueryString" class="">BuildSearchQueryString</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.CreationTime.html" title="CreationTime" class="">CreationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.Fields.html" title="Fields" class="">Fields</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.Limit.html" title="Limit" class="">Limit</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.MerchantIdCode.html" title="MerchantIdCode" class="">MerchantIdCode</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.Offset.html" title="Offset" class="">Offset</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.PaginationUri.html" title="PaginationUri" class="">PaginationUri</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.PayerId.html" title="PayerId" class="">PayerId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.RefundId.html" title="RefundId" class="">RefundId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchOptions.Status.html" title="Status" class="">Status</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchResult.html" title="OnlineEftposRefundSearchResult" class="">OnlineEftposRefundSearchResult</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchResult.Links.html" title="Links" class="">Links</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchResult.NextPageUri.html" title="NextPageUri" class="">NextPageUri</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchResult.PreviousPageUri.html" title="PreviousPageUri" class="">PreviousPageUri</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundSearchResult.Refunds.html" title="Refunds" class="">Refunds</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.html" title="OnlineEftposRefundStatus" class="">OnlineEftposRefundStatus</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.CreationTime.html" title="CreationTime" class="">CreationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.Id.html" title="Id" class="">Id</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.Merchant.html" title="Merchant" class="">Merchant</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.ModificationTime.html" title="ModificationTime" class="">ModificationTime</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.Status.html" title="Status" class="">Status</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRefundStatus.Transaction.html" title="Transaction" class="">Transaction</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.html" title="OnlineEftposRequestBuilder" class="">OnlineEftposRequestBuilder</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.CallbackUrlTemplate.html" title="CallbackUrlTemplate" class="">CallbackUrlTemplate</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.CreatePaymentRequest.html" title="CreatePaymentRequest" class="">CreatePaymentRequest</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.CreateRefundRequest.html" title="CreateRefundRequest" class="">CreateRefundRequest</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultCurrency.html" title="DefaultCurrency" class="">DefaultCurrency</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultCurrencyMultiplier.html" title="DefaultCurrencyMultiplier" class="">DefaultCurrencyMultiplier</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantId.html" title="DefaultMerchantId" class="">DefaultMerchantId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantIdCode.html" title="DefaultMerchantIdCode" class="">DefaultMerchantIdCode</a>
</li>
<li class="active">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl.html" title="DefaultMerchantUrl" class="active">DefaultMerchantUrl</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultUserAgent.html" title="DefaultUserAgent" class="">DefaultUserAgent</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultUserIP.html" title="DefaultUserIP" class="">DefaultUserIP</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.-ctor.html" title="OnlineEftposRequestBuilder" class="">OnlineEftposRequestBuilder</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.PurchaseDescriptionTemplate.html" title="PurchaseDescriptionTemplate" class="">PurchaseDescriptionTemplate</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposRequestBuilder.RefundReasonTemplate.html" title="RefundReasonTemplate" class="">RefundReasonTemplate</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposTransactionTypes.html" title="OnlineEftposTransactionTypes" class="">OnlineEftposTransactionTypes</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposTransactionTypes.Regular.html#Yort_OnlineEftpos_OnlineEftposTransactionTypes_Regular" title="Regular" class="">Regular</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposTransactionTypes.Trusted.html#Yort_OnlineEftpos_OnlineEftposTransactionTypes_Trusted" title="Trusted" class="">Trusted</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposTransactionTypes.TrustSetup.html#Yort_OnlineEftpos_OnlineEftposTransactionTypes_TrustSetup" title="TrustSetup" class="">TrustSetup</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.OnlineEftposTrust.html" title="OnlineEftposTrust" class="">OnlineEftposTrust</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposTrust.Id.html" title="Id" class="">Id</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.OnlineEftposTrust.Status.html" title="Status" class="">Status</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.PayerId.html" title="PayerId" class="">PayerId</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.PayerId.FromPhoneNumber.html" title="FromPhoneNumber" class="">FromPhoneNumber</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PayerId.IsPhoneNumberValidId.html" title="IsPhoneNumberValidId" class="">IsPhoneNumberValidId</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.PaymentDetails.html" title="PaymentDetails" class="">PaymentDetails</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.Amount.html" title="Amount" class="">Amount</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.Currency.html" title="Currency" class="">Currency</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.Description.html" title="Description" class="">Description</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.OrderId.html" title="OrderId" class="">OrderId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.SettlementDate.html" title="SettlementDate" class="">SettlementDate</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentDetails.TransactionType.html" title="TransactionType" class="">TransactionType</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.PaymentStatus.html" title="PaymentStatus" class="">PaymentStatus</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.Authorised.html" title="Authorised" class="">Authorised</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.Declined.html" title="Declined" class="">Declined</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.Error.html" title="Error" class="">Error</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.Expired.html" title="Expired" class="">Expired</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.FromString.html" title="FromString" class="">FromString</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.New.html" title="New" class="">New</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.Refunded.html" title="Refunded" class="">Refunded</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.PaymentStatus.Submitted.html" title="Submitted" class="">Submitted</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.RefundDetails.html" title="RefundDetails" class="">RefundDetails</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.RefundDetails.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundDetails.OriginalPaymentId.html" title="OriginalPaymentId" class="">OriginalPaymentId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundDetails.RefundAmount.html" title="RefundAmount" class="">RefundAmount</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundDetails.RefundId.html" title="RefundId" class="">RefundId</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundDetails.RefundReason.html" title="RefundReason" class="">RefundReason</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.RefundStatus.html" title="RefundStatus" class="">RefundStatus</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.RefundStatus.Declined.html" title="Declined" class="">Declined</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundStatus.Error.html" title="Error" class="">Error</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundStatus.FromString.html" title="FromString" class="">FromString</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundStatus.Refunded.html" title="Refunded" class="">Refunded</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.RefundStatus.Unsubmitted.html" title="Unsubmitted" class="">Unsubmitted</a>
</li>
</ul> </li>
<li class="">
<a href="Yort.OnlineEftpos.Resource.html" title="Resource" class="">Resource</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.Resource.Attribute.html" title="Resource.Attribute" class="">Resource.Attribute</a>
</li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.Resource.String.html" title="Resource.String" class="">Resource.String</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.Resource.String.ApplicationName.html#Yort_OnlineEftpos_Resource_String_ApplicationName" title="ApplicationName" class="">ApplicationName</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.Resource.String.Hello.html#Yort_OnlineEftpos_Resource_String_Hello" title="Hello" class="">Hello</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.Sha512WithRsaVerifier.html" title="Sha512WithRsaVerifier" class="">Sha512WithRsaVerifier</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.Sha512WithRsaVerifier.Dispose.html" title="Dispose" class="">Dispose</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.Sha512WithRsaVerifier.-ctor.html" title="Sha512WithRsaVerifier" class="">Sha512WithRsaVerifier</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.Sha512WithRsaVerifier.Verify.html" title="Verify" class="">Verify</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.TransactionRequestDetails.html" title="TransactionRequestDetails" class="">TransactionRequestDetails</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.TransactionRequestDetails.EnsureValid.html" title="EnsureValid" class="">EnsureValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionRequestDetails.UserAgent.html" title="UserAgent" class="">UserAgent</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionRequestDetails.UserIPAddress.html" title="UserIPAddress" class="">UserIPAddress</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.TransactionStatus.html" title="TransactionStatus" class="">TransactionStatus</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.Description.html" title="Description" class="">Description</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.op_Equality.html" title="Equality" class="">Equality</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.Equals.html" title="Equals" class="">Equals</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.GetHashCode.html" title="GetHashCode" class="">GetHashCode</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.op_Inequality.html" title="Inequality" class="">Inequality</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.IsTerminal.html" title="IsTerminal" class="">IsTerminal</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TransactionStatus.Name.html" title="Name" class="">Name</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.TrustStatus.html" title="TrustStatus" class="">TrustStatus</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.Active.html" title="Active" class="">Active</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.Cancelled.html" title="Cancelled" class="">Cancelled</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.Equals.html" title="Equals" class="">Equals</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.GetHashCode.html" title="GetHashCode" class="">GetHashCode</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.op_Implicit.html" title="Implicit" class="">Implicit</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.Pending.html" title="Pending" class="">Pending</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.TrustStatus.ToString.html" title="ToString" class="">ToString</a>
</li>
</ul> </li>
<li class="">
<span class="expand-stub"></span>
<a href="Yort.OnlineEftpos.WestpacCustomerIdPayerId.html" title="WestpacCustomerIdPayerId" class="">WestpacCustomerIdPayerId</a>
<ul class="nav level3">
<li class="">
<a href="Yort.OnlineEftpos.WestpacCustomerIdPayerId.DisplayName.html" title="DisplayName" class="">DisplayName</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.WestpacCustomerIdPayerId.IsValid.html" title="IsValid" class="">IsValid</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.WestpacCustomerIdPayerId.Name.html" title="Name" class="">Name</a>
</li>
<li class="">
<a href="Yort.OnlineEftpos.WestpacCustomerIdPayerId.Normalize.html" title="Normalize" class="">Normalize</a>
</li>
</ul> </li>
</ul> </li>
</ul> </div>
</div>
</div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl*">
<h1 id="Yort_OnlineEftpos_OnlineEftposRequestBuilder_DefaultMerchantUrl_" data-uid="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl*">Property DefaultMerchantUrl
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<a id="Yort_OnlineEftpos_OnlineEftposRequestBuilder_DefaultMerchantUrl_" data-uid="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl*"></a>
<h4 id="Yort_OnlineEftpos_OnlineEftposRequestBuilder_DefaultMerchantUrl" data-uid="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl">DefaultMerchantUrl</h4>
<div class="markdown level1 summary"><p>The default value for the <a class="xref" href="Yort.OnlineEftpos.MerchantDetails.MerchantUrl.html#Yort_OnlineEftpos_MerchantDetails_MerchantUrl">MerchantUrl</a> property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Uri DefaultMerchantUrl { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Uri</span></td>
<td></td>
</tr>
</tbody>
</table>
<a id="Yort_OnlineEftpos_OnlineEftposRequestBuilder_DefaultMerchantUrl_" data-uid="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl*"></a>
<h4 id="Yort_OnlineEftpos_OnlineEftposRequestBuilder_DefaultMerchantUrl" data-uid="Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl">DefaultMerchantUrl</h4>
<div class="markdown level1 summary"><p>The default value for the <a class="xref" href="Yort.OnlineEftpos.MerchantDetails.MerchantUrl.html#Yort_OnlineEftpos_MerchantDetails_MerchantUrl">MerchantUrl</a> property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Uri DefaultMerchantUrl { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Uri</span></td>
<td></td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright (c) 2017 Troy Willmot
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/main.js"></script>
</body>
</html>
|
{
"content_hash": "6add2dca24dbd63b76e915137b7fba28",
"timestamp": "",
"source": "github",
"line_count": 1199,
"max_line_length": 215,
"avg_line_length": 67.62301918265221,
"alnum_prop": 0.43674148988653183,
"repo_name": "Yortw/Yort.OnlineEftpos",
"id": "8d743dc5991b3dee35f340a6ad0ba0a36a244663",
"size": "81082",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/reference/api/Yort.OnlineEftpos.OnlineEftposRequestBuilder.DefaultMerchantUrl.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "305"
},
{
"name": "C#",
"bytes": "338836"
},
{
"name": "CSS",
"bytes": "137079"
},
{
"name": "HTML",
"bytes": "837371"
},
{
"name": "JavaScript",
"bytes": "117116"
},
{
"name": "Smalltalk",
"bytes": "63124"
}
],
"symlink_target": ""
}
|
from unittest import TestCase
from venvs.tests.utils import CLIMixin
class TestTemporary(CLIMixin, TestCase):
def test_it_creates_a_global_temporary_environment(self):
temporary = self.locator.temporary()
self.assertFalse(temporary.exists_on(self.filesystem))
stdout, stderr = self.run_cli(["temporary"])
self.assertEqual(
(temporary.exists_on(self.filesystem), stdout, stderr),
(True, str(temporary.path / "bin") + "\n", ""),
)
def test_it_recreates_the_environment_if_it_exists(self):
temporary = self.locator.temporary()
self.assertFalse(temporary.exists_on(self.filesystem))
self.run_cli(["temporary"])
self.assertTrue(temporary.exists_on(self.filesystem))
foo = temporary.path / "foo"
self.filesystem.touch(path=foo)
self.assertTrue(self.filesystem.exists(path=foo))
self.run_cli(["temporary"])
self.assertTrue(temporary.exists_on(self.filesystem))
self.assertFalse(self.filesystem.exists(path=foo))
def test_env_with_single_install(self):
self.run_cli(["temporary", "-i", "thing"])
# We've stubbed out our Locator's venvs' install to just store.
self.assertEqual(
self.installed(self.locator.temporary()), ({"thing"}, set()),
)
|
{
"content_hash": "11d13dd2a8f6e427413c5f4f595a3336",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 73,
"avg_line_length": 37.27777777777778,
"alnum_prop": 0.6445603576751118,
"repo_name": "Julian/mkenv",
"id": "2bb69771bed6eea8a3189eb0b280c7bd228dc2d6",
"size": "1342",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "venvs/tests/test_temporary.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "34932"
}
],
"symlink_target": ""
}
|
package com.sastix.cms.common.content;
import javax.validation.constraints.NotNull;
/**
* The specific object holds all the information related to Resource Query.
*/
public class ResourceQueryDTO {
/**
* The name of the resource queried.
*/
private String queryResourceName;
/**
* The media-type of this resource.
*/
private String queryResourceMediaType;
/**
* The author last updated this resource.
*/
private String queryResourceAuthor;
/**
* The UID of this resource.
*/
@NotNull
private String queryUID;
/**
* Default Constructor.
*/
public ResourceQueryDTO() {
//Empty
}
/**
* Constructor with the mandatory fields.
*
* @param queryUID a String with query UID
*/
public ResourceQueryDTO(final String queryUID) {
this.queryUID = queryUID;
}
/**
* Return the name of the resource queried.
*
* @return a String with the name
*/
public String getQueryResourceName() {
return queryResourceName;
}
/**
* Set the name of the resource queried.
*
* @param queryResourceName a String with name
*/
public void setQueryResourceName(final String queryResourceName) {
this.queryResourceName = queryResourceName;
}
/**
* Return the media type of this resource.
*
* @return a String with the media type
*/
public String getQueryResourceMediaType() {
return queryResourceMediaType;
}
/**
* Set the media type of this resource.
*
* @param queryResourceMediaType a String with the media type
*/
public void setQueryResourceMediaType(final String queryResourceMediaType) {
this.queryResourceMediaType = queryResourceMediaType;
}
/**
* Returns the author last updated this resource.
*
* @return a String with the author
*/
public String getQueryResourceAuthor() {
return queryResourceAuthor;
}
/**
* Set the author last updated this resource.
*
* @param queryResourceAuthor a String with the author
*/
public void setQueryResourceAuthor(final String queryResourceAuthor) {
this.queryResourceAuthor = queryResourceAuthor;
}
/**
* Returns the UID of this resource.
*
* @return a String with the UID
*/
public String getQueryUID() {
return queryUID;
}
/**
* Set the UID of this resource.
*
* @param queryUID a String with the UID
*/
public void setQueryUID(final String queryUID) {
this.queryUID = queryUID;
}
@Override
public String toString() {
return "ResourceQueryDTO{" +
"queryResourceName='" + queryResourceName + '\'' +
", queryResourceMediaType='" + queryResourceMediaType + '\'' +
", queryResourceAuthor='" + queryResourceAuthor + '\'' +
", queryUID='" + queryUID + '\'' +
'}';
}
}
|
{
"content_hash": "33203966e5d3d720d0b9ec910dc4865d",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 80,
"avg_line_length": 23.53846153846154,
"alnum_prop": 0.6029411764705882,
"repo_name": "GiorPan/cms-parent-extend",
"id": "810c983fd2f7451a052bf6360ee702f931c36853",
"size": "3678",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "common/dataobjects/src/main/java/com/sastix/cms/common/content/ResourceQueryDTO.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "878"
},
{
"name": "HTML",
"bytes": "8173"
},
{
"name": "Java",
"bytes": "412906"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "4a51e71cfcb327234f951588abff6aa1",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "b8c45060f8c13c2cb9591fa75c68c1886a38f4f1",
"size": "179",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Protozoa/Ciliophora/Oligotrichea/Oligotrichida/Tintinnidae/Acanthostomella/Acanthostomella acuta/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
package org.pepstock.charba.client.commons;
import java.util.List;
import org.pepstock.charba.client.Chart;
import org.pepstock.charba.client.callbacks.NativeCallback;
import org.pepstock.charba.client.dom.BaseHtmlElement;
import org.pepstock.charba.client.dom.elements.Canvas;
import org.pepstock.charba.client.dom.elements.CanvasGradientItem;
import org.pepstock.charba.client.dom.elements.CanvasPatternItem;
import org.pepstock.charba.client.dom.elements.Img;
import org.pepstock.charba.client.dom.events.NativeBaseEvent;
import org.pepstock.charba.client.plugins.NativeHook;
/**
* Utility object to manage all native objects implemented in Charba by {@link NativeObject}.<br>
* It implements some common methods to set and get properties in the native object.
*
* @author Andrea "Stock" Stocchero
*/
final class NativeObjectUtil {
/**
* To avoid any instantiation
*/
private NativeObjectUtil() {
// do nothing
}
/**
* Creates a native object setting the hash code property in order it is not enumerable.
*
* @return new native object instance
*/
static NativeObject create() {
// new object
NativeObject nativeObject = JsHelper.get().create();
// applies new hash code
// and returns item
return NativeObjectHashing.handleHashCode(nativeObject);
}
/**
* Returns an list of a given object's own property names.
*
* @param object native object to be managed
* @return list of strings that represent all the enumerable properties of the given object.
*/
static List<String> propertiesKeys(NativeObject object) {
return ArrayListHelper.unmodifiableList(NativeUtil.keys(object));
}
/**
* Returns a boolean indicating whether the object has the specified property as its own property.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @return boolean indicating whether or not the object has the specified property as own property.
*/
static boolean hasProperty(NativeObject object, String key) {
return JsHelper.get().has(object, key);
}
/**
* Removes a property from this object.
*
* @param object native object to be managed
* @param key property key to be removed.
*/
static void removeProperty(NativeObject object, String key) {
JsHelper.get().remove(object, key);
}
/**
* Defines a new property directly on this object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineBooleanProperty(NativeObject object, String key, boolean value) {
Reflect.setBoolean(object, key, value);
}
/**
* Defines a new property directly on this object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineIntProperty(NativeObject object, String key, int value) {
Reflect.setInt(object, key, value);
}
/**
* Defines a new property directly on this object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineDoubleProperty(NativeObject object, String key, double value) {
Reflect.setDouble(object, key, value);
}
/**
* Defines a new property directly on this object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineStringProperty(NativeObject object, String key, String value) {
Reflect.setString(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineImageProperty(NativeObject object, String key, Img value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineCanvasProperty(NativeObject object, String key, Canvas value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void definePatternProperty(NativeObject object, String key, CanvasPatternItem value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineGradientProperty(NativeObject object, String key, CanvasGradientItem value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineCallbackProperty(NativeObject object, String key, CallbackProxy.Proxy value) {
Reflect.setCallbackProxy(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineCallbackProperty(NativeObject object, String key, NativeCallback value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineCallbackProperty(NativeObject object, String key, NativeHook value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineObjectProperty(NativeObject object, String key, NativeObject value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineChartProperty(NativeObject object, String key, Chart value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineElementProperty(NativeObject object, String key, BaseHtmlElement value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
*/
static void defineEventProperty(NativeObject object, String key, NativeBaseEvent value) {
Reflect.set(object, key, value);
}
/**
* Defines a new property directly on object object, or modifies an existing property.
*
* @param object native object to be managed
* @param key the name of the property to be defined or modified.
* @param value the object associated with the property.
* @param <T> type of array to define
*/
static <T extends Array> void defineArrayProperty(NativeObject object, String key, T value) {
Reflect.set(object, key, value);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static boolean getBooleanProperty(NativeObject object, String key, boolean defaultValue) {
// checks if the property is present
if (ObjectType.BOOLEAN.equals(JsHelper.get().typeOf(object, key))) {
// returns the value
return Reflect.getBoolean(object, key);
}
// if here, property does not exist
return defaultValue;
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static int getIntProperty(NativeObject object, String key, int defaultValue) {
// checks if the property is present
if (ObjectType.NUMBER.equals(JsHelper.get().typeOf(object, key))) {
// returns the value
return Reflect.getInt(object, key);
}
// if here, property does not exist
return defaultValue;
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static double getDoubleProperty(NativeObject object, String key, double defaultValue) {
// checks if the property is present
if (ObjectType.NUMBER.equals(JsHelper.get().typeOf(object, key))) {
// returns the value
return Reflect.getDouble(object, key);
}
// if here, property does not exist
return defaultValue;
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static String getStringProperty(NativeObject object, String key, String defaultValue) {
// checks if the property is present
if (ObjectType.STRING.equals(JsHelper.get().typeOf(object, key))) {
// returns the descriptor
return Reflect.getString(object, key);
}
// if here, property does not exist
return defaultValue;
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static Img getImageProperty(NativeObject object, String key, Img defaultValue) {
return getJSTypeProperty(object, key, defaultValue);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static Canvas getCanvasProperty(NativeObject object, String key, Canvas defaultValue) {
return getJSTypeProperty(object, key, defaultValue);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static CanvasPatternItem getPatternProperty(NativeObject object, String key, CanvasPatternItem defaultValue) {
return getJSTypeProperty(object, key, defaultValue);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value if the property is missing
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static CanvasGradientItem getGradientProperty(NativeObject object, String key, CanvasGradientItem defaultValue) {
return getJSTypeProperty(object, key, defaultValue);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static NativeObject getObjectProperty(NativeObject object, String key) {
return getJSTypeProperty(object, key, null);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static Chart getChartProperty(NativeObject object, String key) {
return getJSTypeProperty(object, key, null);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static BaseHtmlElement getElementProperty(NativeObject object, String key) {
return getJSTypeProperty(object, key, null);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static NativeBaseEvent getEventProperty(NativeObject object, String key) {
return getJSTypeProperty(object, key, null);
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param <T> type of array to use
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
static <T extends Array> T getArrayProperty(NativeObject object, String key) {
// checks if the property is present
if (ObjectType.ARRAY.equals(JsHelper.get().typeOf(object, key))) {
// returns the descriptor
return Reflect.get(object, key);
}
// if here, property does not exist
return null;
}
/**
* Returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.
*
* @param object native object to be managed
* @param key the name of the property to test.
* @param defaultValue default value to return when the property is not found
* @param <T> type of {@link IsJSType}.
* @return property descriptor of the given property if it exists on the object, <code>null</code> otherwise.
*/
private static <T extends IsJSType> T getJSTypeProperty(NativeObject object, String key, T defaultValue) {
// checks if the property is present
if (ObjectType.OBJECT.equals(JsHelper.get().typeOf(object, key))) {
// returns the descriptor
return Reflect.get(object, key);
}
return defaultValue;
}
}
|
{
"content_hash": "636f2317e45ae8561e678133c3e5cc63",
"timestamp": "",
"source": "github",
"line_count": 451,
"max_line_length": 157,
"avg_line_length": 40.62084257206208,
"alnum_prop": 0.7173034934497816,
"repo_name": "pepstock-org/Charba",
"id": "94e24dede9ee0849d7812e764c19e0c306522ab8",
"size": "18947",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/org/pepstock/charba/client/commons/NativeObjectUtil.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "4541"
},
{
"name": "Java",
"bytes": "10392434"
},
{
"name": "JavaScript",
"bytes": "95293"
},
{
"name": "Shell",
"bytes": "137"
}
],
"symlink_target": ""
}
|
An isomorphic web application built with "Universal JavaScript" and modern technologies, which contains basic functionality, fundamental design and workable architecture. Good to be used to create your project quickly.
The architecture design was already done for isomorphic. The views and frontend stuffs which are implemented with React can be rendered on server-side and client-side both and using the same configuration of routes. The good news is, there is no need to learn anti-pattern flux framework(e.g., redux) for isomorphic. Lantern provided an easy way for developers who are already familar with flux pattern.
Besides, the callback hell are not there anymore. The generator is widely used in this project, which is the new technology in new version of ECMAScript(JavaScript) for flow control. The Backend is using generator with Koa web framework, and frontend is using generator in flux framework as well.
Not only technique things, but also UI design is pretty cool in Lantern project. The framework that Semantic UI bring us fantastic frontend user interface, even better than bootstrap and other UI framework.
## Documentation
See our [Wiki](https://github.com/cfsghost/lantern/wiki) for more information.
## Installation
In order to support ES6+ and using a lots of new technologies (ex, generator and classes), Node.js 0.12+ or io.js is required. Once you have such environment, you can start to install modules needed via NPM.
```
npm install .
```
Then you can use webpack to compile and combine all of frontend source code for service.
```
webpack
```
Finally, you can start this web service:
```
node app.js
```
## Development
Starting up in development mode is able to enable hot loading mechanism, you can start service with:
```
node app.js dev
```
## Run in Production
For production, all of JavaScript will be minimized and optimized with no debug messages and symbols. You should use specific configuration file:
```
webpack --config webpack.production.config.js
```
Then you can direct run app with environment variable like this:
```
NODE_ENV=production node app.js
```
If the PM2 you are using for production, just run it with `process.json` provided and `--env production` options.
```
pm2 start process.config.js --env production
```
## Features
* Fast to setup and easy to customize
* UI is pretty cool and fantasic
* Widely use ES6 and ES7+ (Generator, classes and decorator)
* Provided a lot of universal JavaScript solutions for development
* Isomorphic Architecture (React server-rendering by using universal JavaScript)
* Provided a lot useful extensions to speed up the development.
* Efficient server rendering
* Support permission management
* Support user database system
* Support Hot loading without webpack-dev-server
* Support i18n for multiple language
* Support third-party Authorization (Facebook/Github/Google/Linkedin)
* Support Hot-load mechanism
## Dependencies
* Node.js v4.0+
* Koa web framework 1.0
* MongoDB
* Fluky - Event-based framework for flux data flow pattern
* babel 6 - Used to support ES6/ES7+
* React v15.0.0+
* react-router 2.0.0+ - router for React
* [Semantic UI](http://semantic-ui.com/) - Front-end UI toolkit
* Webpack
* Passport
## Efficient Server Rendering
Server rendering machanism of React is synchronous and slow against Node.js event-loop performance. It causes that reduces the number of concurrent connections for single process.
A implementation in Lantern architecture is individual renderer processes for server rendering of react. All of React rendering work is separated from main process to avoid blocking server. (The default number of renderer process is 2)
## Benchmarks
Testing for rendering page with React on server side.
Environment:
* Apple MacBook Pro Retina 2013 (i7 2.4 GHz/8GB RAM)
* 1 Node.js process
Results:
```
$ ab -r -c 100 -n 1000 http://localhost:3001/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software:
Server Hostname: localhost
Server Port: 3001
Document Path: /
Document Length: 4584 bytes
Concurrency Level: 100
Time taken for tests: 2.193 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 4721000 bytes
HTML transferred: 4584000 bytes
Requests per second: 456.00 [#/sec] (mean)
Time per request: 219.300 [ms] (mean)
Time per request: 2.193 [ms] (mean, across all concurrent requests)
Transfer rate: 2102.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.7 0 5
Processing: 16 216 100.0 213 418
Waiting: 16 215 100.0 213 418
Total: 16 216 100.1 213 419
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 213
66% 268
75% 298
80% 320
90% 353
95% 369
98% 397
99% 404
100% 419 (longest request)
```
## Showcases
* [Hackathon Taiwan](http://hackathon.tw/)
License
-
Licensed under the MIT License
Authors
-
Copyright(c) 2015 Fred Chien <<cfsghost@gmail.com>>
|
{
"content_hash": "0f7eef017409cf9af33c607bbdd04759",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 403,
"avg_line_length": 33.94642857142857,
"alnum_prop": 0.7453971593897949,
"repo_name": "cfsghost/lantern",
"id": "5ebc2c5323b2cf9c619ab147048c19c8a20d90cf",
"size": "5714",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "15376"
},
{
"name": "HTML",
"bytes": "899"
},
{
"name": "JavaScript",
"bytes": "264472"
}
],
"symlink_target": ""
}
|
---
title: Authentification Sociale
sidebar_label: Authentification Sociale
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
In addition to traditional password authentication, Foal provides services to authenticate users through social providers. The framework officially supports the following:
- Google
- Facebook
- Github
- Linkedin
- Twitter
If your provider is not listed here but supports OAuth 2.0, then you can still [extend the `AbstractProvider`](#custom-provider) class to integrate it or use a [community provider](#community-providers) below.
## Get Started
### General overview

The authentication process works as follows:
1. The user clicks the *Log In with xxx* button in the browser and the client sends a request to the server.
2. The server redirects the user to the consent page where they are asked to give permission to log in with their account and/or give access to some of their personal information.
3. The user approves and the consent page redirects the user with an authorization code to the *redirect* URI specified in the configuration.
4. Your application then makes one or more requests to the OAuth servers to obtain an access token and information about the user.
5. The social provider servers return this information.
6. Finally, your server-side application logs the user in based on this information and redirects the user when done.
> *This explanation of OAuth 2 is intentionally simplified. It highlights only the parts of the protocol that are necessary to successfully implement social authentication with Foal. But the framework also performs other tasks under the hood to fully comply with the OAuth 2.0 protocol and it adds security protection against CSRF attacks.*
### Registering an application
To set up social authentication with Foal, you first need to register your application to the social provider you chose (Google, Facebook, etc). This can be done through its website.
Usually your are required to provide:
- an *application name*,
- a *logo*,
- and *redirect URIs* where the social provider should redirect the users once they give their consent on the provider page (ex: `http://localhost:3001/signin/google/callback`, `https://example.com/signin/google/callback`).
Once done, you should receive:
- a *client ID* that is public and identifies your application,
- and a *client secret* that must not be revealed and can therefore only be used on the backend side. It is used when your server communicates with the OAuth provider's servers.
> You must obtain a *client secret*. If you do not have one, it means you probably chose the wrong option at some point.
### Installation and configuration
Once you have registered your application, install the appropriate package.
```bash
npm install @foal/social
```
Then, you will need to provide your client ID, client secret and your redirect URIs to Foal. This can be done through the usual [configuration files](../architecture/configuration.md).
<Tabs
defaultValue="yaml"
values={[
{label: 'YAML', value: 'yaml'},
{label: 'JSON', value: 'json'},
{label: 'JS', value: 'js'},
]}
>
<TabItem value="yaml">
```yaml
settings:
social:
google:
clientId: 'xxx'
clientSecret: 'env(SETTINGS_SOCIAL_GOOGLE_CLIENT_SECRET)'
redirectUri: 'http://localhost:3001/signin/google/callback'
```
</TabItem>
<TabItem value="json">
```json
{
"settings": {
"social": {
"google": {
"clientId": "xxx",
"clientSecret": "env(SETTINGS_SOCIAL_GOOGLE_CLIENT_SECRET)",
"redirectUri": "http://localhost:3001/signin/google/callback"
}
}
}
}
```
</TabItem>
<TabItem value="js">
```javascript
module.exports = {
settings: {
social: {
google: {
clientId: 'xxx',
clientSecret: 'env(SETTINGS_SOCIAL_GOOGLE_CLIENT_SECRET)',
redirectUri: 'http://localhost:3001/signin/google/callback'
}
}
}
}
```
</TabItem>
</Tabs>
*.env*
```
SETTINGS_SOCIAL_GOOGLE_CLIENT_SECRET=yyy
```
### Adding controllers
The last step is to add a controller that will call methods of a *social service* to handle authentication. The example below uses Google as provider.
```typescript
// 3p
import { Context, dependency, Get } from '@foal/core';
import { GoogleProvider } from '@foal/social';
export class AuthController {
@dependency
google: GoogleProvider;
@Get('/signin/google')
redirectToGoogle() {
// Your "Login In with Google" button should point to this route.
// The user will be redirected to Google auth page.
return this.google.redirect();
}
@Get('/signin/google/callback')
async handleGoogleRedirection(ctx: Context) {
// Once the user gives their permission to log in with Google, the OAuth server
// will redirect the user to this route. This route must match the redirect URI.
const { userInfo, tokens } = await this.google.getUserInfo(ctx);
// Do something with the user information AND/OR the access token.
// If you only need the access token, you can call the "getTokens" method.
// The method usually ends with a HttpResponseRedirect object as returned value.
}
}
```
You can also override in the `redirect` method the scopes you want:
```typescript
return this.google.redirect({ scopes: [ 'email' ] });
```
Additional parameters can passed to the `redirect` and `getUserInfo` methods depending on the provider.
## Techniques
### Usage with sessions
This example shows how to manage authentication (login and registration) with sessions.
*user.entity.ts*
```typescript
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class User extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@Column({ unique: true })
email: string;
}
export { DatabaseSession } from '@foal/typeorm';
```
*auth.controller.ts*
```typescript
// 3p
import {
Context,
dependency,
Get,
HttpResponseRedirect,
Store,
UseSessions,
} from '@foal/core';
import { GoogleProvider } from '@foal/social';
import { User } from '../entities';
export class AuthController {
@dependency
google: GoogleProvider;
@dependency
store: Store;
@Get('/signin/google')
redirectToGoogle() {
return this.google.redirect();
}
@Get('/signin/google/callback')
@UseSessions({
cookie: true,
})
async handleGoogleRedirection(ctx: Context<User>) {
const { userInfo } = await this.google.getUserInfo<{ email: string }>(ctx);
if (!userInfo.email) {
throw new Error('Google should have returned an email address.');
}
let user = await User.findOneBy({ email: userInfo.email });
if (!user) {
// If the user has not already signed up, then add them to the database.
user = new User();
user.email = userInfo.email;
await user.save();
}
ctx.session!.setUser(user);
return new HttpResponseRedirect('/');
}
}
```
### Usage with JWT
This example shows how to manage authentication (login and registration) with JWT.
*user.entity.ts*
```typescript
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class User extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@Column({ unique: true })
email: string;
}
```
*auth.controller.ts*
```typescript
// std
import { promisify } from 'util';
// 3p
import {
Context,
dependency,
Get,
HttpResponseRedirect,
} from '@foal/core';
import { GoogleProvider } from '@foal/social';
import { getSecretOrPrivateKey, setAuthCookie } from '@foal/jwt';
import { sign } from 'jsonwebtoken';
import { User } from '../entities';
export class AuthController {
@dependency
google: GoogleProvider;
@Get('/signin/google')
redirectToGoogle() {
return this.google.redirect();
}
@Get('/signin/google/callback')
async handleGoogleRedirection(ctx: Context) {
const { userInfo } = await this.google.getUserInfo<{ email: string }>(ctx);
if (!userInfo.email) {
throw new Error('Google should have returned an email address.');
}
let user = await User.findOneBy({ email: userInfo.email });
if (!user) {
// If the user has not already signed up, then add them to the database.
user = new User();
user.email = userInfo.email;
await user.save();
}
const payload = {
email: user.email,
id: user.id,
};
const jwt = await promisify(sign as any)(
payload,
getSecretOrPrivateKey(),
{ subject: user.id.toString() }
);
const response = new HttpResponseRedirect('/');
await setAuthCookie(response, jwt);
return response;
}
}
```
## Custom Provider
If your provider is not officially supported by Foal but supports the OAuth 2.0 protocol, you can still implement your own social service. All you need to do is to make it inherit from the `AbstractProvider` class.
*Example*
```typescript
// 3p
import { AbstractProvider, SocialTokens } from '@foal/core';
export interface GithubAuthParameter {
// ...
}
export interface GithubUserInfoParameter {
// ...
}
export class GithubProvider extends AbstractProvider<GithubAuthParameter, GithubUserInfoParameter> {
protected configPaths = {
clientId: 'social.github.clientId',
clientSecret: 'social.github.clientSecret',
redirectUri: 'social.github.redirectUri',
};
protected authEndpoint = '...';
protected tokenEndpoint = '...';
protected userInfoEndpoint = '...'; // Optional. Depending on the provider.
protected defaultScopes: string[] = [ 'email' ]; // Optional
async getUserInfoFromTokens(tokens: SocialTokens, params?: GithubUserInfoParameter) {
// ...
// In case the server returns an error when requesting
// user information, you can throw a UserInfoError.
}
}
```
### Sending the Client Credentials in an Authorization Header
When requesting the token endpoint, the provider sends the client ID and secret as a query parameter by default. If you want to send them in an `Authorization` header using the *basic* scheme, you can do so by setting the `useAuthorizationHeaderForTokenEndpoint` property to `true`.
### Enabling Code Flow with PKCE
If you want to enable code flow with PKCE, you can do so by setting the `usePKCE` property to `true`.
> By default, the provider will perform a SHA256 hash to generate the code challenge. If you wish to use the plaintext code verifier string as code challenge, you can do so by setting the `useCodeVerifierAsCodeChallenge` property to `true`.
When using this feature, the provider encrypts the code verifier and stores it in a cookie on the client. In order to do this, you need to provide a secret using the configuration key `settings.social.secret.codeVerifierSecret`.
<Tabs
defaultValue="yaml"
values={[
{label: 'YAML', value: 'yaml'},
{label: 'JSON', value: 'json'},
{label: 'JS', value: 'js'},
]}
>
<TabItem value="yaml">
```yaml
settings:
social:
secret:
codeVerifierSecret: 'xxx'
```
</TabItem>
<TabItem value="json">
```json
{
"settings": {
"social": {
"secret": {
"codeVerifierSecret": "xxx"
}
}
}
}
```
</TabItem>
<TabItem value="js">
```javascript
module.exports = {
settings: {
social: {
secret: {
codeVerifierSecret: 'xxx'
}
}
}
}
```
</TabItem>
</Tabs>
## Official Providers
### Google
|Service name| Default scopes | Available scopes |
|---|---|---|
| `GoogleProvider` | `openid`, `profile`, `email` | [Google scopes](https://developers.google.com/identity/protocols/googlescopes) |
#### Register an OAuth application
Visit the [Google API Console](https://console.developers.google.com/apis/credentials) to obtain a client ID and a client secret.
#### Redirection parameters
The `redirect` method of the `GoogleProvider` accepts additional parameters. These parameters and their description are listed [here](https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters) and are all optional.
*Example*
```typescript
this.google.redirect({ /* ... */ }, {
access_type: 'offline'
})
```
### Facebook
|Service name| Default scopes | Available scopes |
|---|---|---|
| `FacebookProvider` | `email` | [Facebook permissions](https://developers.facebook.com/docs/facebook-login/permissions/) |
#### Register an OAuth application
Visit [Facebook's developer website](https://developers.facebook.com/) to create an application and obtain a client ID and a client secret.
#### Redirection parameters
The `redirect` method of the `FacebookProvider` accepts an additional `auth_type` parameter which is optional.
*Example*
```typescript
this.facebook.redirect({ /* ... */ }, {
auth_type: 'rerequest'
});
```
|Name|Type|Description|
|---|---|---|
|`auth_type`|`'rerequest'`|If a user has already declined a permission, the Facebook Login Dialog box will no longer ask for this permission. The `auth_type` parameter explicity tells Facebook to ask the user again for the denied permission.|
#### User info parameters
The `getUserInfo` and `getUserInfoFromTokens` methods of the `FacebookProvider` accept an additional `fields` parameter which is optional.
*Example*
```typescript
const { userInfo } = await this.facebook.getUserInfo(ctx, {
fields: [ 'email' ]
})
```
|Name|Type|Description|
|---|---|---|
|`fields`|`string[]`|List of fields that the returned user info object should contain. These fields may or may not be available depending on the permissions (`scopes`) that were requested with the `redirect` method. Default: `['id', 'name', 'email']`.|
### Github
|Service name| Default scopes | Available scopes |
|---|---|---|
| `GithubProvider` | none | [Github scopes](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes) |
#### Register an OAuth application
Visit [this page](https://github.com/settings/applications/new) to create an application and obtain a client ID and a client secret.
Additional documentation on Github's redirect URLs can be found [here](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#redirect-urls).
#### Redirection parameters
The `redirect` method of the `GithubProvider` accepts additional parameters. These parameters and their description are listed below and are all optional.
*Example*
```typescript
this.github.redirect({ /* ... */ }, {
allow_signup: false
})
```
|Name|Type|Description|
|---|---|---|
| `login` | `string` | Suggests a specific account to use for signing in and authorizing the app. |
| `allow_signup` | `boolean` | Whether or not unauthenticated users will be offered an option to sign up for GitHub during the OAuth flow. The default is `true`. Use `false` in the case that a policy prohibits signups. |
> *Source: https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#parameters*
### LinkedIn
|Service name| Default scopes | Available scopes |
|---|---|---|
| `LinkedInProvider` | `r_liteprofile` | [API documentation](https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api) |
#### Register an OAuth application
Visit [this page](https://www.linkedin.com/developers/apps/new) to create an application and obtain a client ID and a client secret.
#### User info parameters
The `getUserInfo` and `getUserInfoFromTokens` methods of the `LinkedInProvider` accept an additional `projection` parameter which is optional.
*Example*
```typescript
const { userInfo } = await this.linkedin.getUserInfo(ctx, {
fields: [ 'id', 'firstName' ]
})
```
|Name|Type|Description|
|---|---|---|
| `fields` | `string[]` | List of fields that the returned user info object should contain. Additional documentation on [field projections](https://developer.linkedin.com/docs/guide/v2/concepts/projections). |
| `projection` | `string` | LinkedIn projection parameter. |
### Twitter
|Service name| Default scopes | Available scopes |
|---|---|---|
| `TwitterProvider` | `users.read tweet.read` | [API documentation](https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me) |
#### Register an OAuth application
Visit [this page](https://developer.twitter.com/en/portal/dashboard) to create an application and obtain a client ID and a client secret. You must configure Oauth2 settings to be used with public client;
## Community Providers
There are no community providers available yet! If you want to share one, feel free to [open a PR](https://github.com/FoalTS/foal) on Github.
## Common Errors
| Error | Description |
| --- | --- |
| `InvalidStateError` | The `state` query does not match the value found in the cookie. |
| `CodeVerifierNotFound` | The encrypted code verifier was not found in the cookie (only when using PKCE). |
| `AuthorizationError` | The authorization server returns an error. This can happen when a user does not give consent on the provider page. |
| `UserInfoError` | Thrown in `AbstractProvider.getUserFromTokens` if the request to the resource server is unsuccessful. |
## Security
### HTTPS
When deploying the application, you application must use HTTPS.
*production.yml*
```yaml
settings:
social:
cookie:
# Only pass the state cookie if the request is transmitted over a secure channel (HTTPS).
secure: true
google:
# Your redirect URI in production
redirectUri: 'https://example.com/signin/google/callback'
```
|
{
"content_hash": "0971cdff6427ebcae089247bee7bf787",
"timestamp": "",
"source": "github",
"line_count": 590,
"max_line_length": 340,
"avg_line_length": 29.747457627118646,
"alnum_prop": 0.7112985015098855,
"repo_name": "FoalTS/foal",
"id": "3a4655cdcba3a28b4f0748aa655ab3947e0ce073",
"size": "17553",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/i18n/fr/docusaurus-plugin-content-docs/current/authentication/social-auth.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "13340"
},
{
"name": "JavaScript",
"bytes": "13176"
},
{
"name": "Shell",
"bytes": "4470"
},
{
"name": "TypeScript",
"bytes": "1843250"
}
],
"symlink_target": ""
}
|
package com.github.scribejava.core.builder;
import com.github.scribejava.core.builder.api.BaseApi;
import com.github.scribejava.core.model.HttpClient;
import com.github.scribejava.core.model.OAuthConfig;
import com.github.scribejava.core.model.OAuthConstants;
import com.github.scribejava.core.model.SignatureType;
import com.github.scribejava.core.oauth.OAuthService;
import com.github.scribejava.core.utils.Preconditions;
import java.io.OutputStream;
/**
* Implementation of the Builder pattern, with a fluent interface that creates a {@link OAuthService}
*/
public class ServiceBuilder {
private String callback;
private String apiKey;
private String apiSecret;
private String scope;
private String state;
private SignatureType signatureType;
private OutputStream debugStream;
private String responseType = "code";
private String userAgent;
//sync version only
private Integer connectTimeout;
private Integer readTimeout;
//not-default httpclient only
private HttpClient.Config httpClientConfig;
private HttpClient httpClient;
public ServiceBuilder() {
callback = OAuthConstants.OUT_OF_BAND;
signatureType = SignatureType.Header;
}
/**
* Adds an OAuth callback url
*
* @param callback callback url. Must be a valid url or 'oob' for out of band OAuth
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder callback(String callback) {
Preconditions.checkNotNull(callback, "Callback can't be null");
this.callback = callback;
return this;
}
/**
* Configures the api key
*
* @param apiKey The api key for your application
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder apiKey(String apiKey) {
Preconditions.checkEmptyString(apiKey, "Invalid Api key");
this.apiKey = apiKey;
return this;
}
/**
* Configures the api secret
*
* @param apiSecret The api secret for your application
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder apiSecret(String apiSecret) {
Preconditions.checkEmptyString(apiSecret, "Invalid Api secret");
this.apiSecret = apiSecret;
return this;
}
/**
* Configures the OAuth scope. This is only necessary in some APIs (like Google's).
*
* @param scope The OAuth scope
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder scope(String scope) {
Preconditions.checkEmptyString(scope, "Invalid OAuth scope");
this.scope = scope;
return this;
}
/**
* Configures the anti forgery session state. This is available in some APIs (like Google's).
*
* @param state The OAuth state
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder state(String state) {
Preconditions.checkEmptyString(state, "Invalid OAuth state");
this.state = state;
return this;
}
/**
* Configures the signature type, choose between header, querystring, etc. Defaults to Header
*
* @param signatureType SignatureType
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder signatureType(SignatureType signatureType) {
Preconditions.checkNotNull(signatureType, "Signature type can't be null");
this.signatureType = signatureType;
return this;
}
public ServiceBuilder debugStream(OutputStream debugStream) {
Preconditions.checkNotNull(debugStream, "debug stream can't be null");
this.debugStream = debugStream;
return this;
}
public ServiceBuilder responseType(String responseType) {
Preconditions.checkEmptyString(responseType, "Invalid OAuth responseType");
this.responseType = responseType;
return this;
}
public ServiceBuilder connectTimeout(Integer connectTimeout) {
Preconditions.checkNotNull(connectTimeout, "Connection timeout can't be null");
this.connectTimeout = connectTimeout;
return this;
}
public ServiceBuilder readTimeout(Integer readTimeout) {
Preconditions.checkNotNull(readTimeout, "Read timeout can't be null");
this.readTimeout = readTimeout;
return this;
}
public ServiceBuilder httpClientConfig(HttpClient.Config httpClientConfig) {
Preconditions.checkNotNull(httpClientConfig, "httpClientConfig can't be null");
this.httpClientConfig = httpClientConfig;
return this;
}
/**
* takes precedence over httpClientConfig
*
* @param httpClient externally created HTTP client
* @return the {@link ServiceBuilder} instance for method chaining
*/
public ServiceBuilder httpClient(HttpClient httpClient) {
this.httpClient = httpClient;
return this;
}
public ServiceBuilder userAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}
public ServiceBuilder debug() {
debugStream(System.out);
return this;
}
public void checkPreconditions() {
Preconditions.checkEmptyString(apiKey, "You must provide an api key");
}
private OAuthConfig createConfig() {
checkPreconditions();
return new OAuthConfig(apiKey, apiSecret, callback, signatureType, scope, debugStream, state, responseType,
userAgent, connectTimeout, readTimeout, httpClientConfig, httpClient);
}
/**
* Returns the fully configured {@link S}
*
* @param <S> OAuthService implementation (OAuth1/OAuth2/any API specific)
* @param api will build Service for this API
* @return fully configured {@link S}
*/
public <S extends OAuthService> S build(BaseApi<S> api) {
return api.createService(createConfig());
}
}
|
{
"content_hash": "b11a10ed6461ccb963a197da0e63f7a1",
"timestamp": "",
"source": "github",
"line_count": 184,
"max_line_length": 115,
"avg_line_length": 32.82608695652174,
"alnum_prop": 0.6841059602649007,
"repo_name": "chooco13/scribejava",
"id": "aa994d0a1921096e59972113f49dddc761ea670a",
"size": "6040",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "scribejava-core/src/main/java/com/github/scribejava/core/builder/ServiceBuilder.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "402236"
}
],
"symlink_target": ""
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.