text:
#include "labelengine.h"

#include <avogadro/elementtranslator.h>
#include <avogadro/camera.h>
#include <avogadro/glwidget.h>
#include <avogadro/painter.h>
#include <avogadro/painterdevice.h>
#include <avogadro/atom.h>
#include <avogadro/bond.h>
#include <avogadro/residue.h>
#include <avogadro/molecule.h>

#include <QtCore/QDebug>
#include <QtGui/QColorDialog>
#include <QtGui/QFontDialog>
//#include <QtGui/QPainter>

#include <openbabel/mol.h>

using namespace std;
using namespace Eigen;

namespace Avogadro {

  LabelSettingsWidget::LabelSettingsWidget(QWidget *parent) : QWidget(parent)
  {
    setupUi(this);
  }

  LabelEngine::LabelEngine(QObject *parent) : Engine(parent),
                    m_atomType(3), m_bondType(0), m_textRendering(0),
                    m_lengthPrecision(3),
                    m_atomColor(255,255,255), m_bondColor(255,255,255),
                    m_displacement(0,0,0),  m_bondDisplacement(0,0,0),
                    m_settingsWidget(0)
  {
  }

  Engine *LabelEngine::clone() const
  {
    LabelEngine *engine = new LabelEngine(parent());
    engine->setAlias(alias());
    engine->setAtomType(m_atomType);
    engine->setBondType(m_bondType);
    engine->setEnabled(isEnabled());

    return engine;
  }

  bool LabelEngine::renderOpaque(PainterDevice *pd)
  {
    if (m_atomType > 0) {
      // Render atom labels
      foreach(Atom *a, atoms())
        renderOpaque(pd, a);
    }

    // Now render the bond labels
    foreach(Bond *b, bonds())
      renderOpaque(pd, b);

    return true;
  }

  bool LabelEngine::renderQuick(PainterDevice *)
  {
    // Don't render text when moving...
    return true;
  }

  bool LabelEngine::renderOpaque(PainterDevice *pd, const Atom *a)
  {
    // Render atom labels
    const Vector3d pos = *a->pos();

    double renderRadius = pd->radius(a);
    renderRadius += 0.05;

    double zDistance = pd->camera()->distance(pos);

    if(zDistance < 50.0) {
      QString str = createAtomLabel(a);

      Vector3d zAxis = pd->camera()->backTransformedZAxis();

      Vector3d drawPos = pos + zAxis * renderRadius + m_displacement;

      glColor3f(m_atomColor.redF(), m_atomColor.greenF(), m_atomColor.blueF());
      if (m_textRendering == 0)
        pd->painter()->drawText(drawPos, str);
      else
        pd->painter()->drawText(drawPos, str, m_atomFont);
    }

    return true;
  }

  QString LabelEngine::createAtomLabel(const Atom *a)
  {
    unsigned int gi;
    QString str = QString(a->customLabel());
    if (str.isEmpty()) {
     switch(m_atomType) {
      case 1: // Atom index
        str = QString("%L1").arg(a->index() + 1);
        break;
      case 2: // Element Symbol
        str = QString(OpenBabel::etab.GetSymbol(a->atomicNumber()));
        break;
      case 3: // Symbol & Number in Group
        gi = a->groupIndex();
        if (gi != 0) {
          str = QString(OpenBabel::etab.GetSymbol(a->atomicNumber())) + QString("%L1").arg(gi);
        }
        else {
          str = QString(OpenBabel::etab.GetSymbol(a->atomicNumber()));
        }
        break;
      case 4: // Symbol & Atom Number
        str = QString(OpenBabel::etab.GetSymbol(a->atomicNumber())) + QString("%L1").arg(a->index() + 1);
        break;
      case 5: // Formal charge
        if (a->formalCharge())
          str = QString("%L1").arg(a->formalCharge());
        break;
      case 6: // Partial charge
        str = QString("%L1").arg(const_cast<Atom *>(a)->partialCharge(), 0, 'g', 2);
        break;
      case 7: // Element name
        str = ElementTranslator::name(a->atomicNumber());
        break;
      case 8: // Residue name
        if (a->residue())
          str = a->residue()->name();
        break;
      case 9: // Residue number
        if (a->residue())
          str = a->residue()->number();
        break;
      case 10: // Unique ID
        str = QString("%L1").arg(a->id());
        break;
      default: // some custom data -- if available
        int customIndex = m_atomType - 7 - 1;
        QList<QByteArray> propertyNames = a->dynamicPropertyNames();
        // If this is a strange offset, use the element symbol
        if ( customIndex < 0 || customIndex >= propertyNames.size())
          str = QString(OpenBabel::etab.GetSymbol(a->atomicNumber()));
        else
          str = a->property(propertyNames[customIndex].data()).toString();
     }
    } // str.isEmpty()
    return str;
  }

  QString LabelEngine::createBondLabel(const Bond *b)
  {
    QString str = QString(b->customLabel());
    if (str.isEmpty()) {
      switch(m_bondType) {
      case 1:
        str = QString("%L1").arg(b->length(), 0, 'g', 1+m_lengthPrecision);
        break;
      case 2:
        str = QString("%L1").arg(b->index() + 1);
        break;
      case 4:
        str = QString("%L1").arg(b->id());
        break;
      case 3:
        str = QString("%L1").arg(b->order());
      }
    }
    return str;
  }

  bool LabelEngine::renderOpaque(PainterDevice *pd, const Bond *b)
  {
    // Render bond labels
    Atom* atom1 = pd->molecule()->atomById(b->beginAtomId());
    Atom* atom2 = pd->molecule()->atomById(b->endAtomId());
    Vector3d v1 (*atom1->pos());
    Vector3d v2 (*atom2->pos());
    Vector3d d = v2 - v1;
    d.normalize();

    // Work out the radii of the atoms and the bond
    double renderRadius = pd->radius(b);
    double renderRadiusA1 = pd->radius(atom1);
    double renderRadiusA2 = pd->radius(atom2);
    // If the render radius is zero then this view does not draw bonds
    if (renderRadius < 1.0e-3)
      return false;

    renderRadius += 0.05;

    // Calculate the
    Vector3d pos((v1 + v2 + d*(renderRadiusA1-renderRadiusA2)) / 2.0);

    double zDistance = pd->camera()->distance(pos);

    if(zDistance < 50.0) {
      QString str = createBondLabel(b);

      Vector3d zAxis = pd->camera()->backTransformedZAxis();
      Vector3d drawPos = pos + zAxis * renderRadius + m_bondDisplacement;

      glColor3f(m_bondColor.redF(), m_bondColor.greenF(), m_bondColor.blueF());
      if (m_textRendering == 0)
        pd->painter()->drawText(drawPos, str);
      else
        pd->painter()->drawText(drawPos, str, m_bondFont);
    }

    return true;
  }

  void LabelEngine::setAtomType(int value)
  {
    m_atomType = value;
    emit changed();
  }

  void LabelEngine::setTextRendering(int value)
  {
    m_textRendering = value;
    if (!m_settingsWidget)
      return;
    if (value == 0) {
      m_settingsWidget->atomFont->setEnabled(false);
      m_settingsWidget->bondFont->setEnabled(false);
    }
    else {
      m_settingsWidget->atomFont->setEnabled(true);
      m_settingsWidget->bondFont->setEnabled(true);
    }
    emit changed();
  }

  void LabelEngine::setBondType(int value)
  {
    m_bondType = value;
    if (!m_settingsWidget)
      return;
    if (value == 1)
      m_settingsWidget->lengthPrecision->setEnabled(true);
    else
      m_settingsWidget->lengthPrecision->setEnabled(false);
    emit changed();
  }

  void LabelEngine::setLengthPrecision(int value)
  {
    m_lengthPrecision = value;
    if (m_settingsWidget)
      emit changed();
  }

  void LabelEngine::updateDisplacement(double)
  {
    m_displacement = Vector3d(m_settingsWidget->xDisplSpinBox->value(),
                              m_settingsWidget->yDisplSpinBox->value(),
                              m_settingsWidget->zDisplSpinBox->value());
    emit changed();
  }

  void LabelEngine::updateBondDisplacement(double)
  {
    m_bondDisplacement = Vector3d(m_settingsWidget->xBondDisplSpinBox->value(),
                                  m_settingsWidget->yBondDisplSpinBox->value(),
                                  m_settingsWidget->zBondDisplSpinBox->value());
    emit changed();
  }

  QWidget *LabelEngine::settingsWidget()
  {
    if(!m_settingsWidget) {
      m_settingsWidget = new LabelSettingsWidget();
      m_settingsWidget->atomType->setCurrentIndex(m_atomType);
      m_settingsWidget->bondType->setCurrentIndex(m_bondType);
      setAtomType(m_atomType);
      setBondType(m_bondType);
      m_settingsWidget->atomColor->setColor(m_atomColor);
      m_settingsWidget->atomColor->setDialogTitle(tr("Select Atom Labels Color"));
      m_settingsWidget->bondColor->setColor(m_bondColor);
      m_settingsWidget->bondColor->setDialogTitle(tr("Select Bond Labels Color"));

      // Hide the text rendering engine choice and label for release builds
#ifndef DEBUG
      m_settingsWidget->textRendering->hide();
      m_settingsWidget->label_3->hide();
#endif

      connect(m_settingsWidget->atomType, SIGNAL(activated(int)),
              this, SLOT(setAtomType(int)));
      connect(m_settingsWidget->textRendering, SIGNAL(activated(int)),
              this, SLOT(setTextRendering(int)));
      connect(m_settingsWidget->atomColor, SIGNAL(colorChanged(QColor)),
              this, SLOT(setAtomColor(QColor)));
      connect(m_settingsWidget->atomFont, SIGNAL(clicked()),
              this, SLOT(setAtomFont()));
      connect(m_settingsWidget->bondType, SIGNAL(activated(int)),
              this, SLOT(setBondType(int)));
      connect(m_settingsWidget->lengthPrecision, SIGNAL(valueChanged(int)),
              this, SLOT(setLengthPrecision(int)));
      connect(m_settingsWidget->bondColor, SIGNAL(colorChanged(QColor)),
              this, SLOT(setBondColor(QColor)));
      connect(m_settingsWidget->bondFont, SIGNAL(clicked()),
              this, SLOT(setBondFont()));
      connect(m_settingsWidget, SIGNAL(destroyed()),
              this, SLOT(settingsWidgetDestroyed()));
      connect(m_settingsWidget->xDisplSpinBox, SIGNAL(valueChanged(double)),
              this, SLOT(updateDisplacement(double)));
      connect(m_settingsWidget->yDisplSpinBox, SIGNAL(valueChanged(double)),
              this, SLOT(updateDisplacement(double)));
      connect(m_settingsWidget->zDisplSpinBox, SIGNAL(valueChanged(double)),
              this, SLOT(updateDisplacement(double)));
      connect(m_settingsWidget->xBondDisplSpinBox, SIGNAL(valueChanged(double)),
              this, SLOT(updateBondDisplacement(double)));
      connect(m_settingsWidget->yBondDisplSpinBox, SIGNAL(valueChanged(double)),
              this, SLOT(updateBondDisplacement(double)));
      connect(m_settingsWidget->zBondDisplSpinBox, SIGNAL(valueChanged(double)),
              this, SLOT(updateBondDisplacement(double)));
    }
    return m_settingsWidget;
  }

