Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text
string | meta
dict |
|---|---|
Template for footer
Screenshot demo:
<hr>
Footer 1:
<br>
<img width="100%" height="auto" src="./images/footer_1.png">
<hr>
Footer 2:
<br>
<img width="100%" height="auto" src="./images/footer_2.png">
|
{
"content_hash": "26ee84c08d7922755f82af72a6675e8a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 60,
"avg_line_length": 15.461538461538462,
"alnum_prop": 0.6616915422885572,
"repo_name": "garungabc/Wordpress_useful",
"id": "f57dd4c4458e82654c5df2f193c58bd1b436d1e7",
"size": "223",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "template-part/footer/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "18720"
},
{
"name": "PHP",
"bytes": "272207"
}
]
}
|
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Accounts\V1\Credential;
use Twilio\ListResource;
use Twilio\Options;
use Twilio\Values;
use Twilio\Version;
class PublicKeyList extends ListResource {
/**
* Construct the PublicKeyList
*
* @param Version $version Version that contains the resource
* @return \Twilio\Rest\Accounts\V1\Credential\PublicKeyList
*/
public function __construct(Version $version) {
parent::__construct($version);
// Path Solution
$this->solution = array();
$this->uri = '/Credentials/PublicKeys';
}
/**
* Streams PublicKeyInstance records from the API as a generator stream.
* This operation lazily loads records as efficiently as possible until the
* limit
* is reached.
* The results are returned as a generator, so this operation is memory
* efficient.
*
* @param int $limit Upper limit for the number of records to return. stream()
* guarantees to never return more than limit. Default is no
* limit
* @param mixed $pageSize Number of records to fetch per request, when not set
* will use the default value of 50 records. If no
* page_size is defined but a limit is defined, stream()
* will attempt to read the limit with the most
* efficient page size, i.e. min(limit, 1000)
* @return \Twilio\Stream stream of results
*/
public function stream($limit = null, $pageSize = null) {
$limits = $this->version->readLimits($limit, $pageSize);
$page = $this->page($limits['pageSize']);
return $this->version->stream($page, $limits['limit'], $limits['pageLimit']);
}
/**
* Reads PublicKeyInstance records from the API as a list.
* Unlike stream(), this operation is eager and will load `limit` records into
* memory before returning.
*
* @param int $limit Upper limit for the number of records to return. read()
* guarantees to never return more than limit. Default is no
* limit
* @param mixed $pageSize Number of records to fetch per request, when not set
* will use the default value of 50 records. If no
* page_size is defined but a limit is defined, read()
* will attempt to read the limit with the most
* efficient page size, i.e. min(limit, 1000)
* @return PublicKeyInstance[] Array of results
*/
public function read($limit = null, $pageSize = null) {
return iterator_to_array($this->stream($limit, $pageSize), false);
}
/**
* Retrieve a single page of PublicKeyInstance records from the API.
* Request is executed immediately
*
* @param mixed $pageSize Number of records to return, defaults to 50
* @param string $pageToken PageToken provided by the API
* @param mixed $pageNumber Page Number, this value is simply for client state
* @return \Twilio\Page Page of PublicKeyInstance
*/
public function page($pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) {
$params = Values::of(array(
'PageToken' => $pageToken,
'Page' => $pageNumber,
'PageSize' => $pageSize,
));
$response = $this->version->page(
'GET',
$this->uri,
$params
);
return new PublicKeyPage($this->version, $response, $this->solution);
}
/**
* Retrieve a specific page of PublicKeyInstance records from the API.
* Request is executed immediately
*
* @param string $targetUrl API-generated URL for the requested results page
* @return \Twilio\Page Page of PublicKeyInstance
*/
public function getPage($targetUrl) {
$response = $this->version->getDomain()->getClient()->request(
'GET',
$targetUrl
);
return new PublicKeyPage($this->version, $response, $this->solution);
}
/**
* Create a new PublicKeyInstance
*
* @param string $publicKey URL encoded representation of the public key
* @param array|Options $options Optional Arguments
* @return PublicKeyInstance Newly created PublicKeyInstance
*/
public function create($publicKey, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'PublicKey' => $publicKey,
'FriendlyName' => $options['friendlyName'],
'AccountSid' => $options['accountSid'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new PublicKeyInstance(
$this->version,
$payload
);
}
/**
* Constructs a PublicKeyContext
*
* @param string $sid Fetch by unique Credential Sid
* @return \Twilio\Rest\Accounts\V1\Credential\PublicKeyContext
*/
public function getContext($sid) {
return new PublicKeyContext(
$this->version,
$sid
);
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString() {
return '[Twilio.Accounts.V1.PublicKeyList]';
}
}
|
{
"content_hash": "9abc9499cb5346e93dadc31a3bf7e037",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 107,
"avg_line_length": 34.35502958579882,
"alnum_prop": 0.5609714088873579,
"repo_name": "thushanp/thushanp.github.io",
"id": "4b59834c97103ada7d35b5ac39e12420d048bacc",
"size": "5806",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/twilio/sdk/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2701"
},
{
"name": "HTML",
"bytes": "57465"
},
{
"name": "JavaScript",
"bytes": "2370"
},
{
"name": "PHP",
"bytes": "1801"
},
{
"name": "Python",
"bytes": "1591"
}
]
}
|
from wapitiCore.attack.attack import Attack
from wapitiCore.language.vulnerability import Vulnerability, Anomaly
import requests
import os
from wapitiCore.net import HTTP
class mod_file(Attack):
"""
This class implements a file handling attack
"""
CONFIG_FILE = "fileHandlingPayloads.txt"
name = "file"
# The following table contains tuples of (pattern, description, severity)
# a severity of 1 is a file disclosure (inclusion, read etc) vulnerability
# a severity of 0 is just the detection of an error returned by the server
# Most important patterns must appear at the top of this table.
warnings_desc = [
# Vulnerabilities
("<title>Google</title>", _("Remote inclusion vulnerability"), 1),
("root:x:0:0", _("Linux local file disclosure vulnerability"), 1),
("root:*:0:0", _("BSD local file disclosure vulnerability"), 1),
("[boot loader]", _("Windows local file disclosure vulnerability"), 1),
("s:12:\"pear.php.net\";", _("File disclosure vulnerability in include_path"), 1),
("PHP Extension and Application Reposit", _("File disclosure vulnerability in include_path"), 1),
("PEAR, the PHP Extensio", _("highlight_file() vulnerability in basedir"), 1),
("either use the CLI php executable", _("include() of file in include_path"), 1),
# Warnings
("java.io.FileNotFoundException:", "Java include/open", 0),
("fread(): supplied argument is not", "fread()", 0),
("fpassthru(): supplied argument is not", "fpassthru()", 0),
("for inclusion (include_path=", "include()", 0),
("Failed opening required", "require()", 0),
("Warning: file(", "file()", 0),
("<b>Warning</b>: file(", "file()", 0),
("Warning: readfile(", "readfile()", 0),
("<b>Warning:</b> readfile(", "readfile()", 0),
("Warning: file_get_contents(", "file_get_contents()", 0),
("<b>Warning</b>: file_get_contents(", "file_get_contents()", 0),
("Warning: show_source(", "show_source()", 0),
("<b>Warning:</b> show_source(", "show_source()", 0),
("Warning: highlight_file(", "highlight_file()", 0),
("<b>Warning:</b> highlight_file(", "highlight_file()", 0),
("System.IO.FileNotFoundException:", ".NET File.Open*", 0),
("error '800a0046'", "VBScript OpenTextFile", 0)
]
def __init__(self, http, xmlRepGenerator):
Attack.__init__(self, http, xmlRepGenerator)
self.payloads = self.loadPayloads(os.path.join(self.CONFIG_DIR, self.CONFIG_FILE))
def __findPatternInResponse(self, data, warn):
"""This method searches patterns in the response from the server"""
err_msg = ""
inc = 0
for pattern, description, level in self.warnings_desc:
if pattern in data:
if level == 1:
err_msg = description
inc = 1
break
else:
if warn == 0:
err_msg = _("Possible {0} vulnerability").format(description)
warn = 1
break
return err_msg, inc, warn
def attackGET(self, http_res):
"""This method performs the file handling attack with method GET"""
page = http_res.path
params_list = http_res.get_params
resp_headers = http_res.headers
referer = http_res.referer
headers = {}
if referer:
headers["referer"] = referer
if not params_list:
# Do not attack application-type files
if not "content-type" in resp_headers:
# Sometimes there's no content-type... so we rely on the document extension
if (page.split(".")[-1] not in self.allowed) and page[-1] != "/":
return
elif not "text" in resp_headers["content-type"]:
return
timeouted = False
warn = 0
inc = 0
err500 = 0
for payload in self.payloads:
if "[VALUE]" in payload or "[DIRVALUE]" in payload or "[FILE_NAME]" in payload:
continue
err = ""
url = page + "?" + self.HTTP.quote(payload)
if url not in self.attackedGET:
if self.verbose == 2:
print(u"+ {0}".format(url))
self.attackedGET.append(url)
evil_req = HTTP.HTTPResource(url)
try:
data, code = self.HTTP.send(evil_req, headers=headers).getPageCode()
except requests.exceptions.Timeout:
# Display a warning about timeout only once for a parameter
if timeouted:
continue
data = ""
code = "408"
err = ""
self.logAnom(category=Anomaly.RES_CONSUMPTION,
level=Anomaly.MEDIUM_LEVEL,
request=evil_req,
info=Anomaly.MSG_QS_TIMEOUT)
self.logO(Anomaly.MSG_TIMEOUT, page)
self.logO(Anomaly.MSG_EVIL_URL, evil_req.url)
timeouted = True
else:
err, inc, warn = self.__findPatternInResponse(data, warn)
if err != "":
self.logVuln(category=Vulnerability.FILE_HANDLING,
level=Vulnerability.HIGH_LEVEL,
request=evil_req,
info=_("{0} via injection in the query string").format(err))
self.logR(Vulnerability.MSG_QS_INJECT, err, page)
self.logR(Vulnerability.MSG_EVIL_URL, evil_req.url)
if inc:
break
else:
if code == "500" and err500 == 0:
err500 = 1
self.logAnom(category=Anomaly.ERROR_500,
level=Anomaly.HIGH_LEVEL,
request=evil_req,
info=Anomaly.MSG_QS_500)
self.logO(Anomaly.MSG_500, evil_req.path)
self.logO(Anomaly.MSG_EVIL_URL, evil_req.url)
for i in range(len(params_list)):
timeouted = False
warn = 0
inc = 0
err500 = 0
param_name = self.HTTP.quote(params_list[i][0])
saved_value = params_list[i][1]
if saved_value is None:
saved_value = ""
params_list[i][1] = "__FILE__"
url = page + "?" + self.HTTP.encode(params_list)
if url not in self.attackedGET:
self.attackedGET.append(url)
for payload in self.payloads:
err = ""
payload = payload.replace('[VALUE]', saved_value)
payload = payload.replace('[DIRVALUE]', saved_value.rsplit('/', 1)[0])
payload = payload.replace('[FILE_NAME]', http_res.file_name)
params_list[i][1] = self.HTTP.quote(payload)
url = page + "?" + self.HTTP.encode(params_list)
if self.verbose == 2:
print(u"+ {0}".format(url))
evil_req = HTTP.HTTPResource(url)
try:
data, code = self.HTTP.send(evil_req, headers=headers).getPageCode()
except requests.exceptions.Timeout:
if timeouted:
continue
data = ""
code = "408"
err = ""
self.logAnom(category=Anomaly.RES_CONSUMPTION,
level=Anomaly.MEDIUM_LEVEL,
request=evil_req,
parameter=param_name,
info=Anomaly.MSG_PARAM_TIMEOUT.format(param_name))
self.logO(Anomaly.MSG_TIMEOUT, page)
self.logO(Anomaly.MSG_EVIL_URL, evil_req.url)
timeouted = True
else:
err, inc, warn = self.__findPatternInResponse(data, warn)
if err != "":
self.logVuln(category=Vulnerability.FILE_HANDLING,
level=Vulnerability.HIGH_LEVEL,
request=evil_req,
parameter=param_name,
info=_("{0} via injection in the parameter {1}").format(err, param_name))
self.logR(Vulnerability.MSG_PARAM_INJECT, err, page, param_name)
self.logR(Vulnerability.MSG_EVIL_URL, evil_req.url)
if inc:
break
else:
if code == "500" and err500 == 0:
err500 = 1
self.logAnom(category=Anomaly.ERROR_500,
level=Anomaly.HIGH_LEVEL,
request=evil_req,
parameter=param_name,
info=Anomaly.MSG_PARAM_500.format(param_name))
self.logO(Anomaly.MSG_500, evil_req.path)
self.logO(Anomaly.MSG_EVIL_URL, evil_req.url)
params_list[i][1] = saved_value
def attackPOST(self, form):
"""This method performs the file handling attack with method POST"""
# copies
get_params = form.get_params
post_params = form.post_params
file_params = form.file_params
referer = form.referer
err = ""
for params_list in [get_params, post_params, file_params]:
for i in xrange(len(params_list)):
timeouted = False
warn = 0
inc = 0
err500 = 0
saved_value = params_list[i][1]
if saved_value is None:
saved_value = ""
param_name = self.HTTP.quote(params_list[i][0])
if params_list is file_params:
params_list[i][1] = ["_FILE__", params_list[i][1][1]]
else:
params_list[i][1] = "__FILE__"
attack_pattern = HTTP.HTTPResource(form.path,
method=form.method,
get_params=get_params,
post_params=post_params,
file_params=file_params)
if attack_pattern not in self.attackedPOST:
self.attackedPOST.append(attack_pattern)
for payload in self.payloads:
payload = payload.replace('[FILE_NAME]', form.file_name)
if params_list is file_params:
payload = payload.replace('[VALUE]', saved_value[0])
payload = payload.replace('[DIRVALUE]', saved_value[0].rsplit('/', 1)[0])
params_list[i][1][0] = payload
else:
payload = payload.replace('[VALUE]', saved_value)
payload = payload.replace('[DIRVALUE]', saved_value.rsplit('/', 1)[0])
params_list[i][1] = payload
evil_req = HTTP.HTTPResource(form.path,
method=form.method,
get_params=get_params,
post_params=post_params,
file_params=file_params,
referer=referer)
if self.verbose == 2:
print(u"+ {0}".format(evil_req))
try:
data, code = self.HTTP.send(evil_req).getPageCode()
except requests.exceptions.Timeout:
if timeouted:
continue
data = ""
code = "408"
self.logAnom(category=Anomaly.RES_CONSUMPTION,
level=Anomaly.MEDIUM_LEVEL,
request=evil_req,
parameter=param_name,
info=Anomaly.MSG_PARAM_TIMEOUT.format(param_name))
self.logO(Anomaly.MSG_TIMEOUT, evil_req.path)
self.logO(Anomaly.MSG_EVIL_REQUEST)
self.logC(evil_req.http_repr)
print('')
timeouted = True
else:
err, inc, warn = self.__findPatternInResponse(data, warn)
if err != "":
info_msg = _("{0} via injection in the parameter {1}")
self.logVuln(category=Vulnerability.FILE_HANDLING,
level=Vulnerability.HIGH_LEVEL,
request=evil_req,
parameter=param_name,
info=info_msg.format(err, param_name))
self.logR(Vulnerability.MSG_PARAM_INJECT, err, evil_req.url, param_name)
self.logR(Vulnerability.MSG_EVIL_REQUEST)
self.logC(evil_req.http_repr)
print('')
if inc:
break
else:
if code == "500" and err500 == 0:
err500 = 1
self.logAnom(category=Anomaly.ERROR_500,
level=Anomaly.HIGH_LEVEL,
request=evil_req,
parameter=param_name,
info=Anomaly.MSG_PARAM_500.format(param_name))
self.logO(Anomaly.MSG_500, evil_req.url)
self.logO(Anomaly.MSG_EVIL_REQUEST)
self.logC(evil_req.http_repr)
print('')
params_list[i][1] = saved_value
|
{
"content_hash": "454124509a87fef4e54c38629089cf74",
"timestamp": "",
"source": "github",
"line_count": 309,
"max_line_length": 110,
"avg_line_length": 50.87378640776699,
"alnum_prop": 0.42951653944020357,
"repo_name": "sapientgov/openfda-travel",
"id": "1467242fbf176bef3ecc91fa89672327be6820ac",
"size": "16586",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "misc/wapiti-2.3.0/wapitiCore/attack/mod_file.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "116917"
},
{
"name": "HTML",
"bytes": "86450"
},
{
"name": "JavaScript",
"bytes": "393928"
},
{
"name": "Python",
"bytes": "388329"
},
{
"name": "Shell",
"bytes": "2063"
}
]
}
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "1565eadc00c8717574bcf493b5e4fc1a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "f4ccc0d807c86d7c9c6e7b1b0b5d510f63b1969b",
"size": "171",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Rosales/Rosaceae/Chionice/Chionice dioica/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
https://adventofcode.com/2018/day/9
|
{
"content_hash": "62e6f9c1fb26b082c2dfae7913772621",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 35,
"avg_line_length": 36,
"alnum_prop": 0.7777777777777778,
"repo_name": "bbglab/adventofcode",
"id": "cdf43239359f93a22c8a9b1115ac1695a7af2dc5",
"size": "55",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "2018/ferran/day09/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "37799"
},
{
"name": "Go",
"bytes": "3094"
},
{
"name": "Haskell",
"bytes": "10240"
},
{
"name": "Jupyter Notebook",
"bytes": "13754648"
},
{
"name": "Python",
"bytes": "194710"
},
{
"name": "R",
"bytes": "18289"
},
{
"name": "Rust",
"bytes": "2682"
},
{
"name": "Shell",
"bytes": "1190"
}
]
}
|
/* THIS FILE IS AUTOGENERATED FROM SVGForeignObjectElement.webidl BY Codegen.py - DO NOT EDIT */
#ifndef mozilla_dom_SVGForeignObjectElementBinding_h
#define mozilla_dom_SVGForeignObjectElementBinding_h
#include "js/RootingAPI.h"
#include "jspubtd.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
namespace mozilla {
namespace dom {
struct NativePropertyHooks;
class ProtoAndIfaceCache;
class SVGForeignObjectElement;
struct SVGForeignObjectElementAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace SVGForeignObjectElementBinding {
typedef mozilla::dom::SVGForeignObjectElement NativeType;
// We declare this as an array so that retrieving a pointer to this
// binding's property hooks only requires compile/link-time resolvable
// address arithmetic. Declaring it as a pointer instead would require
// doing a run-time load to fetch a pointer to this binding's property
// hooks. And then structures which embedded a pointer to this structure
// would require a run-time load for proper initialization, which would
// then induce static constructors. Lots of static constructors.
extern const NativePropertyHooks sNativePropertyHooks[];
JSObject*
DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
const JSClass*
GetJSClass();
bool
Wrap(JSContext* aCx, mozilla::dom::SVGForeignObjectElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
template <class T>
inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
{
JS::Rooted<JSObject*> reflector(aCx);
return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
}
void
CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
JS::Handle<JSObject*>
GetProtoObjectHandle(JSContext* aCx, JS::Handle<JSObject*> aGlobal);
JS::Handle<JSObject*>
GetConstructorObjectHandle(JSContext* aCx, JS::Handle<JSObject*> aGlobal, bool aDefineOnGlobal = true);
JSObject*
GetConstructorObject(JSContext* aCx, JS::Handle<JSObject*> aGlobal);
} // namespace SVGForeignObjectElementBinding
} // namespace dom
} // namespace mozilla
#endif // mozilla_dom_SVGForeignObjectElementBinding_h
|
{
"content_hash": "5e30d4e6af7e80b7e4a0258c36970efa",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 171,
"avg_line_length": 34.4054054054054,
"alnum_prop": 0.7494108405341713,
"repo_name": "andrasigneczi/TravelOptimizer",
"id": "5a78ac85504c037d32b2b2f3551edad7d0b8b4d1",
"size": "2546",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DataCollector/mozilla/xulrunner-sdk/include/mozilla/dom/SVGForeignObjectElementBinding.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"
}
]
}
|
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">
<channel>
<title>Comments for page "Face to Face"</title>
<link>http://bvs.wikidot.com/forum/t-208974/face-to-face</link>
<description>Posts in the discussion thread "Face to Face"</description>
<copyright></copyright>
<lastBuildDate>Sun, 10 Jul 2022 03:57:12 +0000</lastBuildDate>
<item>
<guid>http://bvs.wikidot.com/forum/t-208974#post-2081077</guid>
<title>(no title)</title>
<link>http://bvs.wikidot.com/forum/t-208974/face-to-face#post-2081077</link>
<description></description>
<pubDate>Mon, 04 Aug 2014 21:36:56 +0000</pubDate>
<wikidot:authorName>Prem-aka-Prince</wikidot:authorName> <wikidot:authorUserId>304978</wikidot:authorUserId> <content:encoded>
<![CDATA[
<p>Happy to help! Guide is under a spoiler near the top of the page, if anyone else is looking.</p>
]]>
</content:encoded> </item>
<item>
<guid>http://bvs.wikidot.com/forum/t-208974#post-2080640</guid>
<title>Oh right, Nana</title>
<link>http://bvs.wikidot.com/forum/t-208974/face-to-face#post-2080640</link>
<description></description>
<pubDate>Mon, 04 Aug 2014 09:33:33 +0000</pubDate>
<wikidot:authorName>Nytemaren</wikidot:authorName> <wikidot:authorUserId>1896863</wikidot:authorUserId> <content:encoded>
<![CDATA[
<p>I forgot about White Witch, I had to use Su-chan so I could equip everything and not kill myself using it. Thanks!</p>
]]>
</content:encoded> </item>
<item>
<guid>http://bvs.wikidot.com/forum/t-208974#post-2078793</guid>
<title>Re: D-Speed?</title>
<link>http://bvs.wikidot.com/forum/t-208974/face-to-face#post-2078793</link>
<description></description>
<pubDate>Thu, 31 Jul 2014 22:39:37 +0000</pubDate>
<wikidot:authorName>Prem-aka-Prince</wikidot:authorName> <wikidot:authorUserId>304978</wikidot:authorUserId> <content:encoded>
<![CDATA[
<p>Did you include village upgrade and the white witch?<br /> Isn't 23 enough, anyway? If difficulty goes up to 10 it is still passable.<br /> With the right setup there really is no reason to use crimson lotus.<br /> Don't be distracted just because it's still in game, forget about it, it's a relic…</p>
]]>
</content:encoded> </item>
<item>
<guid>http://bvs.wikidot.com/forum/t-208974#post-2078770</guid>
<title>D-Speed?</title>
<link>http://bvs.wikidot.com/forum/t-208974/face-to-face#post-2078770</link>
<description></description>
<pubDate>Thu, 31 Jul 2014 20:30:59 +0000</pubDate>
<wikidot:authorName>Nytemaren</wikidot:authorName> <wikidot:authorUserId>1896863</wikidot:authorUserId> <content:encoded>
<![CDATA[
<p>Yeah, I'm looking at the recommended set-up, and the D-Speed would only be 23 unless you're Red-Eye, so only Red-Eyes could pass the Area 100 check. What would a good Crimson Lotus set-up be?</p>
]]>
</content:encoded> </item>
</channel>
</rss>
|
{
"content_hash": "1be1204c831ac59f9bc2b981777f09cb",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 319,
"avg_line_length": 56.732142857142854,
"alnum_prop": 0.6767390620081838,
"repo_name": "tn5421/tn5421.github.io",
"id": "5cd47d6bac60471f7ce3038bf55439fe30782ee6",
"size": "3177",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "bvs.wikidot.com/feed/forum/t-208974.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "400301089"
}
]
}
|
<html dir="ltr" xmlns:o>
<head>
<title>Stop NCache Service</title>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link rel="stylesheet" type="text/css" href="../MSDN.css">
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">Alachisoft NCache 4.4</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">Stop NCache Service on a Node </h1>
</div>
</div>
<div id="nstext">
<p>To stop NCache Service on a Node, right click on the Node in the 'NCache Management' tree and select 'Stop NCache Service' from the context menu. </p>
<br>
<p><img src="stop_service.JPG" alt="stop service"></p>
<br><br>
<H4 class="dtH4">See Also </H4>
<A href="start_service.html" target="">Start NCache Service on a Node</A> | <A href="manual_dist.html" target="">Balance data load</A> | <A href="multiple_NIC.html" target="">Select Network Interface Card</A> | <A href="make_active.html" target="">Make Active Node</A>
<!-- End of Document -->
<DIV class="footer">
<P> </P>
<HR>
<P>
<A href="mailto:support@alachisoft.com?subject=Alachisoft NCache 4.4 Documentation Feedback: Stop NCache Service">
Send comments on this topic.</A> </P>
<P>
<a>Copyright © 2005-2015 Alachisoft. All rights reserved.</a>
</P>
</DIV>
<P class="MsoBodyText2">
<o:p></o:p>
</P>
</div>
</body>
</html>
|
{
"content_hash": "a495b9bace65ddc06172eb5f4040781d",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 271,
"avg_line_length": 36.21739130434783,
"alnum_prop": 0.6218487394957983,
"repo_name": "Teino1978-Corp/NCache",
"id": "6192e99471350bd4dfb4df7ff0c15067dce91b8c",
"size": "1666",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Docs/Getting-Started/ClusteredCacheOperations/stop_service.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "6835"
},
{
"name": "C",
"bytes": "849"
},
{
"name": "C#",
"bytes": "7847243"
},
{
"name": "C++",
"bytes": "11428"
},
{
"name": "CSS",
"bytes": "13185"
},
{
"name": "HTML",
"bytes": "297159"
},
{
"name": "PowerShell",
"bytes": "15593"
},
{
"name": "Protocol Buffer",
"bytes": "38694"
}
]
}
|
package eu.bcvsolutions.idm.core.monitoring.bulk.impl;
import java.util.Set;
import java.util.UUID;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.google.common.collect.Sets;
import eu.bcvsolutions.idm.core.api.bulk.action.dto.IdmBulkActionDto;
import eu.bcvsolutions.idm.core.api.domain.OperationState;
import eu.bcvsolutions.idm.core.api.dto.OperationResultDto;
import eu.bcvsolutions.idm.core.api.service.ConfigurationService;
import eu.bcvsolutions.idm.core.api.utils.AutowireHelper;
import eu.bcvsolutions.idm.core.monitoring.api.dto.IdmMonitoringDto;
import eu.bcvsolutions.idm.core.monitoring.api.dto.IdmMonitoringResultDto;
import eu.bcvsolutions.idm.core.monitoring.api.service.IdmMonitoringResultService;
import eu.bcvsolutions.idm.core.monitoring.api.service.IdmMonitoringService;
import eu.bcvsolutions.idm.core.monitoring.entity.IdmMonitoringResult;
import eu.bcvsolutions.idm.core.monitoring.service.impl.H2DatabaseMonitoringEvaluator;
import eu.bcvsolutions.idm.test.api.AbstractBulkActionTest;
/**
* Run monitoring tests.
*
* @author Radek Tomiška
*
*/
public class MonitoringResultRunBulkActionIntegrationTest extends AbstractBulkActionTest {
@Autowired private IdmMonitoringService monitoringService;
@Autowired private IdmMonitoringResultService monitoringResultService;
@Autowired private ConfigurationService configurationService;
@Autowired private H2DatabaseMonitoringEvaluator h2DatabaseMonitoringEvaluator;
@Before
public void login() {
loginAsAdmin();
}
@After
public void logout() {
super.logout();
}
@Test
public void testRun() {
IdmMonitoringResultDto monitoringResult = createDto();
IdmBulkActionDto bulkAction = findBulkAction(IdmMonitoringResult.class, MonitoringResultRunBulkAction.NAME);
Set<UUID> ids = Sets.newHashSet(monitoringResult.getId());
bulkAction.setIdentifiers(ids);
IdmBulkActionDto processAction = bulkActionManager.processAction(bulkAction);
checkResultLrt(processAction, 1l, null, null);
monitoringService.deleteById(monitoringResult.getMonitoring());
}
protected IdmMonitoringResultDto createDto() {
IdmMonitoringDto monitoring = new IdmMonitoringDto();
monitoring.setCheckPeriod(0L);
monitoring.setEvaluatorType(AutowireHelper.getTargetType(h2DatabaseMonitoringEvaluator));
monitoring.setInstanceId(configurationService.getInstanceId());
monitoring = monitoringService.save(monitoring);
//
IdmMonitoringResultDto dto = new IdmMonitoringResultDto();
dto.setMonitoring(monitoring.getId());
dto.setEvaluatorType(AutowireHelper.getTargetType(h2DatabaseMonitoringEvaluator));
dto.setInstanceId(configurationService.getInstanceId());
dto.setResult(new OperationResultDto(OperationState.BLOCKED));
//
return monitoringResultService.save(dto);
}
}
|
{
"content_hash": "e475b334cea2339c9111f829f70c5777",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 110,
"avg_line_length": 36.49367088607595,
"alnum_prop": 0.8196323274366979,
"repo_name": "bcvsolutions/CzechIdMng",
"id": "f406c12435de2d3f99c084d8e556f60941d4198a",
"size": "2884",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/monitoring/bulk/impl/MonitoringResultRunBulkActionIntegrationTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "20553"
},
{
"name": "HTML",
"bytes": "1826"
},
{
"name": "Java",
"bytes": "17776464"
},
{
"name": "JavaScript",
"bytes": "4985617"
},
{
"name": "Less",
"bytes": "56975"
},
{
"name": "Shell",
"bytes": "2793"
},
{
"name": "TSQL",
"bytes": "114398"
}
]
}
|
package team.balam.util.sqlite.connection.pool;
import team.balam.util.sqlite.connection.vo.QueryResult;
import team.balam.util.sqlite.connection.vo.QueryVo;
import team.balam.util.sqlite.connection.vo.QueryVoImpl;
import java.sql.*;
class DAO {
static void select(Connection con, QueryVoImpl vo) {
PreparedStatement ps;
ResultSet result;
QueryResult queryResult = new QueryResult();
try {
ps = prepareStatement(con, vo);
result = ps.executeQuery();
queryResult.setSelectResult(ps, result);
queryResult.onSuccess();
} catch (Exception e) {
queryResult.setException(e);
} finally {
vo.setResult(queryResult);
}
}
static void updateOrDelete(Connection con, QueryVoImpl vo) {
PreparedStatement ps = null;
QueryResult queryResult = new QueryResult();
try {
ps = prepareStatement(con, vo);
queryResult.setResultCount(ps.executeUpdate());
queryResult.onSuccess();
} catch (SQLException e) {
queryResult.setException(e);
} finally {
vo.setResult(queryResult);
close(queryResult, ps);
}
}
static void insertOrExecute(Connection con, QueryVoImpl vo) {
PreparedStatement ps = null;
QueryResult queryResult = new QueryResult();
try {
ps = prepareStatement(con, vo);
ps.execute();
queryResult.onSuccess();
} catch (SQLException e) {
queryResult.setException(e);
} finally {
vo.setResult(queryResult);
close(queryResult, ps);
}
}
private static PreparedStatement prepareStatement(Connection con, QueryVo vo) throws SQLException {
PreparedStatement ps = con.prepareStatement(vo.getQuery());
if (vo.getQueryTimeout() > 0) {
ps.setQueryTimeout(vo.getQueryTimeout());
}
Object[] param = vo.getParam();
if (param != null) {
for (int p = 1; p <= param.length; ++p) {
ps.setObject(p, param[p - 1]);
}
}
return ps;
}
private static void close(QueryResult _result, Statement _stat) {
try {
if (_stat != null) {
_stat.close();
}
} catch (Exception e) {
_result.setException(e);
}
}
}
|
{
"content_hash": "383b3036da0a9172523c906afa7503bf",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 100,
"avg_line_length": 23.264367816091955,
"alnum_prop": 0.6892292490118577,
"repo_name": "KNero/SQLite-Helper",
"id": "ad45d51dafa879ca2eee193c1b6460cd8fe5e35a",
"size": "2024",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/team/balam/util/sqlite/connection/pool/DAO.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "27781"
}
]
}
|
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
/*
Generated class for the ChoicePage page.
See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation.
*/
@Component({
templateUrl: 'build/pages/choice/choice.html',
})
export class ChoicePage {
constructor(private navCtrl: NavController) {
}
answer1(){
alert("คุณตอบถูก");
this.navCtrl.pop();
}
answer2(){
alert("คุณตอบผิด");
this.navCtrl.pop();
}
}
|
{
"content_hash": "c130e79cb66550f709689bd93a933419",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 79,
"avg_line_length": 18.964285714285715,
"alnum_prop": 0.6704331450094162,
"repo_name": "Bu4y/NongMesa",
"id": "3c47d28e27b5dc254b43e00676d04536e11a0226",
"size": "567",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/pages/choice/choice.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4489"
},
{
"name": "HTML",
"bytes": "2208"
},
{
"name": "JavaScript",
"bytes": "5091"
},
{
"name": "TypeScript",
"bytes": "1498"
}
]
}
|
package rui.coder.design.pattern.structure.flyweight;
import java.util.HashMap;
public class ShapeFactory {
private static final HashMap<String, Shape> circleMap = new HashMap<>();
public static Shape getCircle(String color) {
Circle circle = (Circle)circleMap.get(color);
if(circle == null) {
circle = new Circle(color);
circleMap.put(color, circle);
System.out.println("Creating circle of color : " + color);
}
return circle;
}
}
|
{
"content_hash": "bc7aec2a197d70b5aa1fff1a95d406ec",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 75,
"avg_line_length": 27.5,
"alnum_prop": 0.6585858585858586,
"repo_name": "dongyuanlongwang/coder",
"id": "96e691f64136e2d0d8d3ff9cc9a9d533a3c4d82a",
"size": "495",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "design-pattern/src/main/java/rui/coder/design/pattern/structure/flyweight/ShapeFactory.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "326447"
}
]
}
|
<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<title>OpenCV: cv::detail::PairwiseSeamFinder Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
TeX: {
Macros: {
matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
hdotsfor: ["\\dots", 1],
mathbbm: ["\\mathbb{#1}", 1],
bordermatrix: ["\\matrix{#1}", 1]
}
}
}
);
//]]>
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">OpenCV
 <span id="projectnumber">3.2.0</span>
