text:
package flip

import (
	"errors"
	chat1 "github.com/keybase/client/go/protocol/chat1"
	gregor1 "github.com/keybase/client/go/protocol/gregor1"
	"github.com/keybase/go-framed-msgpack-rpc/rpc"
)

type Time int64

func (o Time) DeepCopy() Time {
	return o
}

type Start struct {
	StartTime                    Time           `codec:"startTime" json:"startTime"`
	CommitmentWindowMsec         int64          `codec:"commitmentWindowMsec" json:"commitmentWindowMsec"`
	RevealWindowMsec             int64          `codec:"revealWindowMsec" json:"revealWindowMsec"`
	SlackMsec                    int64          `codec:"slackMsec" json:"slackMsec"`
	CommitmentCompleteWindowMsec int64          `codec:"commitmentCompleteWindowMsec" json:"commitmentCompleteWindowMsec"`
	Params                       FlipParameters `codec:"params" json:"params"`
}

func (o Start) DeepCopy() Start {
	return Start{
		StartTime:                    o.StartTime.DeepCopy(),
		CommitmentWindowMsec:         o.CommitmentWindowMsec,
		RevealWindowMsec:             o.RevealWindowMsec,
		SlackMsec:                    o.SlackMsec,
		CommitmentCompleteWindowMsec: o.CommitmentCompleteWindowMsec,
		Params:                       o.Params.DeepCopy(),
	}
}

type UserDevice struct {
	D gregor1.DeviceID `codec:"d" json:"d"`
	U gregor1.UID      `codec:"u" json:"u"`
}

func (o UserDevice) DeepCopy() UserDevice {
	return UserDevice{
		D: o.D.DeepCopy(),
		U: o.U.DeepCopy(),
	}
}

type GameMetadata struct {
	Initiator      UserDevice           `codec:"initiator" json:"initiator"`
	ConversationID chat1.ConversationID `codec:"conversationID" json:"conversationID"`
	GameID         chat1.FlipGameID     `codec:"gameID" json:"gameID"`
}

func (o GameMetadata) DeepCopy() GameMetadata {
	return GameMetadata{
		Initiator:      o.Initiator.DeepCopy(),
		ConversationID: o.ConversationID.DeepCopy(),
		GameID:         o.GameID.DeepCopy(),
	}
}

type CommitmentComplete struct {
	Players []UserDeviceCommitment `codec:"players" json:"players"`
}

func (o CommitmentComplete) DeepCopy() CommitmentComplete {
	return CommitmentComplete{
		Players: (func(x []UserDeviceCommitment) []UserDeviceCommitment {
			if x == nil {
				return nil
			}
			ret := make([]UserDeviceCommitment, len(x))
			for i, v := range x {
				vCopy := v.DeepCopy()
				ret[i] = vCopy
			}
			return ret
		})(o.Players),
	}
}

type FlipType int

const (
	FlipType_BOOL    FlipType = 1
	FlipType_INT     FlipType = 2
	FlipType_BIG     FlipType = 3
	FlipType_SHUFFLE FlipType = 4
)

func (o FlipType) DeepCopy() FlipType { return o }

var FlipTypeMap = map[string]FlipType{
	"BOOL":    1,
	"INT":     2,
	"BIG":     3,
	"SHUFFLE": 4,
}

var FlipTypeRevMap = map[FlipType]string{
	1: "BOOL",
	2: "INT",
	3: "BIG",
	4: "SHUFFLE",
}

func (e FlipType) String() string {
	if v, ok := FlipTypeRevMap[e]; ok {
		return v
	}
	return ""
}

type FlipParameters struct {
	T__       FlipType `codec:"t" json:"t"`
	Int__     *int64   `codec:"int,omitempty" json:"int,omitempty"`
	Big__     *[]byte  `codec:"big,omitempty" json:"big,omitempty"`
	Shuffle__ *int64   `codec:"shuffle,omitempty" json:"shuffle,omitempty"`
}

func (o *FlipParameters) T() (ret FlipType, err error) {
	switch o.T__ {
	case FlipType_INT:
		if o.Int__ == nil {
			err = errors.New("unexpected nil value for Int__")
			return ret, err
		}
	case FlipType_BIG:
		if o.Big__ == nil {
			err = errors.New("unexpected nil value for Big__")
			return ret, err
		}
	case FlipType_SHUFFLE:
		if o.Shuffle__ == nil {
			err = errors.New("unexpected nil value for Shuffle__")
			return ret, err
		}
	}
	return o.T__, nil
}

func (o FlipParameters) Int() (res int64) {
	if o.T__ != FlipType_INT {
		panic("wrong case accessed")
	}
	if o.Int__ == nil {
		return
	}
	return *o.Int__
}

func (o FlipParameters) Big() (res []byte) {
	if o.T__ != FlipType_BIG {
		panic("wrong case accessed")
	}
	if o.Big__ == nil {
		return
	}
	return *o.Big__
}

func (o FlipParameters) Shuffle() (res int64) {
	if o.T__ != FlipType_SHUFFLE {
		panic("wrong case accessed")
	}
	if o.Shuffle__ == nil {
		return
	}
	return *o.Shuffle__
}

func NewFlipParametersWithBool() FlipParameters {
	return FlipParameters{
		T__: FlipType_BOOL,
	}
}

func NewFlipParametersWithInt(v int64) FlipParameters {
	return FlipParameters{
		T__:   FlipType_INT,
		Int__: &v,
	}
}

func NewFlipParametersWithBig(v []byte) FlipParameters {
	return FlipParameters{
		T__:   FlipType_BIG,
		Big__: &v,
	}
}

func NewFlipParametersWithShuffle(v int64) FlipParameters {
	return FlipParameters{
		T__:       FlipType_SHUFFLE,
		Shuffle__: &v,
	}
}

func (o FlipParameters) DeepCopy() FlipParameters {
	return FlipParameters{
		T__: o.T__.DeepCopy(),
		Int__: (func(x *int64) *int64 {
			if x == nil {
				return nil
			}
			tmp := (*x)
			return &tmp
		})(o.Int__),
		Big__: (func(x *[]byte) *[]byte {
			if x == nil {
				return nil
			}
			tmp := (func(x []byte) []byte {
				if x == nil {
					return nil
				}
				return append([]byte{}, x...)
			})((*x))
			return &tmp
		})(o.Big__),
		Shuffle__: (func(x *int64) *int64 {
			if x == nil {
				return nil
			}
			tmp := (*x)
			return &tmp
		})(o.Shuffle__),
	}
}

type MessageType int

const (
	MessageType_START               MessageType = 1
	MessageType_COMMITMENT          MessageType = 2
	MessageType_COMMITMENT_COMPLETE MessageType = 3
	MessageType_REVEAL              MessageType = 4
	MessageType_END                 MessageType = 5
)

func (o MessageType) DeepCopy() MessageType { return o }

var MessageTypeMap = map[string]MessageType{
	"START":               1,
	"COMMITMENT":          2,
	"COMMITMENT_COMPLETE": 3,
	"REVEAL":              4,
	"END":                 5,
}

var MessageTypeRevMap = map[MessageType]string{
	1: "START",
	2: "COMMITMENT",
	3: "COMMITMENT_COMPLETE",
	4: "REVEAL",
	5: "END",
}

func (e MessageType) String() string {
	if v, ok := MessageTypeRevMap[e]; ok {
		return v
	}
	return ""
}

type Stage int

const (
	Stage_ROUND1 Stage = 1
	Stage_ROUND2 Stage = 2
)

func (o Stage) DeepCopy() Stage { return o }

var StageMap = map[string]Stage{
	"ROUND1": 1,
	"ROUND2": 2,
}

var StageRevMap = map[Stage]string{
	1: "ROUND1",
	2: "ROUND2",
}

func (e Stage) String() string {
	if v, ok := StageRevMap[e]; ok {
		return v
	}
	return ""
}

type Secret [32]byte

func (o Secret) DeepCopy() Secret {
	var ret Secret
	copy(ret[:], o[:])
	return ret
}

type Commitment [32]byte

func (o Commitment) DeepCopy() Commitment {
	var ret Commitment
	copy(ret[:], o[:])
	return ret
}

type UserDeviceCommitment struct {
	Ud UserDevice `codec:"ud" json:"ud"`
	C  Commitment `codec:"c" json:"c"`
}

func (o UserDeviceCommitment) DeepCopy() UserDeviceCommitment {
	return UserDeviceCommitment{
		Ud: o.Ud.DeepCopy(),
		C:  o.C.DeepCopy(),
	}
}

type Hash [32]byte

func (o Hash) DeepCopy() Hash {
	var ret Hash
	copy(ret[:], o[:])
	return ret
}

type Reveal struct {
	Secret Secret `codec:"secret" json:"secret"`
	Cch    Hash   `codec:"cch" json:"cch"`
}

func (o Reveal) DeepCopy() Reveal {
	return Reveal{
		Secret: o.Secret.DeepCopy(),
		Cch:    o.Cch.DeepCopy(),
	}
}

type GameMessageBody struct {
	T__                  MessageType         `codec:"t" json:"t"`
	Start__              *Start              `codec:"start,omitempty" json:"start,omitempty"`
	Commitment__         *Commitment         `codec:"commitment,omitempty" json:"commitment,omitempty"`
	CommitmentComplete__ *CommitmentComplete `codec:"commitmentComplete,omitempty" json:"commitmentComplete,omitempty"`
	Reveal__             *Reveal             `codec:"reveal,omitempty" json:"reveal,omitempty"`
}

func (o *GameMessageBody) T() (ret MessageType, err error) {
	switch o.T__ {
	case MessageType_START:
		if o.Start__ == nil {
			err = errors.New("unexpected nil value for Start__")
			return ret, err
		}
	case MessageType_COMMITMENT:
		if o.Commitment__ == nil {
			err = errors.New("unexpected nil value for Commitment__")
			return ret, err
		}
	case MessageType_COMMITMENT_COMPLETE:
		if o.CommitmentComplete__ == nil {
			err = errors.New("unexpected nil value for CommitmentComplete__")
			return ret, err
		}
	case MessageType_REVEAL:
		if o.Reveal__ == nil {
			err = errors.New("unexpected nil value for Reveal__")
			return ret, err
		}
	}
	return o.T__, nil
}

func (o GameMessageBody) Start() (res Start) {
	if o.T__ != MessageType_START {
		panic("wrong case accessed")
	}
	if o.Start__ == nil {
		return
	}
	return *o.Start__
}

func (o GameMessageBody) Commitment() (res Commitment) {
	if o.T__ != MessageType_COMMITMENT {
		panic("wrong case accessed")
	}
	if o.Commitment__ == nil {
		return
	}
	return *o.Commitment__
}

func (o GameMessageBody) CommitmentComplete() (res CommitmentComplete) {
	if o.T__ != MessageType_COMMITMENT_COMPLETE {
		panic("wrong case accessed")
	}
	if o.CommitmentComplete__ == nil {
		return
	}
	return *o.CommitmentComplete__
}

func (o GameMessageBody) Reveal() (res Reveal) {
	if o.T__ != MessageType_REVEAL {
		panic("wrong case accessed")
	}
	if o.Reveal__ == nil {
		return
	}
	return *o.Reveal__
}

func NewGameMessageBodyWithStart(v Start) GameMessageBody {
	return GameMessageBody{
		T__:     MessageType_START,
		Start__: &v,
	}
}

func NewGameMessageBodyWithCommitment(v Commitment) GameMessageBody {
	return GameMessageBody{
		T__:          MessageType_COMMITMENT,
		Commitment__: &v,
	}
}

func NewGameMessageBodyWithCommitmentComplete(v CommitmentComplete) GameMessageBody {
	return GameMessageBody{
		T__:                  MessageType_COMMITMENT_COMPLETE,
		CommitmentComplete__: &v,
	}
}