  void LabelEngine::setAtomColor(QColor color)
  {
    m_atomColor = color;
    emit changed();
  }

  void LabelEngine::setAtomFont()
  {
    bool ok;
    QFont current(m_atomFont);
    QFont font = QFontDialog::getFont(&ok, current, m_settingsWidget, tr("Select Atom Labels Font"));
    if (ok) {
      m_atomFont = font;
      emit changed();
    }
  }

  void LabelEngine::setBondColor(QColor color)
  {
    m_bondColor = color;
    emit changed();
  }

  void LabelEngine::setBondFont()
  {
    bool ok;
    QFont current(m_bondFont);
    QFont font = QFontDialog::getFont(&ok, current, m_settingsWidget, tr("Select Bond Labels Font"));
    if (ok) {
      m_bondFont = font;
      emit changed();
    }
  }

  void LabelEngine::settingsWidgetDestroyed()
  {
    qDebug() << "Destroyed Settings Widget";
    m_settingsWidget = 0;
  }

  Engine::Layers LabelEngine::layers() const
  {
    return Engine::Overlay;
  }

  Engine::ColorTypes LabelEngine::colorTypes() const
  {
    return Engine::NoColors;
  }

  void LabelEngine::writeSettings(QSettings &settings) const
  {
    Engine::writeSettings(settings);
    settings.setValue("atomLabel", m_atomType);
    settings.setValue("bondLabel", m_bondType);
    settings.setValue("m_lengthPrecision", m_lengthPrecision);
    settings.setValue("atomFont", m_atomFont);
    settings.setValue("bondFont", m_bondFont);
    settings.setValue("atomColor", m_atomColor);
    settings.setValue("bondColor", m_bondColor);
  }

  void LabelEngine::readSettings(QSettings &settings)
  {
    Engine::readSettings(settings);
    setAtomType(settings.value("atomLabel", 3).toInt());
    setBondType(settings.value("bondLabel", 0).toInt());
    m_lengthPrecision = settings.value("m_lengthPrecision", 3).toInt();
    m_atomFont = settings.value("atomFont", QApplication::font()).value<QFont>();
    m_bondFont = settings.value("bondFont", QApplication::font()).value<QFont>();
    m_atomColor = settings.value("atomColor", QColor(Qt::white)).value<QColor>();
    m_bondColor = settings.value("bondColor", QColor(Qt::white)).value<QColor>();
    if(m_settingsWidget) {
      m_settingsWidget->atomType->setCurrentIndex(m_atomType);
      m_settingsWidget->bondType->setCurrentIndex(m_bondType);
      m_settingsWidget->lengthPrecision->setValue(m_lengthPrecision);
    }
  }
}

Q_EXPORT_PLUGIN2(labelengine, Avogadro::LabelEngineFactory)


text:
package org.apache.druid.query.aggregation.datasketches.kll;

import com.fasterxml.jackson.core.JsonProcessingException;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.apache.druid.jackson.DefaultObjectMapper;
import org.apache.druid.java.util.common.IAE;
import org.apache.druid.java.util.common.granularity.Granularities;
import org.apache.druid.query.Druids;
import org.apache.druid.query.aggregation.Aggregator;
import org.apache.druid.query.aggregation.PostAggregator;
import org.apache.druid.query.aggregation.TestDoubleColumnSelectorImpl;
import org.apache.druid.query.aggregation.post.FieldAccessPostAggregator;
import org.apache.druid.query.timeseries.TimeseriesQuery;
import org.apache.druid.query.timeseries.TimeseriesQueryQueryToolChest;
import org.apache.druid.segment.column.ColumnType;
import org.apache.druid.segment.column.RowSignature;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import java.util.HashMap;
import java.util.Map;

public class KllDoublesSketchToCDFPostAggregatorTest
{
  @Rule
  public ExpectedException expectedException = ExpectedException.none();

  @Test
  public void testSerde() throws JsonProcessingException
  {
    final PostAggregator there = new KllDoublesSketchToCDFPostAggregator(
        "post",
        new FieldAccessPostAggregator("field1", "sketch"),
        new double[]{0.25, 0.75}
    );
    DefaultObjectMapper mapper = new DefaultObjectMapper();
    KllDoublesSketchToCDFPostAggregator andBackAgain = mapper.readValue(
        mapper.writeValueAsString(there),
        KllDoublesSketchToCDFPostAggregator.class
    );

    Assert.assertEquals(there, andBackAgain);
    Assert.assertArrayEquals(there.getCacheKey(), andBackAgain.getCacheKey());
  }

  @Test
  public void testToString()
  {
    final PostAggregator postAgg = new KllDoublesSketchToCDFPostAggregator(
        "post",
        new FieldAccessPostAggregator("field1", "sketch"),
        new double[]{0.25, 0.75}
    );

    Assert.assertEquals(
        "KllDoublesSketchToCDFPostAggregator{name='post', field=FieldAccessPostAggregator{name='field1', fieldName='sketch'}, splitPoints=[0.25, 0.75]}",
        postAgg.toString()
    );
  }

  @Test
  public void testComparator()
  {
    expectedException.expect(IAE.class);
    expectedException.expectMessage("Comparing histograms is not supported");
    final PostAggregator postAgg = new KllDoublesSketchToCDFPostAggregator(
        "post",
        new FieldAccessPostAggregator("field1", "sketch"),
        new double[]{0.25, 0.75}
    );
    postAgg.getComparator();
  }

  @Test
  public void testEqualsAndHashCode()
  {
    EqualsVerifier.forClass(KllDoublesSketchToCDFPostAggregator.class)
                  .withNonnullFields("name", "field", "splitPoints")
                  .usingGetClass()
                  .verify();
  }

  @Test
  public void emptySketch()
  {
    final TestDoubleColumnSelectorImpl selector = new TestDoubleColumnSelectorImpl(null);
    final Aggregator agg = new KllDoublesSketchBuildAggregator(selector, 8);

    final Map<String, Object> fields = new HashMap<>();
    fields.put("sketch", agg.get());

    final PostAggregator postAgg = new KllDoublesSketchToCDFPostAggregator(
        "cdf",
        new FieldAccessPostAggregator("field", "sketch"),
        new double[] {4}
    );

    final double[] histogram = (double[]) postAgg.compute(fields);
    Assert.assertNotNull(histogram);
    Assert.assertEquals(2, histogram.length);
    Assert.assertTrue(Double.isNaN(histogram[0]));
    Assert.assertTrue(Double.isNaN(histogram[1]));
  }

  @Test
  public void normalCase()
  {
    final double[] values = new double[] {1, 2, 3, 4, 5, 6};
    final TestDoubleColumnSelectorImpl selector = new TestDoubleColumnSelectorImpl(values);

    final Aggregator agg = new KllDoublesSketchBuildAggregator(selector, 8);
    //noinspection ForLoopReplaceableByForEach
    for (int i = 0; i < values.length; i++) {
      agg.aggregate();
      selector.increment();
    }

    final Map<String, Object> fields = new HashMap<>();
    fields.put("sketch", agg.get());

    final PostAggregator postAgg = new KllDoublesSketchToCDFPostAggregator(
        "cdf",
        new FieldAccessPostAggregator("field", "sketch"),
        new double[] {4} // half of the distribution is below 4
    );

    final double[] cdf = (double[]) postAgg.compute(fields);
    Assert.assertNotNull(cdf);
    Assert.assertEquals(2, cdf.length);
    Assert.assertEquals(0.5, cdf[0], 0);
    Assert.assertEquals(1.0, cdf[1], 0);
  }

  @Test
  public void testResultArraySignature()
  {
    final TimeseriesQuery query =
        Druids.newTimeseriesQueryBuilder()
              .dataSource("dummy")
              .intervals("2000/3000")
              .granularity(Granularities.HOUR)
              .aggregators(
                  new KllDoublesSketchAggregatorFactory("sketch", "col", 8, 1000000L)
              )
              .postAggregators(
                  new KllDoublesSketchToCDFPostAggregator(
                      "a",
                      new FieldAccessPostAggregator("field", "sketch"),
                      new double[] {4}
                  )
              )
              .build();

    Assert.assertEquals(
        RowSignature.builder()
                    .addTimeColumn()
                    .add("sketch", null)
                    .add("a", ColumnType.DOUBLE_ARRAY)
                    .build(),
        new TimeseriesQueryQueryToolChest().resultArraySignature(query)
    );
  }
}

redpajama_set_name: RedPajamaGithub


text:
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using Imaging.DDSReader;
using HsArtExtractor.Hearthstone.CardArt;
using HsArtExtractor.Hearthstone.Database;
using HsArtExtractor.Image;
using HsArtExtractor.Unity;
using HsArtExtractor.Unity.Objects;
using HsArtExtractor.Util;

namespace HsArtExtractor.Hearthstone.Bundle
{
	public class TexturesBundle
	{
		private CardArtExtractorOptions _opts;
		private string _dir;
		private List<string> _files;
		private string _dirFull;
		private string _dirBars;

		public TexturesBundle(List<string> files, CardArtExtractorOptions opts)
		{
			_files = files;
			_opts = opts;
			_dir = opts.OutputDir;
			_dirFull = Path.Combine(_dir, "Full");
			_dirBars = Path.Combine(_dir, "Bars");

			Directory.CreateDirectory(_dirFull);
		}

