text:
namespace BCM_Migration_Tool.Controls
{
    partial class Opportunities
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
            this.lblNewFieldMapping = new System.Windows.Forms.Label();
            this.cmdNewMapping = new System.Windows.Forms.Button();
            this.SuspendLayout();
            //
            // flowLayoutPanel1
            //
            this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
            | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.flowLayoutPanel1.AutoScroll = true;
            this.flowLayoutPanel1.Location = new System.Drawing.Point(4, 3);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new System.Drawing.Size(497, 222);
            this.flowLayoutPanel1.TabIndex = 0;
            //
            // lblNewFieldMapping
            //
            this.lblNewFieldMapping.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblNewFieldMapping.AutoSize = true;
            this.lblNewFieldMapping.Cursor = System.Windows.Forms.Cursors.Hand;
            this.lblNewFieldMapping.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblNewFieldMapping.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(117)))), ((int)(((byte)(182)))));
            this.lblNewFieldMapping.Location = new System.Drawing.Point(43, 241);
            this.lblNewFieldMapping.Name = "lblNewFieldMapping";
            this.lblNewFieldMapping.Size = new System.Drawing.Size(145, 21);
            this.lblNewFieldMapping.TabIndex = 4;
            this.lblNewFieldMapping.Text = "New Field Mapping";
            //
            // cmdNewMapping
            //
            this.cmdNewMapping.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.cmdNewMapping.Cursor = System.Windows.Forms.Cursors.Hand;
            this.cmdNewMapping.FlatAppearance.BorderSize = 0;
            this.cmdNewMapping.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.cmdNewMapping.Image = global::BCM_Migration_Tool.Properties.Resources.plusbutton;
            this.cmdNewMapping.Location = new System.Drawing.Point(4, 234);
            this.cmdNewMapping.Name = "cmdNewMapping";
            this.cmdNewMapping.Size = new System.Drawing.Size(35, 31);
            this.cmdNewMapping.TabIndex = 3;
            this.cmdNewMapping.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.cmdNewMapping.UseVisualStyleBackColor = true;
            this.cmdNewMapping.Click += new System.EventHandler(this.cmdNewMapping_Click);
            //
            // Opportunities
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.BackColor = System.Drawing.Color.White;
            this.Controls.Add(this.flowLayoutPanel1);
            this.Controls.Add(this.cmdNewMapping);
            this.Controls.Add(this.lblNewFieldMapping);
            this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Name = "Opportunities";
            this.Size = new System.Drawing.Size(504, 282);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
        private System.Windows.Forms.Button cmdNewMapping;
        private System.Windows.Forms.Label lblNewFieldMapping;
    }
}


text:
/* Slicebox Style */
.sb-slider {
	margin: 10px auto;
	position: relative;
	overflow: hidden;
	width: 100%;
	list-style-type: none;
	padding: 0;
}

.sb-slider li {
	margin: 0;
	padding: 0;
	display: none;
}

.sb-slider li > a {
	outline: none;
}

.sb-slider li > a img {
	border: none;
}

.sb-slider img {
	max-width: 100%;
	display: block;
}

.sb-description {
	padding: 20px;
	bottom: 10px;
	left: 10px;
	right: 10px;
	z-index: 1000;
	position: absolute;
	background: #CBBFAE;
	background: rgba(0, 0, 0, 0.4);
	border-left: 4px solid rgba(255,255,255,0.7);
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
	color: #fff;

	-webkit-transition: all 200ms;
	-moz-transition: all 200ms;
	-o-transition: all 200ms;
	-ms-transition: all 200ms;
	transition: all 200ms;
}
.sb-description h3{
	margin-bottom: 0px;
	color: white;
}
.sb-slider li.sb-current .sb-description {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
	filter: alpha(opacity=80);
	opacity: 1;
}

.sb-slider li.sb-current .sb-description:hover {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=99)";
	filter: alpha(opacity=99);
	background: rgba(190,176,155, 0.7);
}

.sb-perspective {
	position: relative;
}

.sb-perspective > div {
	position: absolute;

	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;

	-webkit-backface-visibility : hidden;
	-moz-backface-visibility : hidden;
	-o-backface-visibility : hidden;
	-ms-backface-visibility : hidden;
	backface-visibility : hidden;
}

.sb-side {
	margin: 0;
	display: block;
	position: absolute;

	-moz-backface-visibility : hidden;

	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;
}
.nav-arrows{
	display: block;
	position: absolute;
	bottom: 50%;
	color: #333333;
	font-size: 24px;
	left:0;
	right:0;
}
.nav-arrows a:hover {
	color: white;
}
.nav-arrows .icon-right-open-big{
	float: right;
	margin-right: 25px;
}
.nav-arrows .icon-left-open-big{
	float: left;
	margin-left: 25px;
}

redpajama_set_name: RedPajamaGithub


text:
require 'spec_helper'

describe SubscriptionRequest do
  before(:each) do
    @subscription_request = SubscriptionRequest.new(Factory.attributes_for(:subscription_request))
  end

  describe "with disabled options" do
    before(:each) do
      Ecm::Subscriptions.config.enable_options = false
    end

    describe "with enabled premia" do
      before(:each) do
        Ecm::Subscriptions.config.enable_premia = true
      end

      describe "without premia in the database" do
        before(:each) do
          SubscriptionPremium.all.map &:destroy
        end

        it "should be valid without a premium" do
          @subscription_request.subscription_premium_id = nil
          @subscription_request.should be_valid
        end
      end # describe "without premia in the database"

      describe "with premia in the database" do
        before(:each) do
          SubscriptionPremium.all.map &:destroy
          @subscription_request.subscription_premium = Factory(:subscription_premium)
        end

        it "should be valid with a premium" do
        @subscription_request.valid?
        puts @subscription_request.errors.inspect
          @subscription_request.should be_valid

        end
      end # describe "with premia in the database"
    end # describe "with enabled premia"
  end # describe "with disabled options"

end # describe SubscriptionRequest


text:
require 'test/unit'
require 'thread_safe'

class TestArray < Test::Unit::TestCase
  def test_concurrency
    ary = ThreadSafe::Array.new
    assert_nothing_raised do
      (1..100).map do |i|
        Thread.new do
          1000.times do
            ary << i
            ary.each {|x| x * 2}
            ary.shift
            ary.last
          end
        end
      end.map(&:join)
    end
  end
end


text:
{% extends "base.html" %}
{% load static %}
{% load wagtailcore_tags %}
{% load wagtailimages_tags %}
{% load gentlecoffee_tags %}

{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}

{% block wagtailpage %}

{{ self.intro }}

        {% display_blog_list blog_list=blogs %}

