text:
									D6-StarWars-Character-Sheet
									===========================

This is the Character sheet for the D6-Based  WEG Star Wars and the new D6 Star Wars games.

List your dice and pips next to the appropriate skills -  3pips equal another die.
The text areas are expandable for additional info.

Improvements 7.11.2017(Anduh):
	-Added attributes for wound levels, and trackers for force emptiness, force powers active, and control pain/resist stun.
	-All attributes roll using a template, taking wounds and wound-negating force powers in considerations, and the player can additionally choose to include Dice/pip mods
	-Bunch of useful die rolls in character number section
	-added trackerr for permanent initiative bonus(some races have that)
	-Added repeation armor section with soak rolls
	-Added missing Star Wars logo & black space background
	-Checkbox to hide force section
	-change dice icon to d6

Suggestions for improvement:
	-Tab for ship/droids with ability to roll from sheet
	-streamline force power use, tracker for power, maybe own tab for them
	-wiki page for sheet
	-Equipment section similar to weapons and armor that would add to some skills

Good source for all things D6 Star wars related, including fanmade conversions of campaign settings, forums and more:
						--------------->http://www.d6holocron.com/<-------------

-------------------------Legacy code below, old in 2017 already------------------------------
_____________________________________________________________________________________________

I'm sure that a skilled coder could do this far better, but This is my first attempt ever.

below you will find all of the relevant info for altering the sheet

                        Player:
                            <input type="text" name="attrplayer" />
                        Character Type:
                            <input type="text" name="attrcharactertype" />
                        Name:
                            <input type="text" name="attrcharactername" />

                                Age:
                                    <input type="text" name="attrage" />
                                Height:
                                    <input type="text" name="attrheight" />
                                Sex:
                                    <input type="text" name="attrsex" />
                                Weight:
                                    <input type="text" name="attrweight" />
                                Race:
                                    <input type="text" name="attrrace" />
                                Credits:
                                    <input type="number" name="attrcredits" />
                        Physical Description / Notes:
                            <textarea name="attr_physicaldescription"></textarea>
                            <textarea name="attr_notes"></textarea>

                        DEXTERITY:
                            <input type="text" name="attrdexterity" />

                                <input type="text" name="attrblaster" />         Blaster
                                <input type="text" name="attrbrawlingparry" />   Brawling Parry
                                <input type="text" name="attrdodge" />           Dodge
                                <input type="text" name="attrgrenade" />         Grenade
                                <input type="text" name="attrheavyweapons" />    Heavy Weapons
                                <input type="text" name="attrmeleeparry" />      Melee Parry
                                <input type="text" name="attrmelee" />           Melee
                                <input type="text" name="attrdexblank1" />       ---
                                <input type="text" name="attrdexblank2" />       ---

                        MECHANICAL
                            <input type="text" name="attrmechanical" />

                                 <input type="text" name="attrastrogation" />        Astrogation
                                 <input type="text" name="attrbeastriding" />        Beast Riding
                                 <input type="text" name="attrrepulsorliftop" />     Repulsorlift Op
                                 <input type="text" name="attrstarshipgunnery" />    Starship Gunnery
                                 <input type="text" name="attrstarshippiloting" />   Starship Piloting
                                 <input type="text" name="attrstarshipshields" />    Starship Shields
                                 <input type="text" name="attrmechblank1" />         ---
                                 <input type="text" name="attrmechblank2" />         ---

                        TECHNICAL
                            <input type="text" name="attrtechnical" />

                                  <input type="text" name="attrcompprogrepair" />       Comp Prog/Repair
                                  <input type="text" name="attrdemolition" />           Demolition
                                  <input type="text" name="attrdroidprogrepair" />      Droid Prog/Repair
                                  <input type="text" name="attrmedicine" />             Medicine
                                  <input type="text" name="attrrepulsorliftrepair" />   Repulsorlift Repair
                                  <input type="text" name="attrsecurity" />             Security
                                  <input type="text" name="attrstarship Repair" />      Starship Repair
                                  <input type="text" name="attrtechblank1" />           ---
                                  <input type="text" name="attrtechblank2" />           ---

                        PERCEPTION:
                            <input type="text" name="attrperception" />

                                 <input type="text" name="attrbargain" />      Bargain
                                 <input type="text" name="attrcommand" />      Command
                                 <input type="text" name="attrcon" />          Con
                                 <input type="text" name="attrgambling" />     Gambling
                                 <input type="text" name="attrhidesneak" />    Hide/Sneak
                                 <input type="text" name="attrsearch" />       Search
                                 <input type="text" name="attrperblank1" />    ---
                                 <input type="text" name="attrperblank2" />    ---

                        STRENGTH
                            <input type="text" name="attrstrength" />

                                <input type="text" name="attrbrawling" />          Brawling
                                <input type="text" name="attrclimingjumping" />    Climbing/Jumping
                                <input type="text" name="attrlifting" />           Lifting
                                <input type="text" name="attrstamina" />           Stamina
                                <input type="text" name="attrswimming" />          Swimming
                                <input type="text" name="attrstrengthblank1" />    ---
                                <input type="text" name="attrstrengthblank2" />    ---

                            KNOWLEDGE:
                                <input type="text" name="attrknowledge" />

                                    <input type="text" name="attralienraces" />         Alien Races
                                    <input type="text" name="attrbureaucracy" />        Bureaucracy
                                    <input type="text" name="attrcultures" />           Cultures
                                    <input type="text" name="attrlanguages" />          Languages
                                    <input type="text" name="attrplanetarysystems" />   Planetary Systems
                                    <input type="text" name="attrstreetwise" />         Streetwise
                                    <input type="text" name="attrsurvival" />           Survival
                                    <input type="text" name="attrtechnology" />         Technology
                                    <input type="text" name="attrknowblank1" />         ---
                                    <input type="text" name="attrknowblank2" />         ---
                                    <input type="text" name="attrknowblank3" />         ---

                        FORCE POWERS
                            <input type="text" name="attrcontrol" />   CONTROL
                            <input type="text" name="attrsense" />     SENSE
                            <input type="text" name="attralter" />     ALTER

                        Force Points
                            <input type="number" name="attrforcepoint" />

                        Dark Side Points
                            <input type="number" name="attrdarkside" />

                        Wound Status
                            <input type="number" name="attrwoundstatus" />

                        Skill Points
                            <input type="number" name="attrskillpoints" />

                        Background
                            <textarea name="attrbackground"></textarea>

                        Personality
                            <textarea name="attrpersonality"></textarea>

                        Some quotes:
                            <textarea name="attrquotes"></textarea>

                        Connections to other characters
                            <textarea name="attrconnections"></textarea>

                        Equipment
                            <textarea name="attrgeartext1"></textarea>
                            <textarea name="attrgeartext2"></textarea>
                            <textarea name="attrgeartext3"></textarea>
                            <textarea name="attrgeartext4"></textarea>


text:
<?php

namespace common\models;

use Yii;
use yii\db\ActiveRecord;
use common\components\extended\extActiveRecord;
use yii\behaviors\BlameableBehavior;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "component_nmkd".
 *
 * @property integer $id
 * @property string $name
 * @property integer $created_at
 * @property integer $created_by
 * @property integer $updated_at
 * @property integer $updated_by
 *
 * @property FileNmkd[] $fileNmkds
 */