		public Dictionary<string, string> Extract(Dictionary<long, string> refs, List<ArtCard> cards)
		{
			Dictionary<string, string> bundleMap = new Dictionary<string, string>();
			var countFound = 0;
			foreach (var tf in _files)
			{
				AssestFile af = new AssestFile(tf);
				foreach (var obj in af.Objects)
				{
					// check to see if obj id is found in texrefs
					var unityClass = (UnityClass)obj.Info.ClassId;
					if (unityClass == UnityClass.Texture2D && refs.ContainsKey(obj.Id))
					{
						countFound++;
						var refPath = refs[obj.Id];
						var refName = StringUtils.GetFilenameNoExt(refPath).ToUpper();
						var refCardId = StringUtils.GetFilePathParentDir(refPath).ToUpper();

						refPath = refPath.Replace("final/", "").ToLower();
						var cardMatches = cards.Where(x => x.Texture.Path.ToLower() == refPath).ToList();
						Texture2D tex = new Texture2D(BinaryBlock.Create(obj.Buffer));

						if (tex.Name.ToUpper() == refName)
						{
							foreach (var match in cardMatches)
							{
								SaveImages(tex, match);
								// add card id to filename record
								if (bundleMap.ContainsKey(match.Id))
								{
									Logger.Log(LogLevel.WARN, $"{refName} multi match {match}");
								}
								else
								{
									bundleMap.Add(match.Id, tf);
								}
							}
						}
					}
				}
			}
			Logger.Log(LogLevel.DEBUG, "TextureBundle Refs matched: " + countFound);
			return bundleMap;
		}

		private void SaveImages(Texture2D tex, ArtCard match)
		{
			var cardId = match.Id;
			var card = CardDb.All[cardId];
			var cardName = card.Name;
			var cardSet = card.Set;
			var filename = cardId;
			var subDir = "";

			if (tex.Image.Length <= 0)
			{
				Logger.Log(LogLevel.WARN, $"Texture {tex.Name} has an empty image");
				return;
			}

			if (_opts.AddCardName)
				filename = StringUtils.SafeString(cardName) + "-" + filename;

			if (_opts.GroupBySet)
			{
				if (CardEnumConverter.FriendlySetName.ContainsKey(cardSet))
					subDir = CardEnumConverter.FriendlySetName[cardSet];
				else
					subDir = "Other";

				if (!_opts.BarArtOnly)
					Directory.CreateDirectory(Path.Combine(_dirFull, subDir));
			}

			if (_opts.ImageType?.ToLower() == "dds" && !_opts.BarArtOnly)
			{
				tex.Save(Path.Combine(_dirFull, subDir), filename);
				return;
			}

			Bitmap original = null;
			if (tex.IsDDS)
			{
				original = DDS.LoadImage(tex.Image, _opts.PreserveAlphaChannel);
			}
			else
			{
				// TODO: tga alpha channel?
				// Assumimg it is TGA
				var tga = new TargaImage(new MemoryStream(tex.Image));
				original = tga.Image;
				// Flip original on y, so like dds
				original.RotateFlip(RotateFlipType.RotateNoneFlipY);
			}
			// save full size image to disk
			Bitmap full = new Bitmap(original);
			if (_opts.Height > 0)
				full = new Bitmap(original, _opts.Height, _opts.Height);

			// flip "right" way up
			if (_opts.FlipY)
				full.RotateFlip(RotateFlipType.RotateNoneFlipY);

			full.Save(Path.Combine(_dirFull, subDir, filename + "." + _opts.ImageType.ToLower()));
		}
	}
}


text:
set -ex

# Nothing to do here. C# has been removed from this repository. This script is a placeholder
# to prevent C# tests from becoming red (until they get eventually disabled).


text:
<?xml version="1.0" encoding="UTF-8"?>
<uniprot xmlns="http://uniprot.org/uniprot"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://uniprot.org/uniprot http://www.uniprot.org/support/docs/uniprot.xsd">
<entry version="74" modified="2018-06-20" created="2005-12-20" dataset="Swiss-Prot">
  <accession>Q30KQ1</accession>
  <accession>Q4QY39</accession>
  <name>DB133_HUMAN</name>
  <protein>
    <recommendedName>
      <fullName>Beta-defensin 133</fullName>
    </recommendedName>
    <alternativeName>
      <fullName>Defensin, beta 133</fullName>
    </alternativeName>
  </protein>
  <gene>
    <name type="primary">DEFB133</name>
  </gene>
  <organism>
    <name type="scientific">Homo sapiens</name>
    <name type="common">Human</name>
    <dbReference id="9606" type="NCBI Taxonomy"/>
    <lineage>
      <taxon>Eukaryota</taxon>
      <taxon>Metazoa</taxon>
      <taxon>Chordata</taxon>
      <taxon>Craniata</taxon>
      <taxon>Vertebrata</taxon>
      <taxon>Euteleostomi</taxon>
      <taxon>Mammalia</taxon>
      <taxon>Eutheria</taxon>
      <taxon>Euarchontoglires</taxon>
      <taxon>Primates</taxon>
      <taxon>Haplorrhini</taxon>
      <taxon>Catarrhini</taxon>
      <taxon>Hominidae</taxon>
      <taxon>Homo</taxon>
    </lineage>
  </organism>
  <reference key="1">
    <citation last="17" first="5" volume="23" name="Physiol. Genomics" date="2005" type="journal article">
      <title>Cross-species analysis of the mammalian beta-defensin gene family: presence of syntenic gene clusters and preferential expression in the male reproductive tract.</title>
      <authorList>
        <person name="Patil A.A."/>
        <person name="Cai Y."/>
                <person name="Sang Y."/>
        <person name="Blecha F."/>
        <person name="Zhang G."/>
      </authorList>
      <dbReference id="16033865" type="PubMed"/>
      <dbReference id="10.1152/physiolgenomics.00104.2005" type="DOI"/>
    </citation>
    <scope>NUCLEOTIDE SEQUENCE [MRNA]</scope>
  </reference>
  <reference key="2">
    <citation db="EMBL/GenBank/DDBJ databases" date="2004-05" type="submission">
      <title>Genome-wide analysis of rat beta-defensins: evidence for the existence of four syntenic defensin gene clusters in mammals.</title>
      <authorList>
        <person name="Patil A."/>
        <person name="Zhang G."/>
      </authorList>
    </citation>
    <scope>NUCLEOTIDE SEQUENCE [MRNA] OF 22-61</scope>
  </reference>
  <comment type="function">
    <text evidence="3">Has antibacterial activity.</text>
  </comment>
  <comment type="subcellular location">
    <subcellularLocation>
      <location evidence="3">Secreted</location>
    </subcellularLocation>
  </comment>
  <comment type="similarity">
    <text evidence="3">Belongs to the beta-defensin family.</text>
  </comment>
  <comment type="caution">
    <text evidence="3">Was termed (Ref.2) DEFB134.</text>
  </comment>
  <dbReference id="DQ012023" type="EMBL">
    <property value="AAY59759.1" type="protein sequence ID"/>
    <property value="mRNA" type="molecule type"/>
  </dbReference>
  <dbReference id="AY621330" type="EMBL">
    <property value="AAT51869.1" type="protein sequence ID"/>
    <property value="mRNA" type="molecule type"/>
  </dbReference>
  <dbReference id="NP_001159950.1" type="RefSeq">
    <property value="NM_001166478.1" type="nucleotide sequence ID"/>
  </dbReference>
          <dbReference id="Hs.558270" type="UniGene"/>
  <dbReference id="Hs.745543" type="UniGene"/>
  <dbReference id="Q30KQ1" type="ProteinModelPortal"/>
  <dbReference id="9606.ENSP00000381706" type="STRING"/>
  <dbReference id="DEFB133" type="BioMuta"/>
  <dbReference id="84028894" type="DMDM"/>
  <dbReference id="Q30KQ1" type="PaxDb"/>
  <dbReference id="Q30KQ1" type="PRIDE"/>
  <dbReference id="61573" type="ProteomicsDB"/>
  <dbReference id="ENST00000398721" type="Ensembl">
    <property value="ENSP00000485031" type="protein sequence ID"/>
    <property value="ENSG00000214643" type="gene ID"/>
  </dbReference>
  <dbReference id="403339" type="GeneID"/>
  <dbReference id="hsa:403339" type="KEGG"/>
  <dbReference id="uc063ozl.1" type="UCSC">
    <property value="human" type="organism name"/>
  </dbReference>
  <dbReference id="403339" type="CTD"/>
  <dbReference id="HostDB:ENSG00000214643.5" type="EuPathDB"/>
  <dbReference id="DEFB133" type="GeneCards"/>
  <dbReference id="HGNC:31331" type="HGNC">
    <property value="DEFB133" type="gene designation"/>
  </dbReference>
  <dbReference id="NX_Q30KQ1" type="neXtProt"/>
  <dbReference id="PA134862169" type="PharmGKB"/>
  <dbReference id="ENOG410J8GN" type="eggNOG">
    <property value="Eukaryota" type="taxonomic scope"/>
  </dbReference>
  <dbReference id="ENOG411194U" type="eggNOG">
    <property value="LUCA" type="taxonomic scope"/>
  </dbReference>
  <dbReference id="ENSGT00400000023650" type="GeneTree"/>
  <dbReference id="HOG000112163" type="HOGENOM"/>
  <dbReference id="HBG084155" type="HOVERGEN"/>
  <dbReference id="Q30KQ1" type="InParanoid"/>
  <dbReference id="KCRHECH" type="OMA"/>
  <dbReference id="EOG091G1AL6" type="OrthoDB"/>
  <dbReference id="Q30KQ1" type="PhylomeDB"/>
  <dbReference id="R-HSA-1461957" type="Reactome">
    <property value="Beta defensins" type="pathway name"/>
  </dbReference>
  <dbReference id="R-HSA-1461973" type="Reactome">
    <property value="Defensins" type="pathway name"/>
      </dbReference>
  <dbReference id="PR:Q30KQ1" type="PRO"/>
  <dbReference id="UP000005640" type="Proteomes">
    <property value="Chromosome 6" type="component"/>
  </dbReference>
  <dbReference id="ENSG00000214643" type="Bgee"/>
  <dbReference id="HS_DEFB133" type="CleanEx"/>
  <dbReference id="GO:0009986" type="GO">
    <property value="C:cell surface" type="term"/>
    <property value="ECO:0000318" type="evidence"/>
    <property value="GO_Central" type="project"/>
  </dbReference>
  <dbReference id="GO:0005576" type="GO">
    <property value="C:extracellular region" type="term"/>
    <property value="ECO:0000501" type="evidence"/>
    <property value="UniProtKB-SubCell" type="project"/>
  </dbReference>
  <dbReference id="GO:0042742" type="GO">
    <property value="P:defense response to bacterium" type="term"/>
    <property value="ECO:0000318" type="evidence"/>
    <property value="GO_Central" type="project"/>
  </dbReference>
  <dbReference id="GO:0045087" type="GO">
    <property value="P:innate immune response" type="term"/>
    <property value="ECO:0000318" type="evidence"/>
    <property value="GO_Central" type="project"/>
  </dbReference>
  <dbReference id="IPR025933" type="InterPro">
    <property value="Beta_defensin" type="entry name"/>
  </dbReference>
  <dbReference id="PTHR15001" type="PANTHER">
    <property value="PTHR15001" type="entry name"/>
    <property value="1" type="match status"/>
  </dbReference>
  <dbReference id="PF13841" type="Pfam">
    <property value="Defensin_beta_2" type="entry name"/>
    <property value="1" type="match status"/>
  </dbReference>
  <proteinExistence type="inferred from homology"/>
  <keyword id="KW-0044">Antibiotic</keyword>
  <keyword id="KW-0929">Antimicrobial</keyword>
  <keyword id="KW-0181">Complete proteome</keyword>
  <keyword id="KW-0211">Defensin</keyword>
  <keyword id="KW-1015">Disulfide bond</keyword>
      <keyword id="KW-1185">Reference proteome</keyword>
  <keyword id="KW-0964">Secreted</keyword>
  <keyword id="KW-0732">Signal</keyword>
  <feature evidence="2" type="signal peptide">
    <location>
      <begin position="1"/>
      <end position="23"/>
    </location>
  </feature>
  <feature description="Beta-defensin 133" id="PRO_0000045358" type="chain">
    <location>
      <begin position="24"/>
      <end position="61"/>
    </location>
  </feature>
  <feature evidence="1" type="disulfide bond">
    <location>
      <begin position="31"/>
      <end position="59"/>
    </location>
  </feature>
  <feature evidence="1" type="disulfide bond">
    <location>
      <begin position="38"/>
      <end position="52"/>
    </location>
  </feature>
  <evidence key="1" type="ECO:0000250"/>
  <evidence key="2" type="ECO:0000255"/>
  <evidence key="3" type="ECO:0000305"/>
  <sequence precursor="true" version="1" modified="2005-12-06" checksum="71C7575DECC65BFE" mass="7213" length="61">MKIHVFLFVLFFFLVPIATRVKCAVKDTYSCFIMRGKCRHECHDFEKPIGFCTKLNANCYM</sequence>