</div>
<div id="projectbrief">Open Source Computer Vision</div>
</td>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
function getLabelName(innerHTML) {
var str = innerHTML.toLowerCase();
// Replace all '+' with 'p'
str = str.split('+').join('p');
// Replace all ' ' with '_'
str = str.split(' ').join('_');
// Replace all '#' with 'sharp'
str = str.split('#').join('sharp');
// Replace other special characters with 'ascii' + code
for (var i = 0; i < str.length; i++) {
var charCode = str.charCodeAt(i);
if (!(charCode == 95 || (charCode > 96 && charCode < 123) || (charCode > 47 && charCode < 58)))
str = str.substr(0, i) + 'ascii' + charCode + str.substr(i + 1);
}
return str;
}
function addToggle() {
var $getDiv = $('div.newInnerHTML').last();
var buttonName = $getDiv.html();
var label = getLabelName(buttonName.trim());
$getDiv.attr("title", label);
$getDiv.hide();
$getDiv = $getDiv.next();
$getDiv.attr("class", "toggleable_div label_" + label);
$getDiv.hide();
}
//]]>
</script>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d2/daf/namespacecv_1_1detail.html">detail</a></li><li class="navelem"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html">PairwiseSeamFinder</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="../../d0/daa/classcv_1_1detail_1_1PairwiseSeamFinder-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">cv::detail::PairwiseSeamFinder Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../d1/d46/group__stitching.html">Images stitching</a> » <a class="el" href="../../d9/d24/group__stitching__seam.html">Seam Estimation</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Base class for all pairwise seam estimators.
<a href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#details">More...</a></p>
<p><code>#include "seam_finders.hpp"</code></p>
<div class="dynheader">
Inheritance diagram for cv::detail::PairwiseSeamFinder:</div>
<div class="dyncontent">
<div class="center">
<img src="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.png" usemap="#cv::detail::PairwiseSeamFinder_map" alt=""/>
<map id="cv::detail::PairwiseSeamFinder_map" name="cv::detail::PairwiseSeamFinder_map">
<area href="../../d7/d09/classcv_1_1detail_1_1SeamFinder.html" title="Base class for a seam estimator. " alt="cv::detail::SeamFinder" shape="rect" coords="0,0,184,24"/>
<area href="../../db/d24/classcv_1_1detail_1_1VoronoiSeamFinder.html" title="Voronoi diagram-based seam estimator. " alt="cv::detail::VoronoiSeamFinder" shape="rect" coords="0,112,184,136"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6770c1d7ff3136af3912dbec291bddd2"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a6770c1d7ff3136af3912dbec291bddd2">find</a> (const std::vector< <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> > &src, const std::vector< <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> > &corners, std::vector< <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> > &masks)</td></tr>
<tr class="memdesc:a6770c1d7ff3136af3912dbec291bddd2"><td class="mdescLeft"> </td><td class="mdescRight">Estimates seams. <a href="#a6770c1d7ff3136af3912dbec291bddd2">More...</a><br /></td></tr>
<tr class="separator:a6770c1d7ff3136af3912dbec291bddd2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classcv_1_1detail_1_1SeamFinder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1detail_1_1SeamFinder')"><img src="../../closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="../../d7/d09/classcv_1_1detail_1_1SeamFinder.html">cv::detail::SeamFinder</a></td></tr>
<tr class="memitem:afa4401d71037fdc37dcf884ff50a5d71 inherit pub_methods_classcv_1_1detail_1_1SeamFinder"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d09/classcv_1_1detail_1_1SeamFinder.html#afa4401d71037fdc37dcf884ff50a5d71">~SeamFinder</a> ()</td></tr>
<tr class="separator:afa4401d71037fdc37dcf884ff50a5d71 inherit pub_methods_classcv_1_1detail_1_1SeamFinder"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a8e2d33396c0a012c7a256db8337435c6"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a8e2d33396c0a012c7a256db8337435c6">findInPair</a> (<a class="el" href="../../da/d06/autogenerated_2opencl__core_8hpp.html#a6ff403ead16f7faa1f7228274eb6b01d">size_t</a> first, <a class="el" href="../../da/d06/autogenerated_2opencl__core_8hpp.html#a6ff403ead16f7faa1f7228274eb6b01d">size_t</a> second, <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> roi)=0</td></tr>
<tr class="memdesc:a8e2d33396c0a012c7a256db8337435c6"><td class="mdescLeft"> </td><td class="mdescRight">Resolves masks intersection of two specified images in the given ROI. <a href="#a8e2d33396c0a012c7a256db8337435c6">More...</a><br /></td></tr>
<tr class="separator:a8e2d33396c0a012c7a256db8337435c6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a929964603a3e5d322245b83ac348cb13"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a929964603a3e5d322245b83ac348cb13">run</a> ()</td></tr>
<tr class="separator:a929964603a3e5d322245b83ac348cb13"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a73b7891ed68d55b25011fbcdb6d5f4da"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a73b7891ed68d55b25011fbcdb6d5f4da">corners_</a></td></tr>
<tr class="separator:a73b7891ed68d55b25011fbcdb6d5f4da"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a681e67ac1e0b06c5b4d7ef15fc5eb0b0"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a681e67ac1e0b06c5b4d7ef15fc5eb0b0">images_</a></td></tr>
<tr class="separator:a681e67ac1e0b06c5b4d7ef15fc5eb0b0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3db4bcfb73c963e7eeb92ecffdda5db6"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a3db4bcfb73c963e7eeb92ecffdda5db6">masks_</a></td></tr>
<tr class="separator:a3db4bcfb73c963e7eeb92ecffdda5db6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5abe230ead5af1b35d94cb3f2b867787"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html#a5abe230ead5af1b35d94cb3f2b867787">sizes_</a></td></tr>
<tr class="separator:a5abe230ead5af1b35d94cb3f2b867787"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Base class for all pairwise seam estimators. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a6770c1d7ff3136af3912dbec291bddd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6770c1d7ff3136af3912dbec291bddd2">§ </a></span>find()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void cv::detail::PairwiseSeamFinder::find </td>
<td>(</td>
<td class="paramtype">const std::vector< <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> > & </td>
<td class="paramname"><em>src</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector< <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> > & </td>
<td class="paramname"><em>corners</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector< <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> > & </td>
<td class="paramname"><em>masks</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Estimates seams. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">src</td><td>Source images </td></tr>
<tr><td class="paramname">corners</td><td>Source image top-left corners </td></tr>
<tr><td class="paramname">masks</td><td>Source image masks to update </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="../../d7/d09/classcv_1_1detail_1_1SeamFinder.html#abaf8facb8e4b77cffcc9085997833989">cv::detail::SeamFinder</a>.</p>
<p>Reimplemented in <a class="el" href="../../db/d24/classcv_1_1detail_1_1VoronoiSeamFinder.html#a7e3e0592e821a2ecc2e6f153b91a4004">cv::detail::VoronoiSeamFinder</a>.</p>
</div>
</div>
<a id="a8e2d33396c0a012c7a256db8337435c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e2d33396c0a012c7a256db8337435c6">§ </a></span>findInPair()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void cv::detail::PairwiseSeamFinder::findInPair </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../da/d06/autogenerated_2opencl__core_8hpp.html#a6ff403ead16f7faa1f7228274eb6b01d">size_t</a> </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../da/d06/autogenerated_2opencl__core_8hpp.html#a6ff403ead16f7faa1f7228274eb6b01d">size_t</a> </td>
<td class="paramname"><em>second</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> </td>
<td class="paramname"><em>roi</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Resolves masks intersection of two specified images in the given ROI. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">first</td><td>First image index </td></tr>
<tr><td class="paramname">second</td><td>Second image index </td></tr>
<tr><td class="paramname">roi</td><td>Region of interest </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a929964603a3e5d322245b83ac348cb13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a929964603a3e5d322245b83ac348cb13">§ </a></span>run()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void cv::detail::PairwiseSeamFinder::run </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a73b7891ed68d55b25011fbcdb6d5f4da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73b7891ed68d55b25011fbcdb6d5f4da">§ </a></span>corners_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector<<a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>> cv::detail::PairwiseSeamFinder::corners_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a681e67ac1e0b06c5b4d7ef15fc5eb0b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a681e67ac1e0b06c5b4d7ef15fc5eb0b0">§ </a></span>images_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector<<a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a>> cv::detail::PairwiseSeamFinder::images_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3db4bcfb73c963e7eeb92ecffdda5db6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3db4bcfb73c963e7eeb92ecffdda5db6">§ </a></span>masks_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector<<a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a>> cv::detail::PairwiseSeamFinder::masks_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a5abe230ead5af1b35d94cb3f2b867787"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5abe230ead5af1b35d94cb3f2b867787">§ </a></span>sizes_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::vector<<a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a>> cv::detail::PairwiseSeamFinder::sizes_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>stitching/include/opencv2/stitching/detail/<a class="el" href="../../d1/d74/seam__finders_8hpp.html">seam_finders.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Dec 23 2016 13:00:29 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
<script type="text/javascript">
//<![CDATA[
function addButton(label, buttonName) {
var b = document.createElement("BUTTON");
b.innerHTML = buttonName;
b.setAttribute('class', 'toggleable_button label_' + label);
b.onclick = function() {
$('.toggleable_button').css({
border: '2px outset',
'border-radius': '4px'
});
$('.toggleable_button.label_' + label).css({
border: '2px inset',
'border-radius': '4px'
});
$('.toggleable_div').css('display', 'none');
$('.toggleable_div.label_' + label).css('display', 'block');
};
b.style.border = '2px outset';
b.style.borderRadius = '4px';
b.style.margin = '2px';
return b;
}
function buttonsToAdd($elements, $heading, $type) {
if ($elements.length === 0) {
$elements = $("" + $type + ":contains(" + $heading.html() + ")").parent().prev("div.newInnerHTML");
}
var arr = jQuery.makeArray($elements);
var seen = {};
arr.forEach(function(e) {
var txt = e.innerHTML;
if (!seen[txt]) {
$button = addButton(e.title, txt);
if (Object.keys(seen).length == 0) {
var linebreak1 = document.createElement("br");
var linebreak2 = document.createElement("br");
($heading).append(linebreak1);
($heading).append(linebreak2);
}
($heading).append($button);
seen[txt] = true;
}
});
return;
}
$("h2").each(function() {
$heading = $(this);
$smallerHeadings = $(this).nextUntil("h2").filter("h3").add($(this).nextUntil("h2").find("h3"));
if ($smallerHeadings.length) {
$smallerHeadings.each(function() {
var $elements = $(this).nextUntil("h3").filter("div.newInnerHTML");
buttonsToAdd($elements, $(this), "h3");
});
} else {
var $elements = $(this).nextUntil("h2").filter("div.newInnerHTML");
buttonsToAdd($elements, $heading, "h2");
}
});
$(".toggleable_button").first().click();
var $clickDefault = $('.toggleable_button.label_python').first();
if ($clickDefault.length) {
$clickDefault.click();
}
$clickDefault = $('.toggleable_button.label_cpp').first();
if ($clickDefault.length) {
$clickDefault.click();
}
//]]>
</script>
</body>
</html>
|
{
"content_hash": "0233c3980ef0c26a1390a7209a42103b",
"timestamp": "",
"source": "github",
"line_count": 484,
"max_line_length": 665,
"avg_line_length": 48.12190082644628,
"alnum_prop": 0.6392168648834313,
"repo_name": "lucasbrsa/OpenCV-3.2",
"id": "74426d1a46ca8dfc05c0c770aebdb5a3c2035a98",
"size": "23291",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/3.2/dd/d00/classcv_1_1detail_1_1PairwiseSeamFinder.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "320592"
},
{
"name": "C#",
"bytes": "12756"
},
{
"name": "C++",
"bytes": "499322"
},
{
"name": "CMake",
"bytes": "244871"
},
{
"name": "Makefile",
"bytes": "344335"
},
{
"name": "Python",
"bytes": "7735"
},
{
"name": "Visual Basic",
"bytes": "13139"
}
]
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60-ea) on Wed Jan 04 17:08:11 EST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RemoteAcceptorConsumer (Public javadocs 2017.1.1 API)</title>
<meta name="date" content="2017-01-04">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RemoteAcceptorConsumer (Public javadocs 2017.1.1 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/RemoteAcceptorConsumer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2017.1.1</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" target="_top">Frames</a></li>
<li><a href="RemoteAcceptorConsumer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.wildfly.swarm.config.messaging.activemq.server</div>
<h2 title="Interface RemoteAcceptorConsumer" class="title">Interface RemoteAcceptorConsumer<T extends <a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">RemoteAcceptor</a><T>></h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Functional Interface:</dt>
<dd>This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.</dd>
</dl>
<hr>
<br>
<pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html?is-external=true" title="class or interface in java.lang">@FunctionalInterface</a>
public interface <span class="typeNameLabel">RemoteAcceptorConsumer<T extends <a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">RemoteAcceptor</a><T>></span></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html#accept-T-">accept</a></span>(<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="type parameter in RemoteAcceptorConsumer">T</a> value)</code>
<div class="block">Configure a pre-constructed instance of RemoteAcceptor resource</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>default <a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">RemoteAcceptorConsumer</a><<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="type parameter in RemoteAcceptorConsumer">T</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html#andThen-org.wildfly.swarm.config.messaging.activemq.server.RemoteAcceptorConsumer-">andThen</a></span>(<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">RemoteAcceptorConsumer</a><<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="type parameter in RemoteAcceptorConsumer">T</a>> after)</code> </td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="accept-org.wildfly.swarm.config.messaging.activemq.server.RemoteAcceptor-">
<!-- -->
</a><a name="accept-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>accept</h4>
<pre>void accept(<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="type parameter in RemoteAcceptorConsumer">T</a> value)</pre>
<div class="block">Configure a pre-constructed instance of RemoteAcceptor resource</div>
</li>
</ul>
<a name="andThen-org.wildfly.swarm.config.messaging.activemq.server.RemoteAcceptorConsumer-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>andThen</h4>
<pre>default <a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">RemoteAcceptorConsumer</a><<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="type parameter in RemoteAcceptorConsumer">T</a>> andThen(<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server">RemoteAcceptorConsumer</a><<a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" title="type parameter in RemoteAcceptorConsumer">T</a>> after)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/RemoteAcceptorConsumer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2017.1.1</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorSupplier.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html" target="_top">Frames</a></li>
<li><a href="RemoteAcceptorConsumer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2017 <a href="http://www.jboss.org">JBoss by Red Hat</a>. All rights reserved.</small></p>
</body>
</html>
|
{
"content_hash": "a875b66f7de6c07d284ab8f736546e24",
"timestamp": "",
"source": "github",
"line_count": 248,
"max_line_length": 810,
"avg_line_length": 49.056451612903224,
"alnum_prop": 0.6613513069209271,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "08962686c8fd3f3b32eafefe599f9f16700c0151",
"size": "12166",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "2017.1.1/apidocs/org/wildfly/swarm/config/messaging/activemq/server/RemoteAcceptorConsumer.html",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
loadWebAnimationsBuildTarget('web-animations');
|
{
"content_hash": "c94644e902560c284227385b32c53005",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 47,
"avg_line_length": 48,
"alnum_prop": 0.8541666666666666,
"repo_name": "jarrodek/feed-reader",
"id": "d0d3edbfa9f70ddb55e32828fe071e4adee23c1a",
"size": "49",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "paper/lib_new/web-animations-next/test/runner-web-animations.html.0.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "299"
},
{
"name": "CSS",
"bytes": "178053"
},
{
"name": "Dart",
"bytes": "92800"
},
{
"name": "Groff",
"bytes": "2029"
},
{
"name": "HTML",
"bytes": "2203779"
},
{
"name": "JavaScript",
"bytes": "4188765"
},
{
"name": "Makefile",
"bytes": "161"
},
{
"name": "Python",
"bytes": "1754"
},
{
"name": "Shell",
"bytes": "9666"
}
]
}
|
from boxes import handlerBase
class PathHandler(handlerBase.BaseHandler):
def __init__(self):
super().__init__()
def handle(self):
#check number of arguments
if self.argumentNum != 1:
print('PATH command should be followed with only 1 argument')
return
#check type of argument
if self.arguments[0]['type'] != 'box':
print('PATH command can only be followed with box name')
return
#print it out
print(self.getFullBoxPath(self.arguments[0]['box'],withSlash=True))
|
{
"content_hash": "e7592302bb5db68209d483d1dacd0245",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 69,
"avg_line_length": 27.38888888888889,
"alnum_prop": 0.7038539553752535,
"repo_name": "Zumium/boxes",
"id": "12584e0efb3cf75deaa8d2f9b6cd392e75467a21",
"size": "1318",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "boxes/handlers/path.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "46704"
}
]
}
|
package hudson.slaves;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import hudson.Proc;
import hudson.Util;
import hudson.model.Computer;
import hudson.model.Node;
import hudson.model.Node.Mode;
import hudson.model.Slave;
import hudson.remoting.Which;
import hudson.util.ArgumentListBuilder;
import java.awt.*;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import jenkins.security.SlaveToMasterCallable;
import jenkins.slaves.RemotingWorkDirSettings;
import static org.hamcrest.Matchers.instanceOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Assume;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestExtension;
import org.jvnet.hudson.test.recipes.LocalData;
/**
* Tests of {@link JNLPLauncher}.
* @author Kohsuke Kawaguchi
*/
public class JNLPLauncherTest {
@Rule public JenkinsRule j = new JenkinsRule();
@Rule public TemporaryFolder tmpDir = new TemporaryFolder();
/**
* Starts a JNLP agent and makes sure it successfully connects to Jenkins.
*/
@Test
public void testLaunch() throws Exception {
Assume.assumeFalse("Skipping JNLPLauncherTest.testLaunch because we are running headless", GraphicsEnvironment.isHeadless());
Computer c = addTestSlave(false);
launchJnlpAndVerify(c, buildJnlpArgs(c));
}
/**
* Starts a JNLP agent and makes sure it successfully connects to Jenkins.
*/
@Test
@Issue("JENKINS-39370")
public void testLaunchWithWorkDir() throws Exception {
Assume.assumeFalse("Skipping JNLPLauncherTest.testLaunch because we are running headless", GraphicsEnvironment.isHeadless());
File workDir = tmpDir.newFolder("workDir");
Computer c = addTestSlave(false);
launchJnlpAndVerify(c, buildJnlpArgs(c).add("-workDir", workDir.getAbsolutePath()));
assertTrue("Remoting work dir should have been created", new File(workDir, "remoting").exists());
}
/**
* Tests the '-headless' option.
* (Although this test doesn't really assert that the agent really is running in a headless mdoe.)
*/
@Test
public void testHeadlessLaunch() throws Exception {
Computer c = addTestSlave(false);
launchJnlpAndVerify(c, buildJnlpArgs(c).add("-arg","-headless"));
// make sure that onOffline gets called just the right number of times
assertEquals(1, ComputerListener.all().get(ListenerImpl.class).offlined);
}
@Test
@Issue("JENKINS-44112")
public void testHeadlessLaunchWithWorkDir() throws Exception {
Assume.assumeFalse("Skipping JNLPLauncherTest.testLaunch because we are running headless", GraphicsEnvironment.isHeadless());
Computer c = addTestSlave(true);
launchJnlpAndVerify(c, buildJnlpArgs(c).add("-arg","-headless"));
assertEquals(1, ComputerListener.all().get(ListenerImpl.class).offlined);
}
@Test
@Issue("JENKINS-39370")
public void testHeadlessLaunchWithCustomWorkDir() throws Exception {
Assume.assumeFalse("Skipping JNLPLauncherTest.testLaunch because we are running headless", GraphicsEnvironment.isHeadless());
File workDir = tmpDir.newFolder("workDir");
Computer c = addTestSlave(false);
launchJnlpAndVerify(c, buildJnlpArgs(c).add("-arg","-headless", "-workDir", workDir.getAbsolutePath()));
assertEquals(1, ComputerListener.all().get(ListenerImpl.class).offlined);
}
@Test
@LocalData
@Issue("JENKINS-44112")
public void testNoWorkDirMigration() throws Exception {
Computer computer = j.jenkins.getComputer("Foo");
assertThat(computer, instanceOf(SlaveComputer.class));
SlaveComputer c = (SlaveComputer)computer;
ComputerLauncher launcher = c.getLauncher();
assertThat(launcher, instanceOf(JNLPLauncher.class));
JNLPLauncher jnlpLauncher = (JNLPLauncher)launcher;
assertNotNull("Work Dir Settings should be defined",
jnlpLauncher.getWorkDirSettings());
assertTrue("Work directory should be disabled for the migrated agent",
jnlpLauncher.getWorkDirSettings().isDisabled());
}
@Test
@Issue("JENKINS-44112")
public void testDefaults() throws Exception {
String errorMsg = "Work directory should be disabled for agents created via old API";
assertTrue(errorMsg, new JNLPLauncher().getWorkDirSettings().isDisabled());
assertTrue(errorMsg, new JNLPLauncher(null, null).getWorkDirSettings().isDisabled());
}
@Test
@Issue("JENKINS-47056")
public void testDelegatingComputerLauncher() throws Exception {
Assume.assumeFalse("Skipping JNLPLauncherTest.testDelegatingComputerLauncher because we are running headless", GraphicsEnvironment.isHeadless());
File workDir = tmpDir.newFolder("workDir");
ComputerLauncher launcher = new JNLPLauncher("", "", new RemotingWorkDirSettings(false, workDir.getAbsolutePath(), "internalDir", false));
launcher = new DelegatingComputerLauncherImpl(launcher);
Computer c = addTestSlave(launcher);
launchJnlpAndVerify(c, buildJnlpArgs(c));
assertTrue("Remoting work dir should have been created", new File(workDir, "internalDir").exists());
}
@Test
@Issue("JENKINS-47056")
public void testComputerLauncherFilter() throws Exception {
Assume.assumeFalse("Skipping JNLPLauncherTest.testComputerLauncherFilter because we are running headless", GraphicsEnvironment.isHeadless());
File workDir = tmpDir.newFolder("workDir");
ComputerLauncher launcher = new JNLPLauncher("", "", new RemotingWorkDirSettings(false, workDir.getAbsolutePath(), "internalDir", false));
launcher = new ComputerLauncherFilterImpl(launcher);
Computer c = addTestSlave(launcher);
launchJnlpAndVerify(c, buildJnlpArgs(c));
assertTrue("Remoting work dir should have been created", new File(workDir, "internalDir").exists());
}
@TestExtension("testHeadlessLaunch")
public static class ListenerImpl extends ComputerListener {
int offlined = 0;
@Override
public void onOffline(Computer c) {
offlined++;
assertTrue(c.isOffline());
}
}
private static class DelegatingComputerLauncherImpl extends DelegatingComputerLauncher {
public DelegatingComputerLauncherImpl(ComputerLauncher launcher) {
super(launcher);
}
}
private static class ComputerLauncherFilterImpl extends ComputerLauncherFilter {
public ComputerLauncherFilterImpl(ComputerLauncher launcher) {
super(launcher);
}
}
private ArgumentListBuilder buildJnlpArgs(Computer c) throws Exception {
ArgumentListBuilder args = new ArgumentListBuilder();
args.add(new File(new File(System.getProperty("java.home")),"bin/java").getPath(),"-jar");
args.add(Which.jarFile(netx.jnlp.runtime.JNLPRuntime.class).getAbsolutePath());
args.add("-headless","-basedir");
args.add(j.createTmpDir());
args.add("-nosecurity","-jnlp", j.getURL() + "computer/"+c.getName()+"/slave-agent.jnlp");
if (c instanceof SlaveComputer) {
SlaveComputer sc = (SlaveComputer)c;
ComputerLauncher launcher = sc.getLauncher();
if (launcher instanceof JNLPLauncher) {
args.add(((JNLPLauncher)launcher).getWorkDirSettings().toCommandLineArgs(sc));
}
}
return args;
}
/**
* Launches the JNLP slave agent and asserts its basic operations.
*/
private void launchJnlpAndVerify(Computer c, ArgumentListBuilder args) throws Exception {
Proc proc = j.createLocalLauncher().launch().cmds(args).stdout(System.out).pwd(".").start();
try {
// verify that the connection is established, up to 20 secs
for( int i=0; i<200; i++ ) {
Thread.sleep(100);
if(!c.isOffline())
break;
}
if (c.isOffline()) {
System.out.println(c.getLog());
fail("Slave failed to go online");
}
// run some trivial thing
System.err.println("Calling task...");
assertEquals("done", c.getChannel().callAsync(new NoopTask()).get(5 * 60, TimeUnit.SECONDS));
System.err.println("...done.");
} finally {
proc.kill();
}
Thread.sleep(500);
assertTrue(c.isOffline());
}
/**
* Adds a JNLP {@link Slave} to the system and returns it.
*/
private Computer addTestSlave(boolean enableWorkDir) throws Exception {
return addTestSlave(new JNLPLauncher(enableWorkDir));
}
/**
* Adds a JNLP {@link Slave} to the system and returns it.
*/
private Computer addTestSlave(ComputerLauncher launcher) throws Exception {
List<Node> slaves = new ArrayList<>(j.jenkins.getNodes());
File dir = Util.createTempDir();
slaves.add(new DumbSlave("test","dummy",dir.getAbsolutePath(),"1", Mode.NORMAL, "",
launcher, RetentionStrategy.INSTANCE, new ArrayList<>()));
j.jenkins.setNodes(slaves);
Computer c = j.jenkins.getComputer("test");
assertNotNull(c);
return c;
}
private static class NoopTask extends SlaveToMasterCallable<String,RuntimeException> {
public String call() {
return "done";
}
private static final long serialVersionUID = 1L;
}
@Test
public void testConfigRoundtrip() throws Exception {
DumbSlave s = j.createSlave();
JNLPLauncher original = new JNLPLauncher("a", "b");
s.setLauncher(original);
HtmlPage p = j.createWebClient().getPage(s, "configure");
j.submit(p.getFormByName("config"));
j.assertEqualBeans(original,s.getLauncher(),"tunnel,vmargs");
}
}
|
{
"content_hash": "3aa855f805d4f05f8cf9c87423beb725",
"timestamp": "",
"source": "github",
"line_count": 263,
"max_line_length": 153,
"avg_line_length": 39.59315589353612,
"alnum_prop": 0.6707000864304236,
"repo_name": "ErikVerheul/jenkins",
"id": "44e7b22f13157c6665e6786ee894690427cc52ba",
"size": "11590",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/src/test/java/hudson/slaves/JNLPLauncherTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "2091"
},
{
"name": "CSS",
"bytes": "291895"
},
{
"name": "GAP",
"bytes": "6289"
},
{
"name": "Groovy",
"bytes": "60041"
},
{
"name": "HTML",
"bytes": "1035818"
},
{
"name": "Java",
"bytes": "9361474"
},
{
"name": "JavaScript",
"bytes": "349559"
},
{
"name": "Perl",
"bytes": "14402"
},
{
"name": "Ruby",
"bytes": "19375"
},
{
"name": "Shell",
"bytes": "8998"
}
]
}
|
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("ConsolR.Web")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("AppHarbor")]
[assembly: AssemblyProduct("ConsolR.Web")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[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("2e034952-d46a-4e0a-bcf2-51558a0cc03c")]
// 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 Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
|
{
"content_hash": "7b4fb30df3b7e51c490a4197ac3366b2",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 84,
"avg_line_length": 38.97142857142857,
"alnum_prop": 0.748533724340176,
"repo_name": "appharbor/ConsolR",
"id": "1246db7f250e10a8a45a94ad2f27719fd2669179",
"size": "1367",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Web/Properties/AssemblyInfo.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "102"
},
{
"name": "C#",
"bytes": "24094"
},
{
"name": "JavaScript",
"bytes": "8129"
}
]
}
|
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import kubernetes.client
from kubernetes.client.rest import ApiException
from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig
class TestExtensionsV1beta1RollbackConfig(unittest.TestCase):
""" ExtensionsV1beta1RollbackConfig unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testExtensionsV1beta1RollbackConfig(self):
"""
Test ExtensionsV1beta1RollbackConfig
"""
# FIXME: construct object with mandatory attributes with example values
#model = kubernetes.client.models.extensions_v1beta1_rollback_config.ExtensionsV1beta1RollbackConfig()
pass
if __name__ == '__main__':
unittest.main()
|
{
"content_hash": "89132607da36e27a7abd81a56ad5a6f7",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 110,
"avg_line_length": 25.38095238095238,
"alnum_prop": 0.726078799249531,
"repo_name": "mbohlool/client-python",
"id": "d26e9b84e3d4b7d74ef4ca35ca120eb3769d88b8",
"size": "1083",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "kubernetes/test/test_extensions_v1beta1_rollback_config.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Python",
"bytes": "8417639"
},
{
"name": "Shell",
"bytes": "16830"
}
]
}
|
namespace Wex
{
DeviceContext::DeviceContext(HDC dc)
: dc(dc)
{
}
DeviceContext::operator HDC() const
{
return dc;
}
HGDIOBJ DeviceContext::Select(HGDIOBJ object)
{
AssertValid();
return ::SelectObject(dc, object);
}
void DeviceContext::FillRect(const RECT& rect, HBRUSH brush)
{
AssertValid();
auto result = ::FillRect(dc, &rect, brush);
CheckLastWindowsError(!result, "FillRect");
}
void DeviceContext::FillSolidRect(const RECT& rect, COLORREF color)
{
AssertValid();
auto oldColor = SetBackColor(color);
auto result = ::ExtTextOut(
dc,
0,
0,
ETO_OPAQUE,
&rect,
nullptr,
0,
nullptr);
CheckLastWindowsError(!result, "ExtTextOut");
SetBackColor(oldColor);
}
Rect DeviceContext::MeasureString(const std::string& text, const RECT& rect)
{
AssertValid();
auto boundingRect = rect;
::DrawText(
dc,
text.c_str(),
text.size(),
&boundingRect,
DT_SINGLELINE|DT_NOPREFIX|DT_LEFT|DT_TOP|DT_CALCRECT);
return boundingRect;
}
Size DeviceContext::GetTextSize()
{
AssertValid();
TEXTMETRIC metrics = {0};
auto result = ::GetTextMetrics(dc, &metrics);
CheckLastWindowsError(!result, "GetTextMetrics");
return { metrics.tmAveCharWidth, metrics.tmHeight };
}
void DeviceContext::DrawText(const std::string& text, const RECT& rect)
{
AssertValid();
auto boundingRect = rect;
::DrawText(
dc,
text.c_str(),
text.size(),
&boundingRect,
DT_SINGLELINE|DT_NOPREFIX|DT_LEFT|DT_TOP);
}
COLORREF DeviceContext::SetBackColor(COLORREF color)
{
AssertValid();
auto oldColor = ::SetBkColor(dc, color);
CheckLastWindowsError(oldColor == CLR_INVALID, "SetBkColor");
return oldColor;
}
COLORREF DeviceContext::GetBackColor()
{
AssertValid();
auto result = ::GetBkColor(dc);
CheckLastWindowsError(result == CLR_INVALID, "GetBkColor");
return result;
}
COLORREF DeviceContext::SetTextColor(COLORREF color)
{
AssertValid();
auto oldColor = ::SetTextColor(dc, color);
CheckLastWindowsError(oldColor == CLR_INVALID, "SetTextColor");
return oldColor;
}
COLORREF DeviceContext::GetTextColor()
{
AssertValid();
auto result = ::GetTextColor(dc);
CheckLastWindowsError(result == CLR_INVALID, "GetTextColor");
return result;
}
Point DeviceContext::MoveTo(const POINT& point)
{
AssertValid();
Point previousPosition;
auto result = ::MoveToEx(dc, point.x, point.y, &previousPosition);
CheckLastWindowsError(!result, "MoveToEx");
return previousPosition;
}
void DeviceContext::LineTo(const POINT& point)
{
AssertValid();
auto result = ::LineTo(dc, point.x, point.y);
CheckLastWindowsError(!result, "LineTo");
}
Point DeviceContext::DrawLine(const std::vector<POINT>& points)
{
CheckError(points.size() < 2, 0, "Line must contain at least 2 points.");
auto previousPosition = MoveTo(points[0]);
for (auto index = 1ul; index < points.size(); ++index)
LineTo(points[index]);
return previousPosition;
}
void DeviceContext::AssertValid() const
{
if (dc == nullptr)
ThrowException("dc", 0, "Null device context.");
}
}
|
{
"content_hash": "c9639e82150fbf13977b73a35c5c708e",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 77,
"avg_line_length": 22.107142857142858,
"alnum_prop": 0.6920840064620355,
"repo_name": "jmfb/wex",
"id": "fff76275ed6cb0b602f537ec924fe7f6b134c3f5",
"size": "3181",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DeviceContext.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "829"
},
{
"name": "C++",
"bytes": "171175"
}
]
}
|
<?php
/**
* ====================================================================
*
* Seezoo-Framework bootstrap file
*
* Define Path constants and load Core files.
*
* @author Yoshiaki Sugimoto <neo.yoshiaki.sugimoto@gmail.com>
*
* ====================================================================
*/
// System always handles the UTF-8 encoding.
ini_set('default_charset', 'UTF-8');
mb_internal_encoding('UTF-8');
// Framework version
define('SZ_VERSION', '0.6');
// System path constants difinition
define('SZ_EXEC', TRUE);
define('DISPATCHER', basename($_SERVER['SCRIPT_FILENAME']));
define('ROOTPATH', realpath(dirname($_SERVER['SCRIPT_FILENAME'])) . '/');
define('SZPATH', dirname(__FILE__) . '/');
// Autoloader register
require_once(SZPATH . 'core/system/Autoloader.php');
Autoloader::init();
// Did you request from CLI?
if ( PHP_SAPI === 'cli' )
{
// detect application
$app = SZ_BASE_APPLICATION_NAME;
$prefix = SZ_PREFIX_BASERE;
$argInput = array();
foreach ( $_SERVER['argv'] as $key => $argv )
{
if ( preg_match('/^\-\-app=(.+)$/u', trim($argv), $match) )
{
$app = $match[1];
continue;
}
else if ( preg_match('/^\-\-prefix=(.+)$/u', trim($argv), $match) )
{
$prefix = $match[1];
continue;
}
$argInput[] = $argv;
}
$application = Application::init($app, $prefix);
// Command line tools ignittion
$dog = Seezoo::$Importer->classes('Console');
$dog->executeCommandLine($argInput);
}
|
{
"content_hash": "160762749a80c66c92284ac7b3ab163c",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 75,
"avg_line_length": 24.566666666666666,
"alnum_prop": 0.5597014925373134,
"repo_name": "ysugimoto/perooon",
"id": "905311d77a3c400d874bf63a2ee5afc43abafca3",
"size": "1474",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "seezoo.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "1553"
},
{
"name": "PHP",
"bytes": "789221"
},
{
"name": "Scala",
"bytes": "2070"
}
]
}
|
package org.matrix.androidsdk.rest.api;
import org.matrix.androidsdk.rest.model.User;
import retrofit.Callback;
import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http.PUT;
import retrofit.http.Path;
/**
* The profile REST API.
*/
public interface ProfileApi {
/**
* Update a user's display name.
* @param userId the user id
* @param user the user object containing the new display name
* @param callback the asynchronous callback to call when finished
*/
@PUT("/profile/{userId}/displayname")
public void displayname(@Path("userId") String userId, @Body User user, Callback<Void> callback);
/**
* Get a user's display name.
* @param userId the user id
* @param callback the asynchronous callback called with the response
*/
@GET("/profile/{userId}/displayname")
public void displayname(@Path("userId") String userId, Callback<User> callback);
/**
* Update a user's avatar URL.
* @param userId the user id
* @param user the user object containing the new avatar url
* @param callback the asynchronous callback to call when finished
*/
@PUT("/profile/{userId}/avatar_url")
public void avatarUrl(@Path("userId") String userId, @Body User user, Callback<Void> callback);
/**
* Get a user's avatar URL.
* @param userId the user id
* @param callback the asynchronous callback called with the response
*/
@GET("/profile/{userId}/avatar_url")
public void avatarUrl(@Path("userId") String userId, Callback<User> callback);
}
|
{
"content_hash": "26ae75a6e9d9a4bcdf2f267e8d497443",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 101,
"avg_line_length": 31.64,
"alnum_prop": 0.6807838179519595,
"repo_name": "Nehasing/Nehachat",
"id": "061060fa78a493c265c813c6c40b351eb919e17d",
"size": "2179",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "matrix-sdk/src/main/java/org/matrix/androidsdk/rest/api/ProfileApi.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "908"
},
{
"name": "Java",
"bytes": "903720"
},
{
"name": "JavaScript",
"bytes": "38578"
},
{
"name": "Shell",
"bytes": "95"
}
]
}
|
const AllPlayerPrompt = require('./allplayerprompt.js');
const GameActions = require('../GameActions/GameActions');
const { EventNames } = require('../Constants');
class HonorBidPrompt extends AllPlayerPrompt {
constructor(game, menuTitle, costHandler, prohibitedBids = {}, duel = null) {
super(game);
this.menuTitle = menuTitle || 'Choose a bid';
this.costHandler = costHandler;
this.prohibitedBids = prohibitedBids;
this.duel = duel;
this.bid = {};
}
activeCondition(player) {
return !this.bid[player.uuid];
}
completionCondition(player) {
return this.bid[player.uuid] > 0;
}
continue() {
let completed = super.continue();
if(completed) {
this.game.raiseEvent(EventNames.OnHonorDialsRevealed, { duel: this.duel }, () => {
for(const player of this.game.getPlayers()) {
player.honorBidModifier = 0;
this.game.actions.setHonorDial({ value: this.bid[player.uuid]}).resolve(player, this.game.getFrameworkContext());
}
});
if(this.costHandler) {
this.game.queueSimpleStep(() => this.costHandler(this));
} else {
this.game.queueSimpleStep(() => this.transferHonorAfterBid());
}
}
return completed;
}
transferHonorAfterBid(context = this.game.getFrameworkContext()) {
let firstPlayer = this.game.getFirstPlayer();
if(!firstPlayer.opponent) {
return;
}
let difference = firstPlayer.honorBid - firstPlayer.opponent.honorBid;
if(difference > 0) {
this.game.addMessage('{0} gives {1} {2} honor', firstPlayer, firstPlayer.opponent, difference);
GameActions.takeHonor({ amount: difference, afterBid: true }).resolve(firstPlayer, context);
} else if(difference < 0) {
this.game.addMessage('{0} gives {1} {2} honor', firstPlayer.opponent, firstPlayer, -difference);
GameActions.takeHonor({ amount: -difference, afterBid: true }).resolve(firstPlayer.opponent, context);
}
}
activePrompt(player) {
let prohibitedBids = this.prohibitedBids[player.uuid] || [];
let buttons = ['1', '2', '3', '4', '5'].filter(num => !prohibitedBids.includes(num));
return {
promptTitle: 'Honor Bid',
menuTitle: this.menuTitle,
buttons: buttons.map(num => ({ text: num, arg: num }))
};
}
waitingPrompt() {
return { menuTitle: 'Waiting for opponent to choose a bid.' };
}
menuCommand(player, bid) {
this.game.addMessage('{0} has chosen a bid.', player);
this.bid[player.uuid] = parseInt(bid);
return true;
}
}
module.exports = HonorBidPrompt;
|
{
"content_hash": "ebfe80b102064c29fe07e8c889158435",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 133,
"avg_line_length": 34.86585365853659,
"alnum_prop": 0.5879678209164043,
"repo_name": "gryffon/ringteki",
"id": "c3d1e3e60300d53f35700282911ee102eb15068c",
"size": "2859",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "server/game/gamesteps/honorbidprompt.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "65156"
},
{
"name": "HTML",
"bytes": "1193"
},
{
"name": "JavaScript",
"bytes": "5557234"
},
{
"name": "TypeScript",
"bytes": "267428"
}
]
}
|
<?php
$matches = array();
$error = null;
$chan = $_GET['chan'];
/**
* @param $target {String}
* @param $stringOrList {Array|String}
* @return String
*/
function insert($target, $stringOrList)
{
if ($target == "")
return "Err:Empty input string";
if (is_array($stringOrList))
{
foreach ($stringOrList as $key => $value)
{
$rpl = "{" . $key . "}";
$target = str_replace($rpl, $value, $target);
}
}
else
{
$target = str_replace("{0}", $stringOrList, $target);
}
if ($target == "")
return "Err:Empty output string";
else
return $target;
}
$ignore_case = true;
if (isset($_GET['search']) && !empty($_GET['search']))
{
$search_string = $_GET['search'];
if (isset($_GET['case']))
$ignore_case = (($_GET['case'] == 0) ? false : true);
else
$ignore_case = false;
$test = false;
$file_types = array(
"log"
);
$file_counter = 0;
foreach (new DirectoryIterator("logs/#".$chan) as $file)
{
if (in_array($file->getExtension(), $file_types) && $file->getBasename() != "cron.log" && (!isset($_GET['file']) || $_GET['file'] == $file))
{
$file_contents = file_get_contents($file->getPathname());
$file_contents = explode("\n", $file_contents);
foreach ($file_contents as $number => $line)
{
$number += 1; //Array starts at 0 but lines start at 1
$test_line = $line;
$test_string = $search_string;
if ($ignore_case)
{
$test_line = strtolower($line);
$test_string = strtolower($search_string);
}
$re = '/(.*)('.htmlspecialchars($test_string).')(.*)/'.(($ignore_case) ? "i" : "");
if (strpos($test_line, $test_string) !== false)
{
if (!is_array($matches[$file->getBasename()]["lines"]))
$matches[$file->getBasename()]["lines"] = array();
preg_match_all($re, htmlspecialchars($line), $regex_matches);
$match = $regex_matches[1][0]."<span class='match'>".$regex_matches[2][0]."</span>".$regex_matches[3][0];
array_push($matches[$file->getBasename()]["lines"], array("line" => $match, "number" => $number));
$matches[$file->getBasename()]["file"] = $file->getFilename();
}
}
}
}
ksort($matches);
$matches = array_reverse($matches);
}
else
{
$error = "ERROR: Search field left empty";
}
?>
<style>
a { color: rgb(140, 140, 250); }::-webkit-scrollbar-track-piece { background-color: rgba(255, 255, 255, 0.2) !important; }::-webkit-scrollbar-track { background-color: rgba(255, 255, 255, 0.3) !important; }::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.5) !important; }embed[type="application/pdf"] { filter: invert(90%); }
html { color: rgb(191, 191, 191); background: rgb(31, 31, 31) !important; }body { background-color: rgb(31, 31, 31); background-image: none !important; }input, select, textarea, button { color: rgb(191, 191, 191); background-color: rgb(31, 31, 31); }font { color: rgb(191, 191, 191); }
html { filter: contrast(100%) brightness(100%) saturate(100%); }.NIGHTEYE_Filter { width: 100%; height: 100%; position: fixed; left: 0px; top: 0px; pointer-events: none; z-index: 2147483647; }.NIGHTEYE_YellowFilter { background: rgba(255, 255, 0, 0.15); opacity: 0; }.NIGHTEYE_BlueFilter { background: rgba(0, 0, 255, 0.15); opacity: 0; }.NIGHTEYE_DimFilter { background: rgba(0, 0, 0, 0.5); opacity: 0; }.NIGHTEYE_TransformZ { transform: translateZ(0px); }
.result_display { border: 1px solid rgb(45, 92, 180); padding: 10px; margin: 5px 5px 15px; overflow-wrap: break-word; }.result_display:hover { background-color: rgb(13, 53, 53); }.result_display_title { font-weight: bold; font-size: 1em; margin-bottom: 10px; border-bottom: 1px solid rgb(45, 92, 180); }.line_number { display: inline-block; width: 45px; }.match { color: rgb(230, 153, 153); font-weight: bold; }label { cursor: pointer; }
.result_display
{
border : 1px solid cornflowerblue;
padding : 10px;
margin : 5px;
margin-bottom : 15px;
word-wrap: break-word;
}
.result_display:hover
{
background-color: rgb(41, 41, 41);
}
.result_display_title
{
font-weight : bold;
font-size : 1em;
margin-bottom : 10px;
border-bottom: 1px solid cornflowerblue;
}
.line_number
{
display: inline-block;
width: 45px;
}
.match
{
color : red;
font-weight : bold;
}
label
{
cursor: pointer;
}
</style>
<div>
<span><button type="button" onclick="history.back()">Back</button></span>
<form action="" method="get">
<div>
<label><input type="search" placeholder="Search" name="search" value="<?= ((isset($_GET['search'])) ? $_GET['search'] : "") ?>"/></label>
<label><input type="hidden" name="chan" value="<?= $chan ?>"/>
<button type="submit">Search</button>
</div>
<div>
<label><input type="checkbox" name="case" value="1" <?=((isset($ignore_case) && $ignore_case) ? "checked" : "")?>/> Ignore Case</label>
</div>
</form>
</div>
<?php
$template = "
<div class=\"result_display\">
<div class='result_display_title'><a href='https://irclogs.pc-logix.com/view?chan={chan}&log={file_name}'> > </a>{file_name}</div>
{lines}
</div>
</div>";
$template_line = "
<div>
<div class='line_number'><a href='https://irclogs.pc-logix.com/view?chan={chan}&log={filename}#L{line_number}'>L{line_number}</a></div>
<span>{line}</span>
</div>";
$template_line_hidden = "
<div class='{filename}' style='display: none;'>
<div class='line_number'><a href='https://irclogs.pc-logix.com/view?chan={chan}&log={filename}#L{line_number}'>L{line_number}</a></div>
<span>{line}</span>
</div>";
if (count($matches) > 0)
{
foreach ($matches as $match)
{
$lines = "";
$line_counter = 0;
foreach ($match["lines"] as $line)
{
if ($line_counter < 5)
$lines .= insert($template_line, array("line" => $line["line"], "line_number" => $line["number"], "filename" => $match["file"]));
else
$lines .= insert($template_line_hidden, array("line" => $line["line"], "line_number" => $line["number"], "filename" => $match["file"]));;
$line_counter++;
}
if ($line_counter > 5)
$lines .= "<div id='toggle_button_".$match["file"]."' style='cursor: pointer; color: blue; text-decoration: underline;' onclick='toggle_lines_for_file(\"".$match["file"]."\")'><span></span>" . (count($match["lines"]) - 5) . "<span> more...</span></div>";
echo insert($template, array("file_name" => $match["file"], "lines" => $lines, "chan" => $chan));
}
}
elseif ($error)
echo "<div>".$error."</div>";
else
echo "<div>No match found in $file_counter files.</div>";
?>
<div><button type="button" onclick="history.back()">Back</button></div>
<script>
function toggle_lines_for_file(filename)
{
var lines = document.getElementsByClassName(filename);
var display = "none";
if (lines.length > 0 && lines[0].style.display == "none")
display = "";
for (var i = 0; i < lines.length; i++)
{
lines[i].style.display = display;
}
var hider = document.getElementById("toggle_button_"+filename);
if (display == "")
{
hider.children[0].innerHTML = "Hide ";
hider.children[1].innerHTML = "";
}
else
{
hider.children[0].innerHTML = "";
hider.children[1].innerHTML = " more...";
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-66594701-2', 'auto');
ga('send', 'pageview');
</script>
|
{
"content_hash": "089a0766f22527517f22cb57902c25ce",
"timestamp": "",
"source": "github",
"line_count": 224,
"max_line_length": 457,
"avg_line_length": 35.026785714285715,
"alnum_prop": 0.5895997960744328,
"repo_name": "CaitlynMainer/OCLogs",
"id": "a88bbb00c19db1be1bfe174953270b487e71f402",
"size": "7846",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "search.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2973"
},
{
"name": "JavaScript",
"bytes": "16878"
},
{
"name": "PHP",
"bytes": "40163"
}
]
}
|
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Easy.NHibernate.Mapping.Interfaces
{
public interface IModelMappings
{
void AddMappings(string exportingNamespace);
void AddMappings(Assembly exportingAssembly);
void AddMappings(IEnumerable<Assembly> exportingAssemblies);
void AddMappings(Type mappingType);
void AddMappings(IEnumerable<Type> mappingTypes);
void CompileMappings();
}
}
|
{
"content_hash": "f5541d3e0feafb7fb652f05147ee94db",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 68,
"avg_line_length": 25.526315789473685,
"alnum_prop": 0.7278350515463917,
"repo_name": "antosilva/Easy.NHibernate",
"id": "fcddb647b5b6c139a0d3e67dd3c1376d7c8d9cfd",
"size": "487",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Easy.NHibernate/Mapping/Interfaces/IModelMappings.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "59896"
}
]
}
|
import {async, ComponentFixture, TestBed} from "@angular/core/testing";
import {RouterTestingModule} from "@angular/router/testing";
import {AppComponent} from "./app.component";
describe('AppComponent', () => {
let fixture: ComponentFixture<AppComponent>;
let component: AppComponent;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
],
declarations: [
AppComponent
],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AppComponent);
component = fixture.componentInstance;
});
it('should create the app', async(() => {
expect(component).toBeTruthy();
}));
});
|
{
"content_hash": "448a7ccc97cfec05122e85f94a162a26",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 71,
"avg_line_length": 23.866666666666667,
"alnum_prop": 0.6508379888268156,
"repo_name": "kucera-jan-cz/kickshare",
"id": "c3cfc6e41139028c1a509a4ee32e156a7af61070",
"size": "716",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "kickshare-ui/src/app/app.component.spec.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "22611"
},
{
"name": "HTML",
"bytes": "3932884"
},
{
"name": "Java",
"bytes": "285593"
},
{
"name": "Scala",
"bytes": "33245"
},
{
"name": "TypeScript",
"bytes": "141764"
}
]
}
|
A React Native made coupon app
Note: The images, logos, and assets used in this app are owned by GiveMeCoupons!
A small React Native made application that makes calls to a public API to get product information and share coupons.


|
{
"content_hash": "39ece8fa96067f80a3a81bb3fc3b4282",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 116,
"avg_line_length": 38.25,
"alnum_prop": 0.7712418300653595,
"repo_name": "kfbow/CouponApp",
"id": "0e14c03ff04997d92301e7a3aa2fdf60fd2740e9",
"size": "332",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "1249"
},
{
"name": "JavaScript",
"bytes": "19288"
},
{
"name": "Objective-C",
"bytes": "4413"
},
{
"name": "Python",
"bytes": "1651"
}
]
}
|
<HTML><HEAD>
<TITLE>Review for Where the Heart Is (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0198021">Where the Heart Is (2000)</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>WHERE THE HEART IS
A film review by David N. Butterworth
Copyright 2000 David N. Butterworth</PRE>
<PRE>*** (out of ****)</PRE>
<P>If home is where the heart is, then Novalee Nation's home is the rambling,
timber-framed ranch house she builds in Sequoyah, Oklahoma. Yet Novalee
did not spring from such lavish roots.</P>
<P>Pregnant and penniless in her tender teenage years, Novalee and her
fly-by-night boyfriend Willy Jack Pickens do what many pregnant and
penniless Tennessee teenagers do--head out to California with its promise
of a new life and new opportunities. Instead, Novalee's dream is shattered
when Willy Jack abandons her at a wayside Wal-Mart, and it's at that
Wal-Mart, during the last of many illegal sleepovers, that Novalee's baby
is born.</P>
<P>Her "Wal-Mart baby" becomes the toast of Sequoyah and, upon the advice of
the store's resident photographer, Novalee gives her daughter a strong
name: Americus.</P>
<P>This is just the beginning for Novalee, and just the beginning of "Where
the Heart Is," one of those "dramadies" that follows many years--here it's
about five--in the life of its protagonist, watching her grow, be
challenged, fail, fall, love and learn, and all that Big Stuff that
confronts us on our journey through the backroads--and the Wal-Mart parking
lots--of life. And "Where the Heart Is" is indeed a journey full of ups
and down. So many ups and downs, in fact, that the movie soon settles into
a predictable pattern--good stuff happens, bad stuff happens, good stuff
happens, etc. A little variety from the screenwriters would have helped.</P>
<P>That screenplay, by the team of Lowell Ganz and Babaloo Mandel ("Father's
Day," "A League of Their Own," "Splash"), is based on the best-selling
novel by Billie Letts, and is often times guilty of succumbing to forced
humor, predictable outcomes, and unnecessary contrivances (Novalee's
illogical fear of the number five, for example).</P>
<P>But the film is saved time and time again by some deft direction by
newcomer Matt Williams and many exemplary performances, none the least of
which is Natalie Portman as Novalee.</P>
<P>Portman carries the weight of the film on her young shoulders and its a
lot to ask of the 18-year old, who until now has mainly played supporting
roles (in such films as "Beautiful Girls," "Star Wars: Episode I - The
Phantom Menace," and the recent "Anywhere But Here"). "Where the Heart Is"
is her film through and through, and even though the writing is a little
schizophrenic at times, she couldn't ask for a finer supporting cast.
Complementing Portman is a wonderful ensemble of actresses who take
potentially clichéd roles and turn them into characters brimming with life
and vitality.</P>
<P>There's Stockard Channing as Sister Husband who takes Novalee
in--weather-beaten, maternal, alcoholic; Ashley Judd as Novalee's
ever-pregnant friend and confidante, Lexie--Judd grows into her character
well; Joan Cusack as a hard-boiled talent agent who hooks up with Willy
Jack--it's a small part but a good one; and Sally Field as Novalee's
worthless, state-fleeing mother. All four are excellent, and Field is
probably better in her one scene here than in her last ten movies put
together! Yes, there are men in this movie, but they simply cannot compete.</P>
<P>Is "Where the Heart Is" a chick flick? Sure. But it's also a better than
average film that should appeal to just about anyone with a heart beating
in their breast.</P>
<PRE>--
David N. Butterworth
<A HREF="mailto:dnb@dca.net">dnb@dca.net</A></PRE>
<P>Got beef? Visit "La Movie Boeuf"
online at <A HREF="http://members.dca.net/dnb">http://members.dca.net/dnb</A></P>
<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": "f797ba6f51f9726ee23a1ac59573e77a",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 220,
"avg_line_length": 61.6125,
"alnum_prop": 0.7504564820450396,
"repo_name": "xianjunzhengbackup/code",
"id": "3898515ed017ab757764c3b8722f2c0f2936a83f",
"size": "4929",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "data science/machine_learning_for_the_web/chapter_4/movie/24269.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"
}
]
}
|
/**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created: May 9, 2012
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: VHAISWPETERB
Description:
;; +--------------------------------------------------------------------+
;; Property of the US Government.
;; No permission to copy or redistribute this software is given.
;; Use of unreleased versions of this software requires the user
;; to execute a written test agreement with the VistA Imaging
;; Development Office of the Department of Veterans Affairs,
;; telephone (301) 734-0100.
;;
;; The Food and Drug Administration classifies this software as
;; a Class II medical device. As such, it may not be changed
;; in any way. Modifications to this software may result in an
;; adulterated medical device under 21CFR820, the use of which
;; is considered to be a violation of US Federal Statutes.
;; +--------------------------------------------------------------------+
*/
package gov.va.med.imaging.exchange.business;
import java.util.ArrayList;
/**
* Email class that contains the recipients (as an Array), Subject Line, and Message Body.
*
* @author VHAISWPETERB
*
*/
public class EmailMessage {
private ArrayList<String> recipients = null;
private String subjectLine = null;
private String messageBody = null;
private boolean urgent = false;
/**
* Create object using empty constructor
*/
public EmailMessage() {
}
/**
* Constructor
* @param recipients represents group of email addresses to receive this email.
* @param subjectLine represents subject line for the email.
* @param messageBody represents the message body for the email.
*/
public EmailMessage(String[] recipients, String subjectLine, String messageBody){
this.recipients = collectRecipientsInArrayList(recipients);
this.subjectLine = subjectLine;
this.messageBody = messageBody;
this.urgent = false;
}
/**
* Constructor
* @param recipients represents group of email addresses to receive this email.
* @param subjectLine represents subject line for the email.
* @param messageBody represents message body for the email.
* @param urgent Is this an urgent message? Set to True if urgent.
*/
public EmailMessage(String[] recipients, String subjectLine, String messageBody, boolean urgent){
this.recipients = collectRecipientsInArrayList(recipients);
this.subjectLine = subjectLine;
this.messageBody = messageBody;
this.urgent = urgent;
}
/**
* Constructor
*
* @param recipients represents group of email addresses to receive this email.
* @param subjectLine represents subject line for the email.
* @param messageBody represents message body for the email.
* @param urgent Is this an urgent message? Set to True if urgent.
*/
public EmailMessage(ArrayList<String> recipients, String subjectLine, String messageBody, boolean urgent){
this.recipients = recipients;
this.subjectLine = subjectLine;
this.messageBody = messageBody;
this.urgent = urgent;
}
/**
* @return the recipients which is a group of email addresses to receive this email.
*/
public ArrayList<String> getRecipients() {
return this.recipients;
}
/**
* @return the recipients which is a group of email addresses to receive this email.
*/
public String[] getRecipientsAsArray() {
return (String[])this.recipients.toArray();
}
/**
* @param recipients the recipients to set using a String Array.
*/
public void setRecipients(String[] recipients) {
this.recipients = collectRecipientsInArrayList(recipients);
}
/**
* @param recipients the recipients to set using an ArrayList.
*/
public void setRecipients(ArrayList<String> recipients) {
this.recipients = recipients;
}
/**
* @return the subjectLine subject line for the email.
*/
public String getSubjectLine() {
return subjectLine;
}
/**
* @param subjectLine the subject line to set
*/
public void setSubjectLine(String subjectLine) {
this.subjectLine = subjectLine;
}
/**
* @return the messageBody the message body for the email.
*/
public String getMessageBody() {
return messageBody;
}
/**
* @param messageBody the message body to set
*/
public void setMessageBody(String messageBody) {
this.messageBody = messageBody;
}
/**
* @return the urgent
*/
public boolean isUrgent() {
return urgent;
}
/**
* @param urgent the urgent to set
*/
public void setUrgent(boolean urgent) {
this.urgent = urgent;
}
/**
* Converts the String Array into a ArrayList object.
* @param recipients
* @return
*/
private ArrayList<String> collectRecipientsInArrayList(String[] recipients){
ArrayList<String> list = new ArrayList<String>(recipients.length);
for(String s : recipients){
list.add(s);
}
return list;
}
}
|
{
"content_hash": "2494a69d611a144c2160921272b1e539",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 107,
"avg_line_length": 28.422857142857143,
"alnum_prop": 0.6865701648572577,
"repo_name": "VHAINNOVATIONS/Telepathology",
"id": "207be65fcc910722cb6c58e457ba3f70a08d9d48",
"size": "4974",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Source/Java/CoreValueObjects/main/src/java/gov/va/med/imaging/exchange/business/EmailMessage.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "572128"
},
{
"name": "FreeMarker",
"bytes": "32711"
},
{
"name": "Genshi",
"bytes": "605869"
},
{
"name": "HTML",
"bytes": "1939"
},
{
"name": "Java",
"bytes": "13534272"
},
{
"name": "XSLT",
"bytes": "73234"
}
]
}
|
<?php
namespace Symfonian\Indonesia\AdminBundle\Contract;
/**
* @author Muhammad Surya Ihsanuddin <surya.kejawen@gmail.com>
*/
interface ExtractorInterface
{
/**
* @param \Reflector $reflectionClass
*
* @return mixed
*/
public function extract(\Reflector $reflectionClass);
}
|
{
"content_hash": "26f8da097eb2dc894ecece7a0f3e5350",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 62,
"avg_line_length": 17.22222222222222,
"alnum_prop": 0.6774193548387096,
"repo_name": "SymfonyId/AdminBundle",
"id": "1acda6d8e51d6fcd11058ee1bef685bc0aa67556",
"size": "557",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Contract/ExtractorInterface.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "248044"
},
{
"name": "HTML",
"bytes": "66184"
},
{
"name": "JavaScript",
"bytes": "585295"
},
{
"name": "PHP",
"bytes": "281702"
}
]
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>rem: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.13.0 / rem - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
rem
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-05-13 02:27:09 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-05-13 02:27:09 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 4 Virtual package relying on a GMP lib system installation
coq 8.13.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.14.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.14.0 Official release 4.14.0
ocaml-config 2 OCaml Switch Configuration
ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled
ocamlfind 1.9.3 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/rem"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Rem"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: Rem Theorem" "keyword: Baire space" "category: Mathematics/Real Calculus and Topology" ]
authors: [ "Henk Barendregt" ]
bug-reports: "https://github.com/coq-contribs/rem/issues"
dev-repo: "git+https://github.com/coq-contribs/rem.git"
synopsis: "Rem Theorem in Baire space"
description: "A formalisation of Rem Theorem in Baire space"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/rem/archive/v8.8.0.tar.gz"
checksum: "md5=dcff79b5c2a7e84a13e7a113e8036673"
}
</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-rem.8.8.0 coq.8.13.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0).
The following dependencies couldn't be met:
- coq-rem -> coq < 8.9~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-rem.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "1faa181cbb2be0e9caaa7c0598e52e75",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 159,
"avg_line_length": 41.98159509202454,
"alnum_prop": 0.5348531345900921,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "b5dab5f01770585c187875683d61700dafe6a619",
"size": "6868",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.14.0-2.0.10/released/8.13.0/rem/8.8.0.html",
"mode": "33188",
"license": "mit",
"language": []
}
|
package com.thaiopensource.relaxng.pattern;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.relaxng.datatype.Datatype;
import com.thaiopensource.datatype.Datatype2;
import com.thaiopensource.relaxng.match.MatchContext;
import com.thaiopensource.relaxng.match.Matcher;
import com.thaiopensource.util.Equal;
import com.thaiopensource.util.Localizer;
import com.thaiopensource.xml.util.Name;
public class PatternMatcher implements Cloneable, Matcher
{
static private class Shared
{
private final Pattern start;
private final ValidatorPatternBuilder builder;
private Map <Name, Pattern> recoverPatternTable;
Shared (final Pattern start, final ValidatorPatternBuilder builder)
{
this.start = start;
this.builder = builder;
}
Pattern findElement (final Name name)
{
if (recoverPatternTable == null)
recoverPatternTable = new HashMap <Name, Pattern> ();
Pattern p = recoverPatternTable.get (name);
if (p == null)
{
p = FindElementFunction.findElement (builder, name, start);
recoverPatternTable.put (name, p);
}
return p;
}
}
private PatternMemo memo;
private boolean textTyped;
private boolean hadError;
private boolean ignoreNextEndTagOrAttributeValue;
private String errorMessage;
private final Shared shared;
private List <DataDerivFailure> dataDerivFailureList = new ArrayList <DataDerivFailure> ();
public PatternMatcher (final Pattern start, final ValidatorPatternBuilder builder)
{
shared = new Shared (start, builder);
memo = builder.getPatternMemo (start);
}
private PatternMatcher (final PatternMemo memo, final Shared shared)
{
this.memo = memo;
this.shared = shared;
}
public Matcher start ()
{
return new PatternMatcher (shared.builder.getPatternMemo (shared.start), shared);
}
@Override
public boolean equals (final Object obj)
{
if (!(obj instanceof PatternMatcher))
return false;
final PatternMatcher other = (PatternMatcher) obj;
// don't need to test equality of shared, because the memos can only be ==
// if the shareds are ==.
return (memo == other.memo &&
hadError == other.hadError &&
Equal.equal (errorMessage, other.errorMessage) &&
ignoreNextEndTagOrAttributeValue == other.ignoreNextEndTagOrAttributeValue && textTyped == other.textTyped);
}
@Override
public int hashCode ()
{
return memo.hashCode ();
}
@Override
public final Object clone ()
{
try
{
final PatternMatcher cloned = (PatternMatcher) super.clone ();
cloned.dataDerivFailureList = new ArrayList <DataDerivFailure> ();
return cloned;
}
catch (final CloneNotSupportedException e)
{
throw new Error ("unexpected CloneNotSupportedException");
}
}
public Matcher copy ()
{
return (Matcher) clone ();
}
public boolean matchStartDocument ()
{
if (memo.isNotAllowed ())
return error ("schema_allows_nothing");
return true;
}
public boolean matchEndDocument ()
{
// XXX maybe check that memo.isNullable if !hadError
return true;
}
public boolean matchStartTagOpen (final Name name, final String qName, final MatchContext context)
{
if (setMemo (memo.startTagOpenDeriv (name)))
return true;
PatternMemo next = memo.startTagOpenRecoverDeriv (name);
final boolean ok = ignoreError ();
if (!next.isNotAllowed ())
{
if (!ok)
{
final Set <Name> missing = requiredElementNames ();
if (!missing.isEmpty ())
error (missing.size () == 1 ? "unexpected_element_required_element_missing"
: "unexpected_element_required_elements_missing",
errorArgQName (qName, name, context, false),
formatNames (missing, FORMAT_NAMES_ELEMENT | FORMAT_NAMES_AND, context));
else
error ("element_not_allowed_yet", errorArgQName (qName, name, context, false), expectedContent (context));
}
}
else
{
final ValidatorPatternBuilder builder = shared.builder;
next = builder.getPatternMemo (builder.makeAfter (shared.findElement (name), memo.getPattern ()));
if (!ok)
error (next.isNotAllowed () ? "unknown_element" : "out_of_context_element",
errorArgQName (qName, name, context, false),
expectedContent (context));
}
memo = next;
return ok;
}
public boolean matchAttributeName (final Name name, String qName, final MatchContext context)
{
if (setMemo (memo.startAttributeDeriv (name)))
return true;
ignoreNextEndTagOrAttributeValue = true;
final boolean ok = ignoreError ();
if (ok)
return true;
qName = errorArgQName (qName, name, context, true);
final NormalizedNameClass nnc = memo.possibleAttributeNames ();
if (nnc.isEmpty ())
error ("no_attributes_allowed", qName);
else
error ("invalid_attribute_name", qName, expectedAttributes (context));
return false;
}
public boolean matchAttributeValue (final String value,
final Name name,
final String qName,
final MatchContext context)
{
if (ignoreNextEndTagOrAttributeValue)
{
ignoreNextEndTagOrAttributeValue = false;
return true;
}
dataDerivFailureList.clear ();
if (setMemo (memo.dataDeriv (value, context, dataDerivFailureList)))
return true;
final boolean ok = error ("invalid_attribute_value",
errorArgQName (qName, name, context, true),
formatDataDerivFailures (value, context));
memo = memo.recoverAfter ();
return ok;
}
public boolean matchStartTagClose (final Name name, final String qName, final MatchContext context)
{
boolean ok;
if (setMemo (memo.endAttributes ()))
ok = true;
else
{
ok = ignoreError ();
if (!ok)
{
final Set <Name> missing = requiredAttributeNames ();
if (missing.isEmpty ())
error ("required_attributes_missing_expected",
errorArgQName (qName, name, context, false),
expectedAttributes (context));
else
error (missing.size () == 1 ? "required_attribute_missing" : "required_attributes_missing",
errorArgQName (qName, name, context, false),
formatNames (missing, FORMAT_NAMES_ATTRIBUTE | FORMAT_NAMES_AND, context));
}
memo = memo.ignoreMissingAttributes ();
}
textTyped = memo.getPattern ().getContentType () == Pattern.DATA_CONTENT_TYPE;
return ok;
}
public boolean matchTextBeforeEndTag (final String string,
final Name name,
final String qName,
final MatchContext context)
{
if (textTyped)
{
ignoreNextEndTagOrAttributeValue = true;
return setDataDeriv (string, name, qName, context);
}
else
return matchUntypedText (string, context);
}
public boolean matchTextBeforeStartTag (final String string, final MatchContext context)
{
return matchUntypedText (string, context);
}
private boolean matchUntypedText (final String string, final MatchContext context)
{
if (DataDerivFunction.isBlank (string))
return true;
return matchUntypedText (context);
}
public boolean matchUntypedText (final MatchContext context)
{
if (setMemo (memo.mixedTextDeriv ()))
return true;
return error ("text_not_allowed", expectedContent (context));
}
public boolean isTextTyped ()
{
return textTyped;
}
private boolean setDataDeriv (final String string, final Name name, final String qName, final MatchContext context)
{
textTyped = false;
final PatternMemo textOnlyMemo = memo.textOnly ();
dataDerivFailureList.clear ();
if (setMemo (textOnlyMemo.dataDeriv (string, context, dataDerivFailureList)))
return true;
final PatternMemo next = memo.recoverAfter ();
final boolean ok = ignoreError ();
if (!ok && (!next.isNotAllowed () || textOnlyMemo.emptyAfter ().dataDeriv (string, context).isNotAllowed ()))
{
final NormalizedNameClass nnc = memo.possibleStartTagNames ();
if (!nnc.isEmpty () && DataDerivFunction.isBlank (string))
error ("blank_not_allowed", errorArgQName (qName, name, context, false), expectedContent (context));
else
error ("invalid_element_value",
errorArgQName (qName, name, context, false),
formatDataDerivFailures (string, context));
}
memo = next;
return ok;
}
public boolean matchEndTag (final Name name, final String qName, final MatchContext context)
{
if (ignoreNextEndTagOrAttributeValue)
{
ignoreNextEndTagOrAttributeValue = false;
return true;
}
if (textTyped)
return setDataDeriv ("", name, qName, context);
if (setMemo (memo.endTagDeriv ()))
return true;
final boolean ok = ignoreError ();
final PatternMemo next = memo.recoverAfter ();
// The tricky thing here is that the derivative that we compute may be
// notAllowed simply because the parent
// is notAllowed; we don't want to give an error in this case.
if (!ok && (!next.isNotAllowed ()
// Retry computing the deriv on a pattern where the after is OK (not
// notAllowed)
|| memo.emptyAfter ().endTagDeriv ().isNotAllowed ()))
{
final Set <Name> missing = requiredElementNames ();
if (!missing.isEmpty ())
error (missing.size () == 1 ? "incomplete_element_required_element_missing"
: "incomplete_element_required_elements_missing",
errorArgQName (qName, name, context, false),
formatNames (missing, FORMAT_NAMES_ELEMENT | FORMAT_NAMES_AND, context));
else
// XXX Could do better here and describe what is required instead of
// what is possible
error ("incomplete_element_required_elements_missing_expected",
errorArgQName (qName, name, context, false),
expectedContent (context));
}
memo = next;
return ok;
}
public String getErrorMessage ()
{
return errorMessage;
}
public boolean isValidSoFar ()
{
return !hadError;
}
public com.thaiopensource.relaxng.match.NameClass possibleStartTagNames ()
{
return memo.possibleStartTagNames ();
}
public com.thaiopensource.relaxng.match.NameClass possibleAttributeNames ()
{
return memo.possibleAttributeNames ();
}
public Set <Name> requiredElementNames ()
{
return memo.getPattern ().apply (shared.builder.getRequiredElementsFunction ());
}
public Set <Name> requiredAttributeNames ()
{
return memo.getPattern ().apply (shared.builder.getRequiredAttributesFunction ());
}
private boolean setMemo (final PatternMemo m)
{
if (m.isNotAllowed ())
return false;
else
{
memo = m;
return true;
}
}
private boolean ignoreError ()
{
return hadError && memo.isNotAllowed ();
}
/*
* Return true if the error was ignored, false otherwise.
*/
private boolean error (final String key)
{
return error (key, new String [] {});
}
private boolean error (final String key, final String arg)
{
return error (key, new String [] { arg });
}
private boolean error (final String key, final String arg1, final String arg2)
{
return error (key, new String [] { arg1, arg2 });
}
private boolean error (final String key, final String [] args)
{
if (ignoreError ())
return true;
hadError = true;
errorMessage = localizer ().message (key, args);
return false;
}
private String errorArgQName (String qName, final Name name, final MatchContext context, final boolean isAttribute)
{
if (ignoreError ())
return null;
if (qName == null || qName.length () == 0)
{
final String ns = name.getNamespaceUri ();
final String localName = name.getLocalName ();
if (ns.length () == 0 || (!isAttribute && ns.equals (context.resolveNamespacePrefix (""))))
qName = localName;
else
{
final String prefix = context.getPrefix (ns);
if (prefix != null)
qName = prefix + ":" + localName;
// this shouldn't happen unless the parser isn't supplying prefixes
// properly
else
qName = "{" + ns + "}" + localName;
}
}
return quoteQName (qName);
}
static private final int UNDEFINED_TOKEN_INDEX = -3;
static private final int INCONSISTENT_TOKEN_INDEX = -2;
private String formatDataDerivFailures (final String str, final MatchContext context)
{
if (ignoreError ())
return null;
if (dataDerivFailureList.size () == 0)
return "";
if (dataDerivFailureList.size () > 1)
{
// remove duplicates
final Set <DataDerivFailure> failures = new HashSet <DataDerivFailure> ();
failures.addAll (dataDerivFailureList);
dataDerivFailureList.clear ();
dataDerivFailureList.addAll (failures);
}
final List <String> stringValues = new ArrayList <String> ();
final Set <Name> names = new HashSet <Name> ();
final List <String> messages = new ArrayList <String> ();
int tokenIndex = UNDEFINED_TOKEN_INDEX;
int tokenStart = -1;
int tokenEnd = -1;
for (final DataDerivFailure fail : dataDerivFailureList)
{
final Datatype dt = fail.getDatatype ();
final String s = fail.getStringValue ();
if (s != null)
{
final Object value = fail.getValue ();
// we imply some special semantics for Datatype2
if (value instanceof Name && dt instanceof Datatype2)
names.add ((Name) value);
else
if (value instanceof String && dt instanceof Datatype2)
stringValues.add ((String) value);
else
stringValues.add (s);
}
else
{
final String message = fail.getMessage ();
// XXX this might produce strangely worded messages for 3rd party
// datatype libraries
if (message != null)
messages.add (message);
else
if (fail.getExcept () != null)
return ""; // XXX do better for except
else
messages.add (localizer ().message ("require_datatype", fail.getDatatypeName ().getLocalName ()));
}
switch (tokenIndex)
{
case INCONSISTENT_TOKEN_INDEX:
break;
case UNDEFINED_TOKEN_INDEX:
tokenIndex = fail.getTokenIndex ();
tokenStart = fail.getTokenStart ();
tokenEnd = fail.getTokenEnd ();
break;
default:
if (tokenIndex != fail.getTokenIndex ())
tokenIndex = INCONSISTENT_TOKEN_INDEX;
break;
}
}
if (stringValues.size () > 0)
{
Collections.sort (stringValues);
for (int i = 0; i < stringValues.size (); i++)
stringValues.set (i, quoteValue (stringValues.get (i)));
messages.add (localizer ().message ("require_values", formatList (stringValues, "or")));
}
if (names.size () > 0)
// XXX provide the strings as well so that a sensible prefix can be chosen
// if none is declared
messages.add (localizer ().message ("require_qnames",
formatNames (names, FORMAT_NAMES_OR | FORMAT_NAMES_ELEMENT, context)));
if (messages.size () == 0)
return "";
final String arg = formatList (messages, "or");
// XXX should do something with inconsistent token index (e.g. list {
// integer+ } | "foo" )
if (tokenIndex >= 0 && tokenStart >= 0 && tokenEnd <= str.length ())
{
if (tokenStart == str.length ())
return localizer ().message ("missing_token", arg);
return localizer ().message ("token_failures", quoteValue (str.substring (tokenStart, tokenEnd)), arg);
}
return localizer ().message ("data_failures", arg);
}
private String quoteValue (final String str)
{
final StringBuilder buf = new StringBuilder ();
appendAttributeValue (buf, str);
return buf.toString ();
}
private String expectedAttributes (final MatchContext context)
{
if (ignoreError ())
return null;
final NormalizedNameClass nnc = memo.possibleAttributeNames ();
if (nnc.isEmpty ())
return "";
final Set <Name> expectedNames = nnc.getIncludedNames ();
if (!expectedNames.isEmpty ())
return localizer ().message (nnc.isAnyNameIncluded () || !nnc.getIncludedNamespaces ().isEmpty ()
? "expected_attribute_or_other_ns"
: "expected_attribute",
formatNames (expectedNames, FORMAT_NAMES_ATTRIBUTE | FORMAT_NAMES_OR, context));
return "";
}
private String expectedContent (final MatchContext context)
{
if (ignoreError ())
return null;
final List <String> expected = new ArrayList <String> ();
if (!memo.endTagDeriv ().isNotAllowed ())
expected.add (localizer ().message ("element_end_tag"));
// getContentType isn't so well-defined on after patterns
switch (memo.emptyAfter ().getPattern ().getContentType ())
{
case Pattern.MIXED_CONTENT_TYPE:
// A pattern such as (element foo { empty }, text) has a
// MIXED_CONTENT_TYPE
// but text is not allowed everywhere.
if (!memo.mixedTextDeriv ().isNotAllowed ())
expected.add (localizer ().message ("text"));
break;
case Pattern.DATA_CONTENT_TYPE:
expected.add (localizer ().message ("data"));
break;
}
final NormalizedNameClass nnc = memo.possibleStartTagNames ();
final Set <Name> expectedNames = nnc.getIncludedNames ();
// XXX say something about wildcards
if (!expectedNames.isEmpty ())
{
expected.add (localizer ().message ("element_list",
formatNames (expectedNames, FORMAT_NAMES_ELEMENT | FORMAT_NAMES_OR, context)));
if (nnc.isAnyNameIncluded () || !nnc.getIncludedNamespaces ().isEmpty ())
expected.add (localizer ().message ("element_other_ns"));
}
if (expected.isEmpty ())
return "";
return localizer ().message ("expected", formatList (expected, "or"));
}
static final String GENERATED_PREFIXES[] = { "ns", "ns-", "ns_", "NS", "NS-", "NS_" };
// Values for flags parameter of formatNames
static private final int FORMAT_NAMES_ELEMENT = 0x0;
static private final int FORMAT_NAMES_ATTRIBUTE = 0x1;
static private final int FORMAT_NAMES_AND = 0x0;
static private final int FORMAT_NAMES_OR = 0x2;
private static String formatNames (final Set <Name> names, final int flags, final MatchContext context)
{
if (names.isEmpty ())
return "";
final Map <String, String> nsDecls = new HashMap <String, String> ();
final List <String> qNames = generateQNames (names, flags, context, nsDecls);
Collections.sort (qNames);
final int len = qNames.size ();
for (int i = 0; i < len; i++)
qNames.set (i, quoteQName (qNames.get (i)));
String result = formatList (qNames, (flags & FORMAT_NAMES_OR) != 0 ? "or" : "and");
if (nsDecls.size () != 0)
result = localizer ().message ("qnames_nsdecls", result, formatNamespaceDecls (nsDecls));
return result;
}
private static List <String> generateQNames (final Set <Name> names,
final int flags,
final MatchContext context,
final Map <String, String> nsDecls)
{
String defaultNamespace;
if ((flags & FORMAT_NAMES_ATTRIBUTE) != 0)
defaultNamespace = "";
else
{
defaultNamespace = context.resolveNamespacePrefix ("");
for (final Name name : names)
{
if (name.getNamespaceUri ().length () == 0)
{
if (defaultNamespace != null)
nsDecls.put ("", "");
defaultNamespace = "";
break;
}
}
}
final List <String> qNames = new ArrayList <String> ();
final Set <String> undeclaredNamespaces = new HashSet <String> ();
final List <Name> namesWithUndeclaredNamespaces = new ArrayList <Name> ();
for (final Name name : names)
{
final String ns = name.getNamespaceUri ();
String prefix;
if (ns.equals (defaultNamespace))
prefix = "";
else
{
prefix = context.getPrefix (ns);
// If we have no prefix for the namespace and we have an attribute, set
// the prefix to null
// to mark that the namespace is undeclared.
if ((flags & FORMAT_NAMES_ATTRIBUTE) != 0 && "".equals (prefix) && !"".equals (ns))
prefix = null;
}
if (prefix == null)
{
undeclaredNamespaces.add (ns);
namesWithUndeclaredNamespaces.add (name);
}
else
qNames.add (makeQName (prefix, name.getLocalName ()));
}
if (namesWithUndeclaredNamespaces.isEmpty ())
return qNames;
if (undeclaredNamespaces.size () == 1 && defaultNamespace == null)
nsDecls.put (undeclaredNamespaces.iterator ().next (), "");
else
choosePrefixes (undeclaredNamespaces, context, nsDecls);
// now nsDecls has a prefix for each namespace
for (final Name name : namesWithUndeclaredNamespaces)
qNames.add (makeQName (nsDecls.get (name.getNamespaceUri ()), name.getLocalName ()));
return qNames;
}
private static void choosePrefixes (final Set <String> nsSet,
final MatchContext context,
final Map <String, String> nsDecls)
{
final List <String> nsList = new ArrayList <String> (nsSet);
Collections.sort (nsList);
final int len = nsList.size ();
String prefix;
int tryIndex = 0;
do
{
if (tryIndex < GENERATED_PREFIXES.length)
prefix = GENERATED_PREFIXES[tryIndex];
else
{
// default is just to stick as many underscores as necessary at the
// beginning
prefix = "_" + GENERATED_PREFIXES[0];
for (int i = GENERATED_PREFIXES.length; i < tryIndex; i++)
prefix += "_" + prefix;
}
for (int i = 0; i < len; i++)
{
if (context.resolveNamespacePrefix (len == 1 ? prefix : prefix + (i + 1)) != null)
{
prefix = null;
break;
}
}
++tryIndex;
} while (prefix == null);
for (int i = 0; i < len; i++)
{
final String ns = nsList.get (i);
nsDecls.put (ns, len == 1 ? prefix : prefix + (i + 1));
}
}
private static String formatList (final List <String> list, final String conjunction)
{
final int len = list.size ();
switch (len)
{
case 0:
return "";
case 1:
return list.get (0);
case 2:
return localizer ().message (conjunction + "_list_pair", list.get (0), list.get (1));
}
String s = localizer ().message (conjunction + "_list_many_first", list.get (0));
for (int i = 1; i < len - 1; i++)
s = localizer ().message (conjunction + "_list_many_middle", s, list.get (i));
return localizer ().message (conjunction + "_list_many_last", s, list.get (len - 1));
}
// nsDecls maps namespaces to prefixes
private static String formatNamespaceDecls (final Map <String, String> nsDecls)
{
final List <String> list = new ArrayList <String> ();
for (final Map.Entry <String, String> entry : nsDecls.entrySet ())
{
final StringBuilder buf = new StringBuilder ();
final String prefix = entry.getValue ();
if (prefix.length () == 0)
buf.append ("xmlns");
else
buf.append ("xmlns:").append (prefix);
buf.append ('=');
appendAttributeValue (buf, entry.getKey ());
list.add (buf.toString ());
}
Collections.sort (list);
final StringBuilder buf = new StringBuilder ();
for (final String aList : list)
{
if (buf.length () != 0)
buf.append (" ");
buf.append (aList);
}
return buf.toString ();
}
private static String quoteForAttributeValue (final char c)
{
switch (c)
{
case '<':
return "<";
case '"':
return """;
case '&':
return "&";
case 0xA:
return "
";
case 0xD:
return "
";
case 0x9:
return "	";
}
return null;
}
private static StringBuilder appendAttributeValue (final StringBuilder buf, final String value)
{
buf.append ('"');
for (int i = 0; i < value.length (); i++)
{
final char c = value.charAt (i);
final String quoted = quoteForAttributeValue (c);
if (quoted != null)
buf.append (quoted);
else
buf.append (c);
}
buf.append ('"');
return buf;
}
private static String makeQName (final String prefix, final String localName)
{
if (prefix.length () == 0)
return localName;
return prefix + ":" + localName;
}
static private String quoteQName (final String qName)
{
return localizer ().message ("qname", qName);
}
static private Localizer localizer ()
{
return SchemaBuilderImpl.localizer;
}
}
|
{
"content_hash": "c1d6bdec4baf9c478c68b1ad22c0be89",
"timestamp": "",
"source": "github",
"line_count": 790,
"max_line_length": 137,
"avg_line_length": 32.811392405063295,
"alnum_prop": 0.6108174838933683,
"repo_name": "lsimons/phloc-schematron-standalone",
"id": "97918be4445f5be7f27cceb7eed586813aaf76b8",
"size": "25921",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "phloc-schematron/jing/src/main/java/com/thaiopensource/relaxng/pattern/PatternMatcher.java",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
SYNONYM
#### According to
Index Fungorum
#### Published in
Beih. bot. Zbl. 37(2): 272 (1919)
#### Original name
Melaspilea vermifera Leight.
### Remarks
null
|
{
"content_hash": "5ddbdf8fa4695681140ab9495288bcad",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 33,
"avg_line_length": 12.384615384615385,
"alnum_prop": 0.6832298136645962,
"repo_name": "mdoering/backbone",
"id": "568d7512c59e62b5b94561abe94544cc2fd10f35",
"size": "222",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Lecanoromycetes/Ostropales/Odontotremataceae/Spirographa/Spirographa fusisporella/ Syn. Spilomela vermifera/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
import { Animation, Config, Transition } from 'ionic-angular';
const BACKDROP_OPACITY_ALERT_IOS: number = 0.6;
const BACKDROP_OPACITY_ASHEET_IOS: number = 0.6;
export function fixAlertTransitions(config: Config): void {
config.setTransition('alert-pop-in', DeusAlertPopIn);
config.setTransition('alert-pop-out', DeusAlertPopOut);
config.setTransition('alert-md-pop-in', DeusAlertPopIn);
config.setTransition('alert-md-pop-out', DeusAlertPopOut);
}
export function fixActionSheetTransitions(config: Config): void {
config.setTransition('action-sheet-slide-in', DeusActionSheetSlideIn);
config.setTransition('action-sheet-slide-out', DeusActionSheetSlideOut);
config.setTransition('action-sheet-md-slide-in', DeusActionSheetSlideIn);
config.setTransition('action-sheet-md-slide-out', DeusActionSheetSlideOut);
}
export class DeusAlertPopIn extends Transition {
public init() {
const ele = this.enteringView.pageRef().nativeElement;
const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
wrapper.fromTo('opacity', 0.01, 1).fromTo('scale', 1.1, 1);
backdrop.fromTo('opacity', 0.01, BACKDROP_OPACITY_ALERT_IOS);
this
.easing('ease-in-out')
.duration(200)
.add(backdrop)
.add(wrapper);
}
}
export class DeusAlertPopOut extends Transition {
public init() {
const ele = this.leavingView.pageRef().nativeElement;
const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
const wrapper = new Animation(this.plt, ele.querySelector('.alert-wrapper'));
wrapper.fromTo('opacity', 0.99, 0).fromTo('scale', 1, 0.9);
backdrop.fromTo('opacity', BACKDROP_OPACITY_ALERT_IOS, 0);
this
.easing('ease-in-out')
.duration(200)
.add(backdrop)
.add(wrapper);
}
}
export class DeusActionSheetSlideIn extends Transition {
public init() {
const ele = this.enteringView.pageRef().nativeElement;
const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
backdrop.fromTo('opacity', 0.01, BACKDROP_OPACITY_ASHEET_IOS);
wrapper.fromTo('translateY', '100%', '0%');
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
}
}
export class DeusActionSheetSlideOut extends Transition {
public init() {
const ele = this.leavingView.pageRef().nativeElement;
const backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
const wrapper = new Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
backdrop.fromTo('opacity', BACKDROP_OPACITY_ASHEET_IOS, 0);
wrapper.fromTo('translateY', '0%', '100%');
this.easing('cubic-bezier(.36,.66,.04,1)').duration(300).add(backdrop).add(wrapper);
}
}
|
{
"content_hash": "368f7f03222d2d588fdb9bd4e16bc3a3",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 88,
"avg_line_length": 37.57692307692308,
"alnum_prop": 0.706243602865916,
"repo_name": "sth-larp/deus-mobile",
"id": "c56b095db32afcbde748eb14443e741b7b138f12",
"size": "2931",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/elements/deus-alert-transitions.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "12251"
},
{
"name": "HTML",
"bytes": "15137"
},
{
"name": "JavaScript",
"bytes": "4838"
},
{
"name": "Python",
"bytes": "387"
},
{
"name": "Shell",
"bytes": "4179"
},
{
"name": "TypeScript",
"bytes": "133027"
}
]
}
|
import sys
import testmod3
a = testmod3.Myclass()
try:
a.func0(-2.0)
except RuntimeError as e:
print("runtime error '%s'" % (e))
except:
print("other error: %s" % (sys.exc_info()[1]))
print('normal program end')
|
{
"content_hash": "420b926f471504361a78c4321e7ac130",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 48,
"avg_line_length": 17,
"alnum_prop": 0.6515837104072398,
"repo_name": "dubrayn/dubrayn.github.io",
"id": "f87688b33853aa66de592c5a6ea02d3dbf4d0ab5",
"size": "245",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/swig_exception/test.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "711"
},
{
"name": "CSS",
"bytes": "100380"
},
{
"name": "HTML",
"bytes": "1114501"
},
{
"name": "JavaScript",
"bytes": "3407321"
}
]
}
|
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Network.Models
{
/// <summary> Result of the request to list VpnSiteLinks. It contains a list of VpnSiteLinks and a URL nextLink to get the next set of results. </summary>
public partial class ListVpnSiteLinksResult
{
/// <summary> Initializes a new instance of ListVpnSiteLinksResult. </summary>
internal ListVpnSiteLinksResult()
{
Value = new ChangeTrackingList<VpnSiteLink>();
}
/// <summary> Initializes a new instance of ListVpnSiteLinksResult. </summary>
/// <param name="value"> List of VpnSitesLinks. </param>
/// <param name="nextLink"> URL to get the next set of operation list results if there are any. </param>
internal ListVpnSiteLinksResult(IReadOnlyList<VpnSiteLink> value, string nextLink)
{
Value = value;
NextLink = nextLink;
}
/// <summary> List of VpnSitesLinks. </summary>
public IReadOnlyList<VpnSiteLink> Value { get; }
/// <summary> URL to get the next set of operation list results if there are any. </summary>
public string NextLink { get; }
}
}
|
{
"content_hash": "e036280c23e22ae591fcd7cea01ac376",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 158,
"avg_line_length": 42.172413793103445,
"alnum_prop": 0.6582174979558463,
"repo_name": "yugangw-msft/azure-sdk-for-net",
"id": "01f72325b2fc5e91d9af37da4d56127a3b3e7545",
"size": "1361",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ListVpnSiteLinksResult.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP",
"bytes": "118"
},
{
"name": "Batchfile",
"bytes": "817"
},
{
"name": "C#",
"bytes": "55680650"
},
{
"name": "CSS",
"bytes": "685"
},
{
"name": "Cucumber",
"bytes": "89597"
},
{
"name": "JavaScript",
"bytes": "1719"
},
{
"name": "PowerShell",
"bytes": "24329"
},
{
"name": "Shell",
"bytes": "45"
}
]
}
|
module SQLite3
VERSION = '1.4.2'
module VersionProxy
MAJOR = 1
MINOR = 4
TINY = 2
BUILD = nil
STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )
#:beta-tag:
VERSION = ::SQLite3::VERSION
end
def self.const_missing(name)
return super unless name == :Version
warn(<<-eowarn) if $VERBOSE
#{caller[0]}: SQLite::Version will be removed in sqlite3-ruby version 2.0.0
eowarn
VersionProxy
end
end
|
{
"content_hash": "978cfaeb1bb206d55d260659ac7f9f4c",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 75,
"avg_line_length": 18.28,
"alnum_prop": 0.6192560175054704,
"repo_name": "vasyahacker/fdream",
"id": "efbd39603ab7c86b0df9f1c9a261d0968920dd61",
"size": "457",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "vendor/lib/sqlite3/version.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "85"
},
{
"name": "Ruby",
"bytes": "218566"
},
{
"name": "Shell",
"bytes": "5788"
}
]
}
|
require 'spec_helper'
describe Rack::Client::Handler::Excon do
sync_handler_context(Rack::Client::Handler::Excon) do
it_should_behave_like "Handler API"
end
end
|
{
"content_hash": "6f98b3b97005020e9f09c54580317547",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 55,
"avg_line_length": 24.285714285714285,
"alnum_prop": 0.7352941176470589,
"repo_name": "halorgium/rack-client",
"id": "284e296adbd084567c528f3bc4ef141f86fb2788",
"size": "170",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/handler/excon_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "69244"
}
]
}
|
<?xml version="1.0" encoding="UTF-8" ?>
<class name="DynamicFontData" inherits="Resource" version="4.0">
<brief_description>
Used with [DynamicFont] to describe the location of a font file.
</brief_description>
<description>
Used with [DynamicFont] to describe the location of a vector font file for dynamic rendering at runtime.
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<members>
<member name="antialiased" type="bool" setter="set_antialiased" getter="is_antialiased" default="true">
If [code]true[/code], the font is rendered with anti-aliasing. This property applies both to the main font and its outline (if it has one).
</member>
<member name="font_path" type="String" setter="set_font_path" getter="get_font_path" default="""">
The path to the vector font file.
</member>
<member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="DynamicFontData.Hinting" default="2">
The font hinting mode used by FreeType. See [enum Hinting] for options.
</member>
</members>
<constants>
<constant name="HINTING_NONE" value="0" enum="Hinting">
Disables font hinting (smoother but less crisp).
</constant>
<constant name="HINTING_LIGHT" value="1" enum="Hinting">
Use the light font hinting mode.
</constant>
<constant name="HINTING_NORMAL" value="2" enum="Hinting">
Use the default font hinting mode (crisper but less smooth).
</constant>
</constants>
</class>
|
{
"content_hash": "de725f8c47899acadadd3cbecb5ec102",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 142,
"avg_line_length": 41.8,
"alnum_prop": 0.7136021872863978,
"repo_name": "Paulloz/godot",
"id": "483da96f3f01c5667d40217853300d8b4865a72d",
"size": "1463",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "doc/classes/DynamicFontData.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "50004"
},
{
"name": "C#",
"bytes": "176259"
},
{
"name": "C++",
"bytes": "18569070"
},
{
"name": "GLSL",
"bytes": "1271"
},
{
"name": "Java",
"bytes": "495377"
},
{
"name": "JavaScript",
"bytes": "14680"
},
{
"name": "Makefile",
"bytes": "451"
},
{
"name": "Objective-C",
"bytes": "2645"
},
{
"name": "Objective-C++",
"bytes": "173262"
},
{
"name": "Python",
"bytes": "336142"
},
{
"name": "Shell",
"bytes": "19610"
}
]
}
|
>Важни свойства:
* Обект който енкапсулира всичката информация нужна за извикването на метод на по-късен етап
* Разделя клиентът даващ командата от логиката по изпълнението и
В софтуеърното инженерство Команд патерн е дизайн патерн при който се използва обект енкапсулиращ информацията нужна за извикването на метод или ивент на по-късен етап. В патерна винаги има четири участника: команда, получател, заявител и клиент. Командата знае за получателя и извиква негов метод. Именно данните нужни на този метод се пазят в командата. Получателя извършва работата. Заявителя знае как да изпълни команда и евентуално пази данни за всички команди изпълнени до момента. Заявителя не знае нищо за конкретна команда, той знае за интерфейса на командите. Клиентът държи заявител и няколко команди, той решава коя команда да подаде на заявителя за изпълнение и кога.
Патърни които могат да използват билдър в имплементацията си са:
* Фактори
* Нъл обджект
* Композит
|
{
"content_hash": "84c7a3c371517bd274305d750b4cea61",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 680,
"avg_line_length": 96,
"alnum_prop": 0.81875,
"repo_name": "dechoD/Telerik-Homeworks",
"id": "2eaa96aef9305430087507578a2443bd16dcc1c4",
"size": "1792",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Module II Homeworks/High Quality Code/BehavioralPatterns/command.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "187406"
},
{
"name": "Batchfile",
"bytes": "1418"
},
{
"name": "C#",
"bytes": "6679013"
},
{
"name": "CSS",
"bytes": "250895"
},
{
"name": "CoffeeScript",
"bytes": "4643"
},
{
"name": "HTML",
"bytes": "611506"
},
{
"name": "JavaScript",
"bytes": "1629928"
},
{
"name": "Python",
"bytes": "179704"
},
{
"name": "Smalltalk",
"bytes": "263838"
},
{
"name": "XSLT",
"bytes": "4220"
}
]
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Wed Sep 24 06:08:04 EDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.apache.solr.logging.jul (Solr 4.10.1 API)</title>
<meta name="date" content="2014-09-24">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.solr.logging.jul (Solr 4.10.1 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/solr/logging/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../org/apache/solr/logging/log4j/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/solr/logging/jul/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package org.apache.solr.logging.jul</h1>
<div class="docSummary">
<div class="block">
JUL based implementation of <a href="../../../../../org/apache/solr/logging/LogWatcher.html" title="class in org.apache.solr.logging"><code>LogWatcher</code></a></div>
</div>
<p>See: <a href="#package_description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/solr/logging/jul/JulInfo.html" title="class in org.apache.solr.logging.jul">JulInfo</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/solr/logging/jul/JulWatcher.html" title="class in org.apache.solr.logging.jul">JulWatcher</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/solr/logging/jul/RecordHandler.html" title="class in org.apache.solr.logging.jul">RecordHandler</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package_description">
<!-- -->
</a>
<h2 title="Package org.apache.solr.logging.jul Description">Package org.apache.solr.logging.jul Description</h2>
<div class="block"><p>
JUL based implementation of <a href="../../../../../org/apache/solr/logging/LogWatcher.html" title="class in org.apache.solr.logging"><code>LogWatcher</code></a>
</p></div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/solr/logging/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../org/apache/solr/logging/log4j/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/solr/logging/jul/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
<i>Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.</i>
<script src='../../../../../prettify.js' type='text/javascript'></script>
<script type='text/javascript'>
(function(){
var oldonload = window.onload;
if (typeof oldonload != 'function') {
window.onload = prettyPrint;
} else {
window.onload = function() {
oldonload();
prettyPrint();
}
}
})();
</script>
</small></p>
</body>
</html>
|
{
"content_hash": "495a670384b87d55377b279d5c6f5c5f",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 167,
"avg_line_length": 37.80473372781065,
"alnum_prop": 0.6108937235874159,
"repo_name": "pulipulichen/ir-practice-solr",
"id": "d77fe6db6cad17bcbd67606457a700a8a145f7ac",
"size": "6389",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/solr-core/org/apache/solr/logging/jul/package-summary.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "30309"
},
{
"name": "C",
"bytes": "168322"
},
{
"name": "C++",
"bytes": "106681"
},
{
"name": "CSS",
"bytes": "762531"
},
{
"name": "HTML",
"bytes": "734196"
},
{
"name": "Java",
"bytes": "495857"
},
{
"name": "JavaScript",
"bytes": "1655706"
},
{
"name": "NSIS",
"bytes": "2454"
},
{
"name": "Roff",
"bytes": "4184255"
},
{
"name": "Shell",
"bytes": "46960"
},
{
"name": "XSLT",
"bytes": "124615"
}
]
}
|
End of preview.
No dataset card yet
- Downloads last month
- 5