class Componentnmkd extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'component_nmkd';
    }

    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'timestamp' => [
                'class' => TimestampBehavior::className(),
                'attributes' => [
                    ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],
                    ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
                ],
            ],
            'blameable' => [
                'class' => BlameableBehavior::className(),
                'createdByAttribute' => 'created_by',
                'updatedByAttribute' => 'updated_by'
            ],
        ];
    }
    public function rules()
    {
        return [
            [['name'], 'required'],
            [['created_at', 'created_by', 'updated_at', 'updated_by'], 'integer'],
            [['name'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Назва компоненту',
            'created_at' => 'Дата створення',
            'updated_at' => 'Дата редагування',
            'created_by' => 'Створено',
            'updated_by' => 'Відредаговано',
        ];
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getFileNmkds()
    {
        return $this->hasMany(FileNmkd::className(), ['component_nmkd_id' => 'id']);
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace EasyAdWords\Reports;

/**
 * Report class that deals with custom report needs.
 * Class FinalUrlReport
 * @package EasyAdWords\Reports
 */
class CustomReport extends Report implements ReportInterface {

    /**
     * FinalUrlReport constructor.
     * @param ReportConfig $config
     * @param null $reportType
     */
    public function __construct(ReportConfig $config, $reportType = null) {
        parent::__construct($config, $reportType);
    }

    /**
     * Download the raw CSV report from AdWords and store in the object.
     * @return $this
     */
    public function download() {
        $this->downloadRawReport();

        return $this;
    }

    /**
     * Format the raw CSV report into a flat array.
     * @return $this
     */
    public function format() {
        $this->formatRawReport();

        return $this;
    }
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Dictionary App</title>

    <link href="css/bootstrap.css" rel="stylesheet">

    <link href="css/stickyfooter.css" rel="stylesheet">

      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        Toggle navigation

      </button>
      Dictionary App

Please Enter the word.

        <form>
Enter Word: <input type="text" id="txt1" onblur="showHint(this.value)">
</form>

Suggestions:

Meaning:

Fork our code at GitHub


text:
cask 'audirvana' do
  version '3.5.16'
  sha256 'eea92559b875e725b27b82b477cf5aea29cbb4b51bc53b08f8937b52d47db389'

  url "https://audirvana.com/delivery/Audirvana_#{version}.dmg"
  appcast "https://audirvana.com/delivery/audirvana#{version.major}_#{version.minor}_appcast.xml"
  name 'Audirvana'
  homepage 'https://audirvana.com/'

  app 'Audirvana.app'

  zap trash: [
               '/Library/LaunchDaemons/com.audirvana.Audirvana-Plus.plist',
               '/Library/PrivilegedHelperTools/com.audirvana.Audirvana-Plus',
               '~/Library/Caches/com.audirvana.Audirvana-Plus',
               '~/Library/Cookies/com.audirvana.Audirvana-Plus.binarycookies',
               '~/Library/Preferences/com.audirvana.Audirvana-Plus.plist',
             ]
end


text:
var sys = require("util")
  , assert = require("assert")
  , XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
  , xhr;

xhr = new XMLHttpRequest();

xhr.onreadystatechange = function() {
  if (this.readyState == 4) {
    assert.equal("Hello World", this.responseText);
    this.close();
    runSync();
  }
};

// Async
var url = "file://" + __dirname + "/testdata.txt";
xhr.open("GET", url);
xhr.send();

// Sync
var runSync = function() {
  xhr = new XMLHttpRequest();

  xhr.onreadystatechange = function() {
    if (this.readyState == 4) {
      assert.equal("Hello World", this.responseText);
      this.close();
      sys.puts("done");
    }
  };
  xhr.open("GET", url, false);
  xhr.send();
}


text:
//
//  PromoCollectionTableViewController.m
//  Parkify
//
//  Created by Me on 10/26/12.
//
//

#import "PromoCollectionTableViewController.h"
#import "ExtraDetailTableViewCell.h"
#import "UIViewController+AppData_User.h"

@interface PromoCollectionTableViewController ()

@end

@implementation PromoCollectionTableViewController
@synthesize promos = _promos;

-(void) setPromos:(NSArray *)promos{
    _promos = [promos sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2) {
        NSNumber* mID1 = [NSNumber numberWithInt:((Promo*)obj1).mId];
        NSNumber* mID2 = [NSNumber numberWithInt:((Promo*)obj2).mId];
        return (NSComparisonResult)[mID1 compare:mID2];
    }];
}
- (id)initWithStyle:(UITableViewStyle)style
{
    self = [super initWithStyle:style];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;

    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
}

- (void)viewWillAppear:(BOOL)animated {
    self.promos = [[self getUser].promos copy];
    [self.tableView reloadData];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    // Return the number of sections.
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    // Return the number of rows in the section.
    return self.promos.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString *CellIdentifier = @"PromoCell";
    //UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
    ExtraDetailTableViewCell *cell = (ExtraDetailTableViewCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (!cell.textLabel) {
        cell = [[ExtraDetailTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
    }

    Promo* p = [self.promos objectAtIndex:indexPath.row];
    cell.textLabel.text = p.name;
    cell.detailTextLabel.text = p.description;
    cell.selectionStyle = UITableViewCellEditingStyleNone;

    return cell;

}

/*
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
    // Return NO if you do not want the specified item to be editable.
    return YES;
}
*/

/*
// Override to support editing the table view.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (editingStyle == UITableViewCellEditingStyleDelete) {
        // Delete the row from the data source
        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
    }
    else if (editingStyle == UITableViewCellEditingStyleInsert) {
        // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    }
}
*/

/*
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
}
*/

/*
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
    // Return NO if you do not want the item to be re-orderable.
    return YES;
}
*/

#pragma mark - Table view delegate

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    // Navigation logic may go here. Create and push another view controller.
    /*
     <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
     // ...
     // Pass the selected object to the new view controller.
     [self.navigationController pushViewController:detailViewController animated:YES];
     */
}

@end


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
in Bailey, Synops. Queensl. Fl. 1(Suppl. ): 77 (1886)

#### Original name
Trypethelium subplanum C. Knight

### Remarks
null


text:
<!--
# Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
  -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
        <groupId>org.wso2.carbon.multitenancy</groupId>
        <artifactId>tenant-mgt-parent</artifactId>
        <version>4.4.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.tenant.redirector.servlet</artifactId>
    <packaging>bundle</packaging>
    <version>4.4.1-SNAPSHOT</version>
    <name>WSO2 Stratos - Tenant Specific URL redirector</name>

    <build>

        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>

                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Private-Package>
                            org.wso2.carbon.redirector.servlet.services.*,
                            org.wso2.carbon.redirector.servlet.internal.*,
                        </Private-Package>
                        <Export-Package>
                            org.wso2.carbon.redirector.servlet.util.*,
                        </Export-Package>
                        <Import-Package>
                            org.wso2.carbon.registry.core.*;version="${carbon.kernel.registry.imp.pkg.version}",
                            !javax.xml.namespace,
                            javax.xml.namespace; version=0.0.0,
                            javax.servlet;version="${imp.pkg.version.javax.servlet}",
                            javax.servlet.http;version="${imp.pkg.version.javax.servlet}",
                            org.apache.axiom.*; version="${axiom.osgi.version.range}",
                            *;resolution:=optional
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>

        <dependency>
            <groupId>org.apache.axis2.wso2</groupId>
            <artifactId>axis2</artifactId>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.registry.core</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.commons</groupId>
            <artifactId>org.wso2.carbon.tenant.common</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.multitenancy</groupId>
            <artifactId>org.wso2.carbon.tenant.activation</artifactId>
        </dependency>
    </dependencies>

</project>


text:
		<title>Member List</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">

				Main Page
				Class Hierarchy
				Compound List
				Compound Members

PxBaseFlag Member List

This is the complete list of members for PxBaseFlag, including all inherited members.

eIS_RELEASABLE enum value	PxBaseFlag

Enum enum name	PxBaseFlag

eOWNS_MEMORY enum value	PxBaseFlag

Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="rustdoc">
    <meta name="description" content="API documentation for the Rust `Implementor` struct in crate `rustdoc`.">
    <meta name="keywords" content="rust, rustlang, rust-lang, Implementor">

    <title>rustdoc::html::render::Implementor - Rust</title>

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

    <link rel="shortcut icon" href="http://www.rust-lang.org/favicon.ico">

rustdoc::<wbr>html::<wbr>render

        <form class="search-form js-only">

                <input class="search-input" name="search"
                       autocomplete="off"
                       placeholder="Click or press 'S' to search, '?' for more options..."
                       type="search">

        </form>

Struct rustdoc::<wbr>html::<wbr>render::<wbr>Implementor<wbr>Unstable
            [-] [+]
        [src]

pub struct Implementor {
    pub def_id: DefId,
    pub generics: Generics,
    pub trait_: Type,
    pub for_: Type,
    pub stability: Option<Stability>,
}

Metadata about an implementor of a trait.

Fields

def_id

generics

trait_

for_

stability

Keyboard shortcuts

?

Show this help dialog

S

Focus the search field

⇤

Move up in search results

⇥

Move down in search results

⏎

Go to active search result

Search tricks

                Prefix searches with a type followed by a colon (e.g.
                fn:) to restrict the search to a given type.

                Accepted types are: fn, mod,
                struct, enum,
                trait, typedef (or
                tdef).


text:
<?php
namespace che;

class VKException extends \Exception {
    const CURL_NOT_FOUND = 1;
    const CODE_NOT_DEFINED = 2;
    const CURL_ERROR = 3;
    const REQUIRE_PARAMS_AS_ARRAY = 4;

    public static function raise($response) {
        if (!isset($response['result']) && isset($response['code']) && $response['http'] === true) {
            throw new VKServerException("VK API Serverside error", $response['code']);
        } elseif (isset($response['result']['error'])) {
            $error = $response['result']['error'];

            $method_name = 'method.unknown';
            if (is_array($error) && isset($error['request_params'])) {
                foreach ($error['request_params'] as $param) {
                    if ($param['key'] == 'method') {
                        $method_name = $param['value'];
                        break;
                    }
                }
            }

            if (isset($error['error_msg'])) {
                $error_msg = $error['error_msg'];
            } elseif (is_string($error)) {
                $error_msg = trim($error);
            } else
                $error_msg = 'Unknown error';

            if (isset($response['result']['error_description']))
                $error_msg .= ' | ' . $response['result']['error_description'];
            if (isset($error['redirect_uri']))
                $error_msg .= ' | ' . $error['redirect_uri'];

            if (isset($error['captcha_sid'])) {
                $error_msg .= ' | img: '.$error['captcha_img'].' | sid: '.$error['captcha_sid'];
            }

            $message = $method_name . ': ' . $error_msg;
            $code    = (isset($error['error_code'])) ? intval($error['error_code']) : 0;
        } else {
            $message = 'Unknown error';
            $code    = 0;
        }

        throw new VKException($message, $code);
    }
}

class VKServerException extends VKException {}


text:
<?php
namespace Application\Utility;

use Zend\Permissions\Acl\Acl as ZendAcl;
use Zend\Permissions\Acl\Role\GenericRole as Role;
use Zend\Permissions\Acl\Resource\GenericResource as Resource;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

/**
 *
 * @author jose.moreno
 *
 */
class Acl extends ZendAcl implements ServiceLocatorAwareInterface
{
    const DEFAULT_ROLE = 'administrador';
    protected $_roleTableObject;
    protected $serviceLocator;
    protected $roles;
    protected $permissions;
    protected $resources;
    protected $rolePermission;
    protected $commonPermission;

public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
    {
        $this->serviceLocator = $serviceLocator;

        return $this;
    }
    public function getServiceLocator()
    {
        return $this->serviceLocator;
    }
    public function initAcl()
    {

        $this->roles = $this->_getAllRoles();
        $this->resources = $this->_getAllResources();
        $this->rolePermission = $this->_getRolePermissions();
        $this->commonPermission = array(
            'Application\Controller\Index' => array(
                'logout',
                'index'
            )
        );
        $this->_addRoles()
            ->_addResources()
            ->_addRoleResources();
    }
    public function isAccessAllowed($role, $resource, $permission)
    {
        //$this->debugAcl($role, $resource, $permission);

        if (! $this->hasResource($resource)) {
            return false;
        }
        if ($this->isAllowed($role, $resource, $permission)) {
            return true;
        }
        return false;
    }
    protected function _addRoles()
    {
        $this->addRole(new Role(self::DEFAULT_ROLE));
        if (! empty($this->roles)) {
            foreach ($this->roles as $role) {
                $roleName = $role['nombre'];
                if (! $this->hasRole($roleName)){
                    $this->addRole(new Role($roleName), self::DEFAULT_ROLE);
                }
            }
        }
        return $this;
    }
    protected function _addResources()
    {
        //echo"
"; print_r(($this->resources)); echo"
";
        if (! empty($this->resources)) {
            foreach ($this->resources as $resource) {
                if (! $this->hasResource($resource['nombreRecurso'])) {
                    $this->addResource(new Resource($resource['nombreRecurso']));
                }
            }
        }

        // add common resources
        if (! empty($this->commonPermission)) {
            foreach ($this->commonPermission as $resource => $permissions) {
                if (! $this->hasResource($resource)) {
                    $this->addResource(new Resource($resource));
                }
            }
        }

        return $this;
    }
    protected function _addRoleResources()
    {
        //echo"
"; print_r($this->commonPermission); echo"
";
        // allow common resource/permission to guest user
        if (! empty($this->commonPermission)) {
            foreach ($this->commonPermission as $resource => $permissions) {
                //echo"
"; print_r($permissions); echo"
";
                foreach ($permissions as $permission) {
                    $this->allow(self::DEFAULT_ROLE, $resource, $permission);
                }
            }
        }
        if (! empty($this->rolePermission)) {
            foreach ($this->rolePermission as $rolePermissions) {
                $this->allow($rolePermissions['nombre'], $rolePermissions['nombreRecurso'], $rolePermissions['nombrePermiso']);
            }
        }

        return $this;
    }
    protected function _getAllRoles()
    {
        $roleTable = $this->getServiceLocator()->get("RoleTable");
        return $roleTable->getUserRoles();
    }
    protected function _getAllResources()
    {
        $resourceTable = $this->getServiceLocator()->get("ResourceTable");
        return $resourceTable->getAllResources();
    }
    protected function _getRolePermissions()
    {
        $rolePermissionTable = $this->getServiceLocator()->get("RolePermissionTable");
        return $rolePermissionTable->getRolePermissions();
    }

    private function debugAcl($role, $resource, $permission)
    {
        echo 'Role: ' . $role . '==> ' . $resource. '\\' . $permission . '
';
    }

}

?>


text:
<!DOCTYPE html>

  <meta charset="UTF-8">
  <title>Code Coverage for D:\Workspaces\PhpStorm\jobeet/vendor/monolog</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="../../css/bootstrap.min.css" rel="stylesheet">
  <link href="../../css/style.css" rel="stylesheet">

D:\Workspaces\PhpStorm\jobeet

vendor

monolog

(Dashboard)

Code Coverage

Lines

Functions and Methods

Classes and Traits

      Total

           39.35% covered (danger)

39.35%

109 / 277

           13.10% covered (danger)

13.10%

11 / 84

           0.00% covered (danger)

0.00%

0 / 7

       monolog

           39.35% covered (danger)

39.35%

109 / 277

           13.10% covered (danger)

13.10%

11 / 84

           0.00% covered (danger)

0.00%

0 / 7

Legend

     Low: 0% to 50%
     Medium: 50% to 90%
     High: 90% to 100%

     Generated by PHP_CodeCoverage 2.0.5 using PHP 5.5.12 and PHPUnit 4.0.17 at Thu Jun 26 11:26:52 CST 2014.


text:
id: 2329
title: Communicable disease outbreaks in 2017 in Nepal
date: 2019-02-21T08:25:21-05:00
author: codefornepal
layout: revision
guid: https://codefornepal.org/2019/02/2328-revision-v1/
permalink: /2019/02/2328-revision-v1/
---
<iframe src="https://app.workbenchdata.com/embed/45790" width="560" height="315" frameborder="0" /><iframe src="https://app.workbenchdata.com/embed/45790" width="560" height="315" frameborder="0" />


text:
package org.engine.gui.menus;

import glib.util.vector.GVector3f;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.util.HashMap;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import org.MainStrategy;
import org.engine.component.GameComponent;
import org.engine.light.PointLight;

public class BMenu extends JPanel{
	private static final long serialVersionUID = 1L;

	private final static int height = MainStrategy.HEIGHT/7;
	private HashMap<String, JSpinner> values = new HashMap<String, JSpinner>();
	private GameComponent selectedComponent;
	private boolean ready;

	//ACTIONS

	private ChangeListener changeValueEvent = new ChangeListener(){
		public void stateChanged(ChangeEvent e) {
			if(ready){

				float posX = 0;
				if(values.get("POS_X").getValue() instanceof Float )
					posX = (float)values.get("POS_X").getValue();
				if(values.get("POS_X").getValue() instanceof Double )
					posX = (float)(double)values.get("POS_X").getValue();

				float posY = 0;
				if(values.get("POS_Y").getValue() instanceof Float )
					posY = (float)values.get("POS_Y").getValue();
				if(values.get("POS_Y").getValue() instanceof Double )
					posY = (float)(double)values.get("POS_Y").getValue();

				float posZ = 0;
				if(values.get("POS_Z").getValue() instanceof Float )
					posZ = (float)values.get("POS_Z").getValue();
				if(values.get("POS_Z").getValue() instanceof Double )
					posZ = (float)(double)values.get("POS_Z").getValue();

				selectedComponent.setPosition(new GVector3f(posX, posY, posZ));

				float rotX = 0;
				if(values.get("ROT_X").getValue() instanceof Float )
					rotX = (float)values.get("ROT_X").getValue();
				if(values.get("ROT_X").getValue() instanceof Double )
					rotX = (float)(double)values.get("ROT_X").getValue();

				float rotY = 0;
				if(values.get("ROT_Y").getValue() instanceof Float )
					rotY = (float)values.get("ROT_Y").getValue();
				if(values.get("ROT_Y").getValue() instanceof Double )
					rotY = (float)(double)values.get("ROT_Y").getValue();

				float rotZ = 0;
				if(values.get("ROT_Z").getValue() instanceof Float )
					rotZ = (float)values.get("ROT_Z").getValue();
				if(values.get("ROT_Z").getValue() instanceof Double )
					rotZ = (float)(double)values.get("ROT_Z").getValue();

				selectedComponent.setRotation(new GVector3f(rotX, rotY, rotZ));
			}
		}
	};

	private ChangeListener changeAtten = new ChangeListener(){
		public void stateChanged(ChangeEvent e) {
			if(ready && selectedComponent instanceof PointLight){
				PointLight light = (PointLight)selectedComponent;

				light.setAttenuation(new GVector3f());
			}
		}
	};

	//CONSTRUCTORS

	public BMenu(){
		setLayout(new BorderLayout());
		setPreferredSize(new Dimension(height,height));
		setBorder(BorderFactory.createLineBorder(Color.black,1,true));

	}

	//OTHERS

	private JPanel createSelector(String name, float value){
		JPanel panel = new JPanel();
		panel.add(new JLabel(name));
		JSpinner spinner = new JSpinner(new SpinnerNumberModel((float)value,-1000,1000,1));
		spinner.addChangeListener(changeValueEvent);
		values.put(name, spinner);
		panel.add(values.get(name));
		return panel;
	}

	public void update(){
		if(selectedComponent != null && !values.isEmpty()){
			try{
				values.get("POS_X").setValue(selectedComponent.getPosition().getX());
				values.get("POS_Y").setValue(selectedComponent.getPosition().getY());
				values.get("POS_Z").setValue(selectedComponent.getPosition().getZ());

				values.get("ROT_X").setValue(selectedComponent.getRotation().getX());
				values.get("ROT_Y").setValue(selectedComponent.getRotation().getY());
				values.get("ROT_Z").setValue(selectedComponent.getRotation().getZ());

				values.get("SCALE_X").setValue(selectedComponent.getScale().getX());
				values.get("SCALE_Y").setValue(selectedComponent.getScale().getY());
				values.get("SCALE_Z").setValue(selectedComponent.getScale().getZ());
			}
			catch(NullPointerException e){
				update();
			}

			updateUI();
		}
	}

	private void addVector(int line, String name, JPanel addTo, GVector3f vector){
		GridBagConstraints c;

		c = new GridBagConstraints();
		c.fill = GridBagConstraints.HORIZONTAL;
		c.gridx = line;
		c.gridy = 0;
		addTo.add(createSelector(name+"_X",vector.getX()),c);

		c = new GridBagConstraints();
		c.fill = GridBagConstraints.HORIZONTAL;
		c.gridx = line;
		c.gridy = 1;
		addTo.add(createSelector(name+"_Y",vector.getY()),c);

		c = new GridBagConstraints();
		c.fill = GridBagConstraints.HORIZONTAL;
		c.gridx = line;
		c.gridy = 2;
		addTo.add(createSelector(name+"_Z",vector.getZ()),c);
	}

	public void addSelectComponent(GameComponent component) {
		ready = false;
		selectedComponent = component;
		removeAll();
		values.clear();
		if(component != null){
			JPanel panel = new JPanel();
			panel.setLayout(new GridBagLayout());

			addVector(0,"POS",panel,component.getPosition());
			addVector(1,"ROT",panel,component.getRotation());
			addVector(2,"SCALE",panel,component.getScale());
			add(panel,BorderLayout.WEST);
		}

		updateUI();
		ready = true;
	}

	//PANELS

	public JPanel createPointLightPanel(PointLight light){
		JPanel panel = new JPanel();

		JSpinner atten1 = new JSpinner(new SpinnerNumberModel(light.getAttenuation().getX(),-1000,1000,1));
		atten1.addChangeListener(changeAtten);
		JSpinner atten2 = new JSpinner(new SpinnerNumberModel(light.getAttenuation().getY(),-1000,1000,1));
		atten2.addChangeListener(changeAtten);
		JSpinner atten3 = new JSpinner(new SpinnerNumberModel(light.getAttenuation().getZ(),-1000,1000,1));
		atten3.addChangeListener(changeAtten);

		return panel;
	}
}


text:
'use strict';

var colorScaleAttrs = require('../../components/colorscale/attributes');
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs;
var surfaceAttrs = require('../surface/attributes');
var baseAttrs = require('../../plots/attributes');

var extendFlat = require('../../lib/extend').extendFlat;

module.exports = extendFlat({
    x: {
        valType: 'data_array',
        editType: 'calc+clearAxisTypes',
        description: [
            'Sets the X coordinates of the vertices. The nth element of vectors `x`, `y` and `z`',
            'jointly represent the X, Y and Z coordinates of the nth vertex.'
        ].join(' ')
    },
    y: {
        valType: 'data_array',
        editType: 'calc+clearAxisTypes',
        description: [
            'Sets the Y coordinates of the vertices. The nth element of vectors `x`, `y` and `z`',
            'jointly represent the X, Y and Z coordinates of the nth vertex.'
        ].join(' ')
    },
    z: {
        valType: 'data_array',
        editType: 'calc+clearAxisTypes',
        description: [
            'Sets the Z coordinates of the vertices. The nth element of vectors `x`, `y` and `z`',
            'jointly represent the X, Y and Z coordinates of the nth vertex.'
        ].join(' ')
    },

    i: {
        valType: 'data_array',
        editType: 'calc',
        description: [
            'A vector of vertex indices, i.e. integer values between 0 and the length of the vertex',
            'vectors, representing the *first* vertex of a triangle. For example, `{i[m], j[m], k[m]}`',
            'together represent face m (triangle m) in the mesh, where `i[m] = n` points to the triplet',
            '`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `i` represents a',
            'point in space, which is the first vertex of a triangle.'
        ].join(' ')
    },
    j: {
        valType: 'data_array',
        editType: 'calc',
        description: [
            'A vector of vertex indices, i.e. integer values between 0 and the length of the vertex',
            'vectors, representing the *second* vertex of a triangle. For example, `{i[m], j[m], k[m]}` ',
            'together represent face m (triangle m) in the mesh, where `j[m] = n` points to the triplet',
            '`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `j` represents a',
            'point in space, which is the second vertex of a triangle.'
        ].join(' ')

    },
    k: {
        valType: 'data_array',
        editType: 'calc',
        description: [
            'A vector of vertex indices, i.e. integer values between 0 and the length of the vertex',
            'vectors, representing the *third* vertex of a triangle. For example, `{i[m], j[m], k[m]}`',
            'together represent face m (triangle m) in the mesh, where `k[m] = n` points to the triplet ',
            '`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `k` represents a',
            'point in space, which is the third vertex of a triangle.'
        ].join(' ')

    },

    text: {
        valType: 'string',
        dflt: '',
        arrayOk: true,
        editType: 'calc',
        description: [
            'Sets the text elements associated with the vertices.',
            'If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,',
            'these elements will be seen in the hover labels.'
        ].join(' ')
    },
    hovertext: {
        valType: 'string',
        dflt: '',
        arrayOk: true,
        editType: 'calc',
        description: 'Same as `text`.'
    },
    hovertemplate: hovertemplateAttrs({editType: 'calc'}),

    xhoverformat: axisHoverFormat('x'),
    yhoverformat: axisHoverFormat('y'),
    zhoverformat: axisHoverFormat('z'),

    delaunayaxis: {
        valType: 'enumerated',
        values: [ 'x', 'y', 'z' ],
        dflt: 'z',
        editType: 'calc',
        description: [
            'Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the',
            'Delaunay triangulation.',
            'It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate',
            'Delaunay triangulation.'
        ].join(' ')
    },

    alphahull: {
        valType: 'number',
        dflt: -1,
        editType: 'calc',
        description: [
            'Determines how the mesh surface triangles are derived from the set of',
            'vertices (points) represented by the `x`, `y` and `z` arrays, if',
            'the `i`, `j`, `k` arrays are not supplied.',
            'For general use of `mesh3d` it is preferred that `i`, `j`, `k` are',
            'supplied.',

            'If *-1*, Delaunay triangulation is used, which is mainly suitable if the',
            'mesh is a single, more or less layer surface that is perpendicular to `delaunayaxis`.',
            'In case the `delaunayaxis` intersects the mesh surface at more than one point',
            'it will result triangles that are very long in the dimension of `delaunayaxis`.',

            'If *>0*, the alpha-shape algorithm is used. In this case, the positive `alphahull` value',
            'signals the use of the alpha-shape algorithm, _and_ its value',
            'acts as the parameter for the mesh fitting.',

            'If *0*,  the convex-hull algorithm is used. It is suitable for convex bodies',
            'or if the intention is to enclose the `x`, `y` and `z` point set into a convex',
            'hull.'
        ].join(' ')
    },

    intensity: {
        valType: 'data_array',
        editType: 'calc',
        description: [
            'Sets the intensity values for vertices or cells',
            'as defined by `intensitymode`.',
            'It can be used for plotting fields on meshes.'
        ].join(' ')
    },
    intensitymode: {
        valType: 'enumerated',
        values: ['vertex', 'cell'],
        dflt: 'vertex',
        editType: 'calc',
        description: [
            'Determines the source of `intensity` values.'
        ].join(' ')
    },

    // Color field
    color: {
        valType: 'color',
        editType: 'calc',
        description: 'Sets the color of the whole mesh'
    },
    vertexcolor: {
        valType: 'data_array',
        editType: 'calc',
        description: [
            'Sets the color of each vertex',
            'Overrides *color*. While Red, green and blue colors',
            'are in the range of 0 and 255; in the case of having',
            'vertex color data in RGBA format, the alpha color',
            'should be normalized to be between 0 and 1.'
        ].join(' ')
    },
    facecolor: {
        valType: 'data_array',
        editType: 'calc',
        description: [
            'Sets the color of each face',
            'Overrides *color* and *vertexcolor*.'
        ].join(' ')
    },
    transforms: undefined
},

colorScaleAttrs('', {
    colorAttr: '`intensity`',
    showScaleDflt: true,
    editTypeOverride: 'calc'
}), {
    opacity: surfaceAttrs.opacity,

    // Flat shaded mode
    flatshading: {
        valType: 'boolean',
        dflt: false,
        editType: 'calc',
        description: [
            'Determines whether or not normal smoothing is applied to the meshes,',
            'creating meshes with an angular, low-poly look via flat reflections.'
        ].join(' ')
    },

    contour: {
        show: extendFlat({}, surfaceAttrs.contours.x.show, {
            description: [
                'Sets whether or not dynamic contours are shown on hover'
            ].join(' ')
        }),
        color: surfaceAttrs.contours.x.color,
        width: surfaceAttrs.contours.x.width,
        editType: 'calc'
    },

    lightposition: {
        x: extendFlat({}, surfaceAttrs.lightposition.x, {dflt: 1e5}),
        y: extendFlat({}, surfaceAttrs.lightposition.y, {dflt: 1e5}),
        z: extendFlat({}, surfaceAttrs.lightposition.z, {dflt: 0}),
        editType: 'calc'
    },
    lighting: extendFlat({
        vertexnormalsepsilon: {
            valType: 'number',
            min: 0.00,
            max: 1,
            dflt: 1e-12, // otherwise finely tessellated things eg. the brain will have no specular light reflection
            editType: 'calc',
            description: 'Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.'
        },
        facenormalsepsilon: {
            valType: 'number',
            min: 0.00,
            max: 1,
            dflt: 1e-6, // even the brain model doesn't appear to need finer than this
            editType: 'calc',
            description: 'Epsilon for face normals calculation avoids math issues arising from degenerate geometry.'
        },
        editType: 'calc'
    }, surfaceAttrs.lighting),

    hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {editType: 'calc'}),
    showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false})
});


text:
function ok=start(obj,labelImg)

ok=false;
[h,w,nFrames]=size(labelImg);

stpointsfg=find(labelImg==1);
stpointsbg=find(labelImg==2);

[mask,walker_probabilities]=random_walker(obj.img,[stpointsfg;stpointsbg],[ones(length(stpointsfg),1);2*ones(length(stpointsbg),1)]);
seg=(mask==1);
obj.seg=255*uint8(seg);
ok=true;


text:
<?dbhtml filename="internals.html"?>

<info><title>Porting to New Hardware or Operating Systems</title>
  <keywordset>
    <keyword>ISO C++</keyword>
    <keyword>internals</keyword>
  </keywordset>
</info>

<para>
</para>

<para>This document explains how to port libstdc++ (the GNU C++ library) to
a new target.
</para>

   <para>In order to make the GNU C++ library (libstdc++) work with a new
target, you must edit some configuration files and provide some new
header files.  Unless this is done, libstdc++ will use generic
settings which may not be correct for your target; even if they are
correct, they will likely be inefficient.
   </para>

   <para>Before you get started, make sure that you have a working C library on
your target.  The C library need not precisely comply with any
particular standard, but should generally conform to the requirements
imposed by the ANSI/ISO standard.
   </para>

   <para>In addition, you should try to verify that the C++ compiler generally
works.  It is difficult to test the C++ compiler without a working
library, but you should at least try some minimal test cases.
   </para>

   <para>(Note that what we think of as a "target," the library refers to as
a "host."  The comment at the top of configure.ac explains why.)
   </para>

<info><title>Operating System</title></info>

<para>If you are porting to a new operating system (as opposed to a new chip
using an existing operating system), you will need to create a new
directory in the config/os hierarchy.  For example, the IRIX
configuration files are all in config/os/irix.  There is no set
way to organize the OS configuration directory.  For example,
config/os/solaris/solaris-2.6 and
config/os/solaris/solaris-2.7 are used as configuration
directories for these two versions of Solaris.  On the other hand, both
Solaris 2.7 and Solaris 2.8 use the config/os/solaris/solaris-2.7
directory.  The important information is that there needs to be a
directory under config/os to store the files for your operating
system.
</para>

   <para>You might have to change the configure.host file to ensure that
your new directory is activated.  Look for the switch statement that sets
os_include_dir, and add a pattern to handle your operating system
if the default will not suffice.  The switch statement switches on only
the OS portion of the standard target triplet; e.g., the solaris2.8
in sparc-sun-solaris2.8.  If the new directory is named after the
OS portion of the triplet (the default), then nothing needs to be changed.
   </para>

   <para>The first file to create in this directory, should be called
os_defines.h.  This file contains basic macro definitions
that are required to allow the C++ library to work with your C library.
   </para>

   <para>Several libstdc++ source files unconditionally define the macro
_POSIX_SOURCE.  On many systems, defining this macro causes
large portions of the C library header files to be eliminated
at preprocessing time.  Therefore, you may have to #undef this
macro, or define other macros (like _LARGEFILE_SOURCE or
__EXTENSIONS__).  You won't know what macros to define or
undefine at this point; you'll have to try compiling the library and
seeing what goes wrong.  If you see errors about calling functions
that have not been declared, look in your C library headers to see if
the functions are declared there, and then figure out what macros you
need to define.  You will need to add them to the
CPLUSPLUS_CPP_SPEC macro in the GCC configuration file for your
target.  It will not work to simply define these macros in
os_defines.h.
   </para>

   <para>At this time, there are a few libstdc++-specific macros which may be
defined:
   </para>

   <para>_GLIBCXX_USE_C99_CHECK may be defined to 1 to check C99
function declarations (which are not covered by specialization below)
found in system headers against versions found in the library headers
derived from the standard.
   </para>

   <para>_GLIBCXX_USE_C99_DYNAMIC may be defined to an expression that
yields 0 if and only if the system headers are exposing proper support
for C99 functions (which are not covered by specialization below).  If
defined, it must be 0 while bootstrapping the compiler/rebuilding the
library.
   </para>

   <para>_GLIBCXX_USE_C99_LONG_LONG_CHECK may be defined to 1 to check
the set of C99 long long function declarations found in system headers
against versions found in the library headers derived from the
standard.

   </para>
   <para>_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC may be defined to an
expression that yields 0 if and only if the system headers are
exposing proper support for the set of C99 long long functions.  If
defined, it must be 0 while bootstrapping the compiler/rebuilding the
library.
   </para>
   <para>_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC may be defined to an
expression that yields 0 if and only if the system headers
are exposing proper support for the related set of macros.  If defined,
it must be 0 while bootstrapping the compiler/rebuilding the library.
   </para>
   <para>_GLIBCXX_USE_C99_FLOAT_TRANSCENDENTALS_CHECK may be defined
to 1 to check the related set of function declarations found in system
headers against versions found in the library headers derived from
the standard.
   </para>
   <para>_GLIBCXX_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC may be defined
to an expression that yields 0 if and only if the system headers
are exposing proper support for the related set of functions.  If defined,
it must be 0 while bootstrapping the compiler/rebuilding the library.
   </para>
   <para>Finally, you should bracket the entire file in an include-guard, like
this:
   </para>

<programlisting>

#ifndef _GLIBCXX_OS_DEFINES
#define _GLIBCXX_OS_DEFINES
...
#endif
</programlisting>

   <para>We recommend copying an existing os_defines.h to use as a
starting point.
   </para>

<info><title>CPU</title></info>

<para>If you are porting to a new chip (as opposed to a new operating system
running on an existing chip), you will need to create a new directory in the
config/cpu hierarchy.  Much like the <link linkend="internals.os">Operating system</link> setup,
there are no strict rules on how to organize the CPU configuration
directory, but careful naming choices will allow the configury to find your
setup files without explicit help.
</para>

   <para>We recommend that for a target triplet <CPU>-<vendor>-<OS>, you
name your configuration directory config/cpu/<CPU>.  If you do this,
the configury will find the directory by itself.  Otherwise you will need to
edit the configure.host file and, in the switch statement that sets
cpu_include_dir, add a pattern to handle your chip.
   </para>

   <para>Note that some chip families share a single configuration directory, for
example, alpha, alphaev5, and alphaev6 all use the
config/cpu/alpha directory, and there is an entry in the
configure.host switch statement to handle this.
   </para>

   <para>The cpu_include_dir sets default locations for the files controlling
<link linkend="internals.thread_safety">Thread safety</link> and <link linkend="internals.numeric_limits">Numeric limits</link>, if the defaults are not
appropriate for your chip.
   </para>

<info><title>Character Types</title></info>

<para>The library requires that you provide three header files to implement
character classification, analogous to that provided by the C libraries
<ctype.h> header.  You can model these on the files provided in
config/os/generic.  However, these files will almost
certainly need some modification.
</para>

   <para>The first file to write is ctype_base.h.  This file provides
some very basic information about character classification.  The libstdc++
library assumes that your C library implements <ctype.h> by using
a table (indexed by character code) containing integers, where each of
these integers is a bit-mask indicating whether the character is
upper-case, lower-case, alphabetic, etc.  The ctype_base.h
file gives the type of the integer, and the values of the various bit
masks.  You will have to peer at your own <ctype.h> to figure out
how to define the values required by this file.
   </para>

   <para>The ctype_base.h header file does not need include guards.
It should contain a single struct definition called
ctype_base.  This struct should contain two type
declarations, and one enumeration declaration, like this example, taken
from the IRIX configuration:
   </para>

<programlisting>
  struct ctype_base
     {
       typedef unsigned int 	mask;
       typedef int* 		__to_type;

       enum
       {
	 space = _ISspace,
	 print = _ISprint,
	 cntrl = _IScntrl,
	 upper = _ISupper,
	 lower = _ISlower,
	 alpha = _ISalpha,
	 digit = _ISdigit,
	 punct = _ISpunct,
	 xdigit = _ISxdigit,
	 alnum = _ISalnum,
	 graph = _ISgraph
       };
     };
</programlisting>

<para>The mask type is the type of the elements in the table.  If your
C library uses a table to map lower-case numbers to upper-case numbers,
and vice versa, you should define __to_type to be the type of the
elements in that table.  If you don't mind taking a minor performance
penalty, or if your library doesn't implement toupper and
tolower in this way, you can pick any pointer-to-integer type,
but you must still define the type.
</para>

   <para>The enumeration should give definitions for all the values in the above
example, using the values from your native <ctype.h>.  They can
be given symbolically (as above), or numerically, if you prefer.  You do
not have to include <ctype.h> in this header; it will always be
included before ctype_base.h is included.
   </para>

   <para>The next file to write is ctype_configure_char.cc.
The first function that must be written is the ctype<char>::ctype constructor.  Here is the IRIX example:
   </para>

<programlisting>
ctype<char>::ctype(const mask* __table = 0, bool __del = false,
	   size_t __refs = 0)
       : _Ctype_nois<char>(__refs), _M_del(__table != 0 && __del),
	 _M_toupper(NULL),
	 _M_tolower(NULL),
	 _M_ctable(NULL),
	 _M_table(!__table
		  ? (const mask*) (__libc_attr._ctype_tbl->_class + 1)
		  : __table)
       { }
</programlisting>

<para>There are two parts of this that you might choose to alter. The first,
and most important, is the line involving __libc_attr.  That is
IRIX system-dependent code that gets the base of the table mapping
character codes to attributes.  You need to substitute code that obtains
the address of this table on your system.  If you want to use your
operating system's tables to map upper-case letters to lower-case, and
vice versa, you should initialize _M_toupper and
_M_tolower with those tables, in similar fashion.
</para>

   <para>Now, you have to write two functions to convert from upper-case to
lower-case, and vice versa.  Here are the IRIX versions:
   </para>

<programlisting>
     char
     ctype<char>::do_toupper(char __c) const
     { return _toupper(__c); }

     char
     ctype<char>::do_tolower(char __c) const
     { return _tolower(__c); }
</programlisting>

<para>Your C library provides equivalents to IRIX's _toupper and
_tolower.  If you initialized _M_toupper and
_M_tolower above, then you could use those tables instead.
</para>

   <para>Finally, you have to provide two utility functions that convert strings
of characters.  The versions provided here will always work - but you
could use specialized routines for greater performance if you have
machinery to do that on your system:
   </para>

<programlisting>
     const char*
     ctype<char>::do_toupper(char* __low, const char* __high) const
     {
       while (__low < __high)
	 {
	   *__low = do_toupper(*__low);
	   ++__low;
	 }
       return __high;
     }

     const char*
     ctype<char>::do_tolower(char* __low, const char* __high) const
     {
       while (__low < __high)
	 {
	   *__low = do_tolower(*__low);
	   ++__low;
	 }
       return __high;
     }
</programlisting>

   <para>You must also provide the ctype_inline.h file, which
contains a few more functions.  On most systems, you can just copy
config/os/generic/ctype_inline.h and use it on your system.
   </para>

   <para>In detail, the functions provided test characters for particular
properties; they are analogous to the functions like isalpha and
islower provided by the C library.
   </para>

   <para>The first function is implemented like this on IRIX:
   </para>

<programlisting>
     bool
     ctype<char>::
     is(mask __m, char __c) const throw()
     { return (_M_table)[(unsigned char)(__c)] & __m; }
</programlisting>

<para>The _M_table is the table passed in above, in the constructor.
This is the table that contains the bitmasks for each character.  The
implementation here should work on all systems.
</para>

   <para>The next function is:
   </para>

<programlisting>
     const char*
     ctype<char>::
     is(const char* __low, const char* __high, mask* __vec) const throw()
     {
       while (__low < __high)
	 *__vec++ = (_M_table)[(unsigned char)(*__low++)];
       return __high;
     }
</programlisting>

<para>This function is similar; it copies the masks for all the characters
from __low up until __high into the vector given by
__vec.
</para>

   <para>The last two functions again are entirely generic:
   </para>

<programlisting>
     const char*
     ctype<char>::
     scan_is(mask __m, const char* __low, const char* __high) const throw()
     {
       while (__low < __high && !this->is(__m, *__low))
	 ++__low;
       return __low;
     }

     const char*
     ctype<char>::
     scan_not(mask __m, const char* __low, const char* __high) const throw()
     {
       while (__low < __high && this->is(__m, *__low))
	 ++__low;
       return __low;
     }
</programlisting>

<info><title>Thread Safety</title></info>

<para>The C++ library string functionality requires a couple of atomic
operations to provide thread-safety.  If you don't take any special
action, the library will use stub versions of these functions that are
not thread-safe.  They will work fine, unless your applications are
multi-threaded.
</para>

   <para>If you want to provide custom, safe, versions of these functions, there
are two distinct approaches.  One is to provide a version for your CPU,
using assembly language constructs.  The other is to use the
thread-safety primitives in your operating system.  In either case, you
make a file called atomicity.h, and the variable
ATOMICITYH must point to this file.
   </para>

   <para>If you are using the assembly-language approach, put this code in
config/cpu/<chip>/atomicity.h, where chip is the name of
your processor (see <link linkend="internals.cpu">CPU</link>).  No additional changes are necessary to
locate the file in this case; ATOMICITYH will be set by default.
   </para>

   <para>If you are using the operating system thread-safety primitives approach,
you can also put this code in the same CPU directory, in which case no more
work is needed to locate the file.  For examples of this approach,
see the atomicity.h file for IRIX or IA64.
   </para>

   <para>Alternatively, if the primitives are more closely related to the OS
than they are to the CPU, you can put the atomicity.h file in
the <link linkend="internals.os">Operating system</link> directory instead.  In this case, you must
edit configure.host, and in the switch statement that handles
operating systems, override the ATOMICITYH variable to point to
the appropriate os_include_dir.  For examples of this approach,
see the atomicity.h file for AIX.
   </para>

   <para>With those bits out of the way, you have to actually write
atomicity.h itself.  This file should be wrapped in an
include guard named _GLIBCXX_ATOMICITY_H.  It should define one
type, and two functions.
   </para>

   <para>The type is _Atomic_word.  Here is the version used on IRIX:
   </para>

<programlisting>
typedef long _Atomic_word;
</programlisting>

<para>This type must be a signed integral type supporting atomic operations.
If you're using the OS approach, use the same type used by your system's
primitives.  Otherwise, use the type for which your CPU provides atomic
primitives.
</para>

   <para>Then, you must provide two functions.  The bodies of these functions
must be equivalent to those provided here, but using atomic operations:
   </para>

<programlisting>
     static inline _Atomic_word
     __attribute__ ((__unused__))
     __exchange_and_add (_Atomic_word* __mem, int __val)
     {
       _Atomic_word __result = *__mem;
       *__mem += __val;
       return __result;
     }

     static inline void
     __attribute__ ((__unused__))
     __atomic_add (_Atomic_word* __mem, int __val)
     {
       *__mem += __val;
     }
</programlisting>

<info><title>Numeric Limits</title></info>

<para>The C++ library requires information about the fundamental data types,
such as the minimum and maximum representable values of each type.
You can define each of these values individually, but it is usually
easiest just to indicate how many bits are used in each of the data
types and let the library do the rest.  For information about the
macros to define, see the top of include/bits/std_limits.h.
</para>

   <para>If you need to define any macros, you can do so in os_defines.h.
However, if all operating systems for your CPU are likely to use the
same values, you can provide a CPU-specific file instead so that you
do not have to provide the same definitions for each operating system.
To take that approach, create a new file called cpu_limits.h in
your CPU configuration directory (see <link linkend="internals.cpu">CPU</link>).
   </para>

<info><title>Libtool</title></info>

<para>The C++ library is compiled, archived and linked with libtool.
Explaining the full workings of libtool is beyond the scope of this
document, but there are a few, particular bits that are necessary for
porting.
</para>

   <para>Some parts of the libstdc++ library are compiled with the libtool
--tags CXX option (the C++ definitions for libtool).  Therefore,
ltcf-cxx.sh in the top-level directory needs to have the correct
logic to compile and archive objects equivalent to the C version of libtool,
ltcf-c.sh.  Some libtool targets have definitions for C but not
for C++, or C++ definitions which have not been kept up to date.
   </para>

   <para>The C++ run-time library contains initialization code that needs to be
run as the library is loaded.  Often, that requires linking in special
object files when the C++ library is built as a shared library, or
taking other system-specific actions.
   </para>

   <para>The libstdc++ library is linked with the C version of libtool, even
though it is a C++ library.  Therefore, the C version of libtool needs to
ensure that the run-time library initializers are run.  The usual way to
do this is to build the library using gcc -shared.
   </para>

   <para>If you need to change how the library is linked, look at
ltcf-c.sh in the top-level directory.  Find the switch statement
that sets archive_cmds.  Here, adjust the setting for your
operating system.
   </para>


text:
layout: default
title: About
description:
---

About

What is this?

Organizers: reuse our code!

Team and credits

Reporting outdated or missing information

We're open source

Contact us

What is this?

My Reps is a tool for looking up who your elected representatives are across the United States. Based on your address, we can find all the federal, state, county and local officials who represent you in government.

Knowing who these representatives are and contacting their offices directly is the most effective way to change how our government works.

Have an issue you care about? Find your rep and tell them!

For more, read our launch blog post: We find your reps so you don't have to.

Organizers: reuse our code!

We built this tool to be open source and easy to repurpose. Feel free to copy and reuse the My Reps codebase and customize the messaging and content for your issue.

Instructions on how to get started are in the GitHub repository. For an example, see My Reps by the Participatory Budgeting Project and the open source code for it.

Reporting outdated or missing information

Information on elected officials comes from the Google Civic Information API, which aggregates data across the United States on elected officials in federal, state, county and local government offices.

Sometimes data is outdated or missing. If you notice an issue with the data, please report it to Google.

Team and credits

DataMade built this representative lookup tool for the Participatory Budgeting Project to help them advocate for more participatory budgeting in local government. Participatory budgeting is a process of democratic deliberation and decision-making, and a type of participatory democracy, in which ordinary people decide how to allocate part of a municipal or public budget.

To get an elected official to take up a particular government policy like this, one of the most effective strategies is to empower their constituents to directly advocate for it.

We built an initial version of this tool for the Participatory Budgeting Project, called My Reps, and used it as a basis to make this more general version of it.

The team is:

Derek Eder - coding, design, copy

Eric van Zanten - coding

We're open source!

      All the code for this site is open source. It was built with Jekyll, Bootstrap and Javascript.

Technologies used:

        Jekyll

        Bootstrap

        Google Civic Information API

All the code for this project is up on GitHub and under the open source MIT license.

Contact us

Found a bug? Report it on our issue tracker!

Have a suggestion? Want to set customize this tool for your organization? Contact DataMade at info@datamade.us


text: {{ label }}


text:
      <input type="text" name="txtEmail" id="txtEmail" placeholder="Correo Electronico">

      <input type="password" name="txtPassword" id="txtPassword" placeholder="Contraseña">

    <button type="button" name="btnLogin" id="btnLogin">Login</button>
    <button type="button" name="btnSignUp" id="btnSignUp">Login</button>
    <button type="button" name="btnLoguot" id="btnLoguot">Login</button>


text:
#include <aws/ssm/model/DescribeDocumentPermissionResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>

#include <utility>

using namespace Aws::SSM::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;

DescribeDocumentPermissionResult::DescribeDocumentPermissionResult()
{
}

DescribeDocumentPermissionResult::DescribeDocumentPermissionResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
  *this = result;
}

DescribeDocumentPermissionResult& DescribeDocumentPermissionResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
  JsonView jsonValue = result.GetPayload().View();
  if(jsonValue.ValueExists("AccountIds"))
  {
    Aws::Utils::Array<JsonView> accountIdsJsonList = jsonValue.GetArray("AccountIds");
    for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex)
    {
      m_accountIds.push_back(accountIdsJsonList[accountIdsIndex].AsString());
    }
  }

  if(jsonValue.ValueExists("AccountSharingInfoList"))
  {
    Aws::Utils::Array<JsonView> accountSharingInfoListJsonList = jsonValue.GetArray("AccountSharingInfoList");
    for(unsigned accountSharingInfoListIndex = 0; accountSharingInfoListIndex < accountSharingInfoListJsonList.GetLength(); ++accountSharingInfoListIndex)
    {
      m_accountSharingInfoList.push_back(accountSharingInfoListJsonList[accountSharingInfoListIndex].AsObject());
    }
  }

  if(jsonValue.ValueExists("NextToken"))
  {
    m_nextToken = jsonValue.GetString("NextToken");

  }

  return *this;
}