</entry>
    <entry version="62" modified="2018-06-20" created="2008-06-10" dataset="Swiss-Prot">
  <accession>A8MXU0</accession>
  <name>DB108_HUMAN</name>
  <protein>
    <recommendedName>
      <fullName>Putative beta-defensin 108A</fullName>
    </recommendedName>
    <alternativeName>
      <fullName evidence="4">Defensin, beta 108A</fullName>
    </alternativeName>
    <alternativeName>
      <fullName evidence="5">Defensin, beta 108C</fullName>
    </alternativeName>
    <alternativeName>
      <fullName>Putative beta-defensin 108B pseudogene 1/2</fullName>
    </alternativeName>
  </protein>
  <gene>
    <name type="primary" evidence="4">DEFB108A</name>
    <name type="synonym">DEFB108P1</name>
  </gene>
  <gene>
    <name type="primary" evidence="5">DEFB108C</name>
    <name type="synonym">DEFB108P2</name>
  </gene>
  <organism>
    <name type="scientific">Homo sapiens</name>
    <name type="common">Human</name>
    <dbReference id="9606" type="NCBI Taxonomy"/>
    <lineage>
      <taxon>Eukaryota</taxon>
      <taxon>Metazoa</taxon>
      <taxon>Chordata</taxon>
      <taxon>Craniata</taxon>
      <taxon>Vertebrata</taxon>
      <taxon>Euteleostomi</taxon>
      <taxon>Mammalia</taxon>
      <taxon>Eutheria</taxon>
      <taxon>Euarchontoglires</taxon>
      <taxon>Primates</taxon>
      <taxon>Haplorrhini</taxon>
            <taxon>Catarrhini</taxon>
      <taxon>Hominidae</taxon>
      <taxon>Homo</taxon>
    </lineage>
  </organism>
  <reference key="1">
    <citation last="335" first="331" volume="439" name="Nature" date="2006" type="journal article">
      <title>DNA sequence and analysis of human chromosome 8.</title>
      <authorList>
        <person name="Nusbaum C."/>
        <person name="Mikkelsen T.S."/>
        <person name="Zody M.C."/>
        <person name="Asakawa S."/>
        <person name="Taudien S."/>
        <person name="Garber M."/>
        <person name="Kodira C.D."/>
        <person name="Schueler M.G."/>
        <person name="Shimizu A."/>
        <person name="Whittaker C.A."/>
        <person name="Chang J.L."/>
        <person name="Cuomo C.A."/>
        <person name="Dewar K."/>
        <person name="FitzGerald M.G."/>
        <person name="Yang X."/>
        <person name="Allen N.R."/>
        <person name="Anderson S."/>
        <person name="Asakawa T."/>
        <person name="Blechschmidt K."/>
        <person name="Bloom T."/>
        <person name="Borowsky M.L."/>
        <person name="Butler J."/>
        <person name="Cook A."/>
        <person name="Corum B."/>
        <person name="DeArellano K."/>
        <person name="DeCaprio D."/>
        <person name="Dooley K.T."/>
        <person name="Dorris L. III"/>
        <person name="Engels R."/>
        <person name="Gloeckner G."/>
        <person name="Hafez N."/>
        <person name="Hagopian D.S."/>
        <person name="Hall J.L."/>
        <person name="Ishikawa S.K."/>
        <person name="Jaffe D.B."/>
                <person name="Kamat A."/>
        <person name="Kudoh J."/>
        <person name="Lehmann R."/>
        <person name="Lokitsang T."/>
        <person name="Macdonald P."/>
        <person name="Major J.E."/>
        <person name="Matthews C.D."/>
        <person name="Mauceli E."/>
        <person name="Menzel U."/>
        <person name="Mihalev A.H."/>
        <person name="Minoshima S."/>
        <person name="Murayama Y."/>
        <person name="Naylor J.W."/>
        <person name="Nicol R."/>
        <person name="Nguyen C."/>
        <person name="O'Leary S.B."/>
        <person name="O'Neill K."/>
        <person name="Parker S.C.J."/>
        <person name="Polley A."/>
        <person name="Raymond C.K."/>
        <person name="Reichwald K."/>
        <person name="Rodriguez J."/>
        <person name="Sasaki T."/>
        <person name="Schilhabel M."/>
        <person name="Siddiqui R."/>
        <person name="Smith C.L."/>
        <person name="Sneddon T.P."/>
        <person name="Talamas J.A."/>
        <person name="Tenzin P."/>
        <person name="Topham K."/>
        <person name="Venkataraman V."/>
        <person name="Wen G."/>
        <person name="Yamazaki S."/>
        <person name="Young S.K."/>
        <person name="Zeng Q."/>
        <person name="Zimmer A.R."/>
        <person name="Rosenthal A."/>
        <person name="Birren B.W."/>
        <person name="Platzer M."/>
        <person name="Shimizu N."/>
        <person name="Lander E.S."/>
      </authorList>
      <dbReference id="16421571" type="PubMed"/>
      <dbReference id="10.1038/nature04406" type="DOI"/>
          </citation>
    <scope>NUCLEOTIDE SEQUENCE [LARGE SCALE GENOMIC DNA]</scope>
  </reference>
  <reference key="2">
    <citation last="R31.11" first="R31.1" volume="4" name="Genome Biol." date="2003" type="journal article">
      <title>Duplication and selection in the evolution of primate beta-defensin genes.</title>
      <authorList>
        <person name="Semple C.A.M."/>
        <person name="Rolfe M."/>
        <person name="Dorin J.R."/>
      </authorList>
      <dbReference id="12734011" type="PubMed"/>
      <dbReference id="10.1186/gb-2003-4-5-r31" type="DOI"/>
    </citation>
    <scope>NUCLEOTIDE SEQUENCE [MRNA] OF 1-59</scope>
  </reference>
  <comment type="function">
    <text evidence="3">Has antibacterial activity.</text>
  </comment>
  <comment type="subcellular location">
    <subcellularLocation>
      <location evidence="1">Secreted</location>
    </subcellularLocation>
  </comment>
  <comment type="similarity">
    <text evidence="3">Belongs to the beta-defensin family.</text>
  </comment>
  <comment type="caution">
    <text evidence="3">Could be the product of a pseudogene.</text>
  </comment>
  <dbReference id="AC130360" type="EMBL">
    <property value="NOT_ANNOTATED_CDS" type="status"/>
    <property value="Genomic_DNA" type="molecule type"/>
  </dbReference>
  <dbReference id="AF540980" type="EMBL">
    <property value="NOT_ANNOTATED_CDS" type="status"/>
    <property value="mRNA" type="molecule type"/>
  </dbReference>
  <dbReference id="Hs.583890" type="UniGene"/>
  <dbReference id="A8MXU0" type="ProteinModelPortal"/>
  <dbReference id="A8MXU0" type="PRIDE"/>
  <dbReference id="2353" type="ProteomicsDB"/>
  <dbReference id="DEFB108A" type="GeneCards"/>
  <dbReference id="DEFB108C" type="GeneCards"/>
    <dbReference id="HGNC:18089" type="HGNC">
    <property value="DEFB108A" type="gene designation"/>
  </dbReference>
  <dbReference id="HGNC:30847" type="HGNC">
    <property value="DEFB108C" type="gene designation"/>
  </dbReference>
  <dbReference id="HPA042588" type="HPA"/>
  <dbReference id="NX_A8MXU0" type="neXtProt"/>
  <dbReference id="HOG000112137" type="HOGENOM"/>
  <dbReference id="HBG081400" type="HOVERGEN"/>
  <dbReference id="A8MXU0" type="InParanoid"/>
  <dbReference id="A8MXU0" type="PhylomeDB"/>
  <dbReference id="R-HSA-1461957" type="Reactome">
    <property value="Beta defensins" type="pathway name"/>
  </dbReference>
  <dbReference id="UP000005640" type="Proteomes">
    <property value="Unplaced" type="component"/>
  </dbReference>
  <dbReference id="GO:0009986" type="GO">
    <property value="C:cell surface" type="term"/>
    <property value="ECO:0000318" type="evidence"/>
    <property value="GO_Central" type="project"/>
  </dbReference>
  <dbReference id="GO:0005576" type="GO">
    <property value="C:extracellular region" type="term"/>
    <property value="ECO:0000501" type="evidence"/>
    <property value="UniProtKB-SubCell" type="project"/>
  </dbReference>
  <dbReference id="GO:0042742" type="GO">
    <property value="P:defense response to bacterium" type="term"/>
    <property value="ECO:0000318" type="evidence"/>
    <property value="GO_Central" type="project"/>
  </dbReference>
  <dbReference id="GO:0045087" type="GO">
    <property value="P:innate immune response" type="term"/>
    <property value="ECO:0000318" type="evidence"/>
    <property value="GO_Central" type="project"/>
  </dbReference>
  <dbReference id="IPR025933" type="InterPro">
    <property value="Beta_defensin" type="entry name"/>
  </dbReference>
  <dbReference id="PTHR15001" type="PANTHER">
    <property value="PTHR15001" type="entry name"/>
    <property value="1" type="match status"/>
      </dbReference>
  <dbReference id="PF13841" type="Pfam">
    <property value="Defensin_beta_2" type="entry name"/>
    <property value="1" type="match status"/>
  </dbReference>
  <proteinExistence type="uncertain"/>
  <keyword id="KW-0044">Antibiotic</keyword>
  <keyword id="KW-0929">Antimicrobial</keyword>
  <keyword id="KW-0181">Complete proteome</keyword>
  <keyword id="KW-0211">Defensin</keyword>
  <keyword id="KW-1015">Disulfide bond</keyword>
  <keyword id="KW-1185">Reference proteome</keyword>
  <keyword id="KW-0964">Secreted</keyword>
  <keyword id="KW-0732">Signal</keyword>
  <feature evidence="2" type="signal peptide">
    <location>
      <begin position="1"/>
      <end position="22"/>
    </location>
  </feature>
  <feature description="Putative beta-defensin 108A" id="PRO_0000341263" type="chain">
    <location>
      <begin position="23"/>
      <end position="73"/>
    </location>
  </feature>
  <feature evidence="1" type="disulfide bond">
    <location>
      <begin position="28"/>
      <end position="55"/>
    </location>
  </feature>
  <feature evidence="1" type="disulfide bond">
    <location>
      <begin position="35"/>
      <end position="49"/>
    </location>
  </feature>
  <feature evidence="1" type="disulfide bond">
    <location>
      <begin position="39"/>
      <end position="56"/>
    </location>
  </feature>
      <evidence key="1" type="ECO:0000250"/>
  <evidence key="2" type="ECO:0000255"/>
  <evidence key="3" type="ECO:0000305"/>
  <evidence key="4" type="ECO:0000312">
    <source>
      <dbReference id="HGNC:18089" type="HGNC"/>
    </source>
  </evidence>
  <evidence key="5" type="ECO:0000312">
    <source>
      <dbReference id="HGNC:30847" type="HGNC"/>
    </source>
  </evidence>
  <sequence precursor="true" version="2" modified="2008-06-10" checksum="ED4C8C652A4C7FDA" mass="8390" length="73">MRIAVLFFTIFFFMSQVLPAKGKFKEICERPNGSCRDFCLETEIHVGRCLNSRPCCLPLGHQPRIESTTPKKD</sequence>
