text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace treeDiM.StackBuilder.GUIExtension.Properties {

    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")]
    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {

        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

        public static Settings Default {
            get {
                return defaultInstance;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("EUR")]
        public string PalletName {
            get {
                return ((string)(this["PalletName"]));
            }
            set {
                this["PalletName"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("True")]
        public bool AllowOrientationX {
            get {
                return ((bool)(this["AllowOrientationX"]));
            }
            set {
                this["AllowOrientationX"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("True")]
        public bool AllowOrientationY {
            get {
                return ((bool)(this["AllowOrientationY"]));
            }
            set {
                this["AllowOrientationY"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("True")]
        public bool AllowOrientationZ {
            get {
                return ((bool)(this["AllowOrientationZ"]));
            }
            set {
                this["AllowOrientationZ"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0")]
        public double OverhangX {
            get {
                return ((double)(this["OverhangX"]));
            }
            set {
                this["OverhangX"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0")]
        public double OverhangY {
            get {
                return ((double)(this["OverhangY"]));
            }
            set {
                this["OverhangY"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1200")]
        public double MaximumPalletHeight {
            get {
                return ((double)(this["MaximumPalletHeight"]));
            }
            set {
                this["MaximumPalletHeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1")]
        public double CaseWeight {
            get {
                return ((double)(this["CaseWeight"]));
            }
            set {
                this["CaseWeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool UseMaximumPalletWeight {
            get {
                return ((bool)(this["UseMaximumPalletWeight"]));
            }
            set {
                this["UseMaximumPalletWeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1000")]
        public double MaximumPalletWeight {
            get {
                return ((double)(this["MaximumPalletWeight"]));
            }
            set {
                this["MaximumPalletWeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("")]
        public string DefaultDirectory {
            get {
                return ((string)(this["DefaultDirectory"]));
            }
            set {
                this["DefaultDirectory"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0")]
        public int ReportTypeIndex {
            get {
                return ((int)(this["ReportTypeIndex"]));
            }
            set {
                this["ReportTypeIndex"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("True")]
        public bool OpenGeneratedFile {
            get {
                return ((bool)(this["OpenGeneratedFile"]));
            }
            set {
                this["OpenGeneratedFile"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("2")]
        public int NumberWallsLength {
            get {
                return ((int)(this["NumberWallsLength"]));
            }
            set {
                this["NumberWallsLength"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("2")]
        public int NumberWallsWidth {
            get {
                return ((int)(this["NumberWallsWidth"]));
            }
            set {
                this["NumberWallsWidth"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("4")]
        public int NumberWallsHeight {
            get {
                return ((int)(this["NumberWallsHeight"]));
            }
            set {
                this["NumberWallsHeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("4")]
        public double WrapperThickness {
            get {
                return ((double)(this["WrapperThickness"]));
            }
            set {
                this["WrapperThickness"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("100")]
        public double WrapperSurfMass {
            get {
                return ((double)(this["WrapperSurfMass"]));
            }
            set {
                this["WrapperSurfMass"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("12")]
        public int NumberBoxesPerCase {
            get {
                return ((int)(this["NumberBoxesPerCase"]));
            }
            set {
                this["NumberBoxesPerCase"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool ForceVerticalBoxOrientation {
            get {
                return ((bool)(this["ForceVerticalBoxOrientation"]));
            }
            set {
                this["ForceVerticalBoxOrientation"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1")]
        public double BoxFlatWeight {
            get {
                return ((double)(this["BoxFlatWeight"]));
            }
            set {
                this["BoxFlatWeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("400")]
        public double CaseLength {
            get {
                return ((double)(this["CaseLength"]));
            }
            set {
                this["CaseLength"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("300")]
        public double CaseWidth {
            get {
                return ((double)(this["CaseWidth"]));
            }
            set {
                this["CaseWidth"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("200")]
        public double CaseHeight {
            get {
                return ((double)(this["CaseHeight"]));
            }
            set {
                this["CaseHeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("10")]
        public int NoFlatsInBundle {
            get {
                return ((int)(this["NoFlatsInBundle"]));
            }
            set {
                this["NoFlatsInBundle"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool AllowVerticalX {
            get {
                return ((bool)(this["AllowVerticalX"]));
            }
            set {
                this["AllowVerticalX"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool AllowVerticalY {
            get {
                return ((bool)(this["AllowVerticalY"]));
            }
            set {
                this["AllowVerticalY"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("True")]
        public bool AllowVerticalZ {
            get {
                return ((bool)(this["AllowVerticalZ"]));
            }
            set {
                this["AllowVerticalZ"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1200")]
        public double PalletHeight {
            get {
                return ((double)(this["PalletHeight"]));
            }
            set {
                this["PalletHeight"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0")]
        public int WrapperType {
            get {
                return ((int)(this["WrapperType"]));
            }
            set {
                this["WrapperType"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("8")]
        public int GridFontSize {
            get {
                return ((int)(this["GridFontSize"]));
            }
            set {
                this["GridFontSize"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0.5")]
        public double WallThickness {
            get {
                return ((double)(this["WallThickness"]));
            }
            set {
                this["WallThickness"] = value;
            }
        }

        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0.1")]
        public double WallSurfaceMass {
            get {
                return ((double)(this["WallSurfaceMass"]));
            }
            set {
                this["WallSurfaceMass"] = value;
            }
        }
    }
}


text:
Haskell offers the following for software engineers:

*    Reproducability - The build system, `stack`, is gaining steam. But there are others; such as [nix](http://www.cse.chalmers.se/~bernardy/nix.html), and [halcyon](http://halcyon.sh)

*    Solid Testing Tools - [QuickCheck](https://www.fpcomplete.com/user/pbv/an-introduction-to-quickcheck-testing) and [HUnit](https://wiki.haskell.org/HUnit_1.0_User%27s_Guide)

*    Maintainablility - Via [concise semantics](https://www.fpcomplete.com/business/about/haskell-improves-productivity/) and a powerful [type system](http://programmers.stackexchange.com/questions/279316/what-exactly-makes-the-haskell-type-system-so-revered-vs-say-java)

*    Parallel and Concurrent Programming - [Superior Constructs](https://downloads.haskell.org/~ghc/7.8.4/docs/html/users_guide/lang-parallel.html) for parallel and concurrent programming

*    Performance Analysis - [criterion](http://www.serpentine.com/criterion/)

*    Debugging Tools - [Stack tracing](https://downloads.haskell.org/~ghc/7.8.4/docs/html/users_guide/ghci-debugger.html), old-timey [printf](https://hackage.haskell.org/package/base-4.8.1.0/docs/Debug-Trace.html) style debugging, [thread analysis](https://wiki.haskell.org/ThreadScope).

In this series we will use fizzbuzz to examine some of these facilities,
starting with Stack. Stack solves the problem of [dependency hell](http://stackoverflow.com/questions/25869041/whats-the-reason-behind-cabal-dependency-hell) and therefore makes a codebase more easily reproducable.
[install stack](https://github.com/commercialhaskell/stack/tree/master/doc), then [git clone fizzbuzzfib](https://github.com/mlitchard/fizzbuzzfib).
`Stack` uses .cabal files much like it's predecessor [cabal-install](https://www.fpcomplete.com/user/simonmichael/how-to-cabal-install). With it, you describe compiler flags, dependencies, testing environments, exposed and hidden modules (among other things). In [Part 5](/blog/2016/05/fizzbuzz-5) we'll take a look at it. For now, make sure your present working directory is the repo's toplevel and type the following:

`git branch part-II`

`stack ghci`

Now off you go to [Part 2](/blog/2015/11/fizzbuzz-2).

 This is part I of the Haskell As An Engineering Language Series. The introduction is Here

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "full_name".
 *
 * @property integer $id
 * @property string $release_name_ru
 * @property string $release_name_en
 * @property string $release_totalseasons
 * @property integer $release_status
 * @property integer $release_show
 * @property string $release_description
 * @property integer $release_released
 * @property string $release_channel
 * @property string $release_genre
 * @property string $release_director
 * @property string $release_actors
 * @property string $release_plot
 * @property string $release_language
 * @property string $release_country
 * @property string $release_awards
 * @property string $release_metascore
 * @property string $release_imdbrating
 * @property string $release_imdbvotes
 * @property string $release_imdbid
 * @property string $release_type
 * @property string $release_trailer
 * @property integer $release_lostfilmid
 * @property string $release_lostfilmrating
 * @property integer $release_lostfilmvotes
 * @property string $release_lostfilm_alias
 * @property integer $release_zona_mobi_id
 * @property string $release_zona_mobi_rating
 * @property integer $release_zona_mobi_votes
 * @property string $release_zona_mobi_alias
 * @property string $release_preview_image
 */
class FullName extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'full_name';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['release_name_ru', 'release_name_en'], 'required'],
            [['release_status', 'release_show', 'release_released', 'release_lostfilmid', 'release_lostfilmvotes', 'release_zona_mobi_id', 'release_zona_mobi_votes'], 'integer'],
            [['release_plot'], 'string'],
            [['release_name_ru', 'release_name_en', 'release_totalseasons', 'release_description', 'release_genre', 'release_director', 'release_actors', 'release_language', 'release_country', 'release_awards', 'release_metascore', 'release_imdbrating', 'release_imdbvotes', 'release_imdbid', 'release_type', 'release_trailer', 'release_preview_image'], 'string', 'max' => 1024],
            [['release_channel', 'release_lostfilm_alias', 'release_zona_mobi_alias'], 'string', 'max' => 255],
            [['release_lostfilmrating', 'release_zona_mobi_rating'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'release_name_ru' => Yii::t('app', 'Название на русском'),
            'release_name_en' => Yii::t('app', 'Оригинальное название по стандарту OMDB'),
            'release_totalseasons' => Yii::t('app', 'Количество сезонов'),
            'release_status' => Yii::t('app', 'Статус съёмки'),
            'release_show' => Yii::t('app', 'Показывать на главной странице'),
            'release_description' => Yii::t('app', 'Release Description'),
            'release_released' => Yii::t('app', 'Release Released'),
            'release_channel' => Yii::t('app', 'Release Channel'),
            'release_genre' => Yii::t('app', 'Release Genre'),
            'release_director' => Yii::t('app', 'Release Director'),
            'release_actors' => Yii::t('app', 'Release Actors'),
            'release_plot' => Yii::t('app', 'Release Plot'),
            'release_language' => Yii::t('app', 'Release Language'),
            'release_country' => Yii::t('app', 'Release Country'),
            'release_awards' => Yii::t('app', 'Release Awards'),
            'release_metascore' => Yii::t('app', 'Release Metascore'),
            'release_imdbrating' => Yii::t('app', 'Release Imdbrating'),
            'release_imdbvotes' => Yii::t('app', 'Release Imdbvotes'),
            'release_imdbid' => Yii::t('app', 'Release Imdbid'),
            'release_type' => Yii::t('app', 'Release Type'),
            'release_trailer' => Yii::t('app', 'Release Trailer'),
            'release_lostfilmid' => Yii::t('app', 'Release Lostfilmid'),
            'release_lostfilmrating' => Yii::t('app', 'Release Lostfilmrating'),
            'release_lostfilmvotes' => Yii::t('app', 'Release Lostfilmvotes'),
            'release_lostfilm_alias' => Yii::t('app', 'Release Lostfilm Alias'),
            'release_zona_mobi_id' => Yii::t('app', 'Release Zona Mobi ID'),
            'release_zona_mobi_rating' => Yii::t('app', 'Release Zona Mobi Rating'),
            'release_zona_mobi_votes' => Yii::t('app', 'Release Zona Mobi Votes'),
            'release_zona_mobi_alias' => Yii::t('app', 'Release Zona Mobi Alias'),
            'release_preview_image' => Yii::t('app', 'Release Preview Image'),
        ];
    }
}


text:
from django.db import migrations

class Migration(migrations.Migration):

    dependencies = [
        ('sites', '0003_set_site_domain_and_name'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='site',
            options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'},
        ),
    ]


text:
package org.springframework.security.oauth.config;

import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
import org.springframework.security.oauth.provider.expression.OAuthMethodSecurityExpressionHandler;
import org.w3c.dom.Element;

/**
 * @author Ryan Heaton
 * @author Dave Syer
 */
public class ExpressionHandlerBeanDefinitionParser extends AbstractSingleBeanDefinitionParser {

    @Override
    protected Class getBeanClass(Element element) {
        return OAuthMethodSecurityExpressionHandler.class;
    }

}


text:
package br.estacio.eleicoesweb.dao;

import br.estacio.eleicoesweb.entidades.CUsuario;

public interface CUsuarioDAO extends CAbstractDAO<CUsuario> {

}


text:
namespace $ {

	export function $mol_offline( uri = 'web.js' ) {}

}


text:
<?php

class Shirtsio_InvalidRequestError extends Shirtsio_Error
{
	public function __construct($error, $param, $http_status = null, $http_body = null, $json_body = null)
	{
		parent::__construct($error, $http_status, $http_body, $json_body);
		$this->param = $param;
	}
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<!-- GWT version -->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
  "http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
<module rename-to="tictactoe">
    <!-- Core Web Toolkit -->
    <inherits name='com.google.gwt.user.User' />

    <!-- Style sheet -->
    <inherits name='com.google.gwt.user.theme.clean.Clean' />

    <!-- Entry point class -->
    <entry-point class="tictactoe.client.Client"></entry-point>

    <!-- Translatable code -->
    <source path='client' />
    <source path='shared' />
</module>


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Guna Trading House PLC</title>

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

    <link href="css/styles.css" rel="stylesheet">
    <link href="lib/fontawesome/css/font-awesome.min.css" rel="stylesheet">

    <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>

My Account

Login

Register

My Wishlist

Languages

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

                </button>
                Guna

                        Home

                        About

                        Services

                        Portfolio

                        Contact Us

Agricultural Products

Natural Oil Seeds, Natural Gum of Olibanium,
                  Ethiopian Coffee Arabica, Naturally Cultivated
                  Pulses, Spices.

Explore

What We Offer

Hundreds of Features

Lorem ipsum dolor sit amet, consectetur
            adipisicing elit. Itaque ipsam soluta optio
            natus ducimus est in, enim, quam
            obcaecati quia commodi hic incidunt.

Hundreds of Features

Lorem ipsum dolor sit amet, consectetur
            adipisicing elit. Itaque ipsam soluta optio
            natus ducimus est in, enim, quam
            obcaecati quia commodi hic incidunt.

Hundreds of Features

Lorem ipsum dolor sit amet, consectetur
            adipisicing elit. Itaque ipsam soluta optio
            natus ducimus est in, enim, quam
            obcaecati quia commodi hic incidunt.

Hundreds of Features

Lorem ipsum dolor sit amet, consectetur
            adipisicing elit. Itaque ipsam soluta optio
            natus ducimus est in, enim, quam
            obcaecati quia commodi hic incidunt.

Hundreds of Features

Lorem ipsum dolor sit amet, consectetur
            adipisicing elit. Itaque ipsam soluta optio
            natus ducimus est in, enim, quam
            obcaecati quia commodi hic incidunt.

Hundreds of Features

Lorem ipsum dolor sit amet, consectetur
            adipisicing elit. Itaque ipsam soluta optio
            natus ducimus est in, enim, quam
            obcaecati quia commodi hic incidunt.

News

          24
          Feb

Official Website of Guna Trading House PLC has been released.

We have renewed our official website to meet modern web standards and suitable for end users. Dear our esteemed clients, enjoy using our new website on your computers, tablets ...

            Website
            10 Comments
            By GTH

          24
          Feb

Official Website of Guna Trading House PLC has been released.

We have renewed our official website to meet modern web standards and suitable for end users. Dear our esteemed clients, enjoy using our new website on your computers, tablets ...

            Website
            10 Comments
            By GTH

          24
          Feb

Official Website of Guna Trading House PLC has been released.

We have renewed our official website to meet modern web standards and suitable for end users. Dear our esteemed clients, enjoy using our new website on your computers, tablets ...

            Website
            10 Comments
            By GTH

Guna

We are one of the founding members of the corporate entity of Endowment Fund For the Rehabilitation of Tigray [EFFORT]. Learn more

              <address>

Addresses

www.gunatradinghouse.com

Email: info@gunatradinghouse.com

+251 - 116 46 63 25

Bole Subcity Kebelle 14/15

              </address>

Find us at:

Twitter Feed

Contact Us

            <form action="#">

                Your Name
                <input type="text" id="name" class="form-control" placeholder="Your Name" />

                Your Email
                <input type="text" id="email" class="form-control" placeholder="Your Name" />

                Your Message
                <textarea id="message" class="form-control" placeholder="Your Message" cols="30" rows="4" required aria-required="true"></textarea>

                <input type="submit" class="btn btn-success" />

            </form>

© 2015, All rights reserved

Guna Trading House PLC

www.gunatradinghouse.com

Designed and Developed by
Zewebs Digital Advertising


text:
layout: page
title: Growth Cliffs Llc. Show
date: 2016-05-24
author: Jennifer Nixon
tags: weekly links, java
status: published
summary: Sed accumsan volutpat nisl in sollicitudin. In.
banner: images/banner/office-01.jpg
booking:
  startDate: 10/29/2017
  endDate: 11/03/2017
  ctyhocn: SLCFHHX
  groupCode: GCLS
published: true
---
Donec auctor, nisi ac tincidunt accumsan, tellus erat porttitor mi, nec vehicula magna libero dapibus lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean ac lorem leo. Nam posuere, metus ullamcorper venenatis imperdiet, ex justo fermentum mauris, imperdiet sagittis sapien dui vitae purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In nunc eros, congue ac elit a, venenatis venenatis nisl. Cras at nisl neque.
Vestibulum pellentesque, purus ac finibus bibendum, neque libero malesuada leo, ut semper magna erat ac lectus. Aenean in tincidunt diam, quis aliquet ante. Donec convallis tortor non neque tempor sodales. Maecenas quis tempor eros, nec gravida lorem. Morbi vel est ut sem cursus eleifend ut ac nunc. Nunc quis orci ut enim mollis dapibus. Sed consectetur vitae augue nec luctus. Suspendisse tempor sed justo at laoreet. Duis faucibus tincidunt urna, sollicitudin porttitor elit ultricies sit amet.

1 Integer non felis non odio eleifend tristique sit amet nec tortor
1 Nam in nisi viverra risus pretium lacinia
1 Phasellus dictum urna et ultricies fringilla
1 Ut ullamcorper dui sed lacus ultricies feugiat
1 Aliquam aliquet tortor in massa finibus, vitae consequat nisi consectetur.

Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque pulvinar lacinia lacus sit amet volutpat. Etiam aliquet arcu elit, vitae scelerisque est aliquam a. Aenean lobortis congue ligula, ut vehicula orci imperdiet ut. Donec scelerisque lectus eget velit condimentum, id porta purus lobortis. In hac habitasse platea dictumst. Phasellus convallis suscipit euismod. Nullam nec velit nec justo volutpat ullamcorper id vel leo. Quisque et purus sit amet tortor placerat ullamcorper eget sit amet mi. Fusce eleifend tellus eget rhoncus tincidunt. Sed convallis consequat pellentesque.


text:
<?php

namespace Composer\Test\Downloader;

use Composer\Downloader\GitDownloader;
use Composer\Config;

class GitDownloaderTest extends \PHPUnit_Framework_TestCase
{
    protected function getDownloaderMock($io = null, $config = null, $executor = null, $filesystem = null)
    {
        $io = $io ?: $this->getMock('Composer\IO\IOInterface');
        $executor = $executor ?: $this->getMock('Composer\Util\ProcessExecutor');
        $filesystem = $filesystem ?: $this->getMock('Composer\Util\Filesystem');
        if (!$config) {
            $config = $this->getMock('Composer\Config');
            $config->expects($this->any())
                ->method('has')
                ->will($this->returnValue(false));
        }

        return new GitDownloader($io, $config, $executor, $filesystem);
    }

    /**
     * @expectedException \InvalidArgumentException
     */
    public function testDownloadForPackageWithoutSourceReference()
    {
        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->once())
            ->method('getSourceReference')
            ->will($this->returnValue(null));

        $downloader = $this->getDownloaderMock();
        $downloader->download($packageMock, '/path');
    }

    public function testDownload()
    {
        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->any())
            ->method('getSourceReference')
            ->will($this->returnValue('1234567890123456789012345678901234567890'));
        $packageMock->expects($this->any())
            ->method('getSourceUrl')
            ->will($this->returnValue('https://example.com/composer/composer'));
        $packageMock->expects($this->any())
            ->method('getPrettyVersion')
            ->will($this->returnValue('dev-master'));
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');

        $expectedGitCommand = $this->winCompat("git clone 'https://example.com/composer/composer' 'composerPath' && cd 'composerPath' && git remote add composer 'https://example.com/composer/composer' && git fetch composer");
        $processExecutor->expects($this->at(0))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand))
            ->will($this->returnValue(0));

        $processExecutor->expects($this->at(1))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git branch -r")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $processExecutor->expects($this->at(2))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git checkout 'master'")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $processExecutor->expects($this->at(3))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git reset --hard '1234567890123456789012345678901234567890'")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $downloader = $this->getDownloaderMock(null, null, $processExecutor);
        $downloader->download($packageMock, 'composerPath');
    }

    public function testDownloadUsesVariousProtocolsAndSetsPushUrlForGithub()
    {
        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->any())
            ->method('getSourceReference')
            ->will($this->returnValue('ref'));
        $packageMock->expects($this->any())
            ->method('getSourceUrl')
            ->will($this->returnValue('https://github.com/composer/composer'));
        $packageMock->expects($this->any())
            ->method('getPrettyVersion')
            ->will($this->returnValue('1.0.0'));
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');

        $expectedGitCommand = $this->winCompat("git clone 'git://github.com/composer/composer' 'composerPath' && cd 'composerPath' && git remote add composer 'git://github.com/composer/composer' && git fetch composer");
        $processExecutor->expects($this->at(0))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand))
            ->will($this->returnValue(1));

        $expectedGitCommand = $this->winCompat("git clone 'https://github.com/composer/composer' 'composerPath' && cd 'composerPath' && git remote add composer 'https://github.com/composer/composer' && git fetch composer");
        $processExecutor->expects($this->at(2))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand))
            ->will($this->returnValue(1));

        $expectedGitCommand = $this->winCompat("git clone 'http://github.com/composer/composer' 'composerPath' && cd 'composerPath' && git remote add composer 'http://github.com/composer/composer' && git fetch composer");
        $processExecutor->expects($this->at(4))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand))
            ->will($this->returnValue(0));

        $expectedGitCommand = $this->winCompat("git remote set-url --push origin 'git@github.com:composer/composer.git'");
        $processExecutor->expects($this->at(5))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $processExecutor->expects($this->at(6))
            ->method('execute')
            ->with($this->equalTo('git branch -r'))
            ->will($this->returnValue(0));

        $processExecutor->expects($this->at(7))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git checkout 'ref' && git reset --hard 'ref'")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
        $downloader->download($packageMock, 'composerPath');
    }

    public function pushUrlProvider()
    {
        return array(
            array('git', 'git@github.com:composer/composer.git'),
            array('https', 'https://github.com/composer/composer.git'),
            array('http', 'https://github.com/composer/composer.git')
        );
    }

    /**
     * @dataProvider pushUrlProvider
     */
    public function testDownloadAndSetPushUrlUseCustomVariousProtocolsForGithub($protocol, $pushUrl)
    {
        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->any())
            ->method('getSourceReference')
            ->will($this->returnValue('ref'));
        $packageMock->expects($this->any())
            ->method('getSourceUrl')
            ->will($this->returnValue('https://github.com/composer/composer'));
        $packageMock->expects($this->any())
            ->method('getPrettyVersion')
            ->will($this->returnValue('1.0.0'));
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');

        $expectedGitCommand = $this->winCompat("git clone '{$protocol}://github.com/composer/composer' 'composerPath' && cd 'composerPath' && git remote add composer '{$protocol}://github.com/composer/composer' && git fetch composer");
        $processExecutor->expects($this->at(0))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand))
            ->will($this->returnValue(0));

        $expectedGitCommand = $this->winCompat("git remote set-url --push origin '{$pushUrl}'");
        $processExecutor->expects($this->at(1))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $processExecutor->expects($this->exactly(4))
            ->method('execute')
            ->will($this->returnValue(0));

        $config = new Config();
        $config->merge(array('config' => array('github-protocols' => array($protocol))));

        $downloader = $this->getDownloaderMock(null, $config, $processExecutor);
        $downloader->download($packageMock, 'composerPath');
    }

    /**
     * @expectedException \RuntimeException
     */
    public function testDownloadThrowsRuntimeExceptionIfGitCommandFails()
    {
        $expectedGitCommand = $this->winCompat("git clone 'https://example.com/composer/composer' 'composerPath' && cd 'composerPath' && git remote add composer 'https://example.com/composer/composer' && git fetch composer");
        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->any())
            ->method('getSourceReference')
            ->will($this->returnValue('ref'));
        $packageMock->expects($this->any())
            ->method('getSourceUrl')
            ->will($this->returnValue('https://example.com/composer/composer'));
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');
        $processExecutor->expects($this->at(0))
            ->method('execute')
            ->with($this->equalTo($expectedGitCommand))
            ->will($this->returnValue(1));

        $downloader = $this->getDownloaderMock(null, null, $processExecutor);
        $downloader->download($packageMock, 'composerPath');
    }

    /**
     * @expectedException \InvalidArgumentException
     */
    public function testUpdateforPackageWithoutSourceReference()
    {
        $initialPackageMock = $this->getMock('Composer\Package\PackageInterface');
        $sourcePackageMock = $this->getMock('Composer\Package\PackageInterface');
        $sourcePackageMock->expects($this->once())
            ->method('getSourceReference')
            ->will($this->returnValue(null));

        $downloader = $this->getDownloaderMock();
        $downloader->update($initialPackageMock, $sourcePackageMock, '/path');
    }

    public function testUpdate()
    {
        $expectedGitUpdateCommand = $this->winCompat("git remote set-url composer 'git://github.com/composer/composer' && git fetch composer && git fetch --tags composer");

        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->any())
            ->method('getSourceReference')
            ->will($this->returnValue('ref'));
        $packageMock->expects($this->any())
            ->method('getSourceUrl')
            ->will($this->returnValue('https://github.com/composer/composer'));
        $packageMock->expects($this->any())
            ->method('getPrettyVersion')
            ->will($this->returnValue('1.0.0'));
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');
        $processExecutor->expects($this->at(0))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git remote -v")))
            ->will($this->returnValue(0));
        $processExecutor->expects($this->at(1))
            ->method('execute')
            ->with($this->equalTo($expectedGitUpdateCommand))
            ->will($this->returnValue(0));
        $processExecutor->expects($this->at(2))
            ->method('execute')
            ->with($this->equalTo('git branch -r'))
            ->will($this->returnValue(0));
        $processExecutor->expects($this->at(3))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git checkout 'ref' && git reset --hard 'ref'")), $this->equalTo(null), $this->equalTo($this->winCompat('composerPath')))
            ->will($this->returnValue(0));

        $downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
        $downloader->update($packageMock, $packageMock, 'composerPath');
    }

    /**
     * @expectedException \RuntimeException
     */
    public function testUpdateThrowsRuntimeExceptionIfGitCommandFails()
    {
        $expectedGitUpdateCommand = $this->winCompat("git remote set-url composer 'git://github.com/composer/composer' && git fetch composer && git fetch --tags composer");

        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $packageMock->expects($this->any())
            ->method('getSourceReference')
            ->will($this->returnValue('ref'));
        $packageMock->expects($this->any())
            ->method('getSourceUrl')
            ->will($this->returnValue('https://github.com/composer/composer'));
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');
        $processExecutor->expects($this->at(0))
            ->method('execute')
            ->with($this->equalTo($this->winCompat("git remote -v")))
            ->will($this->returnValue(0));
        $processExecutor->expects($this->at(1))
            ->method('execute')
            ->with($this->equalTo($expectedGitUpdateCommand))
            ->will($this->returnValue(1));

        $downloader = $this->getDownloaderMock(null, new Config(), $processExecutor);
        $downloader->update($packageMock, $packageMock, 'composerPath');
    }

    public function testRemove()
    {
        $expectedGitResetCommand = $this->winCompat("cd 'composerPath' && git status --porcelain --untracked-files=no");

        $packageMock = $this->getMock('Composer\Package\PackageInterface');
        $processExecutor = $this->getMock('Composer\Util\ProcessExecutor');
        $processExecutor->expects($this->any())
            ->method('execute')
            ->with($this->equalTo($expectedGitResetCommand))
            ->will($this->returnValue(0));
        $filesystem = $this->getMock('Composer\Util\Filesystem');
        $filesystem->expects($this->any())
            ->method('removeDirectory')
            ->with($this->equalTo('composerPath'))
            ->will($this->returnValue(true));

        $downloader = $this->getDownloaderMock(null, null, $processExecutor, $filesystem);
        $downloader->remove($packageMock, 'composerPath');
    }

    public function testGetInstallationSource()
    {
        $downloader = $this->getDownloaderMock();

        $this->assertEquals('source', $downloader->getInstallationSource());
    }

    private function winCompat($cmd)
    {
        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
            $cmd = str_replace('cd ', 'cd /D ', $cmd);
            $cmd = str_replace('composerPath', getcwd().'/composerPath', $cmd);

            return strtr($cmd, "'", '"');
        }

        return $cmd;
    }
}


text:
/********************************************************************
 ** Includes for size_t definition
 *******************************************************************/

#include <stddef.h>

/********************************************************************
 **
 ** void *memcpy(void *dest, const void *src, size_t count)
 **
 ** Args:     dest    - pointer to destination buffer
 **           src     - pointer to source buffer
 **           count   - number of bytes to copy
 **
 ** Return:   A pointer to destination buffer
 **
 ** Purpose:  Copies count bytes from src to dest. No overlap check
 **           is performed.
 **
 *******************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

void * msys_memcpy(void *dest, const void *src, size_t count);

#ifdef __cplusplus
}
#endif


text:
require 'helper'
require 'uri'
require 'faraday_middleware/request/oauth2'
require 'faraday/utils'

describe FaradayMiddleware::OAuth2 do

  def query_params(env)
    Faraday::Utils.parse_query env[:url].query
  end

  def auth_header(env)
    env[:request_headers]['Authorization']
  end

  def perform(params = {}, headers = {})
    env = {
      :url => URI('http://example.com/?' + Faraday::Utils.build_query(params)),
      :request_headers => Faraday::Utils::Headers.new.update(headers)
    }
    app = make_app
    app.call(faraday_env(env))
  end

  def make_app
    described_class.new(lambda{|env| env}, *Array(options))
  end

  context "no token configured" do
    let(:options) { nil }

    it "doesn't add params" do
      request = perform(:q => 'hello')
      expect(query_params(request)).to eq('q' => 'hello')
    end

    it "doesn't add headers" do
      expect(auth_header(perform)).to be_nil
    end

    it "creates header for explicit token" do
      request = perform(:q => 'hello', :access_token => 'abc123')
      expect(query_params(request)).to eq('q' => 'hello', 'access_token' => 'abc123')
      expect(auth_header(request)).to eq(%(Token token="abc123"))
    end
  end

  context "default token configured" do
    let(:options) { 'XYZ' }

    it "adds token param" do
      expect(query_params(perform(:q => 'hello'))).to eq('q' => 'hello', 'access_token' => 'XYZ')
    end

    it "adds token header" do
      expect(auth_header(perform)).to eq(%(Token token="XYZ"))
    end

    it "overrides default with explicit token" do
      request = perform(:q => 'hello', :access_token => 'abc123')
      expect(query_params(request)).to eq('q' => 'hello', 'access_token' => 'abc123')
      expect(auth_header(request)).to eq(%(Token token="abc123"))
    end

    it "clears default with empty explicit token" do
      request = perform(:q => 'hello', :access_token => nil)
      expect(query_params(request).fetch('access_token')).to_not eq('XYZ')
      expect(auth_header(request)).to be_nil
    end
  end

  context "existing Authorization header" do
    let(:options) { 'XYZ' }
    subject { perform({:q => 'hello'}, 'Authorization' => 'custom') }

    it "adds token param" do
      expect(query_params(subject)).to eq('q' => 'hello', 'access_token' => 'XYZ')
    end

    it "doesn't override existing header" do
      expect(auth_header(subject)).to eq('custom')
    end
  end

  context "custom param name configured" do
    let(:options) { ['XYZ', {:param_name => :oauth}] }

    it "adds token param" do
      expect(query_params(perform)).to eq('oauth' => 'XYZ')
    end

    it "overrides default with explicit token" do
      request = perform(:oauth => 'abc123')
      expect(query_params(request)).to eq('oauth' => 'abc123')
      expect(auth_header(request)).to eq(%(Token token="abc123"))
    end
  end

  context "options without token configuration" do
    let(:options) { [{:param_name => :oauth}] }

    it "doesn't add param" do
      expect(query_params(perform)).to be_empty
    end

    it "overrides default with explicit token" do
      expect(query_params(perform(:oauth => 'abc123'))).to eq('oauth' => 'abc123')
    end
  end

  context "invalid param name configured" do
    let(:options) { ['XYZ', {:param_name => nil}] }

    it "raises error" do
      expect{ make_app }.to raise_error(ArgumentError, ":param_name can't be blank")
    end
  end
end


text:
import socket
import struct

class MinecraftQuery:
    MAGIC_PREFIX = '\xFE\xFD'
    PACKET_TYPE_CHALLENGE = 9
    PACKET_TYPE_QUERY = 0
    HUMAN_READABLE_NAMES = dict(
        game_id     = "Game Name",
        gametype    = "Game Type",
        motd        = "Message of the Day",
        hostname    = "Server Address",
        hostport    = "Server Port",
        map         = "Main World Name",
        maxplayers  = "Maximum Players",
        numplayers  = "Players Online",
        players     = "List of Players",
        plugins     = "List of Plugins",
        raw_plugins = "Raw Plugin Info",
        software    = "Server Software",
        version     = "Game Version",
    )

    def __init__(self, host, port, timeout=10, id=0, retries=2):
        self.addr = (host, port)
        self.id = id
        self.id_packed = struct.pack('>l', id)
        self.challenge_packed = struct.pack('>l', 0)
        self.retries = 0
        self.max_retries = retries

        self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        self.socket.settimeout(timeout)

    def send_raw(self, data):
        self.socket.sendto(self.MAGIC_PREFIX + data, self.addr)

    def send_packet(self, type, data=''):
        self.send_raw(struct.pack('>B', type) + self.id_packed + self.challenge_packed + data)

    def read_packet(self):
        buff = self.socket.recvfrom(1460)[0]
        type = struct.unpack('>B', buff[0])[0]
        id = struct.unpack('>l', buff[1:5])[0]
        return type, id, buff[5:]

    def handshake(self, bypass_retries=False):
        self.send_packet(self.PACKET_TYPE_CHALLENGE)

        try:
            type, id, buff = self.read_packet()
        except:
            if not bypass_retries:
                self.retries += 1

            if self.retries < self.max_retries:
                self.handshake(bypass_retries=bypass_retries)
                return
            else:
                raise

        self.challenge = int(buff[:-1])
        self.challenge_packed = struct.pack('>l', self.challenge)

    def get_status(self):
        if not hasattr(self, 'challenge'):
            self.handshake()

        self.send_packet(self.PACKET_TYPE_QUERY)

        try:
            type, id, buff = self.read_packet()
        except:
            self.handshake()
            return self.get_status()

        data = {}

        data['motd'], data['gametype'], data['map'], data['numplayers'], data['maxplayers'], buff = buff.split('\x00', 5)
        data['hostport'] = struct.unpack('<h', buff[:2])[0]
        buff = buff[2:]
        data['hostname'] = buff[:-1]

        for key in ('numplayers', 'maxplayers'):
            try:
                data[key] = int(data[key])
            except:
                pass

        return data

    def get_rules(self):
        if not hasattr(self, 'challenge'):
            self.handshake()

        self.send_packet(self.PACKET_TYPE_QUERY, self.id_packed)

        try:
            type, id, buff = self.read_packet()
        except:
            self.retries += 1
            if self.retries < self.max_retries:
                self.handshake(bypass_retries=True)
                return self.get_rules()
            else:
                raise

        data = {}

        buff = buff[11:] # splitnum + 2 ints
        items, players = buff.split('\x00\x00\x01player_\x00\x00') # Shamefully stole from https://github.com/barneygale/MCQuery

        if items[:8] == 'hostname':
            items = 'motd' + items[8:]

        items = items.split('\x00')
        data = dict(zip(items[::2], items[1::2]))

        players = players[:-2]

        if players:
            data['players'] = players.split('\x00')
        else:
            data['players'] = []

        for key in ('numplayers', 'maxplayers', 'hostport'):
            try:
                data[key] = int(data[key])
            except:
                pass

        data['raw_plugins'] = data['plugins']
        data['software'], data['plugins'] = self.parse_plugins(data['raw_plugins'])

        return data

    def parse_plugins(self, raw):
        parts = raw.split(':', 1)
        server = parts[0].strip()
        plugins = []

        if len(parts) == 2:
            plugins = parts[1].split(';')
            plugins = map(lambda s: s.strip(), plugins)

        return server, plugins


text:
package org.blackbananacoin.tools.privkeyshare;

import java.io.File;
import java.io.IOException;
import java.security.Security;

import org.spongycastle.cms.CMSEnvelopedDataParser;
import org.spongycastle.cms.CMSException;
import org.spongycastle.jce.provider.BouncyCastleProvider;

import com.google.common.io.Files;

public class HelloHiSecureFile {

	static {
		Security.addProvider(new BouncyCastleProvider());
	}

	public static void main(String[] args) throws IOException, CMSException {

		byte[] barr = Files.toByteArray(new File(
				"testdata/notupload/Hello_world.txt.bs"));

		CMSEnvelopedDataParser envelopedDataParser = new CMSEnvelopedDataParser(
				barr);
		System.out.println(envelopedDataParser);

	}

}


text:
<?php

namespace PHPUnit\Framework\MockObject\Matcher;

use PHPUnit\Framework\ExpectationFailedException;

/**
 * Invocation matcher which checks if a method has been invoked at least
 * N times.
 */
class InvokedAtLeastCount extends InvokedRecorder
{
    /**
     * @var int
     */
    private $requiredInvocations;

    /**
     * @param int $requiredInvocations
     */
    public function __construct($requiredInvocations)
    {
        $this->requiredInvocations = $requiredInvocations;
    }

    /**
     * @return string
     */
    public function toString()
    {
        return 'invoked at least ' . $this->requiredInvocations . ' times';
    }

    /**
     * Verifies that the current expectation is valid. If everything is OK the
     * code should just return, if not it must throw an exception.
     *
     * @throws ExpectationFailedException
     */
    public function verify()
    {
        $count = $this->getInvocationCount();

        if ($count < $this->requiredInvocations) {
            throw new ExpectationFailedException(
                'Expected invocation at least ' . $this->requiredInvocations .
                ' times but it occurred ' . $count . ' time(s).'
            );
        }
    }
}


text:
package org.zkoss.zss.essential;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zss.api.AreaRef;
import org.zkoss.zss.api.CellOperationUtil;
import org.zkoss.zss.api.Range;
import org.zkoss.zss.api.Range.AutoFillType;
import org.zkoss.zss.api.Ranges;
import org.zkoss.zss.ui.Spreadsheet;
import org.zkoss.zul.Intbox;
import org.zkoss.zul.ListModelList;
import org.zkoss.zul.Listbox;

/**
 * Demonstrate CellStyle, CellOperationUtil API usage
 *
 * @author Hawk
 *
 */
@SuppressWarnings("serial")
public class AutoFillComposer extends SelectorComposer<Component> {

	@Wire
	private Listbox fillTypeBox;
	@Wire
	private Intbox cellCountBox;
	@Wire
	private Spreadsheet ss;

	@Override
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
		fillTypeBox.setModel(getSupportedFillType());
	}

	@Listen("onClick = #fillButton")
	public void autoFill() {
		AreaRef selection = ss.getSelection();
		Range src = Ranges.range(ss.getSelectedSheet(), selection.getRow(),
				selection.getColumn(), selection.getLastRow(), selection.getLastColumn());
		Range dest = Ranges.range(ss.getSelectedSheet(), selection.getRow(),
				selection.getColumn(), selection.getLastRow(),
				selection.getLastColumn() + cellCountBox.getValue());
		CellOperationUtil.autoFill(src, dest,
				(AutoFillType) fillTypeBox.getSelectedItem().getValue());
	}

	private ListModelList<AutoFillType> getSupportedFillType(){
		ListModelList<AutoFillType> list = new ListModelList<Range.AutoFillType>();
		list.add(AutoFillType.DEFAULT);
		list.add(AutoFillType.COPY);
		list.add(AutoFillType.FORMATS);
		list.add(AutoFillType.VALUES);
		list.addToSelection(AutoFillType.DEFAULT);
		return list;
	}

}


text:
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.parseFilterString = parseFilterString;
exports.applyFilters = applyFilters;

var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));

var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

var _attribute_value = require("./attribute_value");

require("gl-matrix").glMatrix.setMatrixArrayType(Array);

function parseFilterString(filterStr) {
  filterStr = filterStr.trim();
  if (!filterStr || filterStr === 'none') return null;
  var filterReg = /^(?:(url|blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(([^()]*(?:\(.*\))*[^()]*)\))+$/i;
  var filters = filterStr.match(/(?:(url|blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(([^()]*(?:\(.*\))*[^()]*)\))+?/ig);
  var ret = [];

  if (filters) {
    filters.forEach(function (filter) {
      var matched = filter.match(filterReg);
      if (!matched) throw new TypeError('Invalid fitler string.');

      var _matched = (0, _slicedToArray2.default)(matched, 3),
          type = _matched[1],
          args = _matched[2];

      type = type.toLowerCase();
      args = args.trim().match(/([^( )]+|([^( )]+\(.*\)))(?=\s|$)/g).map(function (n, i) {
        var value;

        if (type === 'url' || type === 'drop-shadow' && i === 3) {
          value = n;
        } else {
          value = (0, _attribute_value.toNumber)(n);
        }

        if (/%$/.test(n)) {
          value /= 100;
        }

        return value;
      });
      ret.push({
        type: type,
        args: args
      });
    });
  }

  return ret;
}

function applyFilters(mesh, filters) {
  mesh.clearFilter();

  if (filters) {
    filters.forEach(function (_ref) {
      var type = _ref.type,
          args = _ref.args;
      var method = type;
      if (method === 'drop-shadow') method = 'dropShadow';else if (method === 'hue-rotate') method = 'hueRotate';
      mesh[method].apply(mesh, (0, _toConsumableArray2.default)(args));
    });
  }
}