text stringlengths 2 1.04M | meta dict |
|---|---|
{% extends "layout.html" %}
{% block page_title %}
Reject application
{% endblock %}
{% block content %}
<main id="content" role="main">
{% include "includes/phase_banner_alpha.html" %}
<div class="grid-row">
<div class="column-full">
<a onclick="history.go(-1); return false;" href="#0" class="link-back">Back</a>
</div>
<div class="column-two-thirds">
<h1 class="heading-large" style="margin: 30px 0 0;">
Do you want to reject this case?
</h1>
<p>The application has been underpaid and will be rejected.</p>
<a class="button" href="/application-reject">Reject application</a>
<a onclick="history.go(-1); return false;" class="button-secondary" href="#0">Cancel</a>
</div>
</div>
</main>
{% endblock %}
| {
"content_hash": "1afd9dfdf56c850734c666508f0b64c5",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 94,
"avg_line_length": 24.4375,
"alnum_prop": 0.6099744245524297,
"repo_name": "chris-hanson-hoddat/hoddat-sponsoring-people-caseworker",
"id": "0d905b164480a58152346c9763f21fe2567be85a",
"size": "782",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/views/fee-check.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "10850"
},
{
"name": "HTML",
"bytes": "225293"
},
{
"name": "JavaScript",
"bytes": "51487"
},
{
"name": "Shell",
"bytes": "1872"
}
],
"symlink_target": ""
} |
const { encrypt, decrypt, generateNewPrivateKey, generateNewHmacKey } = require('./');
describe('Crypto Features', () => {
it('should keep the consistancy between encryption & decryption', () => {
const data = 'SOME VERY PRIVATE INFO';
const privateKey = generateNewPrivateKey();
const hmacKey = generateNewHmacKey();
const encryptedData = encrypt(data, privateKey, hmacKey);
expect(encryptedData).not.toBe(data);
const decryptedData = decrypt(encryptedData, privateKey, hmacKey);
expect(decryptedData).toBe(data);
});
it('should not return an identical signature twice for the same given entry and private key', () => {
const data = 'SOME VERY PRIVATE INFO';
const privateKey = generateNewPrivateKey();
const hmacKey = generateNewHmacKey();
const encryptedData = encrypt(data, privateKey, hmacKey);
const encryptedData2 = encrypt(data, privateKey, hmacKey);
expect(encryptedData).not.toBe(encryptedData2);
const decryptedData = decrypt(encryptedData, privateKey, hmacKey);
const decryptedData2 = decrypt(encryptedData2, privateKey, hmacKey);
expect(decryptedData).toBe(data);
expect(decryptedData2).toBe(data);
});
it('should throw an error if the data is tampered', () => {
const data = 'SOME VERY PRIVATE INFO';
const privateKey = generateNewPrivateKey();
const hmacKey = generateNewHmacKey();
const encryptedData = encrypt(data, privateKey, hmacKey);
const [algorithm, cipherText, iv, signature] = encryptedData.split(':');
const tamperedData = `${algorithm}:${cipherText}:${iv}:${signature}tampered`;
expect(() => {
decrypt(tamperedData, privateKey, hmacKey);
}).toThrow(/tampered/);
expect(() => {
decrypt(encryptedData, privateKey, hmacKey);
}).not.toThrow();
});
});
| {
"content_hash": "3f3e9b459abdccc18860a6f19d629cf5",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 105,
"avg_line_length": 38.27450980392157,
"alnum_prop": 0.6444672131147541,
"repo_name": "marmelab/comfygure",
"id": "d1e646dd2913a5ae0832ca1c22091d844daccc2f",
"size": "1952",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cli/src/crypto/index.spec.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "131"
},
{
"name": "JavaScript",
"bytes": "149983"
},
{
"name": "Makefile",
"bytes": "2432"
},
{
"name": "TSQL",
"bytes": "8456"
}
],
"symlink_target": ""
} |
---
title: Extensions
layout: docs
toc: true
---
Extensions provide a clean and easy way to extend Meteor functionality at runtime.
Meteor uses the [Symfony Dependency Injection component](http://symfony.com/doc/current/components/dependency_injection/introduction.html) to standardize the way objects are constructed in the application. An extension can
declare it's own services or extend services with the dependency injection container. All core functionality within Meteor are written like
extensions to ensure third-party extensions are given first-class treatmeant.
## Creating a basic extension
The `DemoExtension` class must implement `Meteor\ServiceContainer\ExtensionInterface`.
```php
<?php
namespace Jadu\MeteorDemo\ServiceContainer;
use Meteor\ServiceContainer\ExtensionInterface;
use Meteor\ServiceContainer\ExtensionManager;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class DemoExtension implements ExtensionInterface
{
public function getConfigKey()
{
return 'demo';
}
public function configure(ArrayNodeDefinition $builder)
{
}
public function initialize(ExtensionManager $extensionManager)
{
}
public function load(ContainerBuilder $container, array $config)
{
}
public function process(ContainerBuilder $container)
{
}
}
```
### Configuration
The [Symfony Config component](http://symfony.com/doc/current/components/config/introduction.html) is used to load and validate the `meteor.json` config file.
The `getConfigKey` method returns the config key for this extension to parse from the config.
The `configure` method is where the extension can define the config structure for the `demo` section (as used in this example).
```
public function getConfigKey()
{
return 'demo';
}
public function configure(ArrayNodeDefinition $builder)
{
$builder
->children()
->scalarNode('name')->end()
->end()
->end();
}
```
The above example means that the `meteor.json` config expects a section named `demo` with a `name` node.
```
{
"demo": {
"name": "Tom Graham"
}
}
```
For more detailed examples and information about the Config component please see the [Symfony docs](http://symfony.com/doc/current/components/config/definition.html) on this subject.
### Loading services
The `load` method is where your extensions service should be defined.
```php
public function load(ContainerBuilder $container, array $config)
{
$definition = new Definition('Jadu\MeteorDemo\TestService');
$container->setDefinition(self::SERVICE_TEST, $definition);
}
```
The config passed to this method will be the processed config for this extension. So continueing the example above, this would be:
```
array(
'name' => 'Tom Graham'
)
```
For more details examples and information about the `ContainerBuilder` class please see the [Symfony docs](http://symfony.com/doc/current/components/dependency_injection/introduction.html#basic-usage) on this subject.
Note: It is recommended to use class constants for service names and parameter names to avoid duplication of hard-coded strings.
## Extension points
Meteor provides some standard extension points into the application:
* CLI commands
* Event subscribers
* Patch strategies
* Patch task handlers
### CLI commands
Meteor uses the [Symfony Console component](http://symfony.com/doc/current/components/console/introduction.html) for the CLI.
Commands within Meteor should ideally extend the `Meteor\Cli\Command\AbstractCommand` class, however it is not a requirement.
A simple example of a command class:
```php
<?php
namespace Jadu\MeteorDemo\Cli\Command;
use Meteor\IO\IOInterface;
use Meteor\Patch\Cli\Command\AbstractCommand;
use Meteor\Platform\PlatformInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class MyFirstCommand extends AbstractCommand
{
/**
* @param InputInterface $input
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
// Do something
}
}
```
To add a new command to Meteor a service definition must be tagged with `cli.command`.
Within your extensions `load` method create a service defintion as shown below:
```php
$definition = new Definition('Jadu\MeteorDemo\Cli\Command\MyFirstCommand', array(
'demo:my-first-command',
'%'.Application::PARAMETER_CONFIG.'%',
new Reference(IOExtension::SERVICE_IO),
new Reference(PlatformExtension::SERVICE_PLATFORM),
));
$definition->addTag(CliExtension::TAG_COMMAND);
$container->setDefinition(self::SERVICE_MY_FIRST_COMMAND, $definition);
```
### Event subscribers
```php
$definition = new Definition('Jadu\MeteorDemo\EventListener\MyEventListener');
$definition->addTag(EventDispatcherExtension::TAG_EVENT_SUBSCRIBER);
$container->setDefinition(self::SERVICE_MY_EVENT_LISTENER, $definition);
```
### Patch strategies
Only load services for the strategy if the strategy is selected in the config. This can be achieved by checking the strategy parameter as shown in the example below:
```php
public function load(ContainerBuilder $container, array $config)
{
if ($container->getParameter(PatchExtension::PARAMETER_STRATEGY) !== self::STRATEGY_NAME) {
return;
}
$definition = new Definition('Jadu\MeteorDemo\Patch\Strategy\DemoPatchStrategy');
$container->setDefinition(PatchExtension::SERVICE_STRATEGY_PREFIX.'.'.self::STRATEGY_NAME, $definition);
}
```
Ensure your strategy service name is in the format `patch.strategy.[strategy name]`. This should be done within your extension using the class constants provided. For example:
```php
PatchExtension::SERVICE_STRATEGY_PREFIX.'.'.self::STRATEGY_NAME
```
Meteor will set the active strategy using the service name and expects it to be in this format. If this pattern isn't followed then Meteor will not be able to find the custom strategy.
### Patch task handlers
```php
$definition = new Definition('Jadu\MeteorDemo\Patch\Task\MyTaskHandler');
$definition->addTag(PatchExtension::TAG_TASK_HANDLER, array(
'task' => 'Jadu\MeteorDemo\Patch\Task\MyTask',
));
$container->setDefinition(self::SERVICE_MY_TASK_HANDLER, $definition);
```
| {
"content_hash": "1f397b0ff16fe0b80b2e6ac0167526e3",
"timestamp": "",
"source": "github",
"line_count": 206,
"max_line_length": 222,
"avg_line_length": 30.902912621359224,
"alnum_prop": 0.75416273955388,
"repo_name": "jadu/meteor",
"id": "6a23ac90d7bba97ba35e1e0d93f6c58a439cf2e8",
"size": "6366",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/_docs/extensions.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "725486"
}
],
"symlink_target": ""
} |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>thread_pool::has_service</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../thread_pool.html" title="thread_pool">
<link rel="prev" href="get_executor.html" title="thread_pool::get_executor">
<link rel="next" href="join.html" title="thread_pool::join">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.thread_pool.has_service"></a><a class="link" href="has_service.html" title="thread_pool::has_service">thread_pool::has_service</a>
</h4></div></div></div>
<p>
<span class="emphasis"><em>Inherited from execution_context.</em></span>
</p>
<p>
<a class="indexterm" name="idp201100832"></a>
Determine if an <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput"><span class="identifier">execution_context</span></code></a> contains a specified
service type.
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span>
<span class="keyword">typename</span> <a class="link" href="../Service.html" title="Service requirements">Service</a><span class="special">></span>
<span class="keyword">friend</span> <span class="keyword">bool</span> <span class="identifier">has_service</span><span class="special">(</span>
<span class="identifier">execution_context</span> <span class="special">&</span> <span class="identifier">e</span><span class="special">);</span>
</pre>
<p>
This function is used to determine whether the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput"><span class="identifier">execution_context</span></code></a> contains a service
object corresponding to the given service type.
</p>
<h6>
<a name="asio.reference.thread_pool.has_service.h0"></a>
<span><a name="asio.reference.thread_pool.has_service.parameters"></a></span><a class="link" href="has_service.html#asio.reference.thread_pool.has_service.parameters">Parameters</a>
</h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">e</span></dt>
<dd><p>
The <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput"><span class="identifier">execution_context</span></code></a> object
that owns the service.
</p></dd>
</dl>
</div>
<h6>
<a name="asio.reference.thread_pool.has_service.h1"></a>
<span><a name="asio.reference.thread_pool.has_service.return_value"></a></span><a class="link" href="has_service.html#asio.reference.thread_pool.has_service.return_value">Return Value</a>
</h6>
<p>
A boolean indicating whether the <a class="link" href="../execution_context.html" title="execution_context"><code class="computeroutput"><span class="identifier">execution_context</span></code></a> contains the
service.
</p>
<h6>
<a name="asio.reference.thread_pool.has_service.h2"></a>
<span><a name="asio.reference.thread_pool.has_service.requirements"></a></span><a class="link" href="has_service.html#asio.reference.thread_pool.has_service.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/thread_pool.hpp</code>
</p>
<p>
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2003-2015 Christopher M.
Kohlhoff<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../thread_pool.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
| {
"content_hash": "02070d93c882ca8c7610b45c6f51bced",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 336,
"avg_line_length": 60.98837209302326,
"alnum_prop": 0.6459485224022878,
"repo_name": "letitvi/VideoGridPlayer",
"id": "de9f1ed0737ce1ce7689ba07f69e9f80b84f72be",
"size": "5245",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "thirdparty/source/asio-1.11.0/doc/asio/reference/thread_pool/has_service.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1189"
},
{
"name": "C++",
"bytes": "26483"
},
{
"name": "Objective-C",
"bytes": "13"
}
],
"symlink_target": ""
} |
package example;
//-*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import javax.swing.*;
public final class MainPanel extends JPanel {
private MainPanel() {
super(new BorderLayout());
SpringLayout layout = new SpringLayout();
JPanel panel = new JPanel(layout);
JLabel l1 = new JLabel("label: 05%, 05%, 90%, 55%", SwingConstants.CENTER);
JButton l2 = new JButton("button: 50%, 65%, 40%, 30%");
//JLabel l2 = new JLabel("label: 50%, 65%, 40%, 30%", SwingConstants.CENTER);
panel.setBorder(BorderFactory.createLineBorder(Color.GREEN, 10));
l1.setOpaque(true);
l1.setBackground(Color.ORANGE);
l1.setBorder(BorderFactory.createLineBorder(Color.RED, 1));
//l2.setBorder(BorderFactory.createLineBorder(Color.GREEN, 1));
setScaleAndAdd(panel, layout, l1, .05f, .05f, .90f, .55f);
setScaleAndAdd(panel, layout, l2, .50f, .65f, .40f, .30f);
//addComponentListener(new ComponentAdapter() {
// @Override public void componentResized(ComponentEvent e) {
// initLayout();
// }
//});
add(panel);
setPreferredSize(new Dimension(320, 240));
}
private static void setScaleAndAdd(JComponent parent, SpringLayout layout, JComponent child, float sx, float sy, float sw, float sh) {
Spring panelw = layout.getConstraint(SpringLayout.WIDTH, parent);
Spring panelh = layout.getConstraint(SpringLayout.HEIGHT, parent);
SpringLayout.Constraints c = layout.getConstraints(child);
c.setX(Spring.scale(panelw, sx));
c.setY(Spring.scale(panelh, sy));
c.setWidth(Spring.scale(panelw, sw));
c.setHeight(Spring.scale(panelh, sh));
parent.add(child);
}
// public void initLayout() {
// SpringLayout layout = new SpringLayout();
// Insets i = panel.getInsets();
// int w = panel.getWidth() - i.left - i.right;
// int h = panel.getHeight() - i.top - i.bottom;
//
// l1.setPreferredSize(new Dimension(w * 90 / 100, h * 55 / 100));
// l2.setPreferredSize(new Dimension(w * 40 / 100, h * 30 / 100));
//
// layout.putConstraint(SpringLayout.WEST, l1, w * 5 / 100, SpringLayout.WEST, panel);
// layout.putConstraint(SpringLayout.NORTH, l1, h * 5 / 100, SpringLayout.NORTH, panel);
// layout.putConstraint(SpringLayout.WEST, l2, w * 50 / 100, SpringLayout.WEST, panel);
// layout.putConstraint(SpringLayout.SOUTH, l2, -h * 5 / 100, SpringLayout.SOUTH, panel);
//
// panel.setLayout(layout);
// panel.revalidate();
// }
public static void main(String... args) {
EventQueue.invokeLater(new Runnable() {
@Override public void run() {
createAndShowGUI();
}
});
}
public static void createAndShowGUI() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
}
JFrame frame = new JFrame("@title@");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.getContentPane().add(new MainPanel());
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}
| {
"content_hash": "48ff563f665f96c43e363d91422a75d2",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 138,
"avg_line_length": 39.94318181818182,
"alnum_prop": 0.6125177809388336,
"repo_name": "aoguren/java-swing-tips",
"id": "3ce656b11b2629f0d9b2c16d6f729a95c65d54f4",
"size": "3515",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "SpringLayout/src/java/example/MainPanel.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "408221"
},
{
"name": "HTML",
"bytes": "214885"
},
{
"name": "Java",
"bytes": "3885129"
},
{
"name": "Shell",
"bytes": "460428"
}
],
"symlink_target": ""
} |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Minn. bot. Stud. 1(Bulletin 9): 660 (1896)
#### Original name
Chromosporium lateritium Cooke & Harkn., 1881
### Remarks
null | {
"content_hash": "74c20b259c4be28e091f517f8e925036",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 45,
"avg_line_length": 16.307692307692307,
"alnum_prop": 0.7028301886792453,
"repo_name": "mdoering/backbone",
"id": "4aaccdcea715f222ae330cfd429f31183737db18",
"size": "296",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Chromosporium/Chromosporium lateritium/ Syn. Coniosporium lateritium/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package io.inbot.redis;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
import redis.clients.jedis.BinaryJedisPubSub;
import redis.clients.jedis.BitOP;
import redis.clients.jedis.BitPosParams;
import redis.clients.jedis.Client;
import redis.clients.jedis.DebugParams;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisMonitor;
import redis.clients.jedis.JedisPubSub;
import redis.clients.jedis.Pipeline;
import redis.clients.jedis.PipelineBlock;
import redis.clients.jedis.ScanParams;
import redis.clients.jedis.ScanResult;
import redis.clients.jedis.Transaction;
import redis.clients.jedis.TransactionBlock;
import redis.clients.util.Pool;
import redis.clients.util.Slowlog;
/**
* Sub class of Jedis that does nothing.
*/
@SuppressWarnings("deprecation")
public class FakeJedis extends Jedis {
private static final Logger LOG = LoggerFactory.getLogger(FakeJedis.class);
private boolean verbose;
private final Map<String,Object> store=new ConcurrentHashMap<>();
public FakeJedis() {
super("localhost");
}
public void verbose(boolean on) {
this.verbose=on;
}
@Override
public Long append(byte[] key, byte[] value) {
return null;
}
@Override
public Long append(String key, String value) {
return null;
}
@Override
public String asking() {
return null;
}
@Override
public String auth(String password) {
return null;
}
@Override
public String bgrewriteaof() {
return null;
}
@Override
public String bgsave() {
return null;
}
@Override
public Long bitcount(byte[] key) {
return null;
}
@Override
public Long bitcount(byte[] key, long start, long end) {
return null;
}
@Override
public Long bitcount(String key) {
return null;
}
@Override
public Long bitcount(String key, long start, long end) {
return null;
}
@Override
public Long bitop(BitOP op, byte[] destKey, byte[]... srcKeys) {
return null;
}
@Override
public Long bitop(BitOP op, String destKey, String... srcKeys) {
return null;
}
@Override
public Long bitpos(byte[] key, boolean value) {
return null;
}
@Override
public Long bitpos(byte[] key, boolean value, BitPosParams params) {
return null;
}
@Override
public Long bitpos(String key, boolean value) {
return null;
}
@Override
public Long bitpos(String key, boolean value, BitPosParams params) {
return null;
}
@Override
public List<byte[]> blpop(byte[] arg) {
return null;
}
@Override
public List<byte[]> blpop(byte[]... args) {
return null;
}
@Override
public List<byte[]> blpop(int timeout, byte[]... keys) {
return null;
}
@Override
public List<String> blpop(int timeout, String... keys) {
return null;
}
@Override
public List<String> blpop(String arg) {
return null;
}
@Override
public List<String> blpop(String... args) {
return null;
}
@Override
public List<byte[]> brpop(byte[] arg) {
return null;
}
@Override
public List<byte[]> brpop(byte[]... args) {
return null;
}
@Override
public List<byte[]> brpop(int timeout, byte[]... keys) {
return null;
}
@Override
public List<String> brpop(int timeout, String... keys) {
return null;
}
@Override
public List<String> brpop(String arg) {
return null;
}
@Override
public List<String> brpop(String... args) {
return null;
}
@Override
public byte[] brpoplpush(byte[] source, byte[] destination, int timeout) {
return null;
}
@Override
public String brpoplpush(String source, String destination, int timeout) {
return null;
}
@Override
public String clientGetname() {
return null;
}
@Override
public String clientKill(byte[] client) {
return null;
}
@Override
public String clientKill(String client) {
return null;
}
@Override
public String clientList() {
return null;
}
@Override
public String clientSetname(byte[] name) {
return null;
}
@Override
public String clientSetname(String name) {
return null;
}
@Override
public void close() {
// since super constructor may create stuff that needs releasing, call super.close
super.close();
}
@Override
public String clusterAddSlots(int... slots) {
return null;
}
@Override
public Long clusterCountKeysInSlot(int slot) {
return null;
}
@Override
public String clusterDelSlots(int... slots) {
return null;
}
@Override
public String clusterFailover() {
return null;
}
@Override
public String clusterFlushSlots() {
return null;
}
@Override
public String clusterForget(String nodeId) {
return null;
}
@Override
public List<String> clusterGetKeysInSlot(int slot, int count) {
return null;
}
@Override
public String clusterInfo() {
return null;
}
@Override
public Long clusterKeySlot(String key) {
return null;
}
@Override
public String clusterMeet(String ip, int port) {
return null;
}
@Override
public String clusterNodes() {
return null;
}
@Override
public String clusterReplicate(String nodeId) {
return null;
}
@Override
public String clusterSaveConfig() {
return null;
}
@Override
public String clusterSetSlotImporting(int slot, String nodeId) {
return null;
}
@Override
public String clusterSetSlotMigrating(int slot, String nodeId) {
return null;
}
@Override
public String clusterSetSlotNode(int slot, String nodeId) {
return null;
}
@Override
public String clusterSetSlotStable(int slot) {
return null;
}
@Override
public List<String> clusterSlaves(String nodeId) {
return null;
}
@Override
public List<byte[]> configGet(byte[] pattern) {
return null;
}
@Override
public List<String> configGet(String pattern) {
return null;
}
@Override
public String configResetStat() {
return null;
}
@Override
public byte[] configSet(byte[] parameter, byte[] value) {
return null;
}
@Override
public String configSet(String parameter, String value) {
return null;
}
@Override
public void connect() {
}
@Override
public Long dbSize() {
return null;
}
@Override
public String debug(DebugParams params) {
return null;
}
@Override
public Long decr(byte[] key) {
return null;
}
@Override
public Long decr(String key) {
return null;
}
@Override
public Long decrBy(byte[] key, long integer) {
return null;
}
@Override
public Long decrBy(String key, long integer) {
return null;
}
@Override
public Long del(byte[] key) {
return null;
}
@Override
public Long del(byte[]... keys) {
return null;
}
@Override
public Long del(String key) {
return null;
}
@Override
public Long del(String... keys) {
return null;
}
@Override
public void disconnect() {
}
@Override
public byte[] dump(byte[] key) {
return null;
}
@Override
public byte[] dump(String key) {
return null;
}
@Override
public byte[] echo(byte[] string) {
return null;
}
@Override
public String echo(String string) {
return null;
}
@Override
public boolean equals(Object obj) {
return obj == this;
}
@Override
public Object eval(byte[] script) {
return null;
}
@Override
public Object eval(byte[] script, byte[] keyCount, byte[]... params) {
return null;
}
@Override
public Object eval(byte[] script, int keyCount, byte[]... params) {
return null;
}
@Override
public Object eval(byte[] script, List<byte[]> keys, List<byte[]> args) {
return null;
}
@Override
public Object eval(String script) {
return null;
}
@Override
public Object eval(String script, int keyCount, String... params) {
return null;
}
@Override
public Object eval(String script, List<String> keys, List<String> args) {
return null;
}
@Override
public Object evalsha(byte[] sha1) {
return null;
}
@Override
public Object evalsha(byte[] sha1, int keyCount, byte[]... params) {
return null;
}
@Override
public Object evalsha(byte[] sha1, List<byte[]> keys, List<byte[]> args) {
return null;
}
@Override
public Object evalsha(String script) {
return null;
}
@Override
public Object evalsha(String sha1, int keyCount, String... params) {
return "";
}
@Override
public Object evalsha(String sha1, List<String> keys, List<String> args) {
return null;
}
@Override
public Boolean exists(byte[] key) {
return false;
}
@Override
public Boolean exists(String key) {
return false;
}
@Override
public Long expire(byte[] key, int seconds) {
return null;
}
@Override
public Long expire(String key, int seconds) {
return null;
}
@Override
public Long expireAt(byte[] key, long unixTime) {
return null;
}
@Override
public Long expireAt(String key, long unixTime) {
return null;
}
@Override
public String flushAll() {
return null;
}
@Override
public String flushDB() {
return null;
}
@Override
public byte[] get(byte[] key) {
return null;
}
@Override
public String get(String key) {
Object value = store.get(key);
if(value==null) {
return null;
}
return value.toString();
}
@Override
public Boolean getbit(byte[] key, long offset) {
return false;
}
@Override
public Boolean getbit(String key, long offset) {
return false;
}
@Override
public Client getClient() {
return null;
}
@Override
public Long getDB() {
return null;
}
@Override
public byte[] getrange(byte[] key, long startOffset, long endOffset) {
return null;
}
@Override
public String getrange(String key, long startOffset, long endOffset) {
return null;
}
@Override
public byte[] getSet(byte[] key, byte[] value) {
return null;
}
@Override
public String getSet(String key, String value) {
return null;
}
@Override
public int hashCode() {
return 1;
}
@Override
public Long hdel(byte[] key, byte[]... fields) {
return null;
}
@Override
public Long hdel(String key, String... fields) {
return null;
}
@Override
public Boolean hexists(byte[] key, byte[] field) {
return false;
}
@Override
public Boolean hexists(String key, String field) {
return false;
}
@Override
public byte[] hget(byte[] key, byte[] field) {
return null;
}
@SuppressWarnings("unchecked")
private Map<String,String> getOrCreateMap(String key) {
Object object = store.get(key);
if(object == null) {
Map<String, String> theMap = new ConcurrentHashMap<>();
store.put(key, theMap);
return theMap;
} else {
return (Map<String, String>) object;
}
}
@Override
public String hget(String key, String field) {
return getOrCreateMap(key).get(field);
}
@Override
public Map<byte[], byte[]> hgetAll(byte[] key) {
return null;
}
@Override
public Map<String, String> hgetAll(String key) {
return Collections.unmodifiableMap(getOrCreateMap(key));
}
@Override
public Long hincrBy(byte[] key, byte[] field, long value) {
return null;
}
@Override
public Long hincrBy(String key, String field, long value) {
return null;
}
@Override
public Double hincrByFloat(byte[] key, byte[] field, double value) {
return null;
}
@Override
public Double hincrByFloat(String key, String field, double value) {
return null;
}
@Override
public Set<byte[]> hkeys(byte[] key) {
return null;
}
@Override
public Set<String> hkeys(String key) {
return getOrCreateMap(key).keySet();
}
@Override
public Long hlen(byte[] key) {
return null;
}
@Override
public Long hlen(String key) {
return (long)getOrCreateMap(key).size();
}
@Override
public List<byte[]> hmget(byte[] key, byte[]... fields) {
return null;
}
@Override
public List<String> hmget(String key, String... fields) {
List<String> results= new ArrayList<>();
for(String f: fields) {
results.add(hget(key, f));
}
return results;
}
@Override
public String hmset(byte[] key, Map<byte[], byte[]> hash) {
return null;
}
@Override
public String hmset(String key, Map<String, String> hash) {
Map<String, String> m = getOrCreateMap(key);
for(Entry<String, String> e: hash.entrySet()) {
m.put(e.getKey(), e.getValue());
}
return "OK";
}
@Override
public ScanResult<Entry<byte[], byte[]>> hscan(byte[] key, byte[] cursor) {
return null;
}
@Override
public ScanResult<Entry<byte[], byte[]>> hscan(byte[] key, byte[] cursor, ScanParams params) {
return null;
}
@Override
public ScanResult<Entry<String, String>> hscan(String key, int cursor) {
return null;
}
@Override
public ScanResult<Entry<String, String>> hscan(String key, int cursor, ScanParams params) {
return null;
}
@Override
public ScanResult<Entry<String, String>> hscan(String key, String cursor) {
return null;
}
@Override
public ScanResult<Entry<String, String>> hscan(String key, String cursor, ScanParams params) {
return null;
}
@Override
public Long hset(byte[] key, byte[] field, byte[] value) {
return null;
}
@Override
public Long hset(String key, String field, String value) {
Map<String, String> m = getOrCreateMap(key);
m.put(field, value);
return null;
}
@Override
public Long hsetnx(byte[] key, byte[] field, byte[] value) {
return null;
}
@Override
public Long hsetnx(String key, String field, String value) {
return null;
}
@Override
public List<byte[]> hvals(byte[] key) {
return null;
}
@Override
public List<String> hvals(String key) {
return null;
}
@Override
public Long incr(byte[] key) {
return null;
}
@Override
public Long incr(String key) {
return null;
}
@Override
public Long incrBy(byte[] key, long integer) {
return null;
}
@Override
public Long incrBy(String key, long integer) {
return null;
}
@Override
public Double incrByFloat(byte[] key, double integer) {
return null;
}
@Override
public Double incrByFloat(String key, double value) {
return null;
}
@Override
public String info() {
return null;
}
@Override
public String info(String section) {
return null;
}
@Override
public boolean isConnected() {
return true;
}
@Override
public Set<byte[]> keys(byte[] pattern) {
return null;
}
@Override
public Set<String> keys(String pattern) {
return null;
}
@Override
public Long lastsave() {
return null;
}
@Override
public byte[] lindex(byte[] key, long index) {
return null;
}
@Override
public String lindex(String key, long index) {
return null;
}
@Override
public Long linsert(byte[] key, LIST_POSITION where, byte[] pivot, byte[] value) {
return null;
}
@Override
public Long linsert(String key, LIST_POSITION where, String pivot, String value) {
return null;
}
@Override
public Long llen(byte[] key) {
return null;
}
@Override
public Long llen(String key) {
return null;
}
@Override
public byte[] lpop(byte[] key) {
return null;
}
@Override
public String lpop(String key) {
return null;
}
@Override
public Long lpush(byte[] key, byte[]... strings) {
return -1l;
}
@Override
public Long lpush(String key, String... strings) {
return -1l;
}
@Override
public Long lpushx(byte[] key, byte[]... string) {
return -1l;
}
@Override
public Long lpushx(String key, String... string) {
return -1l;
}
@Override
public List<byte[]> lrange(byte[] key, long start, long end) {
return null;
}
@Override
public List<String> lrange(String key, long start, long end) {
return null;
}
@Override
public Long lrem(byte[] key, long count, byte[] value) {
return null;
}
@Override
public Long lrem(String key, long count, String value) {
return null;
}
@Override
public String lset(byte[] key, long index, byte[] value) {
return null;
}
@Override
public String lset(String key, long index, String value) {
return null;
}
@Override
public String ltrim(byte[] key, long start, long end) {
return null;
}
@Override
public String ltrim(String key, long start, long end) {
return null;
}
@Override
public List<byte[]> mget(byte[]... keys) {
return null;
}
@Override
public List<String> mget(String... keys) {
return null;
}
@Override
public String migrate(byte[] host, int port, byte[] key, int destinationDb, int timeout) {
return null;
}
@Override
public String migrate(String host, int port, String key, int destinationDb, int timeout) {
return null;
}
@Override
public void monitor(JedisMonitor jedisMonitor) {
}
@Override
public Long move(byte[] key, int dbIndex) {
return null;
}
@Override
public Long move(String key, int dbIndex) {
return null;
}
@Override
public String mset(byte[]... keysvalues) {
return null;
}
@Override
public String mset(String... keysvalues) {
return null;
}
@Override
public Long msetnx(byte[]... keysvalues) {
return null;
}
@Override
public Long msetnx(String... keysvalues) {
return null;
}
@Override
public Transaction multi() {
return null;
}
@Override
public List<Object> multi(TransactionBlock jedisTransaction) {
return null;
}
@Override
public byte[] objectEncoding(byte[] key) {
return null;
}
@Override
public String objectEncoding(String string) {
return null;
}
@Override
public Long objectIdletime(byte[] key) {
return null;
}
@Override
public Long objectIdletime(String string) {
return null;
}
@Override
public Long objectRefcount(byte[] key) {
return null;
}
@Override
public Long objectRefcount(String string) {
return null;
}
@Override
public Long persist(byte[] key) {
return null;
}
@Override
public Long persist(String key) {
return null;
}
@Override
public Long pexpire(byte[] key, int milliseconds) {
return null;
}
@Override
public Long pexpire(byte[] key, long milliseconds) {
return null;
}
@Override
public Long pexpire(String key, int milliseconds) {
return null;
}
@Override
public Long pexpire(String key, long milliseconds) {
return null;
}
@Override
public Long pexpireAt(byte[] key, long millisecondsTimestamp) {
return null;
}
@Override
public Long pexpireAt(String key, long millisecondsTimestamp) {
return null;
}
@Override
public Long pfadd(byte[] key, byte[]... elements) {
return null;
}
@Override
public Long pfadd(String key, String... elements) {
return null;
}
@Override
public long pfcount(byte[] key) {
return 0;
}
@Override
public Long pfcount(byte[]... keys) {
return null;
}
@Override
public long pfcount(String key) {
return 0;
}
@Override
public long pfcount(String... keys) {
return 0;
}
@Override
public String pfmerge(byte[] destkey, byte[]... sourcekeys) {
return null;
}
@Override
public String pfmerge(String destkey, String... sourcekeys) {
return null;
}
@Override
public String ping() {
return null;
}
@Override
public Pipeline pipelined() {
return null;
}
@Override
public List<Object> pipelined(PipelineBlock jedisPipeline) {
return null;
}
@Override
public String psetex(byte[] key, int milliseconds, byte[] value) {
return null;
}
@Override
public String psetex(String key, int milliseconds, String value) {
return null;
}
@Override
public void psubscribe(BinaryJedisPubSub jedisPubSub, byte[]... patterns) {
}
@Override
public void psubscribe(JedisPubSub jedisPubSub, String... patterns) {
}
@Override
public Long pttl(byte[] key) {
return null;
}
@Override
public Long pttl(String key) {
return null;
}
@Override
public Long publish(byte[] channel, byte[] message) {
return null;
}
@Override
public Long publish(String channel, String message) {
return null;
}
@Override
public List<String> pubsubChannels(String pattern) {
return null;
}
@Override
public Long pubsubNumPat() {
return null;
}
@Override
public Map<String, String> pubsubNumSub(String... channels) {
return null;
}
@Override
public String quit() {
return null;
}
@Override
public byte[] randomBinaryKey() {
return null;
}
@Override
public String randomKey() {
return null;
}
@Override
public String rename(byte[] oldkey, byte[] newkey) {
return null;
}
@Override
public String rename(String oldkey, String newkey) {
return null;
}
@Override
public Long renamenx(byte[] oldkey, byte[] newkey) {
return null;
}
@Override
public Long renamenx(String oldkey, String newkey) {
return null;
}
@Override
public void resetState() {
}
@Override
public String restore(byte[] key, int ttl, byte[] serializedValue) {
return null;
}
@Override
public String restore(String key, int ttl, byte[] serializedValue) {
return null;
}
@Override
public byte[] rpop(byte[] key) {
return null;
}
@Override
public String rpop(String key) {
return null;
}
@Override
public byte[] rpoplpush(byte[] srckey, byte[] dstkey) {
return null;
}
@Override
public String rpoplpush(String srckey, String dstkey) {
return null;
}
@Override
public Long rpush(byte[] key, byte[]... strings) {
return null;
}
@Override
public Long rpush(String key, String... strings) {
if(verbose) {
LOG.info("rpush key: {}" + StringUtils.join(strings));
}
return null;
}
@Override
public Long rpushx(byte[] key, byte[]... string) {
return null;
}
@Override
public Long rpushx(String key, String... string) {
return null;
}
@Override
public Long sadd(byte[] key, byte[]... members) {
return null;
}
@Override
public Long sadd(String key, String... members) {
return null;
}
@Override
public String save() {
return null;
}
@Override
public ScanResult<byte[]> scan(byte[] cursor) {
return null;
}
@Override
public ScanResult<byte[]> scan(byte[] cursor, ScanParams params) {
return null;
}
@Override
public ScanResult<String> scan(int cursor) {
return null;
}
@Override
public ScanResult<String> scan(int cursor, ScanParams params) {
return null;
}
@Override
public ScanResult<String> scan(String cursor) {
return null;
}
@Override
public ScanResult<String> scan(String cursor, ScanParams params) {
return null;
}
@Override
public Long scard(byte[] key) {
return null;
}
@Override
public Long scard(String key) {
return null;
}
@Override
public List<Long> scriptExists(byte[]... sha1) {
return null;
}
@Override
public Boolean scriptExists(String sha1) {
return false;
}
@Override
public List<Boolean> scriptExists(String... sha1) {
return null;
}
@Override
public String scriptFlush() {
return null;
}
@Override
public String scriptKill() {
return null;
}
@Override
public byte[] scriptLoad(byte[] script) {
return null;
}
@Override
public String scriptLoad(String script) {
return null;
}
@Override
public Set<byte[]> sdiff(byte[]... keys) {
return null;
}
@Override
public Set<String> sdiff(String... keys) {
return null;
}
@Override
public Long sdiffstore(byte[] dstkey, byte[]... keys) {
return null;
}
@Override
public Long sdiffstore(String dstkey, String... keys) {
return null;
}
@Override
public String select(int index) {
return null;
}
@Override
public String sentinelFailover(String masterName) {
return null;
}
@Override
public List<String> sentinelGetMasterAddrByName(String masterName) {
return null;
}
@Override
public List<Map<String, String>> sentinelMasters() {
return null;
}
@Override
public String sentinelMonitor(String masterName, String ip, int port, int quorum) {
return null;
}
@Override
public String sentinelRemove(String masterName) {
return null;
}
@Override
public Long sentinelReset(String pattern) {
return null;
}
@Override
public String sentinelSet(String masterName, Map<String, String> parameterMap) {
return null;
}
@Override
public List<Map<String, String>> sentinelSlaves(String masterName) {
return null;
}
@Override
public String set(byte[] key, byte[] value) {
return null;
}
@Override
public String set(byte[] key, byte[] value, byte[] nxxx) {
return null;
}
@Override
public String set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, int time) {
return null;
}
@Override
public String set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, long time) {
return null;
}
@Override
public String set(String key, String value) {
return null;
}
@Override
public String set(String key, String value, String nxxx) {
return null;
}
@Override
public String set(String key, String value, String nxxx, String expx, int time) {
return null;
}
@Override
public String set(String key, String value, String nxxx, String expx, long time) {
return null;
}
@Override
public Boolean setbit(byte[] key, long offset, boolean value) {
return false;
}
@Override
public Boolean setbit(byte[] key, long offset, byte[] value) {
return false;
}
@Override
public Boolean setbit(String key, long offset, boolean value) {
return false;
}
@Override
public Boolean setbit(String key, long offset, String value) {
return false;
}
@Override
public void setDataSource(Pool<Jedis> jedisPool) {
}
@Override
public String setex(byte[] key, int seconds, byte[] value) {
return null;
}
@Override
public String setex(String key, int seconds, String value) {
store.put(key, value);
return value;
}
@Override
public Long setnx(byte[] key, byte[] value) {
return null;
}
@Override
public Long setnx(String key, String value) {
return null;
}
@Override
public Long setrange(byte[] key, long offset, byte[] value) {
return null;
}
@Override
public Long setrange(String key, long offset, String value) {
return null;
}
@Override
public String shutdown() {
return null;
}
@Override
public Set<byte[]> sinter(byte[]... keys) {
return null;
}
@Override
public Set<String> sinter(String... keys) {
return null;
}
@Override
public Long sinterstore(byte[] dstkey, byte[]... keys) {
return null;
}
@Override
public Long sinterstore(String dstkey, String... keys) {
return null;
}
@Override
public Boolean sismember(byte[] key, byte[] member) {
return false;
}
@Override
public Boolean sismember(String key, String member) {
return false;
}
@Override
public String slaveof(String host, int port) {
return null;
}
@Override
public String slaveofNoOne() {
return null;
}
@Override
public List<Slowlog> slowlogGet() {
return null;
}
}
| {
"content_hash": "846aad0f27454f9606e52dc5fc36a46d",
"timestamp": "",
"source": "github",
"line_count": 1574,
"max_line_length": 98,
"avg_line_length": 19.759212198221093,
"alnum_prop": 0.582007009420919,
"repo_name": "Inbot/inbot-es-http-client",
"id": "142fed01bbacea4508274b5d57aeb51f9dd58d12",
"size": "31101",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/io/inbot/redis/FakeJedis.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "285225"
}
],
"symlink_target": ""
} |
<bill session="111" type="h" number="782" updated="2009-03-07T11:19:49-05:00">
<status><introduced date="1233118800" datetime="2009-01-28"/></status>
<introduced date="1233118800" datetime="2009-01-28"/>
<titles>
<title type="short" as="introduced">Taxpayer Choice Act of 2009</title>
<title type="official" as="introduced">To amend the Internal Revenue Code of 1986 to repeal the alternative minimum tax on individuals and replace it with an alternative tax individuals may choose.</title>
</titles>
<sponsor id="400351"/>
<cosponsors>
<cosponsor id="400224" joined="2009-01-28"/>
<cosponsor id="400017" joined="2009-01-28"/>
<cosponsor id="400367" joined="2009-01-28"/>
<cosponsor id="400134" joined="2009-01-28"/>
<cosponsor id="412216" joined="2009-01-28"/>
<cosponsor id="400626" joined="2009-01-28"/>
<cosponsor id="400330" joined="2009-01-28"/>
<cosponsor id="400175" joined="2009-01-28"/>
<cosponsor id="400368" joined="2009-01-28"/>
<cosponsor id="412294" joined="2009-01-28"/>
<cosponsor id="400643" joined="2009-01-28"/>
<cosponsor id="400005" joined="2009-01-28"/>
<cosponsor id="400176" joined="2009-01-28"/>
<cosponsor id="400145" joined="2009-01-28"/>
<cosponsor id="400040" joined="2009-03-06"/>
<cosponsor id="400288" joined="2009-01-28"/>
<cosponsor id="412011" joined="2009-01-28"/>
<cosponsor id="412191" joined="2009-01-28"/>
</cosponsors>
<actions>
<action date="1233118800" datetime="2009-01-28"><text>Referred to the House Committee on Ways and Means.</text></action>
</actions>
<committees>
<committee name="House Ways and Means" subcommittee="" activity="Referral, In Committee" />
</committees>
<relatedbills>
</relatedbills>
<subjects>
</subjects>
<amendments>
</amendments>
<summary>
1/28/2009--Introduced.<br/>Taxpayer Choice Act of 2009 - Amends the Internal Revenue Code to: (1) repeal the alternative minimum tax on individual taxpayers after 2008; and (2) allow taxpayers to elect an alternative income tax system.<br/>Makes permanent the capital gains and dividends rate reductions enacted by the Jobs and Growth Tax Relief Reconciliation Act of 2001.<br/>
</summary>
</bill>
| {
"content_hash": "2697e1e2b3475bbd2f840c18f48e7073",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 379,
"avg_line_length": 45.395833333333336,
"alnum_prop": 0.7090408444240477,
"repo_name": "hashrocket/localpolitics.in",
"id": "ffb585a28adf6b59dff0238618d709db8160ea9c",
"size": "2179",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/govtrack/111_bills/h782.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "155887"
},
{
"name": "Ruby",
"bytes": "147059"
}
],
"symlink_target": ""
} |
/*
* This program 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.
*
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
Ext.namespace("Heron.widgets");
/** api: (define)
* module = Heron.widgets
* class = LayerTreePanel
* base_link = `Ext.tree.TreePanel <http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.tree.TreePanel>`_
*/
//var removeLayerAction = new Ext.Action({
// text: "Remove Layer",
// icon: '../images/delete.png',
// disabled: false,
// tooltip: "Remove Layer",
// handler: function () {
// var node = layerTree.getSelectionModel().getSelectedNode();
// if (node && node.layer) {
// var layer = node.layer;
// var store = node.layerStore;
// store.removeAt(store.findBy(function (record) {
// return record.get("layer") === layer
// }))
// }
// }
//});
/** api: constructor
* .. class:: LayerTreePanel(config)
*
* A panel designed to hold trees of Map Layers.
*/
Heron.widgets.LayerTreePanel = Ext.extend(Ext.tree.TreePanel, {
/** api: config[title]
* default value is "Layers".
*/
title: __('Layers'),
/** api: config[textbaselayers]
* default value is "Base Layers".
* Only valid if not using the 'hropts' option
*/
textbaselayers: __('Base Layers'),
/** api: config[textoverlays]
* default value is "Overlays".
* Only valid if not using the 'hropts' option
*/
textoverlays: __('Overlays'),
/** api: config[lines]
* Flag for showing tree lines
* default value is "false".
*/
lines: false,
/** api: config[ordering]
* Ordering of layer in the map comparerd to layertree
* default value is "none" (behaviour as in older versions)
* valid values: 'TopBottom', 'BottomTop', 'none'
*/
ordering: 'none',
/** api: config[layerIcons]
* Which icons to use for Layers in LayerNodes. Values 'default' (use Ext JS standard icons), '
* bylayertype' (Layer-type specific icons, e.g. for raster and vector) or
* 'none' (no, i.e. blanc icon). Default value is default'. Used, unless the Layer Nodes (gx_layer entries) are explicitly
* configured with an 'iconCls', 'cls' or 'icon' config attribute.
*/
layerIcons: 'bylayertype',
layerResolutions: {},
appliedResolution: 0.0,
autoScroll: true,
plugins: [
{
ptype: "gx_treenodecomponent"
}
],
/** api: config[contextMenu]
* Context menu (right-click) for layer nodes, for now instance of Heron.widgets.LayerNodeContextMenu. Default value is null.
*/
contextMenu: null,
blnCustomLayerTree: false,
jsonTreeConfig: null,
initComponent: function () {
var layerTreePanel = this;
var treeConfig;
if (this.hropts && this.hropts.tree) {
this.blnCustomLayerTree = true;
treeConfig = this.hropts.tree;
} else {
treeConfig = [
{
nodeType: "gx_baselayercontainer",
text: this.textbaselayers,
expanded: true
/*,
loader: {
baseAttrs : {checkedGroup: 'gx_baselayer'}
}
*/
},
{
nodeType: "gx_overlaylayercontainer",
text: this.textoverlays
}
]
}
// https://groups.google.com/forum/?fromgroups#!topic/geoext-users-archive/KAHqjTgWm_E
// createIconNode = function(attr) {
// var layer_name = ....;
// attr.icon = '/servicesproxy/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=' + layer_name;
// return GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr);
// };
//
// And then the treepanel looks like:
//
// {
// xtype: "treepanel",
// loader: new Ext.tree.TreeLoader({
// applyLoader: false
// }),
// root: {
// nodeType: "async",
// children: {
// nodeType: "gx_overlaylayercontainer",
// text: 'Some Layers',
// layerStore: myLayerStore,
// leaf: false,
// expanded: true,
// loader: {
// createNode: createIconNode
// }
// }
// }
// }
// using OpenLayers.Format.JSON to create a nice formatted string of the
// configuration for editing it in the UI
this.jsonTreeConfig = new OpenLayers.Format.JSON().write(treeConfig, true);
var layerTree = this;
// custom layer node UI class
var LayerNodeUI = Ext.extend(
GeoExt.tree.LayerNodeUI,
new GeoExt.tree.TreeNodeUIEventMixin()
);
var options = {
// id: "hr-layer-browser",
title: this.title,
// collapseMode: "mini",
autoScroll: true,
containerScroll: true,
loader: new Ext.tree.TreeLoader({
// applyLoader has to be set to false to not interfere with loaders
// of nodes further down the tree hierarchy
applyLoader: false,
uiProviders: {
"custom_ui": LayerNodeUI
},
createNode: function (attr) {
// Use our specialized createNode() function
return layerTreePanel.createNode(this, attr);
}
}),
root: {
nodeType: "async",
baseAttrs: {
uiProvider: "custom_ui"
},
// the children property of an Ext.tree.AsyncTreeNode is used to
// provide an initial set of layer nodes. We use the treeConfig
// from above, that we created with OpenLayers.Format.JSON.write.
children: Ext.decode(this.jsonTreeConfig)
},
rootVisible: false,
// headerCls: 'hr-header-text',
enableDD: true,
lines: this.lines,
listeners: {
contextmenu: function (node, e) {
node.select();
var cm = this.contextMenu;
if (cm) {
cm.contextNode = node;
cm.showAt(e.getXY());
}
},
movenode: function (tree, node, oldParent, newParent, index) {
if ((this.blnCustomLayerTree == true) &&
(this.ordering == 'TopBottom' || this.ordering == 'BottomTop')){
if (node.layer != undefined){
this.setLayerOrder (node);
} else {
this.setLayerOrderFolder (node);
}
}
},
checkchange: function (node, checked) {
if ((this.blnCustomLayerTree == true) &&
(this.ordering == 'TopBottom' || this.ordering == 'BottomTop')){
this.setLayerOrder (node);
}
},
scope: this
}
};
if (this.contextMenu) {
var cmArgs = this.contextMenu instanceof Array ? {items: this.contextMenu} : {};
this.contextMenu = new Heron.widgets.LayerNodeContextMenu(cmArgs);
}
Ext.apply(this, options);
Heron.widgets.LayerTreePanel.superclass.initComponent.call(this);
// Delay processing, since the Map and Layers may not be available.
this.addListener("beforedblclick", this.onBeforeDblClick);
this.addListener("afterrender", this.onAfterRender);
this.addListener("expandnode", this.onExpandNode);
},
createNode: function (treeLoader, attr) {
// Nothing special to do: return Node immediately
var mapPanel = Heron.App.getMapPanel();
if (!mapPanel || !attr.layer || (this.layerIcons == 'default' && !attr.legend)) {
return Ext.tree.TreeLoader.prototype.createNode.call(treeLoader, attr);
}
var layer = undefined;
if (mapPanel && mapPanel.layers instanceof GeoExt.data.LayerStore) {
var layerStore = mapPanel.layers;
var layerIndex = layerStore.findExact('title', attr.layer);
if (layerIndex >= 0) {
var layerRecord = layerStore.getAt(layerIndex);
layer = layerRecord.getLayer();
}
}
if (this.layerIcons == 'none') {
attr.iconCls = 'hr-tree-node-icon-none';
}
// Should we add specific icons for layers?
if (layer) {
var layerType = layer.CLASS_NAME.split('.').slice(-1)[0];
if (this.layerIcons == 'bylayertype' && !(attr.iconCls || attr.cls || attr.icon)) {
// Assign the LayerNode a CSS based on the broad Layer category (kind)
// Default is raster, e.g. WMS, WMTS and TMS
var layerKind = 'raster';
if (layerType == 'Vector') {
layerKind = 'vector';
} else if (layerType == 'Atom') {
layerKind = 'atom';
}
attr.iconCls = 'hr-tree-node-icon-layer-' + layerKind;
}
// Should a LayerLegend be added to the Node text?
if (attr.legend) {
// custom ui needed for evet/plugin interaction
attr.uiProvider = "custom_ui";
// WMS Legend (default) or Vector legend?
var xtype = layerType == 'Vector' ? 'gx_vectorlegend' : 'gx_wmslegend';
// add a WMS or Vector legend to each node created
attr.component = {
xtype: xtype,
layerRecord: layerRecord,
showTitle: false,
// custom class for css positioning
cls: "hr-treenode-legend",
hidden: !layer.getVisibility()
}
}
}
return Ext.tree.TreeLoader.prototype.createNode.call(treeLoader, attr);
},
onBeforeDblClick: function (node, evt) {
// @event beforedblclick
// Fires before double click processing. Return false to cancel the default action.
// @param {Node} this This node
// @param {Ext.EventObject} e The event object
return false;
},
onExpandNode: function (node) {
for (var i = 0; i < node.childNodes.length; i++) {
var child = node.childNodes[i];
if (child.leaf) {
this.setNodeEnabling(child, Heron.App.getMap());
}
}
},
onAfterRender: function () {
var self = this;
var map = Heron.App.getMap();
self.applyMapMoveEnd();
map.events.register('moveend', null, function (evt) {
self.applyMapMoveEnd();
});
},
applyMapMoveEnd: function () {
var map = Heron.App.getMap();
if (map) {
if (map.resolution != this.appliedResolution) {
this.setNodeEnabling(this.getRootNode(), map);
this.appliedResolution = map.resolution;
}
}
},
setNodeEnabling: function (rootNode, map) {
rootNode.cascade(
function (node) {
var layer = node.layer;
if (!layer) {
return;
}
var layerMinResolution = layer.minResolution ? layer.minResolution : map.resolutions[map.resolutions.length - 1];
var layerMaxResolution = layer.maxResolution ? layer.maxResolution : map.resolutions[0];
node.enable();
if (map.resolution < layerMinResolution || map.resolution > layerMaxResolution) {
node.disable();
}
}
);
},
setLayerOrder: function (node){
var map = Heron.App.getMap();
var intLayerNr = this.getLayerNrInTree(node.layer.name);
if (this.ordering == 'TopBottom'){
intLayerNr = Heron.App.getMap().layers.length - intLayerNr - 1 ;
}
if (intLayerNr > 0){
map.setLayerIndex (node.layer, intLayerNr);
}
},
setLayerOrderFolder: function (node){
if (node.attributes.layer != undefined) {
this.setLayerOrder (node)
} else {
for (var i = 0; i < node.childNodes.length; i++){
this.setLayerOrderFolder (node.childNodes[i]);
}
}
},
getLayerNrInTree: function (layerName){
var treePanel = Heron.App.topComponent.findByType('hr_layertreepanel')[0];
this.intLayer = -1;
var blnFound = false;
if (treePanel != null) {
var treeRoot = treePanel.root;
if (treeRoot.childNodes.length > 0){
for (var intTree = 0; intTree < treeRoot.childNodes.length; intTree++){
if (blnFound == false) {
blnFound = this.findLayerInNode (layerName, treeRoot.childNodes[intTree], blnFound)
}
}
}
}
return blnFound ? this.intLayer : -1;
},
findLayerInNode: function (layerName, node, blnFound){
if (blnFound == false){
if (node.attributes.layer != undefined) {
this.intLayer++;
if (node.attributes.layer == layerName){
blnFound = true;
}
} else {
for (var i = 0; i < node.childNodes.length; i++){
blnFound = this.findLayerInNode (layerName, node.childNodes[i], blnFound);
}
}
}
return blnFound;
}
});
/** api: xtype = hr_layertreepanel */
Ext.reg('hr_layertreepanel', Heron.widgets.LayerTreePanel);
| {
"content_hash": "4134247a5cded3db1258e15160397805",
"timestamp": "",
"source": "github",
"line_count": 414,
"max_line_length": 144,
"avg_line_length": 35.408212560386474,
"alnum_prop": 0.5294358414625827,
"repo_name": "pcucurullo/groot",
"id": "828ad972f1fa31219b2522aa27ad881d7b51f49c",
"size": "14659",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "public/js/heron/lib/widgets/LayerTreePanel.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "2870"
},
{
"name": "C",
"bytes": "7006"
},
{
"name": "CSS",
"bytes": "7538133"
},
{
"name": "HTML",
"bytes": "49958485"
},
{
"name": "JavaScript",
"bytes": "60060170"
},
{
"name": "Makefile",
"bytes": "2100"
},
{
"name": "PHP",
"bytes": "4381269"
},
{
"name": "PLpgSQL",
"bytes": "30016"
},
{
"name": "Python",
"bytes": "344097"
},
{
"name": "SQLPL",
"bytes": "17423"
},
{
"name": "Shell",
"bytes": "15692"
},
{
"name": "XSLT",
"bytes": "2204"
}
],
"symlink_target": ""
} |
{% extends "!layout.html" %}
{%- block extrahead %}
{{ super() }}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-58933907-1']);
_gaq.push(['_trackPageview']);
</script>
{% endblock %}
{% block footer %}
{{ super() }}
<div class="footer">Copyright 2015 C. W. <br>
This page uses <a href="http://analytics.google.com/">
Google Analytics</a> to collect statistics. You can disable it by blocking
the JavaScript coming from www.google-analytics.com.
<script type="text/javascript">
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ?
'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
</script>
</div>
{% endblock %}
| {
"content_hash": "1913b17cc26ee0d6be6977ef50c5536f",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 76,
"avg_line_length": 30.571428571428573,
"alnum_prop": 0.633177570093458,
"repo_name": "chfw/Flask-Excel",
"id": "86596e16cabc2b5a424c9b32598a02874c18fed1",
"size": "856",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "docs/source/_templates/layout.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "256"
},
{
"name": "Makefile",
"bytes": "32"
},
{
"name": "Python",
"bytes": "18632"
},
{
"name": "Shell",
"bytes": "102"
}
],
"symlink_target": ""
} |
using System;
using System.ComponentModel;
using NuPattern.ComponentModel.Design;
using NuPattern.Runtime.Bindings.Design;
namespace NuPattern.Runtime.Bindings
{
/// <summary>
/// A custom descriptor that automatically serializes a property binding to Json and exposes
/// the Value and ValueProvider properties for it.
/// </summary>
public class PropertyBindingDescriptor : DelegatingPropertyDescriptor
{
private IPropertyBindingSettings settings;
/// <summary>
/// Initializes a new instance of the <see cref="PropertyBindingDescriptor"/> class.
/// </summary>
/// <param name="innerDescriptor">The inner descriptor.</param>
/// <param name="overriddenAttributes">The optional custom attributes.</param>
public PropertyBindingDescriptor(PropertyDescriptor innerDescriptor, params Attribute[] overriddenAttributes)
: base(innerDescriptor, overriddenAttributes)
{
}
/// <summary>
/// When overridden in a class, determines if the vaue of this property can be reset.
/// </summary>
public override bool CanResetValue(object component)
{
return true;
}
/// <summary>
/// Changes the property type to expose the design Value and ValueProvider type.
/// </summary>
public override Type PropertyType
{
get { return typeof(DesignProperty); }
}
/// <summary>
/// Specifies that the value should be serialized always.
/// </summary>
public override bool ShouldSerializeValue(object component)
{
return true;
}
/// <summary>
/// Always returns <see langword="true"/>.
/// </summary>
public override bool SupportsChangeEvents
{
get { return true; }
}
/// <summary>
/// When overridden in a derived class, gets the current value of the property on a component.
/// </summary>
public override object GetValue(object component)
{
// We cache the settings to avoid paying the serialization cost too often.
// Also, this allows us to track changes more consistently.
if (this.settings == null)
{
var json = base.GetValue(component) as string;
if (string.IsNullOrWhiteSpace(json))
{
this.settings = new PropertyBindingSettings { Name = base.Name };
// Save the value right after instantiation, so that
// subsequent GetValue gets the same instance and
// does not re-create from scratch.
SetValue(component, settings);
}
else
{
// Deserialize always to the concrete type, as we the serializer needs to
// know the type of thing to create.
try
{
this.settings = BindingSerializer.Deserialize<PropertyBindingSettings>(json);
// Make sure the settings property name matches the actual descriptor property name.
if (this.settings.Name != base.Name)
this.settings.Name = base.Name;
}
catch (BindingSerializationException)
{
// This would happen if the value was a raw value from before we had a binding.
// Consider it the property value.
settings = new PropertyBindingSettings
{
Name = base.Name,
Value = json,
};
// Persist updated value.
SetValue(component, settings);
}
}
// Hookup property changed event, which supports nested changes as well. This
// allows us to automatically save the serialized json on every property change.
this.settings.PropertyChanged += OnSettingsChanged;
}
// We know that we're always dealing with a concrete type implementation as it's not
// externally set-able and we always instantiate a PropertyBindingSettings.
return new DesignProperty(this.settings)
{
Type = base.PropertyType,
Attributes = this.AttributeArray
};
}
/// <summary>
/// When overridden in a derived class, sets the value of the component to a different value.
/// </summary>
public override void SetValue(object component, object value)
{
var stringValue = value as string;
var settingsValue = value as IPropertyBindingSettings;
// The setter will be called with a plain string value whenever the standard values editor is
// used to pick the TypeId. So we need to actually set that value on the binding instead.
if (stringValue != null)
{
// Note that the setting of the property Value automatically triggers a property changed
// that will cause the value to be serialized and saved :). Indeed,
// it will be calling the SetValue again, but this time with the entire binding settings
// so it will call the next code branch.
((IPropertyBindingSettings)this.GetValue(component)).Value = stringValue;
}
else if (settingsValue != null)
{
// Someone is explicitly setting the entire binding value, so we have to serialize it straight.
base.SetValue(component, BindingSerializer.Serialize(settingsValue));
// If the previous value was non-null, then we'd be monitoring its property changes
// already, and we'd need to unsubscribe.
if (this.settings != null)
{
this.settings.PropertyChanged -= OnSettingsChanged;
}
// Store for reuse on GetValue, and attach to property changes for auto-save.
this.settings = settingsValue;
this.settings.PropertyChanged += OnSettingsChanged;
}
}
/// <summary>
/// When overridden in a class, resets the property value.
/// </summary>
public override void ResetValue(object component)
{
this.settings.Value = string.Empty;
this.settings.ValueProvider = null;
}
private void OnSettingsChanged(object sender, EventArgs args)
{
// Automatically save the settings on change.
SetValue(sender, this.settings);
}
}
}
| {
"content_hash": "2299b16737edb95e0b7f440b53349abb",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 117,
"avg_line_length": 41.648809523809526,
"alnum_prop": 0.562240960411605,
"repo_name": "NuPattern/NuPattern",
"id": "185715ee79e9d6cd1c44575edfa2ebd2d26c7939",
"size": "6999",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Src/Runtime/Source/Runtime.Extensibility/Bindings/PropertyBindingDescriptor.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "9811"
},
{
"name": "C",
"bytes": "649172"
},
{
"name": "C#",
"bytes": "12727061"
},
{
"name": "C++",
"bytes": "2788"
},
{
"name": "Objective-C",
"bytes": "1501"
}
],
"symlink_target": ""
} |
package com.devicehive.model;
import java.util.Date;
public interface HazelcastEntity {
String getHazelcastKey();
Date getTimestamp();
}
| {
"content_hash": "e0fc3f7e94a690db5003d75bdfee3055",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 34,
"avg_line_length": 18.375,
"alnum_prop": 0.7482993197278912,
"repo_name": "lekster/devicehive-java-server",
"id": "56b31778a316c718b4c35df7ef639ca1db04480b",
"size": "147",
"binary": false,
"copies": "2",
"ref": "refs/heads/development",
"path": "src/main/java/com/devicehive/model/HazelcastEntity.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "23637"
},
{
"name": "HTML",
"bytes": "23344"
},
{
"name": "Java",
"bytes": "1021826"
},
{
"name": "JavaScript",
"bytes": "2025"
},
{
"name": "PLpgSQL",
"bytes": "7978"
}
],
"symlink_target": ""
} |
[](https://travis-ci.org/张校玮/XWKit)
[](http://cocoapods.org/pods/XWKit)
[](http://cocoapods.org/pods/XWKit)
[](http://cocoapods.org/pods/XWKit)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
XWKit is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'XWKit' #引用整个XWKit库
pod "XWKit/XWCalendar" #引用XWCalendar日历子库, 子库是可以单独引用的
pod 'XWKit/Manager'
pod 'XWKit/Utility'
pod 'XWKit/Category'
```
## Author
张校玮, weixiao08@qq.com
## License
XWKit is available under the MIT license. See the LICENSE file for more info.
| {
"content_hash": "12e22238f8a1ae4b5c4cb398fa40450e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 103,
"avg_line_length": 31,
"alnum_prop": 0.7419354838709677,
"repo_name": "shnuzxw/XWKit",
"id": "cb8a7c2e9605b48f95cd153cf5fc763d0829ecbf",
"size": "1030",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "211944"
},
{
"name": "Ruby",
"bytes": "1993"
}
],
"symlink_target": ""
} |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.sql.planner;
import com.facebook.presto.sql.tree.DefaultExpressionTraversalVisitor;
import com.facebook.presto.sql.tree.Expression;
import com.facebook.presto.sql.tree.FunctionCall;
import com.facebook.presto.sql.tree.QualifiedName;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Determines whether a given Expression is deterministic
*/
public class DeterminismEvaluator
{
public static boolean isDeterministic(Expression expression)
{
Preconditions.checkNotNull(expression, "expression is null");
AtomicBoolean deterministic = new AtomicBoolean(true);
new Visitor().process(expression, deterministic);
return deterministic.get();
}
public static Predicate<Expression> deterministic()
{
return new Predicate<Expression>()
{
@Override
public boolean apply(Expression expression)
{
return isDeterministic(expression);
}
};
}
private static class Visitor
extends DefaultExpressionTraversalVisitor<Void, AtomicBoolean>
{
@Override
protected Void visitFunctionCall(FunctionCall node, AtomicBoolean deterministic)
{
// TODO: total hack to figure out if a function is deterministic. martint should fix this when he refactors the planning code
if (node.getName().equals(new QualifiedName("rand")) || node.getName().equals(new QualifiedName("random"))) {
deterministic.set(false);
}
return super.visitFunctionCall(node, deterministic);
}
}
}
| {
"content_hash": "1a5bb74e1c7f179efc6e553bf91f0f8a",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 137,
"avg_line_length": 35.796875,
"alnum_prop": 0.6983849847228285,
"repo_name": "rikima/presto-eclipse-env",
"id": "2a4f9c10f456fef8f804f0eaffb2a1e0dc70cd06",
"size": "2291",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "presto-main/src/main/java/com/facebook/presto/sql/planner/DeterminismEvaluator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package com.zhuoyue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class AuthTest {
@Test
public void contextLoads() {
}
}
| {
"content_hash": "6517ae942f4244e7b56b5ad8a7a749b1",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 60,
"avg_line_length": 20.1875,
"alnum_prop": 0.7770897832817337,
"repo_name": "danielleeht/zhuoyue",
"id": "1dfbb989febc524893e65de37b763acefad58aec",
"size": "323",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "zhuoyue-auth/src/test/java/com/zhuoyue/AuthTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "5152"
},
{
"name": "CSS",
"bytes": "4889"
},
{
"name": "HTML",
"bytes": "38176"
},
{
"name": "Java",
"bytes": "236065"
},
{
"name": "JavaScript",
"bytes": "3830"
},
{
"name": "Shell",
"bytes": "8109"
},
{
"name": "TypeScript",
"bytes": "100848"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SSGL.Helper.Message
{
public class FloatMessageData : IMessageData
{
public float Value { get; set; }
}
}
| {
"content_hash": "430185bb04170dabdd5080bcd6fdfcee",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 48,
"avg_line_length": 18.666666666666668,
"alnum_prop": 0.7008928571428571,
"repo_name": "sivertsenstian/badlands",
"id": "ca53aa2cb9c3b6eaadd6678f30403df719fc3f67",
"size": "226",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SSGL/Helper/Message/FloatMessageData.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "80621"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidConfiguredLogFilters">
<filters>
<filter>
<option name="name" value="app: com.strongarm.timebank.app" />
<option name="packageNamePattern" value="com.strongarm.timebank.app" />
</filter>
</filters>
</component>
<component name="AndroidLayouts">
<shared>
<config>
<target>android-21</target>
</config>
</shared>
<layouts>
<layout url="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml">
<config>
<theme>@android:style/Theme.DeviceDefault</theme>
</config>
</layout>
</layouts>
</component>
<component name="AndroidLogFilters">
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="app: com.strongarm.timebank.app" />
</component>
<component name="ChangeListManager">
<list default="true" id="6df96f32-16da-487a-a05a-d815f07030ee" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" afterPath="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/libraries/appcompat_v7_23_1_0.xml" afterPath="$PROJECT_DIR$/.idea/libraries/appcompat_v7_23_1_0.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/build.gradle" afterPath="$PROJECT_DIR$/app/build.gradle" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/libraries/support_v4_23_1_0.xml" afterPath="$PROJECT_DIR$/.idea/libraries/support_v4_23_1_0.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
</list>
<ignored path="time-bank.iws" />
<ignored path=".idea/workspace.xml" />
<ignored path=".idea/dataSources.local.xml" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="ExternalProjectsManager">
<system id="GRADLE">
<state>
<projects_view />
</state>
</system>
</component>
<component name="FavoritesManager">
<favorites_list name="time-bank" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="MainActivity.java" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/com/strongarm/timebank/app/MainActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="11" column="56" selection-start-line="11" selection-start-column="56" selection-end-line="11" selection-end-column="56" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="activity_main.xml" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml">
<provider editor-type-id="android-designer">
<state />
</provider>
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.1719101">
<caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
<folding>
<element signature="e#1193#1214#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="build.gradle" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="AndroidManifest.xml" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="build.gradle" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-10.703704">
<caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="strings.xml" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/res/values/strings.xml">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="GradleLocalSettings">
<option name="availableProjects">
<map>
<entry>
<key>
<ExternalProjectPojo>
<option name="name" value="time-bank" />
<option name="path" value="$PROJECT_DIR$" />
</ExternalProjectPojo>
</key>
<value>
<list>
<ExternalProjectPojo>
<option name="name" value=":app" />
<option name="path" value="$PROJECT_DIR$/app" />
</ExternalProjectPojo>
<ExternalProjectPojo>
<option name="name" value="time-bank" />
<option name="path" value="$PROJECT_DIR$" />
</ExternalProjectPojo>
</list>
</value>
</entry>
</map>
</option>
<option name="availableTasks">
<map>
<entry key="$PROJECT_DIR$">
<value>
<list>
<ExternalTaskPojo>
<option name="description" value="Displays the Android dependencies of the project." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="androidDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all variants of all applications and secondary packages." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assemble" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all the Test applications." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assembleAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all Debug builds." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assembleDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the android (on device) tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assembleDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the unit tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assembleDebugUnitTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all Release builds." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assembleRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the unit tests for the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="assembleReleaseUnitTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="build" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project and all projects that depend on it." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="buildDependents" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project and all projects it depends on." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="buildNeeded" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all checks." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="check" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="checkDebugManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="checkReleaseManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Deletes the build directory." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="clean" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugAidl" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugAndroidTestAidl" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugAndroidTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugAndroidTestNdk" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugAndroidTestRenderscript" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugAndroidTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugNdk" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugRenderscript" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileDebugUnitTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileLint" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseAidl" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseNdk" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseRenderscript" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="compileReleaseUnitTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs and runs the tests for Debug build on connected devices." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="connectedAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all device checks on currently connected devices." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="connectedCheck" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all device checks using Device Providers and Test Servers." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="deviceCheck" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="dexDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="dexDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="dexRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugAndroidTestAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugAndroidTestBuildConfig" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugAndroidTestResValues" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugAndroidTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugAndroidTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugBuildConfig" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugResValues" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateDebugSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateReleaseAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateReleaseBuildConfig" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateReleaseResValues" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateReleaseResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="generateReleaseSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="installDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs the android (on device) tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="installDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on all variants." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="lint" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="lintDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="lintRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on just the fatal issues in the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="lintVitalRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mergeDebugAndroidTestAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mergeDebugAndroidTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mergeDebugAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mergeDebugResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mergeReleaseAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mergeReleaseResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Creates a version of android.jar that's suitable for unit tests." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="mockableAndroidJar" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="packageDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="packageDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="packageRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preCompileDebugUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preCompileReleaseUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preDebugAndroidTestBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preDebugBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preDexDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preDexDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preDexRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="preReleaseBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Prepare com.android.support:appcompat-v7:23.1.0" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="prepareComAndroidSupportAppcompatV72310Library" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Prepare com.android.support:support-v4:23.1.0" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="prepareComAndroidSupportSupportV42310Library" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="prepareDebugAndroidTestDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="prepareDebugDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="prepareReleaseDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processDebugAndroidTestJavaRes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processDebugAndroidTestManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processDebugAndroidTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processDebugJavaRes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processDebugManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processDebugResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processReleaseJavaRes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processReleaseManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="processReleaseResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the signing info for each variant." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="signingReport" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Run all unit tests." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="test" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Run unit tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="testDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Run unit tests for the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="testRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstall all applications." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="uninstallAll" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstalls the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="uninstallDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstalls the android (on device) tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="uninstallDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstalls the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="uninstallRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="validateDebugSigning" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$" />
<option name="name" value="zipalignDebug" />
</ExternalTaskPojo>
</list>
</value>
</entry>
<entry key="$PROJECT_DIR$/app">
<value>
<list>
<ExternalTaskPojo>
<option name="description" value="Displays the Android dependencies of the project." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="androidDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all variants of all applications and secondary packages." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assemble" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all the Test applications." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assembleAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all Debug builds." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assembleDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the android (on device) tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assembleDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the unit tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assembleDebugUnitTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles all Release builds." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assembleRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles the unit tests for the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="assembleReleaseUnitTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="build" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project and all projects that depend on it." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="buildDependents" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Assembles and tests this project and all projects it depends on." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="buildNeeded" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all checks." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="check" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="checkDebugManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="checkReleaseManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Deletes the build directory." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="clean" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugAidl" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugAndroidTestAidl" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugAndroidTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugAndroidTestNdk" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugAndroidTestRenderscript" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugAndroidTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugNdk" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugRenderscript" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileDebugUnitTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileLint" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseAidl" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseNdk" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseRenderscript" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="compileReleaseUnitTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs and runs the tests for Debug build on connected devices." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="connectedAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all device checks on currently connected devices." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="connectedCheck" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs all device checks using Device Providers and Test Servers." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="deviceCheck" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="dexDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="dexDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="dexRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugAndroidTestAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugAndroidTestBuildConfig" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugAndroidTestResValues" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugAndroidTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugAndroidTestSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugBuildConfig" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugResValues" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateDebugSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateReleaseAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateReleaseBuildConfig" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateReleaseResValues" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateReleaseResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="generateReleaseSources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="installDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Installs the android (on device) tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="installDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on all variants." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="lint" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="lintDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="lintRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Runs lint on just the fatal issues in the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="lintVitalRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mergeDebugAndroidTestAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mergeDebugAndroidTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mergeDebugAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mergeDebugResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mergeReleaseAssets" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mergeReleaseResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Creates a version of android.jar that's suitable for unit tests." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="mockableAndroidJar" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="packageDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="packageDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="packageRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preCompileDebugUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preCompileReleaseUnitTestJava" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preDebugAndroidTestBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preDebugBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preDexDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preDexDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preDexRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="preReleaseBuild" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Prepare com.android.support:appcompat-v7:23.1.0" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="prepareComAndroidSupportAppcompatV72310Library" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Prepare com.android.support:support-v4:23.1.0" />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="prepareComAndroidSupportSupportV42310Library" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="prepareDebugAndroidTestDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="prepareDebugDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="prepareReleaseDependencies" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processDebugAndroidTestJavaRes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processDebugAndroidTestManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processDebugAndroidTestResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processDebugJavaRes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processDebugManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processDebugResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processReleaseJavaRes" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processReleaseManifest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="processReleaseResources" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Displays the signing info for each variant." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="signingReport" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Run all unit tests." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="test" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Run unit tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="testDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Run unit tests for the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="testRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstall all applications." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="uninstallAll" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstalls the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="uninstallDebug" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstalls the android (on device) tests for the Debug build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="uninstallDebugAndroidTest" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="description" value="Uninstalls the Release build." />
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="uninstallRelease" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="validateDebugSigning" />
</ExternalTaskPojo>
<ExternalTaskPojo>
<option name="linkedExternalProjectPath" value="$PROJECT_DIR$/app" />
<option name="name" value="zipalignDebug" />
</ExternalTaskPojo>
</list>
</value>
</entry>
</map>
</option>
<option name="modificationStamps">
<map>
<entry key="$PROJECT_DIR$" value="4338995417842" />
</map>
</option>
<option name="projectBuildClasspath">
<map>
<entry key="$PROJECT_DIR$">
<value>
<ExternalProjectBuildClasspathPojo>
<option name="modulesBuildClasspath">
<map>
<entry key="$PROJECT_DIR$">
<value>
<ExternalModuleBuildClasspathPojo>
<option name="entries">
<list>
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/1.1.1/4dbda9b5c987efdbf981e2552404035db725a45c/gradle-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/1.1.1/bc3550cfdc48e6157376421b2bc95668e00b3229/gradle-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-core/1.1.1/b233ff2f4aa6d7c5c9364fa9bc4c13feecd8ce25/gradle-core-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-core/1.1.1/9bbe327981a993288eb9a0333cf72fbc498a5dc5/gradle-core-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/1.1.1/b3f871cb26e1956f5c97577c1cde0bd7292b44/builder-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/1.1.1/e7e683fca730383dcac87b24a74108257d4b6952/builder-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint/24.1.1/1c5d8c7c776f251c59813e242f2d62e74405ff4d/lint-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint/24.1.1/23d1b05dde18f061da0d9773244fb7d76294c23f/lint-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-gradle/5.1/1052878364479b1eb101e52e625713d2362973bb/proguard-gradle-5.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-gradle/5.1/672d43cbfde4765080e5bea19c51a2cc45dfc00/proguard-gradle-5.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-model/1.1.1/b4aadb2085742460ad3a8f817c86a9023e8a0592/builder-model-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-model/1.1.1/27667723c85dd16f5d8ae0006abd41cf481f1ce9/builder-model-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-test-api/1.1.1/39910596c058b29856b02018e2cab6f17bc811d9/builder-test-api-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-test-api/1.1.1/7dab0c7c7e59f7a2298b6a127c0f80853c354f5a/builder-test-api-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdklib/24.1.1/5c1e391866afb1c829775c060b64864e12669c4a/sdklib-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdklib/24.1.1/d063c51966b6314056226933704a9e4515e9eb77/sdklib-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdk-common/24.1.1/8de7f344d530a788308885f1836dbbc232871595/sdk-common-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdk-common/24.1.1/2a9e517934ac4741b4e01653e11803e2c5e720a7/sdk-common-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/common/24.1.1/7162115fdb9de981d0f0b090166c433d812707c3/common-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/common/24.1.1/dab98097bc5adc894f674c172b1b92bf261b3753/common-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/manifest-merger/24.1.1/77441c2a7700771a36ed05ea51030fdc5f54b573/manifest-merger-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/manifest-merger/24.1.1/23ae02b12c3bd9b875eaffc0d0d849ac1bbf4c81/manifest-merger-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.ddms/ddmlib/24.1.1/4dc60be722a9f462fb99f81dd20d84ed3e8b4b0d/ddmlib-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.ddms/ddmlib/24.1.1/a72a6b9a638a3b5663f75f86d4fc33b4b5ecfb07/ddmlib-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.5.0/1b2a0925ff06220c0261b6fd468183cd9e9a9a47/javawriter-2.5.0-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.5.0/81241ff7078ef14f42ea2a8995fa09c096256e6b/javawriter-2.5.0.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.48/8cff777fce5ef53cc35fa569faa8d12faaf34a78/bcpkix-jdk15on-1.48-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.48/28b7614b908a47844bb27e3c94b45b6893656265/bcpkix-jdk15on-1.48.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.48/3824866f059053c43b118eb5a067ea1800d8c913/bcprov-jdk15on-1.48-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.48/960dea7c9181ba0b17e8bab0c06a43f0a5f04e65/bcprov-jdk15on-1.48.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/f0f24f6666c1a15c7e202e91610476bd4ce59368/asm-5.0.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.3/f0f24f6666c1a15c7e202e91610476bd4ce59368/asm-tree-5.0.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.3/287749b48ba7162fb67c93a026d690b29f410bed/asm-tree-5.0.3.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-checks/24.1.1/57669ed67d1a53942dcc5cd38f2314c57cbba376/lint-checks-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-checks/24.1.1/8e0278769d7b095381892046bb451f6cba6ed68c/lint-checks-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.eclipse.jdt.core.compiler/ecj/4.4/cae5bc498a10b9244168e64f2455cd6d72d4f907/ecj-4.4-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.eclipse.jdt.core.compiler/ecj/4.4/fe0a961ce7cca03dd3c9b3775c0133229e8231a6/ecj-4.4.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-base/5.1/8fe59a34d305b39211bec38479c0e23114d87805/proguard-base-5.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-base/5.1/dc606dd778fe4685be16d5a171782ccfe0ef5637/proguard-base-5.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/annotations/24.1.1/c1c98b381d35b1891d3ec328ef24766aa3615b86/annotations-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/annotations/24.1.1/2f084d6ccfc46bf3a23f3d192b85b10837602aa5/annotations-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.layoutlib/layoutlib-api/24.1.1/b6f21acf7f5558e9cb249e76cdf2eaed361d3744/layoutlib-api-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.layoutlib/layoutlib-api/24.1.1/16ad3bd773aa73a99d883e21120bfe514cbcbd85/layoutlib-api-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/dvlib/24.1.1/5d3d29101c796f2ec732a2d2f02c9fc3cc0bfc0f/dvlib-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/dvlib/24.1.1/1b7e1d2c4715f2ff89646eaf0c26c406ef96df91/dvlib-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.8.1/3caea4421428752206c7a94c3e3097f0c47f1bb8/commons-compress-1.8.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.8.1/a698750c16740fd5b3871425f4cb3bbaa87f529d/commons-compress-1.8.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.1.1/42f6189003f355107f53b937770092517de69710/httpclient-4.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.1.1/3d1d918f32709e33ba7ddb2c4e8d1c543ebe713e/httpclient-4.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.1/3ac83213baeab2b21fde6c0bf47ed68ea3e6a8da/httpmime-4.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.1/9ba2dcdf94ce35c8a8e9bff242db0618ca932e92/httpmime-4.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.2.4/a6dc5db8a12928e583bd3f23e72d3ab611ecd58f/gson-2.2.4-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.2.4/a60a5e993c98c864010053cb901b7eab25306568/gson-2.2.4.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/17.0/7ca0efbeb87ca845b5d7a0ac9c21a4b7b95f7b28/guava-17.0-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/17.0/9c6ef172e8de35fd8d4d8783e4821e57cdef7445/guava-17.0.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.kxml/kxml2/2.3.0/309cd2cff7260e465792fda3dcbb063b730d8050/kxml2-2.3.0-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.kxml/kxml2/2.3.0/ccbc77a5fd907ef863c29f3596c6f54ffa4e9442/kxml2-2.3.0.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-api/24.1.1/ec48c42f7440df39d4d728ef0fbab4e218990a20/lint-api-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-api/24.1.1/58601dc4fef4617832007d914b4b3ffde1f1300b/lint-api-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/5.0.3/f0f24f6666c1a15c7e202e91610476bd4ce59368/asm-analysis-5.0.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/5.0.3/c7126aded0e8e13fed5f913559a0dd7b770a10f3/asm-analysis-5.0.3.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.1/1fdf61e5ba87e0e4676c22677e0b2fe3a05c2fd8/httpcore-4.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.1/33fc26c02f8043ab0ede19eadc8c9885386b255c/httpcore-4.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.1/f3f156cbff0e0fb0d64bfce31a352cce4a33bc19/commons-logging-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.1/5043bfebc3db072ed80fbd362e7caf00e885d8ae/commons-logging-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.4/5310da9f90e843883309e9e0bf5950faa79882a0/commons-codec-1.4-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.4/4216af16d38465bbab0f3dff8efa14204f7a399a/commons-codec-1.4.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.external.lombok/lombok-ast/0.2.3/b4f90836c51edefa4a38c97877b709ed2c15ee32/lombok-ast-0.2.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.external.lombok/lombok-ast/0.2.3/528b6f8bde3157f17530aa366631f2aad2a6cf9/lombok-ast-0.2.3.jar" />
</list>
</option>
<option name="path" value="$PROJECT_DIR$" />
</ExternalModuleBuildClasspathPojo>
</value>
</entry>
<entry key="$PROJECT_DIR$/app">
<value>
<ExternalModuleBuildClasspathPojo>
<option name="entries">
<list>
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/1.1.1/4dbda9b5c987efdbf981e2552404035db725a45c/gradle-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle/1.1.1/bc3550cfdc48e6157376421b2bc95668e00b3229/gradle-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-core/1.1.1/b233ff2f4aa6d7c5c9364fa9bc4c13feecd8ce25/gradle-core-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-core/1.1.1/9bbe327981a993288eb9a0333cf72fbc498a5dc5/gradle-core-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/1.1.1/b3f871cb26e1956f5c97577c1cde0bd7292b44/builder-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder/1.1.1/e7e683fca730383dcac87b24a74108257d4b6952/builder-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint/24.1.1/1c5d8c7c776f251c59813e242f2d62e74405ff4d/lint-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint/24.1.1/23d1b05dde18f061da0d9773244fb7d76294c23f/lint-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-gradle/5.1/1052878364479b1eb101e52e625713d2362973bb/proguard-gradle-5.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-gradle/5.1/672d43cbfde4765080e5bea19c51a2cc45dfc00/proguard-gradle-5.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-model/1.1.1/b4aadb2085742460ad3a8f817c86a9023e8a0592/builder-model-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-model/1.1.1/27667723c85dd16f5d8ae0006abd41cf481f1ce9/builder-model-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-test-api/1.1.1/39910596c058b29856b02018e2cab6f17bc811d9/builder-test-api-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/builder-test-api/1.1.1/7dab0c7c7e59f7a2298b6a127c0f80853c354f5a/builder-test-api-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdklib/24.1.1/5c1e391866afb1c829775c060b64864e12669c4a/sdklib-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdklib/24.1.1/d063c51966b6314056226933704a9e4515e9eb77/sdklib-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdk-common/24.1.1/8de7f344d530a788308885f1836dbbc232871595/sdk-common-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/sdk-common/24.1.1/2a9e517934ac4741b4e01653e11803e2c5e720a7/sdk-common-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/common/24.1.1/7162115fdb9de981d0f0b090166c433d812707c3/common-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/common/24.1.1/dab98097bc5adc894f674c172b1b92bf261b3753/common-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/manifest-merger/24.1.1/77441c2a7700771a36ed05ea51030fdc5f54b573/manifest-merger-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.build/manifest-merger/24.1.1/23ae02b12c3bd9b875eaffc0d0d849ac1bbf4c81/manifest-merger-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.ddms/ddmlib/24.1.1/4dc60be722a9f462fb99f81dd20d84ed3e8b4b0d/ddmlib-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.ddms/ddmlib/24.1.1/a72a6b9a638a3b5663f75f86d4fc33b4b5ecfb07/ddmlib-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.5.0/1b2a0925ff06220c0261b6fd468183cd9e9a9a47/javawriter-2.5.0-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup/javawriter/2.5.0/81241ff7078ef14f42ea2a8995fa09c096256e6b/javawriter-2.5.0.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.48/8cff777fce5ef53cc35fa569faa8d12faaf34a78/bcpkix-jdk15on-1.48-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.48/28b7614b908a47844bb27e3c94b45b6893656265/bcpkix-jdk15on-1.48.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.48/3824866f059053c43b118eb5a067ea1800d8c913/bcprov-jdk15on-1.48-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.48/960dea7c9181ba0b17e8bab0c06a43f0a5f04e65/bcprov-jdk15on-1.48.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/f0f24f6666c1a15c7e202e91610476bd4ce59368/asm-5.0.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/5.0.3/dcc2193db20e19e1feca8b1240dbbc4e190824fa/asm-5.0.3.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.3/f0f24f6666c1a15c7e202e91610476bd4ce59368/asm-tree-5.0.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-tree/5.0.3/287749b48ba7162fb67c93a026d690b29f410bed/asm-tree-5.0.3.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-checks/24.1.1/57669ed67d1a53942dcc5cd38f2314c57cbba376/lint-checks-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-checks/24.1.1/8e0278769d7b095381892046bb451f6cba6ed68c/lint-checks-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.eclipse.jdt.core.compiler/ecj/4.4/cae5bc498a10b9244168e64f2455cd6d72d4f907/ecj-4.4-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.eclipse.jdt.core.compiler/ecj/4.4/fe0a961ce7cca03dd3c9b3775c0133229e8231a6/ecj-4.4.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-base/5.1/8fe59a34d305b39211bec38479c0e23114d87805/proguard-base-5.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.proguard/proguard-base/5.1/dc606dd778fe4685be16d5a171782ccfe0ef5637/proguard-base-5.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/annotations/24.1.1/c1c98b381d35b1891d3ec328ef24766aa3615b86/annotations-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/annotations/24.1.1/2f084d6ccfc46bf3a23f3d192b85b10837602aa5/annotations-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.layoutlib/layoutlib-api/24.1.1/b6f21acf7f5558e9cb249e76cdf2eaed361d3744/layoutlib-api-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.layoutlib/layoutlib-api/24.1.1/16ad3bd773aa73a99d883e21120bfe514cbcbd85/layoutlib-api-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/dvlib/24.1.1/5d3d29101c796f2ec732a2d2f02c9fc3cc0bfc0f/dvlib-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools/dvlib/24.1.1/1b7e1d2c4715f2ff89646eaf0c26c406ef96df91/dvlib-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.8.1/3caea4421428752206c7a94c3e3097f0c47f1bb8/commons-compress-1.8.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.8.1/a698750c16740fd5b3871425f4cb3bbaa87f529d/commons-compress-1.8.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.1.1/42f6189003f355107f53b937770092517de69710/httpclient-4.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.1.1/3d1d918f32709e33ba7ddb2c4e8d1c543ebe713e/httpclient-4.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.1/3ac83213baeab2b21fde6c0bf47ed68ea3e6a8da/httpmime-4.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.1/9ba2dcdf94ce35c8a8e9bff242db0618ca932e92/httpmime-4.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.2.4/a6dc5db8a12928e583bd3f23e72d3ab611ecd58f/gson-2.2.4-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.2.4/a60a5e993c98c864010053cb901b7eab25306568/gson-2.2.4.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/17.0/7ca0efbeb87ca845b5d7a0ac9c21a4b7b95f7b28/guava-17.0-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/17.0/9c6ef172e8de35fd8d4d8783e4821e57cdef7445/guava-17.0.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.kxml/kxml2/2.3.0/309cd2cff7260e465792fda3dcbb063b730d8050/kxml2-2.3.0-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/net.sf.kxml/kxml2/2.3.0/ccbc77a5fd907ef863c29f3596c6f54ffa4e9442/kxml2-2.3.0.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-api/24.1.1/ec48c42f7440df39d4d728ef0fbab4e218990a20/lint-api-24.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.lint/lint-api/24.1.1/58601dc4fef4617832007d914b4b3ffde1f1300b/lint-api-24.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/5.0.3/f0f24f6666c1a15c7e202e91610476bd4ce59368/asm-analysis-5.0.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-analysis/5.0.3/c7126aded0e8e13fed5f913559a0dd7b770a10f3/asm-analysis-5.0.3.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.1/1fdf61e5ba87e0e4676c22677e0b2fe3a05c2fd8/httpcore-4.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.1/33fc26c02f8043ab0ede19eadc8c9885386b255c/httpcore-4.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.1/f3f156cbff0e0fb0d64bfce31a352cce4a33bc19/commons-logging-1.1.1-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.1/5043bfebc3db072ed80fbd362e7caf00e885d8ae/commons-logging-1.1.1.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.4/5310da9f90e843883309e9e0bf5950faa79882a0/commons-codec-1.4-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.4/4216af16d38465bbab0f3dff8efa14204f7a399a/commons-codec-1.4.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.external.lombok/lombok-ast/0.2.3/b4f90836c51edefa4a38c97877b709ed2c15ee32/lombok-ast-0.2.3-sources.jar" />
<option value="$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.android.tools.external.lombok/lombok-ast/0.2.3/528b6f8bde3157f17530aa366631f2aad2a6cf9/lombok-ast-0.2.3.jar" />
<option value="C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/android/support/appcompat-v7/23.1.0/appcompat-v7-23.1.0.aar" />
<option value="C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/android/support/support-v4/23.1.0/support-v4-23.1.0.aar" />
<option value="C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/android/support/support-annotations/23.1.0/support-annotations-23.1.0.jar" />
</list>
</option>
<option name="path" value="$PROJECT_DIR$/app" />
</ExternalModuleBuildClasspathPojo>
</value>
</entry>
</map>
</option>
<option name="name" value="app" />
<option name="projectBuildClasspath">
<list>
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/announce" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/antlr" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/base-services" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/base-services-groovy" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/build-comparison" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/build-init" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/cli" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/code-quality" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/core" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/cunit" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/dependency-management" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/diagnostics" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/ear" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/ide" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/ide-native" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/internal-integ-testing" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/internal-testing" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/ivy" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/jacoco" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/javascript" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/jetty" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/language-groovy" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/language-java" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/language-jvm" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/language-native" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/launcher" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/maven" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/messaging" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/model-core" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/model-groovy" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/native" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/open-api" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/osgi" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/platform-base" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/platform-jvm" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/platform-native" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/plugin-development" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/plugin-use" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/plugins" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/publish" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/reporting" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/resources" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/resources-http" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/scala" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/signing" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/sonar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/tooling-api" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/ui" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/src/wrapper" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/ant-1.9.3.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/ant-launcher-1.9.3.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-base-services-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-base-services-groovy-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-cli-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-core-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-docs-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-launcher-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-messaging-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-model-core-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-model-groovy-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-native-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-open-api-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-resources-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-tooling-api-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-ui-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/gradle-wrapper-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/groovy-all-2.3.6.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/ant-antlr-1.9.3.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-announce-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-antlr-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-build-comparison-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-build-init-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-code-quality-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-cunit-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-dependency-management-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-diagnostics-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-ear-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-ide-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-ide-native-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-ivy-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-jacoco-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-javascript-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-jetty-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-language-groovy-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-language-java-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-language-jvm-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-language-native-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-maven-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-osgi-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-platform-base-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-platform-jvm-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-platform-native-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-plugin-development-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-plugin-use-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-plugins-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-publish-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-reporting-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-resources-http-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-scala-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-signing-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/gradle-sonar-2.2.1.jar" />
<option value="$USER_HOME$/.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1/lib/plugins/ivy-2.2.0.jar" />
<option value="$PROJECT_DIR$/buildSrc/src/main/java" />
<option value="$PROJECT_DIR$/buildSrc/src/main/groovy" />
</list>
</option>
</ExternalProjectBuildClasspathPojo>
</value>
</entry>
</map>
</option>
<option name="externalProjectsViewState">
<projects_view />
</option>
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml" />
<option value="$PROJECT_DIR$/app/build.gradle" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
</component>
<component name="NamedScopeManager">
<order />
</component>
<component name="ProjectFrameBounds">
<option name="x" value="-8" />
<option name="y" value="-8" />
<option name="width" value="1936" />
<option name="height" value="1056" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource ProjectPane="true" />
<autoscrollFromSource ProjectPane="true" />
<sortByType />
</navigator>
<panes>
<pane id="PackagesPane" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="res" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="res" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="values" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="res" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="layout" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="main" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="java" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="time-bank" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="src" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="aspect.path.notification.shown" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="recentsLimit" value="5" />
<property name="ANDROID_EXTENDED_DEVICE_CHOOSER_SERIALS" value="LGH810ec4b4954" />
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
</component>
<component name="RunManager" selected="Android Application.app">
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
<module name="" />
<option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
<option name="PROGRAM_PARAMETERS" />
<method />
</configuration>
<configuration default="true" type="AndroidRunConfigurationType" factoryName="Android Application">
<module name="" />
<option name="ACTIVITY_CLASS" value="" />
<option name="MODE" value="default_activity" />
<option name="DEPLOY" value="true" />
<option name="ARTIFACT_NAME" value="" />
<option name="TARGET_SELECTION_MODE" value="EMULATOR" />
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
<option name="PREFERRED_AVD" value="" />
<option name="USE_COMMAND_LINE" value="true" />
<option name="COMMAND_LINE" value="" />
<option name="WIPE_USER_DATA" value="false" />
<option name="DISABLE_BOOT_ANIMATION" value="false" />
<option name="NETWORK_SPEED" value="full" />
<option name="NETWORK_LATENCY" value="none" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
<option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
<method />
</configuration>
<configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
<module name="" />
<option name="TESTING_TYPE" value="0" />
<option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
<option name="METHOD_NAME" value="" />
<option name="CLASS_NAME" value="" />
<option name="PACKAGE_NAME" value="" />
<option name="TARGET_SELECTION_MODE" value="EMULATOR" />
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
<option name="PREFERRED_AVD" value="" />
<option name="USE_COMMAND_LINE" value="true" />
<option name="COMMAND_LINE" value="" />
<option name="WIPE_USER_DATA" value="false" />
<option name="DISABLE_BOOT_ANIMATION" value="false" />
<option name="NETWORK_SPEED" value="full" />
<option name="NETWORK_LATENCY" value="none" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
<option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
<method />
</configuration>
<configuration default="true" type="Applet" factoryName="Applet">
<option name="WIDTH" value="400" />
<option name="HEIGHT" value="300" />
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
<module />
<method />
</configuration>
<configuration default="true" type="Application" factoryName="Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="" />
<envs />
<method />
</configuration>
<configuration default="true" type="CucumberJavaRunConfigurationType" factoryName="Cucumber java">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<option name="myFilePath" />
<option name="GLUE" />
<option name="myNameFilter" />
<option name="myGeneratedName" />
<option name="MAIN_CLASS_NAME" />
<option name="VM_PARAMETERS" />
<option name="PROGRAM_PARAMETERS" />
<option name="WORKING_DIRECTORY" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="" />
<envs />
<method />
</configuration>
<configuration default="true" type="FlashRunConfigurationType" factoryName="Flash App">
<option name="BCName" value="" />
<option name="IOSSimulatorSdkPath" value="" />
<option name="adlOptions" value="" />
<option name="airProgramParameters" value="" />
<option name="appDescriptorForEmulator" value="Android" />
<option name="debugTransport" value="USB" />
<option name="debuggerSdkRaw" value="BC SDK" />
<option name="emulator" value="NexusOne" />
<option name="emulatorAdlOptions" value="" />
<option name="fastPackaging" value="true" />
<option name="fullScreenHeight" value="0" />
<option name="fullScreenWidth" value="0" />
<option name="launchUrl" value="false" />
<option name="launcherParameters">
<LauncherParameters>
<option name="browser" value="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" />
<option name="launcherType" value="OSDefault" />
<option name="newPlayerInstance" value="false" />
<option name="playerPath" value="FlashPlayerDebugger.exe" />
</LauncherParameters>
</option>
<option name="mobileRunTarget" value="Emulator" />
<option name="moduleName" value="" />
<option name="overriddenMainClass" value="" />
<option name="overriddenOutputFileName" value="" />
<option name="overrideMainClass" value="false" />
<option name="runTrusted" value="true" />
<option name="screenDpi" value="0" />
<option name="screenHeight" value="0" />
<option name="screenWidth" value="0" />
<option name="url" value="http://" />
<option name="usbDebugPort" value="7936" />
<method />
</configuration>
<configuration default="true" type="FlexUnitRunConfigurationType" factoryName="FlexUnit" appDescriptorForEmulator="Android" class_name="" emulatorAdlOptions="" method_name="" package_name="" scope="Class">
<option name="BCName" value="" />
<option name="launcherParameters">
<LauncherParameters>
<option name="browser" value="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" />
<option name="launcherType" value="OSDefault" />
<option name="newPlayerInstance" value="false" />
<option name="playerPath" value="FlashPlayerDebugger.exe" />
</LauncherParameters>
</option>
<option name="moduleName" value="" />
<option name="trusted" value="true" />
<method />
</configuration>
<configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list />
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<method />
</configuration>
<configuration default="true" type="GrailsRunConfigurationType" factoryName="Grails">
<module name="" />
<setting name="vmparams" value="" />
<setting name="cmdLine" value="run-app" />
<setting name="depsClasspath" value="false" />
<setting name="passParentEnv" value="true" />
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<setting name="launchBrowser" value="false" />
<method />
</configuration>
<configuration default="true" type="JUnit" factoryName="JUnit">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="TEST_OBJECT" value="class" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<envs />
<patterns />
<method />
</configuration>
<configuration default="true" type="JarApplication" factoryName="JAR Application">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<envs />
<method />
</configuration>
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
<method />
</configuration>
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
<method />
</configuration>
<configuration default="true" type="Remote" factoryName="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" value="javadebug" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5005" />
<method />
</configuration>
<configuration default="true" type="ScalaTestRunConfiguration" factoryName="ScalaTest">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<extension name="scalaCoverage" />
<module name="" />
<setting name="path" value="" />
<setting name="package" value="" />
<setting name="vmparams" value="" />
<setting name="params" value="" />
<setting name="workingDirectory" value="" />
<setting name="searchForTest" value="Across module dependencies" />
<setting name="testName" value="" />
<setting name="testKind" value="Class" />
<setting name="showProgressMessages" value="true" />
<envs />
<method />
</configuration>
<configuration default="true" type="Specs2RunConfiguration" factoryName="Specs2">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<extension name="scalaCoverage" />
<module name="" />
<setting name="path" value="" />
<setting name="package" value="" />
<setting name="vmparams" value="" />
<setting name="params" value="" />
<setting name="workingDirectory" value="" />
<setting name="searchForTest" value="Across module dependencies" />
<setting name="testName" value="" />
<setting name="testKind" value="Class" />
<setting name="showProgressMessages" value="true" />
<envs />
<method />
</configuration>
<configuration default="true" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<envs />
<method />
</configuration>
<configuration default="true" type="TestNG" factoryName="TestNG">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<module name="" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="SUITE_NAME" />
<option name="PACKAGE_NAME" />
<option name="MAIN_CLASS_NAME" />
<option name="METHOD_NAME" />
<option name="GROUP_NAME" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="VM_PARAMETERS" value="-ea" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="OUTPUT_DIRECTORY" />
<option name="ANNOTATION_TYPE" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<option name="USE_DEFAULT_REPORTERS" value="false" />
<option name="PROPERTIES_FILE" />
<envs />
<properties />
<listeners />
<method />
</configuration>
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
<method />
</configuration>
<configuration default="true" type="osgi.bnd.run" factoryName="Run Launcher">
<method />
</configuration>
<configuration default="true" type="osgi.bnd.run" factoryName="Test Launcher (JUnit)">
<method />
</configuration>
<configuration default="true" type="uTestRunConfiguration" factoryName="utest">
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
<extension name="scalaCoverage" />
<module name="" />
<setting name="path" value="" />
<setting name="package" value="" />
<setting name="vmparams" value="" />
<setting name="params" value="" />
<setting name="workingDirectory" value="" />
<setting name="searchForTest" value="Across module dependencies" />
<setting name="testName" value="" />
<setting name="testKind" value="Class" />
<setting name="showProgressMessages" value="true" />
<envs />
<method />
</configuration>
<configuration default="false" name="app" type="AndroidRunConfigurationType" factoryName="Android Application">
<module name="app" />
<option name="ACTIVITY_CLASS" value="" />
<option name="MODE" value="default_activity" />
<option name="DEPLOY" value="true" />
<option name="ARTIFACT_NAME" value="" />
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
<option name="PREFERRED_AVD" value="" />
<option name="USE_COMMAND_LINE" value="true" />
<option name="COMMAND_LINE" value="" />
<option name="WIPE_USER_DATA" value="false" />
<option name="DISABLE_BOOT_ANIMATION" value="false" />
<option name="NETWORK_SPEED" value="full" />
<option name="NETWORK_LATENCY" value="none" />
<option name="CLEAR_LOGCAT" value="false" />
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
<option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
<method />
</configuration>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Android Application.app" />
</list>
</component>
<component name="SbtLocalSettings">
<option name="lastUpdateTimestamp" value="1446332334560" />
<option name="externalProjectsViewState">
<projects_view />
</option>
</component>
<component name="ShelveChangesManager" show_recycled="false" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="6df96f32-16da-487a-a05a-d815f07030ee" name="Default" comment="" />
<created>1446331592960</created>
<option name="number" value="Default" />
<updated>1446331592960</updated>
<workItem from="1446331613386" duration="786000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="786000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Build Variants" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32946146" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="SBT" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3296875" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32946146" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Android" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32946146" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Memory Monitor" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32946146" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Gradle" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="antWorkspaceConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
<option name="FILTER_TARGETS" value="false" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/app/proguard-rules.pro">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/com/strongarm/timebank/app/MainActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="11" column="56" selection-start-line="11" selection-start-column="56" selection-end-line="11" selection-end-column="56" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/values/strings.xml">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="-10.703704">
<caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/layout/activity_main.xml">
<provider editor-type-id="android-designer">
<state />
</provider>
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.1719101">
<caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
<folding>
<element signature="e#1193#1214#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
<state key="ArtifactsStructureConfigurable.UI">
<settings>
<artifact-editor />
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="FacetStructureConfigurable.UI">
<settings>
<last-edited>Android</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="GlobalLibrariesConfigurable.UI">
<settings>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="JdkListConfigurable.UI">
<settings>
<last-edited>1.7</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ModuleStructureConfigurable.UI">
<settings>
<last-edited>app</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
<option value="0.6" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectJDKs.UI">
<settings>
<last-edited>1.7</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
<state key="ProjectLibrariesConfigurable.UI">
<settings>
<last-edited>appcompat-v7-23.1.0</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project> | {
"content_hash": "baa87188f2377eef084ab8ecd3134c16",
"timestamp": "",
"source": "github",
"line_count": 2163,
"max_line_length": 226,
"avg_line_length": 67.37679149329635,
"alnum_prop": 0.6134174123071856,
"repo_name": "develop-mental/time-bank",
"id": "be3ac317f0d924d2e9c3b88fed96b359a3a714bb",
"size": "145736",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": ".idea/workspace.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "1483"
}
],
"symlink_target": ""
} |
#ifndef AIQCoreLib_AIQSynchronizationManager_h
#define AIQCoreLib_AIQSynchronizationManager_h
#import <Foundation/Foundation.h>
#import "AIQSynchronization.h"
/** Synchronization cycle will start event name.
This is the name of the event generated by NSNotificationCenter when AIQSynchronizationManager starts
the synchronization cycle.
@since 1.0.0
*/
EXTERN_API(NSString *) const AIQWillSynchronizeEvent;
/** Synchronization cycle has finished event name.
This is the name of the event generated by NSNotificationCenter when AIQSynchronizationManager has
finished the synchronization cycle. Note that the outcome of the synchronization may vary. This event
will be fired after emptying the synchronization request queue.
@since 1.0.0
*/
EXTERN_API(NSString *) const AIQSynchronizationCompleteEvent;
/** Default synchronization interval.
This is the default interval in which the synchronization will be performed.
@see synchronizationInterval
@since 1.0.4
*/
EXTERN_API(NSTimeInterval) const AIQSynchronizationInterval;
/** Default synchronization request queue size
This is the default size of queue which stores synchronization requests.
@see queueSize
@since 1.0.4
*/
EXTERN_API(NSUInteger) const AIQSynchronizationQueueSize;
@interface AIQSynchronizationManager : NSObject
/** Time distance between synchronization processes.
This is time distance between two successful synchronization cycles.
*/
@property (nonatomic, assign) NSTimeInterval synchronizationInterval;
/** Synchronization queue size.
Both automatic and forced synchronization requests are added to the queue. If the number of requests exceed
this size, every next request will be ignored.
@see AIQSynchronizationQueueSize
@since 1.0.4
*/
@property (nonatomic, assign) NSUInteger queueSize;
/**---------------------------------------------------------------------------------------
* @name Initialization
* ---------------------------------------------------------------------------------------
*/
/** AIQSynchronizationManager module constructor.
This constructor initializes the AIQSynchronizationManager module for the provided synchronization module.
@param synchronization AIQSynchronization module instance for which to initialize the module. Must not be nil.
@param error If defined, will store an error in case of any failure. May be nil.
@return Initialized AIQSynchronizationManager module or nil if initialization failed, in which case the error parameter will
contain the reason of failure.
@since 1.0.4
*/
- (id)initForSynchronization:(AIQSynchronization *)synchronization error:(NSError **)error;
/** Starts the synchronization manager.
This method can be used to start the synchronization manager. Starting a synchronization manager which is
already running will result in error. Note that the first synchronization will be performed immediately after
the manager is started. In case synchronization fails, exponential backoff mechanism with ration 2.0 is used
(e.g. if synchronization interval is set to 30 seconds, first retry will be performed after 15 seconds, second
after 7.5 seconds, third after 3.75 seconds and then will fall back to initial 30 seconds).
@return YES if it was possible to start the manager, NO otherwise, in which case the error parameter will
contain the reason of failure.
@param error If defined, will store an error in case of any failure. May be nil.
@since 1.0.4
@see stop:
@see isRunning:
*/
- (BOOL)start:(NSError **)error;
/** Stops the synchronization manager.
This method can be used to stop the synchronization manager. Stopping a synchronization manager which is not
running will result in error. Note that stopping the synchronization manager which is in the middle of a
synchronization process will cause this process to be cancelled.
@return YES if it was possible to stop the manager, NO otherwise, in which case the error parameter will
contain the reason of failure.
@param error If defined, will store an error in case of any failure. May be nil.
@since 1.0.4
@see start:
@see isRunning:
*/
- (BOOL)stop:(NSError **)error;
/** Forces the synchronization.
This method can be used to force the synchronization. If a synchronization process is already running, this
synchronization request will be queued unless the queue is full, in which case the request will be ignored.
Note that it is not possible to force synchronization on a synchronization manager which has not been started,
doing so will result in error.
@return YES if it was possible to force the synchronization, NO otherwise, in which case the error parameter will
contain the reason of failure.
@param error If defined, will store an error in case of any failure. May be nil.
@since 1.0.4
@see start:
@see stop:
@see isRunning:
@see isSynchronizing:
*/
- (BOOL)force:(NSError **)error;
- (void)forceWithCompletionHandler:(void (^)(AIQSynchronizationResult))handler;
/** Tells whether the synchronization manager is running.
This method can be used to check if the synchronization manager has been successfully started.
@return YES if the synchronization manager is running, NO otherwise.
@since 1.0.4
@see start:
@see stop
*/
- (BOOL)isRunning;
/** Tells whether the synchronization manager is in the middle of a synchronization process.
This method can be used to check if the synchronization manager is in the middle of a synchronization process.
@return YES if the synchronization manager is in the middle of a synchronization process, NO otherwise.
@since 1.0.4
*/
- (BOOL)isSynchronizing;
@end
#endif /* AIQCoreLib_AIQSynchronizationManager_h */
| {
"content_hash": "4846b69c13b635e7a9320f5925a66873",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 125,
"avg_line_length": 35.117283950617285,
"alnum_prop": 0.7570750571277904,
"repo_name": "appear/AIQCoreLib",
"id": "6b966348109acc39e88490cb5757dd3b0b430f62",
"size": "5941",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Pod/Classes/AIQSynchronizationManager.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "767"
},
{
"name": "Objective-C",
"bytes": "526753"
},
{
"name": "Ruby",
"bytes": "967"
}
],
"symlink_target": ""
} |
FROM balenalib/odroid-xu4-fedora:35-build
RUN dnf -y update \
&& dnf clean all \
&& dnf -y install \
gzip \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
tar \
&& dnf clean all
# set JAVA_HOME
ENV JAVA_HOME /usr/lib/jvm/java-openjdk
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Fedora 35 \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nOpenJDK v8-jre \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo $'#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh | {
"content_hash": "e55f0cf5d74afea13c9a5f88f07cd09b",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 675,
"avg_line_length": 59.04545454545455,
"alnum_prop": 0.7105465742879138,
"repo_name": "resin-io-library/base-images",
"id": "5a82e1b218c7d51455efca57806cd93202931bde",
"size": "1320",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/openjdk/odroid-xu4/fedora/35/8-jre/build/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "71234697"
},
{
"name": "JavaScript",
"bytes": "13096"
},
{
"name": "Shell",
"bytes": "12051936"
},
{
"name": "Smarty",
"bytes": "59789"
}
],
"symlink_target": ""
} |
package edu.uci.isr.xarch.pladiff;
import org.w3c.dom.*;
import edu.uci.isr.xarch.*;
import java.util.*;
/**
* DOM-Based implementation of the IAdd interface.
*
* @author Automatically generated by xArch apigen.
*/
public class AddImpl implements IAdd, DOMBased{
public static final String XSD_TYPE_NSURI = PladiffConstants.NS_URI;
public static final String XSD_TYPE_NAME = "Add";
protected IXArch xArch;
/** Tag name for addStructuralEntitys in this object. */
public static final String ADD_STRUCTURAL_ENTITY_ELT_NAME = "addStructuralEntity";
/** Tag name for addTypeEntitys in this object. */
public static final String ADD_TYPE_ENTITY_ELT_NAME = "addTypeEntity";
protected Element elt;
private static SequenceOrder seqOrd = new SequenceOrder(
new QName[]{
new QName(PladiffConstants.NS_URI, ADD_STRUCTURAL_ENTITY_ELT_NAME),
new QName(PladiffConstants.NS_URI, ADD_TYPE_ENTITY_ELT_NAME)
}
);
public AddImpl(Element elt){
if(elt == null){
throw new IllegalArgumentException("Element cannot be null.");
}
this.elt = elt;
}
public Node getDOMNode(){
return elt;
}
public void setDOMNode(Node node){
if(node.getNodeType() != Node.ELEMENT_NODE){
throw new IllegalArgumentException("Base DOM node of this type must be an Element.");
}
elt = (Element)node;
}
protected static SequenceOrder getSequenceOrder(){
return seqOrd;
}
public void setXArch(IXArch xArch){
this.xArch = xArch;
}
public IXArch getXArch(){
return this.xArch;
}
public IXArchElement cloneElement(int depth){
synchronized(DOMUtils.getDOMLock(elt)){
Document doc = elt.getOwnerDocument();
if(depth == 0){
Element cloneElt = (Element)elt.cloneNode(false);
cloneElt = (Element)doc.importNode(cloneElt, true);
AddImpl cloneImpl = new AddImpl(cloneElt);
cloneImpl.setXArch(getXArch());
return cloneImpl;
}
else if(depth == 1){
Element cloneElt = (Element)elt.cloneNode(false);
cloneElt = (Element)doc.importNode(cloneElt, true);
AddImpl cloneImpl = new AddImpl(cloneElt);
cloneImpl.setXArch(getXArch());
NodeList nl = elt.getChildNodes();
int size = nl.getLength();
for(int i = 0; i < size; i++){
Node n = nl.item(i);
Node cloneNode = (Node)n.cloneNode(false);
cloneNode = doc.importNode(cloneNode, true);
cloneElt.appendChild(cloneNode);
}
return cloneImpl;
}
else /* depth = infinity */{
Element cloneElt = (Element)elt.cloneNode(true);
cloneElt = (Element)doc.importNode(cloneElt, true);
AddImpl cloneImpl = new AddImpl(cloneElt);
cloneImpl.setXArch(getXArch());
return cloneImpl;
}
}
}
//Override 'equals' to be DOM-based...
public boolean equals(Object o){
if(o == null){
return false;
}
if(!(o instanceof DOMBased)){
return super.equals(o);
}
DOMBased db = (DOMBased)o;
Node dbNode = db.getDOMNode();
return dbNode.equals(getDOMNode());
}
//Override 'hashCode' to be based on the underlying node
public int hashCode(){
return getDOMNode().hashCode();
}
/**
* For internal use only.
*/
private static Object makeDerivedWrapper(Element elt, String baseTypeName){
synchronized(DOMUtils.getDOMLock(elt)){
QName typeName = XArchUtils.getXSIType(elt);
if(typeName == null){
return null;
}
else{
if(!DOMUtils.hasXSIType(elt, "http://www.ics.uci.edu/pub/arch/xArch/pladiff.xsd", baseTypeName)){
try{
String packageTitle = XArchUtils.getPackageTitle(typeName.getNamespaceURI());
String packageName = XArchUtils.getPackageName(packageTitle);
String implName = XArchUtils.getImplName(packageName, typeName.getName());
Class c = Class.forName(implName);
java.lang.reflect.Constructor con = c.getConstructor(new Class[]{Element.class});
Object o = con.newInstance(new Object[]{elt});
return o;
}
catch(Exception e){
//Lots of bad things could happen, but this
//is OK, because this is best-effort anyway.
}
}
return null;
}
}
}
public XArchTypeMetadata getTypeMetadata(){
return IAdd.TYPE_METADATA;
}
public XArchInstanceMetadata getInstanceMetadata(){
return new XArchInstanceMetadata(XArchUtils.getPackageTitle(elt.getNamespaceURI()));
}
public void setAddStructuralEntity(IAddStructuralEntity value){
if(!(value instanceof DOMBased)){
throw new IllegalArgumentException("Cannot handle non-DOM-based xArch entities.");
}
{
IAddStructuralEntity oldElt = getAddStructuralEntity();
DOMUtils.removeChildren(elt, PladiffConstants.NS_URI, ADD_STRUCTURAL_ENTITY_ELT_NAME);
IXArch context = getXArch();
if(context != null){
context.fireXArchEvent(
new XArchEvent(this,
XArchEvent.CLEAR_EVENT,
XArchEvent.ELEMENT_CHANGED,
"addStructuralEntity", oldElt,
XArchUtils.getDefaultXArchImplementation().isContainedIn(xArch, this), true)
);
}
}
Element newChildElt = (Element)(((DOMBased)value).getDOMNode());
newChildElt = DOMUtils.cloneAndRename(newChildElt, PladiffConstants.NS_URI, ADD_STRUCTURAL_ENTITY_ELT_NAME);
((DOMBased)value).setDOMNode(newChildElt);
synchronized(DOMUtils.getDOMLock(elt)){
elt.appendChild(newChildElt);
DOMUtils.order(elt, getSequenceOrder());
}
IXArch context = getXArch();
if(context != null){
context.fireXArchEvent(
new XArchEvent(this,
XArchEvent.SET_EVENT,
XArchEvent.ELEMENT_CHANGED,
"addStructuralEntity", value,
XArchUtils.getDefaultXArchImplementation().isContainedIn(xArch, this))
);
}
}
public void clearAddStructuralEntity(){
IAddStructuralEntity oldElt = getAddStructuralEntity();
DOMUtils.removeChildren(elt, PladiffConstants.NS_URI, ADD_STRUCTURAL_ENTITY_ELT_NAME);
IXArch context = getXArch();
if(context != null){
context.fireXArchEvent(
new XArchEvent(this,
XArchEvent.CLEAR_EVENT,
XArchEvent.ELEMENT_CHANGED,
"addStructuralEntity", oldElt,
XArchUtils.getDefaultXArchImplementation().isContainedIn(xArch, this))
);
}
}
public IAddStructuralEntity getAddStructuralEntity(){
NodeList nl = DOMUtils.getChildren(elt, PladiffConstants.NS_URI, ADD_STRUCTURAL_ENTITY_ELT_NAME);
if(nl.getLength() == 0){
return null;
}
else{
Element el = (Element)nl.item(0);
IXArch de = getXArch();
if(de != null){
IXArchElement cachedXArchElt = de.getWrapper(el);
if(cachedXArchElt != null){
return (IAddStructuralEntity)cachedXArchElt;
}
}
Object o = makeDerivedWrapper(el, "AddStructuralEntity");
if(o != null){
try{
((edu.uci.isr.xarch.IXArchElement)o).setXArch(getXArch());
if(de != null){
de.cacheWrapper(el, ((edu.uci.isr.xarch.IXArchElement)o));
}
return (IAddStructuralEntity)o;
}
catch(Exception e){}
}
AddStructuralEntityImpl eltImpl = new AddStructuralEntityImpl(el);
eltImpl.setXArch(getXArch());
if(de != null){
de.cacheWrapper(el, ((edu.uci.isr.xarch.IXArchElement)eltImpl));
}
return eltImpl;
}
}
public boolean hasAddStructuralEntity(IAddStructuralEntity value){
IAddStructuralEntity thisValue = getAddStructuralEntity();
IAddStructuralEntity thatValue = value;
if((thisValue == null) && (thatValue == null)){
return true;
}
else if((thisValue == null) && (thatValue != null)){
return false;
}
else if((thisValue != null) && (thatValue == null)){
return false;
}
return thisValue.isEquivalent(thatValue);
}
public void setAddTypeEntity(IAddTypeEntity value){
if(!(value instanceof DOMBased)){
throw new IllegalArgumentException("Cannot handle non-DOM-based xArch entities.");
}
{
IAddTypeEntity oldElt = getAddTypeEntity();
DOMUtils.removeChildren(elt, PladiffConstants.NS_URI, ADD_TYPE_ENTITY_ELT_NAME);
IXArch context = getXArch();
if(context != null){
context.fireXArchEvent(
new XArchEvent(this,
XArchEvent.CLEAR_EVENT,
XArchEvent.ELEMENT_CHANGED,
"addTypeEntity", oldElt,
XArchUtils.getDefaultXArchImplementation().isContainedIn(xArch, this), true)
);
}
}
Element newChildElt = (Element)(((DOMBased)value).getDOMNode());
newChildElt = DOMUtils.cloneAndRename(newChildElt, PladiffConstants.NS_URI, ADD_TYPE_ENTITY_ELT_NAME);
((DOMBased)value).setDOMNode(newChildElt);
synchronized(DOMUtils.getDOMLock(elt)){
elt.appendChild(newChildElt);
DOMUtils.order(elt, getSequenceOrder());
}
IXArch context = getXArch();
if(context != null){
context.fireXArchEvent(
new XArchEvent(this,
XArchEvent.SET_EVENT,
XArchEvent.ELEMENT_CHANGED,
"addTypeEntity", value,
XArchUtils.getDefaultXArchImplementation().isContainedIn(xArch, this))
);
}
}
public void clearAddTypeEntity(){
IAddTypeEntity oldElt = getAddTypeEntity();
DOMUtils.removeChildren(elt, PladiffConstants.NS_URI, ADD_TYPE_ENTITY_ELT_NAME);
IXArch context = getXArch();
if(context != null){
context.fireXArchEvent(
new XArchEvent(this,
XArchEvent.CLEAR_EVENT,
XArchEvent.ELEMENT_CHANGED,
"addTypeEntity", oldElt,
XArchUtils.getDefaultXArchImplementation().isContainedIn(xArch, this))
);
}
}
public IAddTypeEntity getAddTypeEntity(){
NodeList nl = DOMUtils.getChildren(elt, PladiffConstants.NS_URI, ADD_TYPE_ENTITY_ELT_NAME);
if(nl.getLength() == 0){
return null;
}
else{
Element el = (Element)nl.item(0);
IXArch de = getXArch();
if(de != null){
IXArchElement cachedXArchElt = de.getWrapper(el);
if(cachedXArchElt != null){
return (IAddTypeEntity)cachedXArchElt;
}
}
Object o = makeDerivedWrapper(el, "AddTypeEntity");
if(o != null){
try{
((edu.uci.isr.xarch.IXArchElement)o).setXArch(getXArch());
if(de != null){
de.cacheWrapper(el, ((edu.uci.isr.xarch.IXArchElement)o));
}
return (IAddTypeEntity)o;
}
catch(Exception e){}
}
AddTypeEntityImpl eltImpl = new AddTypeEntityImpl(el);
eltImpl.setXArch(getXArch());
if(de != null){
de.cacheWrapper(el, ((edu.uci.isr.xarch.IXArchElement)eltImpl));
}
return eltImpl;
}
}
public boolean hasAddTypeEntity(IAddTypeEntity value){
IAddTypeEntity thisValue = getAddTypeEntity();
IAddTypeEntity thatValue = value;
if((thisValue == null) && (thatValue == null)){
return true;
}
else if((thisValue == null) && (thatValue != null)){
return false;
}
else if((thisValue != null) && (thatValue == null)){
return false;
}
return thisValue.isEquivalent(thatValue);
}
public boolean isEquivalent(IAdd c){
return (getClass().equals(c.getClass())) &&
hasAddStructuralEntity(c.getAddStructuralEntity()) &&
hasAddTypeEntity(c.getAddTypeEntity()) ;
}
}
| {
"content_hash": "a8db84c23b4e106a9007256cdf5bb5c0",
"timestamp": "",
"source": "github",
"line_count": 380,
"max_line_length": 110,
"avg_line_length": 29.221052631578946,
"alnum_prop": 0.6689481268011528,
"repo_name": "sideshowcecil/myx-monitor",
"id": "d6332df88827e21da8ab72eb6e232dc95af20433",
"size": "12019",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "myx-monitor/src/main/java-apigen/edu/uci/isr/xarch/pladiff/AddImpl.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "15393"
},
{
"name": "Java",
"bytes": "4560114"
}
],
"symlink_target": ""
} |
package tikv_test
import (
"sync"
"time"
gofail "github.com/coreos/gofail/runtime"
. "github.com/pingcap/check"
"github.com/pingcap/tidb"
"github.com/pingcap/tidb/store/tikv"
goctx "golang.org/x/net/context"
)
var _ = Suite(new(testSQLSuite))
type testSQLSuite struct {
store tikv.Storage
}
func (s *testSQLSuite) SetUpSuite(c *C) {
s.store, _ = tikv.NewTestTiKVStorage(false, "")
}
func (s *testSQLSuite) TestFailBusyServerCop(c *C) {
_, err := tidb.BootstrapSession(s.store)
c.Assert(err, IsNil)
session, err := tidb.CreateSession4Test(s.store)
c.Assert(err, IsNil)
var wg sync.WaitGroup
wg.Add(2)
gofail.Enable("github.com/pingcap/tidb/store/tikv/mocktikv/rpcServerBusy", `return(true)`)
go func() {
defer wg.Done()
time.Sleep(time.Millisecond * 100)
gofail.Disable("github.com/pingcap/tidb/store/tikv/mocktikv/rpcServerBusy")
}()
go func() {
defer wg.Done()
rs, err := session.Execute(goctx.Background(), `SELECT variable_value FROM mysql.tidb WHERE variable_name="bootstrapped"`)
c.Assert(err, IsNil)
row, err := rs[0].Next(goctx.Background())
c.Assert(err, IsNil)
c.Assert(row, NotNil)
c.Assert(row.GetString(0), Equals, "True")
}()
wg.Wait()
}
| {
"content_hash": "e783ccee939faefe013cfdee6c138ab4",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 124,
"avg_line_length": 23.134615384615383,
"alnum_prop": 0.7007481296758105,
"repo_name": "spongedu/tidb",
"id": "90cc11391485cd9a5247b6b42ad7bf7fc7f1469a",
"size": "1718",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "store/tikv/sql_fail_test.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "6162969"
},
{
"name": "Makefile",
"bytes": "5418"
},
{
"name": "Shell",
"bytes": "4318"
},
{
"name": "Yacc",
"bytes": "131771"
}
],
"symlink_target": ""
} |
<?php
class SV_ReportImprovements_XenForo_Model_InlineMod_Post extends XFCP_SV_ReportImprovements_XenForo_Model_InlineMod_Post
{
public function deletePosts(array $postIds, array $options = array(), &$errorKey = '', array $viewingUser = null)
{
SV_ReportImprovements_Globals::$deleteContentOptions = $options;
SV_ReportImprovements_Globals::$deleteContentOptions['resolve'] = SV_ReportImprovements_Globals::$ResolveReport;
$ret = parent::deletePosts($postIds, $options, $errorKey, $viewingUser);
SV_ReportImprovements_Globals::$deleteContentOptions = array();
return $ret;
}
}
// ******************** FOR IDE AUTO COMPLETE ********************
if (false)
{
class XFCP_SV_ReportImprovements_XenForo_Model_InlineMod_Post extends XenForo_Model_InlineMod_Post {}
} | {
"content_hash": "30fd6a71c4ad3e4bcef5eb2e7edf83f4",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 120,
"avg_line_length": 40.95,
"alnum_prop": 0.6886446886446886,
"repo_name": "Xon/XenForo-ReportImprovements",
"id": "50c0c505f0bf5a0597ad3e4b2bc77e51ee373f63",
"size": "819",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "upload/library/SV/ReportImprovements/XenForo/Model/InlineMod/Post.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "201459"
}
],
"symlink_target": ""
} |
// Copyright 2019 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 "chrome/browser/hid/hid_chooser_context_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/hid/hid_chooser_context.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
// static
HidChooserContextFactory* HidChooserContextFactory::GetInstance() {
static base::NoDestructor<HidChooserContextFactory> factory;
return factory.get();
}
// static
HidChooserContext* HidChooserContextFactory::GetForProfile(Profile* profile) {
return static_cast<HidChooserContext*>(
GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
HidChooserContext* HidChooserContextFactory::GetForProfileIfExists(
Profile* profile) {
return static_cast<HidChooserContext*>(
GetInstance()->GetServiceForBrowserContext(profile, /*create=*/false));
}
HidChooserContextFactory::HidChooserContextFactory()
: BrowserContextKeyedServiceFactory(
"HidChooserContext",
BrowserContextDependencyManager::GetInstance()) {
DependsOn(HostContentSettingsMapFactory::GetInstance());
}
HidChooserContextFactory::~HidChooserContextFactory() = default;
KeyedService* HidChooserContextFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
return new HidChooserContext(Profile::FromBrowserContext(context));
}
content::BrowserContext* HidChooserContextFactory::GetBrowserContextToUse(
content::BrowserContext* context) const {
return chrome::GetBrowserContextOwnInstanceInIncognito(context);
}
void HidChooserContextFactory::BrowserContextShutdown(
content::BrowserContext* context) {
auto* hid_chooser_context =
GetForProfileIfExists(Profile::FromBrowserContext(context));
if (hid_chooser_context)
hid_chooser_context->FlushScheduledSaveSettingsCalls();
}
| {
"content_hash": "71e43eadb834d96f5c9a4aecf2281cfa",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 80,
"avg_line_length": 36.87719298245614,
"alnum_prop": 0.7897240723120837,
"repo_name": "ric2b/Vivaldi-browser",
"id": "3a43b522764cce71c3d2e24b1f363e37e2720baf",
"size": "2102",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "chromium/chrome/browser/hid/hid_chooser_context_factory.cc",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Aug 31 23:15:51 CEST 2015 -->
<title>Uses of Interface starkcoder.failfast.checks.ICheck (FailFast v.1.3)</title>
<meta name="date" content="2015-08-31">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Interface starkcoder.failfast.checks.ICheck (FailFast v.1.3)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?starkcoder/failfast/checks/class-use/ICheck.html" target="_top">Frames</a></li>
<li><a href="ICheck.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">
<h2 title="Uses of Interface starkcoder.failfast.checks.ICheck" class="title">Uses of Interface<br>starkcoder.failfast.checks.ICheck</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks">starkcoder.failfast.checks</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.generics">starkcoder.failfast.checks.generics</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.generics.arrays">starkcoder.failfast.checks.generics.arrays</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.generics.collections">starkcoder.failfast.checks.generics.collections</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.generics.lists">starkcoder.failfast.checks.generics.lists</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.generics.objects">starkcoder.failfast.checks.generics.objects</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects">starkcoder.failfast.checks.objects</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.booleans">starkcoder.failfast.checks.objects.booleans</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.bytes">starkcoder.failfast.checks.objects.bytes</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.characters">starkcoder.failfast.checks.objects.characters</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.dates">starkcoder.failfast.checks.objects.dates</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.doubles">starkcoder.failfast.checks.objects.doubles</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.enums">starkcoder.failfast.checks.objects.enums</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.floats">starkcoder.failfast.checks.objects.floats</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.integers">starkcoder.failfast.checks.objects.integers</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.longs">starkcoder.failfast.checks.objects.longs</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.shorts">starkcoder.failfast.checks.objects.shorts</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.strings">starkcoder.failfast.checks.objects.strings</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#starkcoder.failfast.checks.objects.uuids">starkcoder.failfast.checks.objects.uuids</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#starkcoder.failfast.contractors.contracts">starkcoder.failfast.contractors.contracts</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="starkcoder.failfast.checks">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/package-summary.html">starkcoder.failfast.checks</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/package-summary.html">starkcoder.failfast.checks</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/IChecker.html" title="interface in starkcoder.failfast.checks">IChecker</a></strong></code>
<div class="block">Specification grouping all checker specifications.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../starkcoder/failfast/checks/package-summary.html">starkcoder.failfast.checks</a> that implement <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html" title="class in starkcoder.failfast.checks">AChecker</a></strong></code>
<div class="block">Abstract implementation of <a href="../../../../starkcoder/failfast/checks/IChecker.html" title="interface in starkcoder.failfast.checks"><code>IChecker</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/Checker.html" title="class in starkcoder.failfast.checks">Checker</a></strong></code>
<div class="block">Default concrete implementation of <a href="../../../../starkcoder/failfast/checks/IChecker.html" title="interface in starkcoder.failfast.checks"><code>IChecker</code></a> using abstract implementation
<a href="../../../../starkcoder/failfast/checks/AChecker.html" title="class in starkcoder.failfast.checks"><code>AChecker</code></a>.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../starkcoder/failfast/checks/package-summary.html">starkcoder.failfast.checks</a> with type arguments of type <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../starkcoder/failfast/contractors/contracts/ICallContract.html" title="interface in starkcoder.failfast.contractors.contracts">ICallContract</a></code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#contructCallContract(java.lang.Object, starkcoder.failfast.checks.IChecker, java.lang.Class, java.lang.Object[], java.lang.Object[])">contructCallContract</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="../../../../starkcoder/failfast/checks/IChecker.html" title="interface in starkcoder.failfast.checks">IChecker</a> assertingChecker,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkSpecification,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] checkArguments,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] checkExtraArguments)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericArrayEqualsImplementation(java.lang.Object, A[], B[], java.lang.Class)">isGenericArrayEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A[] referenceA,
B[] referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericArrayNotEqualsImplementation(java.lang.Object, A[], B[], java.lang.Class)">isGenericArrayNotEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A[] referenceA,
B[] referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericCollectionEqualsImplementation(java.lang.Object, java.util.Collection, java.util.Collection, java.lang.Class)">isGenericCollectionEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><A> referenceA,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><B> referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericCollectionNotEqualsImplementation(java.lang.Object, java.util.Collection, java.util.Collection, java.lang.Class)">isGenericCollectionNotEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><A> referenceA,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><B> referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>> <br>boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericComparableGreaterImplementation(java.lang.Object, T, T, java.lang.Class)">isGenericComparableGreaterImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
T referenceA,
T referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>> <br>boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericComparableGreaterOrEqualsImplementation(java.lang.Object, T, T, java.lang.Class)">isGenericComparableGreaterOrEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
T referenceA,
T referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>> <br>boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericComparableInsideImplementation(java.lang.Object, T, T, T, java.lang.Class)">isGenericComparableInsideImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
T referenceA,
T referenceMin,
T referenceMax,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>> <br>boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericComparableLessImplementation(java.lang.Object, T, T, java.lang.Class)">isGenericComparableLessImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
T referenceA,
T referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>> <br>boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericComparableLessOrEqualsImplementation(java.lang.Object, T, T, java.lang.Class)">isGenericComparableLessOrEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
T referenceA,
T referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><T>> <br>boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericComparableOutsideImplementation(java.lang.Object, T, T, T, java.lang.Class)">isGenericComparableOutsideImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
T referenceA,
T referenceMin,
T referenceMax,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericListEqualsImplementation(java.lang.Object, java.util.List, java.util.List, java.lang.Class)">isGenericListEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><A> referenceA,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><B> referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericListNotEqualsImplementation(java.lang.Object, java.util.List, java.util.List, java.lang.Class)">isGenericListNotEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><A> referenceA,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><B> referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectDefaultImplementation(java.lang.Object, A, A, java.lang.Class)">isGenericObjectDefaultImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A referenceA,
A referenceDefault,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectEqualsImplementation(java.lang.Object, A, B, java.lang.Class)">isGenericObjectEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A referenceA,
B referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectNotDefaultImplementation(java.lang.Object, A, A, java.lang.Class)">isGenericObjectNotDefaultImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A referenceA,
A referenceDefault,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectNotEqualsImplementation(java.lang.Object, A, B, java.lang.Class)">isGenericObjectNotEqualsImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A referenceA,
B referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectNotNullImplementation(java.lang.Object, A, java.lang.Class)">isGenericObjectNotNullImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A reference,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectNotSameImplementation(java.lang.Object, A, B, java.lang.Class)">isGenericObjectNotSameImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A referenceA,
B referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <A> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectNullImplementation(java.lang.Object, A, java.lang.Class)">isGenericObjectNullImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A reference,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <A,B> boolean</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#isGenericObjectSameImplementation(java.lang.Object, A, B, java.lang.Class)">isGenericObjectSameImplementation</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
A referenceA,
B referenceB,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#pushContractWithCaller(java.lang.Object, java.lang.Class, java.lang.Object[])">pushContractWithCaller</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkerSpecification,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] checkArguments)</code>
<div class="block">Call this when a check asserts.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><span class="strong">AChecker.</span><code><strong><a href="../../../../starkcoder/failfast/checks/AChecker.html#pushContractWithCaller(java.lang.Object, java.lang.Class, java.lang.Object[], java.lang.Object[])">pushContractWithCaller</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> caller,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkSpecification,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] checkArguments,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] checkExtraArguments)</code>
<div class="block">Call this when a check asserts.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.generics">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/package-summary.html">starkcoder.failfast.checks.generics</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/package-summary.html">starkcoder.failfast.checks.generics</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/IGenericsChecker.html" title="interface in starkcoder.failfast.checks.generics">IGenericsChecker</a></strong></code>
<div class="block">Specification grouping all generics check specifications.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.generics.arrays">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/arrays/package-summary.html">starkcoder.failfast.checks.generics.arrays</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/arrays/package-summary.html">starkcoder.failfast.checks.generics.arrays</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/arrays/IGenericArrayChecker.html" title="interface in starkcoder.failfast.checks.generics.arrays">IGenericArrayChecker</a></strong></code>
<div class="block">Specification grouping all generic array check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/arrays/IGenericArrayEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.arrays">IGenericArrayEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for generic array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/arrays/IGenericArrayNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.arrays">IGenericArrayNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for generic array.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.generics.collections">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/collections/package-summary.html">starkcoder.failfast.checks.generics.collections</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/collections/package-summary.html">starkcoder.failfast.checks.generics.collections</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/collections/IGenericCollectionChecker.html" title="interface in starkcoder.failfast.checks.generics.collections">IGenericCollectionChecker</a></strong></code>
<div class="block">Specification grouping all generic collection check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/collections/IGenericCollectionEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.collections">IGenericCollectionEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for generic collection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/collections/IGenericCollectionNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.collections">IGenericCollectionNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for generic collection.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.generics.lists">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/lists/package-summary.html">starkcoder.failfast.checks.generics.lists</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/lists/package-summary.html">starkcoder.failfast.checks.generics.lists</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/lists/IGenericListChecker.html" title="interface in starkcoder.failfast.checks.generics.lists">IGenericListChecker</a></strong></code>
<div class="block">Specification grouping all generic list check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/lists/IGenericListEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.lists">IGenericListEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for generic list.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/lists/IGenericListNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.lists">IGenericListNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for generic list.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.generics.objects">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/objects/package-summary.html">starkcoder.failfast.checks.generics.objects</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/generics/objects/package-summary.html">starkcoder.failfast.checks.generics.objects</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectChecker.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectChecker</a></strong></code>
<div class="block">Specification grouping all generic object check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for a generic object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for generic objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectNotNullCheck.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for generic objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectNotSameCheck.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for generic objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectNullCheck.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectNullCheck</a></strong></code>
<div class="block">Specifies a null check for generic objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/generics/objects/IGenericObjectSameCheck.html" title="interface in starkcoder.failfast.checks.generics.objects">IGenericObjectSameCheck</a></strong></code>
<div class="block">Specifies a reference check for generic objects.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/package-summary.html">starkcoder.failfast.checks.objects</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/package-summary.html">starkcoder.failfast.checks.objects</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectArrayChecker.html" title="interface in starkcoder.failfast.checks.objects">IObjectArrayChecker</a></strong></code>
<div class="block">Specification grouping all object array check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectArrayEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectArrayEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Object array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectChecker.html" title="interface in starkcoder.failfast.checks.objects">IObjectChecker</a></strong></code>
<div class="block">Specification grouping all object check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectCollectionChecker.html" title="interface in starkcoder.failfast.checks.objects">IObjectCollectionChecker</a></strong></code>
<div class="block">Specification grouping all object collection check specifications.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectCollectionEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectCollectionEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Object collection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectDefaultCheck</a></strong></code>
<div class="block">Specifies a default value check for Object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Object and derivatives.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectListChecker.html" title="interface in starkcoder.failfast.checks.objects">IObjectListChecker</a></strong></code>
<div class="block">Specification grouping all object list check specifications.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectListEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectListEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Object list.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default value check for Boolean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Object and derivatives.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Object and derivatives.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Object and derivatives.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectNullCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectNullCheck</a></strong></code>
<div class="block">Specifies a null check for Object and derivatives.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectSameCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Object and derivatives.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectsEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectsEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/IObjectsNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects">IObjectsNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Objects.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.booleans">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/booleans/package-summary.html">starkcoder.failfast.checks.objects.booleans</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/booleans/package-summary.html">starkcoder.failfast.checks.objects.booleans</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanChecker.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanChecker</a></strong></code>
<div class="block">Specification grouping all Boolean check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Boolean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Boolean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanFalseCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanFalseCheck</a></strong></code>
<div class="block">Specifies a false check for Boolean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Boolean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Booleans.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Boolean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Boolean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanNullCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanNullCheck</a></strong></code>
<div class="block">Specifies a null check for Boolean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanSameCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Boolean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/booleans/IObjectBooleanTrueCheck.html" title="interface in starkcoder.failfast.checks.objects.booleans">IObjectBooleanTrueCheck</a></strong></code>
<div class="block">Specifies a true check for boolean.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.bytes">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/bytes/package-summary.html">starkcoder.failfast.checks.objects.bytes</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/bytes/package-summary.html">starkcoder.failfast.checks.objects.bytes</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteChecker.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteChecker</a></strong></code>
<div class="block">Specification grouping all Byte check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteLessCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteLessCheck</a></strong></code>
<div class="block">Specifies a less check for Byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteNullCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteNullCheck</a></strong></code>
<div class="block">Specifies a null check for Byte.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Byte.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/bytes/IObjectByteSameCheck.html" title="interface in starkcoder.failfast.checks.objects.bytes">IObjectByteSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Byte.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.characters">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/characters/package-summary.html">starkcoder.failfast.checks.objects.characters</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/characters/package-summary.html">starkcoder.failfast.checks.objects.characters</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterChecker.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterChecker</a></strong></code>
<div class="block">Specification grouping all Character check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterLessCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterLessCheck</a></strong></code>
<div class="block">Specifies a less check for Character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterNullCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterNullCheck</a></strong></code>
<div class="block">Specifies a null check for Character.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Character.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/characters/IObjectCharacterSameCheck.html" title="interface in starkcoder.failfast.checks.objects.characters">IObjectCharacterSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Character.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.dates">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/dates/package-summary.html">starkcoder.failfast.checks.objects.dates</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/dates/package-summary.html">starkcoder.failfast.checks.objects.dates</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateChecker.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateChecker</a></strong></code>
<div class="block">Specification grouping all Date check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateLessCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateLessCheck</a></strong></code>
<div class="block">Specifies a less check for Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateNullCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateNullCheck</a></strong></code>
<div class="block">Specifies a null check for Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/dates/IObjectDateSameCheck.html" title="interface in starkcoder.failfast.checks.objects.dates">IObjectDateSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Date.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.doubles">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/doubles/package-summary.html">starkcoder.failfast.checks.objects.doubles</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/doubles/package-summary.html">starkcoder.failfast.checks.objects.doubles</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleChecker.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleChecker</a></strong></code>
<div class="block">Specification grouping all Double check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleEqualsAlmostCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleEqualsAlmostCheck</a></strong></code>
<div class="block">Specifies an equals check for Double allowing some difference e.g.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Double.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Double.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleLessCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleLessCheck</a></strong></code>
<div class="block">Specifies a less check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Double.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleNotEqualsAlmostCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleNotEqualsAlmostCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Double allowing some difference e.g.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Double.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleNullCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleNullCheck</a></strong></code>
<div class="block">Specifies a null check for Double.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/doubles/IObjectDoubleSameCheck.html" title="interface in starkcoder.failfast.checks.objects.doubles">IObjectDoubleSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Double.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.enums">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/enums/package-summary.html">starkcoder.failfast.checks.objects.enums</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/enums/package-summary.html">starkcoder.failfast.checks.objects.enums</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumChecker.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumChecker</a></strong></code>
<div class="block">Specification grouping all Enum check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumDefaultCheck</a></strong></code>
<div class="block">Specifies a default value check for Enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Enum.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Enum.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumLessCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumLessCheck</a></strong></code>
<div class="block">Specifies a less check for Enum.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default value check for Enum.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Enums.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Enum.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumNullCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumNullCheck</a></strong></code>
<div class="block">Specifies a null check for Enum.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/enums/IObjectEnumSameCheck.html" title="interface in starkcoder.failfast.checks.objects.enums">IObjectEnumSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Enum.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.floats">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/floats/package-summary.html">starkcoder.failfast.checks.objects.floats</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/floats/package-summary.html">starkcoder.failfast.checks.objects.floats</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatChecker.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatChecker</a></strong></code>
<div class="block">Specification grouping all Float check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatEqualsAlmostCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatEqualsAlmostCheck</a></strong></code>
<div class="block">Specifies an equals check for Float allowing some difference e.g.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Float.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Float.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatLessCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatLessCheck</a></strong></code>
<div class="block">Specifies a less check for Float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Float.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatNotEqualsAlmostCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatNotEqualsAlmostCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Float allowing some difference e.g.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Floats.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Float.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatNullCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatNullCheck</a></strong></code>
<div class="block">Specifies a null check for Float.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/floats/IObjectFloatSameCheck.html" title="interface in starkcoder.failfast.checks.objects.floats">IObjectFloatSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Float.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.integers">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/integers/package-summary.html">starkcoder.failfast.checks.objects.integers</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/integers/package-summary.html">starkcoder.failfast.checks.objects.integers</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerChecker.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerChecker</a></strong></code>
<div class="block">Specification grouping all Integer check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Integer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Integer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Integer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Integer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Integer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerLessCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerLessCheck</a></strong></code>
<div class="block">Specifies a less check for Integer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Integer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Integer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Integers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Integer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Integer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerNullCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerNullCheck</a></strong></code>
<div class="block">Specifies a null check for Integer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Integer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/integers/IObjectIntegerSameCheck.html" title="interface in starkcoder.failfast.checks.objects.integers">IObjectIntegerSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Integer.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.longs">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/longs/package-summary.html">starkcoder.failfast.checks.objects.longs</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/longs/package-summary.html">starkcoder.failfast.checks.objects.longs</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongChecker.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongChecker</a></strong></code>
<div class="block">Specification grouping all Long check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Long.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Long.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Long.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongLessCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongLessCheck</a></strong></code>
<div class="block">Specifies a less check for Long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Long.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Longs.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Long.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongNullCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongNullCheck</a></strong></code>
<div class="block">Specifies a null check for Long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Long.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/longs/IObjectLongSameCheck.html" title="interface in starkcoder.failfast.checks.objects.longs">IObjectLongSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Long.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.shorts">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/shorts/package-summary.html">starkcoder.failfast.checks.objects.shorts</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/shorts/package-summary.html">starkcoder.failfast.checks.objects.shorts</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortChecker.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortChecker</a></strong></code>
<div class="block">Specification grouping all Short check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for Short.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for Short.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortInsideCheck</a></strong></code>
<div class="block">Specifies a within check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortLessCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortLessCheck</a></strong></code>
<div class="block">Specifies a less check for Short.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for Short.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for Short.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortNullCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortNullCheck</a></strong></code>
<div class="block">Specifies a null check for Short.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for Short.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/shorts/IObjectShortSameCheck.html" title="interface in starkcoder.failfast.checks.objects.shorts">IObjectShortSameCheck</a></strong></code>
<div class="block">Specifies a reference check for Short.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.strings">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/strings/package-summary.html">starkcoder.failfast.checks.objects.strings</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/strings/package-summary.html">starkcoder.failfast.checks.objects.strings</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringChecker.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringChecker</a></strong></code>
<div class="block">Specification grouping all String check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringDefaultCheck</a></strong></code>
<div class="block">Specifies a default value check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringEmptyCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringEmptyCheck</a></strong></code>
<div class="block">Specifies an empty value check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringLessCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringLessCheck</a></strong></code>
<div class="block">Specifies a less check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringMatchingCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringMatchingCheck</a></strong></code>
<div class="block">Specifies a regex check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default value check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotEmptyCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotEmptyCheck</a></strong></code>
<div class="block">Specifies a not-empty check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for Strings.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotMatchingCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotMatchingCheck</a></strong></code>
<div class="block">Specifies a non-regex check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotNullAndNotEmptyCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotNullAndNotEmptyCheck</a></strong></code>
<div class="block">Specifies a not-null-and-not-empty check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNullCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNullCheck</a></strong></code>
<div class="block">Specifies a null check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringNullOrEmptyCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringNullOrEmptyCheck</a></strong></code>
<div class="block">Specifies a null-or-empty value check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringSameCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringSameCheck</a></strong></code>
<div class="block">Specifies a reference check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringWithoutPostfixCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringWithoutPostfixCheck</a></strong></code>
<div class="block">Specifies a non-postfix check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringWithoutPrefixCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringWithoutPrefixCheck</a></strong></code>
<div class="block">Specifies a non-prefix check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringWithoutSubstringCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringWithoutSubstringCheck</a></strong></code>
<div class="block">Specifies a non-substring check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringWithPostfixCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringWithPostfixCheck</a></strong></code>
<div class="block">Specifies a postfix check for String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringWithPrefixCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringWithPrefixCheck</a></strong></code>
<div class="block">Specifies a prefix check for String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/strings/IObjectStringWithSubstringCheck.html" title="interface in starkcoder.failfast.checks.objects.strings">IObjectStringWithSubstringCheck</a></strong></code>
<div class="block">Specifies a substring check for String.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.checks.objects.uuids">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/uuids/package-summary.html">starkcoder.failfast.checks.objects.uuids</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/checks/objects/uuids/package-summary.html">starkcoder.failfast.checks.objects.uuids</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidChecker.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidChecker</a></strong></code>
<div class="block">Specification grouping all UUID check specifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidDefaultCheck</a></strong></code>
<div class="block">Specifies a default check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidEqualsCheck</a></strong></code>
<div class="block">Specifies an equals check for UUID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidGreaterCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidGreaterCheck</a></strong></code>
<div class="block">Specifies a greater check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidGreaterOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidGreaterOrEqualsCheck</a></strong></code>
<div class="block">Specifies a greater or equals check for UUID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidInsideCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidInsideCheck</a></strong></code>
<div class="block">Specifies a within check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidLessCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidLessCheck</a></strong></code>
<div class="block">Specifies a less check for UUID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidLessOrEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidLessOrEqualsCheck</a></strong></code>
<div class="block">Specifies a less or equals check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidNotDefaultCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidNotDefaultCheck</a></strong></code>
<div class="block">Specifies a not-default check for UUID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidNotEqualsCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidNotEqualsCheck</a></strong></code>
<div class="block">Specifies a not-equals check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidNotNullCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidNotNullCheck</a></strong></code>
<div class="block">Specifies a not-null check for UUID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidNotSameCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidNotSameCheck</a></strong></code>
<div class="block">Specifies a reference check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidNullCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidNullCheck</a></strong></code>
<div class="block">Specifies a null check for UUID.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidOutsideCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidOutsideCheck</a></strong></code>
<div class="block">Specifies a within check for UUID.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><strong><a href="../../../../starkcoder/failfast/checks/objects/uuids/IObjectUuidSameCheck.html" title="interface in starkcoder.failfast.checks.objects.uuids">IObjectUuidSameCheck</a></strong></code>
<div class="block">Specifies a reference check for UUID.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="starkcoder.failfast.contractors.contracts">
<!-- -->
</a>
<h3>Uses of <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a> in <a href="../../../../starkcoder/failfast/contractors/contracts/package-summary.html">starkcoder.failfast.contractors.contracts</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../starkcoder/failfast/contractors/contracts/package-summary.html">starkcoder.failfast.contractors.contracts</a> that return types with arguments of type <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>></code></td>
<td class="colLast"><span class="strong">ICallContract.</span><code><strong><a href="../../../../starkcoder/failfast/contractors/contracts/ICallContract.html#getCheckSpecification()">getCheckSpecification</a></strong>()</code>
<div class="block">The check specification (interface) with specification of asserting check-method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>></code></td>
<td class="colLast"><span class="strong">ACallContract.</span><code><strong><a href="../../../../starkcoder/failfast/contractors/contracts/ACallContract.html#getCheckSpecification()">getCheckSpecification</a></strong>()</code> </td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../starkcoder/failfast/contractors/contracts/package-summary.html">starkcoder.failfast.contractors.contracts</a> with type arguments of type <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">ICallContract.</span><code><strong><a href="../../../../starkcoder/failfast/contractors/contracts/ICallContract.html#setCheckSpecification(java.lang.Class)">setCheckSpecification</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkSpecification)</code>
<div class="block">The check specification (interface) with specification of asserting check-method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="strong">ACallContract.</span><code><strong><a href="../../../../starkcoder/failfast/contractors/contracts/ACallContract.html#setCheckSpecification(java.lang.Class)">setCheckSpecification</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">ICheck</a>> checkSpecification)</code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../starkcoder/failfast/checks/ICheck.html" title="interface in starkcoder.failfast.checks">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?starkcoder/failfast/checks/class-use/ICheck.html" target="_top">Frames</a></li>
<li><a href="ICheck.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><i>The MIT License (MIT) - Copyright © 2014-2015 Keld Oelykke. All Rights Reserved.</i></small></p>
</body>
</html>
| {
"content_hash": "0b051c88ff234cc762342c9cf187bd6c",
"timestamp": "",
"source": "github",
"line_count": 2069,
"max_line_length": 551,
"avg_line_length": 71.52247462542292,
"alnum_prop": 0.7195229085011488,
"repo_name": "KeldOelykke/FailFast",
"id": "b1eceb93390186928d3d607fcfb9f29c48941204",
"size": "147980",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Java/Web/war/releases/1.3/api/starkcoder/failfast/checks/class-use/ICheck.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "18114"
},
{
"name": "HTML",
"bytes": "41796564"
},
{
"name": "Java",
"bytes": "3601840"
},
{
"name": "JavaScript",
"bytes": "21775"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="#d3d3d3">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/detail_layout">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<EditText
android:layout_width="200dp"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:id="@+id/name_field"
android:textColor="#112642"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
/>
<ImageView
android:layout_width="142dp"
android:layout_height="190dp"
android:layout_weight="1"
android:layout_gravity="right"
android:id="@+id/profile_picture"
android:src="@drawable/default_prof_pic" />
</LinearLayout>
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:columnCount="3"
android:rowCount="3"
android:paddingEnd="30dp">
<!--email-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/email_string"
android:id="@+id/textView"
android:layout_row="0"
android:layout_column="0"
android:textSize="30sp"
android:layout_marginRight="50dp"
android:layout_marginLeft="10dp"
android:textColor="#112642" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:id="@+id/email_field"
android:layout_row="0"
android:layout_column="1"
android:textColor="#112642"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
/>
<!--phone-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/phone_string"
android:id="@+id/phone_text"
android:layout_row="1"
android:layout_column="0"
android:textSize="30sp"
android:layout_marginRight="50dp"
android:layout_marginLeft="10dp"
android:textColor="#112642"
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:ems="10"
android:id="@+id/phone_field"
android:layout_row="1"
android:layout_column="1"
android:textColor="#112642"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"/>
<!--address-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/address_string"
android:id="@+id/address_text"
android:layout_row="2"
android:layout_column="0"
android:textSize="30sp"
android:layout_marginRight="50dp"
android:layout_marginLeft="10dp"
android:textColor="#112642"
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:ems="10"
android:id="@+id/address_field"
android:layout_row="2"
android:layout_column="1"
android:textColor="#112642"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
/>
</GridLayout>
<!--notes-->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notes_string"
android:id="@+id/Notes_text"
android:textSize="30sp"
android:layout_marginRight="50dp"
android:layout_marginLeft="10dp"
android:paddingTop="30dp"
android:textColor="#112642"
/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:id="@+id/notes_field"
android:textColor="#112642"
android:clickable="false"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
/>
</LinearLayout>
</ScrollView> | {
"content_hash": "647036051b8103126f78d88c4efd3835",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 76,
"avg_line_length": 36.90909090909091,
"alnum_prop": 0.5238095238095238,
"repo_name": "hzarrabi/Android_Assignments_USC_ITP341",
"id": "8e534bcb8e40b6344d61eec7c0e60760477cecfc",
"size": "6090",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "A5/app/src/main/res/layout/detail_layout.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "69475"
}
],
"symlink_target": ""
} |
var Check = require("./Check.js"),
Index = require("../../lib"),
Grammar = Index.Grammar;
module.exports = Check.inherit({
options: {
/***
* a list of allowed global identifies
* @type Array
*/
excluded: []
},
ctor: function () {
this.callBase();
this.subscribeTo(
Grammar.Identifier
);
},
type: Index.Checks.GlobalLeakCheck,
checkNode: function (node) {
var parentNode = node.parent;
if (parentNode.type === Index.Grammar.VariableDeclarator) {
// a variable declaration cannot leak to global
return;
}
if ((parentNode.type === Index.Grammar.FunctionDeclaration ||
parentNode.type === Index.Grammar.FunctionExpression) && parentNode.hasParameter(node.name)) {
// identifier as part of the parameter list of a function cannot leak
return;
}
if (parentNode.type === Index.Grammar.FunctionDeclaration && parentNode.token.id.name === node.name) {
// name of the function
return;
}
// get the block scope
var lastScope = null,
scope,
evaluatedScopes = [],
scopeTypes = [Index.Grammar.BlockStatement, Index.Grammar.Program],
declarationFound = false;
// find the next scope
// -> check if either a VariableDeclarator or a FunctionDeclaration is found
do {
if (lastScope) {
// search scope form last scope
scope = lastScope.findParent(scopeTypes);
} else {
scope = node.findParent(scopeTypes);
}
(function (scope, lastScope) {
scope.traverse("depthFirst", function (n) {
if (n === lastScope) {
// stop searching
return true;
}
if (n.type === Index.Grammar.VariableDeclarator && n.name === node.name) {
declarationFound = true;
return true;
}
if ((n.type === Index.Grammar.FunctionDeclaration ||
n.type === Index.Grammar.FunctionExpression) && n.hasParameter(node.name)) {
declarationFound = true;
return true;
}
if (n.type === Index.Grammar.FunctionDeclaration && n.token.id.name === node.name) {
declarationFound = true;
return true;
}
return false;
});
})(scope, lastScope);
if (declarationFound) {
// nothing to do anymore
return;
}
lastScope = scope;
} while (scope.type !== Index.Grammar.Program);
this.createViolation("Global leak or global access found for variable '" + node.name + "'.", node);
}
}); | {
"content_hash": "caf683f544c9191890986af03a291181",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 110,
"avg_line_length": 29.160377358490567,
"alnum_prop": 0.48883856357165967,
"repo_name": "it-ony/jscop",
"id": "50fc07efae3f9b36b22fba969f662dc42b678f74",
"size": "3091",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/checks/GlobalLeakCheck.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "72622"
}
],
"symlink_target": ""
} |
var BugzillaClient = function(options) {
options = options || {};
this.username = options.username;
this.password = options.password;
this.apiUrl = options.url ||
(options.test ? "https://api-dev.bugzilla.mozilla.org/test/0.9/"
: "https://api-dev.bugzilla.mozilla.org/0.9/");
}
BugzillaClient.prototype = {
getBug : function(id, params, callback) {
if (!callback) {
callback = params;
params = {};
}
this.APIRequest('/bug/' + id, 'GET', callback, null, null, params);
},
searchBugs : function(params, callback) {
this.APIRequest('/bug', 'GET', callback, 'bugs', null, params);
},
countBugs : function(params, callback) {
this.APIRequest('/count', 'GET', callback, 'data', null, params);
},
updateBug : function(id, bug, callback) {
this.APIRequest('/bug/' + id, 'PUT', callback, 'ok', bug);
},
createBug : function(bug, callback) {
this.APIRequest('/bug', 'POST', callback, 'ref', bug);
},
bugComments : function(id, callback) {
this.APIRequest('/bug/' + id + '/comment', 'GET', callback, 'comments');
},
addComment : function(id, comment, callback) {
this.APIRequest('/bug/' + id + '/comment', 'POST', callback, 'ref', comment);
},
bugHistory : function(id, callback) {
this.APIRequest('/bug/' + id + '/history', 'GET', callback, 'history');
},
bugFlags : function(id, callback) {
this.APIRequest('/bug/' + id + '/flag', 'GET', callback, 'flags');
},
bugAttachments : function(id, callback) {
this.APIRequest('/bug/' + id + '/attachment', 'GET', callback, 'attachments');
},
createAttachment : function(id, attachment, callback) {
this.APIRequest('/bug/' + id + '/attachment', 'POST', callback, 'ref', attachment);
},
getAttachment : function(id, callback) {
this.APIRequest('/attachment/' + id, 'GET', callback);
},
updateAttachment : function(id, attachment, callback) {
this.APIRequest('/attachment/' + id, 'PUT', callback, 'ok', attachment);
},
searchUsers : function(match, callback) {
this.APIRequest('/user', 'GET', callback, 'users', null, {match: match});
},
getUser : function(id, callback) {
this.APIRequest('/user/' + id, 'GET', callback);
},
getConfiguration : function(params, callback) {
if (!callback) {
callback = params;
params = {};
}
this.APIRequest('/configuration', 'GET', callback, null, null, params);
},
APIRequest : function(path, method, callback, field, body, params) {
var url = this.apiUrl + path;
if(this.username && this.password) {
params = params || {};
params.username = this.username;
params.password = this.password;
}
if(params)
url += "?" + this.urlEncode(params);
body = JSON.stringify(body);
try {
XMLHttpRequest = require("api-utils/xhr").XMLHttpRequest; // Addon SDK
}
catch(e) {}
var that = this;
if(typeof XMLHttpRequest != "undefined") {
// in a browser
var req = new XMLHttpRequest();
req.open(method, url, true);
req.setRequestHeader("Accept", "application/json");
if (method.toUpperCase() !== "GET") {
req.setRequestHeader("Content-type", "application/json");
}
req.onreadystatechange = function (event) {
if (req.readyState == 4) {
that.handleResponse(null, req, callback, field);
}
};
req.send(body);
}
else {
/* node 'request' package */
require("request")({
uri: url,
method: method,
body: body,
headers: {'Content-type': 'application/json'}
},
function (err, resp, body) {
that.handleResponse(err, {
status: resp && resp.statusCode,
responseText: body
}, callback, field);
}
);
}
},
handleResponse : function(err, response, callback, field) {
var error, json;
if(err)
error = err;
else if(response.status >= 300 || response.status < 200)
error = "HTTP status " + response.status;
else {
try {
json = JSON.parse(response.responseText);
} catch(e) {
error = "Response wasn't valid json: '" + response.responseText + "'";
}
}
if(json && json.error)
error = json.error.message;
var ret;
if(!error) {
ret = field ? json[field] : json;
if(field == 'ref') {// creation returns API ref url with id of created object at end
var match = ret.match(/(\d+)$/);
ret = match ? parseInt(match[0]) : true;
}
}
callback(error, ret);
},
urlEncode : function(params) {
var url = [];
for(var param in params) {
var values = params[param];
if(!values.forEach)
values = [values];
// expand any arrays
values.forEach(function(value) {
url.push(encodeURIComponent(param) + "=" +
encodeURIComponent(value));
});
}
return url.join("&");
}
}
exports.createClient = function(options) {
return new BugzillaClient(options);
} | {
"content_hash": "4c17e1c9d39ed3508983ec2cc9b6e042",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 90,
"avg_line_length": 28.876404494382022,
"alnum_prop": 0.5729571984435797,
"repo_name": "rodms10/bugzillator",
"id": "068a5701ff3693910db106a3cccacc47f2f97f79",
"size": "5140",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "packages/bugzillaclient/lib/bz_xhr.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "459"
},
{
"name": "JavaScript",
"bytes": "428834"
},
{
"name": "Shell",
"bytes": "768"
}
],
"symlink_target": ""
} |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------
namespace think\db\exception;
/**
* 模型事件异常
*/
class ModelEventException extends DbException
{
}
| {
"content_hash": "677f1e460c16be39c4a65c2a6fb5732d",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 74,
"avg_line_length": 36.68421052631579,
"alnum_prop": 0.31850789096126253,
"repo_name": "zoujingli/Think.Admin",
"id": "767bc1a9f899700853725d7c81e0de85811048b4",
"size": "709",
"binary": false,
"copies": "1",
"ref": "refs/heads/v6",
"path": "vendor/topthink/think-orm/src/db/exception/ModelEventException.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "359"
},
{
"name": "PHP",
"bytes": "2343271"
},
{
"name": "PLpgSQL",
"bytes": "3807"
},
{
"name": "Smarty",
"bytes": "32252"
}
],
"symlink_target": ""
} |
import { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
String: string;
Boolean: boolean;
Int: number;
Float: number;
};
export type Mutation = {
__typename?: 'Mutation';
calculateSum: Scalars['Float'];
echoString: Scalars['String'];
};
export type MutationCalculateSumArgs = {
input: SumInput;
};
export type MutationEchoStringArgs = {
str: Scalars['String'];
};
export type Query = {
__typename?: 'Query';
hello: Scalars['String'];
};
export type SumInput = {
a: Scalars['Float'];
b: Scalars['Float'];
};
export type ResolverTypeWrapper<T> = Promise<T> | T;
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
};
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> =
| ResolverFn<TResult, TParent, TContext, TArgs>
| ResolverWithResolve<TResult, TParent, TContext, TArgs>;
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
parent: TParent,
args: TArgs,
context: TContext,
info: GraphQLResolveInfo
) => Promise<TResult> | TResult;
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
parent: TParent,
args: TArgs,
context: TContext,
info: GraphQLResolveInfo
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
parent: TParent,
args: TArgs,
context: TContext,
info: GraphQLResolveInfo
) => TResult | Promise<TResult>;
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
}
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
}
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
parent: TParent,
context: TContext,
info: GraphQLResolveInfo
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (
obj: T,
context: TContext,
info: GraphQLResolveInfo
) => boolean | Promise<boolean>;
export type NextResolverFn<T> = () => Promise<T>;
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
next: NextResolverFn<TResult>,
parent: TParent,
args: TArgs,
context: TContext,
info: GraphQLResolveInfo
) => TResult | Promise<TResult>;
/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = {
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
Float: ResolverTypeWrapper<Scalars['Float']>;
Mutation: ResolverTypeWrapper<{}>;
Query: ResolverTypeWrapper<{}>;
String: ResolverTypeWrapper<Scalars['String']>;
SumInput: SumInput;
};
/** Mapping between all available schema types and the resolvers parents */
export type ResolversParentTypes = {
Boolean: Scalars['Boolean'];
Float: Scalars['Float'];
Mutation: {};
Query: {};
String: Scalars['String'];
SumInput: SumInput;
};
export type MutationResolvers<
ContextType = any,
ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']
> = {
calculateSum?: Resolver<
ResolversTypes['Float'],
ParentType,
ContextType,
RequireFields<MutationCalculateSumArgs, 'input'>
>;
echoString?: Resolver<
ResolversTypes['String'],
ParentType,
ContextType,
RequireFields<MutationEchoStringArgs, 'str'>
>;
};
export type QueryResolvers<
ContextType = any,
ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']
> = {
hello?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
};
export type Resolvers<ContextType = any> = {
Mutation?: MutationResolvers<ContextType>;
Query?: QueryResolvers<ContextType>;
};
| {
"content_hash": "7bbf7475b01b282acf7c9fa5747b5726",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 105,
"avg_line_length": 31.77358490566038,
"alnum_prop": 0.7096199524940617,
"repo_name": "dotansimha/graphql-code-generator",
"id": "160b23311fb260d8d542395761137816371b92be",
"size": "5052",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/typescript-resolvers/src/type-defs.d.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1267"
},
{
"name": "JavaScript",
"bytes": "26791"
},
{
"name": "Shell",
"bytes": "109"
},
{
"name": "TypeScript",
"bytes": "1537887"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.2 / elpi - 1.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
elpi
<small>
1.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-10-14 02:44:10 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-10-14 02:44:10 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.8.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.04.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.04.2 Official 4.04.2 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Enrico Tassi <enrico.tassi@inria.fr>"
authors: [ "Enrico Tassi" ]
license: "LGPL-2.1-or-later"
homepage: "https://github.com/LPCIC/coq-elpi"
bug-reports: "https://github.com/LPCIC/coq-elpi/issues"
dev-repo: "git+https://github.com/LPCIC/coq-elpi"
build: [ make "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
depends: [
"elpi" {= "1.13.0"}
"coq" {>= "8.13" & < "8.14~" }
"ocaml" {< "4.12~"}
]
tags: [ "logpath:elpi" ]
synopsis: "Elpi extension language for Coq"
description: """
Coq-elpi provides a Coq plugin that embeds ELPI.
It also provides a way to embed Coq's terms into λProlog using
the Higher-Order Abstract Syntax approach
and a way to read terms back. In addition to that it exports to ELPI a
set of Coq's primitives, e.g. printing a message, accessing the
environment of theorems and data types, defining a new constant and so on.
For convenience it also provides a quotation and anti-quotation for Coq's
syntax in λProlog. E.g. `{{nat}}` is expanded to the type name of natural
numbers, or `{{A -> B}}` to the representation of a product by unfolding
the `->` notation. Finally it provides a way to define new vernacular commands
and
new tactics."""
url {
src: "https://github.com/LPCIC/coq-elpi/archive/v1.9.0.tar.gz"
checksum: "sha256=7fbbb0021b82c8ba3bd88d143edfaf6078b1e3283bc3eb6652015148bd44bbc4"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-elpi.1.9.0 coq.8.8.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.2).
The following dependencies couldn't be met:
- coq-elpi -> coq >= 8.13 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-elpi.1.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "018959e4dcc5085857356eeb9fc288a6",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 159,
"avg_line_length": 42.804597701149426,
"alnum_prop": 0.5508861439312567,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "c002f30873c4871bbfec68c4c287cfdc0e4881b1",
"size": "7475",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.04.2-2.0.5/released/8.8.2/elpi/1.9.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.resourcemanager.network.models.IpsecPolicy;
import com.azure.resourcemanager.network.models.ProvisioningState;
import com.azure.resourcemanager.network.models.RoutingConfiguration;
import com.azure.resourcemanager.network.models.TrafficSelectorPolicy;
import com.azure.resourcemanager.network.models.VirtualNetworkGatewayConnectionProtocol;
import com.azure.resourcemanager.network.models.VpnConnectionStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Parameters for VpnConnection. */
@Fluent
public final class VpnConnectionProperties {
/*
* Id of the connected vpn site.
*/
@JsonProperty(value = "remoteVpnSite")
private SubResource remoteVpnSite;
/*
* Routing weight for vpn connection.
*/
@JsonProperty(value = "routingWeight")
private Integer routingWeight;
/*
* DPD timeout in seconds for vpn connection.
*/
@JsonProperty(value = "dpdTimeoutSeconds")
private Integer dpdTimeoutSeconds;
/*
* The connection status.
*/
@JsonProperty(value = "connectionStatus", access = JsonProperty.Access.WRITE_ONLY)
private VpnConnectionStatus connectionStatus;
/*
* Connection protocol used for this connection.
*/
@JsonProperty(value = "vpnConnectionProtocolType")
private VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType;
/*
* Ingress bytes transferred.
*/
@JsonProperty(value = "ingressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY)
private Long ingressBytesTransferred;
/*
* Egress bytes transferred.
*/
@JsonProperty(value = "egressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY)
private Long egressBytesTransferred;
/*
* Expected bandwidth in MBPS.
*/
@JsonProperty(value = "connectionBandwidth")
private Integer connectionBandwidth;
/*
* SharedKey for the vpn connection.
*/
@JsonProperty(value = "sharedKey")
private String sharedKey;
/*
* EnableBgp flag.
*/
@JsonProperty(value = "enableBgp")
private Boolean enableBgp;
/*
* Enable policy-based traffic selectors.
*/
@JsonProperty(value = "usePolicyBasedTrafficSelectors")
private Boolean usePolicyBasedTrafficSelectors;
/*
* The IPSec Policies to be considered by this connection.
*/
@JsonProperty(value = "ipsecPolicies")
private List<IpsecPolicy> ipsecPolicies;
/*
* The Traffic Selector Policies to be considered by this connection.
*/
@JsonProperty(value = "trafficSelectorPolicies")
private List<TrafficSelectorPolicy> trafficSelectorPolicies;
/*
* EnableBgp flag.
*/
@JsonProperty(value = "enableRateLimiting")
private Boolean enableRateLimiting;
/*
* Enable internet security.
*/
@JsonProperty(value = "enableInternetSecurity")
private Boolean enableInternetSecurity;
/*
* Use local azure ip to initiate connection.
*/
@JsonProperty(value = "useLocalAzureIpAddress")
private Boolean useLocalAzureIpAddress;
/*
* The provisioning state of the VPN connection resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/*
* List of all vpn site link connections to the gateway.
*/
@JsonProperty(value = "vpnLinkConnections")
private List<VpnSiteLinkConnectionInner> vpnLinkConnections;
/*
* The Routing Configuration indicating the associated and propagated route tables on this connection.
*/
@JsonProperty(value = "routingConfiguration")
private RoutingConfiguration routingConfiguration;
/** Creates an instance of VpnConnectionProperties class. */
public VpnConnectionProperties() {
}
/**
* Get the remoteVpnSite property: Id of the connected vpn site.
*
* @return the remoteVpnSite value.
*/
public SubResource remoteVpnSite() {
return this.remoteVpnSite;
}
/**
* Set the remoteVpnSite property: Id of the connected vpn site.
*
* @param remoteVpnSite the remoteVpnSite value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withRemoteVpnSite(SubResource remoteVpnSite) {
this.remoteVpnSite = remoteVpnSite;
return this;
}
/**
* Get the routingWeight property: Routing weight for vpn connection.
*
* @return the routingWeight value.
*/
public Integer routingWeight() {
return this.routingWeight;
}
/**
* Set the routingWeight property: Routing weight for vpn connection.
*
* @param routingWeight the routingWeight value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withRoutingWeight(Integer routingWeight) {
this.routingWeight = routingWeight;
return this;
}
/**
* Get the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.
*
* @return the dpdTimeoutSeconds value.
*/
public Integer dpdTimeoutSeconds() {
return this.dpdTimeoutSeconds;
}
/**
* Set the dpdTimeoutSeconds property: DPD timeout in seconds for vpn connection.
*
* @param dpdTimeoutSeconds the dpdTimeoutSeconds value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withDpdTimeoutSeconds(Integer dpdTimeoutSeconds) {
this.dpdTimeoutSeconds = dpdTimeoutSeconds;
return this;
}
/**
* Get the connectionStatus property: The connection status.
*
* @return the connectionStatus value.
*/
public VpnConnectionStatus connectionStatus() {
return this.connectionStatus;
}
/**
* Get the vpnConnectionProtocolType property: Connection protocol used for this connection.
*
* @return the vpnConnectionProtocolType value.
*/
public VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType() {
return this.vpnConnectionProtocolType;
}
/**
* Set the vpnConnectionProtocolType property: Connection protocol used for this connection.
*
* @param vpnConnectionProtocolType the vpnConnectionProtocolType value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withVpnConnectionProtocolType(
VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType) {
this.vpnConnectionProtocolType = vpnConnectionProtocolType;
return this;
}
/**
* Get the ingressBytesTransferred property: Ingress bytes transferred.
*
* @return the ingressBytesTransferred value.
*/
public Long ingressBytesTransferred() {
return this.ingressBytesTransferred;
}
/**
* Get the egressBytesTransferred property: Egress bytes transferred.
*
* @return the egressBytesTransferred value.
*/
public Long egressBytesTransferred() {
return this.egressBytesTransferred;
}
/**
* Get the connectionBandwidth property: Expected bandwidth in MBPS.
*
* @return the connectionBandwidth value.
*/
public Integer connectionBandwidth() {
return this.connectionBandwidth;
}
/**
* Set the connectionBandwidth property: Expected bandwidth in MBPS.
*
* @param connectionBandwidth the connectionBandwidth value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withConnectionBandwidth(Integer connectionBandwidth) {
this.connectionBandwidth = connectionBandwidth;
return this;
}
/**
* Get the sharedKey property: SharedKey for the vpn connection.
*
* @return the sharedKey value.
*/
public String sharedKey() {
return this.sharedKey;
}
/**
* Set the sharedKey property: SharedKey for the vpn connection.
*
* @param sharedKey the sharedKey value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withSharedKey(String sharedKey) {
this.sharedKey = sharedKey;
return this;
}
/**
* Get the enableBgp property: EnableBgp flag.
*
* @return the enableBgp value.
*/
public Boolean enableBgp() {
return this.enableBgp;
}
/**
* Set the enableBgp property: EnableBgp flag.
*
* @param enableBgp the enableBgp value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withEnableBgp(Boolean enableBgp) {
this.enableBgp = enableBgp;
return this;
}
/**
* Get the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.
*
* @return the usePolicyBasedTrafficSelectors value.
*/
public Boolean usePolicyBasedTrafficSelectors() {
return this.usePolicyBasedTrafficSelectors;
}
/**
* Set the usePolicyBasedTrafficSelectors property: Enable policy-based traffic selectors.
*
* @param usePolicyBasedTrafficSelectors the usePolicyBasedTrafficSelectors value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withUsePolicyBasedTrafficSelectors(Boolean usePolicyBasedTrafficSelectors) {
this.usePolicyBasedTrafficSelectors = usePolicyBasedTrafficSelectors;
return this;
}
/**
* Get the ipsecPolicies property: The IPSec Policies to be considered by this connection.
*
* @return the ipsecPolicies value.
*/
public List<IpsecPolicy> ipsecPolicies() {
return this.ipsecPolicies;
}
/**
* Set the ipsecPolicies property: The IPSec Policies to be considered by this connection.
*
* @param ipsecPolicies the ipsecPolicies value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withIpsecPolicies(List<IpsecPolicy> ipsecPolicies) {
this.ipsecPolicies = ipsecPolicies;
return this;
}
/**
* Get the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.
*
* @return the trafficSelectorPolicies value.
*/
public List<TrafficSelectorPolicy> trafficSelectorPolicies() {
return this.trafficSelectorPolicies;
}
/**
* Set the trafficSelectorPolicies property: The Traffic Selector Policies to be considered by this connection.
*
* @param trafficSelectorPolicies the trafficSelectorPolicies value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withTrafficSelectorPolicies(List<TrafficSelectorPolicy> trafficSelectorPolicies) {
this.trafficSelectorPolicies = trafficSelectorPolicies;
return this;
}
/**
* Get the enableRateLimiting property: EnableBgp flag.
*
* @return the enableRateLimiting value.
*/
public Boolean enableRateLimiting() {
return this.enableRateLimiting;
}
/**
* Set the enableRateLimiting property: EnableBgp flag.
*
* @param enableRateLimiting the enableRateLimiting value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withEnableRateLimiting(Boolean enableRateLimiting) {
this.enableRateLimiting = enableRateLimiting;
return this;
}
/**
* Get the enableInternetSecurity property: Enable internet security.
*
* @return the enableInternetSecurity value.
*/
public Boolean enableInternetSecurity() {
return this.enableInternetSecurity;
}
/**
* Set the enableInternetSecurity property: Enable internet security.
*
* @param enableInternetSecurity the enableInternetSecurity value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withEnableInternetSecurity(Boolean enableInternetSecurity) {
this.enableInternetSecurity = enableInternetSecurity;
return this;
}
/**
* Get the useLocalAzureIpAddress property: Use local azure ip to initiate connection.
*
* @return the useLocalAzureIpAddress value.
*/
public Boolean useLocalAzureIpAddress() {
return this.useLocalAzureIpAddress;
}
/**
* Set the useLocalAzureIpAddress property: Use local azure ip to initiate connection.
*
* @param useLocalAzureIpAddress the useLocalAzureIpAddress value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withUseLocalAzureIpAddress(Boolean useLocalAzureIpAddress) {
this.useLocalAzureIpAddress = useLocalAzureIpAddress;
return this;
}
/**
* Get the provisioningState property: The provisioning state of the VPN connection resource.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Get the vpnLinkConnections property: List of all vpn site link connections to the gateway.
*
* @return the vpnLinkConnections value.
*/
public List<VpnSiteLinkConnectionInner> vpnLinkConnections() {
return this.vpnLinkConnections;
}
/**
* Set the vpnLinkConnections property: List of all vpn site link connections to the gateway.
*
* @param vpnLinkConnections the vpnLinkConnections value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withVpnLinkConnections(List<VpnSiteLinkConnectionInner> vpnLinkConnections) {
this.vpnLinkConnections = vpnLinkConnections;
return this;
}
/**
* Get the routingConfiguration property: The Routing Configuration indicating the associated and propagated route
* tables on this connection.
*
* @return the routingConfiguration value.
*/
public RoutingConfiguration routingConfiguration() {
return this.routingConfiguration;
}
/**
* Set the routingConfiguration property: The Routing Configuration indicating the associated and propagated route
* tables on this connection.
*
* @param routingConfiguration the routingConfiguration value to set.
* @return the VpnConnectionProperties object itself.
*/
public VpnConnectionProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration) {
this.routingConfiguration = routingConfiguration;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (ipsecPolicies() != null) {
ipsecPolicies().forEach(e -> e.validate());
}
if (trafficSelectorPolicies() != null) {
trafficSelectorPolicies().forEach(e -> e.validate());
}
if (vpnLinkConnections() != null) {
vpnLinkConnections().forEach(e -> e.validate());
}
if (routingConfiguration() != null) {
routingConfiguration().validate();
}
}
}
| {
"content_hash": "fcf2c9ac68be080fe06a4350513172fd",
"timestamp": "",
"source": "github",
"line_count": 497,
"max_line_length": 118,
"avg_line_length": 31.720321931589538,
"alnum_prop": 0.6917856010149065,
"repo_name": "Azure/azure-sdk-for-java",
"id": "077c6ee9188b96c6dbbe66ecee0c7ec1dc54f1b5",
"size": "15765",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnConnectionProperties.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "8762"
},
{
"name": "Bicep",
"bytes": "15055"
},
{
"name": "CSS",
"bytes": "7676"
},
{
"name": "Dockerfile",
"bytes": "2028"
},
{
"name": "Groovy",
"bytes": "3237482"
},
{
"name": "HTML",
"bytes": "42090"
},
{
"name": "Java",
"bytes": "432409546"
},
{
"name": "JavaScript",
"bytes": "36557"
},
{
"name": "Jupyter Notebook",
"bytes": "95868"
},
{
"name": "PowerShell",
"bytes": "737517"
},
{
"name": "Python",
"bytes": "240542"
},
{
"name": "Scala",
"bytes": "1143898"
},
{
"name": "Shell",
"bytes": "18488"
},
{
"name": "XSLT",
"bytes": "755"
}
],
"symlink_target": ""
} |
<!--
@license Apache-2.0
Copyright (c) 2018 The Stdlib 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.
-->
# Process
> Process utilities.
<section class="usage">
## Usage
```javascript
var ns = require( '@stdlib/process' );
```
#### ns
Namespace containing process utilities.
```javascript
var proc = ns;
// returns {...}
```
The namespace contains process utilities:
<!-- <toc pattern="*"> -->
<div class="namespace-toc">
- <span class="signature">[`ARGV`][@stdlib/process/argv]</span><span class="delimiter">: </span><span class="description">array containing command-line arguments passed when launching the calling process.</span>
- <span class="signature">[`chdir( path )`][@stdlib/process/chdir]</span><span class="delimiter">: </span><span class="description">change the current working directory.</span>
- <span class="signature">[`cwd()`][@stdlib/process/cwd]</span><span class="delimiter">: </span><span class="description">return the current working directory.</span>
- <span class="signature">[`ENV`][@stdlib/process/env]</span><span class="delimiter">: </span><span class="description">object containing the user environment.</span>
- <span class="signature">[`EXEC_PATH`][@stdlib/process/exec-path]</span><span class="delimiter">: </span><span class="description">absolute pathname of the executable which started the current Node.js process.</span>
- <span class="signature">[`getegid()`][@stdlib/process/getegid]</span><span class="delimiter">: </span><span class="description">return the effective numeric group identity of the calling process.</span>
- <span class="signature">[`geteuid()`][@stdlib/process/geteuid]</span><span class="delimiter">: </span><span class="description">return the effective numeric user identity of the calling process.</span>
- <span class="signature">[`getgid()`][@stdlib/process/getgid]</span><span class="delimiter">: </span><span class="description">return the numeric group identity of the calling process.</span>
- <span class="signature">[`getuid()`][@stdlib/process/getuid]</span><span class="delimiter">: </span><span class="description">return the numeric user identity of the calling process.</span>
- <span class="signature">[`NODE_VERSION`][@stdlib/process/node-version]</span><span class="delimiter">: </span><span class="description">node version.</span>
- <span class="signature">[`stdin( [encoding,] clbk )`][@stdlib/process/read-stdin]</span><span class="delimiter">: </span><span class="description">read data from `stdin`.</span>
- <span class="signature">[`umask( [mask,] [options] )`][@stdlib/process/umask]</span><span class="delimiter">: </span><span class="description">get/set the process mask.</span>
</div>
<!-- </toc> -->
</section>
<!-- /.usage -->
<section class="examples">
## Examples
<!-- TODO: better examples -->
<!-- eslint no-undef: "error" -->
```javascript
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/process' );
console.log( objectKeys( ns ) );
```
</section>
<!-- /.examples -->
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
<section class="related">
</section>
<!-- /.related -->
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="links">
<!-- <toc-links> -->
[@stdlib/process/argv]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/argv
[@stdlib/process/chdir]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/chdir
[@stdlib/process/cwd]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/cwd
[@stdlib/process/env]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/env
[@stdlib/process/exec-path]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/exec-path
[@stdlib/process/getegid]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/getegid
[@stdlib/process/geteuid]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/geteuid
[@stdlib/process/getgid]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/getgid
[@stdlib/process/getuid]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/getuid
[@stdlib/process/node-version]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/node-version
[@stdlib/process/read-stdin]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/read-stdin
[@stdlib/process/umask]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/process/umask
<!-- </toc-links> -->
</section>
<!-- /.links -->
| {
"content_hash": "83cc6bee8293313c7ae9fcd6c894a5dd",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 219,
"avg_line_length": 41.33846153846154,
"alnum_prop": 0.7208783029400819,
"repo_name": "stdlib-js/stdlib",
"id": "a0f621f8aa338f0fdc439cef299aee6202febe17",
"size": "5374",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "lib/node_modules/@stdlib/process/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Awk",
"bytes": "21739"
},
{
"name": "C",
"bytes": "15336495"
},
{
"name": "C++",
"bytes": "1349482"
},
{
"name": "CSS",
"bytes": "58039"
},
{
"name": "Fortran",
"bytes": "198059"
},
{
"name": "HTML",
"bytes": "56181"
},
{
"name": "Handlebars",
"bytes": "16114"
},
{
"name": "JavaScript",
"bytes": "85975525"
},
{
"name": "Julia",
"bytes": "1508654"
},
{
"name": "Makefile",
"bytes": "4806816"
},
{
"name": "Python",
"bytes": "3343697"
},
{
"name": "R",
"bytes": "576612"
},
{
"name": "Shell",
"bytes": "559315"
},
{
"name": "TypeScript",
"bytes": "19309407"
},
{
"name": "WebAssembly",
"bytes": "5980"
}
],
"symlink_target": ""
} |
/**
* Initialize socket io and http server
*/
var Channel = require("./channel.js");
var bson = require("bson");
var BSON = new bson.BSONPure.BSON();
module.exports = function (sessionService, $logger, $event, http) {
//socket IO
var socketIO = require("socket.io")(http);
socketIO.use(function (socket, next) {
var userId = socket.handshake.query.userId;
var token = socket.handshake.query.token;
if ($event.has("channel.auth")) {
$event.fire("channel.auth", userId, token, socket, next);
} else {
next();
}
});
socketIO.on("connection", function (socket) {
var userId = socket.handshake.query.userId;
var deviceId = socket.handshake.query.deviceId;
var channel = new Channel(userId, socket, $logger);
sessionService.map(channel, userId, deviceId);
$event.fire("channel.connection", channel);
socket.on("cloudpify", function (stanzaData) {
var stanza = stanzaData;
if (Buffer.isBuffer(stanzaData)) {
stanza = BSON.deserialize(stanzaData, {promoteBuffers: true});
}
//debug
var debugStanza = {
id: stanza.id,
type: stanza.type,
action: stanza.action,
body: Buffer.isBuffer(stanzaData) ? "(buffer-data)" : stanzaData.body
};
$logger.debug("Received message: " + JSON.stringify(debugStanza) + " from: " + userId + "; socketId: " + socket.id);
//fire event
$event.fire("dispatch.stanza", stanza, channel);
});
socket.on("disconnect", function () {
sessionService.unmap(channel, userId);
});
});
}; | {
"content_hash": "034209eb7cda0972fc9064e868ccbf82",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 128,
"avg_line_length": 31.087719298245613,
"alnum_prop": 0.5609480812641083,
"repo_name": "thoqbk/cloudpify",
"id": "caf7d6ec26dde3b719729be83361a8718d3b4889",
"size": "1772",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "lib/realtime-server.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "22"
},
{
"name": "HTML",
"bytes": "13"
},
{
"name": "JavaScript",
"bytes": "69626"
},
{
"name": "Shell",
"bytes": "297"
}
],
"symlink_target": ""
} |
/**
* @license
* SPDX-License-Identifier: Apache-2.0
*/
import {htmlEscape} from '../../src/builders/html_builders';
import {trustedResourceUrl} from '../../src/builders/resource_url_builders';
import {safeScript} from '../../src/builders/script_builders';
import {unwrapHtml} from '../../src/internals/html_impl';
import {unwrapResourceUrl} from '../../src/internals/resource_url_impl';
import {unwrapScript} from '../../src/internals/script_impl';
import {TEST_ONLY} from '../../src/internals/trusted_types';
/** A mock TrustedHTML type */
class MockTrustedHTML {
constructor(private readonly value: string) {}
toString() {
return this.value;
}
}
/** A mock TrustedScript type */
class MockTrustedScript {
constructor(private readonly value: string) {}
toString() {
return this.value;
}
}
/** A mock TrustedScriptURL type */
class MockTrustedScriptURL {
constructor(private readonly value: string) {}
toString() {
return this.value;
}
}
/** A mock window.trustedTypes based on the mocked Trusted Types from above */
const mockTrustedTypes = {
emptyHTML: new MockTrustedHTML(''),
emptyScript: new MockTrustedScript(''),
createPolicy: (name: string, stringifiers: TrustedTypePolicyOptions) => ({
name,
createHTML: (s: string) => new MockTrustedHTML(stringifiers.createHTML!(s)),
createScript: (s: string) =>
new MockTrustedScript(stringifiers.createScript!(s)),
createScriptURL: (s: string) =>
new MockTrustedScriptURL(stringifiers.createScriptURL!(s)),
}),
isHTML: (o: unknown) => o instanceof MockTrustedHTML,
isScript: (o: unknown) => o instanceof MockTrustedScript,
isScriptURL: (o: unknown) => o instanceof MockTrustedScriptURL,
};
// Preserve a reference to all objects that we override for our tests.
const NATIVE_TT = {
'trustedTypes': Object.getOwnPropertyDescriptor(window, 'trustedTypes'),
'TrustedHTML': Object.getOwnPropertyDescriptor(window, 'TrustedHTML'),
'TrustedScript': Object.getOwnPropertyDescriptor(window, 'TrustedScript'),
'TrustedScriptURL':
Object.getOwnPropertyDescriptor(window, 'TrustedScriptURL'),
};
/**
* Sets the globals to mock trustedTypes support or remove support
* Note that we can't use normal spies here because some of the properties don't
* have getters or might not exist in some browsers. All we know is that they
* should be configurable
*/
function setTrustedTypesSupported(trustedTypesSupported: boolean) {
if (trustedTypesSupported) {
Object.defineProperties(window, {
'trustedTypes': {value: mockTrustedTypes, configurable: true},
'TrustedHTML': {value: MockTrustedHTML, configurable: true},
'TrustedScript': {value: MockTrustedScript, configurable: true},
'TrustedScriptURL': {value: MockTrustedScriptURL, configurable: true},
});
} else {
delete window['trustedTypes' as keyof Window];
delete window['TrustedHTML' as keyof Window];
delete window['TrustedScript' as keyof Window];
delete window['TrustedScriptURL' as keyof Window];
}
}
/** Reset the globals that we replaced to avoid impacting other tests. */
function resetDefaultTrustedTypesSupport() {
for (const [prop, descriptor] of Object.entries(NATIVE_TT)) {
if (descriptor === undefined) {
delete window[prop as keyof Window];
} else {
Object.defineProperty(window, prop, descriptor);
}
}
}
describe('Trusted Types in safevalues', () => {
// `usesTrustedTypes` describes behaviour that should be observed when Trusted
// Types are supported and enabled, and `usesStrings` behaviour when Trusted
// Types are either not support or not enabled. They are separate functions
// for code reuse and readability; they are used in the tests below that
// evaluate the four possible states of Trusted Types enabled/disabled in the
// library, and Trusted Types supported/not supported by the browser.
const usesTrustedTypes = () => {
it('should be used by SafeHtml', () => {
const safe = htmlEscape('aaa');
expect(safe.toString()).toEqual('aaa');
expect(unwrapHtml(safe).toString()).toEqual('aaa');
expect(unwrapHtml(safe) as unknown).toEqual(new MockTrustedHTML('aaa'));
});
it('should be used by SafeScript', () => {
const safe = safeScript`a = b;`;
expect(safe.toString()).toEqual('a = b;');
expect(unwrapScript(safe).toString()).toEqual('a = b;');
expect(unwrapScript(safe) as unknown)
.toEqual(new MockTrustedScript('a = b;'));
});
it('should be used by TrustedResourceUrl', () => {
const safe = trustedResourceUrl`a/b/c`;
expect(safe.toString()).toEqual('a/b/c');
expect(unwrapResourceUrl(safe).toString()).toEqual('a/b/c');
expect(unwrapResourceUrl(safe) as unknown)
.toEqual(new MockTrustedScriptURL('a/b/c'));
});
};
const usesStrings = () => {
afterEach(() => {
expect(mockTrustedTypes.createPolicy).not.toHaveBeenCalled();
});
it('should not be used by SafeHtml', () => {
const safe = htmlEscape('aaa');
expect(safe.toString()).toEqual('aaa');
expect(unwrapHtml(safe).toString()).toEqual('aaa');
expect(unwrapHtml(safe) as unknown).toEqual('aaa');
});
it('should not be used by SafeScript', () => {
const safe = safeScript`a = b;`;
expect(safe.toString()).toEqual('a = b;');
expect(unwrapScript(safe).toString()).toEqual('a = b;');
expect(unwrapScript(safe) as unknown).toEqual('a = b;');
});
it('should not be used by TrustedResourceUrl', () => {
const safe = trustedResourceUrl`a/b/c`;
expect(safe.toString()).toEqual('a/b/c');
expect(unwrapResourceUrl(safe).toString()).toEqual('a/b/c');
expect(unwrapResourceUrl(safe) as unknown).toEqual('a/b/c');
});
};
describe('when enabled and supported', () => {
beforeEach(() => {
setTrustedTypesSupported(true);
TEST_ONLY.resetDefaults();
TEST_ONLY.setTrustedTypesPolicyName('safevalues#testing');
spyOn(mockTrustedTypes, 'createPolicy').and.callThrough();
});
afterEach(() => {
resetDefaultTrustedTypesSupport();
TEST_ONLY.resetDefaults();
});
usesTrustedTypes();
});
describe('when supported but disabled', () => {
beforeEach(() => {
setTrustedTypesSupported(true);
TEST_ONLY.resetDefaults();
TEST_ONLY.setTrustedTypesPolicyName('');
spyOn(mockTrustedTypes, 'createPolicy').and.callThrough();
});
afterEach(() => {
resetDefaultTrustedTypesSupport();
TEST_ONLY.resetDefaults();
});
usesStrings();
});
describe('when enabled but not supported', () => {
beforeEach(() => {
setTrustedTypesSupported(false);
TEST_ONLY.resetDefaults();
TEST_ONLY.setTrustedTypesPolicyName('safevalues#testing');
spyOn(mockTrustedTypes, 'createPolicy').and.callThrough();
});
afterEach(() => {
resetDefaultTrustedTypesSupport();
TEST_ONLY.resetDefaults();
});
usesStrings();
});
describe('when disabled and not supported', () => {
beforeEach(() => {
setTrustedTypesSupported(false);
TEST_ONLY.resetDefaults();
TEST_ONLY.setTrustedTypesPolicyName('');
spyOn(mockTrustedTypes, 'createPolicy').and.callThrough();
});
afterEach(() => {
resetDefaultTrustedTypesSupport();
TEST_ONLY.resetDefaults();
});
usesStrings();
});
});
| {
"content_hash": "fba8a134d4ed0c392b4a02059d51cfe9",
"timestamp": "",
"source": "github",
"line_count": 219,
"max_line_length": 80,
"avg_line_length": 34.009132420091326,
"alnum_prop": 0.6676960257787325,
"repo_name": "google/safevalues",
"id": "ac772e042d98c5e44ca4c85fa683f64364a5dbb9",
"size": "7448",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "test/internals/trusted_types_test.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "JavaScript",
"bytes": "1906"
},
{
"name": "Shell",
"bytes": "709"
},
{
"name": "TypeScript",
"bytes": "682157"
}
],
"symlink_target": ""
} |
TP05: Configuring logs
===
# About logs
A Log File is a file that records either events that occur in an operating system or other software runs, or messages between different users of a communication software.
Logging is the act of keeping a log. This is useful for all types of applications as it allows developpers to keep track of exceptions that are raised in the application.
Logging can manage messages from an application during its execution and allow immediate or differed operation.
These messages are also very useful in the development of an application or during its operation to understand abnormal behaviour.
# Step 1: Add a configuration file clean logs to your project
The default logs available are interesting, but not enough to operate an application in a professional context.
We will define a new log file that records the application's performance:
- In the Resources tps, use the file Logger.xml and PerfLogger.java class to measure rendering the Back Office homepage.
- You will place the PerfLogger.java utils package in your project.
The result should be:
A log file / videostore.log containing, on almost course, the following logs
2015-03-05 00:07:29,079 - [INFO] - from play in play-internal-execution-context-1 Application started (Dev)
2015-03-05 00:07:29,241 - [TRACE] - from performances in play-akka.actor.default-dispatcher-4 Start[1425510449238] time[3] hr[3ms] tag[Rendu de la page de bienvenue du backoffice]
Next tutorial
====
Go to [TP06](https://github.com/fmaturel/PlayTraining/tree/master/play_tp06)
| {
"content_hash": "32a095c3c25c20d3be1d4cc4188c4974",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 179,
"avg_line_length": 55.535714285714285,
"alnum_prop": 0.7922829581993569,
"repo_name": "fmaturel/PlayTraining",
"id": "911daba342c93ac234a99acb0a2cba43569df386",
"size": "1555",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "play_tp05/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "40785"
},
{
"name": "CSS",
"bytes": "129162"
},
{
"name": "HTML",
"bytes": "260623"
},
{
"name": "Java",
"bytes": "368837"
},
{
"name": "JavaScript",
"bytes": "57571"
},
{
"name": "Scala",
"bytes": "15675"
},
{
"name": "Shell",
"bytes": "5621"
}
],
"symlink_target": ""
} |
'use strict';
angular.module('mopify.discover.featured', [
'mopify.services.mopidy',
'mopify.services.spotifylogin',
'mopify.services.settings',
'spotify',
'mopify.services.util',
'mopify.services.station',
'mopify.widgets.directive.album',
'LocalStorageModule',
'llNotifier',
'mopify.services.servicemanager'
]).config([
'$routeProvider',
function ($routeProvider) {
$routeProvider.when('/discover/featured', {
templateUrl: 'discover/featured/featured.tmpl.html',
controller: 'DiscoverFeaturedController'
});
}
]).controller('DiscoverFeaturedController', [
'$rootScope',
'$scope',
'$timeout',
'mopidyservice',
'Spotify',
'Settings',
'SpotifyLogin',
'util',
'stationservice',
'localStorageService',
'notifier',
'ServiceManager',
function DiscoverFeaturedController($rootScope, $scope, $timeout, mopidyservice, Spotify, Settings, SpotifyLogin, util, stationservice, localStorageService, notifier, ServiceManager) {
$scope.featuredplaylists = [];
$scope.titletext = 'Loading...';
$scope.headerplaylist = {};
// Load the feautured playlists when a connection with spotify has been established
$scope.$on('mopify:spotify:connected', loadFeaturedPlaylists);
if (!ServiceManager.isEnabled('spotify')) {
notifier.notify({
type: 'custom',
template: 'Please connect with the Spotify service first.',
delay: 3000
});
} else if (SpotifyLogin.connected) {
loadFeaturedPlaylists();
}
/**
* Load all the data for the featured playlists page
*/
function loadFeaturedPlaylists() {
var locale = Settings.get('locale', 'en_US');
var country = Settings.get('country', 'US');
// Get ISO 8601 timestamp
var date = new Date();
var timestamp = date.toISOString();
// Get the featured playlists from spotify
Spotify.getFeaturedPlaylists({
locale: locale,
country: country,
limit: 12,
timestamp: timestamp
}).then(function (response) {
var data = response.data;
// Set the message and items
$scope.titletext = data.message;
$scope.featuredplaylists = data.playlists.items;
$scope.headerplaylist = data.playlists.items[Math.floor(Math.random() * data.playlists.items.length)];
// Load the tracks for the featured header playlist
loadHeaderPlaylistTracks();
});
}
function loadHeaderPlaylistTracks() {
// Get the tracks for the headerplaylist
mopidyservice.lookup($scope.headerplaylist.uri).then(function (response) {
var tracks = response[$scope.headerplaylist.uri];
var frontendtracks = angular.copy(tracks.splice(0, 7));
var tracksloaded = true;
// Create an artist string for every song
_.each(frontendtracks, function (track) {
track.artiststring = util.artistsToString(track.artists);
if (track.name.indexOf('loading') > -1)
tracksloaded = false;
});
if (tracksloaded)
$scope.headerplaylist.tracks = frontendtracks;
else
$timeout(loadHeaderPlaylistTracks, 1000);
});
}
$scope.playHeaderPlaylist = function () {
mopidyservice.lookup($scope.headerplaylist.uri).then(function (tracks) {
mopidyservice.playTrack(tracks[0], tracks);
});
};
$scope.startHeaderPlaylistStation = function () {
stationservice.startFromSpotifyUri($scope.headerplaylist.uri);
};
}
]); | {
"content_hash": "77a2f509889768202a1c2edfac7bcd60",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 186,
"avg_line_length": 34.960396039603964,
"alnum_prop": 0.6530727839139054,
"repo_name": "dirkgroenen/mopidy-mopify",
"id": "f04e3b0bcf6752738d56fd32485e9a7d2d5a26f4",
"size": "3531",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mopidy_mopify/static/debug/src/app/discover/featured/featured.controller.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "199655"
},
{
"name": "HTML",
"bytes": "301912"
},
{
"name": "JavaScript",
"bytes": "523424"
},
{
"name": "Python",
"bytes": "14839"
}
],
"symlink_target": ""
} |
package br.com.objectos.core.list;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
/**
* This class provides {@code static} utility methods for {@link java.util.List}
* classes and objects.
*/
public final class Lists {
private Lists() {}
/**
* Returns the only element of the specified list or throws an exception if
* the list is empty or if the list contains more than one element.
*
* @return the only element of this list
*
* @throws IllegalStateException
* if the list is empty or if the list contains more than one element
*/
public static <T> T getOnly(List<T> list) {
switch (list.size()) {
case 0:
throw new IllegalStateException("Could not getOnly: empty.");
case 1:
return list.get(0);
default:
throw new IllegalStateException("Could not getOnly: more than one element.");
}
}
/**
* Returns a comparator that compares {@link Comparable} objects in natural
* order.
*
* @param <E>
* the {@link Comparable} type of element to be compared
*
* @return a comparator that imposes the <i>natural ordering</i> on {@code
* Comparable} objects.
*
* @see Comparable
*/
public static <E> Comparator<E> naturalOrder() {
return Comparators.naturalOrder();
}
/**
* Returns a newly constructed {@code java.util.ArrayList} instance by
* invoking the constructor that takes no arguments.
*
* <p>
* This method is mainly provided as a convenience for Java Multi-Release
* codebases. In particular codebases that must support versions prior to Java
* 7 and, therefore, cannot use the diamond operator.
*
* @param <E> type of the elements in the list
*
* @return a newly constructed {@code java.util.ArrayList} instance
*
* @see ArrayList#ArrayList()
*/
public static <E> ArrayList<E> newArrayList() {
return new ArrayList<E>();
}
/**
* Returns a newly constructed {@code java.util.ArrayList} instance with the
* specified initial capacity.
*
* <p>
* This method is mainly provided as a convenience for Java Multi-Release
* codebases. In particular codebases that must support versions prior to Java
* 7 and, therefore, cannot use the diamond operator.
*
* @param <E> type of the elements in the list
*
* @param initialCapacity
* the initial capacity of the list
*
* @return a newly constructed {@code java.util.ArrayList} instance
*
* @throws IllegalArgumentException
* if the specified initial capacity is negative
*
* @see ArrayList#ArrayList(int)
*/
public static <E> ArrayList<E> newArrayListWithCapacity(int initialCapacity) {
return new ArrayList<E>(initialCapacity);
}
} | {
"content_hash": "a0a79ff2ef149c1492e7e975d95fda29",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 85,
"avg_line_length": 29.145833333333332,
"alnum_prop": 0.6658327376697641,
"repo_name": "objectos/core",
"id": "08bd93aa9a1f3bef7873688bd5a38dff17f11581",
"size": "3409",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "core-list/src/main/java/br/com/objectos/core/list/Lists.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "692184"
}
],
"symlink_target": ""
} |
package org.apache.jmeter.protocol.ssh2.sampler;
import java.beans.PropertyDescriptor;
import org.apache.jmeter.testbeans.gui.TypeEditor;
public class SSHScriptSamplerBeanInfo extends AbstractSSHSamplerBeanInfo {
public SSHScriptSamplerBeanInfo() {
super(SSHScriptSampler.class);
createPropertyGroup("executeScript", new String[] { "enableWaitCmd"
, "delayAfterEachCmd"
, "terminalType"
, "terminalWidth"
, "terminalHeight"
, "scriptContent" });
PropertyDescriptor p = property("enableWaitCmd");
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, Boolean.TRUE);
p = property("delayAfterEachCmd");
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, 0);
p = property("terminalType");
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, "vt220");
p = property("terminalWidth");
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, 200);
p = property("terminalHeight");
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, 50);
p = property("scriptContent", TypeEditor.TextAreaEditor);
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, "");
p.setValue(TEXT_LANGUAGE, "bash");
// override the default value set by parent
p = property("maxWaitForCommandOutput");
p.setValue(NOT_UNDEFINED, Boolean.TRUE);
p.setValue(DEFAULT, 30000);
}
}
| {
"content_hash": "3bc6cd450b1b57c03b502b814e40c2c2",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 75,
"avg_line_length": 30,
"alnum_prop": 0.6264150943396226,
"repo_name": "jdeveloper4u/ApacheJMeter_ssh2",
"id": "9ad1a628574382c38d32b60c88aba5567ee7c58b",
"size": "2392",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/apache/jmeter/protocol/ssh2/sampler/SSHScriptSamplerBeanInfo.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "54353"
}
],
"symlink_target": ""
} |
<?php
namespace CronDog;
use Illuminate\Support\Collection;
use CronDog\ScheduleNotFoundException;
use CronDog\ScheduleNotCreatedException;
use CronDog\ScheduleTeamIdNotFoundException;
use CronDog\ScheduleValidationFailedException;
class Schedule extends ApiResource
{
static $endpoint = '/schedules/';
static function get($attributes)
{
$response = static::createRequest('get', $attributes);
return (new Collection($response->json()))
->map(function ($item) {
return static::createFromArray($item);
});
}
static function find($attributes)
{
$response = static::createRequest('get', $attributes['uuid'], $attributes);
if (! $response->isSuccess()) {
throw new ScheduleNotFoundException(
"Could not find a Schedule with that ID.",
$response->status(),
$response->body(),
$response->json()
);
}
return static::createFromResponse($response);
}
static function create($attributes)
{
$response = static::createRequest('post', $attributes);
if (! $response->isSuccess()) {
if ($response->status() == 401) {
throw new ScheduleTeamIdNotFoundException(
"CronDog returned the error: {$response->message}",
$response->status(),
$response->body(),
$response->json()
);
}
if ($response->status() == 422) {
throw new ScheduleValidationFailedException(
"There was an error validating this request",
$response->status(),
$response->body(),
$response->json()
);
}
}
return static::createFromResponse($response);
}
static function delete($attributes)
{
$response = static::createRequest('delete', $attributes['uuid'], $attributes);
return static::createFromResponse($response);
}
}
| {
"content_hash": "9bd089c436890fe353ddc3a3c5cb6079",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 86,
"avg_line_length": 28.72972972972973,
"alnum_prop": 0.5479774223894638,
"repo_name": "davidhemphill/crondog-php",
"id": "b3403d37f9cc39ef7a29b49d4e1c6628c4a2ed86",
"size": "2126",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Schedule.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "9734"
}
],
"symlink_target": ""
} |
vagrant ssh -c "sudo /etc/init.d/network restart"
| {
"content_hash": "bd7d55e7fdd717753db705633b685bf9",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 49,
"avg_line_length": 50,
"alnum_prop": 0.74,
"repo_name": "pmeulen/SSP-VM",
"id": "dfbf91e2ccd761ff8ee5cf1af57d4d82a876684f",
"size": "60",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "restart_network.sh",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Shell",
"bytes": "60"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<?php
session_start();
if (@!$_SESSION['nombre']) {
header("Location:Index.php");
}
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>VC</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<link rel="stylesheet" href="plugins/jvectormap/jquery-jvectormap-1.2.2.css">
<link rel="stylesheet" href="dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="Administrador.php" class="logo">
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Virtual Clock</b></span>
</a>
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="dropdown user user-menu">
<a href="#" data-toggle="dropdown">
<?php
echo "<li><a href='#'><span class='glyphicon glyphicon-user'></span> ".$_SESSION['nombre']."</a></li>";
?>
</a>
</li>
<!-- Control Sidebar Toggle Button -->
</ul>
</div>
</nav>
</header>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
</div>
<ul class="sidebar-menu" data-widget="tree">
<li><a href="Notificaciones.php"><i class="fa fa-bell fa-1x"></i> <span>Notificaciones</span></a></li>
<br>
<li><a href="CrudUsuarios.php"><i class="fa fa-edit"></i> <span>Usuarios</span></a></li>
<br>
<li><a href="Empresas.php"><i class="glyphicon glyphicon-briefcase"></i> <span>Empresas</span></a></li>
<br>
<li><a href="Reportes.php"><i class="fa fa-file-text"></i><span>Reportes</span></a></li>
<br>
<li><a href="Grupos.php"><i class="fa fa-users"></i> <span>Grupos</span></a></li>
<br>
<li><a href="Incidencias.php"><i class="fa fa-heartbeat"></i> <span>Incidencias</span></a></li>
<br>
<li><a href="Horarios.php"><i class="fa fa-calendar"></i><span>Horarios</span></a></li>
<br>
<li><a href="Ausencias.php"> <i class="fa fa-exclamation-triangle" ></i><span>Ausencias</span></a></li>
<br>
<li><a href="PHP/LogOut.php"><i class="glyphicon glyphicon-remove-sign"></i> <span>Cerrar Sesión</span></a></li>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<!-- Inicio Caja 1-->
<div class="content-wrapper">
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h3>Bienvenido <small>Notificaciones</small></h3>
<h3>Nueva Notificación</h3>
<form action="#" method="post">
<div class="col-md-4">
<label style="font-family: Arial;">Grupo:</label>
<select class="form-control" required>
<option value="?"></option>
<option value="1">R.H</option>
<option value="2">Programadores</option>
</select>
</div>
<div class="col-md-4">
<label style="font-family: Arial;">Usuario:</label>
<select class="form-control" required>
<option value="?"></option>
<option value="1">Desarrollador</option>
<option value="2">Contador</option>
</select>
</div>
<div class="col-md-4">
<label for="comment">Descripción:</label>
<textarea class="form-control" rows="5" id="comment" required></textarea>
</div>
<div class="col-md-12">
<button type="submit" class="btn btn-primary" name="btn-upload">Enviar Notificación</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Final Caja 1 -->
<!-- Inicio Caja 2 -->
<!-- Final Caja 2 -->
<footer class="main-footer">
<center><strong>Copyright ©<a href="#">JPRConsulting</a></strong></center>
</footer>
</div>
<!-- jQuery 3.1.1 -->
<script src="plugins/jQuery/jquery-3.1.1.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
<!-- Sparkline -->
<script src="plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- SlimScroll 1.3.0 -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- ChartJS 1.0.1 -->
<script src="plugins/chartjs/Chart.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard2.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
</body>
</html> | {
"content_hash": "e825af5691867eb8ce50d91132284196",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 134,
"avg_line_length": 33.3757225433526,
"alnum_prop": 0.5930031174229303,
"repo_name": "JPRConsultingTeam/17MundoRelativo_Craft",
"id": "7c5ed6ae37ba8219446b2da9159e1447027b0d58",
"size": "5779",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Notificaciones.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "216098"
},
{
"name": "HTML",
"bytes": "96080"
},
{
"name": "JavaScript",
"bytes": "1321514"
},
{
"name": "PHP",
"bytes": "7421065"
}
],
"symlink_target": ""
} |
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
using System;
using System.IO;
namespace Org.BouncyCastle.Crypto.Tls
{
public class CertificateStatusRequest
{
protected readonly byte mStatusType;
protected readonly object mRequest;
public CertificateStatusRequest(byte statusType, Object request)
{
if (!IsCorrectType(statusType, request))
throw new ArgumentException("not an instance of the correct type", "request");
this.mStatusType = statusType;
this.mRequest = request;
}
public virtual byte StatusType
{
get { return mStatusType; }
}
public virtual object Request
{
get { return mRequest; }
}
public virtual OcspStatusRequest GetOcspStatusRequest()
{
if (!IsCorrectType(CertificateStatusType.ocsp, mRequest))
throw new InvalidOperationException("'request' is not an OCSPStatusRequest");
return (OcspStatusRequest)mRequest;
}
/**
* Encode this {@link CertificateStatusRequest} to a {@link Stream}.
*
* @param output
* the {@link Stream} to encode to.
* @throws IOException
*/
public virtual void Encode(Stream output)
{
TlsUtilities.WriteUint8(mStatusType, output);
switch (mStatusType)
{
case CertificateStatusType.ocsp:
((OcspStatusRequest)mRequest).Encode(output);
break;
default:
throw new TlsFatalAlert(AlertDescription.internal_error);
}
}
/**
* Parse a {@link CertificateStatusRequest} from a {@link Stream}.
*
* @param input
* the {@link Stream} to parse from.
* @return a {@link CertificateStatusRequest} object.
* @throws IOException
*/
public static CertificateStatusRequest Parse(Stream input)
{
byte status_type = TlsUtilities.ReadUint8(input);
object result;
switch (status_type)
{
case CertificateStatusType.ocsp:
result = OcspStatusRequest.Parse(input);
break;
default:
throw new TlsFatalAlert(AlertDescription.decode_error);
}
return new CertificateStatusRequest(status_type, result);
}
protected static bool IsCorrectType(byte statusType, object request)
{
switch (statusType)
{
case CertificateStatusType.ocsp:
return request is OcspStatusRequest;
default:
throw new ArgumentException("unsupported value", "statusType");
}
}
}
}
#endif
| {
"content_hash": "c5ec76d565f4f998f9736f380024a4f6",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 94,
"avg_line_length": 29.23,
"alnum_prop": 0.5590147109134451,
"repo_name": "cathy33/Infinity",
"id": "795917dde4433f1ea8adb8b5a04bcf22d952489d",
"size": "2923",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/GameClient/Assets/Plugins/3rdParty/Best HTTP (Pro)/BestHTTP/SecureProtocol/crypto/tls/CertificateStatusRequest.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "556387"
}
],
"symlink_target": ""
} |
package org.apache.helix;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import org.apache.log4j.Logger;
import org.testng.Assert;
public class ScriptTestHelper
{
private static final Logger LOG = Logger.getLogger(ScriptTestHelper.class);
public static final String INTEGRATION_SCRIPT_DIR = "src/main/scripts/integration-test/script";
public static final String INTEGRATION_TEST_DIR = "src/main/scripts/integration-test/testcases";
public static final long EXEC_TIMEOUT = 1200;
public static String getPrefix()
{
StringBuilder prefixBuilder = new StringBuilder("");
String prefix = "";
String filepath = INTEGRATION_SCRIPT_DIR;
File integrationScriptDir = new File(filepath);
while (!integrationScriptDir.exists())
{
prefixBuilder.append("../");
prefix = prefixBuilder.toString();
integrationScriptDir = new File(prefix + filepath);
// Give up
if (prefix.length() > 30)
{
return "";
}
}
return new File(prefix).getAbsolutePath() + "/";
}
public static ExternalCommand runCommandLineTest(String testName, String... arguments) throws IOException, InterruptedException,
TimeoutException
{
ExternalCommand cmd = ExternalCommand.executeWithTimeout(new File(getPrefix() + INTEGRATION_TEST_DIR),
testName, EXEC_TIMEOUT, arguments);
int exitValue = cmd.exitValue();
String output = cmd.getStringOutput("UTF8");
if (0 == exitValue)
{
LOG.info("Test " + testName + " has run. ExitCode=" + exitValue + ". Command output: " + output);
}
else
{
LOG.warn("Test " + testName + " is FAILING. ExitCode=" + exitValue + ". Command output: " + output);
Assert.fail(output);
// return cmd;
}
return cmd;
}
}
| {
"content_hash": "1f574bb23b4e7d3fd7033b82f4f144d0",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 130,
"avg_line_length": 29.125,
"alnum_prop": 0.6636266094420601,
"repo_name": "kishoreg/incubator-helix",
"id": "5ebb8e805a29429117626bfef22718d32b83ac9a",
"size": "2671",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "helix-core/src/test/java/org/apache/helix/ScriptTestHelper.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
import * as eslint from 'eslint';
export = new class ApiLiteralOrTypes implements eslint.Rule.RuleModule {
readonly meta: eslint.Rule.RuleMetaData = {
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines#enums' },
messages: { useEnum: 'Use enums, not literal-or-types', }
};
create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
return {
['TSTypeAnnotation TSUnionType TSLiteralType']: (node: any) => {
context.report({
node: node,
messageId: 'useEnum'
});
}
};
}
};
| {
"content_hash": "d6c0fb5830457327b36da63ee293bb43",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 91,
"avg_line_length": 25,
"alnum_prop": 0.6763636363636364,
"repo_name": "joaomoreno/vscode",
"id": "01a3eb21523679524b7856354b9877c5d1625023",
"size": "901",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "build/lib/eslint/vscode-dts-literal-or-types.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "5218"
},
{
"name": "C",
"bytes": "818"
},
{
"name": "C#",
"bytes": "1640"
},
{
"name": "C++",
"bytes": "1072"
},
{
"name": "CSS",
"bytes": "444529"
},
{
"name": "Clojure",
"bytes": "1206"
},
{
"name": "CoffeeScript",
"bytes": "590"
},
{
"name": "F#",
"bytes": "634"
},
{
"name": "Go",
"bytes": "652"
},
{
"name": "Groovy",
"bytes": "3928"
},
{
"name": "HLSL",
"bytes": "184"
},
{
"name": "HTML",
"bytes": "32402"
},
{
"name": "Inno Setup",
"bytes": "131467"
},
{
"name": "Java",
"bytes": "599"
},
{
"name": "JavaScript",
"bytes": "869244"
},
{
"name": "Lua",
"bytes": "252"
},
{
"name": "Makefile",
"bytes": "941"
},
{
"name": "Objective-C",
"bytes": "1387"
},
{
"name": "PHP",
"bytes": "998"
},
{
"name": "Perl",
"bytes": "857"
},
{
"name": "Perl 6",
"bytes": "1065"
},
{
"name": "PowerShell",
"bytes": "8943"
},
{
"name": "Python",
"bytes": "2119"
},
{
"name": "R",
"bytes": "362"
},
{
"name": "Roff",
"bytes": "351"
},
{
"name": "Ruby",
"bytes": "1703"
},
{
"name": "Rust",
"bytes": "532"
},
{
"name": "ShaderLab",
"bytes": "330"
},
{
"name": "Shell",
"bytes": "38696"
},
{
"name": "Swift",
"bytes": "220"
},
{
"name": "TypeScript",
"bytes": "17091332"
},
{
"name": "Visual Basic",
"bytes": "893"
}
],
"symlink_target": ""
} |
published: true
title: Death At Dinner
layout: post
---
Death stalked us
Silently it slithered in
Quietly it choked us
Surreptitiously it split us apart
It came for us all
Deftly we had been enveloped
No escape left
So we surrendered
Each and every one
Before we even knew that we had succumbed
To the death of conversation | {
"content_hash": "af65151048b2e4f748fae9cf69f8b0bd",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 41,
"avg_line_length": 14.28,
"alnum_prop": 0.7282913165266106,
"repo_name": "paxbellum/paxbellum.github.io",
"id": "bf19482a380fe14b46b655786c4d8691a3897b47",
"size": "362",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/2015-11-09-death-at-dinner.markdown",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "13680"
},
{
"name": "HTML",
"bytes": "4434"
}
],
"symlink_target": ""
} |
'use strict';
var _ = require('lodash');
var samlHapi = require('./saml-hapi');
// Declare internals
var internals = {};
/**
* Method to register the plugin with hapi
* @param {object} server The server object
* @param {object} options Additional options object
* @param {function} next Callback function once plugin is registered
*/
exports.register = function (server, options, next) {
server.auth.scheme('saml', internals.implementation);
next();
};
exports.register.attributes = {
pkg: require('../package.json')
};
//Auth Scheme Implementation Template
internals.implementation = function (requestServer, requestOptions) {
var settings = _.clone(requestOptions);
return {
authenticate: samlHapi.authenticate(settings)
};
};
exports.samlHapiWrapper = samlHapi;
| {
"content_hash": "998df5f5b695d8cdec08e0f23f33dd5d",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 69,
"avg_line_length": 25,
"alnum_prop": 0.71125,
"repo_name": "jainprash/hapi-auth-saml",
"id": "2cfa798daa1682a5e987aba4b7351c67a3b03444",
"size": "800",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "35718"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013 The Android Open Source Project
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.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="hint_time_zone_search" msgid="804776560897143016">"Увядзіце назву краіны"</string>
<string name="searchview_description_clear" msgid="1603860069305867810">"Выдалiць запыт"</string>
<string name="no_results_found" msgid="5475293015394772651">"Вынікі не знойдзены"</string>
<string name="palestine_display_name" msgid="3485026339977302148">"Палестына"</string>
</resources>
| {
"content_hash": "8d34533ed3976256ae33d393061c3ff6",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 101,
"avg_line_length": 50.291666666666664,
"alnum_prop": 0.7290803645401823,
"repo_name": "indashnet/InDashNet.Open.UN2000",
"id": "e1209d251aab03e189818249b6ce18f25966edda",
"size": "1264",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "android/frameworks/opt/timezonepicker/res/values-be/strings.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package org.bitcoins.db
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import ch.qos.logback.classic.spi.ILoggingEvent
import ch.qos.logback.classic.LoggerContext
import ch.qos.logback.classic.encoder.PatternLayoutEncoder
import ch.qos.logback.core.rolling.RollingFileAppender
import ch.qos.logback.core.rolling.TimeBasedRollingPolicy
import ch.qos.logback.core.encoder.Encoder
import ch.qos.logback.core.FileAppender
import ch.qos.logback.core.ConsoleAppender
import ch.qos.logback.classic.joran.JoranConfigurator
/** Provides logging functionality for Bitcoin-S
* app modules (i.e. the modules that are capable
* of running on their own) */
private[bitcoins] trait AppLoggers {
sealed private[bitcoins] trait LoggerKind
protected[bitcoins] object LoggerKind {
case object P2P extends LoggerKind
case object ChainVerification extends LoggerKind
case object KeyHandling extends LoggerKind
case object Wallet extends LoggerKind
case object Http extends LoggerKind
case object Database extends LoggerKind
}
private val context = {
val context = LoggerFactory.getILoggerFactory() match {
case ctx: LoggerContext => ctx
case other => sys.error(s"Expected LoggerContext, got: $other")
}
// following three lines prevents Logback from reading XML conf files
val configurator = new JoranConfigurator
configurator.setContext(context)
context.reset()
context
}
/** Responsible for formatting our logs */
private val encoder: Encoder[Nothing] = {
val encoder = new PatternLayoutEncoder()
// same date format as Bitcoin Core
encoder.setPattern(
s"%date{yyyy-MM-dd'T'HH:mm:ss,SSXXX} %level [%logger{0}] %msg%n")
encoder.setContext(context)
encoder.start()
encoder.asInstanceOf[Encoder[Nothing]]
}
/** Responsible for writing to stdout
*
* TODO: Use different appender than file?
*/
private lazy val consoleAppender: ConsoleAppender[ILoggingEvent] = {
val appender = new ConsoleAppender()
appender.setContext(context)
appender.setName("console")
appender.setEncoder(encoder)
appender.asInstanceOf[ConsoleAppender[ILoggingEvent]]
}
/**
* Responsible for writing to the log file
*/
private lazy val fileAppender: FileAppender[ILoggingEvent] = {
val logFileAppender = new RollingFileAppender()
logFileAppender.setContext(context)
logFileAppender.setName("logFile")
logFileAppender.setEncoder(encoder)
logFileAppender.setAppend(true)
val logFilePolicy = new TimeBasedRollingPolicy()
logFilePolicy.setContext(context)
logFilePolicy.setParent(logFileAppender)
logFilePolicy.setFileNamePattern("bitcoin-s-%d{yyyy-MM-dd_HH}.log")
logFilePolicy.setMaxHistory(7)
logFilePolicy.start()
logFileAppender.setRollingPolicy(logFilePolicy)
logFileAppender.asInstanceOf[FileAppender[ILoggingEvent]]
}
/** Stitches together the encoder, appenders and sets the correct
* logging level
*/
protected def getLoggerImpl(loggerKind: LoggerKind)(
implicit conf: AppConfig): Logger = {
import LoggerKind._
val (name, level) = loggerKind match {
case ChainVerification =>
("chain-verification", conf.verificationLogLevel)
case KeyHandling => ("KEY-HANDLING", conf.keyHandlingLogLevel)
case P2P => ("P2P", conf.p2pLogLevel)
case Wallet => ("WALLET", conf.walletLogLeveL)
case Http => ("HTTP", conf.httpLogLevel)
case Database => ("DATABASE", conf.databaseLogLevel)
}
val logger = context.getLogger(name)
if (!conf.disableFileLogging) {
val logfile = conf.datadir.resolve(s"bitcoin-s.log")
fileAppender.setFile(logfile.toString())
fileAppender.start()
logger.addAppender(fileAppender)
}
if (!conf.disableConsoleLogging) {
consoleAppender.start()
logger.addAppender(consoleAppender)
}
logger.setLevel(level)
logger.setAdditive(true)
logger
}
}
| {
"content_hash": "dc82cb6ccc83ba96bd3e5087ef054f36",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 82,
"avg_line_length": 32.2,
"alnum_prop": 0.7217391304347827,
"repo_name": "bitcoin-s/bitcoin-s-core",
"id": "b12c65150b10d3fcd1f057f7bff20bb8c12a7eda",
"size": "4025",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "db-commons/src/main/scala/org/bitcoins/db/AppLoggers.scala",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2266"
},
{
"name": "Dockerfile",
"bytes": "148"
},
{
"name": "Java",
"bytes": "44689"
},
{
"name": "JavaScript",
"bytes": "22991"
},
{
"name": "Scala",
"bytes": "2222831"
},
{
"name": "Shell",
"bytes": "804"
}
],
"symlink_target": ""
} |
{-# LANGUAGE BangPatterns, CPP, NondecreasingIndentation, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
-- NB: we specifically ignore deprecations. GHC 7.6 marks the .QSem module as
-- deprecated, although it became un-deprecated later. As a result, using 7.6
-- as your bootstrap compiler throws annoying warnings.
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow, 2011
--
-- This module implements multi-module compilation, and is used
-- by --make and GHCi.
--
-- -----------------------------------------------------------------------------
module GhcMake(
depanal,
load, LoadHowMuch(..),
topSortModuleGraph,
ms_home_srcimps, ms_home_imps,
noModError, cyclicModuleErr
) where
#include "HsVersions.h"
#ifdef GHCI
import qualified Linker ( unload )
#endif
import DriverPhases
import DriverPipeline
import DynFlags
import ErrUtils
import Finder
import GhcMonad
import HeaderInfo
import HscTypes
import Module
import TcIface ( typecheckIface )
import TcRnMonad ( initIfaceCheck )
import Bag ( listToBag )
import BasicTypes
import Digraph
import Exception ( tryIO, gbracket, gfinally )
import FastString
import Maybes ( expectJust )
import Name
import MonadUtils ( allM, MonadIO )
import Outputable
import Panic
import SrcLoc
import StringBuffer
import SysTools
import UniqFM
import Util
import qualified GHC.LanguageExtensions as LangExt
import Data.Either ( rights, partitionEithers )
import qualified Data.Map as Map
import Data.Map (Map)
import qualified Data.Set as Set
import qualified FiniteMap as Map ( insertListWith )
import Control.Concurrent ( forkIOWithUnmask, killThread )
import qualified GHC.Conc as CC
import Control.Concurrent.MVar
import Control.Concurrent.QSem
import Control.Exception
import Control.Monad
import Data.IORef
import Data.List
import qualified Data.List as List
import Data.Maybe
import Data.Ord ( comparing )
import Data.Time
import System.Directory
import System.FilePath
import System.IO ( fixIO )
import System.IO.Error ( isDoesNotExistError )
import GHC.Conc ( getNumProcessors, getNumCapabilities, setNumCapabilities )
label_self :: String -> IO ()
label_self thread_name = do
self_tid <- CC.myThreadId
CC.labelThread self_tid thread_name
-- -----------------------------------------------------------------------------
-- Loading the program
-- | Perform a dependency analysis starting from the current targets
-- and update the session with the new module graph.
--
-- Dependency analysis entails parsing the @import@ directives and may
-- therefore require running certain preprocessors.
--
-- Note that each 'ModSummary' in the module graph caches its 'DynFlags'.
-- These 'DynFlags' are determined by the /current/ session 'DynFlags' and the
-- @OPTIONS@ and @LANGUAGE@ pragmas of the parsed module. Thus if you want
-- changes to the 'DynFlags' to take effect you need to call this function
-- again.
--
depanal :: GhcMonad m =>
[ModuleName] -- ^ excluded modules
-> Bool -- ^ allow duplicate roots
-> m ModuleGraph
depanal excluded_mods allow_dup_roots = do
hsc_env <- getSession
let
dflags = hsc_dflags hsc_env
targets = hsc_targets hsc_env
old_graph = hsc_mod_graph hsc_env
withTiming (pure dflags) (text "Chasing dependencies") (const ()) $ do
liftIO $ debugTraceMsg dflags 2 (hcat [
text "Chasing modules from: ",
hcat (punctuate comma (map pprTarget targets))])
mod_graphE <- liftIO $ downsweep hsc_env old_graph
excluded_mods allow_dup_roots
mod_graph <- reportImportErrors mod_graphE
modifySession $ \_ -> hsc_env { hsc_mod_graph = mod_graph }
return mod_graph
-- | Describes which modules of the module graph need to be loaded.
data LoadHowMuch
= LoadAllTargets
-- ^ Load all targets and its dependencies.
| LoadUpTo ModuleName
-- ^ Load only the given module and its dependencies.
| LoadDependenciesOf ModuleName
-- ^ Load only the dependencies of the given module, but not the module
-- itself.
-- | Try to load the program. See 'LoadHowMuch' for the different modes.
--
-- This function implements the core of GHC's @--make@ mode. It preprocesses,
-- compiles and loads the specified modules, avoiding re-compilation wherever
-- possible. Depending on the target (see 'DynFlags.hscTarget') compiling
-- and loading may result in files being created on disk.
--
-- Calls the 'defaultWarnErrLogger' after each compiling each module, whether
-- successful or not.
--
-- Throw a 'SourceError' if errors are encountered before the actual
-- compilation starts (e.g., during dependency analysis). All other errors
-- are reported using the 'defaultWarnErrLogger'.
--
load :: GhcMonad m => LoadHowMuch -> m SuccessFlag
load how_much = do
mod_graph <- depanal [] False
guessOutputFile
hsc_env <- getSession
let hpt1 = hsc_HPT hsc_env
let dflags = hsc_dflags hsc_env
-- The "bad" boot modules are the ones for which we have
-- B.hs-boot in the module graph, but no B.hs
-- The downsweep should have ensured this does not happen
-- (see msDeps)
let all_home_mods = [ms_mod_name s
| s <- mod_graph, not (isBootSummary s)]
-- TODO: Figure out what the correct form of this assert is. It's violated
-- when you have HsBootMerge nodes in the graph: then you'll have hs-boot
-- files without corresponding hs files.
-- bad_boot_mods = [s | s <- mod_graph, isBootSummary s,
-- not (ms_mod_name s `elem` all_home_mods)]
-- ASSERT( null bad_boot_mods ) return ()
-- check that the module given in HowMuch actually exists, otherwise
-- topSortModuleGraph will bomb later.
let checkHowMuch (LoadUpTo m) = checkMod m
checkHowMuch (LoadDependenciesOf m) = checkMod m
checkHowMuch _ = id
checkMod m and_then
| m `elem` all_home_mods = and_then
| otherwise = do
liftIO $ errorMsg dflags (text "no such module:" <+>
quotes (ppr m))
return Failed
checkHowMuch how_much $ do
-- mg2_with_srcimps drops the hi-boot nodes, returning a
-- graph with cycles. Among other things, it is used for
-- backing out partially complete cycles following a failed
-- upsweep, and for removing from hpt all the modules
-- not in strict downwards closure, during calls to compile.
let mg2_with_srcimps :: [SCC ModSummary]
mg2_with_srcimps = topSortModuleGraph True mod_graph Nothing
-- If we can determine that any of the {-# SOURCE #-} imports
-- are definitely unnecessary, then emit a warning.
warnUnnecessarySourceImports mg2_with_srcimps
let
-- check the stability property for each module.
stable_mods@(stable_obj,stable_bco)
= checkStability hpt1 mg2_with_srcimps all_home_mods
-- prune bits of the HPT which are definitely redundant now,
-- to save space.
pruned_hpt = pruneHomePackageTable hpt1
(flattenSCCs mg2_with_srcimps)
stable_mods
_ <- liftIO $ evaluate pruned_hpt
-- before we unload anything, make sure we don't leave an old
-- interactive context around pointing to dead bindings. Also,
-- write the pruned HPT to allow the old HPT to be GC'd.
setSession $ discardIC $ hsc_env { hsc_HPT = pruned_hpt }
liftIO $ debugTraceMsg dflags 2 (text "Stable obj:" <+> ppr stable_obj $$
text "Stable BCO:" <+> ppr stable_bco)
-- Unload any modules which are going to be re-linked this time around.
let stable_linkables = [ linkable
| m <- stable_obj++stable_bco,
Just hmi <- [lookupUFM pruned_hpt m],
Just linkable <- [hm_linkable hmi] ]
liftIO $ unload hsc_env stable_linkables
-- We could at this point detect cycles which aren't broken by
-- a source-import, and complain immediately, but it seems better
-- to let upsweep_mods do this, so at least some useful work gets
-- done before the upsweep is abandoned.
--hPutStrLn stderr "after tsort:\n"
--hPutStrLn stderr (showSDoc (vcat (map ppr mg2)))
-- Now do the upsweep, calling compile for each module in
-- turn. Final result is version 3 of everything.
-- Topologically sort the module graph, this time including hi-boot
-- nodes, and possibly just including the portion of the graph
-- reachable from the module specified in the 2nd argument to load.
-- This graph should be cycle-free.
-- If we're restricting the upsweep to a portion of the graph, we
-- also want to retain everything that is still stable.
let full_mg :: [SCC ModSummary]
full_mg = topSortModuleGraph False mod_graph Nothing
maybe_top_mod = case how_much of
LoadUpTo m -> Just m
LoadDependenciesOf m -> Just m
_ -> Nothing
partial_mg0 :: [SCC ModSummary]
partial_mg0 = topSortModuleGraph False mod_graph maybe_top_mod
-- LoadDependenciesOf m: we want the upsweep to stop just
-- short of the specified module (unless the specified module
-- is stable).
partial_mg
| LoadDependenciesOf _mod <- how_much
= ASSERT( case last partial_mg0 of
AcyclicSCC ms -> ms_mod_name ms == _mod; _ -> False )
List.init partial_mg0
| otherwise
= partial_mg0
stable_mg =
[ AcyclicSCC ms
| AcyclicSCC ms <- full_mg,
ms_mod_name ms `elem` stable_obj++stable_bco ]
-- the modules from partial_mg that are not also stable
-- NB. also keep cycles, we need to emit an error message later
unstable_mg = filter not_stable partial_mg
where not_stable (CyclicSCC _) = True
not_stable (AcyclicSCC ms)
= ms_mod_name ms `notElem` stable_obj++stable_bco
-- Load all the stable modules first, before attempting to load
-- an unstable module (#7231).
mg = stable_mg ++ unstable_mg
-- clean up between compilations
let cleanup hsc_env = intermediateCleanTempFiles (hsc_dflags hsc_env)
(flattenSCCs mg2_with_srcimps)
hsc_env
liftIO $ debugTraceMsg dflags 2 (hang (text "Ready for upsweep")
2 (ppr mg))
n_jobs <- case parMakeCount dflags of
Nothing -> liftIO getNumProcessors
Just n -> return n
let upsweep_fn | n_jobs > 1 = parUpsweep n_jobs
| otherwise = upsweep
setSession hsc_env{ hsc_HPT = emptyHomePackageTable }
(upsweep_ok, modsUpswept)
<- upsweep_fn pruned_hpt stable_mods cleanup mg
-- Make modsDone be the summaries for each home module now
-- available; this should equal the domain of hpt3.
-- Get in in a roughly top .. bottom order (hence reverse).
let modsDone = reverse modsUpswept
-- Try and do linking in some form, depending on whether the
-- upsweep was completely or only partially successful.
if succeeded upsweep_ok
then
-- Easy; just relink it all.
do liftIO $ debugTraceMsg dflags 2 (text "Upsweep completely successful.")
-- Clean up after ourselves
hsc_env1 <- getSession
liftIO $ intermediateCleanTempFiles dflags modsDone hsc_env1
-- Issue a warning for the confusing case where the user
-- said '-o foo' but we're not going to do any linking.
-- We attempt linking if either (a) one of the modules is
-- called Main, or (b) the user said -no-hs-main, indicating
-- that main() is going to come from somewhere else.
--
let ofile = outputFile dflags
let no_hs_main = gopt Opt_NoHsMain dflags
let
main_mod = mainModIs dflags
a_root_is_Main = any ((==main_mod).ms_mod) mod_graph
do_linking = a_root_is_Main || no_hs_main || ghcLink dflags == LinkDynLib || ghcLink dflags == LinkStaticLib
-- link everything together
linkresult <- liftIO $ link (ghcLink dflags) dflags do_linking (hsc_HPT hsc_env1)
if ghcLink dflags == LinkBinary && isJust ofile && not do_linking
then do
liftIO $ errorMsg dflags $ text
("output was redirected with -o, " ++
"but no output will be generated\n" ++
"because there is no " ++
moduleNameString (moduleName main_mod) ++ " module.")
-- This should be an error, not a warning (#10895).
loadFinish Failed linkresult
else
loadFinish Succeeded linkresult
else
-- Tricky. We need to back out the effects of compiling any
-- half-done cycles, both so as to clean up the top level envs
-- and to avoid telling the interactive linker to link them.
do liftIO $ debugTraceMsg dflags 2 (text "Upsweep partially successful.")
let modsDone_names
= map ms_mod modsDone
let mods_to_zap_names
= findPartiallyCompletedCycles modsDone_names
mg2_with_srcimps
let mods_to_keep
= filter ((`notElem` mods_to_zap_names).ms_mod)
modsDone
hsc_env1 <- getSession
let hpt4 = retainInTopLevelEnvs (map ms_mod_name mods_to_keep)
(hsc_HPT hsc_env1)
-- Clean up after ourselves
liftIO $ intermediateCleanTempFiles dflags mods_to_keep hsc_env1
-- there should be no Nothings where linkables should be, now
let just_linkables =
isNoLink (ghcLink dflags)
|| all (isJust.hm_linkable)
(filter ((== HsSrcFile).mi_hsc_src.hm_iface)
(eltsUFM hpt4))
ASSERT( just_linkables ) do
-- Link everything together
linkresult <- liftIO $ link (ghcLink dflags) dflags False hpt4
modifySession $ \hsc_env -> hsc_env{ hsc_HPT = hpt4 }
loadFinish Failed linkresult
-- | Finish up after a load.
loadFinish :: GhcMonad m => SuccessFlag -> SuccessFlag -> m SuccessFlag
-- If the link failed, unload everything and return.
loadFinish _all_ok Failed
= do hsc_env <- getSession
liftIO $ unload hsc_env []
modifySession discardProg
return Failed
-- Empty the interactive context and set the module context to the topmost
-- newly loaded module, or the Prelude if none were loaded.
loadFinish all_ok Succeeded
= do modifySession discardIC
return all_ok
-- | Forget the current program, but retain the persistent info in HscEnv
discardProg :: HscEnv -> HscEnv
discardProg hsc_env
= discardIC $ hsc_env { hsc_mod_graph = emptyMG
, hsc_HPT = emptyHomePackageTable }
-- | Discard the contents of the InteractiveContext, but keep the DynFlags.
-- It will also keep ic_int_print and ic_monad if their names are from
-- external packages.
discardIC :: HscEnv -> HscEnv
discardIC hsc_env
= hsc_env { hsc_IC = empty_ic { ic_int_print = new_ic_int_print
, ic_monad = new_ic_monad } }
where
-- Force the new values for ic_int_print and ic_monad to avoid leaking old_ic
!new_ic_int_print = keep_external_name ic_int_print
!new_ic_monad = keep_external_name ic_monad
dflags = ic_dflags old_ic
old_ic = hsc_IC hsc_env
empty_ic = emptyInteractiveContext dflags
keep_external_name ic_name
| nameIsFromExternalPackage this_pkg old_name = old_name
| otherwise = ic_name empty_ic
where
this_pkg = thisPackage dflags
old_name = ic_name old_ic
intermediateCleanTempFiles :: DynFlags -> [ModSummary] -> HscEnv -> IO ()
intermediateCleanTempFiles dflags summaries hsc_env
= do notIntermediate <- readIORef (filesToNotIntermediateClean dflags)
cleanTempFilesExcept dflags (notIntermediate ++ except)
where
except =
-- Save preprocessed files. The preprocessed file *might* be
-- the same as the source file, but that doesn't do any
-- harm.
map ms_hspp_file summaries ++
-- Save object files for loaded modules. The point of this
-- is that we might have generated and compiled a stub C
-- file, and in the case of GHCi the object file will be a
-- temporary file which we must not remove because we need
-- to load/link it later.
hptObjs (hsc_HPT hsc_env)
-- | If there is no -o option, guess the name of target executable
-- by using top-level source file name as a base.
guessOutputFile :: GhcMonad m => m ()
guessOutputFile = modifySession $ \env ->
let dflags = hsc_dflags env
-- Force mod_graph to avoid leaking env
!mod_graph = hsc_mod_graph env
mainModuleSrcPath :: Maybe String
mainModuleSrcPath = do
let isMain = (== mainModIs dflags) . ms_mod
[ms] <- return (filter isMain mod_graph)
ml_hs_file (ms_location ms)
name = fmap dropExtension mainModuleSrcPath
name_exe = do
#if defined(mingw32_HOST_OS)
-- we must add the .exe extention unconditionally here, otherwise
-- when name has an extension of its own, the .exe extension will
-- not be added by DriverPipeline.exeFileName. See #2248
name' <- fmap (<.> "exe") name
#else
name' <- name
#endif
mainModuleSrcPath' <- mainModuleSrcPath
-- #9930: don't clobber input files (unless they ask for it)
if name' == mainModuleSrcPath'
then throwGhcException . UsageError $
"default output name would overwrite the input file; " ++
"must specify -o explicitly"
else Just name'
in
case outputFile dflags of
Just _ -> env
Nothing -> env { hsc_dflags = dflags { outputFile = name_exe } }
-- -----------------------------------------------------------------------------
--
-- | Prune the HomePackageTable
--
-- Before doing an upsweep, we can throw away:
--
-- - For non-stable modules:
-- - all ModDetails, all linked code
-- - all unlinked code that is out of date with respect to
-- the source file
--
-- This is VERY IMPORTANT otherwise we'll end up requiring 2x the
-- space at the end of the upsweep, because the topmost ModDetails of the
-- old HPT holds on to the entire type environment from the previous
-- compilation.
pruneHomePackageTable :: HomePackageTable
-> [ModSummary]
-> ([ModuleName],[ModuleName])
-> HomePackageTable
pruneHomePackageTable hpt summ (stable_obj, stable_bco)
= mapUFM prune hpt
where prune hmi
| is_stable modl = hmi'
| otherwise = hmi'{ hm_details = emptyModDetails }
where
modl = moduleName (mi_module (hm_iface hmi))
hmi' | Just l <- hm_linkable hmi, linkableTime l < ms_hs_date ms
= hmi{ hm_linkable = Nothing }
| otherwise
= hmi
where ms = expectJust "prune" (lookupUFM ms_map modl)
ms_map = listToUFM [(ms_mod_name ms, ms) | ms <- summ]
is_stable m = m `elem` stable_obj || m `elem` stable_bco
-- -----------------------------------------------------------------------------
--
-- | Return (names of) all those in modsDone who are part of a cycle as defined
-- by theGraph.
findPartiallyCompletedCycles :: [Module] -> [SCC ModSummary] -> [Module]
findPartiallyCompletedCycles modsDone theGraph
= chew theGraph
where
chew [] = []
chew ((AcyclicSCC _):rest) = chew rest -- acyclic? not interesting.
chew ((CyclicSCC vs):rest)
= let names_in_this_cycle = nub (map ms_mod vs)
mods_in_this_cycle
= nub ([done | done <- modsDone,
done `elem` names_in_this_cycle])
chewed_rest = chew rest
in
if notNull mods_in_this_cycle
&& length mods_in_this_cycle < length names_in_this_cycle
then mods_in_this_cycle ++ chewed_rest
else chewed_rest
-- ---------------------------------------------------------------------------
--
-- | Unloading
unload :: HscEnv -> [Linkable] -> IO ()
unload hsc_env stable_linkables -- Unload everthing *except* 'stable_linkables'
= case ghcLink (hsc_dflags hsc_env) of
#ifdef GHCI
LinkInMemory -> Linker.unload hsc_env stable_linkables
#else
LinkInMemory -> panic "unload: no interpreter"
-- urgh. avoid warnings:
hsc_env stable_linkables
#endif
_other -> return ()
-- -----------------------------------------------------------------------------
{- |
Stability tells us which modules definitely do not need to be recompiled.
There are two main reasons for having stability:
- avoid doing a complete upsweep of the module graph in GHCi when
modules near the bottom of the tree have not changed.
- to tell GHCi when it can load object code: we can only load object code
for a module when we also load object code fo all of the imports of the
module. So we need to know that we will definitely not be recompiling
any of these modules, and we can use the object code.
The stability check is as follows. Both stableObject and
stableBCO are used during the upsweep phase later.
@
stable m = stableObject m || stableBCO m
stableObject m =
all stableObject (imports m)
&& old linkable does not exist, or is == on-disk .o
&& date(on-disk .o) > date(.hs)
stableBCO m =
all stable (imports m)
&& date(BCO) > date(.hs)
@
These properties embody the following ideas:
- if a module is stable, then:
- if it has been compiled in a previous pass (present in HPT)
then it does not need to be compiled or re-linked.
- if it has not been compiled in a previous pass,
then we only need to read its .hi file from disk and
link it to produce a 'ModDetails'.
- if a modules is not stable, we will definitely be at least
re-linking, and possibly re-compiling it during the 'upsweep'.
All non-stable modules can (and should) therefore be unlinked
before the 'upsweep'.
- Note that objects are only considered stable if they only depend
on other objects. We can't link object code against byte code.
-}
checkStability
:: HomePackageTable -- HPT from last compilation
-> [SCC ModSummary] -- current module graph (cyclic)
-> [ModuleName] -- all home modules
-> ([ModuleName], -- stableObject
[ModuleName]) -- stableBCO
checkStability hpt sccs all_home_mods = foldl checkSCC ([],[]) sccs
where
checkSCC (stable_obj, stable_bco) scc0
| stableObjects = (scc_mods ++ stable_obj, stable_bco)
| stableBCOs = (stable_obj, scc_mods ++ stable_bco)
| otherwise = (stable_obj, stable_bco)
where
scc = flattenSCC scc0
scc_mods = map ms_mod_name scc
home_module m = m `elem` all_home_mods && m `notElem` scc_mods
scc_allimps = nub (filter home_module (concatMap ms_home_allimps scc))
-- all imports outside the current SCC, but in the home pkg
stable_obj_imps = map (`elem` stable_obj) scc_allimps
stable_bco_imps = map (`elem` stable_bco) scc_allimps
stableObjects =
and stable_obj_imps
&& all object_ok scc
stableBCOs =
and (zipWith (||) stable_obj_imps stable_bco_imps)
&& all bco_ok scc
object_ok ms
| gopt Opt_ForceRecomp (ms_hspp_opts ms) = False
| Just t <- ms_obj_date ms = t >= ms_hs_date ms
&& same_as_prev t
| otherwise = False
where
same_as_prev t = case lookupUFM hpt (ms_mod_name ms) of
Just hmi | Just l <- hm_linkable hmi
-> isObjectLinkable l && t == linkableTime l
_other -> True
-- why '>=' rather than '>' above? If the filesystem stores
-- times to the nearset second, we may occasionally find that
-- the object & source have the same modification time,
-- especially if the source was automatically generated
-- and compiled. Using >= is slightly unsafe, but it matches
-- make's behaviour.
--
-- But see #5527, where someone ran into this and it caused
-- a problem.
bco_ok ms
| gopt Opt_ForceRecomp (ms_hspp_opts ms) = False
| otherwise = case lookupUFM hpt (ms_mod_name ms) of
Just hmi | Just l <- hm_linkable hmi ->
not (isObjectLinkable l) &&
linkableTime l >= ms_hs_date ms
_other -> False
{- Parallel Upsweep
-
- The parallel upsweep attempts to concurrently compile the modules in the
- compilation graph using multiple Haskell threads.
-
- The Algorithm
-
- A Haskell thread is spawned for each module in the module graph, waiting for
- its direct dependencies to finish building before it itself begins to build.
-
- Each module is associated with an initially empty MVar that stores the
- result of that particular module's compile. If the compile succeeded, then
- the HscEnv (synchronized by an MVar) is updated with the fresh HMI of that
- module, and the module's HMI is deleted from the old HPT (synchronized by an
- IORef) to save space.
-
- Instead of immediately outputting messages to the standard handles, all
- compilation output is deferred to a per-module TQueue. A QSem is used to
- limit the number of workers that are compiling simultaneously.
-
- Meanwhile, the main thread sequentially loops over all the modules in the
- module graph, outputting the messages stored in each module's TQueue.
-}
-- | Each module is given a unique 'LogQueue' to redirect compilation messages
-- to. A 'Nothing' value contains the result of compilation, and denotes the
-- end of the message queue.
data LogQueue = LogQueue !(IORef [Maybe (WarnReason, Severity, SrcSpan, PprStyle, MsgDoc)])
!(MVar ())
-- | The graph of modules to compile and their corresponding result 'MVar' and
-- 'LogQueue'.
type CompilationGraph = [(ModSummary, MVar SuccessFlag, LogQueue)]
-- | Build a 'CompilationGraph' out of a list of strongly-connected modules,
-- also returning the first, if any, encountered module cycle.
buildCompGraph :: [SCC ModSummary] -> IO (CompilationGraph, Maybe [ModSummary])
buildCompGraph [] = return ([], Nothing)
buildCompGraph (scc:sccs) = case scc of
AcyclicSCC ms -> do
mvar <- newEmptyMVar
log_queue <- do
ref <- newIORef []
sem <- newEmptyMVar
return (LogQueue ref sem)
(rest,cycle) <- buildCompGraph sccs
return ((ms,mvar,log_queue):rest, cycle)
CyclicSCC mss -> return ([], Just mss)
-- A Module and whether it is a boot module.
type BuildModule = (Module, IsBoot)
-- | 'Bool' indicating if a module is a boot module or not. We need to treat
-- boot modules specially when building compilation graphs, since they break
-- cycles. Regular source files and signature files are treated equivalently.
data IsBoot = IsBoot | NotBoot
deriving (Ord, Eq, Show, Read)
-- | Tests if an 'HscSource' is a boot file, primarily for constructing
-- elements of 'BuildModule'.
hscSourceToIsBoot :: HscSource -> IsBoot
hscSourceToIsBoot HsBootFile = IsBoot
hscSourceToIsBoot _ = NotBoot
mkBuildModule :: ModSummary -> BuildModule
mkBuildModule ms = (ms_mod ms, if isBootSummary ms then IsBoot else NotBoot)
-- | The entry point to the parallel upsweep.
--
-- See also the simpler, sequential 'upsweep'.
parUpsweep
:: GhcMonad m
=> Int
-- ^ The number of workers we wish to run in parallel
-> HomePackageTable
-> ([ModuleName],[ModuleName])
-> (HscEnv -> IO ())
-> [SCC ModSummary]
-> m (SuccessFlag,
[ModSummary])
parUpsweep n_jobs old_hpt stable_mods cleanup sccs = do
hsc_env <- getSession
let dflags = hsc_dflags hsc_env
-- The bits of shared state we'll be using:
-- The global HscEnv is updated with the module's HMI when a module
-- successfully compiles.
hsc_env_var <- liftIO $ newMVar hsc_env
-- The old HPT is used for recompilation checking in upsweep_mod. When a
-- module successfully gets compiled, its HMI is pruned from the old HPT.
old_hpt_var <- liftIO $ newIORef old_hpt
-- What we use to limit parallelism with.
par_sem <- liftIO $ newQSem n_jobs
let updNumCapabilities = liftIO $ do
n_capabilities <- getNumCapabilities
unless (n_capabilities /= 1) $ setNumCapabilities n_jobs
return n_capabilities
-- Reset the number of capabilities once the upsweep ends.
let resetNumCapabilities orig_n = liftIO $ setNumCapabilities orig_n
gbracket updNumCapabilities resetNumCapabilities $ \_ -> do
-- Sync the global session with the latest HscEnv once the upsweep ends.
let finallySyncSession io = io `gfinally` do
hsc_env <- liftIO $ readMVar hsc_env_var
setSession hsc_env
finallySyncSession $ do
-- Build the compilation graph out of the list of SCCs. Module cycles are
-- handled at the very end, after some useful work gets done. Note that
-- this list is topologically sorted (by virtue of 'sccs' being sorted so).
(comp_graph,cycle) <- liftIO $ buildCompGraph sccs
let comp_graph_w_idx = zip comp_graph [1..]
-- The list of all loops in the compilation graph.
-- NB: For convenience, the last module of each loop (aka the module that
-- finishes the loop) is prepended to the beginning of the loop.
let comp_graph_loops = go (map fstOf3 (reverse comp_graph))
where
go [] = []
go (ms:mss) | Just loop <- getModLoop ms (ms:mss)
= map mkBuildModule (ms:loop) : go mss
| otherwise
= go mss
-- Build a Map out of the compilation graph with which we can efficiently
-- look up the result MVar associated with a particular home module.
let home_mod_map :: Map BuildModule (MVar SuccessFlag, Int)
home_mod_map =
Map.fromList [ (mkBuildModule ms, (mvar, idx))
| ((ms,mvar,_),idx) <- comp_graph_w_idx ]
liftIO $ label_self "main --make thread"
-- For each module in the module graph, spawn a worker thread that will
-- compile this module.
let { spawnWorkers = forM comp_graph_w_idx $ \((mod,!mvar,!log_queue),!mod_idx) ->
forkIOWithUnmask $ \unmask -> do
liftIO $ label_self $ unwords
[ "worker --make thread"
, "for module"
, show (moduleNameString (ms_mod_name mod))
, "number"
, show mod_idx
]
-- Replace the default log_action with one that writes each
-- message to the module's log_queue. The main thread will
-- deal with synchronously printing these messages.
--
-- Use a local filesToClean var so that we can clean up
-- intermediate files in a timely fashion (as soon as
-- compilation for that module is finished) without having to
-- worry about accidentally deleting a simultaneous compile's
-- important files.
lcl_files_to_clean <- newIORef []
let lcl_dflags = dflags { log_action = parLogAction log_queue
, filesToClean = lcl_files_to_clean }
-- Unmask asynchronous exceptions and perform the thread-local
-- work to compile the module (see parUpsweep_one).
m_res <- try $ unmask $ prettyPrintGhcErrors lcl_dflags $
parUpsweep_one mod home_mod_map comp_graph_loops
lcl_dflags cleanup
par_sem hsc_env_var old_hpt_var
stable_mods mod_idx (length sccs)
res <- case m_res of
Right flag -> return flag
Left exc -> do
-- Don't print ThreadKilled exceptions: they are used
-- to kill the worker thread in the event of a user
-- interrupt, and the user doesn't have to be informed
-- about that.
when (fromException exc /= Just ThreadKilled)
(errorMsg lcl_dflags (text (show exc)))
return Failed
-- Populate the result MVar.
putMVar mvar res
-- Write the end marker to the message queue, telling the main
-- thread that it can stop waiting for messages from this
-- particular compile.
writeLogQueue log_queue Nothing
-- Add the remaining files that weren't cleaned up to the
-- global filesToClean ref, for cleanup later.
files_kept <- readIORef (filesToClean lcl_dflags)
addFilesToClean dflags files_kept
-- Kill all the workers, masking interrupts (since killThread is
-- interruptible). XXX: This is not ideal.
; killWorkers = uninterruptibleMask_ . mapM_ killThread }
-- Spawn the workers, making sure to kill them later. Collect the results
-- of each compile.
results <- liftIO $ bracket spawnWorkers killWorkers $ \_ ->
-- Loop over each module in the compilation graph in order, printing
-- each message from its log_queue.
forM comp_graph $ \(mod,mvar,log_queue) -> do
printLogs dflags log_queue
result <- readMVar mvar
if succeeded result then return (Just mod) else return Nothing
-- Collect and return the ModSummaries of all the successful compiles.
-- NB: Reverse this list to maintain output parity with the sequential upsweep.
let ok_results = reverse (catMaybes results)
-- Handle any cycle in the original compilation graph and return the result
-- of the upsweep.
case cycle of
Just mss -> do
liftIO $ fatalErrorMsg dflags (cyclicModuleErr mss)
return (Failed,ok_results)
Nothing -> do
let success_flag = successIf (all isJust results)
return (success_flag,ok_results)
where
writeLogQueue :: LogQueue -> Maybe (WarnReason,Severity,SrcSpan,PprStyle,MsgDoc) -> IO ()
writeLogQueue (LogQueue ref sem) msg = do
atomicModifyIORef' ref $ \msgs -> (msg:msgs,())
_ <- tryPutMVar sem ()
return ()
-- The log_action callback that is used to synchronize messages from a
-- worker thread.
parLogAction :: LogQueue -> LogAction
parLogAction log_queue _dflags !reason !severity !srcSpan !style !msg = do
writeLogQueue log_queue (Just (reason,severity,srcSpan,style,msg))
-- Print each message from the log_queue using the log_action from the
-- session's DynFlags.
printLogs :: DynFlags -> LogQueue -> IO ()
printLogs !dflags (LogQueue ref sem) = read_msgs
where read_msgs = do
takeMVar sem
msgs <- atomicModifyIORef' ref $ \xs -> ([], reverse xs)
print_loop msgs
print_loop [] = read_msgs
print_loop (x:xs) = case x of
Just (reason,severity,srcSpan,style,msg) -> do
log_action dflags dflags reason severity srcSpan style msg
print_loop xs
-- Exit the loop once we encounter the end marker.
Nothing -> return ()
-- The interruptible subset of the worker threads' work.
parUpsweep_one
:: ModSummary
-- ^ The module we wish to compile
-> Map BuildModule (MVar SuccessFlag, Int)
-- ^ The map of home modules and their result MVar
-> [[BuildModule]]
-- ^ The list of all module loops within the compilation graph.
-> DynFlags
-- ^ The thread-local DynFlags
-> (HscEnv -> IO ())
-- ^ The callback for cleaning up intermediate files
-> QSem
-- ^ The semaphore for limiting the number of simultaneous compiles
-> MVar HscEnv
-- ^ The MVar that synchronizes updates to the global HscEnv
-> IORef HomePackageTable
-- ^ The old HPT
-> ([ModuleName],[ModuleName])
-- ^ Lists of stable objects and BCOs
-> Int
-- ^ The index of this module
-> Int
-- ^ The total number of modules
-> IO SuccessFlag
-- ^ The result of this compile
parUpsweep_one mod home_mod_map comp_graph_loops lcl_dflags cleanup par_sem
hsc_env_var old_hpt_var stable_mods mod_index num_mods = do
let this_build_mod = mkBuildModule mod
let home_imps = map unLoc $ ms_home_imps mod
let home_src_imps = map unLoc $ ms_home_srcimps mod
-- All the textual imports of this module.
let textual_deps = Set.fromList $ mapFst (mkModule (thisPackage lcl_dflags)) $
zip home_imps (repeat NotBoot) ++
zip home_src_imps (repeat IsBoot)
-- Dealing with module loops
-- ~~~~~~~~~~~~~~~~~~~~~~~~~
--
-- Not only do we have to deal with explicit textual dependencies, we also
-- have to deal with implicit dependencies introduced by import cycles that
-- are broken by an hs-boot file. We have to ensure that:
--
-- 1. A module that breaks a loop must depend on all the modules in the
-- loop (transitively or otherwise). This is normally always fulfilled
-- by the module's textual dependencies except in degenerate loops,
-- e.g.:
--
-- A.hs imports B.hs-boot
-- B.hs doesn't import A.hs
-- C.hs imports A.hs, B.hs
--
-- In this scenario, getModLoop will detect the module loop [A,B] but
-- the loop finisher B doesn't depend on A. So we have to explicitly add
-- A in as a dependency of B when we are compiling B.
--
-- 2. A module that depends on a module in an external loop can't proceed
-- until the entire loop is re-typechecked.
--
-- These two invariants have to be maintained to correctly build a
-- compilation graph with one or more loops.
-- The loop that this module will finish. After this module successfully
-- compiles, this loop is going to get re-typechecked.
let finish_loop = listToMaybe
[ tail loop | loop <- comp_graph_loops
, head loop == this_build_mod ]
-- If this module finishes a loop then it must depend on all the other
-- modules in that loop because the entire module loop is going to be
-- re-typechecked once this module gets compiled. These extra dependencies
-- are this module's "internal" loop dependencies, because this module is
-- inside the loop in question.
let int_loop_deps = Set.fromList $
case finish_loop of
Nothing -> []
Just loop -> filter (/= this_build_mod) loop
-- If this module depends on a module within a loop then it must wait for
-- that loop to get re-typechecked, i.e. it must wait on the module that
-- finishes that loop. These extra dependencies are this module's
-- "external" loop dependencies, because this module is outside of the
-- loop(s) in question.
let ext_loop_deps = Set.fromList
[ head loop | loop <- comp_graph_loops
, any (`Set.member` textual_deps) loop
, this_build_mod `notElem` loop ]
let all_deps = foldl1 Set.union [textual_deps, int_loop_deps, ext_loop_deps]
-- All of the module's home-module dependencies.
let home_deps_with_idx =
[ home_dep | dep <- Set.toList all_deps
, Just home_dep <- [Map.lookup dep home_mod_map] ]
-- Sort the list of dependencies in reverse-topological order. This way, by
-- the time we get woken up by the result of an earlier dependency,
-- subsequent dependencies are more likely to have finished. This step
-- effectively reduces the number of MVars that each thread blocks on.
let home_deps = map fst $ sortBy (flip (comparing snd)) home_deps_with_idx
-- Wait for the all the module's dependencies to finish building.
deps_ok <- allM (fmap succeeded . readMVar) home_deps
-- We can't build this module if any of its dependencies failed to build.
if not deps_ok
then return Failed
else do
-- Any hsc_env at this point is OK to use since we only really require
-- that the HPT contains the HMIs of our dependencies.
hsc_env <- readMVar hsc_env_var
old_hpt <- readIORef old_hpt_var
let logger err = printBagOfErrors lcl_dflags (srcErrorMessages err)
-- Limit the number of parallel compiles.
let withSem sem = bracket_ (waitQSem sem) (signalQSem sem)
mb_mod_info <- withSem par_sem $
handleSourceError (\err -> do logger err; return Nothing) $ do
-- Have the ModSummary and HscEnv point to our local log_action
-- and filesToClean var.
let lcl_mod = localize_mod mod
let lcl_hsc_env = localize_hsc_env hsc_env
-- Compile the module.
mod_info <- upsweep_mod lcl_hsc_env old_hpt stable_mods lcl_mod
mod_index num_mods
return (Just mod_info)
case mb_mod_info of
Nothing -> return Failed
Just mod_info -> do
let this_mod = ms_mod_name mod
-- Prune the old HPT unless this is an hs-boot module.
unless (isBootSummary mod) $
atomicModifyIORef' old_hpt_var $ \old_hpt ->
(delFromUFM old_hpt this_mod, ())
-- Update and fetch the global HscEnv.
lcl_hsc_env' <- modifyMVar hsc_env_var $ \hsc_env -> do
let hsc_env' = hsc_env { hsc_HPT = addToUFM (hsc_HPT hsc_env)
this_mod mod_info }
-- If this module is a loop finisher, now is the time to
-- re-typecheck the loop.
hsc_env'' <- case finish_loop of
Nothing -> return hsc_env'
Just loop -> typecheckLoop lcl_dflags hsc_env' $
map (moduleName . fst) loop
return (hsc_env'', localize_hsc_env hsc_env'')
-- Clean up any intermediate files.
cleanup lcl_hsc_env'
return Succeeded
where
localize_mod mod
= mod { ms_hspp_opts = (ms_hspp_opts mod)
{ log_action = log_action lcl_dflags
, filesToClean = filesToClean lcl_dflags } }
localize_hsc_env hsc_env
= hsc_env { hsc_dflags = (hsc_dflags hsc_env)
{ log_action = log_action lcl_dflags
, filesToClean = filesToClean lcl_dflags } }
-- -----------------------------------------------------------------------------
--
-- | The upsweep
--
-- This is where we compile each module in the module graph, in a pass
-- from the bottom to the top of the graph.
--
-- There better had not be any cyclic groups here -- we check for them.
upsweep
:: GhcMonad m
=> HomePackageTable -- ^ HPT from last time round (pruned)
-> ([ModuleName],[ModuleName]) -- ^ stable modules (see checkStability)
-> (HscEnv -> IO ()) -- ^ How to clean up unwanted tmp files
-> [SCC ModSummary] -- ^ Mods to do (the worklist)
-> m (SuccessFlag,
[ModSummary])
-- ^ Returns:
--
-- 1. A flag whether the complete upsweep was successful.
-- 2. The 'HscEnv' in the monad has an updated HPT
-- 3. A list of modules which succeeded loading.
upsweep old_hpt stable_mods cleanup sccs = do
(res, done) <- upsweep' old_hpt [] sccs 1 (length sccs)
return (res, reverse done)
where
upsweep' _old_hpt done
[] _ _
= return (Succeeded, done)
upsweep' _old_hpt done
(CyclicSCC ms:_) _ _
= do dflags <- getSessionDynFlags
liftIO $ fatalErrorMsg dflags (cyclicModuleErr ms)
return (Failed, done)
upsweep' old_hpt done
(AcyclicSCC mod:mods) mod_index nmods
= do -- putStrLn ("UPSWEEP_MOD: hpt = " ++
-- show (map (moduleUserString.moduleName.mi_module.hm_iface)
-- (moduleEnvElts (hsc_HPT hsc_env)))
let logger _mod = defaultWarnErrLogger
hsc_env <- getSession
-- Remove unwanted tmp files between compilations
liftIO (cleanup hsc_env)
mb_mod_info
<- handleSourceError
(\err -> do logger mod (Just err); return Nothing) $ do
mod_info <- liftIO $ upsweep_mod hsc_env old_hpt stable_mods
mod mod_index nmods
logger mod Nothing -- log warnings
return (Just mod_info)
case mb_mod_info of
Nothing -> return (Failed, done)
Just mod_info -> do
let this_mod = ms_mod_name mod
-- Add new info to hsc_env
hpt1 = addToUFM (hsc_HPT hsc_env) this_mod mod_info
hsc_env1 = hsc_env { hsc_HPT = hpt1 }
-- Space-saving: delete the old HPT entry
-- for mod BUT if mod is a hs-boot
-- node, don't delete it. For the
-- interface, the HPT entry is probaby for the
-- main Haskell source file. Deleting it
-- would force the real module to be recompiled
-- every time.
old_hpt1 | isBootSummary mod = old_hpt
| otherwise = delFromUFM old_hpt this_mod
done' = mod:done
-- fixup our HomePackageTable after we've finished compiling
-- a mutually-recursive loop. See reTypecheckLoop, below.
hsc_env2 <- liftIO $ reTypecheckLoop hsc_env1 mod done'
setSession hsc_env2
upsweep' old_hpt1 done' mods (mod_index+1) nmods
maybeGetIfaceDate :: DynFlags -> ModLocation -> IO (Maybe UTCTime)
maybeGetIfaceDate dflags location
| writeInterfaceOnlyMode dflags
-- Minor optimization: it should be harmless to check the hi file location
-- always, but it's better to avoid hitting the filesystem if possible.
= modificationTimeIfExists (ml_hi_file location)
| otherwise
= return Nothing
-- | Compile a single module. Always produce a Linkable for it if
-- successful. If no compilation happened, return the old Linkable.
upsweep_mod :: HscEnv
-> HomePackageTable
-> ([ModuleName],[ModuleName])
-> ModSummary
-> Int -- index of module
-> Int -- total number of modules
-> IO HomeModInfo
upsweep_mod hsc_env old_hpt (stable_obj, stable_bco) summary mod_index nmods
= let
this_mod_name = ms_mod_name summary
this_mod = ms_mod summary
mb_obj_date = ms_obj_date summary
mb_if_date = ms_iface_date summary
obj_fn = ml_obj_file (ms_location summary)
hs_date = ms_hs_date summary
is_stable_obj = this_mod_name `elem` stable_obj
is_stable_bco = this_mod_name `elem` stable_bco
old_hmi = lookupUFM old_hpt this_mod_name
-- We're using the dflags for this module now, obtained by
-- applying any options in its LANGUAGE & OPTIONS_GHC pragmas.
dflags = ms_hspp_opts summary
prevailing_target = hscTarget (hsc_dflags hsc_env)
local_target = hscTarget dflags
-- If OPTIONS_GHC contains -fasm or -fllvm, be careful that
-- we don't do anything dodgy: these should only work to change
-- from -fllvm to -fasm and vice-versa, otherwise we could
-- end up trying to link object code to byte code.
target = if prevailing_target /= local_target
&& (not (isObjectTarget prevailing_target)
|| not (isObjectTarget local_target))
then prevailing_target
else local_target
-- store the corrected hscTarget into the summary
summary' = summary{ ms_hspp_opts = dflags { hscTarget = target } }
-- The old interface is ok if
-- a) we're compiling a source file, and the old HPT
-- entry is for a source file
-- b) we're compiling a hs-boot file
-- Case (b) allows an hs-boot file to get the interface of its
-- real source file on the second iteration of the compilation
-- manager, but that does no harm. Otherwise the hs-boot file
-- will always be recompiled
mb_old_iface
= case old_hmi of
Nothing -> Nothing
Just hm_info | isBootSummary summary -> Just iface
| not (mi_boot iface) -> Just iface
| otherwise -> Nothing
where
iface = hm_iface hm_info
compile_it :: Maybe Linkable -> SourceModified -> IO HomeModInfo
compile_it mb_linkable src_modified =
compileOne hsc_env summary' mod_index nmods
mb_old_iface mb_linkable src_modified
compile_it_discard_iface :: Maybe Linkable -> SourceModified
-> IO HomeModInfo
compile_it_discard_iface mb_linkable src_modified =
compileOne hsc_env summary' mod_index nmods
Nothing mb_linkable src_modified
-- With the HscNothing target we create empty linkables to avoid
-- recompilation. We have to detect these to recompile anyway if
-- the target changed since the last compile.
is_fake_linkable
| Just hmi <- old_hmi, Just l <- hm_linkable hmi =
null (linkableUnlinked l)
| otherwise =
-- we have no linkable, so it cannot be fake
False
implies False _ = True
implies True x = x
in
case () of
_
-- Regardless of whether we're generating object code or
-- byte code, we can always use an existing object file
-- if it is *stable* (see checkStability).
| is_stable_obj, Just hmi <- old_hmi -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "skipping stable obj mod:" <+> ppr this_mod_name)
return hmi
-- object is stable, and we have an entry in the
-- old HPT: nothing to do
| is_stable_obj, isNothing old_hmi -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "compiling stable on-disk mod:" <+> ppr this_mod_name)
linkable <- liftIO $ findObjectLinkable this_mod obj_fn
(expectJust "upsweep1" mb_obj_date)
compile_it (Just linkable) SourceUnmodifiedAndStable
-- object is stable, but we need to load the interface
-- off disk to make a HMI.
| not (isObjectTarget target), is_stable_bco,
(target /= HscNothing) `implies` not is_fake_linkable ->
ASSERT(isJust old_hmi) -- must be in the old_hpt
let Just hmi = old_hmi in do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "skipping stable BCO mod:" <+> ppr this_mod_name)
return hmi
-- BCO is stable: nothing to do
| not (isObjectTarget target),
Just hmi <- old_hmi,
Just l <- hm_linkable hmi,
not (isObjectLinkable l),
(target /= HscNothing) `implies` not is_fake_linkable,
linkableTime l >= ms_hs_date summary -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "compiling non-stable BCO mod:" <+> ppr this_mod_name)
compile_it (Just l) SourceUnmodified
-- we have an old BCO that is up to date with respect
-- to the source: do a recompilation check as normal.
-- When generating object code, if there's an up-to-date
-- object file on the disk, then we can use it.
-- However, if the object file is new (compared to any
-- linkable we had from a previous compilation), then we
-- must discard any in-memory interface, because this
-- means the user has compiled the source file
-- separately and generated a new interface, that we must
-- read from the disk.
--
| isObjectTarget target,
Just obj_date <- mb_obj_date,
obj_date >= hs_date -> do
case old_hmi of
Just hmi
| Just l <- hm_linkable hmi,
isObjectLinkable l && linkableTime l == obj_date -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "compiling mod with new on-disk obj:" <+> ppr this_mod_name)
compile_it (Just l) SourceUnmodified
_otherwise -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "compiling mod with new on-disk obj2:" <+> ppr this_mod_name)
linkable <- liftIO $ findObjectLinkable this_mod obj_fn obj_date
compile_it_discard_iface (Just linkable) SourceUnmodified
-- See Note [Recompilation checking when typechecking only]
| writeInterfaceOnlyMode dflags,
Just if_date <- mb_if_date,
if_date >= hs_date -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "skipping tc'd mod:" <+> ppr this_mod_name)
compile_it Nothing SourceUnmodified
_otherwise -> do
liftIO $ debugTraceMsg (hsc_dflags hsc_env) 5
(text "compiling mod:" <+> ppr this_mod_name)
compile_it Nothing SourceModified
-- Note [Recompilation checking when typechecking only]
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- If we are compiling with -fno-code -fwrite-interface, there won't
-- be any object code that we can compare against, nor should there
-- be: we're *just* generating interface files. In this case, we
-- want to check if the interface file is new, in lieu of the object
-- file. See also Trac #9243.
-- Filter modules in the HPT
retainInTopLevelEnvs :: [ModuleName] -> HomePackageTable -> HomePackageTable
retainInTopLevelEnvs keep_these hpt
= listToUFM [ (mod, expectJust "retain" mb_mod_info)
| mod <- keep_these
, let mb_mod_info = lookupUFM hpt mod
, isJust mb_mod_info ]
-- ---------------------------------------------------------------------------
-- Typecheck module loops
{-
See bug #930. This code fixes a long-standing bug in --make. The
problem is that when compiling the modules *inside* a loop, a data
type that is only defined at the top of the loop looks opaque; but
after the loop is done, the structure of the data type becomes
apparent.
The difficulty is then that two different bits of code have
different notions of what the data type looks like.
The idea is that after we compile a module which also has an .hs-boot
file, we re-generate the ModDetails for each of the modules that
depends on the .hs-boot file, so that everyone points to the proper
TyCons, Ids etc. defined by the real module, not the boot module.
Fortunately re-generating a ModDetails from a ModIface is easy: the
function TcIface.typecheckIface does exactly that.
Picking the modules to re-typecheck is slightly tricky. Starting from
the module graph consisting of the modules that have already been
compiled, we reverse the edges (so they point from the imported module
to the importing module), and depth-first-search from the .hs-boot
node. This gives us all the modules that depend transitively on the
.hs-boot module, and those are exactly the modules that we need to
re-typecheck.
Following this fix, GHC can compile itself with --make -O2.
-}
reTypecheckLoop :: HscEnv -> ModSummary -> ModuleGraph -> IO HscEnv
reTypecheckLoop hsc_env ms graph
| Just loop <- getModLoop ms graph
, let non_boot = filter (not.isBootSummary) loop
= typecheckLoop (hsc_dflags hsc_env) hsc_env (map ms_mod_name non_boot)
| otherwise
= return hsc_env
getModLoop :: ModSummary -> ModuleGraph -> Maybe [ModSummary]
getModLoop ms graph
| not (isBootSummary ms)
, any (\m -> ms_mod m == this_mod && isBootSummary m) graph
, let mss = reachableBackwards (ms_mod_name ms) graph
= Just mss
| otherwise
= Nothing
where
this_mod = ms_mod ms
typecheckLoop :: DynFlags -> HscEnv -> [ModuleName] -> IO HscEnv
typecheckLoop dflags hsc_env mods = do
debugTraceMsg dflags 2 $
text "Re-typechecking loop: " <> ppr mods
new_hpt <-
fixIO $ \new_hpt -> do
let new_hsc_env = hsc_env{ hsc_HPT = new_hpt }
mds <- initIfaceCheck new_hsc_env $
mapM (typecheckIface . hm_iface) hmis
let new_hpt = addListToUFM old_hpt
(zip mods [ hmi{ hm_details = details }
| (hmi,details) <- zip hmis mds ])
return new_hpt
return hsc_env{ hsc_HPT = new_hpt }
where
old_hpt = hsc_HPT hsc_env
hmis = map (expectJust "typecheckLoop" . lookupUFM old_hpt) mods
reachableBackwards :: ModuleName -> [ModSummary] -> [ModSummary]
reachableBackwards mod summaries
= [ ms | (ms,_,_) <- reachableG (transposeG graph) root ]
where -- the rest just sets up the graph:
(graph, lookup_node) = moduleGraphNodes False summaries
root = expectJust "reachableBackwards" (lookup_node HsBootFile mod)
-- ---------------------------------------------------------------------------
--
-- | Topological sort of the module graph
topSortModuleGraph
:: Bool
-- ^ Drop hi-boot nodes? (see below)
-> [ModSummary]
-> Maybe ModuleName
-- ^ Root module name. If @Nothing@, use the full graph.
-> [SCC ModSummary]
-- ^ Calculate SCCs of the module graph, possibly dropping the hi-boot nodes
-- The resulting list of strongly-connected-components is in topologically
-- sorted order, starting with the module(s) at the bottom of the
-- dependency graph (ie compile them first) and ending with the ones at
-- the top.
--
-- Drop hi-boot nodes (first boolean arg)?
--
-- - @False@: treat the hi-boot summaries as nodes of the graph,
-- so the graph must be acyclic
--
-- - @True@: eliminate the hi-boot nodes, and instead pretend
-- the a source-import of Foo is an import of Foo
-- The resulting graph has no hi-boot nodes, but can be cyclic
topSortModuleGraph drop_hs_boot_nodes summaries mb_root_mod
= map (fmap summaryNodeSummary) $ stronglyConnCompG initial_graph
where
(graph, lookup_node) = moduleGraphNodes drop_hs_boot_nodes summaries
initial_graph = case mb_root_mod of
Nothing -> graph
Just root_mod ->
-- restrict the graph to just those modules reachable from
-- the specified module. We do this by building a graph with
-- the full set of nodes, and determining the reachable set from
-- the specified node.
let root | Just node <- lookup_node HsSrcFile root_mod, graph `hasVertexG` node = node
| otherwise = throwGhcException (ProgramError "module does not exist")
in graphFromEdgedVertices (seq root (reachableG graph root))
type SummaryNode = (ModSummary, Int, [Int])
summaryNodeKey :: SummaryNode -> Int
summaryNodeKey (_, k, _) = k
summaryNodeSummary :: SummaryNode -> ModSummary
summaryNodeSummary (s, _, _) = s
moduleGraphNodes :: Bool -> [ModSummary]
-> (Graph SummaryNode, HscSource -> ModuleName -> Maybe SummaryNode)
moduleGraphNodes drop_hs_boot_nodes summaries = (graphFromEdgedVertices nodes, lookup_node)
where
numbered_summaries = zip summaries [1..]
lookup_node :: HscSource -> ModuleName -> Maybe SummaryNode
lookup_node hs_src mod = Map.lookup (mod, hscSourceToIsBoot hs_src) node_map
lookup_key :: HscSource -> ModuleName -> Maybe Int
lookup_key hs_src mod = fmap summaryNodeKey (lookup_node hs_src mod)
node_map :: NodeMap SummaryNode
node_map = Map.fromList [ ((moduleName (ms_mod s),
hscSourceToIsBoot (ms_hsc_src s)), node)
| node@(s, _, _) <- nodes ]
-- We use integers as the keys for the SCC algorithm
nodes :: [SummaryNode]
nodes = [ (s, key, out_keys)
| (s, key) <- numbered_summaries
-- Drop the hi-boot ones if told to do so
, not (isBootSummary s && drop_hs_boot_nodes)
, let out_keys = out_edge_keys hs_boot_key (map unLoc (ms_home_srcimps s)) ++
out_edge_keys HsSrcFile (map unLoc (ms_home_imps s)) ++
(-- see [boot-edges] below
if drop_hs_boot_nodes || ms_hsc_src s == HsBootFile
then []
else case lookup_key HsBootFile (ms_mod_name s) of
Nothing -> []
Just k -> [k]) ]
-- [boot-edges] if this is a .hs and there is an equivalent
-- .hs-boot, add a link from the former to the latter. This
-- has the effect of detecting bogus cases where the .hs-boot
-- depends on the .hs, by introducing a cycle. Additionally,
-- it ensures that we will always process the .hs-boot before
-- the .hs, and so the HomePackageTable will always have the
-- most up to date information.
-- Drop hs-boot nodes by using HsSrcFile as the key
hs_boot_key | drop_hs_boot_nodes = HsSrcFile
| otherwise = HsBootFile
out_edge_keys :: HscSource -> [ModuleName] -> [Int]
out_edge_keys hi_boot ms = mapMaybe (lookup_key hi_boot) ms
-- If we want keep_hi_boot_nodes, then we do lookup_key with
-- IsBoot; else NotBoot
-- The nodes of the graph are keyed by (mod, is boot?) pairs
-- NB: hsig files show up as *normal* nodes (not boot!), since they don't
-- participate in cycles (for now)
type NodeKey = (ModuleName, IsBoot)
type NodeMap a = Map.Map NodeKey a
msKey :: ModSummary -> NodeKey
msKey (ModSummary { ms_mod = mod, ms_hsc_src = boot })
= (moduleName mod, hscSourceToIsBoot boot)
mkNodeMap :: [ModSummary] -> NodeMap ModSummary
mkNodeMap summaries = Map.fromList [ (msKey s, s) | s <- summaries]
nodeMapElts :: NodeMap a -> [a]
nodeMapElts = Map.elems
-- | If there are {-# SOURCE #-} imports between strongly connected
-- components in the topological sort, then those imports can
-- definitely be replaced by ordinary non-SOURCE imports: if SOURCE
-- were necessary, then the edge would be part of a cycle.
warnUnnecessarySourceImports :: GhcMonad m => [SCC ModSummary] -> m ()
warnUnnecessarySourceImports sccs = do
dflags <- getDynFlags
when (wopt Opt_WarnUnusedImports dflags)
(logWarnings (listToBag (concatMap (check dflags . flattenSCC) sccs)))
where check dflags ms =
let mods_in_this_cycle = map ms_mod_name ms in
[ warn dflags i | m <- ms, i <- ms_home_srcimps m,
unLoc i `notElem` mods_in_this_cycle ]
warn :: DynFlags -> Located ModuleName -> WarnMsg
warn dflags (L loc mod) =
mkPlainErrMsg dflags loc
(text "Warning: {-# SOURCE #-} unnecessary in import of "
<+> quotes (ppr mod))
reportImportErrors :: MonadIO m => [Either ErrMsg b] -> m [b]
reportImportErrors xs | null errs = return oks
| otherwise = throwManyErrors errs
where (errs, oks) = partitionEithers xs
throwManyErrors :: MonadIO m => [ErrMsg] -> m ab
throwManyErrors errs = liftIO $ throwIO $ mkSrcErr $ listToBag errs
-----------------------------------------------------------------------------
--
-- | Downsweep (dependency analysis)
--
-- Chase downwards from the specified root set, returning summaries
-- for all home modules encountered. Only follow source-import
-- links.
--
-- We pass in the previous collection of summaries, which is used as a
-- cache to avoid recalculating a module summary if the source is
-- unchanged.
--
-- The returned list of [ModSummary] nodes has one node for each home-package
-- module, plus one for any hs-boot files. The imports of these nodes
-- are all there, including the imports of non-home-package modules.
downsweep :: HscEnv
-> [ModSummary] -- Old summaries
-> [ModuleName] -- Ignore dependencies on these; treat
-- them as if they were package modules
-> Bool -- True <=> allow multiple targets to have
-- the same module name; this is
-- very useful for ghc -M
-> IO [Either ErrMsg ModSummary]
-- The elts of [ModSummary] all have distinct
-- (Modules, IsBoot) identifiers, unless the Bool is true
-- in which case there can be repeats
downsweep hsc_env old_summaries excl_mods allow_dup_roots
= do
rootSummaries <- mapM getRootSummary roots
rootSummariesOk <- reportImportErrors rootSummaries
let root_map = mkRootMap rootSummariesOk
checkDuplicates root_map
summs <- loop (concatMap calcDeps rootSummariesOk) root_map
return summs
where
-- When we're compiling a signature file, we have an implicit
-- dependency on what-ever the signature's implementation is.
-- (But not when we're type checking!)
calcDeps summ
| HsigFile <- ms_hsc_src summ
, Just m <- getSigOf (hsc_dflags hsc_env) (moduleName (ms_mod summ))
, moduleUnitId m == thisPackage (hsc_dflags hsc_env)
= (noLoc (moduleName m), NotBoot) : msDeps summ
| otherwise = msDeps summ
dflags = hsc_dflags hsc_env
roots = hsc_targets hsc_env
old_summary_map :: NodeMap ModSummary
old_summary_map = mkNodeMap old_summaries
getRootSummary :: Target -> IO (Either ErrMsg ModSummary)
getRootSummary (Target (TargetFile file mb_phase) obj_allowed maybe_buf)
= do exists <- liftIO $ doesFileExist file
if exists
then Right `fmap` summariseFile hsc_env old_summaries file mb_phase
obj_allowed maybe_buf
else return $ Left $ mkPlainErrMsg dflags noSrcSpan $
text "can't find file:" <+> text file
getRootSummary (Target (TargetModule modl) obj_allowed maybe_buf)
= do maybe_summary <- summariseModule hsc_env old_summary_map NotBoot
(L rootLoc modl) obj_allowed
maybe_buf excl_mods
case maybe_summary of
Nothing -> return $ Left $ packageModErr dflags modl
Just s -> return s
rootLoc = mkGeneralSrcSpan (fsLit "<command line>")
-- In a root module, the filename is allowed to diverge from the module
-- name, so we have to check that there aren't multiple root files
-- defining the same module (otherwise the duplicates will be silently
-- ignored, leading to confusing behaviour).
checkDuplicates :: NodeMap [Either ErrMsg ModSummary] -> IO ()
checkDuplicates root_map
| allow_dup_roots = return ()
| null dup_roots = return ()
| otherwise = liftIO $ multiRootsErr dflags (head dup_roots)
where
dup_roots :: [[ModSummary]] -- Each at least of length 2
dup_roots = filterOut isSingleton $ map rights $ nodeMapElts root_map
loop :: [(Located ModuleName,IsBoot)]
-- Work list: process these modules
-> NodeMap [Either ErrMsg ModSummary]
-- Visited set; the range is a list because
-- the roots can have the same module names
-- if allow_dup_roots is True
-> IO [Either ErrMsg ModSummary]
-- The result includes the worklist, except
-- for those mentioned in the visited set
loop [] done = return (concat (nodeMapElts done))
loop ((wanted_mod, is_boot) : ss) done
| Just summs <- Map.lookup key done
= if isSingleton summs then
loop ss done
else
do { multiRootsErr dflags (rights summs); return [] }
| otherwise
= do mb_s <- summariseModule hsc_env old_summary_map
is_boot wanted_mod True
Nothing excl_mods
case mb_s of
Nothing -> loop ss done
Just (Left e) -> loop ss (Map.insert key [Left e] done)
Just (Right s)-> loop (calcDeps s ++ ss)
(Map.insert key [Right s] done)
where
key = (unLoc wanted_mod, is_boot)
mkRootMap :: [ModSummary] -> NodeMap [Either ErrMsg ModSummary]
mkRootMap summaries = Map.insertListWith (flip (++))
[ (msKey s, [Right s]) | s <- summaries ]
Map.empty
-- | Returns the dependencies of the ModSummary s.
-- A wrinkle is that for a {-# SOURCE #-} import we return
-- *both* the hs-boot file
-- *and* the source file
-- as "dependencies". That ensures that the list of all relevant
-- modules always contains B.hs if it contains B.hs-boot.
-- Remember, this pass isn't doing the topological sort. It's
-- just gathering the list of all relevant ModSummaries
msDeps :: ModSummary -> [(Located ModuleName, IsBoot)]
msDeps s =
concat [ [(m,IsBoot), (m,NotBoot)] | m <- ms_home_srcimps s ]
++ [ (m,NotBoot) | m <- ms_home_imps s ]
home_imps :: [(Maybe FastString, Located ModuleName)] -> [Located ModuleName]
home_imps imps = [ lmodname | (mb_pkg, lmodname) <- imps,
isLocal mb_pkg ]
where isLocal Nothing = True
isLocal (Just pkg) | pkg == fsLit "this" = True -- "this" is special
isLocal _ = False
ms_home_allimps :: ModSummary -> [ModuleName]
ms_home_allimps ms = map unLoc (ms_home_srcimps ms ++ ms_home_imps ms)
-- | Like 'ms_home_imps', but for SOURCE imports.
ms_home_srcimps :: ModSummary -> [Located ModuleName]
ms_home_srcimps = home_imps . ms_srcimps
-- | All of the (possibly) home module imports from a
-- 'ModSummary'; that is to say, each of these module names
-- could be a home import if an appropriately named file
-- existed. (This is in contrast to package qualified
-- imports, which are guaranteed not to be home imports.)
ms_home_imps :: ModSummary -> [Located ModuleName]
ms_home_imps = home_imps . ms_imps
-----------------------------------------------------------------------------
-- Summarising modules
-- We have two types of summarisation:
--
-- * Summarise a file. This is used for the root module(s) passed to
-- cmLoadModules. The file is read, and used to determine the root
-- module name. The module name may differ from the filename.
--
-- * Summarise a module. We are given a module name, and must provide
-- a summary. The finder is used to locate the file in which the module
-- resides.
summariseFile
:: HscEnv
-> [ModSummary] -- old summaries
-> FilePath -- source file name
-> Maybe Phase -- start phase
-> Bool -- object code allowed?
-> Maybe (StringBuffer,UTCTime)
-> IO ModSummary
summariseFile hsc_env old_summaries file mb_phase obj_allowed maybe_buf
-- we can use a cached summary if one is available and the
-- source file hasn't changed, But we have to look up the summary
-- by source file, rather than module name as we do in summarise.
| Just old_summary <- findSummaryBySourceFile old_summaries file
= do
let location = ms_location old_summary
dflags = hsc_dflags hsc_env
src_timestamp <- get_src_timestamp
-- The file exists; we checked in getRootSummary above.
-- If it gets removed subsequently, then this
-- getModificationUTCTime may fail, but that's the right
-- behaviour.
-- return the cached summary if the source didn't change
if ms_hs_date old_summary == src_timestamp &&
not (gopt Opt_ForceRecomp (hsc_dflags hsc_env))
then do -- update the object-file timestamp
obj_timestamp <-
if isObjectTarget (hscTarget (hsc_dflags hsc_env))
|| obj_allowed -- bug #1205
then liftIO $ getObjTimestamp location NotBoot
else return Nothing
hi_timestamp <- maybeGetIfaceDate dflags location
return old_summary{ ms_obj_date = obj_timestamp
, ms_iface_date = hi_timestamp }
else
new_summary src_timestamp
| otherwise
= do src_timestamp <- get_src_timestamp
new_summary src_timestamp
where
get_src_timestamp = case maybe_buf of
Just (_,t) -> return t
Nothing -> liftIO $ getModificationUTCTime file
-- getMofificationUTCTime may fail
new_summary src_timestamp = do
let dflags = hsc_dflags hsc_env
let hsc_src = if isHaskellSigFilename file then HsigFile else HsSrcFile
(dflags', hspp_fn, buf)
<- preprocessFile hsc_env file mb_phase maybe_buf
(srcimps,the_imps, L _ mod_name) <- getImports dflags' buf hspp_fn file
-- Make a ModLocation for this file
location <- liftIO $ mkHomeModLocation dflags mod_name file
-- Tell the Finder cache where it is, so that subsequent calls
-- to findModule will find it, even if it's not on any search path
mod <- liftIO $ addHomeModuleToFinder hsc_env mod_name location
-- when the user asks to load a source file by name, we only
-- use an object file if -fobject-code is on. See #1205.
obj_timestamp <-
if isObjectTarget (hscTarget (hsc_dflags hsc_env))
|| obj_allowed -- bug #1205
then liftIO $ modificationTimeIfExists (ml_obj_file location)
else return Nothing
hi_timestamp <- maybeGetIfaceDate dflags location
return (ModSummary { ms_mod = mod, ms_hsc_src = hsc_src,
ms_location = location,
ms_hspp_file = hspp_fn,
ms_hspp_opts = dflags',
ms_hspp_buf = Just buf,
ms_srcimps = srcimps, ms_textual_imps = the_imps,
ms_hs_date = src_timestamp,
ms_iface_date = hi_timestamp,
ms_obj_date = obj_timestamp })
findSummaryBySourceFile :: [ModSummary] -> FilePath -> Maybe ModSummary
findSummaryBySourceFile summaries file
= case [ ms | ms <- summaries, HsSrcFile <- [ms_hsc_src ms],
expectJust "findSummaryBySourceFile" (ml_hs_file (ms_location ms)) == file ] of
[] -> Nothing
(x:_) -> Just x
-- Summarise a module, and pick up source and timestamp.
summariseModule
:: HscEnv
-> NodeMap ModSummary -- Map of old summaries
-> IsBoot -- IsBoot <=> a {-# SOURCE #-} import
-> Located ModuleName -- Imported module to be summarised
-> Bool -- object code allowed?
-> Maybe (StringBuffer, UTCTime)
-> [ModuleName] -- Modules to exclude
-> IO (Maybe (Either ErrMsg ModSummary)) -- Its new summary
summariseModule hsc_env old_summary_map is_boot (L loc wanted_mod)
obj_allowed maybe_buf excl_mods
| wanted_mod `elem` excl_mods
= return Nothing
| Just old_summary <- Map.lookup (wanted_mod, is_boot) old_summary_map
= do -- Find its new timestamp; all the
-- ModSummaries in the old map have valid ml_hs_files
let location = ms_location old_summary
src_fn = expectJust "summariseModule" (ml_hs_file location)
-- check the modification time on the source file, and
-- return the cached summary if it hasn't changed. If the
-- file has disappeared, we need to call the Finder again.
case maybe_buf of
Just (_,t) -> check_timestamp old_summary location src_fn t
Nothing -> do
m <- tryIO (getModificationUTCTime src_fn)
case m of
Right t -> check_timestamp old_summary location src_fn t
Left e | isDoesNotExistError e -> find_it
| otherwise -> ioError e
| otherwise = find_it
where
dflags = hsc_dflags hsc_env
check_timestamp old_summary location src_fn src_timestamp
| ms_hs_date old_summary == src_timestamp &&
not (gopt Opt_ForceRecomp dflags) = do
-- update the object-file timestamp
obj_timestamp <-
if isObjectTarget (hscTarget (hsc_dflags hsc_env))
|| obj_allowed -- bug #1205
then getObjTimestamp location is_boot
else return Nothing
hi_timestamp <- maybeGetIfaceDate dflags location
return (Just (Right old_summary{ ms_obj_date = obj_timestamp
, ms_iface_date = hi_timestamp}))
| otherwise =
-- source changed: re-summarise.
new_summary location (ms_mod old_summary) src_fn src_timestamp
find_it = do
-- Don't use the Finder's cache this time. If the module was
-- previously a package module, it may have now appeared on the
-- search path, so we want to consider it to be a home module. If
-- the module was previously a home module, it may have moved.
uncacheModule hsc_env wanted_mod
found <- findImportedModule hsc_env wanted_mod Nothing
case found of
Found location mod
| isJust (ml_hs_file location) ->
-- Home package
just_found location mod
_ -> return Nothing
-- Not found
-- (If it is TRULY not found at all, we'll
-- error when we actually try to compile)
just_found location mod = do
-- Adjust location to point to the hs-boot source file,
-- hi file, object file, when is_boot says so
let location' | IsBoot <- is_boot = addBootSuffixLocn location
| otherwise = location
src_fn = expectJust "summarise2" (ml_hs_file location')
-- Check that it exists
-- It might have been deleted since the Finder last found it
maybe_t <- modificationTimeIfExists src_fn
case maybe_t of
Nothing -> return $ Just $ Left $ noHsFileErr dflags loc src_fn
Just t -> new_summary location' mod src_fn t
new_summary location mod src_fn src_timestamp
= do
-- Preprocess the source file and get its imports
-- The dflags' contains the OPTIONS pragmas
(dflags', hspp_fn, buf) <- preprocessFile hsc_env src_fn Nothing maybe_buf
(srcimps, the_imps, L mod_loc mod_name) <- getImports dflags' buf hspp_fn src_fn
-- NB: Despite the fact that is_boot is a top-level parameter, we
-- don't actually know coming into this function what the HscSource
-- of the module in question is. This is because we may be processing
-- this module because another module in the graph imported it: in this
-- case, we know if it's a boot or not because of the {-# SOURCE #-}
-- annotation, but we don't know if it's a signature or a regular
-- module until we actually look it up on the filesystem.
let hsc_src = case is_boot of
IsBoot -> HsBootFile
_ | isHaskellSigFilename src_fn -> HsigFile
| otherwise -> HsSrcFile
when (mod_name /= wanted_mod) $
throwOneError $ mkPlainErrMsg dflags' mod_loc $
text "File name does not match module name:"
$$ text "Saw:" <+> quotes (ppr mod_name)
$$ text "Expected:" <+> quotes (ppr wanted_mod)
-- Find the object timestamp, and return the summary
obj_timestamp <-
if isObjectTarget (hscTarget (hsc_dflags hsc_env))
|| obj_allowed -- bug #1205
then getObjTimestamp location is_boot
else return Nothing
hi_timestamp <- maybeGetIfaceDate dflags location
return (Just (Right (ModSummary { ms_mod = mod,
ms_hsc_src = hsc_src,
ms_location = location,
ms_hspp_file = hspp_fn,
ms_hspp_opts = dflags',
ms_hspp_buf = Just buf,
ms_srcimps = srcimps,
ms_textual_imps = the_imps,
ms_hs_date = src_timestamp,
ms_iface_date = hi_timestamp,
ms_obj_date = obj_timestamp })))
getObjTimestamp :: ModLocation -> IsBoot -> IO (Maybe UTCTime)
getObjTimestamp location is_boot
= if is_boot == IsBoot then return Nothing
else modificationTimeIfExists (ml_obj_file location)
preprocessFile :: HscEnv
-> FilePath
-> Maybe Phase -- ^ Starting phase
-> Maybe (StringBuffer,UTCTime)
-> IO (DynFlags, FilePath, StringBuffer)
preprocessFile hsc_env src_fn mb_phase Nothing
= do
(dflags', hspp_fn) <- preprocess hsc_env (src_fn, mb_phase)
buf <- hGetStringBuffer hspp_fn
return (dflags', hspp_fn, buf)
preprocessFile hsc_env src_fn mb_phase (Just (buf, _time))
= do
let dflags = hsc_dflags hsc_env
let local_opts = getOptions dflags buf src_fn
(dflags', leftovers, warns)
<- parseDynamicFilePragma dflags local_opts
checkProcessArgsResult dflags leftovers
handleFlagWarnings dflags' warns
let needs_preprocessing
| Just (Unlit _) <- mb_phase = True
| Nothing <- mb_phase, Unlit _ <- startPhase src_fn = True
-- note: local_opts is only required if there's no Unlit phase
| xopt LangExt.Cpp dflags' = True
| gopt Opt_Pp dflags' = True
| otherwise = False
when needs_preprocessing $
throwGhcExceptionIO (ProgramError "buffer needs preprocesing; interactive check disabled")
return (dflags', src_fn, buf)
-----------------------------------------------------------------------------
-- Error messages
-----------------------------------------------------------------------------
noModError :: DynFlags -> SrcSpan -> ModuleName -> FindResult -> ErrMsg
-- ToDo: we don't have a proper line number for this error
noModError dflags loc wanted_mod err
= mkPlainErrMsg dflags loc $ cannotFindModule dflags wanted_mod err
noHsFileErr :: DynFlags -> SrcSpan -> String -> ErrMsg
noHsFileErr dflags loc path
= mkPlainErrMsg dflags loc $ text "Can't find" <+> text path
packageModErr :: DynFlags -> ModuleName -> ErrMsg
packageModErr dflags mod
= mkPlainErrMsg dflags noSrcSpan $
text "module" <+> quotes (ppr mod) <+> text "is a package module"
multiRootsErr :: DynFlags -> [ModSummary] -> IO ()
multiRootsErr _ [] = panic "multiRootsErr"
multiRootsErr dflags summs@(summ1:_)
= throwOneError $ mkPlainErrMsg dflags noSrcSpan $
text "module" <+> quotes (ppr mod) <+>
text "is defined in multiple files:" <+>
sep (map text files)
where
mod = ms_mod summ1
files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs
cyclicModuleErr :: [ModSummary] -> SDoc
-- From a strongly connected component we find
-- a single cycle to report
cyclicModuleErr mss
= ASSERT( not (null mss) )
case findCycle graph of
Nothing -> text "Unexpected non-cycle" <+> ppr mss
Just path -> vcat [ text "Module imports form a cycle:"
, nest 2 (show_path path) ]
where
graph :: [Node NodeKey ModSummary]
graph = [(ms, msKey ms, get_deps ms) | ms <- mss]
get_deps :: ModSummary -> [NodeKey]
get_deps ms = ([ (unLoc m, IsBoot) | m <- ms_home_srcimps ms ] ++
[ (unLoc m, NotBoot) | m <- ms_home_imps ms ])
show_path [] = panic "show_path"
show_path [m] = text "module" <+> ppr_ms m
<+> text "imports itself"
show_path (m1:m2:ms) = vcat ( nest 7 (text "module" <+> ppr_ms m1)
: nest 6 (text "imports" <+> ppr_ms m2)
: go ms )
where
go [] = [text "which imports" <+> ppr_ms m1]
go (m:ms) = (text "which imports" <+> ppr_ms m) : go ms
ppr_ms :: ModSummary -> SDoc
ppr_ms ms = quotes (ppr (moduleName (ms_mod ms))) <+>
(parens (text (msHsFilePath ms)))
| {
"content_hash": "9ddcd76a8339a1be3a5dc78bae063f78",
"timestamp": "",
"source": "github",
"line_count": 2075,
"max_line_length": 120,
"avg_line_length": 42.797590361445785,
"alnum_prop": 0.587162884972693,
"repo_name": "tjakway/ghcjvm",
"id": "46a49900d529bdb6948fe15026b89fef0dbfffce",
"size": "88805",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "compiler/main/GhcMake.hs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "8740"
},
{
"name": "C",
"bytes": "2628872"
},
{
"name": "C++",
"bytes": "35938"
},
{
"name": "CSS",
"bytes": "984"
},
{
"name": "DTrace",
"bytes": "3887"
},
{
"name": "Emacs Lisp",
"bytes": "734"
},
{
"name": "Game Maker Language",
"bytes": "14164"
},
{
"name": "Gnuplot",
"bytes": "103851"
},
{
"name": "Groff",
"bytes": "3840"
},
{
"name": "HTML",
"bytes": "6144"
},
{
"name": "Haskell",
"bytes": "19940711"
},
{
"name": "Haxe",
"bytes": "218"
},
{
"name": "Logos",
"bytes": "126216"
},
{
"name": "Lua",
"bytes": "408853"
},
{
"name": "M4",
"bytes": "50627"
},
{
"name": "Makefile",
"bytes": "546004"
},
{
"name": "Objective-C",
"bytes": "20017"
},
{
"name": "Objective-C++",
"bytes": "535"
},
{
"name": "Pascal",
"bytes": "113830"
},
{
"name": "Perl",
"bytes": "23120"
},
{
"name": "Perl6",
"bytes": "41951"
},
{
"name": "PostScript",
"bytes": "63"
},
{
"name": "Python",
"bytes": "106011"
},
{
"name": "Shell",
"bytes": "76831"
},
{
"name": "TeX",
"bytes": "667"
},
{
"name": "Yacc",
"bytes": "62684"
}
],
"symlink_target": ""
} |
<device id ="MSP430FR5958(Bootloader)" partnum="MSP430FR5958(Bootloader)" HW_revision="1" XML_version="1" description="MSP430FR5958(Bootloader)">
<property Type="hiddenfield" Value="4" id="ufNumImageSelection" />
<property Type="hiddenfield" Value="Password" id="ufImageType0" />
<property Type="hiddenfield" Value=".txt,.hex" id="supportedFileExtensions" />
<property Type="hiddenfield" Value="Application Image 1" id="ufImageType1" />
<property Type="hiddenfield" Value=".txt,.hex" id="supportedFileExtensions1" />
<property Type="hiddenfield" Value="Application Image 2" id="ufImageType2" />
<property Type="hiddenfield" Value=".txt,.hex" id="supportedFileExtensions2" />
<property Type="hiddenfield" Value="Application Image 3" id="ufImageType3" />
<property Type="hiddenfield" Value=".txt,.hex" id="supportedFileExtensions3" />
<instance desc="MSP430" href="../cpus/MSP430Xv2.xml" id="MSP430" xml="MSP430Xv2.xml" xmlpath="../cpus/"/>
<cpu HW_revision="1.0" XML_version="2.0" description="MSP430 CPU" id="MSP430" isa="MSP430Xv2_BSL"/>
</device>
| {
"content_hash": "5a6df13a2665073b0128aae787bec7a6",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 145,
"avg_line_length": 81.53846153846153,
"alnum_prop": 0.7339622641509433,
"repo_name": "pftbest/msp430_svd",
"id": "1fad085c21a09421175ebca19fe65dea5aa4bdce",
"size": "1060",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "msp430-gcc-support-files/targetdb/devices/MSP430FR5958_BL.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "154338488"
},
{
"name": "Python",
"bytes": "3616"
},
{
"name": "Rust",
"bytes": "24457"
}
],
"symlink_target": ""
} |
module PolicyHelper
def policy_selection_options policies = nil, resource = nil, access_type = nil
policies ||= [Policy::NO_ACCESS,Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING,Policy::MANAGING]
options=""
policies.delete(Policy::ACCESSIBLE) if resource && !resource.is_downloadable?
policies.each do |policy|
options << "<option value='#{policy}' #{"selected='selected'" if access_type == policy}>#{Policy.get_access_type_wording(policy, resource)} </option>"
end
options
end
# return access_type of your project if this permission is available in the policy
def your_project_access_type policy = nil, resource = nil
unless policy.nil? or resource.nil? or !(policy.sharing_scope == Policy::ALL_SYSMO_USERS)
unless policy.permissions.empty?
my_project_ids = if resource.class == Project then [resource.id] else resource.project_ids end
my_project_perms = policy.permissions.select {|p| p.contributor_type == 'Project' and my_project_ids.include? p.contributor_id}
access_types = my_project_perms.map(&:access_type)
return access_types.first if access_types.all?{|acc| acc == access_types.first}
else
policy.access_type
end
end
end
#returns a message that there are additional advanced permissions for the resource outside of the provided scope, and if the policy matches the scope.
#if a resource has has Policy::ALL_SYSMO_USERS then it is concidered to have advanced permissions if it has permissions that includes contributors other than the associated projects
def additional_advanced_permissions_included resource,scope
if resource.respond_to?(:policy) && resource.policy && (resource.policy.sharing_scope == scope) && resource.has_advanced_permissions?
"<span class='additional_permissions'>there are also additional Advanced Permissions defined below</span>"
end
end
end | {
"content_hash": "e330fd706da23a3e4fd02d39bc3ca632",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 183,
"avg_line_length": 56.470588235294116,
"alnum_prop": 0.7234375,
"repo_name": "aina1205/virtualliverf1",
"id": "33df95abd08eebda6f0778d82a24e14ee63a474d",
"size": "1920",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/helpers/policy_helper.rb",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "212694"
},
{
"name": "Erlang",
"bytes": "707"
},
{
"name": "JavaScript",
"bytes": "3106076"
},
{
"name": "Perl",
"bytes": "20948"
},
{
"name": "Ruby",
"bytes": "2439999"
},
{
"name": "Shell",
"bytes": "12518"
}
],
"symlink_target": ""
} |
require('babel-core/register');
require('./robo_car');
| {
"content_hash": "d994dcf08506a447cb95818432cbc462",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 31,
"avg_line_length": 27.5,
"alnum_prop": 0.6909090909090909,
"repo_name": "chefguevara/RoboticaJS",
"id": "9809b866a2b1ee6fd7f5cf83ddb70fb0bb57b29b",
"size": "55",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "examples/robo_car/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "6174"
}
],
"symlink_target": ""
} |
package org.openpipeline.pipeline.stage.opencalais;
import java.util.Arrays;
import java.util.List;
import org.openpipeline.pipeline.item.Item;
import org.openpipeline.pipeline.item.Node;
import org.openpipeline.pipeline.item.NodeList;
import org.openpipeline.pipeline.item.NodeVisitor;
import org.openpipeline.pipeline.item.Token;
import org.openpipeline.pipeline.item.TokenList;
import org.openpipeline.pipeline.stage.Stage;
import org.openpipeline.scheduler.PipelineException;
import org.openpipeline.util.CharSpan;
import org.openpipeline.util.FastStringBuffer;
/**
* This class is responsible for generating annotations for a given
* item using the OpenCalais (http://www.opencalais.com) web services API.
* The entities are returned in a pre-defined simple XML format. For
* more details see:
* <a href="http://opencalais.com/documentation/calais-web-service-api/interpreting-api-response/simple-format">Simple Format</a>
*/
public class OpenCalais extends Stage implements NodeVisitor {
/*
* This stage can make only 40,000 requests per day.
* For each request, the text cannot be greater than 100,000 characters.
*/
private final static int MAX_CONTENT_LEN = 100000; // This is the limit enforced by OpenCalais Web Services API.
private String apiKey;
private CalaisSoap calaisClient;
private String paramXML = "";
private String[] tagNames;
@Override
public String getDescription() {
return "Extracts entities using OpenCalais's Web Service API. ";
}
@Override
public String getConfigPage() {
return "stage_opencalais.jsp";
}
@Override
public String getDisplayName() {
return "OpenCalais Entity Extractor";
}
@Override
public void processItem(Item item) throws PipelineException {
item.visitNodes(this); // traverses the nodes, calls processNode() below once for each
if (this.nextStage != null) {
this.nextStage.processItem(item);
}
}
@Override
public void initialize() throws PipelineException {
/*
* Set the API key.
*/
this.apiKey = this.params.getProperty("api-key");
Calais calais = new Calais();
this.calaisClient = calais.getCalaisSoap();
/*
* Set the tag names.
*/
List<String> tags = this.params.getValues("tags");
this.tagNames = new String[tags.size()];
for (int i = 0; i < tags.size(); i++) {
String tag = tags.get(i);
this.tagNames[i] = tag.trim().toLowerCase();
}
Arrays.sort(this.tagNames);
/*
* Construct paramXML
*/
this.paramXML = getParamXML();
}
/**
* TODO: May be this should be made available on the stage configuration page.
* OpenCalais Web Service parameters.
* @return
*/
private String getParamXML() {
FastStringBuffer buf = new FastStringBuffer();
buf
.append("<c:params xmlns:c=\"http://s.opencalais.com/1/pred/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">");
buf
.append("<c:processingDirectives c:contentType=\"text/txt\" c:enableMetadataType=\"GenericRelations\" c:outputFormat=\"Text/Simple\">");
buf.append("</c:processingDirectives>");
buf.append("</c:params>");
return buf.toString();
}
public void processNode(Node node) throws PipelineException {
CharSpan span = node.getValue();
if (span == null || span.size() == 0) {
return;
}
/*
* Extract entities from tags specified by the user.
*/
String nodeTagName = node.getName();
int index = Arrays.binarySearch(this.tagNames, nodeTagName);
if (index < 0)
return;
Node itemRoot = node.getItem().getRootNode();
if (span.size() <= MAX_CONTENT_LEN) {
extractEntities(itemRoot, span.toString());
} else {
/*
* If the content length is greater than 100,000.
* Text is broken into sentences and mulitple
* requests are made to the OpenCalais web service API.
*/
TokenList sentences = (TokenList) node.getAnnotations("sentences");
FastStringBuffer buf = new FastStringBuffer();
for (int i = 0; i < sentences.size(); i++) {
Token sentence = sentences.get(i);
if (buf.size() + sentence.size() > MAX_CONTENT_LEN) {
extractEntities(itemRoot, buf.toString());
buf.clear();
}
buf.append(span.getArray(), sentence.getOffset(), sentence.getOffset() + sentence.size());
}
//Catch the last one.
if (buf.size() > 0) {
extractEntities(itemRoot, buf.toString());
}
}
}
/**
* @param itemRoot
* @param content
* @throws PipelineException
*/
private void extractEntities(Node itemRoot, String content) throws PipelineException {
Item responseXML = new Item();
// Process an node content via OpenCalais Web Service API.
String response = this.calaisClient.enlighten(this.apiKey, content, this.paramXML);
responseXML.importXML(response);
/*
* Parse OpenCalais Simple XML response.
*/
Node root = responseXML.getRootNode();
if ("Error".equals(root.getName())) {
throw new PipelineException(root.toString());
}
NodeList itemChildren = itemRoot.getChildren();
NodeList children = root.getChildren();
for (int i = 0; i < children.size(); i++) {
Node child = children.get(i);
if ("CalaisSimpleOutputFormat".equals(child.getName())) {
NodeList entities = child.getChildren();
for (int j = 0; j < entities.size(); j++) {
Node entity = entities.get(j);
itemChildren.append(entity);
}
}
}
}
}
| {
"content_hash": "1e3ca12783ff5d88207c30ada549dda5",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 140,
"avg_line_length": 30.808988764044944,
"alnum_prop": 0.674872355944566,
"repo_name": "Spantree/openpipeline",
"id": "cbdb9cfc7ce1b5877299df477d4051e97bc6838e",
"size": "6254",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/openpipeline/pipeline/stage/opencalais/OpenCalais.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "840012"
},
{
"name": "JavaScript",
"bytes": "5860"
},
{
"name": "Shell",
"bytes": "94"
}
],
"symlink_target": ""
} |
require 'spec_helper'
describe 'Levelup::Endpoints::LocationMerchantFundedCredit', :vcr => true do
describe '#get' do
it 'gets a users credit' do
response = @test_client.locations(TestConfig.location_id).merchant_funded_credit.
get(TestConfig.user_qr_code, TestConfig.merchant_token_with_manage_orders_perms)
(response).should be_success
end
end
end
| {
"content_hash": "5e131941650af1da4ad0a806116478dc",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 88,
"avg_line_length": 32,
"alnum_prop": 0.7213541666666666,
"repo_name": "kundankumar/levelup",
"id": "27a161c86bb42fb4f20b3054718bf59d01abebe7",
"size": "384",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/endpoints/location_merchant_funded_credit_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "77501"
}
],
"symlink_target": ""
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct_16.c
Label Definition File: CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct.label.xml
Template File: sources-sink-16.tmpl.c
*/
/*
* @description
* CWE: 588 Attempt to Access Child of Non Structure Pointer
* BadSource: Void pointer to an int
* GoodSource: Void pointer to a twoints struct
* Sink:
* BadSink : Print data
* Flow Variant: 16 Control flow: while(1)
*
* */
#include "std_testcase.h"
#ifndef OMITBAD
void CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct_16_bad()
{
void * data;
twoIntsStruct dataGoodBuffer;
int dataBadBuffer = 100;
dataGoodBuffer.intOne = 0;
dataGoodBuffer.intTwo = 0;
while(1)
{
/* FLAW: Set data to point to an int */
data = &dataBadBuffer;
break;
}
/* POTENTIAL FLAW: Attempt to print a struct when data may be a non-struct data type */
printStructLine((twoIntsStruct *)data);
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B() - use goodsource and badsink by changing the conditions on the while statements */
static void goodG2B()
{
void * data;
twoIntsStruct dataGoodBuffer;
int dataBadBuffer = 100;
dataGoodBuffer.intOne = 0;
dataGoodBuffer.intTwo = 0;
while(1)
{
/* FIX: Set data to point to a twoIntsStruct struct */
data = &dataGoodBuffer;
break;
}
/* POTENTIAL FLAW: Attempt to print a struct when data may be a non-struct data type */
printStructLine((twoIntsStruct *)data);
}
void CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct_16_good()
{
goodG2B();
}
#endif /* OMITGOOD */
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
#ifdef INCLUDEMAIN
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct_16_good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct_16_bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| {
"content_hash": "98c61aafaa1f63ec4b49b62363cc3aed",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 96,
"avg_line_length": 28.532608695652176,
"alnum_prop": 0.6579047619047619,
"repo_name": "maurer/tiamat",
"id": "e40ca7d59bbd02156cf10835db7f121a653c9a38",
"size": "2625",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "samples/Juliet/testcases/CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer/CWE588_Attempt_to_Access_Child_of_Non_Structure_Pointer__struct_16.c",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
"""
collection: gisds.runcomplete
"""
#--- standard library imports
#
from argparse import ArgumentParser
from os.path import abspath, dirname, join, realpath
from sys import path
#--- project specific imports
#
# add lib dir for this pipeline installation to PYTHONPATH
LIB_PATH = abspath(join(dirname(realpath(__file__)), "..", "lib"))
if LIB_PATH not in path:
path.insert(0, LIB_PATH)
from mongodb import mongodb_conn
from pipelines import mux_to_lib
__author__ = "LIEW Jun Xian"
__email__ = "liewjx@gis.a-star.edu.sg"
__copyright__ = "2016 Genome Institute of Singapore"
__license__ = "The MIT License (MIT)"
def main():
"""
Main function
"""
instance = ArgumentParser(description=__doc__)
instance.add_argument("-d", "--dir", help="specify one MUX_ID to generate OUT_DIR")
instance.add_argument("-l", "--lib", help="specify one MUX_ID to generate LIB")
args = instance.parse_args()
if args.dir:
for document in mongodb_conn(False).gisds.runcomplete.find({"analysis.per_mux_status.mux_id": args.dir}):
if "analysis" in document:
last_out_dir = ""
for analysis in document["analysis"]:
if analysis["Status"].upper() != "FAILED":
if "per_mux_status" in analysis:
for mux in analysis["per_mux_status"]:
if mux["mux_id"] == args.dir:
last_out_dir = analysis["out_dir"].replace("//", "/")
print (last_out_dir)
if args.lib:
for lib in mux_to_lib(args.lib, testing=False):
print (lib)
if __name__ == "__main__":
main()
| {
"content_hash": "db9a2bf912c84a3e05eb0c79b2d16149",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 113,
"avg_line_length": 32.61538461538461,
"alnum_prop": 0.5831367924528302,
"repo_name": "gis-rpd/pipelines",
"id": "fa8a8b161b7a7a6f63a9eb9f6ba64ce33e0de8b0",
"size": "1719",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tools/whatdirorlibforthismux.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "11229"
},
{
"name": "Python",
"bytes": "665053"
},
{
"name": "Shell",
"bytes": "106434"
}
],
"symlink_target": ""
} |
A Python Video Game Engine powered by Pygame and Pymunk.
Make sure to run `python setup.py install`.
A game engine is essentially an SDL wrapper with a Physics Engine tied together with a robuts API of generalized Game Objects and Components.
Because of this, the component/system implementation of this engine resulted in three main systems:
* Physics
* Graphics
* Control
Coincidentally, this is essentially
* Model
* View
* Control
the `examples` directory contains a working example of how to use the game engine, the components, and ultimately playing a rendering a simple scene that uses physics and graphics.
| {
"content_hash": "52716b34022d2ac2fb86d5d3510b6e4e",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 180,
"avg_line_length": 32.8421052631579,
"alnum_prop": 0.7932692307692307,
"repo_name": "jrburga/VGEngine",
"id": "b12d7bc6c650b1e6f65a770f1faa6d0eb17d6d2d",
"size": "652",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3973"
},
{
"name": "HTML",
"bytes": "455780"
},
{
"name": "JavaScript",
"bytes": "94696"
},
{
"name": "Python",
"bytes": "75479"
}
],
"symlink_target": ""
} |
<?php
namespace DataForm\ParserFunction;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Application\Entity\Template as TemplateEntity;
use Application\Entity\Client as ClientEntity;
use Application\Entity\Secret as SecretEntity;
use DataForm\ParserFunction\ParserFunctionInterface;
/**
* $data_form_link variable
*
* @category DataForm
* @package ParserFunction
*/
class DataFormLink implements ServiceLocatorAwareInterface,
ParserFunctionInterface
{
/**
* Service Locator
*
* @var ServiceLocatorInterface
*/
protected $serviceLocator = null;
/**
* Current template
*
* @var TemplateEntity
*/
protected $template = null;
/**
* Current client
*
* @var ClientEntity
*/
protected $client = null;
/**
* Set service locator
*
* @param ServiceLocatorInterface $serviceLocator
* @return FirstName
*/
public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
{
$this->serviceLocator = $serviceLocator;
return $this;
}
/**
* Get service locator
*
* @return ServiceLocatorInterface
*/
public function getServiceLocator()
{
if (!$this->serviceLocator)
throw new \Exception('No Service Locator configured');
return $this->serviceLocator;
}
/**
* Set current template
*
* @param TemplateEntity $template
* @return Company
*/
public function setTemplate(TemplateEntity $template)
{
$this->template = $template;
return $this;
}
/**
* Get current template
*
* @return TemplateEntity
*/
public function getTemplate()
{
return $this->template;
}
/**
* Set current client
*
* @param ClientEntity $client
* @return FirstName
*/
public function setClient(ClientEntity $client)
{
$this->client = $client;
return $this;
}
/**
* Get current client
*
* @return ClientEntity
*/
public function getClient()
{
return $this->client;
}
/**
* Execute the function
*
* @param boolean $isHtml
* @param array $params
*/
public function execute($isHtml, array $params)
{
$sl = $this->getServiceLocator();
$em = $sl->get('Doctrine\ORM\EntityManager');
$dfm = $sl->get('DataFormManager');
$config = $sl->get('Config');
if (!isset($config['corpnews']['server']['base_url']))
throw new \Exception('Base URL is not set');
$baseUrl = $config['corpnews']['server']['base_url'];
$template = $this->getTemplate();
if (!$template)
throw new \Exception('No template set');
$client = $this->getClient();
if (!$client)
throw new \Exception('No client set');
if (count($params) < 2)
throw new \Exception('Invalid params');
$formName = $params[0];
$linkText = $params[1];
if (!in_array($formName, $dfm->getNames()))
throw new \Exception('Invalid form name');
$campaign = $template->getCampaign();
$secret = $em->getRepository('Application\Entity\Secret')
->findOneBy([
'campaign' => $campaign,
'client' => $client,
'data_form' => $formName,
]);
if (!$secret) {
$secret = new SecretEntity();
$secret->setCampaign($campaign);
$secret->setClient($client);
$secret->setDataForm($formName);
$secret->setSecretKey(SecretEntity::generateSecretKey());
$em->persist($secret);
$em->flush();
}
$url = $baseUrl . '/' . $dfm->getUrl($formName)
. '?key=' . $secret->getSecretKey();
$url = preg_replace('/([^:])\/{2,}/', '$1/', $url);
if ($isHtml) {
echo '<a href="' . $url . '">';
echo $linkText;
echo '</a>';
} else {
echo $url;
}
}
}
| {
"content_hash": "67b9168418325ccbc53193002b528507",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 78,
"avg_line_length": 24.10169491525424,
"alnum_prop": 0.5398499765588373,
"repo_name": "basarevych/corpnews",
"id": "e90e5852a2841ea811eb28008b73e785bf7b4ad0",
"size": "4459",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "module/DataForm/src/DataForm/ParserFunction/DataFormLink.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "711"
},
{
"name": "CSS",
"bytes": "3676"
},
{
"name": "HTML",
"bytes": "184317"
},
{
"name": "JavaScript",
"bytes": "15399"
},
{
"name": "PHP",
"bytes": "886360"
},
{
"name": "Shell",
"bytes": "16807"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.Text;
namespace Darkhood.TexasHoldem.Core
{
public class Hand : IComparable<Hand>, IEquatable<Hand>
{
public const int MaxCardsInHand = 5;
protected List<Card> Cards;
private HandType _handType = HandType.Undefined;
private IDictionary<int, int> _handHistogram;
public Hand()
{
Cards = new List<Card>(MaxCardsInHand);
_handHistogram = new Dictionary<int, int>(5);
}
public Hand(IEnumerable<Card> cards)
: this()
{
Cards = new List<Card>(cards);
CreateCardHistogram(cards);
}
public void AddCard(Card card)
{
if (Cards.Count >= MaxCardsInHand)
{
throw new HandFullException("Reached maximum number of cards in hand: " + MaxCardsInHand);
}
_handType = HandType.Undefined;
AddToHistogram(card);
Cards.Add(card);
}
public void AddCards(IEnumerable<Card> cards)
{
foreach (Card c in cards)
{
AddCard(c);
}
}
/// <summary>
/// Get list of cards of the hand
/// </summary>
/// <returns>A copy of the original array of the hand cards.</returns>
public List<Card> GetCards()
{
return new List<Card>(Cards);
}
public void Clear()
{
Cards.Clear();
_handHistogram.Clear();
_handType = HandType.Undefined;
}
public HandType GetHandType()
{
if (Cards.Count < MaxCardsInHand)
{
return HandType.Undefined;
}
if (_handType == HandType.Undefined)
{
int[] values = new int[_handHistogram.Values.Count];
_handHistogram.Values.CopyTo(values, 0);
Array.Sort(values);
int maxRankCount = values[values.Length - 1];
// Check if the hand is quads or boat
if (_handHistogram.Count < 3)
{
if (maxRankCount == 4)
{
return HandType.FourOfAKind;
}
else
{
return HandType.FullHouse;
}
}
else if (_handHistogram.Count == 3)
{
if (maxRankCount == 3)
{
return HandType.ThreeOfAKind;
}
else
{
return HandType.TwoPair;
}
}
else if (_handHistogram.Count == 4)
{
return HandType.OnePair;
}
bool isFlush = false;
bool isStraight = false;
// Check if the hand is flush
CardSuit firstCardSuit = Cards[0].Suit;
int sameSuitCount = 0;
foreach (Card card in Cards)
{
if (card.Suit == firstCardSuit)
{
sameSuitCount++;
}
}
isFlush = (sameSuitCount == Cards.Count);
Card[] cardsArray = new Card[Cards.Count];
Cards.CopyTo(cardsArray, 0);
Array.Sort(cardsArray);
// Check if the hand is straight
CardValue topCardRank = cardsArray[MaxCardsInHand - 1].Value;
CardValue nextToTheTopCardRank = cardsArray[MaxCardsInHand - 2].Value;
CardValue bottomCardRank = cardsArray[0].Value;
if ((nextToTheTopCardRank == CardValue.Five
&& topCardRank == CardValue.Ace
&& nextToTheTopCardRank - bottomCardRank == 3)
|| (topCardRank - bottomCardRank == 4))
{
isStraight = true;
}
if (isStraight && isFlush)
{
return HandType.StraightFlush;
}
else if (isStraight)
{
return HandType.Straight;
}
else if (isFlush)
{
return HandType.Flush;
}
_handType = HandType.HighCard;
}
return _handType;
}
private void CreateCardHistogram(IEnumerable<Card> cards)
{
_handHistogram.Clear();
foreach (Card card in cards)
{
AddToHistogram(card);
}
}
private void AddToHistogram(Card card)
{
int cardVal = (int)card.Value;
if (_handHistogram.ContainsKey(cardVal))
{
_handHistogram[cardVal] += 1;
}
else
{
_handHistogram.Add(cardVal, 1);
}
}
public int CompareTo(Hand otherHand)
{
HandType handType1 = this.GetHandType();
HandType handType2 = otherHand.GetHandType();
if (handType1 == HandType.Undefined || handType2 == HandType.Undefined)
{
// TODO: throw new Exception("");
}
if (handType1 == handType2)
{
Card[] hand1CardsArray = this.Cards.ToArray();
Card[] hand2CardsArray = otherHand.Cards.ToArray();
Array.Sort(hand1CardsArray);
Array.Sort(hand2CardsArray);
CardValue hand1TopCardRank = hand1CardsArray[MaxCardsInHand - 1].Value;
CardValue hand2TopCardRank = hand2CardsArray[MaxCardsInHand - 1].Value;
CardValue hand1BottomCardRank = hand1CardsArray[0].Value;
CardValue hand2BottomCardRank = hand2CardsArray[0].Value;
switch (handType1)
{
case HandType.StraightFlush:
case HandType.Straight:
return hand1TopCardRank.CompareTo(hand2TopCardRank);
case HandType.Flush:
for (int i = MaxCardsInHand - 1; i >= 0; i--)
{
CardValue hand1CardRank = hand1CardsArray[i].Value;
CardValue hand2CardRank = hand2CardsArray[i].Value;
int flushComparisonResult = hand1CardRank.CompareTo(hand2CardRank);
if (flushComparisonResult != 0)
return flushComparisonResult;
}
return 0;
case HandType.FullHouse:
// Get the triple ranks
CardValue hand1TripleRank;
CardValue hand2TripleRank;
CardValue hand1PairRank;
CardValue hand2PairRank;
if (this._handHistogram[(int)hand1TopCardRank] == 3)
{
hand1TripleRank = hand1TopCardRank;
hand1PairRank = hand1BottomCardRank;
}
else
{
hand1TripleRank = hand1BottomCardRank;
hand1PairRank = hand1TopCardRank;
}
if (otherHand._handHistogram[(int)hand2TopCardRank] == 3)
{
hand2TripleRank = hand2TopCardRank;
hand2PairRank = hand2BottomCardRank;
}
else
{
hand2TripleRank = hand2BottomCardRank;
hand2PairRank = hand2TopCardRank;
}
// Compare triples. If they are equal, compare pairs
int fhComparisonResult = hand1TripleRank.CompareTo(hand2TripleRank);
if (fhComparisonResult != 0)
{
return fhComparisonResult;
}
else
{
fhComparisonResult = hand1PairRank.CompareTo(hand2PairRank);
return fhComparisonResult;
}
case HandType.FourOfAKind:
// Compare the two remaining cards and find which one of them is kicker
CardValue hand1Card;
CardValue hand2Card;
if (this._handHistogram[(int)hand1TopCardRank] != 4)
{
hand1Card = hand1TopCardRank;
}
else
{
hand1Card = hand1BottomCardRank;
}
if (otherHand._handHistogram[(int)hand2TopCardRank] != 4)
{
hand2Card = hand2TopCardRank;
}
else
{
hand2Card = hand2BottomCardRank;
}
return hand1Card.CompareTo(hand2Card);
case HandType.ThreeOfAKind:
// Find triples
CardValue? hand1ThreeOfAKindRank = null; // TODO
CardValue? hand2ThreeOfAKindRank = null;
List<CardValue> hand1RemainingCards = new List<CardValue>(2);
List<CardValue> hand2RemainingCards = new List<CardValue>(2);
for (int i = MaxCardsInHand - 1; i >= 0; i--)
{
CardValue hand1CardRank = hand1CardsArray[i].Value;
CardValue hand2CardRank = hand2CardsArray[i].Value;
if (this._handHistogram[(int)hand1CardRank] == 3)
{
hand1ThreeOfAKindRank = hand1CardRank;
}
else
{
hand1RemainingCards.Add(hand1CardRank);
}
if (otherHand._handHistogram[(int)hand2CardRank] == 3)
{
hand2ThreeOfAKindRank = hand2CardRank;
}
else
{
hand2RemainingCards.Add(hand2CardRank);
}
}
// FIXME: Workaround
int hand1ThreeOfAKindRankIntVal = hand1ThreeOfAKindRank.HasValue ? (int)hand1ThreeOfAKindRank.Value : -1;
int hand2ThreeOfAKindRankIntVal = hand2ThreeOfAKindRank.HasValue ? (int)hand2ThreeOfAKindRank.Value : -1;
int threeOfAKindComparison = hand1ThreeOfAKindRankIntVal.CompareTo(hand2ThreeOfAKindRankIntVal);
if (threeOfAKindComparison != 0)
{
return threeOfAKindComparison;
}
else
{
// Compare remaining cards
hand1RemainingCards.Sort();
hand2RemainingCards.Sort();
int remainingComparisonResult = hand1RemainingCards[1].CompareTo(hand2RemainingCards[1]);
if (remainingComparisonResult == 0)
{
remainingComparisonResult = hand1RemainingCards[0].CompareTo(hand2RemainingCards[0]);
}
return remainingComparisonResult;
}
case HandType.TwoPair:
List<CardValue> hand1PairRanks = new List<CardValue>(2);
List<CardValue> hand2PairRanks = new List<CardValue>(2);
CardValue? hand1RemainingCardRank = null;
CardValue? hand2RemainingCardRank = null;
for (int i = MaxCardsInHand - 1; i >= 0; i--)
{
CardValue hand1CardRank = hand1CardsArray[i].Value;
CardValue hand2CardRank = hand2CardsArray[i].Value;
if (this._handHistogram[(int)hand1CardRank] == 2)
{
hand1PairRanks.Add(hand1CardRank);
}
else
{
hand1RemainingCardRank = hand1CardRank;
}
if (otherHand._handHistogram[(int)hand2CardRank] == 2)
{
hand2PairRanks.Add(hand2CardRank);
}
else
{
hand2RemainingCardRank = hand2CardRank;
}
}
hand1PairRanks.Sort();
hand2PairRanks.Sort();
int twoPairComparisonResult = hand1PairRanks[1].CompareTo(hand2PairRanks[1]);
if (twoPairComparisonResult == 0)
{
twoPairComparisonResult = hand1PairRanks[0].CompareTo(hand2PairRanks[0]);
}
// FIXME: Workaround
int hand1RemainingCardRankIntVal = hand1RemainingCardRank.HasValue ? (int)hand1RemainingCardRank.Value : -1;
int hand2RemainingCardRankIntVal = hand2RemainingCardRank.HasValue ? (int)hand2RemainingCardRank.Value : -1;
// if the pairs are equal, determine the kicker
if (twoPairComparisonResult == 0)
{
twoPairComparisonResult = hand1RemainingCardRankIntVal.CompareTo(hand2RemainingCardRankIntVal);
}
return twoPairComparisonResult;
case HandType.OnePair:
CardValue? hand1OnePairRank = null;
CardValue? hand2OnePairRank = null;
List<CardValue> hand1RemainingCardRanks = new List<CardValue>(3);
List<CardValue> hand2RemainingCardRanks = new List<CardValue>(3);
for (int i = MaxCardsInHand - 1; i >= 0; i--)
{
CardValue hand1CardRank = hand1CardsArray[i].Value;
CardValue hand2CardRank = hand2CardsArray[i].Value;
if (this._handHistogram[(int)hand1CardRank] == 2)
{
hand1OnePairRank = hand1CardRank;
}
else
{
hand1RemainingCardRanks.Add(hand1CardRank);
}
if (otherHand._handHistogram[(int)hand2CardRank] == 2)
{
hand2OnePairRank = hand2CardRank;
}
else
{
hand2RemainingCardRanks.Add(hand2CardRank);
}
}
// if the pairs are equal, determine the kicker
// FIXME: Workaround
int onePairComparisonResult = (hand1OnePairRank.HasValue ? (int)hand1OnePairRank.Value : -1)
.CompareTo(hand2OnePairRank.HasValue ? (int)hand2OnePairRank.Value : -1);
if (onePairComparisonResult == 0)
{
hand1RemainingCardRanks.Sort();
hand2RemainingCardRanks.Sort();
onePairComparisonResult = hand1RemainingCardRanks[2].CompareTo(hand2RemainingCardRanks[2]);
if (onePairComparisonResult == 0)
{
onePairComparisonResult = hand1RemainingCardRanks[1].CompareTo(hand2RemainingCardRanks[1]);
}
if (onePairComparisonResult == 0)
{
onePairComparisonResult = hand1RemainingCardRanks[0].CompareTo(hand2RemainingCardRanks[0]);
}
}
return onePairComparisonResult;
case HandType.HighCard:
for (int i = MaxCardsInHand - 1; i >= 0; i--)
{
CardValue hand1CardRank = hand1CardsArray[i].Value;
CardValue hand2CardRank = hand2CardsArray[i].Value;
if (hand1CardRank == hand2CardRank)
continue;
if (hand1CardRank > hand2CardRank)
return 1;
}
break;
}
}
else
{
return handType1.CompareTo(handType2);
}
return 0;
}
/// <summary>
/// Evaluates the best possible hand from the array of cards
/// </summary>
/// <param name="cards">Array of cards to pick the best hand from</param>
/// <returns>Hand containing only 5 cards</returns>
public static Hand GetBestPossibleHand(List<Card> cards)
{
// TODO: argument check
List<Hand> allHands = GetAllPossibleHands(cards);
allHands.Sort();
return allHands[allHands.Count - 1];
}
public static List<Hand> GetAllPossibleHands(List<Card> cards)
{
List<Hand> allHands = new List<Hand>();
for (int i = 0; i < cards.Count; i++)
{
List<Card> newHandCards = new List<Card>(cards);
newHandCards.RemoveAt(i);
for (int j = 0; j < newHandCards.Count; j++)
{
List<Card> newHand = new List<Card>(newHandCards);
newHand.RemoveAt(j);
allHands.Add(new Hand(newHand));
}
}
return allHands;
}
public bool Equals(Hand other)
{
if (this.Cards.Count != other.Cards.Count)
{
return false;
}
return this.Cards.TrueForAll(c => other.Cards.Contains(c));
}
public override bool Equals(object obj)
{
if (this == obj)
{
return true;
}
if (obj == null || obj.GetType() != typeof(Hand))
{
return false;
}
Hand other = (Hand)obj;
return Equals(other);
}
public override int GetHashCode()
{
return HashCode.Combine(Cards, _handType, _handHistogram);
}
}
}
| {
"content_hash": "9d0d7467d8b5c60975686a02300af1d7",
"timestamp": "",
"source": "github",
"line_count": 483,
"max_line_length": 132,
"avg_line_length": 41.53623188405797,
"alnum_prop": 0.43295783072475325,
"repo_name": "skyphaser/texasholdem-dh",
"id": "6d88fd145b1dc140d447656de3b64c057525d76b",
"size": "20064",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/TexasHoldem.Core/Hand.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "64842"
}
],
"symlink_target": ""
} |
Go through to **Admin Dashboard** --> **Plugins** --> Enable and install this plugin.
#### Before start:
- Enable ```zip``` php extension.
- I use ```mysqldump``` command to backup the database. Your host need to support this function.
If you cannot create database backup, maybe you need to setup your dump path.
Open your **.env**:
Here is an example for AMPPS:
```
DB_DUMP_PATH=/Applications/AMPPS/mysql/bin/
``` | {
"content_hash": "0ec87a35184062e9ad0791c23af1ad96",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 96,
"avg_line_length": 34.75,
"alnum_prop": 0.7026378896882494,
"repo_name": "webed-plugins/backup",
"id": "ba79b14a59cdf8a4621fc3d008693f126c5daf0b",
"size": "469",
"binary": false,
"copies": "1",
"ref": "refs/heads/3.1",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "2405"
},
{
"name": "PHP",
"bytes": "24717"
}
],
"symlink_target": ""
} |
#import <UIKit/UIKit.h>
#import "AQGridViewCell.h"
typedef enum {
AQGridViewScrollPositionNone,
AQGridViewScrollPositionTop,
AQGridViewScrollPositionMiddle,
AQGridViewScrollPositionBottom
} AQGridViewScrollPosition;
typedef enum {
AQGridViewItemAnimationFade,
AQGridViewItemAnimationRight,
AQGridViewItemAnimationLeft,
AQGridViewItemAnimationTop,
AQGridViewItemAnimationBottom,
AQGridViewItemAnimationNone
} AQGridViewItemAnimation;
typedef enum {
AQGridViewLayoutDirectionVertical,
AQGridViewLayoutDirectionHorizontal
} AQGridViewLayoutDirection;
@protocol AQGridViewDataSource;
@class AQGridView, AQGridViewData, AQGridViewUpdateInfo;
@protocol AQGridViewDelegate <NSObject, UIScrollViewDelegate>
@optional
// Display customization
- (void) gridView: (AQGridView *) gridView willDisplayCell: (AQGridViewCell *) cell forItemAtIndex: (NSUInteger) index;
// Selection
// Called before selection occurs. Return a new index, or NSNotFound, to change the proposed selection.
- (NSUInteger) gridView: (AQGridView *) gridView willSelectItemAtIndex: (NSUInteger) index;
- (NSUInteger) gridView: (AQGridView *) gridView willDeselectItemAtIndex: (NSUInteger) index;
// Called after the user changes the selection
- (void) gridView: (AQGridView *) gridView didSelectItemAtIndex: (NSUInteger) index;
- (void) gridView: (AQGridView *) gridView didDeselectItemAtIndex: (NSUInteger) index;
// NOT YET IMPLEMENTED
- (void) gridView: (AQGridView *) gridView gestureRecognizer: (UIGestureRecognizer *) recognizer activatedForItemAtIndex: (NSUInteger) index;
- (CGRect) gridView: (AQGridView *) gridView adjustCellFrame: (CGRect) cellFrame withinGridCellFrame: (CGRect) gridCellFrame;
// Editing
- (void)gridView:(AQGridView *)aGridView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndex:(NSUInteger)index;
@end
extern NSString * const AQGridViewSelectionDidChangeNotification;
@interface AQGridView : UIScrollView
{
id<AQGridViewDataSource> _dataSource;
AQGridViewData * _gridData;
NSMutableArray * _updateInfoStack;
NSInteger _animationCount;
CGRect _visibleBounds;
NSRange _visibleIndices;
NSMutableArray * _visibleCells;
NSMutableDictionary * _reusableGridCells;
NSSet * _animatingCells;
NSIndexSet * _animatingIndices;
NSMutableIndexSet * _highlightedIndices;
UIView * _touchedContentView; // weak reference
UIView * _backgroundView;
UIColor * _separatorColor;
NSInteger _reloadingSuspendedCount;
NSInteger _displaySuspendedCount;
NSInteger _updateCount;
NSUInteger _selectedIndex;
NSUInteger _pendingSelectionIndex;
CGPoint _touchBeganPosition;
UIView * _headerView;
UIView * _footerView;
struct
{
unsigned resizesCellWidths:1;
unsigned numColumns:6;
unsigned separatorStyle:3;
unsigned allowsSelection:1;
unsigned backgroundViewExtendsUp:1;
unsigned backgroundViewExtendsDown:1;
unsigned usesPagedHorizontalScrolling:1;
unsigned updating:1; // unused
unsigned ignoreTouchSelect:1;
unsigned needsReload:1;
unsigned allCellsNeedLayout:1;
unsigned isRotating:1;
unsigned clipsContentWidthToBounds:1;
unsigned isAnimatingUpdates:1; // unused, see _animationCount instead
unsigned requiresSelection:1;
unsigned contentSizeFillsBounds:1;
unsigned delegateWillDisplayCell:1;
unsigned delegateWillSelectItem:1;
unsigned delegateWillDeselectItem:1;
unsigned delegateDidSelectItem:1;
unsigned delegateDidDeselectItem:1;
unsigned delegateGestureRecognizerActivated:1;
unsigned delegateAdjustGridCellFrame:1;
unsigned dataSourceGridCellSize:1;
unsigned int isEditing:1;
unsigned __RESERVED__:1;
} _flags;
}
@property (nonatomic, assign) IBOutlet id<AQGridViewDataSource> dataSource;
@property (nonatomic, assign) IBOutlet id<AQGridViewDelegate> delegate;
@property (nonatomic, assign) AQGridViewLayoutDirection layoutDirection;
// Data
- (void) reloadData;
// Info
@property (nonatomic, readonly) NSUInteger numberOfItems;
@property (nonatomic, readonly) NSUInteger numberOfColumns;
@property (nonatomic, readonly) NSUInteger numberOfRows;
@property (nonatomic, readonly) CGSize gridCellSize;
- (void)doAddVisibleCell: (UIView *)cell;
- (CGRect) rectForItemAtIndex: (NSUInteger) index;
- (CGRect) gridViewVisibleBounds;
- (AQGridViewCell *) cellForItemAtIndex: (NSUInteger) index;
- (NSUInteger) indexForItemAtPoint: (CGPoint) point;
- (NSUInteger) indexForCell: (AQGridViewCell *) cell;
- (AQGridViewCell *) cellForItemAtPoint: (CGPoint) point;
- (NSArray *) visibleCells;
- (NSIndexSet *) visibleCellIndices;
- (void) scrollToItemAtIndex: (NSUInteger) index atScrollPosition: (AQGridViewScrollPosition) scrollPosition animated: (BOOL) animated;
// Insertion/deletion/reloading
- (void) beginUpdates; // allow multiple insert/delete of items to be animated simultaneously. Nestable.
- (void) endUpdates; // only call insert/delete/reload calls inside an update block.
- (void) insertItemsAtIndices: (NSIndexSet *) indices withAnimation: (AQGridViewItemAnimation) animation;
- (void) deleteItemsAtIndices: (NSIndexSet *) indices withAnimation: (AQGridViewItemAnimation) animation;
- (void) reloadItemsAtIndices: (NSIndexSet *) indices withAnimation: (AQGridViewItemAnimation) animation;
- (void) moveItemAtIndex: (NSUInteger) index toIndex: (NSUInteger) newIndex withAnimation: (AQGridViewItemAnimation) animation;
// Selection
@property (nonatomic) BOOL allowsSelection; // default is YES
@property (nonatomic) BOOL requiresSelection; // if YES, tapping on a selected cell will not de-select it
- (NSUInteger) indexOfSelectedItem; // returns NSNotFound if no item is selected
- (void) selectItemAtIndex: (NSUInteger) index animated: (BOOL) animated scrollPosition: (AQGridViewScrollPosition) scrollPosition;
- (void) deselectItemAtIndex: (NSUInteger) index animated: (BOOL) animated;
// Appearance
@property (nonatomic, assign) BOOL resizesCellWidthToFit; // default is NO. Set to YES if the view should resize cells to fill all available space in their grid square. Ignored if separatorStyle == AQGridViewCellSeparatorStyleEmptySpace.
// this property is now officially deprecated -- it will instead set the layout direction to horizontal if
// this property is set to YES, or to vertical otherwise.
@property (nonatomic, assign) BOOL clipsContentWidthToBounds __attribute__((deprecated)); // default is YES. If you want to enable horizontal scrolling, set this to NO.
@property (nonatomic, retain) UIView * backgroundView; // specifies a view to place behind the cells
@property (nonatomic) BOOL backgroundViewExtendsUp; // default is NO. If YES, the background view extends upward and is visible during a bounce.
@property (nonatomic) BOOL backgroundViewExtendsDown; // default is NO. If YES, the background view extends downward and is visible during a bounce.
@property (nonatomic) BOOL usesPagedHorizontalScrolling; // default is NO, and scrolls verticalls only. Set to YES to have horizontal-only scrolling by page.
@property (nonatomic) AQGridViewCellSeparatorStyle separatorStyle; // default is AQGridViewCellSeparatorStyleEmptySpace
@property (nonatomic, retain) UIColor * separatorColor; // ignored unless separatorStyle == AQGridViewCellSeparatorStyleSingleLine. Default is standard separator gray.
- (AQGridViewCell *) dequeueReusableCellWithIdentifier: (NSString *) reuseIdentifier;
// Headers and Footers
@property (nonatomic, retain) UIView * gridHeaderView;
@property (nonatomic, retain) UIView * gridFooterView;
@property (nonatomic, assign) CGFloat leftContentInset;
@property (nonatomic, assign) CGFloat rightContentInset;
@property (nonatomic, assign) BOOL contentSizeGrowsToFillBounds; // default is YES. Prior to iPhone OS 3.2, pattern colors tile from the bottom-left, necessitating that this be set to NO to avoid specially-constructed background patterns falling 'out of sync' with the cells displayed on top of it.
@property (nonatomic, readonly) BOOL isAnimatingUpdates;
// Editing
@property(nonatomic,getter=isEditing) BOOL editing; // default is NO. setting is not animated.
- (void)setEditing:(BOOL)editing animated:(BOOL)animated;
@end
@protocol AQGridViewDataSource <NSObject>
@required
- (NSUInteger) numberOfItemsInGridView: (AQGridView *) gridView;
- (AQGridViewCell *) gridView: (AQGridView *) gridView cellForItemAtIndex: (NSUInteger) index;
@optional
// all cells are placed in a logical 'grid cell', all of which are the same size. The default size is 96x128 (portrait).
// The width/height values returned by this function will be rounded UP to the nearest denominator of the screen width.
- (CGSize) portraitGridCellSizeForGridView: (AQGridView *) gridView;
@end | {
"content_hash": "ed786bb98d92d0398f94830819e963a6",
"timestamp": "",
"source": "github",
"line_count": 230,
"max_line_length": 298,
"avg_line_length": 38.391304347826086,
"alnum_prop": 0.7813137032842582,
"repo_name": "0xced/AQGridView",
"id": "6d6cfc8f5e2ffbd4c41b168ab55add96598b9962",
"size": "10461",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Classes/AQGridView.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "63986"
},
{
"name": "Objective-C",
"bytes": "202545"
},
{
"name": "Shell",
"bytes": "193"
}
],
"symlink_target": ""
} |
/*
* Aloha Editor 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.*
*
* Aloha Editor 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.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define(
[ 'aloha/core', 'aloha/jquery', 'aloha/floatingmenu', 'util/class', 'util/range', 'aloha/rangy-core' ],
function(Aloha, jQuery, FloatingMenu, Class, Range) {
var
// $ = jQuery,
// Aloha = window.Aloha,
// Class = window.Class,
GENTICS = window.GENTICS;
/**
* @namespace Aloha
* @class Selection
* This singleton class always represents the current user selection
* @singleton
*/
var Selection = Class.extend({
_constructor: function(){
// Pseudo Range Clone being cleaned up for better HTML wrapping support
this.rangeObject = {};
this.preventSelectionChangedFlag = false; // will remember if someone urged us to skip the next aloha-selection-changed event
// define basics first
this.tagHierarchy = {
'textNode' : [],
'abbr' : ['textNode'],
'b' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img','a','del','ins','u', 'cite', 'q', 'code', 'abbr', 'strong'],
'pre' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img','a','del','ins','u', 'cite','q', 'code', 'abbr', 'code'],
'blockquote' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img','a','del','ins','u', 'cite', 'q', 'code', 'abbr', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
'ins' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img','a','u', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
'ul' : ['li'],
'ol' : ['li'],
'li' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img', 'ul', 'ol', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'del', 'ins', 'u', 'a'],
'tr' : ['td','th'],
'table' : ['tr'],
'div' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img', 'ul', 'ol', 'table', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'del', 'ins', 'u', 'p', 'div', 'pre', 'blockquote', 'a'],
'h1' : ['textNode', 'b', 'i', 'em', 'sup', 'sub', 'br', 'span', 'img','a', 'del', 'ins', 'u']
};
// now reference the basics for all other equal tags (important: don't forget to include
// the basics itself as reference: 'b' : this.tagHierarchy.b
this.tagHierarchy = {
'textNode' : this.tagHierarchy.textNode,
'abbr' : this.tagHierarchy.abbr,
'br' : this.tagHierarchy.textNode,
'img' : this.tagHierarchy.textNode,
'b' : this.tagHierarchy.b,
'strong' : this.tagHierarchy.b,
'code' : this.tagHierarchy.b,
'q' : this.tagHierarchy.b,
'blockquote' : this.tagHierarchy.blockquote,
'cite' : this.tagHierarchy.b,
'i' : this.tagHierarchy.b,
'em' : this.tagHierarchy.b,
'sup' : this.tagHierarchy.b,
'sub' : this.tagHierarchy.b,
'span' : this.tagHierarchy.b,
'del' : this.tagHierarchy.del,
'ins' : this.tagHierarchy.ins,
'u' : this.tagHierarchy.b,
'p' : this.tagHierarchy.b,
'pre' : this.tagHierarchy.pre,
'a' : this.tagHierarchy.b,
'ul' : this.tagHierarchy.ul,
'ol' : this.tagHierarchy.ol,
'li' : this.tagHierarchy.li,
'td' : this.tagHierarchy.li,
'div' : this.tagHierarchy.div,
'h1' : this.tagHierarchy.h1,
'h2' : this.tagHierarchy.h1,
'h3' : this.tagHierarchy.h1,
'h4' : this.tagHierarchy.h1,
'h5' : this.tagHierarchy.h1,
'h6' : this.tagHierarchy.h1,
'table' : this.tagHierarchy.table
};
// When applying this elements to selection they will replace the assigned elements
this.replacingElements = {
'h1' : ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6','pre', 'blockquote']
};
this.replacingElements = {
'h1' : this.replacingElements.h1,
'h2' : this.replacingElements.h1,
'h3' : this.replacingElements.h1,
'h4' : this.replacingElements.h1,
'h5' : this.replacingElements.h1,
'h6' : this.replacingElements.h1,
'pre' : this.replacingElements.h1,
'p' : this.replacingElements.h1,
'blockquote' : this.replacingElements.h1
};
this.allowedToStealElements = {
'h1' : ['textNode']
};
this.allowedToStealElements = {
'h1' : this.allowedToStealElements.h1,
'h2' : this.allowedToStealElements.h1,
'h3' : this.allowedToStealElements.h1,
'h4' : this.allowedToStealElements.h1,
'h5' : this.allowedToStealElements.h1,
'h6' : this.allowedToStealElements.h1,
'p' : this.tagHierarchy.b
};
},
/**
* Class definition of a SelectionTree (relevant for all formatting / markup changes)
* TODO: remove this (was moved to range.js)
* Structure:
* +
* |-domobj: <reference to the DOM Object> (NOT jQuery)
* |-selection: defines if this node is marked by user [none|partial|full]
* |-children: recursive structure like this
* @hide
*/
SelectionTree: function() {
this.domobj = {};
this.selection = undefined;
this.children = [];
},
/**
* INFO: Method is used for integration with Gentics Aloha, has no use otherwise
* Updates the rangeObject according to the current user selection
* Method is always called on selection change
* @param objectClicked Object that triggered the selectionChange event
* @return true when rangeObject was modified, false otherwise
* @hide
*/
onChange: function(objectClicked, event) {
if (this.updateSelectionTimeout) {
window.clearTimeout(this.updateSelectionTimeout);
this.updateSelectionTimeout = undefined;
}
//we have to work around an IE bug that causes the user
//selection to be incorrectly set on the body element when
//the updateSelectionTimeout triggers. We remember the range
//from the time when this onChange is triggered and provide
//it instead of the current user selection when the timout
//is triggered. The bug is caused by selecting some text and
//then clicking once inside the selection (which collapses
//the selection). Interesting fact: when the timeout is
//increased to 500 milliseconds, the bug will not cause any
//problems since the selection will correct itself somehow.
var range = new Aloha.Selection.SelectionRange(true);
this.updateSelectionTimeout = window.setTimeout(function () {
Aloha.Selection._updateSelection(event, range);
}, 5);
},
/**
* prevents the next aloha-selection-changed event from being triggered
*/
preventSelectionChanged: function () {
this.preventSelectionChangedFlag = true;
},
/**
* will return wheter selection change event was prevented or not, and reset the preventSelectionChangedFlag
* @return {Boolean} true if aloha-selection-change event was prevented
*/
isSelectionChangedPrevented: function () {
var prevented = this.preventSelectionChangedFlag;
this.preventSelectionChangedFlag = false;
return prevented;
},
/**
* Checks if the current rangeObject common ancector container is edtiable
* @return {Boolean} true if current common ancestor is editable
*/
isSelectionEditable: function() {
return ( this.rangeObject.commonAncestorContainer &&
jQuery( this.rangeObject.commonAncestorContainer )
.contentEditable() );
},
/**
* This method checks, if the current rangeObject common ancestor container has a 'data-aloha-floatingmenu-visible' Attribute.
* Needed in Floating Menu for exceptional display of floatingmenu.
*/
isFloatingMenuVisible: function() {
var visible = jQuery(Aloha.Selection.rangeObject
.commonAncestorContainer).attr('data-aloha-floatingmenu-visible');
if(visible !== 'undefined'){
if (visible === 'true'){
return true;
} else {
return false;
}
}
return false;
},
/**
* INFO: Method is used for integration with Gentics Aloha, has no use otherwise
* Updates the rangeObject according to the current user selection
* Method is always called on selection change
* @param event jQuery browser event object
* @return true when rangeObject was modified, false otherwise
* @hide
*/
updateSelection: function(event) {
return this._updateSelection(event, null);
},
/**
* Internal version of updateSelection that adds the range parameter to be
* able to work around an IE bug that caused the current user selection
* sometimes to be on the body element.
* @param {Object} event
* @param {Object} range a substitute for the current user selection. if not provided,
* the current user selection will be used.
* @hide
*/
_updateSelection: function( event, range ) {
if ( event && event.originalEvent
&& event.originalEvent.stopSelectionUpdate === true ) {
return false;
}
if ( typeof range === 'undefined' ) {
return false;
}
this.rangeObject = range || new Aloha.Selection.SelectionRange( true );
// Only execute the workaround when a valid rangeObject was provided
if ( typeof this.rangeObject !== "undefined" && typeof this.rangeObject.startContainer !== "undefined" && this.rangeObject.endContainer !== "undefined") {
// workaround for a nasty IE bug that allows the user to select text nodes inside areas with contenteditable "false"
if ( (this.rangeObject.startContainer.nodeType === 3 && !jQuery(this.rangeObject.startContainer.parentNode).contentEditable())
|| (this.rangeObject.endContainer.nodeType === 3 && !jQuery(this.rangeObject.endContainer.parentNode).contentEditable())) {
Aloha.getSelection().removeAllRanges();
return true;
}
}
// find the CAC (Common Ancestor Container) and update the selection Tree
this.rangeObject.update();
// check if aloha-selection-changed event has been prevented
if (this.isSelectionChangedPrevented()) {
return true;
}
// Only set the specific scope if an event was provided, which means
// that somehow an editable was selected
// TODO Bind code to aloha-selection-changed event to remove coupling to floatingmenu
if (event !== undefined) {
// Initiallly set the scope to 'continuoustext'
FloatingMenu.setScope('Aloha.continuoustext');
}
// throw the event that the selection has changed. Plugins now have the
// chance to react on the chancurrentElements[childCount].children.lengthged selection
Aloha.trigger('aloha-selection-changed', [ this.rangeObject, event ]);
return true;
},
/**
* creates an object with x items containing all relevant dom objects.
* Structure:
* +
* |-domobj: <reference to the DOM Object> (NOT jQuery)
* |-selection: defines if this node is marked by user [none|partial|full]
* |-children: recursive structure like this ("x.." because it's then shown last in DOM Browsers...)
* TODO: remove this (was moved to range.js)
*
* @param rangeObject "Aloha clean" range object including a commonAncestorContainer
* @return obj selection
* @hide
*/
getSelectionTree: function(rangeObject) {
if (!rangeObject) { // if called without any parameters, the method acts as getter for this.selectionTree
return this.rangeObject.getSelectionTree();
}
if (!rangeObject.commonAncestorContainer) {
Aloha.Log.error(this, 'the rangeObject is missing the commonAncestorContainer');
return false;
}
this.inselection = false;
// before getting the selection tree, we do a cleanup
if (GENTICS.Utils.Dom.doCleanup({'merge' : true}, rangeObject)) {
this.rangeObject.update();
this.rangeObject.select();
}
return this.recursiveGetSelectionTree(rangeObject, rangeObject.commonAncestorContainer);
},
/**
* Recursive inner function for generating the selection tree.
* TODO: remove this (was moved to range.js)
* @param rangeObject range object
* @param currentObject current DOM object for which the selection tree shall be generated
* @return array of SelectionTree objects for the children of the current DOM object
* @hide
*/
recursiveGetSelectionTree: function (rangeObject, currentObject) {
// get all direct children of the given object
var jQueryCurrentObject = jQuery(currentObject),
childCount = 0,
that = this,
currentElements = [];
jQueryCurrentObject.contents().each(function(index) {
var selectionType = 'none',
startOffset = false,
endOffset = false,
collapsedFound = false,
i, elementsLength,
noneFound = false,
partialFound = false,
fullFound = false;
// check for collapsed selections between nodes
if (rangeObject.isCollapsed() && currentObject === rangeObject.startContainer && rangeObject.startOffset == index) {
// insert an extra selectiontree object for the collapsed selection here
currentElements[childCount] = new Aloha.Selection.SelectionTree();
currentElements[childCount].selection = 'collapsed';
currentElements[childCount].domobj = undefined;
that.inselection = false;
collapsedFound = true;
childCount++;
}
if (!that.inselection && !collapsedFound) {
// the start of the selection was not yet found, so look for it now
// check whether the start of the selection is found here
// check is dependent on the node type
switch(this.nodeType) {
case 3: // text node
if (this === rangeObject.startContainer) {
// the selection starts here
that.inselection = true;
// when the startoffset is > 0, the selection type is only partial
selectionType = rangeObject.startOffset > 0 ? 'partial' : 'full';
startOffset = rangeObject.startOffset;
endOffset = this.length;
}
break;
case 1: // element node
if (this === rangeObject.startContainer && rangeObject.startOffset === 0) {
// the selection starts here
that.inselection = true;
selectionType = 'full';
}
if (currentObject === rangeObject.startContainer && rangeObject.startOffset === index) {
// the selection starts here
that.inselection = true;
selectionType = 'full';
}
break;
}
}
if (that.inselection && !collapsedFound) {
if (selectionType == 'none') {
selectionType = 'full';
}
// we already found the start of the selection, so look for the end of the selection now
// check whether the end of the selection is found here
switch(this.nodeType) {
case 3: // text node
if (this === rangeObject.endContainer) {
// the selection ends here
that.inselection = false;
// check for partial selection here
if (rangeObject.endOffset < this.length) {
selectionType = 'partial';
}
if (startOffset === false) {
startOffset = 0;
}
endOffset = rangeObject.endOffset;
}
break;
case 1: // element node
if (this === rangeObject.endContainer && rangeObject.endOffset === 0) {
that.inselection = false;
}
break;
}
if (currentObject === rangeObject.endContainer && rangeObject.endOffset <= index) {
that.inselection = false;
selectionType = 'none';
}
}
// create the current selection tree entry
currentElements[childCount] = new Aloha.Selection.SelectionTree();
currentElements[childCount].domobj = this;
currentElements[childCount].selection = selectionType;
if (selectionType == 'partial') {
currentElements[childCount].startOffset = startOffset;
currentElements[childCount].endOffset = endOffset;
}
// now do the recursion step into the current object
currentElements[childCount].children = that.recursiveGetSelectionTree(rangeObject, this);
elementsLength = currentElements[childCount].children.length;
// check whether a selection was found within the children
if (elementsLength > 0) {
for ( i = 0; i < elementsLength; ++i) {
switch(currentElements[childCount].children[i].selection) {
case 'none':
noneFound = true;
break;
case 'full':
fullFound = true;
break;
case 'partial':
partialFound = true;
break;
}
}
if (partialFound || (fullFound && noneFound)) {
// found at least one 'partial' selection in the children, or both 'full' and 'none', so this element is also 'partial' selected
currentElements[childCount].selection = 'partial';
} else if (fullFound && !partialFound && !noneFound) {
// only found 'full' selected children, so this element is also 'full' selected
currentElements[childCount].selection = 'full';
}
}
childCount++;
});
// extra check for collapsed selections at the end of the current element
if (rangeObject.isCollapsed()
&& currentObject === rangeObject.startContainer
&& rangeObject.startOffset == currentObject.childNodes.length) {
currentElements[childCount] = new Aloha.Selection.SelectionTree();
currentElements[childCount].selection = 'collapsed';
currentElements[childCount].domobj = undefined;
}
return currentElements;
},
/**
* Get the currently selected range
* @return {Aloha.Selection.SelectionRange} currently selected range
* @method
*/
getRangeObject: function() {
return this.rangeObject;
},
/**
* method finds out, if a node is within a certain markup or not
* @param rangeObj Aloha rangeObject
* @param startOrEnd boolean; defines, if start or endContainer should be used: false for start, true for end
* @param markupObject jQuery object of the markup to look for
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @param limitObject dom object which limits the search are within the dom. normally this will be the active Editable
* @return true, if the markup is effective on the range objects start or end node
* @hide
*/
isRangeObjectWithinMarkup: function(rangeObject, startOrEnd, markupObject, tagComparator, limitObject) {
var
domObj = !startOrEnd?rangeObject.startContainer:rangeObject.endContainer,
that = this,
parents = jQuery(domObj).parents(),
returnVal = false,
i = -1;
// check if a comparison method was passed as parameter ...
if (typeof tagComparator !== 'undefined' && typeof tagComparator !== 'function') {
Aloha.Log.error(this,'parameter tagComparator is not a function');
}
// ... if not use this as standard tag comparison method
if (typeof tagComparator === 'undefined') {
tagComparator = function(domobj, markupObject) {
return that.standardTextLevelSemanticsComparator(domobj, markupObject); // TODO should actually be this.getStandardTagComparator(markupObject)
};
}
if (parents.length > 0) {
parents.each(function() {
// the limit object was reached (normally the Editable Element)
if (this === limitObject) {
Aloha.Log.debug(that,'reached limit dom obj');
return false; // break() of jQuery .each(); THIS IS NOT THE FUNCTION RETURN VALUE
}
if (tagComparator(this, markupObject)) {
if (returnVal === false) {
returnVal = [];
}
Aloha.Log.debug(that,'reached object equal to markup');
i++;
returnVal[i] = this;
return true; // continue() of jQuery .each(); THIS IS NOT THE FUNCTION RETURN VALUE
}
});
}
return returnVal;
},
/**
* standard method, to compare a domobj and a jquery object for sections and grouping content (e.g. p, h1, h2, ul, ....).
* is always used when no other tag comparator is passed as parameter
* @param domobj domobject to compare with markup
* @param markupObject jQuery object of the markup to compare with domobj
* @return true if objects are equal and false if not
* @hide
*/
standardSectionsAndGroupingContentComparator: function(domobj, markupObject) {
if (domobj.nodeType === 1) {
if (markupObject[0].tagName && Aloha.Selection.replacingElements[ domobj.tagName.toLowerCase() ] && Aloha.Selection.replacingElements[ domobj.tagName.toLowerCase() ].indexOf(markupObject[0].tagName.toLowerCase()) != -1) {
return true;
}
} else {
Aloha.Log.debug(this,'only element nodes (nodeType == 1) can be compared');
}
return false;
},
/**
* standard method, to compare a domobj and a jquery object for their tagName (aka span elements, e.g. b, i, sup, span, ...).
* is always used when no other tag comparator is passed as parameter
* @param domobj domobject to compare with markup
* @param markupObject jQuery object of the markup to compare with domobj
* @return true if objects are equal and false if not
* @hide
*/
standardTagNameComparator : function(domobj, markupObject) {
if (domobj.nodeType === 1) {
if (domobj.tagName.toLowerCase() != markupObject[0].tagName.toLowerCase()) {
// Aloha.Log.debug(this, 'tag comparison for <' + domobj.tagName.toLowerCase() + '> and <' + markupObject[0].tagName.toLowerCase() + '> failed because tags are different');
return false;
}
return true;//domobj.attributes.length
} else {
Aloha.Log.debug(this,'only element nodes (nodeType == 1) can be compared');
}
return false;
},
/**
* standard method, to compare a domobj and a jquery object for text level semantics (aka span elements, e.g. b, i, sup, span, ...).
* is always used when no other tag comparator is passed as parameter
* @param domobj domobject to compare with markup
* @param markupObject jQuery object of the markup to compare with domobj
* @return true if objects are equal and false if not
* @hide
*/
standardTextLevelSemanticsComparator: function(domobj, markupObject) {
// only element nodes can be compared
if (domobj.nodeType === 1) {
if (domobj.tagName.toLowerCase() != markupObject[0].tagName.toLowerCase()) {
// Aloha.Log.debug(this, 'tag comparison for <' + domobj.tagName.toLowerCase() + '> and <' + markupObject[0].tagName.toLowerCase() + '> failed because tags are different');
return false;
}
if (!this.standardAttributesComparator(domobj, markupObject)) {
return false;
}
return true;//domobj.attributes.length
} else {
Aloha.Log.debug(this,'only element nodes (nodeType == 1) can be compared');
}
return false;
},
/**
* standard method, to compare attributes of one dom obj and one markup obj (jQuery)
* @param domobj domobject to compare with markup
* @param markupObject jQuery object of the markup to compare with domobj
* @return true if objects are equal and false if not
* @hide
*/
standardAttributesComparator: function(domobj, markupObject) {
var i, attr, classString, classes, classes2, classLength, attrLength, domAttrLength;
if (domobj.attributes && domobj.attributes.length && domobj.attributes.length > 0) {
for (i = 0, domAttrLength = domobj.attributes.length; i < domAttrLength; i++) {
attr = domobj.attributes[i];
if (attr.nodeName.toLowerCase() == 'class' && attr.nodeValue.length > 0) {
classString = attr.nodeValue;
classes = classString.split(' ');
}
}
}
if (markupObject[0].attributes && markupObject[0].attributes.length && markupObject[0].attributes.length > 0) {
for (i = 0, attrLength = markupObject[0].attributes.length; i < attrLength; i++) {
attr = markupObject[0].attributes[i];
if (attr.nodeName.toLowerCase() == 'class' && attr.nodeValue.length > 0) {
classString = attr.nodeValue;
classes2 = classString.split(' ');
}
}
}
if (classes && !classes2 || classes2 && !classes) {
Aloha.Log.debug(this, 'tag comparison for <' + domobj.tagName.toLowerCase() + '> failed because one element has classes and the other has not');
return false;
}
if (classes && classes2 && classes.length != classes2.length) {
Aloha.Log.debug(this, 'tag comparison for <' + domobj.tagName.toLowerCase() + '> failed because of a different amount of classes');
return false;
}
if (classes && classes2 && classes.length === classes2.length && classes.length !== 0) {
for (i = 0, classLength = classes.length; i < classLength; i++) {
if (!markupObject.hasClass(classes[ i ])) {
Aloha.Log.debug(this, 'tag comparison for <' + domobj.tagName.toLowerCase() + '> failed because of different classes');
return false;
}
}
}
return true;
},
/**
* method finds out, if a node is within a certain markup or not
* @param rangeObj Aloha rangeObject
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @return void; TODO: should return true if the markup applied successfully and false if not
* @hide
*/
changeMarkup: function(rangeObject, markupObject, tagComparator) {
var
tagName = markupObject[0].tagName.toLowerCase(),
newCAC, limitObject,
backupRangeObject,
relevantMarkupObjectsAtSelectionStart = this.isRangeObjectWithinMarkup(rangeObject, false, markupObject, tagComparator, limitObject),
relevantMarkupObjectsAtSelectionEnd = this.isRangeObjectWithinMarkup(rangeObject, true, markupObject, tagComparator, limitObject),
nextSibling, relevantMarkupObjectAfterSelection,
prevSibling, relevantMarkupObjectBeforeSelection,
extendedRangeObject;
// if the element is a replacing element (like p/h1/h2/h3/h4/h5/h6...), which must not wrap each other
// use a clone of rangeObject
if (this.replacingElements[ tagName ]) {
// backup rangeObject for later selection;
backupRangeObject = rangeObject;
// create a new range object to not modify the orginal
rangeObject = new this.SelectionRange(rangeObject);
// either select the active Editable as new commonAncestorContainer (CAC) or use the body
if (Aloha.activeEditable) {
newCAC= Aloha.activeEditable.obj.get(0);
} else {
newCAC = jQuery('body');
}
// update rangeObject by setting the newCAC and automatically recalculating the selectionTree
rangeObject.update(newCAC);
// store the information, that the markupObject can be replaced (not must be!!) inside the jQuery markup object
markupObject.isReplacingElement = true;
}
// if the element is NOT a replacing element, then something needs to be selected, otherwise it can not be wrapped
// therefor the method can return false, if nothing is selected ( = rangeObject is collapsed)
else {
if (rangeObject.isCollapsed()) {
Aloha.Log.debug(this, 'early returning from applying markup because nothing is currently selected');
return false;
}
}
// is Start/End DOM Obj inside the markup to change
if (Aloha.activeEditable) {
limitObject = Aloha.activeEditable.obj[0];
} else {
limitObject = jQuery('body');
}
if (!markupObject.isReplacingElement && rangeObject.startOffset === 0) { // don't care about replacers, because they never extend
if (prevSibling = this.getTextNodeSibling(false, rangeObject.commonAncestorContainer.parentNode, rangeObject.startContainer)) {
relevantMarkupObjectBeforeSelection = this.isRangeObjectWithinMarkup({startContainer : prevSibling, startOffset : 0}, false, markupObject, tagComparator, limitObject);
}
}
if (!markupObject.isReplacingElement && (rangeObject.endOffset === rangeObject.endContainer.length)) { // don't care about replacers, because they never extend
if (nextSibling = this.getTextNodeSibling(true, rangeObject.commonAncestorContainer.parentNode, rangeObject.endContainer)) {
relevantMarkupObjectAfterSelection = this.isRangeObjectWithinMarkup({startContainer: nextSibling, startOffset: 0}, false, markupObject, tagComparator, limitObject);
}
}
// decide what to do (expand or reduce markup)
// Alternative A: from markup to no-markup: markup will be removed in selection;
// reapplied from original markup start to selection start
if (!markupObject.isReplacingElement && (relevantMarkupObjectsAtSelectionStart && !relevantMarkupObjectsAtSelectionEnd)) {
Aloha.Log.info(this, 'markup 2 non-markup');
this.prepareForRemoval(rangeObject.getSelectionTree(), markupObject, tagComparator);
jQuery(relevantMarkupObjectsAtSelectionStart).addClass('preparedForRemoval');
this.insertCroppedMarkups(relevantMarkupObjectsAtSelectionStart, rangeObject, false, tagComparator);
}
// Alternative B: from markup to markup:
// remove selected markup (=split existing markup if single, shrink if two different)
else if (!markupObject.isReplacingElement && relevantMarkupObjectsAtSelectionStart && relevantMarkupObjectsAtSelectionEnd) {
Aloha.Log.info(this, 'markup 2 markup');
this.prepareForRemoval(rangeObject.getSelectionTree(), markupObject, tagComparator);
this.splitRelevantMarkupObject(relevantMarkupObjectsAtSelectionStart, relevantMarkupObjectsAtSelectionEnd, rangeObject, tagComparator);
}
// Alternative C: from no-markup to markup OR with next2markup:
// new markup is wrapped from selection start to end of originalmarkup, original is remove afterwards
else if (!markupObject.isReplacingElement && ((!relevantMarkupObjectsAtSelectionStart && relevantMarkupObjectsAtSelectionEnd) || relevantMarkupObjectAfterSelection || relevantMarkupObjectBeforeSelection )) { //
Aloha.Log.info(this, 'non-markup 2 markup OR with next2markup');
// move end of rangeObject to end of relevant markups
if (relevantMarkupObjectBeforeSelection && relevantMarkupObjectAfterSelection) {
extendedRangeObject = new Aloha.Selection.SelectionRange(rangeObject);
extendedRangeObject.startContainer = jQuery(relevantMarkupObjectBeforeSelection[ relevantMarkupObjectBeforeSelection.length-1 ]).textNodes()[0];
extendedRangeObject.startOffset = 0;
extendedRangeObject.endContainer = jQuery(relevantMarkupObjectAfterSelection[ relevantMarkupObjectAfterSelection.length-1 ]).textNodes().last()[0];
extendedRangeObject.endOffset = extendedRangeObject.endContainer.length;
extendedRangeObject.update();
this.applyMarkup(extendedRangeObject.getSelectionTree(), rangeObject, markupObject, tagComparator);
Aloha.Log.info(this, 'double extending previous markup(previous and after selection), actually wrapping it ...');
} else if (relevantMarkupObjectBeforeSelection && !relevantMarkupObjectAfterSelection && !relevantMarkupObjectsAtSelectionEnd) {
this.extendExistingMarkupWithSelection(relevantMarkupObjectBeforeSelection, rangeObject, false, tagComparator);
Aloha.Log.info(this, 'extending previous markup');
} else if (relevantMarkupObjectBeforeSelection && !relevantMarkupObjectAfterSelection && relevantMarkupObjectsAtSelectionEnd) {
extendedRangeObject = new Aloha.Selection.SelectionRange(rangeObject);
extendedRangeObject.startContainer = jQuery(relevantMarkupObjectBeforeSelection[ relevantMarkupObjectBeforeSelection.length-1 ]).textNodes()[0];
extendedRangeObject.startOffset = 0;
extendedRangeObject.endContainer = jQuery(relevantMarkupObjectsAtSelectionEnd[ relevantMarkupObjectsAtSelectionEnd.length-1 ]).textNodes().last()[0];
extendedRangeObject.endOffset = extendedRangeObject.endContainer.length;
extendedRangeObject.update();
this.applyMarkup(extendedRangeObject.getSelectionTree(), rangeObject, markupObject, tagComparator);
Aloha.Log.info(this, 'double extending previous markup(previous and relevant at the end), actually wrapping it ...');
} else if (!relevantMarkupObjectBeforeSelection && relevantMarkupObjectAfterSelection) {
this.extendExistingMarkupWithSelection(relevantMarkupObjectAfterSelection, rangeObject, true, tagComparator);
Aloha.Log.info(this, 'extending following markup backwards');
} else {
this.extendExistingMarkupWithSelection(relevantMarkupObjectsAtSelectionEnd, rangeObject, true, tagComparator);
}
}
// Alternative D: no-markup to no-markup: easy
else if (markupObject.isReplacingElement || (!relevantMarkupObjectsAtSelectionStart && !relevantMarkupObjectsAtSelectionEnd && !relevantMarkupObjectBeforeSelection && !relevantMarkupObjectAfterSelection)) {
Aloha.Log.info(this, 'non-markup 2 non-markup');
this.applyMarkup(rangeObject.getSelectionTree(), rangeObject, markupObject, tagComparator, {setRangeObject2NewMarkup: true});
}
// remove all marked items
jQuery('.preparedForRemoval').zap();
// recalculate cac and selectionTree
rangeObject.update();
// update selection
if (markupObject.isReplacingElement) {
// this.setSelection(backupRangeObject, true);
backupRangeObject.select();
} else {
// this.setSelection(rangeObject);
rangeObject.select();
}
},
/**
* method compares a JS array of domobjects with a range object and decides, if the rangeObject spans the whole markup objects. method is used to decide if a markup2markup selection can be completely remove or if it must be splitted into 2 separate markups
* @param relevantMarkupObjectsAtSelectionStart JS Array of dom objects, which are parents to the rangeObject.startContainer
* @param relevantMarkupObjectsAtSelectionEnd JS Array of dom objects, which are parents to the rangeObject.endContainer
* @param rangeObj Aloha rangeObject
* @return true, if rangeObjects and markup objects are identical, false otherwise
* @hide
*/
areMarkupObjectsAsLongAsRangeObject: function(relevantMarkupObjectsAtSelectionStart, relevantMarkupObjectsAtSelectionEnd, rangeObject) {
var i, el, textNode, relMarkupEnd, relMarkupStart;
if (rangeObject.startOffset !== 0) {
return false;
}
for (i = 0, relMarkupStart = relevantMarkupObjectsAtSelectionStart.length; i < relMarkupStart; i++) {
el = jQuery(relevantMarkupObjectsAtSelectionStart[i]);
if (el.textNodes().first()[0] !== rangeObject.startContainer) {
return false;
}
}
for (i = 0, relMarkupEnd = relevantMarkupObjectsAtSelectionEnd.length; i < relMarkupEnd; i++) {
el = jQuery(relevantMarkupObjectsAtSelectionEnd[i]);
textNode = el.textNodes().last()[0];
if (textNode !== rangeObject.endContainer || textNode.length != rangeObject.endOffset) {
return false;
}
}
return true;
},
/**
* method used to remove/split markup from a "markup2markup" selection
* @param relevantMarkupObjectsAtSelectionStart JS Array of dom objects, which are parents to the rangeObject.startContainer
* @param relevantMarkupObjectsAtSelectionEnd JS Array of dom objects, which are parents to the rangeObject.endContainer
* @param rangeObj Aloha rangeObject
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @return true (always, since no "false" case is currently known...but might be added)
* @hide
*/
splitRelevantMarkupObject: function(relevantMarkupObjectsAtSelectionStart, relevantMarkupObjectsAtSelectionEnd, rangeObject, tagComparator) {
// mark them to be deleted
jQuery(relevantMarkupObjectsAtSelectionStart).addClass('preparedForRemoval');
jQuery(relevantMarkupObjectsAtSelectionEnd).addClass('preparedForRemoval');
// check if the rangeObject is identical with the relevantMarkupObjects (in this case the markup can simply be removed)
if (this.areMarkupObjectsAsLongAsRangeObject(relevantMarkupObjectsAtSelectionStart, relevantMarkupObjectsAtSelectionEnd, rangeObject)) {
return true;
}
// find intersection (this can always only be one dom element (namely the highest) because all others will be removed
var relevantMarkupObjectAtSelectionStartAndEnd = this.intersectRelevantMarkupObjects(relevantMarkupObjectsAtSelectionStart, relevantMarkupObjectsAtSelectionEnd);
if (relevantMarkupObjectAtSelectionStartAndEnd) {
this.insertCroppedMarkups([relevantMarkupObjectAtSelectionStartAndEnd], rangeObject, false, tagComparator);
this.insertCroppedMarkups([relevantMarkupObjectAtSelectionStartAndEnd], rangeObject, true, tagComparator);
} else {
this.insertCroppedMarkups(relevantMarkupObjectsAtSelectionStart, rangeObject, false, tagComparator);
this.insertCroppedMarkups(relevantMarkupObjectsAtSelectionEnd, rangeObject, true, tagComparator);
}
return true;
},
/**
* method takes two arrays of bottom up dom objects, compares them and returns either the object closest to the root or false
* @param relevantMarkupObjectsAtSelectionStart JS Array of dom objects
* @param relevantMarkupObjectsAtSelectionEnd JS Array of dom objects
* @return dom object closest to the root or false
* @hide
*/
intersectRelevantMarkupObjects: function(relevantMarkupObjectsAtSelectionStart, relevantMarkupObjectsAtSelectionEnd) {
var intersection = false, i, elStart, j, elEnd, relMarkupStart, relMarkupEnd;
if (!relevantMarkupObjectsAtSelectionStart || !relevantMarkupObjectsAtSelectionEnd) {
return intersection; // we can only intersect, if we have to arrays!
}
relMarkupStart = relevantMarkupObjectsAtSelectionStart.length;
relMarkupEnd = relevantMarkupObjectsAtSelectionEnd.length;
for (i = 0; i < relMarkupStart; i++) {
elStart = relevantMarkupObjectsAtSelectionStart[i];
for (j = 0; j < relMarkupEnd; j++) {
elEnd = relevantMarkupObjectsAtSelectionEnd[j];
if (elStart === elEnd) {
intersection = elStart;
}
}
}
return intersection;
},
/**
* method used to add markup to a nonmarkup2markup selection
* @param relevantMarkupObjects JS Array of dom objects effecting either the start or endContainer of a selection (which should be extended)
* @param rangeObject Aloha rangeObject the markups should be extended to
* @param startOrEnd boolean; defines, if the existing markups should be extended forwards or backwards (is propably redundant and could be found out by comparing start or end container with the markup array dom objects)
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @return true
* @hide
*/
extendExistingMarkupWithSelection: function(relevantMarkupObjects, rangeObject, startOrEnd, tagComparator) {
var extendMarkupsAtStart, extendMarkupsAtEnd, objects, i, relMarkupLength, el, textnodes, nodeNr;
if (!startOrEnd) { // = Start
// start part of rangeObject should be used, therefor existing markups are cropped at the end
extendMarkupsAtStart = true;
}
if (startOrEnd) { // = End
// end part of rangeObject should be used, therefor existing markups are cropped at start (beginning)
extendMarkupsAtEnd = true;
}
objects = [];
for( i = 0, relMarkupLength = relevantMarkupObjects.length; i < relMarkupLength; i++){
objects[i] = new this.SelectionRange();
el = relevantMarkupObjects[i];
if (extendMarkupsAtEnd && !extendMarkupsAtStart) {
objects[i].startContainer = rangeObject.startContainer; // jQuery(el).contents()[0];
objects[i].startOffset = rangeObject.startOffset;
textnodes = jQuery(el).textNodes(true);
nodeNr = textnodes.length - 1;
objects[i].endContainer = textnodes[ nodeNr ];
objects[i].endOffset = textnodes[ nodeNr ].length;
objects[i].update();
this.applyMarkup(objects[i].getSelectionTree(), rangeObject, this.getClonedMarkup4Wrapping(el), tagComparator, {setRangeObject2NewMarkup: true});
}
if (!extendMarkupsAtEnd && extendMarkupsAtStart) {
textnodes = jQuery(el).textNodes(true);
objects[i].startContainer = textnodes[0]; // jQuery(el).contents()[0];
objects[i].startOffset = 0;
objects[i].endContainer = rangeObject.endContainer;
objects[i].endOffset = rangeObject.endOffset;
objects[i].update();
this.applyMarkup(objects[i].getSelectionTree(), rangeObject, this.getClonedMarkup4Wrapping(el), tagComparator, {setRangeObject2NewMarkup: true});
}
}
return true;
},
/**
* method creates an empty markup jQuery object from a dom object passed as paramter
* @param domobj domobject to be cloned, cleaned and emptied
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @return jQuery wrapper object to be passed to e.g. this.applyMarkup(...)
* @hide
*/
getClonedMarkup4Wrapping: function(domobj) {
var wrapper = jQuery(domobj).clone().removeClass('preparedForRemoval').empty();
if (wrapper.attr('class').length === 0) {
wrapper.removeAttr('class');
}
return wrapper;
},
/**
* method used to subtract the range object from existing markup. in other words: certain markup is removed from the selections defined by the rangeObject
* @param relevantMarkupObjects JS Array of dom objects effecting either the start or endContainer of a selection (which should be extended)
* @param rangeObject Aloha rangeObject the markups should be removed from
* @param startOrEnd boolean; defines, if the existing markups should be reduced at the beginning of the tag or at the end (is propably redundant and could be found out by comparing start or end container with the markup array dom objects)
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @return true
* @hide
*/
insertCroppedMarkups: function(relevantMarkupObjects, rangeObject, startOrEnd, tagComparator) {
var cropMarkupsAtEnd,cropMarkupsAtStart,textnodes,objects,i,el,textNodes;
if (!startOrEnd) { // = Start
// start part of rangeObject should be used, therefor existing markups are cropped at the end
cropMarkupsAtEnd = true;
} else { // = End
// end part of rangeObject should be used, therefor existing markups are cropped at start (beginning)
cropMarkupsAtStart = true;
}
objects = [];
for( i = 0; i<relevantMarkupObjects.length; i++){
objects[i] = new this.SelectionRange();
el = relevantMarkupObjects[i];
if (cropMarkupsAtEnd && !cropMarkupsAtStart) {
textNodes = jQuery(el).textNodes(true);
objects[i].startContainer = textNodes[0];
objects[i].startOffset = 0;
// if the existing markup startContainer & startOffset are equal to the rangeObject startContainer and startOffset,
// then markupobject does not have to be added again, because it would have no content (zero-length)
if (objects[i].startContainer === rangeObject.startContainer && objects[i].startOffset === rangeObject.startOffset) {
continue;
}
if (rangeObject.startOffset === 0) {
objects[i].endContainer = this.getTextNodeSibling(false, el, rangeObject.startContainer);
objects[i].endOffset = objects[i].endContainer.length;
} else {
objects[i].endContainer = rangeObject.startContainer;
objects[i].endOffset = rangeObject.startOffset;
}
objects[i].update();
this.applyMarkup(objects[i].getSelectionTree(), rangeObject, this.getClonedMarkup4Wrapping(el), tagComparator, {setRangeObject2NextSibling: true});
}
if (!cropMarkupsAtEnd && cropMarkupsAtStart) {
objects[i].startContainer = rangeObject.endContainer; // jQuery(el).contents()[0];
objects[i].startOffset = rangeObject.endOffset;
textnodes = jQuery(el).textNodes(true);
objects[i].endContainer = textnodes[ textnodes.length-1 ];
objects[i].endOffset = textnodes[ textnodes.length-1 ].length;
objects[i].update();
this.applyMarkup(objects[i].getSelectionTree(), rangeObject, this.getClonedMarkup4Wrapping(el), tagComparator, {setRangeObject2PreviousSibling: true});
}
}
return true;
},
/**
* apply a certain markup to the current selection
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @return void
* @hide
*/
changeMarkupOnSelection: function(markupObject) {
// change the markup
this.changeMarkup(this.getRangeObject(), markupObject, this.getStandardTagComparator(markupObject));
// merge text nodes
GENTICS.Utils.Dom.doCleanup({'merge' : true}, this.rangeObject);
// update the range and select it
this.rangeObject.update();
this.rangeObject.select();
},
/**
* apply a certain markup to the selection Tree
* @param selectionTree SelectionTree Object markup should be applied to
* @param rangeObject Aloha rangeObject which will be modified to reflect the dom changes, after the markup was applied (only if activated via options)
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @param options JS object, with the following boolean properties: setRangeObject2NewMarkup, setRangeObject2NextSibling, setRangeObject2PreviousSibling
* @return void
* @hide
*/
applyMarkup: function(selectionTree, rangeObject, markupObject, tagComparator, options) {
var optimizedSelectionTree, i, el, breakpoint;
options = options ? options : {};
// first same tags from within fully selected nodes for removal
this.prepareForRemoval(selectionTree, markupObject, tagComparator);
// first let's optimize the selection Tree in useful groups which can be wrapped together
optimizedSelectionTree = this.optimizeSelectionTree4Markup(selectionTree, markupObject, tagComparator);
breakpoint = true;
// now iterate over grouped elements and either recursively dive into object or wrap it as a whole
for ( i = 0; i < optimizedSelectionTree.length; i++) {
el = optimizedSelectionTree[i];
if (el.wrappable) {
this.wrapMarkupAroundSelectionTree(el.elements, rangeObject, markupObject, tagComparator, options);
} else {
Aloha.Log.debug(this,'dive further into non-wrappable object');
this.applyMarkup(el.element.children, rangeObject, markupObject, tagComparator, options);
}
}
},
/**
* returns the type of the given markup (trying to match HTML5)
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @return string name of the markup type
* @hide
*/
getMarkupType: function(markupObject) {
var nn = jQuery(markupObject)[0].nodeName.toLowerCase();
if (markupObject.outerHtml) {
Aloha.Log.debug(this, 'Node name detected: ' + nn + ' for: ' + markupObject.outerHtml());
}
if (nn == '#text') {return 'textNode';}
if (this.replacingElements[ nn ]) {return 'sectionOrGroupingContent';}
if (this.tagHierarchy [ nn ]) {return 'textLevelSemantics';}
Aloha.Log.warn(this, 'unknown markup passed to this.getMarkupType(...): ' + markupObject.outerHtml());
},
/**
* returns the standard tag comparator for the given markup object
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @return function tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @hide
*/
getStandardTagComparator: function(markupObject) {
var that = this, result;
switch(this.getMarkupType(markupObject)) {
case 'textNode':
result = function(p1, p2) {
return false;
};
break;
case 'sectionOrGroupingContent':
result = function(domobj, markupObject) {
return that.standardSectionsAndGroupingContentComparator(domobj, markupObject);
};
break;
case 'textLevelSemantics':
/* falls through */
default:
result = function(domobj, markupObject) {
return that.standardTextLevelSemanticsComparator(domobj, markupObject);
};
break;
}
return result;
},
/**
* searches for fully selected equal markup tags
* @param selectionTree SelectionTree Object markup should be applied to
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @return void
* @hide
*/
prepareForRemoval: function(selectionTree, markupObject, tagComparator) {
var that = this, i, el;
// check if a comparison method was passed as parameter ...
if (typeof tagComparator !== 'undefined' && typeof tagComparator !== 'function') {
Aloha.Log.error(this,'parameter tagComparator is not a function');
}
// ... if not use this as standard tag comparison method
if (typeof tagComparator === 'undefined') {
tagComparator = this.getStandardTagComparator(markupObject);
}
for ( i = 0; i<selectionTree.length; i++) {
el = selectionTree[i];
if (el.domobj && (el.selection == 'full' || (el.selection == 'partial' && markupObject.isReplacingElement))) {
// mark for removal
if (el.domobj.nodeType === 1 && tagComparator(el.domobj, markupObject)) {
Aloha.Log.debug(this, 'Marking for removal: ' + el.domobj.nodeName);
jQuery(el.domobj).addClass('preparedForRemoval');
}
}
if (el.selection != 'none' && el.children.length > 0) {
this.prepareForRemoval(el.children, markupObject, tagComparator);
}
}
},
/**
* searches for fully selected equal markup tags
* @param selectionTree SelectionTree Object markup should be applied to
* @param rangeObject Aloha rangeObject the markup will be applied to
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @param tagComparator method, which is used to compare the dom object and the jQuery markup object. the method must accept 2 parameters, the first is the domobj, the second is the jquery object. if no method is specified, the method this.standardTextLevelSemanticsComparator is used
* @param options JS object, with the following boolean properties: setRangeObject2NewMarkup, setRangeObject2NextSibling, setRangeObject2PreviousSibling
* @return void
* @hide
*/
wrapMarkupAroundSelectionTree: function(selectionTree, rangeObject, markupObject, tagComparator, options) {
// first let's find out if theoretically the whole selection can be wrapped with one tag and save it for later use
var objects2wrap = [], // // this will be used later to collect objects
j = -1, // internal counter,
breakpoint = true,
preText = '',
postText = '',
prevOrNext,
textNode2Start,
textnodes,
newMarkup,
i, el, middleText;
Aloha.Log.debug(this,'The formatting <' + markupObject[0].tagName + '> will be wrapped around the selection');
// now lets iterate over the elements
for (i = 0; i < selectionTree.length; i++) {
el = selectionTree[i];
// check if markup is allowed inside the elements parent
if (el.domobj && !this.canTag1WrapTag2(el.domobj.parentNode.tagName.toLowerCase(), markupObject[0].tagName.toLowerCase())) {
Aloha.Log.info(this,'Skipping the wrapping of <' + markupObject[0].tagName.toLowerCase() + '> because this tag is not allowed inside <' + el.domobj.parentNode.tagName.toLowerCase() + '>');
continue;
}
// skip empty text nodes
if (el.domobj && el.domobj.nodeType === 3 && jQuery.trim(el.domobj.nodeValue).length === 0) {
continue;
}
// partial element, can either be a textnode and therefore be wrapped (at least partially)
// or can be a nodeType == 1 (tag) which must be dived into
if (el.domobj && el.selection == 'partial' && !markupObject.isReplacingElement) {
if (el.startOffset !== undefined && el.endOffset === undefined) {
j++;
preText += el.domobj.data.substr(0,el.startOffset);
el.domobj.data = el.domobj.data.substr(el.startOffset, el.domobj.data.length-el.startOffset);
objects2wrap[j] = el.domobj;
} else if (el.endOffset !== undefined && el.startOffset === undefined) {
j++;
postText += el.domobj.data.substr(el.endOffset, el.domobj.data.length-el.endOffset);
el.domobj.data = el.domobj.data.substr(0, el.endOffset);
objects2wrap[j] = el.domobj;
} else if (el.endOffset !== undefined && el.startOffset !== undefined) {
if (el.startOffset == el.endOffset) { // do not wrap empty selections
Aloha.Log.debug(this, 'skipping empty selection');
continue;
}
j++;
preText += el.domobj.data.substr(0,el.startOffset);
middleText = el.domobj.data.substr(el.startOffset,el.endOffset-el.startOffset);
postText += el.domobj.data.substr(el.endOffset, el.domobj.data.length-el.endOffset);
el.domobj.data = middleText;
objects2wrap[j] = el.domobj;
} else {
// a partially selected item without selectionStart/EndOffset is a nodeType 1 Element on the way to the textnode
Aloha.Log.debug(this, 'diving into object');
this.applyMarkup(el.children, rangeObject, markupObject, tagComparator, options);
}
}
// fully selected dom elements can be wrapped as whole element
if (el.domobj && (el.selection == 'full' || (el.selection == 'partial' && markupObject.isReplacingElement))) {
j++;
objects2wrap[j] = el.domobj;
}
}
if (objects2wrap.length > 0) {
// wrap collected DOM object with markupObject
objects2wrap = jQuery(objects2wrap);
// make a fix for text nodes in <li>'s in ie
jQuery.each(objects2wrap, function(index, element) {
if (jQuery.browser.msie && element.nodeType == 3
&& !element.nextSibling && !element.previousSibling
&& element.parentNode
&& element.parentNode.nodeName.toLowerCase() == 'li') {
element.data = jQuery.trim(element.data);
}
});
newMarkup = objects2wrap.wrapAll(markupObject).parent();
newMarkup.before(preText).after(postText);
if (options.setRangeObject2NewMarkup) { // this is used, when markup is added to normal/normal Text
textnodes = objects2wrap.textNodes();
if (textnodes.index(rangeObject.startContainer) != -1) {
rangeObject.startOffset = 0;
}
if (textnodes.index(rangeObject.endContainer) != -1) {
rangeObject.endOffset = rangeObject.endContainer.length;
}
breakpoint=true;
}
if (options.setRangeObject2NextSibling){
prevOrNext = true;
textNode2Start = newMarkup.textNodes(true).last()[0];
if (objects2wrap.index(rangeObject.startContainer) != -1) {
rangeObject.startContainer = this.getTextNodeSibling(prevOrNext, newMarkup.parent(), textNode2Start);
rangeObject.startOffset = 0;
}
if (objects2wrap.index(rangeObject.endContainer) != -1) {
rangeObject.endContainer = this.getTextNodeSibling(prevOrNext, newMarkup.parent(), textNode2Start);
rangeObject.endOffset = rangeObject.endOffset - textNode2Start.length;
}
}
if (options.setRangeObject2PreviousSibling){
prevOrNext = false;
textNode2Start = newMarkup.textNodes(true).first()[0];
if (objects2wrap.index(rangeObject.startContainer) != -1) {
rangeObject.startContainer = this.getTextNodeSibling(prevOrNext, newMarkup.parent(), textNode2Start);
rangeObject.startOffset = 0;
}
if (objects2wrap.index(rangeObject.endContainer) != -1) {
rangeObject.endContainer = this.getTextNodeSibling(prevOrNext, newMarkup.parent(), textNode2Start);
rangeObject.endOffset = rangeObject.endContainer.length;
}
}
}
},
/**
* takes a text node and return either the next recursive text node sibling or the previous
* @param previousOrNext boolean, false for previous, true for next sibling
* @param commonAncestorContainer dom object to be used as root for the sibling search
* @param currentTextNode dom object of the originating text node
* @return dom object of the sibling text node
* @hide
*/
getTextNodeSibling: function(previousOrNext, commonAncestorContainer, currentTextNode) {
var textNodes = jQuery(commonAncestorContainer).textNodes(true),
newIndex, index;
index = textNodes.index(currentTextNode);
if (index == -1) { // currentTextNode was not found
return false;
}
newIndex = index + (!previousOrNext ? -1 : 1);
return textNodes[newIndex] ? textNodes[newIndex] : false;
},
/**
* takes a selection tree and groups it into markup wrappable selection trees
* @param selectionTree rangeObject selection tree
* @param markupObject jQuery object of the markup to be applied (e.g. created with obj = jQuery('<b></b>'); )
* @return JS array of wrappable selection trees
* @hide
*/
optimizeSelectionTree4Markup: function(selectionTree, markupObject, tagComparator) {
var groupMap = [],
outerGroupIndex = 0,
innerGroupIndex = 0,
that = this,
i,j,
endPosition, startPosition;
if (typeof tagComparator === 'undefined') {
tagComparator = function(domobj, markupObject) {
return that.standardTextLevelSemanticsComparator(markupObject);
};
}
for( i = 0; i<selectionTree.length; i++) {
// we are just interested in selected item, but not in non-selected items
if (selectionTree[i].domobj && selectionTree[i].selection != 'none') {
if (markupObject.isReplacingElement && tagComparator(markupObject[0], jQuery(selectionTree[i].domobj))) {
if (groupMap[outerGroupIndex] !== undefined) {
outerGroupIndex++;
}
groupMap[outerGroupIndex] = {};
groupMap[outerGroupIndex].wrappable = true;
groupMap[outerGroupIndex].elements = [];
groupMap[outerGroupIndex].elements[innerGroupIndex] = selectionTree[i];
outerGroupIndex++;
} else
// now check, if the children of our item could be wrapped all together by the markup object
if (this.canMarkupBeApplied2ElementAsWhole([ selectionTree[i] ], markupObject)) {
// if yes, add it to the current group
if (groupMap[outerGroupIndex] === undefined) {
groupMap[outerGroupIndex] = {};
groupMap[outerGroupIndex].wrappable = true;
groupMap[outerGroupIndex].elements = [];
}
if (markupObject.isReplacingElement) { // && selectionTree[i].domobj.nodeType === 3
/* we found the node to wrap for a replacing element. however there might
* be siblings which should be included as well
* although they are actually not selected. example:
* li
* |-textNode ( .selection = 'none')
* |-textNode (cursor inside, therefor .selection = 'partial')
* |-textNode ( .selection = 'none')
*
* in this case it would be useful to select the previous and following textNodes as well (they might result from a previous DOM manipulation)
* Think about other cases, where the parent is the Editable. In this case we propably only want to select from and until the next <br /> ??
* .... many possibilities, here I realize the two described cases
*/
// first find start element starting from the current element going backwards until sibling 0
startPosition = i;
for (j = i-1; j >= 0; j--) {
if (this.canMarkupBeApplied2ElementAsWhole([ selectionTree[ j ] ], markupObject) && this.isMarkupAllowedToStealSelectionTreeElement(selectionTree[ j ], markupObject)) {
startPosition = j;
} else {
break;
}
}
// now find the end element starting from the current element going forward until the last sibling
endPosition = i;
for (j = i+1; j < selectionTree.length; j++) {
if (this.canMarkupBeApplied2ElementAsWhole([ selectionTree[ j ] ], markupObject) && this.isMarkupAllowedToStealSelectionTreeElement(selectionTree[ j ], markupObject)) {
endPosition = j;
} else {
break;
}
}
// now add the elements to the groupMap
innerGroupIndex = 0;
for (j = startPosition; j <= endPosition; j++) {
groupMap[outerGroupIndex].elements[innerGroupIndex] = selectionTree[j];
groupMap[outerGroupIndex].elements[innerGroupIndex].selection = 'full';
innerGroupIndex++;
}
innerGroupIndex = 0;
} else {
// normal text level semantics object, no siblings need to be selected
groupMap[outerGroupIndex].elements[innerGroupIndex] = selectionTree[i];
innerGroupIndex++;
}
} else {
// if no, isolate it in its own group
if (groupMap[outerGroupIndex] !== undefined) {
outerGroupIndex++;
}
groupMap[outerGroupIndex] = {};
groupMap[outerGroupIndex].wrappable = false;
groupMap[outerGroupIndex].element = selectionTree[i];
innerGroupIndex = 0;
outerGroupIndex++;
}
}
}
return groupMap;
},
/**
* very tricky method, which decides, if a certain markup (normally a replacing markup element like p, h1, blockquote)
* is allowed to extend the user selection to other dom objects (represented as selectionTreeElement)
* to understand the purpose: if the user selection is collapsed inside e.g. some text, which is currently not
* wrapped by the markup to be applied, and therefor the markup does not have an equal markup to replace, then the DOM
* manipulator has to decide which objects to wrap. real example:
* <div>
* <h1>headline</h1>
* some text blabla bla<br>
* more text HERE THE | CURSOR BLINKING and <b>even more bold text</b>
* </div>
* when the user now wants to apply e.g. a <p> tag, what will be wrapped? it could be useful if the manipulator would actually
* wrap everything inside the div except the <h1>. but for this purpose someone has to decide, if the markup is
* allowed to wrap certain dom elements in this case the question would be, if the <p> is allowed to wrap
* textNodes, <br> and <b> and <h1>. therefore this tricky method should answer the question for those 3 elements
* with true, but for for the <h1> it should return false. and since the method does not know this, there is a configuration
* for this
*
* @param selectionTree rangeObject selection tree element (only one, not an array of)
* @param markupObject lowercase string of the tag to be verified (e.g. "b")
* @return true if the markup is allowed to wrap the selection tree element, false otherwise
* @hide
*/
isMarkupAllowedToStealSelectionTreeElement: function(selectionTreeElement, markupObject) {
if (!selectionTreeElement.domobj) {
return false;
}
var nodeName = selectionTreeElement.domobj.nodeName.toLowerCase(),
markupName;
nodeName = (nodeName == '#text') ? 'textNode' : nodeName;
markupName = markupObject[0].nodeName.toLowerCase();
// if nothing is defined for the markup, it's now allowed
if (!this.allowedToStealElements[ markupName ]) {
return false;
}
// if something is defined, but the specifig tag is not in the list
if (this.allowedToStealElements[ markupName ].indexOf(nodeName) == -1) {
return false;
}
return true;
},
/**
* checks if a selection can be completey wrapped by a certain html tags (helper method for this.optimizeSelectionTree4Markup
* @param selectionTree rangeObject selection tree
* @param markupObject lowercase string of the tag to be verified (e.g. "b")
* @return true if selection can be applied as whole, false otherwise
* @hide
*/
canMarkupBeApplied2ElementAsWhole: function(selectionTree, markupObject) {
var htmlTag, i, el, returnVal;
if (markupObject.jquery) {
htmlTag = markupObject[0].tagName;
}
if (markupObject.tagName) {
htmlTag = markupObject.tagName;
}
returnVal = true;
for ( i = 0; i < selectionTree.length; i++) {
el = selectionTree[i];
if (el.domobj && (el.selection != "none" || markupObject.isReplacingElement)) {
// Aloha.Log.debug(this, 'Checking, if <' + htmlTag + '> can be applied to ' + el.domobj.nodeName);
if (!this.canTag1WrapTag2(htmlTag, el.domobj.nodeName)) {
return false;
}
if (el.children.length > 0 && !this.canMarkupBeApplied2ElementAsWhole(el.children, markupObject)) {
return false;
}
}
}
return returnVal;
},
/**
* checks if a tag 1 (first parameter) can wrap tag 2 (second parameter).
* IMPORTANT: the method does not verify, if there have to be other tags in between
* Example: this.canTag1WrapTag2("table", "td") will return true, because the method does not take into account, that there has to be a "tr" in between
* @param t1 string: tagname of outer tag to verify, e.g. "b"
* @param t2 string: tagname of inner tag to verify, e.g. "b"
* @return true if tag 1 can wrap tag 2, false otherwise
* @hide
*/
canTag1WrapTag2: function(t1, t2) {
t1 = (t1 == '#text')?'textNode':t1.toLowerCase();
t2 = (t2 == '#text')?'textNode':t2.toLowerCase();
if (!this.tagHierarchy[ t1 ]) {
// Aloha.Log.warn(this, t1 + ' is an unknown tag to the method canTag1WrapTag2 (paramter 1). Sadfully allowing the wrapping...');
return true;
}
if (!this.tagHierarchy[ t2 ]) {
// Aloha.Log.warn(this, t2 + ' is an unknown tag to the method canTag1WrapTag2 (paramter 2). Sadfully allowing the wrapping...');
return true;
}
var t1Array = this.tagHierarchy[ t1 ],
returnVal = (t1Array.indexOf( t2 ) != -1) ? true : false;
return returnVal;
},
/**
* Check whether it is allowed to insert the given tag at the start of the
* current selection. This method will check whether the markup effective for
* the start and outside of the editable part (starting with the editable tag
* itself) may wrap the given tag.
* @param tagName {String} name of the tag which shall be inserted
* @return true when it is allowed to insert that tag, false if not
* @hide
*/
mayInsertTag: function (tagName) {
if (typeof this.rangeObject.unmodifiableMarkupAtStart == 'object') {
// iterate over all DOM elements outside of the editable part
for (var i = 0; i < this.rangeObject.unmodifiableMarkupAtStart.length; ++i) {
// check whether an element may not wrap the given
if (!this.canTag1WrapTag2(this.rangeObject.unmodifiableMarkupAtStart[i].nodeName, tagName)) {
// found a DOM element which forbids to insert the given tag, we are done
return false;
}
}
// all of the found DOM elements allow inserting the given tag
return true;
} else {
Aloha.Log.warn(this, 'Unable to determine whether tag ' + tagName + ' may be inserted');
return true;
}
},
/**
* String representation
* @return "Aloha.Selection"
* @hide
*/
toString: function() {
return 'Aloha.Selection';
},
/**
* @namespace Aloha.Selection
* @class SelectionRange
* @extends GENTICS.Utils.RangeObject
* Constructor for a range object.
* Optionally you can pass in a range object that's properties will be assigned to the new range object.
* @param rangeObject A range object thats properties will be assigned to the new range object.
* @constructor
*/
SelectionRange: GENTICS.Utils.RangeObject.extend({
_constructor: function(rangeObject){
this._super(rangeObject);
// If a range object was passed in we apply the values to the new range object
if (rangeObject) {
if (rangeObject.commonAncestorContainer) {
this.commonAncestorContainer = rangeObject.commonAncestorContainer;
}
if (rangeObject.selectionTree) {
this.selectionTree = rangeObject.selectionTree;
}
if (rangeObject.limitObject) {
this.limitObject = rangeObject.limitObject;
}
if (rangeObject.markupEffectiveAtStart) {
this.markupEffectiveAtStart = rangeObject.markupEffectiveAtStart;
}
if (rangeObject.unmodifiableMarkupAtStart) {
this.unmodifiableMarkupAtStart = rangeObject.unmodifiableMarkupAtStart;
}
if (rangeObject.splitObject) {
this.splitObject = rangeObject.splitObject;
}
}
},
/**
* DOM object of the common ancestor from startContainer and endContainer
* @hide
*/
commonAncestorContainer: undefined,
/**
* The selection tree
* @hide
*/
selectionTree: undefined,
/**
* Array of DOM objects effective for the start container and inside the
* editable part (inside the limit object). relevant for the button status
* @hide
*/
markupEffectiveAtStart: [],
/**
* Array of DOM objects effective for the start container, which lies
* outside of the editable portion (starting with the limit object)
* @hide
*/
unmodifiableMarkupAtStart: [],
/**
* DOM object being the limit for all markup relevant activities
* @hide
*/
limitObject: undefined,
/**
* DOM object being split when enter key gets hit
* @hide
*/
splitObject: undefined,
/**
* Sets the visible selection in the Browser based on the range object.
* If the selection is collapsed, this will result in a blinking cursor,
* otherwise in a text selection.
* @method
*/
select: function() {
// Call Utils' select()
this._super();
// update the selection
Aloha.Selection.updateSelection();
},
/**
* Method to update a range object internally
* @param commonAncestorContainer (DOM Object); optional Parameter; if set, the parameter
* will be used instead of the automatically calculated CAC
* @return void
* @hide
*/
update: function(commonAncestorContainer) {
this.updatelimitObject();
this.updateMarkupEffectiveAtStart();
this.updateCommonAncestorContainer(commonAncestorContainer);
// reset the selectiontree (must be recalculated)
this.selectionTree = undefined;
},
/**
* Get the selection tree for this range
* TODO: remove this (was moved to range.js)
* @return selection tree
* @hide
*/
getSelectionTree: function () {
// if not yet calculated, do this now
if (!this.selectionTree) {
this.selectionTree = Aloha.Selection.getSelectionTree(this);
}
return this.selectionTree;
},
/**
* TODO: move this to range.js
* Get an array of domobj (in dom tree order) of siblings of the given domobj, which are contained in the selection
* @param domobj dom object to start with
* @return array of siblings of the given domobj, which are also selected
* @hide
*/
getSelectedSiblings: function (domobj) {
var selectionTree = this.getSelectionTree();
return this.recursionGetSelectedSiblings(domobj, selectionTree);
},
/**
* TODO: move this to range.js
* Recursive method to find the selected siblings of the given domobj (which should be selected as well)
* @param domobj dom object for which the selected siblings shall be found
* @param selectionTree current level of the selection tree
* @return array of selected siblings of dom objects or false if none found
* @hide
*/
recursionGetSelectedSiblings: function (domobj, selectionTree) {
var selectedSiblings = false,
foundObj = false,
i;
for ( i = 0; i < selectionTree.length; ++i) {
if (selectionTree[i].domobj === domobj) {
foundObj = true;
selectedSiblings = [];
} else if (!foundObj && selectionTree[i].children) {
// do the recursion
selectedSiblings = this.recursionGetSelectedSiblings(domobj, selectionTree[i].children);
if (selectedSiblings !== false) {
break;
}
} else if (foundObj && selectionTree[i].domobj && selectionTree[i].selection != 'collapsed' && selectionTree[i].selection != 'none') {
selectedSiblings.push(selectionTree[i].domobj);
} else if (foundObj && selectionTree[i].selection == 'none') {
break;
}
}
return selectedSiblings;
},
/**
* TODO: move this to range.js
* Method updates member var markupEffectiveAtStart and splitObject, which is relevant primarily for button status and enter key behaviour
* @return void
* @hide
*/
updateMarkupEffectiveAtStart: function() {
// reset the current markup
this.markupEffectiveAtStart = [];
this.unmodifiableMarkupAtStart = [];
var
parents = this.getStartContainerParents(),
limitFound = false,
splitObjectWasSet,
i, el;
for ( i = 0; i < parents.length; i++) {
el = parents[i];
if (!limitFound && (el !== this.limitObject)) {
this.markupEffectiveAtStart[ i ] = el;
if (!splitObjectWasSet && GENTICS.Utils.Dom.isSplitObject(el)) {
splitObjectWasSet = true;
this.splitObject = el;
}
} else {
limitFound = true;
this.unmodifiableMarkupAtStart.push(el);
}
}
if (!splitObjectWasSet) {
this.splitObject = false;
}
return;
},
/**
* TODO: remove this
* Method updates member var markupEffectiveAtStart, which is relevant primarily for button status
* @return void
* @hide
*/
updatelimitObject: function() {
if (Aloha.editables && Aloha.editables.length > 0) {
var parents = this.getStartContainerParents(),
editables = Aloha.editables,
i, el, j, editable;
for ( i = 0; i < parents.length; i++) {
el = parents[i];
for ( j = 0; j < editables.length; j++) {
editable = editables[j].obj[0];
if (el === editable) {
this.limitObject = el;
return true;
}
}
}
}
this.limitObject = jQuery('body');
return true;
},
/**
* string representation of the range object
* @param verbose set to true for verbose output
* @return string representation of the range object
* @hide
*/
toString: function(verbose) {
if (!verbose) {
return 'Aloha.Selection.SelectionRange';
}
return 'Aloha.Selection.SelectionRange {start [' + this.startContainer.nodeValue + '] offset '
+ this.startOffset + ', end [' + this.endContainer.nodeValue + '] offset ' + this.endOffset + '}';
}
}) // SelectionRange
}); // Selection
/**
* This method implements an ugly workaround for a selection problem in ie:
* when the cursor shall be placed at the end of a text node in a li element, that is followed by a nested list,
* the selection would always snap into the first li of the nested list
* therefore, we make sure that the text node ends with a space and place the cursor right before it
*/
function nestedListInIEWorkaround ( range ) {
if (jQuery.browser.msie
&& range.startContainer === range.endContainer
&& range.startOffset === range.endOffset
&& range.startContainer.nodeType == 3
&& range.startOffset == range.startContainer.data.length
&& range.startContainer.nextSibling
&& ["OL", "UL"].indexOf(range.startContainer.nextSibling.nodeName) !== -1) {
if (range.startContainer.data[range.startContainer.data.length-1] == ' ') {
range.startOffset = range.endOffset = range.startOffset-1;
} else {
range.startContainer.data = range.startContainer.data + ' ';
}
}
}
function correctRange ( range ) {
nestedListInIEWorkaround(range);
return range;
}
/**
* Implements Selection http://html5.org/specs/dom-range.html#selection
* @namespace Aloha
* @class Selection This singleton class always represents the
* current user selection
* @singleton
*/
var AlohaSelection = Class.extend({
_constructor : function( nativeSelection ) {
this._nativeSelection = nativeSelection;
this.ranges = [];
// will remember if urged to not change the selection
this.preventChange = false;
},
/**
* Returns the element that contains the start of the selection. Returns null if there's no selection.
* @readonly
* @type Node
*/
anchorNode: null,
/**
* Returns the offset of the start of the selection relative to the element that contains the start
* of the selection. Returns 0 if there's no selection.
* @readonly
* @type int
*/
anchorOffset: 0,
/**
* Returns the element that contains the end of the selection.
* Returns null if there's no selection.
* @readonly
* @type Node
*/
focusNode: null,
/**
* Returns the offset of the end of the selection relative to the element that contains the end
* of the selection. Returns 0 if there's no selection.
* @readonly
* @type int
*/
focusOffset: 0,
/**
* Returns true if there's no selection or if the selection is empty. Otherwise, returns false.
* @readonly
* @type boolean
*/
isCollapsed: false,
/**
* Returns the number of ranges in the selection.
* @readonly
* @type int
*/
rangeCount: 0,
/**
* Replaces the selection with an empty one at the given position.
* @throws a WRONG_DOCUMENT_ERR exception if the given node is in a different document.
* @param parentNode Node of new selection
* @param offest offest of new Selection in parentNode
* @void
*/
collapse: function ( parentNode, offset ) {
this._nativeSelection.collapse( parentNode, offset );
},
/**
* Replaces the selection with an empty one at the position of the start of the current selection.
* @throws an INVALID_STATE_ERR exception if there is no selection.
* @void
*/
collapseToStart: function() {
throw "NOT_IMPLEMENTED";
},
/**
* @void
*/
extend: function ( parentNode, offset) {
},
/**
* @param alter DOMString
* @param direction DOMString
* @param granularity DOMString
* @void
*/
modify: function ( alter, direction, granularity ) {
},
/**
* Replaces the selection with an empty one at the position of the end of the current selection.
* @throws an INVALID_STATE_ERR exception if there is no selection.
* @void
*/
collapseToEnd: function() {
throw "NOT_IMPLEMENTED";
},
/**
* Replaces the selection with one that contains all the contents of the given element.
* @throws a WRONG_DOCUMENT_ERR exception if the given node is in a different document.
* @param parentNode Node the Node fully select
* @void
*/
selectAllChildren: function( parentNode ) {
throw "NOT_IMPLEMENTED";
},
/**
* Deletes the contents of the selection
*/
deleteFromDocument: function() {
throw "NOT_IMPLEMENTED";
},
/**
* NB!
* We have serious problem in IE.
* The range that we get in IE is not the same as the range we had set,
* so even if we normalize it during getRangeAt, in IE, we will be
* correcting the range to the "correct" place, but still not the place
* where it was originally set.
*
* Returns the given range.
* The getRangeAt(index) method returns the indexth range in the list.
* NOTE: Aloha Editor only support 1 range! index can only be 0
* @throws INDEX_SIZE_ERR DOM exception if index is less than zero or
* greater or equal to the value returned by the rangeCount.
* @param index int
* @return Range return the selected range from index
*/
getRangeAt: function ( index ) {
return correctRange( this._nativeSelection.getRangeAt( index ) );
//if ( index < 0 || this.rangeCount ) {
// throw "INDEX_SIZE_ERR DOM";
//}
//return this._ranges[index];
},
/**
* Adds the given range to the selection.
* The addRange(range) method adds the given range Range object to the list of
* selections, at the end (so the newly added range is the new last range).
* NOTE: Aloha Editor only support 1 range! The added range will replace the
* range at index 0
* see http://html5.org/specs/dom-range.html#selection note about addRange
* @throws an INVALID_NODE_TYPE_ERR exception if the given Range has a boundary point
* node that's not a Text or Element node, and an INVALID_MODIFICATION_ERR exception
* if it has a boundary point node that doesn't descend from a Document.
* @param range Range adds the range to the selection
* @void
*/
addRange: function( range ) {
// set readonly attributes
this._nativeSelection.addRange( range );
// We will correct the range after rangy has processed the native
// selection range, so that our correction will be the final fix on
// the range according to the guarentee's that Aloha wants to make
this._nativeSelection._ranges[ 0 ] = correctRange( range );
// make sure, the old Aloha selection will be updated (until all implementations use the new AlohaSelection)
Aloha.Selection.updateSelection();
},
/**
* Removes the given range from the selection, if the range was one of the ones in the selection.
* NOTE: Aloha Editor only support 1 range! The added range will replace the
* range at with index 0
* @param range Range removes the range from the selection
* @void
*/
removeRange: function( range ) {
this._nativeSelection.removeRange();
},
/**
* Removes all the ranges in the selection.
* @viod
*/
removeAllRanges: function() {
this._nativeSelection.removeAllRanges();
},
/**
* prevents the next aloha-selection-changed event from
* being triggered
* @param flag boolean defines weather to update the selection on change or not
*/
preventedChange: function( flag ) {
// this.preventChange = typeof flag === 'undefined' ? false : flag;
},
/**
* will return wheter selection change event was prevented or not, and reset the
* preventSelectionChangedFlag
* @return boolean true if aloha-selection-change event
* was prevented
*/
isChangedPrevented: function() {
// return this.preventSelectionChangedFlag;
},
/**
* INFO: Method is used for integration with Gentics
* Aloha, has no use otherwise Updates the rangeObject
* according to the current user selection Method is
* always called on selection change
*
* @param event
* jQuery browser event object
* @return true when rangeObject was modified, false
* otherwise
* @hide
*/
refresh: function(event) {
},
/**
* String representation
*
* @return "Aloha.Selection"
* @hide
*/
toString: function() {
return 'Aloha.Selection';
},
getRangeCount: function() {
return this._nativeSelection.rangeCount;
}
});
/**
* A wrapper for the function of the same name in the rangy core-depdency.
* This function should be preferred as it hides the global rangy object.
* For more information look at the following sites:
* http://html5.org/specs/dom-range.html
* @param window optional - specifices the window to get the selection of
*/
Aloha.getSelection = function( target ) {
var target = ( target !== document || target !== window ) ? window : target;
// Aloha.Selection.refresh()
// implement Aloha Selection
// TODO cache
return new AlohaSelection( window.rangy.getSelection( target ) );
};
/**
* A wrapper for the function of the same name in the rangy core-depdency.
* This function should be preferred as it hides the global rangy object.
* Please note: when the range object is not needed anymore,
* invoke the detach method on it. It is currently unknown to me why
* this is required, but that's what it says in the rangy specification.
* For more information look at the following sites:
* http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html
* @param document optional - specifies which document to create the range for
*/
Aloha.createRange = function(givenWindow) {
return window.rangy.createRange(givenWindow);
};
var selection = new Selection();
Aloha.Selection = selection;
return selection;
});
| {
"content_hash": "1a51720ba78978bcbf0e2132e52e62b4",
"timestamp": "",
"source": "github",
"line_count": 2078,
"max_line_length": 296,
"avg_line_length": 42.17179980750722,
"alnum_prop": 0.6762749192655735,
"repo_name": "superp/sunrise-aloha",
"id": "efeb77c9607328330c5b69fe1da09a7ac467860a",
"size": "87907",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "vendor/assets/javascripts/aloha/aloha/selection.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CoffeeScript",
"bytes": "1908"
},
{
"name": "JavaScript",
"bytes": "736"
},
{
"name": "Ruby",
"bytes": "16724"
}
],
"symlink_target": ""
} |
var controller = Alloy.createController('login').getView().open();
| {
"content_hash": "72b3072abf0f9318558f7a1749939069",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 66,
"avg_line_length": 67,
"alnum_prop": 0.746268656716418,
"repo_name": "murphysw/EtapRulzOTG",
"id": "1d230b358138fe4fa27392a1b4aac0a6f405a09a",
"size": "67",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/index.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1276"
},
{
"name": "JavaScript",
"bytes": "20808"
},
{
"name": "Python",
"bytes": "5251"
}
],
"symlink_target": ""
} |
'use strict';
import React from 'react';
import Relay from 'react-relay';
import {createContainer} from 'recompose-relay';
import {compose, doOnReceiveProps} from 'recompose';
import DataValue from '../DataValue';
import observeMultiProps from '../util/observeMultiProps';
import FlowController from '../svg/FlowController';
const composer = compose(
createContainer(
{
fragments: {
viewer: () => Relay.QL`
fragment on UANode {
measurement: browsePath(paths: ["Measurement:4"], types:["ns=0;i=46"]) {
displayName {
text
}
nodeId {
namespace,
value
}
}
setPoint: browsePath(paths: ["SetPoint:4"], types:["ns=0;i=46"]) {
displayName {
text
}
nodeId {
namespace,
value
}
}
controlOut: browsePath(paths: ["ControlOut:4"], types:["ns=0;i=46"]) {
displayName {
text
}
nodeId {
namespace,
value
}
}
}
`
}
}
),
observeMultiProps([
{
name: 'measurement',
attributeId: 'Value',
property: 'measurement'
},
{
name: 'setPoint',
attributeId: 'Value',
property: 'setPoint'
},
{
name: 'controlOut',
attributeId: 'Value',
property: 'controlOut'
}
])
);
const FlowControllerType = composer(({viewer, measurement, setPoint, controlOut})=>
<svg height={200}>
<g transform="scale(3)">
<FlowController measurement={measurement ? measurement.value : undefined} setPoint={setPoint ? setPoint.value : undefined} controlOut={controlOut ? controlOut.value : undefined}/>
</g>
</svg>
);
const Svg = composer(({measurement, setPoint, controlOut})=>
<FlowController
measurement={measurement ? measurement.value : undefined}
setPoint={setPoint ? setPoint.value : undefined}
controlOut={controlOut ? controlOut.value : undefined}
/>);
export {FlowControllerType as default, Svg};
| {
"content_hash": "ff867e57c6b4469b253dc9a7957fbb1e",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 185,
"avg_line_length": 25.25,
"alnum_prop": 0.536903690369037,
"repo_name": "gilesbradshaw/uaQL",
"id": "a62061199faa5366a1721069755935b8c1a26e40",
"size": "2232",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "js/components/DeviceTypes/LevelControllerType.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "HTML",
"bytes": "1538"
},
{
"name": "JavaScript",
"bytes": "137666"
}
],
"symlink_target": ""
} |
package hermes.orchestration.network.packets;
import hermes.network.packets.HermesAbstractPacketHeader;
import hermes.network.packets.rpc.TwoWayRequest;
import hermes.orchestration.remote.RemoteActionFactory;
import hermes.orchestration.remote.RemoteActionResult;
import java.nio.ByteBuffer;
/**
*
* @author Rolando Martins <rolandomartins@cmu.edu>
*/
public class RemoteActionReplyPacket extends TwoWayRequest {
public static final int SERIAL_ID = 0x032001;
private RemoteActionResult m_result;
public RemoteActionReplyPacket() {
}
public RemoteActionReplyPacket(HermesAbstractPacketHeader header) {
super(header);
}
public RemoteActionReplyPacket(int requestNo,RemoteActionResult result) {
super(requestNo);
m_header.setOpcode(SERIAL_ID);
m_result = result;
}
public RemoteActionResult getRemoteActionResult(){
return m_result;
}
@Override
protected void serializeTwoWayRequestBody(ByteBuffer buf) throws Exception {
m_result.serializable(buf);
}
@Override
protected void deserializeTwoWayRequestBody(ByteBuffer buf) throws Exception {
int serialID = buf.getInt(buf.position());
m_result = RemoteActionFactory.getInstance().getRemoteActionResultImpl(serialID);
m_result.deserializable(buf);
}
}
| {
"content_hash": "425794bb685e82ba73a20abe9929c944",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 89,
"avg_line_length": 27.78,
"alnum_prop": 0.7141828653707704,
"repo_name": "rolandomar/hermes",
"id": "b784513c1d1a084854eb563d9e39fbe8db9f8ec0",
"size": "2018",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/hermes/orchestration/network/packets/RemoteActionReplyPacket.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
Rails.application.routes.draw do
mount DatabaseCleaner::RemoteApi::Engine => '/database_cleaner'
end
| {
"content_hash": "bc546bb63bc82556bf3733c516422570",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 65,
"avg_line_length": 34.333333333333336,
"alnum_prop": 0.7864077669902912,
"repo_name": "joeyjoejoejr/database_cleaner-remote_api",
"id": "523d09fe41bf722a72de36bb7bc22aa89ff2e4f0",
"size": "103",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "spec/dummy_32/config/routes.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1988"
},
{
"name": "HTML",
"bytes": "9251"
},
{
"name": "JavaScript",
"bytes": "2344"
},
{
"name": "Ruby",
"bytes": "46581"
}
],
"symlink_target": ""
} |
#ifndef QEGLPROPERTIES_P_H
#define QEGLPROPERTIES_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QtOpenGL and QtOpenVG modules. This header file may change from
// version to version without notice, or even be removed.
//
// We mean it.
//
#include <QtCore/qvarlengtharray.h>
#include <QtGui/qimage.h>
#include <QtGui/private/qegl_p.h>
QT_BEGIN_NAMESPACE
class QX11Info;
class QPaintDevice;
class Q_GUI_EXPORT QEglProperties
{
public:
QEglProperties();
QEglProperties(EGLConfig);
QEglProperties(const QEglProperties& other) : props(other.props) {}
~QEglProperties() {}
int value(int name) const;
void setValue(int name, int value);
bool removeValue(int name);
bool isEmpty() const { return props[0] == EGL_NONE; }
const int *properties() const { return props.constData(); }
void setPixelFormat(QImage::Format pixelFormat);
#ifdef Q_WS_X11
void setVisualFormat(const QX11Info *xinfo);
#endif
void setDeviceType(int devType);
void setPaintDeviceFormat(QPaintDevice *dev);
void setRenderableType(QEgl::API api);
bool reduceConfiguration();
QString toString() const;
private:
QVarLengthArray<int> props;
};
QT_END_NAMESPACE
#endif // QEGLPROPERTIES_P_H
| {
"content_hash": "16208ed6d8253b8a440e00b7bf46cd1f",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 74,
"avg_line_length": 21.9,
"alnum_prop": 0.697869101978691,
"repo_name": "kzhong1991/Flight-AR.Drone-2",
"id": "65ca12cbb6d681bb11500cc31b913d1598784d9d",
"size": "3280",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/3rdparty/Qt4.8.4/src/gui/egl/qeglproperties_p.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "8366"
},
{
"name": "C++",
"bytes": "172001"
},
{
"name": "Objective-C",
"bytes": "7651"
},
{
"name": "QMake",
"bytes": "1293"
}
],
"symlink_target": ""
} |
/**
* CompanyServiceSoapBindingStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201411;
public class CompanyServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.google.api.ads.dfp.axis.v201411.CompanyServiceInterface {
private java.util.Vector cachedSerClasses = new java.util.Vector();
private java.util.Vector cachedSerQNames = new java.util.Vector();
private java.util.Vector cachedSerFactories = new java.util.Vector();
private java.util.Vector cachedDeserFactories = new java.util.Vector();
static org.apache.axis.description.OperationDesc [] _operations;
static {
_operations = new org.apache.axis.description.OperationDesc[3];
_initOperationDesc1();
}
private static void _initOperationDesc1(){
org.apache.axis.description.OperationDesc oper;
org.apache.axis.description.ParameterDesc param;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("createCompanies");
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "companies"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company"), com.google.api.ads.dfp.axis.v201411.Company[].class, false, false);
param.setOmittable(true);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company"));
oper.setReturnClass(com.google.api.ads.dfp.axis.v201411.Company[].class);
oper.setReturnQName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "rval"));
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
oper.setUse(org.apache.axis.constants.Use.LITERAL);
oper.addFault(new org.apache.axis.description.FaultDesc(
new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiExceptionFault"),
"com.google.api.ads.dfp.axis.v201411.ApiException",
new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiException"),
true
));
_operations[0] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getCompaniesByStatement");
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "filterStatement"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Statement"), com.google.api.ads.dfp.axis.v201411.Statement.class, false, false);
param.setOmittable(true);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CompanyPage"));
oper.setReturnClass(com.google.api.ads.dfp.axis.v201411.CompanyPage.class);
oper.setReturnQName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "rval"));
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
oper.setUse(org.apache.axis.constants.Use.LITERAL);
oper.addFault(new org.apache.axis.description.FaultDesc(
new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiExceptionFault"),
"com.google.api.ads.dfp.axis.v201411.ApiException",
new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiException"),
true
));
_operations[1] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("updateCompanies");
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "companies"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company"), com.google.api.ads.dfp.axis.v201411.Company[].class, false, false);
param.setOmittable(true);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company"));
oper.setReturnClass(com.google.api.ads.dfp.axis.v201411.Company[].class);
oper.setReturnQName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "rval"));
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
oper.setUse(org.apache.axis.constants.Use.LITERAL);
oper.addFault(new org.apache.axis.description.FaultDesc(
new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiExceptionFault"),
"com.google.api.ads.dfp.axis.v201411.ApiException",
new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiException"),
true
));
_operations[2] = oper;
}
public CompanyServiceSoapBindingStub() throws org.apache.axis.AxisFault {
this(null);
}
public CompanyServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
this(service);
super.cachedEndpoint = endpointURL;
}
public CompanyServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
if (service == null) {
super.service = new org.apache.axis.client.Service();
} else {
super.service = service;
}
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
java.lang.Class cls;
javax.xml.namespace.QName qName;
javax.xml.namespace.QName qName2;
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ApiError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiException");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ApiException.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiVersionError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ApiVersionError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApiVersionError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ApiVersionErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ApplicationException");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ApplicationException.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "AppliedLabel");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.AppliedLabel.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "AuthenticationError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.AuthenticationError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "AuthenticationError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.AuthenticationErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "AvailableBillingError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.AvailableBillingError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "AvailableBillingError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.AvailableBillingErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "BooleanValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.BooleanValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CommonError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CommonError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CommonError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CommonErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.Company.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company.CreditStatus");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyCreditStatus.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Company.Type");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyType.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CompanyCreditStatusError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyCreditStatusError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CompanyCreditStatusError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyCreditStatusErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CompanyError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CompanyError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CompanyPage");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CompanyPage.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CrossSellError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CrossSellError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "CrossSellError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.CrossSellErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Date");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.Date.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "DateTime");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.DateTime.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "DateTimeValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.DateTimeValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "DateValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.DateValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "FeatureError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.FeatureError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "FeatureError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.FeatureErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "InternalApiError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.InternalApiError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "InternalApiError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.InternalApiErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "InvalidEmailError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.InvalidEmailError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "InvalidEmailError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.InvalidEmailErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "LabelEntityAssociationError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.LabelEntityAssociationError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "LabelEntityAssociationError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.LabelEntityAssociationErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "NotNullError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.NotNullError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "NotNullError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.NotNullErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "NumberValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.NumberValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ObjectValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ObjectValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ParseError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ParseError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ParseError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ParseErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "PermissionError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.PermissionError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "PermissionError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.PermissionErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "PublisherQueryLanguageContextError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.PublisherQueryLanguageContextError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "PublisherQueryLanguageContextError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.PublisherQueryLanguageContextErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "PublisherQueryLanguageSyntaxError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.PublisherQueryLanguageSyntaxError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "PublisherQueryLanguageSyntaxError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.PublisherQueryLanguageSyntaxErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "QuotaError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.QuotaError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "QuotaError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.QuotaErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "RequiredError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.RequiredError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "RequiredError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.RequiredErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ServerError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ServerError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "ServerError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.ServerErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "SetValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.SetValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "SoapRequestHeader");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.SoapRequestHeader.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "SoapResponseHeader");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.SoapResponseHeader.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Statement");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.Statement.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "StatementError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.StatementError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "StatementError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.StatementErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "String_ValueMapEntry");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.String_ValueMapEntry.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "StringLengthError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.StringLengthError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "StringLengthError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.StringLengthErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "TeamError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.TeamError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "TeamError.Reason");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.TeamErrorReason.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(enumsf);
cachedDeserFactories.add(enumdf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "TextValue");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.TextValue.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "TypeError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.TypeError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "UniqueError");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.UniqueError.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "Value");
cachedSerQNames.add(qName);
cls = com.google.api.ads.dfp.axis.v201411.Value.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
}
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
try {
org.apache.axis.client.Call _call = super._createCall();
if (super.maintainSessionSet) {
_call.setMaintainSession(super.maintainSession);
}
if (super.cachedUsername != null) {
_call.setUsername(super.cachedUsername);
}
if (super.cachedPassword != null) {
_call.setPassword(super.cachedPassword);
}
if (super.cachedEndpoint != null) {
_call.setTargetEndpointAddress(super.cachedEndpoint);
}
if (super.cachedTimeout != null) {
_call.setTimeout(super.cachedTimeout);
}
if (super.cachedPortName != null) {
_call.setPortName(super.cachedPortName);
}
java.util.Enumeration keys = super.cachedProperties.keys();
while (keys.hasMoreElements()) {
java.lang.String key = (java.lang.String) keys.nextElement();
_call.setProperty(key, super.cachedProperties.get(key));
}
// All the type mapping information is registered
// when the first call is made.
// The type mapping information is actually registered in
// the TypeMappingRegistry of the service, which
// is the reason why registration is only needed for the first call.
synchronized (this) {
if (firstCall()) {
// must set encoding style before registering serializers
_call.setEncodingStyle(null);
for (int i = 0; i < cachedSerFactories.size(); ++i) {
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
javax.xml.namespace.QName qName =
(javax.xml.namespace.QName) cachedSerQNames.get(i);
java.lang.Object x = cachedSerFactories.get(i);
if (x instanceof Class) {
java.lang.Class sf = (java.lang.Class)
cachedSerFactories.get(i);
java.lang.Class df = (java.lang.Class)
cachedDeserFactories.get(i);
_call.registerTypeMapping(cls, qName, sf, df, false);
}
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
cachedSerFactories.get(i);
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
cachedDeserFactories.get(i);
_call.registerTypeMapping(cls, qName, sf, df, false);
}
}
}
}
return _call;
}
catch (java.lang.Throwable _t) {
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
}
}
public com.google.api.ads.dfp.axis.v201411.Company[] createCompanies(com.google.api.ads.dfp.axis.v201411.Company[] companies) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201411.ApiException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[0]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "createCompanies"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {companies});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (com.google.api.ads.dfp.axis.v201411.Company[]) _resp;
} catch (java.lang.Exception _exception) {
return (com.google.api.ads.dfp.axis.v201411.Company[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.google.api.ads.dfp.axis.v201411.Company[].class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
if (axisFaultException.detail != null) {
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException) axisFaultException.detail;
}
if (axisFaultException.detail instanceof com.google.api.ads.dfp.axis.v201411.ApiException) {
throw (com.google.api.ads.dfp.axis.v201411.ApiException) axisFaultException.detail;
}
}
throw axisFaultException;
}
}
public com.google.api.ads.dfp.axis.v201411.CompanyPage getCompaniesByStatement(com.google.api.ads.dfp.axis.v201411.Statement filterStatement) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201411.ApiException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[1]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "getCompaniesByStatement"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {filterStatement});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (com.google.api.ads.dfp.axis.v201411.CompanyPage) _resp;
} catch (java.lang.Exception _exception) {
return (com.google.api.ads.dfp.axis.v201411.CompanyPage) org.apache.axis.utils.JavaUtils.convert(_resp, com.google.api.ads.dfp.axis.v201411.CompanyPage.class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
if (axisFaultException.detail != null) {
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException) axisFaultException.detail;
}
if (axisFaultException.detail instanceof com.google.api.ads.dfp.axis.v201411.ApiException) {
throw (com.google.api.ads.dfp.axis.v201411.ApiException) axisFaultException.detail;
}
}
throw axisFaultException;
}
}
public com.google.api.ads.dfp.axis.v201411.Company[] updateCompanies(com.google.api.ads.dfp.axis.v201411.Company[] companies) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201411.ApiException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[2]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v201411", "updateCompanies"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {companies});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (com.google.api.ads.dfp.axis.v201411.Company[]) _resp;
} catch (java.lang.Exception _exception) {
return (com.google.api.ads.dfp.axis.v201411.Company[]) org.apache.axis.utils.JavaUtils.convert(_resp, com.google.api.ads.dfp.axis.v201411.Company[].class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
if (axisFaultException.detail != null) {
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException) axisFaultException.detail;
}
if (axisFaultException.detail instanceof com.google.api.ads.dfp.axis.v201411.ApiException) {
throw (com.google.api.ads.dfp.axis.v201411.ApiException) axisFaultException.detail;
}
}
throw axisFaultException;
}
}
}
| {
"content_hash": "f007392a0312608fe795756c194294e5",
"timestamp": "",
"source": "github",
"line_count": 779,
"max_line_length": 375,
"avg_line_length": 54.37997432605905,
"alnum_prop": 0.6455313724564468,
"repo_name": "nafae/developer",
"id": "90c94a2f5ad6bc7bbb86de746c1df52d4b496435",
"size": "42362",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201411/CompanyServiceSoapBindingStub.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "127846798"
},
{
"name": "Perl",
"bytes": "28418"
}
],
"symlink_target": ""
} |
layout: feature
title: 'VerbForm'
shortdef: 'form of verb or deverbative'
udver: '2'
---
<table class="typeindex" border="1">
<tr>
<td style="background-color:cornflowerblue;color:white"><strong>Values:</strong> </td>
<td><a href="#Conv">Conv</a></td>
<td><a href="#Vnoun">Vnoun</a></td>
</tr>
</table>
Even though the name of the feature seems to suggest that it is used
exclusively with [verbs](u-pos/VERB), it is not the case (see converb).
### <a name="Conv">`Conv`</a>: converb
In Beja, converbs are formed using an affix on the verbal stem.
We add the VerbForm feature on the affix tag [SCONJ](pos/SCONJ).
#### Examples
- _ʃʔag <b>-aː</b>_ "carry on shoulder"
### <a name="Vnoun">`Vnoun`</a>: verbal noun
Verbal nouns other than infinitives. Also formed using an affix on the verbal stem.
We add the VerbForm feature on the affix tag [SCONJ](pos/SCONJ).
#### Examples
- _tʔi <b>-it</b>_ " "
<!-- Interlanguage links updated Po lis 14 15:35:00 CET 2022 -->
| {
"content_hash": "bd7dfdda2d21b478f508a27cc581aa6d",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 88,
"avg_line_length": 28.852941176470587,
"alnum_prop": 0.6758409785932722,
"repo_name": "UniversalDependencies/docs",
"id": "cec6b3d0c9ed35cf7be61812906e82fada06d375",
"size": "989",
"binary": false,
"copies": "1",
"ref": "refs/heads/pages-source",
"path": "_bej/feat/VerbForm.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "64420"
},
{
"name": "HTML",
"bytes": "1458943"
},
{
"name": "JavaScript",
"bytes": "238859"
},
{
"name": "Perl",
"bytes": "7788"
},
{
"name": "Python",
"bytes": "21203"
},
{
"name": "Ruby",
"bytes": "578"
},
{
"name": "Shell",
"bytes": "7253"
}
],
"symlink_target": ""
} |
package net.gangelov.orm;
import net.gangelov.orm.associations.Association;
import net.gangelov.orm.associations.BelongsToAssociation;
import net.gangelov.orm.associations.HasManyAssociation;
import net.gangelov.orm.associations.HasManyThroughAssociation;
import org.reflections.Reflections;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.*;
import java.util.*;
public class ModelReflection {
public final String tableName;
public String idName;
public String createTimestamp = null, updateTimestamp = null;
public final Class<? extends Model> klass;
public final Map<String, java.lang.reflect.Field> attributes = new HashMap<>();
public final Map<Hook.Type, List<Method>> hooks = new HashMap<>();
public final Map<String, Association> associations = new HashMap<>();
public final Map<String, BelongsToAssociation> belongsTo = new HashMap<>();
public final Map<String, HasManyAssociation> hasMany = new HashMap<>();
public final Map<String, HasManyThroughAssociation> hasManyThrough = new HashMap<>();
public Database db;
ModelReflection(Class<? extends Model> model) {
tableName = model.getAnnotation(Table.class).name();
klass = model;
for (java.lang.reflect.Field field : klass.getFields()) {
if (field.isAnnotationPresent(Id.class)) {
idName = field.getAnnotation(Id.class).name();
attributes.put(idName, field);
} else if (field.isAnnotationPresent(Field.class)) {
attributes.put(field.getAnnotation(Field.class).name(), field);
}
if (field.isAnnotationPresent(CreateTimestamp.class)) {
createTimestamp = field.getAnnotation(Field.class).name();
} else if (field.isAnnotationPresent(UpdateTimestamp.class)) {
updateTimestamp = field.getAnnotation(Field.class).name();
} else if (field.isAnnotationPresent(BelongsTo.class)) {
BelongsTo annotation = field.getAnnotation(BelongsTo.class);
BelongsToAssociation assoc = new BelongsToAssociation(model, annotation.model(), annotation.key(), field);
associations.put(field.getName(), assoc);
belongsTo.put(field.getName(), assoc);
} else if (field.isAnnotationPresent(HasMany.class)) {
HasMany annotation = field.getAnnotation(HasMany.class);
HasManyAssociation assoc = new HasManyAssociation(model, annotation.model(), annotation.foreignKey(), field);
associations.put(field.getName(), assoc);
hasMany.put(field.getName(), assoc);
} else if (field.isAnnotationPresent(HasManyThrough.class)) {
HasManyThrough annotation = field.getAnnotation(HasManyThrough.class);
HasManyAssociation throughAssociation = hasMany.get(annotation.through());
if (throughAssociation == null) {
throw new RuntimeException("HasManyThrough must be declared above HasMany");
}
HasManyThroughAssociation assoc = new HasManyThroughAssociation(
model, throughAssociation, annotation.model(), annotation.foreignKey(), field
);
associations.put(field.getName(), assoc);
hasManyThrough.put(field.getName(), assoc);
}
}
for (Method method : klass.getDeclaredMethods()) {
if (method.isAnnotationPresent(Hook.class)) {
Hook.Type hookType = method.getAnnotation(Hook.class).on();
if (!hooks.containsKey(hookType)) {
List<Method> methods = new ArrayList<>();
hooks.put(hookType, methods);
}
hooks.get(hookType).add(method);
}
}
}
public Object valueFor(Model model, String name) {
try {
java.lang.reflect.Field field = attributes.get(name);
if (field == null) {
throw new RuntimeException("Expected " + klass.getName() + " to have attribute named " + name);
}
return field.get(model);
} catch (IllegalAccessException e) {
e.printStackTrace();
throw new RuntimeException("Cannot get value from field - is private");
}
}
public void setValue(Model model, String name, Object value) {
try {
if (value instanceof Timestamp) {
attributes.get(name).set(model, ((Timestamp) value).toInstant());
} else {
attributes.get(name).set(model, value);
}
} catch (IllegalAccessException e) {
e.printStackTrace();
throw new RuntimeException("Cannot set value on field - is private");
}
}
public Map<String, Object> valuesFor(Model model, boolean includeId) {
Map<String, Object> values = new HashMap<>();
for (Map.Entry<String, java.lang.reflect.Field> attr : attributes.entrySet()) {
if (!includeId && attr.getKey().equals(idName)) {
continue;
}
try {
values.put(attr.getKey(), attr.getValue().get(model));
} catch (IllegalAccessException e) {
e.printStackTrace();
throw new RuntimeException("Cannot get value from field - is private");
}
}
return values;
}
public Model loadFromResultSetRow(ResultSet resultSet) throws SQLException {
try {
Model model = klass.newInstance();
ResultSetMetaData meta = resultSet.getMetaData();
int columnCount = meta.getColumnCount();
for (int i = 1; i <= columnCount; i++) {
String columnName = meta.getColumnName(i);
java.lang.reflect.Field field = attributes.get(columnName);
if (field == null) {
// Unknown field, cannot deserialize it
continue;
}
setValue(model, columnName, resultSet.getObject(i));
}
return model;
} catch (InstantiationException e) {
e.printStackTrace();
throw new RuntimeException("Cannot instantiate model class");
} catch (IllegalAccessException e) {
e.printStackTrace();
throw new RuntimeException("Cannot set model fields or constructor is private");
}
}
public void runHook(Model model, Hook.Type type) {
if (!hooks.containsKey(type)) {
return;
}
hooks.get(type).forEach(method -> {
try {
method.setAccessible(true);
method.invoke(model);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
throw new RuntimeException("Cannot call model hook");
}
});
}
static Map<String, ModelReflection> byTable = new HashMap<>();
static Map<Class<? extends Model>, ModelReflection> byClass = new HashMap<>();
public static void loadClasses(String modelPackage, Connection connection) {
Reflections modelReflections = new Reflections(modelPackage);
Set<Class<? extends Model>> models = modelReflections.getSubTypesOf(Model.class);
models.forEach(model -> {
if (!model.isAnnotationPresent(Table.class)) {
System.out.println("No @Table annotation present on class " + model.getName() + ". Skipping it");
return;
}
ModelReflection reflection = new ModelReflection(model);
reflection.db = new Database(connection);
byTable.put(reflection.tableName, reflection);
byClass.put(reflection.klass, reflection);
});
}
public static ModelReflection get(Class<? extends Model> klass) {
return byClass.get(klass);
}
}
| {
"content_hash": "867beaaacfcca26653529d1bfdc9d1b1",
"timestamp": "",
"source": "github",
"line_count": 210,
"max_line_length": 125,
"avg_line_length": 38.871428571428574,
"alnum_prop": 0.5995344848707583,
"repo_name": "stormbreakerbg/memories",
"id": "02018fa0919bdae6191a3877ffadb94950940c5f",
"size": "8163",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "api/src/main/java/net/gangelov/orm/ModelReflection.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "7705"
},
{
"name": "HTML",
"bytes": "509"
},
{
"name": "Java",
"bytes": "75556"
},
{
"name": "JavaScript",
"bytes": "30037"
}
],
"symlink_target": ""
} |
package com.google.cloud.bigquery.samples;
import com.google.api.services.bigquery.Bigquery;
import com.google.api.services.bigquery.model.Job;
import com.google.api.services.bigquery.model.JobConfiguration;
import com.google.api.services.bigquery.model.JobConfigurationLoad;
import com.google.api.services.bigquery.model.TableReference;
import com.google.api.services.bigquery.model.TableSchema;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.Collections;
import java.util.Scanner;
/**
* Cli tool to load data from a CSV into Bigquery.
*/
public class LoadDataCsvSample {
/**
* Protected constructor since this is a collection of static methods.
*/
protected LoadDataCsvSample() {}
/**
* Cli tool to load data from a CSV into Bigquery.
* @param args Command line args, should be empty
* @throws IOException IOException
* @throws InterruptedException InterruptedException
*/
// [START main]
public static void main(final String[] args) throws IOException, InterruptedException {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter your project id: ");
String projectId = scanner.nextLine();
System.out.println("Enter your dataset id: ");
String datasetId = scanner.nextLine();
System.out.println("Enter your table id: ");
String tableId = scanner.nextLine();
System.out.println("Enter the Google Cloud Storage Path to the data " + "you'd like to load: ");
String cloudStoragePath = scanner.nextLine();
System.out.println("Enter the filepath to your schema: ");
String sourceSchemaPath = scanner.nextLine();
System.out.println("Enter how often to check if your job is complete " + "(milliseconds): ");
long interval = scanner.nextLong();
scanner.close();
run(
cloudStoragePath,
projectId,
datasetId,
tableId,
new FileReader(new File(sourceSchemaPath)),
interval);
}
// [END main]
/**
* Run the bigquery ClI.
* @param cloudStoragePath The bucket we are using
* @param projectId Project id
* @param datasetId datasetid
* @param tableId tableid
* @param schemaSource Source of the schema
* @param interval interval to wait between polling in milliseconds
* @throws IOException Thrown if there is an error connecting to Bigquery.
* @throws InterruptedException Should never be thrown
*/
// [START run]
public static void run(
final String cloudStoragePath,
final String projectId,
final String datasetId,
final String tableId,
final Reader schemaSource,
final long interval)
throws IOException, InterruptedException {
Bigquery bigquery = BigQueryServiceFactory.getService();
Job loadJob =
loadJob(
bigquery,
cloudStoragePath,
new TableReference()
.setProjectId(projectId)
.setDatasetId(datasetId)
.setTableId(tableId),
BigQueryUtils.loadSchema(schemaSource));
Bigquery.Jobs.Get getJob =
bigquery
.jobs()
.get(loadJob.getJobReference().getProjectId(), loadJob.getJobReference().getJobId());
BigQueryUtils.pollJob(getJob, interval);
System.out.println("Load is Done!");
}
// [END run]
/**
* A job that extracts data from a table.
* @param bigquery Bigquery service to use
* @param cloudStoragePath Cloud storage bucket we are inserting into
* @param table Table to extract from
* @param schema The schema of the table we are loading into
* @return The job to extract data from the table
* @throws IOException Thrown if error connceting to Bigtable
*/
// [START load_job]
public static Job loadJob(
final Bigquery bigquery,
final String cloudStoragePath,
final TableReference table,
final TableSchema schema)
throws IOException {
JobConfigurationLoad load =
new JobConfigurationLoad()
.setDestinationTable(table)
.setSchema(schema)
.setSourceUris(Collections.singletonList(cloudStoragePath));
return bigquery
.jobs()
.insert(
table.getProjectId(), new Job().setConfiguration(new JobConfiguration().setLoad(load)))
.execute();
}
// [END load_job]
}
| {
"content_hash": "0a5a7de09feada9ba1aae457a7839945",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 100,
"avg_line_length": 31.956204379562045,
"alnum_prop": 0.6834170854271356,
"repo_name": "tswast/java-docs-samples",
"id": "b3ecb26c14915259ef4a56b9ec3bb0362db8adeb",
"size": "4945",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "bigquery/src/main/java/com/google/cloud/bigquery/samples/LoadDataCsvSample.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "348"
},
{
"name": "HTML",
"bytes": "14365"
},
{
"name": "Java",
"bytes": "867172"
},
{
"name": "Python",
"bytes": "1282"
},
{
"name": "Shell",
"bytes": "8449"
},
{
"name": "XSLT",
"bytes": "1055"
}
],
"symlink_target": ""
} |
/************************************************************** ggt-head beg
*
* GGT: Generic Graphics Toolkit
*
* Original Authors:
* Allen Bierbaum
*
* -----------------------------------------------------------------
* File: VecBase.h,v
* Date modified: 2005/06/06 03:44:49
* Version: 1.20
* -----------------------------------------------------------------
*
*********************************************************** ggt-head end */
/*************************************************************** ggt-cpr beg
*
* GGT: The Generic Graphics Toolkit
* Copyright (C) 2001,2002 Allen Bierbaum
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************ ggt-cpr end */
#ifndef _GMTL_VECBASE_H_
#define _GMTL_VECBASE_H_
#include <falcon/gmtl/Defines.h>
#include <falcon/gmtl/Util/Assert.h>
#include <falcon/gmtl/Util/StaticAssert.h>
#include <falcon/gmtl/Util/Meta.h>
#include <falcon/gmtl/Config.h>
#include <falcon/gmtl/Helpers.h>
namespace gmtl
{
#ifndef GMTL_NO_METAPROG
namespace meta
{
struct DefaultVecTag
{};
}
#endif
/**
* Base type for vector-like objects including Points and Vectors. It is
* templated on the component datatype as well as the number of components that
* make it up.
*
* @param DATA_TYPE the datatype to use for the components
* @param SIZE the number of components this VecB has
* @param REP the representation to use for the vector. (expression template or default)
*/
#ifndef GMTL_NO_METAPROG
template<class DATA_TYPE, unsigned SIZE, typename REP=meta::DefaultVecTag>
class VecBase
{
protected:
const REP expRep; // The expression rep
public:
/// The datatype used for the components of this VecB.
typedef DATA_TYPE DataType;
/// The number of components this VecB has.
enum Params { Size = SIZE };
public:
VecBase()
{;}
VecBase(const REP& rep)
: expRep(rep)
{;}
/** Conversion operator to default vecbase type. */
/*
operator VecBase<DATA_TYPE,SIZE,meta::DefaultVecTag>()
{
return VecBase<DATA_TYPE,SIZE,meta::DefaultVecTag>(*this);
}
*/
/** Return the value at given location. */
inline DATA_TYPE operator [](const unsigned i)
{
gmtlASSERT(i < SIZE);
return expRep[i];
}
inline const DATA_TYPE operator [](const unsigned i) const
{
gmtlASSERT(i < SIZE);
return expRep[i];
}
};
#endif
/**
* Specialized version of VecBase that is actually used for all user interaction
* with a traditional vector.
*
* @param DATA_TYPE the datatype to use for the components
* @param SIZE the number of components this VecBase has
*/
template<class DATA_TYPE, unsigned SIZE>
#ifdef GMTL_NO_METAPROG
class VecBase
#else
class VecBase<DATA_TYPE,SIZE,meta::DefaultVecTag>
#endif
{
public:
/// The datatype used for the components of this VecBase.
typedef DATA_TYPE DataType;
#ifdef GMTL_NO_METAPROG
typedef VecBase<DATA_TYPE, SIZE> VecType;
#else
typedef VecBase<DATA_TYPE, SIZE, meta::DefaultVecTag> VecType;
#endif
/// The number of components this VecBase has.
enum Params { Size = SIZE };
public:
/**
* Default constructor.
* Does nothing, leaves data alone.
* This is for performance because this constructor is called by derived class constructors
* Even when they just want to set the data directly
*/
VecBase()
{
#ifdef GMTL_COUNT_CONSTRUCT_CALLS
gmtl::helpers::VecCtrCounterInstance()->inc();
#endif
}
/**
* Makes an exact copy of the given VecBase object.
*
* @param rVec the VecBase object to copy
*/
VecBase(const VecBase<DATA_TYPE, SIZE>& rVec)
{
#ifdef GMTL_COUNT_CONSTRUCT_CALLS
gmtl::helpers::VecCtrCounterInstance()->inc();
#endif
#ifdef GMTL_NO_METAPROG
for(unsigned i=0;i<SIZE;++i)
mData[i] = rVec.mData[i];
#else
gmtl::meta::AssignVecUnrolled<SIZE-1, VecBase<DATA_TYPE,SIZE> >::func(*this, rVec);
#endif
}
#ifndef GMTL_NO_METAPROG
template<typename REP2>
VecBase(const VecBase<DATA_TYPE, SIZE, REP2>& rVec)
{
#ifdef GMTL_COUNT_CONSTRUCT_CALLS
gmtl::helpers::VecCtrCounterInstance()->inc();
#endif
for(unsigned i=0;i<SIZE;++i)
{ mData[i] = rVec[i]; }
}
#endif
//@{
/**
* Creates a new VecBase initialized to the given values.
*/
VecBase(const DATA_TYPE& val0,const DATA_TYPE& val1)
{
#ifdef GMTL_COUNT_CONSTRUCT_CALLS
gmtl::helpers::VecCtrCounterInstance()->inc();
#endif
GMTL_STATIC_ASSERT( SIZE == 2, Invalid_constructor_of_size_2_used);
mData[0] = val0; mData[1] = val1;
}
VecBase(const DATA_TYPE& val0,const DATA_TYPE& val1,const DATA_TYPE& val2)
{
#ifdef GMTL_COUNT_CONSTRUCT_CALLS
gmtl::helpers::VecCtrCounterInstance()->inc();
#endif
GMTL_STATIC_ASSERT( SIZE == 3, Invalid_constructor_of_size_3_used );
mData[0] = val0; mData[1] = val1; mData[2] = val2;
}
VecBase(const DATA_TYPE& val0,const DATA_TYPE& val1,const DATA_TYPE& val2,const DATA_TYPE& val3)
{
#ifdef GMTL_COUNT_CONSTRUCT_CALLS
gmtl::helpers::VecCtrCounterInstance()->inc();
#endif
// @todo need compile time assert
GMTL_STATIC_ASSERT( SIZE == 4, Invalid_constructor_of_size_4_used);
mData[0] = val0; mData[1] = val1; mData[2] = val2; mData[3] = val3;
}
//@}
/**
* Sets the components in this VecBase using the given array.
*
* @param dataPtr the array containing the values to copy
* @pre dataPtr has at least SIZE elements
*/
inline void set(const DATA_TYPE* dataPtr)
{
#ifdef GMTL_NO_METAPROG
for ( unsigned int i = 0; i < SIZE; ++i )
{
mData[i] = dataPtr[i];
}
#else
gmtl::meta::AssignArrayUnrolled<SIZE-1, DATA_TYPE>::func(&(mData[0]),
dataPtr);
#endif
}
//@{
/**
* Sets the components in this VecBase to the given values.
*/
inline void set(const DATA_TYPE& val0)
{ mData[0] = val0; }
inline void set(const DATA_TYPE& val0,const DATA_TYPE& val1)
{
GMTL_STATIC_ASSERT( SIZE >= 2, Set_out_of_valid_range);
mData[0] = val0; mData[1] = val1;
}
inline void set(const DATA_TYPE& val0,const DATA_TYPE& val1,const DATA_TYPE& val2)
{
GMTL_STATIC_ASSERT( SIZE >= 3, Set_out_of_valid_range);
mData[0] = val0; mData[1] = val1; mData[2] = val2;
}
inline void set(const DATA_TYPE& val0,const DATA_TYPE& val1,const DATA_TYPE& val2,const DATA_TYPE& val3)
{
GMTL_STATIC_ASSERT( SIZE >= 4, Set_out_of_valid_range);
mData[0] = val0; mData[1] = val1; mData[2] = val2; mData[3] = val3;
}
//@}
//@{
/**
* Gets the ith component in this VecBase.
*
* @param i the zero-based index of the component to access.
* @pre i < SIZE
*
* @return a reference to the ith component
*/
inline DATA_TYPE& operator [](const unsigned i)
{
gmtlASSERT(i < SIZE);
return mData[i];
}
inline const DATA_TYPE& operator [](const unsigned i) const
{
gmtlASSERT(i < SIZE);
return mData[i];
}
//@}
/** Assign from different rep. */
#ifdef GMTL_NO_METAPROG
inline VecType& operator=(const VecBase<DATA_TYPE,SIZE>& rhs)
{
for(unsigned i=0;i<SIZE;++i)
{
mData[i] = rhs[i];
}
return *this;
}
#else
template<typename REP2>
inline VecType& operator=(const VecBase<DATA_TYPE,SIZE,REP2>& rhs)
{
for(unsigned i=0;i<SIZE;++i)
{
mData[i] = rhs[i];
}
//gmtl::meta::AssignVecUnrolled<SIZE-1, VecBase<DATA_TYPE,SIZE> >::func(*this, rVec);
return *this;
}
#endif
/*
Assign from another of same type.
inline VecType& operator=(const VecType& rhs)
{
for(unsigned i=0;i<SIZE;++i)
{
mData[i] = rhs[i];
}
return *this;
}
*/
//@{
/**
* Gets the internal array of the components.
*
* @return a pointer to the component array with length SIZE
*/
DATA_TYPE* getData()
{ return mData; }
const DATA_TYPE* getData() const
{ return mData; }
//@}
public:
/// The array of components.
DATA_TYPE mData[SIZE];
};
}
#endif
| {
"content_hash": "7ed14abef857c0c365e9098f2c3b2028",
"timestamp": "",
"source": "github",
"line_count": 335,
"max_line_length": 107,
"avg_line_length": 26.671641791044777,
"alnum_prop": 0.6107442641298265,
"repo_name": "Ybalrid/virtual-air-hockey",
"id": "7cf4d3592df252429e7943fd68c3f8f2dde3f00e",
"size": "8935",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "falcon/Falcon64OpenSource/include/falcon/gmtl/VecBase.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "882"
},
{
"name": "C",
"bytes": "12582"
},
{
"name": "C++",
"bytes": "1391260"
},
{
"name": "CMake",
"bytes": "3312"
},
{
"name": "Makefile",
"bytes": "3759"
}
],
"symlink_target": ""
} |
package com.flyco.animation.BounceEnter;
import android.view.View;
import com.nineoldandroids.animation.ObjectAnimator;
import com.flyco.animation.BaseAnimatorSet;
public class BounceEnter extends BaseAnimatorSet {
public BounceEnter() {
duration = 700;
}
@Override
public void setAnimation(View view) {
animatorSet.playTogether(ObjectAnimator.ofFloat(view, "alpha", 0, 1, 1, 1), //
ObjectAnimator.ofFloat(view, "scaleX", 0.5f, 1.05f, 0.95f, 1),//
ObjectAnimator.ofFloat(view, "scaleY", 0.5f, 1.05f, 0.95f, 1));
/**
* <pre>
* 另一种弹性实现:依据sweet-alert-dialog布局文件实现
* ObjectAnimator oa_alpha = ObjectAnimator.ofFloat(view, "alpha", 0.2f, 1).setDuration(90);
*
* AnimatorSet as1 = new AnimatorSet();
* as1.playTogether(oa_alpha, ObjectAnimator.ofFloat(view, "scaleX", 0.7f, 1.05f).setDuration(135),//
* ObjectAnimator.ofFloat(view, "scaleY", 0.7f, 1.05f).setDuration(135));
*
* AnimatorSet as2 = new AnimatorSet();
* as2.playTogether(ObjectAnimator.ofFloat(view, "scaleX", 1.05f, 0.95f).setDuration(105), //
* ObjectAnimator.ofFloat(view, "scaleY", 1.05f, 0.95f).setDuration(105));
*
* AnimatorSet as3 = new AnimatorSet();
* as3.playTogether(ObjectAnimator.ofFloat(view, "scaleX", 0.95f, 1f).setDuration(60),//
* ObjectAnimator.ofFloat(view, "scaleY", 0.95f, 1f).setDuration(60));
*
* animatorSet.playSequentially(as1, as2, as3);
* </pre>
*
*/
}
}
| {
"content_hash": "789d0a07bcf81f360cadda465b7ec4cf",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 103,
"avg_line_length": 34.23809523809524,
"alnum_prop": 0.6821974965229486,
"repo_name": "cxbiao/FlycoDialog_Master",
"id": "70f29c5a6d8adb6032861f3a5524d005f4f19e45",
"size": "1468",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "FlycoDialog_Lib/src/main/java/com/flyco/animation/BounceEnter/BounceEnter.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "198918"
}
],
"symlink_target": ""
} |
// Copyright 2016 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.
/** @fileoverview Tests for cr-action-menu element. */
suite('CrActionMenu', function() {
/** @type {?CrActionMenuElement} */
var menu = null;
/** @type {?NodeList<HTMLElement>} */
var items = null;
setup(function() {
PolymerTest.clearBody();
document.body.innerHTML = `
<button id="dots">...</button>
<dialog is="cr-action-menu">
<button class="dropdown-item">Un</button>
<hr>
<button class="dropdown-item">Dos</button>
<button class="dropdown-item">Tres</button>
</dialog>
`;
menu = document.querySelector('dialog[is=cr-action-menu]');
items = menu.querySelectorAll('.dropdown-item');
assertEquals(3, items.length);
});
teardown(function() {
if (menu.open)
menu.close();
});
test('focus after showing', function() {
menu.showAt(document.querySelector('#dots'));
assertEquals(menu.root.activeElement, items[0]);
menu.close();
items[0].hidden = true;
menu.showAt(document.querySelector('#dots'));
assertEquals(menu.root.activeElement, items[1]);
menu.close();
items[1].hidden = true;
menu.showAt(document.querySelector('#dots'));
assertEquals(menu.root.activeElement, items[2]);
menu.close();
items[2].disabled = true;
menu.showAt(document.querySelector('#dots'));
assertEquals(null, menu.root.activeElement);
});
test('focus after down/up arrow', function() {
function down() {
MockInteractions.keyDownOn(menu, 'ArrowDown', [], 'ArrowDown');
}
function up() {
MockInteractions.keyDownOn(menu, 'ArrowUp', [], 'ArrowUp');
}
menu.showAt(document.querySelector('#dots'));
assertEquals(items[0], menu.root.activeElement);
down();
assertEquals(items[1], menu.root.activeElement);
down();
assertEquals(items[2], menu.root.activeElement);
down();
assertEquals(items[0], menu.root.activeElement);
up();
assertEquals(items[2], menu.root.activeElement);
up();
assertEquals(items[1], menu.root.activeElement);
up();
assertEquals(items[0], menu.root.activeElement);
up();
assertEquals(items[2], menu.root.activeElement);
items[1].disabled = true;
up();
assertEquals(items[0], menu.root.activeElement);
});
test('close on resize', function() {
menu.showAt(document.querySelector('#dots'));
assertTrue(menu.open);
window.dispatchEvent(new CustomEvent('resize'));
assertFalse(menu.open);
});
/** @param {string} key The key to use for closing. */
function testFocusAfterClosing(key) {
return new Promise(function(resolve) {
var dots = document.querySelector('#dots');
menu.showAt(dots);
assertTrue(menu.open);
// Check that focus returns to the anchor element.
dots.addEventListener('focus', resolve);
MockInteractions.keyDownOn(menu, key, [], key);
assertFalse(menu.open);
});
}
test('close on Tab', function() { return testFocusAfterClosing('Tab'); });
test('close on Escape', function() {
return testFocusAfterClosing('Escape');
});
});
| {
"content_hash": "f1458f0234bab46523af308b875d1819",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 76,
"avg_line_length": 28.63157894736842,
"alnum_prop": 0.6430759803921569,
"repo_name": "Samsung/ChromiumGStreamerBackend",
"id": "233b3ec167765320673481f5fc7b556fabd4b1d2",
"size": "3264",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "chrome/test/data/webui/cr_elements/cr_action_menu_test.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
import zmq
import json
from jbox_util import LoggerMixin, JBoxCfg, JBoxPluginType
from jbox_crypto import signstr
from cloud import Compute
class JBoxAsyncJob(LoggerMixin):
MODE_PUB = 0
MODE_SUB = 1
CMD_BACKUP_CLEANUP = 1
CMD_LAUNCH_SESSION = 2
CMD_AUTO_ACTIVATE = 3
CMD_UPDATE_USER_HOME_IMAGE = 4
CMD_REFRESH_DISKS = 5
CMD_COLLECT_STATS = 6
CMD_RECORD_PERF_COUNTERS = 8
CMD_PLUGIN_MAINTENANCE = 9
CMD_PLUGIN_TASK = 10
CMD_REQ_RESP = 50
CMD_SESSION_STATUS = 51
CMD_API_STATUS = 52
CMD_IS_TERMINATING = 53
ENCKEY = None
PORTS = None
SINGLETON_INSTANCE = None
def __init__(self, ports, mode):
self._mode = mode
self._ctx = zmq.Context()
ppmode = zmq.PUSH if (mode == JBoxAsyncJob.MODE_PUB) else zmq.PULL
self._push_pull_sock = self._ctx.socket(ppmode)
rrmode = zmq.REQ if (mode == JBoxAsyncJob.MODE_PUB) else zmq.REP
local_ip = Compute.get_instance_local_ip()
JBoxAsyncJob.log_debug("local hostname [%s]", local_ip)
ppbindaddr = 'tcp://%s:%d' % (local_ip, ports[0],)
ppconnaddr = 'tcp://%s:%d' % (local_ip, ports[0],)
rraddr = 'tcp://%s:%d' % (local_ip, ports[1],)
self._rrport = ports[1]
self._poller = zmq.Poller()
if mode == JBoxAsyncJob.MODE_PUB:
self._push_pull_sock.connect(ppconnaddr)
else:
self._push_pull_sock.bind(ppbindaddr)
self._poller.register(self._push_pull_sock, zmq.POLLIN)
self._req_rep_sock = self._ctx.socket(rrmode)
self._req_rep_sock.bind(rraddr)
@staticmethod
def configure():
JBoxAsyncJob.PORTS = JBoxCfg.get('container_manager_ports')
JBoxAsyncJob.ENCKEY = JBoxCfg.get('sesskey')
@staticmethod
def init(async_mode):
JBoxAsyncJob.SINGLETON_INSTANCE = JBoxAsyncJob(JBoxAsyncJob.PORTS, async_mode)
@staticmethod
def get():
return JBoxAsyncJob.SINGLETON_INSTANCE
@staticmethod
def _make_msg(cmd, data):
srep = json.dumps([cmd, data])
sign = signstr(srep, JBoxAsyncJob.ENCKEY)
msg = {
'cmd': cmd,
'data': data,
'sign': sign
}
return msg
@staticmethod
def _extract_msg(msg):
srep = json.dumps([msg['cmd'], msg['data']])
sign = signstr(srep, JBoxAsyncJob.ENCKEY)
if sign == msg['sign']:
return msg['cmd'], msg['data']
JBoxAsyncJob.log_error("signature mismatch. expected [%s], got [%s], srep [%s]", sign, msg['sign'], srep)
raise ValueError("invalid signature for cmd: %s, data: %s" % (msg['cmd'], msg['data']))
def sendrecv(self, cmd, data, dest=None, port=None):
if (dest is None) or (dest == 'localhost'):
dest = Compute.get_instance_local_ip()
else:
dest = Compute.get_instance_local_ip(dest)
if port is None:
port = self._rrport
rraddr = 'tcp://%s:%d' % (dest, port)
JBoxAsyncJob.log_debug("sendrecv to %s. connecting...", rraddr)
sock = self._ctx.socket(zmq.REQ)
sock.setsockopt(zmq.LINGER, 5*1000)
sock.connect(rraddr)
poller = zmq.Poller()
poller.register(sock, zmq.POLLOUT)
if poller.poll(10*1000):
sock.send_json(self._make_msg(cmd, data))
else:
sock.close()
raise IOError("could not connect to %s", rraddr)
poller.modify(sock, zmq.POLLIN)
if poller.poll(10*1000):
msg = sock.recv_json()
else:
sock.close()
raise IOError("did not receive anything from %s", rraddr)
JBoxAsyncJob.log_debug("sendrecv to %s. received.", rraddr)
sock.close()
return msg
def respond(self, callback):
msg = self._req_rep_sock.recv_json()
cmd, data = self._extract_msg(msg)
resp = callback(cmd, data)
self._req_rep_sock.send_json(resp)
def send(self, cmd, data):
assert self._mode == JBoxAsyncJob.MODE_PUB
self._push_pull_sock.send_json(self._make_msg(cmd, data))
def recv(self):
msg = self._push_pull_sock.recv_json()
return self._extract_msg(msg)
def poll(self, req_resp_pending=False):
if not req_resp_pending:
self._poller.register(self._req_rep_sock, zmq.POLLIN)
else:
if self._req_rep_sock in self._poller.sockets:
self._poller.unregister(self._req_rep_sock)
socks = dict(self._poller.poll())
ppreq = (self._push_pull_sock in socks) and (socks[self._push_pull_sock] == zmq.POLLIN)
rrreq = (self._req_rep_sock in socks) and (socks[self._req_rep_sock] == zmq.POLLIN)
return ppreq, rrreq
@staticmethod
def async_refresh_disks():
JBoxAsyncJob.log_info("scheduling refresh of loopback disks")
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_REFRESH_DISKS, '')
@staticmethod
def async_update_user_home_image():
JBoxAsyncJob.log_info("scheduling update of user home image")
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_UPDATE_USER_HOME_IMAGE, '')
@staticmethod
def async_collect_stats():
JBoxAsyncJob.log_info("scheduling stats collection")
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_COLLECT_STATS, '')
@staticmethod
def async_record_perf_counters():
JBoxAsyncJob.log_info("scheduling recording performance counters")
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_RECORD_PERF_COUNTERS, '')
@staticmethod
def async_schedule_activations():
JBoxAsyncJob.log_info("scheduling activations")
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_AUTO_ACTIVATE, '')
@staticmethod
def async_launch_by_name(name, email, reuse=True):
JBoxAsyncJob.log_info("Scheduling startup name:%s email:%s", name, email)
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_LAUNCH_SESSION, (name, email, reuse))
@staticmethod
def async_backup_and_cleanup(dockid):
JBoxAsyncJob.log_info("scheduling cleanup for %s", dockid)
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_BACKUP_CLEANUP, dockid)
@staticmethod
def sync_session_status(instance_id):
JBoxAsyncJob.log_debug("fetching session status from %r", instance_id)
return JBoxAsyncJob.get().sendrecv(JBoxAsyncJob.CMD_SESSION_STATUS, {}, dest=instance_id)
@staticmethod
def sync_api_status(instance_id):
JBoxAsyncJob.log_debug("fetching api status from %r", instance_id)
return JBoxAsyncJob.get().sendrecv(JBoxAsyncJob.CMD_API_STATUS, {}, dest=instance_id)
@staticmethod
def sync_is_terminating():
JBoxAsyncJob.log_debug("checking if instance is terminating")
return JBoxAsyncJob.get().sendrecv(JBoxAsyncJob.CMD_IS_TERMINATING, {})
@staticmethod
def async_plugin_maintenance(is_leader):
JBoxAsyncJob.log_info("scheduling plugin maintenance. leader:%r", is_leader)
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_PLUGIN_MAINTENANCE, is_leader)
@staticmethod
def async_plugin_task(target_class, data):
JBoxAsyncJob.log_info("invoking plugin task. target_class:%s", target_class)
JBoxAsyncJob.get().send(JBoxAsyncJob.CMD_PLUGIN_TASK, (JBPluginTask.JBP_CMD_ASYNC, target_class, data))
class JBPluginTask(LoggerMixin):
""" Provide tasks that help with container management.
They run in privileged mode and can interact with the host system if required.
Also provide tasks that are invoked periodically.
Used to perform batch jobs, typically to collect statistics or cleanup failed/leftover entities.
- `JBPluginTask.JBP_CMD_ASYNC`:
This functionality provides container manager commands that can be invoked from other parts of JuliaBox.
- `do_task(plugin_type, data)`: Method must be provided.
- `plugin_type`: Functionality that was invoked. Always `JBP_CMD_ASYNC` for now.
- `data`: Data that the command was called with
- `JBPluginTask.JBP_NODE` and `JBPluginTask.JBP_CLUSTER`:
Node specific functionality is invoked on all JuliaBox instances.
Cluster functionality is invoked only on the cluster leader.
- `do_periodic_task(plugin_type)`: Method must be provided.
- `plugin_type`: Functionality that was invoked. Differentiator if multiple functionalities are implemented.
"""
__metaclass__ = JBoxPluginType
JBP_CMD_ASYNC = 'invocabletask.async'
JBP_NODE = 'periodictask.node'
JBP_CLUSTER = 'periodictask.cluster'
| {
"content_hash": "bb1efbb311ffc8ef3bd5278c99fbf2b8",
"timestamp": "",
"source": "github",
"line_count": 236,
"max_line_length": 120,
"avg_line_length": 36.5,
"alnum_prop": 0.636986301369863,
"repo_name": "mdpradeep/JuliaBox",
"id": "46291dcd8f593f7b128aa90373c8e18cdf98f171",
"size": "8614",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "engine/src/juliabox/jbox_tasks.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "6283"
},
{
"name": "HTML",
"bytes": "3261"
},
{
"name": "JavaScript",
"bytes": "55153"
},
{
"name": "Julia",
"bytes": "2591"
},
{
"name": "Jupyter Notebook",
"bytes": "715206"
},
{
"name": "Lua",
"bytes": "10378"
},
{
"name": "Makefile",
"bytes": "135"
},
{
"name": "Python",
"bytes": "411323"
},
{
"name": "Shell",
"bytes": "36760"
},
{
"name": "Smarty",
"bytes": "60272"
}
],
"symlink_target": ""
} |
require_relative "linked_list"
# Implement a Queue using a linked list
# Note:
# 1. All operations should take O(1) time
# 2. You'll need to modify the LinkedList to achieve constant
# time enqueue and dequeue operations.
class Queue
def initialize
end
# Places +item+ at the back of the queue
def enqueue(item)
end
# Removes the item at the front of the queue and returns it
# Raises an error if the queue is empty
def dequeue
end
# Return the item at the front of the queue without dequeing it
def peek
end
# Return true if the queue is empty and false otherwise
def empty?
end
# Return the number of items on the stack
def size
end
end
| {
"content_hash": "06baaee8d60359387854a4bd1e8cb89d",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 65,
"avg_line_length": 21.5625,
"alnum_prop": 0.7101449275362319,
"repo_name": "codeunion/data-structures",
"id": "cfc6cbbb47f0d80d7c7fffa6ca163f94c6470f18",
"size": "690",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "queue.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "12152"
}
],
"symlink_target": ""
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Mirrored from bvs.wikidot.com/forum/t-243161/monster:ham by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 03:55:51 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
<title>Ham - Billy Vs. SNAKEMAN Wiki</title>
<script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--javascript/init.combined.js"></script>
<script type="text/javascript">
var URL_HOST = 'www.wikidot.com';
var URL_DOMAIN = 'wikidot.com';
var USE_SSL = true ;
var URL_STATIC = 'http://d3g0gp89917ko0.cloudfront.net/v--291054f06006';
// global request information
var WIKIREQUEST = {};
WIKIREQUEST.info = {};
WIKIREQUEST.info.domain = "bvs.wikidot.com";
WIKIREQUEST.info.siteId = 32011;
WIKIREQUEST.info.siteUnixName = "bvs";
WIKIREQUEST.info.categoryId = 182512;
WIKIREQUEST.info.themeId = 9564;
WIKIREQUEST.info.requestPageName = "forum:thread";
OZONE.request.timestamp = 1657422209;
OZONE.request.date = new Date();
WIKIREQUEST.info.lang = 'en';
WIKIREQUEST.info.pageUnixName = "forum:thread";
WIKIREQUEST.info.pageId = 2987325;
WIKIREQUEST.info.lang = "en";
OZONE.lang = "en";
var isUAMobile = !!/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
</script>
<script type="text/javascript">
require.config({
baseUrl: URL_STATIC + '/common--javascript',
paths: {
'jquery.ui': 'jquery-ui.min',
'jquery.form': 'jquery.form'
}
});
</script>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<link rel="canonical" href="../../monster_ham.html" />
<meta http-equiv="content-language" content="en"/>
<script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--javascript/WIKIDOT.combined.js"></script>
<style type="text/css" id="internal-style">
/* modules */
/* theme */
@import url(http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--theme/base/css/style.css);
@import url(http://bvs.wdfiles.com/local--theme/north/style.css);
</style>
<link rel="shortcut icon" href="../../local--favicon/favicon.gif"/>
<link rel="icon" type="image/gif" href="../../local--favicon/favicon.gif"/>
<link rel="apple-touch-icon" href="../../common--images/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="../../common--images/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="../../common--images/apple-touch-icon-114x114.png" />
<link rel="alternate" type="application/wiki" title="Edit this page" href="javascript:WIKIDOT.page.listeners.editClick()"/>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18234656-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['old._setAccount', 'UA-68540-5']);
_gaq.push(['old._setDomainName', 'none']);
_gaq.push(['old._setAllowLinker', true]);
_gaq.push(['old._trackPageview']);
_gaq.push(['userTracker._setAccount', 'UA-3581307-1']);
_gaq.push(['userTracker._trackPageview']);
</script>
<script type="text/javascript">
window.google_analytics_uacct = 'UA-18234656-1';
window.google_analytics_domain_name = 'none';
</script>
<link rel="manifest" href="../../onesignal/manifest.html" />
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" acync=""></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: null,
});
});
</script>
<link rel="alternate" type="application/rss+xml" title="Posts in the discussion thread "Ham"" href="../../feed/forum/t-243161.xml"/><script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--modules/js/forum/ForumViewThreadModule.js"></script>
<script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--291054f06006/common--modules/js/forum/ForumViewThreadPostsModule.js"></script>
</head>
<body id="html-body">
<div id="skrollr-body">
<a name="page-top"></a>
<div id="container-wrap-wrap">
<div id="container-wrap">
<div id="container">
<div id="header">
<h1><a href="../../index.html"><span>Billy Vs. SNAKEMAN Wiki</span></a></h1>
<h2><span>Be the Ultimate Ninja.</span></h2>
<!-- google_ad_section_start(weight=ignore) -->
<div id="search-top-box" class="form-search">
<form id="search-top-box-form" action="http://bvs.wikidot.com/forum/t-243161/dummy" class="input-append">
<input id="search-top-box-input" class="text empty search-query" type="text" size="15" name="query" value="Search this site" onfocus="if(YAHOO.util.Dom.hasClass(this, 'empty')){YAHOO.util.Dom.removeClass(this,'empty'); this.value='';}"/><input class="button btn" type="submit" name="search" value="Search"/>
</form>
</div>
<div id="top-bar">
<ul>
<li><a href="../../allies.html">Allies</a>
<ul>
<li><strong><a href="../../untabbed_allies.html">Allies Untabbed</a></strong></li>
<li><a href="../../allies.html#toc7">Burger Ninja</a></li>
<li><a href="../../allies.html#toc5">Reaper</a></li>
<li><a href="../../allies.html#toc0">Regular</a></li>
<li><a href="../../allies.html#toc8">R00t</a></li>
<li><a href="../../allies.html#toc1">Season 2+</a></li>
<li><a href="../../allies.html#toc2">Season 3+</a></li>
<li><a href="../../allies.html#toc3">Season 4+</a></li>
<li><a href="../../allies.html#toc4">The Trade</a></li>
<li><a href="../../allies.html#toc6">Wasteland</a></li>
<li><a href="../../allies.html#toc9">World Kaiju</a></li>
<li><strong><a href="../../summons.html">Summons</a></strong></li>
<li><strong><a href="../../teams.html">Teams</a></strong></li>
</ul>
</li>
<li><a href="../../missions.html">Missions</a>
<ul>
<li><strong><a href="../../untabbed_missions.html">Missions Untabbed</a></strong></li>
<li><strong><em><a href="../../missions.html#toc0">D-Rank</a></em></strong></li>
<li><strong><em><a href="../../missions.html#toc1">C-Rank</a></em></strong></li>
<li><strong><em><a href="../../missions.html#toc2">B-Rank</a></em></strong></li>
<li><strong><em><a href="../../missions.html#toc3">A-Rank</a></em></strong></li>
<li><strong><em><a href="../../missions.html#toc4">AA-Rank</a></em></strong></li>
<li><strong><em><a href="../../missions.html#toc5">S-Rank</a></em></strong></li>
<li><a href="../../missions.html#toc10">BurgerNinja</a></li>
<li><a href="../../missions.html#toc14">Cave</a></li>
<li><a href="../../missions.html#toc13">Jungle</a></li>
<li><a href="../../missions.html#toc7">Monochrome</a></li>
<li><a href="../../missions.html#toc8">Outskirts</a></li>
<li><a href="../../missions.html#toc11">PizzaWitch</a></li>
<li><a href="../../missions.html#toc6">Reaper</a></li>
<li><a href="../../missions.html#toc9">Wasteland</a></li>
<li><a href="../../missions.html#toc12">Witching Hour</a></li>
<li><strong><em><a href="../../missions.html#toc14">Quests</a></em></strong></li>
<li><a href="../../wota.html">Mission Lady Alley</a></li>
</ul>
</li>
<li><a href="../../items.html">Items</a>
<ul>
<li><strong><a href="../../untabbed_items.html">Items Untabbed</a></strong></li>
<li><a href="../../items.html#toc6">Ally Drops and Other</a></li>
<li><a href="../../items.html#toc0">Permanent Items</a></li>
<li><a href="../../items.html#toc1">Potions/Crafting Items</a>
<ul>
<li><a href="../../items.html#toc4">Crafting</a></li>
<li><a href="../../items.html#toc3">Ingredients</a></li>
<li><a href="../../items.html#toc2">Potions</a></li>
</ul>
</li>
<li><a href="../../items.html#toc5">Wasteland Items</a></li>
<li><a href="../../sponsored-items.html">Sponsored Items</a></li>
</ul>
</li>
<li><a href="../../village.html">Village</a>
<ul>
<li><a href="../../billycon.html">BillyCon</a>
<ul>
<li><a href="../../billycon_billy-idol.html">Billy Idol</a></li>
<li><a href="../../billycon_cosplay.html">Cosplay</a></li>
<li><a href="../../billycon_dealer-s-room.html">Dealer's Room</a></li>
<li><a href="../../billycon_events.html">Events</a></li>
<li><a href="../../billycon_glowslinging.html">Glowslinging</a></li>
<li><a href="../../billycon_rave.html">Rave</a></li>
<li><a href="../../billycon_squee.html">Squee</a></li>
<li><a href="../../billycon_video-game-tournament.html">Video Game Tournament</a></li>
<li><a href="../../billycon_wander.html">Wander</a></li>
</ul>
</li>
<li><a href="../../billytv.html">BillyTV</a></li>
<li><a href="../../bingo-ing.html">Bingo'ing</a></li>
<li><a href="../../candyween.html">Candyween</a></li>
<li><a href="../../festival.html">Festival Day</a>
<ul>
<li><a href="../../festival_bargltron.html">Bargltron</a></li>
<li><a href="../../festival_billymaze.html">BillyMaze</a></li>
<li><a href="../../festival_dance-party.html">Dance Party</a></li>
<li><a href="../../festival_elevensnax.html">ElevenSnax</a></li>
<li><a href="../../festival_marksman.html">Marksman</a></li>
<li><a href="../../festival_raffle.html">Raffle</a></li>
<li><a href="../../festival_rngshack.html">RNGShack</a></li>
<li><a href="../../festival_tsukiroll.html">TsukiRoll</a></li>
<li><a href="../../festival_tunnel.html">Tunnel</a></li>
</ul>
</li>
<li><a href="../../hidden-hoclaus.html">Hidden HoClaus</a></li>
<li><a href="../../kaiju.html">Kaiju</a></li>
<li><a href="../../marketplace.html">Marketplace</a></li>
<li><a href="../../pizzawitch-garage.html">PizzaWitch Garage</a></li>
<li><a href="../../robo-fighto.html">Robo Fighto</a></li>
<li>R00t
<ul>
<li><a href="../../fields.html">Fields</a></li>
<li><a href="../../keys.html">Keys</a></li>
<li><a href="../../phases.html">Phases</a></li>
</ul>
</li>
<li><a href="../../upgrade_science-facility.html#toc2">SCIENCE!</a></li>
<li><a href="../../upgrades.html">Upgrades</a></li>
<li><a href="../../zombjas.html">Zombjas</a></li>
</ul>
</li>
<li><a href="../../misc_party-house.html">Party House</a>
<ul>
<li><a href="../../partyhouse_11dbhk-s-lottery.html">11DBHK's Lottery</a></li>
<li><a href="../../partyhouse_akatsukiball.html">AkaTsukiBall</a></li>
<li><a href="../../upgrade_claw-machines.html">Crane Game!</a></li>
<li><a href="../../upgrade_darts-hall.html">Darts!</a></li>
<li><a href="../../partyhouse_flower-wars.html">Flower Wars</a></li>
<li><a href="../../upgrade_juice-bar.html">'Juice' Bar</a></li>
<li><a href="../../partyhouse_mahjong.html">Mahjong</a></li>
<li><a href="../../partyhouse_ninja-jackpot.html">Ninja Jackpot!</a></li>
<li><a href="../../partyhouse_over-11-000.html">Over 11,000</a></li>
<li><a href="../../partyhouse_pachinko.html">Pachinko</a></li>
<li><a href="../../partyhouse_party-room.html">Party Room</a></li>
<li><a href="../../partyhouse_pigeons.html">Pigeons</a></li>
<li><a href="../../partyhouse_prize-wheel.html">Prize Wheel</a></li>
<li><a href="../../partyhouse_roulette.html">Roulette</a></li>
<li><a href="../../partyhouse_scratchy-tickets.html">Scratchy Tickets</a></li>
<li><a href="../../partyhouse_snakeman.html">SNAKEMAN</a></li>
<li><a href="../../partyhouse_superfail.html">SUPERFAIL</a></li>
<li><a href="../../partyhouse_tip-line.html">Tip Line</a></li>
<li><a href="../../partyhouse_the-big-board.html">The Big Board</a></li>
<li><a href="../../partyhouse_the-first-loser.html">The First Loser</a></li>
</ul>
</li>
<li><a href="../../guides.html">Guides</a>
<ul>
<li><a href="../../guide_billycon.html">BillyCon Guide</a></li>
<li><a href="../../guide_burgerninja.html">BurgerNinja Guide</a></li>
<li><a href="../../guide_candyween.html">Candyween Guide</a></li>
<li><a href="../../guide_glossary.html">Glossary</a></li>
<li><a href="../../guide_gs.html">Glowslinging Strategy Guide</a></li>
<li><a href="../../guide_hq.html">Hero's Quest</a></li>
<li><a href="../../guide_looping.html">Looping Guide</a></li>
<li><a href="../../guide_monochrome.html">Monochrome Guide</a></li>
<li><a href="../../overnight-bonuses.html">Overnight Bonuses</a></li>
<li><a href="../../guide_pizzawitch.html">PizzaWitch Guide</a></li>
<li><a href="../../tabbed_potions-crafting.html">Potions / Crafting</a>
<ul>
<li><a href="../../tabbed_potions-crafting.html#toc3">Crafting</a>
<ul>
<li><a href="../../tabbed_potions-crafting.html#toc4">Items</a></li>
<li><a href="../../tabbed_potions-crafting.html#toc5">Materials</a></li>
</ul>
</li>
<li><a href="../../tabbed_potions-crafting.html#toc0">Potion Mixing</a>
<ul>
<li><a href="../../tabbed_potions-crafting.html#toc2">Mixed Ingredients</a></li>
<li><a href="../../tabbed_potions-crafting.html#toc1">Potions</a></li>
</ul>
</li>
<li><a href="../../tabbed_potions-crafting.html#toc6">Reduction Laboratory</a>
<ul>
<li><a href="../../tabbed_potions-crafting.html#toc8">Potions and Ingredients</a></li>
<li><a href="../../tabbed_potions-crafting.html#toc7">Wasteland Items</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="../../guide_impossible-mission.html">Impossible Mission Guide</a></li>
<li><a href="../../guide_xp.html">Ranking Guide</a></li>
<li><a href="../../guide_reaper.html">Reaper Guide</a></li>
<li><a href="../../guide_rgg.html">Reaper's Game Guide</a></li>
<li><a href="../../guide_r00t.html">R00t Guide</a></li>
<li><a href="../../guide_speed-content.html">Speed Content Guide</a></li>
<li><a href="../../guide_speedlooping.html">Speedlooping Guide</a></li>
<li><a href="../../guide_thetrade.html">The Trade Guide</a></li>
<li><a href="../../guide_wasteland.html">Wasteland Guide</a></li>
</ul>
</li>
<li>Other
<ul>
<li><a href="../../arena.html">Arena</a></li>
<li><a href="../../billy-club.html">Billy Club</a>
<ul>
<li><a href="../../boosters.html">Boosters</a></li>
<li><a href="../../karma.html">Karma</a></li>
</ul>
</li>
<li><a href="../../bloodline.html">Bloodlines</a></li>
<li><a href="../../jutsu.html">Jutsu</a>
<ul>
<li><a href="../../jutsu.html#toc2">Bloodline Jutsu</a></li>
<li><a href="../../jutsu.html#toc0">Regular Jutsu</a></li>
<li><a href="../../jutsu.html#toc1">Special Jutsu</a></li>
</ul>
</li>
<li><a href="../../mission-bonus.html">Mission Bonus</a></li>
<li><a href="../../news-archive.html">News Archive</a></li>
<li><a href="../../number-one.html">Number One</a></li>
<li><a href="../../old-news-archive.html">Old News Archive</a></li>
<li><a href="../../retail_perfect-poker.html">Perfect Poker Bosses</a></li>
<li><a href="../../pets.html">Pets</a></li>
<li><a href="../../retail.html">Retail</a></li>
<li><a href="../../ryo.html">Ryo</a></li>
<li><a href="../../spar.html">Spar With Friends</a></li>
<li><a href="../../sponsored-items.html">Sponsored Items</a></li>
<li><a href="../../store.html">Store</a></li>
<li><a href="../../themes.html">Themes</a></li>
<li><a href="../../trophies.html">Trophies</a></li>
<li><a href="../../untabbed.html">Untabbed</a>
<ul>
<li><a href="../../untabbed_allies.html">Allies</a></li>
<li><a href="../../untabbed_items.html">Items</a></li>
<li><a href="../../untabbed_jutsu.html">Jutsu</a></li>
<li><a href="../../untabbed_missions.html">Missions</a></li>
<li><a href="../../untabbed_potions-crafting.html">Potions / Crafting</a></li>
</ul>
</li>
<li><a href="../../world-kaiju.html">World Kaiju</a></li>
</ul>
</li>
<li><a href="../../utilities.html">Utilities</a>
<ul>
<li><a href="http://www.cobaltknight.clanteam.com/awesomecalc.html">Awesome Calculator</a></li>
<li><a href="http://timothydryke.byethost17.com/billy/itemchecker.php">Item Checker</a></li>
<li><a href="../../utility_calculator.html">Mission Calculator</a></li>
<li><a href="../../utility_r00t-calculator.html">R00t Calculator</a></li>
<li><a href="../../utility_success-calculator.html">Success Calculator</a></li>
<li><a href="../../templates.html">Templates</a></li>
<li><a href="../../utility_chat.html">Wiki Chat Box</a></li>
</ul>
</li>
</ul>
</div>
<div id="login-status"><a href="javascript:;" onclick="WIKIDOT.page.listeners.createAccount(event)" class="login-status-create-account btn">Create account</a> <span>or</span> <a href="javascript:;" onclick="WIKIDOT.page.listeners.loginClick(event)" class="login-status-sign-in btn btn-primary">Sign in</a> </div>
<div id="header-extra-div-1"><span></span></div><div id="header-extra-div-2"><span></span></div><div id="header-extra-div-3"><span></span></div>
</div>
<div id="content-wrap">
<div id="side-bar">
<h3 ><span><a href="http://www.animecubed.com/billy/?57639" onclick="window.open(this.href, '_blank'); return false;">Play BvS Now!</a></span></h3>
<ul>
<li><a href="../../system_members.html">Site members</a></li>
<li><a href="../../system_join.html">Wiki Membership</a></li>
</ul>
<hr />
<ul>
<li><a href="../../forum_start.html">Forum Main</a></li>
<li><a href="../../forum_recent-posts.html">Recent Posts</a></li>
</ul>
<hr />
<ul>
<li><a href="../../system_recent-changes.html">Recent changes</a></li>
<li><a href="../../system_list-all-pages.html">List all pages</a></li>
<li><a href="../../system_page-tags-list.html">Page Tags</a></li>
</ul>
<hr />
<ul>
<li><a href="../../players.html">Players</a></li>
<li><a href="../../villages.html">Villages</a></li>
<li><a href="../../other-resources.html">Other Resources</a></li>
</ul>
<hr />
<p style="text-align: center;"><span style="font-size:smaller;">Notice: Do not send bug reports based on the information on this site. If this site is not matching up with what you're experiencing in game, that is a problem with this site, not with the game.</span></p>
</div>
<!-- google_ad_section_end -->
<div id="main-content">
<div id="action-area-top"></div>
<div id="page-title"><a href="../../monster_ham.html">Ham</a> / Discussion</h1></div>
<div id="page-content">
<div class="forum-thread-box ">
<div class="forum-breadcrumbs">
<a href="../start.html">Forum</a>
» <a href="../c-30019/per-page-discussions.html">Hidden / Per page discussions</a>
» Ham
</div>
<div class="description-block well">
<div class="statistics">
Started by: <span class="printuser">Wikidot</span><br/>
Date: <span class="odate time_1274563395 format_%25e%20%25b%20%25Y%2C%20%25H%3A%25M%7Cagohover">22 May 2010 21:23</span><br/>
Number of posts: 1<br/>
<span class="rss-icon"><img src="http://www.wikidot.com/common--theme/base/images/feed/feed-icon-14x14.png" alt="rss icon"/></span>
RSS: <a href="../../feed/forum/t-243161.xml">New posts</a>
</div>
This is the discussion related to the wiki page <a href="../../monster_ham.html">Ham</a>.
</div>
<div class="options">
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.unfoldAll(event)" class="btn btn-default btn-small btn-sm">Unfold All</a>
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.foldAll(event)" class="btn btn-default btn-small btn-sm">Fold All</a>
<a href="javascript:;" id="thread-toggle-options" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.toggleThreadOptions(event)" class="btn btn-default btn-small btn-sm"><i class="icon-plus"></i> More Options</a>
</div>
<div id="thread-options-2" class="options" style="display: none">
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.editThreadBlock(event)" class="btn btn-default btn-small btn-sm">Lock Thread</a>
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.moveThread(event)" class="btn btn-default btn-small btn-sm">Move Thread</a>
</div>
<div id="thread-action-area" class="action-area well" style="display: none"></div>
<div id="thread-container" class="thread-container">
<div id="thread-container-posts" style="display: none">
<div class="post-container" id="fpc-791848">
<div class="post" id="post-791848">
<div class="long">
<div class="head">
<div class="options">
<a href="javascript:;" onclick="togglePostFold(event,791848)" class="btn btn-default btn-small btn-sm">Fold</a>
</div>
<div class="title" id="post-title-791848">
Trivia
</div>
<div class="info">
<span class="printuser avatarhover"><a href="http://www.wikidot.com/user:info/skarn22" onclick="WIKIDOT.page.listeners.userInfo(372883); return false;" ><img class="small" src="http://www.wikidot.com/avatar.php?userid=372883&amp;size=small&amp;timestamp=1657422209" alt="Skarn22" style="background-image:url(http://www.wikidot.com/userkarma.php?u=372883)"/></a><a href="http://www.wikidot.com/user:info/skarn22" onclick="WIKIDOT.page.listeners.userInfo(372883); return false;" >Skarn22</a></span> <span class="odate time_1274656759 format_%25e%20%25b%20%25Y%2C%20%25H%3A%25M%7Cagohover">23 May 2010 23:19</span>
</div>
</div>
<div class="content" id="post-content-791848">
<p>Judging by the text and the picture, this Kaiju seems to use the same reference as Floating on Air. <a href="http://youtube.com/watch?v=xv3vG-TVhaY">http://youtube.com/watch?v=xv3vG-TVhaY</a></p>
</div>
<div class="options">
<a href="javascript:;" onclick="togglePostOptions(event,791848)" class="btn btn-default btn-small btn-sm">Options</a>
</div>
<div id="post-options-791848" class="options" style="display: none">
</div>
</div>
<div class="short">
<a class="options btn btn-default btn-mini btn-xs" href="javascript:;" onclick="togglePostFold(event,791848)" c>Unfold</a>
<a class="title" href="javascript:;" onclick="togglePostFold(event,791848)">Trivia</a> by <span class="printuser avatarhover"><a href="http://www.wikidot.com/user:info/skarn22" onclick="WIKIDOT.page.listeners.userInfo(372883); return false;" ><img class="small" src="http://www.wikidot.com/avatar.php?userid=372883&amp;size=small&amp;timestamp=1657422209" alt="Skarn22" style="background-image:url(http://www.wikidot.com/userkarma.php?u=372883)"/></a><a href="http://www.wikidot.com/user:info/skarn22" onclick="WIKIDOT.page.listeners.userInfo(372883); return false;" >Skarn22</a></span>, <span class="odate time_1274656759 format_%25e%20%25b%20%25Y%2C%20%25H%3A%25M%7Cagohover">23 May 2010 23:19</span>
</div>
</div>
</div>
</div>
</div>
<div class="new-post">
<a href="javascript:;" id="new-post-button" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.newPost(event,null)" class="btn btn-default">New Post</a>
</div>
<div style="display:none" id="post-options-template">
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.showPermalink(event,'%POST_ID%')" class="btn btn-default btn-small btn-sm">Permanent Link</a>
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.editPost(event,'%POST_ID%')" class="btn btn-default btn-small btn-sm">Edit</a>
<a href="javascript:;" onclick="WIKIDOT.modules.ForumViewThreadModule.listeners.deletePost(event,'%POST_ID%')"class="btn btn-danger btn-small btn-sm">Delete</a>
</div>
<div style="display:none" id="post-options-permalink-template">/forum/t-243161/ham#post-</div>
</div>
<script type="text/javascript">
WIKIDOT.forumThreadId = 243161;
</script>
</div>
<div id="page-info-break"></div>
<div id="page-options-container">
</div>
<div id="action-area" style="display: none;"></div>
</div>
</div>
<div id="footer" style="display: block; visibility: visible;">
<div class="options" style="display: block; visibility: visible;">
<a href="http://www.wikidot.com/doc" id="wikidot-help-button">Help</a>
|
<a href="http://www.wikidot.com/legal:terms-of-service" id="wikidot-tos-button">Terms of Service</a>
|
<a href="http://www.wikidot.com/legal:privacy-policy" id="wikidot-privacy-button">Privacy</a>
|
<a href="javascript:;" id="bug-report-button" onclick="WIKIDOT.page.listeners.pageBugReport(event)">Report a bug</a>
|
<a href="javascript:;" id="abuse-report-button" onclick="WIKIDOT.page.listeners.flagPageObjectionable(event)">Flag as objectionable</a>
</div>
Powered by <a href="http://www.wikidot.com/">Wikidot.com</a>
</div>
<div id="license-area" class="license-area">
Unless otherwise stated, the content of this page is licensed under <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 License</a>
</div>
<div id="extrac-div-1"><span></span></div><div id="extrac-div-2"><span></span></div><div id="extrac-div-3"><span></span></div>
</div>
</div>
<!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->
<div id="extra-div-1"><span></span></div><div id="extra-div-2"><span></span></div><div id="extra-div-3"><span></span></div>
<div id="extra-div-4"><span></span></div><div id="extra-div-5"><span></span></div><div id="extra-div-6"><span></span></div>
</div>
</div>
<div id="dummy-ondomready-block" style="display: none;" ></div>
<!-- Google Analytics load -->
<script type="text/javascript">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Quantcast -->
<script type="text/javascript">
_qoptions={
qacct:"p-edL3gsnUjJzw-"
};
(function() {
var qc = document.createElement('script'); qc.type = 'text/javascript'; qc.async = true;
qc.src = ('https:' == document.location.protocol ? 'https://secure' : 'http://edge') + '.quantserve.com/quant.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(qc, s);
})();
</script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-edL3gsnUjJzw-.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
<div id="page-options-bottom-tips" style="display: none;">
<div id="edit-button-hovertip">
Click here to edit contents of this page. </div>
</div>
<div id="page-options-bottom-2-tips" style="display: none;">
<div id="edit-sections-button-hovertip">
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available. </div>
<div id="edit-append-button-hovertip">
Append content without editing the whole page source. </div>
<div id="history-button-hovertip">
Check out how this page has evolved in the past. </div>
<div id="discuss-button-hovertip">
If you want to discuss contents of this page - this is the easiest way to do it. </div>
<div id="files-button-hovertip">
View and manage file attachments for this page. </div>
<div id="site-tools-button-hovertip">
A few useful tools to manage this Site. </div>
<div id="backlinks-button-hovertip">
See pages that link to and include this page. </div>
<div id="rename-move-button-hovertip">
Change the name (also URL address, possibly the category) of the page. </div>
<div id="view-source-button-hovertip">
View wiki source for this page without editing. </div>
<div id="parent-page-button-hovertip">
View/set parent page (used for creating breadcrumbs and structured layout). </div>
<div id="abuse-report-button-hovertip">
Notify administrators if there is objectionable content in this page. </div>
<div id="bug-report-button-hovertip">
Something does not work as expected? Find out what you can do. </div>
<div id="wikidot-help-button-hovertip">
General Wikidot.com documentation and help section. </div>
<div id="wikidot-tos-button-hovertip">
Wikidot.com Terms of Service - what you can, what you should not etc. </div>
<div id="wikidot-privacy-button-hovertip">
Wikidot.com Privacy Policy.
</div>
</div>
</body>
<!-- Mirrored from bvs.wikidot.com/forum/t-243161/monster:ham by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 03:55:52 GMT -->
</html> | {
"content_hash": "2ac0e5d7a11a5f589274783cdef96984",
"timestamp": "",
"source": "github",
"line_count": 683,
"max_line_length": 717,
"avg_line_length": 44.710102489019036,
"alnum_prop": 0.5996332318171399,
"repo_name": "tn5421/tn5421.github.io",
"id": "f300c21364f537864cbd1a7ecbace82d79bac8ac",
"size": "30537",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "bvs.wikidot.com/forum/t-243161/monster_ham.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "400301089"
}
],
"symlink_target": ""
} |
use std::old_io;
use std::iter;
use std::fmt;
use common;
use name::Name;
use attribute::Attribute;
use escape::escape_str;
use common::XmlVersion;
use namespace::{NamespaceStack, NamespaceIterable, UriMapping};
use writer::config::EmitterConfig;
pub enum EmitterErrorKind {
IoError,
DocumentStartAlreadyEmitted,
UnexpectedEvent,
InvalidWhitespaceEvent
}
pub struct EmitterError {
kind: EmitterErrorKind,
message: &'static str,
cause: Option<old_io::IoError>
}
impl fmt::Show for EmitterError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(write!(f, "Emitter error: {:?}", self.message));
if self.cause.is_some() {
write!(f, "; caused by: {:?}", *self.cause.as_ref().unwrap())
} else {
Ok(())
}
}
}
pub fn error(kind: EmitterErrorKind, message: &'static str) -> EmitterError {
EmitterError {
kind: kind,
message: message,
cause: None
}
}
#[inline]
fn io_error(err: old_io::IoError) -> EmitterError {
EmitterError { kind: EmitterErrorKind::IoError, message: "Input/output error", cause: Some(err) }
}
pub type EmitterResult<T> = Result<T, EmitterError>;
#[inline]
pub fn io_wrap<T>(result: old_io::IoResult<T>) -> EmitterResult<T> {
result.map_err(io_error)
}
pub struct Emitter {
config: EmitterConfig,
nst: NamespaceStack,
indent_level: usize,
indent_stack: Vec<IndentFlags>,
start_document_emitted: bool
}
impl Emitter {
pub fn new(config: EmitterConfig) -> Emitter {
Emitter {
config: config,
nst: NamespaceStack::empty(),
indent_level: 0,
indent_stack: vec!(IndentFlags::empty()),
start_document_emitted: false
}
}
}
macro_rules! io_try(
($e:expr) => (
match $e {
Ok(value) => value,
Err(err) => return Err(io_error(err))
}
)
);
macro_rules! io_chain(
($e:expr) => (io_wrap($e));
($e:expr, $($rest:expr),+) => ({
io_try!($e);
io_chain!($($rest),+)
})
);
macro_rules! wrapped_with(
($_self:ident; $before_name:ident ($arg:expr) and $after_name:ident, $body:expr) => ({
try!($_self.$before_name($arg));
let result = $body;
$_self.$after_name();
result
})
);
macro_rules! if_present(
($opt:ident, $body:expr) => ($opt.map(|$opt| $body).unwrap_or(Ok(())))
);
bitflags!(
flags IndentFlags: u8 {
const WROTE_NOTHING = 0,
const WROTE_MARKUP = 1,
const WROTE_TEXT = 2
}
);
impl Emitter {
/// Returns current state of namespaces.
#[inline]
pub fn namespace_stack<'a>(&'a self) -> &'a NamespaceStack {
& self.nst
}
#[inline]
fn wrote_text(&self) -> bool {
self.indent_stack.last().unwrap().contains(WROTE_TEXT)
}
#[inline]
fn wrote_markup(&self) -> bool {
self.indent_stack.last().unwrap().contains(WROTE_MARKUP)
}
#[inline]
fn set_wrote_text(&mut self) {
*self.indent_stack.last_mut().unwrap() = WROTE_TEXT;
}
#[inline]
fn set_wrote_markup(&mut self) {
*self.indent_stack.last_mut().unwrap() = WROTE_MARKUP;
}
#[inline]
fn reset_state(&mut self) {
*self.indent_stack.last_mut().unwrap() = WROTE_NOTHING;
}
fn write_newline<W: Writer>(&mut self, target: &mut W, level: usize) -> EmitterResult<()> {
io_try!(target.write_str(self.config.line_separator.as_slice()));
for _ in iter::range(0, level) {
io_try!(target.write_str(self.config.indent_string.as_slice()));
}
Ok(())
}
fn before_markup<W: Writer>(&mut self, target: &mut W) -> EmitterResult<()> {
if !self.wrote_text() && (self.indent_level > 0 || self.wrote_markup()) {
let indent_level = self.indent_level;
try!(self.write_newline(target, indent_level));
if self.indent_level > 0 && self.config.indent_string.len() > 0 {
self.after_markup();
}
}
Ok(())
}
fn after_markup(&mut self) {
self.set_wrote_markup();
}
fn before_start_element<W: Writer>(&mut self, target: &mut W) -> EmitterResult<()> {
try!(self.before_markup(target));
self.indent_stack.push(WROTE_NOTHING);
Ok(())
}
fn after_start_element(&mut self) {
self.after_markup();
self.indent_level += 1;
}
fn before_end_element<W: Writer>(&mut self, target: &mut W) -> EmitterResult<()> {
if self.indent_level > 0 && self.wrote_markup() && !self.wrote_text() {
let indent_level = self.indent_level;
self.write_newline(target, indent_level - 1)
} else {
Ok(())
}
}
fn after_end_element(&mut self) {
if self.indent_level > 0 {
self.indent_level -= 1;
self.indent_stack.pop();
}
self.set_wrote_markup();
}
fn after_text(&mut self) {
self.set_wrote_text();
}
pub fn emit_start_document<W: Writer>(&mut self, target: &mut W,
version: XmlVersion,
encoding: &str,
standalone: Option<bool>) -> EmitterResult<()> {
if self.start_document_emitted {
return Err(error(
EmitterErrorKind::DocumentStartAlreadyEmitted,
"Document start is already emitted"
));
}
self.start_document_emitted = true;
wrapped_with!(self; before_markup(target) and after_markup,
io_chain!(
write!(target, "<?xml version=\"{}\" encoding=\"{}\"", version.to_string(), encoding),
if_present!(standalone,
write!(target, " standalone=\"{}\"",
if standalone { "yes" } else { "no" })),
write!(target, "?>")
)
)
}
fn check_document_started<W: Writer>(&mut self, target: &mut W) -> EmitterResult<()> {
if !self.start_document_emitted && self.config.write_document_declaration {
self.emit_start_document(target, common::XmlVersion::Version10, "utf-8", None)
} else {
Ok(())
}
}
pub fn emit_processing_instruction<W: Writer>(&mut self,
target: &mut W,
name: &str,
data: Option<&str>) -> EmitterResult<()> {
try!(self.check_document_started(target));
wrapped_with!(self; before_markup(target) and after_markup,
io_chain!(
write!(target, "<?{}", name),
if_present!(data, write!(target, " {}", data)),
write!(target, "?>")
)
)
}
fn emit_start_element_initial<'a, 'b, W, N, I>(&mut self, target: &mut W,
name: Name<'b>,
attributes: &[Attribute],
namespace: &'a N) -> EmitterResult<()>
where W: Writer,
N: NamespaceIterable<'a, Iter=I>,
I: Iterator<Item=UriMapping<'a>>
{
try!(self.check_document_started(target));
try!(self.before_start_element(target));
io_try!(write!(target, "<{}", name.to_repr()));
try!(self.emit_namespace_attributes(target, namespace));
self.emit_attributes(target, attributes)
}
pub fn emit_empty_element<'a, 'b, W, N, I>(&mut self, target: &mut W,
name: Name<'b>,
attributes: &[Attribute],
namespace: &'a N) -> EmitterResult<()>
where W: Writer,
N: NamespaceIterable<'a, Iter=I>,
I: Iterator<Item=UriMapping<'a>>
{
try!(self.emit_start_element_initial(target, name, attributes, namespace));
io_wrap(write!(target, "/>"))
}
pub fn emit_start_element<'a, 'b, W, N, I>(&mut self, target: &mut W,
name: Name<'b>,
attributes: &[Attribute],
namespace: &'a N) -> EmitterResult<()>
where W: Writer,
N: NamespaceIterable<'a, Iter=I>,
I: Iterator<Item=UriMapping<'a>>
{
try!(self.emit_start_element_initial(target, name, attributes, namespace));
io_wrap(write!(target, ">"))
}
pub fn emit_namespace_attributes<'a, W, N, I>(&mut self, target: &mut W,
namespace: &'a N) -> EmitterResult<()>
where W: Writer,
N: NamespaceIterable<'a, Iter=I>,
I: Iterator<Item=UriMapping<'a>>
{
for (prefix, uri) in namespace.uri_mappings() {
io_try!(match prefix {
Some("xmlns") | Some("xml") => Ok(()), // emit nothing
Some(prefix) => write!(target, " xmlns:{}=\"{}\"", prefix, uri),
None => if !uri.is_empty() { // emit xmlns only if it is overridden
write!(target, " xmlns=\"{}\"", uri)
} else { Ok(()) }
});
}
Ok(())
}
pub fn emit_attributes<W: Writer>(&mut self, target: &mut W,
attributes: &[Attribute]) -> EmitterResult<()> {
for attr in attributes.iter() {
io_try!(write!(target, " {}=\"{}\"", attr.name.to_repr(), escape_str(attr.value)))
}
Ok(())
}
pub fn emit_end_element<W: Writer>(&mut self, target: &mut W,
name: Name) -> EmitterResult<()> {
wrapped_with!(self; before_end_element(target) and after_end_element,
io_wrap(write!(target, "</{}>", name.to_repr()))
)
}
pub fn emit_cdata<W: Writer>(&mut self, target: &mut W, content: &str) -> EmitterResult<()> {
if self.config.cdata_to_characters {
self.emit_characters(target, content)
} else {
io_try!(target.write_str("<![CDATA["));
io_try!(target.write_str(content));
io_try!(target.write_str("]]>"));
self.after_text();
Ok(())
}
}
pub fn emit_characters<W: Writer>(&mut self, target: &mut W,
content: &str) -> EmitterResult<()> {
io_try!(target.write_str(escape_str(content).as_slice()));
self.after_text();
Ok(())
}
pub fn emit_comment<W: Writer>(&mut self, target: &mut W, content: &str) -> EmitterResult<()> {
Ok(()) // TODO: proper write
}
}
| {
"content_hash": "250dd87f73878cfdc454206c23fa30fb",
"timestamp": "",
"source": "github",
"line_count": 359,
"max_line_length": 102,
"avg_line_length": 30.71309192200557,
"alnum_prop": 0.4978233266823871,
"repo_name": "frewsxcv/xml-rs",
"id": "40e9b21b4bf10e06b0c7a52f7551333ccae77fff",
"size": "11026",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/writer/emitter.rs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Rust",
"bytes": "136933"
}
],
"symlink_target": ""
} |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// BankCardInfo Data Structure.
/// </summary>
[Serializable]
public class BankCardInfo : AopObject
{
/// <summary>
/// 银行开户行名称。填写支行名称。
/// </summary>
[XmlElement("bank_branch_name")]
public string BankBranchName { get; set; }
/// <summary>
/// 银行卡持卡人姓名
/// </summary>
[XmlElement("card_name")]
public string CardName { get; set; }
/// <summary>
/// 银行卡号
/// </summary>
[XmlElement("card_no")]
public string CardNo { get; set; }
}
}
| {
"content_hash": "b1e6d83f50deff2ba5560b397e16f61a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 50,
"avg_line_length": 22.4,
"alnum_prop": 0.5193452380952381,
"repo_name": "329277920/Snail",
"id": "f0c6e451e0cea68672eb0f7135d247ea25d2ed1d",
"size": "726",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Snail.Pay.Ali.Sdk/Domain/BankCardInfo.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "8409939"
},
{
"name": "CSS",
"bytes": "8789"
},
{
"name": "Dockerfile",
"bytes": "639"
},
{
"name": "HTML",
"bytes": "14995"
},
{
"name": "JavaScript",
"bytes": "29933"
}
],
"symlink_target": ""
} |
namespace v8 {
namespace internal {
namespace compiler {
OsrHelper::OsrHelper(CompilationInfo* info)
: parameter_count_(info->scope()->num_parameters()),
stack_slot_count_(info->scope()->num_stack_slots() +
info->osr_expr_stack_height()) {}
// Peel outer loops and rewire the graph so that control reduction can
// produce a properly formed graph.
static void PeelOuterLoopsForOsr(Graph* graph, CommonOperatorBuilder* common,
Zone* tmp_zone, Node* dead,
LoopTree* loop_tree, LoopTree::Loop* osr_loop,
Node* osr_normal_entry, Node* osr_loop_entry) {
const int original_count = graph->NodeCount();
AllNodes all(tmp_zone, graph);
NodeVector tmp_inputs(tmp_zone);
Node* sentinel = graph->NewNode(dead->op());
// Make a copy of the graph for each outer loop.
ZoneVector<NodeVector*> copies(tmp_zone);
for (LoopTree::Loop* loop = osr_loop->parent(); loop; loop = loop->parent()) {
void* stuff = tmp_zone->New(sizeof(NodeVector));
NodeVector* mapping =
new (stuff) NodeVector(original_count, sentinel, tmp_zone);
copies.push_back(mapping);
// Prepare the mapping for OSR values and the OSR loop entry.
mapping->at(osr_normal_entry->id()) = dead;
mapping->at(osr_loop_entry->id()) = dead;
// The outer loops are dead in this copy.
for (LoopTree::Loop* outer = loop->parent(); outer;
outer = outer->parent()) {
for (Node* node : loop_tree->HeaderNodes(outer)) {
mapping->at(node->id()) = dead;
}
}
// Copy all nodes.
for (size_t i = 0; i < all.live.size(); i++) {
Node* orig = all.live[i];
Node* copy = mapping->at(orig->id());
if (copy != sentinel) {
// Mapping already exists.
continue;
}
if (orig->InputCount() == 0 || orig->opcode() == IrOpcode::kParameter ||
orig->opcode() == IrOpcode::kOsrValue) {
// No need to copy leaf nodes or parameters.
mapping->at(orig->id()) = orig;
continue;
}
// Copy the node.
tmp_inputs.clear();
for (Node* input : orig->inputs()) {
tmp_inputs.push_back(mapping->at(input->id()));
}
copy = graph->NewNode(orig->op(), orig->InputCount(), &tmp_inputs[0]);
if (NodeProperties::IsTyped(orig)) {
NodeProperties::SetBounds(copy, NodeProperties::GetBounds(orig));
}
mapping->at(orig->id()) = copy;
}
// Fix missing inputs.
for (size_t i = 0; i < all.live.size(); i++) {
Node* orig = all.live[i];
Node* copy = mapping->at(orig->id());
for (int j = 0; j < copy->InputCount(); j++) {
Node* input = copy->InputAt(j);
if (input == sentinel)
copy->ReplaceInput(j, mapping->at(orig->InputAt(j)->id()));
}
}
// Construct the transfer from the previous graph copies to the new copy.
Node* loop_header = loop_tree->HeaderNode(loop);
NodeVector* previous =
copies.size() > 1 ? copies[copies.size() - 2] : nullptr;
const int backedges = loop_header->op()->ControlInputCount() - 1;
if (backedges == 1) {
// Simple case. Map the incoming edges to the loop to the previous copy.
for (Node* node : loop_tree->HeaderNodes(loop)) {
if (!all.IsLive(node)) continue; // dead phi hanging off loop.
Node* copy = mapping->at(node->id());
Node* backedge = node->InputAt(1);
if (previous) backedge = previous->at(backedge->id());
copy->ReplaceInput(0, backedge);
}
} else {
// Complex case. Multiple backedges. Introduce a merge for incoming edges.
tmp_inputs.clear();
for (int i = 0; i < backedges; i++) {
Node* backedge = loop_header->InputAt(i + 1);
if (previous) backedge = previous->at(backedge->id());
tmp_inputs.push_back(backedge);
}
Node* merge =
graph->NewNode(common->Merge(backedges), backedges, &tmp_inputs[0]);
for (Node* node : loop_tree->HeaderNodes(loop)) {
if (!all.IsLive(node)) continue; // dead phi hanging off loop.
Node* copy = mapping->at(node->id());
if (node == loop_header) {
// The entry to the loop is the merge.
copy->ReplaceInput(0, merge);
} else {
// Merge inputs to the phi at the loop entry.
tmp_inputs.clear();
for (int i = 0; i < backedges; i++) {
Node* backedge = node->InputAt(i + 1);
if (previous) backedge = previous->at(backedge->id());
tmp_inputs.push_back(backedge);
}
tmp_inputs.push_back(merge);
Node* phi =
graph->NewNode(common->ResizeMergeOrPhi(node->op(), backedges),
backedges + 1, &tmp_inputs[0]);
copy->ReplaceInput(0, phi);
}
}
}
}
// Kill the outer loops in the original graph.
for (LoopTree::Loop* outer = osr_loop->parent(); outer;
outer = outer->parent()) {
loop_tree->HeaderNode(outer)->ReplaceUses(dead);
}
// Merge the ends of the graph copies.
Node* end = graph->end();
tmp_inputs.clear();
for (int i = -1; i < static_cast<int>(copies.size()); i++) {
Node* input = end->InputAt(0);
if (i >= 0) input = copies[i]->at(input->id());
if (input->opcode() == IrOpcode::kMerge) {
for (Node* node : input->inputs()) tmp_inputs.push_back(node);
} else {
tmp_inputs.push_back(input);
}
}
int count = static_cast<int>(tmp_inputs.size());
Node* merge = graph->NewNode(common->Merge(count), count, &tmp_inputs[0]);
end->ReplaceInput(0, merge);
if (FLAG_trace_turbo_graph) { // Simple textual RPO.
OFStream os(stdout);
os << "-- Graph after OSR duplication -- " << std::endl;
os << AsRPO(*graph);
}
}
static void TransferOsrValueTypesFromLoopPhis(Zone* zone, Node* osr_loop_entry,
Node* osr_loop) {
// Find the index of the osr loop entry into the loop.
int index = 0;
for (index = 0; index < osr_loop->InputCount(); index++) {
if (osr_loop->InputAt(index) == osr_loop_entry) break;
}
if (index == osr_loop->InputCount()) return;
for (Node* osr_value : osr_loop_entry->uses()) {
if (osr_value->opcode() != IrOpcode::kOsrValue) continue;
bool unknown = true;
for (Node* phi : osr_value->uses()) {
if (phi->opcode() != IrOpcode::kPhi) continue;
if (NodeProperties::GetControlInput(phi) != osr_loop) continue;
if (phi->InputAt(index) != osr_value) continue;
if (NodeProperties::IsTyped(phi)) {
// Transfer the type from the phi to the OSR value itself.
Bounds phi_bounds = NodeProperties::GetBounds(phi);
if (unknown) {
NodeProperties::SetBounds(osr_value, phi_bounds);
} else {
Bounds osr_bounds = NodeProperties::GetBounds(osr_value);
NodeProperties::SetBounds(osr_value,
Bounds::Both(phi_bounds, osr_bounds, zone));
}
unknown = false;
}
}
if (unknown) NodeProperties::SetBounds(osr_value, Bounds::Unbounded(zone));
}
}
bool OsrHelper::Deconstruct(JSGraph* jsgraph, CommonOperatorBuilder* common,
Zone* tmp_zone) {
Graph* graph = jsgraph->graph();
Node* osr_normal_entry = nullptr;
Node* osr_loop_entry = nullptr;
Node* osr_loop = nullptr;
for (Node* node : graph->start()->uses()) {
if (node->opcode() == IrOpcode::kOsrLoopEntry) {
osr_loop_entry = node; // found the OSR loop entry
} else if (node->opcode() == IrOpcode::kOsrNormalEntry) {
osr_normal_entry = node;
}
}
if (osr_loop_entry == nullptr) {
// No OSR entry found, do nothing.
CHECK(osr_normal_entry);
return true;
}
for (Node* use : osr_loop_entry->uses()) {
if (use->opcode() == IrOpcode::kLoop) {
CHECK(!osr_loop); // should be only one OSR loop.
osr_loop = use; // found the OSR loop.
}
}
CHECK(osr_loop); // Should have found the OSR loop.
// Transfer the types from loop phis to the OSR values which flow into them.
TransferOsrValueTypesFromLoopPhis(graph->zone(), osr_loop_entry, osr_loop);
// Analyze the graph to determine how deeply nested the OSR loop is.
LoopTree* loop_tree = LoopFinder::BuildLoopTree(graph, tmp_zone);
Node* dead = jsgraph->DeadControl();
LoopTree::Loop* loop = loop_tree->ContainingLoop(osr_loop);
if (loop->depth() > 0) {
PeelOuterLoopsForOsr(graph, common, tmp_zone, dead, loop_tree, loop,
osr_normal_entry, osr_loop_entry);
}
// Replace the normal entry with {Dead} and the loop entry with {Start}
// and run the control reducer to clean up the graph.
osr_normal_entry->ReplaceUses(dead);
osr_normal_entry->Kill();
osr_loop_entry->ReplaceUses(graph->start());
osr_loop_entry->Kill();
// Normally the control reducer removes loops whose first input is dead,
// but we need to avoid that because the osr_loop is reachable through
// the second input, so reduce it and its phis manually.
osr_loop->ReplaceInput(0, dead);
Node* node = ControlReducer::ReduceMerge(jsgraph, common, osr_loop);
if (node != osr_loop) osr_loop->ReplaceUses(node);
// Run the normal control reduction, which naturally trims away the dead
// parts of the graph.
ControlReducer::ReduceGraph(tmp_zone, jsgraph, common);
return true;
}
void OsrHelper::SetupFrame(Frame* frame) {
// The optimized frame will subsume the unoptimized frame. Do so by reserving
// the first spill slots.
frame->ReserveSpillSlots(UnoptimizedFrameSlots());
// The frame needs to be adjusted by the number of unoptimized frame slots.
frame->SetOsrStackSlotCount(static_cast<int>(UnoptimizedFrameSlots()));
}
} // namespace compiler
} // namespace internal
} // namespace v8
| {
"content_hash": "d33eb34072e4abbb3fe29253f7d0646a",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 80,
"avg_line_length": 37.134328358208954,
"alnum_prop": 0.6009847266881029,
"repo_name": "CTSRD-SOAAP/chromium-42.0.2311.135",
"id": "b7cd7ec93f919791d32ea0ee48bb15857cd55b52",
"size": "10572",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "v8/src/compiler/osr.cc",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "AppleScript",
"bytes": "8402"
},
{
"name": "Assembly",
"bytes": "241154"
},
{
"name": "C",
"bytes": "12370053"
},
{
"name": "C++",
"bytes": "266788423"
},
{
"name": "CMake",
"bytes": "27829"
},
{
"name": "CSS",
"bytes": "813488"
},
{
"name": "Emacs Lisp",
"bytes": "2360"
},
{
"name": "Go",
"bytes": "13628"
},
{
"name": "Groff",
"bytes": "5283"
},
{
"name": "HTML",
"bytes": "20131029"
},
{
"name": "Java",
"bytes": "8495790"
},
{
"name": "JavaScript",
"bytes": "12980966"
},
{
"name": "LLVM",
"bytes": "1169"
},
{
"name": "Logos",
"bytes": "6893"
},
{
"name": "Lua",
"bytes": "16189"
},
{
"name": "Makefile",
"bytes": "208709"
},
{
"name": "Objective-C",
"bytes": "1509363"
},
{
"name": "Objective-C++",
"bytes": "7960581"
},
{
"name": "PLpgSQL",
"bytes": "215882"
},
{
"name": "Perl",
"bytes": "63937"
},
{
"name": "Protocol Buffer",
"bytes": "432373"
},
{
"name": "Python",
"bytes": "11147426"
},
{
"name": "Ragel in Ruby Host",
"bytes": "104923"
},
{
"name": "Scheme",
"bytes": "10604"
},
{
"name": "Shell",
"bytes": "1207731"
},
{
"name": "Standard ML",
"bytes": "4965"
},
{
"name": "VimL",
"bytes": "4075"
},
{
"name": "nesC",
"bytes": "18347"
}
],
"symlink_target": ""
} |
package org.equinoxosgi.toast.internal.client.emergency.bundle;
import org.equinoxosgi.toast.dev.airbag.IAirbag;
import org.equinoxosgi.toast.dev.gps.IGps;
import org.equinoxosgi.toast.internal.client.emergency.EmergencyMonitor;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
public class Activator implements BundleActivator {
private IAirbag airbag;
private ServiceTracker airbagTracker;
private BundleContext context;
private IGps gps;
private ServiceTracker gpsTracker;
private EmergencyMonitor monitor;
private void bind() {
if (gps == null) {
gps = (IGps) gpsTracker.getService();
if (gps == null)
return; // No IGps service.
}
if (airbag == null) {
airbag = (IAirbag) airbagTracker.getService();
if (airbag == null)
return; // No IAirbag service.
}
monitor.setGps(gps);
monitor.setAirbag(airbag);
monitor.startup();
}
private ServiceTrackerCustomizer createAirbagCustomizer() {
return new ServiceTrackerCustomizer() {
public Object addingService(ServiceReference reference) {
Object service = context.getService(reference);
synchronized (Activator.this) {
if (Activator.this.airbag == null) {
Activator.this.airbag = (IAirbag) service;
Activator.this.bind();
}
}
return service;
}
public void modifiedService(ServiceReference reference, Object service) {
// No service property modifications to handle.
}
public void removedService(ServiceReference reference, Object service) {
synchronized (Activator.this) {
if (service != Activator.this.airbag)
return;
Activator.this.unbind();
Activator.this.bind();
}
}
};
}
private ServiceTrackerCustomizer createGpsCustomizer() {
return new ServiceTrackerCustomizer() {
public Object addingService(ServiceReference reference) {
Object service = context.getService(reference);
synchronized (Activator.this) {
if (Activator.this.gps == null) {
Activator.this.gps = (IGps) service;
Activator.this.bind();
}
}
return service;
}
public void modifiedService(ServiceReference reference, Object service) {
// No service property modifications to handle.
}
public void removedService(ServiceReference reference, Object service) {
synchronized (Activator.this) {
if (service != Activator.this.gps)
return;
Activator.this.unbind();
Activator.this.bind();
}
}
};
}
public void start(BundleContext context) throws Exception {
this.context = context;
monitor = new EmergencyMonitor();
ServiceTrackerCustomizer gpsCustomizer = createGpsCustomizer();
gpsTracker = new ServiceTracker(context, IGps.class.getName(), gpsCustomizer);
ServiceTrackerCustomizer airbagCustomizer = createAirbagCustomizer();
airbagTracker = new ServiceTracker(context, IAirbag.class.getName(), airbagCustomizer);
gpsTracker.open();
airbagTracker.open();
}
public void stop(BundleContext context) throws Exception {
airbagTracker.close();
gpsTracker.close();
}
private void unbind() {
if (gps == null || airbag == null)
return;
monitor.shutdown();
gps = null;
airbag = null;
}
}
| {
"content_hash": "57a67957c1c4b35add8a790efc810f17",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 89,
"avg_line_length": 27.925,
"alnum_prop": 0.7209788122948374,
"repo_name": "burniegu/OSGiAndEquinox",
"id": "6c3ea23101c06ad58d56347188442f5fe34dfff6",
"size": "3351",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ch6/ServiceTracker/org.equinoxosgi.toast.client.emergency/src/org/equinoxosgi/toast/internal/client/emergency/bundle/Activator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "16288"
}
],
"symlink_target": ""
} |
Weblogic deployment instructions
========================================
This document explains how to deploy a KIE Workbench distribution file (_kie-wb-weblogic12.war_) on Weblogic Application Server 12c.
Open the Weblogic's Administration Console _http://localhost:7001/console/console.portal_
Then login (if you have administrative security setup)
Before deploy the war file, some server configurations are required:
Increase JVM memory size
------------------------------
Set environment variable:
USER_MEM_ARGS=-Xms512m -Xmx1024m -XX:MaxPermSize=512m
Security settings
------------------------------
The following settings are required in order to enable the container managed authentication mechanisms provided by the app. server.
Go to **Domain structure > Security realms > myrealm_**
On tabbed menu go to **_Users and groups > Groups_**
Create 5 groups: admin, analyst, developer, manager, user
On tabbed menu go to **_Users and groups > Users_**
Create a single user and add to it the 5 roles above.
Configure a data source
--------------------------------
The application requires a datasource which must be created prior to the deployment of the WAR:
**Create the data source**
- Left side panel, click on Services > Data sources_ and click New > Generic Data source
- Fill out the creation form. Set the following JNDI name _jdbc/jbpm_
(must match the data source defined in the _persistence.xml_ file contained in the _kie-wb.war_)
- Follow instructions provided by Weblogic console
- NOTE: make sure that data source has assigned target server on which is going to be deployed
Configure JMS resources
--------------------------
Before creation of JMS resources following components on Weblogic server must be created:
- JMS Server
- JMS module
for creation and configuration consult Weblogic documentation.
Connection factories and queues are created inside JMS module.
**Create JMS Connection factories**
- KIE.RESPONSE.ALL - to receive all responses produced by bpms (default value jms/cf/KIE.RESPONSE.ALL)
assigned JNDI name will be used when receiving messages from JMS
- KIE.SESSION - to send messages to process engine (default value jms/cf/KIE.SESSION)
assigned JNDI name will be used when sending messages over JMS
- KIE.TASK - to send messages to task service (default value jms/cf/KIE.TASK)
assigned JNDI name will be used when sending messages over JMS
- KIE.AUDIT - to send message with audit trail (default value jms/cf/KIE.AUDIT)
assigned JNDI name will be used when sending messages over JMS
- Left side panel click on _Services > Messaging > JMS Modules > {name of the jms module}_
- Click new and select Connection factory as type
- Provide the name, JNDI name (e.g. _KIE.RESPONSE.ALL_ and _jms/cf/KIE.RESPONSE.ALL_)
- Follow instructions on the screen
- KIE.EXECUTOR - for kie executor service assigned JNDI name needs to be set as one of JVM custom properties (org.kie.executor.jms.queue)
- KIE.SIGNAL - for sending external signals to jBPM processes
**Create JMS Queues**
- KIE.AUDIT - for asynchronous audit log
- KIE.RESPONSE.ALL - for bpms responses
- KIE.SESSION - for ksession based operations
- KIE.TASK - for task based operations
- KIE.EXECUTOR - for kie executor service
- KIE.SIGNAL - for sending external signals to jBPM processes
- Left side panel click on _Services > Messaging > JMS Modules > {name of the jms module}_
- Click new and select Queue as type
- Provide a name, JNDI name (e.g. _KIE.AUDIT_ and _jms/KIE.AUDIT_)
- Choose the subdeployment name (see [1]) and make sure that the Target is the JMS Server that
you've created.
- Click _Finish_
[1] If there is no subdeployment, create one.
JVM Custom properties
--------------------------
**Additional JVM properties**
- kie.services.jms.queues.response - {JNDI_NAME} -- JNDI name of the response queue for JMS remote API
- org.kie.executor.jms.queue - {JNDI_NAME} -- JNDI name of the kie executor service JMS queue
- org.kie.executor.jms.cf - {JNDI_NAME} -- JNDI name of the kie executor service JMS connection factory
- javax.xml.bind.context.factory - value must be com.sun.xml.bind.v2.ContextFactory
- org.uberfire.start.method - value must be ejb
- org.uberfire.domain - value must be OracleDefaultLoginConfiguration
all properties can be set by configuring environment variable as follows:
_JAVA_OPTIONS="-Dkie.services.jms.queues.response=jms/KIE.RESPONSE.ALL -Dorg.kie.executor.jms.queue=jms/KIE.EXECUTOR -Dorg.kie.executor.jms.cf=jms/cf/KIE.EXECUTOR -Djavax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory -Dorg.uberfire.start.method=ejb -Dorg.uberfire.domain=OracleDefaultLoginConfiguration"_
Deploy the application
--------------------------
Application must be deployed as exploded archive (as folder) to allow complete feature set to be activated.
Follow deployments screen with important selections:
- Application must be installed as Application and not library - second step of installation wizard.
- Security roles must be taken from deployment descriptor only - DD Only - on third step of of installation wizard
Once restarted you should be able to access the kie-wb application by typing the following URL: _http://localhost:7001/{name of the folder of exploded archive}_
| {
"content_hash": "3a0900df33d11fd88330520fac6d6bce",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 318,
"avg_line_length": 44.621848739495796,
"alnum_prop": 0.7386064030131827,
"repo_name": "dgutierr/kie-wb-distributions",
"id": "25018fc4f1079c296809e4e587d6c4d54d10c0b2",
"size": "5310",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "kie-wb/kie-wb-distribution-wars/src/main/assembly/weblogic12/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "515"
},
{
"name": "CSS",
"bytes": "43168"
},
{
"name": "HTML",
"bytes": "39713"
},
{
"name": "Java",
"bytes": "663158"
},
{
"name": "JavaScript",
"bytes": "14829"
},
{
"name": "Shell",
"bytes": "2338"
},
{
"name": "XSLT",
"bytes": "28304"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_swipe_menu_list_view_item"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/sence_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_margin="5dp"
android:textSize="25sp"/>
</LinearLayout>
| {
"content_hash": "9b6bdb10d5e6e6804960973bf15f2d6b",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 72,
"avg_line_length": 34.5,
"alnum_prop": 0.6721014492753623,
"repo_name": "xthgrey/intelligentassistant",
"id": "c02f6cad31adb09234366249ac5208f3e78fc441",
"size": "552",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/res/layout/swipe_menu_list_view_item.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "182220"
}
],
"symlink_target": ""
} |
- [#288](https://github.com/airblade/paper_trail/issues/288) - Change all scope declarations to class methods on the `PaperTrail::Version`
class. Fixes usability when `PaperTrail::Version.abstract_class? == true`.
- [#287](https://github.com/airblade/paper_trail/issues/287) - Support for
[PostgreSQL's JSON Type](http://www.postgresql.org/docs/9.2/static/datatype-json.html) for storing `object` and `object_changes`.
- [#281](https://github.com/airblade/paper_trail/issues/281) - `Rails::Controller` helper will return `false` for the
`paper_trail_enabled_for_controller` method if `PaperTrail.enabled? == false`.
- [#280](https://github.com/airblade/paper_trail/pull/280) - Don't track virtual timestamp attributes.
- [#278](https://github.com/airblade/paper_trail/issues/278)/[#272](https://github.com/airblade/paper_trail/issues/272) -
Make RSpec and Cucumber helpers usable with [Spork](https://github.com/sporkrb/spork) and [Zeus](https://github.com/burke/zeus).
- [#273](https://github.com/airblade/paper_trail/pull/273) - Make the `only` and `ignore` options accept `Hash` arguments;
allows for conditional tracking.
- [#264](https://github.com/airblade/paper_trail/pull/264) - Allow unwrapped symbol to be passed in to the `on` option.
- [#224](https://github.com/airblade/paper_trail/issues/224)/[#236](https://github.com/airblade/paper_trail/pull/236) -
Fixed compatibility with [ActsAsTaggableOn](https://github.com/mbleigh/acts-as-taggable-on).
- [#235](https://github.com/airblade/paper_trail/pull/235) - Dropped unnecessary secondary sort on `versions` association.
- [#216](https://github.com/airblade/paper_trail/pull/216) - Added helper & extension for [RSpec](https://github.com/rspec/rspec),
and helper for [Cucumber](http://cukes.info).
- [#212](https://github.com/airblade/paper_trail/pull/212) - Added `PaperTrail::Cleaner` module, useful for discarding draft versions.
- [#207](https://github.com/airblade/paper_trail/issues/207) - Versions for `'create'` events are now created with `create!` instead of
`create` so that an exception gets raised if it is appropriate to do so.
- [#199](https://github.com/airblade/paper_trail/pull/199) - Rails 4 compatibility.
- [#165](https://github.com/airblade/paper_trail/pull/165) - Namespaced the `Version` class under the `PaperTrail` module.
- [#119](https://github.com/airblade/paper_trail/issues/119) - Support for [Sinatra](http://www.sinatrarb.com/); decoupled gem from `Rails`.
- Renamed the default serializers from `PaperTrail::Serializers::Yaml` and `PaperTrail::Serializers::Json` to the capitalized forms,
`PaperTrail::Serializers::YAML` and `PaperTrail::Serializers::JSON`.
## 2.7.2
- [#228](https://github.com/airblade/paper_trail/issues/228) - Refactored default `user_for_paper_trail` method implementation
so that `current_user` only gets invoked if it is defined.
- [#219](https://github.com/airblade/paper_trail/pull/219) - Fixed issue where attributes stored with `nil` value might not get
reified properly depending on the way the serializer worked.
- [#213](https://github.com/airblade/paper_trail/issues/213) - Added a `version_limit` option to the `PaperTrail::Config` options
that can be used to restrict the number of versions PaperTrail will store per object instance.
- [#187](https://github.com/airblade/paper_trail/pull/187) - Confirmed JRuby support.
- [#174](https://github.com/airblade/paper_trail/pull/174) - The `event` field on the versions table can now be customized.
## 2.7.1
- [#206](https://github.com/airblade/paper_trail/issues/206) - Fixed Ruby 1.8.7 compatibility for tracking `object_changes`.
- [#200](https://github.com/airblade/paper_trail/issues/200) - Fixed `next_version` method so that it returns the live model
when called on latest reified version of a model prior to the live model.
- [#197](https://github.com/airblade/paper_trail/issues/197) - PaperTrail now falls back on using YAML for serialization of
serialized model attributes for storage in the `object` and `object_changes` columns in the `Version` table. This fixes
compatibility for `Rails 3.0.x` for projects that employ the `serialize` declaration on a model.
- [#194](https://github.com/airblade/paper_trail/issues/194) - A JSON serializer is now included in the gem.
- [#192](https://github.com/airblade/paper_trail/pull/192) - `object_changes` should store serialized representation of serialized
attributes for `create` actions (in addition to `update` actions, which had already been patched by
[#180](https://github.com/airblade/paper_trail/pull/180)).
- [#190](https://github.com/airblade/paper_trail/pull/190) - Fixed compatibility with
[SerializedAttributes](https://github.com/technoweenie/serialized_attributes) gem.
- [#189](https://github.com/airblade/paper_trail/pull/189) - Provided support for a `configure` block initializer.
- Added `setter` method for the `serializer` config option.
## 2.7.0
- [#183](https://github.com/airblade/paper_trail/pull/183) - Fully qualify the `Version` class to help prevent
namespace resolution errors within other gems / plugins.
- [#180](https://github.com/airblade/paper_trail/pull/180) - Store serialized representation of serialized attributes
on the `object` and `object_changes` columns in the `Version` table.
- [#164](https://github.com/airblade/paper_trail/pull/164) - Allow usage of custom serializer for storage of object attributes.
## 2.6.4
- [#181](https://github.com/airblade/paper_trail/issues/181)/[#182](https://github.com/airblade/paper_trail/pull/182) -
Controller metadata methods should only be evaluated when `paper_trail_enabled_for_controller == true`.
- [#177](https://github.com/airblade/paper_trail/issues/177)/[#178](https://github.com/airblade/paper_trail/pull/178) -
Factored out `version_key` into it's own method to prevent `ConnectionNotEstablished` error from getting thrown in
instances where `has_paper_trail` is declared on class prior to ActiveRecord establishing a connection.
- [#176](https://github.com/airblade/paper_trail/pull/176) - Force metadata calls for attributes to use current value
if attribute value is changing.
- [#173](https://github.com/airblade/paper_trail/pull/173) - Update link to [diff-lcs](https://github.com/halostatue/diff-lcs).
- [#172](https://github.com/airblade/paper_trail/pull/172) - Save `object_changes` on creation.
- [#168](https://github.com/airblade/paper_trail/pull/168) - Respect conditional `:if` or `:unless` arguments to the
`has_paper_trail` method for `destroy` events.
- [#167](https://github.com/airblade/paper_trail/pull/167) - Fix `originator` method so that it works with subclasses and STI.
- [#160](https://github.com/airblade/paper_trail/pull/160) - Fixed failing tests and resolved out of date dependency issues.
- [#157](https://github.com/airblade/paper_trail/pull/157) - Refactored `class_attribute` names on the `ClassMethods` module
for names that are not obviously pertaining to PaperTrail to prevent method name collision.
| {
"content_hash": "24d3752f33781c9e6cfce3c7e2602bec",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 142,
"avg_line_length": 90.49367088607595,
"alnum_prop": 0.7343684431389006,
"repo_name": "kantox/paper_trail",
"id": "786f98c2b12885882afed44c0ffe368f41b4600d",
"size": "7172",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CHANGELOG.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "5998"
},
{
"name": "Ruby",
"bytes": "146439"
}
],
"symlink_target": ""
} |
package main
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
"github.com/Sirupsen/logrus"
"github.com/NetSys/quilt/db"
"github.com/NetSys/quilt/stitch"
)
const (
testRoot = "/tests"
quiltPath = "/.quilt"
infrastructureSpec = quiltPath + "/github.com/NetSys/quilt/quilt-tester/" +
"config/infrastructure.spec"
slackEndpoint = "https://hooks.slack.com/services/T04Q3TL41/B0M25TWP5/" +
"soKJeP5HbWcjkUJzEHh7ylYm"
testerImport = "github.com/NetSys/quilt"
webRoot = "/var/www/quilt-tester"
)
// The global logger for this CI run.
var log logger
func main() {
myIP := os.Getenv("MY_IP")
if myIP == "" {
logrus.Error("IP of tester machine unknown.")
os.Exit(1)
}
var err error
if log, err = newLogger(myIP); err != nil {
logrus.WithError(err).Error("Failed to create logger.")
os.Exit(1)
}
tester, err := newTester(testRoot, myIP)
if err != nil {
logrus.WithError(err).Error("Failed to create tester instance.")
os.Exit(1)
}
if err := tester.run(); err != nil {
logrus.WithError(err).Error("Test execution failed.")
os.Exit(1)
}
}
type tester struct {
testSuites []*testSuite
initialized bool
ip string
}
func newTester(testRoot, myIP string) (tester, error) {
t := tester{
ip: myIP,
}
err := t.generateTestSuites(testRoot)
if err != nil {
return tester{}, err
}
return t, nil
}
func (t *tester) generateTestSuites(testRoot string) error {
namespace := t.namespace()
l := log.testerLogger
// First, we need to ls the testRoot, and find all of the folders. Then we can
// generate a testSuite for each folder.
testSuiteFolders, err := filepath.Glob(filepath.Join(testRoot, "*"))
if err != nil {
l.infoln("Could not access test suite folders")
l.errorln(err.Error())
return err
}
for _, testSuiteFolder := range testSuiteFolders {
files, err := ioutil.ReadDir(testSuiteFolder)
if err != nil {
l.infoln(fmt.Sprintf(
"Error reading test suite %s", testSuiteFolder))
l.errorln(err.Error())
return err
}
var spec string
var tests []string
for _, file := range files {
path := filepath.Join(testSuiteFolder, file.Name())
switch {
case strings.HasSuffix(file.Name(), ".spec"):
spec = path
if err := updateNamespace(spec, namespace); err != nil {
l.infoln(fmt.Sprintf(
"Error updating namespace for %s.", spec))
l.errorln(err.Error())
return err
}
// If the file is executable by everyone, and is not a directory.
case (file.Mode()&1 != 0) && !file.IsDir():
tests = append(tests, path)
}
}
newSuite := testSuite{
name: filepath.Base(testSuiteFolder),
spec: spec,
tests: tests,
}
t.testSuites = append(t.testSuites, &newSuite)
}
return nil
}
func (t tester) run() error {
defer func() {
cleanupMachines(t.namespace())
}()
if err := t.setup(); err != nil {
log.testerLogger.errorln("Unable to setup the tests, bailing.")
t.slack(false)
return err
}
err := t.runTestSuites()
t.slack(true)
return err
}
func (t *tester) setup() error {
namespace := t.namespace()
l := log.testerLogger
l.infoln("Starting the Quilt daemon.")
go runQuiltDaemon()
// Get our specs
os.Setenv(stitch.QuiltPathKey, quiltPath)
l.infoln(fmt.Sprintf("Downloading %s into %s", testerImport, quiltPath))
_, _, err := downloadSpecs(testerImport)
if err != nil {
l.infoln(fmt.Sprintf("Could not download %s", testerImport))
l.errorln(err.Error())
return err
}
// Do a preliminary quilt stop.
l.infoln(fmt.Sprintf("Preliminary `quilt stop %s`", namespace))
_, _, err = stop(namespace)
if err != nil {
l.infoln(fmt.Sprintf("Error stopping: %s", err.Error()))
return err
}
// Setup infrastructure.
l.infoln("Booting the machines the test suites will run on, and waiting " +
"for them to connect back.")
l.infoln("Begin " + infrastructureSpec)
if err := updateNamespace(infrastructureSpec, namespace); err != nil {
l.infoln(fmt.Sprintf("Error updating namespace for %s.",
infrastructureSpec))
l.errorln(err.Error())
return err
}
contents, _ := fileContents(infrastructureSpec)
l.println(contents)
l.infoln("End " + infrastructureSpec)
_, _, err = runSpecUntilConnected(infrastructureSpec)
if err != nil {
l.infoln("Failed to setup infrastructure")
l.errorln(err.Error())
return err
}
l.infoln("Booted Quilt")
l.infoln("Machines")
machines, _ := queryMachines()
l.println(fmt.Sprintf("%v", machines))
return nil
}
func (t tester) runTestSuites() error {
l := log.testerLogger
machines, err := queryMachines()
if err != nil {
l.infoln("Unable to query test machines. Can't conduct tests.")
return err
}
l.infoln("Wait 5 minutes for containers to start up")
time.Sleep(5 * time.Minute)
for _, suite := range t.testSuites {
if e := suite.run(machines); e != nil && err == nil {
err = e
}
}
return err
}
func (t tester) namespace() string {
sanitizedIP := strings.Replace(t.ip, ".", "-", -1)
return fmt.Sprintf("tester-%s", sanitizedIP)
}
func toPost(failed bool, pretext string, text string) slackPost {
iconemoji := ":confetti_ball:"
color := "#009900" // Green
if failed {
iconemoji = ":oncoming_police_car:"
color = "#D00000" // Red
}
return slackPost{
Channel: os.Getenv("SLACK_CHANNEL"),
Color: color,
Pretext: pretext,
Username: "quilt-bot",
Iconemoji: iconemoji,
Fields: []message{
{
Title: "Continuous Integration",
Short: false,
Value: text,
},
},
}
}
func (t tester) slack(initialized bool) {
log.testerLogger.infoln("Posting to slack.")
var suitesPassed []string
var suitesFailed []string
for _, suite := range t.testSuites {
if suite.failed != 0 {
suitesFailed = append(suitesFailed, suite.name)
} else {
suitesPassed = append(suitesPassed, suite.name)
}
}
var failed bool
var pretext, text string
if !initialized {
failed = true
text = "Didn't run tests"
pretext = fmt.Sprintf("<!channel> Initialization <%s|failed>.",
log.url())
} else {
// The tests passed.
failed = false
pretext = fmt.Sprintf("All tests <%s|passed>!", log.url())
text = fmt.Sprintf("Test Suites Passed: %s",
strings.Join(suitesPassed, ", "))
// Some tests failed.
if len(suitesFailed) > 0 {
failed = true
text += fmt.Sprintf("\nTest Suites Failed: %s",
strings.Join(suitesFailed, ", "))
pretext = fmt.Sprintf("<!channel> Some tests <%s|failed>",
log.url())
}
}
err := slack(slackEndpoint, toPost(failed, pretext, text))
if err != nil {
l := log.testerLogger
l.infoln("Error posting to Slack.")
l.errorln(err.Error())
}
}
type testSuite struct {
name string
spec string
tests []string
passed int
failed int
}
func (ts *testSuite) run(machines []db.Machine) error {
l := log.testerLogger
l.infoln(fmt.Sprintf("Test Suite: %s", ts.name))
l.infoln("Start " + ts.name + ".spec")
contents, _ := fileContents(ts.spec)
l.println(contents)
l.infoln("End " + ts.name + ".spec")
runSpec(ts.spec)
// Wait for the containers to start
l.infoln("Waiting 5 minutes for containers to start up")
time.Sleep(5 * time.Minute)
l.infoln("Starting Tests")
var err error
for _, machine := range machines {
l.println("\n" + machine.PublicIP)
for _, test := range ts.tests {
if strings.Contains(test, "monly") && machine.Role != "Master" {
continue
}
l.println(".. " + filepath.Base(test))
passed, e := runTest(test, machine)
if passed {
l.println(".... Passed")
ts.passed++
} else {
l.println(".... Failed")
ts.failed++
}
if e == nil {
err = e
}
}
l.println("")
}
l.infoln("Finished Tests")
l.infoln(fmt.Sprintf("Finished Test Suite: %s", ts.name))
return err
}
func runTest(testPath string, m db.Machine) (bool, error) {
_, testName := filepath.Split(testPath)
// Run the test on the remote machine.
err := scp(m.PublicIP, testPath, testName)
if err != nil {
return false, err
}
sshCmd := sshGen(m.PublicIP, exec.Command(fmt.Sprintf("./%s", testName)))
output, err := sshCmd.CombinedOutput()
if err != nil {
return false, err
}
testPassed := true
if !strings.Contains(string(output), "PASSED") {
testPassed = false
}
l := log.testLogger(testPassed, testName, m.PublicIP)
if !testPassed {
l.infoln("Failed!")
}
if contents, err := fileContents(testPath + ".go"); err == nil {
l.infoln("Begin test source")
l.println(contents)
l.infoln("End test source")
} else {
l.infoln(fmt.Sprintf("Could not read test source for %s", testName))
l.errorln(err.Error())
}
l.infoln("Begin test output")
l.println(string(output))
l.infoln("End test output")
return testPassed, nil
}
| {
"content_hash": "8546cc5ec9b07027210afa3460a4f192",
"timestamp": "",
"source": "github",
"line_count": 383,
"max_line_length": 79,
"avg_line_length": 22.73107049608355,
"alnum_prop": 0.65311279577303,
"repo_name": "secant/quilt",
"id": "04a7e8fd75ed4257b5ac261ce97532877ed269ee",
"size": "8706",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "quilt-tester/quilt-tester.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "634791"
},
{
"name": "JavaScript",
"bytes": "17567"
},
{
"name": "Makefile",
"bytes": "3684"
},
{
"name": "Protocol Buffer",
"bytes": "886"
},
{
"name": "Python",
"bytes": "8479"
},
{
"name": "Ruby",
"bytes": "4885"
},
{
"name": "Scala",
"bytes": "1423"
},
{
"name": "Shell",
"bytes": "14991"
}
],
"symlink_target": ""
} |
require File.expand_path(File.join(File.dirname(__FILE__),'..', '..',
'test_helper'))
require 'rack/test'
require 'new_relic/agent/instrumentation/rack'
require 'new_relic/rack/browser_monitoring'
ENV['RACK_ENV'] = 'test'
class BrowserMonitoringTest < Minitest::Test
include Rack::Test::Methods
class TestApp
@@doc = nil
@@next_response = nil
def self.doc=(other)
@@doc = other
end
def self.next_response=(next_response)
@@next_response = next_response
end
def self.next_response
@@next_response
end
def call(env)
advance_time(0.1)
@@doc ||= <<-EOL
<html>
<head>
<title>im a title</title>
<meta some-crap="1"/>
<script>
junk
</script>
</head>
<body>im some body text</body>
</html>
EOL
response = @@next_response || Rack::Response.new(@@doc)
@@next_response = nil
[200, {'Content-Type' => 'text/html'}, response]
end
include NewRelic::Agent::Instrumentation::Rack
end
def app
NewRelic::Rack::BrowserMonitoring.new(TestApp.new)
end
def setup
super
freeze_time
@config = {
:application_id => 5,
:beacon => 'beacon',
:browser_key => 'some browser key',
:'rum.enabled' => true,
:license_key => 'a' * 40,
:js_agent_loader => 'loader',
:disable_harvest_thread => true
}
NewRelic::Agent.config.add_config_for_testing(@config)
end
def teardown
super
TestApp.doc = nil
NewRelic::Agent.config.remove_config(@config)
NewRelic::Agent.agent.transaction_sampler.reset!
end
def test_make_sure_header_is_set
in_transaction do
assert NewRelic::Agent.browser_timing_header.size > 0
end
end
def test_should_only_instrument_successful_html_requests
assert app.should_instrument?({}, 200, {'Content-Type' => 'text/html'}), "Expected to instrument 200 requests."
assert !app.should_instrument?({}, 500, {'Content-Type' => 'text/html'}), "Expected not to instrument 500 requests."
assert !app.should_instrument?({}, 200, {'Content-Type' => 'text/xhtml'}), "Expected not to instrument requests with content type other than text/html."
end
def test_should_not_instrument_when_content_disposition
assert !app.should_instrument?({}, 200, {'Content-Type' => 'text/html', 'Content-Disposition' => 'attachment; filename=test.html'})
end
def test_should_not_instrument_when_already_did
assert !app.should_instrument?({NewRelic::Rack::BrowserMonitoring::ALREADY_INSTRUMENTED_KEY => true}, 200, {'Content-Type' => 'text/html'})
end
def test_should_not_instrument_when_disabled_by_config
with_config(:'browser_monitoring.auto_instrument' => false) do
refute app.should_instrument?({}, 200, {'Content-Type' => 'text/html'})
end
end
def test_insert_header_should_mark_environment
get '/'
assert last_request.env.key?(NewRelic::Rack::BrowserMonitoring::ALREADY_INSTRUMENTED_KEY)
end
# RUM header auto-insertion testing
# We read *.html files from the rum_loader_insertion_location directory in
# cross_agent_tests, strip out the placeholder tokens representing the RUM
# header manually, and then re-insert, verifying that it ends up in the right
# place.
source_files = Dir[File.join(cross_agent_tests_dir, 'rum_loader_insertion_location', "*.html")]
RUM_PLACEHOLDER = "EXPECTED_RUM_LOADER_LOCATION"
source_files.each do |source_file|
source_filename = File.basename(source_file).gsub(".", "_")
instrumented_html = File.read(source_file)
uninstrumented_html = instrumented_html.gsub(RUM_PLACEHOLDER, '')
define_method("test_#{source_filename}") do
TestApp.doc = uninstrumented_html
NewRelic::Agent.stubs(:browser_timing_header).returns(RUM_PLACEHOLDER)
get '/'
assert_equal(instrumented_html, last_response.body)
end
define_method("test_dont_touch_#{source_filename}") do
TestApp.doc = uninstrumented_html
NewRelic::Rack::BrowserMonitoring.any_instance.stubs(:should_instrument?).returns(false)
get '/'
assert_equal(uninstrumented_html, last_response.body)
end
end
def test_should_close_response
TestApp.next_response = Rack::Response.new("<html/>")
TestApp.next_response.expects(:close)
get '/'
assert last_response.ok?
end
def test_with_invalid_us_ascii_encoding
response = "<html><body>Jürgen</body></html>"
response.force_encoding(Encoding.find("US-ASCII")) if RUBY_VERSION >= '1.9'
TestApp.next_response = Rack::Response.new(response)
get '/'
assert last_response.ok?
end
def test_should_not_close_if_not_responded_to
TestApp.next_response = Rack::Response.new("<html/>")
TestApp.next_response.stubs(:respond_to?).with(:close).returns(false)
TestApp.next_response.expects(:close).never
get '/'
assert last_response.ok?
end
def test_should_not_throw_exception_on_empty_reponse
TestApp.doc = ''
get '/'
assert last_response.ok?
end
def test_calculate_content_length_accounts_for_multibyte_characters_for_186
String.stubs(:respond_to?).with(:bytesize).returns(false)
browser_monitoring = NewRelic::Rack::BrowserMonitoring.new(mock('app'))
assert_equal 24, browser_monitoring.calculate_content_length("猿も木から落ちる")
end
def test_calculate_content_length_accounts_for_multibyte_characters_for_modern_ruby
browser_monitoring = NewRelic::Rack::BrowserMonitoring.new(mock('app'))
assert_equal 18, browser_monitoring.calculate_content_length("七転び八起き")
end
end
| {
"content_hash": "f84ffc6c1446ac2ce00c762693691d94",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 156,
"avg_line_length": 29.78191489361702,
"alnum_prop": 0.674048937310234,
"repo_name": "BigAppleSoftball/ratingsManager",
"id": "7627ecf2b777f5a5d5af7ebde22f8c29be6b673b",
"size": "5787",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.11.2.286/test/new_relic/rack/browser_monitoring_test.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3103703"
},
{
"name": "HTML",
"bytes": "312828"
},
{
"name": "JavaScript",
"bytes": "1971908"
},
{
"name": "Ruby",
"bytes": "349531"
}
],
"symlink_target": ""
} |
<?php
namespace Parable\Log\Writer;
class NullLogger implements \Parable\Log\Writer\WriterInterface
{
/**
* Log it nowhere at all.
*
* @inheritdoc
*
* @codeCoverageIgnore
*/
public function write($message)
{
return $this;
}
}
| {
"content_hash": "a3ec9e39f554a23f462d7653b0ada326",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 63,
"avg_line_length": 15.666666666666666,
"alnum_prop": 0.5851063829787234,
"repo_name": "devvoh/Fluid",
"id": "657cded10c1a62291513dfd847d1b37b8812bd66",
"size": "282",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/Log/Writer/NullLogger.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "338"
},
{
"name": "HTML",
"bytes": "1484"
},
{
"name": "PHP",
"bytes": "3895"
}
],
"symlink_target": ""
} |
package com.google.zxing.oned;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.DecodeHintType;
import com.google.zxing.NotFoundException;
import com.google.zxing.Result;
import com.google.zxing.ResultMetadataType;
import com.google.zxing.ResultPoint;
import com.google.zxing.common.BitArray;
import java.util.Arrays;
import java.util.Map;
/**
* <p>Decodes Codabar barcodes.</p>
*
* @author Bas Vijfwinkel
* @author David Walker
*/
public final class CodaBarReader extends OneDReader {
// These values are critical for determining how permissive the decoding
// will be. All stripe sizes must be within the window these define, as
// compared to the average stripe size.
private static final float MAX_ACCEPTABLE = 2.0f;
private static final float PADDING = 1.5f;
private static final String ALPHABET_STRING = "0123456789-$:/.+ABCD";
static final char[] ALPHABET = ALPHABET_STRING.toCharArray();
/**
* These represent the encodings of characters, as patterns of wide and narrow bars. The 7 least-significant bits of
* each int correspond to the pattern of wide and narrow, with 1s representing "wide" and 0s representing narrow.
*/
static final int[] CHARACTER_ENCODINGS = {
0x003, 0x006, 0x009, 0x060, 0x012, 0x042, 0x021, 0x024, 0x030, 0x048, // 0-9
0x00c, 0x018, 0x045, 0x051, 0x054, 0x015, 0x01A, 0x029, 0x00B, 0x00E, // -$:/.+ABCD
};
// minimal number of characters that should be present (including start and stop characters)
// under normal circumstances this should be set to 3, but can be set higher
// as a last-ditch attempt to reduce false positives.
private static final int MIN_CHARACTER_LENGTH = 3;
// official start and end patterns
private static final char[] STARTEND_ENCODING = {'A', 'B', 'C', 'D'};
// some Codabar generator allow the Codabar string to be closed by every
// character. This will cause lots of false positives!
// some industries use a checksum standard but this is not part of the original Codabar standard
// for more information see : http://www.mecsw.com/specs/codabar.html
// Keep some instance variables to avoid reallocations
private final StringBuilder decodeRowResult;
private int[] counters;
private int counterLength;
public CodaBarReader() {
decodeRowResult = new StringBuilder(20);
counters = new int[80];
counterLength = 0;
}
@Override
public Result decodeRow(int rowNumber, BitArray row, Map<DecodeHintType,?> hints) throws NotFoundException {
Arrays.fill(counters, 0);
setCounters(row);
int startOffset = findStartPattern();
int nextStart = startOffset;
decodeRowResult.setLength(0);
do {
int charOffset = toNarrowWidePattern(nextStart);
if (charOffset == -1) {
throw NotFoundException.getNotFoundInstance();
}
// Hack: We store the position in the alphabet table into a
// StringBuilder, so that we can access the decoded patterns in
// validatePattern. We'll translate to the actual characters later.
decodeRowResult.append((char) charOffset);
nextStart += 8;
// Stop as soon as we see the end character.
if (decodeRowResult.length() > 1 &&
arrayContains(STARTEND_ENCODING, ALPHABET[charOffset])) {
break;
}
} while (nextStart < counterLength); // no fixed end pattern so keep on reading while data is available
// Look for whitespace after pattern:
int trailingWhitespace = counters[nextStart - 1];
int lastPatternSize = 0;
for (int i = -8; i < -1; i++) {
lastPatternSize += counters[nextStart + i];
}
// We need to see whitespace equal to 50% of the last pattern size,
// otherwise this is probably a false positive. The exception is if we are
// at the end of the row. (I.e. the barcode barely fits.)
if (nextStart < counterLength && trailingWhitespace < lastPatternSize / 2) {
throw NotFoundException.getNotFoundInstance();
}
validatePattern(startOffset);
// Translate character table offsets to actual characters.
for (int i = 0; i < decodeRowResult.length(); i++) {
decodeRowResult.setCharAt(i, ALPHABET[decodeRowResult.charAt(i)]);
}
// Ensure a valid start and end character
char startchar = decodeRowResult.charAt(0);
if (!arrayContains(STARTEND_ENCODING, startchar)) {
throw NotFoundException.getNotFoundInstance();
}
char endchar = decodeRowResult.charAt(decodeRowResult.length() - 1);
if (!arrayContains(STARTEND_ENCODING, endchar)) {
throw NotFoundException.getNotFoundInstance();
}
// remove stop/start characters character and check if a long enough string is contained
if (decodeRowResult.length() <= MIN_CHARACTER_LENGTH) {
// Almost surely a false positive ( start + stop + at least 1 character)
throw NotFoundException.getNotFoundInstance();
}
if (hints == null || !hints.containsKey(DecodeHintType.RETURN_CODABAR_START_END)) {
decodeRowResult.deleteCharAt(decodeRowResult.length() - 1);
decodeRowResult.deleteCharAt(0);
}
int runningCount = 0;
for (int i = 0; i < startOffset; i++) {
runningCount += counters[i];
}
float left = runningCount;
for (int i = startOffset; i < nextStart - 1; i++) {
runningCount += counters[i];
}
float right = runningCount;
Result result = new Result(
decodeRowResult.toString(),
null,
new ResultPoint[]{
new ResultPoint(left, rowNumber),
new ResultPoint(right, rowNumber)},
BarcodeFormat.CODABAR);
result.putMetadata(ResultMetadataType.SYMBOLOGY_IDENTIFIER, "]F0");
return result;
}
private void validatePattern(int start) throws NotFoundException {
// First, sum up the total size of our four categories of stripe sizes;
int[] sizes = {0, 0, 0, 0};
int[] counts = {0, 0, 0, 0};
int end = decodeRowResult.length() - 1;
// We break out of this loop in the middle, in order to handle
// inter-character spaces properly.
int pos = start;
for (int i = 0; i <= end; i++) {
int pattern = CHARACTER_ENCODINGS[decodeRowResult.charAt(i)];
for (int j = 6; j >= 0; j--) {
// Even j = bars, while odd j = spaces. Categories 2 and 3 are for
// long stripes, while 0 and 1 are for short stripes.
int category = (j & 1) + (pattern & 1) * 2;
sizes[category] += counters[pos + j];
counts[category]++;
pattern >>= 1;
}
// We ignore the inter-character space - it could be of any size.
pos += 8;
}
// Calculate our allowable size thresholds using fixed-point math.
float[] maxes = new float[4];
float[] mins = new float[4];
// Define the threshold of acceptability to be the midpoint between the
// average small stripe and the average large stripe. No stripe lengths
// should be on the "wrong" side of that line.
for (int i = 0; i < 2; i++) {
mins[i] = 0.0f; // Accept arbitrarily small "short" stripes.
mins[i + 2] = ((float) sizes[i] / counts[i] + (float) sizes[i + 2] / counts[i + 2]) / 2.0f;
maxes[i] = mins[i + 2];
maxes[i + 2] = (sizes[i + 2] * MAX_ACCEPTABLE + PADDING) / counts[i + 2];
}
// Now verify that all of the stripes are within the thresholds.
pos = start;
for (int i = 0; i <= end; i++) {
int pattern = CHARACTER_ENCODINGS[decodeRowResult.charAt(i)];
for (int j = 6; j >= 0; j--) {
// Even j = bars, while odd j = spaces. Categories 2 and 3 are for
// long stripes, while 0 and 1 are for short stripes.
int category = (j & 1) + (pattern & 1) * 2;
int size = counters[pos + j];
if (size < mins[category] || size > maxes[category]) {
throw NotFoundException.getNotFoundInstance();
}
pattern >>= 1;
}
pos += 8;
}
}
/**
* Records the size of all runs of white and black pixels, starting with white.
* This is just like recordPattern, except it records all the counters, and
* uses our builtin "counters" member for storage.
* @param row row to count from
*/
private void setCounters(BitArray row) throws NotFoundException {
counterLength = 0;
// Start from the first white bit.
int i = row.getNextUnset(0);
int end = row.getSize();
if (i >= end) {
throw NotFoundException.getNotFoundInstance();
}
boolean isWhite = true;
int count = 0;
while (i < end) {
if (row.get(i) != isWhite) {
count++;
} else {
counterAppend(count);
count = 1;
isWhite = !isWhite;
}
i++;
}
counterAppend(count);
}
private void counterAppend(int e) {
counters[counterLength] = e;
counterLength++;
if (counterLength >= counters.length) {
int[] temp = new int[counterLength * 2];
System.arraycopy(counters, 0, temp, 0, counterLength);
counters = temp;
}
}
private int findStartPattern() throws NotFoundException {
for (int i = 1; i < counterLength; i += 2) {
int charOffset = toNarrowWidePattern(i);
if (charOffset != -1 && arrayContains(STARTEND_ENCODING, ALPHABET[charOffset])) {
// Look for whitespace before start pattern, >= 50% of width of start pattern
// We make an exception if the whitespace is the first element.
int patternSize = 0;
for (int j = i; j < i + 7; j++) {
patternSize += counters[j];
}
if (i == 1 || counters[i - 1] >= patternSize / 2) {
return i;
}
}
}
throw NotFoundException.getNotFoundInstance();
}
static boolean arrayContains(char[] array, char key) {
if (array != null) {
for (char c : array) {
if (c == key) {
return true;
}
}
}
return false;
}
// Assumes that counters[position] is a bar.
private int toNarrowWidePattern(int position) {
int end = position + 7;
if (end >= counterLength) {
return -1;
}
int[] theCounters = counters;
int maxBar = 0;
int minBar = Integer.MAX_VALUE;
for (int j = position; j < end; j += 2) {
int currentCounter = theCounters[j];
if (currentCounter < minBar) {
minBar = currentCounter;
}
if (currentCounter > maxBar) {
maxBar = currentCounter;
}
}
int thresholdBar = (minBar + maxBar) / 2;
int maxSpace = 0;
int minSpace = Integer.MAX_VALUE;
for (int j = position + 1; j < end; j += 2) {
int currentCounter = theCounters[j];
if (currentCounter < minSpace) {
minSpace = currentCounter;
}
if (currentCounter > maxSpace) {
maxSpace = currentCounter;
}
}
int thresholdSpace = (minSpace + maxSpace) / 2;
int bitmask = 1 << 7;
int pattern = 0;
for (int i = 0; i < 7; i++) {
int threshold = (i & 1) == 0 ? thresholdBar : thresholdSpace;
bitmask >>= 1;
if (theCounters[position + i] > threshold) {
pattern |= bitmask;
}
}
for (int i = 0; i < CHARACTER_ENCODINGS.length; i++) {
if (CHARACTER_ENCODINGS[i] == pattern) {
return i;
}
}
return -1;
}
}
| {
"content_hash": "8a5b6ed0de757050611a85866bf9da01",
"timestamp": "",
"source": "github",
"line_count": 329,
"max_line_length": 118,
"avg_line_length": 34.212765957446805,
"alnum_prop": 0.6321073205401564,
"repo_name": "shixingxing/zxing",
"id": "a5e230d283808bc90ae05bbfca30f7e74fa9a5f4",
"size": "11853",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "core/src/main/java/com/google/zxing/oned/CodaBarReader.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "3419"
},
{
"name": "HTML",
"bytes": "98646"
},
{
"name": "Java",
"bytes": "2590363"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=type.U235.html">
</head>
<body>
<p>Redirecting to <a href="type.U235.html">type.U235.html</a>...</p>
<script>location.replace("type.U235.html" + location.search + location.hash);</script>
</body>
</html> | {
"content_hash": "a9d354fa066078345386905a28d4ef3f",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 90,
"avg_line_length": 29.7,
"alnum_prop": 0.6531986531986532,
"repo_name": "nitro-devs/nitro-game-engine",
"id": "0ba34c0bec9e911a07302393f13babf9809cd3d1",
"size": "297",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/typenum/consts/U235.t.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CMake",
"bytes": "1032"
},
{
"name": "Rust",
"bytes": "59380"
}
],
"symlink_target": ""
} |
package me.itzg.mccy;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Represents a failure (typically unknown or unexpected) on the server's part
*
* @author Geoff Bourne
* @since 3/13/2015
*/
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class MccyServerException extends MccyException {
public MccyServerException() {
}
public MccyServerException(String message) {
super(message);
}
public MccyServerException(String message, Throwable cause) {
super(message, cause);
}
public MccyServerException(Throwable cause) {
super(cause);
}
public MccyServerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
| {
"content_hash": "74698b7b5e046df7422992b8e40dd038",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 120,
"avg_line_length": 27.375,
"alnum_prop": 0.730593607305936,
"repo_name": "itzg/DEPRECATED-minecraft-container-yard",
"id": "028905d57d198d54289393cd60e8f49008d83ce3",
"size": "876",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/me/itzg/mccy/MccyServerException.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "87"
},
{
"name": "HTML",
"bytes": "11598"
},
{
"name": "Java",
"bytes": "81101"
},
{
"name": "JavaScript",
"bytes": "7848"
}
],
"symlink_target": ""
} |
<template name="footer">
<footer>
<span>
By <a href="http://julian.io">julian.io</a> - built with <a href="http://meteor.com">Meteor</a>
<br>
Hosted by <a href="https://m.do.co/c/f2346a20e8ce">DigitalOcean</a>
<br>
Also check out <a href="https://www.simplechat.support">SimpleChat.Support - Open Source Live Chat App</a>
</span>
</footer>
</template>
| {
"content_hash": "c36468c044fd0466b62459dcdda11213",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 118,
"avg_line_length": 39.63636363636363,
"alnum_prop": 0.555045871559633,
"repo_name": "juliancwirko/meteor-pretty-diff-app",
"id": "37e8e3e8694cb12916160e426b65052d55d43c8c",
"size": "436",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "client/layout/footer.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "16702"
},
{
"name": "HTML",
"bytes": "25416"
},
{
"name": "JavaScript",
"bytes": "7318"
}
],
"symlink_target": ""
} |
<?php
namespace YB\UserBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Security\Core\SecurityContext;
class SecurityController extends Controller {
/**
* Formulaire de login
*/
public function loginAction() {
// Si le visiteur est déjà identifié, on le redirige vers l'accueil
if ($this->get('security.context')->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
return $this->redirect($this->generateUrl('yb_tournament'));
}
$request = $this->getRequest();
$session = $request->getSession();
// On vérifie s'il y a des erreurs d'une précédente soumission du formulaire
if ($request->attributes->has(SecurityContext::AUTHENTICATION_ERROR)) {
$error = $request->attributes->get(SecurityContext::AUTHENTICATION_ERROR);
} else {
$error = $session->get(SecurityContext::AUTHENTICATION_ERROR);
$session->remove(SecurityContext::AUTHENTICATION_ERROR);
}
return $this->render('YBUserBundle:Security:login.html.twig', array(
// Valeur du précédent nom d'utilisateur entré par l'internaute
'last_username' => $session->get(SecurityContext::LAST_USERNAME),
'error' => $error
));
}
}
| {
"content_hash": "d6c449bf56f21739302eeded61981779",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 81,
"avg_line_length": 31.945945945945947,
"alnum_prop": 0.7208121827411168,
"repo_name": "ThomasBerthe/yellowball",
"id": "e3c9bfcd20f73c4cf4e1dddf30a4b576753b7927",
"size": "1191",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/YB/UserBundle/Controller/SecurityController.php",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
/*************************************************************************/
/* progress_bar.h */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */
/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/* 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. */
/*************************************************************************/
#ifndef PROGRESS_BAR_H
#define PROGRESS_BAR_H
#include "scene/gui/range.h"
class ProgressBar : public Range {
GDCLASS(ProgressBar, Range);
bool percent_visible = true;
struct ThemeCache {
Ref<StyleBox> bg_style;
Ref<StyleBox> fg_style;
Ref<Font> font;
int font_size = 0;
Color font_color;
int font_outline_size = 0;
Color font_outline_color;
} theme_cache;
protected:
virtual void _update_theme_item_cache() override;
void _notification(int p_what);
static void _bind_methods();
public:
enum FillMode {
FILL_BEGIN_TO_END,
FILL_END_TO_BEGIN,
FILL_TOP_TO_BOTTOM,
FILL_BOTTOM_TO_TOP,
FILL_MODE_MAX
};
void set_fill_mode(int p_fill);
int get_fill_mode();
void set_percent_visible(bool p_visible);
bool is_percent_visible() const;
Size2 get_minimum_size() const override;
ProgressBar();
private:
FillMode mode = FILL_BEGIN_TO_END;
};
VARIANT_ENUM_CAST(ProgressBar::FillMode);
#endif // PROGRESS_BAR_H
| {
"content_hash": "3a3e5235495a6a84744f157cea773440",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 75,
"avg_line_length": 38.47560975609756,
"alnum_prop": 0.5223454833597464,
"repo_name": "firefly2442/godot",
"id": "c79b901928511fb7c5ef72fa1aba3dcf5b2cdc01",
"size": "3155",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "scene/gui/progress_bar.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "AIDL",
"bytes": "1633"
},
{
"name": "C",
"bytes": "1045182"
},
{
"name": "C#",
"bytes": "1602683"
},
{
"name": "C++",
"bytes": "39128809"
},
{
"name": "CMake",
"bytes": "606"
},
{
"name": "GAP",
"bytes": "62"
},
{
"name": "GDScript",
"bytes": "66163"
},
{
"name": "GLSL",
"bytes": "842077"
},
{
"name": "Java",
"bytes": "596743"
},
{
"name": "JavaScript",
"bytes": "188456"
},
{
"name": "Kotlin",
"bytes": "84152"
},
{
"name": "Makefile",
"bytes": "1421"
},
{
"name": "Objective-C",
"bytes": "20550"
},
{
"name": "Objective-C++",
"bytes": "381744"
},
{
"name": "PowerShell",
"bytes": "2713"
},
{
"name": "Python",
"bytes": "470475"
},
{
"name": "Shell",
"bytes": "32064"
}
],
"symlink_target": ""
} |
from ssh_config import ConfigParser
from exceptions import StormValueError
from operator import itemgetter
import getpass
__version__ = '0.5'
class Storm(object):
def __init__(self, ssh_config_file=None):
self.ssh_config = ConfigParser(ssh_config_file)
self.ssh_config.load()
def add_entry(self, name, host, user, port, id_file, custom_options=[]):
if self.is_host_in(name):
raise StormValueError('{0} is already in your sshconfig. use storm edit command to modify.'.format(name))
options = self.get_options(host, user, port, id_file, custom_options)
self.ssh_config.add_host(name, options)
self.ssh_config.write_to_ssh_config()
return True
def edit_entry(self, name, host, user, port, id_file, custom_options=[]):
if not self.is_host_in(name):
raise StormValueError('{0} doesn\'t exists in your sshconfig. use storm add command to add.'.format(name))
options = self.get_options(host, user, port, id_file, custom_options)
self.ssh_config.update_host(name, options)
self.ssh_config.write_to_ssh_config()
return True
def delete_entry(self, name):
self.ssh_config.delete_host(name)
self.ssh_config.write_to_ssh_config()
return True
def list_entries(self, order=False):
if order:
config_data = sorted(self.ssh_config.config_data, key=itemgetter("host"))
return config_data
return self.ssh_config.config_data
def delete_all_entries(self):
self.ssh_config.delete_all_hosts()
return True
def search_host(self, search_string):
results = self.ssh_config.search_host(search_string)
formatted_results = []
for host_entry in results:
formatted_results.append(" {0} -> {1}@{2}:{3}\n".format(
host_entry.get("host"),
host_entry.get("options").get("user", getpass.getuser()),
host_entry.get("options").get("hostname"),
host_entry.get("options").get("port", 22),
))
return formatted_results
def get_options(self, host, user, port, id_file, custom_options):
options = {
'hostname': host,
'user': user,
'port': port,
}
if id_file:
options.update({
'identityfile': id_file,
})
if len(custom_options) > 0:
for custom_option in custom_options:
if '=' in custom_option:
key, value = custom_option.split("=")[0:2]
options.update({
key: value,
})
return options
def is_host_in(self, host):
for host_ in self.ssh_config.config_data:
if host_.get("host") == host:
return True
return False
| {
"content_hash": "a4509f3974cee4a6314d5114f82861c9",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 118,
"avg_line_length": 30.610526315789475,
"alnum_prop": 0.5718707015130674,
"repo_name": "f/storm",
"id": "61e9bbbbd3d4b702619a87294ad444d356d74f74",
"size": "2932",
"binary": false,
"copies": "1",
"ref": "refs/heads/frontend",
"path": "storm/__init__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "69"
},
{
"name": "JavaScript",
"bytes": "4195"
},
{
"name": "Python",
"bytes": "32729"
},
{
"name": "Shell",
"bytes": "917"
}
],
"symlink_target": ""
} |
function User(name, adress) {
this.name = name;
this.adress = adress;
};
function Profile(user, role) {
this.user = user;
this.role = role;
}; | {
"content_hash": "834be0b0d0e071f3a90927f7d413ee1b",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 30,
"avg_line_length": 17.666666666666668,
"alnum_prop": 0.610062893081761,
"repo_name": "GauthierJK/targ-js-app",
"id": "9d7bf04e62dfb2f8deb10e8b73603d2548af5161",
"size": "159",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "js/common/pojo.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "39693"
},
{
"name": "CSS",
"bytes": "7866"
},
{
"name": "HTML",
"bytes": "5751"
},
{
"name": "JavaScript",
"bytes": "5593"
}
],
"symlink_target": ""
} |
[](https://travis-ci.org/monzo/typhon)
[](https://godoc.org/github.com/monzo/typhon)
Typhon is a wrapper around Go's [`net/http`] library that we use at Monzo to build RPC servers and clients in [our microservices platform][platform blog post].
It provides a number of conveniences and tries to promote safety wherever possible. Here's a short list of interesting features in Typhon:
* **No need to close `body.Close()` in clients**
Forgetting to `body.Close()` in a client when the body has been dealt with is a common source of resource leaks in Go programs in our experience. Typhon ensures that – unless you're doing something really weird with the body – it will be closed automatically.
* **Middleware "filters"**
Filters are decorators around `Service`s; in Typhon servers and clients share common functionality by composing it functionally.
* **Body encoding and decoding**
Marshalling and unmarshalling request bodies to structs is such a common operation that our `Request` and `Response` objects support them directly. If the operations fail, the errors are propagated automatically since that's nearly always what a server will want.
* **Propagation of cancellation**
When a server has done handling a request, the request's context is automatically cancelled, and these cancellations are propagated through the distributed call stack. This lets downstream servers conserve work producing responses that are no longer needed.
* **Error propagation**
Responses have an inbuilt `Error` attribute, and serialisation/deserialisation of these errors into HTTP errors is taken care of automatically. We recommend using this in conjunction with [`monzo/terrors`].
* **Full HTTP/1.1 and HTTP/2.0 support**
Applications implemented using Typhon can communicate over HTTP/1.1 or HTTP/2.0. Typhon has support for full duplex communication under HTTP/2.0, and [`h2c`] (HTTP/2.0 over TCP, ie. without TLS) is also supported if required.
[`net/http`]: https://golang.org/pkg/net/http/
[platform blog post]: https://monzo.com/blog/2016/09/19/building-a-modern-bank-backend/
[`monzo/terrors`]: http://github.com/monzo/terrors
[`h2c`]: https://httpwg.org/specs/rfc7540.html#discover-http
| {
"content_hash": "5af538ad9373ba2a1bdf698305453cdd",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 265,
"avg_line_length": 80.93103448275862,
"alnum_prop": 0.7694929697486153,
"repo_name": "monzo/typhon",
"id": "e2ccbb5db7285bde09617da06eb3bc3a3a57365a",
"size": "2366",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "112835"
}
],
"symlink_target": ""
} |
'use strict'
if (process.env.BROWSER) {
require('./ArticleItem.css')
}
const { UIComponent } = require('komponentize')
const { empty, getModel, setModel, formatDate } = require('../../../modules/helpers')
const _ = require('lodash/core')
const http = require('../../../modules/http')
class ArticleItem extends UIComponent {
constructor(data) {
super(`
<div class="article-item" k-on="click: onClick">
<div class="cover ${data.cover ? '' : 'hidden'}" style="background-image: url(${data.cover});"></div>
<div class="info">
<div class="title">${data.title}</div>
<div class="summary">${data.summary}</div>
<div class="author">
<img src="${data.profile}">
<div class="specifics">
<div class="nickname-date">
<div class="nickname trancated">${data.author}</div>
<div class="date">
<i class="fa fa-clock-o"></i>
${formatDate(data.updated_at, '-', true)}
</div>
</div>
<div class="points">${data.points.toFixed(1)}</div>
</div>
</div>
</div>
</div>
`)
this.data = data
}
onClick() {
if (getModel('app.isBlocked')) return
setModel('app', { isBlocked: true })
http
.get(`/api/articles/${this.data.id}`)
.then(data => {
setModel('pageArticle', _.assignIn(data, {
hasAllCommentsLoaded: false
}))
this.publish('router.to', '/articles/' + this.data.id)
})
.catch(empty)
.then(() => {
setModel('app', { isBlocked: false })
})
}
}
module.exports = ArticleItem | {
"content_hash": "7c9b98c219bb6f61ceb506b8523cf821",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 109,
"avg_line_length": 29.82456140350877,
"alnum_prop": 0.5205882352941177,
"repo_name": "tmspnn/uic",
"id": "86b67bd713c45c391e98bd3a0972f3719b80bcf5",
"size": "1700",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/pages/Home/ArticleItem/ArticleItem.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "53434"
},
{
"name": "HTML",
"bytes": "728"
},
{
"name": "JavaScript",
"bytes": "76273"
}
],
"symlink_target": ""
} |
<?php
/**
* @see Zend_View_Helper_FormElement
*/
require_once 'Zend/View/Helper/FormElement.php';
/**
* @category GlassOnion
* @package GlassOnion_View
* @subpackage Helper
*/
class GlassOnion_View_Helper_FieldClass extends Zend_View_Helper_FormElement
{
/**
* Returns true if the field has errors (Only for Doctrine)
*
* @param string $field
* @param Doctrine_Record $record
* @return string
*/
public function fieldClass($field, Doctrine_Record $record = null)
{
if (null === $record) {
$record = $this->view->record;
}
return $record->getErrorStack()->contains($field) ? 'has-errors' : '';
}
} | {
"content_hash": "e0d2aa7c916897c83f4db1e8f74f4ebf",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 78,
"avg_line_length": 21.6875,
"alnum_prop": 0.6080691642651297,
"repo_name": "cizar/glass_onion",
"id": "9c60ec44a657f28a96be23f9eacf02088d152209",
"size": "1964",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "library/GlassOnion/View/Helper/FieldClass.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "427917"
},
{
"name": "Shell",
"bytes": "7169"
}
],
"symlink_target": ""
} |
package de.is24.deadcode4j.java8;
import java.util.HashSet;
import java.util.stream.Stream;
public class Lambda {
public static void main(String[] args) {
System.out.println(Stream.generate(HashSet<String>::new));
}
} | {
"content_hash": "d2629594e8e650261dc5def9822eb275",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 66,
"avg_line_length": 23.5,
"alnum_prop": 0.7148936170212766,
"repo_name": "ImmobilienScout24/deadcode4j",
"id": "4451dea6939307197195dd06cf9fac9974d542ea",
"size": "235",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/test/resources/de/is24/deadcode4j/java8/Lambda.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "544306"
}
],
"symlink_target": ""
} |
class ClientUpdateController < ApplicationController
# GET /client_update/poll.json?[service_id=#]&[last_log_id=#]
def poll
respond_to do |format|
format.html do
raise 'Invalid request'
end
format.json do
output = {}
# Daemon
output[:daemon_running] = daemon_running?
# Inbox
output[:new_inbox] = TeamMessage.user_new_messages current_user, last_time_inbox_checked
# Services
# 0 = all services (which you have access to)
# >0 = details for given service id as info for all services for that team
unless params[:service_id].nil?
service_id = params[:service_id].to_i
show_service_details = false
# Service List
service_list = Service
service_list = service_list.where(team_id: current_user.team_id) unless current_user.is_admin
service_list = service_list.where(public: true) if current_user.is_red_team
service_list = service_list.all
output[:service_list] = {}
service_list.each do |s|
show_service_details = true if s.id == service_id
output[:service_list][s.id] = s.status
end
# Team Uptimes
if service_id == 0
output[:team_uptime] = {}
if current_user.is_admin
teams = Team.select(:id).all.map{|t| t.id}
else
teams = [current_user.team_id]
end
teams.each do |team_id|
service_query = ServiceLog.includes(:service).where('services.team_id = ?', team_id)
service_query = service_query.where(public: true) if current_user.is_red_team
count = service_query.count
running_count = service_query.where(status: ServiceLog::STATUS_RUNNING).count
output[:team_uptime][team_id] = count == 0 ? 0 : (running_count * 100.0 / count).to_i
end
end
# Service Details
if show_service_details
count = ServiceLog.where(service_id: service_id).count
running_count = ServiceLog.where(service_id: service_id, status: ServiceLog::STATUS_RUNNING).count
output[:service_uptime] = (running_count * 100.0 / count).to_i
service_logs = ServiceLog.where(service_id: service_id)
service_logs = service_logs.where('id > ?', params[:last_log_id].to_i) unless params[:last_log_id].nil?
service_logs = service_logs.order(:id).all
output[:last_service_log_id] = service_logs.last.id unless service_logs.length == 0
output[:service_logs_html] = []
service_logs.each do |l|
output[:service_logs_html] << render_to_string(partial: 'services/service_log', formats: ['html'], layout: false, locals: {log: l})
end
end
end
# Return the json code
render json: output
end
end
end
end
| {
"content_hash": "b4d3328a974d72d6fc91e73b4fe9de43",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 145,
"avg_line_length": 39.78666666666667,
"alnum_prop": 0.5797587131367292,
"repo_name": "starkriedesel/ScoreEngine",
"id": "e51b9af1a4585984ca29797749973f8dcfa9494a",
"size": "2984",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/client_update_controller.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "44822"
},
{
"name": "HTML",
"bytes": "45413"
},
{
"name": "JavaScript",
"bytes": "10874"
},
{
"name": "Ruby",
"bytes": "133799"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.