</entry>
</uniprot>


text:
<?php
/**
 * The footer widget area.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Zeal
 */

if ( ! is_active_sidebar( 'sidebar-footer-a' ) ) {
    return;
}
?>

<div id="secondary" class="widget-area row" role="complementary">
    <?php dynamic_sidebar( 'sidebar-footer-a' ); ?>
</div><!-- #secondary -->


text:
![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png) 0

To use the True Friend skill, try saying...

* *Alexa Open True Friend*

* *Alexa Start true friend*

* *Alexa Launch true friend*

A teacher about the Holy Spirit who's the BEST HELP available to everyone.Learn more about what the Holy Spirit DOES THROUGH THIS APP.

***

### Skill Details

* **Invocation Name:** true friend
* **Category:** null
* **ID:** amzn1.ask.skill.3a1b73c7-2178-483e-9b77-78ff292f10d0
* **ASIN:** B01MXZTYIO
* **Author:** CHRISTINA IT SOLUTIONS
* **Release Date:** January 3, 2017 @ 09:21:04
* **In-App Purchasing:** No


text:
using System.Numerics;

namespace ValveResourceFormat.ResourceTypes.ModelAnimation
{
    public class FrameBone
    {
        public Vector3 Position { get; set; }
        public Quaternion Angle { get; set; }

        public FrameBone(Vector3 pos, Quaternion a)
        {
            Position = pos;
            Angle = a;
        }
    }
}


text:
import os
import Image
import ImageDraw
import ImageFont

width = 320
height = 240
total_width = width*6
total_height = height*6

def positions():
    for j in xrange(0, total_height, height):
        for i in xrange(0, total_width, width):
            yield (i,j)

def combined_image(func):
    new_im = Image.new('RGBA', (total_width, total_height), (255,255,255,255))

    plot_names = [os.path.join("plots",
                               "{}_reference_data_{:02}.png".format(func, d))
                  for d in xrange(31)]

    p = positions()
    for plot in plot_names:
        im = Image.open(plot)
        im = im.resize((width, height), Image.ANTIALIAS)
        new_im.paste(im, p.next())

    # Add text
    draw = ImageDraw.Draw(new_im)
    font = ImageFont.truetype("arial.ttf", 64)
    draw.text(p.next(), func, (0,0,0), font=font)

    new_im.save(os.path.join("combined_plots", "{}.png".format(func)))

if __name__ == "__main__":
    if not os.path.isdir("combined_plots"):
        os.mkdir("combined_plots")

    for func in ["hyp1f1", "taylor_series", "single_fraction",
                 "bessel_series", "asymptotic_series", "rational_approximation"]:
        combined_image(func)


text:
package org.apache.causeway.testing.fakedata.integtests.tests;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.UUID;

import javax.inject.Inject;

import org.assertj.core.api.Assertions;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import org.apache.causeway.applib.value.Blob;
import org.apache.causeway.applib.value.Clob;
import org.apache.causeway.applib.value.Password;
import org.apache.causeway.testing.fakedata.applib.services.FakeDataService;
import org.apache.causeway.testing.fakedata.fixtures.demoapp.demomodule.dom.EnumOf3;
import org.apache.causeway.testing.fakedata.fixtures.demoapp.demomodule.dom.FakeDataDemoObjectWithAll;
import org.apache.causeway.testing.fakedata.fixtures.demoapp.demomodule.dom.FakeDataDemoObjectWithAllMenu;
import org.apache.causeway.testing.fakedata.fixtures.demoapp.demomodule.fixturescripts.FakeDataDemoObjectWithAll_create3;
import org.apache.causeway.testing.fakedata.fixtures.demoapp.demomodule.fixturescripts.data.FakeDataDemoObjectWithAll_update_withFakeData;
import org.apache.causeway.testing.fakedata.integtests.FakeDataModuleIntegTestAbstract;
import org.apache.causeway.testing.fixtures.applib.fixturescripts.FixtureScripts;

class Smoke_IntegTest extends FakeDataModuleIntegTestAbstract {

    @Inject
    FixtureScripts fixtureScripts;

    @Inject
    FakeDataDemoObjectWithAllMenu fakeDataDemoObjects;

    @Inject
    FakeDataService fakeDataService;

    @Disabled("conext not setup correctly")
    static class FakeDataDemoObjectsScenarioTest extends Smoke_IntegTest {

        @Test
        public void happyCase() throws Exception {

            //
            // when
            //

            final FakeDataDemoObjectWithAll_create3 scenario =
                    new FakeDataDemoObjectWithAll_create3()
                        .setNumberToCreate(1)
                        .setWithFakeData(false);

            fixtureScripts.runFixtureScript(scenario, null);

            transactionService.flushTransaction();

            //
            // then
            //
            final List<FakeDataDemoObjectWithAll> all = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll();
            Assertions.assertThat(all.size()).isEqualTo(1);

            FakeDataDemoObjectWithAll fakeDataDemoObject = all.get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeBooleanWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeCharacterWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeByteWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeShortWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeIntegerWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeLongWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeFloatWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeDoubleWrapper()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeString()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomePassword()).isNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeBigDecimal()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeBigInteger()).isNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeBlob()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeClob()).isNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeJavaUtilDate()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlDate()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlTimestamp()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJodaDateTime()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJodaLocalDate()).isNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeUrl()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeUuid()).isNull();
            //Assertions.assertThat(fakeDataDemoObject.getSomeMoney()).isNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeEnumOf3()).isNull();

        }

    }

    @Disabled("conext not setup correctly")
    static class FakeDataDemoObjectUpdateTest extends Smoke_IntegTest {

        FakeDataDemoObjectWithAll fakeDataDemoObject;
        FakeDataDemoObjectWithAll_update_withFakeData updateScript;

        @BeforeEach
        public void setUp() throws Exception {

            //
            // given
            //
            final FakeDataDemoObjectWithAll_create3 fs =
                    new FakeDataDemoObjectWithAll_create3()
                            .setNumberToCreate(1)
                            .setWithFakeData(false);

            fixtureScripts.runFixtureScript(fs, null);

            transactionService.flushTransaction();

            final List<FakeDataDemoObjectWithAll> all = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll();
            fakeDataDemoObject = all.get(0);

            updateScript = new FakeDataDemoObjectWithAll_update_withFakeData();
        }

        @Test
        public void when_all_defaulted() throws Exception {

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeBooleanWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeCharacterWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeByteWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeShortWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeIntegerWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeLongWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeFloatWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeDoubleWrapper()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeString()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomePassword()).isNotNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeBigDecimal()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeBigInteger()).isNotNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeBlob()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeClob()).isNotNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeJavaUtilDate()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlDate()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlTimestamp()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJodaDateTime()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeJodaLocalDate()).isNotNull();

            Assertions.assertThat(fakeDataDemoObject.getSomeUrl()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeUuid()).isNotNull();