{#TODO Add Pagination#}

            {% include 'home/include/page_nav.html' with pages=blogs %}

{% endblock wagtailpage %}

{% block outerbreadcrumb %}{% endblock outerbreadcrumb %}
{% block outercontent %} {% endblock outercontent %}


text:
#ifndef _EDBG_H_
#define _EDBG_H_

/*- Includes ----------------------------------------------------------------*/
#include <stdarg.h>

/*- Prototypes --------------------------------------------------------------*/
void verbose(char *fmt, ...);
void warning(char *fmt, ...);
void check(bool cond, char *fmt, ...);
void error_exit(char *fmt, ...);
void sleep_ms(int ms);
void perror_exit(char *text);
void *buf_alloc(int size);
void buf_free(void *buf);
int load_file(char *name, uint8_t *data, int size);
void save_file(char *name, uint8_t *data, int size);

#endif // _EDBG_H_


text: export * from './harmonize-flow-options.component';


text:
export const previewSelectBugRepro = {
  name: 'previewSelectBugRepro',
  type: 'document',
  title: 'Preview selection bug repro',
  description:
    'Reproduction case for a bug in preview selection that caused invalid query when targeting both a reference field and fields on the referenced document',
  fields: [
    {
      name: 'title',
      title: 'Title',
      type: 'string',
    },
    {name: 'book', type: 'reference', to: [{type: 'book'}]},
  ],
  preview: {
    select: {
      title: 'title',
      hasBook: 'book',
      bookRef: 'book._ref',
      bookId: 'book._id',
      bookTitle: 'book.title',
    },
    prepare(selection) {
      return {
        title: selection.title,
        subtitle: `Book: ${selection.hasBook ? selection.bookTitle : '(no book)'}`,
      }
    },
  },
}


text:
export * from './layout.module';

export * from './header.component';
export * from './topnav.component';
export * from './sidebar.component';
export * from './aside.component';
export * from './footer.component';


text:
package org.apache.poi.hslf.record;

import junit.framework.TestCase;
import java.io.ByteArrayOutputStream;
import java.util.Arrays;

/**
 * Tests that {@link HeadersFootersAtom} works properly
 *
 * @author Yegor Kozlov
 */
public final class TestAnimationInfoAtom extends TestCase {
    // From a real file
    /*
     <AnimationInfoAtom info="1" type="4081" size="28" offset="4015" header="01 00 F1 0F 1C 00 00 00 ">
       00 00 00 07 04 05 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00
       00 00 00
     </AnimationInfoAtom>
     */
    private byte[] data = new byte[] {
         0x01, 0x00, (byte)0xF1, 0x0F, 0x1C, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x07, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
            0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    };

    public void testRead() {
        AnimationInfoAtom record = new AnimationInfoAtom(data, 0, data.length);
        assertEquals(RecordTypes.AnimationInfoAtom.typeID, record.getRecordType());
        assertTrue(record.getFlag(AnimationInfoAtom.Automatic));
        assertTrue(record.getFlag(AnimationInfoAtom.Play));
        assertTrue(record.getFlag(AnimationInfoAtom.Synchronous));
        assertFalse(record.getFlag(AnimationInfoAtom.Reverse));
        assertFalse(record.getFlag(AnimationInfoAtom.Sound));
        assertFalse(record.getFlag(AnimationInfoAtom.StopSound));
        assertFalse(record.getFlag(AnimationInfoAtom.Hide));
        assertFalse(record.getFlag(AnimationInfoAtom.AnimateBg));
        assertEquals(0x07000000, record.getDimColor());
        assertEquals(0, record.getSoundIdRef());
        assertEquals(0, record.getDelayTime());
        assertEquals(2, record.getOrderID());
        assertEquals(0, record.getSlideCount());
    }

    public void testWrite() throws Exception {
        AnimationInfoAtom record = new AnimationInfoAtom(data, 0, data.length);
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        record.writeOut(baos);
        byte[] b = baos.toByteArray();

        assertTrue(Arrays.equals(data, b));
    }

    public void testNewRecord() throws Exception {
        AnimationInfoAtom record = new AnimationInfoAtom();
        record.setDimColor(0x07000000);
        record.setOrderID(2);
        record.setFlag(AnimationInfoAtom.Automatic, true);
        record.setFlag(AnimationInfoAtom.Play, true);
        record.setFlag(AnimationInfoAtom.Synchronous, true);

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        record.writeOut(baos);
        byte[] b = baos.toByteArray();

        assertTrue(Arrays.equals(data, b));
    }
}


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
null

#### Original name
Heteroplegma coeruleum Clem.

### Remarks
null


text:
class vec2scalar: public Simulator {
// Declare the state,
// output variables
// and parameters

double sigma;
int index;
double y[10];
#define INF 1e20

public:
	vec2scalar(const char *n): Simulator(n) {};
	void init(double, ...);
	double ta(double t);
	void dint(double);
	void dext(Event , double );
	Event lambda(double);
	void exit();
};
#endif


text:
Reusing Containers
============================================

:In this section: We learn that *we can also reuse config containers*.

Suppose our system is now running in production, but every once in a while it
encouters problems and errors.  We decided to add an alerting capability to all
modules in our system, to send the administrator an email in realtime, every time
a problem occurs.  Naturally, this feature should be configurable, and, since the
system is pretty simple at this stage, the same person maintains all the modules,
and therefor the config is the same for all modules.

The example below demonstrates how this can be done by reusing the config container which
defines the behavior of the "alerter" object.

(For readability, we omit the parts which are unchanged.)


text:
function [motionTemplate,motionTemplateWeights] = motionTemplateBool(motionTemplateReal,motionTemplateWeights,parameter)
% [motionTemplate,motionTemplateWeights] = motionTemplateBool(motionTemplateReal,motionTemplateWeights,parameter)
% flag = 0: no time adaptation
% flag = 1: time adaptation
% flag = 2: time adaptation and successive expansion
%
% parameter.vis

flag = parameter.flag;
thresh_lo = parameter.thresh_lo;
thresh_hi = parameter.thresh_hi;
feature_set_ranges = parameter.feature_set_ranges;
feature_set = parameter.feature_set;

%read labels for template figures
Ylabels={};

if (parameter.visReal)
    figure;
    subplot(2,1,1); plot(motionTemplateWeights);
    if (size(motionTemplateWeights,2)>1)
        set(gca,'xlim',[1 size(motionTemplateWeights,2)]);
    end
    colorbar; drawnow;
    subplot(2,1,2); imagesc(motionTemplateReal,[0 1]); colormap hot; colorbar; drawnow;
    set(gcf,'pos',[40   463   560   420]);
end

if (parameter.visRealRanges)
    figure;
    num_ranges = length(feature_set_ranges);
%     subplot(num_ranges+1,1,1); plot(motionTemplateWeights);
%     if (size(motionTemplateWeights,2)>1)
%         set(gca,'xlim',[1 size(motionTemplateWeights,2)]);
%     end
%     drawnow;
    for k=1:num_ranges
        subplot(num_ranges,1,k); imagesc(motionTemplateReal(feature_set_ranges{k},:),[0 1]);
        h = ylabel(feature_set{k});
        set(h,'interpreter','none');
        fspec=load(['fspec_' feature_set{k} '.mat']);
        num=size(feature_set_ranges{k});
        fsr=feature_set_ranges{k};
        for l=1:num(2)
           Ylabels(1,l)={fspec.features_spec(fsr(l)).name};
        end
        set(gca,'YTickLabel',Ylabels);
    end
    colormap hot; drawnow;
    set(gcf,'pos',[40   463   560   420]);
end

motionTemplate = motionTemplateReal;
motionTemplate(motionTemplate>thresh_lo & motionTemplate<thresh_hi) = 0.5;
motionTemplate(motionTemplate<=thresh_lo) = 0;
motionTemplate(motionTemplate>=thresh_hi) = 1;

if (flag == 1 | flag == 2)
    [motionTemplate,motionTemplateWeights] = motionTemplate_eliminateDuplicateColumnsWeighted(motionTemplate,motionTemplateWeights);
end

if (flag == 2)
    [motionTemplate,motionTemplateWeights] = expandWeightedVectorSequence(motionTemplate,motionTemplateWeights);
end

if (parameter.visBool)
    figure;
    subplot(2,1,1); plot(motionTemplateWeights);
    if (size(motionTemplateWeights,2)>1)
        set(gca,'xlim',[1 size(motionTemplateWeights,2)]);
    end
    colorbar; drawnow;
    subplot(2,1,2); imagesc(motionTemplate,[0 1]); colormap gray; colorbar; drawnow;
    set(gcf,'pos',[650   463   560   420]);
end

if (parameter.visBoolRanges)
    figure;
    num_ranges = length(feature_set_ranges);
%     subplot(num_ranges+1,1,1); plot(motionTemplateWeights);
%     if (size(motionTemplateWeights,2)>1)
%         set(gca,'xlim',[1 size(motionTemplateWeights,2)]);
%     end
%     drawnow;
    for k=1:num_ranges
        subplot(num_ranges,1,k); imagesc(motionTemplate(feature_set_ranges{k},:),[0 1]);
        h = ylabel(feature_set{k});
        set(h,'interpreter','none');
        set(gca,'YTickLabel',Ylabels);
    end
    colormap gray; drawnow;
    set(gcf,'pos',[650   463   560   420]);
end


text:
package org.apache.omid.transaction;

import static org.apache.hadoop.hbase.HConstants.HBASE_CLIENT_RETRIES_NUMBER;

import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.CellUtil;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.MiniHBaseCluster;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.HBaseAdmin;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.omid.TestUtils;
import org.apache.omid.committable.CommitTable;
import org.apache.omid.committable.InMemoryCommitTable;
import org.apache.omid.committable.hbase.HBaseCommitTableConfig;
import org.apache.omid.timestamp.storage.HBaseTimestampStorageConfig;
import org.apache.omid.tools.hbase.OmidTableManager;
import org.apache.omid.tso.TSOMockModule;
import org.apache.omid.tso.TSOServer;
import org.apache.omid.tso.TSOServerConfig;
import org.apache.omid.tso.client.OmidClientConfiguration;
import org.apache.omid.tso.client.TSOClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.ITestContext;
import org.testng.annotations.AfterGroups;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.BeforeMethod;

import com.google.inject.Guice;
import com.google.inject.Injector;

public abstract class OmidTestBase {

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

    static HBaseTestingUtility hBaseUtils;
    private static MiniHBaseCluster hbaseCluster;
    static Configuration hbaseConf;
    static Connection connection;

    protected static final String TEST_TABLE = "test";
    protected static final String TEST_FAMILY = "data";
    static final String TEST_FAMILY2 = "data2";

    private HBaseCommitTableConfig hBaseCommitTableConfig;

    @BeforeMethod(alwaysRun = true)
    public void beforeClass(Method method) throws Exception {
        Thread.currentThread().setName("UnitTest-" + method.getName());
    }

    @BeforeGroups(groups = "sharedHBase")
    public void beforeGroups(ITestContext context) throws Exception {
        // TSO Setup
        TSOServerConfig tsoConfig = new TSOServerConfig();
        tsoConfig.setPort(1234);
        tsoConfig.setConflictMapSize(1000);
        tsoConfig.setWaitStrategy("LOW_CPU");
        Injector injector = Guice.createInjector(new TSOMockModule(tsoConfig));
        LOG.info("Starting TSO");
        TSOServer tso = injector.getInstance(TSOServer.class);
        hBaseCommitTableConfig = injector.getInstance(HBaseCommitTableConfig.class);
        HBaseTimestampStorageConfig hBaseTimestampStorageConfig = injector.getInstance(HBaseTimestampStorageConfig.class);
        tso.startAndWait();
        TestUtils.waitForSocketListening("localhost", 1234, 100);
        LOG.info("Finished loading TSO");
        context.setAttribute("tso", tso);

        OmidClientConfiguration clientConf = new OmidClientConfiguration();
        clientConf.setConnectionString("localhost:1234");
        context.setAttribute("clientConf", clientConf);

        InMemoryCommitTable commitTable = (InMemoryCommitTable) injector.getInstance(CommitTable.class);
        context.setAttribute("commitTable", commitTable);

        // Create the associated Handler
        TSOClient client = TSOClient.newInstance(clientConf);
        context.setAttribute("client", client);

        // ------------------------------------------------------------------------------------------------------------
        // HBase setup
        // ------------------------------------------------------------------------------------------------------------
        LOG.info("Creating HBase minicluster");
        hbaseConf = HBaseConfiguration.create();
        hbaseConf.setInt("hbase.hregion.memstore.flush.size", 10_000 * 1024);
        hbaseConf.setInt("hbase.regionserver.nbreservationblocks", 1);
        hbaseConf.setInt(HBASE_CLIENT_RETRIES_NUMBER, 3);

        File tempFile = File.createTempFile("OmidTest", "");
        tempFile.deleteOnExit();
        hbaseConf.set("hbase.rootdir", tempFile.getAbsolutePath());
        hbaseConf.setBoolean("hbase.localcluster.assign.random.ports",true);
        hBaseUtils = new HBaseTestingUtility(hbaseConf);
        hbaseCluster = hBaseUtils.startMiniCluster(1);
        connection = ConnectionFactory.createConnection(hbaseConf);
        hBaseUtils.createTable(TableName.valueOf(hBaseTimestampStorageConfig.getTableName()),
                new byte[][]{hBaseTimestampStorageConfig.getFamilyName().getBytes()},
                Integer.MAX_VALUE);
        createTestTable();
        createCommitTable();

        LOG.info("HBase minicluster is up");
    }

    protected void createTestTable() throws IOException {
        HBaseAdmin admin = hBaseUtils.getHBaseAdmin();
        HTableDescriptor test_table_desc = new HTableDescriptor(TableName.valueOf(TEST_TABLE));
        HColumnDescriptor datafam = new HColumnDescriptor(TEST_FAMILY);
        HColumnDescriptor datafam2 = new HColumnDescriptor(TEST_FAMILY2);
        datafam.setMaxVersions(Integer.MAX_VALUE);
        datafam2.setMaxVersions(Integer.MAX_VALUE);
        test_table_desc.addFamily(datafam);
        test_table_desc.addFamily(datafam2);
        admin.createTable(test_table_desc);
    }

    private void createCommitTable() throws IOException {
        String[] args = new String[]{OmidTableManager.COMMIT_TABLE_COMMAND_NAME, "-numRegions", "1"};
        OmidTableManager omidTableManager = new OmidTableManager(args);
        omidTableManager.executeActionsOnHBase(hbaseConf);
    }

    private TSOServer getTSO(ITestContext context) {
        return (TSOServer) context.getAttribute("tso");
    }

    TSOClient getClient(ITestContext context) {
        return (TSOClient) context.getAttribute("client");
    }

    InMemoryCommitTable getCommitTable(ITestContext context) {
        return (InMemoryCommitTable) context.getAttribute("commitTable");
    }

    protected TransactionManager newTransactionManager(ITestContext context) throws Exception {
        return newTransactionManager(context, getClient(context));
    }

    protected TransactionManager newTransactionManager(ITestContext context, PostCommitActions postCommitActions) throws Exception {
        HBaseOmidClientConfiguration clientConf = new HBaseOmidClientConfiguration();
        clientConf.setConnectionString("localhost:1234");
        clientConf.setHBaseConfiguration(hbaseConf);
        return HBaseTransactionManager.builder(clientConf)
                .postCommitter(postCommitActions)
                .commitTableClient(getCommitTable(context).getClient())
                .commitTableWriter(getCommitTable(context).getWriter())
                .tsoClient(getClient(context)).build();
    }

    protected TransactionManager newTransactionManager(ITestContext context, TSOClient tsoClient) throws Exception {
        HBaseOmidClientConfiguration clientConf = new HBaseOmidClientConfiguration();
        clientConf.setConnectionString("localhost:1234");
        clientConf.setHBaseConfiguration(hbaseConf);
        return HBaseTransactionManager.builder(clientConf)
                .commitTableClient(getCommitTable(context).getClient())
                .commitTableWriter(getCommitTable(context).getWriter())
                .tsoClient(tsoClient).build();
    }

    protected TransactionManager newTransactionManager(ITestContext context, CommitTable.Client commitTableClient)
            throws Exception {
        HBaseOmidClientConfiguration clientConf = new HBaseOmidClientConfiguration();
        clientConf.setConnectionString("localhost:1234");
        clientConf.setHBaseConfiguration(hbaseConf);
        return HBaseTransactionManager.builder(clientConf)
                .commitTableClient(commitTableClient)
                .commitTableWriter(getCommitTable(context).getWriter())
                .tsoClient(getClient(context)).build();
    }

    @AfterGroups(groups = "sharedHBase")
    public void afterGroups(ITestContext context) throws Exception {
        LOG.info("Tearing down OmidTestBase...");
        if (hbaseCluster != null) {
            hBaseUtils.shutdownMiniCluster();
        }

        getClient(context).close().get();
        getTSO(context).stopAndWait();
        TestUtils.waitForSocketNotListening("localhost", 1234, 1000);
    }

    @AfterMethod(groups = "sharedHBase", timeOut = 60_000)
    public void afterMethod() {
        try {
            LOG.info("tearing Down");
            Admin admin = hBaseUtils.getHBaseAdmin();
            deleteTable(admin, TableName.valueOf(TEST_TABLE));
            createTestTable();
            if (hBaseCommitTableConfig != null) {
                deleteTable(admin, TableName.valueOf(hBaseCommitTableConfig.getTableName()));
            }
            createCommitTable();
        } catch (Exception e) {
            LOG.error("Error tearing down", e);
        }
    }

    void deleteTable(Admin admin, TableName tableName) throws IOException {
        if (admin.tableExists(tableName)) {
            if (admin.isTableDisabled(tableName)) {
                admin.deleteTable(tableName);
            } else {
                admin.disableTable(tableName);
                admin.deleteTable(tableName);
            }
        }
    }

    static boolean verifyValue(Table table, byte[] row,
                               byte[] fam, byte[] col, byte[] value) {

        try {
            Get g = new Get(row).setMaxVersions(1);
            Result r = table.get(g);
            Cell cell = r.getColumnLatestCell(fam, col);

            if (LOG.isTraceEnabled()) {
                LOG.trace("Value for " + table.getName().getNameAsString() + ":"
                                  + Bytes.toString(row) + ":" + Bytes.toString(fam)
                                  + Bytes.toString(col) + "=>" + Bytes.toString(CellUtil.cloneValue(cell))
                                  + " (" + Bytes.toString(value) + " expected)");
            }

            return Bytes.equals(CellUtil.cloneValue(cell), value);
        } catch (IOException e) {
            LOG.error("Error reading row " + table.getName().getNameAsString() + ":"
                              + Bytes.toString(row) + ":" + Bytes.toString(fam)
                              + Bytes.toString(col), e);
            return false;
        }
    }
}


text:
package topic

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"fmt"

	"github.com/go-swagger/go-swagger/client"
	"github.com/go-swagger/go-swagger/httpkit"
	"github.com/go-swagger/go-swagger/strfmt"

	"github.com/tangr1/hicto/models"
)

