text:
namespace DT3 {

//==============================================================================
/// Forward declarations
//==============================================================================

class Stream;

//==============================================================================
/// Class
//==============================================================================

class KeyedSpriteResource: public Resource {
    public:
        DEFINE_TYPE(KeyedSpriteResource,Resource)
		DEFINE_CREATE
        DEFINE_STANDARD_RESOURCE_HANDLERS

                                                KeyedSpriteResource	(void);
	private:
                                                KeyedSpriteResource	(const KeyedSpriteResource &rhs);
        KeyedSpriteResource &                   operator =          (const KeyedSpriteResource &rhs);
	public:
		virtual                                 ~KeyedSpriteResource(void);

        virtual void                            archive_read        (Archive *archive);
        virtual void                            archive_write		(Archive *archive);

    public:

		/// import the resource with an importer into a platform independent format
		/// \param param description
		/// \return description
		DTerr                                   import				(const FilePath &pathname, String args);

		/// Description
		/// \param param description
		/// \return description
		DTerr                                   recache				(void);

		/// Description
		/// \param param description
		/// \return description
        void                                    copy                (const KeyedSpriteResource &copy);

		/// Description
		/// \param param description
		/// \return description
		std::vector<KeyedSpriteAnimationPoseJoint*>&	children            (void)		{	return _children;	}

		/// Description
		/// \param param description
		/// \return description
		std::vector<KeyedSpriteAnimationPoseJoint*>&	joints              (void)		{	return _joints;		}

		/// Description
		/// \param param description
		/// \return description
		KeyedSpriteAnimationPoseJoint*			joint_by_name       (const String &joint_name);

		/// Description
		/// \param param description
		/// \return description
		void                                    clear_joints        (void);

		/// Description
		/// \param param description
		/// \return description
		KeyedSpriteAnimationPoseJoint*			parent_of_joint     (KeyedSpriteAnimationPoseJoint *joint);

		/// Description
		/// \param param description
		/// \return description
		std::vector<KeyedSpriteAnimationPoseJoint*>&	children_of_joint   (KeyedSpriteAnimationPoseJoint *joint);

		/// Description
		/// \param param description
		/// \return description
		void                                    reparent_joint      (KeyedSpriteAnimationPoseJoint *joint, KeyedSpriteAnimationPoseJoint *parent);

		/// Description
		/// \param param description
		/// \return description
		void                                    delete_joint        (KeyedSpriteAnimationPoseJoint *joint);

		/// Description
		/// \param param description
		/// \return description
		void                                    add_joint			(KeyedSpriteAnimationPoseJoint *joint, KeyedSpriteAnimationPoseJoint *parent = NULL);

		/// Description
		/// \param param description
		/// \return description
		void                                    move_to_front       (KeyedSpriteAnimationPoseJoint *joint);

		/// Description
		/// \param param description
		/// \return description
		void                                    move_to_back        (KeyedSpriteAnimationPoseJoint *joint);

		/// Description
		/// \param param description
		/// \return description
		void                                    update_transforms	(void);

		/// Description
		/// \param param description
		/// \return description
        void                                    update_order        (void);

		DEFINE_ACCESSORS_REF_COUNTED(material_property, set_material_property, MaterialResource*, _material);

		/// Description
		/// \param param description
		/// \return description
		static std::shared_ptr<KeyedSpriteResource>    keyed_sprite (const FilePath &pathname, String args = "");

	private:
        void                                    recalculate_order   (void);
        static DTint                            comparison          (const KeyedSpriteAnimationPoseJoint *a, const KeyedSpriteAnimationPoseJoint *b);

        static SpinLock                                                 _keyed_sprite_map_lock;
		static std::map<String, std::shared_ptr<KeyedSpriteResource> >  _keyed_sprite_map;

		void                                    update_transforms_recursive (const Matrix3 *parent_transform, KeyedSpriteAnimationPoseJoint *joint);

		MaterialResource                        *_material;

		std::vector<KeyedSpriteAnimationPoseJoint*>	_children;
		std::vector<KeyedSpriteAnimationPoseJoint*>	_joints;

};

//==============================================================================
/// Streaming operators
//==============================================================================

Stream& operator <<(Stream &s, KeyedSpriteResource* &r);
Stream& operator >>(Stream &s, KeyedSpriteResource* &r);

Stream& operator <<(Stream &s, const std::shared_ptr<KeyedSpriteResource> &r);
Stream& operator >>(Stream &s, std::shared_ptr<KeyedSpriteResource> &r);

//==============================================================================
//==============================================================================

} // DT3

#endif


text:
// Copyright (c) MOSA Project. Licensed under the New BSD License.

using Mosa.Compiler.Framework;
using System;

namespace Mosa.Platform.x86.Instructions
{
	/// <summary>
	/// Representations the x86 xor instruction.
	/// </summary>
	public sealed class Xor : TwoOperandInstruction
	{
		#region Data Members

		private static readonly OpCode R_C = new OpCode(new byte[] { 0x81 }, 6);
		private static readonly OpCode R_M = new OpCode(new byte[] { 0x33 });
		private static readonly OpCode R_R = new OpCode(new byte[] { 0x33 });
		private static readonly OpCode M_R = new OpCode(new byte[] { 0x31 });
		private static readonly OpCode M_C = new OpCode(new byte[] { 0x81 }, 6);

		#endregion Data Members

		#region Methods

		/// <summary>
		/// Computes the opcode.
		/// </summary>
		/// <param name="destination">The destination operand.</param>
		/// <param name="source">The source operand.</param>
		/// <param name="third">The third operand.</param>
		/// <returns></returns>
		protected override OpCode ComputeOpCode(Operand destination, Operand source, Operand third)
		{
			if (destination.IsRegister && third.IsConstant) return R_C;
			if (destination.IsRegister && third.IsMemoryAddress) return R_M;
			if (destination.IsRegister && third.IsRegister) return R_R;
			if (destination.IsMemoryAddress && third.IsRegister) return M_R;
			if (destination.IsMemoryAddress && third.IsConstant) return M_C;

			throw new ArgumentException(@"No opcode for operand type.");
		}

		#endregion Methods
	}
}

redpajama_set_name: RedPajamaGithub


text:
<?php $notification_owner = unserialize($notification_owner);?>
<?php $ticket = unserialize($ticket);?>
<?php $original_ticket = unserialize($original_ticket);?>

@extends($email)

@section('subject')
	{{ trans('brazidesk::email/globals.transfer') }}
@stop

@section('link')
	<a style="color:#ffffff" href="{{ route($setting->grab('main_route').'.show', $ticket->id) }}">
		{{ trans('brazidesk::email/globals.view-ticket') }}
	</a>
@stop

@section('content')
	{!! trans('brazidesk::email/transfer.data', [
	    'name'          =>  $notification_owner->name,
	    'subject'       =>  $ticket->subject,
	    'status'        =>  $ticket->status->name,
	    'agent'         =>  $original_ticket->agent->name,
	    'old_category'  =>  $original_ticket->category->name,
	    'new_category'  =>  $ticket->category->name
	]) !!}
@stop