text:
package typeinfo;// typeinfo/ShowMethods.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// Using reflection to show all the methods of a class,
// even if the methods are defined in the base class
// {java ShowMethods ShowMethods}
import java.lang.reflect.*;
import java.util.regex.*;

public class ShowMethods {
  private static String usage =
    "usage:\n" +
    "ShowMethods qualified.class.name\n" +
    "To show all methods in class or:\n" +
    "ShowMethods qualified.class.name word\n" +
    "To search for methods involving 'word'";
  private static Pattern p = Pattern.compile("\\w+\\.");
  public static void main(String[] args) {
    if(args.length < 1) {
      System.out.println(usage);
      System.exit(0);
    }
    int lines = 0;
    try {
      Class<?> c = Class.forName(args[0]);
      Method[] methods = c.getMethods();
      Constructor[] ctors = c.getConstructors();
      if(args.length == 1) {
        for(Method method : methods)
          System.out.println(
            p.matcher(
              method.toString()).replaceAll(""));
        for(Constructor ctor : ctors)
          System.out.println(
            p.matcher(ctor.toString()).replaceAll(""));
        lines = methods.length + ctors.length;
      } else {
        for(Method method : methods)
          if(method.toString().contains(args[1])) {
            System.out.println(p.matcher(
              method.toString()).replaceAll(""));
            lines++;
          }
        for(Constructor ctor : ctors)
          if(ctor.toString().contains(args[1])) {
            System.out.println(p.matcher(
              ctor.toString()).replaceAll(""));
            lines++;
          }
      }
    } catch(ClassNotFoundException e) {
      System.out.println("No such class: " + e);
    }
  }
}
/* Output:
public static void main(String[])
public final void wait() throws InterruptedException
public final void wait(long,int) throws
InterruptedException
public final native void wait(long) throws
InterruptedException
public boolean equals(Object)
public String toString()
public native int hashCode()
public final native Class getClass()
public final native void notify()
public final native void notifyAll()
public ShowMethods()
*/