type PostTopicsReader struct {
	formats strfmt.Registry
}

func (o *PostTopicsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error) {
	switch response.Code() {

	case 201:
		result := NewPostTopicsCreated()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil

	case 400:
		result := NewPostTopicsBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	case 401:
		result := NewPostTopicsUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	case 403:
		result := NewPostTopicsForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	case 500:
		result := NewPostTopicsInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	default:
		return nil, NewAPIError("unknown error", response, response.Code())
	}
}

// NewPostTopicsCreated creates a PostTopicsCreated with default headers values
func NewPostTopicsCreated() *PostTopicsCreated {
	return &PostTopicsCreated{}
}

/*PostTopicsCreated

成功创建主题
*/
type PostTopicsCreated struct {
	Payload *models.Topic
}

func (o *PostTopicsCreated) Error() string {
	return fmt.Sprintf("[POST /topics/][%d] postTopicsCreated  %+v", 201, o.Payload)
}

func (o *PostTopicsCreated) readResponse(response client.Response, consumer httpkit.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Topic)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil {
		return err
	}

	return nil
}

// NewPostTopicsBadRequest creates a PostTopicsBadRequest with default headers values
func NewPostTopicsBadRequest() *PostTopicsBadRequest {
	return &PostTopicsBadRequest{}
}

/*PostTopicsBadRequest

无效请求
*/
type PostTopicsBadRequest struct {
	Payload *models.Error
}

func (o *PostTopicsBadRequest) Error() string {
	return fmt.Sprintf("[POST /topics/][%d] postTopicsBadRequest  %+v", 400, o.Payload)
}

func (o *PostTopicsBadRequest) readResponse(response client.Response, consumer httpkit.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil {
		return err
	}

	return nil
}

// NewPostTopicsUnauthorized creates a PostTopicsUnauthorized with default headers values
func NewPostTopicsUnauthorized() *PostTopicsUnauthorized {
	return &PostTopicsUnauthorized{}
}

/*PostTopicsUnauthorized

未认证
*/
type PostTopicsUnauthorized struct {
	Payload *models.Error
}

func (o *PostTopicsUnauthorized) Error() string {
	return fmt.Sprintf("[POST /topics/][%d] postTopicsUnauthorized  %+v", 401, o.Payload)
}

func (o *PostTopicsUnauthorized) readResponse(response client.Response, consumer httpkit.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil {
		return err
	}

	return nil
}

// NewPostTopicsForbidden creates a PostTopicsForbidden with default headers values
func NewPostTopicsForbidden() *PostTopicsForbidden {
	return &PostTopicsForbidden{}
}

/*PostTopicsForbidden

无访问权限
*/
type PostTopicsForbidden struct {
	Payload *models.Error
}

func (o *PostTopicsForbidden) Error() string {
	return fmt.Sprintf("[POST /topics/][%d] postTopicsForbidden  %+v", 403, o.Payload)
}

func (o *PostTopicsForbidden) readResponse(response client.Response, consumer httpkit.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil {
		return err
	}

	return nil
}

// NewPostTopicsInternalServerError creates a PostTopicsInternalServerError with default headers values
func NewPostTopicsInternalServerError() *PostTopicsInternalServerError {
	return &PostTopicsInternalServerError{}
}

/*PostTopicsInternalServerError

服务端内部错误
*/
type PostTopicsInternalServerError struct {
	Payload *models.Error
}

func (o *PostTopicsInternalServerError) Error() string {
	return fmt.Sprintf("[POST /topics/][%d] postTopicsInternalServerError  %+v", 500, o.Payload)
}

func (o *PostTopicsInternalServerError) readResponse(response client.Response, consumer httpkit.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil {
		return err
	}

	return nil
}


text:
'use strict';

const Console = require('better-console');
const Fs = require('fs');

const internals = {};

exports = module.exports = internals.Tracker = {

    // trackbkup : function (pthinkInternals, pluginType, pluginName, fnName, start, end) {

    //     const consoleTrackerStatus = pthinkInternals.developmentOptions.consoleTracker;

    //     const message = '[tracker] ,[function]' + pluginType + '.' + pluginName + '.' + fnName + ',[totalElapsedTime]' + (end - start) + ',[Date]' + Date.now() + '\n';

    //     if (consoleTrackerStatus)  {

    //         Console.info('       ' + message);
    //     }

    //     // Console.info('Console.info ' + pthinkInternals.compositionOptions.relativeTo + '/' + pthinkInternals.developmentOptions.logfile);

    //     const file = pthinkInternals.compositionOptions.relativeTo + '/' + pthinkInternals.developmentOptions.logfile;

    //     Fs.appendFile(file, message, (err) => {

    //         if (err) {
    //             throw err;
    //         }

    //         return;
    //     });

    // },

    track : function (label, error, pthinkInternals, pluginType, pluginName, fnName, start, end) {

        const consoleTrackerStatus = pthinkInternals.developmentOptions.consoleTracker;

        const message = '[tracker], [label]' + label + '[error]' + error + '[function]' + pluginType + '.' + pluginName + '.' + fnName + ',[totalElapsedTime]' + (end - start) + ',[Date]' + Date.now() + '\n';

        if (consoleTrackerStatus)  {

            Console.info('       ' + message);
        }

        const file = pthinkInternals.compositionOptions.relativeTo + '/' + pthinkInternals.developmentOptions.logfile;

        // Fs.appendFile(file, message, () => {
        Fs.appendFile(file, message, (err) => {

            // if (err) {
            //     throw err;
            // }

            // @issue tests on local machine all pass and have 100% coverage.
            // However, travis does not recognize coverage for this segement of code.
            // @solution .gitignore ignored the logs directory so travist d/n have it.
            if (err)  {

                return internals.error(file, err);
            }

            return;
            // console.log('The "data to append" was appended to file!');
        });

    },
    seperator: function (pthinkInternals) {

        const consoleTrackerStatus = pthinkInternals.developmentOptions.consoleTracker;

        const message = '-----\n';

        // Console.info('      consoleTrackerStatus ' + consoleTrackerStatus);

        if (consoleTrackerStatus)  {

            Console.info('       ' + message);
        }

        const file = pthinkInternals.compositionOptions.relativeTo + '/' + pthinkInternals.developmentOptions.logfile;

        Fs.appendFile(file, message, () => {

            // escaped for coverage.err
            // if (err) {
            //     throw err;
            // }

            return;
        });
    }
};

internals.error = function (file, errorMessage) {

    Fs.appendFile(file, errorMessage, () => {

        return;
    });
};


text:
define(["solv/date/shim"], function (dateShims) {
	"use strict";

	describe("Date.now", function () {

		it("returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC", function () {
			expect(new Date() - Date.now()).toBeLessThan(10);
		});

		if (Date.now !== dateShims.now) {
			it("returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC [shim]", function () {
				expect(new Date() - dateShims.now()).toBeLessThan(10);
			});
		}
	});
});


text:
from pypov.pov import Texture, Pigment
from pypov.pov import Finish, Box, Cone, Object, Cylinder
from pypov.pov import Union, Difference, Intersection
from pypov.colors import Colors

from pypov.common import grey, white
from lib.base import five_by_five_corner
from lib.textures import cross_hatch, cross_hatch_2, wall_texture_1
from lib.metadata import Metadata

def corner_5x5_019_info():
    return Metadata("very curved corner passage", "c19",
                    description="Very curved corner corner",
                    block_type="corner",
                    bottom=0, top=20,
                    size="5x5",
                    repeatable=True,
                    fully_connected=True,
                    dead_ends=False,
                    entrance=False,
                    has_rooms=False,
                    passage_type="hewn",
                    wet=False,
                    multi_level=False,
                    keywords=['boring', 'corner', 'halls', 'basic'])

def corner_5x5_019(rotate=(0, 0, 0), translate=(0, 0, 0), detail_level=1,
        cross_hatch_texture=cross_hatch_2):

    """docstring for gm02"""

    geomorph = Union(
        Difference(
            Object(five_by_five_corner(), cross_hatch_texture),
            Box((-2.5, 10, -20), (  2.5, 21, -26)),
            Box((-20, 10, -2.5), (-26, 21,   2.5)),
            Difference(
                Cylinder((0, 10.00001, 0), (0, 21, 0), 22.5),
                Cylinder((0, 9, 0), (0, 22, 0), 17.5),
                Box((-2.249999, 8, -2.24999), (-23, 23, -23)),
            ),
            wall_texture_1,
        ),
        translate=translate,
        rotate=rotate
    )
    return geomorph


text:
"""
django-cinch TODO lipsum
"""

from setuptools import setup, find_packages
import cinch

setup(
    name='django-cinch',
    version=cinch.__version__,
    description='Modular, class-based settings for Django',
    long_description=(open('README.rst').read() + '\n\n' +
                      open('COLOPHON.rst').read()),
    url='http://github.com/hipikat/django-cinch/',
    license='BSD 2-Clause',
    author='Adam Wright',
    author_email='adam@hipikat.org',
    packages=find_packages(),
    include_package_data=True,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)


text:
import os.path
import tempfile
import yaml

from mistralclient import utils
from oslo_serialization import jsonutils
from oslotest import base

ENV_DICT = {'k1': 'abc', 'k2': 123, 'k3': True}
ENV_STR = jsonutils.dumps(ENV_DICT)
ENV_YAML = yaml.safe_dump(ENV_DICT, default_flow_style=False)

class UtilityTest(base.BaseTestCase):

    def test_load_empty(self):
        self.assertDictEqual(dict(), utils.load_content(None))
        self.assertDictEqual(dict(), utils.load_content(''))
        self.assertDictEqual(dict(), utils.load_content('{}'))
        self.assertListEqual(list(), utils.load_content('[]'))

    def test_load_json_content(self):
        self.assertDictEqual(ENV_DICT, utils.load_content(ENV_STR))

    def test_load_json_file(self):
        with tempfile.NamedTemporaryFile() as f:
            f.write(ENV_STR.encode('utf-8'))
            f.flush()
            file_path = os.path.abspath(f.name)

            self.assertDictEqual(ENV_DICT, utils.load_file(file_path))

    def test_load_yaml_content(self):
        self.assertDictEqual(ENV_DICT, utils.load_content(ENV_YAML))

    def test_load_yaml_file(self):
        with tempfile.NamedTemporaryFile() as f:
            f.write(ENV_YAML.encode('utf-8'))
            f.flush()
            file_path = os.path.abspath(f.name)

            self.assertDictEqual(ENV_DICT, utils.load_file(file_path))

    def test_load_json(self):
        with tempfile.NamedTemporaryFile() as f:
            f.write(ENV_STR.encode('utf-8'))
            f.flush()
            self.assertDictEqual(ENV_DICT, utils.load_json(f.name))

        self.assertDictEqual(ENV_DICT, utils.load_json(ENV_STR))


text:
# max-statements