func NewGameMessageBodyWithReveal(v Reveal) GameMessageBody {
	return GameMessageBody{
		T__:      MessageType_REVEAL,
		Reveal__: &v,
	}
}

func NewGameMessageBodyWithEnd() GameMessageBody {
	return GameMessageBody{
		T__: MessageType_END,
	}
}

func (o GameMessageBody) DeepCopy() GameMessageBody {
	return GameMessageBody{
		T__: o.T__.DeepCopy(),
		Start__: (func(x *Start) *Start {
			if x == nil {
				return nil
			}
			tmp := (*x).DeepCopy()
			return &tmp
		})(o.Start__),
		Commitment__: (func(x *Commitment) *Commitment {
			if x == nil {
				return nil
			}
			tmp := (*x).DeepCopy()
			return &tmp
		})(o.Commitment__),
		CommitmentComplete__: (func(x *CommitmentComplete) *CommitmentComplete {
			if x == nil {
				return nil
			}
			tmp := (*x).DeepCopy()
			return &tmp
		})(o.CommitmentComplete__),
		Reveal__: (func(x *Reveal) *Reveal {
			if x == nil {
				return nil
			}
			tmp := (*x).DeepCopy()
			return &tmp
		})(o.Reveal__),
	}
}

type Version int

const (
	Version_V1 Version = 1
)

func (o Version) DeepCopy() Version { return o }

var VersionMap = map[string]Version{
	"V1": 1,
}

var VersionRevMap = map[Version]string{
	1: "V1",
}

func (e Version) String() string {
	if v, ok := VersionRevMap[e]; ok {
		return v
	}
	return ""
}

type GameMessage struct {
	V__  Version        `codec:"v" json:"v"`
	V1__ *GameMessageV1 `codec:"v1,omitempty" json:"v1,omitempty"`
}

func (o *GameMessage) V() (ret Version, err error) {
	switch o.V__ {
	case Version_V1:
		if o.V1__ == nil {
			err = errors.New("unexpected nil value for V1__")
			return ret, err
		}
	}
	return o.V__, nil
}

func (o GameMessage) V1() (res GameMessageV1) {
	if o.V__ != Version_V1 {
		panic("wrong case accessed")
	}
	if o.V1__ == nil {
		return
	}
	return *o.V1__
}

func NewGameMessageWithV1(v GameMessageV1) GameMessage {
	return GameMessage{
		V__:  Version_V1,
		V1__: &v,
	}
}

func NewGameMessageDefault(v Version) GameMessage {
	return GameMessage{
		V__: v,
	}
}

func (o GameMessage) DeepCopy() GameMessage {
	return GameMessage{
		V__: o.V__.DeepCopy(),
		V1__: (func(x *GameMessageV1) *GameMessageV1 {
			if x == nil {
				return nil
			}
			tmp := (*x).DeepCopy()
			return &tmp
		})(o.V1__),
	}
}

type GameMessageV1 struct {
	Md   GameMetadata    `codec:"md" json:"md"`
	Body GameMessageBody `codec:"body" json:"body"`
}

func (o GameMessageV1) DeepCopy() GameMessageV1 {
	return GameMessageV1{
		Md:   o.Md.DeepCopy(),
		Body: o.Body.DeepCopy(),
	}
}

type FlipInterface interface {
}

func FlipProtocol(i FlipInterface) rpc.Protocol {
	return rpc.Protocol{
		Name:    "flip.flip",
		Methods: map[string]rpc.ServeHandlerDescription{},
	}
}

type FlipClient struct {
	Cli rpc.GenericClient
}


text:
//  RootViewController.m
//  Created by erwin on 11/27/12.

#import "RootViewController.h"
#import "EMAsyncImageView.h"
#import "GalleryCell.h"

@interface RootViewController ()

	@property (nonatomic, strong) NSArray	*urlArray;

@end

@implementation RootViewController {

}

@synthesize urlArray;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
	LogMethod
	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
	if (self) {
	}
	return self;
}

- (void)viewDidLoad {
	LogMethod
	[super viewDidLoad];
	[self.collectionView registerNib:[UINib nibWithNibName:@"GalleryCell" bundle:nil] forCellWithReuseIdentifier:@"cell"];
}

- (void)viewDidUnload {
	LogMethod
	[super viewDidUnload];
}

- (void)viewWillAppear:(BOOL)animated {
	LogMethod
	[super viewWillAppear:animated];
	[self getPics];
}

- (void)viewDidAppear:(BOOL)animated {
	LogMethod
	[super viewDidAppear:animated];
}

- (void)viewWillDisappear:(BOOL)animated {
	LogMethod
	[super viewWillDisappear:animated];
}

- (void)viewDidDisappear:(BOOL)animated {
	LogMethod
	[super viewDidDisappear:animated];
}

- (void)getPics {
	LogMethod

	UIActivityIndicatorView  *activity = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
	activity.center = self.view.center;
	activity.hidesWhenStopped = TRUE;
	[self.view addSubview:activity];
	[activity startAnimating];

	NSURL *url = [NSURL URLWithString:@"http://api.flickr.com/services/feeds/photos_public.gne?tags=party&format=json"];
	NSURLRequest *req = [NSURLRequest requestWithURL:url];
	[NSURLConnection sendAsynchronousRequest:req queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
		NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		responseString = [responseString stringByReplacingOccurrencesOfString:@"jsonFlickrFeed" withString:@""];
		responseString = [responseString stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"()"]];
		responseString = [responseString stringByReplacingOccurrencesOfString:@"\\'" withString:@"'"];

		NSError *jsonError;
		NSData *trimmedData = [responseString dataUsingEncoding:NSUTF8StringEncoding];
		NSDictionary *json = [NSJSONSerialization JSONObjectWithData:trimmedData options:NSJSONReadingAllowFragments error:&jsonError];
		if (jsonError) {
			NSLog(@"JSON parse error: %@", jsonError);
			return;
		}

		NSArray *flikrs = [json objectForKey:@"items"];
		NSMutableArray *tmp = [NSMutableArray arrayWithCapacity:[flikrs count]];
		for (NSDictionary *item in flikrs) {
			[tmp addObject:[[item objectForKey:@"media"] objectForKey:@"m"]];
		}

		self.urlArray = [NSArray arrayWithArray:tmp];
		NSLog(@"found %d pictures, will download as needed", [urlArray count]);

		[self.collectionView reloadData];

		[activity stopAnimating];
		[activity removeFromSuperview];
	}];
}

#pragma mark Collection View Methods
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section { return UIEdgeInsetsMake(10, 10, 10, 10); }

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section { return [urlArray count]; }

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {	return CGSizeMake(140, 140); }

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {

	GalleryCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
	cell.picView.imageUrl = [urlArray objectAtIndex:indexPath.row];
	return cell;
}

@end

redpajama_set_name: RedPajamaGithub


text:
<?PHP
namespace phpfromthecli\Command;

use phpfromthecli\Traits\WritelineTrait;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface as InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface as OutputInterface;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;

class SearchCommand extends Command
{
    use WritelineTrait;

    protected $english   = false;
    protected $count     = null;
    protected $onlyNames = false;

    protected function configure()
    {
        $definition = [new InputOption('english', 'e', InputOption::VALUE_NONE, 'If set, only English tweets will be displayed.'),
                       new InputOption('only-names', 'o', InputOption::VALUE_NONE, 'If set, only twitter names will be displayed.'),
                       new InputOption('count', 'c', InputArgument::OPTIONAL, 'The number of tweets to return.'),
                       new InputOption('search-term', 's', InputOption::VALUE_REQUIRED, 'The term to search for. Default is #PHP',"#PHP")];

        $this->setName('search')
             ->setDescription('Search Twitter')
             ->setDefinition($definition)
             ->setHelp('Search twitter for a given keyword.');

        return;
    }

    protected function execute(InputInterface $input,
                               OutputInterface $output)
    {

        /*
         * Housekeeping & Initialization
         */
        $this->output    = $output;
        $this->setupOutput();

        $this->english   = $input->getOption('english');
        $this->onlyNames = $input->getOption('only-names');
        $this->count     = (!is_null($input->getOption('count'))?$input->getOption('count'):null);

        /*
         * Get the connection to twitter
         */
        $twitter = $this->setupTwitter();

        /*
         * Setup the Search Options
         */
        $searchOptions = [];

        if ($this->english) {
            $searchOptions['lang']='en';
        }

        if (!is_null($this->count)) {
            $searchOptions['count'] = $this->count;
        }

        /*
         * Do the deed
         */
        $response = $twitter->searchTweets($input->getOption('search-term'),$searchOptions);

        /*
         * Process the response
         */
        $tweets   = $response->toValue()->statuses;

        foreach ($tweets as $singleTweet) {
            $this->writeln('<username>'.$singleTweet->user->screen_name . "</username>". ($this->onlyNames?"":"\n<tweet>" . $singleTweet->text . "</tweet>\n"));
        }

        $this->writeln('Done');

        return;
    }

    protected function setupTwitter()
    {
    	/*
    	 * Gather the twitter access tokens and keys into the array format
    	 * that Zend_Service Twitter needs.
    	 */
        $twitterOptions = [];
        $twitterOptions['access_token'] = [];
        $twitterOptions['access_token']['token']  = $_ENV['TOKEN'];
        $twitterOptions['access_token']['secret'] = $_ENV['SECRET'];
        $twitterOptions['oauth_options'] = [];
        $twitterOptions['oauth_options']['consumerKey']    = $_ENV['CONSUMER_KEY'];
        $twitterOptions['oauth_options']['consumerSecret'] = $_ENV['CONSUMER_SECRET'];
        $twitter  = new \ZendService\Twitter\Twitter($twitterOptions);

        return $twitter;
    }

    protected function setupOutput()
    {
        /*
         * Setup the formatters
         */
        $this->output->getFormatter()->setStyle('username', new OutputFormatterStyle('green', null, ['bold']));
        $this->output->getFormatter()->setStyle('tweet', new OutputFormatterStyle('black', null, []));

        return;
    }
}


text:
package com.badlogic.gdx.graphics.g3d.particles.batches;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g3d.Renderable;
import com.badlogic.gdx.graphics.g3d.particles.ResourceData;
import com.badlogic.gdx.graphics.g3d.particles.renderers.ModelInstanceControllerRenderData;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.Pool;

/*** This class is used to render particles having a model instance channel.
 * @author Inferno */
public class ModelInstanceParticleBatch implements ParticleBatch<ModelInstanceControllerRenderData> {
	Array<ModelInstanceControllerRenderData> controllersRenderData;
	int bufferedParticlesCount;

	public ModelInstanceParticleBatch () {
		controllersRenderData = new Array<ModelInstanceControllerRenderData>(false, 5);
	}

	@Override
	public void getRenderables (Array<Renderable> renderables, Pool<Renderable> pool) {
		for (ModelInstanceControllerRenderData data : controllersRenderData) {
			for (int i = 0, count = data.controller.particles.size; i < count; ++i) {
				data.modelInstanceChannel.data[i].getRenderables(renderables, pool);
			}
		}
	}

	public int getBufferedCount () {
		return bufferedParticlesCount;
	}

	@Override
	public void begin () {
		controllersRenderData.clear();
		bufferedParticlesCount = 0;
	}

	@Override
	public void end () {
	}

	@Override
	public void draw (ModelInstanceControllerRenderData data) {
		controllersRenderData.add(data);
		bufferedParticlesCount += data.controller.particles.size;
	}

	@Override
	public void save (AssetManager manager, ResourceData assetDependencyData) {
	}

	@Override
	public void load (AssetManager manager, ResourceData assetDependencyData) {
	}
}


text:
body {
  background: rgba(217, 217, 217, 0.75); }