//            Assertions.assertThat(fakeDataDemoObject.getSomeMoney()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeEnumOf3()).isNotNull();

        }

        @Test
        public void when_boolean() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeBooleanWrapper()).isNull();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeBoolean(true);

            fixtureScripts.runFixtureScript( updateScript, null);
            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);
            Assertions.assertThat(fakeDataDemoObject.isSomeBoolean()).isTrue();
            Assertions.assertThat(fakeDataDemoObject.getSomeBooleanWrapper()).isTrue();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeBoolean(false);

            fixtureScripts.runFixtureScript( updateScript, null);
            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);
            Assertions.assertThat(fakeDataDemoObject.isSomeBoolean()).isFalse();
            Assertions.assertThat(fakeDataDemoObject.getSomeBooleanWrapper()).isFalse();

        }

        @Test
        public void when_char() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeCharacterWrapper()).isNull();

            final char theChar = 'x';

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeChar(theChar);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeChar()).isEqualTo(theChar);
            Assertions.assertThat(fakeDataDemoObject.getSomeCharacterWrapper()).isEqualTo(theChar);
        }

        @Test
        public void when_byte() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeByteWrapper()).isNull();

            final byte theByte = (byte) 123;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeByte(theByte);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeByte()).isEqualTo(theByte);
            Assertions.assertThat(fakeDataDemoObject.getSomeByteWrapper()).isEqualTo(theByte);

        }

        @Test
        public void when_short() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeShortWrapper()).isNull();

            final short theShort = (short) 32123;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeShort(theShort);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeShort()).isEqualTo(theShort);
            Assertions.assertThat(fakeDataDemoObject.getSomeShortWrapper()).isEqualTo(theShort);

        }

        @Test
        public void when_int() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeIntegerWrapper()).isNull();

            final int theInt = 1234578;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeInt(theInt);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeInt()).isEqualTo(theInt);
            Assertions.assertThat(fakeDataDemoObject.getSomeIntegerWrapper()).isEqualTo(theInt);

        }

        @Test
        public void when_long() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeLongWrapper()).isNull();

            final long theLong = 123456789012345678L;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeLong(theLong);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeLong()).isEqualTo(theLong);
            Assertions.assertThat(fakeDataDemoObject.getSomeLongWrapper()).isEqualTo(theLong);
        }

        @Test
        public void when_float() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeFloatWrapper()).isNull();

            final float theFloat = 123456.789F;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeFloat(theFloat);
            fixtureScripts.runFixtureScript( updateScript, null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeFloat()).isEqualTo(theFloat);
            Assertions.assertThat(fakeDataDemoObject.getSomeFloatWrapper()).isEqualTo(theFloat);

        }

        @Test
        public void when_double() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeDoubleWrapper()).isNull();

            final double theDouble = 123456789.012345678;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeDouble(theDouble);
            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeDouble()).isEqualTo(theDouble);
            Assertions.assertThat(fakeDataDemoObject.getSomeDoubleWrapper()).isEqualTo(theDouble);
        }

        @Test
        public void when_string() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeString()).isNull();

            final String theString = "(c) Apache Software Foundation";

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeString(theString);
            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeString()).isEqualTo(theString);
        }

        @Test
        public void when_password() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomePassword()).isNull();

            final Password thePassword = new Password("abc!def$ghi");

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomePassword(thePassword);
            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomePassword()).isEqualTo(thePassword);

        }

        @Test
        public void when_bigdecimal() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeBigDecimal()).isNull();

            final BigDecimal theBigDecimal = new BigDecimal("9876543210.9876");

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeBigDecimal(theBigDecimal);
            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeBigDecimal()).isEqualTo(theBigDecimal);

        }

        @Test
        public void when_biginteger() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeBigInteger()).isNull();

            final BigInteger theBigInteger = new BigInteger("123456789012345678");

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeBigInteger(theBigInteger);
            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeBigInteger()).isEqualTo(theBigInteger);
        }

        @Test
        public void when_blob() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeBlob()).isNull();

            final Blob theBlob = fakeDataService.causewayBlobs().anyPdf();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeBlob(theBlob);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeBlob()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeBlob().getMimeType().toString()).isEqualTo("application/pdf");
        }

        @Test
        public void when_clob() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeClob()).isNull();

            final Clob theClob = fakeDataService.causewayClobs().anyXml();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeClob(theClob);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeClob()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeClob().getMimeType().toString()).isEqualTo("text/xml");
        }

        @Test
        public void when_javaUtilDate() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaUtilDate()).isNull();

            final Date theDate = new DateTime(2015, 4, 8, 16, 22, 30).toDate();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeJavaUtilDate(theDate);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeJavaUtilDate()).isEqualTo(theDate);

        }

        @Test
        public void when_javaSqlDate() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlDate()).isNull();

            final java.sql.Date theDate = new java.sql.Date(new DateTime(2015, 4, 8, 16, 22, 30).withTimeAtStartOfDay().getMillis());

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeJavaSqlDate(theDate);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlDate()).isEqualTo(theDate);

        }

        @Test
        public void when_javaSqlTimestampDateTime() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlTimestamp()).isNull();

            final Timestamp theTimestamp = new Timestamp(new DateTime(2015, 4, 8, 16, 22, 30).getMillis());

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeJavaSqlTimestamp(theTimestamp);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeJavaSqlTimestamp()).isEqualTo(theTimestamp);

        }

        @Test
        public void when_jodaDateTime() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeJodaDateTime()).isNull();

            final DateTime theDate = new DateTime(2015, 4, 8, 16, 22, 30);

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeJodaDateTime(theDate);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeJodaDateTime()).isEqualTo(theDate);

        }

        @Test
        public void when_jodaLocalDate() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeJodaLocalDate()).isNull();

            final LocalDate theDate = new DateTime(2015, 4, 8, 16, 22, 30).toLocalDate();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeJodaLocalDate(theDate);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeJodaLocalDate()).isEqualTo(theDate);

        }

        @Test
        public void when_url() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeUrl()).isNull();

            java.net.URL theUrl = new java.net.URL("http://causeway.apache.org");

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeUrl(theUrl);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeUrl()).isEqualTo(theUrl);

        }

        @Test
        public void when_uuid() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeUuid()).isNull();

            UUID theUuid = UUID.randomUUID();

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeUuid(theUuid);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeUuid()).isEqualTo(theUuid);

            //Assertions.assertThat(fakeDataDemoObject.getSomeMoney()).isNotNull();
            Assertions.assertThat(fakeDataDemoObject.getSomeEnumOf3()).isNotNull();

        }

//        @Test
//        public void when_money() throws Exception {
//
//            //
//            // given
//            //
//            Assertions.assertThat(fakeDataDemoObject.getSomeMoney()).isNull();
//
//            final Money theMoney = new Money(12345.67, "EUR");
//
//
//            //
//            // when
//            //
//            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
//            updateScript.setSomeMoney(theMoney);
//
//            fixtureScripts.runFixtureScript( updateScript,  null);
//
//            transactionService.flushTransaction();
//
//
//            //
//            // then
//            //
//            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);
//
//            Assertions.assertThat(fakeDataDemoObject.getSomeMoney()).isEqualTo(theMoney);
//
//            Assertions.assertThat(fakeDataDemoObject.getSomeEnumOf3()).isNotNull();
//
//        }

        @Test
        public void when_enum() throws Exception {

            //
            // given
            //
            Assertions.assertThat(fakeDataDemoObject.getSomeEnumOf3()).isNull();

            final EnumOf3 theEnumConstant = EnumOf3.AMEX;

            //
            // when
            //
            updateScript.setFakeDataDemoObject(fakeDataDemoObject);
            updateScript.setSomeEnumOf3(theEnumConstant);

            fixtureScripts.runFixtureScript( updateScript,  null);

            transactionService.flushTransaction();

            //
            // then
            //
            fakeDataDemoObject = wrap(fakeDataDemoObjects).listAllDemoObjectsWithAll().get(0);

            Assertions.assertThat(fakeDataDemoObject.getSomeEnumOf3()).isEqualTo(theEnumConstant);

        }

    }

}


text:
import sys
import csv

# name,official_name_en,official_name_fr,ISO3166-1-Alpha-2,ISO3166-1-Alpha-3,ISO3166-1-numeric,ITU,MARC,WMO,DS,Dial,FIFA,FIPS,GAUL,IOC,ISO4217-currency_alphabetic_code,ISO4217-currency_country_name,ISO4217-currency_minor_unit,ISO4217-currency_name,ISO4217-currency_numeric_code,is_independent,Capital,Continent,TLD,Languages,geonameid,EDGAR

alpha2 = {}

for row in csv.DictReader(open('../../data/country/countries.tsv'), delimiter='\t'):
    alpha2[row['country']] = "country:" + row['country']

for row in csv.DictReader(open('../../data/territory/territories.tsv'), delimiter='\t'):
    alpha2[row['territory']] = "territory:" + row['territory']

fields = ['alpha3', 'world-location']

print("\t".join(fields))

for row in csv.DictReader(sys.stdin):

    row['alpha3'] = row['ISO3166-1-Alpha-3']

    if row['alpha3']:

        if row['ISO3166-1-Alpha-2'] in alpha2:
            row['world-location'] = alpha2[row['ISO3166-1-Alpha-2']]

        print("\t".join([row.get(field, '') for field in fields]))


text:
/*
 * Copyright (c) 2005 ScenPro, Inc.
 */

// $Header: /share/content/gforge/sentinel/sentinel/src/gov/nih/nci/cadsr/sentinel/util/DSRAlertImpl.java,v 1.14 2008-07-14 14:52:46 hebell Exp $
// $Name: not supported by cvs2svn $

package gov.nih.nci.cadsr.sentinel.util;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.log4j.Logger;

/**
 * This class exists solely to create an instance of the DSRAlert Interface object.
 * Use the static factory() method and then make all requests through the resulting
 * DSRAlert Interface object.
 *
 * @author Larry Hebel Oct 12, 2005
 */