Enforces a maximum number of statements allowed in function blocks.

The `max-statements` rule allows you to specify the maximum number of statements allowed in a function.

```js
function foo() {
  var bar = 1; // one statement
  var baz = 2; // two statements
  var qux = 3; // three statements
}
```

## Rule Details

This rule enforces a maximum number of statements allowed in function blocks.

## Options

This rule has a number or object option:

* `"max"` (default `10`) enforces a maximum number of statements allows in function blocks

**Deprecated:** The object property `maximum` is deprecated; please use the object property `max` instead.

This rule has an object option:

* `"ignoreTopLevelFunctions": true` ignores top-level functions

### max

Examples of **incorrect** code for this rule with the default `{ "max": 10 }` option:

```js
/*eslint max-statements: ["error", 10]*/
/*eslint-env es6*/

function foo() {
  var foo1 = 1;
  var foo2 = 2;
  var foo3 = 3;
  var foo4 = 4;
  var foo5 = 5;
  var foo6 = 6;
  var foo7 = 7;
  var foo8 = 8;
  var foo9 = 9;
  var foo10 = 10;

  var foo11 = 11; // Too many.
}

let foo = () => {
  var foo1 = 1;
  var foo2 = 2;
  var foo3 = 3;
  var foo4 = 4;
  var foo5 = 5;
  var foo6 = 6;
  var foo7 = 7;
  var foo8 = 8;
  var foo9 = 9;
  var foo10 = 10;

  var foo11 = 11; // Too many.
};
```

Examples of **correct** code for this rule with the default `{ "max": 10 }` option:

```js
/*eslint max-statements: ["error", 10]*/
/*eslint-env es6*/

function foo() {
  var foo1 = 1;
  var foo2 = 2;
  var foo3 = 3;
  var foo4 = 4;
  var foo5 = 5;
  var foo6 = 6;
  var foo7 = 7;
  var foo8 = 8;
  var foo9 = 9;
  var foo10 = 10;
  return function () {

    // The number of statements in the inner function does not count toward the
    // statement maximum.

    return 42;
  };
}

let foo = () => {
  var foo1 = 1;
  var foo2 = 2;
  var foo3 = 3;
  var foo4 = 4;
  var foo5 = 5;
  var foo6 = 6;
  var foo7 = 7;
  var foo8 = 8;
  var foo9 = 9;
  var foo10 = 10;
  return function () {

    // The number of statements in the inner function does not count toward the
    // statement maximum.

    return 42;
  };
}
```

Note that this rule does not apply to class static blocks, and that statements in class static blocks do not count as statements in the enclosing function.

Examples of **correct** code for this rule with `{ "max": 2 }` option:

```js
/*eslint max-statements: ["error", 2]*/

function foo() {
    let one;
    let two = class {
        static {
            let three;
            let four;
            let five;
            if (six) {
                let seven;
                let eight;
                let nine;
            }
        }
    };
}
```

### ignoreTopLevelFunctions

Examples of additional **correct** code for this rule with the `{ "max": 10 }, { "ignoreTopLevelFunctions": true }` options:

```js
/*eslint max-statements: ["error", 10, { "ignoreTopLevelFunctions": true }]*/

function foo() {
  var foo1 = 1;
  var foo2 = 2;
  var foo3 = 3;
  var foo4 = 4;
  var foo5 = 5;
  var foo6 = 6;
  var foo7 = 7;
  var foo8 = 8;
  var foo9 = 9;
  var foo10 = 10;
  var foo11 = 11;
}
```

## Related Rules

* [complexity](complexity.md)
* [max-depth](max-depth.md)
* [max-len](max-len.md)
* [max-lines](max-lines.md)
* [max-lines-per-function](max-lines-per-function.md)
* [max-nested-callbacks](max-nested-callbacks.md)
* [max-params](max-params.md)


text:
div.cache-blow {
	opacity: 0.1 ;
}

/*
*
*
*    Manager - services tabs
*
*/
#services-tab-content .options button.csap-button {
	margin-left: 2em;
	min-width: 8em;
}

#services-tab-content .options #refresh-backlog-now {
	min-width: 1.5em;
	padding-left: 10px;
	font-size: 12pt;
	margin-right: 4em;
}

#services-tab-content .options #profile, #service-description a.csap-link
	{
	font-style: normal;
	font-weight: bold;
	font-size: 9pt;
	vertical-align: middle;
}

#service-description a.csap-help {
	margin-left: 3em;
}

#services-tab-content #service-description {
	display: grid;
	grid-template-columns: 6em 8em auto;
	margin: 0;
	margin-top: 10px;
	align-items: end ;
}

#services-tab-content #service-instance-alerts {
	display: none;
	padding-left: 0;
	max-height: 10em;
	overflow: auto;
	white-space: normal;
}

#services-tab-content #service-instance-alerts label.csap {
	margin-left: 1em;
	margin-right: 5em;
}

#services-tab-content #service-instance-alerts ol.csap-list {
	white-space: pre-wrap;
}

#services-tab-content table td {
	vertical-align: top;
}

/*
*
*
*    Services Backlog
*
*/
#backlog-content {
	padding: 1em;
}

#services-tab-backlog table {
	width: 100%;
	margin-left: 0;
}

#services-tab-backlog td.deploy-backlog {
	padding-left: 10px;
}

#services-tab-backlog td.deploy-backlog div.controls {
	display: flex;
	gap: 2em;
	color: black;
}

#services-tab-backlog td.deploy-backlog div.queue {
	display: grid;
	grid-template-columns: 20em 10em 10em;
	color: black;
	background-color: #d9eaf4;
	padding: 0.5em;
	margin: 0.25em;
	margin-left: 0em;
	margin-right: 1em;
	border-radius: 3px;
}

/*
*
*
*    Services Batch
*
*/
#services-tab-batch #hostJobsTable {
	margin-left: 1em;
	margin-top: 2em;
}

#services-tab-batch .options button {
	min-width: 10em;
	margin: 1em;
	padding: 10px;
	font-size: 12pt;
}

#services-tab-batch  #batchProgressBar {
	position: relative;
	height: 3em;
	margin: 2em;
}

#services-tab-batch #batchProgressLabel {
	position: absolute;
	padding-left: 2em;
	top: 8px;
	font-weight: bold;
	font-size: 14pt;
	font-style: italic;
}

#services-tab-batch #clusterHostJson, #services-tab-batch #clusterServiceJson
	{
	display: none;
}

#services-tab-batch .cluster-checkboxes, #services-tab-batch .hostCheckboxes,
	#services-tab-batch .serviceCheckboxes {
	display: block;
	columns: 15em 5;
}

#services-tab-batch .configLabels  {
	display: grid;
	grid-template-columns: 1.7em auto;
	vertical-align: text-top;
	margin-bottom: 0.8em;
	margin-left: 0;
	break-inside: avoid;
}

#services-tab-batch .batchDialog .configLabels input:checked {
	background-color: #2196F3;
}

#services-tab-batch .batchDialog div.title a {
	display: inline;
}

#services-tab-batch .batchDialog {
	position: relative;
	font-size: 10pt;
	background-color: white;
	color: black;
	margin: 1em;
	margin-top: 2em;
	padding: 0.5em;
	border: var(--theme-border);
	border-radius: var(--border-radius-small);
}

#services-tab-batch .batchDialog div.title .csap-button {
	margin-left: 1em;
	margin-right: 1em;
}

.batchDialog div.title {
	font-weight: bold;
	font-size: 11pt;
	top: 0;
	font-style: normal;
	margin: 10px;
	margin-top: 0px;
	float: none;
	border: none;
	margin-left: 0;
	padding-left: 5px;
}

#services-tab-batch .cluster-selection div.title {
	display: flex;
	justify-content: space-between;
}

#services-tab-batch .batchResult label, #services-tab-batch .batchConfig label
	{
	font-weight: bold;
	margin-left: 2em;
}

#services-tab-batch div.serviceLogs {
	columns: 22em 6;
}

#services-tab-batch div.serviceLogs>div {
	font-size: 10pt;
	margin-bottom: 10px;
	break-inside: avoid;
}
#services-tab-batch div.serviceLogs>div a {
	display: block;
	break-inside: avoid;
}

#services-tab-batch #hostJobsTable  td:nth-child(1), #hostJobsTable  th:nth-child(1) {
	width: 15em;
	word-break: break-all;
}

#services-tab-batch #hostJobsTable  td:nth-child(2), #hostJobsTable  th:nth-child(2)
	{
	width: auto ;
}

#services-tab-batch #hostJobsTable th {
	padding: 9px;
	text-align: center;
}

/*
*
*    Services Summary
*
*/
article.navigation div.tab-menu>span.service-selected, article.navigation div.tab-menu>span.pod-selected,
	article.navigation div.tab-menu>span.node-selected, article.navigation div.tab-menu>span.volume-selected
	{
	display: none;
}

article.content #services-tab-content a.csap-remove {
	padding-left: 20px;
	background-size: 16px 16px;
}

a.csap-remove:hover {
	cursor: pointer;
}

article.content #services-tab-instances .options {
	white-space: normal;
	display: block;
}

#services-tab-instances .options #ops-row {
	display: flex;
	justify-content: space-between;
	white-space: nowrap;
}

.last-refreshed {
	font-size: 10pt;
	font-style: italic;
}

#services-tab-status .options label {
	margin-right: 3em;
}

#services-tab-content div.deployment-panel.rows {
	display: block;
}

#deployDialog .adminNote {
	padding: 1em;
	font-style: italic;
}

#services-tab-content div.deployment-panel.grid {
	display: grid;
	color: black;
	grid-template-columns: repeat(auto-fit, minmax(20em, 0fr));
	/*grid-template-rows: repeat(auto-fit, minmax(3em, 0fr));*/
	padding: 5px;
	grid-column-gap: 10px;
	grid-row-gap: 10px;
}

:root {
  --max-panel-item-width: 40em;
}

#services-tab-content div.deployment-panel .summary {
	display: grid;
	grid-template-columns: 60px auto;
	border-radius: 5px;
	padding: 5px;
	margin-bottom: 10px;
	break-inside: avoid-column;
	color: var(--panel-header-color);
	background-color: var(--panel-header-bg);
	max-width: var(--max-panel-item-width);
	max-height: 100px;
}

#services-tab-content div.deployment-panel .deploy-info {
	font-size: 8pt;
	display: flex;
}

#services-tab-content div.deployment-panel .summary:hover {
	background: var(--nav-hover-background);
	color: var(--nav-hover-color);
	cursor: pointer;
}

#services-tab-content button.service-alert-show img {
	width: 12px;
	height: 12px;
}

#services-tab-content .summary>div {
	white-space: nowrap;
	overflow: hidden;
}

#services-tab-content .summary>div:first-child>img {
	width: 32px;
	height: 32px;
	vertical-align: middle;
}

#services-tab-content .summary>div:first-child {
	font-weight: bold;
	font-size: 22pt;
}

#services-tab-content .summary>div:nth-child(2)>div:nth-child(1) {
	font-weight: bold;
	display: flex;
	justify-content: flex-start;
	gap: 1em;
}

#services-tab-content .summary .status {
	display: flex;
	gap: 2em;
	margin-top: 3px;
	font-size: 10pt;
	font-style: italic;
	font-weight: bold;
	align-items: center;
	position: relative ;
}

#services-tab-content .summary .status button.service-alert-show {
	position: absolute;
	right: 1px;
	bottom: 1px;
	background-color: var(--nav-hover-background);
}

#services-tab-content .summary .status button.service-alert-show:hover {
	background-color: var(--panel-header-bg);
}

#services-tab-content .summary .status>span {
	padding-left: 18px;
}

#services-tab-content .summary>div:nth-child(2) img {
	vertical-align: text-top;
	margin-right: 5px;
}

/*
*
*    Services Instances
*
*/
#instance-panel>div {
	margin: 1em;
	margin-left: 0;
}

#services-tab-instances .options .navigation button {
	margin-left: 0px;
}

#services-tab-instances table {
	width: auto;
}

#services-tab-instances table#registered tr .instance-container label {
	display: grid;
	grid-template-columns: 1.2em 1.4em auto;
	align-items: start;
	margin-right: 5px;
}