header .topOfPage {
  height: 30px;
  background-color: #394977;
  display: flex;
  justify-content: space-around;
  width: 100%;
  color: white;
  z-index: 1000; }
  header .topOfPage ul.network {
    overflow: auto;
    float: left;
    margin-top: 0;
    margin-bottom: 0; }
    header .topOfPage ul.network li {
      list-style-type: none;
      float: left; }
    header .topOfPage ul.network li a i {
      background: #3b5998;
      color: #fff;
      width: 29px;
      height: 29px;
      border-radius: 20px;
      font-size: 20px;
      text-align: center;
      margin-top: 0;
      margin-bottom: 0;
      margin-right: 10px;
      padding-top: 15%;
      transition: all 0.2s ease-in-out; }
    header .topOfPage ul.network .fa-facebook {
      background: #3b5998; }
    header .topOfPage ul.network .fa-linkedin {
      background: #007bb6; }
    header .topOfPage ul.network .fa-twitter {
      background: #00aced; }
    header .topOfPage ul.network .fa-youtube {
      background: #CC181E; }
    header .topOfPage ul.network li a i:hover {
      opacity: .7; }
  header .topOfPage .telephone {
    padding: 2px; }
  header .topOfPage .seconnecter {
    float: right;
    color: white;
    margin-right: 15px;
    padding: 2px; }
  @media (max-width: 660px) {
    header .topOfPage .network {
      display: none; } }
header .banner {
  background: rgba(217, 217, 217, 0.75);
  height: 233px;
  display: flex;
  /*padding-top: 30px;*/ }
  header .banner .logoImg {
    margin-top: 5px;
    margin-left: 20px;
    width: 33%;
    height: 100%; }
  header .banner .dakar {
    width: 67%;
    height: 100%; }
@media (max-width: 1175px) {
  header nav .nav-wrapper {
    margin-left: -21px;
    margin-right: -21px; } }
header nav .brand-logo {
  margin-left: 22px; }

.blueRectangle {
  display: flex;
  width: 100%;
  background: #e0e0e0;
  /*-webkit-radial-gradient(center bottom, #054b78 0%, #022c5a 30%);*/ }
  .blueRectangle .myText h2 {
    margin-left: 7%;
    width: 86%;
    /*height: 400px;*/
    background: white; }
  .blueRectangle section {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px; }

.afterSlider {
  display: flex;
  margin-left: 7%;
  margin-right: 7%;
  margin-top: 10px;
  justify-content: space-between; }
  .afterSlider .myTextt {
    width: 74%;
    height: auto;
    background: #394977;
    padding: 17px; }
  .afterSlider .aside {
    width: 25%;
    background: #394977; }
    .afterSlider .aside h5 {
      text-align: center; }

/*FOOTER*/
footer {
  /*Footer*/
  /*SOCIAL NETWORK*/
  /*END SOCIAL NETWORK*/ }
  footer .page-footer {
    background-color: #3949ab !important;
    color: #f5f5f5 !important; }
    footer .page-footer a {
      color: #f5f5f5 !important; }
    footer .page-footer .myfooter {
      display: flex; }
      footer .page-footer .myfooter .apropos {
        text-align: justify;
        text-justify: inter-word;
        width: 30%; }
      footer .page-footer .myfooter .navigation {
        width: 30%; }
      footer .page-footer .myfooter .contact {
        width: 40%; }
  footer .footer-copyright {
    background-color: #394977 !important; }
  footer .btn-floating.btn-large i {
    line-height: 48px;
    color: rgba(0, 0, 0, 0.8); }
  footer a:not([href]):not([tabindex]) {
    color: inherit;
    text-decoration: none;
    float: right;
    margin-top: -45px;
    margin-right: 302px;
    background-color: #00acc1; }
  footer .network {
    margin-top: 20px; }
    footer .network ul.network {
      overflow: auto;
      float: left;
      margin-top: 0;
      margin-bottom: 0;
      margin-left: 15px; }
      footer .network ul.network li {
        list-style-type: none;
        float: left; }
      footer .network ul.network li a i {
        background: #3b5998;
        color: #fff;
        width: 39px;
        height: 39px;
        border-radius: 30px;
        font-size: 30px;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 10px;
        padding-top: 15%;
        transition: all 0.2s ease-in-out; }
      footer .network ul.network .fa-facebook {
        background: #3B59F1; }
      footer .network ul.network .fa-linkedin {
        background: #007bb6; }
      footer .network ul.network .fa-twitter {
        background: #00aced; }
      footer .network ul.network .fa-youtube {
        background: #CC181E; }
      footer .network ul.network li a i:hover {
        opacity: .7; }

/*# sourceMappingURL=fromSass.css.map */


text:
<?xml version="1.0" encoding="UTF-8"?>
<sedML xmlns="http://sed-ml.org/sed-ml/level1/version2" level="1" version="2">
  <listOfSimulations><!-- Description of the simulated conditions -->
    <uniformTimeCourse id="sim_1" name="RK_solver" initialTime="0.0"
      outputStartTime="0.0" outputEndTime="40.0" numberOfPoints="100">
      <algorithm kisaoID="KISAO:0000032" />
    </uniformTimeCourse>
  </listOfSimulations>
  <listOfModels><!-- Model to be simulated -->
    <model id="febs_model" language="urn:sedml:language:sbml"
      source="urn:miriam:biomodels.db:BIOMD0000000003" />
  </listOfModels>
  <listOfTasks><!-- Links model to simulation -->
    <task id="task_1" name="task_1" modelReference="febs_model"
      simulationReference="sim_1" />
  </listOfTasks>
</sedML>


text:
define({
  "viewer": {
    "common": {
      "close": "Sulje",
      "focusMainstage": "Lähetä näppäimistön kohdistus mediaan",
      "expandImage": "Laajenna kuva"
    },
    "a11y": {
      "skipToContent": "Siirry sisältöön",
      "headerAria": "Tarinan otsikko",
      "panelAria": "Tarinan sisältö",
      "mainStageAria": "Nykyisen tarinamerkinnän media",
      "logoLinkAria": "Logolinkki",
      "toTop": "Siirry ensimmäiseen merkintään",
      "focusContent": "Palaa sisältöön",
      "navAria": "Tarinan merkinnät",
      "toEntryAria": "Siirry merkintään %ENTRY_NUMBER%: %ENTRY_TITLE%",
      "entryAria": "Merkintä %ENTRY_NUMBER%: %ENTRY_TITLE%",
      "loadingAria": "Tarinan sisältö latautuu",
      "skipBelowContent": "Siirry tämän sisällön alapuolelle",
      "skipBelowVideo": "Siirry tämän videon alapuolelle",
      "skipAboveContent": "Siirry tämän sisällön yläpuolelle",
      "skipAboveVideo": "Siirry tämän videon yläpuolelle",
      "moreEntries": "Lisää merkintöjä"
    },
    "loading": {
      "long": "Tarinaa alustetaan",
      "long2": "Odota hetki",
      "failButton": "Lataa tarina uudelleen"
    },
    "signin": {
      "title": "Todennus on pakollinen",
      "explainViewer": "Kirjaudu sisään %PORTAL_LINK%-sivuston tilillä käyttääksesi tarinaa.",
      "explainBuilder": "Kirjaudu sisään %PORTAL_LINK%-sivuston tilillä määrittääksesi tarinan."
    },
    "errors": {
      "boxTitle": "Tapahtui virhe",
      "invalidConfig": "Virheellinen määritys",
      "invalidConfigNoApp": "Web-karttasovelluksen tunnusta ei ole määritetty index.html-tiedostossa.",
      "invalidConfigNoAppDev": "URL-osoitteen parametreissa (?appid= tai ?webmap=) ei ole määritetty yhtään Web-karttasovelluksen tunnusta. Kehittäjätilassa index.html-tiedoston appid-määritys ohitetaan.",
      "unspecifiedConfigOwner": "Valtuutettua omistajaa ei ole määritetty.",
      "invalidConfigOwner": "Tarinan omistajalla ei ole valtuuksia.",
      "createMap": "Karttaa ei voi luoda",
      "invalidApp": "Kohdetta %TPL_NAME% ei ole, tai se ei ole käytettävissä.",
      "appLoadingFail": "Tapahtui virhe, eikä %TPL_NAME% latautunut oikein.",
      "notConfiguredDesktop": "Tarinaa ei ole vielä määritetty.",
      "notConfiguredMobile": "Luontitoimintoa %TPL_NAME% ei tueta tässä näyttökoossa. Muuta selaimen kokoa mahdollisuuksien mukaan luontitoiminnon käyttöä varten tai luo tarinasi laitteessa, jossa on suurempi näyttö.",
      "notConfiguredMobile2": "Käytä luontitoimintoa %TPL_NAME% kääntämällä laitteesi vaakasuuntaan.",
      "notAuthorized": "Sinulla ei ole tämän tarinan käyttöoikeuksia",
      "notAuthorizedBuilder": "Sinulla ei ole luontitoiminnon %TPL_NAME% käyttöoikeuksia.",
      "noBuilderIE": "Luontitoimintoa ei tueta Internet Explorerin versiota %VERSION% edeltävissä versioissa. %UPGRADE%",
      "noViewerIE": "Tarinaa ei tueta Internet Explorerin versiota %VERSION% edeltävissä versioissa. %UPGRADE%",
      "noViewerIE2": "Yrität tarkastella tätä tarinaa käyttämällä vanhempaa selainta, jota ei tueta. Siinä saattaa olla ominaisuuksia, jotka eivät toimi, tai muita odottamattomia ongelmia. Suosittelemme, että päivität Internet Explorer -selaimen versioon 11 tai käytät toista selainta, kuten Chromea.",
      "noViewerIE3": "Vuoden 2017 loppupuolella tämä tarina ei enää lataudu tässä selaimessa. Käytä silloin tuettua selainta tämän tarinan katseluun.",
      "upgradeBrowser": "Päivitä selain.",
      "mapLoadingFail": "Tapahtui virhe, eikä kartta latautunut oikein.",
      "signOut": "Kirjaudu ulos",
      "attention": "Huomio!"
    },
    "mainStage": {
      "back": "Edellinen",
      "errorDeleted": "Tämä linkki ei ole aktiivinen (osio on poistettu)",
      "errorNotPublished": "Tämä linkki ei ole aktiivinen (osiota ei ole julkaistu)"
    },
    "panel": {
      "collapse": "Tiivistä paneeli",
      "expand": "Laajenna paneeli"
    },
    "mobileInfo": {
      "legend": "Selite",
      "description": "Kuvaus",
      "lblLegendMobileError": "Selite ei ole käytettävissä. Lataa tarina uudelleen.",
      "lblLegendMobileErrorExplain": "Selite ei ole käytettävissä, kun laitetta kierretään pystysuuntaan tarinan latauksen jälkeen."
    },
    "mobileFooter": {
      "swipeInvite": "Siirry tarinassa pyyhkäisemällä",
      "lblNext": "Seuraava",
      "lblEnd": "Olet saavuttanut tarinan lopun"
    },
    "headerFromCommon": {
      "storymapsText": "Tarinakartta",
      "builderButton": "Muokkaa",
      "facebookTooltip": "Jaa Facebookissa",
      "twitterTooltip": "Jaa Twitterissä",
      "bitlyTooltip": "Hanki lyhyt linkki",
      "templateTitle": "Määritä mallin nimi",
      "templateSubtitle": "Määritä mallin alaotsikko",
      "share": "Jaa",
      "checking": "Tarkistetaan tarinan sisältöä",
      "fix": "Korjaa tarinan ongelmat",
      "noerrors": "Yhtään ongelmaa ei havaittu",
      "tooltipAutoplayDisabled": "Tämä toiminto ei ole käytettävissä automaattisen toiston tilassa",
      "notshared": "Tarinaa ei ole jaettu"
    },
    "mapFromCommon": {
      "overview": "Yleiskatsauskartta",
      "legend": "Selite",
      "home": "Lähennä aloitussivuun"
    },
    "shareFromCommon": {
      "copy": "Kopioi",
      "copied": "Kopioitu",
      "open": "Avaa",
      "embed": "Upota Web-sivulle",
      "embedExplain": "Käytä seuraavaa HTML-koodia tarinan upottamiseen Web-sivulle.",
      "size": "Koko (leveys/korkeus):",
      "autoplayLabel": "Automaattisen toiston tila",
      "autoplayExplain1": "Automaattisen toiston tilassa tarina etenee säännöllisin väliajoin. Tämä soveltuu hyvin kioskin näyttöön tai julkiseen näyttöön. Huomaa kuitenkin, että muissa tilanteissa tarinan lukeminen voi olla vaikeampaa. Tätä ominaisuutta ei tueta pienissä näytöissä.",
      "autoplayExplain2": "Kun tämä tila on käytössä, tarinan voi toistaa tai keskeyttää tai sen nopeutta voi säätää ohjausobjekteilla.",
      "linksupdated": "Linkit on päivitetty."
    },
    "locatorFromCommon": {
      "error": "Sijainti ei ole käytettävissä"
    }
  }
});


text:
let React;
let ReactFeatureFlags;
let tabbableScopeQuery;

describe('TabbableScopeQuery', () => {
  beforeEach(() => {
    jest.resetModules();
    ReactFeatureFlags = require('shared/ReactFeatureFlags');
    ReactFeatureFlags.enableScopeAPI = true;
    tabbableScopeQuery = require('../TabbableScopeQuery').default;
    React = require('react');
  });

  describe('ReactDOM', () => {
    let ReactDOM;
    let container;

    beforeEach(() => {
      ReactDOM = require('react-dom');
      container = document.createElement('div');
      document.body.appendChild(container);
    });

    afterEach(() => {
      document.body.removeChild(container);
      container = null;
    });

    it('queryAllNodes() works as intended', () => {
      const scopeRef = React.createRef();
      const nodeRefA = React.createRef();
      const nodeRefB = React.createRef();
      const nodeRefC = React.createRef();
      const nodeRefD = React.createRef();

      const TestScope = React.unstable_createScope();

      function Test() {
        return (
          <TestScope ref={scopeRef}>
            <input ref={nodeRefA} />
            <textarea ref={nodeRefB} />

              <input tabIndex={-1} />

            <input disabled={true} />

          </TestScope>
        );
      }

      ReactDOM.render(<Test />, container);
      let nodes = scopeRef.current.queryAllNodes(tabbableScopeQuery);
      expect(nodes).toEqual([
        nodeRefA.current,
        nodeRefB.current,
        nodeRefC.current,
        nodeRefD.current,
      ]);
      expect(nodes.length).toBe(4);
      ReactDOM.render(null, container);
      expect(scopeRef.current).toBe(null);
    });
  });
});


text:
using System;
using System.IO;
using System.IO.Compression;
using System.Text;
using jcEHL.JCON;
using Newtonsoft.Json;
using Newtonsoft.Json.Bson;

namespace jcEHL {
    public class BaseEHLItem<T> {
        public BaseEHLItem(T baseObject) {
            if (baseObject == null) {
                return;
            }

            Copy.Init(baseObject, this);
        }

        public string ToJSON(bool compress = true) {
            return JsonConvert.SerializeObject(this);
        }

        public string ToBSON(bool compress = true) {
            return BitConverter.ToString(ToBSONArray(compress));
        }

        public string ToJCON(bool compress = true) {
            return JCONConvert.SerializeObject(this);
        }

        public void FromJCON(string value) {
            Copy.Init(JCONConvert.DeserializeObject<T>(value), this);
        }

        public byte[] ToByte() {
            using (var ms = new MemoryStream()) {
                var serializer = new JsonSerializer();

                var writer = new BsonWriter(ms);
                serializer.Serialize(writer, this);

                return ms.ToArray();
            }
        }

        public byte[] ToBSONArray(bool compress = true) {
            using (var ms = new MemoryStream()) {
                var serializer = new JsonSerializer();

                var writer = new BsonWriter(ms);
                serializer.Serialize(writer, this);

                return (compress ? BaseEHLItem<T>.compress(BitConverter.ToString(ms.ToArray())) : ms.ToArray());
            }
        }

        private static byte[] compress(string str) {
            byte[] compressed;

            using (var ms = new MemoryStream()) {
                using (var gzStream = new GZipStream(ms, CompressionMode.Compress)) {
                    using (var mStream = new MemoryStream(Encoding.UTF8.GetBytes(str))) {
                        mStream.CopyTo(gzStream);
                    }

                    compressed = ms.ToArray();
                }
            }

            return compressed;
        }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DashBoard
{
    public static class StockValue
    {
        public static string valueStock { get; set; }
    }
}


text:
<?php
	require( '../bee/bee.php' );
	// Exports
	if( bee::isPostback() ) {
		// Set written text
		function setBtn_click() {
			// Variable for the control to interact with.
			$ctl = null;
			// Deduce the control
			if( bee::receivedValueOf( 'setTo' ) == 'pre' ) {
				$ctl = bee::get( 'pre01' );
				bee::setRenders( 'prepnl' );
			} else {
				$ctl = bee::get( 'p01' );
				bee::setRenders( 'ppnl' );
			}
			// Get text to set
			$txt = bee::receivedValueOf( 'text01' );
			// Switch the property to set
			if( bee::receivedValueOf( 'setAs' ) == 'html' ) {
				// Set as innerHTML
				$ctl->set( 'innerHTML', $txt );
			} else {
				// Set as text
				$ctl->set( 'text', $txt );
			}
		}
		// Export it
		bee::export( 'setBtn_click', bee::DEFAULT_USER, bee::FUNCTIONS );
	}
	// Env start
	bee::start( 'trlprgph' );
	// Modules
	bee::load( 'updatepanel', 'pre', 'p' );
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">

		<title>Paragraph - Bee Event Engine Framework</title>
		<meta name="author" content="Salvini Tommaso">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Application Loading

Paragraph

			Write some text here:

				<textarea id="text01"></textarea>
			Set written to:<select id="setTo">
				<option value="p">Paragraph</option>
				<option value="pre">Pre</option>
					</select>
			as:<select id="setAs">
				<option value="html">innerHTML</option>
				<option value="text">text</option>
					</select>

			<button id="setBtn" onclick="bee.call( this );">Set Written Text</button>

Pre

		<bee:updatepanel id="prepnl" class="fieldset">
			<bee:pre id="pre01">Default innerHTML value</bee:pre>
		</bee:updatepanel>

Paragraph

		<bee:updatepanel id="ppnl" class="fieldset">
			<bee:p id="p01">Default innerHTML value</bee:p>
		</bee:updatepanel>

<?php
	bee::end();
?>


text: module.exports = require("npm:browserify-aes@1.0.6/browser");


text:
package sys.riak;

import static sys.net.api.Networking.Networking;
import sys.net.api.Serializer;

import com.basho.riak.client.IRiakClient;
import com.basho.riak.client.IRiakObject;
import com.basho.riak.client.RiakException;
import com.basho.riak.client.RiakFactory;
import com.basho.riak.client.RiakRetryFailedException;
import com.basho.riak.client.bucket.Bucket;
import com.basho.riak.client.cap.UnresolvedConflictException;
import com.basho.riak.client.convert.ConversionException;

/**
 *
 * A convenience class to store and load stuff off Riak. Data is stored in riak
 * as raw arrays of bytes after serialization.
 *
 * @author smd
 *
 */
public class Riak {

    private static IRiakClient riak;
    private static Serializer serializer;

    public static <T> T load(String bucket, String key) {
        byte[] data = getValue(bucket, key);
        if (data != null) {
            return serializer.readObject(data);
        } else
            return null;
    }

    public static void store(String bucket, String key, Object value) {
        try {
            byte[] data = serializer.writeObject(value);
            getBucket(bucket).store(key, data).execute();
        } catch (RiakRetryFailedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (UnresolvedConflictException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (ConversionException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (RiakException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static void delete(String bucket, String key) {
        Bucket b;
        try {
            b = getBucket(bucket);
            if (b != null)
                b.delete(key).rw(3).execute();
        } catch (RiakException e) {
            e.printStackTrace();
        }
    }

    static private byte[] getValue(String bucket, String key) {
        try {
            Bucket b = riak.fetchBucket(bucket).execute();
            if (b != null) {
                IRiakObject obj = b.fetch(key).execute();
                if (obj != null)
                    return obj.getValue();
            }
        } catch (RiakRetryFailedException e) {
            e.printStackTrace();
        }
        return null;
    }

    static private Bucket getBucket(String bucket) throws RiakException {
        Bucket res = riak.fetchBucket(bucket).execute();
        if (res == null) {
            return riak.createBucket("bucket").execute();
        } else
            return res;
    }

    static {
        try {
            serializer = Networking.serializer();
            riak = RiakFactory.pbcClient();

        } catch (RiakException e) {
            e.printStackTrace();
        }

    }
}


text:
Function Get-PSSlackConfig {
    <#
    .SYNOPSIS
        Get PSSlack module configuration.

    .DESCRIPTION
        Get PSSlack module configuration

    .PARAMETER Source
        Get the config data from either...

            PSSlack:     the live module variable used for command defaults
            PSSlack.xml: the serialized PSSlack.xml that loads when importing the module

        Defaults to PSSlack

    .PARAMETER Path
        If specified, read config from this XML file.

        Defaults to PSSlack.xml in the user temp folder on Windows, or .psslack in the user's home directory on Linux/macOS.

    .FUNCTIONALITY
        Slack
    #>
    [cmdletbinding(DefaultParameterSetName = 'source')]
    param(
        [parameter(ParameterSetName='source')]
        [ValidateSet("PSSlack","PSSlack.xml")]
        $Source = "PSSlack",

        [parameter(ParameterSetName='path')]
        [parameter(ParameterSetName='source')]
        $Path = $script:_PSSlackXmlpath
    )

    if($PSCmdlet.ParameterSetName -eq 'source' -and $Source -eq "PSSlack" -and -not $PSBoundParameters.ContainsKey('Path'))
    {
        $Script:PSSlack
    }
    else
    {
        function Decrypt {
            param($String)
            if($String -is [System.Security.SecureString])
            {
                [System.Runtime.InteropServices.marshal]::PtrToStringAuto(
                    [System.Runtime.InteropServices.marshal]::SecureStringToBSTR(
                        $string))
            }
        }
        Import-Clixml -Path $Path |
            Microsoft.PowerShell.Utility\Select-Object -Property ArchiveUri,
                                    @{l='Uri';e={Decrypt $_.Uri}},
                                    @{l='Token';e={Decrypt $_.Token}},
                                    Proxy,
                                    MapUser,
                                    ForceVerbose
    }

}


text:
#ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_H_
#define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_H_ 1

#include "native_client/src/include/nacl_base.h"

EXTERN_C_BEGIN

/*
 * This allows setting a callback function for enabling an outer
 * sandbox in standalone sel_ldr.  This allows an embedder of NaCl to
 * provide its own outer sandbox implementation.  The callback will be
 * called by NaClSelLdrMain() after opening files (since the outer
 * sandbox is assumed to disable filesystem access), but before
 * running any untrusted code.
 */
void NaClSetEnableOuterSandboxFunc(void (*func)(void));

/*
 * This is the main entry point for running sel_ldr.  We provide this
 * entry point so that embedders of NaCl or NaCl test cases may link
 * custom versions of sel_ldr which perform some initialization prior
 * to calling NaClSelLdrMain().
 */
int NaClSelLdrMain(int argc, char **argv);

EXTERN_C_END

#endif


text:
<?php
class RegistrationController extends PageController
{
	public function postRegister()
	{
		$data = Input::all();

		$rules = array(
			'username' => 'required|min:3|max:32',
			'email' => 'required|email',
			'password' => 'required|confirmed|min:8'
			);

		$validator = Validator::make($data, $rules);

		if ($validator->passes())
		{
			$user = new User;
			$user->username = Input::get('username');
			$user->email = Input::get('email');
			$user->password = Hash::make(Input::get('password'));
			$user->save();

			$role = Role::where('name', 'User')->first();
			$user->roles()->attach($role);

			Auth::login($user);
			return Redirect::to('/');
		}
		return Redirect::route('register')->withErrors($validator)->withInput();

	}

	public function getRegister()
	{
		$this->layout->title = 'Register';
		$this->layout->content = View::make('register');
	}
}


text:
'use strict';

// Create the 'jobs' module unit test suite
describe('Testing Jobs Controller', function() {
  // Define global variables
  var _scope, JobsController;

  // Define a pre-tests function
  beforeEach(function() {
    // Load the 'mean' module
    module('mean');

    // Add a new Jasmine matcher
    jasmine.addMatchers({
      toEqualData: function(util, customEqualityTesters) {
        return {
          compare: function(actual, expected) {
            return {
              pass: angular.equals(actual, expected)
            };
          }
        };
      }
    });

    // Use the 'inject' method to inject services
    inject(function($rootScope, $controller) {
      // Create a mock scope object
      _scope = $rootScope.$new();

      // Create a new mock controller
      JobsController = $controller('JobsController', {
        $scope: _scope
      });
    });
  });

  // Test the 'find' method
  it('Should have a find method that uses $resource to retrieve a list of jobs', inject(function(Jobs) {
    // Use the 'inject' method to inject services
    inject(function($httpBackend) {
      // Create a sample job
      var sampleJob = new Jobs({
        title: 'A job about MEAN',
        description: 'MEAN rocks!'
      });

      // Create a sample jobs list
      var sampleJobs = [sampleJob];

      // Define a request assertion
      $httpBackend.expectGET('api/jobs').respond(sampleJobs);

      // Call the controller's 'find' method
      _scope.find();

      // Flush the mock HTTP results
      $httpBackend.flush();

      // Test the results
      expect(_scope.jobs).toEqualData(sampleJobs);
    });
  }));

  // Test the 'findOne' method
  it('Should have a findOne method that uses $resource to retreive a single of job', inject(function(Jobs) {
    // Use the 'inject' method to inject services
    inject(function($httpBackend, $routeParams) {
      // Create a sample job
      var sampleJob = new Jobs({
        title: 'A job about MEAN',
        description: 'MEAN rocks!'
      });

      // Set the 'jobId' route parameter
      $routeParams.jobId = 'abcdef123456789012345678';

      // Define a request assertion
      $httpBackend.expectGET(/api\/jobs\/([0-9a-fA-F]{24})$/).respond(sampleJob);

      // Call the controller's 'findOne' method
      _scope.findOne();

      // Flush the mock HTTP results
      $httpBackend.flush();

      // Test the results
      expect(_scope.job).toEqualData(sampleJob);
    });
  }));
});


text:
struct ListElement;
struct List;

List* createList();
void addElement(int x, List* list);
void deleteElement(int x, List* list);
void printList(List* list);


text:
import { OrderModel } from './orderModel';

export class CheckoutOrderModel {
    id: number;
    date: any;
    name: string;
    phone: string;
    address: string;
    additional: any;
    totalPrice: number;
    status:string;
    products: OrderModel[];
}


text:
#ifndef ANT_BPWR_PAGES_H__
#define ANT_BPWR_PAGES_H__

/** @file
 *
 * @defgroup ant_sdk_profiles_bpwr_pages Bicycle Power profile pages
 * @{
 * @ingroup ant_sdk_profiles_bpwr
 * @brief This module implements functions for the BPWR data pages.
 */

#include "ant_bpwr_page_1.h"        // Calibration message main data page.
#include "ant_bpwr_page_16.h"       // Standard power-only page.
#include "ant_bpwr_page_17.h"       // Wheel Torque main data page.
#include "ant_bpwr_page_18.h"       // Crank Torque main data page.
#include "ant_bpwr_common_data.h"   // Instantaneous cadence data.
#include "ant_common_page_80.h"     // Manufacturer's information data page.
#include "ant_common_page_81.h"     // Product information data page.

#endif // ANT_BPWR_PAGES_H__
/** @} */


text:
from fixtures import  NatsServerHelper
import os,sys
import unittest
import tempfile
import shutil

LIB_PATH = os.path.split(os.getcwd())[0]
NATS_PATH = '{}/vendor/nats-server/bin'.format(LIB_PATH)
sys.path.append(LIB_PATH)
sys.path.append(NATS_PATH)

from mock import MagicMock, patch
from nats.client import NatsClient

class NatsClientTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        program = cls._get_exe()
        cls.directory = tempfile.mkdtemp(prefix='python-nats')
        cls.processHelper = NatsServerHelper(
            cls.directory,
            proc_name=program)

        cls.processHelper.run(proc_args="-c resources/nats_config.yml")

        addr = "nats://127.0.0.1:4222"
        cls.client = NatsClient(uris=addr)

    @classmethod
    def tearDownClass(cls):
        cls.processHelper.stop()
        shutil.rmtree(cls.directory)

    @classmethod
    def _is_exe(cls, fpath):
        return os.path.isfile(fpath) and os.access(fpath, os.X_OK)

    @classmethod
    def _get_exe(cls):

        PROGRAM = 'nats-server'

        program_path = None
        for path in sys.path:
            path = path.strip('"')
            exe_file = os.path.join(path, PROGRAM)
            if cls._is_exe(exe_file):
                program_path = exe_file
                break
        print program_path

        if not program_path:
            #raise Exception("Nats-Server not in path, skip integration test.")
            sys.exit(0)

        return program_path

class TestSimple(NatsClientTest):

   def test_publish(self):
       print "skip"

if __name__ == '__main__':
   unittest.main()


text:
<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \frontend\models\ResetPasswordForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = 'Reset password';
?>

							<?= Html::encode($this->title) ?>

								Please fill out your email. A link to reset password will be sent there.

								<?php $form = ActiveForm::begin(['id' => 'reset-password-form']); ?>

								<?= $form->field($model, 'password')->passwordInput(['autofocus' => true]) ?>

									<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>

								<?php ActiveForm::end(); ?>

<?= $this->render('_footer.php') ?>


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ISimpleHttpServer.Model
{
    public enum RequestType
    {
        TCP,
        UDP
    }
}


text:
package edu.berkeley.ground.plugins.hive;

import java.util.ArrayList;
import java.util.List;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hive.metastore.api.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.berkeley.ground.exceptions.GroundException;

/** RawStore Implementation using Ground APIs. */
public class GroundStore extends GroundStoreBase {

    static final private Logger LOG = LoggerFactory.getLogger(GroundStore.class.getName());

    // Do not access this directly, call getHBase to make sure it is
    // initialized.
    private GroundReadWrite ground;
    private GroundDatabase groundDatabase;
    private GroundTable groundTable;
    private Configuration conf;
    private int txnNestLevel;

    public static enum EntityState {
        ACTIVE, DELETED
    }

    public GroundStore() throws GroundException {
        ground = getGround();
        groundDatabase = new GroundDatabase(ground);
        groundTable = new GroundTable(ground);
        new GroundPartition(ground);
    }

    private GroundReadWrite getGround() throws GroundException {
        if (ground == null) {
            this.ground = new GroundReadWrite();
        }
        return ground;
    }

    @Override
    public Configuration getConf() {
        return conf;
    }

    @Override
    public void setConf(Configuration configuration) {
        conf = configuration;
    }

    @Override
    public void shutdown() {
        if (txnNestLevel != 0)
            rollbackTransaction();
    }

    @Override
    public boolean openTransaction() {
        if (txnNestLevel++ <= 0) {
            LOG.debug("Opening Ground transaction");
            txnNestLevel = 1;
        }
        return true;
    }

    @Override
    public boolean commitTransaction() {
        return true;
        // throw new UnsupportedOperationException();
    }

    @Override
    public void rollbackTransaction() {
        // throw new UnsupportedOperationException();
    }

    /**
     * create a database using ground APIs. Uses node and node version.
     *
     * @throws MetaException
     * @throws InvalidObjectException
     */
    @Override
    public void createDatabase(Database db) throws MetaException, InvalidObjectException {
        if (db == null)
            throw new InvalidObjectException("Invalid database object null");

        try {
            Database database = groundDatabase.getDatabase(db.getName());
            if (database != null) {
                LOG.error("Database already exists: {}", db.getName());
                return;
            }
        } catch (GroundException e) {
            // ignore if the database does not exist
        }
        try {
            groundDatabase.createDatabaseNodeVersion(db, EntityState.ACTIVE.name());
        } catch (InvalidObjectException | MetaException e) {
            LOG.error("Unable to create database: {}", e.getMessage());
            throw new MetaException(e.getMessage());
        }
    }

    @Override
    public Database getDatabase(String dbName) throws NoSuchObjectException {
        Database database = null;
        try {
            database = groundDatabase.getDatabase(dbName);
            return database;
        } catch (GroundException e) {
            throw new NoSuchObjectException("Database not found: " + dbName);
        }
    }

    @Override
    public boolean dropDatabase(String dbName) throws NoSuchObjectException, MetaException {
        try {
            groundDatabase.dropDatabase(dbName, EntityState.DELETED.name());
        } catch (GroundException e) {
            throw new MetaException(e.getMessage());
        }
        LOG.info("database deleted: {}", dbName);
        return true;
    }

    @Override
    public boolean alterDatabase(String dbname, Database db) throws NoSuchObjectException, MetaException {
        if (dbname == null || dbname.isEmpty() || db == null)
            throw new NoSuchObjectException("Unable to locate database " + dbname + " with " + db);
        try {
            dropDatabase(dbname);
            createDatabase(db);
        } catch (NoSuchObjectException | MetaException ex) {
            LOG.debug("Alter database failed with: {}", ex.getMessage());
            throw ex;
        } catch (InvalidObjectException ex) {
            LOG.debug("Alter database failed with: " + ex.getMessage());
            throw new MetaException("Alter database failed: " + ex.getMessage());
        }
        return false;
    }

    @Override
    public List<String> getDatabases(String pattern) throws MetaException {
        try {
            return groundDatabase.getDatabases(pattern);
        } catch (GroundException e) {
            throw new MetaException(e.getMessage());
        }
    }

    @Override
    public List<String> getAllDatabases() throws MetaException {
        try {
            return this.getDatabases("");
        } catch (MetaException ex) {
            LOG.error("Failed to get all databases");
            throw new MetaException(ex);
        }
    }

    @Override
    public boolean createType(Type type) {
        throw new UnsupportedOperationException();
    }

    @Override
    public Type getType(String typeName) {
        throw new UnsupportedOperationException();
    }

    @Override
    public boolean dropType(String typeName) {
        throw new UnsupportedOperationException();
    }

    /**
     * There would be a "database contains" relationship between D and T, and
     * there would be a "table contains" relationship between T and each
     * attribute. The types of attributes of those nodes, and the fact that A2
     * and A4 are partition keys would be tags of those nodes. The fact that the
     * table T is in a particular file format (Parquet or Avro) would be a tag
     * on the table node.
     */
    @Override
    public void createTable(Table tbl) throws InvalidObjectException, MetaException {
        if (tbl == null)
            throw new InvalidObjectException("Table passed is null");
        try {
            this.getDatabase(tbl.getDbName());
            this.groundTable.createTableNodeVersion(tbl);
        } catch (NoSuchObjectException ex) {
            throw new MetaException(ex.getMessage());
        }
    }

    @Override
    public boolean dropTable(String dbName, String tableName)
            throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException {
        try {
            return this.groundTable.dropTable(dbName, tableName, EntityState.DELETED.name());
        } catch (GroundException e) {
            throw new MetaException(e.getMessage());
        }
    }

    @Override
    public Table getTable(String dbName, String tableName) throws MetaException {
        return this.groundTable.getTable(dbName, tableName);
    }

    @Override
    public boolean addPartition(Partition part) throws InvalidObjectException, MetaException {
        try {
            List<Partition> parts = new ArrayList<Partition>();
            parts.add(part);
            return this.addPartitions(part.getDbName(), part.getTableName(), parts);
        } catch (MetaException ex) {
            LOG.error("Unable to add partition to table {} in database {}", part.getTableName(), part.getDbName());
            throw new MetaException("Unable to add partition: " + ex.getMessage());
        } catch (InvalidObjectException ex) {
            LOG.error("Invalid input - add partition failed");
            throw new InvalidObjectException("Invalid input - add partition failed: " + ex.getMessage());
        }
    }

    @Override
    public boolean addPartitions(String dbName, String tableName, List<Partition> parts)
            throws InvalidObjectException, MetaException {
        try {
            return this.groundTable.addPartitions(dbName, tableName, parts);
        } catch (InvalidObjectException | MetaException ex) {
            LOG.error("Unable to add partition to table {} database {} with error: {}", tableName, dbName,
                    ex.getMessage());
            throw ex;
        }
    }

    @Override
    public List<Partition> getPartitionsByNames(String dbName, String tableName, List<String> part_vals)
            throws MetaException, NoSuchObjectException {
        return this.groundTable.getPartitions(dbName, tableName, part_vals);
    }

    @Override
    public boolean doesPartitionExist(String dbName, String tableName, List<String> part_vals)
            throws MetaException, NoSuchObjectException {
        try {
            List<Partition> partition = this.groundTable.getPartitions(dbName, tableName, part_vals);
            return (partition != null);
        } catch (MetaException | NoSuchObjectException ex) {
            throw ex;
        }
    }

    @Override
    public boolean dropPartition(String dbName, String tableName, List<String> part_vals)
            throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException {
        throw new MetaException("Drop partition is not currently supported");
    }

    @Override
    public List<Partition> getPartitions(String dbName, String tableName, int max)
            throws MetaException, NoSuchObjectException {
        try {
            return this.groundTable.getPartitions(dbName, tableName, max);
        } catch (MetaException | NoSuchObjectException ex) {
            LOG.error("Get partitions failed table {} database {} error: {}", tableName, dbName, ex.getMessage());
            throw ex;
        }
    }

    @Override
    public void alterTable(String dbName, String tableName, Table newTable)
            throws InvalidObjectException, MetaException {
        try {
            this.groundTable.dropTable(dbName, tableName, EntityState.DELETED.name());
            this.groundTable.createTableNodeVersion(newTable);
        } catch (GroundException e) {
            // TODO Auto-generated catch block
            throw new MetaException(e.getMessage());
        }
    }

    @Override
    public List<String> getTables(String dbName, String pattern) throws MetaException {
        return groundTable.getTables(dbName, pattern);
    }

    @Override
    public List<String> getAllTables(String dbName) throws MetaException {
        return this.getTables(dbName, "");
    }

    @Override
    public List<String> listTableNamesByFilter(String dbName, String filter, short max_tables)
            throws MetaException, UnknownDBException {
        return groundTable.getTables(dbName, filter);
    }

}


text:
<app-top-menu></app-top-menu>

Site Config

        <form novalidate>

            GDG/WTM Group Details:

            <input type="text" [(ngModel)]="siteConfig.groupName" name="groupName" #groupName="ngModel" id="groupName" class="form-control" required>
             0">Group Name: (required)

                Group Name is required.

            <input type="text" [(ngModel)]="siteConfig.groupWebsite" name="groupWebsite" #groupWebsite="ngModel" id="groupWebsite" class="form-control" required>
             0">Website URL: (required)

                Group Website URL is required.

            <input type="text" [(ngModel)]="siteConfig.googleLink" name="googleLink" id="googleLink" class="form-control">
             0">Google+: (only add the +handle)

            <input type="text" [(ngModel)]="siteConfig.facebookLink" name="facebookLink" id="facebookLink" class="form-control">
             0">Facebook: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.twitterLink" name="twitterLink" id="twitterLink" class="form-control">
             0">Twitter: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.instagramLink" name="instagramLink" id="instagramLink" class="form-control">
             0">Instagram: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.meetupLink" name="meetupLink" id="meetupLink" class="form-control">
             0">Meetup: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.githubLink" name="githubLink" id="githubLink" class="form-control">
             0">GitHub: (only add the handle)

            Event Details:

            Event Type: (required)
            <select class="mdb-select" id="eventType" [(ngModel)]="siteConfig.eventType" name="eventType">
              <option value="" disabled selected>Choose your option</option>
              <option value="DevFest">DevFest</option>
              <option value="IWD">International Women's Day (IWD)</option>
              <option value="Other">Other</option>
            </select>

            <input type="text" [(ngModel)]="siteConfig.eventName" name="eventName" #eventName="ngModel" id="eventName" class="form-control" required>
             0">Event Name: (ex. DevFest KC 2018) (required)

                Event Name is required.

            <textarea mdbActive type="text" id="eventDescription" class="md-textarea" style="height: 100px" [(ngModel)]="siteConfig.eventDescription"
              name="eventDescription"></textarea>
             0">Event Description: (simple HTML allowed) (required)

            <input type="date" [(ngModel)]="siteConfig.eventDate" name="eventDate" #eventDate="ngModel" id="eventDate" placeholder="" class="form-control" required>
            Event Date: (required)

                Event Date is required.

            <input type="text" [(ngModel)]="siteConfig.eventLink" name="eventLink" #eventLink="ngModel" id="eventLink" class="form-control" required>
             0">Event Website URL: (required)

                Event Website URL is required.

            <input type="text" [(ngModel)]="siteConfig.eventEmail" name="eventEmail" #eventEmail="ngModel" id="eventEmail" class="form-control" required>
             0">Event Email Address: (ex. devfest@gmail.com) (required)

                Event Email Address is required.

            <input type="text" [(ngModel)]="siteConfig.eventReportEmail" name="eventReportEmail" #eventReportEmail="ngModel" id="eventReportEmail" class="form-control" required>
             0">Event Code of Conduct Team Email: (ex. coc@devfestcity.com) (required)

                Event Code of Conduct Team Email is required.

            <input type="text" [(ngModel)]="siteConfig.eventAnonReport" name="eventAnonReport" #eventAnonReport="ngModel" id="eventAnonReport" class="form-control" required>
             0">Event Anonymous Harassment Form URL: (required)

                Event Anonymous Harassment Form URL is required.

            <input type="text" [(ngModel)]="siteConfig.eventGoogle" name="eventGoogle" id="eventGoogle" class="form-control">
             0">Event Google+: (only add the +handle)

            <input type="text" [(ngModel)]="siteConfig.eventFacebook" name="eventFacebook" id="eventFacebook" class="form-control">
             0">Event Facebook: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.eventTwitter" name="eventTwitter" id="eventTwitter" class="form-control">
             0">Event Twitter: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.eventInstagram" name="eventInstagram" id="eventInstagram" class="form-control">
             0">Event Instagram: (only add the handle)

            <input type="text" [(ngModel)]="siteConfig.eventHashtag" name="eventHashtag" id="eventHashtag" class="form-control">
             0">Event Hashtag: (without the #)

            <input type="text" [(ngModel)]="siteConfig.speakerURL" name="speakerURL" id="speakerURL" class="form-control">
             0">Call for Papers URL:

            <input type="text" [(ngModel)]="siteConfig.ticketURL" name="ticketURL" #ticketURL="ngModel" id="ticketURL" class="form-control" required>
             0">Purchase Ticket URL: (required)

                Event Ticket URL is required.

            <input type="text" [(ngModel)]="siteConfig.sponsorURL" name="sponsorURL" id="sponsorURL" class="form-control">
             0">Sponsor Benefits URL:

            Venue Details:

            <input type="text" [(ngModel)]="siteConfig.venueName" name="venueName" id="venueName" class="form-control">
             0">Venue Name:

            <input type="text" [(ngModel)]="siteConfig.venueAddress" name="venueAddress" id="venueAddress" class="form-control">
             0">Venue Address:

            <textarea mdbActive type="text" id="venueDescription" class="md-textarea" style="height: 100px" [(ngModel)]="siteConfig.venueDescription"
              name="venueDescription"></textarea>
             0">Venue Bio:

            Venue Photo:
            <input type="file" class="form-control-file" id="venuePhoto" accept="image/jpeg,image/jpg,image/png,image/x-png" aria-describedby="Venue Photo">

            <button class="btn btn-primary" *ngIf="addConfig" (click)="createConfig()">Save</button>
            <button class="btn btn-primary" *ngIf="!addConfig" (click)="updateConfig()">Save Changes</button>

        </form>


text:
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Coin extends Model
{
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'coins';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['currency_id', 'country_id', 'value', 'commemorative', 'description'];

    /**
     * A coin has many copies.
     *
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function copies()
    {
        return $this->hasMany('App\Copy');
    }

    /**
     * A coin is submitted by a user.
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo('App\User');
    }

    /**
     * A coin is from a country.
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function country()
    {
        return $this->belongsTo('App\Country');
    }

    /**
     * A coin belongs to a currency.
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function currency()
    {
        return $this->belongsTo('App\Currency');
    }
}


text:
package net.sourceforge.myvd.test.acl;

import java.util.ArrayList;
import java.util.HashMap;

import net.sourceforge.myvd.chain.SearchInterceptorChain;
import net.sourceforge.myvd.core.InsertChain;
import net.sourceforge.myvd.inserts.Insert;
import net.sourceforge.myvd.inserts.accessControl.AccessControlItem;
import net.sourceforge.myvd.router.Router;
import net.sourceforge.myvd.server.Server;
import net.sourceforge.myvd.test.util.StartOpenLDAP;
import net.sourceforge.myvd.types.DistinguishedName;
import net.sourceforge.myvd.types.Password;
import net.sourceforge.myvd.types.SessionVariables;

import com.novell.ldap.util.DN;

import junit.framework.TestCase;

public class TestValidateSubjects extends TestCase {
	private StartOpenLDAP openldapServer;
	private Server server;
	private InsertChain globalChain;
	private Router router;

	protected void setUp() throws Exception {
		super.setUp();
		this.openldapServer = new StartOpenLDAP();
		this.openldapServer.startServer(System.getenv("PROJ_DIR") + "/test/ACITest",10983,"cn=admin,dc=domain,dc=com","manager");

		server = new Server(System.getenv("PROJ_DIR") + "/test/TestServer/testACI.props");
		server.startServer();

		this.globalChain = server.getGlobalChain();
		this.router = server.getRouter();
 	}

	public void testPublic() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#public:");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testSubtreePass() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#subtree:ou=users,dc=domain,dc=com");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testSubtreeFail() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#subtree:ou=apps,dc=domain,dc=com");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testThisPass() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#this:");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,new DN("uid=testuser,ou=users,dc=domain,dc=com"))) {
			fail("subject check failed");
		}
	}

	public void testThisFail() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#this:");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (aci.checkSubject(chain,new DN("uid=testuser1,ou=users,dc=domain,dc=com"))) {
			fail("subject check failed");
		}
	}

	public void testDNPass() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#dn:uid=testuser,ou=users,dc=domain,dc=com");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testDNFail() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#dn:uid=testuser1,ou=users,dc=domain,dc=com");
		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testStaticGroupPass() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#group:cn=staticgroup1,ou=groups,dc=domain,dc=com");
		HashMap<Object,Object> session = new HashMap<Object,Object>();
		session.put(SessionVariables.BOUND_INTERCEPTORS,new ArrayList<String>());

		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,session,new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}

		chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser2,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,session,new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testStaticGroupFail() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#group:cn=staticgroup1,ou=groups,dc=domain,dc=com");

		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser1,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,new HashMap<Object,Object>(),new HashMap<Object,Object>(),this.router);

		if (aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}

	}

	public void testDynGroupPass() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#dynamic-group:cn=dynamicgroup1,ou=groups,dc=domain,dc=com");
		HashMap<Object,Object> session = new HashMap<Object,Object>();
		session.put(SessionVariables.BOUND_INTERCEPTORS,new ArrayList<String>());

		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,session,new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}

		chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser1,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,session,new HashMap<Object,Object>(),this.router);

		if (! aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}
	}

	public void testDynGroupFail() throws Exception {
		AccessControlItem aci = new AccessControlItem(0,"cn=test,ou=myorg,dc=domain,dc=com#entry#grant:r,w,o#[all]#dynamic-group:cn=dynamicgroup1,ou=groups,dc=domain,dc=com");
		HashMap<Object,Object> session = new HashMap<Object,Object>();
		session.put(SessionVariables.BOUND_INTERCEPTORS,new ArrayList<String>());

		SearchInterceptorChain chain = new SearchInterceptorChain(new DistinguishedName("uid=testuser2,ou=users,dc=domain,dc=com"),new Password(""),0,this.globalChain,session,new HashMap<Object,Object>(),this.router);

		if (aci.checkSubject(chain,null)) {
			fail("subject check failed");
		}

	}

	protected void tearDown() throws Exception {
		super.tearDown();
		this.openldapServer.stopServer();
		this.server.stopServer();
	}
}


text:
We really love contributions! Simply follow these three steps to contribute:

1. Sign one of the Contributor License Agreements below.
2. Fork the repo, develop, and test your changes.
3. Submit a pull request to the repo with your changes.

We will review your change and if it all looks good, your change will be merged.
If it appears your change needs additional work, we will let you know with
useful comments so you can adjust your pull request accordingly.

## Development

Install all dependencies including development requirements by running:

``` sh
$ npm install -d
```

Your code should honor the [Google JavaScript Style Guide][js-guide].
You can use [Closure Linter][c-linter] to detect style issues.

## Contributor License Agreements

Before creating a pull request, please fill out either the individual or
corporate Contributor License Agreement.

- **Individual:** If you are an individual writing original source code and
you're sure you own the intellectual property, then you'll need to sign the
[individual CLA][indv-cla].
- **Corporate:** If you work for a company that wants to allow you to contribute
your work to this client library, then you'll need to sign the
[corporate CLA][corp-cla].

Follow either of the two links above to access the appropriate CLA and
instructions for how to sign and return it. Once we receive it, we'll add you
to the official list of contributors and be able to accept your changes.

[js-guide]: https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
[c-linter]: https://code.google.com/p/closure-linter/
[indv-cla]: https://cla.developers.google.com/about/google-individual
[corp-cla]: https://cla.developers.google.com/about/google-corporate


text:
/* ========================================================================== */
/* === AMGsolver mexFunction ================================================ */
/* ========================================================================== */

/*
    Usage:

    Return the structure 'options' and solution x of Ax=b based on ILUPACK V2.2

    Example:

    % for initializing parameters
    [x, options] = DSYMSPDilupacksolver(A,PREC,options, b,x0);

    Authors:

	Matthias Bollhoefer, TU Braunschweig

    Date:

	October 10, 2006. ILUPACK V2.2.

    Acknowledgements:

	This work was supported from 2002-2007 by the DFG research center
        MATHEON "Mathematics for key technologies"

    Notice:

	Copyright (c) 2006 by TU Braunschweig.  All Rights Reserved.

	THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY
	EXPRESSED OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.

    Availability:

	This file is located at

	http://www.math.tu-berlin.de/ilupack/
*/

/* ========================================================================== */
/* === Include files and prototypes ========================================= */
/* ========================================================================== */

#include "mex.h"
#include "matrix.h"
#include <string.h>
#include <stdlib.h>
#include <ilupack.h>

/* ========================================================================== */
/* === mexFunction ========================================================== */
/* ========================================================================== */

void mexFunction
(
    /* === Parameters ======================================================= */

    int nlhs,			/* number of left-hand sides */
    mxArray *plhs [],		/* left-hand side matrices */
    int nrhs,			/* number of right--hand sides */
    const mxArray *prhs []	/* right-hand side matrices */
)
{
    Dmat A;
    DAMGlevelmat *PRE;
    DILUPACKparam *param;
    integer n;

    const char **fnames;

    const mwSize  *dims;
    mxClassID  *classIDflags;
    mxArray    *tmp, *fout, *A_input , *b_input, *x0_input, *options_input,
               *PRE_input, *options_output, *x_output;
    char       *pdata, *input_buf, *output_buf;
    mwSize     nnz, ndim, buflen;
    int        ifield, status, nfields, ierr,i,j,k,l,m;
    mwIndex    *irs, *jcs;
    size_t     mrows, ncols, sizebuf;
    double     dbuf, *A_valuesR, *convert, *sr, *pr, *sol, *rhs;
    mwIndex    *A_ja,                 /* row indices of input matrix A */
               *A_ia;                 /* column pointers of input matrix A */

    if (nrhs != 5)
       mexErrMsgTxt("five input arguments required.");
    else if (nlhs !=2)
       mexErrMsgTxt("Too many output arguments.");
    else if (!mxIsStruct(prhs[2]))
       mexErrMsgTxt("Third input must be a structure.");
    else if (!mxIsNumeric(prhs[0]))
       mexErrMsgTxt("First input must be a matrix.");

    /* The first input must be a square matrix.*/
    A_input = (mxArray *) prhs [0] ;
    /* get size of input matrix A */
    mrows = mxGetM (A_input) ;
    ncols = mxGetN (A_input) ;
    nnz = mxGetNzmax(A_input);
    if (mrows!=ncols) {
       mexErrMsgTxt("First input must be a square matrix.");
    }
    if (!mxIsSparse (A_input))
    {
        mexErrMsgTxt ("ILUPACK: input matrix must be in sparse format.") ;
    }

    /* copy input matrix to sparse row format */
    A.nc=A.nr=mrows;
    A.ia=(integer *) MAlloc((size_t)(A.nc+1)*sizeof(integer),"DSYMSPDilupackfactor");
    A.ja=(integer *) MAlloc((size_t)nnz     *sizeof(integer),"DSYMSPDilupackfactor");
    A. a=(double  *) MAlloc((size_t)nnz     *sizeof(double), "DSYMSPDilupackfactor");

    A_ja         = (mwIndex *)mxGetIr(A_input) ;
    A_ia         = (mwIndex *)mxGetJc(A_input) ;
    A_valuesR    = (double *) mxGetPr(A_input);

    /* -------------------------------------------------------------------- */
    /* ..  Convert matrix from 0-based C-notation to Fortran 1-based        */
    /*     notation.                                                        */
    /* -------------------------------------------------------------------- */

    /*
    for (i = 0 ; i < ncols ; i++)
      for (j = A_ia[i] ; j < A_ia[i+1] ; j++)
	printf("i=%d ja=%d  A.real=%e\n", i+1,  A_ja[j]+1, A_valuesR[j]);
    */

    A.ia[0]=1;
    for (i = 0 ; i < ncols ; i++) {
        A.ia[i+1]=A.ia[i];
	for (j = A_ia[i] ; j < A_ia[i+1] ; j++) {
	    k=A_ja[j];
	    if (k>=i) {
	       l=A.ia[i+1]-1;
	       A.ja[l]=k+1;
	       A.a [l]=A_valuesR[j];
	       A.ia[i+1]=l+2;
	    }
	}
    }

    /*
    for (i = 0 ; i < A.nr ; i++)
      for (j = A.ia[i]-1 ; j < A.ia[i+1]-1 ; j++)
	  printf("i=%d ja=%d  A.real=%e\n", i+1,  A.ja[j], A.a[j]);
    */

    /* import pointer to the preconditioner */
    PRE_input = (mxArray*) prhs [1] ;
    /* get number of levels of input preconditioner structure `PREC' */
    /* nlev=mxGetN(PRE_input); */

    nfields = mxGetNumberOfFields(PRE_input);
    /* allocate memory  for storing pointers */
    fnames = mxCalloc((size_t)nfields, (size_t)sizeof(*fnames));
    for (ifield = 0; ifield < nfields; ifield++) {
        fnames[ifield] = mxGetFieldNameByNumber(PRE_input,ifield);
	/* check whether `PREC.ptr' exists */
	if (!strcmp("ptr",fnames[ifield])) {
	   /* field `ptr' */
	   tmp = mxGetFieldByNumber(PRE_input,0,ifield);
	   pdata = mxGetData(tmp);
	   memcpy(&PRE, pdata, (size_t)sizeof(size_t));
	}
	else if (!strcmp("param",fnames[ifield])) {
	   /* field `param' */
	   tmp = mxGetFieldByNumber(PRE_input,0,ifield);
	   pdata = mxGetData(tmp);
	   memcpy(&param, pdata, (size_t)sizeof(size_t));
	}
    }
    mxFree(fnames);

    /* rescale input matrix */
    /* obsolete
    for (i=0; i <A.nr; i++) {
	for (j=A.ia[i]-1; j<A.ia[i+1]-1; j++) {
	    A.a[j]*=PRE->rowscal[i]*PRE->colscal[A.ja[j]-1];
	}
    }
    */

    /* Get third input argument `options' */
    options_input=(mxArray*)prhs[2];
    nfields = mxGetNumberOfFields(options_input);

    /* Allocate memory  for storing classIDflags */
    classIDflags = (mxClassID *) mxCalloc((size_t)nfields+1, (size_t)sizeof(int));

    /* allocate memory  for storing pointers */
    fnames = mxCalloc((size_t)nfields+1, (size_t)sizeof(*fnames));

    /* Get field name pointers */
    j=-1;
    for (ifield = 0; ifield < nfields; ifield++) {
        fnames[ifield] = mxGetFieldNameByNumber(options_input,ifield);
	/* check whether `options.niter' already exists */
	if (!strcmp("niter",fnames[ifield]))
	   j=ifield;
    }
    if (j==-1)
       fnames[nfields]="niter";
    /* mexPrintf("search for niter completed\n"); fflush(stdout); */

    /* import data */
    for (ifield = 0; ifield < nfields; ifield++) {
        /* mexPrintf("%2d\n",ifield+1); fflush(stdout); */
	tmp = mxGetFieldByNumber(options_input,0,ifield);
	classIDflags[ifield] = mxGetClassID(tmp);

	ndim = mxGetNumberOfDimensions(tmp);
	dims = mxGetDimensions(tmp);

	/* Create string/numeric array */
	if (classIDflags[ifield] == mxCHAR_CLASS) {
	   /* Get the length of the input string. */
	   buflen = (mxGetM(tmp) * mxGetN(tmp)) + 1;

	   /* Allocate memory for input and output strings. */
	   input_buf = (char *) mxCalloc((size_t)buflen, (size_t)sizeof(char));

	   /* Copy the string data from tmp into a C string
	      input_buf. */
	   status = mxGetString(tmp, input_buf, buflen);

	   if (!strcmp("amg",fnames[ifield])) {
              if (strcmp(param->amg,input_buf)) {
		 param->amg=(char *)MAlloc((size_t)buflen*sizeof(char),"ilupackfactor");
		 strcpy(param->amg,input_buf);
	      }
	   }
	   else if (!strcmp("presmoother",fnames[ifield])) {
              if (strcmp(param->presmoother,input_buf)) {
		 param->presmoother=(char *)MAlloc((size_t)buflen*sizeof(char),
						   "ilupackfactor");
		 strcpy(param->presmoother,input_buf);
	      }
	   }
	   else if (!strcmp("postsmoother",fnames[ifield])) {
              if (strcmp(param->postsmoother,input_buf)) {
		 param->postsmoother=(char *)MAlloc((size_t)buflen*sizeof(char),
						    "ilupackfactor");
		 strcpy(param->postsmoother,input_buf);
	      }
	   }
	   else if (!strcmp("typecoarse",fnames[ifield])) {
              if (strcmp(param->typecoarse,input_buf)) {
		 param->typecoarse=(char *)MAlloc((size_t)buflen*sizeof(char),
						  "ilupackfactor");
		 strcpy(param->typecoarse,input_buf);
	      }
	   }
	   else if (!strcmp("typetv",fnames[ifield])) {
              if (strcmp(param->typetv,input_buf)) {
		 param->typetv=(char *)MAlloc((size_t)buflen*sizeof(char),
					      "ilupackfactor");
		 strcpy(param->typetv,input_buf);
	      }
	   }
	   else if (!strcmp("FCpart",fnames[ifield])) {
              if (strcmp(param->FCpart,input_buf)) {
		 param->FCpart=(char *)MAlloc((size_t)buflen*sizeof(char),
					      "ilupackfactor");
		 strcpy(param->FCpart,input_buf);
	      }
	   }
	   else if (!strcmp("solver",fnames[ifield])) {
              if (strcmp(param->solver,input_buf)) {
		 param->solver=(char *)MAlloc((size_t)buflen*sizeof(char),
					      "ilupackfactor");
		 strcpy(param->solver,input_buf);
	      }
	   }
	   else if (!strcmp("ordering",fnames[ifield])) {
              if (strcmp(param->ordering,input_buf)) {
	         param->ordering=(char *)MAlloc((size_t)buflen*sizeof(char),
						"ilupackfactor");
		 strcpy(param->ordering,input_buf);
	      }
	   }
	   else {
	      /* mexPrintf("%s ignored\n",fnames[ifield]);fflush(stdout); */
	   }
	}
	else {
	   if (!strcmp("elbow",fnames[ifield])) {
	      param->elbow=*mxGetPr(tmp);
	   }
	   else if (!strcmp("lfilS",fnames[ifield])) {
	      param->lfilS=*mxGetPr(tmp);
	   }
	   else if (!strcmp("lfil",fnames[ifield])) {
	      param->lfil=*mxGetPr(tmp);
	   }
	   else if (!strcmp("maxit",fnames[ifield])) {
	      param->maxit=*mxGetPr(tmp);
	   }
	   else if (!strcmp("droptolS",fnames[ifield])) {
	      param->droptolS=*mxGetPr(tmp);
	   }
	   else if (!strcmp("droptolc",fnames[ifield])) {
	      param->droptolc=*mxGetPr(tmp);
	   }
	   else if (!strcmp("droptol",fnames[ifield])) {
	      param->droptol=*mxGetPr(tmp);
	   }
	   else if (!strcmp("condest",fnames[ifield])) {
	      param->condest=*mxGetPr(tmp);
	   }
	   else if (!strcmp("restol",fnames[ifield])) {
	      param->restol=*mxGetPr(tmp);
	   }
	   else if (!strcmp("npresmoothing",fnames[ifield])) {
	      param->npresmoothing=*mxGetPr(tmp);
	   }
	   else if (!strcmp("npostmoothing",fnames[ifield])) {
	      param->npostsmoothing=*mxGetPr(tmp);
	   }
	   else if (!strcmp("ncoarse",fnames[ifield])) {
	      param->ncoarse=*mxGetPr(tmp);
	   }
	   else if (!strcmp("matching",fnames[ifield])) {
	      param->matching=*mxGetPr(tmp);
	   }
	   else if (!strcmp("nrestart",fnames[ifield])) {
	      param->nrestart=*mxGetPr(tmp);
	   }
	   else if (!strcmp("damping",fnames[ifield])) {
	      param->damping=*mxGetPr(tmp);
	   }
	   else if (!strcmp("mixedprecision",fnames[ifield])) {
	      param->mixedprecision=*mxGetPr(tmp);
	   }
	   else {
	     /* mexPrintf("%s ignored\n",fnames[ifield]);fflush(stdout); */
	   }
	}
    }

    /* copy right hand side `b' */
    b_input = (mxArray *) prhs [3] ;
    /* get size of input matrix A */
    rhs=(double*) MAlloc((size_t)A.nr*sizeof(double),"DSYMSPDilupacksolver:rhs");
    pr=mxGetPr(b_input);
    memcpy(rhs,pr,(size_t)A.nr*sizeof(double));

    /* copy initial solution `x0' */
    x0_input = (mxArray *) prhs [4] ;
    /* numerical solution */
    sol=(double *)MAlloc((size_t)A.nr*sizeof(double),"DSYMSPDilupackfactor:sol");
    pr=mxGetPr(x0_input);
    memcpy(sol,pr,(size_t)A.nr*sizeof(double));

    ierr=DSYMSPDAMGsolver(&A, PRE, param, rhs, sol);

    /* Create a struct matrices for output */
    nlhs=2;
    if (j==-1)
       plhs[1] = mxCreateStructMatrix((mwSize)1, (mwSize)1, nfields+1, fnames);
    else
       plhs[1] = mxCreateStructMatrix((mwSize)1, (mwSize)1, nfields, fnames);
    if (plhs[1]==NULL)
       mexErrMsgTxt("Could not create structure mxArray\n");
    options_output=plhs[1];

    /* export data */
    for (ifield = 0; ifield<nfields; ifield++) {
	tmp = mxGetFieldByNumber(options_input,0,ifield);
	classIDflags[ifield] = mxGetClassID(tmp);

	ndim = mxGetNumberOfDimensions(tmp);
	dims = mxGetDimensions(tmp);

	/* Create string/numeric array */
	if (classIDflags[ifield] == mxCHAR_CLASS) {
	   if (!strcmp("amg",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->amg)+1, (size_t)sizeof(char));
	      strcpy(output_buf,param->amg);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("presmoother",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->presmoother)+1, (size_t)sizeof(char));
	      strcpy(output_buf,param->presmoother);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("postsmoother",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->postsmoother)+1, (size_t)sizeof(char));
	      strcpy(output_buf,param->postsmoother);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("typecoarse",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->typecoarse)+1, (size_t)sizeof(char));
	      strcpy(output_buf,param->typecoarse);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("typetv",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->typetv)+1, (size_t)sizeof(char));
	      strcpy(output_buf,param->typetv);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("FCpart",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->FCpart)+1, (size_t)sizeof(char));
	      strcpy(output_buf,param->FCpart);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("solver",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->solver)+1, (size_t)sizeof(char));
	      strcpy(output_buf, param->solver);
	      fout = mxCreateString(output_buf);
	   }
	   else if (!strcmp("ordering",fnames[ifield])) {
	      output_buf = (char *) mxCalloc((size_t)strlen(param->ordering)+1, (size_t)sizeof(char));
	      strcpy(output_buf, param->ordering);
	      fout = mxCreateString(output_buf);
	   }
	   else {
	      /* Get the length of the input string. */
	      buflen = (mxGetM(tmp) * mxGetN(tmp)) + 1;

	      /* Allocate memory for input and output strings. */
	      input_buf  = (char *) mxCalloc((size_t)buflen, (size_t)sizeof(char));
	      output_buf = (char *) mxCalloc((size_t)buflen, (size_t)sizeof(char));

	      /* Copy the string data from tmp into a C string
		 input_buf. */
	      status = mxGetString(tmp, input_buf, buflen);

	      sizebuf = buflen*sizeof(char);
	      memcpy(output_buf, input_buf, (size_t)sizebuf);
	      fout = mxCreateString(output_buf);
	   }
	}
	else {
	   fout = mxCreateNumericArray((mwSize)ndim, dims,
				       classIDflags[ifield], mxREAL);
	   pdata = mxGetData(fout);

	   sizebuf = mxGetElementSize(tmp);
	   if (!strcmp("elbow",fnames[ifield])) {
	      dbuf=param->elbow;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("lfilS",fnames[ifield])) {
	      dbuf=param->lfilS;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("lfil",fnames[ifield])) {
	      dbuf=param->lfil;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("maxit",fnames[ifield])) {
	      dbuf=param->maxit;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("droptolS",fnames[ifield])) {
	      dbuf=param->droptolS;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("droptolc",fnames[ifield])) {
	      dbuf=param->droptolc;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("droptol",fnames[ifield])) {
	      dbuf=param->droptol;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("condest",fnames[ifield])) {
	      dbuf=param->condest;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("restol",fnames[ifield])) {
	      dbuf=param->restol;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("npresmoothing",fnames[ifield])) {
	      dbuf=param->npresmoothing;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("npostmoothing",fnames[ifield])) {
	      dbuf=param->npostsmoothing;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("ncoarse",fnames[ifield])) {
	      dbuf=param->ncoarse;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("matching",fnames[ifield])) {
	      dbuf=param->matching;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("nrestart",fnames[ifield])) {
	      dbuf=param->nrestart;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("damping",fnames[ifield])) {
	      dbuf=param->damping;
	      memcpy(pdata, &dbuf, (size_t)sizebuf);
	   }
	   else if (!strcmp("mixedprecision",fnames[ifield])) {
	      dbuf=param->mixedprecision;
	      memcpy(pdata, &dbuf, sizebuf);
	   }
	   else {
	      memcpy(pdata, mxGetData(tmp), (size_t)sizebuf);
	   }
	}

	/* Set each field in output structure */
	mxSetFieldByNumber(options_output, (mwIndex)0, ifield, fout);
    }

    /* store number of iteration steps */
    if (j==-1)
       ifield=nfields;
    else
       ifield=j;
    fout=mxCreateDoubleMatrix((mwSize)1,(mwSize)1, mxREAL);
    pr=mxGetPr(fout);

    *pr=param->ipar[26];

    /* set each field in output structure */
    mxSetFieldByNumber(options_output, (mwIndex)0, ifield, fout);

    mxFree(fnames);
    mxFree(classIDflags);
    /* mexPrintf("options exported\n"); fflush(stdout); */

    plhs[0] = mxCreateDoubleMatrix((mwSize)A.nr, (mwSize)1, mxREAL);
    x_output=plhs[0];
    pr=mxGetPr(x_output);
    memcpy(pr,sol,(size_t)A.nr*sizeof(double));
    /* mexPrintf("solution set\n"); fflush(stdout); */

    /* release right hand side */
    free(rhs);

    /* release solution */
    free(sol);

    /* release input matrix */
    free(A.ia);
    free(A.ja);
    free(A.a);

    switch (ierr) {
    case  0: /* perfect! */
      break;
    case -1: /* too many iteration steps */
      mexPrintf("!!! ILUPACK Warning !!!\n");
      mexPrintf("number of iteration steps exceeded its limit.\nEither increase `options.maxit'\n or recompute ILUPACK preconditioner using a smaller `options.droptol'");
      break;
    case -2: /* weird, should not occur */
      mexErrMsgTxt("not enough workspace provided.");
      break;
      plhs[0]=NULL;
    case -3: /* breakdown */
      mexErrMsgTxt("iterative solver breaks down.\nMost likely you need to recompute ILUPACK preconditioner using a smaller `options.droptol'");
      plhs[0]=NULL;
      break;
    default: /* zero pivot encountered at step number ierr */
      mexPrintf("iterative solver exited with error code %d",ierr);
      mexErrMsgTxt(".");
      plhs[0]=NULL;
      break;
    } /* end switch */

    return;
}


text:
title: Club Information
permalink: /info/
---

{% assign navigation = site.data.navigation.info %}
{% for nav in navigation %}
  {% if nav.children != null %}
    {% for child in nav.children %}
      {% comment %} internal/external URL check {% endcomment %}
      {% if child.url contains "://" %}
        {% assign domain = "" %}
      {% else %}
        {% assign domain = site.url | append: site.baseurl %}
      {% endif %}
      {% comment %} set "active" class on current page {% endcomment %}
      {% if child.url == page.url %}
        {% assign active = "active" %}
      {% else %}
        {% assign active = "" %}
      {% endif %}
  - [{{ child.title }}]({{ domain }}{{ child.url }})
    {% endfor %}
  {% endif %}
{% endfor %}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
in Vánky & Berbee, Mycotaxon 33: 282 (1988)

#### Original name
Thecaphora herteriana Cif.

### Remarks
null