text:
.listBtnContainer {
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 1200;
    font-size: 15px;
    width: 14vw;
    margin: 12px 12px 12px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.showListBtn {
    padding: 3px;
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
    background-size: 24px;
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center center;
}

.showListIcon {
    width: 40px;
}

.filteredListName {
    display: inline-block;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    outline: none;
    margin-left: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 500;
}

.arrowIcon {
    background-image: url('/img/doubleArrow.svg');
    transform: rotate(180deg);
    animation: 0.2s cubic-bezier(0.65, 0.05, 0.36, 1);
    composes: hoversidebaropen from 'src/common-ui/colors.css';
}

.arrowReverseIcon {
    background-image: url('/img/doubleArrow.svg');
    background-position-x: 3px;
}

.hamburgerIcon {
    background-image: url('/img/hamburger.svg');
}

@keyframes appear {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;

namespace MatterHackers.MatterControl.PartPreviewWindow.PlusTab
{
    public class ArticleSection : FlowLayoutWidget
	{
		private List<ArticleItem> allIconViews = new List<ArticleItem>();
		private FeedSectionData content;
		private ThemeConfig theme;
		int maxStuff = 20;
		private FlowLeftRightWithWrapping wrappingContent;

        public ArticleSection(FeedSectionData content, ThemeConfig theme)
            : base(FlowDirection.TopToBottom)
        {
			this.HAnchor = HAnchor.Stretch;
			this.VAnchor = VAnchor.Fit;
			wrappingContent = new FlowLeftRightWithWrapping();
            wrappingContent.Proportional = true;
            wrappingContent.VAnchor = VAnchor.Fit;
			wrappingContent.HAnchor = HAnchor.Stretch;
            this.AddChild(wrappingContent);
            this.content = content;
			this.theme = theme;

			var cultureInfo = new CultureInfo("en-US");

			foreach (var item in content.group_items.OrderByDescending(i => DateTime.Parse(i.date_published, cultureInfo)))
			{
				allIconViews.Add(new ArticleItem(item, theme)
				{
					BackgroundColor = theme.MinimalShade,
					VAnchor = VAnchor.Fit,
				});
			}

			AddContent();
		}

		public void AddContent()
		{
			int leftRightMargin = 5;
			int topBottomMargin = 5;

			// Remove items and Children (this happens if the feed is different than the inital cach after being retrieved)
			foreach (var iconView in allIconViews)
			{
				if (wrappingContent.Children.Contains(iconView))
				{
                    wrappingContent.RemoveChild(iconView);
				}
			}

            wrappingContent.CloseChildren();

			int i = 0;
			foreach (var iconView in allIconViews)
			{
				if (i < maxStuff)
				{
					iconView.ClearRemovedFlag();
					iconView.Margin = new BorderDouble(leftRightMargin, topBottomMargin);
                    wrappingContent.AddChild(iconView);
				}
				i++;
			}

			if (content.group_items.Count > maxStuff)
			{
				var moreButton = new ThemedTextButton("More".Localize() + "...", theme)
				{
					BackgroundColor = theme.MinimalShade,
					Margin = new BorderDouble(right: leftRightMargin),
                    HAnchor = HAnchor.Left
				};
				moreButton.Click += (s, e1) =>
				{
					// if we can go out to the site than do that
					if (content.group_link != null)
					{
						ApplicationController.LaunchBrowser(content.group_link);
					}
					else // show more items in the list
					{
						var scroll = this.Parents<ScrollableWidget>().FirstOrDefault();
						var position = scroll.ScrollPositionFromTop;

						maxStuff += 6;
						AddContent();

						scroll.ScrollPositionFromTop = position;
					}
				};

                this.AddChild(moreButton);
			}
		}
	}
}


text:
package de.htwg.zeta.codeGenerator.model

/**
 * Representing all Anchors in Concept
 *
 * @param team   representing TeamAnchor
 * @param period representing PeriodAnchor
 */
case class Anchor(
    name: String,
    team: Entity,
    period: Entity
)


text:
/**
 * Created by womkim on 2017/10/18.
 */

export const app = {
  siderFold: false,
  isNavbar: window.document.body.clientWidth < 769,
  darktheme: true,
  userinfo: {},
  fetchState: {
    isFetching: false,
    didInvalidate: false,
    items: [],
    lastUpdated: Date.now()
  },
  menuList: [],
  menuOpenId: ''
}


text:
using Fody.DependencyInjection;
using NUnit.Framework;
using Spring.Context.Support;

[TestFixture]
public class SpringSample
{

    [Test]
    [Explicit]
    public void SpringServiceIsInjected()
    {
        ConfigurableInjection.InitializeContainer(ContextRegistry.GetContext());
        var entity = new Entity(5);

        Assert.IsNotNull(entity.InjectedService);
        Assert.IsInstanceOf(typeof(Service), entity.InjectedService);

        // refer to springObjects.xml to see Service and Entity classes configuration
        Assert.AreEqual(25, entity.InjectedService.MultiplyBy(5));
    }
}

[Configurable]
public class Entity
{
    int value;

    public IService InjectedService { get; set; }

    public Entity(int value)
    {
        this.value = value;
    }
}

public interface IService
{
    int MultiplyBy(int value);
}

public class Service : IService
{
    int injectedValue;

    public Service(int injectedValue)
    {
        this.injectedValue = injectedValue;
    }

    public int MultiplyBy(int value)
    {
        return value * injectedValue;
    }
}


text:
<?php
declare(strict_types=1);

namespace computerundsound\culibrary\db;

/**
 * Interface CuDB
 */
interface CuDB
{

    public function cuTruncateTab(string $tableName);

    public function cuDeleteOneDataSet(string $tableName, string $idName, $idValue): void;

    public function cuDelete(string $tableName, string $where): CuDBResult;

    public function cuQuery(string $query): CuDBResult;

    public function cuInsert(string $tableName, array $assocDataArray): CuDBResult;

    public function cuUpdateOneDataSet(string $tableName, array $assocDataArray, string $idName, $id): CuDBResult;

    public function cuUpdate(string $tableName, array $assocDataArray, string $where): CuDBResult;

    public function cuSelectOneDataSet(string $tableName, string $fieldName, $fieldValue): array;

    public function cuSelectAsArray(string $tableName,
                                    string $where = '',
                                    string $order = '',
                                    string $limit = ''): array;

    public function cuGetQuantityOfDataSets(string $tableName): int;

    public function cuGetColNamesFromTable(string $tableName): array;

    public function cuCloseConnection(): void;

    public function cuGetFieldInfo(string $tableName, string $fieldName): object;
}


text:
from __future__ import absolute_import
from telemetry import decorators
from telemetry.testing import browser_test_case

class DevToolsClientBackendTest(browser_test_case.BrowserTestCase):
  @property
  def _browser_backend(self):
    return self._browser._browser_backend

  @property
  def _devtools_client(self):
    return self._browser_backend.devtools_client

  def testGetChromeMajorNumber(self):
    major_num = self._devtools_client.GetChromeMajorNumber()
    self.assertIsInstance(major_num, int)
    self.assertGreater(major_num, 0)

  def testIsAlive(self):
    self.assertTrue(self._devtools_client.IsAlive())

  # https://github.com/catapult-project/catapult/issues/3099 (Android)
  # crbug.com/483212 (CrOS)
  @decorators.Enabled('has tabs')
  @decorators.Disabled('android', 'chromeos')
  def testGetUpdatedInspectableContexts(self):
    self._browser.tabs.New()
    c1 = self._devtools_client.GetUpdatedInspectableContexts()
    self.assertEqual(len(c1.contexts), 2)
    backends1 = [c1.GetInspectorBackend(c['id']) for c in c1.contexts]
    tabs1 = list(self._browser.tabs)

    c2 = self._devtools_client.GetUpdatedInspectableContexts()
    self.assertEqual(len(c2.contexts), 2)
    backends2 = [c2.GetInspectorBackend(c['id']) for c in c2.contexts]
    tabs2 = list(self._browser.tabs)
    self.assertEqual(backends2, backends1)
    self.assertEqual(tabs2, tabs1)

    self._browser.tabs.New()
    c3 = self._devtools_client.GetUpdatedInspectableContexts()
    self.assertEqual(len(c3.contexts), 3)
    backends3 = [c3.GetInspectorBackend(c['id']) for c in c3.contexts]
    tabs3 = list(self._browser.tabs)
    self.assertEqual(backends3[1], backends1[0])
    self.assertEqual(backends3[2], backends1[1])
    self.assertEqual(tabs3[0], tabs1[0])
    self.assertEqual(tabs3[1], tabs1[1])

    self._browser.tabs[1].Close()
    c4 = self._devtools_client.GetUpdatedInspectableContexts()
    self.assertEqual(len(c4.contexts), 2)
    backends4 = [c4.GetInspectorBackend(c['id']) for c in c4.contexts]
    tabs4 = list(self._browser.tabs)
    self.assertEqual(backends4[0], backends3[0])
    self.assertEqual(backends4[1], backends3[1])
    self.assertEqual(tabs4[0], tabs3[0])
    self.assertEqual(tabs4[1], tabs3[2])

  # https://github.com/catapult-project/catapult/issues/3099 (Android)
  # crbug.com/483212 (CrOS)
  @decorators.Disabled('android', 'chromeos')
  def testGetUpdatedInspectableContextsUpdateContextsData(self):
    c1 = self._devtools_client.GetUpdatedInspectableContexts()
    self.assertEqual(len(c1.contexts), 1)
    self.assertEqual(c1.contexts[0]['url'], 'about:blank')

    context_id = c1.contexts[0]['id']
    backend = c1.GetInspectorBackend(context_id)
    backend.Navigate(self.UrlOfUnittestFile('blank.html'), None, 10)
    c2 = self._devtools_client.GetUpdatedInspectableContexts()
    self.assertEqual(len(c2.contexts), 1)
    self.assertTrue('blank.html' in c2.contexts[0]['url'])
    self.assertEqual(c2.GetInspectorBackend(context_id), backend)


text:
#ifdef AWS_MULTI_FRAMEWORK
#import <AWSRuntime/AmazonServiceRequestConfig.h>
#else
#import "AmazonServiceRequestConfig.h"
#endif

/**
 * Create Security Group Request
 */

@interface EC2CreateSecurityGroupRequest:AmazonServiceRequestConfig

{
    BOOL     dryRun;
    BOOL     dryRunIsSet;
    NSString *groupName;
    NSString *descriptionValue;
    NSString *vpcId;
}

/**
 * The value of the DryRun property for this object.
 */
@property (nonatomic) BOOL           dryRun;

@property (nonatomic, readonly) BOOL dryRunIsSet;

/**
 * Name of the security group.
 */
@property (nonatomic, retain) NSString *groupName;

/**
 * Description of the group. This is informational only.
 */
@property (nonatomic, retain) NSString *descriptionValue;

/**
 * ID of the VPC.
 */
@property (nonatomic, retain) NSString *vpcId;

/**
 * Default constructor for a new CreateSecurityGroupRequest object.  Callers should use the
 * property methods to initialize this object after creating it.
 */
-(id)init;

/**
 * Constructs a new CreateSecurityGroupRequest object.
 * Callers should use properties to initialize any additional object members.
 *
 * @param theGroupName Name of the security group.
 * @param theDescriptionValue Description of the group. This is
 * informational only.
 */
-(id)initWithGroupName:(NSString *)theGroupName andDescriptionValue:(NSString *)theDescriptionValue;

/**
 * Returns a string representation of this object; useful for testing and
 * debugging.
 *
 * @return A string representation of this object.
 */
-(NSString *)description;

@end


text:
@charset "utf-8";
/* CSS Document */
/*Awesome fonts*/

*	 {margin:0px;padding:0px;text-decoration:none; outline:none;}

.error{ border:1px solid #F00 !important; background:#F9C0C0;}
.success-msg{background:#E9F7DD;border: 1px solid #ABD0A8;color: #589051; margin-bottom: 30px;max-width: 1129px;padding: 11px 16px; display:none;}
del{ text-decoration:line-through; color:#ccc}
input, textarea {font-family: Arial, Helvetica, sans-serif;font-size:18px;}

section{ padding:80px 0;}
.gray-bg{background-color: #FBFBFB;}
.border{border-bottom: 1px solid #E3E3E3;}
.tables .overlay, .our-clients .overlay {background: url("../images/white.png") repeat scroll 0 0;height: 100%;left: 0;position: absolute; top: 0;width: 100%;}
.no-padding-bottom{ padding-bottom:0}

#wrapper{ overflow-x:hidden;}

/* colors */
.red{ color:#e21e25}
.purple{ color:#7251a2}
.green{ color:#bed431}
.blue{ color:#5ecae6}
.yellow{ color:#f6c715}
.pink{ color:#f11aa8}
.orange{ color:#fe4419}

.back-to-top{ background:#cecece;border-radius: 6px; bottom: 20px; color: #FFFFFF; display: block; font-size: 40px;  height: 50px;line-height: 42px; position: fixed;right: 20px;text-align: center; width: 50px;z-index: 50; display:none;}
.back-to-top:hover, .back-to-top:focus{ color:#fff;}

.fixed-header .navbar-default{ position:fixed; left:0; top:0; width:100%; z-index:50;}
.fixed-header .parallax-main-banner{ top: 65px;}

/*parallax banner*/
.parallax-main-banner{ height:700px;background: url("../images/parallax-banner.jpg") repeat;background-attachment:fixed; background-size:cover;padding: 19% 0 0;text-align: center;position:relative;}
.parallax-main-banner h1, .video #heading h1 {border: 0 none; color: #fff; display: inline-block;font-size: 74px;padding:0 20px;line-height: 80px;margin-bottom: 0;text-transform: uppercase;text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);}
.parallax-main-banner h2, .video #heading h2 { border: 0 none; font-size: 44px;color: #fff;display: inline-block;line-height: 70px;padding:0 20px;margin-top:0;text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);}
.video > #heading, .parallax-main-banner > #heading {padding-top: 6%;}
.tabs-btn{bottom: 0; color: #FFFFFF;  left: 0;  min-height: 139px; background:url("../images/white.png"); position: absolute;   text-align: center;  width: 100%;}
.tabs-btn ul li{ float: left; line-height: 180px; width: 20%;height: 139px; position:relative;}
.tabs-btn ul li a.active:after{position: absolute;bottom: -28px;left: 50%;margin-left: -17px;content: ' ';height: 0px;width: 0px;border: 14px solid transparent;}
.tabs-btn ul li a{ display:block;height: 139px; overflow:hidden;}
.tabs-btn ul li a i{color: #FFFFFF;font-size: 72px;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.tabs-btn ul li:hover{ line-height:20px;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.tabs-btn ul li:hover a i{-webkit-transform: rotate(360deg);-moz-transform: rotate(360deg);-o-transform: rotate(360deg);-ms-transform: rotate(360deg);-webkit-transform: rotate(360deg); font-size:30px;-moz-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease; margin-bottom: 10px;margin-top: 20px;}
.tabs-btn ul li p{line-height: 17px; display:none; color:#fff;-moz-transition: all 500ms ease;-ms-transition: all 500ms ease;-webkit-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.tabs-btn ul li p span{ display:block; font-size:15px; font-weight:bold; padding-bottom: 6px;font-family: 'BebasRegular'; font-weight:400;}
.tabs-btn ul li:hover p{ display:block; font-size:13px;}

/* Video banner */
.video{ position:relative; top:65px; max-height:650px; overflow:hidden; text-align:center;}
.video #heading{ position:absolute;z-index:2; padding-top:25%; left:0; width:100%;}
.video iframe{ border:0;}

/* .tabs-btn colors */
.tabs-btn.green ul li:nth-child(1){ background:#BED431}
.tabs-btn.green ul li:nth-child(1) a.active:after{border-top-color:#BED431;}
.tabs-btn.green ul li:nth-child(2){ background:#F6C815}
.tabs-btn.green ul li:nth-child(2) a.active:after{border-top-color:#F6C815;}
.tabs-btn.green ul li:nth-child(3){ background:#E21E25}
.tabs-btn.green ul li:nth-child(3) a.active:after{border-top-color:#E21E25;}
.tabs-btn.green ul li:nth-child(4){ background:#60CAE8}
.tabs-btn.green ul li:nth-child(4) a.active:after{border-top-color:#60CAE8;}
.tabs-btn.green ul li:nth-child(5){ background:#7251A2}
.tabs-btn.green ul li:nth-child(5) a.active:after{border-top-color:#7251A2;}

/*experience*/
.experience-content{ max-width:890px; margin:0 auto 50px;}
.experience p{ line-height:30px;}

/* services section */
.services-sec{ text-align:center;min-height: 410px;margin-top: 30px;}
.services-sec .container{ position:relative;}
.services-sec .tab1, .services-sec .tab2, .services-sec .tab3, .services-sec .tab4, .services-sec .tab5{ position:absolute; left:0; top:0; width:100%;}

.services-sec span.yellow i{ background:#f6c815; box-shadow:0 0 0px 2px #f6c815; -moz-box-shadow:0 0 0px 2px #f6c815; -webkit-box-shadow:0 0 0px 2px #f6c815;}
.services-sec span.green i{ background:#BED431; box-shadow:0 0 0px 2px #BED431; -moz-box-shadow:0 0 0px 2px #BED431; -webkit-box-shadow:0 0 0px 2px #BED431;}
.services-sec span.red i{ background:#e21e25; box-shadow:0 0 0px 2px #e21e25; -moz-box-shadow:0 0 0px 2px #e21e25; -webkit-box-shadow:0 0 0px 2px #e21e25;}
.services-sec span.blue i{ background:#60cae8; box-shadow:0 0 0px 2px #60cae8; -moz-box-shadow:0 0 0px 2px #60cae8; -webkit-box-shadow:0 0 0px 2px #60cae8;}
.services-sec span.purple i{ background:#7251A2; box-shadow:0 0 0px 2px #7251A2; -moz-box-shadow:0 0 0px 2px #7251A2; -webkit-box-shadow:0 0 0px 2px #7251A2;}

.service-sec span{ border-left: none;display: block;color: #60cae8;min-height: 129px;}
.service-sec i{ width:0; height:0; display:inline-block; overflow:hidden; border:2px solid #fff; color:#fff;line-height: 97px; font-size:40px; margin:70px 0 0;-moz-transition: all 2000ms ease;-ms-transition: all 2000ms ease;-webkit-transition: all 2000ms ease;-o-transition: all 2000ms ease;transition: all 2000ms ease;}

.service-sec:hover i, .service-sec:hover i.open{margin:20px 0 10px;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.service-sec i.open{width:99px; height:99px;margin:30px 0 0;-moz-transition: all 1000ms ease;-webkit-transition: all 1000ms ease;-ms-transition: all 1000ms ease;-o-transition: all 1000ms ease;transition: all 1000ms ease;}
.service-sec h3{ background:url("../images/service-sec-shadow.png") no-repeat center 0; padding-top:30px; font-weight:400; border:0; text-transform:uppercase; margin: 10px 0 15px; color:#393939;font-family: 'Open Sans',sans-serif;}
.service-sec p{ margin-bottom:0;line-height:24px;}
#tab2, #tab3, #tab4, #tab5 { display:none;}

/* piecharts */
.piecharts{ text-align:center; padding:65px 0; background:url("../images/skills-bg.jpg"); position: relative; background-attachment:fixed; background-size:cover;}
.piecharts h2{ border:0;line-height: 40px;margin-bottom: 20px;}
.piecharts p{ margin:0}
.piecharts .overlay {background: url("../images/white.png") repeat scroll 0 0;height: 100%;left: 0;position: absolute; top: 0;width: 100%;}
.piecharts .container {position: relative;z-index: 5;}

/* services tri sec */
.tri-sec{ padding:0 0 30px 0}
.tri-sec i{ font-size:50px;}
.tri-sec p {padding: 0 20px;}
.tri-sec.last{ padding:0}
.tri-sec.last p{ margin:0}

/*CREATIVE TEAM section start here*/
.team{}
.team-image-sec{ position:relative;margin-bottom:25px; overflow:hidden; height:318px;}
.team-image-sec ul{ left: 0; margin: 0; z-index:6;  position: absolute;text-align: center;  top: -100%; width: 100%; margin-top:-21px;}
.team-image-sec ul li{ display: inline-block;margin-left: 2px;}
.team-image-sec ul li a{ display:block; width:42px; height:42px; background:#fff; border-radius:100%; -moz-border-radius:100%; -webkit-border-radius:100%;}
.team-image-sec ul li a i{ font-size: 20px;line-height: 44px;}
.team-detail-sec h3{ line-height: 28px; margin:0; padding:0 0 10px 0; border:0}
.team-detail-sec h3 span{ color: #4C4C4C;font-family: 'Open Sans',sans-serif;font-size: 16px;font-style: italic;font-weight: 300;padding-top: 4px;}
.team-detail-sec p{ margin-bottom:0}
.team-image-sec .img-overlay{ position:absolute; left:0; top:0; width:100%; height:100%; z-index:5; display:none;}
.team-image-sec ul li a:hover{ background:#333;}
.team-image-sec ul li a:hover i{ color:#fff}
.team-image-sec:hover .img-overlay{ display:block;}
.team-image-sec:hover ul, .team-image-sec ul{-moz-transition: all 500ms ease;-ms-transition: all 500ms ease;-webkit-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.team-image-sec, .team-image-sec img{-moz-transition: all 500ms ease;-ms-transition: all 500ms ease;-webkit-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease; width:100%}
.team-image-sec:hover img{max-width: 200%;width: 120%;margin-left: -30px;margin-top: -30px; -moz-transition: all 600ms ease;-webkit-transition: all 600ms ease;-ms-transition: all 600ms ease;-o-transition: all 600ms ease;transition: all 6s00ms ease;}
.team-image-sec:hover ul{ top:50%;}
.team.bg{ background:#f5f5f5; margin:0}
.team.bg h1{ background:none}
.team.bg .team-detail-sec{ padding-bottom:50px;}
.team .col-md-4:nth-child(1) .team-image-sec .img-overlay, .entry .overlay{ background:rgba(226, 30, 37, 0.83);}
.team .col-md-4:nth-child(2) .team-image-sec .img-overlay, .entry .overlay{ background:rgba(190, 212, 49, 0.89);}
.team .col-md-4:nth-child(3) .team-image-sec .img-overlay, .entry .overlay{ background:rgba(96, 202, 232, 0.83);}
.team .col-md-4:nth-child(1) .team-image-sec li a{ color:#e21e25;}
.team .col-md-4:nth-child(2) .team-image-sec li a{ color:#bed431;}
.team .col-md-4:nth-child(3) .team-image-sec li a{ color:#60cae8;}

/* parallax tables */
.tables{background:url("../images/table-bg.jpg"); position: relative; background-attachment:fixed; background-size:cover; margin:20px 0 0; padding:80px 0 60px}
/* tables */
.table {border-bottom: 4px solid #E8E8E8;background:#FFFFFF;width: 100%;}
.table-heading { background: none repeat scroll 0 0 #F8F8F8; display: block; font-size: 24px;  font-weight: 700;  padding: 20px 39px; text-transform: uppercase;}
.table .price { font-size: 14px; padding: 20px 20px 20px 50px;  position: relative;margin:0;display: inline-block;}
.table .price span {font-weight: bold;}
.table .price span strong {font-size: 46px;}
.table .price .currency { font-size: 18px; left: 40px;position: absolute;top: 16px;}
.table ul { background: none repeat scroll 0 0 #F8F8F8; padding: 0 10px;margin-bottom: 0;}
.table ul li {border-top: 1px solid #E8E8E8;padding: 12px 29px;}
.table ul li:first-child { border-top: 0 !important;}
.table a.btn { display: block;margin: 17px auto;max-width: 160px;}

/* table colors */

/*yellow*/
.table.yellow-table{ border-bottom: 4px solid #f6c815; color:#fff}
.table.yellow-table .price{ color:#f6c815}
.table.yellow-table .table-heading, .table.yellow-table ul {background: #f6c815;}
.table.yellow-table ul li{ border-top:1px solid #d8ad07;}

/*Blue*/
.table.green-table{ border-bottom: 4px solid #bed431; color:#fff}
.table.green-table .price{ color:#bed431}
.table.green-table .table-heading, .table.green-table ul {background: #bed431;}
.table.green-table ul li{ border-top:1px solid #9cb211;}

/*Blue*/
.table.blue-table{ border-bottom: 4px solid #09A0AD; color:#fff}
.table.blue-table .price{ color:#09A0AD}
.table.blue-table .table-heading, .table.blue-table ul {background: #09A0AD;}
.table.blue-table ul li{ border-top:1px solid #08828c;}

/*red*/
.table.red-table{ border-bottom: 4px solid #e21e25; color:#fff}
.table.red-table .price{ color:#e21e25}
.table.red-table .table-heading, .table.red-table ul {background: #e21e25;}
.table.red-table ul li{ border-top:1px solid #c6131a;}

#filters {
	margin:10px 0 50px 0;
	text-align: center;
	display: block;
	float: none;
	z-index: 2;
	position: relative;
}
#filters ul {
	margin: 0;
	list-style: none;
	padding: 0;
}
#filters ul li {
	display: inline-block;
}
#filters ul li a {
	display: block;
	float: left;
	padding: 2px 5px;
	color: inherit;
	font-weight: bold;
}
#filters ul li a h3 {
	font-size: 14px;
	text-transform:uppercase;
	padding:12px 21px;
	border: 1px solid transparent;
	margin:0;
	font-family: 'Open Sans',sans-serif;
}
#filters ul li a:hover h3, #filters ul li a.active h3 {
	color: #7251a2;
	border: 1px solid;
}

#portfolio-items-wrap {
	position: relative;
	padding: 0;
	width: 100.1%;
	margin: 0 auto;
	display: block;
}
#portfolio-items-wrap .portfolio-item {
	margin: 0;
	overflow: hidden;
	line-height: 0;
	width: 25%;
	padding: 0;
}
.portfolio-item.current {
	box-shadow: 0 0px 0px 10px rgba(255, 255, 255, 0.37);
	z-index: 101;
}
.portfolio-item {
	padding: 0;
	position: relative;
	overflow: hidden;
}
.portfolio {
	overflow: hidden;
	display: block;
	position: relative;
}
.portfolio img {
	width: 100%;
	height: auto;
}
.portfolio .portfolio-overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	display: block;
	z-index: 4;
	opacity: 0;
	-moz-opacity: 0;
	filter: alpha(opacity=0);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	background: #FFD600;
}
.portfolio > a, .portfolio > a:hover {
	color: #ffffff;
}
.portfolio-item .portfolio > a:hover > .portfolio-overlay {
	opacity: 1;
	-moz-opacity: 1;
	filter: alpha(opacity=100);
}
.portfolio > a img {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.portfolio > a:hover img {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.portfolio .thumb-info {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	-moz-opacity: 0;
	filter: alpha(opacity=0);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.portfolio a:hover .portfolio-overlay .thumb-info {
	opacity: 1;
	-moz-opacity: 1;
	filter: alpha(opacity=100);
}
.portfolio-overlay .thumb-info i {
	top: 58%;
	font-size: 50px;
}
.portfolio-overlay .thumb-info h3 {
	top: 38%;
	font-size: 30px;
}
.portfolio-overlay .thumb-info p {
	top: 50%;
	font-size: 13px;
}
.portfolio-overlay .thumb-info h3 {
	color: #ffffff;
	width: 100%;
	position: absolute;
	text-align: center;
}
.portfolio-overlay .thumb-info p {
	color: #ffffff;
	width: 100%;
	position: absolute;
	text-align: center;
	font-weight: bold;
}
.portfolio-overlay .thumb-info i {
	color: #ffffff;
	width: 100%;
	position: absolute;
	text-align: center;
	display: block;
}

.isotope, .isotope .isotope-item {
	-webkit-transition-duration: 0.8s;
	-moz-transition-duration: 0.8s;
	-ms-transition-duration: 0.8s;
	-o-transition-duration: 0.8s;
	transition-duration: 0.8s;
}
.isotope {
	-webkit-transition-property: height, width;
	-moz-transition-property: height, width;
	-ms-transition-property: height, width;
	-o-transition-property: height, width;
	transition-property: height, width;
}
.isotope .isotope-item {
	-webkit-transition-property: -webkit-transform, opacity;
	-moz-transition-property: -moz-transform, opacity;
	-ms-transition-property: -ms-transform, opacity;
	-o-transition-property: -o-transform, opacity;
	transition-property: transform, opacity;
}

.isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition {
	-webkit-transition-duration: 0s;
	-moz-transition-duration: 0s;
	-ms-transition-duration: 0s;
	-o-transition-duration: 0s;
	transition-duration: 0s;
}
/* hover colors */
.img-overlay{ position:absolute; left:0; top:0; width:100%; height:100%; opacity:.8; display:none;}
.portfolio-item:hover .img-overlay{ display:block;}
.portfolio-item:nth-child(1) .img-overlay{background:#BED431}
.portfolio-item:nth-child(2) .img-overlay{background:#5ECAE6}
.portfolio-item:nth-child(3) .img-overlay{background:#E11E24}
.portfolio-item:nth-child(4) .img-overlay{background:#7251A2}
.portfolio-item:nth-child(5) .img-overlay{background:#7251A2}
.portfolio-item:nth-child(6) .img-overlay{background:#E11E24}
.portfolio-item:nth-child(7) .img-overlay{background:#5ECAE6}
.portfolio-item:nth-child(8) .img-overlay{background:#BED431}
.portfolio-item i{border: 3px solid #FFFFFF;border-radius: 6px; color: #FFFFFF; display: block; font-size: 22px;  height: 46px; left: 50%; line-height: 40px; margin-left:-50px; margin-top: -23px;position: absolute;text-align: center; top: -46px; width: 46px; z-index: 8;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.portfolio-item i.fa-link{ left: auto;margin-right: -50px;right: 50%;}
.portfolio-item:hover i{ top:50%;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.portfolio-item i:hover{ border-color:#dfdfdf; color:#dfdfdf;}

/* best sellers */
.products{}
.products .product{ float:left; margin:13px 2.6% 20px 0; position:relative;}
.products .product:nth-child(4n+4){ margin-right:0}
.product-thumb{ position:relative;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease; overflow:hidden;margin-bottom:20px;}
.product-thumb a{ display:block;}
.product-thumb a span.overlay{ position:absolute; left:0; top:0; width:100%; height:100%; opacity:.8; z-index:5; display:none;}
.product-thumb:hover a span.overlay{ display:block;}
.product-thumb img{ display:block;}
.product-thumb i{ border: 3px solid #FFFFFF;border-radius: 6px;color: #FFFFFF;font-size: 22px;height: 46px;left: 50%;line-height: 40px;margin-left: -23px;margin-top: -23px;position: absolute;text-align: center;top: -46px;width: 46px;z-index: 8; display:block; -moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.product-thumb:hover i{ top:50%;-moz-transition: all 500ms ease;-webkit-transition: all 500ms ease;-ms-transition: all 500ms ease;-o-transition: all 500ms ease;transition: all 500ms ease;}
.product .sale{ width:57px; height:57px; border-radius:100%; -moz-border-radius:100%; -webkit-border-radius:100%; position:absolute; right:-7px; top:-20px; border:3px solid #fff; text-align:center; font-size:16px; color:#fff; font-weight:300;line-height: 48px; z-index:15}
.product-desc h4, .product-desc h4 a{ font-size:22px; color:#393939; padding:0; border:0; font-weight:400; margin-bottom:5px;}
.product-desc h4 .price, .product-desc h4 a .price{ float:right; font-size:23px; font-weight:700; padding:0}
.product-desc p{ font-weight:300; color:#4c4c4c;}

/* colors */
.product.green .sale{ background:#bed431;}
.product.green .price{ color:#bed431;}
.product.green .product-thumb a span.overlay{ background:#bed431;}

.product.blue .sale{ background:#5ecae6;}
.product.blue .price{ color:#5ecae6;}
.product.blue .product-thumb a span.overlay{ background:#5ecae6;}

.product.red .sale{ background:#e11e24;}
.product.red .price{ color:#e11e24;}
.product.red .product-thumb a span.overlay{ background:#e11e24;}

.product.purple .sale{ background:#7251a2;}
.product.purple .price{ color:#7251a2;}
.product.purple .product-thumb a span.overlay{ background:#7251a2;}

.product.yellow .sale{ background:#f6c715;}
.product.yellow .price{ color:#f6c715;}
.product.yellow .product-thumb a span.overlay{ background:#f6c715;}

/* our clients */
.our-clients{background: url("../images/clients-bg.jpg") repeat;background-attachment:fixed; border-top:1px solid #e3e3e3; border-bottom:1px solid #e3e3e3;position:relative;}
.our-clients h1{ margin-bottom:50px; border:0; padding-left:0}
.testimonial{ border-radius: 2px; font-size: 20px; font-style: italic; margin:0 auto 0 auto;width: 100%;padding: 60px 88px;position: relative;}
.testimonial p{ line-height:28px; margin-bottom:0}
.testimonial .fa-quote-left, .testimonial .fa-quote-right{ font-size:41px; color:#ebebeb; position:absolute;}
.testimonial .fa-quote-left{ top:40px; left:28px;}
.testimonial .fa-quote-right{ bottom:40px; right:28px;}

/* contact us */

.contact-us{ }
.contact-us .form{min-height:380px;}
.contact-us input[type=text]{ margin-bottom:9px;}
.contact-us label{ float:left;}
.contact-us .btn{ margin-left:9.8%; border:0;}
.message label{ width:9.8%;}
.message textarea{ width:89.3%; margin-bottom:13px;}
.map{ margin:40px 0 0;}
.map iframe{ border:0; width:100%; height:470px;}
.map-title{ background:#fe4419; text-align:center;}
.map-title h4{ font-size:32px; color:#fff; margin:0;}
.map-title h4 span{ background: #FFFFFF;display: inline-block;font-size: 40px; height: 65px;line-height: 63px;padding: 0;width: 57px; margin:0 0 0 35px; cursor:pointer; opacity:.9;}
.map-title i{ background:#fff;}
.message input[type="submit"]:hover, .message input[type="submit"]:focus{ color:#000}

/*shop detail*/
.shop-detail h2{ margin:15px 0;}
.shop-detail .row{ margin:15px 0 0 -42px;}
.rating {direction: rtl;text-align: left;unicode-bidi: bidi-override;}
.rating > span {cursor: pointer;display: inline-block;font-size: 20px;margin-right: 3px;position: relative;width: 0.8em;}
.rating > span:before, .rating > span ~ span:before {color: #646464;content: "★";}
.rating > span:hover:before, .rating > span:hover ~ span:before {color: #5ECAE6;content: "★";}
.customer-reviews p { float: left;font-weight: 300; margin: 0;}
.customer-reviews .rating { float: right;}
.customer-reviews .rating > span:hover:before, .customer-reviews .rating > span:hover ~ span:before {color: #BED431;}
.price { color: #BED431; font-size: 23px;font-weight: 600;}
.price del {margin-right: 7px;}
.item-counter {background: #F7F7F7;border: 1px solid #F4F4F4;float: left;height: 47px;margin-right: 17px;width: 98px;}
.item-counter span {cursor: pointer; height: 47px; line-height: 37px;text-align: center;width: 27px;}
.item-counter input.items-total { background: #FFFFFF; border: 0 none; cursor: default;  display: inline-block; height: 45px;  line-height: 41px;margin: 0; padding: 0;text-align: center;width: 42px;}
.item-category {float: left; padding-left: 17px;padding-top: 10px;}
.product-detail-cat span {color: #BED431;}

/*cart*/
.cart-list {border: 1px solid #e7e7e7;height: auto; padding: 0;width: 100%;background:#fbfbfb;}
.cart-bar {color: #393939;line-height: 40px;text-align: center;width: 100%;border-bottom: 1px solid #E7E7E7;}
.cart-product-heading, .cart-product {border-right: 1px solid #E7E7E7;float: left;font-size: 18px;text-transform: uppercase;width: 61%;}
.cart-price-heading, .cart-quantity-heading, .cart-total-heading, .cart-price, .cart-quantity, .cart-total {float: left;text-transform:uppercase;font-size: 18px;width: 11.6279%;border-right: 1px solid #E7E7E7;}
.cart-bar-list {height: 128px;line-height: 128px;text-align: center;width: 100%;}
.cart-product {border-right: 1px solid #D8D8D8;height: 128px;line-height: 128px;padding-top: 10px;text-align: left;}
.cart-product img {display: block;margin: 0 10px;}
.cart-product h4 {color: #4C4C4C;font-size: 14px;padding-top: 42px;text-transform: none;}
.cart-price, .cart-quantity, .cart-total, .product-remove2 {border-right: 1px solid #D8D8D8;font-size: 24px;height: 128px;}
.cart-price .amount, .cart-total .amount {color: #4C4C4C;font-size: 14px;}
.cart-quantity .item-counter {display: inline-flex;float: none;margin: 0 auto;}
.product-remove2 span {cursor: pointer;color: #E21E25;}
.cart-buttons {border-top: 1px solid #D8D8D8;padding: 10px 0 0;}
.cart-shipping {padding: 15px;}
.cart-shipping h4 {font-size:24px; padding:0;}
.cart-shipping .selector {border: 1px solid #E7E7E7;height: auto;margin-bottom: 10px;padding: 7px 12px;background:#fff;width: 100% !important;}
.cart-shipping .selector select{height: 37px;}
.cart-shipping .selector span{color:#acacac; width:100% !important;}
.cart-shipping input[type="text"] {border: 1px solid #E4E4E4;margin-right: 0;padding: 10px 12px; width: 100%;font-size:13px;color:#656565;}
.cart-total-amount {padding: 0;}
.cart-total-amount label {font-size: 14px;font-weight: 400;padding: 13px 0; margin:0; width: auto;}
.order-total {border-bottom: 1px solid #F4F4F4;border-top: 1px solid #F4F4F4;}
.order-total label{font-weight:600;}
.order-total .price{color:#7251a2;}
.cart-total-amount .price {font-weight: bold;}
.cart-quantity .items-total, .cart-quantity #pluss-item, .cart-quantity #less-item{ font-size:14px; color:#4c4c4c;}
.cart-quantity #pluss-item, .cart-quantity #less-item{ line-height:46px; font-size:16px;}
.coupon-card input[type="text"]{ margin:0 5px 0 14px; border:1px solid #e7e7e7;padding: 13px 12px; float:left; font-size:13px; color:#a0a0a0; font-style:italic; width: 40%;}
.cart-shipping .btn-red{ width:100%; margin:15px 0 0;}
.checkout{margin: 20px 0 0 -60px !important;}

.cart-bar-list .item-counter{ margin-top:40px;}
.product-remove2{ border-right:0;}

.coupon-card input[type="submit"]{ border:0;border-bottom: 4px solid #08828C;}
.cart-shipping input[type="submit"]{ border:0;border-bottom: 4px solid #C6131A;}

/* footer */
footer{ padding:46px 0; text-align:center;}
.social{ text-align:center;}
.social li{ display:inline-block}
.social li a{ display:block; width:46px; height:46px; border:2px solid #e4e4e4; text-align:center; color:#646464; font-size:22px; border-radius:100%; line-height:40px;}
.social li:nth-child(1) a:hover{ color:#324987;border:2px solid #324987;}
.social li:nth-child(2) a:hover{ color:#20baf3;border:2px solid #20baf3;}
.social li:nth-child(3) a:hover{ color:#494949;border:2px solid #494949;}
.social li:nth-child(4) a:hover{ color:#ed0a7d;border:2px solid #ed0a7d;}
.social li:nth-child(5) a:hover{ color:#bd0b14;border:2px solid #bd0b14;}

.copyright{ font-size:13px; padding:15px 0 0; margin:0}

/*------------------------- browsers hack ------------------------*/

@media screen and (-webkit-min-device-pixel-ratio:0)
{
    .piecharts, .tables, .our-clients{ background-attachment:scroll}
}

/*------------------------- ANIMATION CSS ------------------------*/

.experience .row div.experience-content, .experience .row div.devices, .services-sec .tab1 .row .col-md-4, .tri-secs .col-md-6, .team .row .col-md-4, .tables .row .col-md-3, .products .product, #portfolio-items-wrap, .our-clients .flipInY, .contact-us .form, .social li{ opacity:0;}
.experience .row div.experience-content.animated, .experience .row div.devices.animated, .services-sec .row .col-md-4.animated, .tri-secs .col-md-6.animated, .team .row .col-md-4.animated, .tables .row .col-md-3.animated, .products .product.animated, #portfolio-items-wrap.animated, .our-clients .flipInY.animated, .contact-us .form.animated, .social li.animated{ opacity:1;}

/*------------------------- Color Shitcher ------------------------*/
.switcher{position:fixed; right:-3px; top:50%; z-index:55; text-align:center; margin-top:-25px;}
.switcher a{ display: block;font-size: 28px; height: 51px; line-height: 49px; width: 50px; color:#ccc; background:#222222; color:#fff;border-radius: 4px;}
.switcher a:hover{ color:#fff; background:#F6C815}
.switcher a.light{background:#F6C815;}
.switcher a.light:hover{background:#4f4f4f;}


text:
set -o errexit
set -o errtrace
set -o pipefail

VERSION="${1:?YOU MUST PASS THE VERSION AS AN ARGUMENT OF THIS SCRIPT!!}"

echo "Setting back the version and building old docs"
pushd docs-sources
./mvnw org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion="${VERSION}"
./mvnw clean install -Pdocs
popd

echo "Committing changes"
git add .
git commit -a -m "Going back to snapshots"
git push origin master

echo "Done!"


text:
package com.josenaves.async;

import java.util.Random;

/**
 * Represents an event (immutable).
 */
public final class Event implements Runnable {

    private String owner;
    private int timeout;

    private EventListener listener;

    public Event(String owner, int timeout) {
        this.owner = owner;
        this.timeout = timeout;
    }

    public String getOwner() {
        return owner;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setListener(EventListener listener) {
        this.listener = listener;
    }

    @Override
    public void run() {
        // do some arbitrary logic
        System.out.println("Processing event " + getOwner() + "...");
        try {
            Thread.sleep(getTimeout());
        } catch (InterruptedException e) {
            System.err.println("Error on Event run method");
        }

        if (new Random(System.currentTimeMillis()).nextBoolean()) {
            // success
            listener.onSuccess(this);
        }
        else {
            // failure
            listener.onFailure(this);
        }

    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Serialized Form</title>
<meta name="date" content="2015-08-01">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Serialized Form

Package org.codeavengers.common.dto

Package org.codeavengers.common.dto.entity

Class org.codeavengers.common.dto.entity.Category extends java.lang.Object implements Serializable

serialVersionUID:

-7428117920763750085L

Serialized Fields

catId

java.lang.Long catId

catDesc

java.lang.String catDesc

assns

java.util.List<E> assns

Class org.codeavengers.common.dto.entity.LocationCategoryAssn extends java.lang.Object implements Serializable

serialVersionUID:

-9215521694003691234L

Serialized Fields

assnId

java.lang.Long assnId

categoryField

java.lang.String categoryField

categoryValue

java.lang.String categoryValue

category

Category category

location

LocationMaster location

Class org.codeavengers.common.dto.entity.LocationMaster extends java.lang.Object implements Serializable

serialVersionUID:

-5484290121775187900L

Serialized Fields

locId

java.lang.Long locId

parentLocId

java.lang.Long parentLocId

area

java.lang.String area

code

java.lang.String code

lat

java.lang.String lat

lon

java.lang.String lon

assns

java.util.List<E> assns

Class org.codeavengers.common.dto.entity.Result extends java.lang.Object implements Serializable

serialVersionUID:

-4836894188003928870L

Serialized Fields

values

java.lang.String[] values

Class org.codeavengers.common.dto.entity.Results extends java.lang.Object implements Serializable

serialVersionUID:

3894034420524234239L

Serialized Fields

entries

java.util.List<E> entries

sortedBy

java.lang.String[] sortedBy

names

java.lang.String[] names

types

java.lang.String[] types

Package org.codeavengers.common.dto.wrap

Class org.codeavengers.common.dto.wrap.CategoryWrapper extends Category implements Serializable

serialVersionUID:

-138260273061832039L

Serialized Fields

locns

java.util.List<E> locns

assnId

java.lang.Long assnId

unit

java.lang.String unit

value

java.lang.String value

Class org.codeavengers.common.dto.wrap.LocationWrapper extends LocationMaster implements Serializable

serialVersionUID:

771354173420804901L

Serialized Fields

cates

java.util.List<E> cates

assnId

java.lang.Long assnId

unit

java.lang.String unit

value

java.lang.String value

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
CONF_PATH_PHP7="${HOME}/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini"
CONF_PATH_HHVM="/etc/hhvm/php.ini"


text:
<?xml version="1.0" encoding="UTF-8"?>
<module codename="org.netbeans.modules.maven.profiler/1">
    <module_version install_time="1370465096013" last="true" origin="installer" specification_version="1.20.1">
        <file crc="3344657031" name="config/Modules/org-netbeans-modules-maven-profiler.xml"/>
        <file crc="1735464589" name="modules/locale/org-netbeans-modules-maven-profiler_ja.jar"/>
        <file crc="3680826080" name="modules/locale/org-netbeans-modules-maven-profiler_pt_BR.jar"/>
        <file crc="3464028489" name="modules/locale/org-netbeans-modules-maven-profiler_ru.jar"/>
        <file crc="2683393436" name="modules/locale/org-netbeans-modules-maven-profiler_zh_CN.jar"/>
        <file crc="3229273023" name="modules/org-netbeans-modules-maven-profiler.jar"/>
    </module_version>
</module>


text:
#ifndef CONSTANTS_H
#define CONSTANTS_H

#define LOCAL_PART_MAXLEN 64
#define DOMAIN_MAXLEN     255
#define PATH_MAXLEN       256

#define MAX_RECIPIENTS    100
#define MAX_MESSAGE_SIZE  (100 * 1024 * 1024)
#define MAX_TRANSACTIONS  100

#define TEXT_LINE_MAXLEN  1024

#endif /* CONSTANTS_H */


text:
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (InitRAMFS, Dracut, and the Dracut Emergency Shell)
[#]: via: (https://fedoramagazine.org/initramfs-dracut-and-the-dracut-emergency-shell/)
[#]: author: (Gregory Bartholomew https://fedoramagazine.org/author/glb/)

InitRAMFS, Dracut, and the Dracut Emergency Shell
======

![][1]

The [Linux startup process][2] goes through several stages before reaching the final [graphical or multi-user target][3]. The initramfs stage occurs just before the root file system is mounted. Dracut is a tool that is used to manage the initramfs. The dracut emergency shell is an interactive mode that can be initiated while the initramfs is loaded.

This article will show how to use the dracut command to modify the initramfs. Some basic troubleshooting commands that can be run from the dracut emergency shell will also be demonstrated.

### The InitRAMFS

[Initramfs][4] stands for Initial Random-Access Memory File System. On modern Linux systems, it is typically stored in a file under the /boot directory. The kernel version for which it was built will be included in the file name. A new initramfs is generated every time a new kernel is installed.

![A Linux Boot Directory][5]

By default, Fedora keeps the previous two versions of the kernel and its associated initramfs. This default can be changed by modifying the value of the _installonly_limit_ setting the /etc/dnf/dnf.conf file.

You can use the _lsinitrd_ command to list the contents of your initramfs archive:

![The LsInitRD Command][6]

The above screenshot shows that my initramfs archive contains the _nouveau_ GPU driver. The _modinfo_ command tells me that the nouveau driver supports several models of NVIDIA video cards. The _lspci_ command shows that there is an NVIDIA GeForce video card in my computer's PCI slot. There are also several basic Unix commands included in the archive such as _cat_ and _cp_.

By default, the initramfs archive only includes the drivers that are needed for your specific computer. This allows the archive to be smaller and decreases the time that it takes for your computer to boot.

### The Dracut Command

The _dracut_ command can be used to modify the contents of your initramfs. For example, if you are going to move your hard drive to a new computer, you might want to temporarily include all drivers in the initramfs to be sure that the operating system can load on the new computer. To do so, you would run the following command:

```
# dracut --force --no-hostonly
```

The _force_ parameter tells dracut that it is OK to overwrite the existing initramfs archive. The _no-hostonly_ parameter overrides the default behavior of including only drivers that are germane to the currently-running computer and causes dracut to instead include all drivers in the initramfs.

By default dracut operates on the initramfs for the currently-running kernel. You can use the _uname_ command to display which version of the Linux kernel you are currently running:

```
$ uname -r
5.0.5-200.fc29.x86_64
```

Once you have your hard drive installed and running in your new computer, you can re-run the dracut command to regenerate the initramfs with only the drivers that are needed for the new computer:

```
# dracut --force
```

There are also parameters to add arbitrary drivers, dracut modules, and files to the initramfs archive. You can also create configuration files for dracut and save them under the /etc/dracut.conf.d directory so that your customizations will be automatically applied to all new initramfs archives that are generated when new kernels are installed. As always, check the man page for the details that are specific to the version of dracut you have installed on your computer:

```
$ man dracut
```

### The Dracut Emergency Shell

![The Dracut Emergency Shell][7]

Sometimes something goes wrong during the initramfs stage of your computer's boot process. When this happens, you will see "Entering emergency mode" printed to the screen followed by a shell prompt. This gives you a chance to try and fix things up manually and continue the boot process.

As a somewhat contrived example, let's suppose that I accidentally deleted an important kernel parameter in my boot loader configuration:

```
# sed -i 's/ rd.lvm.lv=fedora\/root / /' /boot/grub2/grub.cfg
```

The next time I reboot my computer, it will seem to hang for several minutes while it is trying to find the root partition and eventually give up and drop to an emergency shell.

From the emergency shell, I can enter _journalctl_ and then use the **Space** key to page down though the startup logs. Near the end of the log I see a warning that reads "/dev/mapper/fedora-root does not exist". I can then use the _ls_ command to find out what does exist:

```
# ls /dev/mapper
control fedora-swap
```

Hmm, the fedora-root LVM volume appears to be missing. Let's see what I can find with the lvm command:

```
# lvm lvscan
ACTIVE '/dev/fedora/swap' [3.85 GiB] inherit
inactive '/dev/fedora/home' [22.85 GiB] inherit
inactive '/dev/fedora/root' [46.80 GiB] inherit
```

Ah ha! There's my root partition. It's just inactive. All I need to do is activate it and exit the emergency shell to continue the boot process:

```
# lvm lvchange -a y fedora/root
# exit
```

![The Fedora Login Screen][8]

The above example only demonstrates the basic concept. You can check the [troubleshooting section][9] of the [dracut guide][10] for a few more examples.

It is possible to access the dracut emergency shell manually by adding the _rd.break_ parameter to your kernel command line. This can be useful if you need to access your files before any system services have been started.

Check the _dracut.kernel_ man page for details about what kernel options your version of dracut supports:

```
$ man dracut.kernel
```

--------------------------------------------------------------------------------

via: https://fedoramagazine.org/initramfs-dracut-and-the-dracut-emergency-shell/

作者:[Gregory Bartholomew][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)

本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出

[a]: https://fedoramagazine.org/author/glb/
[b]: https://github.com/lujun9972
[1]: https://fedoramagazine.org/wp-content/uploads/2019/04/dracut-816x345.png
[2]: https://en.wikipedia.org/wiki/Linux_startup_process
[3]: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-targets
[4]: https://en.wikipedia.org/wiki/Initial_ramdisk
[5]: https://fedoramagazine.org/wp-content/uploads/2019/04/boot.jpg
[6]: https://fedoramagazine.org/wp-content/uploads/2019/04/lsinitrd.jpg
[7]: https://fedoramagazine.org/wp-content/uploads/2019/04/dracut-shell.jpg
[8]: https://fedoramagazine.org/wp-content/uploads/2019/04/fedora-login-1024x768.jpg
[9]: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html#_troubleshooting
[10]: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html


text:
/* $Xorg: GetColor.c,v 1.4 2001/02/09 02:03:33 xorgcvs Exp $ */
/*

Copyright 1986, 1998  The Open Group

Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.

*/
/* $XFree86: xc/lib/X11/GetColor.c,v 1.6 2003/04/13 19:22:16 dawes Exp $ */

#define NEED_REPLIES
#include <stdio.h>
#include "Xlibint.h"
#include "Xcmsint.h"

Status
XAllocNamedColor(
register Display *dpy,
Colormap cmap,
_Xconst char *colorname, /* STRING8 */
XColor *hard_def, /* RETURN */
XColor *exact_def) /* RETURN */
{

    long nbytes;
    xAllocNamedColorReply rep;
    xAllocNamedColorReq *req;

    XcmsCCC ccc;
    XcmsColor cmsColor_exact;
    Status ret;

    /*
     * Let's Attempt to use Xcms and i18n approach to Parse Color
     */
    if ((ccc = XcmsCCCOfColormap(dpy, cmap)) != (XcmsCCC)NULL) {
	const char *tmpName = colorname;

	switch (_XcmsResolveColorString(ccc, &tmpName, &cmsColor_exact,
					XcmsRGBFormat)) {
	case XcmsSuccess:
	case XcmsSuccessWithCompression:
	    _XcmsRGB_to_XColor(&cmsColor_exact, exact_def, 1);
	    memcpy((char *)hard_def, (char *)exact_def, sizeof(XColor));
	    ret = XAllocColor(dpy, cmap, hard_def);
	    exact_def->pixel = hard_def->pixel;
	    return(ret);
	case XcmsFailure:
	case _XCMS_NEWNAME:
	    /*
	     * if the result was _XCMS_NEWNAME tmpName points to
	     * a string in cmsColNm.c:pairs table, for example,
	     * gray70 would become tekhvc:0.0/70.0/0.0
	     */
	    break;
	}
    }

    /*
     * Xcms and i18n approach failed.
     */
    LockDisplay(dpy);
    GetReq(AllocNamedColor, req);

    req->cmap = cmap;
    nbytes = req->nbytes = strlen(colorname);
    req->length += (nbytes + 3) >> 2; /* round up to mult of 4 */

    _XSend(dpy, colorname, nbytes);
       /* _XSend is more efficient that Data, since _XReply follows */

    if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) {
	UnlockDisplay(dpy);
        SyncHandle();
        return (0);
    }

    exact_def->red = rep.exactRed;
    exact_def->green = rep.exactGreen;
    exact_def->blue = rep.exactBlue;

    hard_def->red = rep.screenRed;
    hard_def->green = rep.screenGreen;
    hard_def->blue = rep.screenBlue;

    exact_def->pixel = hard_def->pixel = rep.pixel;

    UnlockDisplay(dpy);
    SyncHandle();
    return (1);
}


text:
package com.BibleQuote.domain.textFormatters;

import java.util.LinkedHashMap;
import java.util.Map;

public class BreakVerseBibleShareFormatter implements IShareTextFormatter {

    private LinkedHashMap<Integer, String> verses;

    public BreakVerseBibleShareFormatter(LinkedHashMap<Integer, String> verses) {
        this.verses = verses;
    }

    @Override
    public String format() {
        StringBuilder shareText = new StringBuilder();
        Integer prevVerseNumber = 0;
        for (Map.Entry<Integer, String> entry : verses.entrySet()) {
            if (prevVerseNumber == 0) {
                prevVerseNumber = entry.getKey();
            }

            if (entry.getKey() - prevVerseNumber > 1) {
                shareText.append("...\r\n");
            }
            shareText.append(String.format("%1$s %2$s", entry.getKey(), entry.getValue())).append("\r\n");
            prevVerseNumber = entry.getKey();
        }
        return shareText.toString();
    }

}


text:
package tuner.gui.widgets

import java.awt.Graphics2D

import tuner.Config
import tuner.SpecifiedColorMap
import tuner.geom.Rectangle
import tuner.geom.Triangle
import tuner.gui.P5Panel
import tuner.gui.util.FontLib
import tuner.gui.util.TextAlign

import processing.core.PGraphicsJava2D

object Colorbar {
  sealed trait Placement
  case object Left extends Placement
  case object Right extends Placement
}

class Colorbar(placement:Colorbar.Placement, editable:Boolean=true) {

  import Colorbar._

  var bounds:Rectangle = Rectangle((0f,0f),(0f,0f))
  var barBounds:Rectangle = Rectangle((0f,0f),(0f,0f))
  //var handleBounds:Triangle = Triangle((0f,0f),(0f,0f),(0f,0f))

  def draw(applet:P5Panel, x:Float, y:Float, w:Float, h:Float,
           field:String, colormap:SpecifiedColorMap) = {
    bounds = Rectangle((x,y), (x+w,y+h))

    applet.textFont(Config.fontPath, Config.smallFontSize)
    val labelWidth =
      applet.textWidth("-" + "M" * Config.colorbarTickDigits._1 +
                       "." + "M" * Config.colorbarTickDigits._2)
    // Figure out how much space we can give to the colorbar
    val barWidth = w - labelWidth -
                       Config.colorbarLabelSpace._2 -
                       Config.colorbarTickSize -
                       Config.colorbarHandleSize._1

    val barHeight = h - Config.colorbarLabelSpace._1 -
                    Config.smallFontSize -
                    (Config.colorbarHandleSize._2 / 2)
    val barStartY = y + Config.colorbarLabelSpace._1 + Config.smallFontSize
    val ticks = colormap.ticks

    applet.stroke(Config.lineColor)
    applet.fill(Config.lineColor)
    drawLabel(applet, x, y, w, field)
    placement match {
      case Right =>
        drawTicks(applet, x, barStartY, labelWidth, barHeight, ticks)
        drawColorbar(applet, x+labelWidth, barStartY,
                     barWidth, barHeight, colormap)
        if(editable) {
          drawHandle(applet, x+labelWidth+barWidth, barStartY,
                             barHeight, colormap)
        }
      case Left =>
        drawTicks(applet, x+Config.colorbarHandleSize._1+barWidth, barStartY,
                          labelWidth, barHeight, ticks)
        drawColorbar(applet, x+Config.colorbarHandleSize._1, barStartY,
                             barWidth, barHeight, colormap)
        if(editable) {
          drawHandle(applet, x, barStartY, barHeight, colormap)
        }
    }
  }

  def draw(g:Graphics2D, x:Float, y:Float, w:Float, h:Float,
           field:String, colormap:SpecifiedColorMap) = {

    bounds = Rectangle((x,y), (x+w,y+h))

    val oldFont = g.getFont
    val newFont = oldFont.deriveFont(Config.smallFontSize)
    g.setFont(newFont)

    val labelWidth =
      FontLib.textWidth(g, "-" + "M" * Config.colorbarTickDigits._1 +
                           "." + "M" * Config.colorbarTickDigits._2) - 5
    g.setFont(oldFont)

    // Figure out how much space we can give to the colorbar
    val barWidth = w - labelWidth -
                       Config.colorbarLabelSpace._2 -
                       Config.colorbarTickSize -
                       Config.colorbarHandleSize._1

    val barHeight = h - Config.colorbarLabelSpace._1 -
                    Config.smallFontSize -
                    (Config.colorbarHandleSize._2 / 2)
    val barStartY = y + Config.colorbarLabelSpace._1 + Config.smallFontSize
    val ticks = colormap.ticks

    g.setPaint(Config.lineColor)
    drawLabel(g, x, y, w, field)
    placement match {
      case Right =>
        drawTicks(g, x, barStartY, labelWidth, barHeight, ticks)
        drawColorbarJ2D(g, x+labelWidth, barStartY,
                           barWidth, barHeight, colormap)
        if(editable) {
          drawHandle(g, x+labelWidth+barWidth, barStartY,
                        barHeight, colormap)
        }
      case Left =>
        drawTicks(g, x+Config.colorbarHandleSize._1+barWidth, barStartY,
                     labelWidth, barHeight, ticks)
        drawColorbarJ2D(g, x+Config.colorbarHandleSize._1, barStartY,
                           barWidth, barHeight, colormap)
        if(editable) {
          drawHandle(g, x, barStartY, barHeight, colormap)
        }
    }
  }

  def drawLabel(applet:P5Panel, x:Float, y:Float, w:Float, field:String) = {
    applet.textAlign(P5Panel.TextHAlign.Center, P5Panel.TextVAlign.Top)
    applet.text(field, x+w/2, y)
  }

  def drawLabel(g:Graphics2D, x:Float, y:Float, w:Float, field:String) = {
    FontLib.drawString(g, field, x+w/2 toInt, y toInt,
                                 TextAlign.Center, TextAlign.Top)
  }

  def drawTicks(applet:P5Panel, x:Float, y:Float,
                labelWidth:Float, h:Float, ticks:Seq[Float]) = {

    ticks.foreach {tick =>
      if(tick == ticks.head) {
        applet.textAlign(P5Panel.TextHAlign.Left, P5Panel.TextVAlign.Bottom)
      } else if(tick == ticks.last) {
        applet.textAlign(P5Panel.TextHAlign.Left, P5Panel.TextVAlign.Top)
      } else {
        applet.textAlign(P5Panel.TextHAlign.Left, P5Panel.TextVAlign.Center)
      }

      val yy = P5Panel.map(tick, ticks.head, ticks.last, y+h, y)
      val textX = Config.colorbarTickSize + Config.colorbarLabelSpace._2
      val txt = P5Panel.nfs(tick,
                            Config.colorbarTickDigits._1,
                            Config.colorbarTickDigits._2)
      placement match {
        case Right =>
          applet.text(txt, x, yy)
          val tickStart = x+labelWidth+Config.colorbarLabelSpace._2
          applet.line(tickStart, yy,
                      tickStart+Config.colorbarTickSize, yy)
        case Left =>
          applet.text(txt, x+textX, yy)
          applet.line(x, yy, x+Config.colorbarTickSize, yy)
      }
    }
  }

  def drawTicks(g:Graphics2D, x:Float, y:Float,
                labelWidth:Float, height:Float, ticks:Seq[Float]) = {

    ticks.foreach {tick =>
      val yy = P5Panel.map(tick, ticks.head, ticks.last, y+height, y) toInt
      val textX = Config.colorbarTickSize + Config.colorbarLabelSpace._2 toInt
      val txt = P5Panel.nfs(tick,
                            Config.colorbarTickDigits._1,
                            Config.colorbarTickDigits._2)

      val (h, v) = if(tick == ticks.head) {
        (TextAlign.Left, TextAlign.Bottom)
      } else if(tick == ticks.last) {
        (TextAlign.Left, TextAlign.Top)
      } else {
        (TextAlign.Left, TextAlign.Middle)
      }

      placement match {
        case Right =>
          FontLib.drawString(g, txt, x.toInt, yy, h, v)
          val tickStart = (x+labelWidth+Config.colorbarLabelSpace._2).toInt
          g.drawLine(tickStart, yy,
                     tickStart+Config.colorbarTickSize toInt, yy)
        case Left =>
          FontLib.drawString(g, txt, x+textX toInt, yy, h, v)
          g.drawLine(x.toInt, yy, x+Config.colorbarTickSize toInt, yy)
      }
    }
  }

  def drawColorbar(applet:P5Panel, x:Float, y:Float, w:Float, h:Float,
                   colormap:SpecifiedColorMap) = {
    barBounds = Rectangle((x,y), (x+w,y+h))
    applet.renderer match {
      case P5Panel.OpenGL => drawColorbarOGL(applet, x, y, w, h, colormap)
      case P5Panel.Java2D =>
        val pgl = applet.g.asInstanceOf[PGraphicsJava2D]
        drawColorbarJ2D(pgl.g2, x, y, w, h, colormap)
      case P5Panel.P3D    => drawColorbarOGL(applet, x, y, w, h, colormap)
    }
  }

  def drawHandle(applet:P5Panel, x:Float, y:Float, h:Float,
                 colormap:SpecifiedColorMap) = {

    val yy = P5Panel.map(colormap.filterVal,
                         colormap.minVal, colormap.maxVal,
                         y+h, y)
    val yOffset = Config.colorbarHandleSize._2 / 2
    applet.fill(Config.lineColor)
    applet.noStroke

    val (p1, p2, p3) = placement match {
      case Right =>
        ((x, yy),
         (x+Config.colorbarHandleSize._1, yy + yOffset),
         (x+Config.colorbarHandleSize._1, yy - yOffset))
      case Left =>
        ((x+Config.colorbarHandleSize._1, yy),
         (x, yy + yOffset),
         (x, yy - yOffset))
    }

    //handleBounds = Triangle(p1, p2, p3)
    applet.triangle(p1._1, p1._2, p2._1, p2._2, p3._1, p3._2)
  }

  def drawHandle(g:Graphics2D, x:Float, y:Float, h:Float,
                 colormap:SpecifiedColorMap) = {

    val yy = P5Panel.map(colormap.filterVal,
                         colormap.minVal, colormap.maxVal,
                         y+h, y)
    val yOffset = Config.colorbarHandleSize._2 / 2

    g.setPaint(Config.lineColor)

    val (p1, p2, p3) = placement match {
      case Right =>
        ((x.toInt, yy.toInt),
         (x+Config.colorbarHandleSize._1 toInt, yy + yOffset toInt),
         (x+Config.colorbarHandleSize._1 toInt, yy - yOffset toInt))
      case Left =>
        ((x+Config.colorbarHandleSize._1 toInt, yy toInt),
         (x toInt, yy + yOffset toInt),
         (x toInt, yy - yOffset toInt))
    }

    //handleBounds = Triangle(p1, p2, p3)
    g.fillPolygon(Array(p1._1, p2._1, p3._1), Array(p1._2, p2._2, p3._2), 3)
  }

  def isInside(mouseX:Int, mouseY:Int) = bounds.isInside(mouseX, mouseY)

  /**
   * draw the colorbar when using an OpenGL renderer
   */
  private def drawColorbarOGL(applet:P5Panel, x:Float, y:Float,
                                              w:Float, h:Float,
                                              colormap:SpecifiedColorMap) = {
    applet.noStroke

    applet.beginShape(P5Panel.Shape.QuadStrip)
    // Maybe draw the filterd out colors
    if(colormap.isFiltered) {
      applet.fill(colormap.filterColor)
      val yy1 = P5Panel.map(colormap.filterStart,
                            colormap.minVal, colormap.maxVal,
                            y+h, y)
      val yy2 = P5Panel.map(colormap.filterVal,
                            colormap.minVal, colormap.maxVal,
                            y+h, y)
      applet.vertex(x, yy1)
      applet.vertex(x+w, yy1)
      applet.vertex(x, yy2)
      applet.vertex(x+w, yy2)
    }
    List(colormap.filterVal, colormap.colorEnd).foreach {break =>
    //colormap.breaks.foreach {break =>
      applet.fill(colormap.color(break))
      val yy = P5Panel.map(break, colormap.minVal, colormap.maxVal, y+h, y)
      applet.vertex(x, yy)
      applet.vertex(x+w, yy)
    }
    applet.endShape
  }

  /**
   * draw the colorbar using the Java2D renderer.  Java2D doesn't support
   * automatic color interpolation like opengl :(
   */
  private def drawColorbarJ2D(g2:Graphics2D, x:Float, y:Float,
                                             w:Float, h:Float,
                                             colormap:SpecifiedColorMap) = {
    barBounds = Rectangle((x,y), (x+w,y+h))

    // Filtered out values get one color
    if(colormap.isFiltered) {
      val fyy1 = P5Panel.map(colormap.filterStart,
                             colormap.minVal, colormap.maxVal,
                             y+h, y)
      val fyy2 = P5Panel.map(colormap.filterVal,
                             colormap.minVal, colormap.maxVal,
                             y+h, y)
      g2.setPaint(colormap.filterColor)
      g2.fill(new java.awt.geom.Rectangle2D.Float(x, math.min(fyy1, fyy2),
                                                  w, math.abs(fyy1-fyy2)))
    }

    // Remaining color needs a gradient
    val cyy1 = P5Panel.map(colormap.filterVal,
                           colormap.minVal, colormap.maxVal,
                           y+h, y)
    val cyy2 = P5Panel.map(colormap.colorEnd,
                           colormap.minVal, colormap.maxVal,
                           y+h, y)
    val gradient = new java.awt.GradientPaint(
      0,   cyy1, colormap.color(colormap.filterVal),
      100, cyy2, colormap.color(colormap.colorEnd))
    g2.setPaint(gradient)
    g2.fill(new java.awt.geom.Rectangle2D.Float(x, math.min(cyy1,cyy2),
                                                w, math.abs(cyy1-cyy2)))
  }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/start_icon_dot_focused"   android:state_selected="true"/>
    <item android:drawable="@drawable/start_icn_dot_normal" android:state_selected="false"/>

</selector>


text:
/**
 *
 */
package com.tachographStructure.file.vuBlocks.subBlocks;

/**
 * @author negrero
 *
 */
public class VuActivityDailyData {

}


text:
<?php
/**
 * This field lets you put an arbitrary piece of HTML into your forms.
 *
 * @package forms
 * @subpackage fields-dataless
 */
class LiteralField extends DatalessField {

	/**
	 * @var string $content
	 */
	protected $content;

	function __construct($name, $content) {
		$this->content = $content;

		parent::__construct($name);
	}

	function FieldHolder() {
		return is_object($this->content) ? $this->content->forTemplate() : $this->content;
	}

	function Field() {
		return $this->FieldHolder();
	}

	/**
	 * Sets the content of this field to a new value
	 * @param string $content
	 */
	function setContent($content) {
		$this->content = $content;
	}

	/**
	 * @return string
	 */
	function getContent() {
		return $this->content;
	}

	function performReadonlyTransformation() {
		$clone = clone $this;
		$clone->setReadonly(true);
		return $clone;
	}
}

?>


text:
<?php
namespace Project\Application\Console\Commands;

use Opulence\Console\Commands\Command;
use Opulence\Console\Requests\Option;
use Opulence\Console\Requests\OptionTypes;
use Opulence\Console\Responses\IResponse;

/**
 * Defines an example "Hello, world" command
 */
class HelloWorldCommand extends Command
{
    /**
     * @inheritdoc
     */
    protected function define()
    {
        $this->setName('hello:world')
            ->setDescription('Defines an example console command')
            ->addOption(new Option(
                'yell',
                'y',
                OptionTypes::NO_VALUE,
                'Whether or not to yell'
            ));
    }

    /**
     * @inheritdoc
     */
    protected function doExecute(IResponse $response)
    {
        $message = 'Hello, world!';

        if ($this->optionIsSet('yell')) {
            $message = strtoupper($message);
        }

        $response->writeln("<info>$message</info>");
    }
}


text:
<?php

$root = dirname(dirname(dirname(__FILE__)));
require_once $root.'/scripts/__init_script__.php';
require_once $root.'/scripts/__init_env__.php';

$users = id(new PhabricatorUser())->loadAll();
echo "Exporting " . count($users) . " user photos\n";

$photo_path = isset($argv[1]) ? $argv[1] : '';
if (!$photo_path || !is_writable($photo_path)) {
  die("Please provide a writable target folder for user photos.\n");
}

foreach ($users as $user) {
  $username = $user->getUserName();
  echo "$username: ";
  $phid = $user->getPHID();
  $file_name = 'no photo';
  $profile = id(new PhabricatorUserProfile())->loadOneWhere('userPHID = %s', $phid);
  if ($profile) {
    $src_phid = $profile->getProfileImagePHID();
    if ($src_phid) {
      $picture = id(new PhabricatorFile())->loadOneWhere('phid = %s', $src_phid);
      if ($picture) {
        $file_name = "$photo_path/$username" . substr($picture->getName(), strrpos($picture->getName(), '.'));
        if (!file_exists($file_name) || (filemtime($file_name) < $picture->getDateModified())) {
          $blob_id = (int) $picture->getStorageHandle();
          $blob = id(new PhabricatorFileStorageBlob())->loadOneWhere('id = %d', $blob_id);
          file_put_contents($file_name, $blob->getData());
          echo " $file_name";
        } else {
          $file_name = 'not modified';
        }
      }
    }
  }

  echo "$file_name\n";
}

echo "Done.\n";


text:
module Data.Store.TypeHash
    ( Tagged(..)
    , TypeHash
    , HasTypeHash(..)
    -- * TH for generating HasTypeHash instances
    , mkHasTypeHash
    , mkManyHasTypeHash
    ) where

import Data.Store.TypeHash.Internal


text:
package com.intellij.javaee.oss.server;

import com.intellij.javaee.appServerIntegrations.ApplicationServer;

/**
 * @author VISTALL
 * @since 07-Jul-17
 */
public class JavaeeServerVersionProvider
{
	public JavaeeServerVersionProvider(ApplicationServer server)
	{

	}

	public String getValue()
	{
		return null;
	}
}


text:
/**
* @module TweenJS
*/

this.createjs = this.createjs||{};

(function() {
	"use strict";

	/**
	 * A TweenJS plugin for working with numeric CSS string properties (ex. top, left). To use simply install after
	 * TweenJS has loaded:
	 *
	 * 	createjs.CSSPlugin.install();
	 *
	 * CSSPlugin works with almost any style property or unit. It identifies CSS values by looking for an initial value
	 * on the element's `style` object. It also uses this initial value to parse out the units to use with that value.
	 *
	 * In the following example, `top` would be tweened as a style using `em` units using CSSPlugin, but `width`
	 * would be not be tweened as a style (because there is no initial inline style value for it).
	 *
	 * 	myEl.style.top = "10em";
	 * 	createjs.Tween.get(myEl).to({top:20, width:100}, 1000);
	 *
	 * CSSPlugin can also use computed styles. Please see {{#crossLink "AbstractTween/compute:property"}}{{/crossLink}}
	 * for more information.
	 *
	 * CSSPlugin has specific handling for the `transform` style, and will tween any transforms as long as their operations
	 * and units match. For example:
	 *
	 * 	myEl.style.transform = "translate(20px, 30px)";
	 * 	createjs.Tween.get(myEl)
	 * 		.to({transform: "translate(40px, 50px)"}, 900) // would be tweened, everything matches
	 * 		.to({transform: "translate(5em, 300px)"}, 900) // would NOT be tweened, different units (px vs em)
	 * 		.to({transform: "scaleX(2)"}, 900) // would NOT be tweened, different operations (translate vs rotate)
	 *
	 * You can also use `*` to copy the operation at that position from the previous transform.
	 *
	 * 	myEl.style.transform = "translate(0px, 0px) rotate(0deg)";
	 * 	createjs.Tween.get(myEl)
	 * 		.to({transform: "translate(50px, 50px) *"}, 900) // would copy the "rotate" operation
	 * 		.to({transform: "* rotate(90deg)"}, 900) // would copy the "translate" operation
	 *
	 * Please note that the CSS Plugin is not included in the TweenJS minified file.
	 * @class CSSPlugin
	 * @constructor
	 **/
	function CSSPlugin() {
		throw("CSSPlugin cannot be instantiated.")
	}
	var s = CSSPlugin;

// static properties
	/**
	 * @property priority
	 * @protected
	 * @static
	 **/
	s.priority = 100; // high priority, should read first and write last

	/**
	 * READ-ONLY. A unique identifying string for this plugin. Used by TweenJS to ensure duplicate plugins are not installed on a tween.
	 * @property ID
	 * @type {String}
	 * @static
	 * @readonly
	 **/
	s.ID = "CSS";

	/**
	 * READ-ONLY.
	 * @property VALUE_RE
	 * @type {RegExp}
	 * @static
	 * @readonly
	 */
	s.VALUE_RE = /^(-?[\d.]+)([a-z%]*)$/; // extracts the numeric value and suffix from a single CSS value

	s.TRANSFORM_VALUE_RE = /(?:^| |,)(-?[\d.]+)([a-z%]*)/g; // extracts the numeric value and suffix from comma delimited lists

	s.TRANSFORM_RE = /(\w+?)\(([^)]+)\)|(?:^| )(\*)(?:$| )/g; // extracts the components of a transform

	/**
	 * By default, CSSPlugin uses only inline styles on the target element (ie. set via the style attribute, `style` property, or `cssText`)
	 * to determine which properties should be tweened via CSS, and what units to use.
	 *
	 * Setting `compute` to `true` causes CSSPlugin to use `getComputedStyle` for this purpose. This has the advantage of
	 * including all styles that effect the target element, however there are some important considerations for its use:<UL>
	 * 	<LI> `getComputedStyle` is computationally expensive, which could lead to performance issues if you are creating a large
	 * 	number of tweens at once.
	 * 	<LI> styles are normalized. For example, a width value specified as a `%` may be computed as `px`, which CSSPlugin will
	 * 	use for the tween. Different browsers _may_ normalize values differently.
	 * 	<LI> there are a large number of computed styles, which increases the chance that a property will be identified as a style.
	 * 	<LI> does not work with IE8 or below.
	 * 	</UL>
	 *
	 * 	The `compute` setting can be overridden on a per-tween basis by setting `tween.pluginData.CSS_compute`. For example,
	 * 	to enable computed styles for a new tween, you could use:
	 *
	 * 		createjs.Tween.get(el, {pluginData:{CSS_compute:true}}).to({top:20}, 1000);
	 *
	 * 	Given the considerations for `compute`, it is recommended that you keep the default global setting of `false` and override it
	 * 	in specific cases via `pluginData`.
	 * @property compute
	 * @type {Boolean}
	 * @default false
	 * @static
	 */
	s.compute = false;

// static methods
	/**
	 * Installs this plugin for use with TweenJS. Call this once after TweenJS is loaded to enable this plugin.
	 * @method install
	 * @static
	 **/
	s.install = function() {
		createjs.Tween._installPlugin(CSSPlugin);
	};

	/**
	 * Called by TweenJS when a new property initializes on a tween.
	 * See {{#crossLink "SamplePlugin/init"}}{{/crossLink}} for more info.
	 * @method init
	 * @param {Tween} tween
	 * @param {String} prop
	 * @param {any} value
	 * @return {any}
	 * @static
	 **/
	s.init = function(tween, prop, value) {
		var data = tween.pluginData;
		if (data.CSS_disabled || !(tween.target instanceof HTMLElement)) { return; }
		var initVal = value||getStyle(tween.target, prop, data.CSS_compute);
		if (initVal === undefined) { return;  }

		tween._addPlugin(CSSPlugin);
		var cssData = data.CSS || (data.CSS = {});
		if (prop === "transform") {
			cssData[prop] = "_t";
			return parseTransform(initVal);
		}

		var result = s.VALUE_RE.exec(initVal);
		if (result === null) {
			// a string we can't handle numerically, so add it to the CSSData without a suffix.
			cssData[prop] = "";
			return initVal;
		} else {
			cssData[prop] = result[2];
			return parseFloat(result[1]);
		}
	};

	/**
	 * Called when a new step is added to a tween (ie. a new "to" action is added to a tween).
	 * See {{#crossLink "SamplePlugin/step"}}{{/crossLink}} for more info.
	 * @method step
	 * @param {Tween} tween
	 * @param {TweenStep} step
	 * @param {Object} props
	 * @static
	 **/
	s.step = function(tween, step, props) {
		if (props.transform) {
			step.props.transform = parseTransform(step.props.transform, step.prev.props.transform);
		}
	};

	/**
	 * Called before a property is updated by the tween.
	 * See {{#crossLink "SamplePlugin/change"}}{{/crossLink}} for more info.
	 * @method change
	 * @param {Tween} tween
	 * @param {TweenStep} step
	 * @param {String} prop
	 * @param {any} value
	 * @param {Number} ratio
	 * @param {Boolean} end
	 * @return {any}
	 * @static
	 **/
	s.change = function(tween, step, prop, value, ratio, end) {
		var sfx = tween.pluginData.CSS[prop];
		if (sfx === undefined) { return; }
		if (prop === "transform") {
			value = writeTransform(step.prev.props[prop], step.props[prop], ratio);
		} else {
			value += sfx;
		}
		tween.target.style[prop] = value;
		return createjs.Tween.IGNORE;
	};

// private helper methods:
	function getStyle(target, prop, compute) {
		if (compute || (compute == null && s.compute)) {
			return window.getComputedStyle(target)[prop];
		} else {
			return target.style[prop];
		}
	}

	function parseTransform(str, compare) {
		var result, list = [false, str];
		do {
			// pull out the next "component" of the transform (ex. "translate(10px, 20px)")
			result = s.TRANSFORM_RE.exec(str);
			if (!result) { break; }
			if (result[3] === "*") {
				// reuse previous value:
				list.push(compare[list.length]);
				continue;
			}
			var component = [result[1]], compareComp = compare && compare[list.length];

			// check that the operation type matches (ex. "translate" vs "rotate"):
			if (compare && (!compareComp || component[0] !== compareComp[0])) { console.log("transforms don't match: ",component[0],compareComp[0]); compare=null; } // component doesn't match

			parseMulti(result[2], compareComp, component);

			list.push(component);
		} while(true);

		list[0] = !!compare;
		return list;
	}

	// this was separated so that it can be used for other multi element styles in the future
	// ex. transform-origin, border, etc.
	function parseMulti(str, compare, arr) {
		// TODO: add logic to deal with "0" values? Troublesome because the browser automatically appends a unit for some 0 values.
		do {
			// pull out the next value (ex. "20px", "12.4rad"):
			var result = s.TRANSFORM_VALUE_RE.exec(str);
			if (!result) { return arr; }
			if (!arr) { arr = []; }
			arr.push(+result[1], result[2]);

			// check that the units match (ex. "px" vs "em"):
			if (compare && (compare[arr.length-1] !== result[2])) { console.log("transform units don't match: ",arr[0], compare[arr.length-1], result[2]); compare=null;  } // unit doesn't match
		} while(true);
	}

	function writeTransform(list0, list1, ratio) {
		// check if we should just use the original transform strings:
		if (ratio === 1) { return list1[1]; }
		if (ratio === 0 || !list1[0]) { return list0[1]; }

		// they match, we want to apply the ratio:
		var str = "", l=list0.length, i, j, jl;
		for (i=2; i<l; i++) {
			var component0 = list0[i], component1 = list1[i];
			str += component0[0]+"(";
			for (j=1, jl=component0.length; j<jl; j+=2) {
				str += component0[j]+(component1[j]-component0[j])*ratio; // value
				str += component1[j+1] || component0[j+1]; // unit
				if (j < jl-2) { str += ", "; }
			}
			str += ")";
			if (i < l-1) { str += " "; }
		}
		return str;
	}

	/*

	// this was part of an attempt to handle multi element css values, ex. margin="10px 10px 20px 30px"
	// discarded because the browser likes to collapse values, which makes a generic solution infeasible.
	// for example, margin="10px 10px 10px 10px" will collapse to just "10px"
	// requires custom logic to handle each scenario.
	s.MULTI_RE = /((?:^| )-?[\d.]+[a-z%]*){2,}/; // matches CSS values that consist of two or more values with suffixes
	function writeMulti(arr0, arr1, ratio) {
		var str = "", l=arr0.length, i;
		for (i=0; i<l; i+=2) {
			str += arr0[i]+(arr1[i]-arr0[i])*ratio+arr0[i+1];
			if (i < l-2) { str += " "; }
		}
		return str;
	}

	// this method is really only needed for roundtrip tests.
	function writeSingleTransform(list) {
		var str = "", l=list.length, i, j, jl, component;
		for (i=2; i<l; i++) {
			component = list[i];
			str += component[0]+"(";
			for (j=1, jl=component.length; j<jl; j+=2) {
				str += component[j]+component[j+1];
				if (j < jl-2) { str += ", "; }
			}
			str += ")";
			if (i < l-1) { str += " "; }
		}
		return str;
	}
	*/

	createjs.CSSPlugin = s;

}());


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ractoc.fs.templates.editor.scene;

import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.nodes.Node;
import org.openide.util.HelpCtx;

public class EtplWizardPanel1 implements WizardDescriptor.Panel<WizardDescriptor> {

    /**
     * The visual component that displays this panel. If you need to access the
     * component from this class, just use getComponent().
     */
    private EtplVisualPanel1 component;
    private final Node node;

    public EtplWizardPanel1(Node node) {
        this.node = node;
    }

    // Get the visual component for the panel. In this template, the component
    // is kept separate. This can be more efficient: if the wizard is created
    // but never displayed, or not all panels are displayed, it is better to
    // create only those which really need to be visible.
    @Override
    public EtplVisualPanel1 getComponent() {
        if (component == null) {
            component = new EtplVisualPanel1(node);
        }
        return component;
    }

    @Override
    public HelpCtx getHelp() {
        // Show no Help button for this panel:
        return HelpCtx.DEFAULT_HELP;
        // If you have context help:
        // return new HelpCtx("help.key.here");
    }

    @Override
    public boolean isValid() {
        // If it is always OK to press Next or Finish, then:
        return true;
        // If it depends on some condition (form filled out...) and
        // this condition changes (last form field filled in...) then
        // use ChangeSupport to implement add/removeChangeListener below.
        // WizardDescriptor.ERROR/WARNING/INFORMATION_MESSAGE will also be useful.
    }

    @Override
    public void addChangeListener(ChangeListener l) {
    }

    @Override
    public void removeChangeListener(ChangeListener l) {
    }

    @Override
    public void readSettings(WizardDescriptor wiz) {
        // use wiz.getProperty to retrieve previous panel state
    }

    @Override
    public void storeSettings(WizardDescriptor wiz) {
        wiz.putProperty("templateFile", component.getTemplateFile());
    }
}


text:
[![Dependency Status](https://david-dm.org/barcampio/barcamp-webapp.svg)](https://david-dm.org/barcampio/barcamp-webapp)
[![devDependency Status](https://david-dm.org/barcampio/barcamp-webapp/dev-status.svg)](https://david-dm.org/barcampio/barcamp-webapp#info=devDependencies)
[![Build Status](https://travis-ci.org/barcampio/barcamp-webapp.svg?branch=master)](https://travis-ci.org/barcampio/barcamp-webapp)
[![IRC](https://img.shields.io/badge/IRC-%23hackerspace--lbn-blue.svg)](https://webchat.freenode.net/)

#Barcamp.io

Barcamp.io is Open Source service. More information soon :)


text:
namespace Application\Form;

use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;

class ConnexionFormClassValidator implements InputFilterAwareInterface
{
    protected $inputFilter;

    public function setInputFilter(InputFilterInterface $inputFilter)
    {
        throw new \Exception("Not used");
    }

    public function getInputFilter()
    {
        if (!$this->inputFilter)
        {
            $inputFilter = new InputFilter();
            $factory = new InputFactory();

        $inputFilter->add($factory->createInput([
            'name' => 'mail',
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim'),
            ),
            'validators' => array(
                array (
                    'name' => 'EmailAddress',
                    'options' => array(
                        'messages' => array(
                            'emailAddressInvalidFormat' => 'Email address format is not invalid',
                        )
                    ),
                ),
                array (
                    'name' => 'NotEmpty',
                    'options' => array(
                        'messages' => array(
                            'isEmpty' => 'Email address is required',
                        )
                    ),
                ),
            ),
        ]));

        $inputFilter->add($factory->createInput([
            'name' => 'password',
            'filters' => array(
                array('name' => 'StripTags'),
                array('name' => 'StringTrim'),
            ),
            'validators' => array(
            ),
        ]));

            $this->inputFilter = $inputFilter;
        }

        return $this->inputFilter;
    }
}


text:
RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :deletion
    DatabaseCleaner.clean_with(:deletion)
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end


text:
New-Object psobject -Property @{
    Args = $args
}


text:
<resources>

    <string name="app_name">ArcMenuDemo</string>

</resources>