#services-tab-instances table#registered tr td {
	min-width: 3em;
}
#services-tab-instances table#registered tr .kubernetes-only {
	white-space: nowrap ;
	padding-left: 3px;
	text-align: left ;
}
#services-tab-instances table#registered tr th.kubernetes-only {
	padding-left: 1em
}

/*
#services-tab-instances table#registered tr td:first-child {
	min-width: 23em;
}*/

#services-tab-instances table tr.selected td {
	opacity: 0.8 ;
	background: #f2fbec;
}

#services-tab-instances table td.numeric {
	cursor: pointer;
}

#services-tab-instances table td.numeric:hover {
	background-color: var(--nav-hover-background);
	color: var(--nav-hover-color);
}

#services-tab-instances table span.host:hover {
	cursor: pointer;
	text-decoration: underline;
}

#services-tab-instances table#registered div.kubernetes-only {
	margin-top: 5px;
}

#services-tab-instances table#registered div.kubernetes-only label {
	display: block;
	text-align: right;
}
#services-tab-instances table#registered div.kubernetes-only label:last-child {
	font-style: italic ;
	font-size: 8pt ;
}

#services-tab-instances table#registered .instance-container {
	display: grid;
	grid-template-columns: auto 1em 1em 1em 1em;
	grid-column-gap: 5px;
	align-items: center;
}

#services-tab-instances table#registered .instance-container span.host-index {
	font-size: 9pt;
	font-style: italic;
	position: relative;
	right: -10px;
}

div.csap-button-menu .logs {
	background-image: url(../../images/16x16/files.png);
}

div.csap-button-menu .files {
	background-image: url(../../images/folder.png);
}

div.csap-button-menu .launch {
	background-image: url(../../images/16x16/window.svg);
}

div.csap-button-menu .metrics {
	background-image: url(../../images/16x16/sysMon.png);
}

div.csap-button-menu button.csap-button.service-live {
	background-image: url(../../images/live.svg);
	background-size: 24px 28px;
}

#services-tab-instances table button {
	opacity: 0.0;
	margin-right: 5px;
}

#services-tab-instances table tr:hover button {
	opacity: 1.0;
}

#services-tab-instances .host button {
	color: inherit;
	background-color: inherit;
	border-radius: var(--border-radius-small);
	border: none;
	padding-left: 0;
	min-width: 10em;
	text-align: left;
}

#services-tab-instances table tr:hover .host button {
	color: var(--theme-color);
	background: var(--theme-bg);
	border-radius: var(--border-radius-small);
	border: var(--theme-border);
	text-align: center;
}

#services-tab-instances #table-operations span {
	font-style: italic;
	font-size: 10pt;
}

#services-tab-instances #table-operations {
	display: flex ;
	align-items: center;
	white-space: nowrap;
	gap: 2em;
}

#services-tab-instances #table-operations span.selection-count {
	position: relative ;
	top: 5px;
	left: -5px;

}

#services-tab-instances table img {
	vertical-align: text-bottom;
	margin-right: 0.5em;
}

#services-tab-instances table#registered td, #services-tab-instances  table#registered th {
	text-align: right;
	vertical-align: top;
}

#services-tab-instances table#unregistered th,#services-tab-instances table#unregistered td:nth-child(3) {
	padding-left: 8px;
}

#services-tab-instances table#unregistered td {
	text-align: left;
	white-space: nowrap;
	padding-left: 3px;
}

#services-tab-instances table#registered td:nth-child(1), #services-tab-instances  table#registered th:nth-child(1) {
	text-align: left;
	white-space: nowrap;
}

#services-tab-instances #instance-dummy {
	display: grid;
	grid-template-columns: auto auto auto;
	background-color: white;
}

/*
*
*    Service deploy dialogs
*
*/
.ajs-content #killOptions button {
	margin-left: 2em;
	min-width: 15em;
	padding: 0.5em;
	padding-left: 2em;
}

.ajs-content #killOptions>div {
	margin-top: 2em;
}
.ajs-content #killOptions label.csap input {
	vertical-align: text-bottom;
}

.ajs-content #deploy-from {
	margin-bottom: 1em;
	padding-bottom: 0.5em;
}

.ajs-content .optionLabel {
	font-weight: bold;
	margin-left: 2em;
	margin-right: 4em;
}

.ajs-content .optionLabel input {
	margin-right: 0.25em;
}

.ajs-content #serviceParameters, .ajs-content #kubernetes-definition-text
	{
	width: 90%;
	height: 100%;
	min-height: 6em;
	box-sizing: border-box;
	background-color: #e5eff2;
}

/*
*
*    Service - metrics
*
*/
#services-tab-analytics .hostLaunch {
	display: none;
}

#services-tab-analytics #debug {
	display: none;
}

#services-tab-analytics div.visible-container {
	position: inherit;
}

#services-tab-analytics #panelInfo {
	margin: 4px;
	font-weight: bold;
}

#services-tab-analytics .graphOptions {
	padding-top: 0;
	padding-right: 1em;
	padding-left: 1em;
	padding-bottom: 0;
}

#services-tab-analytics #panelInfo div {
	background-color: yellow;
	font-size: 10pt;
}

#services-tab-analytics .options input[type="checkbox"] {
	margin-left: 2em;
	margin-right: 0;
}

#services-tab-analytics #osChart table {
	font-size: 11pt;
	width: 45em;
}

#services-tab-analytics #osChart>div {
	margin-bottom: 3em;
}

#services-tab-analytics  #appStats .appTitle input {
	margin-right: 3px;
}

#services-tab-analytics #appStats #services-tab-analytics table.csap,
	#serviceStats table.csap {
	margin-top: 2px;
	margin-bottom: 5px;
}

#serviceStats td.showGraphCell:hover, #appStats td.showGraphCell:hover {
	cursor: pointer;
	text-decoration: underline;
	background: rgb(144, 188, 234);
	background: rgba(144, 188, 234, 0.8);
}

#serviceStats a.simple:hover, #appStats a.simple:hover {
	cursor: pointer;
}

#services-tab-analytics table.csap span.resourceWarning {
	font-weight: bold;
	font-style: italic;
}

#serviceStats {
	vertical-align: middle;
	padding: 2px;
	margin-top: 0px;
}

#serviceStats table.csap td, #serviceStats table.csap th, #appStats table.csap td,
	#appStats table.csap th {
	text-align: right;
	padding: 8px;
	padding-right: 2em;
	position: relative;
}

#serviceStats table.csap td:nth-child(1), #serviceStats table.csap th:nth-child(1),
	#appStats table.csap td:nth-child(1), #appStats table.csap th:nth-child(1)
	{
	padding-right: 4px;
}

#serviceStats table.csap th, #appStats table.csap th {
	padding-right: 8px;
	padding-left: 3px;
	min-width: 6em;
}

#appStats table.csap th, #serviceStats table.csap th {
	text-align: center;
	padding-bottom: 4px;
	padding-top: 4px;
}

#serviceStats .limitsColumn, #appStats .limitsColumn {
	display: none;
}

#serviceStats .units, #appStats .units {
	position: absolute;
	display: inline;
	top: 8px;
	padding-left: 3px;
	font-weight: normal;
}

#serviceStats table.csap td:first-child, #appStats table.csap td:first-child
	{
	text-align: left;
}

#serviceStats table.csap td:first-child .statusIcon, #appStats table.csap td:first-child .statusIcon
	{
	position: relative;
	left: -3px;
}

#appStats span.customRate {
	float: right;
	font-size: 9pt;
	font-style: italic;
}

#services-tab-analytics .day1, #services-tab-analytics .day7 {
	font-weight: normal;
}

#services-tab-analytics #compareStartInput {
	width: 7em;
	margin-top: 5px;
}

#services-tab-analytics #graphDiv {
	display: none;
	width: 580px;
	position: fixed;
	top: 50px;
	height: 800px;
	overflow: visible;
	background-color: var(--nav-active-background);
	border: 1px solid #6ba8e5;
	border-radius: 5px;
}

#services-tab-analytics #graphDiv .graph-display-options {
	left: 1em;
	top: 2em;
}

#services-tab-analytics .gpanel {
	font-size: 9pt;
}

#services-tab-analytics #panelControls {
	height: 1.5em;
	padding-left: 5px;
	color: var(--panel-header-color);
	background: var(--panel-header-bg);
	display: flex;
	justify-content: space-between;
	font-size: 10pt;
}

#services-tab-analytics #panelControls img {
	width: 14px;
	height: 14px;
	margin-top: 4px;
	margin-right: 5px;
}

#services-tab-analytics #panelControls #closePanel {
	background-size: 14px 14px;
	margin-top: 3px;
	height: 14px;
	vertical-align: top;
	width: 14px;
	margin-right: 3px;
}

#services-tab-analytics #isStackHosts {
	font-size: 10px;
	margin-top: 2px;
	background-color: yellow;
	color: black;
}

#services-tab-analytics #hostDisplay {
	display: none;
}

#services-tab-analytics #graphDiv .loadingLargePanel {
	left: 0;
}

#services-tab-analytics #graphDiv .graphDisplay {
	margin-top: 5px;
}

#services-tab-analytics #graphDiv .graphDisplay .timeZone {
	margin-left: 0em;
	margin-right: 5px;
}

#services-tab-analytics .plotMinMaxButton {
	display: none;
}

#services-tab-analytics #opsTitle {
	position: absolute;
}

/*
*
*    Service jobs
*
*/
#services-tab-jobs #service-job-summary {
	font-size: 10pt;
	display: grid;
	color: black;
	grid-template-columns: 8em minmax(20em, 1fr) minmax(10em, 3fr);
	column-gap: 1em;
	row-gap: 1em;
	align-items: center;
}

#services-tab-jobs #job-listing span.quote{
	margin: 0 ;
}

#service-job-summary span.description {
	font-weight: bold;
	min-width: 10em
}

#service-job-summary span.job-notes {
	font-style: italic;
}

#service-job-summary span.job-background {
	padding-right: 1em;
	color: red;
	font-style: italic;
}

#service-job-summary button.csap-button {
	font-size: 9pt;
}

#service-job-summary>span {
	background-color: white;
	padding: 5px;
	border: var(--theme-border);
	border-radius: var(--border-radius-small);
}

#services-tab-jobs #service-job-confirm .csap-play {
	font-size: 16pt;
}

#services-tab-jobs #service-job-parameters  {
	display: grid;
	color: black;
	grid-template-columns:  12em  12em  minmax(15em, 1fr);
	padding: 5px;
	grid-column-gap: 1em;
	grid-row-gap: 10px;
	margin-bottom: 2em;
	align-items: start;
	justify-items: left;
}

#services-tab-jobs #service-job-parameters .read-only {
	background-color: #c3c3c3;
}
#services-tab-jobs #service-job-parameters >label {
	justify-self: right ;
}
#services-tab-jobs #service-job-parameters >label::after {
	content: ":";
}
#services-tab-jobs #service-job-parameters input, #services-tab-jobs #service-job-parameters textarea {
	width: 100%;
}

#services-tab-jobs #service-job-parameters >span {
	font-style: italic;
	font-size: 9pt;
	padding-left: 2em;
}

/*
*
*    Editor - file browser ; scrolling via the included content
*
*/
div#services-tab-content {
	height: 100%;
}

div#services-tab-resources {
	height: 100%;
}

div#services-tab-resources .csap-scrollable article.content {
	background-color: white;
}

/*
*
*    Services - log browser ; scrolling via the included content
*
*/
div#services-tab-content {
	height: 100%;
}

div#services-tab-content #services-tab-status {
	height: 100%;
	width: 100% ;
	display: grid;
	grid-template-rows: var(--option-height) auto;
}

div#services-tab-content #services-tab-status div#summary-panel {
	height: 100%;
	width: 100% ;
	overflow-y: auto ;
}

div#services-tab-logs, div#services-tab-pod-logs {
	height: 100%;
}

div#services-tab-logs .csap-scrollable article.content, div#services-tab-pod-logs .csap-scrollable article.content
	{
	background-color: white;
	overflow: hidden;
}

div#services-tab-logs .csap-file-monitor header, div#services-tab-pod-logs .csap-file-monitor header
	{
	padding-top: 0;
}

/*
*
*    kubernetes pods & nodes
*
*/