text:
package org.spongepowered.common.data.manipulator.immutable.item;

import org.spongepowered.api.data.key.Keys;
import org.spongepowered.api.data.manipulator.immutable.item.ImmutableSplashPotionData;
import org.spongepowered.api.data.manipulator.mutable.item.SplashPotionData;
import org.spongepowered.api.data.value.immutable.ImmutableValue;
import org.spongepowered.common.data.manipulator.immutable.common.AbstractImmutableBooleanData;
import org.spongepowered.common.data.manipulator.mutable.item.SpongeSplashPotionData;

public class ImmutableSpongeSplashPotionData extends AbstractImmutableBooleanData<ImmutableSplashPotionData, SplashPotionData> implements ImmutableSplashPotionData {

    public ImmutableSpongeSplashPotionData(boolean value) {
        super(ImmutableSplashPotionData.class, value, Keys.IS_SPLASH_POTION, SpongeSplashPotionData.class, false);
    }

    @Override
    public ImmutableValue<Boolean> splash() {
        return getValueGetter();
    }

}


text:
typedef const struct __attribute__((objc_bridge(id))) __CCPowerSupply *CCPowerSupplyRef;

/// The standard power supply.
extern const CCPowerSupplyRef kCCPowerStandard;

// Attribute: managed +0 result
__attribute__((cf_returns_not_retained))
CCPowerSupplyRef CCPowerSupplyGetDefault();

