text:
package net.anotheria.moskito.core.stats.impl;

import net.anotheria.moskito.core.stats.IIntervalListener;
import net.anotheria.moskito.core.stats.Interval;
import net.anotheria.moskito.core.stats.IntervalRegistryListener;
import net.anotheria.moskito.core.stats.UnknownIntervalException;
import net.anotheria.moskito.core.timing.IUpdateTriggerService;
import net.anotheria.moskito.core.timing.UpdateTriggerServiceFactory;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * This class implements a registry singleton to hold and create Interval instances.
 *
 * @author lrosenberg
 */
public final class IntervalRegistry {

	/**
	 * This is the instance of the singleton.
	 */
	private static final IntervalRegistry instance = new IntervalRegistry();

	/**
	 * This Map holds all Intervals by their ids.
	 */
	private Map<Integer, Interval> intervalsById = new ConcurrentHashMap<>();

	/**
	 * This Map holds all Intervals by their names.
	 */
	private Map<String, Interval> intervalsByName = new ConcurrentHashMap<>();

	/**
	 * This map stores last update timestamps for registered intervals by name.
	 */
	private Map<String, Long> intervalUpdateTimestamp = new ConcurrentHashMap<>();

	/**
	 * This is a Thread-safe counter to generate VM-wide uniqe ids for new Interval instances.
	 */
	private AtomicInteger nextId = new AtomicInteger(1);

	/**
	 * This is a time control serive for periodic call backs.
	 */
	private IUpdateTriggerService updateTriggerService;

	/**
	 * This List holds all registered IntervalRegistryListeners.
	 *
	 * @see IntervalRegistryListener
	 */
	private List<IntervalRegistryListener> registryListeners = new CopyOnWriteArrayList<IntervalRegistryListener>();

	/**
	 * The constructor.
	 */
	private IntervalRegistry() {
		updateTriggerService = UpdateTriggerServiceFactory.getUpdateTriggerService();
    }

	/**
	 * This is the Singleton instance accessor method.
	 *
	 * @return the IntervalRegistry instance.
	 */
	public static IntervalRegistry getInstance() {
		return instance;
	}

	/**
	 * This method retrieves an Interval with the given id.
	 *
	 * @param aId the Interval id
	 * @return the found Interval
	 * @throws UnknownIntervalException if no Interval with the given id could be found
	 */
	Interval getInterval(int aId) {
		Interval interval = intervalsById.get(aId);
		if (interval == null) {
			throw new UnknownIntervalException(aId);
		}
		return interval;
	}

	/**
	 * This method retrieves an Interval with the given name. If no one could be found it will
	 * create a new Interval with given name and length.
	 * TODO: This method should be renamed to "getOrCreateInterval" or something like that
	 * TODO: This method MUST be synchonrized to avoid doublicate Interval instances....
	 *
	 * @param aName the Interval name
	 * @param aLength the length of the new Interval in seconds.
	 * @return the existing Interval or a new Interval with given name and length
	 */
	public Interval getInterval(String aName, int aLength) {
		Interval interval = intervalsByName.get(aName);
		if (interval == null)
			interval = createInterval(aName, aLength);
		return interval;
	}

	/**
	 * This method retrieves an Interval with the given name. If no one could be found it will
	 * create a new Interval with given name - the length will be a guess.
	 * TODO: This method should be renamed to "getOrCreateInterval" or something like that
	 * TODO: This method MUST be synchonrized to avoid double Interval instances....
	 *
	 * @param aName the Interval name
	 * @return the existing Interval or a new Interval with given name and guessed length
	 */
	public Interval getInterval(String aName) {
		Interval interval = intervalsByName.get(aName);
		if (interval == null) {
			interval = createInterval(aName, IntervalNameParser.guessLengthFromName(aName));
		}
		return interval;
	}

	/**
	 * This method creates a new Interval with the given name and length.
	 *
	 * @param aName the name of the new Interval
	 * @param aLength the length of the Interval in seconds
	 * @return the new Interval
	 */
	private Interval createInterval(String aName, int aLength) {
		IntervalImpl interval = new IntervalImpl(obtainNextUniqueId(), aName, aLength);

		if (aLength!=-1)
			updateTriggerService.addUpdateable(interval, aLength);

		intervalsById.put(interval.getId(), interval);
		intervalsByName.put(interval.getName(), interval);
		for (IntervalRegistryListener listener : registryListeners) {
			listener.intervalCreated(interval);
		}

		//add new listener to each interval to store update timestamps
		interval.addSecondaryIntervalListener(new IIntervalListener() {
			@Override
			public void intervalUpdated(Interval aCaller) {
				intervalUpdateTimestamp.put(aCaller.getName(), System.currentTimeMillis());
			}
		});
		return interval;
	}

	/**
	 * This method returns the next free id.
	 * @return the next id
	 */
	private int obtainNextUniqueId() {
		return nextId.getAndIncrement();
	}

	/**
	 * This method returns a list containing all known Intervals.
	 * @return the Interval list
	 */
	public List<Interval> getIntervals() {
		return new ArrayList<Interval>(intervalsByName.values());
	}

	/**
	 * Returns last update timestamp of an interval by name.
	 * @param intervalName name of the interval.
	 * @return returns the timestamp in milliseconds since 1970 for the interval update.
	 */
	public Long getUpdateTimestamp(String intervalName){
		return intervalName == null ? Long.valueOf(0) : intervalUpdateTimestamp.get(intervalName);
	}

	//this method is used by unit testing and force an interval to be updated
	public void forceUpdateIntervalForTestingPurposes(String intervalName){
		((IntervalImpl)getInterval(intervalName)).update();
	}

	public void addIntervalRegistryListener(IntervalRegistryListener listener){
		registryListeners.add(listener);
	}
}


text:
#ifndef __ACPLDSDDATA_H__
#define __ACPLDSDDATA_H__

#include "AcPl.h"
#include "AcPlObject.h"
#include "AcPlDSDEntry.h"
#include "AcArray.h"

#include "..\inc\zAcPlDSDData.h"

#ifndef ACHAR
#define ACHAR		ZTCHAR
#endif //#ifndef ACHAR

#ifndef ACPL_DECLARE_MEMBERS
#define ACPL_DECLARE_MEMBERS		ZCPL_DECLARE_MEMBERS
#endif //#ifndef ACPL_DECLARE_MEMBERS

#ifndef ACPL_PORT
#define ACPL_PORT		ZCPL_PORT
#endif //#ifndef ACPL_PORT

#ifndef AcArray
#define AcArray		ZcArray
#endif //#ifndef AcArray

#ifndef AcArrayObjectCopyReallocator
#define AcArrayObjectCopyReallocator		ZcArrayObjectCopyReallocator
#endif //#ifndef AcArrayObjectCopyReallocator

#ifndef AcPl
#define AcPl		ZcPl
#endif //#ifndef AcPl

#ifndef AcPl3dDwfOptions
#define AcPl3dDwfOptions		ZcPl3dDwfOptions
#endif //#ifndef AcPl3dDwfOptions

#ifndef AcPlDSDData
#define AcPlDSDData		ZcPlDSDData
#endif //#ifndef AcPlDSDData

#ifndef AcPlDSDEntries
#define AcPlDSDEntries		ZcPlDSDEntries
#endif //#ifndef AcPlDSDEntries

#ifndef AcPlDSDEntry
#define AcPlDSDEntry		ZcPlDSDEntry
#endif //#ifndef AcPlDSDEntry

#ifndef AcPlObject
#define AcPlObject		ZcPlObject
#endif //#ifndef AcPlObject

#endif //#ifndef __ACPLDSDDATA_H__

redpajama_set_name: RedPajamaGithub


text:
module EventBus
  class << self
    def fire_event(event, message='')
      puts "#{formatted_event(event)}: #{message}"
    end

    private

    def formatted_event(event)
      "zapp.event.#{event}"
    end
  end
end


text:
/**
 * Created by Dominic on 5/18/2017.
 */

import {Injectable} from '@angular/core';
import 'rxjs/add/operator/map'

import {PostReq} from "../post.service";
import {ServiceProvider, iZVolumeCreate, iVolumeCreate, iZVolumeEdit} from "../../interfaces/index";

@Injectable()
export class volumeService extends PostReq{

  createZVolume(zvol: iZVolumeCreate, serviceProvider: ServiceProvider) {
    serviceProvider.payLoad = zvol;
    return this.send(serviceProvider);
  }

  editZVolume(zvol: iZVolumeEdit, serviceProvider: ServiceProvider) {
    serviceProvider.payLoad = zvol;
    return this.send(serviceProvider);
  }

  createVolume(vol: iVolumeCreate, serviceProvider: ServiceProvider) {
    serviceProvider.payLoad = vol;
    return this.send(serviceProvider);
  }
}


text:
<?php

namespace common\models\base\ucenter;

use Yii;
use yii\behaviors\TimestampBehavior;
use common\models\UcenterMember;
/**
 * This is the model class for table "ucenter_catmiddle".
 *
 * @property integer $id
 * @property integer $uid
 * @property integer $cid
 * @property string $created_at
 * @property string $updated_at
 */
class Catmiddle extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'ucenter_catmiddle';
    }
    public function behaviors()
    {
        return [
            TimestampBehavior::className(),
        ];
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'cid'], 'integer'],
           // [['created_at', 'updated_at'], 'string', 'max' => 64]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'uid' => Yii::t('app', 'Uid'),
            'cid' => Yii::t('app', 'Cid'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
        ];
    }
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getUser()
    {
        return $this->hasMany(UcenterMember::className(), ['id' => 'uid']);
    }
}


text:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2015 Unicode, Inc.
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
For terms of use, see http://www.unicode.org/copyright.html
-->
<ldml>
	<identity>
		<version number="$Revision$"/>
		<language type="az"/>
		<script type="Cyrl"/>
	</identity>
	<metadata>
		<casingData>
			<casingItem type="currencyName">lowercase</casingItem>
			<casingItem type="day_format_except_narrow">lowercase</casingItem>
			<casingItem type="day_standalone_except_narrow">lowercase</casingItem>
			<casingItem type="language">lowercase</casingItem>
			<casingItem type="month_format_except_narrow">lowercase</casingItem>
			<casingItem type="month_standalone_except_narrow">lowercase</casingItem>
			<casingItem type="script">titlecase</casingItem>
			<casingItem type="symbol">lowercase</casingItem>
			<casingItem type="territory">titlecase</casingItem>
		</casingData>
	</metadata>
</ldml>


text:
#pragma once
#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/devops-guru/model/ProactiveOrganizationInsightSummary.h>
#include <aws/devops-guru/model/ReactiveOrganizationInsightSummary.h>
#include <utility>

namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils
{
namespace Json
{
  class JsonValue;
} // namespace Json
} // namespace Utils
namespace DevOpsGuru
{
namespace Model
{
  class AWS_DEVOPSGURU_API ListOrganizationInsightsResult
  {
  public:
    ListOrganizationInsightsResult();
    ListOrganizationInsightsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
    ListOrganizationInsightsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline const Aws::Vector<ProactiveOrganizationInsightSummary>& GetProactiveInsights() const{ return m_proactiveInsights; }

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline void SetProactiveInsights(const Aws::Vector<ProactiveOrganizationInsightSummary>& value) { m_proactiveInsights = value; }

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline void SetProactiveInsights(Aws::Vector<ProactiveOrganizationInsightSummary>&& value) { m_proactiveInsights = std::move(value); }

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline ListOrganizationInsightsResult& WithProactiveInsights(const Aws::Vector<ProactiveOrganizationInsightSummary>& value) { SetProactiveInsights(value); return *this;}

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline ListOrganizationInsightsResult& WithProactiveInsights(Aws::Vector<ProactiveOrganizationInsightSummary>&& value) { SetProactiveInsights(std::move(value)); return *this;}

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline ListOrganizationInsightsResult& AddProactiveInsights(const ProactiveOrganizationInsightSummary& value) { m_proactiveInsights.push_back(value); return *this; }

    /**
     *
An integer that specifies the number of open proactive insights in your
     * Amazon Web Services account.

     */
    inline ListOrganizationInsightsResult& AddProactiveInsights(ProactiveOrganizationInsightSummary&& value) { m_proactiveInsights.push_back(std::move(value)); return *this; }

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline const Aws::Vector<ReactiveOrganizationInsightSummary>& GetReactiveInsights() const{ return m_reactiveInsights; }

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline void SetReactiveInsights(const Aws::Vector<ReactiveOrganizationInsightSummary>& value) { m_reactiveInsights = value; }

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline void SetReactiveInsights(Aws::Vector<ReactiveOrganizationInsightSummary>&& value) { m_reactiveInsights = std::move(value); }

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline ListOrganizationInsightsResult& WithReactiveInsights(const Aws::Vector<ReactiveOrganizationInsightSummary>& value) { SetReactiveInsights(value); return *this;}

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline ListOrganizationInsightsResult& WithReactiveInsights(Aws::Vector<ReactiveOrganizationInsightSummary>&& value) { SetReactiveInsights(std::move(value)); return *this;}

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline ListOrganizationInsightsResult& AddReactiveInsights(const ReactiveOrganizationInsightSummary& value) { m_reactiveInsights.push_back(value); return *this; }

    /**
     *
An integer that specifies the number of open reactive insights in your Amazon
     * Web Services account.

     */
    inline ListOrganizationInsightsResult& AddReactiveInsights(ReactiveOrganizationInsightSummary&& value) { m_reactiveInsights.push_back(std::move(value)); return *this; }

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline const Aws::String& GetNextToken() const{ return m_nextToken; }

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline void SetNextToken(const char* value) { m_nextToken.assign(value); }

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline ListOrganizationInsightsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline ListOrganizationInsightsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}

    /**
     *
The pagination token to use to retrieve the next page of results for this
     * operation. If there are no more pages, this value is null.

     */
    inline ListOrganizationInsightsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}

  private:

    Aws::Vector<ProactiveOrganizationInsightSummary> m_proactiveInsights;

    Aws::Vector<ReactiveOrganizationInsightSummary> m_reactiveInsights;

    Aws::String m_nextToken;
  };

} // namespace Model
} // namespace DevOpsGuru
} // namespace Aws


text:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
    android:interpolator="@android:anim/decelerate_interpolator"
    android:zAdjustment="bottom" >

    <scale
        android:duration="@integer/config_activityAnimTime"
        android:fromXScale=".6"
        android:fromYScale=".6"
        android:pivotX="50%p"
        android:pivotY="50%p"
        android:toXScale="1.0"
        android:toYScale="1.0" />

    <alpha
        android:duration="@integer/config_activityAnimTime"
        android:fromAlpha="0.0"
        android:toAlpha="1.0" />

</set>


text:
/**
 * The DocsController is the api to get docs informations as json generated with `dox`
 *
 * @module DocsController
 *
 * @requires path - https://nodejs.org/api/path.html
 * @requires fs-extra - https://github.com/jprichardson/node-fs-extra
 *
 * @see http://sailsjs.org/#!documentation/controllers
 */

var fs = require('fs-extra');
var path = require('path');

/**
 * Generate docs for all JavaScript files in the config path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var config = function(req, res, next) {
  sails.log.debug(sails.config.paths);
  var name = 'config';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the api/controllers path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var controllers = function(req, res, next) {
  var name = 'controllers';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 *
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var policies = function(req, res, next) {
  sails.log.debug(sails.config.paths);
  var name = 'policies';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the api/services path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var services = function(req, res, next) {
  var name = 'services';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the api/adapters path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var adapters = function(req, res, next) {
  var name = 'adapters';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the api/models path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var models = function(req, res, next) {
  var name = 'models';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the api/hooks path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var hooks = function(req, res, next) {
  var name = 'hooks';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the api/blueprints path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var blueprints = function(req, res, next) {
  var name = 'blueprints';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Generate docs for all JavaScript files in the responses path
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var responses = function(req, res, next) {
  var name = 'responses';
  DocsService.parseDirname(name, sails.config.paths[name], {}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * TODO need a jade / html docs parser?
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var views = function(req, res, next) {
  res.json('TODO');
};

/**
 * Get all available docs
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var available = function(req, res, next) {
  res.json(DocsService.available());
};

/**
 * Get all docs they are list in `available`
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var all = function(req, res, next) {
  sails.log.debug("[DocsController:all]");
  DocsService.parseAll({highlight: true, lang: 'javascript'}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * Get all docs they are list in `available`
 *
 * @param {!object} req - Request
 * @param {!object} res - responses
 * @param {function} next
 */
var allAngular = function(req, res, next) {
  sails.log.debug("[DocsController:all]");
  DocsService.parseAllAngular({highlight: true, lang: 'javascript'}, function (err, jsDocObjs) {
    if(err) return res.serverError(err);
    res.json(jsDocObjs);
  });
};

/**
 * public api functions
 */
module.exports = {
  config: config,
  controllers: controllers,
  policies: policies,
  services: services,
  adapters: adapters,
  models: models,
  hooks: hooks,
  blueprints: blueprints,
  responses: responses,
  views: views,
  available: available,
  all: all,
  allAngular: allAngular,
};


text:
namespace Blacktau.OpenAuth.Client
{
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Net.Http.Headers;

    using Blacktau.OpenAuth.Client.Interfaces;

    public class HttpRequestHeaders : IHttpRequestHeaders
    {
        private readonly System.Net.Http.Headers.HttpRequestHeaders headers;

        public HttpRequestHeaders(System.Net.Http.Headers.HttpRequestHeaders headers)
        {
            this.headers = headers;
        }

        public HttpHeaderValueCollection<MediaTypeWithQualityHeaderValue> Accept => this.headers.Accept;

        public HttpHeaderValueCollection<StringWithQualityHeaderValue> AcceptCharset => this.headers.AcceptCharset;

        public HttpHeaderValueCollection<StringWithQualityHeaderValue> AcceptEncoding => this.headers.AcceptEncoding;

        public HttpHeaderValueCollection<StringWithQualityHeaderValue> AcceptLanguage => this.headers.AcceptLanguage;

        public AuthenticationHeaderValue Authorization
        {
            get
            {
                return this.headers.Authorization;
            }

            set
            {
                this.headers.Authorization = value;
            }
        }

        public CacheControlHeaderValue CacheControl
        {
            get
            {
                return this.headers.CacheControl;
            }

            set
            {
                this.headers.CacheControl = value;
            }
        }

        public HttpHeaderValueCollection<string> Connection => this.headers.Connection;

        public bool? ConnectionClose
        {
            get
            {
                return this.headers.ConnectionClose;
            }

            set
            {
                this.headers.ConnectionClose = value;
            }
        }

        public DateTimeOffset? Date
        {
            get
            {
                return this.headers.Date;
            }

            set
            {
                this.headers.Date = value;
            }
        }

        public HttpHeaderValueCollection<NameValueWithParametersHeaderValue> Expect => this.headers.Expect;

        public bool? ExpectContinue
        {
            get
            {
                return this.headers.ExpectContinue;
            }

            set
            {
                this.headers.ExpectContinue = value;
            }
        }

        public string From
        {
            get
            {
                return this.headers.From;
            }

            set
            {
                this.headers.From = value;
            }
        }

        public string Host
        {
            get
            {
                return this.headers.Host;
            }

            set
            {
                this.headers.Host = value;
            }
        }

        public HttpHeaderValueCollection<EntityTagHeaderValue> IfMatch => this.headers.IfMatch;

        public DateTimeOffset? IfModifiedSince
        {
            get
            {
                return this.headers.IfModifiedSince;
            }

            set
            {
                this.headers.IfModifiedSince = value;
            }
        }

        public HttpHeaderValueCollection<EntityTagHeaderValue> IfNoneMatch => this.headers.IfNoneMatch;

        public RangeConditionHeaderValue IfRange
        {
            get
            {
                return this.headers.IfRange;
            }

            set
            {
                this.headers.IfRange = value;
            }
        }

        public DateTimeOffset? IfUnmodifiedSince
        {
            get
            {
                return this.headers.IfUnmodifiedSince;
            }

            set
            {
                this.headers.IfUnmodifiedSince = value;
            }
        }

        public int? MaxForwards
        {
            get
            {
                return this.headers.MaxForwards;
            }

            set
            {
                this.headers.MaxForwards = value;
            }
        }

        public HttpHeaderValueCollection<NameValueHeaderValue> Pragma => this.headers.Pragma;

        public AuthenticationHeaderValue ProxyAuthorization
        {
            get
            {
                return this.headers.ProxyAuthorization;
            }

            set
            {
                this.headers.ProxyAuthorization = value;
            }
        }

        public RangeHeaderValue Range
        {
            get
            {
                return this.headers.Range;
            }

            set
            {
                this.headers.Range = value;
            }
        }

        public Uri Referrer
        {
            get
            {
                return this.headers.Referrer;
            }

            set
            {
                this.headers.Referrer = value;
            }
        }

        public HttpHeaderValueCollection<TransferCodingWithQualityHeaderValue> TE => this.headers.TE;

        public HttpHeaderValueCollection<string> Trailer => this.headers.Trailer;

        public HttpHeaderValueCollection<TransferCodingHeaderValue> TransferEncoding => this.headers.TransferEncoding;

        public bool? TransferEncodingChunked
        {
            get
            {
                return this.headers.TransferEncodingChunked;
            }

            set
            {
                this.headers.TransferEncodingChunked = value;
            }
        }

        public HttpHeaderValueCollection<ProductHeaderValue> Upgrade => this.headers.Upgrade;

        public HttpHeaderValueCollection<ProductInfoHeaderValue> UserAgent => this.headers.UserAgent;

        public HttpHeaderValueCollection<ViaHeaderValue> Via => this.headers.Via;

        public HttpHeaderValueCollection<WarningHeaderValue> Warning => this.headers.Warning;

        public void Add(string name, IEnumerable<string> values)
        {
            this.headers.Add(name, values);
        }