#services-tab-knodes table tr.header-only th {
	border-bottom: none;
	padding-bottom: 0;
	text-align: center;
}
#services-tab-knodes table tr.path-specifier th {
	padding-top: 0;
	text-align: center;
}
#services-tab-knodes table td {
	white-space: nowrap;
}

#services-tab-knodes input#node-max-pod-running {
	width: 2em ;
	margin-left: 10px;
	margin-right: 4px;
}

#services-tab-knodes div#node-instances  table tbody td:nth-child(2),
#services-tab-knodes div#node-instances  table tbody td:nth-child(5),
#services-tab-knodes div#node-instances  table tbody td:nth-child(8),
#services-tab-knodes div#node-instances  table tbody td:nth-child(12)
{
	border-left: 3px solid black;
}

#services-tab-content #container-instances {
	margin-top: 2em;
}

#services-tab-content table td.numeric {
	text-align: right;
}

div#services-tab-content #services-tab-kpods {
	height: 100%;
	width: 100% ;
	display: grid;
	grid-template-rows: var(--option-height) auto;
}

div#services-tab-content #services-tab-kpods div#pods-summary {
	height: 100%;
	width: 100% ;
	overflow-y: auto ;
}

#services-tab-kpod-instances .options label.notes {
	font-size: 9pt;
	align-self: flex-end;
}

#services-tab-kpod-instances table, #services-tab-knodes table, #services-tab-kvolumes table {
	margin-top: 1em;
}

#services-tab-kpod-instances table tr td:nth-child(1),
	#services-tab-knode-instances table tr td:nth-child(1) {
	min-width: 15em
}

#services-tab-kpod-instances table tr td:nth-child(2) {
	min-width: 10em
}

#services-tab-kpod-instances table tr td.image {
	word-break: break-all ;
}

#services-tab-kpod-instances table tr td button.csap-icon {
	opacity: 0;
}
#services-tab-kpod-instances table tr:hover td button.csap-icon {
	opacity: 1.0;
}

#services-tab-kpod-instances table tr td label,
	#services-tab-knode-instances table tr td label, #services-tab-kvolumes table tr td label
	{
	display: grid;
	grid-template-columns: 1em auto;
	column-gap: 1em;
	align-items: start;
}

#services-tab-kpod-instances table tr td label {
	grid-template-columns: 1em auto 1em;
}

#services-tab-kpod-instances table tr td span.host {
	margin-top: 2px;
}
#services-tab-content .describe-container, #services-tab-content .describe-container pre,
 #services-tab-content #helm-values-editor
 {
	height: 100%;
}

#services-tab-content #helm-readme-viewer {
	height: 100%;
	overflow: auto;
	background-color: white;
	color: black;
	border-radius: var(--border-radius-small);
	padding: var(--small-padding);

}

#services-tab-content #readme-source a.csap-link{
	max-width: 10em;
}

#services-tab-content #helm-readme-viewer a {
	color: cornflowerblue ;
	font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
}
#services-tab-content #helm-readme-viewer a:hover {
	color: red ;
}

#services-tab-content .describe-container div.options {
	margin-bottom: 0;
	padding-bottom: 0;
}

#services-tab-content .describe-container	 pre {
	border: 1px solid white;
	margin: 0
}

/*
*
*    kubernetes volumes with scroll table supprot
*
*/
#services-tab-kvolumes {
	display: grid;
	grid-template-rows: var(--option-height) auto;
	height: 100%;
}

#services-tab-kvolumes #volume-instances {
	height: 100%;
	overflow: auto;
}

#services-tab-kvolumes table a.csap-link {
	white-space: normal;
}

/*
*
*    kubernetes pod logs
*
*/

#services-tab-pod-logs {
	display: grid;
	grid-template-rows: 1.5em auto;
	height: 100%;
}

#services-tab-pod-logs label.csap {
	margin-left: 10px ;
}

#services-tab-pod-logs #kubernetes-log-viewer {
	height: 100%;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

#services-tab-pod-logs #k8s-logs-controls {
	display: flex;
	white-space: nowrap;
	gap: 2em;
	align-items: center ;
}

#services-tab-pod-logs #k8s-logs-controls .flex-right-info {
	font-size: 8pt;
	font-weight: normal;
}

#services-tab-pod-logs #k8s-logs-controls label button.csap-icon{
	margin-left: 1em;
}

#k8s-logs-controls select {
	max-width: 12em;
	text-overflow: ellipsis;
}

#k8s-logs-controls #pod-hover-controls {
	font-size: 10pt ;
}

#k8s-logs-controls span.quote {
	margin: 0;

}

/*
*
*    kubernetes Events
*
*/
#services-tab .kevent-details-selected {
	display: none;
}

#services-tab-kevents {
	display: grid ;
	grid-template-rows:  2em auto;
	height: 100% ;
}

#services-tab-kevents #events-panel {
	overflow: auto;
}

#services-tab-kevents #kevents-filters {
	white-space: nowrap;
}
#services-tab-kevents #kevents-filters #kevent-counts, #services-tab-kevents #kevents-filters label#limit-events-displayed {
	margin-left: 3em;
	font-size: 9pt;
	font-style: italic;
}

#services-tab-kevents  span.status-red {
	padding-left: 20px;
	margin-left: 1em;
}
#services-tab-kevents #kevents-filters label.csap {
	margin-left: 1em;
}

#services-tab-kevents #event-refresh {
	vertical-align: text-bottom;
}

#services-tab-kevents table td.event-date-label {
	font-size: 12pt ;
	font-weight: bold;
	color: var(--theme-color);
	background-color: var(--nav-hover-background);
	border-right: none;
	border-left: none;
}
#services-tab-kevents table tr:hover td.event-date-label  {
	background: var(--nav-hover-background);

}

#services-tab-kevents table button.event-time {
	border: 1px solid white;
	background-color: inherit;
	color: black;
	padding-left: 2px;
	font-weight: normal;
	font-size: 11pt;
}

#services-tab-kevents table tr:hover button.event-time {
	color: var(--nav-hover-color);
	background: #f6f6f6;
	border: var(--theme-border);
}

#services-tab-kevents table th {
	text-align: left;
}

#services-tab-kevents table th input {
	float: right;
	width: 15em;
	font-size: 9pt;
}

#services-tab-kevents table td div.event-details span {
	font-size: 10pt;
	font-style: italic;
	margin-right: 1em;
}

#services-tab-kevents table :is(.source)  {
	min-width: 15em;
}
#services-tab-kevents table td.source span {
	margin-right: 1em;
}

#services-tab-kevents table td.source div.header {
	display: flex;
}

#services-tab-kevents table td.source div.header span.reason {
	font-weight: bold;
}

#services-tab-kevents table td div.event-details span.multiple-instances {
	font-weight: bold;
	float: right ;
}


text:
require 'open-uri'

module Sinatra
  module UMDIO
    module Helpers
      require 'net/http'

      def wrapRequest(url)
        Net::HTTP.get(URI(url + '&t=0')).to_s
      end
    end
  end
end


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Consp. System. Corticiac. (Tartu) 86 (1968)

#### Original name
Chaetoderma Parmasto, 1968

### Remarks
null


text:
class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :firstname
      t.string :lastname
      t.string :email_address
      t.string :role

      t.timestamps
    end
  end
end


text:
using System;
using System.Collections.Generic;
using SocketDog.Common;
using SocketDog.Core.Annotations;
using SocketDog.Core.Interface;
using SocketDog.Core.Model.Strategies;

namespace SocketDog.Core.Model
{
    public sealed class ConnectionsManager
    {
        public ConnectionsManager()
        {
            Connections = new List<SocketConnection>();
        }

        public List<SocketConnection> Connections { get; private set; }

        public void CreateConnectionWithStrategy([NotNull] SendDataStrategyCommon strategy, [NotNull] ILogger logger)
        {
            if (strategy == null) throw new ArgumentNullException("strategy");
            if (logger == null) throw new ArgumentNullException("logger");

            Connections.Add(new SocketConnection(strategy, logger));
        }
    }
}


text:
package lsh.ext.gson.ext.java.lang;

import java.util.stream.Stream;

import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import lsh.ext.gson.adapters.AbstractTypeAdapterFactoryTest;
import org.junit.jupiter.params.provider.Arguments;

public final class RecordTypeAdapterFactoryTest
		extends AbstractTypeAdapterFactoryTest {

	public RecordTypeAdapterFactoryTest() {
		super(false);
	}

	@Override
	protected TypeAdapterFactory createUnit() {
		return RecordTypeAdapterFactory.getInstance();
	}

	@Override
	protected Stream<Arguments> supported() {
		return Stream.of(
				Arguments.of(TypeToken.getParameterized(FooBar.class))
		);
	}

	@Override
	protected Stream<Arguments> unsupported() {
		return Stream.of(
				Arguments.of(TypeToken.get(Void.class))
		);
	}

}


text:
config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}

config etc/hostsblock/rc.conf.new

# backup existing /etc/hosts to /etc/hostsblock/hosts.head if it doesn't already exist
if [ ! -r etc/hostsblock/hosts.head ] ; then
  cp etc/hosts etc/hostsblock/hosts.head
fi


text:
<?php

class TaxController extends Controller
{
	public function filters()
	{
		return array(
			'accessControl', // perform access control for CRUD operations
		);
	}

	public function beforeAction($action) {
		$this->layout = Shop::module()->layout;
		return parent::beforeAction($action);
	}

	public function accessRules()
	{
		return array(
			array('allow', // allow admin user to perform 'admin' and 'delete' actions
				'actions'=>array('admin','delete','create','update','view','index'),
				'users'=>array('admin'),
			),
			array('deny',  // deny all users
				'users'=>array('*'),
			),
		);
	}

	public function actionView($id)
	{
		$this->render('view',array(
			'model'=>$this->loadModel($id),
		));
	}

	public function actionCreate()
	{
		$model=new Tax;

		// Uncomment the following line if AJAX validation is needed
		// $this->performAjaxValidation($model);

		if(isset($_POST['Tax']))
		{
			$model->attributes=$_POST['Tax'];
			if($model->save())
				$this->redirect(array('view','id'=>$model->id));
		}

		$this->render('create',array(
			'model'=>$model,
		));
	}

	/**
	 * Updates a particular model.
	 * If update is successful, the browser will be redirected to the 'view' page.
	 * @param integer $id the ID of the model to be updated
	 */
	public function actionUpdate($id)
	{
		$model=$this->loadModel($id);

		// Uncomment the following line if AJAX validation is needed
		// $this->performAjaxValidation($model);

		if(isset($_POST['Tax']))
		{
			$model->attributes=$_POST['Tax'];
			if($model->save())
				$this->redirect(array('view','id'=>$model->id));
		}

		$this->render('update',array(
			'model'=>$model,
		));
	}

	/**
	 * Deletes a particular model.
	 * If deletion is successful, the browser will be redirected to the 'index' page.
	 * @param integer $id the ID of the model to be deleted
	 */
	public function actionDelete($id)
	{
		if(Yii::app()->request->isPostRequest)
		{
			// we only allow deletion via POST request
			$this->loadModel($id)->delete();

			// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
			if(!isset($_GET['ajax']))
				$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
		}
		else
			throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
	}

	/**
	 * Lists all models.
	 */
	public function actionIndex()
	{
		$this->actionAdmin();
	}

	/**
	 * Manages all models.
	 */
	public function actionAdmin()
	{
		$model=new Tax('search');
		$model->unsetAttributes();  // clear any default values
		if(isset($_GET['Tax']))
			$model->attributes=$_GET['Tax'];

		$this->render('admin',array(
			'model'=>$model,
		));
	}

	/**
	 * Returns the data model based on the primary key given in the GET variable.
	 * If the data model is not found, an HTTP exception will be raised.
	 * @param integer the ID of the model to be loaded
	 */
	public function loadModel($id)
	{
		$model=Tax::model()->findByPk((int)$id);
		if($model===null)
			throw new CHttpException(404,'The requested page does not exist.');
		return $model;
	}

	/**
	 * Performs the AJAX validation.
	 * @param CModel the model to be validated
	 */
	protected function performAjaxValidation($model)
	{
		if(isset($_POST['ajax']) && $_POST['ajax']==='tax-form')
		{
			echo CActiveForm::validate($model);
			Yii::app()->end();
		}
	}
}