typedef const struct __attribute__((objc_bridge(id))) __CCRefrigerator *CCRefrigeratorRef;

// Unaudited function: unmanaged result despite name
CCRefrigeratorRef CCRefrigeratorCreate(CCPowerSupplyRef power);

// Attribute: managed +1 result
__attribute__((cf_returns_retained))
CCRefrigeratorRef CCRefrigeratorSpawn(CCPowerSupplyRef power);

// Parameter: managed +0 by default
void CCRefrigeratorOpen(CCRefrigeratorRef fridge);
void CCRefrigeratorClose(CCRefrigeratorRef fridge);

#pragma clang arc_cf_code_audited begin
// Audited function with Copy convention: managed +1 result
CCRefrigeratorRef CCRefrigeratorCopy(CCRefrigeratorRef fridge);

// Audited function without Copy convention: managed +0 result
CCRefrigeratorRef CCRefrigeratorClone(CCRefrigeratorRef fridge);
#pragma clang arc_cf_code_audited end

// Attribute: managed +1 parameter
void CCRefrigeratorDestroy(__attribute__((cf_consumed)) CCRefrigeratorRef);

@interface CCMagnetismModel
// Unattributed method: unmanaged result
- (CCRefrigeratorRef) refrigerator;
// Attribute: managed +0 result
- (CCRefrigeratorRef) getRefrigerator __attribute__((cf_returns_not_retained));
// Attribute: managed +1 result
- (CCRefrigeratorRef) takeRefrigerator __attribute__((cf_returns_retained));
// Attribute: managed +0 result
- (CCRefrigeratorRef) borrowRefrigerator __attribute__((objc_returns_inner_pointer));