        public void Add(string name, string value)
        {
            this.headers.Add(name, value);
        }

        public void Clear()
        {
            this.headers.Clear();
        }

        public bool Contains(string name)
        {
            return this.headers.Contains(name);
        }

        public IEnumerator<KeyValuePair<string, IEnumerable<string>>> GetEnumerator()
        {
            return this.headers.GetEnumerator();
        }

        public IEnumerable GetValues(string name)
        {
            return this.headers.GetValues(name);
        }

        public bool Remove(string name)
        {
            return this.headers.Remove(name);
        }

        public bool TryAddWithoutValidation(string name, IEnumerable<string> values)
        {
            return this.headers.TryAddWithoutValidation(name, values);
        }

        public bool TryAddWithoutValidation(string name, string value)
        {
            return this.headers.TryAddWithoutValidation(name, value);
        }

        public bool TryGetValues(string name, out IEnumerable<string> values)
        {
            return this.headers.TryGetValues(name, out values);
        }
    }
}


text:
package com.serviceflow.fuzzbuzz.web.contoller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.fasterxml.jackson.databind.util.JSONWrappedObject;
import com.serviceflow.fuzzbuzz.service.api.FuzzBussService;

@RestController
public class FuzzBuzzContoller {

	@Autowired
	FuzzBussService fuzzBussService;

	@RequestMapping(value = "/api/calculate/{value}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
	public JSONWrappedObject calulateFuzzBuzz(@PathVariable Integer value) {
		return new JSONWrappedObject(null, null, fuzzBussService.calulateFuzzBuzz(value));
		//return fuzzBussService.calulateFuzzBuzz(value);
	}

}


text:
<?php

namespace Komin\Component\Console\StreamWrapper\Readable\InputStreamWrapper;

use Komin\Component\Console\StreamWrapper\Readable\InputStreamWrapper\PhpStdinStreamWrapper\PhpStdinStreamWrapper;

/**
 * StdinInputStreamWrapper
 * @author Lingtalfi
 * 2015-03-23
 *
 * We can use this wrapper to programmatically write into stdin,
 * or to track stdin's inputs.
 *
 *
 *
 *
 */
class StdinInputStreamWrapper
{
    protected $stdinWrapperResource;
    protected $userInputs;
    protected $registered;
    protected $initialContent;

    public function __construct($initialContent = '')
    {
        $this->registered = false;
        $this->userInputs = [];
        $this->initialContent = $initialContent;
    }

    //------------------------------------------------------------------------------/
    // IMPLEMENTS InputStreamWrapperInterface
    //------------------------------------------------------------------------------/
    /**
     * @return object, a StreamWrapper object as defined in php
     *                  (generally STDIN).
     */
    public function getInput()
    {
        if (false === $this->registered) {
            stream_wrapper_register('kominStdin', 'Komin\Component\Console\StreamWrapper\Readable\InputStreamWrapper\PhpStdinStreamWrapper\PhpStdinStreamWrapper');
            $this->registered = true;
        }

        $context = stream_context_create([
            'kominStdin' => [
                "wrapper" => $this,
            ],
        ]);
        return fopen("kominStdin://any", 'r+', false, $context);

    }

    //------------------------------------------------------------------------------/
    //
    //------------------------------------------------------------------------------/
    public function storeUserInput($input)
    {
        $this->userInputs[] = $input;
    }

    /**
     * @return array
     */
    public function getUserInputs($includeInitialContent = true)
    {
        $userInputs = $this->userInputs;
        if (true === $includeInitialContent) {
            array_unshift($userInputs, $this->initialContent);
        }
        return $userInputs;
    }

    public function getInitialContent()
    {
        return $this->initialContent;
    }
}


text:
import six
import sys
from six.moves.configparser import ConfigParser, RawConfigParser
from six.moves.urllib.parse import urlparse
from six.moves.urllib.request import getproxies, proxy_bypass

# Used when reading config values
TRUE_VALUES = set(('true', '1', 'yes', 'on', 't', 'y'))

# NOTE(chmouel): Imported from swift without the modular directory feature.
def readconf(conf_path, section_name=None, log_name=None, defaults=None,
             raw=False):
    """
    Read config file(s) and return config items as a dict

    :param conf_path: path to config file, or a file-like object
                     (hasattr readline)
    :param section_name: config section to read (will return all sections if
                     not defined)
    :param log_name: name to be used with logging (will use section_name if
                     not defined)
    :param defaults: dict of default values to pre-populate the config with
    :returns: dict of config items
    """
    if defaults is None:
        defaults = {}
    if raw:
        c = RawConfigParser(defaults)
    else:
        c = ConfigParser(defaults)
    if hasattr(conf_path, 'readline'):
        c.readfp(conf_path)
    else:
        success = c.read(conf_path)
        if not success:
            print("Unable to read config from %s" % conf_path)
            sys.exit(1)
    if section_name:
        if c.has_section(section_name):
            conf = dict(c.items(section_name))
        else:
            print("Unable to find %s config section in %s" %
                  (section_name, conf_path))
            sys.exit(1)
        if "log_name" not in conf:
            if log_name is not None:
                conf['log_name'] = log_name
            else:
                conf['log_name'] = section_name
    else:
        conf = {}
        for s in c.sections():
            conf.update({s: dict(c.items(s))})
        if 'log_name' not in conf:
            conf['log_name'] = log_name
    conf['__file__'] = conf_path
    return conf

def config_true_value(value):
    """
    Returns True if the value is either True or a string in TRUE_VALUES.
    Returns False otherwise.
    """
    return value is True or \
        (isinstance(value, six.string_types) and value.lower() in TRUE_VALUES)

def using_http_proxy(url):
    """
    Return True if the url will use HTTP proxy.
    Returns False otherwise.
    """
    up = urlparse(url)
    return up.scheme.lower() in getproxies() and not proxy_bypass(up.netloc)

def get_size_bytes(value):
    """
    Expand suffixes for object sizes.

    For example, '10k' becomes 10240, and '2M' becomes 2097152.
    """
    if not isinstance(value, six.string_types):
        raise TypeError
    value = value.strip()
    multiple = {
        'G': 1024 ** 3,
        'M': 1024 ** 2,
        'k': 1024,
    }.get(value[-1])
    if multiple is None:
        return int(value)
    return multiple * int(value[:-1])


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

namespace NBi.Core.ResultSet.Alteration.Merging
{
    public class CartesianProductEngine : IMergingEngine
    {
        private CartesianProductArgs Args { get; }

        public CartesianProductEngine(CartesianProductArgs args)
            => Args = args;

        public IResultSet Execute(IResultSet rs)
        {
            var secondRs = Args.ResultSetResolver.Execute();

            var initialColumnCount = rs.Columns.Count;
            foreach (DataColumn dataColumn in secondRs.Columns)
            {
                while (rs.Columns.Contains(dataColumn.ColumnName))
                    dataColumn.ColumnName = $"{dataColumn.ColumnName}_1";

                var newColumn = new DataColumn(dataColumn.ColumnName, dataColumn.DataType);
                rs.Columns.Add(newColumn);
            }

            if (secondRs.Rows.Count == 0 || secondRs.Columns.Count == 0)
            {
                rs.Table.Clear();
            }
            else
            {
                var firstItem = secondRs.Rows[0];
                foreach (DataRow row in rs.Rows)
                    foreach (DataColumn column in secondRs.Columns)
                        row[initialColumnCount + column.Ordinal] = firstItem[column.Ordinal];

                var newRows = new HashSet<DataRow>();
                foreach (var item in secondRs.Rows.Cast<DataRow>().Skip(1))
                {
                    foreach (DataRow row in rs.Rows)
                    {
                        var newRow = rs.Table.NewRow();
                        newRow.ItemArray = row.ItemArray;
                        foreach (DataColumn column in secondRs.Columns)
                            newRow[initialColumnCount + column.Ordinal] = item[column.Ordinal];
                        newRows.Add(newRow);
                    }
                }
                foreach (var newRow in newRows)
                    rs.Table.Rows.Add(newRow);
            }
            rs.Table.AcceptChanges();
            return rs;
        }
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>#info</TITLE>

<OBJECT TYPE="application/x-oleobject" CLASSID="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
	<PARAM NAME="Keyword" VALUE="#info">
</OBJECT>

#info

Syntax: #info

Displays the  number of actions, aliases,  variables, substitutes, antisubstitutes and highlights currently defined. It will also report the ignore status of actions and substitutions.


text:
version: 1.0.3
title: Umbrella Projects
---

实际上有时工程项目会变得很大. Mix 构建工具可以让我们将代码划分成多个程序, 使得项目变大的时候更易于管理.

{% include toc.html %}

## 介绍

创建一个 umbrella project 就像我们创建 Mix project 时一样, 只是多传入了 `--umbrella` 标志. 下面的例子中我们将创建一个机器学习的命令行工具. 你问为什么是一个机器学习工具? 为什么不呢? 它们将由一些学习算法和通用函数组成.

```shell
$ mix new machine_learning_toolkit --umbrella

* creating .gitignore
* creating README.md
* creating mix.exs
* creating apps
* creating config
* creating config/config.exs

Your umbrella project was created successfully.
Inside your project, you will find an apps/ directory
where you can create and host many apps:

    cd machine_learning_toolkit
    cd apps
    mix new my_app

Commands like "mix compile" and "mix test" when executed
in the umbrella project root will automatically run
for each application in the apps/ directory.
```

正如你在 shell 命令中看到的, Mix 为我们创建了一个项目的框架, 并有两个目录:

  - `apps/` - 我们子项目所在的地方
  - `config/` - 我们 umbrella 项目配置文件所在的地方

## 子项目

让我们切换到项目的 `machine_learning_toolkit/apps` 目录并用 Mix 创建三个普通的项目:

```shell
$ mix new utilities

* creating README.md
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/utilities.ex
* creating test
* creating test/test_helper.exs
* creating test/utilities_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd utilities
    mix test

Run "mix help" for more commands.

$ mix new datasets

* creating README.md
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/datasets.ex
* creating test
* creating test/test_helper.exs
* creating test/datasets_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd datasets
    mix test

Run "mix help" for more commands.

$ mix new svm

* creating README.md
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/svm.ex
* creating test
* creating test/test_helper.exs
* creating test/svm_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd svm
    mix test

Run "mix help" for more commands.
```

现在我们项目中的文件结构应该像这样:

```shell
$ tree
.
├── README.md
├── apps
│   ├── datasets
│   │   ├── README.md
│   │   ├── lib
│   │   │   └── datasets.ex
│   │   ├── mix.exs
│   │   └── test
│   │       ├── datasets_test.exs
│   │       └── test_helper.exs
│   ├── svm
│   │   ├── README.md
│   │   ├── lib
│   │   │   └── svm.ex
│   │   ├── mix.exs
│   │   └── test
│   │       ├── svm_test.exs
│   │       └── test_helper.exs
│   └── utilities
│       ├── README.md
│       ├── lib
│       │   └── utilities.ex
│       ├── mix.exs
│       └── test
│           ├── test_helper.exs
│           └── utilities_test.exs
├── config
│   └── config.exs
└── mix.exs
```

当切回 umbrella 项目的根目录时, 可以发现我们可以调用所有常见的命令, 比如: compile(编译). 所有的子项目也是普通的 application,你可以切到他们的目录和通常项目一样做 Mix 可以做的事.

```bash
$ mix compile

==> svm
Compiled lib/svm.ex
Generated svm app

==> datasets
Compiled lib/datasets.ex
Generated datasets app

==> utilities
Compiled lib/utilities.ex
Generated utilities app

Consolidated List.Chars
Consolidated Collectable
Consolidated String.Chars
Consolidated Enumerable
Consolidated IEx.Info
Consolidated Inspect
```

## IEx

你也许认为和 umbrella 项目在 IEx 中交互会有些区别. 不管你信不信, 你猜错了! 当我们切到顶层目录并用 `iex -S mix` 启动 IEx, 我们可以正常的和所有项目进行交互. 让我们改变一下 `apps/datasets/lib/datasets.ex` 的内容来举个例子:

```elixir
defmodule Datasets do
  def hello do
    IO.puts("Hello, I'm the datasets")
  end
end
```

```shell
$ iex -S mix
Erlang/OTP {{ site.erlang.OTP }} [erts-{{ site.erlang.erts }}] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

==> datasets
Compiled lib/datasets.ex
Consolidated List.Chars
Consolidated Collectable
Consolidated String.Chars
Consolidated Enumerable
Consolidated IEx.Info
Consolidated Inspect
Interactive Elixir ({{ site.elixir.version }}) - press Ctrl+C to exit (type h() ENTER for help)

iex> Datasets.hello
Hello, I'm the datasets
:ok
```


text:
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component, Input, Output, EventEmitter, HostListener, ElementRef, ChangeDetectionStrategy } from '@angular/core';
import { select } from 'd3-selection';
import { roundedRect } from '../common/shape.helper';
import { id } from '../utils/id';
var BarComponent = /** @class */ (function () {
    function BarComponent(element) {
        this.roundEdges = true;
        this.gradient = false;
        this.offset = 0;
        this.isActive = false;
        this.animations = true;
        this.select = new EventEmitter();
        this.activate = new EventEmitter();
        this.deactivate = new EventEmitter();
        this.initialized = false;
        this.hasGradient = false;
        this.element = element.nativeElement;
    }
    BarComponent.prototype.ngOnChanges = function (changes) {
        if (!this.initialized) {
            this.loadAnimation();
            this.initialized = true;
        }
        else {
            this.update();
        }
    };
    BarComponent.prototype.update = function () {
        this.gradientId = 'grad' + id().toString();
        this.gradientFill = "url(#" + this.gradientId + ")";
        if (this.gradient || this.stops) {
            this.gradientStops = this.getGradient();
            this.hasGradient = true;
        }
        else {
            this.hasGradient = false;
        }
        this.updatePathEl();
    };
    BarComponent.prototype.loadAnimation = function () {
        this.path = this.getStartingPath();
        setTimeout(this.update.bind(this), 100);
    };
    BarComponent.prototype.updatePathEl = function () {
        var node = select(this.element).select('.bar');
        var path = this.getPath();
        if (this.animations) {
            node.transition().duration(500)
                .attr('d', path);
        }
        else {
            node.attr('d', path);
        }
    };
    BarComponent.prototype.getGradient = function () {
        if (this.stops) {
            return this.stops;
        }
        return [
            {
                offset: 0,
                color: this.fill,
                opacity: this.getStartOpacity()
            },
            {
                offset: 100,
                color: this.fill,
                opacity: 1
            }
        ];
    };
    BarComponent.prototype.getStartingPath = function () {
        if (!this.animations) {
            return this.getPath();
        }
        var radius = this.getRadius();
        var path;
        if (this.roundEdges) {
            if (this.orientation === 'vertical') {
                radius = Math.min(this.height, radius);
                path = roundedRect(this.x, this.y + this.height, this.width, 1, 0, this.edges);
            }
            else if (this.orientation === 'horizontal') {
                radius = Math.min(this.width, radius);
                path = roundedRect(this.x, this.y, 1, this.height, 0, this.edges);
            }
        }
        else {
            if (this.orientation === 'vertical') {
                path = roundedRect(this.x, this.y + this.height, this.width, 1, 0, this.edges);
            }
            else if (this.orientation === 'horizontal') {
                path = roundedRect(this.x, this.y, 1, this.height, 0, this.edges);
            }
        }
        return path;
    };
    BarComponent.prototype.getPath = function () {
        var radius = this.getRadius();
        var path;
        if (this.roundEdges) {
            if (this.orientation === 'vertical') {
                radius = Math.min(this.height, radius);
                path = roundedRect(this.x, this.y, this.width, this.height, radius, this.edges);
            }
            else if (this.orientation === 'horizontal') {
                radius = Math.min(this.width, radius);
                path = roundedRect(this.x, this.y, this.width, this.height, radius, this.edges);
            }
        }
        else {
            path = roundedRect(this.x, this.y, this.width, this.height, radius, this.edges);
        }
        return path;
    };
    BarComponent.prototype.getRadius = function () {
        var radius = 0;
        if (this.roundEdges && this.height > 5 && this.width > 5) {
            radius = Math.floor(Math.min(5, this.height / 2, this.width / 2));
        }
        return radius;
    };
    BarComponent.prototype.getStartOpacity = function () {
        if (this.roundEdges) {
            return 0.2;
        }
        else {
            return 0.5;
        }
    };
    Object.defineProperty(BarComponent.prototype, "edges", {
        get: function () {
            var edges = [false, false, false, false];
            if (this.roundEdges) {
                if (this.orientation === 'vertical') {
                    if (this.data.value > 0) {
                        edges = [true, true, false, false];
                    }
                    else {
                        edges = [false, false, true, true];
                    }
                }
                else if (this.orientation === 'horizontal') {
                    if (this.data.value > 0) {
                        edges = [false, true, false, true];
                    }
                    else {
                        edges = [true, false, true, false];
                    }
                }
            }
            return edges;
        },
        enumerable: true,
        configurable: true
    });
    BarComponent.prototype.onMouseEnter = function () {
        this.activate.emit(this.data);
    };
    BarComponent.prototype.onMouseLeave = function () {
        this.deactivate.emit(this.data);
    };
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "fill", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "data", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "width", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "height", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "x", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "y", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "orientation", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Boolean)
    ], BarComponent.prototype, "roundEdges", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Boolean)
    ], BarComponent.prototype, "gradient", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "offset", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Boolean)
    ], BarComponent.prototype, "isActive", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Array)
    ], BarComponent.prototype, "stops", void 0);
    __decorate([
        Input(),
        __metadata("design:type", Boolean)
    ], BarComponent.prototype, "animations", void 0);
    __decorate([
        Input(),
        __metadata("design:type", String)
    ], BarComponent.prototype, "ariaLabel", void 0);
    __decorate([
        Output(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "select", void 0);
    __decorate([
        Output(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "activate", void 0);
    __decorate([
        Output(),
        __metadata("design:type", Object)
    ], BarComponent.prototype, "deactivate", void 0);
    __decorate([
        HostListener('mouseenter'),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", []),
        __metadata("design:returntype", void 0)
    ], BarComponent.prototype, "onMouseEnter", null);
    __decorate([
        HostListener('mouseleave'),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", []),
        __metadata("design:returntype", void 0)
    ], BarComponent.prototype, "onMouseLeave", null);
    BarComponent = __decorate([
        Component({
            selector: 'g[ngx-charts-bar]',
            template: "\n    <svg:defs *ngIf=\"hasGradient\">\n      <svg:g ngx-charts-svg-linear-gradient\n        [orientation]=\"orientation\"\n        [name]=\"gradientId\"\n        [stops]=\"gradientStops\"\n      />\n    </svg:defs>\n    <svg:path\n      class=\"bar\"\n      stroke=\"none\"\n      role=\"img\"\n      tabIndex=\"-1\"\n      [class.active]=\"isActive\"\n      [attr.d]=\"path\"\n      [attr.aria-label]=\"ariaLabel\"\n      [attr.fill]=\"hasGradient ? gradientFill : fill\"\n      (click)=\"select.emit(data)\"\n    />\n  ",
            changeDetection: ChangeDetectionStrategy.OnPush
        }),
        __metadata("design:paramtypes", [ElementRef])
    ], BarComponent);
    return BarComponent;
}());
export { BarComponent };
//# sourceMappingURL=bar.component.js.map


text:
<?php $this->load->view("admin/includes/header");?>

GLOSSARY (<?=count($glossary);?>)

<?php if(!empty($glossary)):?>

			ID
			Title
			Description
			Action

	<?php $i = 1;
	foreach($glossary as $glsry):
	?>

			<?=$i;?>
			<?=$glsry->title;?>
			<?=$glsry->description;?>
			<span class="fa fa-trash btn btn-xs deleteGlossary" data-id="<?=$glsry->glossaryID;?>" title="Delete this glossary item">

		<?php $i++; endforeach;?>

<?php else:?>

				NO GLOSSARY AVAILABLE .

<?php endif;?>

			<form action="/admin/ajax/glossaryAction" id="newGlossaryForm" method="POST" class="form-horizontal">
				<input type="hidden" name="action" value="addNew">

					<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Add New Glossary Item

                               <input type="text" name="title" placeholder="Title" class="form-control">

                                <textarea name="description" placeholder="Description" class="form-control"></textarea>

					<button type="submit" class="btn-secondary">Save</button>
					<button class="btn" data-dismiss="modal">Cancel</button>

			 </form>

<?php $this->load->view("admin/includes/scripts");?>

<?php $this->load->view("admin/includes/footer");?>


text:
from encryptDecryptText import *

def encrypt_file(file_name, key):
    with open(file_name, 'rb') as fo:
        plaintext = fo.read()
    enc = encrypt(plaintext, key)
    #with open(file_name + ".enc", 'wb') as fo:
    #    fo.write(enc)
    with open(file_name, 'wb') as fo:
        fo.write(enc)

def decrypt_file(file_name, key):
    with open(file_name, 'rb') as fo:
        ciphertext = fo.read()
    dec = decrypt(ciphertext, key)
    #with open(file_name[:-4], 'wb') as fo:
    #    fo.write(dec)
    with open(file_name, 'wb') as fo:
        fo.write(dec)


text:
require 'trulioo/api'
require 'trulioo/connector'

module Trulioo
  # Trulioo::Client handles the Connector and the different API endpoints for
  # easy access.
  class Client
    attr_reader :connector, :configuration, :connection, :verifications

    def initialize(settings = Trulioo.settings)
      @connector = Trulioo::Connector.new(settings)
      @configuration = Trulioo::API::Configuration.new(self)
      @connection = Trulioo::API::Connection.new(self)
      @verifications = Trulioo::API::Verifications.new(self)
    end
  end
end


text:
package org.apache.camel.component.salesforce.api.utils;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

/**
 * Factory class for creating {@linkplain com.fasterxml.jackson.databind.ObjectMapper}
 */
public abstract class JsonUtils {
    public static ObjectMapper createObjectMapper() {
        // enable date time support including Java 1.8 ZonedDateTime
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
        objectMapper.registerModule(new DateTimeModule());
        return objectMapper;
    }

}


text:
<?php

$this->widget('zii.widgets.grid.CGridView', array(
    'pager' => array(
        'header' => '',
        'firstPageLabel' => '<<',
        'prevPageLabel' => 'Anterior',
        'nextPageLabel' => 'Siguiente',
        'lastPageLabel' => '>>',
        'maxButtonCount' => 3
    ),
    'id' => 'grid-cuenta-listacotizaciones',
    'beforeAjaxUpdate' => new CJavaScriptExpression("function() { $.mobile.loading('show'); }"),
    'afterAjaxUpdate' => new CJavaScriptExpression("function() { $.mobile.loading('hide'); }"),
    'ajaxUpdateError' => new CJavaScriptExpression("function() { $.mobile.loading('hide'); alert('Error, intente de nuevo');}"),
    'dataProvider' => $model->search(array('order' => "t.fechaCotizacion DESC", 'pageSize' => 5, 'with'=>array('objCiudad'))),
    'columns' => array(
        array(
            'header' => '#',
            //'name' => 'idCotizacion',
            'value' => '$data->idCotizacion',
        ),
        array(
            'header' => 'Fecha',
            'value' => array($this, 'gridFechaCotizacion'),
        ),
        array(
            'header' => 'Ciudad',
            'value' => '$data->objCiudad->nombreCiudad',
        ),
        array(
            'header' => 'Total',
            'value' => 'Yii::app()->numberFormatter->format(Yii::app()->params->formatoMoneda["patron"], $data->totalCompra, Yii::app()->params->formatoMoneda["moneda"])',
        ),
        array(
            'header' => 'Detalle',
            'type' => 'raw',
            'value' => array($this, 'gridDetalleCotizacion'),
        ),
    ),
));
?>


text:
<?xml version="1.0" encoding="utf-8"?>
<form>
	<fieldset addfieldpath="/administrator/components/com_categories/models/fields" >
		<field name="id"  type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
			description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
			readonly="true" />

		<field name="asset_id" type="hidden" filter="unset" />

		<field name="title" type="text" label="JGLOBAL_TITLE"
			description="JFIELD_TITLE_DESC"
			class="input-xxlarge input-large-text"
			size="40"
			required="true" />

		<field name="alias" type="text" label="JFIELD_ALIAS_LABEL"
			description="JFIELD_ALIAS_DESC"
			hint="JFIELD_ALIAS_PLACEHOLDER"
			size="40" />

		<field name="version_note" type="text" label="JGLOBAL_FIELD_VERSION_NOTE_LABEL"
			description="JGLOBAL_FIELD_VERSION_NOTE_DESC"
			class="span12"
			size="45" />

		<field name="articletext" type="editor"
			label="COM_CONTENT_FIELD_ARTICLETEXT_LABEL" description="COM_CONTENT_FIELD_ARTICLETEXT_DESC"
			filter="JComponentHelper::filterText" buttons="true" />

		<field name="state" type="list" label="JSTATUS"
			description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
			filter="intval" size="1" default="1"
		>
			<option value="1">
				JPUBLISHED</option>
			<option value="0">
				JUNPUBLISHED</option>
			<option value="2">
				JARCHIVED</option>
			<option value="-2">
				JTRASHED</option>
		</field>

		<field name="catid" type="categoryedit"
			label="JCATEGORY" description="JFIELD_CATEGORY_DESC"
			required="true"
		>
		</field>

		<field name="tags"
			type="tag"
			label="JTAG"
			description="JTAG_DESC"
			class="span12"
			multiple="true"
		>
		</field>

		<field
			name="buttonspacer"
			description="JGLOBAL_ACTION_PERMISSIONS_DESCRIPTION"
			type="spacer" />

		<field name="created" type="calendar" label="COM_CONTENT_FIELD_CREATED_LABEL"
			description="COM_CONTENT_FIELD_CREATED_DESC" size="22"
			format="%Y-%m-%d %H:%M:%S" filter="user_utc" />

		<field name="created_by" type="user"
			label="COM_CONTENT_FIELD_CREATED_BY_LABEL" description="COM_CONTENT_FIELD_CREATED_BY_DESC" />

		<field name="created_by_alias" type="text"
			label="COM_CONTENT_FIELD_CREATED_BY_ALIAS_LABEL" description="COM_CONTENT_FIELD_CREATED_BY_ALIAS_DESC"
			size="20" />

		<field name="modified" type="calendar" class="readonly"
			label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
			size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />

		<field name="modified_by" type="user"
		label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
		class="readonly"
		readonly="true"
		filter="unset"
		 />

		<field name="checked_out" type="hidden" filter="unset" />

		<field name="checked_out_time" type="hidden" filter="unset" />

		<field name="publish_up" type="calendar"
			label="COM_CONTENT_FIELD_PUBLISH_UP_LABEL" description="COM_CONTENT_FIELD_PUBLISH_UP_DESC"
			format="%Y-%m-%d %H:%M:%S" size="22"
			filter="user_utc" />

		<field name="publish_down" type="calendar"
			label="COM_CONTENT_FIELD_PUBLISH_DOWN_LABEL" description="COM_CONTENT_FIELD_PUBLISH_DOWN_DESC"
			format="%Y-%m-%d %H:%M:%S" size="22"
			filter="user_utc" />

		<field name="version" type="text" class="readonly"
			label="COM_CONTENT_FIELD_VERSION_LABEL" size="6" description="COM_CONTENT_FIELD_VERSION_DESC"
			readonly="true" filter="unset" />

		<field name="ordering" type="text" label="JFIELD_ORDERING_LABEL"
			description="JFIELD_ORDERING_DESC" size="6"
			default="0" />

		<field name="metakey" type="textarea"
			label="JFIELD_META_KEYWORDS_LABEL" description="JFIELD_META_KEYWORDS_DESC"
			rows="3" cols="30" />

		<field name="metadesc" type="textarea"
			label="JFIELD_META_DESCRIPTION_LABEL" description="JFIELD_META_DESCRIPTION_DESC"
			rows="3" cols="30" />

		<field name="access" type="accesslevel" label="JFIELD_ACCESS_LABEL"
			description="JFIELD_ACCESS_DESC" size="1" />

		<field name="hits" type="text" label="JGLOBAL_HITS"
			description="COM_CONTENT_FIELD_HITS_DESC" class="readonly" size="6"
			readonly="true" filter="unset" />

		<field name="language" type="contentlanguage" label="JFIELD_LANGUAGE_LABEL"
			description="COM_CONTENT_FIELD_LANGUAGE_DESC"
		>
			<option value="*">JALL</option>
		</field>

		<field name="featured" type="radio"
			class="btn-group btn-group-yesno"
			label="JFEATURED"
			description="COM_CONTENT_FIELD_FEATURED_DESC"
			default="0"
		>
			<option value="1">JYES</option>
			<option value="0">JNO</option>
		</field>

		<field name="rules" type="rules" label="JFIELD_RULES_LABEL"
			translate_label="false" filter="rules"
			component="com_content" section="article" validate="rules"
		/>

	</fieldset>

	<fields name="attribs" label="COM_CONTENT_ATTRIBS_FIELDSET_LABEL">
		<fieldset name="basic" label="COM_CONTENT_ATTRIBS_FIELDSET_LABEL">
			<field
				name="show_title"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_TITLE_LABEL"
				description="JGLOBAL_SHOW_TITLE_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="1">JSHOW</option>
				<option value="0">JHIDE</option>
			</field>

			<field
				name="link_titles"
				type="list"
				class="chzn-color"
				label="JGLOBAL_LINKED_TITLES_LABEL"
				description="JGLOBAL_LINKED_TITLES_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field name="show_tags"
				type="list"
				class="chzn-color"
				label="COM_CONTENT_FIELD_SHOW_TAGS_LABEL"
				description="COM_CONTENT_FIELD_SHOW_TAGS_DESC"
			>
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="1">JSHOW</option>
				<option value="0">JHIDE</option>
			</field>

			<field name="show_intro"
				type="list"
				class="chzn-color"
				description="JGLOBAL_SHOW_INTRO_DESC"
				label="JGLOBAL_SHOW_INTRO_LABEL"
				>
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="1">JSHOW</option>
				<option value="0">JHIDE</option>
			</field>
			<field
				name="info_block_position"
				type="list"
				default=""
				label="COM_CONTENT_FIELD_INFOBLOCK_POSITION_LABEL"
				description="COM_CONTENT_FIELD_INFOBLOCK_POSITION_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="0">COM_CONTENT_FIELD_OPTION_ABOVE</option>
				<option value="1">COM_CONTENT_FIELD_OPTION_BELOW</option>
				<option value="2">COM_CONTENT_FIELD_OPTION_SPLIT</option>
			</field>

			<field
				name="show_category"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_CATEGORY_LABEL"
				description="JGLOBAL_SHOW_CATEGORY_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="link_category"
				type="list"
				class="chzn-color"
				label="JGLOBAL_LINK_CATEGORY_LABEL"
				description="JGLOBAL_LINK_CATEGORY_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JNO</option>
				<option	value="1">JYES</option>
			</field>

			<field
				name="show_parent_category"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_PARENT_CATEGORY_LABEL"
				description="JGLOBAL_SHOW_PARENT_CATEGORY_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="link_parent_category"
				type="list"
				class="chzn-color"
				label="JGLOBAL_LINK_PARENT_CATEGORY_LABEL"
				description="JGLOBAL_LINK_PARENT_CATEGORY_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JNO</option>
				<option	value="1">JYES</option>
			</field>

			<field
				name="show_author"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_AUTHOR_LABEL"
				description="JGLOBAL_SHOW_AUTHOR_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="link_author"
				type="list"
				class="chzn-color"
				label="JGLOBAL_LINK_AUTHOR_LABEL"
				description="JGLOBAL_LINK_AUTHOR_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JNO</option>
				<option	value="1">JYES</option>
			</field>

			<field
				name="show_create_date"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_CREATE_DATE_LABEL"
				description="JGLOBAL_SHOW_CREATE_DATE_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_modify_date"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_MODIFY_DATE_LABEL"
				description="JGLOBAL_SHOW_MODIFY_DATE_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_publish_date"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_PUBLISH_DATE_LABEL"
				description="JGLOBAL_SHOW_PUBLISH_DATE_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_item_navigation"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_NAVIGATION_LABEL"
				description="JGLOBAL_SHOW_NAVIGATION_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_icons"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_ICONS_LABEL"
				description="JGLOBAL_SHOW_ICONS_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_print_icon"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_PRINT_ICON_LABEL"
				description="JGLOBAL_SHOW_PRINT_ICON_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_email_icon"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_EMAIL_ICON_LABEL"
				description="JGLOBAL_SHOW_EMAIL_ICON_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_vote"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_VOTE_LABEL"
				description="JGLOBAL_SHOW_VOTE_DESC"
			>
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_hits"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_HITS_LABEL"
				description="JGLOBAL_SHOW_HITS_DESC">
				<option	value="">JGLOBAL_USE_GLOBAL</option>
				<option	value="0">JHIDE</option>
				<option	value="1">JSHOW</option>
			</field>

			<field
				name="show_noauth"
				type="list"
				class="chzn-color"
				label="JGLOBAL_SHOW_UNAUTH_LINKS_LABEL"
				description="JGLOBAL_SHOW_UNAUTH_LINKS_DESC">
						<option value="">JGLOBAL_USE_GLOBAL</option>
						<option value="0">JNO</option>
						<option value="1">JYES</option>
			</field>

			<field
				name="urls_position"
				type="list"
				class="chzn-color"
				label="COM_CONTENT_FIELD_URLSPOSITION_LABEL"
				description="COM_CONTENT_FIELD_URLSPOSITION_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="0">COM_CONTENT_FIELD_OPTION_ABOVE</option>
				<option value="1">COM_CONTENT_FIELD_OPTION_BELOW</option>
			</field>

			<field
				name="spacer2"
				type="spacer"
				hr="true"
			/>

			<field name="alternative_readmore" type="text"
				label="JFIELD_READMORE_LABEL"
				description="JFIELD_READMORE_DESC"
				size="25" />

			<field name="article_layout" type="componentlayout"
				label="JFIELD_ALT_LAYOUT_LABEL"
				description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
				useglobal="true"
				extension="com_content" view="article"
			/>
		</fieldset>

		<fieldset name="editorConfig" label="COM_CONTENT_EDITORCONFIG_FIELDSET_LABEL">
			<field
				name="show_publishing_options"
				type="list"
				class="chzn-color"
				default=""
				label="COM_CONTENT_SHOW_PUBLISHING_OPTIONS_LABEL"
				description="COM_CONTENT_SHOW_PUBLISHING_OPTIONS_DESC"
				>
						<option value="">JGLOBAL_USE_GLOBAL</option>
						<option value="0">JNO</option>
						<option value="1">JYES</option>

			</field>
			<field
				name="show_article_options"
				type="list"
				class="chzn-color"
				default=""
				label="COM_CONTENT_SHOW_ARTICLE_OPTIONS_LABEL"
				description="COM_CONTENT_SHOW_ARTICLE_OPTIONS_DESC"
				>
						<option value="">JGLOBAL_USE_GLOBAL</option>
						<option value="0">JNO</option>
						<option value="1">JYES</option>

			</field>
			<field
				name="show_urls_images_backend"
				type="list"
				class="chzn-color"
				default=""
				label="COM_CONTENT_SHOW_IMAGES_URLS_BACK_LABEL"
				description="COM_CONTENT_SHOW_IMAGES_URLS_BACK_DESC"
				>
						<option value="">JGLOBAL_USE_GLOBAL</option>
						<option value="0">JNO</option>
						<option value="1">JYES</option>

			</field>
			<field
				name="show_urls_images_frontend"
				type="list"
				class="chzn-color"
				default=""
				label="COM_CONTENT_SHOW_IMAGES_URLS_FRONT_LABEL"
				description="COM_CONTENT_SHOW_IMAGES_URLS_FRONT_DESC"
				>
						<option value="">JGLOBAL_USE_GLOBAL</option>
						<option value="0">JNO</option>
						<option value="1">JYES</option>
			</field>
		</fieldset>

		<fieldset name="basic-limited" label="COM_CONTENT_ATTRIBS_FIELDSET_LABEL">
			<field
				name="show_title"
				type="hidden"
				label="JGLOBAL_SHOW_TITLE_LABEL"
				description="JGLOBAL_SHOW_TITLE_DESC"
				>
			</field>

			<field
				name="link_titles"
				type="hidden"
				label="JGLOBAL_LINKED_TITLES_LABEL"
				description="JGLOBAL_LINKED_TITLES_DESC">
			</field>

			<field name="show_intro"
				type="hidden"
				description="JGLOBAL_SHOW_INTRO_DESC"
				label="JGLOBAL_SHOW_INTRO_LABEL"
				>
			</field>

			<field
				name="show_category"
				type="hidden"
				label="JGLOBAL_SHOW_CATEGORY_LABEL"
				description="JGLOBAL_SHOW_CATEGORY_DESC">
			</field>

			<field
				name="link_category"
				type="hidden"
				label="JGLOBAL_LINK_CATEGORY_LABEL"
				description="JGLOBAL_LINK_CATEGORY_DESC">
			</field>

			<field
				name="show_parent_category"
				type="hidden"
				label="JGLOBAL_SHOW_PARENT_CATEGORY_LABEL"
				description="JGLOBAL_SHOW_PARENT_CATEGORY_DESC">
			</field>

			<field
				name="link_parent_category"
				type="hidden"
				label="JGLOBAL_LINK_PARENT_CATEGORY_LABEL"
				description="JGLOBAL_LINK_PARENT_CATEGORY_DESC">
			</field>

			<field
				name="show_author"
				type="hidden"
				label="JGLOBAL_SHOW_AUTHOR_LABEL"
				description="JGLOBAL_SHOW_AUTHOR_DESC">
			</field>

			<field
				name="link_author"
				type="hidden"
				label="JGLOBAL_LINK_AUTHOR_LABEL"
				description="JGLOBAL_LINK_AUTHOR_DESC">
			</field>

			<field
				name="show_create_date"
				type="hidden"
				label="JGLOBAL_SHOW_CREATE_DATE_LABEL"
				description="JGLOBAL_SHOW_CREATE_DATE_DESC">
			</field>

			<field
				name="show_modify_date"
				type="hidden"
				label="JGLOBAL_SHOW_MODIFY_DATE_LABEL"
				description="JGLOBAL_SHOW_MODIFY_DATE_DESC">
			</field>

			<field
				name="show_publish_date"
				type="hidden"
				label="JGLOBAL_SHOW_PUBLISH_DATE_LABEL"
				description="JGLOBAL_SHOW_PUBLISH_DATE_DESC">
			</field>

			<field
				name="show_item_navigation"
				type="hidden"
				label="JGLOBAL_SHOW_NAVIGATION_LABEL"
				description="JGLOBAL_SHOW_NAVIGATION_DESC">
			</field>

			<field
				name="show_icons"
				type="hidden"
				label="JGLOBAL_SHOW_ICONS_LABEL"
				description="JGLOBAL_SHOW_ICONS_DESC">
			</field>

			<field
				name="show_print_icon"
				type="hidden"
				label="JGLOBAL_SHOW_PRINT_ICON_LABEL"
				description="JGLOBAL_SHOW_PRINT_ICON_DESC">
			</field>

			<field
				name="show_email_icon"
				type="hidden"
				label="JGLOBAL_SHOW_EMAIL_ICON_LABEL"
				description="JGLOBAL_SHOW_EMAIL_ICON_DESC">
			</field>
			<field
				name="show_vote"
				type="hidden"
				label="JGLOBAL_SHOW_VOTE_LABEL"
				description="JGLOBAL_SHOW_VOTE_DESC"
			>
			</field>
			<field
				name="show_hits"
				type="hidden"
				label="JGLOBAL_SHOW_HITS_LABEL"
				description="JGLOBAL_SHOW_HITS_DESC">
			</field>

			<field
				name="show_noauth"
				type="hidden"
				label="JGLOBAL_SHOW_UNAUTH_LINKS_LABEL"
				description="JGLOBAL_SHOW_UNAUTH_LINKS_DESC">
			</field>

			<field name="alternative_readmore" type="hidden"
				label="JFIELD_READMORE_LABEL"
				description="JFIELD_READMORE_DESC"
				size="25" />

			<field name="article_layout" type="hidden"
				label="JFIELD_ALT_LAYOUT_LABEL"
				description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
				useglobal="true"
				extension="com_content" view="article"
			/>
		</fieldset>
	</fields>

	<field name="xreference" type="text"
		label="JFIELD_KEY_REFERENCE_LABEL"
		description="JFIELD_KEY_REFERENCE_DESC"
		size="20" />

	<fields name="images" label="COM_CONTENT_FIELD_IMAGE_OPTIONS">
		<field
			name="image_intro"
			type="media"
			label="COM_CONTENT_FIELD_INTRO_LABEL"
			description="COM_CONTENT_FIELD_INTRO_DESC" />
		<field
			name="float_intro"
			type="list"
			label="COM_CONTENT_FLOAT_LABEL"
			description="COM_CONTENT_FLOAT_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="right">COM_CONTENT_RIGHT</option>
				<option value="left">COM_CONTENT_LEFT</option>
				<option value="none">COM_CONTENT_NONE</option>
		</field>
		<field name="image_intro_alt"
			type="text"
			label="COM_CONTENT_FIELD_IMAGE_ALT_LABEL"
			description="COM_CONTENT_FIELD_IMAGE_ALT_DESC"
			size="20"/>
		<field name="image_intro_caption"
			type="text"
			label="COM_CONTENT_FIELD_IMAGE_CAPTION_LABEL"
			description="COM_CONTENT_FIELD_IMAGE_CAPTION_DESC"
			size="20"/>
		<field
			name="spacer1"
			type="spacer"
			hr="true"
			/>
		<field
			name="image_fulltext"
			type="media"
			label="COM_CONTENT_FIELD_FULL_LABEL"
			description="COM_CONTENT_FIELD_FULL_DESC"/>
		<field
			name="float_fulltext"
			type="list"
			label="COM_CONTENT_FLOAT_LABEL"
			description="COM_CONTENT_FLOAT_DESC">
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="right">COM_CONTENT_RIGHT</option>
				<option value="left">COM_CONTENT_LEFT</option>
				<option value="none">COM_CONTENT_NONE</option>
		</field>
		<field name="image_fulltext_alt"
			type="text"
			label="COM_CONTENT_FIELD_IMAGE_ALT_LABEL"
			description="COM_CONTENT_FIELD_IMAGE_ALT_DESC"
			size="20"/>
		<field name="image_fulltext_caption"
			type="text"
			label="COM_CONTENT_FIELD_IMAGE_CAPTION_LABEL"
			description="COM_CONTENT_FIELD_IMAGE_CAPTION_DESC"
			size="20"/>
	</fields>
	<fields name="urls" label="COM_CONTENT_FIELD_URLS_OPTIONS">
		<field
			name="urla"
			type="url"
			validate="url"
			filter="url"
			relative="true"
			label="COM_CONTENT_FIELD_URLA_LABEL"
			description="COM_CONTENT_FIELD_URL_DESC" />
		<field name="urlatext"
			type="text"
			label="COM_CONTENT_FIELD_URLA_LINK_TEXT_LABEL"
			description="COM_CONTENT_FIELD_URL_LINK_TEXT_DESC"
			size="20"/>
		<field
			name="targeta"
			type="list"
			label="COM_CONTENT_URL_FIELD_BROWSERNAV_LABEL"
			description="COM_CONTENT_URL_FIELD_BROWSERNAV_DESC"
			default=""
			filter="options"
			>
			<option value="">JGLOBAL_USE_GLOBAL</option>
			<option value="0">JBROWSERTARGET_PARENT</option>
			<option value="1">JBROWSERTARGET_NEW</option>
			<option value="2">JBROWSERTARGET_POPUP</option>
			<option value="3">JBROWSERTARGET_MODAL</option>
		</field>
		<field
			name="spacer3"
			type="spacer"
			hr="true"
			/>
		<field
			name="urlb"
			type="url"
			validate="url"
			filter="url"
			relative="true"
			label="COM_CONTENT_FIELD_URLB_LABEL"
			description="COM_CONTENT_FIELD_URL_DESC"/>
		<field name="urlbtext"
			type="text"
			label="COM_CONTENT_FIELD_URLB_LINK_TEXT_LABEL"
			description="COM_CONTENT_FIELD_URL_LINK_TEXT_DESC"
			size="20"/>
		<field
			name="targetb"
			type="list"
			label="COM_CONTENT_URL_FIELD_BROWSERNAV_LABEL"
			description="COM_CONTENT_URL_FIELD_BROWSERNAV_DESC"
			default=""
			filter="options"
			>
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="0">JBROWSERTARGET_PARENT</option>
				<option value="1">JBROWSERTARGET_NEW</option>
				<option value="2">JBROWSERTARGET_POPUP</option>
				<option value="3">JBROWSERTARGET_MODAL</option>
		</field>
		<field
			name="spacer4"
			type="spacer"
			hr="true"
			/>
		<field
			name="urlc"
			type="url"
			validate="url"
			filter="url"
			relative="true"
			label="COM_CONTENT_FIELD_URLC_LABEL"
			description="COM_CONTENT_FIELD_URL_DESC"/>
		<field
			name="urlctext"
			type="text"
			label="COM_CONTENT_FIELD_URLC_LINK_TEXT_LABEL"
			description="COM_CONTENT_FIELD_URL_LINK_TEXT_DESC"
			size="20"/>
		<field
			name="targetc"
			type="list"
			label="COM_CONTENT_URL_FIELD_BROWSERNAV_LABEL"
			description="COM_CONTENT_URL_FIELD_BROWSERNAV_DESC"
			default=""
			filter="options"
			>
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="0">JBROWSERTARGET_PARENT</option>
				<option value="1">JBROWSERTARGET_NEW</option>
				<option value="2">JBROWSERTARGET_POPUP</option>
				<option value="3">JBROWSERTARGET_MODAL</option>
		</field>

	</fields>

	<fields name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
		<fieldset name="jmetadata"
			label="JGLOBAL_FIELDSET_METADATA_OPTIONS">

			<field name="robots"
				type="list"
				label="JFIELD_METADATA_ROBOTS_LABEL"
				description="JFIELD_METADATA_ROBOTS_DESC"
				>
				<option value="">JGLOBAL_USE_GLOBAL</option>
				<option value="index, follow">JGLOBAL_INDEX_FOLLOW</option>
				<option value="noindex, follow">JGLOBAL_NOINDEX_FOLLOW</option>
				<option value="index, nofollow">JGLOBAL_INDEX_NOFOLLOW</option>
				<option value="noindex, nofollow">JGLOBAL_NOINDEX_NOFOLLOW</option>
			</field>

			<field name="author" type="text"
				label="JAUTHOR" description="JFIELD_METADATA_AUTHOR_DESC"
				size="20" />

			<field name="rights" type="textarea" label="JFIELD_META_RIGHTS_LABEL"
				description="JFIELD_META_RIGHTS_DESC" required="false" filter="string"
				cols="30" rows="2" />
			<field name="xreference" type="text"
				label="COM_CONTENT_FIELD_XREFERENCE_LABEL"
				description="COM_CONTENT_FIELD_XREFERENCE_DESC"
				size="20" />

		</fieldset>
	</fields>
	<!-- These fields are used to get labels for the Content History Preview and Compare Views -->
	<fields>
		<field name="introtext" label="COM_CONTENT_FIELD_INTROTEXT" />
		<field name="fulltext" label="COM_CONTENT_FIELD_FULLTEXT" />
	</fields>

</form>


text:
package org.apache.hadoop.hive.ql.optimizer.calcite.reloperators;

import java.util.Collections;
import java.util.Set;

import org.apache.calcite.plan.RelOptCluster;
import org.apache.calcite.plan.RelOptCost;
import org.apache.calcite.plan.RelOptPlanner;
import org.apache.calcite.plan.RelTraitSet;
import org.apache.calcite.rel.InvalidRelException;
import org.apache.calcite.rel.RelNode;
import org.apache.calcite.rel.core.Join;
import org.apache.calcite.rel.core.JoinRelType;
import org.apache.calcite.rel.core.RelFactories.JoinFactory;
import org.apache.calcite.rel.metadata.RelMetadataQuery;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.rel.type.RelDataTypeField;
import org.apache.calcite.rex.RexNode;
import org.apache.hadoop.hive.ql.optimizer.calcite.TraitsUtil;
import org.apache.hadoop.hive.ql.optimizer.calcite.cost.HiveCost;

//TODO: Should we convert MultiJoin to be a child of HiveJoin
public class HiveJoin extends Join implements HiveRelNode {
  // NOTE: COMMON_JOIN & SMB_JOIN are Sort Merge Join (in case of COMMON_JOIN
  // each parallel computation handles multiple splits where as in case of SMB
  // each parallel computation handles one bucket). MAP_JOIN and BUCKET_JOIN is
  // hash joins where MAP_JOIN keeps the whole data set of non streaming tables
  // in memory where as BUCKET_JOIN keeps only the b
  public enum JoinAlgorithm {
    NONE, COMMON_JOIN, MAP_JOIN, BUCKET_JOIN, SMB_JOIN
  }

  public enum MapJoinStreamingRelation {
    NONE, LEFT_RELATION, RIGHT_RELATION
  }

  public static final JoinFactory HIVE_JOIN_FACTORY = new HiveJoinFactoryImpl();

  private final boolean leftSemiJoin;
  private final JoinAlgorithm      joinAlgorithm;
  //This will be used once we do Join Algorithm selection
  @SuppressWarnings("unused")
  private final MapJoinStreamingRelation mapJoinStreamingSide = MapJoinStreamingRelation.NONE;

  public static HiveJoin getJoin(RelOptCluster cluster, RelNode left, RelNode right,
      RexNode condition, JoinRelType joinType, boolean leftSemiJoin) {
    try {
      Set<String> variablesStopped = Collections.emptySet();
      return new HiveJoin(cluster, null, left, right, condition, joinType, variablesStopped,
          JoinAlgorithm.NONE, null, leftSemiJoin);
    } catch (InvalidRelException e) {
      throw new RuntimeException(e);
    }
  }

  protected HiveJoin(RelOptCluster cluster, RelTraitSet traits, RelNode left, RelNode right,
      RexNode condition, JoinRelType joinType, Set<String> variablesStopped,
      JoinAlgorithm joinAlgo, MapJoinStreamingRelation streamingSideForMapJoin, boolean leftSemiJoin)
      throws InvalidRelException {
    super(cluster, TraitsUtil.getDefaultTraitSet(cluster), left, right, condition, joinType,
        variablesStopped);
    this.joinAlgorithm = joinAlgo;
    this.leftSemiJoin = leftSemiJoin;
  }

  @Override
  public void implement(Implementor implementor) {
  }

  @Override
  public final HiveJoin copy(RelTraitSet traitSet, RexNode conditionExpr, RelNode left,
      RelNode right, JoinRelType joinType, boolean semiJoinDone) {
    try {
      Set<String> variablesStopped = Collections.emptySet();
      return new HiveJoin(getCluster(), traitSet, left, right, conditionExpr, joinType,
          variablesStopped, JoinAlgorithm.NONE, null, leftSemiJoin);
    } catch (InvalidRelException e) {
      // Semantic error not possible. Must be a bug. Convert to
      // internal error.
      throw new AssertionError(e);
    }
  }

  public JoinAlgorithm getJoinAlgorithm() {
    return joinAlgorithm;
  }

  public boolean isLeftSemiJoin() {
    return leftSemiJoin;
  }

  /**
   * Model cost of join as size of Inputs.
   */
  @Override
  public RelOptCost computeSelfCost(RelOptPlanner planner) {
    double leftRCount = RelMetadataQuery.getRowCount(getLeft());
    double rightRCount = RelMetadataQuery.getRowCount(getRight());
    return HiveCost.FACTORY.makeCost(leftRCount + rightRCount, 0.0, 0.0);
  }

  /**
   * @return returns rowtype representing only the left join input
   */
  @Override
  public RelDataType deriveRowType() {
    if (leftSemiJoin) {
      return deriveJoinRowType(left.getRowType(), null, JoinRelType.INNER,
          getCluster().getTypeFactory(), null,
          Collections.<RelDataTypeField> emptyList());
    }
    return super.deriveRowType();
  }

  private static class HiveJoinFactoryImpl implements JoinFactory {
    /**
     * Creates a join.
     *
     * @param left
     *          Left input
     * @param right
     *          Right input
     * @param condition
     *          Join condition
     * @param joinType
     *          Join type
     * @param variablesStopped
     *          Set of names of variables which are set by the LHS and used by
     *          the RHS and are not available to nodes above this JoinRel in the
     *          tree
     * @param semiJoinDone
     *          Whether this join has been translated to a semi-join
     */
    @Override
    public RelNode createJoin(RelNode left, RelNode right, RexNode condition, JoinRelType joinType,
        Set<String> variablesStopped, boolean semiJoinDone) {
      return getJoin(left.getCluster(), left, right, condition, joinType, false);
    }
  }
}


text:
QR-chrome
================

A chrome extension that generates a qr code of the current url (for when you are too lazy to type on your phone).


text:
class AddFlowToSteps < ActiveRecord::Migration
  def change
	add_reference :steps, :flow, index: true
    add_foreign_key   :steps, :flows
  end
end


text:
package eu.socialedge.ddd.event;

/**
 * Represents exceptions in eventbus layer
 */
public class DomainEventException extends RuntimeException {

    public DomainEventException(String message) {
        super(message);
    }

    public DomainEventException(String message, Throwable cause) {
        super(message, cause);
    }

    public DomainEventException(Throwable cause) {
        super(cause);
    }
}


text:
This is a video tutorial on how to unit test code that is not visible outside of a contract. It contains some instructions, example code, and some general advice.

The code used in the video is provided in the video description.

https://www.youtube.com/watch?v=4rTLdCE6SGg


text:
<?php

# Renders HTML tags to include assets like images, stylesheets and
# javascript files in your pages.
#
# =Timestamps
#
# The last modification date is always added to all local and existing
# assets. This permits for browser-side HTTP caching. The actual HTTP
# caching must be handled by your web server (ie. the 'compress' module
# of LightTPD).
#
namespace Misago\ActionView\Helpers\AssetTag;

# :nodoc:
function linearize_path($base_path, $path)
{
  if (is_array($path)) {
    return url_for($path);
  }

  $path = trim($path);
  if (strpos($path, 'http://') !== 0)
  {
    if (strpos($path, '/') !== 0) {
      $path = "$base_path/$path";
    }
    if (file_exists(ROOT.'/public'.$path)) {
      $path .= '?'.filemtime(ROOT.'/public'.$path);
    }
  }
  return $path;
}

?>


text:
import java.util.Scanner;

public class Solution {

	public static void main(String[] args) {
		Scanner read = new Scanner(System.in);

		int n = read.nextInt();
		int t = read.nextInt();

		int[] a = new int[n-1];
		for (int i = 0; i < n-1; ++i) {
			a[i] = read.nextInt();

		}

		boolean possibleToVisitCell = false;
		for (int i = 0; i < n-1; ) {
			i = a[i]+i; // teleport to cell via portal
			if (i == t-1) { // subtract 1, because indices start from 0
				possibleToVisitCell = true;
				break;
			}
		}

		if (possibleToVisitCell) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}

		// Close scanner
		read.close();
	}

}


text:
<!doctype html>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Asik Sehat!</title>
    <link rel="manifest" href="/manifest.json">


text:
package memnets.fx

import memnets.model._

/** signals rely on y.loc info, which will not be correct here, so no signals shown */
class PlotSparseSkinFX extends BatterySkinFX with Logging {
  name = "PlotSparse"
  backImageOn = false
  backColor = Colorf.gray(0.8)
  sparseLayer = 0
  override def isSuitable(system: DynamicSystem): Boolean = system.variables.length > 1
  override def createSystem(system: DynamicSystem): Iterable[TickableFX] = {
    val sparse = system.sparse
    val spPlot = sparse.ui.plot
    val numType = sparse.ui.numericalType
    val useEffect = spPlot.useEffect
    val hideGlass = spPlot.hideGlass

    if (sparse.length < 256) {
      sparse.ui.numericalType = VariableType.Discrete
      spPlot.useEffect = true
    }
    spPlot.hideGlass = true
    val list = createLayer(sparse) match {
      case Some(fx) =>
        List(fx)
      case None =>
        List()
    }
    spPlot.hideGlass = hideGlass
    spPlot.useEffect = useEffect
    sparse.ui.numericalType = numType
    list
  }
  override def create(elem: Element): Option[TickableFX] = None
  override def createY(y: Y) = None
  override def zoomDefault(system: DynamicSystem): Double = 1.0
}


text:
package swift.application.swiftdoc.cs.msgs;

import sys.net.api.rpc.RpcHandle;
import sys.net.api.rpc.RpcHandler;

public class CommitTransaction extends SwiftDocRpc {

    public CommitTransaction() {
    }

    @Override
    public void deliverTo(RpcHandle handle, RpcHandler handler) {
        ((AppRpcHandler) handler).onReceive(handle, this);
    }

}


text:
<?php
namespace sprint2\realEstateBundle\Entity;

use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;

class VoteRepository extends EntityRepository

{


text:
using Newtonsoft.Json;

namespace BeautifulRestApi.Models
{
    public abstract class Resource : Link
    {
        [JsonIgnore]
        public Link Self { get; set; }
    }
}


text:
from __future__ import print_function
import mxnet as mx
import numpy as np
from timeit import default_timer as timer
from dataset.testdb import TestDB
from dataset.iterator import DetIter

class Detector(object):
    """
    SSD detector which hold a detection network and wraps detection API

    Parameters:
    ----------
    symbol : mx.Symbol
        detection network Symbol
    model_prefix : str
        name prefix of trained model
    epoch : int
        load epoch of trained model
    data_shape : int
        input data resize shape
    mean_pixels : tuple of float
        (mean_r, mean_g, mean_b)
    batch_size : int
        run detection with batch size
    ctx : mx.ctx
        device to use, if None, use mx.cpu() as default context
    """
    def __init__(self, symbol, model_prefix, epoch, data_shape, mean_pixels, \
                 batch_size=1, ctx=None):
        self.ctx = ctx
        if self.ctx is None:
            self.ctx = mx.cpu()
        load_symbol, args, auxs = mx.model.load_checkpoint(model_prefix, epoch)
        if symbol is None:
            symbol = load_symbol
        self.mod = mx.mod.Module(symbol, label_names=None, context=ctx)
        if not isinstance(data_shape, tuple):
            data_shape = (data_shape, data_shape)
        self.data_shape = data_shape
        self.mod.bind(data_shapes=[('data', (batch_size, 3, data_shape[0], data_shape[1]))])
        self.mod.set_params(args, auxs)
        self.mean_pixels = mean_pixels

    def detect(self, det_iter, show_timer=False):
        """
        detect all images in iterator

        Parameters:
        ----------
        det_iter : DetIter
            iterator for all testing images
        show_timer : Boolean
            whether to print out detection exec time

        Returns:
        ----------
        list of detection results
        """
        num_images = det_iter._size
        if not isinstance(det_iter, mx.io.PrefetchingIter):
            det_iter = mx.io.PrefetchingIter(det_iter)
        start = timer()
        detections = self.mod.predict(det_iter).asnumpy()
        time_elapsed = timer() - start
        if show_timer:
            print("Detection time for {} images: {:.4f} sec".format(
                num_images, time_elapsed))
        result = []
        for i in range(detections.shape[0]):
            det = detections[i, :, :]
            res = det[np.where(det[:, 0] >= 0)[0]]
            result.append(res)
        return result

    def im_detect(self, im_list, root_dir=None, extension=None, show_timer=False):
        """
        wrapper for detecting multiple images

        Parameters:
        ----------
        im_list : list of str
            image path or list of image paths
        root_dir : str
            directory of input images, optional if image path already
            has full directory information
        extension : str
            image extension, eg. ".jpg", optional

        Returns:
        ----------
        list of detection results in format [det0, det1...], det is in
        format np.array([id, score, xmin, ymin, xmax, ymax]...)
        """
        test_db = TestDB(im_list, root_dir=root_dir, extension=extension)
        test_iter = DetIter(test_db, 1, self.data_shape, self.mean_pixels,
                            is_train=False)
        return self.detect(test_iter, show_timer)

    def visualize_detection(self, img, dets, classes=[], thresh=0.6):
        """
        visualize detections in one image

        Parameters:
        ----------
        img : numpy.array
            image, in bgr format
        dets : numpy.array
            ssd detections, numpy.array([[id, score, x1, y1, x2, y2]...])
            each row is one object
        classes : tuple or list of str
            class names
        thresh : float
            score threshold
        """
        import matplotlib.pyplot as plt
        import random
        plt.imshow(img)
        height = img.shape[0]
        width = img.shape[1]
        colors = dict()
        for i in range(dets.shape[0]):
            cls_id = int(dets[i, 0])
            if cls_id >= 0:
                score = dets[i, 1]
                if score > thresh:
                    if cls_id not in colors:
                        colors[cls_id] = (random.random(), random.random(), random.random())
                    xmin = int(dets[i, 2] * width)
                    ymin = int(dets[i, 3] * height)
                    xmax = int(dets[i, 4] * width)
                    ymax = int(dets[i, 5] * height)
                    rect = plt.Rectangle((xmin, ymin), xmax - xmin,
                                         ymax - ymin, fill=False,
                                         edgecolor=colors[cls_id],
                                         linewidth=3.5)
                    plt.gca().add_patch(rect)
                    class_name = str(cls_id)
                    if classes and len(classes) > cls_id:
                        class_name = classes[cls_id]
                    plt.gca().text(xmin, ymin - 2,
                                    '{:s} {:.3f}'.format(class_name, score),
                                    bbox=dict(facecolor=colors[cls_id], alpha=0.5),
                                    fontsize=12, color='white')
        plt.show()

    def detect_and_visualize(self, im_list, root_dir=None, extension=None,
                             classes=[], thresh=0.6, show_timer=False):
        """
        wrapper for im_detect and visualize_detection

        Parameters:
        ----------
        im_list : list of str or str
            image path or list of image paths
        root_dir : str or None
            directory of input images, optional if image path already
            has full directory information
        extension : str or None
            image extension, eg. ".jpg", optional

        Returns:
        ----------

        """
        import cv2
        dets = self.im_detect(im_list, root_dir, extension, show_timer=show_timer)
        if not isinstance(im_list, list):
            im_list = [im_list]
        assert len(dets) == len(im_list)
        for k, det in enumerate(dets):
            img = cv2.imread(im_list[k])
            img[:, :, (0, 1, 2)] = img[:, :, (2, 1, 0)]
            self.visualize_detection(img, det, classes, thresh)


text:
<Type Name="AddinView" FullName="Banshee.Addins.Gui.AddinView">
  <TypeSignature Language="C#" Value="public class AddinView : Gtk.EventBox" />
  <AssemblyInfo>
    <AssemblyName>Banshee.ThickClient</AssemblyName>
    <AssemblyVersion>1.3.1.0</AssemblyVersion>
    <AssemblyVersion>1.4.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>Gtk.EventBox</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    To be added.
    <remarks>To be added.</remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public AddinView ();" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>

      <AssemblyVersion>1.3.1.0</AssemblyVersion><AssemblyVersion>1.4.0.0</AssemblyVersion></AssemblyInfo>
      <Parameters />
      <Docs>To be added.<remarks>To be added.</remarks></Docs>
    </Member>
  </Members>
</Type>


text:
GAE Gradle Base
===============

A base repo for building a Google App Engine Project with [Gradle](http://www.gradle.org/)

- Uses the [gae-gradle-plugin](https://github.com/bmuschko/gradle-gae-plugin)
- Downloads the sdk automatically


text:
#include "Light.h"
#include "ConvexHull.h"
#include <vector>

void MaskShadow(Light* light, ConvexHull* convexHull, float depth);

class LightSystem
{
private:
	std::vector<Light*> lights;
	std::vector<ConvexHull*> convexHulls;

	bool enabled;

public:
	LightSystem();
	~LightSystem();

	void addLight(Light* newLight);
	void addConvexHull(ConvexHull* newConvexHull);
	void clearLights();
	void clearConvexHulls();
	void RenderLights();
};

#endif


text:
Data updated in 2014, source.

About ReinventPHX

Reinvent PHX is a collaborative partnership between the City of Phoenix, the U.S. Department of Housing and Urban Development, Arizona State University, St. Luke's Health Initiatives and local organizations committed to growing a sustainable city.

Get Involved

                                    Myplanphx

                                    Join the Online Conversation

                                    Mailing List

                                    Receive Email Updates

                                    Upcoming Events

                                Attend Forums and Workshops

Other Useful Links

General Plan Update

 HUD Office of Sustainable Housing and Communities

Sustainability Communities Collaborative

Julie Ann Wrigley Global Institute of Sustainability

 St. Luke's Health Initiative

ULI Arizona

TOD Districts

Gateway

Eastlake-Garfield

Midtown

Uptown

Solano

 This dashboard is powered by github.