text:
```powershell
To install Json.NET, run the following command in the Package Manager Console

PM> Install-Package Minio
```

## Example
```cs
using Minio;

private static MinioClient client = new MinioClient("https://s3-us-west-2.amazonaws.com", "Access Key", "Secret Key");

var buckets = client.ListBuckets();
foreach (Bucket bucket in buckets)
{
    Console.Out.WriteLine(bucket.Name + " " + bucket.CreationDate);
}

```

### Additional Examples

#### Bucket Operations
* [ListBuckets.cs](./Minio.Examples/ListBuckets.cs)
* [MakeBucket.cs](./Minio.Examples/MakeBucket.cs)
* [RemoveBucket.cs](./Minio.Examples/RemoveBucket.cs)
* [BucketExists.cs](./Minio.Examples/BucketExists.cs)
* [ListObjects.cs](./Minio.Examples/ListObjects.cs)
* [DropAllIncompleteUploads.cs](./Minio.Examples/DropAllIncompleteUploads.cs)

#### Object Operations
* [PutObject.cs](./Minio.Examples/PutObject.cs)
* [GetObject.cs](./Minio.Examples/GetObject.cs)
* [GetPartialObject.cs](./Minio.Examples/GetPartialObject.cs)
* [RemoveObject.cs](./Minio.Examples/RemoveObject.cs)
* [StatObject.cs](./Minio.Examples/StatObject.cs)
* [DropIncompleteUpload.cs](./Minio.Examples/DropIncompleteUpload.cs)

## Contribute

[Contributors Guide](./CONTRIBUTING.md)


text:
@include('bin._scripts')
@include('bin._styles')

{{ Form::open(['class' => 'editor-form']) }}

        @include('bin._logo')

<input type="submit" value="Save (cmd+s)" class="button">

<input type="reset" value="Clear" class="button">

Please note that all pasted data is publicly available.

    @include('bin._editor')
{{ Form::close() }}


text:
using System.Collections;
using System.Data;
using System.Web;
using System.Web.Util;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace System.Web.Handlers
{
#if NET_2_0
	[Serializable]
#endif
	class TraceNotAvailableException : HttpException
	{
		bool notLocal;

		public TraceNotAvailableException (bool notLocal) :
			base (notLocal ? 403 : 500, "Trace Error")
		{
			this.notLocal = notLocal;
		}

		internal override string Description {
			get {
				if (notLocal)
					return "Trace is not enabled for remote clients.";

				return "Trace.axd is not enabled in the configuration file for this application.";
			}
		}
	}

	public class TraceHandler : IHttpHandler
	{
		void IHttpHandler.ProcessRequest (HttpContext context)
		{
			TraceManager manager = HttpRuntime.TraceManager;

			if (!manager.Enabled || manager.LocalOnly && !context.Request.IsLocal)
				throw new TraceNotAvailableException (manager.Enabled);

			HtmlTextWriter output = new HtmlTextWriter (context.Response.Output);

			if (context.Request.QueryString ["clear"] != null)
				manager.Clear ();

			string id_str = context.Request.QueryString ["id"];
			int id = -1;
			if (id_str != null)
				id = Int32.Parse (id_str);

			if (id > 0 && id <= manager.ItemCount) {
				RenderItem (manager, output, id);
			} else {
				string dir = context.Server.MapPath (UrlUtils.GetDirectory (context.Request.FilePath));
				RenderMenu (manager, output, dir);
			}

		}

		bool IHttpHandler.IsReusable
		{
			get {
				return false;
			}
		}

		private void RenderMenu (TraceManager manager, HtmlTextWriter output, string dir)
		{

			output.RenderBeginTag (HtmlTextWriterTag.Html);

			output.RenderBeginTag (HtmlTextWriterTag.Head);
			TraceData.RenderStyleSheet (output);
			output.RenderEndTag ();

			RenderHeader (output, dir);

			output.RenderBeginTag (HtmlTextWriterTag.Body);
			output.AddAttribute ("class", "tracecontent");
			output.RenderBeginTag (HtmlTextWriterTag.Span);

			Table table = TraceData.CreateTable ();

			table.Rows.Add (TraceData.AltRow ("Requests to the Application"));
			table.Rows.Add (TraceData.SubHeadRow ("No", "Time of Request",
							"File", "Status Code", "Verb", " "));

			if (manager.TraceData != null) {
				for (int i=0; i<manager.ItemCount; i++) {
					int item = i + 1;
					TraceData d = manager.TraceData [i];
					TraceData.RenderAltRow (table, i, item.ToString (), d.RequestTime.ToString (),
							d.RequestPath, d.StatusCode.ToString (), d.RequestType,
							"" +
							"<nobr>View Details");
				}
				table.RenderControl (output);
			}

			output.RenderEndTag ();
			output.RenderEndTag ();

			output.RenderEndTag ();
		}

		private void RenderHeader (HtmlTextWriter output, string dir)
		{
			Table table = TraceData.CreateTable ();
			TableRow row1 = new TableRow ();
			TableRow row2 = new TableRow ();
			TableCell cell1 = new TableCell ();
			TableCell cell2 = new TableCell ();
			TableCell cell3 = new TableCell ();
			TableCell cell4 = new TableCell ();

			cell1.Text = "
Application Trace
";
			cell2.Text = "[ clear current trace ]";

			cell2.HorizontalAlign = HorizontalAlign.Right;
			cell2.VerticalAlign = VerticalAlign.Bottom;

			row1.Cells.Add (cell1);
			row1.Cells.Add (cell2);

			cell3.Text = "

"; // ummm, WTF?
			cell4.Text = "Physical Directory:" + dir;

			row2.Cells.Add (cell3);
			row2.Cells.Add (cell4);

			table.Rows.Add (row1);
			table.Rows.Add (row2);

			table.RenderControl (output);
		}

		private void RenderItem (TraceManager manager, HtmlTextWriter output, int item)
		{
			manager.TraceData [item - 1].Render (output);
		}

		[MonoTODO ("Appears in class status, but...")]
		protected void ShowDetails (DataSet data)
		{
		}

		[MonoTODO ("Appears in class status, but...")]
		protected void ShowRequests (ArrayList list)
		{
		}
	}
}


text:
sap.ui.define(['sap/ui/core/Core', 'sap/ui/core/library'], function(Core, coreLib) {
	"use strict";
	sap.ui.getCore().initLibrary({
		name: 'testlibs.scenario14.lib7',
		dependencies: [
		],
		noLibraryCSS: true
	});
	return testlibs.scenario14.lib7; // eslint-disable-line no-undef
});


text:
import pandas
import numpy
from scipy.stats import ttest_ind

pandas.options.display.max_rows = 100

def read_university_towns(filename):
    towns = []
    with open(filename) as fhandle:
        current_state = ''
        for line in fhandle:
            if '[edit]' in line:
                current_state = line.split('[')[0].strip()
            else:
                towns.append([current_state, line.split(' (')[0].strip()])
    return towns

def get_list_of_university_towns():
    return pandas.DataFrame(read_university_towns('university_towns.txt'), columns=['State', 'RegionName'])

def get_gdp():
    return pandas.read_excel('gdplev.xls', usecols=[4, 6], names=['Quarter', 'GDP'], skiprows=219)

def get_gdp_diffs(gdp):
    return gdp['GDP'].diff().values.tolist()

def get_recession_start_and_bottom():
    gdp = get_gdp()
    diffs = get_gdp_diffs(gdp)
    current_index = 0
    value = 0
    start_index = None
    is_in_recession = False
    for i in range(1, len(diffs)):
        if is_in_recession:
            if diffs[i] > 0 and diffs[i + 1] > 0:
                return (gdp.iloc[start_index]['Quarter'], gdp.iloc[current_index]['Quarter'])
            else:
                if value < diffs[i]:
                    current_index = i
                    value = diffs[i]
        elif diffs[i] < 0 and diffs[i + 1] < 0:
            is_in_recession = True
            current_index = i
            start_index = current_index
            value = diffs[i]

def get_recession_start():
    return get_recession_start_and_bottom()[0]

def get_recession_end():
    gdp = get_gdp()
    diffs = get_gdp_diffs(gdp)
    is_in_recession = False
    for i in range(1, len(diffs)):
        if is_in_recession and diffs[i] > 0 and diffs[i + 1] > 0:
            return gdp.iloc[i + 1]['Quarter']
        elif diffs[i] < 0 and diffs[i + 1] < 0:
            is_in_recession = True

def get_recession_bottom():
    return get_recession_start_and_bottom()[1]

def convert_housing_data_to_quarters():
    dataframe = pandas.read_csv('City_Zhvi_AllHomes.csv', usecols=[
                                1, 2] + [i for i in range(51, 251)])
    dataframe['State'] = dataframe.apply(
        lambda row: states[row['State']], axis=1)
    dataframe['2016-09'] = numpy.nan
    dataframe.set_index(['State', 'RegionName'], inplace=True)
    dataframe.columns = pandas.DatetimeIndex(
        dataframe[dataframe.columns]).to_period('M')
    dataframe = dataframe.resample('Q', axis=1).mean()
    dataframe.rename(columns=lambda x: str(x).lower(), inplace=True)
    return dataframe

def run_ttest():
    housing_prices = convert_housing_data_to_quarters()
    recession = get_recession_start_and_bottom()
    recession_start = recession[0]
    recession_bottom = recession[1]
    university_towns = get_list_of_university_towns()
    previous_column = housing_prices.columns[housing_prices.columns.get_loc(
        recession_start) - 1]
    housing_prices['PriceRatio'] = housing_prices[previous_column].div(
        housing_prices[recession_bottom])
    towns = university_towns.to_records(index=False).tolist()
    group1 = housing_prices.loc[towns]
    group2 = housing_prices.loc[-housing_prices.index.isin(towns)]
    dataframe = pandas.merge(housing_prices.reset_index(
    ), university_towns, on=university_towns.columns.tolist(), indicator='_flag', how='outer')
    group1 = dataframe[dataframe['_flag'] == 'both']['PriceRatio'].tolist()
    group2 = dataframe[dataframe['_flag'] != 'both']['PriceRatio'].tolist()
    result = ttest_ind(group1, group2, nan_policy='omit')
    better = 'university town'
    if result.statistic < 0:
        better = 'non-university town'
    return (result.pvalue < 0.01, result.pvalue, better)


text:
import Chooser from '../views/components/drive-folder-chooser.vue';

export default function(opts) {
	return new Promise((res, rej) => {
		const o = opts || {};
		const w = new Chooser({
			propsData: {
				title: o.title,
				initFolder: o.currentFolder
			}
		}).$mount();
		w.$once('selected', folder => {
			res(folder);
		});
		document.body.appendChild(w.$el);
	});
}


text:
Entity::Entity(const char* name, const char* description, Entity* parent = nullptr) : Name(name), Description(description), parent(parent)
{
	if (parent != nullptr)
	{
		parent->SubEntities.push_back(this);
	}

	Type = ENTITY;
}

Entity::~Entity()
{}

void Entity::Look() const
{
	cout << Name << endl << Description << endl << endl;
}

void Entity::Tick()
{}

void Entity::ChangeParent(Entity* newEntity)
{
	if (parent != nullptr)
	{
		parent->SubEntities.remove(this);
	}

	parent = newEntity;

	if (parent != nullptr)
	{
		parent->SubEntities.push_back(this);
	}
}

Entity* Entity::Find(const string &name) const
{
	for (Entity* entity : SubEntities)
	{
		if (str_equals(entity->Name, name))
		{
			return entity;
		}
	}

	return nullptr;
}

Entity* Entity::Find(const string& name, const ENTITY_TYPE type) const
{
	for (Entity* entity : SubEntities)
	{
		if (str_equals(entity->Name, name) && entity->Type == type)
		{
			return entity;
		}
	}

	return nullptr;
}

Entity* Entity::Find(const ENTITY_TYPE type) const
{
	for (Entity* entity : SubEntities)
	{
		if (entity->Type == type)
		{
			return entity;
		}
	}

	return nullptr;
}