// Parameter: managed +0 by default
- (void) setRefrigerator: (CCRefrigeratorRef) refrigerator;
// Attribute: managed +1 parameter
- (void) giveRefrigerator: (__attribute__((cf_consumed)) CCRefrigeratorRef) refrigerator;

@property CCRefrigeratorRef fridgeProp;
- (CCRefrigeratorRef) fridgeProp __attribute__((cf_returns_not_retained));
@end

typedef double CCFloat;

struct CCImpedance {
  CCFloat real, imag;
};


text:
package org.albianj.persistence.impl.dbpool.impl;

import org.albianj.persistence.impl.dbpool.IPoolingConnection;

import java.sql.*;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;

public class PoolingConnection implements IPoolingConnection {
    Connection _conn;
    //startup timestamp
    long startupTimeMs;
    String sessionId;

    //     from pool but not return to pool
    // use to bc
    boolean isPooling;
    long lastUsedTimeMs;
    // reuse times in lifecycle
    long reuseTimes = 0;

    public PoolingConnection(Connection conn, long startupTimeMs, boolean isPooling) {
        _conn = conn;
        this.startupTimeMs = startupTimeMs;
        this.isPooling = isPooling;
    }

    public long getStartupTimeMs() {
        return startupTimeMs;
    }

    public void setStartupTimeMs(long startupTimeMs) {
        this.startupTimeMs = startupTimeMs;
    }