public class DSRAlertImpl
{
    /**
     * This method will create an implementation instance of the DSRAlert Interface
     * class. All requests to the Sentinel Alert system must be through the interface
     * provided by DSRAlert.
     *
     * @param url_ The URL to the Sentinel Alert system. For NCI this is
     *      http://cadsrsentinel.nci.nih.gov. This is also stored in the caDSR
     *      within the Tool Options table.
     *
     * @return An instance of the implementation of the DSRAlert interface.
     */
    public static DSRAlert factory(String url_)
    {
        return new DSRAlertV1(url_);
    }

    /**
     * This method will create an implementation instance of the DSRAlert Interface
     * class. All requests to the Sentinel Alert system must be through the interface
     * provided by DSRAlert.
     *
     * @param conn_ The database connection to retrieve the URL from the Tool
     *      Options table.
     * @return null if the SENTINEL, URL entry is missing from the options table or any
     *      other database error occurs. Otherwise an instance of the implementation of
     *      the DSRAlert interface.
     */
    public static DSRAlert factory(Connection conn_)
    {
        String select = "select value from sbrext.tool_options_view_ext "
            + "where tool_name = 'SENTINEL' and property = 'URL' ";

        String url = null;

        PreparedStatement pstmt = null;
        ResultSet rs = null;
        try
        {
            pstmt = conn_.prepareStatement(select);
            rs = pstmt.executeQuery();
            if (rs.next())
                url = rs.getString(1);
        }
        catch (SQLException ex)
        {
            int errorCode = ex.getErrorCode();
            _logger.error("DSRAlertImpl: " + errorCode + ": " + select
                + "\n\n" + ex.toString());
        }
        finally
        {
            if (rs != null)
            {
                try { rs.close(); } catch(Exception ex) { }
            }
            if (pstmt != null)
            {
                try { pstmt.close(); } catch(Exception ex) { }
            }
        }

        return (url == null) ? null : new DSRAlertV1(url);
    }

    private static final Logger _logger = Logger.getLogger(DSRAlertImpl.class.getName());
}


text:
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.

// Maintainer: mphoward

/*!
 * \file mpcd/CellThermoComputeGPU.h
 * \brief Declaration of mpcd::CellThermoComputeGPU
 */

#ifndef MPCD_CELL_THERMO_COMPUTE_GPU_H_
#define MPCD_CELL_THERMO_COMPUTE_GPU_H_

#ifdef __HIPCC__
#error This header cannot be compiled by nvcc
#endif

#include "CellThermoCompute.h"
#include "CellThermoComputeGPU.cuh"

#include "hoomd/Autotuner.h"

// pybind11
#include <pybind11/pybind11.h>

namespace mpcd
    {
//! Computes the cell (thermodynamic) properties on the GPU
class PYBIND11_EXPORT CellThermoComputeGPU : public mpcd::CellThermoCompute
    {
    public:
    //! Constructor
    CellThermoComputeGPU(std::shared_ptr<mpcd::SystemData> sysdata);

    //! Destructor
    virtual ~CellThermoComputeGPU();

    //! Set autotuner parameters
    /*!
     * \param enable Enable/disable autotuning
     * \param period period (approximate) in time steps when returning occurs
     */
    virtual void setAutotunerParams(bool enable, unsigned int period)
        {
        mpcd::CellThermoCompute::setAutotunerParams(enable, period);

        m_begin_tuner->setEnabled(enable);
        m_begin_tuner->setPeriod(period);

        m_end_tuner->setEnabled(enable);
        m_end_tuner->setPeriod(period);

        m_inner_tuner->setEnabled(enable);
        m_inner_tuner->setPeriod(period);

        m_stage_tuner->setEnabled(enable);
        m_stage_tuner->setPeriod(period);
        }

    protected:
#ifdef ENABLE_MPI
    //! Begin the calculation of outer cell properties on the GPU
    virtual void beginOuterCellProperties();

    //! Finish the calculation of outer cell properties on the GPU
    virtual void finishOuterCellProperties();
#endif // ENABLE_MPI

    //! Calculate the inner cell properties on the GPU
    virtual void calcInnerCellProperties();

    //! Compute the net properties from the cell properties
    virtual void computeNetProperties();

    private:
    std::unique_ptr<Autotuner> m_begin_tuner; //!< Tuner for cell begin kernel
    std::unique_ptr<Autotuner> m_end_tuner;   //!< Tuner for cell end kernel
    std::unique_ptr<Autotuner> m_inner_tuner; //!< Tuner for inner cell compute kernel
    std::unique_ptr<Autotuner> m_stage_tuner; //!< Tuner for staging net property compute

    GPUVector<mpcd::detail::cell_thermo_element>
        m_tmp_thermo; //!< Temporary array for holding cell data
    GPUFlags<mpcd::detail::cell_thermo_element> m_reduced; //!< Flags to hold reduced sum
    };

namespace detail
    {
//! Export the CellThermoComputeGPU class to python
void export_CellThermoComputeGPU(pybind11::module& m);
    } // end namespace detail
    } // end namespace mpcd

#endif // MPCD_CELL_THERMO_COMPUTE_GPU_H_


text:
<!DOCTYPE html>

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

  <title> Flume </title>

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

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

  <link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
  <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" >

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

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

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

                </button>
                José Galaz Mora

                        Projects

                        About

Flume

 Click and drag the water with your mouse.

            Use the  controls for additional interaction

See me on Github

Home

Flume experiment

        <canvas id="myCanvas" width="100" height="200"></canvas>

Location

 Santiago, Chile

Around the Web

                      Copyright © jgalazm 2016

  <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" >

  <meta property="og:image" content="https://cdn.rawgit.com/jgalazm/jgalazm.github.io/master/img/thumbnail_swe1d2.png"/>
  <meta property="og:title" content="Flume (jgalazm)" />
  <meta property="og:description" content="A horizontal closed flume experiment. Click/touch and drag the water and see what happens." />
  <meta property="og:url" content="https://jgalazm.github.io/flume.html" />

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


text:
package edu.internet2.middleware.shibboleth.idp.profile.saml1;

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

import org.joda.time.DateTime;
import org.opensaml.common.SAMLObjectBuilder;
import org.opensaml.common.binding.BasicEndpointSelector;
import org.opensaml.common.binding.artifact.SAMLArtifactMap;
import org.opensaml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry;
import org.opensaml.common.binding.decoding.SAMLMessageDecoder;
import org.opensaml.common.xml.SAMLConstants;
import org.opensaml.saml1.binding.SAML1ArtifactMessageContext;
import org.opensaml.saml1.core.Assertion;
import org.opensaml.saml1.core.AssertionArtifact;
import org.opensaml.saml1.core.NameIdentifier;
import org.opensaml.saml1.core.Request;
import org.opensaml.saml1.core.Response;
import org.opensaml.saml1.core.Status;
import org.opensaml.saml1.core.StatusCode;
import org.opensaml.saml2.metadata.AssertionConsumerService;
import org.opensaml.saml2.metadata.AttributeAuthorityDescriptor;
import org.opensaml.saml2.metadata.Endpoint;
import org.opensaml.saml2.metadata.EntityDescriptor;
import org.opensaml.saml2.metadata.SPSSODescriptor;
import org.opensaml.saml2.metadata.provider.MetadataProvider;
import org.opensaml.ws.message.decoder.MessageDecodingException;
import org.opensaml.ws.transport.http.HTTPInTransport;
import org.opensaml.ws.transport.http.HTTPOutTransport;
import org.opensaml.xml.security.SecurityException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.internet2.middleware.shibboleth.common.profile.ProfileException;
import edu.internet2.middleware.shibboleth.common.profile.provider.BaseSAMLProfileRequestContext;
import edu.internet2.middleware.shibboleth.common.relyingparty.provider.saml1.ArtifactResolutionConfiguration;

/** SAML 1 Artifact resolution profile handler. */
public class ArtifactResolution extends AbstractSAML1ProfileHandler {

    /** Class logger. */
    private final Logger log = LoggerFactory.getLogger(ArtifactResolution.class);

    /** Builder of Response objects. */
    private SAMLObjectBuilder<Response> responseBuilder;

    /** Builder of assertion consumer service endpoints. */
    private SAMLObjectBuilder<AssertionConsumerService> acsEndpointBuilder;

    /** Map artifacts to SAML messages. */
    private SAMLArtifactMap artifactMap;

    /**
     * Constructor.
     *
     * @param map ArtifactMap used to lookup artifacts to be resolved.
     */
    public ArtifactResolution(SAMLArtifactMap map) {
        super();

        artifactMap = map;

        responseBuilder = (SAMLObjectBuilder<Response>) getBuilderFactory().getBuilder(Response.DEFAULT_ELEMENT_NAME);
        acsEndpointBuilder = (SAMLObjectBuilder<AssertionConsumerService>) getBuilderFactory().getBuilder(
                AssertionConsumerService.DEFAULT_ELEMENT_NAME);
    }

    /** {@inheritDoc} */
    public String getProfileId() {
        return ArtifactResolutionConfiguration.PROFILE_ID;
    }

    /** {@inheritDoc} */
    public void processRequest(HTTPInTransport inTransport, HTTPOutTransport outTransport) throws ProfileException {
        Response samlResponse;

        ArtifactResolutionRequestContext requestContext = new ArtifactResolutionRequestContext();
        decodeRequest(requestContext, inTransport, outTransport);

        try {
            if (requestContext.getProfileConfiguration() == null) {
                String msg = "SAML 1 Artifact resolution profile is not configured for relying party "
                        + requestContext.getInboundMessageIssuer();
                requestContext.setFailureStatus(buildStatus(StatusCode.SUCCESS, StatusCode.REQUEST_DENIED, msg));
                log.warn(msg);
                throw new ProfileException(msg);
            }

            checkSamlVersion(requestContext);

            derferenceArtifacts(requestContext);

            // create the SAML response
            samlResponse = buildArtifactResponse(requestContext);
        } catch (ProfileException e) {
            samlResponse = buildErrorResponse(requestContext);
        }

        requestContext.setOutboundSAMLMessage(samlResponse);
        requestContext.setOutboundSAMLMessageId(samlResponse.getID());
        requestContext.setOutboundSAMLMessageIssueInstant(samlResponse.getIssueInstant());

        encodeResponse(requestContext);
        writeAuditLogEntry(requestContext);
    }