void Entity::FindAll(const ENTITY_TYPE type, list<Entity*>& entities) const
{
	for (Entity* entity : SubEntities)
	{
		if (entity->Type == type)
		{
			entities.push_back(entity);
		}
	}
}


text:
typedef std::map<BString, BBitmap *> iconmap;
typedef std::map<time_t, BMessage *> msgmap;

class LogWin : public BWindow {
	public:
		enum {
			coDate = 0,
			coProtocol = 1,
			coSender = 2,
			coContents = 3,
			coType = 4
		};

		enum {
			lwMsgViewMsg = 'lw01'
		};

						LogWin(entry_ref contact, BRect size);
						~LogWin(void);

			void 		MessageReceived(BMessage *msg);
			bool 		QuitRequested(void);

			bool		HandlesRef(entry_ref ref);

	private:
		static int32	GenerateContents(void *arg);

			entry_ref	fEntryRef;

			msgmap		fMessages;

		BView			*fView;
		BColumnListView	*fCLV;
		BDateColumn		*fDate;
		BBitmapColumn	*fProtocol;
		BStringColumn	*fSender;
		BStringColumn	*fContents;
		BStringColumn	*fType;

		iconmap			fIcons;

		thread_id		fThreadID;

		IM::Contact		fContact;
		BString			fNick;
		BString			fName;

		IM::Manager		*fMan;
};

#endif


text:
import { Template } from "./template";
import { Source } from "./source";
/**
 * Created by wj008 on 16-6-4.
 */
export declare class Resource {
    static resource_manager: {};
    static compileds: {};
    static registerResource(type: any, sourceObj: any): void;
    static parseResourceName(tplname: any): {
        type: any;
        name: any;
    };
    static getSource(sdopx: any, tplname: any, tplId: any): Source;
    static getTplSource(tpl: Template): Source;
    static getResource(type: any): any;
    static getPath(tplname: any, sdopx: any): any;
}


text:
module ActiveScaffold::Config
  class PrintBase < Base

    self.crud_type = :read

    def initialize(core_config)
      @core = core_config

      # inherit from global scope
      @empty_field_text = self.class.empty_field_text
      @maximum_rows = self.class.maximum_rows
    end

    # global level configuration
    # --------------------------
    # the ActionLink for this action

    cattr_accessor :empty_field_text
    @@empty_field_text = ''

    cattr_accessor :maximum_rows
    @@maximum_rows = 10000

    # instance-level configuration
    # ----------------------------
    # the ActionLink for this action
    attr_accessor :link

    attr_accessor :empty_field_text

    attr_accessor :maximum_rows

    # the label for this List action. used for the header.
    attr_writer :label
    def label
      @label ? as_(@label) : @core.label
    end

  end
end


text:
<?php

namespace Settings\Form;

class Settings extends FormAbstract
{

    public function getCoreFieldset()
    {
        return 'settings-core-fieldset';
    }
}


text:
class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
      t.references :conversation, null: false
      t.text       :text
      t.string     :sender_type

      t.timestamps
    end
  end
end


text:
package com.siirush.localwiki.configuration.exception;

public class LocalwikiConfigurationException extends RuntimeException {
	private static final long serialVersionUID = 383967515054093893L;
	public LocalwikiConfigurationException() {}
	public LocalwikiConfigurationException(String message) {
		super(message);
	}
	public LocalwikiConfigurationException(Throwable cause) {
		super(cause);
	}
	public LocalwikiConfigurationException(String message, Throwable cause) {
		super(message, cause);
	}
	public LocalwikiConfigurationException(String message, Throwable cause, boolean enableSuppression, boolean writeableStackTrace) {
		super(message, cause, enableSuppression, writeableStackTrace);
	}
}


text:
namespace content {

MockContentBrowserClient::MockContentBrowserClient() {
}

MockContentBrowserClient::~MockContentBrowserClient() {
}

BrowserMainParts* MockContentBrowserClient::CreateBrowserMainParts(
    const MainFunctionParams& parameters) {
  return NULL;
}

WebContentsView* MockContentBrowserClient::OverrideCreateWebContentsView(
    WebContents* web_contents) {
  return new TestWebContentsView;
}

WebContentsViewDelegate* MockContentBrowserClient::GetWebContentsViewDelegate(
    content::WebContents* web_contents) {
  return NULL;
}

void MockContentBrowserClient::RenderViewHostCreated(
    RenderViewHost* render_view_host) {
}

void MockContentBrowserClient::RenderProcessHostCreated(
    RenderProcessHost* host) {
}

WebUIControllerFactory* MockContentBrowserClient::GetWebUIControllerFactory() {
  return NULL;
}

GURL MockContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context,
                                               const GURL& url) {
  return url;
}

bool MockContentBrowserClient::ShouldUseProcessPerSite(
    BrowserContext* browser_context, const GURL& effective_url) {
  return false;
}

bool MockContentBrowserClient::IsHandledURL(const GURL& url) {
  return false;
}

bool MockContentBrowserClient::IsSuitableHost(
    RenderProcessHost* process_host,
    const GURL& site_url) {
  return true;
}

bool MockContentBrowserClient::ShouldTryToUseExistingProcessHost(
    BrowserContext* browser_context, const GURL& url) {
  return false;
}

void MockContentBrowserClient::SiteInstanceGotProcess(
    SiteInstance* site_instance) {
}

void MockContentBrowserClient::SiteInstanceDeleting(
    SiteInstance* site_instance) {
}

bool MockContentBrowserClient::ShouldSwapProcessesForNavigation(
    const GURL& current_url,
    const GURL& new_url) {
  return false;
}

std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName(
    const std::string& alias_name) {
  return std::string();
}

void MockContentBrowserClient::AppendExtraCommandLineSwitches(
    CommandLine* command_line, int child_process_id) {
}

std::string MockContentBrowserClient::GetApplicationLocale() {
  return std::string();
}

std::string MockContentBrowserClient::GetAcceptLangs(BrowserContext* context) {
  return std::string();
}

SkBitmap* MockContentBrowserClient::GetDefaultFavicon() {
  static SkBitmap empty;
  return ∅
}

bool MockContentBrowserClient::AllowAppCache(const GURL& manifest_url,
                                             const GURL& first_party,
                                             ResourceContext* context) {
  return true;
}

bool MockContentBrowserClient::AllowGetCookie(
    const GURL& url,
    const GURL& first_party,
    const net::CookieList& cookie_list,
    ResourceContext* context,
    int render_process_id,
    int render_view_id) {
  return true;
}

bool MockContentBrowserClient::AllowSetCookie(const GURL& url,
                                              const GURL& first_party,
                                              const std::string& cookie_line,
                                              ResourceContext* context,
                                              int render_process_id,
                                              int render_view_id,
                                              net::CookieOptions* options) {
  return true;
}

bool MockContentBrowserClient::AllowSaveLocalState(ResourceContext* context) {
  return true;
}

bool MockContentBrowserClient::AllowWorkerDatabase(
    const GURL& url,
    const string16& name,
    const string16& display_name,
    unsigned long estimated_size,
    ResourceContext* context,
    const std::vector<std::pair<int, int> >& render_views) {
  return true;
}

bool MockContentBrowserClient::AllowWorkerFileSystem(
    const GURL& url,
    ResourceContext* context,
    const std::vector<std::pair<int, int> >& render_views) {
  return true;
}

bool MockContentBrowserClient::AllowWorkerIndexedDB(
    const GURL& url,
    const string16& name,
    content::ResourceContext* context,
    const std::vector<std::pair<int, int> >& render_views) {
  return true;
}

QuotaPermissionContext*
    MockContentBrowserClient::CreateQuotaPermissionContext() {
  return NULL;
}

net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL(
    const GURL& url, ResourceContext* context) {
  return NULL;
}

void MockContentBrowserClient::OpenItem(const FilePath& path) {
}

void MockContentBrowserClient::ShowItemInFolder(const FilePath& path) {
}

void MockContentBrowserClient::AllowCertificateError(
    int render_process_id,
    int render_view_id,
    int cert_error,
    const net::SSLInfo& ssl_info,
    const GURL& request_url,
    bool overridable,
    const base::Callback<void(bool)>& callback,
    bool* cancel_request) {
}

void MockContentBrowserClient::SelectClientCertificate(
    int render_process_id,
    int render_view_id,
    const net::HttpNetworkSession* network_session,
    net::SSLCertRequestInfo* cert_request_info,
    const base::Callback<void(net::X509Certificate*)>& callback) {
}

void MockContentBrowserClient::AddNewCertificate(
    net::URLRequest* request,
    net::X509Certificate* cert,
    int render_process_id,
    int render_view_id) {
}

void MockContentBrowserClient::RequestMediaAccessPermission(
    const MediaStreamRequest* request,
    const MediaResponseCallback& callback) {
}

MediaObserver* MockContentBrowserClient::GetMediaObserver() {
  return NULL;
}

void MockContentBrowserClient::RequestDesktopNotificationPermission(
    const GURL& source_origin,
    int callback_context,
    int render_process_id,
    int render_view_id) {
}

WebKit::WebNotificationPresenter::Permission
    MockContentBrowserClient::CheckDesktopNotificationPermission(
        const GURL& source_origin,
        ResourceContext* context,
        int render_process_id) {
  return WebKit::WebNotificationPresenter::PermissionAllowed;
}

void MockContentBrowserClient::ShowDesktopNotification(
    const ShowDesktopNotificationHostMsgParams& params,
    int render_process_id,
    int render_view_id,
    bool worker) {
}

void MockContentBrowserClient::CancelDesktopNotification(
    int render_process_id,
    int render_view_id,
    int notification_id) {
}

bool MockContentBrowserClient::CanCreateWindow(
    const GURL& opener_url,
    const GURL& source_origin,
    WindowContainerType container_type,
    ResourceContext* context,
    int render_process_id) {
  return true;
}

std::string MockContentBrowserClient::GetWorkerProcessTitle(
    const GURL& url, ResourceContext* context) {
  return std::string();
}

void MockContentBrowserClient::ResourceDispatcherHostCreated() {
}

SpeechRecognitionManagerDelegate*
    MockContentBrowserClient::GetSpeechRecognitionManagerDelegate() {
  return NULL;
}

ui::Clipboard* MockContentBrowserClient::GetClipboard() {
  static ui::Clipboard clipboard;
  return &clipboard;
}

net::NetLog* MockContentBrowserClient::GetNetLog() {
  return NULL;
}

AccessTokenStore* MockContentBrowserClient::CreateAccessTokenStore() {
  return NULL;
}

bool MockContentBrowserClient::IsFastShutdownPossible() {
  return true;
}

void MockContentBrowserClient::OverrideWebkitPrefs(RenderViewHost* rvh,
                                                   const GURL& url,
                                                   WebPreferences* prefs) {
}

void MockContentBrowserClient::UpdateInspectorSetting(
    RenderViewHost* rvh, const std::string& key, const std::string& value) {
}

void MockContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) {
}

void MockContentBrowserClient::BrowserURLHandlerCreated(
    BrowserURLHandler* handler) {
}

void MockContentBrowserClient::ClearCache(RenderViewHost* rvh) {
}

void MockContentBrowserClient::ClearCookies(RenderViewHost* rvh) {
}

FilePath MockContentBrowserClient::GetDefaultDownloadDirectory() {
  if (!download_dir_.IsValid()) {
    bool result = download_dir_.CreateUniqueTempDir();
    CHECK(result);
  }
  return download_dir_.path();
}

std::string MockContentBrowserClient::GetDefaultDownloadName() {
  return std::string();
}

bool MockContentBrowserClient::AllowSocketAPI(BrowserContext* browser_context,
                                              const GURL& url) {
  return false;
}

#if defined(OS_POSIX) && !defined(OS_MACOSX)
int MockContentBrowserClient::GetCrashSignalFD(
    const CommandLine& command_line) {
  return -1;
}
#endif

#if defined(OS_WIN)
const wchar_t* MockContentBrowserClient::GetResourceDllName() {
  return NULL;
}
#endif

#if defined(USE_NSS)
crypto::CryptoModuleBlockingPasswordDelegate*
    MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
  return NULL;
}
#endif

}  // namespace content


text:
package com.amcharts.impl;

public enum AmChartTheme
{
	NONE, LIGHT, DARK, CHALK
}