    public boolean isPooling() {
        return isPooling;
    }

    public void setPooling(boolean pooling) {
        isPooling = pooling;
    }

    public long getLastUsedTimeMs() {
        return lastUsedTimeMs;
    }

    public void setLastUsedTimeMs(long lastUsedTimeMs) {
        this.lastUsedTimeMs = lastUsedTimeMs;
    }

    public long getReuseTimes() {
        return reuseTimes;
    }

    public void addReuseTimes() {
        ++this.reuseTimes;
    }

    @Override
    public Statement createStatement() throws SQLException {
        return _conn.createStatement();
    }

    @Override
    public PreparedStatement prepareStatement(String sql) throws SQLException {
        return _conn.prepareStatement(sql);
    }

    @Override
    public CallableStatement prepareCall(String sql) throws SQLException {
        return _conn.prepareCall(sql);
    }

    @Override
    public String nativeSQL(String sql) throws SQLException {
        return _conn.nativeSQL(sql);
    }

    @Override
    public boolean getAutoCommit() throws SQLException {
        return _conn.getAutoCommit();
    }

    @Override
    public void setAutoCommit(boolean autoCommit) throws SQLException {
        _conn.setAutoCommit(autoCommit);
    }

    @Override
    public void commit() throws SQLException {
        _conn.commit();
    }

    @Override
    public void rollback() throws SQLException {
        _conn.rollback();
    }

    @Override
    public void close() throws SQLException {
        _conn.close();
    }

    @Override
    public boolean isClosed() throws SQLException {
        return _conn.isClosed();
    }

    @Override
    public DatabaseMetaData getMetaData() throws SQLException {
        return _conn.getMetaData();
    }

    @Override
    public boolean isReadOnly() throws SQLException {
        return _conn.isReadOnly();
    }

    @Override
    public void setReadOnly(boolean readOnly) throws SQLException {
        _conn.setReadOnly(readOnly);
    }

    @Override
    public String getCatalog() throws SQLException {
        return _conn.getCatalog();
    }

    @Override
    public void setCatalog(String catalog) throws SQLException {
        _conn.setCatalog(catalog);
    }

    @Override
    public int getTransactionIsolation() throws SQLException {
        return _conn.getTransactionIsolation();
    }

    @Override
    public void setTransactionIsolation(int level) throws SQLException {
        _conn.setTransactionIsolation(level);
    }

    @Override
    public SQLWarning getWarnings() throws SQLException {
        return _conn.getWarnings();
    }

    @Override
    public void clearWarnings() throws SQLException {
        _conn.clearWarnings();
    }

    @Override
    public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
        return _conn.createStatement(resultSetType, resultSetConcurrency);
    }

    @Override
    public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
        return _conn.prepareStatement(sql, resultSetType, resultSetConcurrency);
    }

    @Override
    public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
        return _conn.prepareCall(sql, resultSetType, resultSetConcurrency);
    }

    @Override
    public Map<String, Class<?>> getTypeMap() throws SQLException {
        return _conn.getTypeMap();
    }

    @Override
    public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
        _conn.setTypeMap(map);
    }

    @Override
    public int getHoldability() throws SQLException {
        return _conn.getHoldability();
    }

    @Override
    public void setHoldability(int holdability) throws SQLException {
        _conn.setHoldability(holdability);
    }

    @Override
    public Savepoint setSavepoint() throws SQLException {
        return _conn.setSavepoint();
    }

    @Override
    public Savepoint setSavepoint(String name) throws SQLException {
        return _conn.setSavepoint(name);
    }

    @Override
    public void rollback(Savepoint savepoint) throws SQLException {
        _conn.rollback(savepoint);
    }

    @Override
    public void releaseSavepoint(Savepoint savepoint) throws SQLException {
        _conn.releaseSavepoint(savepoint);
    }

    @Override
    public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
        return _conn.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);
    }

    @Override
    public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
        return _conn.prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
    }

    @Override
    public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
        return _conn.prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
    }

    @Override
    public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
        return _conn.prepareStatement(sql, autoGeneratedKeys);
    }

    @Override
    public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
        return _conn.prepareStatement(sql, columnIndexes);
    }

    @Override
    public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
        return _conn.prepareStatement(sql, columnNames);
    }

    @Override
    public Clob createClob() throws SQLException {
        return _conn.createClob();
    }

    @Override
    public Blob createBlob() throws SQLException {
        return _conn.createBlob();
    }

    @Override
    public NClob createNClob() throws SQLException {
        return _conn.createNClob();
    }

    @Override
    public SQLXML createSQLXML() throws SQLException {
        return _conn.createSQLXML();
    }

    @Override
    public boolean isValid(int timeout) throws SQLException {
        return _conn.isValid(timeout);
    }

    @Override
    public void setClientInfo(String name, String value) throws SQLClientInfoException {
        _conn.setClientInfo(name, value);
    }

    @Override
    public String getClientInfo(String name) throws SQLException {
        return _conn.getClientInfo(name);
    }

    @Override
    public Properties getClientInfo() throws SQLException {
        return _conn.getClientInfo();
    }

    @Override
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        _conn.setClientInfo(properties);
    }

    @Override
    public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
        return _conn.createArrayOf(typeName, elements);
    }

    @Override
    public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
        return _conn.createStruct(typeName, attributes);
    }

    @Override
    public String getSchema() throws SQLException {
        return _conn.getSchema();
    }

    @Override
    public void setSchema(String schema) throws SQLException {
        _conn.setSchema(schema);
    }

    @Override
    public void abort(Executor executor) throws SQLException {
        _conn.abort(executor);
    }

    @Override
    public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
        _conn.setNetworkTimeout(executor, milliseconds);
    }

    @Override
    public int getNetworkTimeout() throws SQLException {
        return _conn.getNetworkTimeout();
    }

    @Override
    public <T> T unwrap(Class<T> iface) throws SQLException {
        return _conn.unwrap(iface);
    }

    @Override
    public boolean isWrapperFor(Class<?> iface) throws SQLException {
        return _conn.isWrapperFor(iface);
    }

    public Boolean isValid() throws SQLException {
        return !this.isClosed();
    }

    @Override
    public String getSessionId() {
        return this.sessionId;
    }

    @Override
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }
}


