text
stringlengths 2
100k
| meta
dict |
---|---|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Logo should render properly 1`] = `
.c0 {
-webkit-align-items: flex-start;
-webkit-box-align: flex-start;
-ms-flex-align: flex-start;
align-items: flex-start;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
font-size: 0;
}
.c0 svg {
height: 4.2rem;
max-height: 100%;
width: auto;
}
<Wrapper>
<div
className="c0"
>
SVG
</div>
</Wrapper>
`;
| {
"pile_set_name": "Github"
} |
{
"resourceType": "Medication",
"id": "med0317",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: med0317</p><p><b>form</b>: Injection Solution (qualifier value) <span>(Details : {SNOMED CT code '385219001' = 'Injection solution', given as 'Injection Solution (qualifier value)'})</span></p><blockquote><p><b>ingredient</b></p><p><b>item</b>: Potassium Chloride <span>(Details : {RxNorm code '204520' = 'Potassium Chloride 2 MEQ/ML Injectable Solution', given as 'Potassium Chloride'})</span></p><p><b>strength</b>: 2 meq<span> (Details: UCUM code meq = 'meq')</span>/1 mL<span> (Details: UCUM code mL = 'mL')</span></p></blockquote><blockquote><p><b>ingredient</b></p><p><b>item</b>: Sodium Chloride 0.9% injectable solution <span>(Details : {RxNorm code '313002' = 'Sodium Chloride 0.154 MEQ/ML Injectable Solution', given as 'Sodium Chloride 0.9% injectable solution'})</span></p><p><b>strength</b>: 0.9 g<span> (Details: UCUM code g = 'g')</span>/100 mL<span> (Details: UCUM code mL = 'mL')</span></p></blockquote></div>"
},
"form": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "385219001",
"display": "Injection Solution (qualifier value)"
}
],
"text": "Injection Solution (qualifier value)"
},
"ingredient": [
{
"itemCodeableConcept": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "204520",
"display": "Potassium Chloride"
}
]
},
"strength": {
"numerator": {
"value": 2,
"system": "http://unitsofmeasure.org",
"code": "meq"
},
"denominator": {
"value": 1,
"system": "http://unitsofmeasure.org",
"code": "mL"
}
}
},
{
"itemCodeableConcept": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "313002",
"display": "Sodium Chloride 0.9% injectable solution"
}
]
},
"strength": {
"numerator": {
"value": 0.9,
"system": "http://unitsofmeasure.org",
"code": "g"
},
"denominator": {
"value": 100,
"system": "http://unitsofmeasure.org",
"code": "mL"
}
}
}
]
} | {
"pile_set_name": "Github"
} |
If you want to write an option parser, and have it be good, there are
two ways to do it. The Right Way, and the Wrong Way.
The Wrong Way is to sit down and write an option parser. We've all done
that.
The Right Way is to write some complex configurable program with so many
options that you go half-insane just trying to manage them all, and put
it off with duct-tape solutions until you see exactly to the core of the
problem, and finally snap and write an awesome option parser.
If you want to write an option parser, don't write an option parser.
Write a package manager, or a source control system, or a service
restarter, or an operating system. You probably won't end up with a
good one of those, but if you don't give up, and you are relentless and
diligent enough in your procrastination, you may just end up with a very
nice option parser.
## USAGE
// my-program.js
var nopt = require("nopt")
, Stream = require("stream").Stream
, path = require("path")
, knownOpts = { "foo" : [String, null]
, "bar" : [Stream, Number]
, "baz" : path
, "bloo" : [ "big", "medium", "small" ]
, "flag" : Boolean
, "pick" : Boolean
, "many" : [String, Array]
}
, shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
, "b7" : ["--bar", "7"]
, "m" : ["--bloo", "medium"]
, "p" : ["--pick"]
, "f" : ["--flag"]
}
// everything is optional.
// knownOpts and shorthands default to {}
// arg list defaults to process.argv
// slice defaults to 2
, parsed = nopt(knownOpts, shortHands, process.argv, 2)
console.log(parsed)
This would give you support for any of the following:
```bash
$ node my-program.js --foo "blerp" --no-flag
{ "foo" : "blerp", "flag" : false }
$ node my-program.js ---bar 7 --foo "Mr. Hand" --flag
{ bar: 7, foo: "Mr. Hand", flag: true }
$ node my-program.js --foo "blerp" -f -----p
{ foo: "blerp", flag: true, pick: true }
$ node my-program.js -fp --foofoo
{ foo: "Mr. Foo", flag: true, pick: true }
$ node my-program.js --foofoo -- -fp # -- stops the flag parsing.
{ foo: "Mr. Foo", argv: { remain: ["-fp"] } }
$ node my-program.js --blatzk 1000 -fp # unknown opts are ok.
{ blatzk: 1000, flag: true, pick: true }
$ node my-program.js --blatzk true -fp # but they need a value
{ blatzk: true, flag: true, pick: true }
$ node my-program.js --no-blatzk -fp # unless they start with "no-"
{ blatzk: false, flag: true, pick: true }
$ node my-program.js --baz b/a/z # known paths are resolved.
{ baz: "/Users/isaacs/b/a/z" }
# if Array is one of the types, then it can take many
# values, and will always be an array. The other types provided
# specify what types are allowed in the list.
$ node my-program.js --many 1 --many null --many foo
{ many: ["1", "null", "foo"] }
$ node my-program.js --many foo
{ many: ["foo"] }
```
Read the tests at the bottom of `lib/nopt.js` for more examples of
what this puppy can do.
## Types
The following types are supported, and defined on `nopt.typeDefs`
* String: A normal string. No parsing is done.
* path: A file system path. Gets resolved against cwd if not absolute.
* url: A url. If it doesn't parse, it isn't accepted.
* Number: Must be numeric.
* Date: Must parse as a date. If it does, and `Date` is one of the options,
then it will return a Date object, not a string.
* Boolean: Must be either `true` or `false`. If an option is a boolean,
then it does not need a value, and its presence will imply `true` as
the value. To negate boolean flags, do `--no-whatever` or `--whatever
false`
* NaN: Means that the option is strictly not allowed. Any value will
fail.
* Stream: An object matching the "Stream" class in node. Valuable
for use when validating programmatically. (npm uses this to let you
supply any WriteStream on the `outfd` and `logfd` config options.)
* Array: If `Array` is specified as one of the types, then the value
will be parsed as a list of options. This means that multiple values
can be specified, and that the value will always be an array.
If a type is an array of values not on this list, then those are
considered valid values. For instance, in the example above, the
`--bloo` option can only be one of `"big"`, `"medium"`, or `"small"`,
and any other value will be rejected.
When parsing unknown fields, `"true"`, `"false"`, and `"null"` will be
interpreted as their JavaScript equivalents, and numeric values will be
interpreted as a number.
You can also mix types and values, or multiple types, in a list. For
instance `{ blah: [Number, null] }` would allow a value to be set to
either a Number or null.
To define a new type, add it to `nopt.typeDefs`. Each item in that
hash is an object with a `type` member and a `validate` method. The
`type` member is an object that matches what goes in the type list. The
`validate` method is a function that gets called with `validate(data,
key, val)`. Validate methods should assign `data[key]` to the valid
value of `val` if it can be handled properly, or return boolean
`false` if it cannot.
You can also call `nopt.clean(data, types, typeDefs)` to clean up a
config object and remove its invalid properties.
## Error Handling
By default, nopt outputs a warning to standard error when invalid
options are found. You can change this behavior by assigning a method
to `nopt.invalidHandler`. This method will be called with
the offending `nopt.invalidHandler(key, val, types)`.
If no `nopt.invalidHandler` is assigned, then it will console.error
its whining. If it is assigned to boolean `false` then the warning is
suppressed.
## Abbreviations
Yes, they are supported. If you define options like this:
```javascript
{ "foolhardyelephants" : Boolean
, "pileofmonkeys" : Boolean }
```
Then this will work:
```bash
node program.js --foolhar --pil
node program.js --no-f --pileofmon
# etc.
```
## Shorthands
Shorthands are a hash of shorter option names to a snippet of args that
they expand to.
If multiple one-character shorthands are all combined, and the
combination does not unambiguously match any other option or shorthand,
then they will be broken up into their constituent parts. For example:
```json
{ "s" : ["--loglevel", "silent"]
, "g" : "--global"
, "f" : "--force"
, "p" : "--parseable"
, "l" : "--long"
}
```
```bash
npm ls -sgflp
# just like doing this:
npm ls --loglevel silent --global --force --long --parseable
```
## The Rest of the args
The config object returned by nopt is given a special member called
`argv`, which is an object with the following fields:
* `remain`: The remaining args after all the parsing has occurred.
* `original`: The args as they originally appeared.
* `cooked`: The args after flags and shorthands are expanded.
## Slicing
Node programs are called with more or less the exact argv as it appears
in C land, after the v8 and node-specific options have been plucked off.
As such, `argv[0]` is always `node` and `argv[1]` is always the
JavaScript program being run.
That's usually not very useful to you. So they're sliced off by
default. If you want them, then you can pass in `0` as the last
argument, or any other number that you'd like to slice off the start of
the list.
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2018 Arx Libertatis Team (see the AUTHORS file)
*
* This file is part of Arx Libertatis.
*
* Arx Libertatis is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Arx Libertatis is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Arx Libertatis. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ARX_SCENE_BACKGROUND_H
#define ARX_SCENE_BACKGROUND_H
#include <bitset>
#include "ai/Anchors.h"
#include "graphics/GraphicsTypes.h"
struct BackgroundTileData {
std::vector<EERIEPOLY> polydata;
std::vector<EERIEPOLY *> polyin;
float maxy;
BackgroundTileData()
: maxy(0.f)
{ }
};
static const short MAX_BKGX = 160;
static const short MAX_BKGZ = 160;
static const short BKG_SIZX = 100;
static const short BKG_SIZZ = 100;
static const Vec2f g_backgroundTileSize = Vec2f(BKG_SIZX, BKG_SIZZ);
struct BackgroundData {
private:
std::bitset<MAX_BKGX * MAX_BKGZ> m_activeTiles;
public:
long exist;
Vec2s m_size;
Vec2f m_mul;
BackgroundTileData m_tileData[MAX_BKGX][MAX_BKGZ];
std::vector<ANCHOR_DATA> m_anchors;
bool isTileActive(Vec2s tile) {
return m_activeTiles.test(size_t(tile.x) * size_t(MAX_BKGZ) + size_t(tile.y));
}
void setTileActive(Vec2s tile) {
m_activeTiles.set(size_t(tile.x) * size_t(MAX_BKGZ) + size_t(tile.y));
}
void resetActiveTiles() {
m_activeTiles.reset();
}
bool isInActiveTile(const Vec3f & pos) {
Vec2s tile(s16(pos.x * m_mul.x), s16(pos.z * m_mul.y));
return tile.x >= 0 && tile.x < m_size.x && tile.y >= 0 && tile.y < m_size.y && isTileActive(tile);
}
BackgroundData()
: exist(false)
, m_size(0, 0)
, m_mul(0, 0)
{ }
};
void InitBkg(BackgroundData * eb);
void ClearBackground(BackgroundData * eb);
void EERIEPOLY_Compute_PolyIn();
long CountBkgVertex();
BackgroundTileData * getFastBackgroundData(float x, float z);
#endif // ARX_SCENE_BACKGROUND_H
| {
"pile_set_name": "Github"
} |
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_App_macOS : NSObject
@end
@implementation PodsDummy_Pods_App_macOS
@end
| {
"pile_set_name": "Github"
} |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// Adapted version of:
// https://github.com/joyent/node/blob/v0.9.1/test/simple/test-path.js
exports['test path'] = function(assert) {
var system = require('sdk/system');
var path = require('sdk/fs/path');
// Shim process global from node.
var process = Object.create(require('sdk/system'));
process.cwd = process.pathFor.bind(process, 'CurProcD');
var isWindows = require('sdk/system').platform.indexOf('win') === 0;
assert.equal(path.basename(''), '');
assert.equal(path.basename('/dir/basename.ext'), 'basename.ext');
assert.equal(path.basename('/basename.ext'), 'basename.ext');
assert.equal(path.basename('basename.ext'), 'basename.ext');
assert.equal(path.basename('basename.ext/'), 'basename.ext');
assert.equal(path.basename('basename.ext//'), 'basename.ext');
if (isWindows) {
// On Windows a backslash acts as a path separator.
assert.equal(path.basename('\\dir\\basename.ext'), 'basename.ext');
assert.equal(path.basename('\\basename.ext'), 'basename.ext');
assert.equal(path.basename('basename.ext'), 'basename.ext');
assert.equal(path.basename('basename.ext\\'), 'basename.ext');
assert.equal(path.basename('basename.ext\\\\'), 'basename.ext');
} else {
// On unix a backslash is just treated as any other character.
assert.equal(path.basename('\\dir\\basename.ext'), '\\dir\\basename.ext');
assert.equal(path.basename('\\basename.ext'), '\\basename.ext');
assert.equal(path.basename('basename.ext'), 'basename.ext');
assert.equal(path.basename('basename.ext\\'), 'basename.ext\\');
assert.equal(path.basename('basename.ext\\\\'), 'basename.ext\\\\');
}
// POSIX filenames may include control characters
// c.f. http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html
if (!isWindows) {
var controlCharFilename = 'Icon' + String.fromCharCode(13);
assert.equal(path.basename('/a/b/' + controlCharFilename),
controlCharFilename);
}
assert.equal(path.dirname('/a/b/'), '/a');
assert.equal(path.dirname('/a/b'), '/a');
assert.equal(path.dirname('/a'), '/');
assert.equal(path.dirname(''), '.');
assert.equal(path.dirname('/'), '/');
assert.equal(path.dirname('////'), '/');
if (isWindows) {
assert.equal(path.dirname('c:\\'), 'c:\\');
assert.equal(path.dirname('c:\\foo'), 'c:\\');
assert.equal(path.dirname('c:\\foo\\'), 'c:\\');
assert.equal(path.dirname('c:\\foo\\bar'), 'c:\\foo');
assert.equal(path.dirname('c:\\foo\\bar\\'), 'c:\\foo');
assert.equal(path.dirname('c:\\foo\\bar\\baz'), 'c:\\foo\\bar');
assert.equal(path.dirname('\\'), '\\');
assert.equal(path.dirname('\\foo'), '\\');
assert.equal(path.dirname('\\foo\\'), '\\');
assert.equal(path.dirname('\\foo\\bar'), '\\foo');
assert.equal(path.dirname('\\foo\\bar\\'), '\\foo');
assert.equal(path.dirname('\\foo\\bar\\baz'), '\\foo\\bar');
assert.equal(path.dirname('c:'), 'c:');
assert.equal(path.dirname('c:foo'), 'c:');
assert.equal(path.dirname('c:foo\\'), 'c:');
assert.equal(path.dirname('c:foo\\bar'), 'c:foo');
assert.equal(path.dirname('c:foo\\bar\\'), 'c:foo');
assert.equal(path.dirname('c:foo\\bar\\baz'), 'c:foo\\bar');
assert.equal(path.dirname('\\\\unc\\share'), '\\\\unc\\share');
assert.equal(path.dirname('\\\\unc\\share\\foo'), '\\\\unc\\share\\');
assert.equal(path.dirname('\\\\unc\\share\\foo\\'), '\\\\unc\\share\\');
assert.equal(path.dirname('\\\\unc\\share\\foo\\bar'),
'\\\\unc\\share\\foo');
assert.equal(path.dirname('\\\\unc\\share\\foo\\bar\\'),
'\\\\unc\\share\\foo');
assert.equal(path.dirname('\\\\unc\\share\\foo\\bar\\baz'),
'\\\\unc\\share\\foo\\bar');
}
assert.equal(path.extname(''), '');
assert.equal(path.extname('/path/to/file'), '');
assert.equal(path.extname('/path/to/file.ext'), '.ext');
assert.equal(path.extname('/path.to/file.ext'), '.ext');
assert.equal(path.extname('/path.to/file'), '');
assert.equal(path.extname('/path.to/.file'), '');
assert.equal(path.extname('/path.to/.file.ext'), '.ext');
assert.equal(path.extname('/path/to/f.ext'), '.ext');
assert.equal(path.extname('/path/to/..ext'), '.ext');
assert.equal(path.extname('file'), '');
assert.equal(path.extname('file.ext'), '.ext');
assert.equal(path.extname('.file'), '');
assert.equal(path.extname('.file.ext'), '.ext');
assert.equal(path.extname('/file'), '');
assert.equal(path.extname('/file.ext'), '.ext');
assert.equal(path.extname('/.file'), '');
assert.equal(path.extname('/.file.ext'), '.ext');
assert.equal(path.extname('.path/file.ext'), '.ext');
assert.equal(path.extname('file.ext.ext'), '.ext');
assert.equal(path.extname('file.'), '.');
assert.equal(path.extname('.'), '');
assert.equal(path.extname('./'), '');
assert.equal(path.extname('.file.ext'), '.ext');
assert.equal(path.extname('.file'), '');
assert.equal(path.extname('.file.'), '.');
assert.equal(path.extname('.file..'), '.');
assert.equal(path.extname('..'), '');
assert.equal(path.extname('../'), '');
assert.equal(path.extname('..file.ext'), '.ext');
assert.equal(path.extname('..file'), '.file');
assert.equal(path.extname('..file.'), '.');
assert.equal(path.extname('..file..'), '.');
assert.equal(path.extname('...'), '.');
assert.equal(path.extname('...ext'), '.ext');
assert.equal(path.extname('....'), '.');
assert.equal(path.extname('file.ext/'), '.ext');
assert.equal(path.extname('file.ext//'), '.ext');
assert.equal(path.extname('file/'), '');
assert.equal(path.extname('file//'), '');
assert.equal(path.extname('file./'), '.');
assert.equal(path.extname('file.//'), '.');
if (isWindows) {
// On windows, backspace is a path separator.
assert.equal(path.extname('.\\'), '');
assert.equal(path.extname('..\\'), '');
assert.equal(path.extname('file.ext\\'), '.ext');
assert.equal(path.extname('file.ext\\\\'), '.ext');
assert.equal(path.extname('file\\'), '');
assert.equal(path.extname('file\\\\'), '');
assert.equal(path.extname('file.\\'), '.');
assert.equal(path.extname('file.\\\\'), '.');
} else {
// On unix, backspace is a valid name component like any other character.
assert.equal(path.extname('.\\'), '');
assert.equal(path.extname('..\\'), '.\\');
assert.equal(path.extname('file.ext\\'), '.ext\\');
assert.equal(path.extname('file.ext\\\\'), '.ext\\\\');
assert.equal(path.extname('file\\'), '');
assert.equal(path.extname('file\\\\'), '');
assert.equal(path.extname('file.\\'), '.\\');
assert.equal(path.extname('file.\\\\'), '.\\\\');
}
// path.join tests
var failures = [];
var joinTests =
// arguments result
[[['.', 'x/b', '..', '/b/c.js'], 'x/b/c.js'],
[['/.', 'x/b', '..', '/b/c.js'], '/x/b/c.js'],
[['/foo', '../../../bar'], '/bar'],
[['foo', '../../../bar'], '../../bar'],
[['foo/', '../../../bar'], '../../bar'],
[['foo/x', '../../../bar'], '../bar'],
[['foo/x', './bar'], 'foo/x/bar'],
[['foo/x/', './bar'], 'foo/x/bar'],
[['foo/x/', '.', 'bar'], 'foo/x/bar'],
[['./'], './'],
[['.', './'], './'],
[['.', '.', '.'], '.'],
[['.', './', '.'], '.'],
[['.', '/./', '.'], '.'],
[['.', '/////./', '.'], '.'],
[['.'], '.'],
[['', '.'], '.'],
[['', 'foo'], 'foo'],
[['foo', '/bar'], 'foo/bar'],
[['', '/foo'], '/foo'],
[['', '', '/foo'], '/foo'],
[['', '', 'foo'], 'foo'],
[['foo', ''], 'foo'],
[['foo/', ''], 'foo/'],
[['foo', '', '/bar'], 'foo/bar'],
[['./', '..', '/foo'], '../foo'],
[['./', '..', '..', '/foo'], '../../foo'],
[['.', '..', '..', '/foo'], '../../foo'],
[['', '..', '..', '/foo'], '../../foo'],
[['/'], '/'],
[['/', '.'], '/'],
[['/', '..'], '/'],
[['/', '..', '..'], '/'],
[[''], '.'],
[['', ''], '.'],
[[' /foo'], ' /foo'],
[[' ', 'foo'], ' /foo'],
[[' ', '.'], ' '],
[[' ', '/'], ' /'],
[[' ', ''], ' '],
[['/', 'foo'], '/foo'],
[['/', '/foo'], '/foo'],
[['/', '//foo'], '/foo'],
[['/', '', '/foo'], '/foo'],
[['', '/', 'foo'], '/foo'],
[['', '/', '/foo'], '/foo']
];
// Windows-specific join tests
if (isWindows) {
joinTests = joinTests.concat(
[// UNC path expected
[['//foo/bar'], '//foo/bar/'],
[['\\/foo/bar'], '//foo/bar/'],
[['\\\\foo/bar'], '//foo/bar/'],
// UNC path expected - server and share separate
[['//foo', 'bar'], '//foo/bar/'],
[['//foo/', 'bar'], '//foo/bar/'],
[['//foo', '/bar'], '//foo/bar/'],
// UNC path expected - questionable
[['//foo', '', 'bar'], '//foo/bar/'],
[['//foo/', '', 'bar'], '//foo/bar/'],
[['//foo/', '', '/bar'], '//foo/bar/'],
// UNC path expected - even more questionable
[['', '//foo', 'bar'], '//foo/bar/'],
[['', '//foo/', 'bar'], '//foo/bar/'],
[['', '//foo/', '/bar'], '//foo/bar/'],
// No UNC path expected (no double slash in first component)
[['\\', 'foo/bar'], '/foo/bar'],
[['\\', '/foo/bar'], '/foo/bar'],
[['', '/', '/foo/bar'], '/foo/bar'],
// No UNC path expected (no non-slashes in first component - questionable)
[['//', 'foo/bar'], '/foo/bar'],
[['//', '/foo/bar'], '/foo/bar'],
[['\\\\', '/', '/foo/bar'], '/foo/bar'],
[['//'], '/'],
// No UNC path expected (share name missing - questionable).
[['//foo'], '/foo'],
[['//foo/'], '/foo/'],
[['//foo', '/'], '/foo/'],
[['//foo', '', '/'], '/foo/'],
// No UNC path expected (too many leading slashes - questionable)
[['///foo/bar'], '/foo/bar'],
[['////foo', 'bar'], '/foo/bar'],
[['\\\\\\/foo/bar'], '/foo/bar'],
// Drive-relative vs drive-absolute paths. This merely describes the
// status quo, rather than being obviously right
[['c:'], 'c:.'],
[['c:.'], 'c:.'],
[['c:', ''], 'c:.'],
[['', 'c:'], 'c:.'],
[['c:.', '/'], 'c:./'],
[['c:.', 'file'], 'c:file'],
[['c:', '/'], 'c:/'],
[['c:', 'file'], 'c:/file']
]);
}
// Run the join tests.
joinTests.forEach(function(test) {
var actual = path.join.apply(path, test[0]);
var expected = isWindows ? test[1].replace(/\//g, '\\') : test[1];
var message = 'path.join(' + test[0].map(JSON.stringify).join(',') + ')' +
'\n expect=' + JSON.stringify(expected) +
'\n actual=' + JSON.stringify(actual);
if (actual !== expected) failures.push('\n' + message);
// assert.equal(actual, expected, message);
});
assert.equal(failures.length, 0, failures.join(''));
var joinThrowTests = [true, false, 7, null, {}, undefined, [], NaN];
joinThrowTests.forEach(function(test) {
assert.throws(function() {
path.join(test);
}, TypeError);
assert.throws(function() {
path.resolve(test);
}, TypeError);
});
// path normalize tests
if (isWindows) {
assert.equal(path.normalize('./fixtures///b/../b/c.js'),
'fixtures\\b\\c.js');
assert.equal(path.normalize('/foo/../../../bar'), '\\bar');
assert.equal(path.normalize('a//b//../b'), 'a\\b');
assert.equal(path.normalize('a//b//./c'), 'a\\b\\c');
assert.equal(path.normalize('a//b//.'), 'a\\b');
assert.equal(path.normalize('//server/share/dir/file.ext'),
'\\\\server\\share\\dir\\file.ext');
} else {
assert.equal(path.normalize('./fixtures///b/../b/c.js'),
'fixtures/b/c.js');
assert.equal(path.normalize('/foo/../../../bar'), '/bar');
assert.equal(path.normalize('a//b//../b'), 'a/b');
assert.equal(path.normalize('a//b//./c'), 'a/b/c');
assert.equal(path.normalize('a//b//.'), 'a/b');
}
// path.resolve tests
if (isWindows) {
// windows
var resolveTests =
// arguments result
[[['c:/blah\\blah', 'd:/games', 'c:../a'], 'c:\\blah\\a'],
[['c:/ignore', 'd:\\a/b\\c/d', '\\e.exe'], 'd:\\e.exe'],
[['c:/ignore', 'c:/some/file'], 'c:\\some\\file'],
[['d:/ignore', 'd:some/dir//'], 'd:\\ignore\\some\\dir'],
[['.'], process.cwd()],
[['//server/share', '..', 'relative\\'], '\\\\server\\share\\relative'],
[['c:/', '//'], 'c:\\'],
[['c:/', '//dir'], 'c:\\dir'],
[['c:/', '//server/share'], '\\\\server\\share\\'],
[['c:/', '//server//share'], '\\\\server\\share\\'],
[['c:/', '///some//dir'], 'c:\\some\\dir']
];
} else {
// Posix
var resolveTests =
// arguments result
[[['/var/lib', '../', 'file/'], '/var/file'],
[['/var/lib', '/../', 'file/'], '/file'],
// For some mysterious reasons OSX debug builds resolve incorrectly
// https://tbpl.mozilla.org/php/getParsedLog.php?id=25105489&tree=Mozilla-Inbound
// Disable this tests until Bug 891698 is fixed.
// [['a/b/c/', '../../..'], process.cwd()],
// [['.'], process.cwd()],
[['/some/dir', '.', '/absolute/'], '/absolute']];
}
var failures = [];
resolveTests.forEach(function(test) {
var actual = path.resolve.apply(path, test[0]);
var expected = test[1];
var message = 'path.resolve(' + test[0].map(JSON.stringify).join(',') + ')' +
'\n expect=' + JSON.stringify(expected) +
'\n actual=' + JSON.stringify(actual);
if (actual !== expected) failures.push('\n' + message);
// assert.equal(actual, expected, message);
});
assert.equal(failures.length, 0, failures.join(''));
// path.isAbsolute tests
if (isWindows) {
assert.equal(path.isAbsolute('//server/file'), true);
assert.equal(path.isAbsolute('\\\\server\\file'), true);
assert.equal(path.isAbsolute('C:/Users/'), true);
assert.equal(path.isAbsolute('C:\\Users\\'), true);
assert.equal(path.isAbsolute('C:cwd/another'), false);
assert.equal(path.isAbsolute('C:cwd\\another'), false);
assert.equal(path.isAbsolute('directory/directory'), false);
assert.equal(path.isAbsolute('directory\\directory'), false);
} else {
assert.equal(path.isAbsolute('/home/foo'), true);
assert.equal(path.isAbsolute('/home/foo/..'), true);
assert.equal(path.isAbsolute('bar/'), false);
assert.equal(path.isAbsolute('./baz'), false);
}
// path.relative tests
if (isWindows) {
// windows
var relativeTests =
// arguments result
[['c:/blah\\blah', 'd:/games', 'd:\\games'],
['c:/aaaa/bbbb', 'c:/aaaa', '..'],
['c:/aaaa/bbbb', 'c:/cccc', '..\\..\\cccc'],
['c:/aaaa/bbbb', 'c:/aaaa/bbbb', ''],
['c:/aaaa/bbbb', 'c:/aaaa/cccc', '..\\cccc'],
['c:/aaaa/', 'c:/aaaa/cccc', 'cccc'],
['c:/', 'c:\\aaaa\\bbbb', 'aaaa\\bbbb'],
['c:/aaaa/bbbb', 'd:\\', 'd:\\']];
} else {
// posix
var relativeTests =
// arguments result
[['/var/lib', '/var', '..'],
['/var/lib', '/bin', '../../bin'],
['/var/lib', '/var/lib', ''],
['/var/lib', '/var/apache', '../apache'],
['/var/', '/var/lib', 'lib'],
['/', '/var/lib', 'var/lib']];
}
var failures = [];
relativeTests.forEach(function(test) {
var actual = path.relative(test[0], test[1]);
var expected = test[2];
var message = 'path.relative(' +
test.slice(0, 2).map(JSON.stringify).join(',') +
')' +
'\n expect=' + JSON.stringify(expected) +
'\n actual=' + JSON.stringify(actual);
if (actual !== expected) failures.push('\n' + message);
});
assert.equal(failures.length, 0, failures.join(''));
// path.sep tests
if (isWindows) {
// windows
assert.equal(path.sep, '\\');
} else {
// posix
assert.equal(path.sep, '/');
}
// path.delimiter tests
if (isWindows) {
// windows
assert.equal(path.delimiter, ';');
} else {
// posix
assert.equal(path.delimiter, ':');
}
};
require('test').run(exports);
| {
"pile_set_name": "Github"
} |
//TEST:SIMPLE:
// #ifdef support
#if (1 - 1*2) < 0
int foo() { return 0; }
#else
BadThing thatWontCompile;
#endif
#if (1 >> 1) && ~999
AnotherError onThisLine;
#else
int bar() { return foo(); }
#endif | {
"pile_set_name": "Github"
} |
; TLS PE with ExitProcess call
; the EntryPoint code is not called even though the TLS is called again after...
; Ange Albertini, BSD LICENCE 2011-2013
%include 'consts.inc'
%include 'headers.inc'
istruc IMAGE_DATA_DIRECTORY_16
at IMAGE_DATA_DIRECTORY_16.ImportsVA, dd Import_Descriptor - IMAGEBASE
at IMAGE_DATA_DIRECTORY_16.TLSVA, dd Image_Tls_Directory32 - IMAGEBASE
iend
%include 'section_1fa.inc'
; this will never be executed
EntryPoint:
push Exitproc
call [__imp__printf]
add esp, 1 * 4
_
push 0
call [__imp__ExitProcess]
_c
Exitproc db " # EntryPoint executed (unexpected !)", 0ah, 0
_d
tls:
push TLSstart
call [__imp__printf]
add esp, 1 * 4
_
mov dword [CallBacks], tls2
_
push 0
call [__imp__ExitProcess]
_c
TLSstart db " * exiting TLS:", 0ah, " # 1st TLS call, ExitProcess() called", 0ah, 0
_d
tls2:
push TLSEnd
call [__imp__printf]
add esp, 1 * 4
retn
_c
TLSEnd db " # 2nd TLS call", 0ah, 0
_d
%include 'imports_printfexitprocess.inc'
Image_Tls_Directory32:
istruc IMAGE_TLS_DIRECTORY32
at IMAGE_TLS_DIRECTORY32.AddressOfIndex, dd AddressOfIndex
at IMAGE_TLS_DIRECTORY32.AddressOfCallBacks, dd CallBacks
iend
_d
AddressOfIndex dd 012345h
CallBacks:
dd tls
dd 0
_d
align FILEALIGN, db 0
| {
"pile_set_name": "Github"
} |
// DigitalRune Engine - Copyright (C) DigitalRune GmbH
// This file is subject to the terms and conditions defined in
// file 'LICENSE.TXT', which is part of this source code package.
using System;
using System.Collections.Generic;
using System.IO;
using DigitalRune.Ionic.Zip;
namespace DigitalRune.Storages
{
/// <summary>
/// Provides access to the files stored in a ZIP archive.
/// </summary>
/// <remarks>
/// <para>
/// The <see cref="ZipStorage"/> does not directly read the ZIP archive from the OS file system.
/// Instead, it opens the ZIP archive from another storage.
/// </para>
/// <para>
/// The <see cref="PasswordCallback"/> needs to be set to read encrypted ZIP archives. The
/// <see cref="ZipStorage"/> supports ZipCrypto (all platforms) and AES-256 encryption (Windows
/// only).
/// </para>
/// <para>
/// <strong>Thread-Safety:</strong> The <see cref="ZipStorage"/> is thread-safe. ZIP entries can
/// be read simultaneously from one or multiple threads.
/// </para>
/// </remarks>
public class ZipStorage : Storage, IStorageInternal
{
//--------------------------------------------------------------
#region Fields
//--------------------------------------------------------------
private readonly object _lock = new object();
private readonly Stream _zipStream;
private readonly ZipFile _zipFile;
#if ANDROID
// A list of all temp files created in this session.
private static List<string> _tempFiles = new List<string>();
#endif
#endregion
//--------------------------------------------------------------
#region Properties & Events
//--------------------------------------------------------------
/// <inheritdoc/>
protected override char DirectorySeparator
{
get { return '/'; }
}
/// <summary>
/// Gets the file name (incl. path) of the ZIP archive.
/// </summary>
/// <value>The file name (incl. path) of the ZIP archive.</value>
public string FileName { get; private set; }
/// <summary>
/// Gets the storage that provides the ZIP archive.
/// </summary>
/// <value>The storage that provides the ZIP archive.
/// </value>
public Storage Storage { get; private set; }
/// <summary>
/// Gets or sets the callback method that provides the password for encrypted ZIP file entries.
/// </summary>
/// <value>
/// The callback method that provides the password for encrypted ZIP file entries.
/// </value>
/// <remarks>
/// The callback is a function which takes one string argument and returns a string.
/// The function argument is the path of the entry that should be retrieved from the ZIP
/// archive. The function returns the password that was used to protect the entry in the ZIP
/// archive. The method may return any value (including <see langword="null"/> or ""), if the
/// ZIP entry is not encrypted.
/// </remarks>
public Func<string, string> PasswordCallback { get; set; }
#endregion
//--------------------------------------------------------------
#region Creation & Cleanup
//--------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="ZipStorage"/> class.
/// </summary>
/// <param name="storage">The storage that contains the ZIP archive.</param>
/// <param name="fileName">The file name (incl. path) of the ZIP archive.</param>
/// <remarks>
/// An exception is raised if the ZIP archive could not be opened.
/// </remarks>
/// <exception cref="ArgumentNullException">
/// <paramref name="storage"/> or <paramref name="fileName"/> is null.
/// </exception>
public ZipStorage(Storage storage, string fileName)
{
if (storage == null)
throw new ArgumentNullException("storage");
if (fileName == null)
throw new ArgumentNullException("fileName");
Storage = storage;
FileName = fileName;
_zipStream = storage.OpenFile(fileName);
try
{
_zipFile = ZipFile.Read(_zipStream);
return;
}
catch
{
_zipStream.Dispose();
#if !ANDROID
throw;
#endif
}
#if ANDROID
// Android asset streams do not support Stream.Length/Position or seeking.
// We need to copy the asset first to normal file.
string tempFileName = storage.GetRealPath(fileName) ?? fileName;
tempFileName = tempFileName.Replace('\\', '_');
tempFileName = tempFileName.Replace('/', '_');
tempFileName = "DigitalRune_Temp_" + tempFileName;
tempFileName = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), tempFileName);
// We copy the files once for each session because the asset files could have change.
// To check if a file has changed, we would have to compare the whole file because ZIP files
// store their dictionary at the end of the file. :-(
// Filenames of the temp files are stored in a list. Other ZipStorages for the same
// file will use the existing temp file.
lock(_tempFiles)
{
if (!_tempFiles.Contains(tempFileName))
{
_tempFiles.Add(tempFileName);
using (_zipStream = storage.OpenFile(fileName))
{
using (var dest = File.Create(tempFileName))
_zipStream.CopyTo(dest);
}
}
}
_zipStream = File.OpenRead(tempFileName);
try
{
_zipFile = ZipFile.Read(_zipStream);
}
catch
{
_zipStream.Dispose();
throw;
}
#endif
}
/// <summary>
/// Releases the unmanaged resources used by an instance of the <see cref="ZipStorage"/> class
/// and optionally releases the managed resources.
/// </summary>
/// <param name="disposing">
/// <see langword="true"/> to release both managed and unmanaged resources;
/// <see langword="false"/> to release only unmanaged resources.
/// </param>
protected override void Dispose(bool disposing)
{
if (!IsDisposed)
{
if (disposing)
{
// Dispose managed resources.
_zipFile.Dispose();
_zipStream.Dispose();
}
}
base.Dispose(disposing);
}
#endregion
//--------------------------------------------------------------
#region Methods
//--------------------------------------------------------------
/// <inheritdoc/>
public override string GetRealPath(string path)
{
path = StorageHelper.NormalizePath(path);
var zipEntry = _zipFile[path];
if (zipEntry != null && !zipEntry.IsDirectory)
return Storage.GetRealPath(FileName);
return null;
}
/// <inheritdoc/>
public override Stream OpenFile(string path)
{
var stream = TryOpenFile(path);
if (stream != null)
return stream;
#if SILVERLIGHT || WP7 || XBOX || PORTABLE
throw new FileNotFoundException("The file was not found in the ZIP archive.");
#else
throw new FileNotFoundException("The file was not found in the ZIP archive.", path);
#endif
}
/// <inheritdoc/>
Stream IStorageInternal.TryOpenFile(string path)
{
return TryOpenFile(path);
}
/// <inheritdoc/>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Caller is responsible for disposing MemoryStream.")]
private Stream TryOpenFile(string path)
{
// The ZIP file is loaded as a single stream (_zipStream). Streams are not
// thread-safe and require locking.
lock (_lock)
{
// The current thread may read multiple ZIP entries simultaneously.
// Example: The ContentManager reads "Model.xnb". While the "Model.xnb"
// is still open, the ContentManager starts to read "Texture.xnb".
// --> ZIP entries need to be copied into a temporary memory stream.
var zipEntry = _zipFile[path];
if (zipEntry != null && !zipEntry.IsDirectory)
{
string password = (PasswordCallback != null) ? PasswordCallback(path) : null;
// Extract ZIP entry to memory.
var uncompressedStream = new MemoryStream((int)zipEntry.UncompressedSize);
zipEntry.ExtractWithPassword(uncompressedStream, password);
// Reset memory stream for reading.
uncompressedStream.Position = 0;
return uncompressedStream;
}
return null;
}
}
#endregion
}
}
| {
"pile_set_name": "Github"
} |
BT=${BT-../../bin/bedtools}
check()
{
if diff $1 $2; then
echo ok
else
echo fail
fi
}
###########################################################
###########################################################
# BAM files #
###########################################################
###########################################################
samtools view -Sb one_block.sam > one_block.bam 2>/dev/null
samtools view -Sb two_blocks.sam > two_blocks.bam 2>/dev/null
samtools view -Sb three_blocks.sam > three_blocks.bam 2>/dev/null
samtools view -Sb sam-w-del.sam > sam-w-del.bam 2>/dev/null
##################################################################
# Test three blocks without -split
##################################################################
echo " genomecov.t1...\c"
echo \
"chr1 0 50 1" > exp
$BT genomecov -ibam three_blocks.bam -bg > obs
check obs exp
rm obs exp
##################################################################
# Test three blocks with -split
##################################################################
echo " genomecov.t2...\c"
echo \
"chr1 0 10 1
chr1 20 30 1
chr1 40 50 1" > exp
$BT genomecov -ibam three_blocks.bam -bg -split > obs
check obs exp
rm obs exp
##################################################################
# Test three blocks with -split and -bga
##################################################################
echo " genomecov.t3...\c"
echo \
"chr1 0 10 1
chr1 10 20 0
chr1 20 30 1
chr1 30 40 0
chr1 40 50 1
chr1 50 1000 0" > exp
$BT genomecov -ibam three_blocks.bam -bga -split > obs
check obs exp
rm obs exp
##################################################################
# Test blocked BAM from multiple files w/ -bga and w/o -split
##################################################################
echo " genomecov.t4...\c"
echo \
"chr1 0 30 3
chr1 30 40 2
chr1 40 50 1
chr1 50 1000 0" > exp
samtools merge -f /dev/stdout *block*.bam | $BT genomecov -ibam - -bga > obs
check obs exp
rm obs exp
##################################################################
# Test blocked BAM from multiple files w/ -bga and w -split
##################################################################
echo " genomecov.t5...\c"
echo \
"chr1 0 10 3
chr1 10 15 2
chr1 15 20 1
chr1 20 25 2
chr1 25 30 3
chr1 30 50 1
chr1 50 1000 0" > exp
samtools merge -f /dev/stdout *block*.bam | $BT genomecov -ibam - -bga -split > obs
check obs exp
rm obs exp
##################################################################
# Test three blocks with -split and -dz
##################################################################
echo " genomecov.t6...\c"
echo \
"chr1 0 1
chr1 1 1
chr1 2 1
chr1 3 1
chr1 4 1
chr1 5 1
chr1 6 1
chr1 7 1
chr1 8 1
chr1 9 1
chr1 20 1
chr1 21 1
chr1 22 1
chr1 23 1
chr1 24 1
chr1 25 1
chr1 26 1
chr1 27 1
chr1 28 1
chr1 29 1
chr1 40 1
chr1 41 1
chr1 42 1
chr1 43 1
chr1 44 1
chr1 45 1
chr1 46 1
chr1 47 1
chr1 48 1
chr1 49 1" > exp
$BT genomecov -ibam three_blocks.bam -dz -split > obs
check obs exp
rm obs exp
##################################################################
# Test SAM with 1bp D operator
##################################################################
echo " genomecov.t7...\c"
echo \
"chr1 0 10 1
chr1 11 21 1" > exp
$BT genomecov -ibam sam-w-del.bam -bg > obs
check obs exp
rm obs exp
rm *.bam | {
"pile_set_name": "Github"
} |
{
"data": [
{
"id": "100000000000001",
"name": "Like Name1"
},
{
"id": "100000000000002",
"name": "Like Name2"
},
{
"id": "100000000000003",
"name": "Like Name3"
},
{
"id": "100000000000004",
"name": "Like Name4"
},
{
"id": "100000000000005",
"name": "Like Name5"
}
],
"paging": {"cursors": {
"after": "MTAwMDAwMzI1Mzk4NzAw",
"before": "MTAwMDAwMTg5OTc1Mjg4"
}}
} | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="fCJ-sl-Qkf">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Use Storyboard Content View Controller-->
<scene sceneID="pX4-1U-EeQ">
<objects>
<viewController id="fCJ-sl-Qkf" customClass="UseStoryboardContentViewController" customModule="Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="KbK-B1-rGO">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" contentInsetAdjustmentBehavior="never" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="IfY-aS-ALn">
<rect key="frame" x="0.0" y="20" width="375" height="647"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="Cell" id="O3E-re-0RS" customClass="TableViewCell" customModule="Example" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="O3E-re-0RS" id="FNI-cV-WK6">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PaS-bm-OZo">
<rect key="frame" x="166.5" y="11.5" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.99999600649999998" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.0048598507420000003" green="0.096086271109999996" blue="0.57499289509999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="PaS-bm-OZo" firstAttribute="centerX" secondItem="FNI-cV-WK6" secondAttribute="centerX" id="6H4-ia-Qtz"/>
<constraint firstItem="PaS-bm-OZo" firstAttribute="centerY" secondItem="FNI-cV-WK6" secondAttribute="centerY" id="uIP-3H-GqC"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="label" destination="PaS-bm-OZo" id="DjL-v4-2PT"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="fCJ-sl-Qkf" id="qYj-sG-RWY"/>
<outlet property="delegate" destination="fCJ-sl-Qkf" id="Iic-u0-WX6"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="IfY-aS-ALn" firstAttribute="top" secondItem="o0z-pL-VXd" secondAttribute="top" id="SH1-Yr-OIj"/>
<constraint firstItem="IfY-aS-ALn" firstAttribute="leading" secondItem="o0z-pL-VXd" secondAttribute="leading" id="xaV-Jd-NZU"/>
<constraint firstItem="o0z-pL-VXd" firstAttribute="bottom" secondItem="IfY-aS-ALn" secondAttribute="bottom" id="yhN-qb-hcx"/>
<constraint firstItem="o0z-pL-VXd" firstAttribute="trailing" secondItem="IfY-aS-ALn" secondAttribute="trailing" id="zT5-e5-Ivi"/>
</constraints>
<viewLayoutGuide key="safeArea" id="o0z-pL-VXd"/>
</view>
<connections>
<outlet property="tableView" destination="IfY-aS-ALn" id="Rkp-8f-MN1"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="1CX-4f-rxN" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="31" y="134"/>
</scene>
</scenes>
</document>
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mashibing.mapper.WyIncomeDetailMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mashibing.bean.WyIncomeDetail">
<id column="id" property="id" />
<result column="charge_date" property="chargeDate" />
<result column="estate_id" property="estateId" />
<result column="income_project" property="incomeProject" />
<result column="income_money" property="incomeMoney" />
<result column="desc" property="desc" />
<result column="create_person" property="createPerson" />
<result column="create_date" property="createDate" />
<result column="update_person" property="updatePerson" />
<result column="update_date" property="updateDate" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, charge_date, estate_id, income_project, income_money, desc, create_person, create_date, update_person, update_date
</sql>
</mapper>
| {
"pile_set_name": "Github"
} |
package com.github.badoualy.telegram.tl.api.messages;
import com.github.badoualy.telegram.tl.TLContext;
import com.github.badoualy.telegram.tl.api.TLAbsChat;
import com.github.badoualy.telegram.tl.core.TLVector;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static com.github.badoualy.telegram.tl.StreamUtils.readInt;
import static com.github.badoualy.telegram.tl.StreamUtils.readTLVector;
import static com.github.badoualy.telegram.tl.StreamUtils.writeInt;
import static com.github.badoualy.telegram.tl.StreamUtils.writeTLVector;
import static com.github.badoualy.telegram.tl.TLObjectUtils.SIZE_CONSTRUCTOR_ID;
import static com.github.badoualy.telegram.tl.TLObjectUtils.SIZE_INT32;
/**
* @author Yannick Badoual [email protected]
* @see <a href="http://github.com/badoualy/kotlogram">http://github.com/badoualy/kotlogram</a>
*/
public class TLChatsSlice extends TLAbsChats {
public static final int CONSTRUCTOR_ID = 0x9cd81144;
protected int count;
private final String _constructor = "messages.chatsSlice#9cd81144";
public TLChatsSlice() {
}
public TLChatsSlice(int count, TLVector<TLAbsChat> chats) {
this.count = count;
this.chats = chats;
}
@Override
public void serializeBody(OutputStream stream) throws IOException {
writeInt(count, stream);
writeTLVector(chats, stream);
}
@Override
@SuppressWarnings({"unchecked", "SimplifiableConditionalExpression"})
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
count = readInt(stream);
chats = readTLVector(stream, context);
}
@Override
public int computeSerializedSize() {
int size = SIZE_CONSTRUCTOR_ID;
size += SIZE_INT32;
size += chats.computeSerializedSize();
return size;
}
@Override
public String toString() {
return _constructor;
}
@Override
public int getConstructorId() {
return CONSTRUCTOR_ID;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public TLVector<TLAbsChat> getChats() {
return chats;
}
public void setChats(TLVector<TLAbsChat> chats) {
this.chats = chats;
}
}
| {
"pile_set_name": "Github"
} |
//
// MySecondViewController.m
// MyFirstProject
//
// Created by yuichi.takeda on 1/17/15.
// Copyright (c) 2015 mixi, Inc. All rights reserved.
//
#import "MySecondViewController.h"
@interface MySecondViewController ()
@end
@implementation MySecondViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)buttonTapped:(id)sender {
[self.delegate secondViewControllerButtonTapped];
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
| {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: bea62e1faac8f9a48a4cb919ea05cb6a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
| {
"pile_set_name": "Github"
} |
<?xml version="1.0"?>
<!--Phoronix Test Suite v8.4.0m3-->
<PhoronixTestSuite>
<ResultsParser>
<OutputTemplate> mean #_RESULT_#
min #_MIN_RESULT_#
max #_MAX_RESULT_#</OutputTemplate>
</ResultsParser>
<ExtraData>
<Identifier>csv-individual-frame-times</Identifier>
</ExtraData>
</PhoronixTestSuite>
| {
"pile_set_name": "Github"
} |
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="../dist/esb.min.css">
<link rel="stylesheet" href="../css/esb-documentation.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="prism.css">
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="../dist/esb.min.js"></script>
<script src="prism.min.js"></script>
<script>
// simple script to delay positioning of anchor elements
if (window.location.hash) {
setTimeout(function(){
var targetId = window.location.hash.slice(1);
var target = document.getElementById(targetId);
if (target !== null) {
var topOfTarget = target.getBoundingClientRect().top;
window.scrollTo(0, topOfTarget + document.body.scrollTop);
}
}, 1000);
}
</script>
</head>
<body>
<div class="esb-documentation-wrap">
<h1>ESB Component Frame Examples</h1>
<div class="row">
<div class="col-md-7">
<p>
The following examples show how Frame can be used in conjunction with Include. Refer to the <a href="http://eightshapes.github.io/Blocks/wiki-examples/esb-frame-component-setup.html">ESB Include Frame Setup Doc</a> to get Include Frame working in your project.
</p>
</div>
</div>
<h2>Loading an Include in a Frame</h2>
<div class="row">
<div class="col-md-5">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default"></div>
</div>
<div class="col-md-7">
<p>
To frame a component, specify the component name for the <code>data-esb-frame</code> attribute and add a <code>data-esb-variation</code> attribute to specify the variation.
</p>
<p>
By default components are rendered at 100% scale and the Frame will be sized to fit the component's width and height.
</p>
<pre class="language-markup line-numbers">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"></div></code>
</pre>
</div>
</div>
<h2>Title, Caption, & Dimensions Annotation</h2>
<div class="row">
<div class="col-md-5">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-title="Newsletter Component" data-esb-caption="This is a cool component!" data-esb-dimensions="false"></div>
</div>
<div class="col-md-7">
<p>
Title and Caption elements can be applied by using the <code>data-esb-title</code> and <code>data-esb-caption</code> attributes respectively.
</p>
<p>
The default dimensions annotation can be disabled by specifying <code>data-esb-dimensions="false"</code>
</p>
<pre class="language-markup line-numbers" data-line="3-5">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-title="Newsletter Component"
data-esb-caption="This is a cool component!"
data-esb-dimensions="false"
></div></code>
</pre>
</div>
</div>
<h2>Frame Links</h2>
<div class="row">
<div class="col-md-5">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-href="http://example.com" data-esb-title="Linked to Example.com"></div>
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-href="false" data-esb-title="No Link"></div>
</div>
<div class="col-md-7">
<p>
By default the Frame will be linked to the Include Frame Template (essentially a basic html page that renders the component). You can override this behavior by passing in a different url for <code>data-esb-href</code>.
</p>
<p>
You can disable the linked behavior by specifiying <code>data-esb-href="false"</code>.
</p>
<pre class="language-markup line-numbers" data-line="4, 10">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-title="Linked to Example.com"
data-esb-href="http://example.com"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-title="No Link"
data-esb-href="false"
></div></code>
</pre>
</div>
</div>
<h2>Changing the viewport</h2>
<div class="row">
<div class="col-md-5">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-viewport-width="320"></div>
</div>
<div class="col-md-7">
<p>
If you need to demonstrate responsive behavior of a component you can change the viewport of the frame using the <code>data-viewport-width</code> attribute.
</p>
<p>
In this example the button on the newsletter sign up form goes full width and the header reduces its font size at 320px and below.
</p>
<pre class="language-markup line-numbers" data-line="3">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-viewport-width="320"
></div></code>
</pre>
</div>
</div>
<h2>Cropping the Frame</h2>
<div class="row">
<div class="col-md-5">
<div class="row">
<div class="col-md-6">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-width="150" data-esb-height="150" data-esb-crop="true"></div>
</div>
<div class="col-md-6">
<div data-esb-frame="newsletter-subscription" data-esb-variation="red" data-esb-width="200" data-esb-height="150" data-esb-crop="true"></div>
</div>
<div class="col-md-6">
<div data-esb-frame="newsletter-subscription" data-esb-variation="blue" data-esb-width="150" data-esb-height="200" data-esb-crop="true"></div>
</div>
<div class="col-md-6">
<div data-esb-frame="newsletter-subscription" data-esb-variation="green" data-esb-width="200" data-esb-height="200" data-esb-crop="true"></div>
</div>
</div>
</div>
<div class="col-md-7">
<p>
If you're displaying a gallery of components and would like to show several small multiples you can use cropping to show just a relevant portion of each component.
</p>
<p>
Cropping works by setting <code>data-width</code> and <code>data-height</code> to values smaller than than the component's default size and adding <code>data-esb-crop="true"</code> to the Frame.
</p>
<pre class="language-markup line-numbers" data-line="3-5, 10-12, 17-19, 24-26">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-width="150"
data-esb-height="150"
data-esb-crop="true"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="red"
data-esb-width="200"
data-esb-height="150"
data-esb-crop="true"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="blue"
data-esb-width="150"
data-esb-height="200"
data-esb-crop="true"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="green"
data-esb-width="200"
data-esb-height="200"
data-esb-crop="true"
></div></code>
</pre>
</div>
</div>
<h2>Scaling the Frame</h2>
<div class="row">
<div class="col-md-5">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-scale="0.33"></div>
<div data-esb-frame="newsletter-subscription" data-esb-variation="green" data-esb-scale="0.33"></div>
<div data-esb-frame="newsletter-subscription" data-esb-variation="red" data-esb-scale="0.33"></div>
<div data-esb-frame="newsletter-subscription" data-esb-variation="blue" data-esb-scale="0.33"></div>
</div>
<div class="col-md-7">
<p>
Components can be displayed at less than 100% scale by setting <code>data-esb-scale</code> to a value less than 1. This is an additional way to create small multiples
</p>
<pre class="language-markup line-numbers" data-line="3, 8, 13, 18, 23">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-scale="0.33"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="green"
data-esb-scale="0.33"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="red"
data-esb-scale="0.33"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="blue"
data-esb-scale="0.33"
></div></code>
</pre>
</div>
</div>
<h2>Frame Offset</h2>
<div class="row">
<div class="col-md-5">
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-offset-x="10" data-esb-offset-y="10" data-esb-width="200" data-esb-height="200" data-esb-crop="true"></div>
<div data-esb-frame="newsletter-subscription" data-esb-variation="default" data-esb-offset-x="10" data-esb-offset-y="100" data-esb-width="200" data-esb-height="200" data-esb-crop="true"></div>
</div>
<div class="col-md-7">
<p>
You can specify a vertical and horizontal offset for the Frame. If no width and height are specified for the Frame, then the Frame's background (default: gray) will appear in the empty space.
</p>
<p>
<code>data-esb-offset-x</code> will shift the component left by the number of pixels specified and <code>data-esb-offset-y</code> will shift the component up by the number of pixels specified.
</p>
<p>
Combining offsets with cropping can create some interesting views of each component.
</p>
<pre class="language-markup line-numbers" data-line="3-4, 12-13">
<code>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-offset-x="10"
data-esb-offset-y="10"
data-esb-width="200"
data-esb-height="200"
data-esb-crop="true"
></div>
<div data-esb-frame="newsletter-subscription"
data-esb-variation="default"
data-esb-offset-x="10"
data-esb-offset-y="100"
data-esb-width="200"
data-esb-height="200"
data-esb-crop="true"
></div></code>
</pre>
</div>
</div>
</div>
</body>
</html> | {
"pile_set_name": "Github"
} |
import csv
import logging
import ntpath
import re
import sys
from uuid import UUID
from django.conf import settings
from django.contrib.auth.hashers import make_password
from django.core.exceptions import ValidationError
from django.core.management.base import CommandError
from django.utils import translation
from django.utils.translation import gettext_lazy as _
from django.utils.translation import pgettext_lazy
from kolibri.core.auth.constants import role_kinds
from kolibri.core.auth.constants.collection_kinds import CLASSROOM
from kolibri.core.auth.constants.demographics import choices
from kolibri.core.auth.constants.demographics import DEFERRED
from kolibri.core.auth.models import Classroom
from kolibri.core.auth.models import Facility
from kolibri.core.auth.models import FacilityUser
from kolibri.core.auth.models import Membership
from kolibri.core.tasks.management.commands.base import AsyncCommand
from kolibri.core.tasks.utils import get_current_job
try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError
logger = logging.getLogger(__name__)
# TODO: decide whether these should be internationalized
fieldnames = (
"UUID",
"USERNAME",
"PASSWORD",
"FULL_NAME",
"USER_TYPE",
"IDENTIFIER",
"BIRTH_YEAR",
"GENDER",
"ENROLLED_IN",
"ASSIGNED_TO",
)
# These constants must be entered vertbatim in the CSV
roles_map = {
"LEARNER": None,
"ADMIN": role_kinds.ADMIN,
"FACILITY_COACH": role_kinds.COACH,
"CLASS_COACH": role_kinds.ASSIGNABLE_COACH,
}
# Error messages ###
UNEXPECTED_EXCEPTION = 0
TOO_LONG = 1
INVALID = 2
DUPLICATED_USERNAME = 3
INVALID_USERNAME = 4
REQUIRED_COLUMN = 5
INVALID_HEADER = 6
NO_FACILITY = 7
FILE_READ_ERROR = 8
FILE_WRITE_ERROR = 9
REQUIRED_PASSWORD = 10
NON_EXISTENT_UUID = 11
INVALID_UUID = 12
MESSAGES = {
UNEXPECTED_EXCEPTION: pgettext_lazy(
"Error message that might appear when there's a programming error importing a CSV file",
"Unexpected error [{}]: {}",
),
TOO_LONG: pgettext_lazy(
"Error when the command is executed in the Terminal (command prompt)",
"Value in column '{}' has too many characters",
),
INVALID: _("Invalid value in column '{}'"),
DUPLICATED_USERNAME: _("Username is duplicated"),
INVALID_USERNAME: _(
"Username only can contain characters, numbers and underscores"
),
REQUIRED_COLUMN: pgettext_lazy(
"Error message indicating that the CSV file selected for import is missing a required column",
"The column '{}' is required",
),
INVALID_HEADER: pgettext_lazy(
"Error message indicating that one column header in the CSV file selected for import is missing or incorrect",
"Invalid header label found in the first row",
),
NO_FACILITY: pgettext_lazy(
"Error when the command is executed in the Terminal (command prompt)",
"No default facility exists. Make sure to set up a facility on the device before importing users and classes",
),
FILE_READ_ERROR: _("Error trying to read csv file: {}"),
FILE_WRITE_ERROR: _("Error trying to write csv file: {}"),
REQUIRED_PASSWORD: _(
"The password field is required. To leave the password unchanged in existing users, insert an asterisk (*)"
),
NON_EXISTENT_UUID: _(
"Cannot update user with ID: '{}' because no user with that database ID exists in this facility"
),
INVALID_UUID: _("Database ID is not valid"),
}
# Validators ###
def number_range(min, max, allow_null=False):
"""
Return a value check function which raises a ValueError if the supplied
value is less than `min` or greater than `max`.
"""
def checker(v):
if v == DEFERRED:
return checker
if allow_null and not v:
return None
if v is None or (int(v) < min or int(v) > max):
raise ValueError(v)
return checker
def not_empty():
"""
Return a value check function which raises a ValueError if the supplied
value is None or an empty string
"""
def checker(v):
if v is None:
raise ValueError(v)
if len(v) == 0:
raise ValueError(v)
return checker
def value_length(length, allow_null=False, multiple=False):
"""
Return a value check function which raises a ValueError if the supplied
value has a length greater than 'length'
If null is not True raises a ValueError if the supplied value is None.
If multiple is True it checks the length of each of the separated by commas value
"""
def checker(v):
def check_single_value(v):
if v is None or len(v) > length:
raise ValueError(v)
if v == DEFERRED:
return checker
if allow_null and v is None:
return None
if multiple:
values = v.split(",")
for value in values:
check_single_value(value)
else:
check_single_value(v)
return checker
def valid_uuid(allow_null=True):
"""
Return a value check function which raises a ValueError if the supplied
value is ot a valid uuid
"""
def checker(v):
if allow_null and (v is None or v == ""):
return None
try:
UUID(v).version
except (ValueError, TypeError):
raise ValueError(v)
return checker
def enumeration(*args):
"""
Return a value check function which raises a ValueError if the value (case
insensitive) is not in the enumeration of values provided by args.
"""
if len(args) == 1:
# assume the first argument defines the membership
members = args[0].lower()
else:
members = tuple(map(str.lower, args))
def checker(value):
if value == DEFERRED:
return checker
if value.lower() not in members:
raise ValueError(value)
return checker
def valid_name(username=True, allow_null=False):
"""
Return a value check function which raises a ValueError if the value has
some of the punctuaction chars that are not allowed.
If username is False it allows spaces, slashes and hyphens.
If null is not True raises a ValueError if the supplied value is None.
"""
def checker(v):
if allow_null and v is None:
return checker
if v is None:
raise ValueError(v)
has_punc = "[\s`~!@#$%^&*()\-+={}\[\]\|\\\/:;\"'<>,\.\?]" # noqa
if not username:
has_punc = "[`~!@#$%^&*()\+={}\[\]\|\\\/:;\"'<>\.\?]" # noqa
if re.search(has_punc, v):
raise ValueError(v)
return checker
def reverse_dict(original):
"""
Returns a dictionary based on an original dictionary
where previous keys are values and previous values pass
to be the keys
"""
final = {}
for k, value in original.items():
if type(value) == list:
for v in value:
final.setdefault(v, []).append(k)
else:
final.setdefault(value, []).append(k)
return final
class Validator(object):
"""
Class to apply different validation checks on a CSV data reader.
"""
def __init__(self, header_translation):
self._checks = list()
self.classrooms = dict()
self.coach_classrooms = dict()
self.users = dict()
self.header_translation = header_translation
self.roles = {r: list() for r in roles_map.values() if r is not None}
def add_check(self, header_name, check, message):
"""
Add a header check, i.e., check whether the header record is consistent
with the expected field names.
`header_name` - name of the header for the column to be checked
`check`- function to be used as validator of the values in the column
`message` - problem message to report if a value is not valid
"""
self._checks.append((header_name, check, message))
def get_username(self, row):
username = row.get(self.header_translation["USERNAME"])
if username in self.users.keys():
return None
return username
def check_classroom(self, row, username):
def append_users(class_list, key):
class_list_normalized = {c.lower(): c for c in class_list.keys()}
try:
classes_list = [c.strip() for c in row.get(key, None).split(",")]
for classroom in classes_list:
if not classroom:
continue
if classroom.lower() in class_list_normalized:
classroom_real_name = class_list_normalized[classroom.lower()]
class_list[classroom_real_name].append(username)
else:
class_list[classroom] = [username]
class_list_normalized[classroom.lower()] = classroom
except AttributeError:
# there are not members of 'key'
pass
# enrolled learners:
append_users(self.classrooms, self.header_translation["ENROLLED_IN"])
# assigned coaches
user_role = row.get(self.header_translation["USER_TYPE"], "LEARNER").upper()
if user_role != "LEARNER":
# a student can't be assigned to coach a classroom
append_users(self.coach_classrooms, self.header_translation["ASSIGNED_TO"])
self.roles[roles_map[user_role]].append(username)
def validate(self, data):
"""
Validate `data` and return an iterator over errors found.
"""
for index, row in enumerate(data):
error_flag = False
username = self.get_username(row)
if not username:
error = {
"row": index + 1,
"message": MESSAGES[DUPLICATED_USERNAME],
"field": "USERNAME",
"value": row.get(self.header_translation["USERNAME"]),
}
error_flag = True
yield error
for header_name, check, message in self._checks:
value = row[self.header_translation[header_name]]
try:
check(value)
except ValueError:
error = {
"row": index + 1,
"message": message,
"field": header_name,
"value": value,
}
error_flag = True
yield error
except Exception as e:
error = {
"row": index + 1,
"message": MESSAGES[UNEXPECTED_EXCEPTION].format(
(e.__class__.__name__, e)
),
"field": header_name,
"value": value,
}
error_flag = True
yield error
# if there aren't any errors, let's add the user and classes
if not error_flag:
self.check_classroom(row, username)
row["position"] = index + 1
self.users[username] = row
class Command(AsyncCommand):
def add_arguments(self, parser):
parser.add_argument(
"filepath", action="store", type=str, help="Path to CSV file."
)
parser.add_argument(
"--facility",
action="store",
type=str,
help="Facility id to import the users into",
)
parser.add_argument(
"--dryrun",
action="store_true",
help="Validate data without doing actual database updates",
)
parser.add_argument(
"--delete",
action="store_true",
help="Delete all users in the facility not included in this import (excepting actual user)",
)
parser.add_argument(
"--userid",
action="store",
type=str,
default=None,
help="Id of the user executing the command, it will not be deleted in case deleted is set",
)
parser.add_argument(
"--locale",
action="store",
type=str,
default=None,
help="Code of the language for the messages to be translated",
)
parser.add_argument(
"--errorlines",
action="store",
type=str,
default=None,
help="File to store errors output (to be used in internal tests only)",
)
def csv_values_validation(self, reader, header_translation):
per_line_errors = []
validator = Validator(header_translation)
validator.add_check("UUID", valid_uuid(), MESSAGES[INVALID_UUID])
validator.add_check(
"FULL_NAME", value_length(125), MESSAGES[TOO_LONG].format("FULL_NAME")
)
validator.add_check(
"BIRTH_YEAR",
number_range(1900, 99999, allow_null=True),
MESSAGES[INVALID].format("BIRTH_YEAR"),
)
validator.add_check(
"USERNAME", value_length(125), MESSAGES[TOO_LONG].format("USERNAME")
)
validator.add_check("USERNAME", valid_name(), MESSAGES[INVALID_USERNAME])
validator.add_check(
"USERNAME", not_empty(), MESSAGES[REQUIRED_COLUMN].format("USERNAME")
)
validator.add_check(
"PASSWORD", value_length(128), MESSAGES[TOO_LONG].format("PASSWORD")
)
validator.add_check("PASSWORD", not_empty(), MESSAGES[REQUIRED_PASSWORD])
validator.add_check(
"USER_TYPE",
enumeration(*roles_map.keys()),
MESSAGES[INVALID].format("USER_TYPE"),
)
validator.add_check(
"GENDER",
enumeration("", *tuple(str(val[0]) for val in choices)),
MESSAGES[INVALID].format("GENDER"),
)
validator.add_check(
"IDENTIFIER", value_length(64), MESSAGES[TOO_LONG].format("IDENTIFIER")
)
validator.add_check(
"ENROLLED_IN",
value_length(50, allow_null=True, multiple=True),
MESSAGES[TOO_LONG].format("Class name"),
)
validator.add_check(
"ASSIGNED_TO",
value_length(50, allow_null=True, multiple=True),
MESSAGES[TOO_LONG].format("Class name"),
)
row_errors = validator.validate(reader)
for err in row_errors:
per_line_errors.append(err)
# cleaning classes names:
normalized_learner_classroooms = {c.lower(): c for c in validator.classrooms}
coach_classrooms = [cl for cl in validator.coach_classrooms]
for classroom in coach_classrooms:
normalized_name = classroom.lower()
if normalized_name in normalized_learner_classroooms:
real_name = normalized_learner_classroooms[normalized_name]
if classroom != real_name:
validator.coach_classrooms[
real_name
] = validator.coach_classrooms.pop(classroom)
return (
per_line_errors,
(validator.classrooms, validator.coach_classrooms),
validator.users,
validator.roles,
)
def csv_headers_validation(self, filepath):
# open using default OS encoding
with open(filepath) as f:
header = next(csv.reader(f, strict=True))
has_header = False
self.header_translation = {
lbl.partition("(")[2].partition(")")[0]: lbl for lbl in header
}
neutral_header = self.header_translation.keys()
# If every item in the first row matches an item in the fieldnames, consider it a header row
if all(col in fieldnames for col in neutral_header):
has_header = True
# If any col is missing from the header, it's an error
for col in fieldnames:
if col not in neutral_header:
self.overall_error.append(MESSAGES[REQUIRED_COLUMN].format(col))
elif any(col in fieldnames for col in neutral_header):
self.overall_error.append(MESSAGES[INVALID_HEADER])
return has_header
def get_field_values(self, user_row):
password = user_row.get(self.header_translation["PASSWORD"], None)
if password != "*":
password = make_password(password)
else:
password = None
gender = user_row.get(self.header_translation["GENDER"], "").strip().upper()
gender = "" if gender == DEFERRED else gender
birth_year = (
user_row.get(self.header_translation["BIRTH_YEAR"], "").strip().upper()
)
birth_year = "" if birth_year == DEFERRED else birth_year
id_number = (
user_row.get(self.header_translation["IDENTIFIER"], "").strip().upper()
)
id_number = "" if id_number == DEFERRED else id_number
full_name = user_row.get(self.header_translation["FULL_NAME"], None)
return {
"uuid": user_row.get(self.header_translation["UUID"], ""),
"username": user_row.get(self.header_translation["USERNAME"], ""),
"password": password,
"gender": gender,
"birth_year": birth_year,
"id_number": id_number,
"full_name": full_name,
}
def compare_fields(self, user_obj, values):
changed = False
for field in values:
if field == "uuid":
continue # uuid can't be updated
if field != "password" or values["password"] is not None:
if getattr(user_obj, field) != values[field]:
changed = True
setattr(user_obj, field, values[field])
return changed
def build_users_objects(self, users):
new_users = list()
update_users = list()
keeping_users = list()
per_line_errors = list()
users_uuid = [
u[self.header_translation["UUID"]]
for u in users.values()
if u[self.header_translation["UUID"]] != ""
]
existing_users = (
FacilityUser.objects.filter(facility=self.default_facility)
.filter(id__in=users_uuid)
.values_list("id", flat=True)
)
# creating the users takes half of the time
progress = (100 / self.number_lines) * 0.5
for user in users:
self.progress_update(progress)
user_row = users[user]
values = self.get_field_values(user_row)
if values["uuid"] in existing_users:
user_obj = FacilityUser.objects.get(
id=values["uuid"], facility=self.default_facility
)
keeping_users.append(user_obj)
if user_obj.username != user:
# check for duplicated username in the facility
existing_user = FacilityUser.objects.get(
username=user, facility=self.default_facility
)
if existing_user:
error = {
"row": users[user]["position"],
"username": user,
"message": MESSAGES[DUPLICATED_USERNAME],
"field": "USERNAME",
"value": user,
}
per_line_errors.append(error)
continue
if self.compare_fields(user_obj, values):
update_users.append(user_obj)
else:
if values["uuid"] != "":
error = {
"row": users[user]["position"],
"username": user,
"message": MESSAGES[NON_EXISTENT_UUID].format(user),
"field": "PASSWORD",
"value": "*",
}
per_line_errors.append(error)
elif not values["password"]:
error = {
"row": users[user]["position"],
"username": user,
"message": MESSAGES[REQUIRED_PASSWORD],
"field": "PASSWORD",
"value": "*",
}
per_line_errors.append(error)
else:
user_obj = FacilityUser(
username=user, facility=self.default_facility
)
# user_obj.id = user_obj.calculate_uuid() # Morango does not work properly with this
for field in values:
if values[field]:
setattr(user_obj, field, values[field])
new_users.append(user_obj)
return (new_users, update_users, keeping_users, per_line_errors)
def db_validate_list(self, db_list, users=False):
errors = []
# validating the users takes aprox 40% of the time
if users:
progress = (
(100 / self.number_lines) * 0.4 * (len(db_list) / self.number_lines)
)
for obj in db_list:
if users:
self.progress_update(progress)
try:
obj.full_clean()
except ValidationError as e:
for message in e.message_dict:
error = {
"row": str(obj),
"message": e.message_dict[message][0],
"field": message,
"value": vars(obj)[message],
}
errors.append(error)
return errors
def build_classes_objects(self, classes):
"""
Using current database info, builds the list of classes to be
updated or created.
It also returns an updated classes list, using the case insensitive
names of the classes that were already in the database
`classes` - Tuple containing two dictionaries: enrolled classes + assigned classes
Returns:
new_classes - List of database objects of classes to be created
update_classes - List of database objects of classes to be updated
fixed_classes - Same original classes tuple, but with the names normalized
"""
new_classes = list()
update_classes = list()
total_classes = set([k for k in classes[0]] + [v for v in classes[1]])
existing_classes = (
Classroom.objects.filter(parent=self.default_facility)
# .filter(name__in=total_classes) # can't be done if classes names are case insensitive
.values_list("name", flat=True)
)
normalized_name_existing = {c.lower(): c for c in existing_classes}
for classroom in total_classes:
if classroom.lower() in normalized_name_existing:
real_name = normalized_name_existing[classroom.lower()]
class_obj = Classroom.objects.get(
name=real_name, parent=self.default_facility
)
update_classes.append(class_obj)
if real_name != classroom:
if classroom in classes[0]:
classes[0][real_name] = classes[0].pop(classroom)
if classroom in classes[1]:
classes[1][real_name] = classes[1].pop(classroom)
else:
class_obj = Classroom(name=classroom, parent=self.default_facility)
class_obj.id = class_obj.calculate_uuid()
new_classes.append(class_obj)
self.progress_update(1)
return (new_classes, update_classes, classes)
def get_facility(self, options):
if options["facility"]:
default_facility = Facility.objects.get(pk=options["facility"])
else:
default_facility = Facility.get_default_facility()
if not default_facility:
self.overall_error.append(MESSAGES[NO_FACILITY])
raise CommandError(self.overall_error[-1])
return default_facility
def get_number_lines(self, filepath):
try:
with open(filepath) as f:
number_lines = len(f.readlines())
except (ValueError, FileNotFoundError, csv.Error) as e:
number_lines = None
self.overall_error.append(MESSAGES[FILE_READ_ERROR].format(e))
return number_lines
def get_delete(self, options, keeping_users, update_classes):
if not options["delete"]:
return ([], [])
users_not_to_delete = [u.id for u in keeping_users]
admins = self.default_facility.get_admins()
users_not_to_delete += admins.values_list("id", flat=True)
if options["userid"]:
users_not_to_delete.append(options["userid"])
users_to_delete = FacilityUser.objects.filter(
facility=self.default_facility
).exclude(id__in=users_not_to_delete)
# Classes not included in the csv will be cleared of users,
# but not deleted to keep possible lessons and quizzes created for them:
classes_not_to_clear = [c.id for c in update_classes]
classes_to_clear = (
Classroom.objects.filter(parent=self.default_facility)
.exclude(id__in=classes_not_to_clear)
.values_list("id", flat=True)
)
return (users_to_delete, classes_to_clear)
def delete_users(self, users):
for user in users:
user.delete(hard_delete=True)
def clear_classes(self, classes):
for classroom in classes:
Membership.objects.filter(collection=classroom).delete()
def get_user(self, username, users):
user = users.get(username, None)
if not user: # the user has not been created nor updated:
user = FacilityUser.objects.get(
username=username, facility=self.default_facility
)
return user
def add_classes_memberships(self, classes, users, db_classes):
enrolled = classes[0]
assigned = classes[1]
classes = {k.name: k for k in db_classes}
for classroom in enrolled:
db_class = classes[classroom]
for username in enrolled[classroom]:
# db validation might have rejected a csv validated user:
if username in users:
user = self.get_user(username, users)
if not user.is_member_of(db_class):
db_class.add_member(user)
for classroom in assigned:
db_class = classes[classroom]
for username in assigned[classroom]:
# db validation might have rejected a csv validated user:
if username in users:
user = self.get_user(username, users)
db_class.add_coach(user)
def add_roles(self, users, roles):
for role in roles.keys():
for username in roles[role]:
# db validation might have rejected a csv validated user:
if username in users:
user = self.get_user(username, users)
self.default_facility.add_role(user, role)
def exit_if_error(self):
if self.overall_error:
classes_report = {"created": 0, "updated": 0, "cleared": 0}
users_report = {"created": 0, "updated": 0, "deleted": 0}
if self.job:
self.job.extra_metadata["overall_error"] = self.overall_error
self.job.extra_metadata["per_line_errors"] = 0
self.job.extra_metadata["classes"] = classes_report
self.job.extra_metadata["users"] = users_report
self.job.extra_metadata["filename"] = ""
self.job.save_meta()
raise CommandError("File errors: {}".format(str(self.overall_error)))
sys.exit(1)
return
def remove_memberships(self, users, enrolled, assigned):
users_enrolled = reverse_dict(enrolled)
users_assigned = reverse_dict(assigned)
for user in users:
# enrolled:
to_remove = user.memberships.filter(collection__kind=CLASSROOM)
username = (
user.username
if sys.version_info[0] >= 3
else user.username.encode("utf-8")
)
if username in users_enrolled.keys():
to_remove.exclude(
collection__name__in=users_enrolled[username]
).delete()
else:
to_remove.delete()
# assigned:
to_remove = user.roles.filter(collection__kind=CLASSROOM)
if username in users_assigned.keys():
to_remove.exclude(
collection__name__in=users_assigned[username]
).delete()
else:
to_remove.delete()
def output_messages(
self, per_line_errors, classes_report, users_report, filepath, errorlines
):
# Show output error messages on loggers, job metadata or io errorlines for testing
# freeze message translations:
for line in per_line_errors:
line["message"] = str(line["message"])
self.overall_error = [str(msg) for msg in self.overall_error]
if self.job:
self.job.extra_metadata["overall_error"] = self.overall_error
self.job.extra_metadata["per_line_errors"] = per_line_errors
self.job.extra_metadata["classes"] = classes_report
self.job.extra_metadata["users"] = users_report
self.job.extra_metadata["filename"] = ntpath.basename(filepath)
self.job.save_meta()
else:
logger.info("File errors: {}".format(str(self.overall_error)))
logger.info("Data errors: {}".format(str(per_line_errors)))
logger.info("Classes report: {}".format(str(classes_report)))
logger.info("Users report: {}".format(str(users_report)))
if errorlines:
for line in per_line_errors:
errorlines.write(str(line))
errorlines.write("\n")
def handle_async(self, *args, **options):
# initialize stats data structures:
self.overall_error = []
db_new_classes = []
db_update_classes = []
classes_to_clear = []
db_new_users = []
db_update_users = []
users_to_delete = []
per_line_errors = []
# set language for the translation of the messages
locale = settings.LANGUAGE_CODE if not options["locale"] else options["locale"]
translation.activate(locale)
self.job = get_current_job()
filepath = options["filepath"]
self.default_facility = self.get_facility(options)
self.number_lines = self.get_number_lines(filepath)
self.exit_if_error()
with self.start_progress(total=100) as self.progress_update:
# validate csv headers:
has_header = self.csv_headers_validation(filepath)
if not has_header:
self.overall_error.append(MESSAGES[INVALID_HEADER])
self.exit_if_error()
self.progress_update(1) # state=csv_headers
try:
with open(filepath) as f:
reader = csv.DictReader(f, strict=True)
per_line_errors, classes, users, roles = self.csv_values_validation(
reader, self.header_translation
)
except (ValueError, FileNotFoundError, csv.Error) as e:
self.overall_error.append(MESSAGES[FILE_READ_ERROR].format(e))
self.exit_if_error()
(
db_new_users,
db_update_users,
keeping_users,
more_line_errors,
) = self.build_users_objects(users)
per_line_errors += more_line_errors
(
db_new_classes,
db_update_classes,
fixed_classes,
) = self.build_classes_objects(classes)
classes = fixed_classes
users_to_delete, classes_to_clear = self.get_delete(
options, keeping_users, db_update_classes
)
per_line_errors += self.db_validate_list(db_new_users, users=True)
per_line_errors += self.db_validate_list(db_update_users, users=True)
# progress = 91%
per_line_errors += self.db_validate_list(db_new_classes)
per_line_errors += self.db_validate_list(db_update_classes)
if not options["dryrun"]:
self.delete_users(users_to_delete)
# clear users from classes not included in the csv:
Membership.objects.filter(collection__in=classes_to_clear).delete()
# bulk_create and bulk_update are not possible with current Morango:
db_users = db_new_users + db_update_users
for user in db_users:
user.save()
# assign roles to users:
users_data = {u.username: u for u in db_users}
self.add_roles(users_data, roles)
db_created_classes = []
for classroom in db_new_classes:
created_class = Classroom.objects.create(
name=classroom.name, parent=classroom.parent
)
db_created_classes.append(created_class)
# hack to get ids created by Morango:
db_new_classes = db_created_classes
self.add_classes_memberships(
classes, users_data, db_new_classes + db_update_classes
)
self.remove_memberships(keeping_users, classes[0], classes[1])
classes_report = {
"created": len(db_new_classes),
"updated": len(db_update_classes),
"cleared": len(classes_to_clear),
}
users_report = {
"created": len(db_new_users),
"updated": len(db_update_users),
"deleted": len(users_to_delete),
}
self.output_messages(
per_line_errors,
classes_report,
users_report,
filepath,
options["errorlines"],
)
translation.deactivate()
| {
"pile_set_name": "Github"
} |
import { DefaultDOMElement } from 'substance'
import { Managed, OverlayCanvas } from '../../kit'
import EditorPanel from './EditorPanel'
import ManuscriptTOC from './ManuscriptTOC'
export default class ManuscriptEditor extends EditorPanel {
_initialize (props) {
super._initialize(props)
this._model = this.context.api.getArticleModel()
}
getActionHandlers () {
return {
'acquireOverlay': this._acquireOverlay,
'releaseOverlay': this._releaseOverlay
}
}
didMount () {
super.didMount()
this._showHideTOC()
this._restoreViewport()
DefaultDOMElement.getBrowserWindow().on('resize', this._showHideTOC, this)
this.context.editorSession.setRootComponent(this._getContentPanel())
}
didUpdate () {
super.didUpdate()
this._showHideTOC()
this._restoreViewport()
}
dispose () {
super.dispose()
DefaultDOMElement.getBrowserWindow().off(this)
}
render ($$) {
let el = $$('div').addClass('sc-manuscript-editor')
// sharing styles with sc-article-reader
.addClass('sc-manuscript-view')
el.append(
this._renderMainSection($$),
this._renderContextPane($$)
)
el.on('keydown', this._onKeydown)
return el
}
_renderMainSection ($$) {
const appState = this.context.editorState
let mainSection = $$('div').addClass('se-main-section')
mainSection.append(
this._renderToolbar($$),
$$('div').addClass('se-content-section').append(
this._renderTOCPane($$),
this._renderContentPanel($$)
// TODO: this component has always the same structure and should preserve all elements, event without ref
).ref('contentSection'),
this._renderFooterPane($$)
)
if (appState.workflowId) {
mainSection.append(
this._renderWorkflow($$, appState.workflowId)
)
}
return mainSection
}
_renderTOCPane ($$) {
let el = $$('div').addClass('se-toc-pane').ref('tocPane')
el.append(
$$('div').addClass('se-context-pane-content').append(
$$(ManuscriptTOC, { model: this._model })
)
)
return el
}
_renderToolbar ($$) {
const Toolbar = this.getComponent('toolbar')
const configurator = this._getConfigurator()
const items = configurator.getToolPanel('toolbar', true)
return $$('div').addClass('se-toolbar-wrapper').append(
$$(Managed(Toolbar), {
items,
bindings: ['commandStates']
}).ref('toolbar')
)
}
_renderContentPanel ($$) {
const ScrollPane = this.getComponent('scroll-pane')
const ManuscriptComponent = this.getComponent('manuscript')
let contentPanel = $$(ScrollPane, {
contextMenu: 'custom',
scrollbarPosition: 'right'
// NOTE: this ref is needed to access the root element of the editable content
}).ref('contentPanel')
contentPanel.append(
$$(ManuscriptComponent, {
model: this._model,
disabled: this.props.disabled
}).ref('article'),
this._renderMainOverlay($$),
this._renderContextMenu($$)
)
return contentPanel
}
_renderMainOverlay ($$) {
const panelProvider = () => this.refs.contentPanel
return $$(OverlayCanvas, {
theme: this._getTheme(),
panelProvider
}).ref('overlay')
}
_renderContextMenu ($$) {
const configurator = this._getConfigurator()
const ContextMenu = this.getComponent('context-menu')
const items = configurator.getToolPanel('context-menu')
return $$(Managed(ContextMenu), {
items,
theme: this._getTheme(),
bindings: ['commandStates']
})
}
_renderFooterPane ($$) {
const FindAndReplaceDialog = this.getComponent('find-and-replace-dialog')
let el = $$('div').addClass('se-footer-pane')
el.append(
$$(FindAndReplaceDialog, {
theme: this._getTheme(),
viewName: 'manuscript'
}).ref('findAndReplace')
)
return el
}
_renderContextPane ($$) {
// TODO: we need to revisit this
// We have introduced this to be able to inject a shared context panel
// in Stencila. However, ATM we try to keep the component
// as modular as possible, and avoid these kind of things.
if (this.props.contextComponent) {
let el = $$('div').addClass('se-context-pane')
el.append(
$$('div').addClass('se-context-pane-content').append(
this.props.contextComponent
)
)
return el
}
}
_getContentPanel () {
return this.refs.contentPanel
}
getViewport () {
return {
x: this.refs.contentPanel.getScrollPosition()
}
}
_showHideTOC () {
let contentSectionWidth = this.refs.contentSection.el.width
if (contentSectionWidth < 960) {
this.el.addClass('sm-compact')
} else {
this.el.removeClass('sm-compact')
}
}
_acquireOverlay (...args) {
this.refs.overlay.acquireOverlay(...args)
}
_releaseOverlay (...args) {
this.refs.overlay.releaseOverlay(...args)
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2014-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.restdocs.operation.preprocess;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* A {@link HeaderFilter} that excludes a header if its name is an exact match.
*
* @author Andy Wilkinson
*/
class ExactMatchHeaderFilter implements HeaderFilter {
private final Set<String> headersToExclude;
ExactMatchHeaderFilter(String... headersToExclude) {
this.headersToExclude = new HashSet<>(Arrays.asList(headersToExclude));
}
@Override
public boolean excludeHeader(String name) {
return this.headersToExclude.contains(name);
}
}
| {
"pile_set_name": "Github"
} |
# DO NOT MODIFY. This file was generated by
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
# The Delete sentinel must be the value of a field. Deletes are implemented by
# turning the path to the Delete sentinel into a FieldPath, and FieldPaths do not
# support array indexing.
description: "update-paths: Delete cannot be anywhere inside an array value"
update_paths: <
doc_ref_path: "projects/projectID/databases/(default)/documents/C/d"
field_paths: <
field: "a"
>
json_values: "[1, {\"b\": \"Delete\"}]"
is_error: true
>
| {
"pile_set_name": "Github"
} |
<!doctype html>
<title>CSS Test: overflow:auto on table overflowing upwards</title>
<link rel="author" title="Simon Pieters" href="mailto:[email protected]">
<link rel="help" href="http://www.w3.org/Style/css2-updates/REC-CSS2-20110607-errata.html#s.11.1.1b">
<meta name="flags" content="">
<meta name="assert" content="Test checks that overflow:auto on table means visible.">
<link rel="match" href="s-11-1-1b-001-ref.html">
<style>
table { overflow:auto; border-spacing:0 }
td { padding:0 }
div { width:20px; height:20px; margin-top:-15px; background:black }
</style>
<p>Test passes if there is a black square below.</p>
<table>
<tr><td><div></div>
</table> | {
"pile_set_name": "Github"
} |
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ContextMenu", "ContextMenu\ContextMenu.csproj", "{830F448B-AFA1-46D1-8756-B09BCBF93424}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{830F448B-AFA1-46D1-8756-B09BCBF93424}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{830F448B-AFA1-46D1-8756-B09BCBF93424}.Debug|Any CPU.Build.0 = Debug|Any CPU
{830F448B-AFA1-46D1-8756-B09BCBF93424}.Release|Any CPU.ActiveCfg = Release|Any CPU
{830F448B-AFA1-46D1-8756-B09BCBF93424}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
| {
"pile_set_name": "Github"
} |
/****************************************************************************
getopt.h - Read command line options
AUTHOR: Gregory Pietsch
CREATED Thu Jan 09 22:37:00 1997
DESCRIPTION:
The getopt() function parses the command line arguments. Its arguments argc
and argv are the argument count and array as passed to the main() function
on program invocation. The argument optstring is a list of available option
characters. If such a character is followed by a colon (`:'), the option
takes an argument, which is placed in optarg. If such a character is
followed by two colons, the option takes an optional argument, which is
placed in optarg. If the option does not take an argument, optarg is NULL.
The external variable optind is the index of the next array element of argv
to be processed; it communicates from one call to the next which element to
process.
The getopt_long() function works like getopt() except that it also accepts
long options started by two dashes `--'. If these take values, it is either
in the form
--arg=value
or
--arg value
It takes the additional arguments longopts which is a pointer to the first
element of an array of type GETOPT_LONG_OPTION_T, defined below. The last
element of the array has to be filled with NULL for the name field.
The longind pointer points to the index of the current long option relative
to longopts if it is non-NULL.
The getopt() function returns the option character if the option was found
successfully, `:' if there was a missing parameter for one of the options,
`?' for an unknown option character, and EOF for the end of the option list.
The getopt_long() function's return value is described below.
The function getopt_long_only() is identical to getopt_long(), except that a
plus sign `+' can introduce long options as well as `--'.
Describe how to deal with options that follow non-option ARGV-elements.
If the caller did not specify anything, the default is REQUIRE_ORDER if the
environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise.
REQUIRE_ORDER means don't recognize them as options; stop option processing
when the first non-option is seen. This is what Unix does. This mode of
operation is selected by either setting the environment variable
POSIXLY_CORRECT, or using `+' as the first character of the optstring
parameter.
PERMUTE is the default. We permute the contents of ARGV as we scan, so that
eventually all the non-options are at the end. This allows options to be
given in any order, even with programs that were not written to expect this.
RETURN_IN_ORDER is an option available to programs that were written to
expect options and other ARGV-elements in any order and that care about the
ordering of the two. We describe each non-option ARGV-element as if it were
the argument of an option with character code 1. Using `-' as the first
character of the optstring parameter selects this mode of operation.
The special argument `--' forces an end of option-scanning regardless of the
value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause
getopt() and friends to return EOF with optind != argc.
COPYRIGHT NOTICE AND DISCLAIMER:
Copyright (C) 1997 Gregory Pietsch
This file and the accompanying getopt.c implementation file are hereby
placed in the public domain without restrictions. Just give the author
credit, don't claim you wrote it or prevent anyone else from using it.
Gregory Pietsch's current e-mail address:
[email protected]
****************************************************************************/
/* This is a glibc-extension header file. */
#ifndef GETOPT_H
#define GETOPT_H
#include <_ansi.h>
/* include files needed by this include file */
#define no_argument 0
#define required_argument 1
#define optional_argument 2
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
/* types defined by this include file */
struct option
{
const char *name; /* the name of the long option */
int has_arg; /* one of the above macros */
int *flag; /* determines if getopt_long() returns a
* value for a long option; if it is
* non-NULL, 0 is returned as a function
* value and the value of val is stored in
* the area pointed to by flag. Otherwise,
* val is returned. */
int val; /* determines the value to return if flag is
* NULL. */
};
/* While getopt.h is a glibc extension, the following are newlib extensions.
* They are optionally included via the __need_getopt_newlib flag. */
#ifdef __need_getopt_newlib
/* macros defined by this include file */
#define NO_ARG no_argument
#define REQUIRED_ARG required_argument
#define OPTIONAL_ARG optional_argument
/* The GETOPT_DATA_INITIALIZER macro is used to initialize a statically-
allocated variable of type struct getopt_data. */
#define GETOPT_DATA_INITIALIZER {0,0,0,0,0}
/* These #defines are to make accessing the reentrant functions easier. */
#define getopt_r __getopt_r
#define getopt_long_r __getopt_long_r
#define getopt_long_only_r __getopt_long_only_r
/* The getopt_data structure is for reentrancy. Its members are similar to
the externally-defined variables. */
typedef struct getopt_data
{
char *optarg;
int optind, opterr, optopt, optwhere;
} getopt_data;
#endif /* __need_getopt_newlib */
/* externally-defined variables */
extern char *optarg;
extern int optind;
extern int opterr;
extern int optopt;
/* function prototypes */
int _EXFUN (getopt,
(int __argc, char *const __argv[], const char *__optstring));
int _EXFUN (getopt_long,
(int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind));
int _EXFUN (getopt_long_only,
(int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind));
#ifdef __need_getopt_newlib
int _EXFUN (__getopt_r,
(int __argc, char *const __argv[], const char *__optstring,
struct getopt_data * __data));
int _EXFUN (__getopt_long_r,
(int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind,
struct getopt_data * __data));
int _EXFUN (__getopt_long_only_r,
(int __argc, char *const __argv[], const char *__shortopts,
const struct option * __longopts, int *__longind,
struct getopt_data * __data));
#endif /* __need_getopt_newlib */
#ifdef __cplusplus
};
#endif /* __cplusplus */
#endif /* GETOPT_H */
/* END OF FILE getopt.h */
| {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0) on Thu May 15 17:17:32 EDT 2008 -->
<TITLE>
TransactionStats (Oracle - Berkeley DB Java API)
</TITLE>
<META NAME="keywords" CONTENT="com.sleepycat.db.TransactionStats class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="TransactionStats (Oracle - Berkeley DB Java API)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TransactionStats.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>
<A HREF="../../../com/sleepycat/db/TransactionStats.Active.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/sleepycat/db/TransactionStats.html" target="_top"><B>FRAMES</B></A>
<A HREF="TransactionStats.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.sleepycat.db</FONT>
<BR>
Class TransactionStats</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.TransactionStats</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>TransactionStats</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
Transaction statistics for a database environment.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.Active.html" title="class in com.sleepycat.db">TransactionStats.Active</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getLastCkp()">getLastCkp</A></B>()</CODE>
<BR>
The LSN of the last checkpoint.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getLastTxnId()">getLastTxnId</A></B>()</CODE>
<BR>
The last transaction ID allocated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getMaxNactive()">getMaxNactive</A></B>()</CODE>
<BR>
The maximum number of active transactions at any one time.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getMaxNsnapshot()">getMaxNsnapshot</A></B>()</CODE>
<BR>
The maximum number of transactions on the snapshot list at any one time.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getMaxTxns()">getMaxTxns</A></B>()</CODE>
<BR>
The maximum number of active transactions configured.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getNaborts()">getNaborts</A></B>()</CODE>
<BR>
The number of transactions that have aborted.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getNactive()">getNactive</A></B>()</CODE>
<BR>
The number of transactions that are currently active.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getNumBegins()">getNumBegins</A></B>()</CODE>
<BR>
The number of transactions that have begun.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getNumCommits()">getNumCommits</A></B>()</CODE>
<BR>
The number of transactions that have committed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getNumRestores()">getNumRestores</A></B>()</CODE>
<BR>
The number of transactions that have been restored.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getNumSnapshot()">getNumSnapshot</A></B>()</CODE>
<BR>
The number of transactions on the snapshot list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getRegionNowait()">getRegionNowait</A></B>()</CODE>
<BR>
The number of times that a thread of control was able to obtain the
region lock without waiting.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getRegionWait()">getRegionWait</A></B>()</CODE>
<BR>
The number of times that a thread of control was forced to wait
before obtaining the region lock.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getRegSize()">getRegSize</A></B>()</CODE>
<BR>
The size of the region.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getTimeCkp()">getTimeCkp</A></B>()</CODE>
<BR>
The time the last completed checkpoint finished (as the number of
seconds since the Epoch, returned by the IEEE/ANSI Std 1003.1
(POSIX) time interface).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/sleepycat/db/TransactionStats.Active.html" title="class in com.sleepycat.db">TransactionStats.Active</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#getTxnarray()">getTxnarray</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sleepycat/db/TransactionStats.html#toString()">toString</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getNumRestores()"><!-- --></A><H3>
getNumRestores</H3>
<PRE>
public int <B>getNumRestores</B>()</PRE>
<DL>
<DD>The number of transactions that have been restored.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLastCkp()"><!-- --></A><H3>
getLastCkp</H3>
<PRE>
public <A HREF="../../../com/sleepycat/db/LogSequenceNumber.html" title="class in com.sleepycat.db">LogSequenceNumber</A> <B>getLastCkp</B>()</PRE>
<DL>
<DD>The LSN of the last checkpoint.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTimeCkp()"><!-- --></A><H3>
getTimeCkp</H3>
<PRE>
public long <B>getTimeCkp</B>()</PRE>
<DL>
<DD>The time the last completed checkpoint finished (as the number of
seconds since the Epoch, returned by the IEEE/ANSI Std 1003.1
(POSIX) time interface).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLastTxnId()"><!-- --></A><H3>
getLastTxnId</H3>
<PRE>
public int <B>getLastTxnId</B>()</PRE>
<DL>
<DD>The last transaction ID allocated.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxTxns()"><!-- --></A><H3>
getMaxTxns</H3>
<PRE>
public int <B>getMaxTxns</B>()</PRE>
<DL>
<DD>The maximum number of active transactions configured.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNaborts()"><!-- --></A><H3>
getNaborts</H3>
<PRE>
public int <B>getNaborts</B>()</PRE>
<DL>
<DD>The number of transactions that have aborted.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNumBegins()"><!-- --></A><H3>
getNumBegins</H3>
<PRE>
public int <B>getNumBegins</B>()</PRE>
<DL>
<DD>The number of transactions that have begun.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNumCommits()"><!-- --></A><H3>
getNumCommits</H3>
<PRE>
public int <B>getNumCommits</B>()</PRE>
<DL>
<DD>The number of transactions that have committed.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNactive()"><!-- --></A><H3>
getNactive</H3>
<PRE>
public int <B>getNactive</B>()</PRE>
<DL>
<DD>The number of transactions that are currently active.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getNumSnapshot()"><!-- --></A><H3>
getNumSnapshot</H3>
<PRE>
public int <B>getNumSnapshot</B>()</PRE>
<DL>
<DD>The number of transactions on the snapshot list. These are transactions
which modified a database opened with <A HREF="../../../com/sleepycat/db/DatabaseConfig.html#setMultiversion(boolean)"><CODE>DatabaseConfig.setMultiversion(boolean)</CODE></A>, and which have committed or aborted, but
the copies of pages they created are still in the cache.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxNactive()"><!-- --></A><H3>
getMaxNactive</H3>
<PRE>
public int <B>getMaxNactive</B>()</PRE>
<DL>
<DD>The maximum number of active transactions at any one time.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxNsnapshot()"><!-- --></A><H3>
getMaxNsnapshot</H3>
<PRE>
public int <B>getMaxNsnapshot</B>()</PRE>
<DL>
<DD>The maximum number of transactions on the snapshot list at any one time.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTxnarray()"><!-- --></A><H3>
getTxnarray</H3>
<PRE>
public <A HREF="../../../com/sleepycat/db/TransactionStats.Active.html" title="class in com.sleepycat.db">TransactionStats.Active</A>[] <B>getTxnarray</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRegionWait()"><!-- --></A><H3>
getRegionWait</H3>
<PRE>
public int <B>getRegionWait</B>()</PRE>
<DL>
<DD>The number of times that a thread of control was forced to wait
before obtaining the region lock.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRegionNowait()"><!-- --></A><H3>
getRegionNowait</H3>
<PRE>
public int <B>getRegionNowait</B>()</PRE>
<DL>
<DD>The number of times that a thread of control was able to obtain the
region lock without waiting.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRegSize()"><!-- --></A><H3>
getRegSize</H3>
<PRE>
public int <B>getRegSize</B>()</PRE>
<DL>
<DD>The size of the region.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TransactionStats.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../com/sleepycat/db/TransactionConfig.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A>
<A HREF="../../../com/sleepycat/db/TransactionStats.Active.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/sleepycat/db/TransactionStats.html" target="_top"><B>FRAMES</B></A>
<A HREF="TransactionStats.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font>
</BODY>
</HTML>
| {
"pile_set_name": "Github"
} |
module.exports = EofPacket;
function EofPacket(options) {
options = options || {};
this.fieldCount = undefined;
this.warningCount = options.warningCount;
this.serverStatus = options.serverStatus;
this.protocol41 = options.protocol41;
}
EofPacket.prototype.parse = function(parser) {
this.fieldCount = parser.parseUnsignedNumber(1);
if (this.protocol41) {
this.warningCount = parser.parseUnsignedNumber(2);
this.serverStatus = parser.parseUnsignedNumber(2);
}
};
EofPacket.prototype.write = function(writer) {
writer.writeUnsignedNumber(1, 0xfe);
if (this.protocol41) {
writer.writeUnsignedNumber(2, this.warningCount);
writer.writeUnsignedNumber(2, this.serverStatus);
}
};
| {
"pile_set_name": "Github"
} |
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
| {
"pile_set_name": "Github"
} |
/*
* fs/partitions/sgi.c
*
* Code extracted from drivers/block/genhd.c
*/
#include "check.h"
#include "sgi.h"
struct sgi_disklabel {
__be32 magic_mushroom; /* Big fat spliff... */
__be16 root_part_num; /* Root partition number */
__be16 swap_part_num; /* Swap partition number */
s8 boot_file[16]; /* Name of boot file for ARCS */
u8 _unused0[48]; /* Device parameter useless crapola.. */
struct sgi_volume {
s8 name[8]; /* Name of volume */
__be32 block_num; /* Logical block number */
__be32 num_bytes; /* How big, in bytes */
} volume[15];
struct sgi_partition {
__be32 num_blocks; /* Size in logical blocks */
__be32 first_block; /* First logical block */
__be32 type; /* Type of this partition */
} partitions[16];
__be32 csum; /* Disk label checksum */
__be32 _unused1; /* Padding */
};
int sgi_partition(struct parsed_partitions *state)
{
int i, csum;
__be32 magic;
int slot = 1;
unsigned int start, blocks;
__be32 *ui, cs;
Sector sect;
struct sgi_disklabel *label;
struct sgi_partition *p;
char b[BDEVNAME_SIZE];
label = read_part_sector(state, 0, §);
if (!label)
return -1;
p = &label->partitions[0];
magic = label->magic_mushroom;
if(be32_to_cpu(magic) != SGI_LABEL_MAGIC) {
/*printk("Dev %s SGI disklabel: bad magic %08x\n",
bdevname(bdev, b), be32_to_cpu(magic));*/
put_dev_sector(sect);
return 0;
}
ui = ((__be32 *) (label + 1)) - 1;
for(csum = 0; ui >= ((__be32 *) label);) {
cs = *ui--;
csum += be32_to_cpu(cs);
}
if(csum) {
printk(KERN_WARNING "Dev %s SGI disklabel: csum bad, label corrupted\n",
bdevname(state->bdev, b));
put_dev_sector(sect);
return 0;
}
/* All SGI disk labels have 16 partitions, disks under Linux only
* have 15 minor's. Luckily there are always a few zero length
* partitions which we don't care about so we never overflow the
* current_minor.
*/
for(i = 0; i < 16; i++, p++) {
blocks = be32_to_cpu(p->num_blocks);
start = be32_to_cpu(p->first_block);
if (blocks) {
put_partition(state, slot, start, blocks);
if (be32_to_cpu(p->type) == LINUX_RAID_PARTITION)
state->parts[slot].flags = ADDPART_FLAG_RAID;
}
slot++;
}
strlcat(state->pp_buf, "\n", PAGE_SIZE);
put_dev_sector(sect);
return 1;
}
| {
"pile_set_name": "Github"
} |
/*
* Camera Flash and Torch On/Off Trigger
*
* based on ledtrig-ide-disk.c
*
* Copyright 2013 Texas Instruments
*
* Author: Milo(Woogyom) Kim <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/leds.h>
DEFINE_LED_TRIGGER(ledtrig_flash);
DEFINE_LED_TRIGGER(ledtrig_torch);
void ledtrig_flash_ctrl(bool on)
{
enum led_brightness brt = on ? LED_FULL : LED_OFF;
led_trigger_event(ledtrig_flash, brt);
}
EXPORT_SYMBOL_GPL(ledtrig_flash_ctrl);
void ledtrig_torch_ctrl(bool on)
{
enum led_brightness brt = on ? LED_FULL : LED_OFF;
led_trigger_event(ledtrig_torch, brt);
}
EXPORT_SYMBOL_GPL(ledtrig_torch_ctrl);
static int __init ledtrig_camera_init(void)
{
led_trigger_register_simple("flash", &ledtrig_flash);
led_trigger_register_simple("torch", &ledtrig_torch);
return 0;
}
module_init(ledtrig_camera_init);
static void __exit ledtrig_camera_exit(void)
{
led_trigger_unregister_simple(ledtrig_torch);
led_trigger_unregister_simple(ledtrig_flash);
}
module_exit(ledtrig_camera_exit);
MODULE_DESCRIPTION("LED Trigger for Camera Flash/Torch Control");
MODULE_AUTHOR("Milo Kim");
MODULE_LICENSE("GPL");
| {
"pile_set_name": "Github"
} |
/*******************************************************************\
Module: C Nondet Symbol Factory
Author: Diffblue Ltd.
\*******************************************************************/
/// \file
/// C Nondet Symbol Factory
#include "c_nondet_symbol_factory.h"
#include <ansi-c/c_object_factory_parameters.h>
#include <util/allocate_objects.h>
#include <util/arith_tools.h>
#include <util/c_types.h>
#include <util/fresh_symbol.h>
#include <util/namespace.h>
#include <util/nondet_bool.h>
#include <util/std_expr.h>
#include <util/std_types.h>
#include <util/string_constant.h>
#include <goto-programs/goto_functions.h>
/// Creates a nondet for expr, including calling itself recursively to make
/// appropriate symbols to point to if expr is a pointer.
/// \param assignments: The code block to add code to
/// \param expr: The expression which we are generating a non-determinate value
/// for
/// \param depth number of pointers followed so far during initialisation
/// \param recursion_set names of structs seen so far on current pointer chain
/// \param assign_const Indicates whether const objects should be nondet
/// initialized
void symbol_factoryt::gen_nondet_init(
code_blockt &assignments,
const exprt &expr,
const std::size_t depth,
recursion_sett recursion_set,
const bool assign_const)
{
const typet &type = expr.type();
if(!assign_const && expr.type().get_bool(ID_C_constant))
{
return;
}
if(type.id()==ID_pointer)
{
// dereferenced type
const pointer_typet &pointer_type=to_pointer_type(type);
const typet &subtype = pointer_type.subtype();
if(subtype.id() == ID_code)
{
// Handle the pointer-to-code case separately:
// leave as nondet_ptr to allow `remove_function_pointers`
// to replace the pointer.
assignments.add(
code_assignt{expr, side_effect_expr_nondett{pointer_type, loc}});
return;
}
if(subtype.id() == ID_struct_tag)
{
const irep_idt struct_tag = to_struct_tag_type(subtype).get_identifier();
if(
recursion_set.find(struct_tag) != recursion_set.end() &&
depth >= object_factory_params.max_nondet_tree_depth)
{
assignments.add(
code_assignt{expr, null_pointer_exprt{pointer_type}, loc});
return;
}
}
code_blockt non_null_inst;
typet object_type = subtype;
if(object_type.id() == ID_empty)
object_type = char_type();
exprt init_expr = allocate_objects.allocate_object(
non_null_inst, expr, object_type, lifetime);
gen_nondet_init(non_null_inst, init_expr, depth + 1, recursion_set, true);
if(depth < object_factory_params.min_null_tree_depth)
{
// Add the following code to assignments:
// <expr> = <aoe>;
assignments.append(non_null_inst);
}
else
{
// Add the following code to assignments:
// IF !NONDET(_Bool) THEN GOTO <label1>
// <expr> = <null pointer>
// GOTO <label2>
// <label1>: <expr> = &tmp$<temporary_counter>;
// <code from recursive call to gen_nondet_init() with
// tmp$<temporary_counter>>
// And the next line is labelled label2
const code_assignt set_null_inst{
expr, null_pointer_exprt{pointer_type}, loc};
code_ifthenelset null_check(
side_effect_expr_nondett(bool_typet(), loc),
std::move(set_null_inst),
std::move(non_null_inst));
assignments.add(std::move(null_check));
}
}
else if(type.id() == ID_struct_tag)
{
const auto &struct_tag_type = to_struct_tag_type(type);
const irep_idt struct_tag = struct_tag_type.get_identifier();
recursion_set.insert(struct_tag);
const auto &struct_type = to_struct_type(ns.follow_tag(struct_tag_type));
for(const auto &component : struct_type.components())
{
const typet &component_type = component.type();
if(!assign_const && component_type.get_bool(ID_C_constant))
{
continue;
}
const irep_idt name = component.get_name();
member_exprt me(expr, name, component_type);
me.add_source_location() = loc;
gen_nondet_init(assignments, me, depth, recursion_set, assign_const);
}
}
else if(type.id() == ID_array)
{
gen_nondet_array_init(assignments, expr, depth, recursion_set);
}
else
{
// If type is a ID_c_bool then add the following code to assignments:
// <expr> = NONDET(_BOOL);
// Else add the following code to assignments:
// <expr> = NONDET(type);
exprt rhs = type.id() == ID_c_bool ? get_nondet_bool(type, loc)
: side_effect_expr_nondett(type, loc);
code_assignt assign(expr, rhs);
assign.add_source_location()=loc;
assignments.add(std::move(assign));
}
}
void symbol_factoryt::gen_nondet_array_init(
code_blockt &assignments,
const exprt &expr,
std::size_t depth,
const recursion_sett &recursion_set)
{
auto const &array_type = to_array_type(expr.type());
const auto &size = array_type.size();
PRECONDITION(size.id() == ID_constant);
auto const array_size = numeric_cast_v<size_t>(to_constant_expr(size));
DATA_INVARIANT(array_size > 0, "Arrays should have positive size");
for(size_t index = 0; index < array_size; ++index)
{
gen_nondet_init(
assignments,
index_exprt(expr, from_integer(index, size_type())),
depth,
recursion_set);
}
}
/// Creates a symbol and generates code so that it can vary over all possible
/// values for its type. For pointers this involves allocating symbols which it
/// can point to.
/// \param init_code: The code block to add generated code to
/// \param symbol_table: The symbol table
/// \param base_name: The name to use for the symbol created
/// \param type: The type for the symbol created
/// \param loc: The location to assign to generated code
/// \param object_factory_parameters: configuration parameters for the object
/// factory
/// \param lifetime: Lifetime of the allocated object (AUTOMATIC_LOCAL,
/// STATIC_GLOBAL, or DYNAMIC)
/// \return Returns the symbol_exprt for the symbol created
symbol_exprt c_nondet_symbol_factory(
code_blockt &init_code,
symbol_tablet &symbol_table,
const irep_idt base_name,
const typet &type,
const source_locationt &loc,
const c_object_factory_parameterst &object_factory_parameters,
const lifetimet lifetime)
{
irep_idt identifier=id2string(goto_functionst::entry_point())+
"::"+id2string(base_name);
auxiliary_symbolt main_symbol;
main_symbol.mode=ID_C;
main_symbol.is_static_lifetime=false;
main_symbol.name=identifier;
main_symbol.base_name=base_name;
main_symbol.type=type;
main_symbol.location=loc;
symbol_exprt main_symbol_expr=main_symbol.symbol_expr();
symbolt *main_symbol_ptr;
bool moving_symbol_failed=symbol_table.move(main_symbol, main_symbol_ptr);
CHECK_RETURN(!moving_symbol_failed);
symbol_factoryt state(
symbol_table,
loc,
goto_functionst::entry_point(),
object_factory_parameters,
lifetime);
code_blockt assignments;
state.gen_nondet_init(assignments, main_symbol_expr);
state.add_created_symbol(main_symbol_ptr);
state.declare_created_symbols(init_code);
init_code.append(assignments);
state.mark_created_symbols_as_input(init_code);
return main_symbol_expr;
}
| {
"pile_set_name": "Github"
} |
/*
* DateJS Culture String File
* Country Code: fr-MC
* Name: French (Principality of Monaco)
* Format: "key" : "value"
* Key is the en-US term, Value is the Key in the current language.
*/
Date.CultureStrings = Date.CultureStrings || {};
Date.CultureStrings["fr-MC"] = {
"name": "fr-MC",
"englishName": "French (Principality of Monaco)",
"nativeName": "français (Principauté de Monaco)",
"Sunday": "dimanche",
"Monday": "lundi",
"Tuesday": "mardi",
"Wednesday": "mercredi",
"Thursday": "jeudi",
"Friday": "vendredi",
"Saturday": "samedi",
"Sun": "dim.",
"Mon": "lun.",
"Tue": "mar.",
"Wed": "mer.",
"Thu": "jeu.",
"Fri": "ven.",
"Sat": "sam.",
"Su": "di",
"Mo": "lu",
"Tu": "ma",
"We": "me",
"Th": "je",
"Fr": "ve",
"Sa": "sa",
"S_Sun_Initial": "d",
"M_Mon_Initial": "l",
"T_Tue_Initial": "m",
"W_Wed_Initial": "m",
"T_Thu_Initial": "j",
"F_Fri_Initial": "v",
"S_Sat_Initial": "s",
"January": "janvier",
"February": "février",
"March": "mars",
"April": "avril",
"May": "mai",
"June": "juin",
"July": "juillet",
"August": "août",
"September": "septembre",
"October": "octobre",
"November": "novembre",
"December": "décembre",
"Jan_Abbr": "janv.",
"Feb_Abbr": "févr.",
"Mar_Abbr": "mars",
"Apr_Abbr": "avr.",
"May_Abbr": "mai",
"Jun_Abbr": "juin",
"Jul_Abbr": "juil.",
"Aug_Abbr": "août",
"Sep_Abbr": "sept.",
"Oct_Abbr": "oct.",
"Nov_Abbr": "nov.",
"Dec_Abbr": "déc.",
"AM": "",
"PM": "",
"firstDayOfWeek": 1,
"twoDigitYearMax": 2029,
"mdy": "dmy",
"M/d/yyyy": "dd/MM/yyyy",
"dddd, MMMM dd, yyyy": "dddd d MMMM yyyy",
"h:mm tt": "HH:mm",
"h:mm:ss tt": "HH:mm:ss",
"dddd, MMMM dd, yyyy h:mm:ss tt": "dddd d MMMM yyyy HH:mm:ss",
"yyyy-MM-ddTHH:mm:ss": "yyyy-MM-ddTHH:mm:ss",
"yyyy-MM-dd HH:mm:ssZ": "yyyy-MM-dd HH:mm:ssZ",
"ddd, dd MMM yyyy HH:mm:ss": "ddd, dd MMM yyyy HH:mm:ss",
"MMMM dd": "d MMMM",
"MMMM, yyyy": "MMMM yyyy",
"/jan(uary)?/": "janv(.(ier)?)?",
"/feb(ruary)?/": "févr(.(ier)?)?",
"/mar(ch)?/": "mars",
"/apr(il)?/": "avr(.(il)?)?",
"/may/": "mai",
"/jun(e)?/": "juin",
"/jul(y)?/": "juil(.(let)?)?",
"/aug(ust)?/": "août",
"/sep(t(ember)?)?/": "sept(.(embre)?)?",
"/oct(ober)?/": "oct(.(obre)?)?",
"/nov(ember)?/": "nov(.(embre)?)?",
"/dec(ember)?/": "déc(.(embre)?)?",
"/^su(n(day)?)?/": "^di(m(.(anche)?)?)?",
"/^mo(n(day)?)?/": "^lu(n(.(di)?)?)?",
"/^tu(e(s(day)?)?)?/": "^ma(r(.(di)?)?)?",
"/^we(d(nesday)?)?/": "^me(r(.(credi)?)?)?",
"/^th(u(r(s(day)?)?)?)?/": "^je(u(.(di)?)?)?",
"/^fr(i(day)?)?/": "^ve(n(.(dredi)?)?)?",
"/^sa(t(urday)?)?/": "^sa(m(.(edi)?)?)?",
"/^next/": "^next",
"/^last|past|prev(ious)?/": "^last|past|prev(ious)?",
"/^(\\+|aft(er)?|from|hence)/": "^(\\+|aft(er)?|from|hence)",
"/^(\\-|bef(ore)?|ago)/": "^(\\-|bef(ore)?|ago)",
"/^yes(terday)?/": "^yes(terday)?",
"/^t(od(ay)?)?/": "^t(od(ay)?)?",
"/^tom(orrow)?/": "^tom(orrow)?",
"/^n(ow)?/": "^n(ow)?",
"/^ms|milli(second)?s?/": "^ms|milli(second)?s?",
"/^sec(ond)?s?/": "^sec(ond)?s?",
"/^mn|min(ute)?s?/": "^mn|min(ute)?s?",
"/^h(our)?s?/": "^h(our)?s?",
"/^w(eek)?s?/": "^w(eek)?s?",
"/^m(onth)?s?/": "^m(onth)?s?",
"/^d(ay)?s?/": "^d(ay)?s?",
"/^y(ear)?s?/": "^y(ear)?s?",
"/^(a|p)/": "^(a|p)",
"/^(a\\.?m?\\.?|p\\.?m?\\.?)/": "^(a\\.?m?\\.?|p\\.?m?\\.?)",
"/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/": "^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)",
"/^\\s*(st|nd|rd|th)/": "^\\s*(st|nd|rd|th)",
"/^\\s*(\\:|a(?!u|p)|p)/": "^\\s*(\\:|a(?!u|p)|p)",
"LINT": "LINT",
"TOT": "TOT",
"CHAST": "CHAST",
"NZST": "NZST",
"NFT": "NFT",
"SBT": "SBT",
"AEST": "AEST",
"ACST": "ACST",
"JST": "JST",
"CWST": "CWST",
"CT": "CT",
"ICT": "ICT",
"MMT": "MMT",
"BIOT": "BST",
"NPT": "NPT",
"IST": "IST",
"PKT": "PKT",
"AFT": "AFT",
"MSK": "MSK",
"IRST": "IRST",
"FET": "FET",
"EET": "EET",
"CET": "CET",
"UTC": "UTC",
"GMT": "GMT",
"CVT": "CVT",
"GST": "GST",
"BRT": "BRT",
"NST": "NST",
"AST": "AST",
"EST": "EST",
"CST": "CST",
"MST": "MST",
"PST": "PST",
"AKST": "AKST",
"MIT": "MIT",
"HST": "HST",
"SST": "SST",
"BIT": "BIT",
"CHADT": "CHADT",
"NZDT": "NZDT",
"AEDT": "AEDT",
"ACDT": "ACDT",
"AZST": "AZST",
"IRDT": "IRDT",
"EEST": "EEST",
"CEST": "CEST",
"BST": "BST",
"PMDT": "PMDT",
"ADT": "ADT",
"NDT": "NDT",
"EDT": "EDT",
"CDT": "CDT",
"MDT": "MDT",
"PDT": "PDT",
"AKDT": "AKDT",
"HADT": "HADT"
};
Date.CultureStrings.lang = "fr-MC";
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#ifndef NET_UTILS_MD_H
#define NET_UTILS_MD_H
#include <netdb.h>
#include <poll.h>
#include <sys/socket.h>
/************************************************************************
* Macros and constants
*/
#define NET_NSEC_PER_MSEC 1000000
#define NET_NSEC_PER_SEC 1000000000
#define NET_NSEC_PER_USEC 1000
/* in case NI_MAXHOST is not defined in netdb.h */
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
#endif
/* Defines SO_REUSEPORT */
#ifndef SO_REUSEPORT
#ifdef __linux__
#define SO_REUSEPORT 15
#elif __solaris__
#define SO_REUSEPORT 0x100e
#elif defined(AIX) || defined(MACOSX)
#define SO_REUSEPORT 0x0200
#else
#define SO_REUSEPORT 0
#endif
#endif
/*
* On 64-bit JDKs we use a much larger stack and heap buffer.
*/
#ifdef _LP64
#define MAX_BUFFER_LEN 65536
#define MAX_HEAP_BUFFER_LEN 131072
#else
#define MAX_BUFFER_LEN 8192
#define MAX_HEAP_BUFFER_LEN 65536
#endif
typedef union {
struct sockaddr sa;
struct sockaddr_in sa4;
struct sockaddr_in6 sa6;
} SOCKETADDRESS;
/************************************************************************
* Functions
*/
int NET_Timeout(JNIEnv *env, int s, long timeout, jlong nanoTimeStamp);
int NET_Read(int s, void* buf, size_t len);
int NET_NonBlockingRead(int s, void* buf, size_t len);
int NET_RecvFrom(int s, void *buf, int len, unsigned int flags,
struct sockaddr *from, socklen_t *fromlen);
int NET_Send(int s, void *msg, int len, unsigned int flags);
int NET_SendTo(int s, const void *msg, int len, unsigned int
flags, const struct sockaddr *to, int tolen);
int NET_Connect(int s, struct sockaddr *addr, int addrlen);
int NET_Accept(int s, struct sockaddr *addr, socklen_t *addrlen);
int NET_SocketClose(int s);
int NET_Dup2(int oldfd, int newfd);
int NET_Poll(struct pollfd *ufds, unsigned int nfds, int timeout);
int NET_SocketAvailable(int s, jint *pbytes);
void NET_ThrowUnknownHostExceptionWithGaiError(JNIEnv *env,
const char* hostname,
int gai_error);
void NET_ThrowByNameWithLastError(JNIEnv *env, const char *name,
const char *defaultDetail);
void NET_SetTrafficClass(SOCKETADDRESS *sa, int trafficClass);
#ifdef __linux__
int kernelIsV24();
int getDefaultIPv6Interface(struct in6_addr *target_addr);
#endif
#ifdef __solaris__
int net_getParam(char *driver, char *param);
#endif
#endif /* NET_UTILS_MD_H */
| {
"pile_set_name": "Github"
} |
syntax = "proto2";
package object_detection.protos;
import "object_detection/protos/calibration.proto";
// Configuration proto for non-max-suppression operation on a batch of
// detections.
message BatchNonMaxSuppression {
// Scalar threshold for score (low scoring boxes are removed).
optional float score_threshold = 1 [default = 0.0];
// Scalar threshold for IOU (boxes that have high IOU overlap
// with previously selected boxes are removed).
optional float iou_threshold = 2 [default = 0.6];
// Maximum number of detections to retain per class.
optional int32 max_detections_per_class = 3 [default = 100];
// Maximum number of detections to retain across all classes.
optional int32 max_total_detections = 5 [default = 100];
// Whether to use the implementation of NMS that guarantees static shapes.
optional bool use_static_shapes = 6 [default = false];
// Whether to use class agnostic NMS.
// Class-agnostic NMS function implements a class-agnostic version
// of Non Maximal Suppression where if max_classes_per_detection=k,
// 1) we keep the top-k scores for each detection and
// 2) during NMS, each detection only uses the highest class score for sorting.
// 3) Compared to regular NMS, the worst runtime of this version is O(N^2)
// instead of O(KN^2) where N is the number of detections and K the number of
// classes.
optional bool use_class_agnostic_nms = 7 [default = false];
// Number of classes retained per detection in class agnostic NMS.
optional int32 max_classes_per_detection = 8 [default = 1];
// Soft NMS sigma parameter; Bodla et al, https://arxiv.org/abs/1704.04503)
optional float soft_nms_sigma = 9 [default = 0.0];
// Whether to use partitioned version of non_max_suppression.
optional bool use_partitioned_nms = 10 [default = false];
// Whether to use tf.image.combined_non_max_suppression.
optional bool use_combined_nms = 11 [default = false];
// Whether to change coordinate frame of the boxlist to be relative to
// window's frame.
optional bool change_coordinate_frame = 12 [default = true];
// Use hard NMS. Note that even if this field is set false, the behavior of
// NMS will be equivalent to hard NMS; This field when set to true forces the
// tf.image.non_max_suppression function to be called instead
// of tf.image.non_max_suppression_with_scores and can be used to
// export models for older versions of TF.
optional bool use_hard_nms = 13 [default = false];
}
// Configuration proto for post-processing predicted boxes and
// scores.
message PostProcessing {
// Non max suppression parameters.
optional BatchNonMaxSuppression batch_non_max_suppression = 1;
// Enum to specify how to convert the detection scores.
enum ScoreConverter {
// Input scores equals output scores.
IDENTITY = 0;
// Applies a sigmoid on input scores.
SIGMOID = 1;
// Applies a softmax on input scores
SOFTMAX = 2;
}
// Score converter to use.
optional ScoreConverter score_converter = 2 [default = IDENTITY];
// Scale logit (input) value before conversion in post-processing step.
// Typically used for softmax distillation, though can be used to scale for
// other reasons.
optional float logit_scale = 3 [default = 1.0];
// Calibrate score outputs. Calibration is applied after score converter
// and before non max suppression.
optional CalibrationConfig calibration_config = 4;
}
| {
"pile_set_name": "Github"
} |
package io.kroki.server.error;
import java.util.Collection;
import java.util.Iterator;
public class Message {
public static String oneOf(Collection<String> data) {
if (data == null || data.size() == 0) {
return "";
}
StringBuilder sb = new StringBuilder();
Iterator<String> iterator = data.iterator();
if (iterator.hasNext()) {
sb.append(iterator.next());
while (iterator.hasNext()) {
String value = iterator.next();
if (iterator.hasNext()) {
sb.append(", ").append(value);
} else {
sb.append(" or ").append(value);
}
}
}
return sb.toString();
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.util;
import java.text.DateFormat;
import java.time.LocalDate;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.lang.ref.SoftReference;
import java.time.Instant;
import sun.util.calendar.BaseCalendar;
import sun.util.calendar.CalendarDate;
import sun.util.calendar.CalendarSystem;
import sun.util.calendar.CalendarUtils;
import sun.util.calendar.Era;
import sun.util.calendar.Gregorian;
import sun.util.calendar.ZoneInfo;
/**
* The class {@code Date} represents a specific instant
* in time, with millisecond precision.
* <p>
* Prior to JDK 1.1, the class {@code Date} had two additional
* functions. It allowed the interpretation of dates as year, month, day, hour,
* minute, and second values. It also allowed the formatting and parsing
* of date strings. Unfortunately, the API for these functions was not
* amenable to internationalization. As of JDK 1.1, the
* {@code Calendar} class should be used to convert between dates and time
* fields and the {@code DateFormat} class should be used to format and
* parse date strings.
* The corresponding methods in {@code Date} are deprecated.
* <p>
* Although the {@code Date} class is intended to reflect
* coordinated universal time (UTC), it may not do so exactly,
* depending on the host environment of the Java Virtual Machine.
* Nearly all modern operating systems assume that 1 day =
* 24 × 60 × 60 = 86400 seconds
* in all cases. In UTC, however, about once every year or two there
* is an extra second, called a "leap second." The leap
* second is always added as the last second of the day, and always
* on December 31 or June 30. For example, the last minute of the
* year 1995 was 61 seconds long, thanks to an added leap second.
* Most computer clocks are not accurate enough to be able to reflect
* the leap-second distinction.
* <p>
* Some computer standards are defined in terms of Greenwich mean
* time (GMT), which is equivalent to universal time (UT). GMT is
* the "civil" name for the standard; UT is the
* "scientific" name for the same standard. The
* distinction between UTC and UT is that UTC is based on an atomic
* clock and UT is based on astronomical observations, which for all
* practical purposes is an invisibly fine hair to split. Because the
* earth's rotation is not uniform (it slows down and speeds up
* in complicated ways), UT does not always flow uniformly. Leap
* seconds are introduced as needed into UTC so as to keep UTC within
* 0.9 seconds of UT1, which is a version of UT with certain
* corrections applied. There are other time and date systems as
* well; for example, the time scale used by the satellite-based
* global positioning system (GPS) is synchronized to UTC but is
* <i>not</i> adjusted for leap seconds. An interesting source of
* further information is the United States Naval Observatory (USNO):
* <blockquote><pre>
* <a href="https://www.usno.navy.mil/USNO">https://www.usno.navy.mil/USNO</a>
* </pre></blockquote>
* <p>
* and the material regarding "Systems of Time" at:
* <blockquote><pre>
* <a href="https://www.usno.navy.mil/USNO/time/master-clock/systems-of-time">https://www.usno.navy.mil/USNO/time/master-clock/systems-of-time</a>
* </pre></blockquote>
* <p>
* which has descriptions of various different time systems including
* UT, UT1, and UTC.
* <p>
* In all methods of class {@code Date} that accept or return
* year, month, date, hours, minutes, and seconds values, the
* following representations are used:
* <ul>
* <li>A year <i>y</i> is represented by the integer
* <i>y</i> {@code - 1900}.
* <li>A month is represented by an integer from 0 to 11; 0 is January,
* 1 is February, and so forth; thus 11 is December.
* <li>A date (day of month) is represented by an integer from 1 to 31
* in the usual manner.
* <li>An hour is represented by an integer from 0 to 23. Thus, the hour
* from midnight to 1 a.m. is hour 0, and the hour from noon to 1
* p.m. is hour 12.
* <li>A minute is represented by an integer from 0 to 59 in the usual manner.
* <li>A second is represented by an integer from 0 to 61; the values 60 and
* 61 occur only for leap seconds and even then only in Java
* implementations that actually track leap seconds correctly. Because
* of the manner in which leap seconds are currently introduced, it is
* extremely unlikely that two leap seconds will occur in the same
* minute, but this specification follows the date and time conventions
* for ISO C.
* </ul>
* <p>
* In all cases, arguments given to methods for these purposes need
* not fall within the indicated ranges; for example, a date may be
* specified as January 32 and is interpreted as meaning February 1.
*
* @author James Gosling
* @author Arthur van Hoff
* @author Alan Liu
* @see java.text.DateFormat
* @see java.util.Calendar
* @see java.util.TimeZone
* @since 1.0
*/
public class Date
implements java.io.Serializable, Cloneable, Comparable<Date>
{
private static final BaseCalendar gcal =
CalendarSystem.getGregorianCalendar();
private static BaseCalendar jcal;
private transient long fastTime;
/*
* If cdate is null, then fastTime indicates the time in millis.
* If cdate.isNormalized() is true, then fastTime and cdate are in
* synch. Otherwise, fastTime is ignored, and cdate indicates the
* time.
*/
private transient BaseCalendar.Date cdate;
// Initialized just before the value is used. See parse().
private static int defaultCenturyStart;
/* use serialVersionUID from modified java.util.Date for
* interoperability with JDK1.1. The Date was modified to write
* and read only the UTC time.
*/
@java.io.Serial
private static final long serialVersionUID = 7523967970034938905L;
/**
* Allocates a {@code Date} object and initializes it so that
* it represents the time at which it was allocated, measured to the
* nearest millisecond.
*
* @see java.lang.System#currentTimeMillis()
*/
public Date() {
this(System.currentTimeMillis());
}
/**
* Allocates a {@code Date} object and initializes it to
* represent the specified number of milliseconds since the
* standard base time known as "the epoch", namely January 1,
* 1970, 00:00:00 GMT.
*
* @param date the milliseconds since January 1, 1970, 00:00:00 GMT.
* @see java.lang.System#currentTimeMillis()
*/
public Date(long date) {
fastTime = date;
}
/**
* Allocates a {@code Date} object and initializes it so that
* it represents midnight, local time, at the beginning of the day
* specified by the {@code year}, {@code month}, and
* {@code date} arguments.
*
* @param year the year minus 1900.
* @param month the month between 0-11.
* @param date the day of the month between 1-31.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(year + 1900, month, date)}
* or {@code GregorianCalendar(year + 1900, month, date)}.
*/
@Deprecated
public Date(int year, int month, int date) {
this(year, month, date, 0, 0, 0);
}
/**
* Allocates a {@code Date} object and initializes it so that
* it represents the instant at the start of the minute specified by
* the {@code year}, {@code month}, {@code date},
* {@code hrs}, and {@code min} arguments, in the local
* time zone.
*
* @param year the year minus 1900.
* @param month the month between 0-11.
* @param date the day of the month between 1-31.
* @param hrs the hours between 0-23.
* @param min the minutes between 0-59.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(year + 1900, month, date, hrs, min)}
* or {@code GregorianCalendar(year + 1900, month, date, hrs, min)}.
*/
@Deprecated
public Date(int year, int month, int date, int hrs, int min) {
this(year, month, date, hrs, min, 0);
}
/**
* Allocates a {@code Date} object and initializes it so that
* it represents the instant at the start of the second specified
* by the {@code year}, {@code month}, {@code date},
* {@code hrs}, {@code min}, and {@code sec} arguments,
* in the local time zone.
*
* @param year the year minus 1900.
* @param month the month between 0-11.
* @param date the day of the month between 1-31.
* @param hrs the hours between 0-23.
* @param min the minutes between 0-59.
* @param sec the seconds between 0-59.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(year + 1900, month, date, hrs, min, sec)}
* or {@code GregorianCalendar(year + 1900, month, date, hrs, min, sec)}.
*/
@Deprecated
public Date(int year, int month, int date, int hrs, int min, int sec) {
int y = year + 1900;
// month is 0-based. So we have to normalize month to support Long.MAX_VALUE.
if (month >= 12) {
y += month / 12;
month %= 12;
} else if (month < 0) {
y += CalendarUtils.floorDivide(month, 12);
month = CalendarUtils.mod(month, 12);
}
BaseCalendar cal = getCalendarSystem(y);
cdate = (BaseCalendar.Date) cal.newCalendarDate(TimeZone.getDefaultRef());
cdate.setNormalizedDate(y, month + 1, date).setTimeOfDay(hrs, min, sec, 0);
getTimeImpl();
cdate = null;
}
/**
* Allocates a {@code Date} object and initializes it so that
* it represents the date and time indicated by the string
* {@code s}, which is interpreted as if by the
* {@link Date#parse} method.
*
* @param s a string representation of the date.
* @see java.text.DateFormat
* @see java.util.Date#parse(java.lang.String)
* @deprecated As of JDK version 1.1,
* replaced by {@code DateFormat.parse(String s)}.
*/
@Deprecated
public Date(String s) {
this(parse(s));
}
/**
* Return a copy of this object.
*/
public Object clone() {
Date d = null;
try {
d = (Date)super.clone();
if (cdate != null) {
d.cdate = (BaseCalendar.Date) cdate.clone();
}
} catch (CloneNotSupportedException e) {} // Won't happen
return d;
}
/**
* Determines the date and time based on the arguments. The
* arguments are interpreted as a year, month, day of the month,
* hour of the day, minute within the hour, and second within the
* minute, exactly as for the {@code Date} constructor with six
* arguments, except that the arguments are interpreted relative
* to UTC rather than to the local time zone. The time indicated is
* returned represented as the distance, measured in milliseconds,
* of that time from the epoch (00:00:00 GMT on January 1, 1970).
*
* @param year the year minus 1900.
* @param month the month between 0-11.
* @param date the day of the month between 1-31.
* @param hrs the hours between 0-23.
* @param min the minutes between 0-59.
* @param sec the seconds between 0-59.
* @return the number of milliseconds since January 1, 1970, 00:00:00 GMT for
* the date and time specified by the arguments.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(year + 1900, month, date, hrs, min, sec)}
* or {@code GregorianCalendar(year + 1900, month, date, hrs, min, sec)}, using a UTC
* {@code TimeZone}, followed by {@code Calendar.getTime().getTime()}.
*/
@Deprecated
public static long UTC(int year, int month, int date,
int hrs, int min, int sec) {
int y = year + 1900;
// month is 0-based. So we have to normalize month to support Long.MAX_VALUE.
if (month >= 12) {
y += month / 12;
month %= 12;
} else if (month < 0) {
y += CalendarUtils.floorDivide(month, 12);
month = CalendarUtils.mod(month, 12);
}
int m = month + 1;
BaseCalendar cal = getCalendarSystem(y);
BaseCalendar.Date udate = (BaseCalendar.Date) cal.newCalendarDate(null);
udate.setNormalizedDate(y, m, date).setTimeOfDay(hrs, min, sec, 0);
// Use a Date instance to perform normalization. Its fastTime
// is the UTC value after the normalization.
Date d = new Date(0);
d.normalize(udate);
return d.fastTime;
}
/**
* Attempts to interpret the string {@code s} as a representation
* of a date and time. If the attempt is successful, the time
* indicated is returned represented as the distance, measured in
* milliseconds, of that time from the epoch (00:00:00 GMT on
* January 1, 1970). If the attempt fails, an
* {@code IllegalArgumentException} is thrown.
* <p>
* It accepts many syntaxes; in particular, it recognizes the IETF
* standard date syntax: "Sat, 12 Aug 1995 13:30:00 GMT". It also
* understands the continental U.S. time-zone abbreviations, but for
* general use, a time-zone offset should be used: "Sat, 12 Aug 1995
* 13:30:00 GMT+0430" (4 hours, 30 minutes west of the Greenwich
* meridian). If no time zone is specified, the local time zone is
* assumed. GMT and UTC are considered equivalent.
* <p>
* The string {@code s} is processed from left to right, looking for
* data of interest. Any material in {@code s} that is within the
* ASCII parenthesis characters {@code (} and {@code )} is ignored.
* Parentheses may be nested. Otherwise, the only characters permitted
* within {@code s} are these ASCII characters:
* <blockquote><pre>
* abcdefghijklmnopqrstuvwxyz
* ABCDEFGHIJKLMNOPQRSTUVWXYZ
* 0123456789,+-:/</pre></blockquote>
* and whitespace characters.<p>
* A consecutive sequence of decimal digits is treated as a decimal
* number:<ul>
* <li>If a number is preceded by {@code +} or {@code -} and a year
* has already been recognized, then the number is a time-zone
* offset. If the number is less than 24, it is an offset measured
* in hours. Otherwise, it is regarded as an offset in minutes,
* expressed in 24-hour time format without punctuation. A
* preceding {@code -} means a westward offset. Time zone offsets
* are always relative to UTC (Greenwich). Thus, for example,
* {@code -5} occurring in the string would mean "five hours west
* of Greenwich" and {@code +0430} would mean "four hours and
* thirty minutes east of Greenwich." It is permitted for the
* string to specify {@code GMT}, {@code UT}, or {@code UTC}
* redundantly-for example, {@code GMT-5} or {@code utc+0430}.
* <li>The number is regarded as a year number if one of the
* following conditions is true:
* <ul>
* <li>The number is equal to or greater than 70 and followed by a
* space, comma, slash, or end of string
* <li>The number is less than 70, and both a month and a day of
* the month have already been recognized</li>
* </ul>
* If the recognized year number is less than 100, it is
* interpreted as an abbreviated year relative to a century of
* which dates are within 80 years before and 19 years after
* the time when the Date class is initialized.
* After adjusting the year number, 1900 is subtracted from
* it. For example, if the current year is 1999 then years in
* the range 19 to 99 are assumed to mean 1919 to 1999, while
* years from 0 to 18 are assumed to mean 2000 to 2018. Note
* that this is slightly different from the interpretation of
* years less than 100 that is used in {@link java.text.SimpleDateFormat}.
* <li>If the number is followed by a colon, it is regarded as an hour,
* unless an hour has already been recognized, in which case it is
* regarded as a minute.
* <li>If the number is followed by a slash, it is regarded as a month
* (it is decreased by 1 to produce a number in the range {@code 0}
* to {@code 11}), unless a month has already been recognized, in
* which case it is regarded as a day of the month.
* <li>If the number is followed by whitespace, a comma, a hyphen, or
* end of string, then if an hour has been recognized but not a
* minute, it is regarded as a minute; otherwise, if a minute has
* been recognized but not a second, it is regarded as a second;
* otherwise, it is regarded as a day of the month. </ul><p>
* A consecutive sequence of letters is regarded as a word and treated
* as follows:<ul>
* <li>A word that matches {@code AM}, ignoring case, is ignored (but
* the parse fails if an hour has not been recognized or is less
* than {@code 1} or greater than {@code 12}).
* <li>A word that matches {@code PM}, ignoring case, adds {@code 12}
* to the hour (but the parse fails if an hour has not been
* recognized or is less than {@code 1} or greater than {@code 12}).
* <li>Any word that matches any prefix of {@code SUNDAY, MONDAY, TUESDAY,
* WEDNESDAY, THURSDAY, FRIDAY}, or {@code SATURDAY}, ignoring
* case, is ignored. For example, {@code sat, Friday, TUE}, and
* {@code Thurs} are ignored.
* <li>Otherwise, any word that matches any prefix of {@code JANUARY,
* FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER,
* OCTOBER, NOVEMBER}, or {@code DECEMBER}, ignoring case, and
* considering them in the order given here, is recognized as
* specifying a month and is converted to a number ({@code 0} to
* {@code 11}). For example, {@code aug, Sept, april}, and
* {@code NOV} are recognized as months. So is {@code Ma}, which
* is recognized as {@code MARCH}, not {@code MAY}.
* <li>Any word that matches {@code GMT, UT}, or {@code UTC}, ignoring
* case, is treated as referring to UTC.
* <li>Any word that matches {@code EST, CST, MST}, or {@code PST},
* ignoring case, is recognized as referring to the time zone in
* North America that is five, six, seven, or eight hours west of
* Greenwich, respectively. Any word that matches {@code EDT, CDT,
* MDT}, or {@code PDT}, ignoring case, is recognized as
* referring to the same time zone, respectively, during daylight
* saving time.</ul><p>
* Once the entire string s has been scanned, it is converted to a time
* result in one of two ways. If a time zone or time-zone offset has been
* recognized, then the year, month, day of month, hour, minute, and
* second are interpreted in UTC and then the time-zone offset is
* applied. Otherwise, the year, month, day of month, hour, minute, and
* second are interpreted in the local time zone.
*
* @param s a string to be parsed as a date.
* @return the number of milliseconds since January 1, 1970, 00:00:00 GMT
* represented by the string argument.
* @see java.text.DateFormat
* @deprecated As of JDK version 1.1,
* replaced by {@code DateFormat.parse(String s)}.
*/
@Deprecated
public static long parse(String s) {
int year = Integer.MIN_VALUE;
int mon = -1;
int mday = -1;
int hour = -1;
int min = -1;
int sec = -1;
int millis = -1;
int c = -1;
int i = 0;
int n = -1;
int wst = -1;
int tzoffset = -1;
int prevc = 0;
syntax:
{
if (s == null)
break syntax;
int limit = s.length();
while (i < limit) {
c = s.charAt(i);
i++;
if (c <= ' ' || c == ',')
continue;
if (c == '(') { // skip comments
int depth = 1;
while (i < limit) {
c = s.charAt(i);
i++;
if (c == '(') depth++;
else if (c == ')')
if (--depth <= 0)
break;
}
continue;
}
if ('0' <= c && c <= '9') {
n = c - '0';
while (i < limit && '0' <= (c = s.charAt(i)) && c <= '9') {
n = n * 10 + c - '0';
i++;
}
if (prevc == '+' || prevc == '-' && year != Integer.MIN_VALUE) {
// timezone offset
if (n < 24)
n = n * 60; // EG. "GMT-3"
else
n = n % 100 + n / 100 * 60; // eg "GMT-0430"
if (prevc == '+') // plus means east of GMT
n = -n;
if (tzoffset != 0 && tzoffset != -1)
break syntax;
tzoffset = n;
} else if (n >= 70)
if (year != Integer.MIN_VALUE)
break syntax;
else if (c <= ' ' || c == ',' || c == '/' || i >= limit)
// year = n < 1900 ? n : n - 1900;
year = n;
else
break syntax;
else if (c == ':')
if (hour < 0)
hour = (byte) n;
else if (min < 0)
min = (byte) n;
else
break syntax;
else if (c == '/')
if (mon < 0)
mon = (byte) (n - 1);
else if (mday < 0)
mday = (byte) n;
else
break syntax;
else if (i < limit && c != ',' && c > ' ' && c != '-')
break syntax;
else if (hour >= 0 && min < 0)
min = (byte) n;
else if (min >= 0 && sec < 0)
sec = (byte) n;
else if (mday < 0)
mday = (byte) n;
// Handle two-digit years < 70 (70-99 handled above).
else if (year == Integer.MIN_VALUE && mon >= 0 && mday >= 0)
year = n;
else
break syntax;
prevc = 0;
} else if (c == '/' || c == ':' || c == '+' || c == '-')
prevc = c;
else {
int st = i - 1;
while (i < limit) {
c = s.charAt(i);
if (!('A' <= c && c <= 'Z' || 'a' <= c && c <= 'z'))
break;
i++;
}
if (i <= st + 1)
break syntax;
int k;
for (k = wtb.length; --k >= 0;)
if (wtb[k].regionMatches(true, 0, s, st, i - st)) {
int action = ttb[k];
if (action != 0) {
if (action == 1) { // pm
if (hour > 12 || hour < 1)
break syntax;
else if (hour < 12)
hour += 12;
} else if (action == 14) { // am
if (hour > 12 || hour < 1)
break syntax;
else if (hour == 12)
hour = 0;
} else if (action <= 13) { // month!
if (mon < 0)
mon = (byte) (action - 2);
else
break syntax;
} else {
tzoffset = action - 10000;
}
}
break;
}
if (k < 0)
break syntax;
prevc = 0;
}
}
if (year == Integer.MIN_VALUE || mon < 0 || mday < 0)
break syntax;
// Parse 2-digit years within the correct default century.
if (year < 100) {
synchronized (Date.class) {
if (defaultCenturyStart == 0) {
defaultCenturyStart = gcal.getCalendarDate().getYear() - 80;
}
}
year += (defaultCenturyStart / 100) * 100;
if (year < defaultCenturyStart) year += 100;
}
if (sec < 0)
sec = 0;
if (min < 0)
min = 0;
if (hour < 0)
hour = 0;
BaseCalendar cal = getCalendarSystem(year);
if (tzoffset == -1) { // no time zone specified, have to use local
BaseCalendar.Date ldate = (BaseCalendar.Date) cal.newCalendarDate(TimeZone.getDefaultRef());
ldate.setDate(year, mon + 1, mday);
ldate.setTimeOfDay(hour, min, sec, 0);
return cal.getTime(ldate);
}
BaseCalendar.Date udate = (BaseCalendar.Date) cal.newCalendarDate(null); // no time zone
udate.setDate(year, mon + 1, mday);
udate.setTimeOfDay(hour, min, sec, 0);
return cal.getTime(udate) + tzoffset * (60 * 1000);
}
// syntax error
throw new IllegalArgumentException();
}
private static final String wtb[] = {
"am", "pm",
"monday", "tuesday", "wednesday", "thursday", "friday",
"saturday", "sunday",
"january", "february", "march", "april", "may", "june",
"july", "august", "september", "october", "november", "december",
"gmt", "ut", "utc", "est", "edt", "cst", "cdt",
"mst", "mdt", "pst", "pdt"
};
private static final int ttb[] = {
14, 1, 0, 0, 0, 0, 0, 0, 0,
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
10000 + 0, 10000 + 0, 10000 + 0, // GMT/UT/UTC
10000 + 5 * 60, 10000 + 4 * 60, // EST/EDT
10000 + 6 * 60, 10000 + 5 * 60, // CST/CDT
10000 + 7 * 60, 10000 + 6 * 60, // MST/MDT
10000 + 8 * 60, 10000 + 7 * 60 // PST/PDT
};
/**
* Returns a value that is the result of subtracting 1900 from the
* year that contains or begins with the instant in time represented
* by this {@code Date} object, as interpreted in the local
* time zone.
*
* @return the year represented by this date, minus 1900.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.YEAR) - 1900}.
*/
@Deprecated
public int getYear() {
return normalize().getYear() - 1900;
}
/**
* Sets the year of this {@code Date} object to be the specified
* value plus 1900. This {@code Date} object is modified so
* that it represents a point in time within the specified year,
* with the month, date, hour, minute, and second the same as
* before, as interpreted in the local time zone. (Of course, if
* the date was February 29, for example, and the year is set to a
* non-leap year, then the new date will be treated as if it were
* on March 1.)
*
* @param year the year value.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(Calendar.YEAR, year + 1900)}.
*/
@Deprecated
public void setYear(int year) {
getCalendarDate().setNormalizedYear(year + 1900);
}
/**
* Returns a number representing the month that contains or begins
* with the instant in time represented by this {@code Date} object.
* The value returned is between {@code 0} and {@code 11},
* with the value {@code 0} representing January.
*
* @return the month represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.MONTH)}.
*/
@Deprecated
public int getMonth() {
return normalize().getMonth() - 1; // adjust 1-based to 0-based
}
/**
* Sets the month of this date to the specified value. This
* {@code Date} object is modified so that it represents a point
* in time within the specified month, with the year, date, hour,
* minute, and second the same as before, as interpreted in the
* local time zone. If the date was October 31, for example, and
* the month is set to June, then the new date will be treated as
* if it were on July 1, because June has only 30 days.
*
* @param month the month value between 0-11.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(Calendar.MONTH, int month)}.
*/
@Deprecated
public void setMonth(int month) {
int y = 0;
if (month >= 12) {
y = month / 12;
month %= 12;
} else if (month < 0) {
y = CalendarUtils.floorDivide(month, 12);
month = CalendarUtils.mod(month, 12);
}
BaseCalendar.Date d = getCalendarDate();
if (y != 0) {
d.setNormalizedYear(d.getNormalizedYear() + y);
}
d.setMonth(month + 1); // adjust 0-based to 1-based month numbering
}
/**
* Returns the day of the month represented by this {@code Date} object.
* The value returned is between {@code 1} and {@code 31}
* representing the day of the month that contains or begins with the
* instant in time represented by this {@code Date} object, as
* interpreted in the local time zone.
*
* @return the day of the month represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.DAY_OF_MONTH)}.
*/
@Deprecated
public int getDate() {
return normalize().getDayOfMonth();
}
/**
* Sets the day of the month of this {@code Date} object to the
* specified value. This {@code Date} object is modified so that
* it represents a point in time within the specified day of the
* month, with the year, month, hour, minute, and second the same
* as before, as interpreted in the local time zone. If the date
* was April 30, for example, and the date is set to 31, then it
* will be treated as if it were on May 1, because April has only
* 30 days.
*
* @param date the day of the month value between 1-31.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(Calendar.DAY_OF_MONTH, int date)}.
*/
@Deprecated
public void setDate(int date) {
getCalendarDate().setDayOfMonth(date);
}
/**
* Returns the day of the week represented by this date. The
* returned value ({@code 0} = Sunday, {@code 1} = Monday,
* {@code 2} = Tuesday, {@code 3} = Wednesday, {@code 4} =
* Thursday, {@code 5} = Friday, {@code 6} = Saturday)
* represents the day of the week that contains or begins with
* the instant in time represented by this {@code Date} object,
* as interpreted in the local time zone.
*
* @return the day of the week represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.DAY_OF_WEEK)}.
*/
@Deprecated
public int getDay() {
return normalize().getDayOfWeek() - BaseCalendar.SUNDAY;
}
/**
* Returns the hour represented by this {@code Date} object. The
* returned value is a number ({@code 0} through {@code 23})
* representing the hour within the day that contains or begins
* with the instant in time represented by this {@code Date}
* object, as interpreted in the local time zone.
*
* @return the hour represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.HOUR_OF_DAY)}.
*/
@Deprecated
public int getHours() {
return normalize().getHours();
}
/**
* Sets the hour of this {@code Date} object to the specified value.
* This {@code Date} object is modified so that it represents a point
* in time within the specified hour of the day, with the year, month,
* date, minute, and second the same as before, as interpreted in the
* local time zone.
*
* @param hours the hour value.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(Calendar.HOUR_OF_DAY, int hours)}.
*/
@Deprecated
public void setHours(int hours) {
getCalendarDate().setHours(hours);
}
/**
* Returns the number of minutes past the hour represented by this date,
* as interpreted in the local time zone.
* The value returned is between {@code 0} and {@code 59}.
*
* @return the number of minutes past the hour represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.MINUTE)}.
*/
@Deprecated
public int getMinutes() {
return normalize().getMinutes();
}
/**
* Sets the minutes of this {@code Date} object to the specified value.
* This {@code Date} object is modified so that it represents a point
* in time within the specified minute of the hour, with the year, month,
* date, hour, and second the same as before, as interpreted in the
* local time zone.
*
* @param minutes the value of the minutes.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(Calendar.MINUTE, int minutes)}.
*/
@Deprecated
public void setMinutes(int minutes) {
getCalendarDate().setMinutes(minutes);
}
/**
* Returns the number of seconds past the minute represented by this date.
* The value returned is between {@code 0} and {@code 61}. The
* values {@code 60} and {@code 61} can only occur on those
* Java Virtual Machines that take leap seconds into account.
*
* @return the number of seconds past the minute represented by this date.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.get(Calendar.SECOND)}.
*/
@Deprecated
public int getSeconds() {
return normalize().getSeconds();
}
/**
* Sets the seconds of this {@code Date} to the specified value.
* This {@code Date} object is modified so that it represents a
* point in time within the specified second of the minute, with
* the year, month, date, hour, and minute the same as before, as
* interpreted in the local time zone.
*
* @param seconds the seconds value.
* @see java.util.Calendar
* @deprecated As of JDK version 1.1,
* replaced by {@code Calendar.set(Calendar.SECOND, int seconds)}.
*/
@Deprecated
public void setSeconds(int seconds) {
getCalendarDate().setSeconds(seconds);
}
/**
* Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT
* represented by this {@code Date} object.
*
* @return the number of milliseconds since January 1, 1970, 00:00:00 GMT
* represented by this date.
*/
public long getTime() {
return getTimeImpl();
}
private final long getTimeImpl() {
if (cdate != null && !cdate.isNormalized()) {
normalize();
}
return fastTime;
}
/**
* Sets this {@code Date} object to represent a point in time that is
* {@code time} milliseconds after January 1, 1970 00:00:00 GMT.
*
* @param time the number of milliseconds.
*/
public void setTime(long time) {
fastTime = time;
cdate = null;
}
/**
* Tests if this date is before the specified date.
*
* @param when a date.
* @return {@code true} if and only if the instant of time
* represented by this {@code Date} object is strictly
* earlier than the instant represented by {@code when};
* {@code false} otherwise.
* @throws NullPointerException if {@code when} is null.
*/
public boolean before(Date when) {
return getMillisOf(this) < getMillisOf(when);
}
/**
* Tests if this date is after the specified date.
*
* @param when a date.
* @return {@code true} if and only if the instant represented
* by this {@code Date} object is strictly later than the
* instant represented by {@code when};
* {@code false} otherwise.
* @throws NullPointerException if {@code when} is null.
*/
public boolean after(Date when) {
return getMillisOf(this) > getMillisOf(when);
}
/**
* Compares two dates for equality.
* The result is {@code true} if and only if the argument is
* not {@code null} and is a {@code Date} object that
* represents the same point in time, to the millisecond, as this object.
* <p>
* Thus, two {@code Date} objects are equal if and only if the
* {@code getTime} method returns the same {@code long}
* value for both.
*
* @param obj the object to compare with.
* @return {@code true} if the objects are the same;
* {@code false} otherwise.
* @see java.util.Date#getTime()
*/
public boolean equals(Object obj) {
return obj instanceof Date && getTime() == ((Date) obj).getTime();
}
/**
* Returns the millisecond value of this {@code Date} object
* without affecting its internal state.
*/
static final long getMillisOf(Date date) {
if (date.getClass() != Date.class) {
return date.getTime();
}
if (date.cdate == null || date.cdate.isNormalized()) {
return date.fastTime;
}
BaseCalendar.Date d = (BaseCalendar.Date) date.cdate.clone();
return gcal.getTime(d);
}
/**
* Compares two Dates for ordering.
*
* @param anotherDate the {@code Date} to be compared.
* @return the value {@code 0} if the argument Date is equal to
* this Date; a value less than {@code 0} if this Date
* is before the Date argument; and a value greater than
* {@code 0} if this Date is after the Date argument.
* @since 1.2
* @throws NullPointerException if {@code anotherDate} is null.
*/
public int compareTo(Date anotherDate) {
long thisTime = getMillisOf(this);
long anotherTime = getMillisOf(anotherDate);
return (thisTime<anotherTime ? -1 : (thisTime==anotherTime ? 0 : 1));
}
/**
* Returns a hash code value for this object. The result is the
* exclusive OR of the two halves of the primitive {@code long}
* value returned by the {@link Date#getTime}
* method. That is, the hash code is the value of the expression:
* <blockquote><pre>{@code
* (int)(this.getTime()^(this.getTime() >>> 32))
* }</pre></blockquote>
*
* @return a hash code value for this object.
*/
public int hashCode() {
long ht = this.getTime();
return (int) ht ^ (int) (ht >> 32);
}
/**
* Converts this {@code Date} object to a {@code String}
* of the form:
* <blockquote><pre>
* dow mon dd hh:mm:ss zzz yyyy</pre></blockquote>
* where:<ul>
* <li>{@code dow} is the day of the week ({@code Sun, Mon, Tue, Wed,
* Thu, Fri, Sat}).
* <li>{@code mon} is the month ({@code Jan, Feb, Mar, Apr, May, Jun,
* Jul, Aug, Sep, Oct, Nov, Dec}).
* <li>{@code dd} is the day of the month ({@code 01} through
* {@code 31}), as two decimal digits.
* <li>{@code hh} is the hour of the day ({@code 00} through
* {@code 23}), as two decimal digits.
* <li>{@code mm} is the minute within the hour ({@code 00} through
* {@code 59}), as two decimal digits.
* <li>{@code ss} is the second within the minute ({@code 00} through
* {@code 61}, as two decimal digits.
* <li>{@code zzz} is the time zone (and may reflect daylight saving
* time). Standard time zone abbreviations include those
* recognized by the method {@code parse}. If time zone
* information is not available, then {@code zzz} is empty -
* that is, it consists of no characters at all.
* <li>{@code yyyy} is the year, as four decimal digits.
* </ul>
*
* @return a string representation of this date.
* @see java.util.Date#toLocaleString()
* @see java.util.Date#toGMTString()
*/
public String toString() {
// "EEE MMM dd HH:mm:ss zzz yyyy";
BaseCalendar.Date date = normalize();
StringBuilder sb = new StringBuilder(28);
int index = date.getDayOfWeek();
if (index == BaseCalendar.SUNDAY) {
index = 8;
}
convertToAbbr(sb, wtb[index]).append(' '); // EEE
convertToAbbr(sb, wtb[date.getMonth() - 1 + 2 + 7]).append(' '); // MMM
CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 2).append(' '); // dd
CalendarUtils.sprintf0d(sb, date.getHours(), 2).append(':'); // HH
CalendarUtils.sprintf0d(sb, date.getMinutes(), 2).append(':'); // mm
CalendarUtils.sprintf0d(sb, date.getSeconds(), 2).append(' '); // ss
TimeZone zi = date.getZone();
if (zi != null) {
sb.append(zi.getDisplayName(date.isDaylightTime(), TimeZone.SHORT, Locale.US)); // zzz
} else {
sb.append("GMT");
}
sb.append(' ').append(date.getYear()); // yyyy
return sb.toString();
}
/**
* Converts the given name to its 3-letter abbreviation (e.g.,
* "monday" -> "Mon") and stored the abbreviation in the given
* {@code StringBuilder}.
*/
private static final StringBuilder convertToAbbr(StringBuilder sb, String name) {
sb.append(Character.toUpperCase(name.charAt(0)));
sb.append(name.charAt(1)).append(name.charAt(2));
return sb;
}
/**
* Creates a string representation of this {@code Date} object in an
* implementation-dependent form. The intent is that the form should
* be familiar to the user of the Java application, wherever it may
* happen to be running. The intent is comparable to that of the
* "{@code %c}" format supported by the {@code strftime()}
* function of ISO C.
*
* @return a string representation of this date, using the locale
* conventions.
* @see java.text.DateFormat
* @see java.util.Date#toString()
* @see java.util.Date#toGMTString()
* @deprecated As of JDK version 1.1,
* replaced by {@code DateFormat.format(Date date)}.
*/
@Deprecated
public String toLocaleString() {
DateFormat formatter = DateFormat.getDateTimeInstance();
return formatter.format(this);
}
/**
* Creates a string representation of this {@code Date} object of
* the form:
* <blockquote><pre>
* d mon yyyy hh:mm:ss GMT</pre></blockquote>
* where:<ul>
* <li><i>d</i> is the day of the month ({@code 1} through {@code 31}),
* as one or two decimal digits.
* <li><i>mon</i> is the month ({@code Jan, Feb, Mar, Apr, May, Jun, Jul,
* Aug, Sep, Oct, Nov, Dec}).
* <li><i>yyyy</i> is the year, as four decimal digits.
* <li><i>hh</i> is the hour of the day ({@code 00} through {@code 23}),
* as two decimal digits.
* <li><i>mm</i> is the minute within the hour ({@code 00} through
* {@code 59}), as two decimal digits.
* <li><i>ss</i> is the second within the minute ({@code 00} through
* {@code 61}), as two decimal digits.
* <li><i>GMT</i> is exactly the ASCII letters "{@code GMT}" to indicate
* Greenwich Mean Time.
* </ul><p>
* The result does not depend on the local time zone.
*
* @return a string representation of this date, using the Internet GMT
* conventions.
* @see java.text.DateFormat
* @see java.util.Date#toString()
* @see java.util.Date#toLocaleString()
* @deprecated As of JDK version 1.1,
* replaced by {@code DateFormat.format(Date date)}, using a
* GMT {@code TimeZone}.
*/
@Deprecated
public String toGMTString() {
// d MMM yyyy HH:mm:ss 'GMT'
long t = getTime();
BaseCalendar cal = getCalendarSystem(t);
BaseCalendar.Date date =
(BaseCalendar.Date) cal.getCalendarDate(getTime(), (TimeZone)null);
StringBuilder sb = new StringBuilder(32);
CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 1).append(' '); // d
convertToAbbr(sb, wtb[date.getMonth() - 1 + 2 + 7]).append(' '); // MMM
sb.append(date.getYear()).append(' '); // yyyy
CalendarUtils.sprintf0d(sb, date.getHours(), 2).append(':'); // HH
CalendarUtils.sprintf0d(sb, date.getMinutes(), 2).append(':'); // mm
CalendarUtils.sprintf0d(sb, date.getSeconds(), 2); // ss
sb.append(" GMT"); // ' GMT'
return sb.toString();
}
/**
* Returns the offset, measured in minutes, for the local time zone
* relative to UTC that is appropriate for the time represented by
* this {@code Date} object.
* <p>
* For example, in Massachusetts, five time zones west of Greenwich:
* <blockquote><pre>
* new Date(96, 1, 14).getTimezoneOffset() returns 300</pre></blockquote>
* because on February 14, 1996, standard time (Eastern Standard Time)
* is in use, which is offset five hours from UTC; but:
* <blockquote><pre>
* new Date(96, 5, 1).getTimezoneOffset() returns 240</pre></blockquote>
* because on June 1, 1996, daylight saving time (Eastern Daylight Time)
* is in use, which is offset only four hours from UTC.<p>
* This method produces the same result as if it computed:
* <blockquote><pre>
* (this.getTime() - UTC(this.getYear(),
* this.getMonth(),
* this.getDate(),
* this.getHours(),
* this.getMinutes(),
* this.getSeconds())) / (60 * 1000)
* </pre></blockquote>
*
* @return the time-zone offset, in minutes, for the current time zone.
* @see java.util.Calendar#ZONE_OFFSET
* @see java.util.Calendar#DST_OFFSET
* @see java.util.TimeZone#getDefault
* @deprecated As of JDK version 1.1,
* replaced by {@code -(Calendar.get(Calendar.ZONE_OFFSET) +
* Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000)}.
*/
@Deprecated
public int getTimezoneOffset() {
int zoneOffset;
if (cdate == null) {
TimeZone tz = TimeZone.getDefaultRef();
if (tz instanceof ZoneInfo) {
zoneOffset = ((ZoneInfo)tz).getOffsets(fastTime, null);
} else {
zoneOffset = tz.getOffset(fastTime);
}
} else {
normalize();
zoneOffset = cdate.getZoneOffset();
}
return -zoneOffset/60000; // convert to minutes
}
private final BaseCalendar.Date getCalendarDate() {
if (cdate == null) {
BaseCalendar cal = getCalendarSystem(fastTime);
cdate = (BaseCalendar.Date) cal.getCalendarDate(fastTime,
TimeZone.getDefaultRef());
}
return cdate;
}
private final BaseCalendar.Date normalize() {
if (cdate == null) {
BaseCalendar cal = getCalendarSystem(fastTime);
cdate = (BaseCalendar.Date) cal.getCalendarDate(fastTime,
TimeZone.getDefaultRef());
return cdate;
}
// Normalize cdate with the TimeZone in cdate first. This is
// required for the compatible behavior.
if (!cdate.isNormalized()) {
cdate = normalize(cdate);
}
// If the default TimeZone has changed, then recalculate the
// fields with the new TimeZone.
TimeZone tz = TimeZone.getDefaultRef();
if (tz != cdate.getZone()) {
cdate.setZone(tz);
CalendarSystem cal = getCalendarSystem(cdate);
cal.getCalendarDate(fastTime, cdate);
}
return cdate;
}
// fastTime and the returned data are in sync upon return.
private final BaseCalendar.Date normalize(BaseCalendar.Date date) {
int y = date.getNormalizedYear();
int m = date.getMonth();
int d = date.getDayOfMonth();
int hh = date.getHours();
int mm = date.getMinutes();
int ss = date.getSeconds();
int ms = date.getMillis();
TimeZone tz = date.getZone();
// If the specified year can't be handled using a long value
// in milliseconds, GregorianCalendar is used for full
// compatibility with underflow and overflow. This is required
// by some JCK tests. The limits are based max year values -
// years that can be represented by max values of d, hh, mm,
// ss and ms. Also, let GregorianCalendar handle the default
// cutover year so that we don't need to worry about the
// transition here.
if (y == 1582 || y > 280000000 || y < -280000000) {
if (tz == null) {
tz = TimeZone.getTimeZone("GMT");
}
GregorianCalendar gc = new GregorianCalendar(tz);
gc.clear();
gc.set(GregorianCalendar.MILLISECOND, ms);
gc.set(y, m-1, d, hh, mm, ss);
fastTime = gc.getTimeInMillis();
BaseCalendar cal = getCalendarSystem(fastTime);
date = (BaseCalendar.Date) cal.getCalendarDate(fastTime, tz);
return date;
}
BaseCalendar cal = getCalendarSystem(y);
if (cal != getCalendarSystem(date)) {
date = (BaseCalendar.Date) cal.newCalendarDate(tz);
date.setNormalizedDate(y, m, d).setTimeOfDay(hh, mm, ss, ms);
}
// Perform the GregorianCalendar-style normalization.
fastTime = cal.getTime(date);
// In case the normalized date requires the other calendar
// system, we need to recalculate it using the other one.
BaseCalendar ncal = getCalendarSystem(fastTime);
if (ncal != cal) {
date = (BaseCalendar.Date) ncal.newCalendarDate(tz);
date.setNormalizedDate(y, m, d).setTimeOfDay(hh, mm, ss, ms);
fastTime = ncal.getTime(date);
}
return date;
}
/**
* Returns the Gregorian or Julian calendar system to use with the
* given date. Use Gregorian from October 15, 1582.
*
* @param year normalized calendar year (not -1900)
* @return the CalendarSystem to use for the specified date
*/
private static final BaseCalendar getCalendarSystem(int year) {
if (year >= 1582) {
return gcal;
}
return getJulianCalendar();
}
private static final BaseCalendar getCalendarSystem(long utc) {
// Quickly check if the time stamp given by `utc' is the Epoch
// or later. If it's before 1970, we convert the cutover to
// local time to compare.
if (utc >= 0
|| utc >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER
- TimeZone.getDefaultRef().getOffset(utc)) {
return gcal;
}
return getJulianCalendar();
}
private static final BaseCalendar getCalendarSystem(BaseCalendar.Date cdate) {
if (jcal == null) {
return gcal;
}
if (cdate.getEra() != null) {
return jcal;
}
return gcal;
}
private static final synchronized BaseCalendar getJulianCalendar() {
if (jcal == null) {
jcal = (BaseCalendar) CalendarSystem.forName("julian");
}
return jcal;
}
/**
* Save the state of this object to a stream (i.e., serialize it).
*
* @serialData The value returned by {@code getTime()}
* is emitted (long). This represents the offset from
* January 1, 1970, 00:00:00 GMT in milliseconds.
*/
@java.io.Serial
private void writeObject(ObjectOutputStream s)
throws IOException
{
s.defaultWriteObject();
s.writeLong(getTimeImpl());
}
/**
* Reconstitute this object from a stream (i.e., deserialize it).
*/
@java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
s.defaultReadObject();
fastTime = s.readLong();
}
/**
* Obtains an instance of {@code Date} from an {@code Instant} object.
* <p>
* {@code Instant} uses a precision of nanoseconds, whereas {@code Date}
* uses a precision of milliseconds. The conversion will truncate any
* excess precision information as though the amount in nanoseconds was
* subject to integer division by one million.
* <p>
* {@code Instant} can store points on the time-line further in the future
* and further in the past than {@code Date}. In this scenario, this method
* will throw an exception.
*
* @param instant the instant to convert
* @return a {@code Date} representing the same point on the time-line as
* the provided instant
* @throws NullPointerException if {@code instant} is null.
* @throws IllegalArgumentException if the instant is too large to
* represent as a {@code Date}
* @since 1.8
*/
public static Date from(Instant instant) {
try {
return new Date(instant.toEpochMilli());
} catch (ArithmeticException ex) {
throw new IllegalArgumentException(ex);
}
}
/**
* Converts this {@code Date} object to an {@code Instant}.
* <p>
* The conversion creates an {@code Instant} that represents the same
* point on the time-line as this {@code Date}.
*
* @return an instant representing the same point on the time-line as
* this {@code Date} object
* @since 1.8
*/
public Instant toInstant() {
return Instant.ofEpochMilli(getTime());
}
}
| {
"pile_set_name": "Github"
} |
//go:generate protoc --go_out=plugins=grpc:. ipv4_rib_edm_proto.proto
// Cisco-IOS-XR-ip-rib-ipv4-oper:rib-stdby/vrfs/vrf/afs/af/safs/saf/ip-rib-route-table-names/ip-rib-route-table-name/protocol/static/non-as/information
package cisco_ios_xr_ip_rib_ipv4_oper_rib_stdby_vrfs_vrf_afs_af_safs_saf_ip_rib_route_table_names_ip_rib_route_table_name_protocol_static_non_as_information
| {
"pile_set_name": "Github"
} |
define("ace/mode/pig_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var PigHighlightRules = function() {
this.$rules = {
start: [{
token: "comment.block.pig",
regex: /\/\*/,
push: [{
token: "comment.block.pig",
regex: /\*\//,
next: "pop"
}, {
defaultToken: "comment.block.pig"
}]
}, {
token: "comment.line.double-dash.asciidoc",
regex: /--.*$/
}, {
token: "keyword.control.pig",
regex: /\b(?:ASSERT|LOAD|STORE|DUMP|FILTER|DISTINCT|FOREACH|GENERATE|STREAM|JOIN|COGROUP|GROUP|CROSS|ORDER|LIMIT|UNION|SPLIT|DESCRIBE|EXPLAIN|ILLUSTRATE|AS|BY|INTO|USING|LIMIT|PARALLEL|OUTER|INNER|DEFAULT|LEFT|SAMPLE|RANK|CUBE|ALL|KILL|QUIT|MAPREDUCE|ASC|DESC|THROUGH|SHIP|CACHE|DECLARE|CASE|WHEN|THEN|END|IN|PARTITION|FULL|IMPORT|IF|ONSCHEMA|INPUT|OUTPUT)\b/,
caseInsensitive: true
}, {
token: "storage.datatypes.pig",
regex: /\b(?:int|long|float|double|chararray|bytearray|boolean|datetime|biginteger|bigdecimal|tuple|bag|map)\b/,
caseInsensitive: true
}, {
token: "support.function.storage.pig",
regex: /\b(?:PigStorage|BinStorage|BinaryStorage|PigDump|HBaseStorage|JsonLoader|JsonStorage|AvroStorage|TextLoader|PigStreaming|TrevniStorage|AccumuloStorage)\b/
}, {
token: "support.function.udf.pig",
regex: /\b(?:DIFF|TOBAG|TOMAP|TOP|TOTUPLE|RANDOM|FLATTEN|flatten|CUBE|ROLLUP|IsEmpty|ARITY|PluckTuple|SUBTRACT|BagToString)\b/
}, {
token: "support.function.udf.math.pig",
regex: /\b(?:ABS|ACOS|ASIN|ATAN|CBRT|CEIL|COS|COSH|EXP|FLOOR|LOG|LOG10|ROUND|ROUND_TO|SIN|SINH|SQRT|TAN|TANH|AVG|COUNT|COUNT_STAR|MAX|MIN|SUM|COR|COV)\b/
}, {
token: "support.function.udf.string.pig",
regex: /\b(?:CONCAT|INDEXOF|LAST_INDEX_OF|LCFIRST|LOWER|REGEX_EXTRACT|REGEX_EXTRACT_ALL|REPLACE|SIZE|STRSPLIT|SUBSTRING|TOKENIZE|TRIM|UCFIRST|UPPER|LTRIM|RTRIM|ENDSWITH|STARTSWITH|TRIM)\b/
}, {
token: "support.function.udf.datetime.pig",
regex: /\b(?:AddDuration|CurrentTime|DaysBetween|GetDay|GetHour|GetMilliSecond|GetMinute|GetMonth|GetSecond|GetWeek|GetWeekYear|GetYear|HoursBetween|MilliSecondsBetween|MinutesBetween|MonthsBetween|SecondsBetween|SubtractDuration|ToDate|WeeksBetween|YearsBetween|ToMilliSeconds|ToString|ToUnixTime)\b/
}, {
token: "support.function.command.pig",
regex: /\b(?:cat|cd|copyFromLocal|copyToLocal|cp|ls|mkdir|mv|pwd|rm)\b/
}, {
token: "variable.pig",
regex: /\$[a_zA-Z0-9_]+/
}, {
token: "constant.language.pig",
regex: /\b(?:NULL|true|false|stdin|stdout|stderr)\b/,
caseInsensitive: true
}, {
token: "constant.numeric.pig",
regex: /\b\d+(?:\.\d+)?\b/
}, {
token: "keyword.operator.comparison.pig",
regex: /!=|==|<|>|<=|>=|\b(?:MATCHES|IS|OR|AND|NOT)\b/,
caseInsensitive: true
}, {
token: "keyword.operator.arithmetic.pig",
regex: /\+|\-|\*|\/|\%|\?|:|::|\.\.|#/
}, {
token: "string.quoted.double.pig",
regex: /"/,
push: [{
token: "string.quoted.double.pig",
regex: /"/,
next: "pop"
}, {
token: "constant.character.escape.pig",
regex: /\\./
}, {
defaultToken: "string.quoted.double.pig"
}]
}, {
token: "string.quoted.single.pig",
regex: /'/,
push: [{
token: "string.quoted.single.pig",
regex: /'/,
next: "pop"
}, {
token: "constant.character.escape.pig",
regex: /\\./
}, {
defaultToken: "string.quoted.single.pig"
}]
}, {
todo: {
token: [
"text",
"keyword.parameter.pig",
"text",
"storage.type.parameter.pig"
],
regex: /^(\s*)(set)(\s+)(\S+)/,
caseInsensitive: true,
push: [{
token: "text",
regex: /$/,
next: "pop"
}, {
include: "$self"
}]
}
}, {
token: [
"text",
"keyword.alias.pig",
"text",
"storage.type.alias.pig"
],
regex: /(\s*)(DEFINE|DECLARE|REGISTER)(\s+)(\S+)/,
caseInsensitive: true,
push: [{
token: "text",
regex: /;?$/,
next: "pop"
}]
}]
};
this.normalizeRules();
};
PigHighlightRules.metaData = {
fileTypes: ["pig"],
name: "Pig",
scopeName: "source.pig"
};
oop.inherits(PigHighlightRules, TextHighlightRules);
exports.PigHighlightRules = PigHighlightRules;
});
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
"use strict";
var oop = require("../../lib/oop");
var Range = require("../../range").Range;
var BaseFoldMode = require("./fold_mode").FoldMode;
var FoldMode = exports.FoldMode = function(commentRegex) {
if (commentRegex) {
this.foldingStartMarker = new RegExp(
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
);
this.foldingStopMarker = new RegExp(
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
);
}
};
oop.inherits(FoldMode, BaseFoldMode);
(function() {
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
this._getFoldWidgetBase = this.getFoldWidget;
this.getFoldWidget = function(session, foldStyle, row) {
var line = session.getLine(row);
if (this.singleLineBlockCommentRe.test(line)) {
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
return "";
}
var fw = this._getFoldWidgetBase(session, foldStyle, row);
if (!fw && this.startRegionRe.test(line))
return "start"; // lineCommentRegionStart
return fw;
};
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
var line = session.getLine(row);
if (this.startRegionRe.test(line))
return this.getCommentRegionBlock(session, line, row);
var match = line.match(this.foldingStartMarker);
if (match) {
var i = match.index;
if (match[1])
return this.openingBracketBlock(session, match[1], row, i);
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
if (range && !range.isMultiLine()) {
if (forceMultiline) {
range = this.getSectionRange(session, row);
} else if (foldStyle != "all")
range = null;
}
return range;
}
if (foldStyle === "markbegin")
return;
var match = line.match(this.foldingStopMarker);
if (match) {
var i = match.index + match[0].length;
if (match[1])
return this.closingBracketBlock(session, match[1], row, i);
return session.getCommentFoldRange(row, i, -1);
}
};
this.getSectionRange = function(session, row) {
var line = session.getLine(row);
var startIndent = line.search(/\S/);
var startRow = row;
var startColumn = line.length;
row = row + 1;
var endRow = row;
var maxRow = session.getLength();
while (++row < maxRow) {
line = session.getLine(row);
var indent = line.search(/\S/);
if (indent === -1)
continue;
if (startIndent > indent)
break;
var subRange = this.getFoldWidgetRange(session, "all", row);
if (subRange) {
if (subRange.start.row <= startRow) {
break;
} else if (subRange.isMultiLine()) {
row = subRange.end.row;
} else if (startIndent == indent) {
break;
}
}
endRow = row;
}
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
};
this.getCommentRegionBlock = function(session, line, row) {
var startColumn = line.search(/\s*$/);
var maxRow = session.getLength();
var startRow = row;
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
var depth = 1;
while (++row < maxRow) {
line = session.getLine(row);
var m = re.exec(line);
if (!m) continue;
if (m[1]) depth--;
else depth++;
if (!depth) break;
}
var endRow = row;
if (endRow > startRow) {
return new Range(startRow, startColumn, endRow, line.length);
}
};
}).call(FoldMode.prototype);
});
define("ace/mode/pig",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pig_highlight_rules","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var PigHighlightRules = require("./pig_highlight_rules").PigHighlightRules;
var FoldMode = require("./folding/cstyle").FoldMode;
var Mode = function() {
this.HighlightRules = PigHighlightRules;
this.foldingRules = new FoldMode();
};
oop.inherits(Mode, TextMode);
(function() {
this.lineCommentStart = "--";
this.blockComment = {start: "/*", end: "*/"};
this.$id = "ace/mode/pig";
}).call(Mode.prototype);
exports.Mode = Mode;
});
| {
"pile_set_name": "Github"
} |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function isArray(arg) {
if (Array.isArray) {
return Array.isArray(arg);
}
return objectToString(arg) === '[object Array]';
}
exports.isArray = isArray;
function isBoolean(arg) {
return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;
function isNull(arg) {
return arg === null;
}
exports.isNull = isNull;
function isNullOrUndefined(arg) {
return arg == null;
}
exports.isNullOrUndefined = isNullOrUndefined;
function isNumber(arg) {
return typeof arg === 'number';
}
exports.isNumber = isNumber;
function isString(arg) {
return typeof arg === 'string';
}
exports.isString = isString;
function isSymbol(arg) {
return typeof arg === 'symbol';
}
exports.isSymbol = isSymbol;
function isUndefined(arg) {
return arg === void 0;
}
exports.isUndefined = isUndefined;
function isRegExp(re) {
return objectToString(re) === '[object RegExp]';
}
exports.isRegExp = isRegExp;
function isObject(arg) {
return typeof arg === 'object' && arg !== null;
}
exports.isObject = isObject;
function isDate(d) {
return objectToString(d) === '[object Date]';
}
exports.isDate = isDate;
function isError(e) {
return (objectToString(e) === '[object Error]' || e instanceof Error);
}
exports.isError = isError;
function isFunction(arg) {
return typeof arg === 'function';
}
exports.isFunction = isFunction;
function isPrimitive(arg) {
return arg === null ||
typeof arg === 'boolean' ||
typeof arg === 'number' ||
typeof arg === 'string' ||
typeof arg === 'symbol' || // ES6 symbol
typeof arg === 'undefined';
}
exports.isPrimitive = isPrimitive;
exports.isBuffer = Buffer.isBuffer;
function objectToString(o) {
return Object.prototype.toString.call(o);
}
| {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using TODOSQLiteSample.ViewModels;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
namespace TODOSQLiteSample.Views
{
public sealed partial class ToDoEditorContentDialog : ContentDialog
{
public ToDoEditorContentDialog()
{
this.InitializeComponent();
}
public event EventHandler<TodoItemViewModel> DeleteTodoItemClicked;
private void DeleteItemClicked(ContentDialog sender, ContentDialogButtonClickEventArgs args)
{
if (DeleteTodoItemClicked != null)
{
DeleteTodoItemClicked(this, (TodoItemViewModel)this.DataContext);
}
}
}
}
| {
"pile_set_name": "Github"
} |
import lock from 'democracyos-loading-lock'
import t from 't-component'
import page from 'page'
import config from '../../../config/config.js'
import FormView from '../../../form-view/form-view.js'
import ForumUnique from '../forum-unique/forum-unique.js'
import template from './template.jade'
export default class ForumForm extends FormView {
/**
* ForumForm
*
* @return {ForumForm} `ForumForm` instance.
* @api public
*/
constructor () {
super(template, { domain: `${config.protocol}://${config.host}/` })
this.elUrl = this.find('input[name=name]')
this.form = this.find('form')
this.forumUnique = new ForumUnique({ el: this.elUrl })
}
switchOn () {
this.on('success', this.bound('onsuccess'))
this.forumUnique.on('success', this.bound('onuserchecked'))
}
switchOff () {
this.off('success', this.bound('onsuccess'))
this.forumUnique.off('success', this.bound('onuserchecked'))
}
onuserchecked (res) {
let container = this.find('.subdomain')
let message = this.find('.subdomain .name-unavailable')
if (res.exists) {
container.addClass('has-error')
container.removeClass('has-success')
message.removeClass('hide')
} else {
container.removeClass('has-error')
container.addClass('has-success')
message.addClass('hide')
}
}
onsuccess (res) {
window.analytics.track('create forum', { forum: res.body.id })
page('/')
setTimeout(() => {
window.location = '/'
}, 2000)
}
loading () {
this.disable()
this.messageTimer = setTimeout(() => {
this.messages(t('forum.form.create.wait'), 'sending')
this.spin()
this.find('a.cancel').addClass('enabled')
}, 1000)
}
spin () {
var div = this.find('.fieldsets')
if (!div.length) return
this.spinTimer = setTimeout(() => {
this.spinner = lock(div[0], { size: 100 })
this.spinner.lock()
}, 500)
}
unspin () {
clearTimeout(this.spinTimer)
if (!this.spinner) return
this.spinner.unlock()
}
disable () {
this.disabled = true
this.form.attr('disabled', true)
this.find('button').attr('disabled', true)
}
enable () {
this.disabled = false
this.form.attr('disabled', null)
this.find('button').attr('disabled', null)
}
}
| {
"pile_set_name": "Github"
} |
//
// UIImage+RemoteSize.h
// iOS-Categories (https://github.com/shaojiankui/iOS-Categories)
//
// Created by Jakey on 15/1/27.
// Copyright (c) 2015年 www.skyfox.org. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^UIImageSizeRequestCompleted) (NSURL* imgURL, CGSize size);
@interface UIImage (RemoteSize)
/**
* @brief 获取远程图片的大小
*
* @param imgURL 图片url
* @param completion 完成回调
*/
+ (void)requestSizeNoHeader:(NSURL*)imgURL completion:(UIImageSizeRequestCompleted)completion;
/**
* @brief 从header中获取远程图片的大小 (服务器必须支持)
*
* @param imgURL 图片url
* @param completion 完成回调
*/
//+ (void)requestSizeWithHeader:(NSURL*)imgURL completion:(UIImageSizeRequestCompleted)completion;
@end | {
"pile_set_name": "Github"
} |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package org.apache.hadoop.fs.azure;
import static org.apache.hadoop.fs.azure.AzureNativeFileSystemStore.DEFAULT_STORAGE_EMULATOR_ACCOUNT_NAME;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Calendar;
import java.util.Date;
import java.util.EnumSet;
import java.util.GregorianCalendar;
import java.util.TimeZone;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.apache.commons.configuration.SubsetConfiguration;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.azure.metrics.AzureFileSystemInstrumentation;
import org.apache.hadoop.fs.azure.metrics.AzureFileSystemMetricsSystem;
import org.apache.hadoop.metrics2.AbstractMetric;
import org.apache.hadoop.metrics2.MetricsRecord;
import org.apache.hadoop.metrics2.MetricsSink;
import org.apache.hadoop.metrics2.MetricsTag;
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
import com.microsoft.windowsazure.storage.AccessCondition;
import com.microsoft.windowsazure.storage.CloudStorageAccount;
import com.microsoft.windowsazure.storage.StorageCredentials;
import com.microsoft.windowsazure.storage.StorageCredentialsAccountAndKey;
import com.microsoft.windowsazure.storage.StorageCredentialsAnonymous;
import com.microsoft.windowsazure.storage.blob.BlobContainerPermissions;
import com.microsoft.windowsazure.storage.blob.BlobContainerPublicAccessType;
import com.microsoft.windowsazure.storage.blob.BlobOutputStream;
import com.microsoft.windowsazure.storage.blob.CloudBlobClient;
import com.microsoft.windowsazure.storage.blob.CloudBlobContainer;
import com.microsoft.windowsazure.storage.blob.CloudBlockBlob;
import com.microsoft.windowsazure.storage.blob.SharedAccessBlobPermissions;
import com.microsoft.windowsazure.storage.blob.SharedAccessBlobPolicy;
import com.microsoft.windowsazure.storage.core.Base64;
/**
* Helper class to create WASB file systems backed by either a mock in-memory
* implementation or a real Azure Storage account. See RunningLiveWasbTests.txt
* for instructions on how to connect to a real Azure Storage account.
*/
public final class AzureBlobStorageTestAccount {
private static final String ACCOUNT_KEY_PROPERTY_NAME = "fs.azure.account.key.";
private static final String SAS_PROPERTY_NAME = "fs.azure.sas.";
private static final String TEST_CONFIGURATION_FILE_NAME = "azure-test.xml";
private static final String TEST_ACCOUNT_NAME_PROPERTY_NAME = "fs.azure.test.account.name";
public static final String MOCK_ACCOUNT_NAME = "mockAccount.blob.core.windows.net";
public static final String MOCK_CONTAINER_NAME = "mockContainer";
public static final String WASB_AUTHORITY_DELIMITER = "@";
public static final String WASB_SCHEME = "wasb";
public static final String PATH_DELIMITER = "/";
public static final String AZURE_ROOT_CONTAINER = "$root";
public static final String MOCK_WASB_URI = "wasb://" + MOCK_CONTAINER_NAME
+ WASB_AUTHORITY_DELIMITER + MOCK_ACCOUNT_NAME + "/";
private static final String USE_EMULATOR_PROPERTY_NAME = "fs.azure.test.emulator";
private static final String KEY_DISABLE_THROTTLING = "fs.azure.disable.bandwidth.throttling";
private static final String KEY_READ_TOLERATE_CONCURRENT_APPEND = "fs.azure.io.read.tolerate.concurrent.append";
private CloudStorageAccount account;
private CloudBlobContainer container;
private CloudBlockBlob blob;
private NativeAzureFileSystem fs;
private AzureNativeFileSystemStore storage;
private MockStorageInterface mockStorage;
private static final ConcurrentLinkedQueue<MetricsRecord> allMetrics =
new ConcurrentLinkedQueue<MetricsRecord>();
private AzureBlobStorageTestAccount(NativeAzureFileSystem fs,
CloudStorageAccount account, CloudBlobContainer container) {
this.account = account;
this.container = container;
this.fs = fs;
}
/**
* Create a test account with an initialized storage reference.
*
* @param storage
* -- store to be accessed by the account
* @param account
* -- Windows Azure account object
* @param container
* -- Windows Azure container object
*/
private AzureBlobStorageTestAccount(AzureNativeFileSystemStore storage,
CloudStorageAccount account, CloudBlobContainer container) {
this.account = account;
this.container = container;
this.storage = storage;
}
/**
* Create a test account sessions with the default root container.
*
* @param fs
* - file system, namely WASB file system
* @param account
* - Windows Azure account object
* @param blob
* - block blob reference
*/
private AzureBlobStorageTestAccount(NativeAzureFileSystem fs,
CloudStorageAccount account, CloudBlockBlob blob) {
this.account = account;
this.blob = blob;
this.fs = fs;
}
private AzureBlobStorageTestAccount(NativeAzureFileSystem fs,
MockStorageInterface mockStorage) {
this.fs = fs;
this.mockStorage = mockStorage;
}
private static void addRecord(MetricsRecord record) {
allMetrics.add(record);
}
public static String getMockContainerUri() {
return String.format("http://%s/%s",
AzureBlobStorageTestAccount.MOCK_ACCOUNT_NAME,
AzureBlobStorageTestAccount.MOCK_CONTAINER_NAME);
}
public static String toMockUri(String path) {
return String.format("http://%s/%s/%s",
AzureBlobStorageTestAccount.MOCK_ACCOUNT_NAME,
AzureBlobStorageTestAccount.MOCK_CONTAINER_NAME, path);
}
public static String toMockUri(Path path) {
// Remove the first SEPARATOR
return toMockUri(path.toUri().getRawPath().substring(1));
}
public Number getLatestMetricValue(String metricName, Number defaultValue)
throws IndexOutOfBoundsException{
boolean found = false;
Number ret = null;
for (MetricsRecord currentRecord : allMetrics) {
// First check if this record is coming for my file system.
if (wasGeneratedByMe(currentRecord)) {
for (AbstractMetric currentMetric : currentRecord.metrics()) {
if (currentMetric.name().equalsIgnoreCase(metricName)) {
found = true;
ret = currentMetric.value();
break;
}
}
}
}
if (!found) {
if (defaultValue != null) {
return defaultValue;
}
throw new IndexOutOfBoundsException(metricName);
}
return ret;
}
/**
* Checks if the given record was generated by my WASB file system instance.
* @param currentRecord The metrics record to check.
* @return
*/
private boolean wasGeneratedByMe(MetricsRecord currentRecord) {
String myFsId = fs.getInstrumentation().getFileSystemInstanceId().toString();
for (MetricsTag currentTag : currentRecord.tags()) {
if (currentTag.name().equalsIgnoreCase("wasbFileSystemId")) {
return currentTag.value().equals(myFsId);
}
}
return false;
}
/**
* Gets the blob reference to the given blob key.
*
* @param blobKey
* The blob key (no initial slash).
* @return The blob reference.
*/
public CloudBlockBlob getBlobReference(String blobKey) throws Exception {
return container.getBlockBlobReference(String.format(blobKey));
}
/**
* Acquires a short lease on the given blob in this test account.
*
* @param blobKey
* The key to the blob (no initial slash).
* @return The lease ID.
*/
public String acquireShortLease(String blobKey) throws Exception {
return getBlobReference(blobKey).acquireLease(60, null);
}
/**
* Releases the lease on the container.
*
* @param leaseID
* The lease ID.
*/
public void releaseLease(String leaseID, String blobKey) throws Exception {
AccessCondition accessCondition = new AccessCondition();
accessCondition.setLeaseID(leaseID);
getBlobReference(blobKey).releaseLease(accessCondition);
}
public static AzureBlobStorageTestAccount createMock() throws Exception {
return createMock(new Configuration());
}
public static AzureBlobStorageTestAccount createMock(Configuration conf)
throws Exception {
AzureNativeFileSystemStore store = new AzureNativeFileSystemStore();
MockStorageInterface mockStorage = new MockStorageInterface();
store.setAzureStorageInteractionLayer(mockStorage);
NativeAzureFileSystem fs = new NativeAzureFileSystem(store);
addWasbToConfiguration(conf);
setMockAccountKey(conf);
// register the fs provider.
fs.initialize(new URI(MOCK_WASB_URI), conf);
AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs,
mockStorage);
return testAcct;
}
/**
* Creates a test account that goes against the storage emulator.
*
* @return The test account, or null if the emulator isn't setup.
*/
public static AzureBlobStorageTestAccount createForEmulator()
throws Exception {
NativeAzureFileSystem fs = null;
CloudBlobContainer container = null;
Configuration conf = createTestConfiguration();
if (!conf.getBoolean(USE_EMULATOR_PROPERTY_NAME, false)) {
// Not configured to test against the storage emulator.
System.out.println("Skipping emulator Azure test because configuration "
+ "doesn't indicate that it's running."
+ " Please see README.txt for guidance.");
return null;
}
CloudStorageAccount account = CloudStorageAccount
.getDevelopmentStorageAccount();
fs = new NativeAzureFileSystem();
String containerName = String.format("wasbtests-%s-%tQ",
System.getProperty("user.name"), new Date());
container = account.createCloudBlobClient().getContainerReference(
containerName);
container.create();
// Set account URI and initialize Azure file system.
URI accountUri = createAccountUri(DEFAULT_STORAGE_EMULATOR_ACCOUNT_NAME,
containerName);
fs.initialize(accountUri, conf);
// Create test account initializing the appropriate member variables.
AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs,
account, container);
return testAcct;
}
public static AzureBlobStorageTestAccount createOutOfBandStore(
int uploadBlockSize, int downloadBlockSize) throws Exception {
CloudBlobContainer container = null;
Configuration conf = createTestConfiguration();
CloudStorageAccount account = createTestAccount(conf);
if (null == account) {
return null;
}
String containerName = String.format("wasbtests-%s-%tQ",
System.getProperty("user.name"), new Date());
// Create the container.
container = account.createCloudBlobClient().getContainerReference(
containerName);
container.create();
String accountName = conf.get(TEST_ACCOUNT_NAME_PROPERTY_NAME);
// Ensure that custom throttling is disabled and tolerate concurrent
// out-of-band appends.
conf.setBoolean(KEY_DISABLE_THROTTLING, true);
conf.setBoolean(KEY_READ_TOLERATE_CONCURRENT_APPEND, true);
// Set account URI and initialize Azure file system.
URI accountUri = createAccountUri(accountName, containerName);
// Set up instrumentation.
//
AzureFileSystemMetricsSystem.fileSystemStarted();
String sourceName = NativeAzureFileSystem.newMetricsSourceName();
String sourceDesc = "Azure Storage Volume File System metrics";
AzureFileSystemInstrumentation instrumentation = new AzureFileSystemInstrumentation(conf);
AzureFileSystemMetricsSystem.registerSource(
sourceName, sourceDesc, instrumentation);
// Create a new AzureNativeFileSystemStore object.
AzureNativeFileSystemStore testStorage = new AzureNativeFileSystemStore();
// Initialize the store with the throttling feedback interfaces.
testStorage.initialize(accountUri, conf, instrumentation);
// Create test account initializing the appropriate member variables.
AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(
testStorage, account, container);
return testAcct;
}
/**
* Sets the mock account key in the given configuration.
*
* @param conf
* The configuration.
*/
public static void setMockAccountKey(Configuration conf) {
setMockAccountKey(conf, MOCK_ACCOUNT_NAME);
}
/**
* Sets the mock account key in the given configuration.
*
* @param conf
* The configuration.
*/
public static void setMockAccountKey(Configuration conf, String accountName) {
conf.set(ACCOUNT_KEY_PROPERTY_NAME + accountName,
Base64.encode(new byte[] { 1, 2, 3 }));
}
private static URI createAccountUri(String accountName)
throws URISyntaxException {
return new URI(WASB_SCHEME + ":" + PATH_DELIMITER + PATH_DELIMITER
+ accountName);
}
private static URI createAccountUri(String accountName, String containerName)
throws URISyntaxException {
return new URI(WASB_SCHEME + ":" + PATH_DELIMITER + PATH_DELIMITER
+ containerName + WASB_AUTHORITY_DELIMITER + accountName);
}
public static AzureBlobStorageTestAccount create() throws Exception {
return create("");
}
public static AzureBlobStorageTestAccount create(String containerNameSuffix)
throws Exception {
return create(containerNameSuffix,
EnumSet.of(CreateOptions.CreateContainer));
}
// Create a test account which uses throttling.
public static AzureBlobStorageTestAccount createThrottled() throws Exception {
return create("",
EnumSet.of(CreateOptions.useThrottling, CreateOptions.CreateContainer));
}
public static AzureBlobStorageTestAccount create(Configuration conf)
throws Exception {
return create("", EnumSet.of(CreateOptions.CreateContainer), conf);
}
static CloudStorageAccount createStorageAccount(String accountName,
Configuration conf, boolean allowAnonymous) throws URISyntaxException,
KeyProviderException {
String accountKey = AzureNativeFileSystemStore
.getAccountKeyFromConfiguration(accountName, conf);
StorageCredentials credentials;
if (accountKey == null && allowAnonymous) {
credentials = StorageCredentialsAnonymous.ANONYMOUS;
} else {
credentials = new StorageCredentialsAccountAndKey(
accountName.split("\\.")[0], accountKey);
}
if (credentials == null) {
return null;
} else {
return new CloudStorageAccount(credentials);
}
}
private static Configuration createTestConfiguration() {
return createTestConfiguration(null);
}
protected static Configuration createTestConfiguration(Configuration conf) {
if (conf == null) {
conf = new Configuration();
}
conf.addResource(TEST_CONFIGURATION_FILE_NAME);
return conf;
}
// for programmatic setting of the wasb configuration.
// note that tests can also get the
public static void addWasbToConfiguration(Configuration conf) {
conf.set("fs.wasb.impl", "org.apache.hadoop.fs.azure.NativeAzureFileSystem");
conf.set("fs.wasbs.impl",
"org.apache.hadoop.fs.azure.NativeAzureFileSystem");
}
static CloudStorageAccount createTestAccount() throws URISyntaxException,
KeyProviderException {
return createTestAccount(createTestConfiguration());
}
static CloudStorageAccount createTestAccount(Configuration conf)
throws URISyntaxException, KeyProviderException {
String testAccountName = conf.get(TEST_ACCOUNT_NAME_PROPERTY_NAME);
if (testAccountName == null) {
System.out
.println("Skipping live Azure test because of missing test account."
+ " Please see README.txt for guidance.");
return null;
}
return createStorageAccount(testAccountName, conf, false);
}
public static enum CreateOptions {
UseSas, Readonly, CreateContainer, useThrottling
}
public static AzureBlobStorageTestAccount create(String containerNameSuffix,
EnumSet<CreateOptions> createOptions) throws Exception {
return create(containerNameSuffix, createOptions, null);
}
public static AzureBlobStorageTestAccount create(String containerNameSuffix,
EnumSet<CreateOptions> createOptions, Configuration initialConfiguration)
throws Exception {
NativeAzureFileSystem fs = null;
CloudBlobContainer container = null;
Configuration conf = createTestConfiguration(initialConfiguration);
CloudStorageAccount account = createTestAccount(conf);
if (account == null) {
return null;
}
fs = new NativeAzureFileSystem();
String containerName = String.format("wasbtests-%s-%tQ%s",
System.getProperty("user.name"), new Date(), containerNameSuffix);
container = account.createCloudBlobClient().getContainerReference(
containerName);
if (createOptions.contains(CreateOptions.CreateContainer)) {
container.create();
}
String accountName = conf.get(TEST_ACCOUNT_NAME_PROPERTY_NAME);
if (createOptions.contains(CreateOptions.UseSas)) {
String sas = generateSAS(container,
createOptions.contains(CreateOptions.Readonly));
if (!createOptions.contains(CreateOptions.CreateContainer)) {
// The caller doesn't want the container to be pre-created,
// so delete it now that we have generated the SAS.
container.delete();
}
// Remove the account key from the configuration to make sure we don't
// cheat and use that.
conf.set(ACCOUNT_KEY_PROPERTY_NAME + accountName, "");
// Set the SAS key.
conf.set(SAS_PROPERTY_NAME + containerName + "." + accountName, sas);
}
// Check if throttling is turned on and set throttling parameters
// appropriately.
if (createOptions.contains(CreateOptions.useThrottling)) {
conf.setBoolean(KEY_DISABLE_THROTTLING, false);
} else {
conf.setBoolean(KEY_DISABLE_THROTTLING, true);
}
// Set account URI and initialize Azure file system.
URI accountUri = createAccountUri(accountName, containerName);
fs.initialize(accountUri, conf);
// Create test account initializing the appropriate member variables.
AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs,
account, container);
return testAcct;
}
private static String generateContainerName() throws Exception {
String containerName = String.format("wasbtests-%s-%tQ",
System.getProperty("user.name"), new Date());
return containerName;
}
private static String generateSAS(CloudBlobContainer container,
boolean readonly) throws Exception {
// Create a container if it does not exist.
container.createIfNotExists();
// Create a new shared access policy.
SharedAccessBlobPolicy sasPolicy = new SharedAccessBlobPolicy();
// Create a UTC Gregorian calendar value.
GregorianCalendar calendar = new GregorianCalendar(
TimeZone.getTimeZone("UTC"));
// Specify the current time as the start time for the shared access
// signature.
//
calendar.setTime(new Date());
sasPolicy.setSharedAccessStartTime(calendar.getTime());
// Use the start time delta one hour as the end time for the shared
// access signature.
calendar.add(Calendar.HOUR, 10);
sasPolicy.setSharedAccessExpiryTime(calendar.getTime());
if (readonly) {
// Set READ permissions
sasPolicy.setPermissions(EnumSet.of(SharedAccessBlobPermissions.READ,
SharedAccessBlobPermissions.LIST));
} else {
// Set READ and WRITE permissions.
sasPolicy.setPermissions(EnumSet.of(SharedAccessBlobPermissions.READ,
SharedAccessBlobPermissions.WRITE, SharedAccessBlobPermissions.LIST));
}
// Create the container permissions.
BlobContainerPermissions containerPermissions = new BlobContainerPermissions();
// Turn public access to the container off.
containerPermissions.setPublicAccess(BlobContainerPublicAccessType.OFF);
container.uploadPermissions(containerPermissions);
// Create a shared access signature for the container.
String sas = container.generateSharedAccessSignature(sasPolicy, null);
// HACK: when the just generated SAS is used straight away, we get an
// authorization error intermittently. Sleeping for 1.5 seconds fixes that
// on my box.
Thread.sleep(1500);
// Return to caller with the shared access signature.
return sas;
}
public static void primePublicContainer(CloudBlobClient blobClient,
String accountName, String containerName, String blobName, int fileSize)
throws Exception {
// Create a container if it does not exist. The container name
// must be lower case.
CloudBlobContainer container = blobClient
.getContainerReference(containerName);
container.createIfNotExists();
// Create a new shared access policy.
SharedAccessBlobPolicy sasPolicy = new SharedAccessBlobPolicy();
// Set READ and WRITE permissions.
sasPolicy.setPermissions(EnumSet.of(SharedAccessBlobPermissions.READ,
SharedAccessBlobPermissions.WRITE, SharedAccessBlobPermissions.LIST,
SharedAccessBlobPermissions.DELETE));
// Create the container permissions.
BlobContainerPermissions containerPermissions = new BlobContainerPermissions();
// Turn public access to the container off.
containerPermissions
.setPublicAccess(BlobContainerPublicAccessType.CONTAINER);
// Set the policy using the values set above.
containerPermissions.getSharedAccessPolicies().put("testwasbpolicy",
sasPolicy);
container.uploadPermissions(containerPermissions);
// Create a blob output stream.
CloudBlockBlob blob = container.getBlockBlobReference(blobName);
BlobOutputStream outputStream = blob.openOutputStream();
outputStream.write(new byte[fileSize]);
outputStream.close();
}
public static AzureBlobStorageTestAccount createAnonymous(
final String blobName, final int fileSize) throws Exception {
NativeAzureFileSystem fs = null;
CloudBlobContainer container = null;
Configuration conf = createTestConfiguration(), noTestAccountConf = new Configuration();
// Set up a session with the cloud blob client to generate SAS and check the
// existence of a container and capture the container object.
CloudStorageAccount account = createTestAccount(conf);
if (account == null) {
return null;
}
CloudBlobClient blobClient = account.createCloudBlobClient();
// Capture the account URL and the account name.
String accountName = conf.get(TEST_ACCOUNT_NAME_PROPERTY_NAME);
// Generate a container name and create a shared access signature string for
// it.
//
String containerName = generateContainerName();
// Set up public container with the specified blob name.
primePublicContainer(blobClient, accountName, containerName, blobName,
fileSize);
// Capture the blob container object. It should exist after generating the
// shared access signature.
container = blobClient.getContainerReference(containerName);
if (null == container || !container.exists()) {
final String errMsg = String
.format("Container '%s' expected but not found while creating SAS account.");
throw new Exception(errMsg);
}
// Set the account URI.
URI accountUri = createAccountUri(accountName, containerName);
// Initialize the Native Azure file system with anonymous credentials.
fs = new NativeAzureFileSystem();
fs.initialize(accountUri, noTestAccountConf);
// Create test account initializing the appropriate member variables.
AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs,
account, container);
// Return to caller with test account.
return testAcct;
}
private static CloudBlockBlob primeRootContainer(CloudBlobClient blobClient,
String accountName, String blobName, int fileSize) throws Exception {
// Create a container if it does not exist. The container name
// must be lower case.
CloudBlobContainer container = blobClient.getContainerReference("https://"
+ accountName + "/" + "$root");
container.createIfNotExists();
// Create a blob output stream.
CloudBlockBlob blob = container.getBlockBlobReference(blobName);
BlobOutputStream outputStream = blob.openOutputStream();
outputStream.write(new byte[fileSize]);
outputStream.close();
// Return a reference to the block blob object.
return blob;
}
public static AzureBlobStorageTestAccount createRoot(final String blobName,
final int fileSize) throws Exception {
NativeAzureFileSystem fs = null;
CloudBlobContainer container = null;
Configuration conf = createTestConfiguration();
// Set up a session with the cloud blob client to generate SAS and check the
// existence of a container and capture the container object.
CloudStorageAccount account = createTestAccount(conf);
if (account == null) {
return null;
}
CloudBlobClient blobClient = account.createCloudBlobClient();
// Capture the account URL and the account name.
String accountName = conf.get(TEST_ACCOUNT_NAME_PROPERTY_NAME);
// Set up public container with the specified blob name.
CloudBlockBlob blobRoot = primeRootContainer(blobClient, accountName,
blobName, fileSize);
// Capture the blob container object. It should exist after generating the
// shared access signature.
container = blobClient.getContainerReference(AZURE_ROOT_CONTAINER);
if (null == container || !container.exists()) {
final String errMsg = String
.format("Container '%s' expected but not found while creating SAS account.");
throw new Exception(errMsg);
}
// Set the account URI without a container name.
URI accountUri = createAccountUri(accountName);
// Initialize the Native Azure file system with anonymous credentials.
fs = new NativeAzureFileSystem();
fs.initialize(accountUri, conf);
// Create test account initializing the appropriate member variables.
// Set the container value to null for the default root container.
AzureBlobStorageTestAccount testAcct = new AzureBlobStorageTestAccount(fs,
account, blobRoot);
// Return to caller with test account.
return testAcct;
}
public void closeFileSystem() throws Exception {
if (fs != null) {
fs.close();
}
}
public void cleanup() throws Exception {
if (fs != null) {
fs.close();
fs = null;
}
if (container != null) {
container.deleteIfExists();
container = null;
}
if (blob != null) {
// The blob member variable is set for blobs under root containers.
// Delete blob objects created for root container tests when cleaning
// up the test account.
blob.delete();
blob = null;
}
}
public NativeAzureFileSystem getFileSystem() {
return fs;
}
public AzureNativeFileSystemStore getStore() {
return this.storage;
}
/**
* Gets the real blob container backing this account if it's not a mock.
*
* @return A container, or null if it's a mock.
*/
public CloudBlobContainer getRealContainer() {
return container;
}
/**
* Gets the real blob account backing this account if it's not a mock.
*
* @return An account, or null if it's a mock.
*/
public CloudStorageAccount getRealAccount() {
return account;
}
/**
* Gets the mock storage interface if this account is backed by a mock.
*
* @return The mock storage, or null if it's backed by a real account.
*/
public MockStorageInterface getMockStorage() {
return mockStorage;
}
public static class StandardCollector implements MetricsSink {
@Override
public void init(SubsetConfiguration conf) {
}
@Override
public void putMetrics(MetricsRecord record) {
addRecord(record);
}
@Override
public void flush() {
}
}
}
| {
"pile_set_name": "Github"
} |
var assert = require('assert');
// The Flow class
// ==============
// Flow is a [Duplex stream][1] subclass which implements HTTP/2 flow control. It is designed to be
// subclassed by [Connection](connection.html) and the `upstream` component of [Stream](stream.html).
// [1]: https://nodejs.org/api/stream.html#stream_class_stream_duplex
var Duplex = require('stream').Duplex;
exports.Flow = Flow;
// Public API
// ----------
// * **Event: 'error' (type)**: signals an error
//
// * **setInitialWindow(size)**: the initial flow control window size can be changed *any time*
// ([as described in the standard][1]) using this method
//
// [1]: https://tools.ietf.org/html/rfc7540#section-6.9.2
// API for child classes
// ---------------------
// * **new Flow([flowControlId])**: creating a new flow that will listen for WINDOW_UPDATES frames
// with the given `flowControlId` (or every update frame if not given)
//
// * **_send()**: called when more frames should be pushed. The child class is expected to override
// this (instead of the `_read` method of the Duplex class).
//
// * **_receive(frame, readyCallback)**: called when there's an incoming frame. The child class is
// expected to override this (instead of the `_write` method of the Duplex class).
//
// * **push(frame): bool**: schedules `frame` for sending.
//
// Returns `true` if it needs more frames in the output queue, `false` if the output queue is
// full, and `null` if did not push the frame into the output queue (instead, it pushed it into
// the flow control queue).
//
// * **read(limit): frame**: like the regular `read`, but the 'flow control size' (0 for non-DATA
// frames, length of the payload for DATA frames) of the returned frame will be under `limit`.
// Small exception: pass -1 as `limit` if the max. flow control size is 0. `read(0)` means the
// same thing as [in the original API](https://nodejs.org/api/stream.html#stream_stream_read_0).
//
// * **getLastQueuedFrame(): frame**: returns the last frame in output buffers
//
// * **_log**: the Flow class uses the `_log` object of the parent
// Constructor
// -----------
// When a HTTP/2.0 connection is first established, new streams are created with an initial flow
// control window size of 65535 bytes.
var INITIAL_WINDOW_SIZE = 65535;
// `flowControlId` is needed if only specific WINDOW_UPDATEs should be watched.
function Flow(flowControlId) {
Duplex.call(this, { objectMode: true });
this._window = this._initialWindow = INITIAL_WINDOW_SIZE;
this._flowControlId = flowControlId;
this._queue = [];
this._ended = false;
this._received = 0;
this._blocked = false;
}
Flow.prototype = Object.create(Duplex.prototype, { constructor: { value: Flow } });
// Incoming frames
// ---------------
// `_receive` is called when there's an incoming frame.
Flow.prototype._receive = function _receive(frame, callback) {
throw new Error('The _receive(frame, callback) method has to be overridden by the child class!');
};
// `_receive` is called by `_write` which in turn is [called by Duplex][1] when someone `write()`s
// to the flow. It emits the 'receiving' event and notifies the window size tracking code if the
// incoming frame is a WINDOW_UPDATE.
// [1]: https://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback_1
Flow.prototype._write = function _write(frame, encoding, callback) {
var sentToUs = (this._flowControlId === undefined) || (frame.stream === this._flowControlId);
if (sentToUs && (frame.flags.END_STREAM || (frame.type === 'RST_STREAM'))) {
this._ended = true;
}
if ((frame.type === 'DATA') && (frame.data.length > 0)) {
this._receive(frame, function() {
this._received += frame.data.length;
if (!this._restoreWindowTimer) {
this._restoreWindowTimer = setImmediate(this._restoreWindow.bind(this));
}
callback();
}.bind(this));
}
else {
this._receive(frame, callback);
}
if (sentToUs && (frame.type === 'WINDOW_UPDATE')) {
this._updateWindow(frame);
}
};
// `_restoreWindow` basically acknowledges the DATA frames received since it's last call. It sends
// a WINDOW_UPDATE that restores the flow control window of the remote end.
// TODO: push this directly into the output queue. No need to wait for DATA frames in the queue.
Flow.prototype._restoreWindow = function _restoreWindow() {
delete this._restoreWindowTimer;
if (!this._ended && (this._received > 0)) {
this.push({
type: 'WINDOW_UPDATE',
flags: {},
stream: this._flowControlId,
window_size: this._received
});
this._received = 0;
}
};
// Outgoing frames - sending procedure
// -----------------------------------
// flow
// +-------------------------------------------------+
// | |
// +--------+ +---------+ |
// read() | output | _read() | flow | _send() |
// <----------| |<----------| control |<------------- |
// | buffer | | buffer | |
// +--------+ +---------+ |
// | input | |
// ---------->| |-----------------------------------> |
// write() | buffer | _write() _receive() |
// +--------+ |
// | |
// +-------------------------------------------------+
// `_send` is called when more frames should be pushed to the output buffer.
Flow.prototype._send = function _send() {
throw new Error('The _send() method has to be overridden by the child class!');
};
// `_send` is called by `_read` which is in turn [called by Duplex][1] when it wants to have more
// items in the output queue.
// [1]: https://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback_1
Flow.prototype._read = function _read() {
// * if the flow control queue is empty, then let the user push more frames
if (this._queue.length === 0) {
this._send();
}
// * if there are items in the flow control queue, then let's put them into the output queue (to
// the extent it is possible with respect to the window size and output queue feedback)
else if (this._window > 0) {
this._blocked = false;
this._readableState.sync = true; // to avoid reentrant calls
do {
var moreNeeded = this._push(this._queue[0]);
if (moreNeeded !== null) {
this._queue.shift();
}
} while (moreNeeded && (this._queue.length > 0));
this._readableState.sync = false;
assert((!moreNeeded) || // * output queue is full
(this._queue.length === 0) || // * flow control queue is empty
(!this._window && (this._queue[0].type === 'DATA'))); // * waiting for window update
}
// * otherwise, come back when the flow control window is positive
else if (!this._blocked) {
this._parentPush({
type: 'BLOCKED',
flags: {},
stream: this._flowControlId
});
this.once('window_update', this._read);
this._blocked = true;
}
};
var MAX_PAYLOAD_SIZE = 4096; // Must not be greater than MAX_HTTP_PAYLOAD_SIZE which is 16383
// `read(limit)` is like the `read` of the Readable class, but it guarantess that the 'flow control
// size' (0 for non-DATA frames, length of the payload for DATA frames) of the returned frame will
// be under `limit`.
Flow.prototype.read = function read(limit) {
if (limit === 0) {
return Duplex.prototype.read.call(this, 0);
} else if (limit === -1) {
limit = 0;
} else if ((limit === undefined) || (limit > MAX_PAYLOAD_SIZE)) {
limit = MAX_PAYLOAD_SIZE;
}
// * Looking at the first frame in the queue without pulling it out if possible.
var frame = this._readableState.buffer[0];
if (!frame && !this._readableState.ended) {
this._read();
frame = this._readableState.buffer[0];
}
if (frame && (frame.type === 'DATA')) {
// * If the frame is DATA, then there's two special cases:
// * if the limit is 0, we shouldn't return anything
// * if the size of the frame is larger than limit, then the frame should be split
if (limit === 0) {
return Duplex.prototype.read.call(this, 0);
}
else if (frame.data.length > limit) {
this._log.trace({ frame: frame, size: frame.data.length, forwardable: limit },
'Splitting out forwardable part of a DATA frame.');
this.unshift({
type: 'DATA',
flags: {},
stream: frame.stream,
data: frame.data.slice(0, limit)
});
frame.data = frame.data.slice(limit);
}
}
return Duplex.prototype.read.call(this);
};
// `_parentPush` pushes the given `frame` into the output queue
Flow.prototype._parentPush = function _parentPush(frame) {
this._log.trace({ frame: frame }, 'Pushing frame into the output queue');
if (frame && (frame.type === 'DATA') && (this._window !== Infinity)) {
this._log.trace({ window: this._window, by: frame.data.length },
'Decreasing flow control window size.');
this._window -= frame.data.length;
assert(this._window >= 0);
}
return Duplex.prototype.push.call(this, frame);
};
// `_push(frame)` pushes `frame` into the output queue and decreases the flow control window size.
// It is capable of splitting DATA frames into smaller parts, if the window size is not enough to
// push the whole frame. The return value is similar to `push` except that it returns `null` if it
// did not push the whole frame to the output queue (but maybe it did push part of the frame).
Flow.prototype._push = function _push(frame) {
var data = frame && (frame.type === 'DATA') && frame.data;
var maxFrameLength = (this._window < 16384) ? this._window : 16384;
if (!data || (data.length <= maxFrameLength)) {
return this._parentPush(frame);
}
else if (this._window <= 0) {
return null;
}
else {
this._log.trace({ frame: frame, size: frame.data.length, forwardable: this._window },
'Splitting out forwardable part of a DATA frame.');
frame.data = data.slice(maxFrameLength);
this._parentPush({
type: 'DATA',
flags: {},
stream: frame.stream,
data: data.slice(0, maxFrameLength)
});
return null;
}
};
// Push `frame` into the flow control queue, or if it's empty, then directly into the output queue
Flow.prototype.push = function push(frame) {
if (frame === null) {
this._log.debug('Enqueueing outgoing End Of Stream');
} else {
this._log.debug({ frame: frame }, 'Enqueueing outgoing frame');
}
var moreNeeded = null;
if (this._queue.length === 0) {
moreNeeded = this._push(frame);
}
if (moreNeeded === null) {
this._queue.push(frame);
}
return moreNeeded;
};
// `getLastQueuedFrame` returns the last frame in output buffers. This is primarily used by the
// [Stream](stream.html) class to mark the last frame with END_STREAM flag.
Flow.prototype.getLastQueuedFrame = function getLastQueuedFrame() {
var readableQueue = this._readableState.buffer;
return this._queue[this._queue.length - 1] || readableQueue[readableQueue.length - 1];
};
// Outgoing frames - managing the window size
// ------------------------------------------
// Flow control window size is manipulated using the `_increaseWindow` method.
//
// * Invoking it with `Infinite` means turning off flow control. Flow control cannot be enabled
// again once disabled. Any attempt to re-enable flow control MUST be rejected with a
// FLOW_CONTROL_ERROR error code.
// * A sender MUST NOT allow a flow control window to exceed 2^31 - 1 bytes. The action taken
// depends on it being a stream or the connection itself.
var WINDOW_SIZE_LIMIT = Math.pow(2, 31) - 1;
Flow.prototype._increaseWindow = function _increaseWindow(size) {
if ((this._window === Infinity) && (size !== Infinity)) {
this._log.error('Trying to increase flow control window after flow control was turned off.');
this.emit('error', 'FLOW_CONTROL_ERROR');
} else {
this._log.trace({ window: this._window, by: size }, 'Increasing flow control window size.');
this._window += size;
if ((this._window !== Infinity) && (this._window > WINDOW_SIZE_LIMIT)) {
this._log.error('Flow control window grew too large.');
this.emit('error', 'FLOW_CONTROL_ERROR');
} else {
if (size != 0) {
this.emit('window_update');
}
}
}
};
// The `_updateWindow` method gets called every time there's an incoming WINDOW_UPDATE frame. It
// modifies the flow control window:
//
// * Flow control can be disabled for an individual stream by sending a WINDOW_UPDATE with the
// END_FLOW_CONTROL flag set. The payload of a WINDOW_UPDATE frame that has the END_FLOW_CONTROL
// flag set is ignored.
// * A sender that receives a WINDOW_UPDATE frame updates the corresponding window by the amount
// specified in the frame.
Flow.prototype._updateWindow = function _updateWindow(frame) {
this._increaseWindow(frame.flags.END_FLOW_CONTROL ? Infinity : frame.window_size);
};
// A SETTINGS frame can alter the initial flow control window size for all current streams. When the
// value of SETTINGS_INITIAL_WINDOW_SIZE changes, a receiver MUST adjust the size of all stream by
// calling the `setInitialWindow` method. The window size has to be modified by the difference
// between the new value and the old value.
Flow.prototype.setInitialWindow = function setInitialWindow(initialWindow) {
this._increaseWindow(initialWindow - this._initialWindow);
this._initialWindow = initialWindow;
};
| {
"pile_set_name": "Github"
} |
require 'rspec'
require 'fauxhai'
require_relative '../../../libraries/sensu_helpers.rb'
describe Sensu::Helpers do
let(:node) { Fauxhai.mock(:platform => 'ubuntu', :version => '14.04').data }
let(:unix_omnibus_gem_path) { '/opt/sensu/embedded/bin/gem' }
let(:windows_omnibus_gem_path) { 'c:\opt\sensu\embedded\bin\gem.bat' }
describe ".select_attributes" do
context 'when the requested attribute exists' do
it 'returns the requested key/value pair' do
results = Sensu::Helpers.select_attributes(node, 'platform')
expect(results.keys).to eq(['platform'])
expect(results.values).to eq(['ubuntu'])
end
end
context 'when the requested attribute does not exist' do
it 'returns an empty hash' do
expect(Sensu::Helpers.select_attributes(node, 'hotdog')).to be_empty
end
end
context 'when multiple attributes are requested and all exist' do
it 'returns a hash containing the requested key/value pairs' do
results = Sensu::Helpers.select_attributes(node, ['fqdn', 'ipaddress'])
expect(results.keys).to eq(['fqdn', 'ipaddress'])
expect(results.values).to eq(['fauxhai.local', '10.0.0.2'])
end
end
context 'when multiple attributes are requested and only a subset exist' do
it 'returns a hash containing the existing key/value pairs' do
results = Sensu::Helpers.select_attributes(node, ['platform_version', 'platform_lasagna'])
expect(results.keys).to eq(['platform_version'])
expect(results.values).to eq(['14.04'])
end
end
end
describe ".gem_binary" do
context 'on unix-like platforms' do
context 'with omnibus ruby available' do
before do
allow(File).to receive(:exists?).with(unix_omnibus_gem_path).and_return(true)
allow(File).to receive(:exists?).with(windows_omnibus_gem_path).and_return(false)
end
it 'returns the full path to the omnibus ruby gem binary' do
gem_binary = Sensu::Helpers.gem_binary
expect(gem_binary).to eq(unix_omnibus_gem_path)
end
end
context 'without omnibus ruby available' do
before do
allow(File).to receive(:exists?).with(unix_omnibus_gem_path).and_return(false)
allow(File).to receive(:exists?).with(windows_omnibus_gem_path).and_return(false)
end
it 'returns an unqualified path to the gem binary' do
gem_binary = Sensu::Helpers.gem_binary
expect(gem_binary).to eq('gem')
end
end
end
context 'on windows platforms' do
let(:node) { Fauxhai.mock(:platform => 'windows', :version => '2012R2').data }
context 'with omnibus ruby available' do
before do
allow(File).to receive(:exists?).with(unix_omnibus_gem_path).and_return(false)
allow(File).to receive(:exists?).with(windows_omnibus_gem_path).and_return(true)
end
it 'returns the full path to the omnibus ruby gem binary' do
gem_binary = Sensu::Helpers.gem_binary
expect(gem_binary).to eq(windows_omnibus_gem_path)
end
end
context 'without omnibus ruby available' do
before do
allow(File).to receive(:exists?).with(unix_omnibus_gem_path).and_return(false)
allow(File).to receive(:exists?).with(windows_omnibus_gem_path).and_return(false)
end
it 'returns an unqualified path to the gem binary' do
gem_binary = Sensu::Helpers.gem_binary
expect(gem_binary).to eq('gem')
end
end
end
end
describe ".redhat_version_string" do
let(:platform_version) { "6.8" }
let(:platform_major_version) { "6" }
let(:suffix_override) { nil }
context "the desired version is prior to 0.27" do
let(:sensu_version) { "0.26.5-2" }
it "returns the version string unaltered" do
version = Sensu::Helpers.redhat_version_string(
sensu_version,
platform_version,
suffix_override
)
expect(version).to eq(sensu_version)
end
end
context "the desired version is 0.27.0 or newer" do
let(:sensu_version) { "0.27.0-1" }
it "returns the version string with the Redhat platform major version suffix" do
version = Sensu::Helpers.redhat_version_string(
sensu_version,
platform_version,
suffix_override
)
expect(version).to eq("#{sensu_version}.el#{platform_major_version}")
end
context "when a suffix override is provided" do
let(:suffix_override) { ".lol" }
it "returns the version string with the custom suffix" do
version = Sensu::Helpers.redhat_version_string(
sensu_version,
platform_version,
suffix_override
)
expect(version).to eq([sensu_version, suffix_override].join)
end
end
end
end
describe ".amazon_linux_2_rhel_version" do
["2018.03",
"2017.09",
"2017.03",
"2016.09",
"2016.03",
"2015.09",
"2015.03",
"2014.09",
"2014.03",
"2013.09",
"2013.03",
"2012.09",
"2012.03",
"2011.09"].each do | platform_version |
it "returns the rhel version 6" do
actual_rhel_version = Sensu::Helpers.amazon_linux_2_rhel_version(platform_version)
expect(actual_rhel_version).to eq("6")
end
end
["2"].each do | platform_version |
it "returns the rhel version 7" do
actual_rhel_version = Sensu::Helpers.amazon_linux_2_rhel_version(platform_version)
expect(actual_rhel_version).to eq("7")
end
end
["2.5", "3", "4"].each do | platform_version |
it "throws an exception" do
expect { Sensu::Helpers.amazon_linux_2_rhel_version(platform_version) }.to raise_error(/platform/)
end
end
end
describe ".amazon_linux_2_version_string" do
let(:platform_version) { "6.8" }
let(:platform_major_version) { "6" }
let(:suffix_override) { nil }
context "the desired version is prior to 0.27" do
let(:sensu_version) { "0.26.5-2" }
it "returns the version string unaltered" do
version = Sensu::Helpers.amazon_linux_2_version_string(
sensu_version,
platform_version,
suffix_override
)
expect(version).to eq(sensu_version)
end
end
context "the desired version is 0.27.0 or newer" do
let(:sensu_version) { "0.27.0-1" }
it "returns the version string with the Redhat platform major version suffix" do
version = Sensu::Helpers.amazon_linux_2_version_string(
sensu_version,
platform_version,
suffix_override
)
expect(version).to eq("#{sensu_version}.el#{platform_major_version}")
end
context "when a suffix override is provided" do
let(:suffix_override) { ".lol" }
it "returns the version string with the custom suffix" do
version = Sensu::Helpers.amazon_linux_2_version_string(
sensu_version,
platform_version,
suffix_override
)
expect(version).to eq([sensu_version, suffix_override].join)
end
end
end
end
end
| {
"pile_set_name": "Github"
} |
.justify-content-center {
display: flex;
justify-content: center;
}
.category-link {
color: inherit !important;
}
.nav-cat{
font-weight: 200;
font-size: 12px;
background-color: #292929;
color:#fff;
}
.top-hero-padding{
padding-top: 0 !important;
} | {
"pile_set_name": "Github"
} |
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/map/tools/map_datachecker/server/pose_collection_agent.h"
#include <vector>
#include "cyber/common/time_conversion.h"
#include "modules/map/tools/map_datachecker/server/pose_collection.h"
namespace apollo {
namespace hdmap {
PoseCollectionAgent::PoseCollectionAgent(std::shared_ptr<JsonConf> sp_conf) {
sp_pj_transformer_ = std::make_shared<PJTransformer>(50);
sp_conf_ = sp_conf;
Reset();
}
void PoseCollectionAgent::Reset() {
sp_pose_collection_ = std::make_shared<PoseCollection>(sp_conf_);
}
void PoseCollectionAgent::OnBestgnssposCallback(
const std::shared_ptr<const apollo::drivers::gnss::GnssBestPose>
&bestgnsspos) {
if (sp_pose_collection_ == nullptr) {
sp_pose_collection_ = std::make_shared<PoseCollection>(sp_conf_);
}
double time_stamp = apollo::cyber::common::GpsToUnixSeconds(
bestgnsspos->measurement_time()); // in seconds
FramePose pose;
if (sp_conf_->use_system_time) {
pose.time_stamp = UnixNow();
AINFO << "system time: " << pose.time_stamp;
} else {
pose.time_stamp = time_stamp;
}
pose.latitude = bestgnsspos->latitude();
pose.longitude = bestgnsspos->longitude();
pose.altitude = bestgnsspos->height_msl();
pose.solution_status = bestgnsspos->sol_status();
pose.position_type = bestgnsspos->sol_type();
pose.diff_age = bestgnsspos->differential_age();
double latitude_std = bestgnsspos->latitude_std_dev();
double longitude_std = bestgnsspos->longitude_std_dev();
double altitude_std = bestgnsspos->height_std_dev();
pose.local_std =
std::sqrt(latitude_std * latitude_std + longitude_std * longitude_std +
altitude_std * altitude_std);
pose.tx = pose.longitude * kDEGRESS_TO_RADIANS;
pose.ty = pose.latitude * kDEGRESS_TO_RADIANS;
pose.tz = pose.altitude;
sp_pj_transformer_->LatlongToUtm(1, 1, &pose.tx, &pose.ty, &pose.tz);
std::lock_guard<std::mutex> mutex_locker(mutex_);
static FILE *pose_file = fopen("poses.txt", "w");
static int count = 0;
fprintf(stderr, "%d:%lf %lf %lf %lf 0.0 0.0 0.0 0.0\n", ++count,
pose.time_stamp, pose.tx, pose.ty, pose.tz);
fprintf(pose_file, "%lf %lf %lf %lf 0.0 0.0 0.0 0.0\n", pose.time_stamp,
pose.tx, pose.ty, pose.tz);
fflush(pose_file);
sp_pose_collection_->Collect(pose);
}
std::shared_ptr<std::vector<FramePose>> PoseCollectionAgent::GetPoses() const {
if (sp_pose_collection_ == nullptr) {
return nullptr;
}
return sp_pose_collection_->GetPoses();
}
} // namespace hdmap
} // namespace apollo
| {
"pile_set_name": "Github"
} |
function ExampleAnalog()
% function OutputAnalogVector = ExampleAnalog()
% Prompt for the correct DLL
disp(' '); % Blank line
DLLName = input('DLL Name: ', 's');
% Load the appropriate DLL
[nsresult] = ns_SetLibrary(DLLName);
if (nsresult ~= 0)
disp('DLL was not found!');
return
end
% Find out the data file from user
disp(' '); % Blank line
filename = input('Data file: ', 's');
% Load data file and display some info about the file
% Open data file
[nsresult, hfile] = ns_OpenFile(filename);
if (nsresult ~= 0)
disp('Data file did not open!');
return
end
clear filename;
% Get file information
[nsresult, FileInfo] = ns_GetFileInfo(hfile);
% Gives you EntityCount, TimeStampResolution and TimeSpan
if (nsresult ~= 0)
disp('Data file information did not load!');
return
end
% Define some variables needed for firing rates
stepsize = 0.02; % seconds
stepsize1 = 0.1; % seconds
if FileInfo.TimeSpan > 150 % Limit the timespan shown in the graphs to 150 seconds
totaltime = 150;
else
totaltime = FileInfo.TimeSpan; % seconds
end
time = 0 : stepsize : totaltime; % Initialize time axis for gaussian plot
% Build catalogue of entities
[nsresult, EntityInfo] = ns_GetEntityInfo(hfile, [1 : 1 : FileInfo.EntityCount]);
NeuralList = find([EntityInfo.EntityType] == 4); % List of EntityIDs needed to retrieve the information and data
SegmentList = find([EntityInfo.EntityType] == 3);
AnalogList = find([EntityInfo.EntityType] == 2);
EventList = find([EntityInfo.EntityType] == 1);
% How many of a particular entity do we have
cNeural = length(NeuralList);
cSegment = length(SegmentList);
cAnalog = length(AnalogList);
cEvent = length(EventList);
clear FileInfo;
if (cNeural == 0)
disp('No neural events available!');
end
if (cSegment == 0)
disp('No segment entities available!');
end
if (cAnalog == 0)
disp('No analog entities available!');
end
if (cEvent == 0)
disp('No event entities available!');
end
% prompt to get the number of points
max_count = input('How many data points (x-axis) do you want max? ');
% Have user pick a channels or channels for further analysis
% Show the user how many channels are available
disp(' ');
disp(['There are ' num2str(cAnalog) ' analog channels.']);
disp(' ');
yes = input('Show first all analog channels? y/n ', 's');
if (yes == 'y')
for i = 1 : 1 : length(AnalogList)
chan = AnalogList(i);
count = min(max_count, EntityInfo(chan).ItemCount);
% Get the fist data points of the waveform and show it
[nsresult, ContinuousCount, wave] = ns_GetAnalogData(hfile, AnalogList(i), 1, count);
figure;
plot(wave);
end
return;
end
disp(['First analog entity: ' num2str(AnalogList(1)) ]);
channel = input('Which data channels would you like to display? (e.g. 1 or [1 2 3])');
if (EntityInfo(channel).EntityType == 2) % Have to check that the selected channel actually exists
else
disp('Channel is not of type analog');
return
end
clear cNeural cSegment;
% Throw away entity infos we don't need to save memory
EntityInfo = rmfield(EntityInfo, 'EntityType');
%
% Load the waveform data and do the analysis
%
count = min(max_count, EntityInfo(channel).ItemCount);
% Get the fist data points of the waveform and show it
[nsresult, ContinuousCount, wave] = ns_GetAnalogData(hfile, channel, 1, count);
plot(wave);
return;
| {
"pile_set_name": "Github"
} |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GRPC_CORE_LIB_IOMGR_ENDPOINT_H
#define GRPC_CORE_LIB_IOMGR_ENDPOINT_H
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/time.h>
#include "src/core/lib/iomgr/pollset.h"
#include "src/core/lib/iomgr/pollset_set.h"
#include "src/core/lib/iomgr/resource_quota.h"
/* An endpoint caps a streaming channel between two communicating processes.
Examples may be: a tcp socket, <stdin+stdout>, or some shared memory. */
typedef struct grpc_endpoint grpc_endpoint;
typedef struct grpc_endpoint_vtable grpc_endpoint_vtable;
struct grpc_endpoint_vtable {
void (*read)(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_slice_buffer *slices, grpc_closure *cb);
void (*write)(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_slice_buffer *slices, grpc_closure *cb);
void (*add_to_pollset)(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_pollset *pollset);
void (*add_to_pollset_set)(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_pollset_set *pollset);
void (*shutdown)(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep, grpc_error *why);
void (*destroy)(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep);
grpc_resource_user *(*get_resource_user)(grpc_endpoint *ep);
char *(*get_peer)(grpc_endpoint *ep);
int (*get_fd)(grpc_endpoint *ep);
};
/* When data is available on the connection, calls the callback with slices.
Callback success indicates that the endpoint can accept more reads, failure
indicates the endpoint is closed.
Valid slices may be placed into \a slices even when the callback is
invoked with error != GRPC_ERROR_NONE. */
void grpc_endpoint_read(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_slice_buffer *slices, grpc_closure *cb);
char *grpc_endpoint_get_peer(grpc_endpoint *ep);
/* Get the file descriptor used by \a ep. Return -1 if \a ep is not using an fd.
*/
int grpc_endpoint_get_fd(grpc_endpoint *ep);
/* Write slices out to the socket.
If the connection is ready for more data after the end of the call, it
returns GRPC_ENDPOINT_DONE.
Otherwise it returns GRPC_ENDPOINT_PENDING and calls cb when the
connection is ready for more data.
\a slices may be mutated at will by the endpoint until cb is called.
No guarantee is made to the content of slices after a write EXCEPT that
it is a valid slice buffer.
*/
void grpc_endpoint_write(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_slice_buffer *slices, grpc_closure *cb);
/* Causes any pending and future read/write callbacks to run immediately with
success==0 */
void grpc_endpoint_shutdown(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_error *why);
void grpc_endpoint_destroy(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep);
/* Add an endpoint to a pollset, so that when the pollset is polled, events from
this endpoint are considered */
void grpc_endpoint_add_to_pollset(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
grpc_pollset *pollset);
void grpc_endpoint_add_to_pollset_set(grpc_exec_ctx *exec_ctx,
grpc_endpoint *ep,
grpc_pollset_set *pollset_set);
grpc_resource_user *grpc_endpoint_get_resource_user(grpc_endpoint *endpoint);
struct grpc_endpoint {
const grpc_endpoint_vtable *vtable;
};
#endif /* GRPC_CORE_LIB_IOMGR_ENDPOINT_H */
| {
"pile_set_name": "Github"
} |
/*
* @license angular-humanize
* Copyright 2013-2015 struktur AG, http://www.struktur.de
* License: MIT
*/
(function(window, angular, humanize, undefined) {
'use strict';
/**
* # ngHumanize
*
* `ngHumanize` is the name of the optional Angular module that provides
* filters for humanization of data.
*
* The implementation uses [humanize.js](https://github.com/taijinlee/humanize)
* for humanization implementation functions.
*
*/
// define ngHumanize module
var ngHumanize = angular.module('ngHumanize', []);
/**
* This is a port of php.js date and behaves exactly like PHP's date.
* http://php.net/manual/en/function.date.php
*/
ngHumanize.filter("humanizeDate", function() {
return function(input, format) {
return humanize.date(format, input);
}
});
/**
* Format a number to have decimal significant decimal places, using
* decPoint as the decimal separator, and thousandsSep as thousands separater.
*/
ngHumanize.filter("humanizeNumber", function() {
return function(input, decimals, decPoint, thousandsSep) {
return humanize.numberFormat(input, decimals, decPoint, thousandsSep);
}
});
/**
* Returns 'today', 'tomorrow' or 'yesterday', as appropriate,
* otherwise format the date using the passed format with
* humanize.date().
*/
ngHumanize.filter("humanizeNaturalDay", function() {
return function(input, format) {
return humanize.naturalDay(input, format);
}
});
/**
* Returns a relative time to the current time, seconds as the most
* granular up to years to the least granular.
*/
ngHumanize.filter("humanizeRelativeTime", function() {
return function(input) {
return humanize.relativeTime(input);
}
});
/**
* Converts a number into its ordinal representation.
* http://en.wikipedia.org/wiki/Ordinal_number_(linguistics)
*/
ngHumanize.filter("humanizeOrdinal", function() {
return function(format) {
return humanize.ordinal(format);
}
});
/**
* Converts a byte count to a human readable value using kilo as the basis,
* and numberFormat formatting.
*/
ngHumanize.filter("humanizeFilesize", function() {
return function(input, kilo, decimals, decPoint, thousandsSep) {
return humanize.filesize(input, kilo, decimals, decPoint, thousandsSep);
}
});
/**
* Converts a string's newlines into properly formatted html ie. one
* new line -> br, two new lines -> p, entire thing wrapped in p.
*/
ngHumanize.filter("humanizeLinebreaks", function() {
return function(input) {
return humanize.linebreaks(input);
}
});
/**
* Converts a string's newlines into br's.
*/
ngHumanize.filter("humanizeNl2br", function() {
return function(input) {
return humanize.nl2br(input);
}
});
/**
* Truncates a string to length-1 and appends '…'. If string is shorter
* than length, then no-op.
*/
ngHumanize.filter("humanizeTruncatechars", function() {
return function(input, length) {
return humanize.truncatechars(input, length);
}
});
/**
* Truncates a string to only include the first numWords words and
* appends '…'. If string has fewer words than numWords, then no-op.
*/
ngHumanize.filter("humanizeTruncatewords", function() {
return function(input, numWords) {
return humanize.truncatewords(input, numWords);
}
});
}(window, window.angular, window.humanize));
| {
"pile_set_name": "Github"
} |
#!/usr/bin/perl
##
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
##
## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software
## Foundation or, at your option, any later version.
use strict;
use warnings;
use lib '.';
do 'bin/make.pl';
#---------------------------------------------------------------------------------------
# function pointer definition
sub make_pfn_def($%)
{
return "PFN" . (uc $_[0]) . "PROC " . prefixname($_[0]) . " = NULL;";
}
# function pointer definition
sub make_init_call($%)
{
my $name = prefixname($_[0]);
return " r = r || (" . $name . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress((const GLubyte*)\"" . $name . "\")) == NULL;";
}
#---------------------------------------------------------------------------------------
my @extlist = ();
my %extensions = ();
if (@ARGV)
{
@extlist = @ARGV;
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
print "#ifdef $extname\n";
print " _glewInfo_$extname();\n";
print "#endif /* $extname */\n";
}
}
| {
"pile_set_name": "Github"
} |
upon taking a seat at the theater , and surveying the crowd , i soon realized that i was the only person under forty in the premises .
i'm twenty-two , but have been accused of looking sixteen .
yet as the film began , any consciousness of setting shifted to the home of five close-knit , yet troubled sisters .
director pat o'connor ( inventing the abbots , circle of friends ) weaves a quiet yet affecting tale of loss , need , and the bonds between five sisters .
the family is ruled by kate ( meryl streep ) , an unconsciously strict schoolteacher , who is completely conscious of the deterioration of her family .
there is very little background given to the viewer , as we are thrust into a tense but loving home .
squabbles take place one after the other , caused by years and years of history .
perhaps one of the best things about this film , is its naturalness .
no situation is over-wrought , and characters react as real people do , to real problems .
this probably is a result of the film being from a stage play .
the play was in turn is based on a time in the life of the playwright .
what seems to be an underlying theme are the pagan rituals and dances of peoples , both in lughnasa and africa .
in fact , dance seems to be the glue that holds the family together and most expressively shows their closeness .
legs tap , and bodies sway even in the midst of impending disaster .
only after the music stops , and the characters stand breathing heavily do we sense any trouble .
in the quiet after the music we muse that it's sad that music has to cease , and families falter .
the movie is framed by a scene of michael mundy , the narrator of the movie , as a young child flying a kite .
he trips over a bump and loses hold of his string , and the kite floats off farther into the distance .
drawn on the white diamond of the kite is a face that looks at once pained , and at another glance mischievous .
the mundy family itself follows a similar fate to that of the kite , and kate's hold of the family isn't strong enough to hold off the winds of change .
as michael stands , staring at his kite fly away , we hear the adult michael , looking back at the season that his world changed forever .
the movie is not overpowering , but it gives us a beautiful window into the life , love , and trouble of a household of lonely women .
note : this is the first movie review i've ever written , any responses on it would be greatly appreciated .
: )
| {
"pile_set_name": "Github"
} |
<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Arg" rel="Chapter" href="Arg.html">
<link title="Arg_helper" rel="Chapter" href="Arg_helper.html">
<link title="Arith_status" rel="Chapter" href="Arith_status.html">
<link title="Array" rel="Chapter" href="Array.html">
<link title="ArrayLabels" rel="Chapter" href="ArrayLabels.html">
<link title="Ast_helper" rel="Chapter" href="Ast_helper.html">
<link title="Ast_invariants" rel="Chapter" href="Ast_invariants.html">
<link title="Ast_iterator" rel="Chapter" href="Ast_iterator.html">
<link title="Ast_mapper" rel="Chapter" href="Ast_mapper.html">
<link title="Asttypes" rel="Chapter" href="Asttypes.html">
<link title="Attr_helper" rel="Chapter" href="Attr_helper.html">
<link title="Big_int" rel="Chapter" href="Big_int.html">
<link title="Bigarray" rel="Chapter" href="Bigarray.html">
<link title="Buffer" rel="Chapter" href="Buffer.html">
<link title="Builtin_attributes" rel="Chapter" href="Builtin_attributes.html">
<link title="Bytes" rel="Chapter" href="Bytes.html">
<link title="BytesLabels" rel="Chapter" href="BytesLabels.html">
<link title="Callback" rel="Chapter" href="Callback.html">
<link title="CamlinternalFormat" rel="Chapter" href="CamlinternalFormat.html">
<link title="CamlinternalFormatBasics" rel="Chapter" href="CamlinternalFormatBasics.html">
<link title="CamlinternalLazy" rel="Chapter" href="CamlinternalLazy.html">
<link title="CamlinternalMod" rel="Chapter" href="CamlinternalMod.html">
<link title="CamlinternalOO" rel="Chapter" href="CamlinternalOO.html">
<link title="Ccomp" rel="Chapter" href="Ccomp.html">
<link title="Char" rel="Chapter" href="Char.html">
<link title="Clflags" rel="Chapter" href="Clflags.html">
<link title="Complex" rel="Chapter" href="Complex.html">
<link title="Condition" rel="Chapter" href="Condition.html">
<link title="Config" rel="Chapter" href="Config.html">
<link title="Consistbl" rel="Chapter" href="Consistbl.html">
<link title="Digest" rel="Chapter" href="Digest.html">
<link title="Docstrings" rel="Chapter" href="Docstrings.html">
<link title="Dynlink" rel="Chapter" href="Dynlink.html">
<link title="Ephemeron" rel="Chapter" href="Ephemeron.html">
<link title="Event" rel="Chapter" href="Event.html">
<link title="Filename" rel="Chapter" href="Filename.html">
<link title="Format" rel="Chapter" href="Format.html">
<link title="Gc" rel="Chapter" href="Gc.html">
<link title="Genlex" rel="Chapter" href="Genlex.html">
<link title="Graphics" rel="Chapter" href="Graphics.html">
<link title="GraphicsX11" rel="Chapter" href="GraphicsX11.html">
<link title="Hashtbl" rel="Chapter" href="Hashtbl.html">
<link title="Identifiable" rel="Chapter" href="Identifiable.html">
<link title="Int32" rel="Chapter" href="Int32.html">
<link title="Int64" rel="Chapter" href="Int64.html">
<link title="Lazy" rel="Chapter" href="Lazy.html">
<link title="Lexer" rel="Chapter" href="Lexer.html">
<link title="Lexing" rel="Chapter" href="Lexing.html">
<link title="List" rel="Chapter" href="List.html">
<link title="ListLabels" rel="Chapter" href="ListLabels.html">
<link title="Location" rel="Chapter" href="Location.html">
<link title="Longident" rel="Chapter" href="Longident.html">
<link title="Map" rel="Chapter" href="Map.html">
<link title="Marshal" rel="Chapter" href="Marshal.html">
<link title="Misc" rel="Chapter" href="Misc.html">
<link title="MoreLabels" rel="Chapter" href="MoreLabels.html">
<link title="Mutex" rel="Chapter" href="Mutex.html">
<link title="Nativeint" rel="Chapter" href="Nativeint.html">
<link title="Num" rel="Chapter" href="Num.html">
<link title="Numbers" rel="Chapter" href="Numbers.html">
<link title="Obj" rel="Chapter" href="Obj.html">
<link title="Oo" rel="Chapter" href="Oo.html">
<link title="Parse" rel="Chapter" href="Parse.html">
<link title="Parser" rel="Chapter" href="Parser.html">
<link title="Parsetree" rel="Chapter" href="Parsetree.html">
<link title="Parsing" rel="Chapter" href="Parsing.html">
<link title="Pervasives" rel="Chapter" href="Pervasives.html">
<link title="Pprintast" rel="Chapter" href="Pprintast.html">
<link title="Printast" rel="Chapter" href="Printast.html">
<link title="Printexc" rel="Chapter" href="Printexc.html">
<link title="Printf" rel="Chapter" href="Printf.html">
<link title="Queue" rel="Chapter" href="Queue.html">
<link title="Random" rel="Chapter" href="Random.html">
<link title="Ratio" rel="Chapter" href="Ratio.html">
<link title="Scanf" rel="Chapter" href="Scanf.html">
<link title="Set" rel="Chapter" href="Set.html">
<link title="Sort" rel="Chapter" href="Sort.html">
<link title="Stack" rel="Chapter" href="Stack.html">
<link title="StdLabels" rel="Chapter" href="StdLabels.html">
<link title="Str" rel="Chapter" href="Str.html">
<link title="Stream" rel="Chapter" href="Stream.html">
<link title="String" rel="Chapter" href="String.html">
<link title="StringLabels" rel="Chapter" href="StringLabels.html">
<link title="Strongly_connected_components" rel="Chapter" href="Strongly_connected_components.html">
<link title="Syntaxerr" rel="Chapter" href="Syntaxerr.html">
<link title="Sys" rel="Chapter" href="Sys.html">
<link title="Tbl" rel="Chapter" href="Tbl.html">
<link title="Terminfo" rel="Chapter" href="Terminfo.html">
<link title="Thread" rel="Chapter" href="Thread.html">
<link title="ThreadUnix" rel="Chapter" href="ThreadUnix.html">
<link title="Timings" rel="Chapter" href="Timings.html">
<link title="Uchar" rel="Chapter" href="Uchar.html">
<link title="Unix" rel="Chapter" href="Unix.html">
<link title="UnixLabels" rel="Chapter" href="UnixLabels.html">
<link title="Warnings" rel="Chapter" href="Warnings.html">
<link title="Weak" rel="Chapter" href="Weak.html"><title>StringLabels</title>
</head>
<body>
<code class="code"><span class="keyword">sig</span>
<span class="keyword">external</span> length : string <span class="keywordsign">-></span> int = <span class="string">"%string_length"</span>
<span class="keyword">external</span> get : string <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char = <span class="string">"%string_safe_get"</span>
<span class="keyword">external</span> set : bytes <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> unit = <span class="string">"%string_safe_set"</span>
<span class="keyword">external</span> create : int <span class="keywordsign">-></span> bytes = <span class="string">"caml_create_string"</span>
<span class="keyword">val</span> make : int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> string
<span class="keyword">val</span> init : int <span class="keywordsign">-></span> f:(int <span class="keywordsign">-></span> char) <span class="keywordsign">-></span> string
<span class="keyword">val</span> copy : string <span class="keywordsign">-></span> string
<span class="keyword">val</span> sub : string <span class="keywordsign">-></span> pos:int <span class="keywordsign">-></span> len:int <span class="keywordsign">-></span> string
<span class="keyword">val</span> fill : bytes <span class="keywordsign">-></span> pos:int <span class="keywordsign">-></span> len:int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> unit
<span class="keyword">val</span> blit :
src:string <span class="keywordsign">-></span> src_pos:int <span class="keywordsign">-></span> dst:bytes <span class="keywordsign">-></span> dst_pos:int <span class="keywordsign">-></span> len:int <span class="keywordsign">-></span> unit
<span class="keyword">val</span> concat : sep:string <span class="keywordsign">-></span> string list <span class="keywordsign">-></span> string
<span class="keyword">val</span> iter : f:(char <span class="keywordsign">-></span> unit) <span class="keywordsign">-></span> string <span class="keywordsign">-></span> unit
<span class="keyword">val</span> iteri : f:(int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> unit) <span class="keywordsign">-></span> string <span class="keywordsign">-></span> unit
<span class="keyword">val</span> map : f:(char <span class="keywordsign">-></span> char) <span class="keywordsign">-></span> string <span class="keywordsign">-></span> string
<span class="keyword">val</span> mapi : f:(int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> char) <span class="keywordsign">-></span> string <span class="keywordsign">-></span> string
<span class="keyword">val</span> trim : string <span class="keywordsign">-></span> string
<span class="keyword">val</span> escaped : string <span class="keywordsign">-></span> string
<span class="keyword">val</span> index : string <span class="keywordsign">-></span> char <span class="keywordsign">-></span> int
<span class="keyword">val</span> rindex : string <span class="keywordsign">-></span> char <span class="keywordsign">-></span> int
<span class="keyword">val</span> index_from : string <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> int
<span class="keyword">val</span> rindex_from : string <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> int
<span class="keyword">val</span> contains : string <span class="keywordsign">-></span> char <span class="keywordsign">-></span> bool
<span class="keyword">val</span> contains_from : string <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> bool
<span class="keyword">val</span> rcontains_from : string <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> bool
<span class="keyword">val</span> uppercase : string <span class="keywordsign">-></span> string
<span class="keyword">val</span> lowercase : string <span class="keywordsign">-></span> string
<span class="keyword">val</span> capitalize : string <span class="keywordsign">-></span> string
<span class="keyword">val</span> uncapitalize : string <span class="keywordsign">-></span> string
<span class="keyword">type</span> t = string
<span class="keyword">val</span> compare : <span class="constructor">StringLabels</span>.t <span class="keywordsign">-></span> <span class="constructor">StringLabels</span>.t <span class="keywordsign">-></span> int
<span class="keyword">external</span> unsafe_get : string <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char = <span class="string">"%string_unsafe_get"</span>
<span class="keyword">external</span> unsafe_set : bytes <span class="keywordsign">-></span> int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> unit = <span class="string">"%string_unsafe_set"</span>
<span class="keyword">external</span> unsafe_blit :
src:string <span class="keywordsign">-></span> src_pos:int <span class="keywordsign">-></span> dst:bytes <span class="keywordsign">-></span> dst_pos:int <span class="keywordsign">-></span> len:int <span class="keywordsign">-></span> unit
= <span class="string">"caml_blit_string"</span> [@@noalloc]
<span class="keyword">external</span> unsafe_fill : bytes <span class="keywordsign">-></span> pos:int <span class="keywordsign">-></span> len:int <span class="keywordsign">-></span> char <span class="keywordsign">-></span> unit
= <span class="string">"caml_fill_string"</span> [@@noalloc]
<span class="keyword">end</span></code></body></html> | {
"pile_set_name": "Github"
} |
{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "cdm:/foundations.1.1.cdm.json"
},
{
"corpusPath": "/core/operationsCommon/Common.1.0.cdm.json",
"moniker": "base_Common"
},
{
"corpusPath": "/core/operationsCommon/DataEntityView.1.0.cdm.json",
"moniker": "base_DataEntityView"
},
{
"corpusPath": "AccountingDistribution.1.0.cdm.json"
},
{
"corpusPath": "/core/operationsCommon/Tables/Finance/AccountingFoundation/WorksheetLine/SubledgerJournalAccountEntry.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "SubledgerJournalAccountEntryDistribution",
"extendsEntity": "base_Common/Common",
"exhibitsTraits": [
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"name": "AccountingCurrencyAmount",
"dataType": "AmountMST",
"isNullable": true,
"description": ""
},
{
"name": "AccountingDistribution",
"dataType": "RefRecId",
"isNullable": true,
"description": ""
},
{
"name": "ParentDistribution",
"dataType": "RefRecId",
"isNullable": true,
"description": ""
},
{
"name": "ReportingCurrencyAmount",
"dataType": "AmountMSTSecondary",
"isNullable": true,
"displayName": "The amount in the reporting currency",
"description": ""
},
{
"name": "SubledgerJournalAccountEntry",
"dataType": "RefRecId",
"isNullable": true,
"description": ""
},
{
"entity": {
"entityReference": "AccountingDistribution"
},
"name": "Relationship_AccountingDistributionRelationship",
"resolutionGuidance": {
"entityByReference": {
"allowReference": true
}
}
},
{
"entity": {
"entityReference": "AccountingDistribution"
},
"name": "Relationship_ParentDistributionRelationship",
"resolutionGuidance": {
"entityByReference": {
"allowReference": true
}
}
},
{
"entity": {
"entityReference": "SubledgerJournalAccountEntry"
},
"name": "Relationship_SubledgerJournalAccountEntryRelationship",
"resolutionGuidance": {
"entityByReference": {
"allowReference": true
}
}
}
],
"displayName": "Subledger journal account entry distribution"
},
{
"dataTypeName": "AmountMST",
"extendsDataType": "decimal"
},
{
"dataTypeName": "RefRecId",
"extendsDataType": "bigInteger"
},
{
"dataTypeName": "AmountMSTSecondary",
"extendsDataType": "decimal"
}
]
} | {
"pile_set_name": "Github"
} |
"""Support for a camera of a BloomSky weather station."""
import logging
import requests
from homeassistant.components.camera import Camera
from . import DOMAIN
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up access to BloomSky cameras."""
if discovery_info is not None:
return
bloomsky = hass.data[DOMAIN]
for device in bloomsky.devices.values():
add_entities([BloomSkyCamera(bloomsky, device)])
class BloomSkyCamera(Camera):
"""Representation of the images published from the BloomSky's camera."""
def __init__(self, bs, device):
"""Initialize access to the BloomSky camera images."""
super().__init__()
self._name = device["DeviceName"]
self._id = device["DeviceID"]
self._bloomsky = bs
self._url = ""
self._last_url = ""
# last_image will store images as they are downloaded so that the
# frequent updates in home-assistant don't keep poking the server
# to download the same image over and over.
self._last_image = ""
self._logger = logging.getLogger(__name__)
def camera_image(self):
"""Update the camera's image if it has changed."""
try:
self._url = self._bloomsky.devices[self._id]["Data"]["ImageURL"]
self._bloomsky.refresh_devices()
# If the URL hasn't changed then the image hasn't changed.
if self._url != self._last_url:
response = requests.get(self._url, timeout=10)
self._last_url = self._url
self._last_image = response.content
except requests.exceptions.RequestException as error:
self._logger.error("Error getting bloomsky image: %s", error)
return None
return self._last_image
@property
def unique_id(self):
"""Return a unique ID."""
return self._id
@property
def name(self):
"""Return the name of this BloomSky device."""
return self._name
| {
"pile_set_name": "Github"
} |
# -*- coding:utf-8 -*-
# Created by hrwhisper on 2016/4/14.
import re
from django.core.urlresolvers import reverse, NoReverseMatch
from django import template
register = template.Library()
@register.simple_tag(takes_context=True)
def active(context, pattern_or_urlname):
try:
pattern = '^' + reverse(pattern_or_urlname)
except NoReverseMatch:
pattern = pattern_or_urlname
path = context['request'].path
if re.search(pattern, path):
return 'active'
return ''
| {
"pile_set_name": "Github"
} |
// Copyright Aleksey Gurtovoy 2000-2004
// Copyright David Abrahams 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "boost/mpl/set/set30_c.hpp" header
// -- DO NOT modify by hand!
namespace boost { namespace mpl {
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
>
struct set21_c
: s_item<
integral_c< T,C20 >
, set20_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19 >
>
{
typedef set21_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21
>
struct set22_c
: s_item<
integral_c< T,C21 >
, set21_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20 >
>
{
typedef set22_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22
>
struct set23_c
: s_item<
integral_c< T,C22 >
, set22_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21 >
>
{
typedef set23_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23
>
struct set24_c
: s_item<
integral_c< T,C23 >
, set23_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22 >
>
{
typedef set24_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23, T C24
>
struct set25_c
: s_item<
integral_c< T,C24 >
, set24_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23 >
>
{
typedef set25_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23, T C24, T C25
>
struct set26_c
: s_item<
integral_c< T,C25 >
, set25_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24 >
>
{
typedef set26_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23, T C24, T C25, T C26
>
struct set27_c
: s_item<
integral_c< T,C26 >
, set26_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24,C25 >
>
{
typedef set27_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23, T C24, T C25, T C26, T C27
>
struct set28_c
: s_item<
integral_c< T,C27 >
, set27_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24,C25,C26 >
>
{
typedef set28_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23, T C24, T C25, T C26, T C27, T C28
>
struct set29_c
: s_item<
integral_c< T,C28 >
, set28_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24,C25,C26,C27 >
>
{
typedef set29_c type;
};
template<
typename T
, T C0, T C1, T C2, T C3, T C4, T C5, T C6, T C7, T C8, T C9, T C10
, T C11, T C12, T C13, T C14, T C15, T C16, T C17, T C18, T C19, T C20
, T C21, T C22, T C23, T C24, T C25, T C26, T C27, T C28, T C29
>
struct set30_c
: s_item<
integral_c< T,C29 >
, set29_c< T,C0,C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24,C25,C26,C27,C28 >
>
{
typedef set30_c type;
};
}}
| {
"pile_set_name": "Github"
} |
#!/usr/bin/groovy
//################ FILE IS AUTO-GENERATED from .base files
//################ DO NOT MODIFY
//################ See scripts/make_jenkinsfiles.sh
// TOOD: rename to @Library('h2o-jenkins-pipeline-lib') _
@Library('test-shared-library') _
import ai.h2o.ci.Utils
import static ai.h2o.ci.Utils.banner
def utilsLib = new Utils()
import ai.h2o.ci.BuildInfo
def commitMessage = ''
def h2o4gpuUtils = null
def platform = "ppc64le-centos7-cuda10.1"
def BUILDTYPE = "cuda101-py36"
def cuda = "nvidia/cuda-ppc64le:10.1-cudnn7-devel-centos7"
def cudart = "nvidia/cuda-ppc64le:10.1-cudnn7-devel-centos7"
def extratag = "-cuda101"
def linuxwheel = "ppc64le-centos7-cuda101.whl"
def testtype = "dotest-single-gpu"
def testtype_multi_gpu = "dotest-multi-gpu"
def labelbuild = "ibm-power-gpu"
def labeltest = "ibm-power-gpu"
def labeltest_multi_gpu = "ibm-power-gpu"
def labelruntime = "ibm-power || ibm-power-gpu"
def doingbenchmark = "0"
def dobenchmark = "0"
def doruntime = "1"
def python = "3.6"
def data_dirs = "-v /home/0xdiag/h2o4gpu/data:/data -v /home/0xdiag/h2o4gpu/open_data:/open_data"
def publish_docs = false//################ BELOW IS COPY/PASTE of ci/Jenkinsfile.template (except stage names)
def benchmark_commit_trigger
pipeline {
agent none
// Setup job options
options {
ansiColor('xterm')
timestamps()
timeout(time: 300, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '10'))
disableConcurrentBuilds()
skipDefaultCheckout()
}
environment {
MAKE_OPTS = "-s CI=1" // -s: silent mode
BUILD_TYPE = "${BUILDTYPE}"
}
stages {
stage("Git clone on Linux ppc64le-cuda101-py36") {
agent {
label "${labelbuild}"
}
steps {
dumpInfo 'Linux Build Info'
// Do checkout
retryWithTimeout(200 /* seconds */, 3 /* retries */) {
deleteDir()
checkout([
$class : 'GitSCM',
branches : scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions : scm.extensions + [[$class: 'SubmoduleOption', disableSubmodules: true, recursiveSubmodules: false, reference: '', trackingSubmodules: false, shallow: true]],
submoduleCfg : [],
userRemoteConfigs : scm.userRemoteConfigs])
}
script {
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
buildInfo("h2o4gpu", h2o4gpuUtils.isRelease())
commitMessage = sh(script: 'git log -1 --pretty=%B | tr "\n" " "', returnStdout: true).trim()
echo "Commit Message: ${commitMessage}"
benchmark_commit_trigger = ("${commitMessage}" ==~ /.*trigger_benchmark.*/)
echo "benchmark_commit_trigger: ${benchmark_commit_trigger}"
}
stash includes: "ci/Jenkinsfile*", name: "jenkinsfiles"
}
}
stage("Build on Centos7 ppc64le-cuda101-py36") {
agent {
label "${labelbuild}"
}
when {
expression {
unstash "jenkinsfiles"
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
return "${doingbenchmark}" == "1" || h2o4gpuUtils.doBuild() || h2o4gpuUtils.doTests() || !h2o4gpuUtils.wasStageSuccessful("Build on Centos7 ppc64le-cuda101-py36")
}
}
steps {
// Do checkout
retryWithTimeout(200 /* seconds */, 3 /* retries */) {
deleteDir()
checkout([
$class : 'GitSCM',
branches : scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions : scm.extensions + [[$class: 'SubmoduleOption', disableSubmodules: true, recursiveSubmodules: false, reference: '', trackingSubmodules: false, shallow: true]],
submoduleCfg : [],
userRemoteConfigs : scm.userRemoteConfigs])
}
script {
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
h2o4gpuUtils.buildOnLinux("${cuda}", "${python}", "${extratag}", "${platform}", "${linuxwheel}")
buildInfo("h2o4gpu", h2o4gpuUtils.isRelease())
script {
// Load the version file content
buildInfo.get().setVersion(utilsLib.getCommandOutput("cat build/VERSION.txt"))
utilsLib.setCurrentBuildName(buildInfo.get().getVersion())
utilsLib.appendBuildDescription("""|Authors: ${buildInfo.get().getAuthorNames().join(" ")}
|Git SHA: ${buildInfo.get().getGitSha().substring(0, 8)}
|""".stripMargin("|"))
}
}
}
}
stage("Test - Multi GPU ppc64le-cuda101-py36") {
agent {
label "${labeltest_multi_gpu}"
}
when {
expression {
unstash "jenkinsfiles"
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
return "${doingbenchmark}" == "1" || h2o4gpuUtils.doTests() && (h2o4gpuUtils.rerun_disabled(commitMessage) || !h2o4gpuUtils.wasStageSuccessful("Test | Lint | S3up on Centos7 ppc64le-cuda101-py36"))
}
}
steps {
dumpInfo 'Linux Test Info'
// Get source code (should put tests into wheel, then wouldn't have to checkout)
retryWithTimeout(200 /* seconds */, 3 /* retries */) {
deleteDir()
checkout([
$class : 'GitSCM',
branches : scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions : scm.extensions + [[$class: 'SubmoduleOption', disableSubmodules: true, recursiveSubmodules: false, reference: '', trackingSubmodules: false, shallow: true]],
submoduleCfg : [],
userRemoteConfigs : scm.userRemoteConfigs])
}
script {
unstash 'version_info'
sh """
echo "Before Stashed wheel file:"
ls -l src/interface_py/dist/${platform}/ || true
rm -rf src/interface_py/dist/${platform}/ || true
"""
unstash "${linuxwheel}"
sh """
echo "After Stashed wheel file:"
ls -l src/interface_py/dist/${platform}/ || true
"""
h2o4gpuUtils.runTestsMultiGpu(buildInfo.get(), "${cuda}", "${python}", "${extratag}", "${platform}", "${testtype_multi_gpu}", "${data_dirs}")
}
}
}
stage("Test - Single GPU | Lint | S3up on Centos7 ppc64le-cuda101-py36") {
agent {
label "${labeltest}"
}
when {
expression {
unstash "jenkinsfiles"
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
return "${doingbenchmark}" == "1" || h2o4gpuUtils.doTests() && (h2o4gpuUtils.rerun_disabled(commitMessage) || !h2o4gpuUtils.wasStageSuccessful("Test | Lint | S3up on Centos7 ppc64le-cuda101-py36"))
}
}
steps {
dumpInfo 'Linux Test Info'
// Get source code (should put tests into wheel, then wouldn't have to checkout)
retryWithTimeout(200 /* seconds */, 3 /* retries */) {
deleteDir()
checkout([
$class : 'GitSCM',
branches : scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions : scm.extensions + [[$class: 'SubmoduleOption', disableSubmodules: true, recursiveSubmodules: false, reference: '', trackingSubmodules: false, shallow: true]],
submoduleCfg : [],
userRemoteConfigs : scm.userRemoteConfigs])
}
script {
unstash 'version_info'
sh """
echo "Before Stashed wheel file:"
ls -l src/interface_py/dist/${platform}/ || true
rm -rf src/interface_py/dist/${platform}/ || true
"""
unstash "${linuxwheel}"
sh """
echo "After Stashed wheel file:"
ls -l src/interface_py/dist/${platform}/ || true
"""
unstash "py_docs"
sh """
echo "After Stashed py documentation file:"
ls -l src/interface_py/docs/_build || true
"""
h2o4gpuUtils.runTestsSingleGpu(buildInfo.get(), "${cuda}", "${python}", "${extratag}", "${platform}", "${testtype}", "${data_dirs}")
}
retryWithTimeout(500 /* seconds */, 5 /* retries */) {
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "awsArtifactsUploader"]]) {
script {
h2o4gpuUtils.publishToS3(buildInfo.get(), extratag ,platform, publish_docs)
}
}
}
}
}
stage("Build/Publish Runtime Docker Centos7 ppc64le-cuda101-py36") {
agent {
label "${labelruntime}"
}
when {
expression {
unstash "jenkinsfiles"
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
return "${doruntime}" == "1" && h2o4gpuUtils.doRuntime()
}
}
steps {
dumpInfo 'Linux Build Info'
// Do checkout
retryWithTimeout(200 /* seconds */, 3 /* retries */) {
deleteDir()
checkout([
$class : 'GitSCM',
branches : scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions : scm.extensions + [[$class: 'SubmoduleOption', disableSubmodules: true, recursiveSubmodules: false, reference: '', trackingSubmodules: false, shallow: true]],
submoduleCfg : [],
userRemoteConfigs : scm.userRemoteConfigs])
}
script {
sh """
echo "Before Stashed wheel file:"
ls -l src/interface_py/dist/${platform}/ || true
rm -rf src/interface_py/dist/${platform}/ || true
"""
unstash "${linuxwheel}"
sh """
echo "After Stashed wheel file:"
ls -l src/interface_py/dist/${platform} || true
"""
unstash 'version_info'
sh 'echo "Stashed version file:" && ls -l build/'
sh """
echo "Before unstash condapkg:"
ls -l condapkgs || true
rm -rf condapkgs || true
"""
unstash "condapkg"
sh """
echo "After unstash condapkg:"
ls -l condapkgs || true
"""
}
script {
h2o4gpuUtils.buildRuntime(buildInfo.get(), "${cudart}", "${python}", "${platform}", "${extratag}", "${data_dirs}")
}
retryWithTimeout(1000 /* seconds */, 5 /* retries */) {
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "awsArtifactsUploader"]]) {
script {
h2o4gpuUtils.publishRuntimeToS3(buildInfo.get(), "${extratag}")
}
}
}
}
}
stage("Benchmarking Linux ppc64le-cuda101-py36") {
agent {
label 'master'
}
when {
expression {
unstash "jenkinsfiles"
h2o4gpuUtils = load "ci/Jenkinsfile.utils"
echo "benchmark_commit_trigger: ${benchmark_commit_trigger}"
return "${doingbenchmark}" == "1" || (("${benchmark_commit_trigger}"=="true" || h2o4gpuUtils.doTriggerBenchmarksJob()) && "${dobenchmark}" == "1" && env.BRANCH_NAME == "master")
}
}
steps {
script {
utilsLib.appendBuildDescription("BENCH \u2713")
}
echo banner("Triggering downstream jobs h2o4gpu${extratag}-benchmark : RUNTIME_ID=${buildInfo.get().getVersion()}")
build job: "/h2o4gpu${extratag}-benchmark/${env.BRANCH_NAME}", parameters: [[$class: 'StringParameterValue', name: 'RUNTIME_ID', value: buildInfo.get().getVersion()]], propagate: false, wait: false, quietPeriod: 60
}
}
} // end over stages
post {
failure {
node('linux') {
script {
if(env.BRANCH_NAME == "master") {
emailext(
to: "[email protected], [email protected]",
subject: "BUILD FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: '''${JELLY_SCRIPT, template="html_gmail"}''',
attachLog: true,
compressLog: true,
recipientProviders: [
[$class: 'DevelopersRecipientProvider'],
]
)
}
}
}
}
}
}
| {
"pile_set_name": "Github"
} |
/*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License. You should have received a
copy of the license along with this program.
The license is also available online at <http://opensourcerisk.org>
This program is distributed on the basis that it will form a useful
contribution to risk analytics and model standardisation, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
*/
#include <ored/marketdata/inflationcurve.hpp>
#include <ored/utilities/log.hpp>
#include <qle/indexes/inflationindexwrapper.hpp>
#include <ql/cashflows/couponpricer.hpp>
#include <ql/cashflows/yoyinflationcoupon.hpp>
#include <ql/pricingengines/swap/discountingswapengine.hpp>
#include <ql/termstructures/inflation/piecewiseyoyinflationcurve.hpp>
#include <ql/termstructures/inflation/piecewisezeroinflationcurve.hpp>
#include <ql/time/daycounters/actual365fixed.hpp>
#include <algorithm>
using namespace QuantLib;
using namespace std;
using namespace ore::data;
namespace ore {
namespace data {
InflationCurve::InflationCurve(Date asof, InflationCurveSpec spec, const Loader& loader,
const CurveConfigurations& curveConfigs, const Conventions& conventions,
map<string, boost::shared_ptr<YieldCurve>>& yieldCurves) {
try {
const boost::shared_ptr<InflationCurveConfig>& config = curveConfigs.inflationCurveConfig(spec.curveConfigID());
boost::shared_ptr<InflationSwapConvention> conv =
boost::dynamic_pointer_cast<InflationSwapConvention>(conventions.get(config->conventions()));
QL_REQUIRE(conv != nullptr, "convention " << config->conventions() << " could not be found.");
Handle<YieldTermStructure> nominalTs;
auto it = yieldCurves.find(config->nominalTermStructure());
if (it != yieldCurves.end()) {
nominalTs = it->second->handle();
} else {
QL_FAIL("The nominal term structure, " << config->nominalTermStructure()
<< ", required in the building "
"of the curve, "
<< spec.name() << ", was not found.");
}
// We loop over all market data, looking for quotes that match the configuration
const std::vector<string> strQuotes = config->swapQuotes();
std::vector<Handle<Quote>> quotes(strQuotes.size(), Handle<Quote>());
std::vector<Period> terms(strQuotes.size());
std::vector<bool> isZc(strQuotes.size(), true);
for (auto& md : loader.loadQuotes(asof)) {
if (md->asofDate() == asof && (md->instrumentType() == MarketDatum::InstrumentType::ZC_INFLATIONSWAP ||
(md->instrumentType() == MarketDatum::InstrumentType::YY_INFLATIONSWAP &&
config->type() == InflationCurveConfig::Type::YY))) {
boost::shared_ptr<ZcInflationSwapQuote> q = boost::dynamic_pointer_cast<ZcInflationSwapQuote>(md);
if (q != NULL && q->index() == spec.index()) {
auto it = std::find(strQuotes.begin(), strQuotes.end(), q->name());
if (it != strQuotes.end()) {
QL_REQUIRE(quotes[it - strQuotes.begin()].empty(), "duplicate quote " << q->name());
quotes[it - strQuotes.begin()] = q->quote();
terms[it - strQuotes.begin()] = q->term();
isZc[it - strQuotes.begin()] = true;
}
}
boost::shared_ptr<YoYInflationSwapQuote> q2 = boost::dynamic_pointer_cast<YoYInflationSwapQuote>(md);
if (q2 != NULL && q2->index() == spec.index()) {
auto it = std::find(strQuotes.begin(), strQuotes.end(), q2->name());
if (it != strQuotes.end()) {
QL_REQUIRE(quotes[it - strQuotes.begin()].empty(), "duplicate quote " << q2->name());
quotes[it - strQuotes.begin()] = q2->quote();
terms[it - strQuotes.begin()] = q2->term();
isZc[it - strQuotes.begin()] = false;
}
}
}
}
// do we have all quotes and do we derive yoy quotes from zc ?
for (Size i = 0; i < strQuotes.size(); ++i) {
QL_REQUIRE(!quotes[i].empty(), "quote " << strQuotes[i] << " not found in market data.");
QL_REQUIRE(isZc[i] == isZc[0], "mixed zc and yoy quotes");
}
bool derive_yoy_from_zc = (config->type() == InflationCurveConfig::Type::YY && isZc[0]);
// construct seasonality
boost::shared_ptr<Seasonality> seasonality;
if (config->seasonalityBaseDate() != Null<Date>()) {
std::vector<string> strFactorIDs = config->seasonalityFactors();
std::vector<double> factors(strFactorIDs.size());
for (Size i = 0; i < strFactorIDs.size(); i++) {
boost::shared_ptr<MarketDatum> marketQuote = loader.get(strFactorIDs[i], asof);
// Check that we have a valid seasonality factor
if (marketQuote) {
QL_REQUIRE(marketQuote->instrumentType() == MarketDatum::InstrumentType::SEASONALITY,
"Market quote (" << marketQuote->name() << ") not of type seasonality.");
// Currently only monthly seasonality with 12 multiplicative factors os allowed
QL_REQUIRE(config->seasonalityFrequency() == Monthly && strFactorIDs.size() == 12,
"Only monthly seasonality with 12 factors is allowed. Provided "
<< config->seasonalityFrequency() << " with " << strFactorIDs.size() << " factors.");
boost::shared_ptr<SeasonalityQuote> sq = boost::dynamic_pointer_cast<SeasonalityQuote>(marketQuote);
QL_REQUIRE(sq->type() == "MULT", "Market quote (" << sq->name() << ") not of multiplicative type.");
Size seasBaseDateMonth = ((Size)config->seasonalityBaseDate().month());
int findex = sq->applyMonth() - seasBaseDateMonth;
if (findex < 0)
findex += 12;
QL_REQUIRE(findex >= 0 && findex < 12, "Unexpected seasonality index " << findex);
factors[findex] = sq->quote()->value();
} else {
QL_FAIL("Could not find quote for ID " << strFactorIDs[i] << " with as of date "
<< io::iso_date(asof) << ".");
}
}
QL_REQUIRE(!factors.empty(), "no seasonality factors found");
seasonality = boost::make_shared<MultiplicativePriceSeasonality>(config->seasonalityBaseDate(),
config->seasonalityFrequency(), factors);
}
// construct curve (ZC or YY depending on configuration)
// base zero / yoy rate: if given, take it, otherwise set it to first quote
Real baseRate = config->baseRate() != Null<Real>() ? config->baseRate() : quotes[0]->value();
interpolatedIndex_ = conv->interpolated();
boost::shared_ptr<YoYInflationIndex> zc_to_yoy_conversion_index;
if (config->type() == InflationCurveConfig::Type::ZC || derive_yoy_from_zc) {
// ZC Curve
std::vector<boost::shared_ptr<ZeroInflationTraits::helper>> instruments;
boost::shared_ptr<ZeroInflationIndex> index = conv->index();
for (Size i = 0; i < strQuotes.size(); ++i) {
// QL conventions do not incorporate settlement delay => patch here once QL is patched
Date maturity = asof + terms[i];
boost::shared_ptr<ZeroInflationTraits::helper> instrument =
boost::make_shared<ZeroCouponInflationSwapHelper>(quotes[i], conv->observationLag(), maturity,
conv->fixCalendar(), conv->fixConvention(),
conv->dayCounter(), index, nominalTs);
// The instrument gets registered to update on change of evaluation date. This triggers a
// rebootstrapping of the curve. In order to avoid this during simulation we unregister from the
// evaluationDate.
instrument->unregisterWith(Settings::instance().evaluationDate());
instruments.push_back(instrument);
}
curve_ = boost::shared_ptr<PiecewiseZeroInflationCurve<Linear>>(new PiecewiseZeroInflationCurve<Linear>(
asof, config->calendar(), config->dayCounter(), config->lag(), config->frequency(), interpolatedIndex_,
baseRate, nominalTs, instruments, config->tolerance()));
// force bootstrap so that errors are thrown during the build, not later
boost::static_pointer_cast<PiecewiseZeroInflationCurve<Linear>>(curve_)->zeroRate(QL_EPSILON);
if (derive_yoy_from_zc) {
// set up yoy wrapper with empty ts, so that zero index is used to forecast fixings
// for this link the appropriate curve to the zero index
zc_to_yoy_conversion_index = boost::make_shared<QuantExt::YoYInflationIndexWrapper>(
index->clone(Handle<ZeroInflationTermStructure>(
boost::dynamic_pointer_cast<ZeroInflationTermStructure>(curve_))),
interpolatedIndex_);
}
}
if (config->type() == InflationCurveConfig::Type::YY) {
// YOY Curve
std::vector<boost::shared_ptr<YoYInflationTraits::helper>> instruments;
boost::shared_ptr<ZeroInflationIndex> zcindex = conv->index();
boost::shared_ptr<YoYInflationIndex> index =
boost::make_shared<QuantExt::YoYInflationIndexWrapper>(zcindex, interpolatedIndex_);
boost::shared_ptr<InflationCouponPricer> yoyCpnPricer =
boost::make_shared<QuantExt::YoYInflationCouponPricer2>(nominalTs);
for (Size i = 0; i < strQuotes.size(); ++i) {
Date maturity = asof + terms[i];
Real effectiveQuote = quotes[i]->value();
if (derive_yoy_from_zc) {
// contruct a yoy swap just as it is done in the yoy inflation helper
Schedule schedule = MakeSchedule()
.from(Settings::instance().evaluationDate())
.to(maturity)
.withTenor(1 * Years)
.withConvention(Unadjusted)
.withCalendar(conv->fixCalendar())
.backwards();
YearOnYearInflationSwap tmp(YearOnYearInflationSwap::Payer, 1000000.0, schedule, 0.02,
conv->dayCounter(), schedule, zc_to_yoy_conversion_index,
conv->observationLag(), 0.0, conv->dayCounter(), conv->fixCalendar(),
conv->fixConvention());
for (auto& c : tmp.yoyLeg()) {
auto cpn = boost::dynamic_pointer_cast<YoYInflationCoupon>(c);
QL_REQUIRE(cpn, "yoy inflation coupon expected, could not cast");
cpn->setPricer(yoyCpnPricer);
}
boost::shared_ptr<PricingEngine> engine =
boost::make_shared<QuantLib::DiscountingSwapEngine>(nominalTs);
tmp.setPricingEngine(engine);
effectiveQuote = tmp.fairRate();
DLOG("Derive " << terms[i] << " yoy quote " << effectiveQuote << " from zc quote "
<< quotes[i]->value());
}
// QL conventions do not incorporate settlement delay => patch here once QL is patched
boost::shared_ptr<YoYInflationTraits::helper> instrument =
boost::make_shared<YearOnYearInflationSwapHelper>(
Handle<Quote>(boost::make_shared<SimpleQuote>(effectiveQuote)), conv->observationLag(),
maturity, conv->fixCalendar(), conv->fixConvention(), conv->dayCounter(), index, nominalTs);
instrument->unregisterWith(Settings::instance().evaluationDate());
instruments.push_back(instrument);
}
// base zero rate: if given, take it, otherwise set it to first quote
Real baseRate = config->baseRate() != Null<Real>() ? config->baseRate() : quotes[0]->value();
curve_ = boost::shared_ptr<PiecewiseYoYInflationCurve<Linear>>(new PiecewiseYoYInflationCurve<Linear>(
asof, config->calendar(), config->dayCounter(), config->lag(), config->frequency(), interpolatedIndex_,
baseRate, nominalTs, instruments, config->tolerance()));
// force bootstrap so that errors are thrown during the build, not later
boost::static_pointer_cast<PiecewiseYoYInflationCurve<Linear>>(curve_)->yoyRate(QL_EPSILON);
}
if (seasonality != nullptr) {
curve_->setSeasonality(seasonality);
}
curve_->enableExtrapolation(config->extrapolate());
curve_->unregisterWith(Settings::instance().evaluationDate());
} catch (std::exception& e) {
QL_FAIL("inflation curve building failed: " << e.what());
} catch (...) {
QL_FAIL("inflation curve building failed: unknown error");
}
}
} // namespace data
} // namespace ore
| {
"pile_set_name": "Github"
} |
{
"CVE_data_meta": {
"ASSIGNER": "[email protected]",
"DATE_PUBLIC": "2018-09-07T00:00:00",
"ID": "CVE-2018-3952",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "NordVPN",
"version": {
"version_data": [
{
"version_value": "NordVPN 6.14.28.0"
}
]
}
}
]
},
"vendor_name": "Talos"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "An exploitable code execution vulnerability exists in the connect functionality of NordVPN 6.14.28.0. A specially crafted configuration file can cause a privilege escalation, resulting in the execution of arbitrary commands with system privileges."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "OS command injection"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://talosintelligence.com/vulnerability_reports/TALOS-2018-0622",
"refsource": "MISC",
"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2018-0622"
},
{
"name": "105312",
"refsource": "BID",
"url": "http://www.securityfocus.com/bid/105312"
}
]
}
} | {
"pile_set_name": "Github"
} |
#!/usr/bin/env bash
#
# Function description:
# Add some hosts record into /etc/hosts file
#
# Usage:
# bash backupFileOrRollback.sh
#
# Create Time:
# 2016-04-27 9:45:00.956620365 +0800 #date +'%Y-%m-%d %H:%M:%S.%N %z'
#
# Author:
# Open Source Software written by 'Guodong Ding <[email protected]>'
# Blog: http://dgd2010.blog.51cto.com/
# Github: https://github.com/DingGuodong
#
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following along as the install occurs.
# same as set -u
# Save trace setting
_XTRACE_FUNCTIONS=$(set +o | grep xtrace)
set -o xtrace
# TODO(Guodong Ding) add directory support
# Function description: backup files
# Note: accept $* parameters
backup_files() {
set -o errexit
if [ "$#" -eq 0 ]; then
return 1
fi
file_list=$*
operation_date_time="_$(date +"%Y%m%d%H%M%S")"
log_filename=".log_$$_$RANDOM"
log_filename_full_path=/tmp/${log_filename}
touch ${log_filename_full_path}
old_IFS=$IFS
IFS=" "
for file in ${file_list}; do
real_file=$(realpath "${file}")
[ -f "${real_file}" ] && cp "${real_file}" "${file}${operation_date_time}~"
[ -f ${log_filename_full_path} ] && echo "\mv -f $file$operation_date_time~ $file" >>${log_filename_full_path}
done
IFS="$old_IFS"
set +o errexit
return 0
}
# Function description:
rollback_files() {
# shellcheck disable=SC1090
[ -f ${log_filename_full_path} ] && . ${log_filename_full_path}
\rm -f ${log_filename_full_path}
exit 2
}
function main() {
lock_filename="lock_$$_$RANDOM"
lock_filename_full_path="/var/lock/subsys/$lock_filename"
if (
set -o noclobber
echo "$$" >"$lock_filename_full_path"
) 2>/dev/null; then
trap 'rm -f "$lock_filename_full_path"; exit $?' INT TERM EXIT
# do
backup_files "$@" || rollback_files
# done
rm -f "$lock_filename_full_path"
trap - INT TERM EXIT
else
echo "Failed to acquire lock: $lock_filename_full_path"
echo "held by $(cat ${lock_filename_full_path})"
fi
}
main "$@"
# restore xtrace setting
${_XTRACE_FUNCTIONS}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.preview.tests.types" version="1.0">
<extension target="org.nuxeo.ecm.core.schema.TypeService"
point="doctype">
<doctype name="CustomDoc" extends="Document">
<schema name="dublincore"/>
<schema name="files" />
</doctype>
</extension>
</component> | {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Circle Gauge Chart</title>
<link href="../../assets/styles.css" rel="stylesheet" />
<style>
#chart {
padding: 0;
max-width: 650px;
margin: 35px auto;
}
</style>
<script>
window.Promise ||
document.write(
'<script src="https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js"><\/script>'
)
window.Promise ||
document.write(
'<script src="https://cdn.jsdelivr.net/npm/[email protected]/classList.min.js"><\/script>'
)
window.Promise ||
document.write(
'<script src="https://cdn.jsdelivr.net/npm/findindex_polyfill_mdn"><\/script>'
)
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prop-types.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script>
<script src="../../../dist/apexcharts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/react-apexcharts.iife.min.js"></script>
</head>
<body>
<div id="app"></div>
<div id="html">
<div id="chart">
<ReactApexChart options={this.state.options} series={this.state.series} type="radialBar" height={350} />
</div>
</div>
<script type="text/babel">
class ApexChart extends React.Component {
constructor(props) {
super(props);
this.state = {
series: [70],
options: {
chart: {
height: 350,
type: 'radialBar',
},
plotOptions: {
radialBar: {
hollow: {
size: '70%',
}
},
},
labels: ['Cricket'],
},
};
}
render() {
return (
<div>
<div id="chart">
<ReactApexChart options={this.state.options} series={this.state.series} type="radialBar" height={350} />
</div>
<div id="html-dist"></div>
</div>
);
}
}
const domContainer = document.querySelector('#app');
ReactDOM.render(React.createElement(ApexChart), domContainer);
</script>
</body>
</html>
| {
"pile_set_name": "Github"
} |
####################
##
## Test Condor command file
##
####################
executable = printer.remote
error = printer.err
output = printer.out
log = printer.log
queue
| {
"pile_set_name": "Github"
} |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "unity.h"
#include "esp_log.h"
#include "tcpip_adapter.h"
#include "lwip/inet.h"
#include "lwip/sockets.h"
#include "iot_wifi_conn.h"
#include "iot_udp.h"
#define AP_SSID CONFIG_AP_SSID
#define AP_PASSWORD CONFIG_AP_PASSWORD
#define SERVER_PORT CONFIG_TCP_SERVER_PORT
#define SERVER_MAX_CONNECTION CONFIG_TCP_SERVER_MAX_CONNECTION
static const char* TAG_CLI = "UDP CLI";
static const char* TAG_SRV = "UDP SRV";
static const char* TAG_WIFI = "WIFI";
static void wifi_connect()
{
CWiFi *my_wifi = CWiFi::GetInstance(WIFI_MODE_STA);
ESP_LOGI(TAG_WIFI, "connect WiFi");
my_wifi->Connect(AP_SSID, AP_PASSWORD, portMAX_DELAY);
ESP_LOGI(TAG_WIFI, "WiFi connected...");
}
extern "C" void udp_client_obj_test()
{
CUdpConn client;
const char* data = "test1234567";
uint8_t recv_buf[100];
tcpip_adapter_ip_info_t ipconfig;
tcpip_adapter_get_ip_info(TCPIP_ADAPTER_IF_STA, &ipconfig);
struct sockaddr_in remoteAddr;
size_t nAddrLen = sizeof(remoteAddr);
client.SetTimeout(1);
while (1) {
client.SendTo(data, strlen(data), ipconfig.ip.addr, 7777);
int len = client.RecvFrom(recv_buf, sizeof(recv_buf), (struct sockaddr*) &remoteAddr, &nAddrLen);
if (len > 0) {
ESP_LOGI(TAG_CLI, "recv len: %d", len);
ESP_LOGI(TAG_CLI, "data: %s", recv_buf);
ESP_LOGI(TAG_CLI, "ip: %s", inet_ntoa(remoteAddr.sin_addr));
}
vTaskDelay(2000 / portTICK_PERIOD_MS);
}
}
extern "C" void udp_server_obj_test(void* arg)
{
CUdpConn server;
server.Bind(7777);
server.SetTimeout(1);
uint8_t recv_data[100];
struct sockaddr_in remoteAddr;
size_t nAddrLen = sizeof(remoteAddr);
while (1) {
int ret = server.RecvFrom(recv_data, sizeof(recv_data), (struct sockaddr*) &remoteAddr, &nAddrLen);
if (ret > 0) {
ESP_LOGI(TAG_SRV, "recv: %s", recv_data);
ESP_LOGI(TAG_CLI, "ip: %s: %d", inet_ntoa(remoteAddr.sin_addr), remoteAddr.sin_port);
const char* resp = "server reponse...\n";
server.SendTo(resp, strlen(resp), 0, (struct sockaddr*) &remoteAddr);
} else {
ESP_LOGI(TAG_SRV, "timeout...");
}
ESP_LOGI(TAG_SRV, "heap: %d", esp_get_free_heap_size());
}
vTaskDelete(NULL);
}
TEST_CASE("UDP cpp test", "[udp_cpp][iot]")
{
wifi_connect();
xTaskCreate(udp_server_obj_test, "udp_server_obj_test", 2048, NULL, 5, NULL);
while (1) {
udp_client_obj_test();
}
}
| {
"pile_set_name": "Github"
} |
/**
* ***************************************************************************
* Copyright (c) 2010 Qcadoo Limited
* Project: Qcadoo MES
* Version: 1.4
* <p>
* This file is part of Qcadoo.
* <p>
* Qcadoo is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation; either version 3 of the License,
* or (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
* <p>
* You should have received a copy of the GNU Affero General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* ***************************************************************************
*/
package com.qcadoo.mes.basic.listeners;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qcadoo.mes.basic.constants.BasicConstants;
import com.qcadoo.mes.basic.constants.ProductFields;
import com.qcadoo.mes.basic.imports.product.ProductCellBinderRegistry;
import com.qcadoo.mes.basic.imports.product.ProductXlsxImportService;
import com.qcadoo.mes.basic.imports.services.XlsxImportService;
import com.qcadoo.model.api.Entity;
import com.qcadoo.model.api.search.SearchCriterion;
import com.qcadoo.model.api.search.SearchRestrictions;
import com.qcadoo.view.api.ComponentState;
import com.qcadoo.view.api.ViewDefinitionState;
@Service
public class ProductsImportListeners {
@Autowired
private ProductXlsxImportService productXlsxImportService;
@Autowired
private ProductCellBinderRegistry productCellBinderRegistry;
public void downloadImportSchema(final ViewDefinitionState view, final ComponentState state, final String[] args) {
productXlsxImportService.downloadImportSchema(view, BasicConstants.PLUGIN_IDENTIFIER, BasicConstants.MODEL_PRODUCT,
XlsxImportService.L_XLSX);
}
public void processImportFile(final ViewDefinitionState view, final ComponentState state, final String[] args)
throws IOException {
productXlsxImportService.processImportFile(view, productCellBinderRegistry.getCellBinderRegistry(), true,
BasicConstants.PLUGIN_IDENTIFIER, BasicConstants.MODEL_PRODUCT,
ProductsImportListeners::createRestrictionForProduct);
}
private static SearchCriterion createRestrictionForProduct(final Entity product) {
return SearchRestrictions.eq(ProductFields.NUMBER, product.getStringField(ProductFields.NUMBER));
}
public void redirectToLogs(final ViewDefinitionState view, final ComponentState state, final String[] args) {
productXlsxImportService.redirectToLogs(view, BasicConstants.MODEL_PRODUCT);
}
public void onInputChange(final ViewDefinitionState view, final ComponentState state, final String[] args) {
productXlsxImportService.changeButtonsState(view, false);
}
}
| {
"pile_set_name": "Github"
} |
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
// IMPORTANT
// When you add this file, we won't add the default configurations which is similar
// to "React Create App". This only has babel loader to load JavaScript.
const path = require('path');
const SRC = path.resolve('./src');
const STORIES = path.resolve('./stories');
// Export a function. Accept the base config as the only param.
module.exports = async ({ config, mode }) => {
// `mode` has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.
// Make whatever fine-grained changes you need
config.module.rules.push({
test: /\.scss|.css$/,
use: [
'style-loader',
{
loader: 'css-loader',
options: { importLoaders: 1, modules: true },
},
'sass-loader',
],
include: STORIES,
});
config.resolve.alias = {
'react-scroll-parallax': SRC,
components: path.resolve(SRC + 'components'),
};
// Return the altered config
return config;
};
| {
"pile_set_name": "Github"
} |
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="robots" content="anchors"/>
<link rel="start" href="../CotEditorHelp.html"/>
<link rel="index" href="../xpgs/xall.html"/>
<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
<link rel="stylesheet" href="../../Shared/sty/index.css"/>
<title>Script menu</title>
</head>
<body>
<nav><ul>
<li><a href="../CotEditorHelp.html">CotEditor Help</a></li>
</ul></nav>
<h1>Script menu</h1>
<ul>
<li><a href="../pgs/about_script_hook.html">Adding scripting hooks for CotEditor scripts</a></li>
<li><a href="../pgs/about_applescript_changes.html">Change log of AppleScript support</a></li>
<li><a href="../pgs/about_scripting.html">CotEditor Scripting</a></li>
<li><a href="../pgs/howto_customize_scriptmenu.html">Customizing the Script menu</a></li>
<li><a href="../pgs/about_script_name.html">File naming rules for CotEditor scripts</a></li>
<li><a href="../pgs/about_applescript.html">Working with AppleScript scripts</a></li>
<li><a href="../pgs/about_script_spec.html">Working with UNIX scripts</a></li>
</ul>
</body>
</html>
| {
"pile_set_name": "Github"
} |
<!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_162) on Sat Apr 25 19:12:20 PDT 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.fasterxml.jackson.dataformat.avro Class Hierarchy (Jackson dataformat: Avro 2.11.0 API)</title>
<meta name="date" content="2020-04-25">
<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="com.fasterxml.jackson.dataformat.avro Class Hierarchy (Jackson dataformat: Avro 2.11.0 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li><a href="../../../../../com/fasterxml/jackson/dataformat/avro/apacheimpl/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/fasterxml/jackson/dataformat/avro/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">Hierarchy For Package com.fasterxml.jackson.dataformat.avro</h1>
<span class="packageHierarchyLabel">Package Hierarchies:</span>
<ul class="horizontal">
<li><a href="../../../../../overview-tree.html">All Packages</a></li>
</ul>
</div>
<div class="contentContainer">
<h2 title="Class Hierarchy">Class Hierarchy</h2>
<ul>
<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Object</span></a>
<ul>
<li type="circle">com.fasterxml.jackson.databind.AnnotationIntrospector (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroAnnotationIntrospector.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroAnnotationIntrospector</span></a></li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroSchema.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroSchema</span></a> (implements com.fasterxml.jackson.core.FormatSchema)</li>
<li type="circle">com.fasterxml.jackson.databind.ser.BeanSerializerModifier
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroSerializerModifier.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroSerializerModifier</span></a></li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/CustomEncodingWrapper.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">CustomEncodingWrapper</span></a><T></li>
<li type="circle">com.fasterxml.jackson.core.JsonGenerator (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a>, com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.core.base.GeneratorBase
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroGenerator.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroGenerator</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.core.JsonParser (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.core.base.ParserMinimalBase
<ul>
<li type="circle">com.fasterxml.jackson.core.base.ParserBase
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroParser.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroParser</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.databind.JsonSerializer<T> (implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable)
<ul>
<li type="circle">com.fasterxml.jackson.databind.ser.std.StdSerializer<T> (implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroModule.SchemaSerializer.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroModule.SchemaSerializer</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.databind.cfg.MapperBuilder<M,B>
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroMapper.Builder.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroMapper.Builder</span></a></li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.databind.Module (implements com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroModule.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroModule</span></a></li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/PackageVersion.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">PackageVersion</span></a> (implements com.fasterxml.jackson.core.Versioned)</li>
<li type="circle">com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder (implements com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder<T>)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroTypeResolverBuilder.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroTypeResolverBuilder</span></a></li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.core.TokenStreamFactory (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.core.JsonFactory (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroFactory.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroFactory</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.core.TreeCodec
<ul>
<li type="circle">com.fasterxml.jackson.core.ObjectCodec (implements com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.databind.ObjectMapper (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, com.fasterxml.jackson.core.Versioned)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroMapper.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroMapper</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.core.TSFBuilder<F,B>
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroFactoryBuilder.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroFactoryBuilder</span></a></li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.databind.jsontype.TypeDeserializer
<ul>
<li type="circle">com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase (implements java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroTypeDeserializer.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroTypeDeserializer</span></a></li>
</ul>
</li>
</ul>
</li>
<li type="circle">com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase (implements com.fasterxml.jackson.databind.jsontype.TypeIdResolver)
<ul>
<li type="circle">com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroTypeIdResolver.html" title="class in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroTypeIdResolver</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 title="Annotation Type Hierarchy">Annotation Type Hierarchy</h2>
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroFixedSize.html" title="annotation in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroFixedSize</span></a> (implements java.lang.annotation.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>)</li>
</ul>
<h2 title="Enum Hierarchy">Enum Hierarchy</h2>
<ul>
<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Object</span></a>
<ul>
<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a><E> (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
<ul>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroParser.Feature.html" title="enum in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroParser.Feature</span></a> (implements com.fasterxml.jackson.core.FormatFeature)</li>
<li type="circle">com.fasterxml.jackson.dataformat.avro.<a href="../../../../../com/fasterxml/jackson/dataformat/avro/AvroGenerator.Feature.html" title="enum in com.fasterxml.jackson.dataformat.avro"><span class="typeNameLink">AvroGenerator.Feature</span></a> (implements com.fasterxml.jackson.core.FormatFeature)</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li>Use</li>
<li class="navBarCell1Rev">Tree</li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li><a href="../../../../../com/fasterxml/jackson/dataformat/avro/apacheimpl/package-tree.html">Next</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/fasterxml/jackson/dataformat/avro/package-tree.html" target="_top">Frames</a></li>
<li><a href="package-tree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
</body>
</html>
| {
"pile_set_name": "Github"
} |
/* Host AP driver Info Frame processing (part of hostap.o module) */
#include <linux/if_arp.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include "hostap_wlan.h"
#include "hostap.h"
#include "hostap_ap.h"
/* Called only as a tasklet (software IRQ) */
static void prism2_info_commtallies16(local_info_t *local, unsigned char *buf,
int left)
{
struct hfa384x_comm_tallies *tallies;
if (left < sizeof(struct hfa384x_comm_tallies)) {
printk(KERN_DEBUG "%s: too short (len=%d) commtallies "
"info frame\n", local->dev->name, left);
return;
}
tallies = (struct hfa384x_comm_tallies *) buf;
#define ADD_COMM_TALLIES(name) \
local->comm_tallies.name += le16_to_cpu(tallies->name)
ADD_COMM_TALLIES(tx_unicast_frames);
ADD_COMM_TALLIES(tx_multicast_frames);
ADD_COMM_TALLIES(tx_fragments);
ADD_COMM_TALLIES(tx_unicast_octets);
ADD_COMM_TALLIES(tx_multicast_octets);
ADD_COMM_TALLIES(tx_deferred_transmissions);
ADD_COMM_TALLIES(tx_single_retry_frames);
ADD_COMM_TALLIES(tx_multiple_retry_frames);
ADD_COMM_TALLIES(tx_retry_limit_exceeded);
ADD_COMM_TALLIES(tx_discards);
ADD_COMM_TALLIES(rx_unicast_frames);
ADD_COMM_TALLIES(rx_multicast_frames);
ADD_COMM_TALLIES(rx_fragments);
ADD_COMM_TALLIES(rx_unicast_octets);
ADD_COMM_TALLIES(rx_multicast_octets);
ADD_COMM_TALLIES(rx_fcs_errors);
ADD_COMM_TALLIES(rx_discards_no_buffer);
ADD_COMM_TALLIES(tx_discards_wrong_sa);
ADD_COMM_TALLIES(rx_discards_wep_undecryptable);
ADD_COMM_TALLIES(rx_message_in_msg_fragments);
ADD_COMM_TALLIES(rx_message_in_bad_msg_fragments);
#undef ADD_COMM_TALLIES
}
/* Called only as a tasklet (software IRQ) */
static void prism2_info_commtallies32(local_info_t *local, unsigned char *buf,
int left)
{
struct hfa384x_comm_tallies32 *tallies;
if (left < sizeof(struct hfa384x_comm_tallies32)) {
printk(KERN_DEBUG "%s: too short (len=%d) commtallies32 "
"info frame\n", local->dev->name, left);
return;
}
tallies = (struct hfa384x_comm_tallies32 *) buf;
#define ADD_COMM_TALLIES(name) \
local->comm_tallies.name += le32_to_cpu(tallies->name)
ADD_COMM_TALLIES(tx_unicast_frames);
ADD_COMM_TALLIES(tx_multicast_frames);
ADD_COMM_TALLIES(tx_fragments);
ADD_COMM_TALLIES(tx_unicast_octets);
ADD_COMM_TALLIES(tx_multicast_octets);
ADD_COMM_TALLIES(tx_deferred_transmissions);
ADD_COMM_TALLIES(tx_single_retry_frames);
ADD_COMM_TALLIES(tx_multiple_retry_frames);
ADD_COMM_TALLIES(tx_retry_limit_exceeded);
ADD_COMM_TALLIES(tx_discards);
ADD_COMM_TALLIES(rx_unicast_frames);
ADD_COMM_TALLIES(rx_multicast_frames);
ADD_COMM_TALLIES(rx_fragments);
ADD_COMM_TALLIES(rx_unicast_octets);
ADD_COMM_TALLIES(rx_multicast_octets);
ADD_COMM_TALLIES(rx_fcs_errors);
ADD_COMM_TALLIES(rx_discards_no_buffer);
ADD_COMM_TALLIES(tx_discards_wrong_sa);
ADD_COMM_TALLIES(rx_discards_wep_undecryptable);
ADD_COMM_TALLIES(rx_message_in_msg_fragments);
ADD_COMM_TALLIES(rx_message_in_bad_msg_fragments);
#undef ADD_COMM_TALLIES
}
/* Called only as a tasklet (software IRQ) */
static void prism2_info_commtallies(local_info_t *local, unsigned char *buf,
int left)
{
if (local->tallies32)
prism2_info_commtallies32(local, buf, left);
else
prism2_info_commtallies16(local, buf, left);
}
#ifndef PRISM2_NO_STATION_MODES
#ifndef PRISM2_NO_DEBUG
static const char* hfa384x_linkstatus_str(u16 linkstatus)
{
switch (linkstatus) {
case HFA384X_LINKSTATUS_CONNECTED:
return "Connected";
case HFA384X_LINKSTATUS_DISCONNECTED:
return "Disconnected";
case HFA384X_LINKSTATUS_AP_CHANGE:
return "Access point change";
case HFA384X_LINKSTATUS_AP_OUT_OF_RANGE:
return "Access point out of range";
case HFA384X_LINKSTATUS_AP_IN_RANGE:
return "Access point in range";
case HFA384X_LINKSTATUS_ASSOC_FAILED:
return "Association failed";
default:
return "Unknown";
}
}
#endif /* PRISM2_NO_DEBUG */
/* Called only as a tasklet (software IRQ) */
static void prism2_info_linkstatus(local_info_t *local, unsigned char *buf,
int left)
{
u16 val;
int non_sta_mode;
/* Alloc new JoinRequests to occur since LinkStatus for the previous
* has been received */
local->last_join_time = 0;
if (left != 2) {
printk(KERN_DEBUG "%s: invalid linkstatus info frame "
"length %d\n", local->dev->name, left);
return;
}
non_sta_mode = local->iw_mode == IW_MODE_MASTER ||
local->iw_mode == IW_MODE_REPEAT ||
local->iw_mode == IW_MODE_MONITOR;
val = buf[0] | (buf[1] << 8);
if (!non_sta_mode || val != HFA384X_LINKSTATUS_DISCONNECTED) {
PDEBUG(DEBUG_EXTRA, "%s: LinkStatus=%d (%s)\n",
local->dev->name, val, hfa384x_linkstatus_str(val));
}
if (non_sta_mode) {
netif_carrier_on(local->dev);
netif_carrier_on(local->ddev);
return;
}
/* Get current BSSID later in scheduled task */
set_bit(PRISM2_INFO_PENDING_LINKSTATUS, &local->pending_info);
local->prev_link_status = val;
schedule_work(&local->info_queue);
}
static void prism2_host_roaming(local_info_t *local)
{
struct hfa384x_join_request req;
struct net_device *dev = local->dev;
struct hfa384x_hostscan_result *selected, *entry;
int i;
unsigned long flags;
if (local->last_join_time &&
time_before(jiffies, local->last_join_time + 10 * HZ)) {
PDEBUG(DEBUG_EXTRA, "%s: last join request has not yet been "
"completed - waiting for it before issuing new one\n",
dev->name);
return;
}
/* ScanResults are sorted: first ESS results in decreasing signal
* quality then IBSS results in similar order.
* Trivial roaming policy: just select the first entry.
* This could probably be improved by adding hysteresis to limit
* number of handoffs, etc.
*
* Could do periodic RID_SCANREQUEST or Inquire F101 to get new
* ScanResults */
spin_lock_irqsave(&local->lock, flags);
if (local->last_scan_results == NULL ||
local->last_scan_results_count == 0) {
spin_unlock_irqrestore(&local->lock, flags);
PDEBUG(DEBUG_EXTRA, "%s: no scan results for host roaming\n",
dev->name);
return;
}
selected = &local->last_scan_results[0];
if (local->preferred_ap[0] || local->preferred_ap[1] ||
local->preferred_ap[2] || local->preferred_ap[3] ||
local->preferred_ap[4] || local->preferred_ap[5]) {
/* Try to find preferred AP */
PDEBUG(DEBUG_EXTRA, "%s: Preferred AP BSSID %pM\n",
dev->name, local->preferred_ap);
for (i = 0; i < local->last_scan_results_count; i++) {
entry = &local->last_scan_results[i];
if (memcmp(local->preferred_ap, entry->bssid, 6) == 0)
{
PDEBUG(DEBUG_EXTRA, "%s: using preferred AP "
"selection\n", dev->name);
selected = entry;
break;
}
}
}
memcpy(req.bssid, selected->bssid, 6);
req.channel = selected->chid;
spin_unlock_irqrestore(&local->lock, flags);
PDEBUG(DEBUG_EXTRA, "%s: JoinRequest: BSSID=%pM"
" channel=%d\n",
dev->name, req.bssid, le16_to_cpu(req.channel));
if (local->func->set_rid(dev, HFA384X_RID_JOINREQUEST, &req,
sizeof(req))) {
printk(KERN_DEBUG "%s: JoinRequest failed\n", dev->name);
}
local->last_join_time = jiffies;
}
static void hostap_report_scan_complete(local_info_t *local)
{
union iwreq_data wrqu;
/* Inform user space about new scan results (just empty event,
* SIOCGIWSCAN can be used to fetch data */
wrqu.data.length = 0;
wrqu.data.flags = 0;
wireless_send_event(local->dev, SIOCGIWSCAN, &wrqu, NULL);
/* Allow SIOCGIWSCAN handling to occur since we have received
* scanning result */
local->scan_timestamp = 0;
}
/* Called only as a tasklet (software IRQ) */
static void prism2_info_scanresults(local_info_t *local, unsigned char *buf,
int left)
{
u16 *pos;
int new_count, i;
unsigned long flags;
struct hfa384x_scan_result *res;
struct hfa384x_hostscan_result *results, *prev;
if (left < 4) {
printk(KERN_DEBUG "%s: invalid scanresult info frame "
"length %d\n", local->dev->name, left);
return;
}
pos = (u16 *) buf;
pos++;
pos++;
left -= 4;
new_count = left / sizeof(struct hfa384x_scan_result);
results = kmalloc(new_count * sizeof(struct hfa384x_hostscan_result),
GFP_ATOMIC);
if (results == NULL)
return;
/* Convert to hostscan result format. */
res = (struct hfa384x_scan_result *) pos;
for (i = 0; i < new_count; i++) {
memcpy(&results[i], &res[i],
sizeof(struct hfa384x_scan_result));
results[i].atim = 0;
}
spin_lock_irqsave(&local->lock, flags);
local->last_scan_type = PRISM2_SCAN;
prev = local->last_scan_results;
local->last_scan_results = results;
local->last_scan_results_count = new_count;
spin_unlock_irqrestore(&local->lock, flags);
kfree(prev);
hostap_report_scan_complete(local);
/* Perform rest of ScanResults handling later in scheduled task */
set_bit(PRISM2_INFO_PENDING_SCANRESULTS, &local->pending_info);
schedule_work(&local->info_queue);
}
/* Called only as a tasklet (software IRQ) */
static void prism2_info_hostscanresults(local_info_t *local,
unsigned char *buf, int left)
{
int i, result_size, copy_len, new_count;
struct hfa384x_hostscan_result *results, *prev;
unsigned long flags;
__le16 *pos;
u8 *ptr;
wake_up_interruptible(&local->hostscan_wq);
if (left < 4) {
printk(KERN_DEBUG "%s: invalid hostscanresult info frame "
"length %d\n", local->dev->name, left);
return;
}
pos = (__le16 *) buf;
copy_len = result_size = le16_to_cpu(*pos);
if (result_size == 0) {
printk(KERN_DEBUG "%s: invalid result_size (0) in "
"hostscanresults\n", local->dev->name);
return;
}
if (copy_len > sizeof(struct hfa384x_hostscan_result))
copy_len = sizeof(struct hfa384x_hostscan_result);
pos++;
pos++;
left -= 4;
ptr = (u8 *) pos;
new_count = left / result_size;
results = kcalloc(new_count, sizeof(struct hfa384x_hostscan_result),
GFP_ATOMIC);
if (results == NULL)
return;
for (i = 0; i < new_count; i++) {
memcpy(&results[i], ptr, copy_len);
ptr += result_size;
left -= result_size;
}
if (left) {
printk(KERN_DEBUG "%s: short HostScan result entry (%d/%d)\n",
local->dev->name, left, result_size);
}
spin_lock_irqsave(&local->lock, flags);
local->last_scan_type = PRISM2_HOSTSCAN;
prev = local->last_scan_results;
local->last_scan_results = results;
local->last_scan_results_count = new_count;
spin_unlock_irqrestore(&local->lock, flags);
kfree(prev);
hostap_report_scan_complete(local);
}
#endif /* PRISM2_NO_STATION_MODES */
/* Called only as a tasklet (software IRQ) */
void hostap_info_process(local_info_t *local, struct sk_buff *skb)
{
struct hfa384x_info_frame *info;
unsigned char *buf;
int left;
#ifndef PRISM2_NO_DEBUG
int i;
#endif /* PRISM2_NO_DEBUG */
info = (struct hfa384x_info_frame *) skb->data;
buf = skb->data + sizeof(*info);
left = skb->len - sizeof(*info);
switch (le16_to_cpu(info->type)) {
case HFA384X_INFO_COMMTALLIES:
prism2_info_commtallies(local, buf, left);
break;
#ifndef PRISM2_NO_STATION_MODES
case HFA384X_INFO_LINKSTATUS:
prism2_info_linkstatus(local, buf, left);
break;
case HFA384X_INFO_SCANRESULTS:
prism2_info_scanresults(local, buf, left);
break;
case HFA384X_INFO_HOSTSCANRESULTS:
prism2_info_hostscanresults(local, buf, left);
break;
#endif /* PRISM2_NO_STATION_MODES */
#ifndef PRISM2_NO_DEBUG
default:
PDEBUG(DEBUG_EXTRA, "%s: INFO - len=%d type=0x%04x\n",
local->dev->name, le16_to_cpu(info->len),
le16_to_cpu(info->type));
PDEBUG(DEBUG_EXTRA, "Unknown info frame:");
for (i = 0; i < (left < 100 ? left : 100); i++)
PDEBUG2(DEBUG_EXTRA, " %02x", buf[i]);
PDEBUG2(DEBUG_EXTRA, "\n");
break;
#endif /* PRISM2_NO_DEBUG */
}
}
#ifndef PRISM2_NO_STATION_MODES
static void handle_info_queue_linkstatus(local_info_t *local)
{
int val = local->prev_link_status;
int connected;
union iwreq_data wrqu;
connected =
val == HFA384X_LINKSTATUS_CONNECTED ||
val == HFA384X_LINKSTATUS_AP_CHANGE ||
val == HFA384X_LINKSTATUS_AP_IN_RANGE;
if (local->func->get_rid(local->dev, HFA384X_RID_CURRENTBSSID,
local->bssid, ETH_ALEN, 1) < 0) {
printk(KERN_DEBUG "%s: could not read CURRENTBSSID after "
"LinkStatus event\n", local->dev->name);
} else {
PDEBUG(DEBUG_EXTRA, "%s: LinkStatus: BSSID=%pM\n",
local->dev->name,
(unsigned char *) local->bssid);
if (local->wds_type & HOSTAP_WDS_AP_CLIENT)
hostap_add_sta(local->ap, local->bssid);
}
/* Get BSSID if we have a valid AP address */
if (connected) {
netif_carrier_on(local->dev);
netif_carrier_on(local->ddev);
memcpy(wrqu.ap_addr.sa_data, local->bssid, ETH_ALEN);
} else {
netif_carrier_off(local->dev);
netif_carrier_off(local->ddev);
memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN);
}
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
/*
* Filter out sequential disconnect events in order not to cause a
* flood of SIOCGIWAP events that have a race condition with EAPOL
* frames and can confuse wpa_supplicant about the current association
* status.
*/
if (connected || local->prev_linkstatus_connected)
wireless_send_event(local->dev, SIOCGIWAP, &wrqu, NULL);
local->prev_linkstatus_connected = connected;
}
static void handle_info_queue_scanresults(local_info_t *local)
{
if (local->host_roaming == 1 && local->iw_mode == IW_MODE_INFRA)
prism2_host_roaming(local);
if (local->host_roaming == 2 && local->iw_mode == IW_MODE_INFRA &&
memcmp(local->preferred_ap, "\x00\x00\x00\x00\x00\x00",
ETH_ALEN) != 0) {
/*
* Firmware seems to be getting into odd state in host_roaming
* mode 2 when hostscan is used without join command, so try
* to fix this by re-joining the current AP. This does not
* actually trigger a new association if the current AP is
* still in the scan results.
*/
prism2_host_roaming(local);
}
}
/* Called only as scheduled task after receiving info frames (used to avoid
* pending too much time in HW IRQ handler). */
static void handle_info_queue(struct work_struct *work)
{
local_info_t *local = container_of(work, local_info_t, info_queue);
if (test_and_clear_bit(PRISM2_INFO_PENDING_LINKSTATUS,
&local->pending_info))
handle_info_queue_linkstatus(local);
if (test_and_clear_bit(PRISM2_INFO_PENDING_SCANRESULTS,
&local->pending_info))
handle_info_queue_scanresults(local);
}
#endif /* PRISM2_NO_STATION_MODES */
void hostap_info_init(local_info_t *local)
{
skb_queue_head_init(&local->info_list);
#ifndef PRISM2_NO_STATION_MODES
INIT_WORK(&local->info_queue, handle_info_queue);
#endif /* PRISM2_NO_STATION_MODES */
}
EXPORT_SYMBOL(hostap_info_init);
EXPORT_SYMBOL(hostap_info_process);
| {
"pile_set_name": "Github"
} |
#region LICENSE
// The contents of this file are subject to the Common Public Attribution
// License Version 1.0. (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// https://github.com/NiclasOlofsson/MiNET/blob/master/LICENSE.
// The License is based on the Mozilla Public License Version 1.1, but Sections 14
// and 15 have been added to cover use of software over a computer network and
// provide for limited attribution for the Original Developer. In addition, Exhibit A has
// been modified to be consistent with Exhibit B.
//
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
// the specific language governing rights and limitations under the License.
//
// The Original Code is MiNET.
//
// The Original Developer is the Initial Developer. The Initial Developer of
// the Original Code is Niclas Olofsson.
//
// All portions of the code written by Niclas Olofsson are Copyright (c) 2014-2020 Niclas Olofsson.
// All Rights Reserved.
#endregion
using System.Linq;
using System.Numerics;
using MiNET.BlockEntities;
using MiNET.Items;
using MiNET.Utils;
using MiNET.Worlds;
namespace MiNET.Blocks
{
public partial class WallSignBase : Block
{
private readonly int _itemDropId;
public WallSignBase(int id, int itemDropId) : base(id)
{
_itemDropId = itemDropId;
IsTransparent = true;
IsSolid = false;
BlastResistance = 5;
Hardness = 1;
IsFlammable = true; // Only in PE!!
}
protected override bool CanPlace(Level world, Player player, BlockCoordinates blockCoordinates, BlockCoordinates targetCoordinates, BlockFace face)
{
return world.GetBlock(blockCoordinates).IsReplaceable;
}
public override bool PlaceBlock(Level world, Player player, BlockCoordinates targetCoordinates, BlockFace face, Vector3 faceCoords)
{
var container = GetState();
var direction = (BlockStateInt) container.States.First(s => s.Name == "facing_direction");
direction.Value = (int) face;
SetState(container);
var signBlockEntity = new SignBlockEntity {Coordinates = Coordinates};
world.SetBlockEntity(signBlockEntity);
return false;
}
public override bool Interact(Level world, Player player, BlockCoordinates blockCoordinates, BlockFace face, Vector3 faceCoord)
{
return true;
}
public override Item[] GetDrops(Item tool)
{
return new[] {ItemFactory.GetItem((short) _itemDropId)}; // Drop sign item
}
}
public partial class WallSign : WallSignBase
{
public WallSign() : base(68, 323) { }
}
public partial class SpruceWallSign : WallSignBase
{
public SpruceWallSign() : base(437, 472) { }
}
public partial class BirchWallSign : WallSignBase
{
public BirchWallSign() : base(442, 473) { }
}
public partial class JungleWallSign : WallSignBase
{
public JungleWallSign() : base(444, 474) { }
}
public partial class AcaciaWallSign : WallSignBase
{
public AcaciaWallSign() : base(446, 475) { }
}
public partial class DarkoakWallSign : WallSignBase
{
public DarkoakWallSign() : base(448, 476) { }
}
public partial class CrimsonWallSign : WallSignBase
{
public CrimsonWallSign() : base(507, 505) { }
}
public partial class WarpedWallSign : WallSignBase
{
public WarpedWallSign() : base(508, 506) { }
}
} | {
"pile_set_name": "Github"
} |
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Reflection;
using Android.App;
using Android.OS;
using Xamarin.Android.NUnitLite;
namespace Xamarin.Interactive.Tests.Android
{
[Activity (Label = "Xamarin.Interactive.Tests.Android", MainLauncher = true)]
public class MainActivity : TestSuiteActivity
{
protected override void OnCreate (Bundle bundle)
{
// tests can be inside the main assembly
AddTest (Assembly.GetExecutingAssembly ());
// or in any reference assemblies
// AddTest (typeof (Your.Library.TestClass).Assembly);
// Once you called base.OnCreate(), you cannot add more assemblies.
base.OnCreate (bundle);
}
}
}
| {
"pile_set_name": "Github"
} |
define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var PerlHighlightRules = function() {
var keywords = (
"base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|" +
"no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars"
);
var buildinConstants = ("ARGV|ENV|INC|SIG");
var builtinFunctions = (
"getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|" +
"gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|" +
"getpeername|setpriority|getprotoent|setprotoent|getpriority|" +
"endprotoent|getservent|setservent|endservent|sethostent|socketpair|" +
"getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|" +
"localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|" +
"closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|" +
"shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|" +
"dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|" +
"setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|" +
"lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|" +
"waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|" +
"chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|" +
"unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|" +
"length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|" +
"undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|" +
"sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|" +
"BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|" +
"join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|" +
"keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|" +
"eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|" +
"map|die|uc|lc|do"
);
var keywordMapper = this.createKeywordMapper({
"keyword": keywords,
"constant.language": buildinConstants,
"support.function": builtinFunctions
}, "identifier");
this.$rules = {
"start" : [
{
token : "comment.doc",
regex : "^=(?:begin|item)\\b",
next : "block_comment"
}, {
token : "string.regexp",
regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"
}, {
token : "string", // single line
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, {
token : "string", // multi line string start
regex : '["].*\\\\$',
next : "qqstring"
}, {
token : "string", // single line
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, {
token : "string", // multi line string start
regex : "['].*\\\\$",
next : "qstring"
}, {
token : "constant.numeric", // hex
regex : "0x[0-9a-fA-F]+\\b"
}, {
token : "constant.numeric", // float
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
}, {
token : keywordMapper,
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
}, {
token : "keyword.operator",
regex : "%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"
}, {
token : "comment",
regex : "#.*$"
}, {
token : "lparen",
regex : "[[({]"
}, {
token : "rparen",
regex : "[\\])}]"
}, {
token : "text",
regex : "\\s+"
}
],
"qqstring" : [
{
token : "string",
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
next : "start"
}, {
token : "string",
regex : '.+'
}
],
"qstring" : [
{
token : "string",
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
next : "start"
}, {
token : "string",
regex : '.+'
}
],
"block_comment": [
{
token: "comment.doc",
regex: "^=cut\\b",
next: "start"
},
{
defaultToken: "comment.doc"
}
]
};
};
oop.inherits(PerlHighlightRules, TextHighlightRules);
exports.PerlHighlightRules = PerlHighlightRules;
});
define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
"use strict";
var Range = require("../range").Range;
var MatchingBraceOutdent = function() {};
(function() {
this.checkOutdent = function(line, input) {
if (! /^\s+$/.test(line))
return false;
return /^\s*\}/.test(input);
};
this.autoOutdent = function(doc, row) {
var line = doc.getLine(row);
var match = line.match(/^(\s*\})/);
if (!match) return 0;
var column = match[1].length;
var openBracePos = doc.findMatchingBracket({row: row, column: column});
if (!openBracePos || openBracePos.row == row) return 0;
var indent = this.$getIndent(doc.getLine(openBracePos.row));
doc.replace(new Range(row, 0, row, column-1), indent);
};
this.$getIndent = function(line) {
return line.match(/^\s*/)[0];
};
}).call(MatchingBraceOutdent.prototype);
exports.MatchingBraceOutdent = MatchingBraceOutdent;
});
define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
"use strict";
var oop = require("../../lib/oop");
var Range = require("../../range").Range;
var BaseFoldMode = require("./fold_mode").FoldMode;
var FoldMode = exports.FoldMode = function(commentRegex) {
if (commentRegex) {
this.foldingStartMarker = new RegExp(
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
);
this.foldingStopMarker = new RegExp(
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
);
}
};
oop.inherits(FoldMode, BaseFoldMode);
(function() {
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
this._getFoldWidgetBase = this.getFoldWidget;
this.getFoldWidget = function(session, foldStyle, row) {
var line = session.getLine(row);
if (this.singleLineBlockCommentRe.test(line)) {
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
return "";
}
var fw = this._getFoldWidgetBase(session, foldStyle, row);
if (!fw && this.startRegionRe.test(line))
return "start"; // lineCommentRegionStart
return fw;
};
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
var line = session.getLine(row);
if (this.startRegionRe.test(line))
return this.getCommentRegionBlock(session, line, row);
var match = line.match(this.foldingStartMarker);
if (match) {
var i = match.index;
if (match[1])
return this.openingBracketBlock(session, match[1], row, i);
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
if (range && !range.isMultiLine()) {
if (forceMultiline) {
range = this.getSectionRange(session, row);
} else if (foldStyle != "all")
range = null;
}
return range;
}
if (foldStyle === "markbegin")
return;
var match = line.match(this.foldingStopMarker);
if (match) {
var i = match.index + match[0].length;
if (match[1])
return this.closingBracketBlock(session, match[1], row, i);
return session.getCommentFoldRange(row, i, -1);
}
};
this.getSectionRange = function(session, row) {
var line = session.getLine(row);
var startIndent = line.search(/\S/);
var startRow = row;
var startColumn = line.length;
row = row + 1;
var endRow = row;
var maxRow = session.getLength();
while (++row < maxRow) {
line = session.getLine(row);
var indent = line.search(/\S/);
if (indent === -1)
continue;
if (startIndent > indent)
break;
var subRange = this.getFoldWidgetRange(session, "all", row);
if (subRange) {
if (subRange.start.row <= startRow) {
break;
} else if (subRange.isMultiLine()) {
row = subRange.end.row;
} else if (startIndent == indent) {
break;
}
}
endRow = row;
}
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
};
this.getCommentRegionBlock = function(session, line, row) {
var startColumn = line.search(/\s*$/);
var maxRow = session.getLength();
var startRow = row;
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
var depth = 1;
while (++row < maxRow) {
line = session.getLine(row);
var m = re.exec(line);
if (!m) continue;
if (m[1]) depth--;
else depth++;
if (!depth) break;
}
var endRow = row;
if (endRow > startRow) {
return new Range(startRow, startColumn, endRow, line.length);
}
};
}).call(FoldMode.prototype);
});
define("ace/mode/perl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/perl_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/cstyle"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var PerlHighlightRules = require("./perl_highlight_rules").PerlHighlightRules;
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
var Range = require("../range").Range;
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
var Mode = function() {
this.HighlightRules = PerlHighlightRules;
this.$outdent = new MatchingBraceOutdent();
this.foldingRules = new CStyleFoldMode({start: "^=(begin|item)\\b", end: "^=(cut)\\b"});
};
oop.inherits(Mode, TextMode);
(function() {
this.lineCommentStart = "#";
this.blockComment = [
{start: "=begin", end: "=cut", lineStartOnly: true},
{start: "=item", end: "=cut", lineStartOnly: true}
];
this.getNextLineIndent = function(state, line, tab) {
var indent = this.$getIndent(line);
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
var tokens = tokenizedLine.tokens;
if (tokens.length && tokens[tokens.length-1].type == "comment") {
return indent;
}
if (state == "start") {
var match = line.match(/^.*[\{\(\[:]\s*$/);
if (match) {
indent += tab;
}
}
return indent;
};
this.checkOutdent = function(state, line, input) {
return this.$outdent.checkOutdent(line, input);
};
this.autoOutdent = function(state, doc, row) {
this.$outdent.autoOutdent(doc, row);
};
this.$id = "ace/mode/perl";
}).call(Mode.prototype);
exports.Mode = Mode;
});
| {
"pile_set_name": "Github"
} |
/*
connection.h
Copyright (C) 2013 celeron55, Perttu Ahola <[email protected]>
*/
/*
This file is part of Freeminer.
Freeminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Freeminer is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Freeminer. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CONNECTION_ENET_HEADER
#define CONNECTION_ENET_HEADER
#include "irrlichttypes_bloated.h"
#include "socket.h"
#include "exceptions.h"
#include "constants.h"
#include "network/networkpacket.h"
#include "util/pointer.h"
#include "util/container.h"
#include "util/thread.h"
#include <iostream>
#include <fstream>
#include <list>
#include <map>
#include "enet/enet.h"
#include "../msgpack_fix.h"
#include "util/msgpack_serialize.h"
#include "threading/concurrent_map.h"
#include "../threading/concurrent_unordered_map.h"
#define CHANNEL_COUNT 3
extern std::ostream *dout_con_ptr;
extern std::ostream *derr_con_ptr;
#define dout_con (*dout_con_ptr)
#define derr_con (*derr_con_ptr)
namespace con {
/*
Exceptions
*/
class NotFoundException : public BaseException {
public:
NotFoundException(const char *s):
BaseException(s)
{}
};
class PeerNotFoundException : public BaseException {
public:
PeerNotFoundException(const char *s):
BaseException(s)
{}
};
class ConnectionException : public BaseException {
public:
ConnectionException(const char *s):
BaseException(s)
{}
};
class ConnectionBindFailed : public BaseException {
public:
ConnectionBindFailed(const char *s):
BaseException(s)
{}
};
/*class ThrottlingException : public BaseException
{
public:
ThrottlingException(const char *s):
BaseException(s)
{}
};*/
class InvalidIncomingDataException : public BaseException {
public:
InvalidIncomingDataException(const char *s):
BaseException(s)
{}
};
class InvalidOutgoingDataException : public BaseException {
public:
InvalidOutgoingDataException(const char *s):
BaseException(s)
{}
};
class NoIncomingDataException : public BaseException {
public:
NoIncomingDataException(const char *s):
BaseException(s)
{}
};
class ProcessedSilentlyException : public BaseException {
public:
ProcessedSilentlyException(const char *s):
BaseException(s)
{}
};
class Connection;
enum PeerChangeType {
PEER_ADDED,
PEER_REMOVED
};
struct PeerChange {
PeerChangeType type;
u16 peer_id;
bool timeout;
};
class PeerHandler {
public:
PeerHandler() {
}
virtual ~PeerHandler() {
}
/*
This is called after the Peer has been inserted into the
Connection's peer container.
*/
virtual void peerAdded(u16 peer_id) = 0;
/*
This is called before the Peer has been removed from the
Connection's peer container.
*/
virtual void deletingPeer(u16 peer_id, bool timeout) = 0;
};
/*mt compat*/
typedef enum rtt_stat_type {
MIN_RTT,
MAX_RTT,
AVG_RTT,
MIN_JITTER,
MAX_JITTER,
AVG_JITTER
} rtt_stat_type;
enum ConnectionEventType {
CONNEVENT_NONE,
CONNEVENT_DATA_RECEIVED,
CONNEVENT_PEER_ADDED,
CONNEVENT_PEER_REMOVED,
CONNEVENT_BIND_FAILED,
CONNEVENT_CONNECT_FAILED,
};
struct ConnectionEvent {
enum ConnectionEventType type;
u16 peer_id;
Buffer<u8> data;
bool timeout;
Address address;
ConnectionEvent(ConnectionEventType type_ = CONNEVENT_NONE): type(type_) {}
std::string describe() {
switch(type) {
case CONNEVENT_NONE:
return "CONNEVENT_NONE";
case CONNEVENT_DATA_RECEIVED:
return "CONNEVENT_DATA_RECEIVED";
case CONNEVENT_PEER_ADDED:
return "CONNEVENT_PEER_ADDED";
case CONNEVENT_PEER_REMOVED:
return "CONNEVENT_PEER_REMOVED";
case CONNEVENT_BIND_FAILED:
return "CONNEVENT_BIND_FAILED";
case CONNEVENT_CONNECT_FAILED:
return "CONNEVENT_CONNECT_FAILED";
}
return "Invalid ConnectionEvent";
}
void dataReceived(u16 peer_id_, SharedBuffer<u8> data_) {
type = CONNEVENT_DATA_RECEIVED;
peer_id = peer_id_;
data = data_;
}
void peerAdded(u16 peer_id_) {
type = CONNEVENT_PEER_ADDED;
peer_id = peer_id_;
// address = address_;
}
void peerRemoved(u16 peer_id_, bool timeout_) {
type = CONNEVENT_PEER_REMOVED;
peer_id = peer_id_;
timeout = timeout_;
// address = address_;
}
void bindFailed() {
type = CONNEVENT_BIND_FAILED;
}
};
enum ConnectionCommandType {
CONNCMD_NONE,
CONNCMD_SERVE,
CONNCMD_CONNECT,
CONNCMD_DISCONNECT,
CONNCMD_DISCONNECT_PEER,
CONNCMD_SEND,
CONNCMD_SEND_TO_ALL,
CONNCMD_DELETE_PEER,
};
struct ConnectionCommand {
enum ConnectionCommandType type;
Address address;
u16 peer_id;
u8 channelnum;
Buffer<u8> data;
bool reliable;
ConnectionCommand(): type(CONNCMD_NONE) {}
void serve(Address address_) {
type = CONNCMD_SERVE;
address = address_;
}
void connect(Address address_) {
type = CONNCMD_CONNECT;
address = address_;
}
void disconnect() {
type = CONNCMD_DISCONNECT;
}
void send(u16 peer_id_, u8 channelnum_,
SharedBuffer<u8> data_, bool reliable_) {
type = CONNCMD_SEND;
peer_id = peer_id_;
channelnum = channelnum_;
data = data_;
reliable = reliable_;
}
void sendToAll(u8 channelnum_, SharedBuffer<u8> data_, bool reliable_) {
type = CONNCMD_SEND_TO_ALL;
channelnum = channelnum_;
data = data_;
reliable = reliable_;
}
void deletePeer(u16 peer_id_) {
type = CONNCMD_DELETE_PEER;
peer_id = peer_id_;
}
void disconnect_peer(u16 peer_id_) {
type = CONNCMD_DISCONNECT_PEER;
peer_id = peer_id_;
}
};
class Connection: public thread_pool {
public:
Connection(u32 protocol_id, u32 max_packet_size, float timeout, bool ipv6,
PeerHandler *peerhandler = nullptr);
~Connection();
void * run();
/* Interface */
ConnectionEvent getEvent();
ConnectionEvent waitEvent(u32 timeout_ms);
void putCommand(ConnectionCommand &c);
void Serve(Address bind_addr);
void Connect(Address address);
bool Connected();
void Disconnect();
u32 Receive(NetworkPacket* pkt, int timeout = 1);
void SendToAll(u8 channelnum, SharedBuffer<u8> data, bool reliable);
void Send(u16 peer_id, u8 channelnum, SharedBuffer<u8> data, bool reliable);
void Send(u16 peer_id, u8 channelnum, const msgpack::sbuffer &buffer, bool reliable);
u16 GetPeerID() { return m_peer_id; }
void DeletePeer(u16 peer_id);
Address GetPeerAddress(u16 peer_id);
float getPeerStat(u16 peer_id, rtt_stat_type type);
void DisconnectPeer(u16 peer_id);
size_t events_size();
private:
void putEvent(ConnectionEvent &e);
void processCommand(ConnectionCommand &c);
void send(float dtime);
void receive();
void runTimeouts(float dtime);
void serve(Address address);
void connect(Address address);
void disconnect();
void sendToAll(u8 channelnum, SharedBuffer<u8> data, bool reliable);
void send(u16 peer_id, u8 channelnum, SharedBuffer<u8> data, bool reliable);
ENetPeer* getPeer(u16 peer_id);
bool deletePeer(u16 peer_id, bool timeout);
MutexedQueue<ConnectionEvent> m_event_queue;
MutexedQueue<ConnectionCommand> m_command_queue;
u32 m_protocol_id;
u32 m_max_packet_size;
float m_timeout;
ENetHost *m_enet_host;
//ENetPeer *m_peer;
u16 m_peer_id;
concurrent_map<u16, ENetPeer*> m_peers;
concurrent_unordered_map<u16, Address> m_peers_address;
//Mutex m_peers_mutex;
// Backwards compatibility
PeerHandler *m_bc_peerhandler;
unsigned int m_last_recieved;
unsigned int m_last_recieved_warn;
void SetPeerID(u16 id) { m_peer_id = id; }
u32 GetProtocolID() { return m_protocol_id; }
void PrintInfo(std::ostream &out);
void PrintInfo();
std::string getDesc();
unsigned int timeout_mul;
};
} // namespace
#endif
| {
"pile_set_name": "Github"
} |
# -*- coding: utf-8 -*-
import os
import logging
import sys
import asyncio
import uuid
from aiohttp import web
from nats.aio.client import Client as NATS
from thrift.protocol import TBinaryProtocol
from frugal.protocol import FProtocolFactory
from frugal.aio.server import FNatsServer
sys.path.append(os.path.join(os.path.dirname(__file__), "gen-py.asyncio"))
from v1.music.f_Store import Processor as FStoreProcessor # noqa
from v1.music.f_Store import Iface # noqa
from v1.music.ttypes import Album, Track # noqa
root = logging.getLogger()
root.setLevel(logging.DEBUG)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter(
'%(asctime)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
root.addHandler(ch)
class StoreHandler(Iface):
"""
A handler handles all incoming requests to the server.
The handler must satisfy the interface the server exposes.
"""
def buyAlbum(self, ctx, ASIN, acct):
"""
Return an album; always buy the same one.
"""
album = Album()
album.ASIN = str(uuid.uuid4())
album.duration = 12000
root.info("bought album {}".format(album))
return album
def enterAlbumGiveaway(self, ctx, email, name):
"""
Always return success (true)
"""
root.info("{} entered album give away".format(name))
return True
async def main():
# Declare the protocol stack used for serialization.
# Protocol stacks must match between clients and servers.
prot_factory = FProtocolFactory(TBinaryProtocol.TBinaryProtocolFactory())
# Open a NATS connection to receive requests
nats_client = NATS()
options = {
"verbose": True,
"servers": ["nats://127.0.0.1:4222"]
}
await nats_client.connect(**options)
# Create a new server processor.
# Incoming requests to the processor are passed to the handler.
# Results from the handler are returned back to the client.
processor = FStoreProcessor(StoreHandler())
# Create a new music store server using the processor,
# The sever will listen on the music-service NATS topic
server = FNatsServer(nats_client, "music-service", processor, prot_factory)
root.info("Starting Nats server...")
await server.serve()
if __name__ == '__main__':
io_loop = asyncio.get_event_loop()
asyncio.ensure_future(main())
io_loop.run_forever()
| {
"pile_set_name": "Github"
} |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js
*
* Copyright (c) 2009-2014 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_Fraktur={directory:"Fraktur/Regular",family:"MathJax_Fraktur",testString:"MathJax Fraktur",Ranges:[[0,127,"BasicLatin"],[128,57343,"Other"],[58112,58128,"PUA"]]};MathJax.Callback.Queue(["initFont",MathJax.OutputJax["HTML-CSS"],"MathJax_Fraktur"],["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/Fraktur/Regular/Main.js"]);
| {
"pile_set_name": "Github"
} |
//
// UIScreen+KIFAdditions.h
// KIF
//
// Created by Steven King on 25/02/2016.
//
//
#import <UIKit/UIKit.h>
@interface UIScreen (KIFAdditions)
@property (nonatomic, readonly) CGFloat majorSwipeDisplacement;
@end
| {
"pile_set_name": "Github"
} |
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/ip_address.h"
#include <limits.h>
#include "base/strings/string_piece.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "net/base/parse_number.h"
#include "url/gurl.h"
#include "url/url_canon_ip.h"
namespace {
// The prefix for IPv6 mapped IPv4 addresses.
// https://tools.ietf.org/html/rfc4291#section-2.5.5.2
const uint8_t kIPv4MappedPrefix[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF};
// Note that this function assumes:
// * |ip_address| is at least |prefix_length_in_bits| (bits) long;
// * |ip_prefix| is at least |prefix_length_in_bits| (bits) long.
bool IPAddressPrefixCheck(const std::vector<uint8_t>& ip_address,
const uint8_t* ip_prefix,
size_t prefix_length_in_bits) {
// Compare all the bytes that fall entirely within the prefix.
size_t num_entire_bytes_in_prefix = prefix_length_in_bits / 8;
for (size_t i = 0; i < num_entire_bytes_in_prefix; ++i) {
if (ip_address[i] != ip_prefix[i])
return false;
}
// In case the prefix was not a multiple of 8, there will be 1 byte
// which is only partially masked.
size_t remaining_bits = prefix_length_in_bits % 8;
if (remaining_bits != 0) {
uint8_t mask = 0xFF << (8 - remaining_bits);
size_t i = num_entire_bytes_in_prefix;
if ((ip_address[i] & mask) != (ip_prefix[i] & mask))
return false;
}
return true;
}
// Returns true if |ip_address| matches any of the reserved IPv4 ranges. This
// method operates on a blacklist of reserved IPv4 ranges. Some ranges are
// consolidated.
// Sources for info:
// www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml
// www.iana.org/assignments/iana-ipv4-special-registry/
// iana-ipv4-special-registry.xhtml
bool IsReservedIPv4(const std::vector<uint8_t>& ip_address) {
// Different IP versions have different range reservations.
DCHECK_EQ(net::IPAddress::kIPv4AddressSize, ip_address.size());
struct {
const uint8_t address[4];
size_t prefix_length_in_bits;
} static const kReservedIPv4Ranges[] = {
{{0, 0, 0, 0}, 8}, {{10, 0, 0, 0}, 8}, {{100, 64, 0, 0}, 10},
{{127, 0, 0, 0}, 8}, {{169, 254, 0, 0}, 16}, {{172, 16, 0, 0}, 12},
{{192, 0, 2, 0}, 24}, {{192, 88, 99, 0}, 24}, {{192, 168, 0, 0}, 16},
{{198, 18, 0, 0}, 15}, {{198, 51, 100, 0}, 24}, {{203, 0, 113, 0}, 24},
{{224, 0, 0, 0}, 3}};
for (const auto& range : kReservedIPv4Ranges) {
if (IPAddressPrefixCheck(ip_address, range.address,
range.prefix_length_in_bits)) {
return true;
}
}
return false;
}
// Returns true if |ip_address| matches any of the reserved IPv6 ranges. This
// method operates on a whitelist of non-reserved IPv6 ranges. All IPv6
// addresses outside these ranges are reserved.
// Sources for info:
// www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml
bool IsReservedIPv6(const std::vector<uint8_t>& ip_address) {
// Different IP versions have different range reservations.
DCHECK_EQ(net::IPAddress::kIPv6AddressSize, ip_address.size());
struct {
const uint8_t address_prefix[2];
size_t prefix_length_in_bits;
} static const kPublicIPv6Ranges[] = {
// 2000::/3 -- Global Unicast
{{0x20, 0}, 3},
// ff00::/8 -- Multicast
{{0xff, 0}, 8},
};
for (const auto& range : kPublicIPv6Ranges) {
if (IPAddressPrefixCheck(ip_address, range.address_prefix,
range.prefix_length_in_bits)) {
return false;
}
}
return true;
}
bool ParseIPLiteralToBytes(const base::StringPiece& ip_literal,
std::vector<uint8_t>* bytes) {
// |ip_literal| could be either an IPv4 or an IPv6 literal. If it contains
// a colon however, it must be an IPv6 address.
if (ip_literal.find(':') != base::StringPiece::npos) {
// GURL expects IPv6 hostnames to be surrounded with brackets.
std::string host_brackets = "[";
ip_literal.AppendToString(&host_brackets);
host_brackets.push_back(']');
url::Component host_comp(0, host_brackets.size());
// Try parsing the hostname as an IPv6 literal.
bytes->resize(16); // 128 bits.
return url::IPv6AddressToNumber(host_brackets.data(), host_comp,
bytes->data());
}
// Otherwise the string is an IPv4 address.
bytes->resize(4); // 32 bits.
url::Component host_comp(0, ip_literal.size());
int num_components;
url::CanonHostInfo::Family family = url::IPv4AddressToNumber(
ip_literal.data(), host_comp, bytes->data(), &num_components);
return family == url::CanonHostInfo::IPV4;
}
} // namespace
namespace net {
IPAddress::IPAddress() {}
IPAddress::IPAddress(const std::vector<uint8_t>& address)
: ip_address_(address) {}
IPAddress::IPAddress(const IPAddress& other) = default;
IPAddress::IPAddress(const uint8_t* address, size_t address_len)
: ip_address_(address, address + address_len) {}
IPAddress::IPAddress(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3) {
ip_address_.reserve(4);
ip_address_.push_back(b0);
ip_address_.push_back(b1);
ip_address_.push_back(b2);
ip_address_.push_back(b3);
}
IPAddress::IPAddress(uint8_t b0,
uint8_t b1,
uint8_t b2,
uint8_t b3,
uint8_t b4,
uint8_t b5,
uint8_t b6,
uint8_t b7,
uint8_t b8,
uint8_t b9,
uint8_t b10,
uint8_t b11,
uint8_t b12,
uint8_t b13,
uint8_t b14,
uint8_t b15) {
const uint8_t address[] = {b0, b1, b2, b3, b4, b5, b6, b7,
b8, b9, b10, b11, b12, b13, b14, b15};
ip_address_ = std::vector<uint8_t>(std::begin(address), std::end(address));
}
IPAddress::~IPAddress() {}
bool IPAddress::IsIPv4() const {
return ip_address_.size() == kIPv4AddressSize;
}
bool IPAddress::IsIPv6() const {
return ip_address_.size() == kIPv6AddressSize;
}
bool IPAddress::IsValid() const {
return IsIPv4() || IsIPv6();
}
bool IPAddress::IsReserved() const {
if (IsIPv4()) {
return IsReservedIPv4(ip_address_);
} else if (IsIPv6()) {
return IsReservedIPv6(ip_address_);
}
return false;
}
bool IPAddress::IsZero() const {
for (auto x : ip_address_) {
if (x != 0)
return false;
}
return !empty();
}
bool IPAddress::IsIPv4MappedIPv6() const {
return IsIPv6() && IPAddressStartsWith(*this, kIPv4MappedPrefix);
}
bool IPAddress::AssignFromIPLiteral(const base::StringPiece& ip_literal) {
std::vector<uint8_t> number;
if (!ParseIPLiteralToBytes(ip_literal, &number))
return false;
std::swap(number, ip_address_);
return true;
}
// static
IPAddress IPAddress::IPv4Localhost() {
static const uint8_t kLocalhostIPv4[] = {127, 0, 0, 1};
return IPAddress(kLocalhostIPv4);
}
// static
IPAddress IPAddress::IPv6Localhost() {
static const uint8_t kLocalhostIPv6[] = {0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1};
return IPAddress(kLocalhostIPv6);
}
// static
IPAddress IPAddress::AllZeros(size_t num_zero_bytes) {
return IPAddress(std::vector<uint8_t>(num_zero_bytes));
}
// static
IPAddress IPAddress::IPv4AllZeros() {
return AllZeros(kIPv4AddressSize);
}
// static
IPAddress IPAddress::IPv6AllZeros() {
return AllZeros(kIPv6AddressSize);
}
bool IPAddress::operator==(const IPAddress& that) const {
return ip_address_ == that.ip_address_;
}
bool IPAddress::operator!=(const IPAddress& that) const {
return ip_address_ != that.ip_address_;
}
bool IPAddress::operator<(const IPAddress& that) const {
// Sort IPv4 before IPv6.
if (ip_address_.size() != that.ip_address_.size()) {
return ip_address_.size() < that.ip_address_.size();
}
return ip_address_ < that.ip_address_;
}
std::string IPAddress::ToString() const {
std::string str;
url::StdStringCanonOutput output(&str);
if (IsIPv4()) {
url::AppendIPv4Address(ip_address_.data(), &output);
} else if (IsIPv6()) {
url::AppendIPv6Address(ip_address_.data(), &output);
}
output.Complete();
return str;
}
std::string IPAddressToStringWithPort(const IPAddress& address, uint16_t port) {
std::string address_str = address.ToString();
if (address_str.empty())
return address_str;
if (address.IsIPv6()) {
// Need to bracket IPv6 addresses since they contain colons.
return base::StringPrintf("[%s]:%d", address_str.c_str(), port);
}
return base::StringPrintf("%s:%d", address_str.c_str(), port);
}
std::string IPAddressToPackedString(const IPAddress& address) {
return std::string(reinterpret_cast<const char*>(address.bytes().data()),
address.size());
}
IPAddress ConvertIPv4ToIPv4MappedIPv6(const IPAddress& address) {
DCHECK(address.IsIPv4());
// IPv4-mapped addresses are formed by:
// <80 bits of zeros> + <16 bits of ones> + <32-bit IPv4 address>.
std::vector<uint8_t> bytes;
bytes.reserve(16);
bytes.insert(bytes.end(), std::begin(kIPv4MappedPrefix),
std::end(kIPv4MappedPrefix));
bytes.insert(bytes.end(), address.bytes().begin(), address.bytes().end());
return IPAddress(bytes);
}
IPAddress ConvertIPv4MappedIPv6ToIPv4(const IPAddress& address) {
DCHECK(address.IsIPv4MappedIPv6());
return IPAddress(std::vector<uint8_t>(
address.bytes().begin() + arraysize(kIPv4MappedPrefix),
address.bytes().end()));
}
bool IPAddressMatchesPrefix(const IPAddress& ip_address,
const IPAddress& ip_prefix,
size_t prefix_length_in_bits) {
// Both the input IP address and the prefix IP address should be either IPv4
// or IPv6.
DCHECK(ip_address.IsValid());
DCHECK(ip_prefix.IsValid());
DCHECK_LE(prefix_length_in_bits, ip_prefix.size() * 8);
// In case we have an IPv6 / IPv4 mismatch, convert the IPv4 addresses to
// IPv6 addresses in order to do the comparison.
if (ip_address.size() != ip_prefix.size()) {
if (ip_address.IsIPv4()) {
return IPAddressMatchesPrefix(ConvertIPv4ToIPv4MappedIPv6(ip_address),
ip_prefix, prefix_length_in_bits);
}
return IPAddressMatchesPrefix(ip_address,
ConvertIPv4ToIPv4MappedIPv6(ip_prefix),
96 + prefix_length_in_bits);
}
return IPAddressPrefixCheck(ip_address.bytes(), ip_prefix.bytes().data(),
prefix_length_in_bits);
}
bool ParseCIDRBlock(const std::string& cidr_literal,
IPAddress* ip_address,
size_t* prefix_length_in_bits) {
// We expect CIDR notation to match one of these two templates:
// <IPv4-literal> "/" <number of bits>
// <IPv6-literal> "/" <number of bits>
std::vector<base::StringPiece> parts = base::SplitStringPiece(
cidr_literal, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (parts.size() != 2)
return false;
// Parse the IP address.
if (!ip_address->AssignFromIPLiteral(parts[0]))
return false;
// Parse the prefix length.
uint32_t number_of_bits;
if (!ParseUint32(parts[1], &number_of_bits))
return false;
// Make sure the prefix length is in a valid range.
if (number_of_bits > ip_address->size() * 8)
return false;
*prefix_length_in_bits = number_of_bits;
return true;
}
bool ParseURLHostnameToAddress(const base::StringPiece& hostname,
IPAddress* ip_address) {
if (hostname.size() >= 2 && hostname.front() == '[' &&
hostname.back() == ']') {
// Strip the square brackets that surround IPv6 literals.
auto ip_literal =
base::StringPiece(hostname).substr(1, hostname.size() - 2);
return ip_address->AssignFromIPLiteral(ip_literal) && ip_address->IsIPv6();
}
return ip_address->AssignFromIPLiteral(hostname) && ip_address->IsIPv4();
}
unsigned CommonPrefixLength(const IPAddress& a1, const IPAddress& a2) {
DCHECK_EQ(a1.size(), a2.size());
for (size_t i = 0; i < a1.size(); ++i) {
unsigned diff = a1.bytes()[i] ^ a2.bytes()[i];
if (!diff)
continue;
for (unsigned j = 0; j < CHAR_BIT; ++j) {
if (diff & (1 << (CHAR_BIT - 1)))
return i * CHAR_BIT + j;
diff <<= 1;
}
NOTREACHED();
}
return a1.size() * CHAR_BIT;
}
unsigned MaskPrefixLength(const IPAddress& mask) {
std::vector<uint8_t> all_ones(mask.size(), 0xFF);
return CommonPrefixLength(mask, IPAddress(all_ones));
}
} // namespace net
| {
"pile_set_name": "Github"
} |
#include <tommath.h>
#ifdef BN_FAST_S_MP_MUL_HIGH_DIGS_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
* LibTomMath is a library that provides multiple-precision
* integer arithmetic as well as number theoretic functionality.
*
* The library was designed directly after the MPI library by
* Michael Fromberger but has been written from scratch with
* additional optimizations in place.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, [email protected], http://math.libtomcrypt.com
*/
/* this is a modified version of fast_s_mul_digs that only produces
* output digits *above* digs. See the comments for fast_s_mul_digs
* to see how it works.
*
* This is used in the Barrett reduction since for one of the multiplications
* only the higher digits were needed. This essentially halves the work.
*
* Based on Algorithm 14.12 on pp.595 of HAC.
*/
int fast_s_mp_mul_high_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
{
int olduse, res, pa, ix, iz;
mp_digit W[MP_WARRAY];
mp_word _W;
/* grow the destination as required */
pa = a->used + b->used;
if (c->alloc < pa) {
if ((res = mp_grow (c, pa)) != MP_OKAY) {
return res;
}
}
/* number of output digits to produce */
pa = a->used + b->used;
_W = 0;
for (ix = digs; ix < pa; ix++) {
int tx, ty, iy;
mp_digit *tmpx, *tmpy;
/* get offsets into the two bignums */
ty = MIN(b->used-1, ix);
tx = ix - ty;
/* setup temp aliases */
tmpx = a->dp + tx;
tmpy = b->dp + ty;
/* this is the number of times the loop will iterrate, essentially its
while (tx++ < a->used && ty-- >= 0) { ... }
*/
iy = MIN(a->used-tx, ty+1);
/* execute loop */
for (iz = 0; iz < iy; iz++) {
_W += ((mp_word)*tmpx++)*((mp_word)*tmpy--);
}
/* store term */
W[ix] = ((mp_digit)_W) & MP_MASK;
/* make next carry */
_W = _W >> ((mp_word)DIGIT_BIT);
}
/* setup dest */
olduse = c->used;
c->used = pa;
{
register mp_digit *tmpc;
tmpc = c->dp + digs;
for (ix = digs; ix < pa; ix++) {
/* now extract the previous digit [below the carry] */
*tmpc++ = W[ix];
}
/* clear unused digits [that existed in the old copy of c] */
for (; ix < olduse; ix++) {
*tmpc++ = 0;
}
}
mp_clamp (c);
return MP_OKAY;
}
#endif
/* $Source: /cvs/libtom/libtommath/bn_fast_s_mp_mul_high_digs.c,v $ */
/* $Revision: 1.5 $ */
/* $Date: 2006/11/14 03:46:25 $ */
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
| {
"pile_set_name": "Github"
} |
sha256:cfd7e2357303b115442a070eae63b7994f1cb844332894431ea178fe822a17fb
| {
"pile_set_name": "Github"
} |
// The MIT License (MIT)
//
// Copyright (c) 2014 LIGHT [email protected]
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the “Software”), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
///---------------
/// @name HHRouter
///---------------
typedef NS_ENUM (NSInteger, HHRouteType) {
HHRouteTypeNone = 0,
HHRouteTypeViewController = 1,
HHRouteTypeBlock = 2
};
typedef id (^HHRouterBlock)(NSDictionary *params);
@interface HHRouter : NSObject
+ (instancetype)shared;
- (void)map:(NSString *)route toControllerClass:(Class)controllerClass;
- (UIViewController *)match:(NSString *)route __attribute__((deprecated));
- (UIViewController *)matchController:(NSString *)route;
- (void)map:(NSString *)route toBlock:(HHRouterBlock)block;
- (HHRouterBlock)matchBlock:(NSString *)route;
- (id)callBlock:(NSString *)route;
- (HHRouteType)canRoute:(NSString *)route;
@end
///--------------------------------
/// @name UIViewController Category
///--------------------------------
@interface UIViewController (HHRouter)
@property (nonatomic, strong) NSDictionary *params;
@end
| {
"pile_set_name": "Github"
} |
#include <stdio.h>
#include <inttypes.h>
#include "config.h"
#include "system.h"
#include "../kernel-internal.h"
#include "gcc_extensions.h"
#include "lcd.h"
#include "font.h"
#include "backlight.h"
#include "adc.h"
#include "button-target.h"
#include "button.h"
#include "common.h"
#include "storage.h"
#include "file_internal.h"
#include "disk.h"
#include "panic.h"
#include "power.h"
#include "string.h"
#include "file.h"
#include "crc32-rkw.h"
#include "rkw-loader.h"
#include "version.h"
#include "i2c-rk27xx.h"
#include "loader_strerror.h"
/* beginning of DRAM */
#define DRAM_ORIG 0x60000000
/* bootloader code runs from 0x60700000
* so we cannot load more code to not overwrite ourself
*/
#define LOAD_SIZE 0x700000
extern void show_logo( void );
/* This function setup bare minimum
* and jumps to rom in order to activate
* hardcoded rkusb mode
*/
static void enter_rkusb(void)
{
asm volatile (
/* Turn off cache */
"ldr r0, =0xefff0000 \n"
"ldrh r1, [r0] \n"
"strh r1, [r0] \n"
/* Turn off interrupts */
"mrs r0, cpsr \n"
"bic r0, r0, #0x1f \n"
"orr r0, r0, #0xd3 \n"
"msr cpsr, r0 \n"
/* Disable iram remap */
"mov r0, #0x18000000 \n"
"add r0, r0, #0x1c000 \n"
"mov r1, #0 \n"
"str r1, [r0, #4] \n"
/* Ungate all clocks */
"str r1, [r0, #0x18] \n"
/* Read SCU_ID to determine
* which version of bootrom we have
* 2706A has ID 0xa1000604
* 2706B and 2705 have ID 0xa100027b
*/
"ldr r1, [r0] \n"
"ldr r2, =0xa1000604 \n"
"cmp r1, r2 \n"
"bne rk27xx_new \n"
/* Setup stacks in unmapped
* iram just as rom will do.
*
* We know about two versions
* of bootrom which are very similar
* but memory addresses are slightly
* different.
*/
"rk27xx_old: \n"
"ldr r1, =0x18200258 \n"
"ldr r0, =0xaf0 \n"
"b jump_to_rom \n"
"rk27xx_new: \n"
"ldr r1, =0x18200274 \n"
"ldr r0, =0xec0 \n"
"jump_to_rom: \n"
"msr cpsr, #0xd2 \n"
"add r1, r1, #0x200 \n"
"mov sp, r1 \n"
"msr cpsr, #0xd3 \n"
"add r1, r1, #0x400 \n"
"mov sp, r1 \n"
/* Finaly jump to rkusb handler
* in bootrom.
*/
"bx r0 \n"
);
}
void main(void) NORETURN_ATTR;
void main(void)
{
char filename[MAX_PATH];
unsigned char* loadbuffer;
void(*kernel_entry)(void);
int ret;
enum {rb, of} boot = rb;
power_init();
system_init();
kernel_init();
i2c_init();
enable_irq();
adc_init();
lcd_init();
backlight_init();
button_init_device();
font_init();
lcd_setfont(FONT_SYSFIXED);
show_logo();
int btn = button_read_device();
/* if there is some other button pressed
* besides POWER/PLAY we boot into OF
*/
if ((btn & ~POWEROFF_BUTTON))
boot = of;
/* if we are woken up by USB insert boot into OF */
if (DEV_INFO & (1<<20))
boot = of;
lcd_clear_display();
ret = storage_init();
if(ret < 0)
error(EATA, ret, true);
filesystem_init();
while((ret = disk_mount_all()) <= 0)
error(EDISK, ret, true);
loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */
if (boot == rb)
snprintf(filename,sizeof(filename), BOOTDIR "/%s", BOOTFILE);
else if (boot == of)
snprintf(filename,sizeof(filename), BOOTDIR "/%s", "BASE.RKW");
printf("Bootloader version: %s", rbversion);
printf("Loading: %s", filename);
ret = load_rkw(loadbuffer, filename, LOAD_SIZE);
if (ret <= EFILE_EMPTY)
{
error(EBOOTFILE, ret, false);
/* if we boot rockbox we shutdown on error
* if we boot OF we fall back to rkusb mode on error
*/
if (boot == rb)
{
power_off();
}
else
{
/* give visual feedback what we are doing */
printf("Entering rockchip USB mode...");
lcd_update();
enter_rkusb();
}
}
else
{
/* print 'Loading OK' */
printf("Loading OK");
sleep(HZ);
}
/* jump to entrypoint */
kernel_entry = (void*) loadbuffer;
commit_discard_idcache();
printf("Executing");
kernel_entry();
/* this should never be reached actually */
printf("ERR: Failed to boot");
sleep(5*HZ);
if (boot == rb)
{
power_off();
}
else
{
/* give visual feedback what we are doing */
printf("Entering rockchip USB mode...");
lcd_update();
enter_rkusb();
}
/* hang */
while(1);
}
| {
"pile_set_name": "Github"
} |
# spell icon mystic charge
-s 1
2
imysticc.BMP
hmysticc.BMP
2
1 1
1 2 | {
"pile_set_name": "Github"
} |
"00:00" 4731254
"00:01" 4557274
"00:02" 443708
"00:03" 2922156
"00:04" 5610388
"00:05" 4933596
"00:06" 3108722
"00:07" 3279875
"00:08" 2484360
"00:09" 8413486
"00:10" 5809532
"00:11" 1343297
"00:12" 430592
"00:13" 3691867
"00:14" 1278763
"00:15" 3428572
"00:16" 168317
"00:17" 381586
"00:18" 525600
"00:19" 10077
"00:20" 583405
"00:21" 69922
"00:22" 5583991
"00:23" 7140391
"00:24" 34501223
"00:25" 14857174
"00:26" 4349460
"00:27" 447833
"00:28" 898004
"00:29" 182976
"00:30" 109867
"00:31" 304324
"00:32" 303767
"00:33" 145387
"00:34" 796771
"00:35" 549467
"00:36" 1621094
"00:37" 890929
"00:38" 5153292
"00:39" 1742757
"00:40" 518563
"00:41" 581263
"00:42" 243007
"00:43" 683387
"00:44" 141530
"00:45" 906485
"00:46" 486808
"00:47" 2532049
"00:48" 1036732
"00:49" 745915
"00:50" 1834459
"00:51" 212548
"00:52" 1026267
"00:53" 1556961
"00:54" 3699358
"00:55" 200910
"00:56" 776954
"00:57" 3047768
"00:58" 1951190
"00:59" 128686
"01:00" 818983
"01:01" 6403452
"01:02" 2963363
"01:03" 2053371
"01:04" 4537926
"01:05" 851336
"01:06" 5513009
"01:07" 2344019
"01:08" 438200
"01:09" 3324675
"01:10" 366416
"01:11" 12017
"01:12" 1023
"01:13" 215226
"01:14" 2889187
"01:15" 502536
"01:16" 3854
"01:17" 406945
"01:18" 123565
"01:19" 194265
"01:20" 4196364
"01:21" 2919514
"01:22" 2086724
"01:23" 1632940
"01:24" 1624620
"01:25" 400627
"01:26" 262160
"01:27" 1490032
"01:28" 1852552
"01:29" 882919
"01:30" 766892
"01:31" 112291
"01:32" 4856938
"01:33" 1484516
"01:34" 4666704
"01:35" 1039807
"01:36" 3571146
"01:37" 884038
"01:38" 2159997
"01:39" 2633858
"01:40" 67126
"01:41" 172064
"01:42" 253741
"01:43" 283936
"01:44" 21841
"01:45" 14791
"01:46" 63690
"01:47" 192732
"01:48" 302989
"01:49" 115994
"01:50" 140859
"01:51" 505492
"01:52" 797689
"01:53" 339386
"01:54" 543138
"01:55" 512265
"01:56" 55707
"01:57" 68732
"01:58" 684369
"01:59" 68105
"02:00" 22393
"02:01" 1741927
"02:02" 24635
"02:03" 95916
"02:04" 83606
"02:05" 94328
"02:06" 1150726
"02:07" 3917404
"02:08" 1992672
"02:09" 54724
"02:10" 49222
"02:11" 59729
"02:12" 207473
"02:13" 17396
"02:14" 23632741
"02:15" 423332
"02:16" 275795
"02:17" 435798
"02:18" 565350
"02:19" 432470
"02:20" 351864
"02:21" 7025341
"02:22" 2070151
"02:23" 341412
"02:24" 294588
"02:25" 797147
"02:26" 246733
"02:27" 120444
"02:28" 93559
"02:29" 285763
"02:30" 1596427
"02:31" 425203
"02:32" 647044
"02:33" 315571
"02:34" 4022137
"02:35" 219992
"02:36" 74946
"02:37" 14945
"02:38" 70031
"02:39" 216384
"02:40" 5825649
"02:41" 270595
"02:42" 98579
"02:43" 61099
"02:44" 107624
"02:45" 135526
"02:46" 117939
"02:47" 1477359
"02:48" 21068
"02:49" 600074
"02:50" 854034
"02:51" 1086545
"02:52" 530851
"02:53" 3051804
"02:54" 344544
"02:55" 871612
"02:56" 1497509
"02:57" 1798299
"02:58" 1382517
"02:59" 196591
"03:00" 4385727
"03:01" 5083302
"03:02" 1323552
"03:03" 99471
"03:04" 334865
"03:05" 69299
"03:06" 39761
"03:07" 15808
"03:08" 23506
"03:09" 115421
"03:10" 518892
"03:11" 2826014
"03:12" 873312
"03:13" 6531824
"03:14" 20274
"03:15" 12657
"03:16" 4272667
"03:17" 66326
"03:18" 71800
"03:19" 7092
"03:20" 15020
"03:21" 101695
"03:22" 279489
"03:23" 345254
"03:24" 138147
"03:25" 26955
"03:26" 294824
"03:27" 52976
"03:28" 30618
"03:29" 188364
"03:30" 310195
"03:31" 124176
"03:32" 61076
"03:33" 2180996
"03:34" 17158306
"03:35" 63983831
"03:36" 60069
"03:37" 592973
"03:38" 49628
"03:39" 281894
"03:40" 5264731
"03:41" 69935
"03:42" 4146074
"03:43" 130214
"03:44" 3653028
"03:45" 191442
"03:46" 14778
"03:47" 55769
"03:48" 533122
"03:49" 37834
"03:50" 117508
"03:51" 30118
"03:52" 73022
"03:53" 315822
"03:54" 75382
"03:55" 630287
"03:56" 7069
"03:57" 28747
"03:58" 100106
"03:59" 244471
"04:00" 512254
"04:01" 22682
"04:02" 25941
"04:03" 22802
"04:04" 86776
"04:05" 18216
"04:06" 15899
"04:07" 64394
"04:08" 20433
"04:09" 56215
"04:10" 47593
"04:11" 15861
"04:12" 33684
"04:13" 35060
"04:14" 49636
"04:15" 186030
"04:16" 18160
"04:17" 107283
"04:18" 372864
"04:19" 31621
"04:20" 3334235
"04:21" 4207181
"04:22" 39204
"04:23" 1505812
"04:24" 3410036
"04:25" 1247531
"04:26" 1002999
"04:27" 8042645
"04:28" 564434
"04:29" 25121
"04:30" 101830
"04:31" 98229
"04:32" 35412
"04:33" 50148
"04:34" 21867
"04:35" 142409
"04:36" 28308
"04:37" 3869
"04:38" 183075
"04:39" 967
"04:40" 57479
"04:41" 9318
"04:42" 836520
"04:43" 22175
"04:44" 156549
"04:45" 73593
"04:46" 56742
"04:47" 160810
"04:48" 3542533
"04:49" 3186440
"04:50" 2480172
"04:51" 53023
"04:52" 2585234
"04:53" 246407
"04:54" 649442
"04:55" 363450
"04:56" 128366
"04:57" 67302
"04:58" 104850
"04:59" 78740
"05:00" 209501
"05:01" 40009
"05:02" 198059
"05:03" 15580
"05:04" 119793
"05:05" 2606
"05:06" 3378034
"05:07" 3401890
"05:08" 20393616
"05:09" 61175
"05:10" 16318
"05:11" 87140
"05:12" 32330
"05:13" 55035
"05:14" 78453
"05:15" 545655
"05:16" 22644
"05:17" 4055787
"05:18" 108373
"05:19" 1033496
"05:20" 297352
"05:21" 263592
"05:22" 5229941
"05:23" 1761716
"05:24" 300062
"05:25" 3329031
"05:26" 2778448
"05:27" 58434
"05:28" 573028
"05:29" 234494
"05:30" 26295194
"05:31" 64873
"05:32" 322970
"05:33" 871924
"05:34" 906846
"05:35" 89709
"05:36" 388490
"05:37" 777437
"05:38" 94006
"05:39" 418262
"05:40" 338173
"05:41" 98532
"05:42" 61651
"05:43" 30460
"05:44" 3391718
"05:45" 33732
"05:46" 1995663
"05:47" 4944314
"05:48" 19901
"05:49" 4956979
"05:50" 76320
"05:51" 3428205
"05:52" 1925392
"05:53" 585631
"05:54" 1007363
"05:55" 3424355
"05:56" 122932
"05:57" 2347016
"05:58" 582058
"05:59" 1315277
"06:00" 919772
"06:01" 69677
"06:02" 4351989
"06:03" 31888
"06:04" 2932966
"06:05" 468213
"06:06" 185752
"06:07" 746133
"06:08" 1216919
"06:09" 344560
"06:10" 398487
"06:11" 549148
"06:12" 322431
"06:13" 450780
"06:14" 177284
"06:15" 326003
"06:16" 5432779
"06:17" 585133
"06:18" 755738
"06:19" 144291
"06:20" 7687577
"06:21" 369996
"06:22" 259188
"06:23" 552258
"06:24" 19858197
"06:25" 3483788
"06:26" 398269
"06:27" 4320999
"06:28" 219887
"06:29" 753299
"06:30" 1152790
"06:31" 4332499
"06:32" 884374
"06:33" 133174
"06:34" 112767
"06:35" 330356
"06:36" 64298
"06:37" 1446234
"06:38" 155967
"06:39" 4208826
"06:40" 15889
"06:41" 603402
"06:42" 161780
"06:43" 3401372
"06:44" 3422337
"06:45" 582509
"06:46" 174186
"06:47" 20879257
"06:48" 3378572
"06:49" 3333688
"06:50" 706915
"06:51" 1050635
"06:52" 296010
"06:53" 308505
"06:54" 300327
"06:55" 4816629
"06:56" 504772
"06:57" 2328034
"06:58" 288504
"06:59" 61859
"07:00" 203776
"07:01" 93688
"07:02" 3487931
"07:03" 4161844
"07:04" 2225963
"07:05" 3768746
"07:06" 6247972
"07:07" 2091661
"07:08" 4566119
"07:09" 159975
"07:10" 20012
"07:11" 747235
"07:12" 134378
"07:13" 777870
"07:14" 3379436
"07:15" 190728
"07:16" 6664493
"07:17" 866519
"07:18" 343273
"07:19" 6198317
"07:20" 592964
"07:21" 952660
"07:22" 556192
"07:23" 705319
"07:24" 504844
"07:25" 768992
"07:26" 1154069
"07:27" 442918
"07:28" 3979504
"07:29" 899955
"07:30" 710858
"07:31" 5543230
"07:32" 952383
"07:33" 2427682
"07:34" 124528
"07:35" 962401
"07:36" 761744
"07:37" 978380
"07:38" 2079218
"07:39" 7355697
"07:40" 6213282
"07:41" 5763440
"07:42" 803654
"07:43" 725205
"07:44" 1171861
"07:45" 537817
"07:46" 741634
"07:47" 1118335
"07:48" 746088
"07:49" 1291381
"07:50" 12279617
"07:51" 6798544
"07:52" 218751
"07:53" 10659720
"07:54" 3977276
"07:55" 252456
"07:56" 6352830
"07:57" 4304382
"07:58" 335807
"07:59" 347062
"08:00" 1509874
"08:01" 1243403
"08:02" 464014
"08:03" 429903
"08:04" 4148033
"08:05" 117479
"08:06" 3850090
"08:07" 2822216
"08:08" 8598181
"08:09" 4256831
"08:10" 12049999
"08:11" 6179369
"08:12" 3871270
"08:13" 4778407
"08:14" 1155363
"08:15" 1384349
"08:16" 350354
"08:17" 3725707
"08:18" 505322
"08:19" 1577259
"08:20" 1911948
"08:21" 225578
"08:22" 384684
"08:23" 9290614
"08:24" 2658437
"08:25" 2274800
"08:26" 9514840
"08:27" 4077870
"08:28" 462091
"08:29" 5589807
"08:30" 2378625
"08:31" 3583123
"08:32" 6368937
"08:33" 3129173
"08:34" 1303111
"08:35" 577446
"08:36" 230507
"08:37" 14164941
"08:38" 11562826
"08:39" 2084122
"08:40" 8084702
"08:41" 16530617
"08:42" 1424396
"08:43" 4743201
"08:44" 2809540
"08:45" 5042473
"08:46" 6787759
"08:47" 3095696
"08:48" 9979159
"08:49" 11898904
"08:50" 2842670
"08:51" 648932
"08:52" 1098478
"08:53" 3850827
"08:54" 1000260
"08:55" 1060116
"08:56" 2756425
"08:57" 7805342
"08:58" 6238414
"08:59" 6019365
"09:00" 1752772
"09:01" 6731943
"09:02" 1267297
"09:03" 7274562
"09:04" 40057160
"09:05" 8846642
"09:06" 5983042
"09:07" 2876946
"09:08" 19405842
"09:09" 3000424
"09:10" 13073829
"09:11" 4364158
"09:12" 9328116
"09:13" 5502792
"09:14" 3902143
"09:15" 10387612
"09:16" 14492710
"09:17" 10487647
"09:18" 14192148
"09:19" 12345692
"09:20" 9981422
"09:21" 10470997
"09:22" 10038254
"09:23" 4518570
"09:24" 5336592
"09:25" 12980231
"09:26" 63821058
"09:27" 27537765
"09:28" 20562414
"09:29" 23396882
"09:30" 7189310
"09:31" 20047072
"09:32" 25211440
"09:33" 6593858
"09:34" 5900903
"09:35" 4646915
"09:36" 16757613
"09:37" 26320508
"09:38" 10994018
"09:39" 4736451
"09:40" 21817131
"09:41" 17280352
"09:42" 10669710
"09:43" 23902175
"09:44" 6691238
"09:45" 28818521
"09:46" 5663002
"09:47" 19431613
"09:48" 25213685
"09:49" 26364278
"09:50" 3198913
"09:51" 6689702
"09:52" 9062823
"09:53" 2851799
"09:54" 14208272
"09:55" 19930488
"09:56" 27730656
"09:57" 25432091
"09:58" 27427970
"09:59" 11394086
"10:00" 6444283
"10:01" 2665808
"10:02" 9801920
"10:03" 5010602
"10:04" 4675714
"10:05" 7097001
"10:06" 10873870
"10:07" 10509934
"10:08" 21494073
"10:09" 14701766
"10:10" 5633638
"10:11" 21500506
"10:12" 16810466
"10:13" 7673946
"10:14" 20508399
"10:15" 8446743
"10:16" 5849361
"10:17" 4673855
"10:18" 13133759
"10:19" 22434829
"10:20" 8423857
"10:21" 8161277
"10:22" 3370509
"10:23" 10098887
"10:24" 24260488
"10:25" 10194851
"10:26" 10965001
"10:27" 8232987
"10:28" 5286478
"10:29" 982785
"10:30" 11852391
"10:31" 3356907
"10:32" 2084062
"10:33" 3938585
"10:34" 5708378
"10:35" 3800410
"10:36" 4701336
"10:37" 3458354
"10:38" 5580413
"10:39" 12417579
"10:40" 3402215
"10:41" 5171486
"10:42" 6214293
"10:43" 4575070
"10:44" 16033261
"10:45" 5213423
"10:46" 9238125
"10:47" 15348100
"10:48" 9422149
"10:49" 8284101
"10:50" 10369514
"10:51" 8039013
"10:52" 6271393
"10:53" 11167954
"10:54" 7506671
"10:55" 9665814
"10:56" 13263744
"10:57" 4260329
"10:58" 9744679
"10:59" 7662374
"11:00" 7101629
"11:01" 17226822
"11:02" 8375869
"11:03" 9827409
"11:04" 10388715
"11:05" 7403301
"11:06" 6632194
"11:07" 8469421
"11:08" 7478151
"11:09" 8274969
"11:10" 9960996
"11:11" 30147875
"11:12" 6851147
"11:13" 6337475
"11:14" 32032832
"11:15" 26485483
"11:16" 22378333
"11:17" 12620670
"11:18" 11211772
"11:19" 8858374
"11:20" 8703210
"11:21" 9394103
"11:22" 9796429
"11:23" 11125073
"11:24" 3352979
"11:25" 6166860
"11:26" 4040576
"11:27" 5003869
"11:28" 4226190
"11:29" 9980787
"11:30" 12505421
"11:31" 10085701
"11:32" 2000937
"11:33" 4377611
"11:34" 7756206
"11:35" 4647551
"11:36" 4181412
"11:37" 3210770
"11:38" 8732143
"11:39" 11289271
"11:40" 6489194
"11:41" 4851600
"11:42" 11366087
"11:43" 9998204
"11:44" 9592264
"11:45" 16751482
"11:46" 30200714
"11:47" 56095560
"11:48" 25389747
"11:49" 5834506
"11:50" 6037012
"11:51" 14758383
"11:52" 11010340
"11:53" 2340873
"11:54" 15253376
"11:55" 14848244
"11:56" 13937315
"11:57" 8080880
"11:58" 17186081
"11:59" 13060150
"12:00" 2328493
"12:01" 9891597
"12:02" 16036403
"12:03" 16899472
"12:04" 19755802
"12:05" 9484231
"12:06" 7998567
"12:07" 12673141
"12:08" 12613856
"12:09" 2265942
"12:10" 6530229
"12:11" 13848851
"12:12" 3883653
"12:13" 12803992
"12:14" 17043341
"12:15" 16431453
"12:16" 21957818
"12:17" 15058617
"12:18" 6723275
"12:19" 1003228
"12:20" 1132195
"12:21" 3246710
"12:22" 6478729
"12:23" 4075288
"12:24" 14986532
"12:25" 1922692
"12:26" 967852
"12:27" 1834676
"12:28" 9178838
"12:29" 1867755
"12:30" 4558309
"12:31" 4030516
"12:32" 6518322
"12:33" 6758569
"12:34" 13491584
"12:35" 4273970
"12:36" 5284031
"12:37" 2131333
"12:38" 13702320
"12:39" 8905121
"12:40" 6078776
"12:41" 6394028
"12:42" 9147403
"12:43" 8095531
"12:44" 13039801
"12:45" 17798176
"12:46" 26225302
"12:47" 5028369
"12:48" 21115086
"12:49" 13495221
"12:50" 14904579
"12:51" 3920684
"12:52" 6865105
"12:53" 9831851
"12:54" 18723480
"12:55" 6625508
"12:56" 15731823
"12:57" 10460852
"12:58" 3950188
"12:59" 3199058
"13:00" 18911305
"13:01" 8807571
"13:02" 8753000
"13:03" 10198965
"13:04" 15108882
"13:05" 11475152
"13:06" 7908672
"13:07" 8752152
"13:08" 6609953
"13:09" 20176833
"13:10" 5357772
"13:11" 9986596
"13:12" 5342121
"13:13" 6632546
"13:14" 12396974
"13:15" 19939238
"13:16" 24396295
"13:17" 8479193
"13:18" 7271413
"13:19" 14314677
"13:20" 18492335
"13:21" 17799166
"13:22" 13514433
"13:23" 22012961
"13:24" 18602413
"13:25" 7811695
"13:26" 13319743
"13:27" 12928021
"13:28" 7631381
"13:29" 5570871
"13:30" 13819061
"13:31" 16091784
"13:32" 5928441
"13:33" 12452926
"13:34" 9864140
"13:35" 3576168
"13:36" 8857825
"13:37" 10424987
"13:38" 6314615
"13:39" 4482568
"13:40" 18251604
"13:41" 9714251
"13:42" 13875213
"13:43" 9108137
"13:44" 12613936
"13:45" 4991782
"13:46" 20242722
"13:47" 9372614
"13:48" 5819884
"13:49" 13429978
"13:50" 7691854
"13:51" 11273820
"13:52" 9355855
"13:53" 6995296
"13:54" 9153416
"13:55" 5873730
"13:56" 2331913
"13:57" 8239394
"13:58" 12432439
"13:59" 3264696
"14:00" 11170407
"14:01" 6666844
"14:02" 1604524
"14:03" 2786483
"14:04" 18331879
"14:05" 5633693
"14:06" 1963644
"14:07" 13674900
"14:08" 10200750
"14:09" 2108975
"14:10" 2947716
"14:11" 1625819
"14:12" 26067692
"14:13" 40684182
"14:14" 36449028
"14:15" 29161349
"14:16" 33700382
"14:17" 18897253
"14:18" 5760333
"14:19" 2949028
"14:20" 9079203
"14:21" 3344214
"14:22" 1958993
"14:23" 11082752
"14:24" 9578037
"14:25" 7100017
"14:26" 11837058
"14:27" 20120540
"14:28" 7001200
"14:29" 5070984
"14:30" 5735689
"14:31" 9621477
"14:32" 8813973
"14:33" 18023539
"14:34" 11018416
"14:35" 10493319
"14:36" 4429609
"14:37" 18908547
"14:38" 4292446
"14:39" 9615976
"14:40" 7020187
"14:41" 10015476
"14:42" 8247590
"14:43" 14711981
"14:44" 35021865
"14:45" 29719257
"14:46" 18455579
"14:47" 23730333
"14:48" 27031999
"14:49" 23433330
"14:50" 27598361
"14:51" 37482953
"14:52" 24633533
"14:53" 29520334
"14:54" 25690338
"14:55" 20137651
"14:56" 9936614
"14:57" 24815874
"14:58" 22853404
"14:59" 14521480
"15:00" 15237921
"15:01" 17496517
"15:02" 12740922
"15:03" 13942876
"15:04" 10846711
"15:05" 12667009
"15:06" 8623387
"15:07" 6732640
"15:08" 10520957
"15:09" 13386636
"15:10" 26157884
"15:11" 6573850
"15:12" 6826035
"15:13" 12889202
"15:14" 15451337
"15:15" 13577667
"15:16" 10808744
"15:17" 9314723
"15:18" 10346796
"15:19" 4732040
"15:20" 3496706
"15:21" 10658509
"15:22" 5160924
"15:23" 7519806
"15:24" 5252231
"15:25" 6702739
"15:26" 5101928
"15:27" 6156268
"15:28" 9205942
"15:29" 11769729
"15:30" 4898834
"15:31" 7112967
"15:32" 15798048
"15:33" 2722756
"15:34" 9033130
"15:35" 7652742
"15:36" 3534343
"15:37" 6792862
"15:38" 6468840
"15:39" 6783882
"15:40" 8890101
"15:41" 8559008
"15:42" 11710091
"15:43" 15215715
"15:44" 20049390
"15:45" 20445630
"15:46" 11704037
"15:47" 10240007
"15:48" 23080489
"15:49" 6902723
"15:50" 5221113
"15:51" 7470532
"15:52" 8509016
"15:53" 9379160
"15:54" 6193924
"15:55" 6846782
"15:56" 2974072
"15:57" 8011643
"15:58" 4909419
"15:59" 11285600
"16:00" 6790091
"16:01" 9220836
"16:02" 20760821
"16:03" 13677736
"16:04" 5878820
"16:05" 9066365
"16:06" 12527604
"16:07" 10289936
"16:08" 9874802
"16:09" 3000244
"16:10" 5450674
"16:11" 17962363
"16:12" 13620288
"16:13" 3183216
"16:14" 9158729
"16:15" 13129523
"16:16" 9902964
"16:17" 13970134
"16:18" 21386863
"16:19" 7664015
"16:20" 12892628
"16:21" 21209565
"16:22" 21096818
"16:23" 5559308
"16:24" 2834120
"16:25" 14494572
"16:26" 8747163
"16:27" 15207848
"16:28" 8754909
"16:29" 6129041
"16:30" 11291169
"16:31" 7480276
"16:32" 6692962
"16:33" 8835704
"16:34" 4935559
"16:35" 2643783
"16:36" 9123075
"16:37" 19771467
"16:38" 2799879
"16:39" 8172569
"16:40" 11745872
"16:41" 7304368
"16:42" 9610331
"16:43" 3233953
"16:44" 6162101
"16:45" 7872784
"16:46" 6157706
"16:47" 1600031
"16:48" 9639719
"16:49" 6609065
"16:50" 8863466
"16:51" 6107777
"16:52" 7389555
"16:53" 9997284
"16:54" 28660535
"16:55" 2740781
"16:56" 5210363
"16:57" 7391890
"16:58" 11133445
"16:59" 23132892
"17:00" 10260210
"17:01" 23162103
"17:02" 22827997
"17:03" 4390386
"17:04" 11183963
"17:05" 15629547
"17:06" 53199636
"17:07" 4983958
"17:08" 14310750
"17:09" 4722843
"17:10" 11997374
"17:11" 6027109
"17:12" 8323284
"17:13" 7318344
"17:14" 5584921
"17:15" 38387008
"17:16" 9404423
"17:17" 4308671
"17:18" 1615282
"17:19" 20965379
"17:20" 5340888
"17:21" 17720451
"17:22" 15278365
"17:23" 16339133
"17:24" 33525896
"17:25" 16449108
"17:26" 12393049
"17:27" 21675255
"17:28" 8567919
"17:29" 4284368
"17:30" 12741734
"17:31" 4426842
"17:32" 2988896
"17:33" 13084188
"17:34" 9401680
"17:35" 5438639
"17:36" 5151032
"17:37" 15222918
"17:38" 14336825
"17:39" 9809890
"17:40" 5461688
"17:41" 4220593
"17:42" 12927960
"17:43" 3626469
"17:44" 2156041
"17:45" 2104165
"17:46" 2560563
"17:47" 2374191
"17:48" 2186081
"17:49" 6767728
"17:50" 17746004
"17:51" 21683961
"17:52" 18363321
"17:53" 13661888
"17:54" 2226824
"17:55" 3122491
"17:56" 9024076
"17:57" 4637303
"17:58" 6393517
"17:59" 5531665
"18:00" 14134602
"18:01" 17097045
"18:02" 15018608
"18:03" 11224404
"18:04" 16198348
"18:05" 16401746
"18:06" 11451983
"18:07" 8126191
"18:08" 10998192
"18:09" 15677651
"18:10" 5317799
"18:11" 6167242
"18:12" 13351252
"18:13" 5303125
"18:14" 8251371
"18:15" 3403512
"18:16" 12652811
"18:17" 21514479
"18:18" 12465181
"18:19" 25317677
"18:20" 12250028
"18:21" 10465074
"18:22" 6106886
"18:23" 6285551
"18:24" 9293077
"18:25" 17903813
"18:26" 12432241
"18:27" 2474666
"18:28" 946286
"18:29" 20923608
"18:30" 3152610
"18:31" 14032276
"18:32" 12179550
"18:33" 3506330
"18:34" 3593234
"18:35" 8050832
"18:36" 2496075
"18:37" 10407863
"18:38" 9690151
"18:39" 8653017
"18:40" 2187144
"18:41" 1165528
"18:42" 13104812
"18:43" 6624468
"18:44" 4318984
"18:45" 10221488
"18:46" 2333473
"18:47" 7914872
"18:48" 10310761
"18:49" 11004835
"18:50" 2944992
"18:51" 13273528
"18:52" 5682465
"18:53" 36217502
"18:54" 20798907
"18:55" 13483347
"18:56" 16104330
"18:57" 18804122
"18:58" 15420785
"18:59" 9633613
"19:00" 8958120
"19:01" 3204958
"19:02" 14711362
"19:03" 13772972
"19:04" 16889244
"19:05" 8038623
"19:06" 19193177
"19:07" 10917097
"19:08" 14176027
"19:09" 19654210
"19:10" 9796250
"19:11" 6589494
"19:12" 6346759
"19:13" 8946196
"19:14" 10671484
"19:15" 8060791
"19:16" 14501881
"19:17" 16353811
"19:18" 27188506
"19:19" 5274692
"19:20" 10427974
"19:21" 10391490
"19:22" 19575017
"19:23" 29931648
"19:24" 1878936
"19:25" 10391989
"19:26" 13503965
"19:27" 7777309
"19:28" 6634215
"19:29" 3001072
"19:30" 4066141
"19:31" 3574019
"19:32" 12098578
"19:33" 18866933
"19:34" 19231737
"19:35" 13717041
"19:36" 9247018
"19:37" 5464439
"19:38" 4790408
"19:39" 9383759
"19:40" 6013605
"19:41" 9257784
"19:42" 24800635
"19:43" 13394645
"19:44" 17633096
"19:45" 9349157
"19:46" 31092292
"19:47" 10411193
"19:48" 1975683
"19:49" 19953899
"19:50" 11816176
"19:51" 17039567
"19:52" 13742333
"19:53" 6748930
"19:54" 14181032
"19:55" 9274383
"19:56" 10446780
"19:57" 18347674
"19:58" 13077779
"19:59" 13103067
"20:00" 15396912
"20:01" 29507872
"20:02" 8261886
"20:03" 16670485
"20:04" 20879253
"20:05" 13844763
"20:06" 26758306
"20:07" 6275074
"20:08" 13879607
"20:09" 14792651
"20:10" 4751459
"20:11" 9350169
"20:12" 9309744
"20:13" 7165686
"20:14" 17234501
"20:15" 22674288
"20:16" 10346588
"20:17" 31627955
"20:18" 6843704
"20:19" 12951870
"20:20" 12636736
"20:21" 8959754
"20:22" 9964089
"20:23" 8926272
"20:24" 12939154
"20:25" 13563693
"20:26" 6524035
"20:27" 17325082
"20:28" 11477969
"20:29" 14442025
"20:30" 19406459
"20:31" 12179016
"20:32" 9291983
"20:33" 15334400
"20:34" 11126496
"20:35" 13026787
"20:36" 23274728
"20:37" 9539920
"20:38" 25166833
"20:39" 111497080
"20:40" 15656927
"20:41" 7030207
"20:42" 12128751
"20:43" 81152284
"20:44" 2773335
"20:45" 7670055
"20:46" 4777512
"20:47" 3179729
"20:48" 3050294
"20:49" 8047333
"20:50" 56103241
"20:51" 16761539
"20:52" 9491941
"20:53" 9491091
"20:54" 11980064
"20:55" 23938428
"20:56" 15484221
"20:57" 19052970
"20:58" 26674700
"20:59" 22933749
"21:00" 44275714
"21:01" 11905498
"21:02" 10679257
"21:03" 5650231
"21:04" 15074631
"21:05" 25097845
"21:06" 14528778
"21:07" 11789037
"21:08" 26041640
"21:09" 13268535
"21:10" 23904744
"21:11" 7867494
"21:12" 6039463
"21:13" 9885806
"21:14" 16324862
"21:15" 43994694
"21:16" 13916935
"21:17" 6101610
"21:18" 22607764
"21:19" 17385287
"21:20" 13748895
"21:21" 6690503
"21:22" 8852386
"21:23" 23044822
"21:24" 6801306
"21:25" 13852360
"21:26" 10936387
"21:27" 12048426
"21:28" 15605459
"21:29" 16394393
"21:30" 17783765
"21:31" 7963491
"21:32" 12234449
"21:33" 8097873
"21:34" 12537243
"21:35" 9204596
"21:36" 8056163
"21:37" 3132987
"21:38" 1235012
"21:39" 2184025
"21:40" 10111119
"21:41" 4522542
"21:42" 12765589
"21:43" 21883414
"21:44" 3563034
"21:45" 8450559
"21:46" 11821601
"21:47" 21195319
"21:48" 5647787
"21:49" 9193094
"21:50" 14796970
"21:51" 5812502
"21:52" 5057505
"21:53" 3278861
"21:54" 4382731
"21:55" 2112776
"21:56" 6642389
"21:57" 4504427
"21:58" 6224185
"21:59" 1717265
"22:00" 5920667
"22:01" 6689407
"22:02" 5228326
"22:03" 4867197
"22:04" 6095529
"22:05" 5345400
"22:06" 7171150
"22:07" 4622643
"22:08" 3139631
"22:09" 6507542
"22:10" 9109916
"22:11" 6458554
"22:12" 8861048
"22:13" 8276122
"22:14" 8615321
"22:15" 5896536
"22:16" 2529979
"22:17" 6417360
"22:18" 21014258
"22:19" 5009526
"22:20" 3237508
"22:21" 4052173
"22:22" 8429615
"22:23" 18051565
"22:24" 21731821
"22:25" 6544104
"22:26" 13721724
"22:27" 10434237
"22:28" 11933115
"22:29" 8515061
"22:30" 16915183
"22:31" 7552980
"22:32" 6447307
"22:33" 10244585
"22:34" 4329000
"22:35" 6131559
"22:36" 10034942
"22:37" 5209570
"22:38" 4507720
"22:39" 2910528
"22:40" 13524945
"22:41" 6182190
"22:42" 6457955
"22:43" 12455882
"22:44" 7857531
"22:45" 7646604
"22:46" 12025735
"22:47" 11107483
"22:48" 3355063
"22:49" 5795305
"22:50" 5634698
"22:51" 6051647
"22:52" 8861558
"22:53" 2178071
"22:54" 9638557
"22:55" 2128753
"22:56" 6964252
"22:57" 4653953
"22:58" 920843
"22:59" 19830367
"23:00" 9314960
"23:01" 4423840
"23:02" 6238350
"23:03" 7198299
"23:04" 15624199
"23:05" 5987570
"23:06" 6403234
"23:07" 803482
"23:08" 1932057
"23:09" 3842228
"23:10" 1444024
"23:11" 4390056
"23:12" 585295
"23:13" 3656060
"23:14" 8580953
"23:15" 1966533
"23:16" 10162949
"23:17" 19471094
"23:18" 23018674
"23:19" 11759327
"23:20" 18710461
"23:21" 6664191
"23:22" 7606871
"23:23" 3930327
"23:24" 6277142
"23:25" 7208669
"23:26" 459686
"23:27" 15111459
"23:28" 4204798
"23:29" 5271997
"23:30" 48706360
"23:31" 4955408
"23:32" 4196541
"23:33" 5228382
"23:34" 10033957
"23:35" 4581996
"23:36" 4982625
"23:37" 3773329
"23:38" 5684378
"23:39" 1769448
"23:40" 6389211
"23:41" 6755941
"23:42" 4018770
"23:43" 4214668
"23:44" 1230359
"23:45" 6102466
"23:46" 5430616
"23:47" 4794380
"23:48" 3177205
"23:49" 13040632
"23:50" 9614192
"23:51" 5326404
"23:52" 3438644
"23:53" 1946113
"23:54" 4757798
"23:55" 3418446
"23:56" 3849852
"23:57" 6371640
"23:58" 585777
"23:59" 1925679
| {
"pile_set_name": "Github"
} |
/*
* Bootstrap Documentation
* Special styles for presenting Bootstrap's documentation and code examples.
*
* Table of contents:
*
* Scaffolding
* Main navigation
* Footer
* Social buttons
* Homepage
* Page headers
* Old docs callout
* Ads
* Side navigation
* Docs sections
* Callouts
* Grid styles
* Examples
* Code snippets (highlight)
* Responsive tests
* Glyphicons
* Customizer
* Miscellaneous
*/
/*
* Scaffolding
*
* Update the basics of our documents to prep for docs content.
*/
body {
position: relative; /* For scrollyspy */
padding-top: 50px; /* Account for fixed navbar */
}
/* Keep code small in tables on account of limited space */
.table code {
font-size: 13px;
font-weight: normal;
}
/* Outline button for use within the docs */
.btn-outline {
color: #563d7c;
background-color: #fff;
border-color: #e5e5e5;
}
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
color: #fff;
background-color: #563d7c;
border-color: #563d7c;
}
/* Inverted outline button (white on dark) */
.btn-outline-inverse {
color: #fff;
background-color: transparent;
border-color: #cdbfe3;
}
.btn-outline-inverse:hover,
.btn-outline-inverse:focus,
.btn-outline-inverse:active {
color: #563d7c;
text-shadow: none;
background-color: #fff;
border-color: #fff;
}
/*
* Main navigation
*
* Turn the `.navbar` at the top of the docs purple.
*/
.bs-docs-nav {
text-shadow: 0 -1px 0 rgba(0,0,0,.15);
background-color: #563d7c;
border-color: #463265;
box-shadow: 0 1px 0 rgba(255,255,255,.1);
}
.bs-docs-nav .navbar-collapse {
border-color: #463265;
}
.bs-docs-nav .navbar-brand {
color: #fff;
}
.bs-docs-nav .navbar-nav > li > a {
color: #cdbfe3;
}
.bs-docs-nav .navbar-nav > li > a:hover {
color: #fff;
}
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover {
color: #fff;
background-color: #463265;
}
.bs-docs-nav .navbar-toggle {
border-color: #563d7c;
}
.bs-docs-nav .navbar-toggle:hover {
background-color: #463265;
border-color: #463265;
}
/*
* Footer
*
* Separated section of content at the bottom of all pages, save the homepage.
*/
.bs-footer {
padding-top: 40px;
padding-bottom: 30px;
margin-top: 100px;
color: #777;
text-align: center;
border-top: 1px solid #e5e5e5;
}
.footer-links {
margin: 10px 0;
padding-left: 0;
}
.footer-links li {
display: inline;
padding: 0 2px;
}
.footer-links li:first-child {
padding-left: 0;
}
@media (min-width: 768px) {
.bs-footer {
text-align: left;
}
.bs-footer p {
margin-bottom: 0;
}
}
/*
* Social buttons
*
* Twitter and GitHub social action buttons (for homepage and footer).
*/
.bs-social {
margin-top: 20px;
margin-bottom: 20px;
text-align: center;
}
.bs-social-buttons {
display: inline-block;
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.bs-social-buttons li {
display: inline-block;
line-height: 1;
padding: 5px 8px;
}
.bs-social-buttons .twitter-follow-button {
width: 225px !important;
}
.bs-social-buttons .twitter-share-button {
width: 98px !important;
}
/* Style the GitHub buttons via CSS instead of inline attributes */
.github-btn {
border: 0;
overflow: hidden;
}
@media screen and (min-width: 768px) {
.bs-social {
text-align: left;
}
.bs-social-buttons li:first-child {
padding-left: 0;
}
}
/*
* Topography, yo!
*
* Apply the map background via base64 and relevant colors where we need 'em.
*/
.bs-docs-home,
.bs-header {
color: #cdbfe3;
background-color: #563d7c;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAPoAgMAAAAwzTx3AAAACVBMVEVXPX1dQ4FdRIIPRg84AACjV0lEQVR4AZyZQa7cOg5FDwMTCDLSQJ738C2DS+DA3k/QK8n4r7KBR1zAtF2NHzFVfoaN6+iI4hULpoeDBaA/uogBA0jYYYeTirPuZ2mRTkrFBPC6l2CBBRuQlKYpLXUhIQH2MwFgcImpw1jguMXUcCFQWH1JjcZSFGCJJex1FtJJWSFqEWF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bN/onQ6b6EEkRLfk2NxZgf246Q/8D8oO+iIHPYIfSRwwX7GmJhaZ3Beg14FzwQ9JHfQTL/AaHjavpg4uU2yLbpDkIL2sOuhLHJoWSlVIFGxRXWnnvGHQi6Lz+D/xAvdNFfaxfE7zM5fLl6bj66AvcEgysN3Ph64scHQG6/kdCjxIoDeuXT6yTZOgrEgJRefJPYqSrl5KoqeCuMiBcdbtn1Xc8ar6L2zwD/yDNkGvcGTPr8POdCbU0XRWRWdp96GZCHXfbYlDD/fQ78rFzeksNHYWH4bO1SLRt+cPw4d43cJAUsN4crxk0/FXZiJUwQWOqg2RF1KsH9EcMRzk7Q1dTujJ5r/T2bteGXQqy9A742Ues1p+O/oaB+qZ2/N19NQzepJjhr5zqWwDucRkm4nVTiuVq5pHr3pB/8aw9DPRqeElDkRkYDQRdscHv8GZ50EDevtG/2TuS/T0vWnqCJghQH7ceDP0kUK/cFEFHaE1jqbWMbVz8ZkqiQ1dLmlAz4H383WFnc2/EtWL7vMUTXTXZTU69xs9VcJE72KJf5vjfwF77wcpLxPbrwAAAABJRU5ErkJggg==);
}
/*
* Homepage
*
* Tweaks to the custom homepage and the masthead (main jumbotron).
*/
/* Masthead (headings and download button) */
.bs-masthead {
position: relative;
padding: 30px 15px;
text-align: center;
text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.bs-masthead h1 {
font-size: 50px;
line-height: 1;
color: #fff;
}
.bs-masthead .btn-outline {
margin-top: 20px;
margin-bottom: 20px;
padding: 18px 24px;
font-size: 21px;
}
/* Links to project-level content like the repo, Expo, etc */
.bs-masthead-links {
margin-top: 20px;
margin-bottom: 20px;
padding: 0 15px;
list-style: none;
text-align: center;
}
.bs-masthead-links li {
display: inline;
}
.bs-masthead-links li + li {
margin-left: 20px;
}
.bs-masthead-links a {
color: #fff;
}
@media screen and (min-width: 768px) {
.bs-masthead {
text-align: left;
padding-top: 140px;
padding-bottom: 140px;
}
.bs-masthead h1 {
font-size: 100px;
}
.bs-masthead .lead {
margin-right: 25%;
font-size: 30px;
}
.bs-masthead-links {
padding: 0;
text-align: left;
}
}
/*
* Page headers
*
* Jumbotron-esque headers at the top of every page that's not the homepage.
*/
/* Page headers */
.bs-header {
padding: 30px 15px 40px; /* side padding builds on .container 15px, so 30px */
font-size: 16px;
text-align: center;
text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.bs-header h1 {
color: #fff;
}
.bs-header p {
font-weight: 300;
line-height: 1.5;
}
.bs-header .container {
position: relative;
}
@media screen and (min-width: 768px) {
.bs-header {
font-size: 21px;
text-align: left;
}
.bs-header h1 {
font-size: 60px;
line-height: 1;
}
}
@media screen and (min-width: 992px) {
.bs-header h1,
.bs-header p {
margin-right: 380px;
}
}
/*
* Carbon ads
*
* Single display ad that shows on all pages (except homepage) in page headers.
* The hella `!important` is required for any pre-set property.
*/
.carbonad {
width: auto !important;
margin: 50px -30px -40px !important;
padding: 20px !important;
overflow: hidden; /* clearfix */
height: auto !important;
font-size: 13px !important;
line-height: 16px !important;
text-align: left;
background: #463265 !important;
border: 0 !important;
box-shadow: inset 0 3px 5px rgba(0,0,0,.075);
}
.carbonad-img {
margin: 0 !important;
}
.carbonad-text,
.carbonad-tag {
float: none !important;
display: block !important;
width: auto !important;
height: auto !important;
margin-left: 145px !important;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.carbonad-text {
padding-top: 0 !important;
}
.carbonad-tag {
color: #cdbfe3 !important;
text-align: left !important;
}
.carbonad-text a,
.carbonad-tag a {
color: #fff !important;
}
.carbonad #azcarbon > img {
display: none; /* hide what I assume are tracking images */
}
@media screen and (min-width: 768px) {
.carbonad {
margin: 0 !important;
border-radius: 4px;
box-shadow: inset 0 3px 5px rgba(0,0,0,.075), 0 1px 0 rgba(255,255,255,.1);
}
}
@media screen and (min-width: 992px) {
.carbonad {
position: absolute;
top: 20px;
right: 0;
padding: 15px !important;
width: 330px !important;
min-height: 132px;
}
}
/*
* Callout for 2.3.2 docs
*
* Only appears below page headers (not on the homepage). The homepage gets its
* own link with the masthead links.
*/
.bs-old-docs {
padding: 15px 20px;
color: #777;
background-color: #fafafa;
border-top: 1px solid #fff;
border-bottom: 1px solid #e5e5e5;
}
.bs-old-docs strong {
color: #555;
}
/*
* Side navigation
*
* Scrollspy and affixed enhanced navigation to highlight sections and secondary
* sections of docs content.
*/
/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix {
position: static;
}
/* First level of nav */
.bs-sidenav {
margin-top: 30px;
margin-bottom: 30px;
padding-top: 10px;
padding-bottom: 10px;
text-shadow: 0 1px 0 #fff;
background-color: #f7f5fa;
border-radius: 5px;
}
/* All levels of nav */
.bs-sidebar .nav > li > a {
display: block;
color: #716b7a;
padding: 5px 20px;
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
text-decoration: none;
background-color: #e5e3e9;
border-right: 1px solid #dbd8e0;
}
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
font-weight: bold;
color: #563d7c;
background-color: transparent;
border-right: 1px solid #563d7c;
}
/* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav {
display: none; /* Hide by default, but at >768px, show it */
margin-bottom: 8px;
}
.bs-sidebar .nav .nav > li > a {
padding-top: 3px;
padding-bottom: 3px;
padding-left: 30px;
font-size: 90%;
}
/* Show and affix the side nav when space allows it */
@media screen and (min-width: 992px) {
.bs-sidebar .nav > .active > ul {
display: block;
}
/* Widen the fixed sidebar */
.bs-sidebar.affix,
.bs-sidebar.affix-bottom {
width: 213px;
}
.bs-sidebar.affix {
position: fixed; /* Undo the static from mobile first approach */
top: 80px;
}
.bs-sidebar.affix-bottom {
position: absolute; /* Undo the static from mobile first approach */
}
.bs-sidebar.affix-bottom .bs-sidenav,
.bs-sidebar.affix .bs-sidenav {
margin-top: 0;
margin-bottom: 0;
}
}
@media screen and (min-width: 1200px) {
/* Widen the fixed sidebar again */
.bs-sidebar.affix-bottom,
.bs-sidebar.affix {
width: 263px;
}
}
/*
* Docs sections
*
* Content blocks for each component or feature.
*/
/* Space things out */
.bs-docs-section + .bs-docs-section {
padding-top: 40px;
}
/* Janky fix for preventing navbar from overlapping */
h1[id] {
padding-top: 80px;
margin-top: -45px;
}
/*
* Callouts
*
* Not quite alerts, but custom and helpful notes for folks reading the docs.
* Requires a base and modifier class.
*/
/* Common styles for all types */
.bs-callout {
margin: 20px 0;
padding: 15px 30px 15px 15px;
border-left: 5px solid #eee;
}
.bs-callout h4 {
margin-top: 0;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code,
.bs-callout .highlight {
background-color: #fff;
}
/* Variations */
.bs-callout-danger {
background-color: #fcf2f2;
border-color: #dFb5b4;
}
.bs-callout-warning {
background-color: #fefbed;
border-color: #f1e7bc;
}
.bs-callout-info {
background-color: #f0f7fd;
border-color: #d0e3f0;
}
/*
* Grid examples
*
* Highlight the grid columns within the docs so folks can see their padding,
* alignment, sizing, etc.
*/
.show-grid {
margin-bottom: 15px;
}
.show-grid [class^="col-"] {
padding-top: 10px;
padding-bottom: 10px;
background-color: #eee;
border: 1px solid #ddd;
background-color: rgba(86,61,124,.15);
border: 1px solid rgba(86,61,124,.2);
}
/*
* Examples
*
* Isolated sections of example content for each component or feature. Usually
* followed by a code snippet.
*/
.bs-example {
position: relative;
padding: 45px 15px 15px;
margin: 0 -15px 15px;
background-color: #fafafa;
box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
border-color: #e5e5e5 #eee #eee;
border-style: solid;
border-width: 1px 0;
}
/* Echo out a label for the example */
.bs-example:after {
content: "Example";
position: absolute;
top: 15px;
left: 15px;
font-size: 12px;
font-weight: bold;
color: #bbb;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Tweak display of the code snippets when following an example */
.bs-example + .highlight {
margin: -15px -15px 15px;
border-radius: 0;
border-width: 0 0 1px;
}
/* Make the examples and snippets not full-width */
@media screen and (min-width: 768px) {
.bs-example {
margin-left: 0;
margin-right: 0;
background-color: #fff;
border-width: 1px;
border-color: #ddd;
border-radius: 4px 4px 0 0;
box-shadow: none;
}
.bs-example + .highlight {
margin-top: -16px;
margin-left: 0;
margin-right: 0;
border-width: 1px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
}
/* Tweak content of examples for optimum awesome */
.bs-example > p:last-child,
.bs-example > ul:last-child,
.bs-example > ol:last-child,
.bs-example > blockquote:last-child,
.bs-example > .form-control:last-child,
.bs-example > .table:last-child,
.bs-example > .navbar:last-child,
.bs-example > .jumbotron:last-child,
.bs-example > .alert:last-child,
.bs-example > .panel:last-child,
.bs-example > .list-group:last-child,
.bs-example > .well:last-child,
.bs-example > .progress:last-child,
.bs-example > .table-responsive:last-child > .table {
margin-bottom: 0;
}
.bs-example > p > .close {
float: none;
}
/* Typography */
.bs-example-type .table td:last-child {
color: #999;
vertical-align: middle;
}
.bs-example-type .table td {
padding: 15px 0;
border-color: #eee;
}
.bs-example-type .table tr:first-child td {
border-top: 0;
}
.bs-example-type h1,
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
margin: 0;
}
/* Images */
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
margin: 5px;
}
/* Buttons */
.bs-example > .btn,
.bs-example > .btn-group {
margin-top: 5px;
margin-bottom: 5px;
}
.bs-example > .btn-toolbar + .btn-toolbar {
margin-top: 10px;
}
/* Forms */
.bs-example-control-sizing select,
.bs-example-control-sizing input[type="text"] + input[type="text"] {
margin-top: 10px;
}
.bs-example-form .input-group {
margin-bottom: 10px;
}
.bs-example > textarea.form-control {
resize: vertical;
}
/* List groups */
.bs-example > .list-group {
max-width: 400px;
}
/* Navbars */
.bs-example .navbar:last-child {
margin-bottom: 0;
}
.bs-navbar-top-example,
.bs-navbar-bottom-example {
z-index: 1;
padding: 0;
overflow: hidden; /* cut the drop shadows off */
}
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
margin-left: 0;
}
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
position: relative;
margin-left: 0;
margin-right: 0;
}
.bs-navbar-top-example {
padding-bottom: 45px;
}
.bs-navbar-top-example:after {
top: auto;
bottom: 15px;
}
.bs-navbar-top-example .navbar-fixed-top {
top: -1px;
}
.bs-navbar-bottom-example {
padding-top: 45px;
}
.bs-navbar-bottom-example .navbar-fixed-bottom {
bottom: -1px;
}
.bs-navbar-bottom-example .navbar {
margin-bottom: 0;
}
@media (min-width: 768px) {
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
position: absolute;
}
.bs-navbar-top-example {
border-radius: 0 0 4px 4px;
}
.bs-navbar-bottom-example {
border-radius: 4px 4px 0 0;
}
}
/* Pagination */
.bs-example .pagination {
margin-top: 10px;
margin-bottom: 10px;
}
/* Pager */
.bs-example > .pager {
margin-top: 0;
}
/* Example modals */
.bs-example-modal {
background-color: #f5f5f5;
}
.bs-example-modal .modal {
position: relative;
top: auto;
right: auto;
left: auto;
bottom: auto;
z-index: 1;
display: block;
}
.bs-example-modal .modal-dialog {
left: auto;
margin-left: auto;
margin-right: auto;
}
/* Example dropdowns */
.bs-example > .dropdown > .dropdown-menu {
position: static;
display: block;
margin-bottom: 5px;
}
/* Example tabbable tabs */
.bs-example-tabs .nav-tabs {
margin-bottom: 15px;
}
/* Tooltips */
.bs-example-tooltips {
text-align: center;
}
.bs-example-tooltips > .btn {
margin-top: 5px;
margin-bottom: 5px;
}
/* Popovers */
.bs-example-popover {
padding-bottom: 24px;
background-color: #f9f9f9;
}
.bs-example-popover .popover {
position: relative;
display: block;
float: left;
width: 260px;
margin: 20px;
}
/* Scrollspy demo on fixed height div */
.scrollspy-example {
position: relative;
height: 200px;
margin-top: 10px;
overflow: auto;
}
/*
* Code snippets
*
* Generated via Pygments and Jekyll, these are snippets of HTML, CSS, and JS.
*/
.highlight {
display: none; /* hidden by default, until >480px */
padding: 9px 14px;
margin-bottom: 14px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
border-radius: 4px;
}
.highlight pre {
padding: 0;
margin-top: 0;
margin-bottom: 0;
background-color: transparent;
border: 0;
white-space: nowrap;
}
.highlight pre code {
font-size: inherit;
color: #333; /* Effectively the base text color */
}
.highlight pre .lineno {
display: inline-block;
width: 22px;
padding-right: 5px;
margin-right: 10px;
text-align: right;
color: #bebec5;
}
/* Show code snippets when we have the space */
@media screen and (min-width: 481px) {
.highlight {
display: block;
}
}
/*
* Responsive tests
*
* Generate a set of tests to show the responsive utilities in action.
*/
/* Responsive (scrollable) doc tables */
.table-responsive .highlight pre {
white-space: normal;
}
/* Utility classes table */
.bs-table th small,
.responsive-utilities th small {
display: block;
font-weight: normal;
color: #999;
}
.responsive-utilities tbody th {
font-weight: normal;
}
.responsive-utilities td {
text-align: center;
}
.responsive-utilities td.is-visible {
color: #468847;
background-color: #dff0d8 !important;
}
.responsive-utilities td.is-hidden {
color: #ccc;
background-color: #f9f9f9 !important;
}
/* Responsive tests */
.responsive-utilities-test {
margin-top: 5px;
}
.responsive-utilities-test .col-xs-6 {
margin-bottom: 10px;
}
.responsive-utilities-test span {
padding: 15px 10px;
font-size: 14px;
font-weight: bold;
line-height: 1.1;
text-align: center;
border-radius: 4px;
}
.visible-on .col-xs-6 .hidden-xs,
.visible-on .col-xs-6 .hidden-sm,
.visible-on .col-xs-6 .hidden-md,
.visible-on .col-xs-6 .hidden-lg,
.hidden-on .col-xs-6 .visible-xs,
.hidden-on .col-xs-6 .visible-sm,
.hidden-on .col-xs-6 .visible-md,
.hidden-on .col-xs-6 .visible-lg {
color: #999;
border: 1px solid #ddd;
}
.visible-on .col-xs-6 .visible-xs,
.visible-on .col-xs-6 .visible-sm,
.visible-on .col-xs-6 .visible-md,
.visible-on .col-xs-6 .visible-lg,
.hidden-on .col-xs-6 .hidden-xs,
.hidden-on .col-xs-6 .hidden-sm,
.hidden-on .col-xs-6 .hidden-md,
.hidden-on .col-xs-6 .hidden-lg {
color: #468847;
background-color: #dff0d8;
border: 1px solid #d6e9c6;
}
/*
* Glyphicons
*
* Special styles for displaying the icons and their classes in the docs.
*/
.bs-glyphicons {
padding-left: 0;
padding-bottom: 1px;
margin-bottom: 20px;
list-style: none;
overflow: hidden;
}
.bs-glyphicons li {
float: left;
width: 25%;
height: 115px;
padding: 10px;
margin: 0 -1px -1px 0;
font-size: 12px;
line-height: 1.4;
text-align: center;
border: 1px solid #ddd;
}
.bs-glyphicons .glyphicon {
display: block;
margin: 5px auto 10px;
font-size: 24px;
}
.bs-glyphicons li:hover {
background-color: rgba(86,61,124,.1);
}
@media (min-width: 768px) {
.bs-glyphicons li {
width: 12.5%;
}
}
/*
* Customizer
*
* Since this is so form control heavy, we have quite a few styles to customize
* the display of inputs, headings, and more. Also included are all the download
* buttons and actions.
*/
.bs-customizer .toggle {
float: right;
margin-top: 85px; /* On account of ghetto navbar fix */
}
/* Headings and form contrls */
.bs-customizer label {
margin-top: 10px;
font-weight: 500;
color: #444;
}
.bs-customizer h2 {
margin-top: 0;
margin-bottom: 5px;
padding-top: 30px;
}
.bs-customizer h4 {
margin-top: 15px;
}
.bs-customizer input[type="text"] {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
background-color: #fafafa;
}
.bs-customizer .help-block {
font-size: 12px;
}
/* For the variables, use regular weight */
#less-section label {
font-weight: normal;
}
/* Downloads */
.bs-customize-download .btn-outline {
padding: 20px;
}
/* Error handling */
.bs-customizer-alert {
position: fixed;
top: 51px;
left: 0;
right: 0;
z-index: 1030;
padding: 15px 0;
color: #fff;
background-color: #d9534f;
box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
border-bottom: 1px solid #b94441;
}
.bs-customizer-alert .close {
margin-top: -4px;
font-size: 24px;
}
.bs-customizer-alert p {
margin-bottom: 0;
}
.bs-customizer-alert .glyphicon {
margin-right: 5px;
}
.bs-customizer-alert pre {
margin: 10px 0 0;
color: #fff;
background-color: #a83c3a;
border-color: #973634;
box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
}
/*
* Miscellaneous
*
* Odds and ends for optimum docs display.
*/
/* Examples gallery: space out content better */
.bs-examples h4 {
margin-bottom: 5px;
}
.bs-examples p {
margin-bottom: 20px;
}
/* Pseudo :focus state for showing how it looks in the docs */
#focusedInput {
border-color: rgba(82,168,236,.8);
outline: 0;
outline: thin dotted \9; /* IE6-9 */
-moz-box-shadow: 0 0 8px rgba(82,168,236,.6);
box-shadow: 0 0 8px rgba(82,168,236,.6);
}
/* Better spacing on download options in getting started */
.bs-docs-dl-options h4 {
margin-top: 15px;
margin-bottom: 5px;
}
| {
"pile_set_name": "Github"
} |
function pshell{
param(
[Parameter(Mandatory)]
[String] $instruction
)
powershell.exe -C $instruction
}
| {
"pile_set_name": "Github"
} |
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
---
layout: doc-page
title: (Deprecated) Perceptron and Winnow
---
<a name="PerceptronandWinnow-ClassificationwithPerceptronorWinnow"></a>
# Classification with Perceptron or Winnow
Both algorithms are comparably simple linear classifiers. Given training
data in some n-dimensional vector space that is annotated with binary
labels the algorithms are guaranteed to find a linear separating hyperplane
if one exists. In contrast to the Perceptron, Winnow works only for binary
feature vectors.
For more information on the Perceptron see for instance:
http://en.wikipedia.org/wiki/Perceptron
Concise course notes on both algorithms:
http://pages.cs.wisc.edu/~shuchi/courses/787-F07/scribe-notes/lecture24.pdf
Although the algorithms are comparably simple they still work pretty well
for text classification and are fast to train even for huge example sets.
In contrast to Naive Bayes they are not based on the assumption that all
features (in the domain of text classification: all terms in a document)
are independent.
<a name="PerceptronandWinnow-Strategyforparallelisation"></a>
## Strategy for parallelisation
Currently the strategy for parallelisation is simple: Given there is enough
training data, split the training data. Train the classifier on each split.
The resulting hyperplanes are then averaged.
<a name="PerceptronandWinnow-Roadmap"></a>
## Roadmap
Currently the patch only contains the code for the classifier itself. It is
planned to provide unit tests and at least one example based on the WebKB
dataset by the end of November for the serial version. After that the
parallelisation will be added.
| {
"pile_set_name": "Github"
} |
<?xml version='1.0' encoding='utf-8'?>
<document xmlns="https://code.dccouncil.us/schemas/dc-library" xmlns:codified="https://code.dccouncil.us/schemas/codified" xmlns:codify="https://code.dccouncil.us/schemas/codify" xmlns:xi="http://www.w3.org/2001/XInclude" id="D.C. Law 21-200">
<num type="law">21-200</num>
<num type="bill">21-598</num>
<num type="act">21-556</num>
<heading type="short">Vacant Property Enforcement Amendment Act of 2016</heading>
<heading type="long">To amend An Act To provide for the abatement of nuisances in the District of Columbia by the Commissioners of said District, and for other purposes to reduce the maximum duration of vacant property tax exemptions, and to increase maximum fines for noncompliance.</heading>
<meta>
<effective>2017-02-18</effective>
<citations>
<citation type="law" url="http://lims.dccouncil.us/Download/35264/B21-0598-SignedAct.pdf">D.C. Law 21-200</citation>
<citation type="register">63 DCR 15038</citation>
</citations>
<history>
<vote date="2016-11-01" reading="First"/>
<vote date="2016-11-15" reading="Final"/>
<enacted>2016-12-06</enacted>
<summary>Law 21-200 requires that a designation of vacant or blighted property remain until the property owner submits sufficient information to the Mayor to change the classification. It allows for certain exceptions from registering a property as vacant based on the current level of active construction or renovation. It clarifies that the allowable time for the exemption is one year for a residential building and two years for a commercial property. It increases the maximum fine of noncompliance with certain vacant registration requirements from $1000 to a fine not to exceed $5000.</summary>
<committee>Committee on Business, Consumer, and Regulatory Affairs</committee>
</history>
</meta>
<text>BE IT ENACTED BY THE COUNCIL OF THE DISTRICT OF COLUMBIA, That this act may be cited as the "Vacant Property Enforcement Amendment Act of 2016".</text>
<section>
<num>2</num>
<text>An Act To provide for the abatement of nuisances in the District of Columbia by the Commissioners of said District, and for other purposes, approved April 14, 1906 (34 Stat.114; D.C. Official Code § 42-3131.01 <em>et seq</em>.), is amended as follows:
</text>
<para codify:doc="D.C. Code" codify:path="§42-3131.06">
<num>(a)</num>
<text>Section 6 (D.C. Official Code § 42-3131.06) is amended as follows:</text>
<para>
<num>(1)</num>
<text>A new subsection (a-1) is added to read as follows:</text>
<include>
<para>
<codify:insert after="(a)"/>
<num>(a-1)</num>
<para>
<num>(1)</num>
<text>After the initial designation of a property as vacant or blighted, the Mayor shall not be required to perform additional inspections or surveys to sustain that classification.</text>
</para>
<para>
<num>(2)</num>
<text>After the Mayor has made a final determination that a building is a vacant building or blighted vacant building, that final designation shall remain in effect until the property owner submits information to the Mayor sufficient to warrant a change to that classification.</text>
</para>
</para>
</include>
<aftertext>.</aftertext>
</para>
<para>
<num>(2)</num>
<text>Subsection (b)(3) is amended to read as follows:</text>
<include>
<para>
<codify:replace path="(b)|(3)"/>
<num>(3)</num>
<text>Under active construction or undergoing active rehabilitation, renovation, or repair, and there is a building permit to make the building fit for occupancy that was issued, renewed, or extended within 12 months of the required registration date; provided, that the time period for this exemption beginning from the date the initial building permit was issued shall not exceed:</text>
<para>
<num>(A)</num>
<text>One year for a residential building; provided, that a residential building is eligible to continue to be exempt for an additional 6 months, for a total period not to exceed 18 months, if the Mayor determines that the residential building continues to be under active construction or undergoing active rehabilitation, renovation, or repair and substantial progress has been made toward making the building fit for occupancy; or</text>
</para>
<para>
<num>(B)</num>
<text>Two years for a commercial project;</text>
</para>
</para>
</include>
<aftertext>.</aftertext>
</para>
<para>
<num>(3)</num>
<text>Subsection (d) is amended by striking the word "fees" and inserting the phrase "fees and any unpaid taxes assessed against the property" in its place.</text>
<codify:find-replace path="(d)" count="1">
<find>fees</find>
<replace>fees and any unpaid taxes assessed against the property</replace>
</codify:find-replace>
</para>
</para>
<para>
<num>(b)</num>
<text>Section 10(a) (D.C. Official Code § 42-3131.10(a)) is amended by striking the phrase "fine not to exceed $1,000" and inserting the phrase "fine not to exceed $5,000" in its place.</text>
<codify:find-replace doc="D.C. Code" path="§42-3131.10|(a)" count="1">
<find>fine not to exceed $1,000</find>
<replace>fine not to exceed $5,000</replace>
</codify:find-replace>
</para>
<para>
<num>(c)</num>
<text>Section 16 (D.C. Official Code § 42-3131.16) is amended by adding a new subsection (c) to read as follows:</text>
<include>
<para>
<codify:insert doc="D.C. Code" path="§42-3131.16" after="(b)"/>
<num>(c)</num>
<text>Buildings shall remain on the list required by this section until a change in classification is approved pursuant to D.C. Official Code § 47-813(d-1)(5)(A-i)(ii).</text>
</para>
</include>
<aftertext>.</aftertext>
</para>
<para>
<num>(d)</num>
<text>Section 17 (D.C. Official Code § 42-3131.17) is amended by adding a new subsection (c) to read as follows:</text>
<include>
<para>
<codify:insert doc="D.C. Code" path="§42-3131.17" after="(b)"/>
<num>(c)</num>
<text>Buildings shall remain on the list required by this section until a change in classification is approved pursuant to D.C. Official Code § 47-813(d-1)(5)(A-i)(ii).</text>
</para>
</include>
<aftertext>.</aftertext>
</para>
<para>
<num>(e)</num>
<text>A new section 18 is added to read as follows:</text>
<include>
<section>
<codify:insert doc="D.C. Code" path="|42|31A|II" num-value="42-3131.18" history-prefix="as added"/>
<num>18</num>
<heading>Publication of list by the Department of Consumer and Regulatory Affairs.</heading>
<text>The Department of Consumer and Regulatory Affairs shall maintain and publish at least semiannually a list of buildings that are registered as, or have been determined to be, vacant buildings or blighted vacant buildings, or which would have been but for an exemption provided pursuant to <code-cite doc="D.C. Code" path="§42-3131.06|(b)">section 6(b)</code-cite>, that specifies for each building, as applicable:</text>
<para>
<num undesignated="true">(a)</num>
<para>
<num>(1)</num>
<text>Beginning on or after <span codify:value="February 18, 2017">the effective date of this section</span>, the date that the building was determined to be a vacant building or blighted vacant building or registered as a vacant building pursuant to <code-cite doc="D.C. Code" path="§42-3131.06">section 6</code-cite>; and</text>
</para>
<para>
<num>(2)</num>
<text>The exemptions, if any, applied to a building pursuant to <code-cite doc="D.C. Code" path="§42-3131.06">section 6</code-cite>(b) or (c), and the dates during which each exemption applied.</text>
</para>
</para>
</section>
</include>
<aftertext>.</aftertext>
<annotation type="History" doc="Stat. 59-1-ch1626" path="§18">Apr. 14, 1906, 34 Stat. 115, ch. 1626, § 18</annotation>
</para>
</section>
<section>
<num>3</num>
<heading>Fiscal impact statement.</heading>
<text>The Council adopts the fiscal impact statement in the committee report as the fiscal impact statement required by section 4a of the General Legislative Procedures Act of 1975, approved October 16, 2006 (120 Stat. 2038; D.C. Official Code § 1-301.47a).</text>
</section>
<section>
<num>4</num>
<heading>Effective date.</heading>
<text>This act shall take effect following approval by the Mayor (or in the event of veto by the Mayor, action by the Council to override the veto), a 30-day period of congressional review as provided in section 602(c)(1) of the District of Columbia Home Rule Act, approved December 24, 1973 (87 Stat. 813: D.C. Official Code § 1-206.02(c)(1)) and publication in the District of Columbia Register.</text>
</section>
</document>
| {
"pile_set_name": "Github"
} |
config BR2_PACKAGE_LIBUV
bool "libuv"
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_barrier_*
depends on BR2_USE_MMU # fork()
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_HAS_SYNC_4
help
libuv is a multi-platform support library with a focus
on asynchronous I/O.
https://github.com/libuv/libuv
comment "libuv needs a toolchain w/ NPTL, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_SYNC_4
| {
"pile_set_name": "Github"
} |
import fetch from 'isomorphic-fetch'
import columnify from 'columnify'
import dateFormat from 'dateformat'
export const handler = async ({ url }) => {
const response = await fetch(`${url}/event-broker/read-models-list`)
const result = await response.json()
if (result.length === 0) {
// eslint-disable-next-line no-console
console.log('Read-models is not defined')
return
}
const columns = []
for (const {
eventSubscriber,
status,
successEvent,
failedEvent,
errors,
} of result) {
columns.push({
name: eventSubscriber,
status,
'success event': successEvent
? `${dateFormat(new Date(successEvent.timestamp), 'm/d/yy HH:MM:ss')} ${
successEvent.type
}`
: 'N\\A',
'failed event': failedEvent
? `${dateFormat(new Date(failedEvent.timestamp), 'm/d/yy HH:MM:ss')} ${
failedEvent.type
}`
: 'N\\A',
'last error': errors ? errors[errors.length - 1].message : 'N\\A',
})
}
// eslint-disable-next-line no-console
console.log(
columnify(columns, {
minWidth: 20,
})
)
}
export const command = 'list'
export const aliases = ['ls']
export const describe = "display a list of an application's read models"
| {
"pile_set_name": "Github"
} |
# Encoding: utf-8
#
# This is auto-generated code, changes will be overwritten.
#
# Copyright:: Copyright 2018, Google Inc. All Rights Reserved.
# License:: Licensed under the Apache License, Version 2.0.
#
# Code generated by AdsCommon library 1.0.1 on 2018-09-20 09:46:58.
require 'ads_common/savon_service'
require 'adwords_api/v201809/asset_service_registry'
module AdwordsApi; module V201809; module AssetService
class AssetService < AdsCommon::SavonService
def initialize(config, endpoint)
namespace = 'https://adwords.google.com/api/adwords/cm/v201809'
super(config, endpoint, namespace, :v201809)
end
def get(*args, &block)
return execute_action('get', args, &block)
end
def get_to_xml(*args)
return get_soap_xml('get', args)
end
def mutate(*args, &block)
return execute_action('mutate', args, &block)
end
def mutate_to_xml(*args)
return get_soap_xml('mutate', args)
end
private
def get_service_registry()
return AssetServiceRegistry
end
def get_module()
return AdwordsApi::V201809::AssetService
end
end
end; end; end
| {
"pile_set_name": "Github"
} |
%a 3000
%{
#include<tnWidgets.h>
#include<math.h>
#include<string.h>
#include "y.tab.h"
int lineno = 0;
int i;
%}
%%
widgetname return WIDGETNAME;
type return TYPE;
parent return PARENT;
xpos return XPOS;
ypos return YPOS;
height return HEIGHT;
width return WIDTH;
enabled return ENABLED;
visible return VISIBLE;
caption return CAPTION;
callbackcount return CALLBACKCOUNT;
resize return RESIZE;
callback return CALLBACK;
stretch return STRETCH;
filename return FILENAME;
haspixmap return HASPIXMAP;
defaulttext return DEFAULTTEXT;
orientation return ORIENTATION;
minval return MINVAL;
maxval return MAXVAL;
pagestep return PAGESTEP;
linestep return LINESTEP;
fillcolor return FILLCOLOR;
fgcolor return FGCOLOR;
discrete return DISCRETE;
stepsize return STEPSIZE;
exclusive return EXCLUSIVE;
label return LABEL;
checkable return CHECKABLE;
menubarypos return MENUBARYPOS;
\$ return EOW;
[0-9]+ { yylval.number = atoi(yytext); return NUMBER;}
[a-zA-Z0-9_]+ { strcpy(yylval.name,yytext); return NAME; }
\".*\" { for(i=1;yytext[i]!= '"';i++)
yylval.name[i-1] = yytext[i];
yylval.name[i-1] = '\0';
return QSTRING; }
\n { lineno++; return EOL; }
[ \t] ;
%%
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache 2.0 License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.squidb.sql;
import com.yahoo.squidb.data.TableModel;
import com.yahoo.squidb.sql.Property.LongProperty;
import com.yahoo.squidb.sql.Property.PropertyVisitor;
/**
* A standard SQLite table.
*/
public class Table extends SqlTable<TableModel> {
private final String tableConstraint;
protected LongProperty rowidProperty;
public Table(Class<? extends TableModel> modelClass, Property<?>[] properties, String name) {
this(modelClass, properties, name, null);
}
public Table(Class<? extends TableModel> modelClass, Property<?>[] properties, String name,
String databaseName) {
this(modelClass, properties, name, databaseName, null, null);
}
public Table(Class<? extends TableModel> modelClass, Property<?>[] properties, String name, String databaseName,
String tableConstraint) {
this(modelClass, properties, name, databaseName, tableConstraint, null);
}
private Table(Class<? extends TableModel> modelClass, Property<?>[] properties, String name, String databaseName,
String tableConstraint, String alias) {
super(modelClass, properties, name, databaseName);
this.tableConstraint = tableConstraint;
this.alias = alias;
}
public Table qualifiedFromDatabase(String databaseName) {
Table result = new Table(modelClass, properties, getExpression(), databaseName, tableConstraint, alias);
result.rowidProperty = rowidProperty;
return result;
}
@Override
public Table as(String newAlias) {
Table result = (Table) super.as(newAlias);
result.rowidProperty = rowidProperty == null ? null : result.qualifyField(rowidProperty);
return result;
}
@Override
protected Table asNewAliasWithPropertiesArray(String newAlias, Property<?>[] newProperties) {
return new Table(modelClass, newProperties, getExpression(), qualifier, tableConstraint, newAlias);
}
/**
* Construct an {@link Index} with the given name that indexes the given columns
*
* @param name the name for the index
* @param columns the properties representing the columns to index
* @return an Index
*/
public Index index(String name, Property<?>... columns) {
return new Index(name, this, false, columns);
}
/**
* Construct a unique {@link Index} with the given name that indexes the given columns. Unique indexes do not allow
* duplicate entries.
*
* @param name the name for the index
* @param columns the properties representing the columns to index
* @return a unique Index
*/
public Index uniqueIndex(String name, Property<?>... columns) {
return new Index(name, this, true, columns);
}
/**
* @return the additional table definition information used when creating the table
*/
public String getTableConstraint() {
return tableConstraint;
}
@Override
public String toString() {
return super.toString() + " ModelClass=" + modelClass.getSimpleName() + " TableConstraint=" + tableConstraint;
}
/**
* Append a CREATE TABLE statement that would create this table and its columns. Users should not call
* this method and instead let {@link com.yahoo.squidb.data.SquidDatabase} build tables automatically.
*/
public void appendCreateTableSql(CompileContext compileContext, StringBuilder sql,
PropertyVisitor<Void, StringBuilder> propertyVisitor) {
sql.append("CREATE TABLE IF NOT EXISTS ").append(getExpression()).append('(');
boolean needsComma = false;
for (Property<?> property : properties) {
if (TableModel.ROWID.equals(property.getExpression())) {
continue;
}
if (needsComma) {
sql.append(", ");
}
property.accept(propertyVisitor, sql);
needsComma = true;
}
if (!SqlUtils.isEmpty(getTableConstraint())) {
sql.append(", ").append(getTableConstraint());
}
sql.append(')');
}
/**
* Sets the primary key column for this table. Do not call this method! Exposed only so that it can be set
* when initializing a model class.
*
* @param rowidProperty a LongProperty representing the table's primary key id column
*/
public void setRowIdProperty(LongProperty rowidProperty) {
if (this.rowidProperty != null) {
throw new UnsupportedOperationException("Can't call setRowIdProperty on a Table more than once");
}
this.rowidProperty = rowidProperty;
}
/**
* @return the property representing the table's rowid column (or a integer primary key rowid alias if one exists)
*/
public LongProperty getRowIdProperty() {
if (rowidProperty == null) {
throw new UnsupportedOperationException("Table " + getExpression() + " has no id property defined");
}
return rowidProperty;
}
/**
* Deprecated alias for {@link #getRowIdProperty()}
*/
@Deprecated
public LongProperty getIdProperty() {
return getRowIdProperty();
}
}
| {
"pile_set_name": "Github"
} |
//---------------------------------------------------------------------------
//
// <copyright file="ReadOnlyObservableCollection.cs" company="Microsoft">
// Copyright (C) 2003 by Microsoft Corporation. All rights reserved.
// </copyright>
//
//
// Description: Read-only wrapper around an ObservableCollection.
//
// See spec at http://avalon/connecteddata/Specs/Collection%20Interfaces.mht
//
//---------------------------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace System.Collections.ObjectModel
{
/// <summary>
/// Read-only wrapper around an ObservableCollection.
/// </summary>
#if !FEATURE_NETCORE
[Serializable()]
[TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
public class ReadOnlyObservableCollection<T> : ReadOnlyCollection<T>, INotifyCollectionChanged, INotifyPropertyChanged
{
#region Constructors
//------------------------------------------------------
//
// Constructors
//
//------------------------------------------------------
/// <summary>
/// Initializes a new instance of ReadOnlyObservableCollection that
/// wraps the given ObservableCollection.
/// </summary>
public ReadOnlyObservableCollection(ObservableCollection<T> list) : base(list)
{
((INotifyCollectionChanged)Items).CollectionChanged += new NotifyCollectionChangedEventHandler(HandleCollectionChanged);
((INotifyPropertyChanged)Items).PropertyChanged += new PropertyChangedEventHandler(HandlePropertyChanged);
}
#endregion Constructors
#region Interfaces
//------------------------------------------------------
//
// Interfaces
//
//------------------------------------------------------
#region INotifyCollectionChanged
/// <summary>
/// CollectionChanged event (per <see cref="INotifyCollectionChanged" />).
/// </summary>
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged
{
add { CollectionChanged += value; }
remove { CollectionChanged -= value; }
}
/// <summary>
/// Occurs when the collection changes, either by adding or removing an item.
/// </summary>
/// <remarks>
/// see <seealso cref="INotifyCollectionChanged"/>
/// </remarks>
#if !FEATURE_NETCORE
[field:NonSerializedAttribute()]
#endif
protected virtual event NotifyCollectionChangedEventHandler CollectionChanged;
/// <summary>
/// raise CollectionChanged event to any listeners
/// </summary>
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
{
if (CollectionChanged != null)
{
CollectionChanged(this, args);
}
}
#endregion INotifyCollectionChanged
#region INotifyPropertyChanged
/// <summary>
/// PropertyChanged event (per <see cref="INotifyPropertyChanged" />).
/// </summary>
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged
{
add { PropertyChanged += value; }
remove { PropertyChanged -= value; }
}
/// <summary>
/// Occurs when a property changes.
/// </summary>
/// <remarks>
/// see <seealso cref="INotifyPropertyChanged"/>
/// </remarks>
#if !FEATURE_NETCORE
[field:NonSerializedAttribute()]
#endif
protected virtual event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// raise PropertyChanged event to any listeners
/// </summary>
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
{
if (PropertyChanged != null)
{
PropertyChanged(this, args);
}
}
#endregion INotifyPropertyChanged
#endregion Interfaces
#region Private Methods
//------------------------------------------------------
//
// Private Methods
//
//------------------------------------------------------
// forward CollectionChanged events from the base list to our listeners
void HandleCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
OnCollectionChanged(e);
}
// forward PropertyChanged events from the base list to our listeners
void HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
{
OnPropertyChanged(e);
}
#endregion Private Methods
#region Private Fields
//------------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#endregion Private Fields
}
}
| {
"pile_set_name": "Github"
} |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVFILTER_AVCODEC_H
#define AVFILTER_AVCODEC_H
/**
* @file
* libavcodec/libavfilter gluing utilities
*
* This should be included in an application ONLY if the installed
* libavfilter has been compiled with libavcodec support, otherwise
* symbols defined below will not be available.
*/
#include "avfilter.h"
#if FF_API_AVFILTERBUFFER
/**
* Create and return a picref reference from the data and properties
* contained in frame.
*
* @param perms permissions to assign to the new buffer reference
* @deprecated avfilter APIs work natively with AVFrame instead.
*/
attribute_deprecated
AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms);
/**
* Create and return a picref reference from the data and properties
* contained in frame.
*
* @param perms permissions to assign to the new buffer reference
* @deprecated avfilter APIs work natively with AVFrame instead.
*/
attribute_deprecated
AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame,
int perms);
/**
* Create and return a buffer reference from the data and properties
* contained in frame.
*
* @param perms permissions to assign to the new buffer reference
* @deprecated avfilter APIs work natively with AVFrame instead.
*/
attribute_deprecated
AVFilterBufferRef *avfilter_get_buffer_ref_from_frame(enum AVMediaType type,
const AVFrame *frame,
int perms);
#endif
#if FF_API_FILL_FRAME
/**
* Fill an AVFrame with the information stored in samplesref.
*
* @param frame an already allocated AVFrame
* @param samplesref an audio buffer reference
* @return >= 0 in case of success, a negative AVERROR code in case of
* failure
* @deprecated Use avfilter_copy_buf_props() instead.
*/
attribute_deprecated
int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
const AVFilterBufferRef *samplesref);
/**
* Fill an AVFrame with the information stored in picref.
*
* @param frame an already allocated AVFrame
* @param picref a video buffer reference
* @return >= 0 in case of success, a negative AVERROR code in case of
* failure
* @deprecated Use avfilter_copy_buf_props() instead.
*/
attribute_deprecated
int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
const AVFilterBufferRef *picref);
/**
* Fill an AVFrame with information stored in ref.
*
* @param frame an already allocated AVFrame
* @param ref a video or audio buffer reference
* @return >= 0 in case of success, a negative AVERROR code in case of
* failure
* @deprecated Use avfilter_copy_buf_props() instead.
*/
attribute_deprecated
int avfilter_fill_frame_from_buffer_ref(AVFrame *frame,
const AVFilterBufferRef *ref);
#endif
#endif /* AVFILTER_AVCODEC_H */
| {
"pile_set_name": "Github"
} |
{
"name": "neos/utility-schema",
"description": "Flow Schema Utilities",
"type": "library",
"homepage": "http://flow.neos.io",
"license": "MIT",
"require": {
"php": "^7.2 || ^8.0",
"neos/error-messages": "*"
},
"require-dev": {
"mikey179/vfsstream": "~1.6",
"phpunit/phpunit": "~8.1"
},
"autoload": {
"psr-4": {
"Neos\\Utility\\": "Classes"
}
},
"autoload-dev": {
"psr-4": {
"Neos\\Flow\\Utility\\Schema\\Tests\\": "Tests"
}
},
"extra": {
"neos": {
"package-key": "Neos.Utility.Schema"
}
}
}
| {
"pile_set_name": "Github"
} |
StartChar: uniFD51
Encoding: 64849 64849 5299
Width: 1494
Flags: HW
LayerCount: 3
Fore
Refer: 586 -1 N 1 0 0 1 1250 0 2
Refer: 725 -1 N 1 0 0 1 640 0 2
Refer: 678 -1 N 1 0 0 1 0 0 2
Colour: ff0000
EndChar
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"
android:textAppearance="@android:style/TextAppearance.Material.Display4"
android:textSize="@dimen/text_size"/>
</merge> | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.