    /**
     * Decodes an incoming request and populates a created request context with the resultant information.
     *
     * @param inTransport inbound message transport
     * @param outTransport outbound message transport
     * @param requestContext request context to which decoded information should be added
     *
     * @throws ProfileException throw if there is a problem decoding the request
     */
    protected void decodeRequest(ArtifactResolutionRequestContext requestContext, HTTPInTransport inTransport,
            HTTPOutTransport outTransport) throws ProfileException {
        if (log.isDebugEnabled()) {
            log.debug("Decoding message with decoder binding '{}'", getInboundMessageDecoder(requestContext)
                    .getBindingURI());
        }

        requestContext.setCommunicationProfileId(getProfileId());

        MetadataProvider metadataProvider = getMetadataProvider();
        requestContext.setMetadataProvider(metadataProvider);

        requestContext.setInboundMessageTransport(inTransport);
        requestContext.setInboundSAMLProtocol(SAMLConstants.SAML11P_NS);
        requestContext.setSecurityPolicyResolver(getSecurityPolicyResolver());
        requestContext.setPeerEntityRole(SPSSODescriptor.DEFAULT_ELEMENT_NAME);

        requestContext.setOutboundMessageTransport(outTransport);
        requestContext.setOutboundSAMLProtocol(SAMLConstants.SAML11P_NS);

        try {
            SAMLMessageDecoder decoder = getInboundMessageDecoder(requestContext);
            requestContext.setMessageDecoder(decoder);
            decoder.decode(requestContext);
            log.debug("Decoded artifact resolution request from relying party '{}'", requestContext
                    .getInboundMessageIssuer());
        } catch (MessageDecodingException e) {
            String msg = "Error decoding artifact resolve message";
            requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, null, msg));
            log.warn(msg, e);
            throw new ProfileException(msg, e);
        } catch (SecurityException e) {
            String msg = "Message did not meet security requirements";
            requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, StatusCode.REQUEST_DENIED, msg));
            log.warn(msg, e);
            throw new ProfileException(msg, e);
        } finally {
            // Set as much information as can be retrieved from the decoded message
            populateRequestContext(requestContext);
        }
    }

    /** {@inheritDoc} */
    protected void populateRelyingPartyInformation(BaseSAMLProfileRequestContext requestContext)
            throws ProfileException {
        super.populateRelyingPartyInformation(requestContext);

        EntityDescriptor relyingPartyMetadata = requestContext.getPeerEntityMetadata();
        if (relyingPartyMetadata != null) {
            requestContext.setPeerEntityRole(SPSSODescriptor.DEFAULT_ELEMENT_NAME);
            requestContext.setPeerEntityRoleMetadata(relyingPartyMetadata.getSPSSODescriptor(SAMLConstants.SAML11P_NS));
        }
    }

    /** {@inheritDoc} */
    protected void populateAssertingPartyInformation(BaseSAMLProfileRequestContext requestContext)
            throws ProfileException {
        super.populateAssertingPartyInformation(requestContext);

        EntityDescriptor localEntityDescriptor = requestContext.getLocalEntityMetadata();
        if (localEntityDescriptor != null) {
            requestContext.setLocalEntityRole(AttributeAuthorityDescriptor.DEFAULT_ELEMENT_NAME);
            requestContext.setLocalEntityRoleMetadata(localEntityDescriptor
                    .getAttributeAuthorityDescriptor(SAMLConstants.SAML11P_NS));
        }
    }

    /** {@inheritDoc} */
    protected void populateSAMLMessageInformation(BaseSAMLProfileRequestContext requestContext) throws ProfileException {
        // nothing to do here
    }

    /**
     * Selects the appropriate endpoint for the relying party and stores it in the request context.
     *
     * @param requestContext current request context
     *
     * @return Endpoint selected from the information provided in the request context
     */
    protected Endpoint selectEndpoint(BaseSAMLProfileRequestContext requestContext) {
        Endpoint endpoint;

        if (getInboundBinding().equals(SAMLConstants.SAML1_SOAP11_BINDING_URI)) {
            endpoint = acsEndpointBuilder.buildObject();
            endpoint.setBinding(SAMLConstants.SAML1_SOAP11_BINDING_URI);
        } else {
            BasicEndpointSelector endpointSelector = new BasicEndpointSelector();
            endpointSelector.setEndpointType(AssertionConsumerService.DEFAULT_ELEMENT_NAME);
            endpointSelector.setMetadataProvider(getMetadataProvider());
            endpointSelector.setEntityMetadata(requestContext.getPeerEntityMetadata());
            endpointSelector.setEntityRoleMetadata(requestContext.getPeerEntityRoleMetadata());
            endpointSelector.setSamlRequest(requestContext.getInboundSAMLMessage());
            endpointSelector.getSupportedIssuerBindings().addAll(getSupportedOutboundBindings());
            endpoint = endpointSelector.selectEndpoint();
        }

        return endpoint;
    }

    /**
     * Dereferences the artifacts within the incoming request and stores them in the request context.
     *
     * @param requestContext current request context
     *
     * @throws ProfileException thrown if the incoming request does not contain any {@link AssertionArtifact}s.
     */
    protected void derferenceArtifacts(ArtifactResolutionRequestContext requestContext) throws ProfileException {
        Request request = requestContext.getInboundSAMLMessage();
        List<AssertionArtifact> assertionArtifacts = request.getAssertionArtifacts();

        if (assertionArtifacts == null || assertionArtifacts.size() == 0) {
            requestContext.setFailureStatus(buildStatus(StatusCode.RESPONDER, StatusCode.REQUEST_DENIED,
                    "No AssertionArtifacts available in request"));
            String msg = "No AssertionArtifacts available in request from relying party "
                    + requestContext.getInboundMessageIssuer();
            log.warn(msg);
            throw new ProfileException(msg);
        }

        ArrayList<Assertion> assertions = new ArrayList<Assertion>();
        SAMLArtifactMapEntry artifactEntry;
        for (AssertionArtifact assertionArtifact : assertionArtifacts) {
            artifactEntry = artifactMap.get(assertionArtifact.getAssertionArtifact());
            if (artifactEntry == null || artifactEntry.isExpired()) {
                log.warn("Unknown AssertionArtifact '{}' from relying party '{}'", assertionArtifact
                        .getAssertionArtifact(), requestContext.getInboundMessageIssuer());
                continue;
            }

            if (!artifactEntry.getIssuerId().equals(requestContext.getLocalEntityId())) {
                log.warn("Artifact issuer mismatch.  Artifact issued by '{}' but IdP has entity ID of '{}'",
                        artifactEntry.getIssuerId(), requestContext.getLocalEntityId());
                continue;
            }

            artifactMap.remove(assertionArtifact.getAssertionArtifact());
            assertions.add((Assertion) artifactEntry.getSamlMessage());
        }

        requestContext.setDereferencedAssertions(assertions);
    }

    /**
     * Builds the response to the artifact request.
     *
     * @param requestContext current request context
     *
     * @return response to the artifact request
     */
    protected Response buildArtifactResponse(ArtifactResolutionRequestContext requestContext) {
        DateTime issueInstant = new DateTime();

        // create the SAML response and add the assertion
        Response samlResponse = responseBuilder.buildObject();
        samlResponse.setIssueInstant(issueInstant);
        populateStatusResponse(requestContext, samlResponse);

        if (requestContext.getDereferencedAssertions() != null) {
            samlResponse.getAssertions().addAll(requestContext.getDereferencedAssertions());
        }

        Status status = buildStatus(StatusCode.SUCCESS, null, null);
        samlResponse.setStatus(status);

        return samlResponse;
    }

    /** Represents the internal state of a SAML 1 Artifact resolver request while it's being processed by the IdP. */
    public class ArtifactResolutionRequestContext extends
            BaseSAML1ProfileRequestContext<Request, Response, ArtifactResolutionConfiguration> implements
            SAML1ArtifactMessageContext<Request, Response, NameIdentifier> {

        /** Artifact to be resolved. */
        private Collection<String> artifacts;

        /** Message referenced by the SAML artifact. */
        private Collection<Assertion> referencedAssertions;

        /** {@inheritDoc} */
        public Collection<String> getArtifacts() {
            return artifacts;
        }

        /** {@inheritDoc} */
        public void setArtifacts(Collection<String> encodedArtifacts) {
            this.artifacts = encodedArtifacts;
        }

        /**
         * Gets the SAML assertions referenced by the artifact(s).
         *
         * @return SAML assertions referenced by the artifact(s)
         */
        public Collection<Assertion> getDereferencedAssertions() {
            return referencedAssertions;
        }

        /**
         * Sets the SAML assertions referenced by the artifact(s).
         *
         * @param assertions SAML assertions referenced by the artifact(s)
         */
        public void setDereferencedAssertions(Collection<Assertion> assertions) {
            referencedAssertions = assertions;
        }
    }
}


text:
.. include:: /defs.txt
.. |grids_props| image:: GridsProps.png

.. _vi_grids:

Grid Lines
==========

Controls display of axes box grid lines.

Grid lines originate at X and Y tick locations.  New rectangular plots have
grid lines turned off by default; they are on by default for polar plots.

.. image:: Grids.png

.. include:: /stdid.txt

|bool_in| **X Grid Lines (T)**
    Display grid lines originating on X tick marks.  Default is True.

|bool_in| **Y Grid Lines (T)**
    Display grid lines originating on Y tick marks.  Default is True.

|grids_props| **Properties**
    Property cluster, available under the "Properties" subpalette.

    |cluster_in| **Line**
        Controls appearance of the grid lines.

        .. include:: /stdline.txt

.. include:: /stderr.txt

.. include:: /stdpolar_ok.txt

Errors
------

.. include:: /common_errors_polarok.txt


text:
  @if(!empty($project))
    <title>{{ $project->name}}</title>
    <meta name="description" content="{{ $project->description}}"/>
    <meta name="keywords" content="{{ implode(',',$project->keywords)}}"/>
    <meta property="og:title" content="{{ $project->name}}" />
    <meta property="og:description" content="{{ $project->description}}" />
@else
    <title>@lang('project.title')</title>
    <meta name="description" content="@lang('project.description')"/>
    <meta name="keywords" content="@lang('project.keywords')"/>
    <meta property="og:title" content="@lang('project.title')" />
    <meta property="og:description" content="@lang('project.description')" />
@endif
<meta property="og:type" content="website" />