text:
from __future__ import unicode_literals

from django.db import models, migrations

class Migration(migrations.Migration):

    dependencies = [
        ('movie', '0004_movie_release'),
    ]

    operations = [
        migrations.AlterField(
            model_name='movie',
            name='popularity',
            field=models.IntegerField(),
        ),
    ]


text:
from dtest import *
from dtest.util import *

@repeat(2)
def test_multi():
    # Set up a list to record executions
    recorded = []

    # Now, define an inner function
    def inner(*args, **kwargs):
        # Place the arguments into the recorded list
        recorded.append((args, kwargs))

    # Now, yield the inner function once...
    yield ('inner1', inner, (1,), dict(kw=1))

    # Yield it again
    yield ('inner2', inner, (2,), dict(kw=2))

    # Now, check if recorded has what we expect
    assert_equal(len(recorded), 4)
    assert_tuple_equal(recorded[0][0], (1,))
    assert_dict_equal(recorded[0][1], dict(kw=1))
    assert_tuple_equal(recorded[1][0], (1,))
    assert_dict_equal(recorded[1][1], dict(kw=1))
    assert_tuple_equal(recorded[2][0], (2,))
    assert_dict_equal(recorded[2][1], dict(kw=2))
    assert_tuple_equal(recorded[3][0], (2,))
    assert_dict_equal(recorded[3][1], dict(kw=2))


text:
<?php

namespace Sorin\Bundle\RestaurantBundle\Controller\Api;

use Doctrine\Common\Collections\ArrayCollection;
use FOS\RestBundle\Request\ParamFetcher;
use FOS\RestBundle\Request\ParamReader;
use Sorin\Bundle\RestaurantBundle\Controller\MyController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Doctrine\ORM\EntityRepository;
use Sorin\Bundle\RestaurantBundle\Entity\User;
use Sorin\Bundle\RestaurantBundle\Entity\CustomerUser;
use Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder;

class CustomerRestController extends MyController
{
    /**
     * @param Request $request
     * @return JsonResponse
     */
    public function putCustomerAddAction(Request $request)
    {
        $em = $this->getDoctrine()->getManager();

        $email = $request->get('email');
        $firstName = $request->get('firstName');
        $lastName = $request->get('lastName');
        $password = $request->get('password');

        /** @var EntityRepository $userRepository */
        $userRepository = $em->getRepository('Sorin\Bundle\RestaurantBundle\Entity\User');
        /** @var array $users */
        $users = $userRepository->findBy(
            array(
                'email'     =>  $email,
                'userType'  =>  User::USER_TYPE_CUSTOMER,
            )
        );

        if(count($users))
        {
            return static::throwError(
                sprintf(
                    "User with email %s already exists!",
                    $email
                )
            );
        }

        $factory = $this->get('security.encoder_factory');
        $user = new User();
        /** @var BCryptPasswordEncoder $encoder */
        $encoder = $factory->getEncoder($user);
        $password = $encoder->encodePassword($password, $user->getSalt());

        $user->setEmail($email)
            ->setFirstName($firstName)
            ->setLastName($lastName)
            ->setPassword($password)
            ->setCreatedAt(new \DateTime())
            ->setUserType(User::USER_TYPE_CUSTOMER);
        $em->persist($user);
        $em->flush();

        return static::returnSerializedResponse($user);
    }

    /**
     * @return JsonResponse
     */
    public function patchCustomerEditAction(Request $request)
    {
        $em = $this->getDoctrine()->getManager();

        /** @var User $user */
        $user= $this->get('security.token_storage')->getToken()->getUser();

        $firstName = $request->get('firstName');
        $lastName = $request->get('lastName');
        $password = $request->get('password');

        /** @var EntityRepository $userRepository */
        $userRepository = $em->getRepository('Sorin\Bundle\RestaurantBundle\Entity\User');
        /** @var User $requestUser */
        $requestUser = $userRepository->find($request->get('userId'));

        if(!$user || !$requestUser || $user->getId() != $requestUser->getId())
        {
            return static::throwError(
                sprintf(
                    "Invalid user: %s",
                    $request->get('userId')
                )
            );
        }

        $factory = $this->get('security.encoder_factory');
        /** @var BCryptPasswordEncoder $encoder */
        $encoder = $factory->getEncoder($requestUser);
        $password = $encoder->encodePassword($password, $user->getSalt());

        $requestUser->setFirstName($firstName);
        $requestUser->setLastName($lastName);
        $requestUser->setPassword($password);

        $em->persist($requestUser);
        $em->flush();

        return static::returnSerializedResponse($user);
    }

    /**
     * @param $request Request
     * @return JsonResponse
     */
    public function deleteCustomerRemoveAction(Request $request)
    {
        $em = $this->getDoctrine()->getManager();

        /** @var User $user */
        $user= $this->get('security.token_storage')->getToken()->getUser();

        /** @var EntityRepository $userRepository */
        $userRepository = $em->getRepository('Sorin\Bundle\RestaurantBundle\Entity\User');
        /** @var User $requestUser */
        $requestUser = $userRepository->find($request->get('userId'));

        if(!$user || !$requestUser || $user->getId() != $requestUser->getId())
        {
            return static::throwError(
                sprintf(
                    "Invalid user: %s",
                    $request->get('userId')
                )
            );
        }

        $requestUser->setIsActive(User::USER_STATUS_INACTIVE);

        $em->persist($requestUser);
        $em->flush();

        return static::returnSerializedResponse($user);
    }
}


text:
module Seek
  module ContentBlobCommon

    def handle_download disposition='attachment'
      if @content_blob.url.blank?
        if @content_blob.file_exists?
          send_file @content_blob.filepath, :filename => @content_blob.original_filename, :type => @content_blob.content_type || "application/octet-stream", :disposition => disposition
        else
          redirect_on_error @asset_version,"Unable to find a copy of the file for download, or an alternative location. Please contact an administrator of #{Seek::Config.application_name}."
        end
      else
        begin
          if @asset_version.contributor.nil? #A jerm generated resource
            download_jerm_asset
          else
            download_via_url
          end
        rescue Seek::DownloadException=>de
          redirect_on_error @asset_version,"There was an error accessing the remote resource, and a local copy was not available. Please try again later when the remote resource may be available again."
        rescue Jerm::JermException=>de
          redirect_on_error @asset_version,de.message
        end

      end
    end

    def return_file_or_redirect_to redirected_url=nil, error_message = nil
      if @content_blob.file_exists?
        send_file @content_blob.filepath, :filename => @content_blob.original_filename, :type => @content_blob.content_type, :disposition => 'attachment'
      else
        flash[:error]= error_message if error_message
        redirect_to redirected_url
      end
    end

    def download_jerm_asset
      project = @asset_version.projects.first
      project.decrypt_credentials
      downloader=Jerm::DownloaderFactory.create project.name
      resource_type = @asset_version.class.name.split("::")[0] #need to handle versions, e.g. Sop::Version
      begin
        data_hash = downloader.get_remote_data @content_blob.url,project.site_username,project.site_password, resource_type
        send_file data_hash[:data_tmp_path], :filename => data_hash[:filename] || @content_blob.original_filename, :type => data_hash[:content_type] || @content_blob.content_type, :disposition => 'attachment'
      rescue Seek::DownloadException=>de
        #FIXME: use proper logging
        puts "Unable to fetch from remote: #{de.message}"
        if @content_blob.file_exists?
          send_file @content_blob.filepath, :filename => @content_blob.original_filename, :type => @content_blob.content_type, :disposition => 'attachment'
        else
          raise de
        end
      end
    end

    def download_via_url
      code = url_response_code(@content_blob.url)
      if code == "200"
        downloader=Seek::RemoteDownloader.new
        begin
          data_hash = downloader.get_remote_data @content_blob.url
          filename = get_filename data_hash[:filename], @content_blob.original_filename
          send_file data_hash[:data_tmp_path], :filename => filename, :type => data_hash[:content_type] || @content_blob.content_type, :disposition => 'attachment'
        rescue Exception=>e
          error_message = "There is a problem downloading this file. #{e}"
          redirected_url = polymorphic_path(@asset_version.parent,{:version=>@asset_version.version})
          return_file_or_redirect_to redirected_url, error_message
        end
      elsif (["301","302","401"].include?(code))
        return_file_or_redirect_to @content_blob.url
      elsif code=="404"
        error_message = "This item is referenced at a remote location, which is currently unavailable"
        redirected_url = polymorphic_path(@asset_version.parent,{:version=>@asset_version.version})
        return_file_or_redirect_to redirected_url, error_message
      else
        error_message = "There is a problem downloading this file."
        redirected_url = polymorphic_path(@asset_version.parent,{:version=>@asset_version.version})
        return_file_or_redirect_to redirected_url, error_message
      end
    end
  end

end


text:
#pragma once

#include "il2cpp-config.h"

#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif

#include <stdint.h>

#include "mscorlib_System_MulticastDelegate3201952435.h"

// System.Net.IPAddress[]
struct IPAddressU5BU5D_t4087230954;
// System.String
struct String_t;
// System.IAsyncResult
struct IAsyncResult_t1999651008;
// System.AsyncCallback
struct AsyncCallback_t163412349;
// System.Object
struct Il2CppObject;

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

// System.Net.Dns/GetHostAddressesCallback
struct  GetHostAddressesCallback_t1126586509  : public MulticastDelegate_t3201952435
{
public:

public:
};

#ifdef __clang__
#pragma clang diagnostic pop
#endif


text:
Gifbot is a welcome addition to any Groupme chat.

He just sits there quietly without making a peep until you need him.

Simply begin your message with "/g" and then type in whatever you're thinking, gifbot will do the rest.

## Requirements:

  * GroupMe account
  * Heroku account
  * Giphy Private key account is optional depending on your volume

To create your GroupMe bot:
https://dev.groupme.com/session/new

Setup an account on Heroku (download their client also):
[Heroku](http://heroku.com).

## Setup

Get your BOTID from dev.groupme.com and configure it in the Heroku web client under settings

Set your callback URL in the dev.groupme page to your heroku domain (your-heroku-app-name.herokuapp.com)