text:
CREATE TABLE bacCloneAlias (
    alias varchar(255) not null,	# STS aliases associated with BAC clones
    sangerName varchar(255) not null,	# Sanger STS name
              #Indices
    INDEX(alias),
    INDEX(sangerName)
);

redpajama_set_name: RedPajamaGithub


text:
require 'spec_helper'

describe Symbol do
  describe '#asc' do
    it 'creates an ascending order node' do
      order = :blah.asc
      order.should be_a Squeel::Nodes::Order
      order.expr.should eq :blah
      order.should be_ascending
    end
  end

  describe '#desc' do
    it 'creates a descending order node' do
      order = :blah.desc
      order.should be_a Squeel::Nodes::Order
      order.expr.should eq :blah
      order.should be_descending
    end
  end

  describe '#func' do
    it 'creates a function node' do
      function = :blah.func('foo')
      function.should be_a Squeel::Nodes::Function
      function.function_name.should eq :blah
      function.args.should eq ['foo']
    end
  end

  describe '#inner' do
    it 'creates an inner join' do
      join = :blah.inner
      join.should be_a Squeel::Nodes::Join
      join._name.should eq :blah
      join._type.should eq Squeel::InnerJoin
    end
  end

  describe '#outer' do
    it 'creates an outer join' do
      join = :blah.outer
      join.should be_a Squeel::Nodes::Join
      join._name.should eq :blah
      join._type.should eq Squeel::OuterJoin
    end
  end

  describe '#of_class' do
    it 'creates an inner polymorphic join with the given class' do
      join = :blah.of_class(Person)
      join.should be_a Squeel::Nodes::Join
      join._name.should eq :blah
      join._type.should eq Squeel::InnerJoin
      join._klass.should eq Person
    end
  end
end


text: built with phaser


text:
using System;
using NMoneys;
using NMoneys.Web.Content.src.CodeProject;
using NUnit.Framework;

[TestFixture]
public class Currency_Codes
{
	[Test]
	public void currency_codes_are_modeled_as_enums_named_after_its_ISO_alphabetic_code()
	{
		CurrencyIsoCode usDollars = CurrencyIsoCode.USD;
		CurrencyIsoCode euro = CurrencyIsoCode.EUR;
		CurrencyIsoCode danishKrona = CurrencyIsoCode.DKK;
		CurrencyIsoCode noCurrency = CurrencyIsoCode.XXX;
	}

	[Test]
	public void currency_codes_have_their_ISO_numeric_value()
	{
		Assert.That((short)CurrencyIsoCode.USD, Is.EqualTo(840));
		Assert.That((short)CurrencyIsoCode.EUR, Is.EqualTo(978));
		Assert.That((short)CurrencyIsoCode.DKK, Is.EqualTo(208));
		Assert.That((short)CurrencyIsoCode.XXX, Is.EqualTo(999));
	}

	[Test]
	public void less_common_currencies_are_also_modeled_as_long_as_they_are_approved_by_ISO()
	{
		CurrencyIsoCode platinum = CurrencyIsoCode.XPT;
		CurrencyIsoCode yemeniRial = CurrencyIsoCode.YER;
	}

	[Test]
	public void recently_deprecated_currencies_are_also_present()
	{
		var estonianKroon = CurrencyIsoCode.EEK;
		Assert.That(estonianKroon.AsAttributeProvider(), Has.Attribute<ObsoleteAttribute>());
	}
}


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
Fl. Georgiae 8:488. 1952

#### Original name
null

### Remarks
null


text:
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp build" xmlns:build="http://schemas.microsoft.com/developer/appx/2015/build">
  <!--
    THIS PACKAGE MANIFEST FILE IS GENERATED BY THE BUILD PROCESS.

    Changes to this file will be lost when it is regenerated. To correct errors in this file, edit the source .appxmanifest file.

    For more information on package manifest files, see http://go.microsoft.com/fwlink/?LinkID=241727
  -->
  <Identity Name="654f1b7a-814f-497f-8a8c-0f493a809609" Publisher="CN=andrew" Version="1.0.0.0" ProcessorArchitecture="arm" />
  <mp:PhoneIdentity PhoneProductId="654f1b7a-814f-497f-8a8c-0f493a809609" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>DemoApplication_VB</DisplayName>
    <PublisherDisplayName>AB Electronics UK</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10586.0" MaxVersionTested="10.0.14393.0" />
  </Dependencies>
  <Resources>
    <Resource Language="EN-US" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="DemoApplication_VB.exe" EntryPoint="DemoApplication_VB.App">
      <uap:VisualElements DisplayName="DemoApplication_VB" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="DemoApplication_VB" BackgroundColor="transparent">
        <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"></uap:DefaultTile>
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
  </Capabilities>
  <build:Metadata>
    <build:Item Name="TargetFrameworkMoniker" Value=".NETCore,Version=v5.0" />
    <build:Item Name="VisualStudio" Version="15.0" />
    <build:Item Name="VisualStudioEdition" Value="Microsoft Visual Studio Community 2017" />
    <build:Item Name="OperatingSystem" Version="10.0.16299.15 (WinBuild.160101.0800)" />
    <build:Item Name="Microsoft.Build.AppxPackage.dll" Version="15.0.26906.1" />
    <build:Item Name="ProjectGUID" Value="{4D4E5BE0-EAB3-496D-ADDE-E45082E65598}" />
    <build:Item Name="ilc.exe" Version="1.4.24211.00 built by: PROJECTNGDR2" />
    <build:Item Name="OptimizingToolset" Value="ilc.exe" />
    <build:Item Name="UseDotNetNativeSharedAssemblyFrameworkPackage" Value="True" />
    <build:Item Name="UniversalGenericsOptOut" Value="false" />
    <build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="15.0.26906.1" />
    <build:Item Name="WindowsIoT" Version="10.0.10240.0" />
    <build:Item Name="MakePri.exe" Version="10.0.14393.795 (rs1_release_sec.170105-1850)" />
  </build:Metadata>
</Package>


text:
class ZiggeoMetaProfileProcess

  def initialize(application)
    @application = application
  end

  def index(meta_token_or_key)
    return @application.connect.getJSON('/v1/metaprofiles/' + meta_token_or_key + '/process')
  end

  def get(meta_token_or_key, token_or_key)
    return @application.connect.getJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/' + token_or_key + '')
  end

  def delete(meta_token_or_key, token_or_key)
    return @application.connect.delete('/v1/metaprofiles/' + meta_token_or_key + '/process/' + token_or_key + '')
  end

  def create_video_analysis_process(meta_token_or_key)
    return @application.connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/analysis')
  end

  def create_audio_transcription_process(meta_token_or_key)
    return @application.connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/transcription')
  end

  def create_nsfw_process(meta_token_or_key, data = nil)
    return @application.connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/nsfw', data)
  end

  def create_profanity_process(meta_token_or_key, data = nil)
    return @application.connect.postJSON('/v1/metaprofiles/' + meta_token_or_key + '/process/profanity', data)
  end

end


text:
<?php

namespace Rj\FrontendBundle\Tests\Functional;

class InjectLivereloadTest extends BaseTestCase
{
    /**
     * @runInSeparateProcess
     */
    public function testDisabled()
    {
        $client = $this->createClient([
            'rj_frontend' => [
                'livereload' => false,
            ],
        ]);

        $router = $this->get('router');

        $client->request('GET', $router->generate('livereload_inject'));

        $response = $client->getResponse()->getContent();
        $this->assertEquals('foo', $response);
    }

    /**
     * @runInSeparateProcess
     */
    public function testEnabled()
    {
        $client = $this->createClient([
            'rj_frontend' => [
                'livereload' => [
                    'enabled' => true,
                    'url' => '://foo',
                ],
            ],
        ]);

        $router = $this->get('router');

        $client->request('GET', $router->generate('livereload_inject'));

        $response = $client->getResponse()->getContent();
        $this->assertEquals('foo', $response);
    }
}


text:
using GenerateRulesGeneticAlgorithm.Interfaces;
using GenerateRulesGeneticAlgorithm.Model;
using GeneticAlgorithm.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GenerateRulesGeneticAlgorithm.AlgotithmClasses
{
    public class MushroomRule : IBe
    {
        private double? solution;

        public IDataProvider DataProvider { get; set; }

        public Mushroom Rule { get; set; }

        public char ClassValue { get; set; }

        public MushroomRule(IDataProvider dataProvider, int generacion, Mushroom mushroom, char classValue)
            : this(dataProvider, generacion, classValue)
        {
            this.Rule = mushroom;
        }

        public MushroomRule(IDataProvider dataProvider, int generacion, char classValue)
        {
            DataProvider = dataProvider;
            Generation = generacion;
            ClassValue = classValue;
            solution = null;
        }

        public double Solution
        {
            get
            {
                if (!solution.HasValue)
                {
                    CalcularSolucion();
                }
                return solution.Value;
            }
        }

        public int Generation { get; set; }

        public void CalcularSolucion()
        {
            if (!solution.HasValue)
            {
                double positiveTrue = DataProvider.GetData().Count(m => m.IsEqual(Rule) && m.classValue == ClassValue);
                double down = DataProvider.GetData().Count(m => m.IsEqual(Rule));
                if (down == 0)
                {
                    solution = 0;
                }
                else
                {
                    solution = (positiveTrue) / down;
                }
            }
        }

        public override bool Equals(object obj)
        {
            var otherRule = obj as MushroomRule;

            if (otherRule == null) return false;

            if (Rule == null && otherRule.Rule == null) return true;

            return Rule.IsEqual(otherRule.Rule);
        }
    }
}


text:
using System;
using Xamarin.Forms;
using NControlDemo.Helpers;
using NControlDemo.FormsApp.Controls;
using NControlDemo.FormsApp.ViewModels;

namespace NControlDemo.FormsApp.Views
{
	/// <summary>
	/// Decorator for views of different base type
	/// </summary>
	public class ViewDecorator<TViewModel>: object
		where TViewModel : BaseViewModel
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="ViewDecorator"/> class.
		/// </summary>
		/// <param name="relativeLayout">Relative layout.</param>
		/// <param name="contents">Contents.</param>
		public ViewDecorator (RelativeLayout relativeLayout, View contents)
		{
			// Add contents
			relativeLayout.Children.Add ( contents, () => relativeLayout.Bounds);

			// Create overlay
			var activityIndicatorOverlay = new RelativeLayout {
				BackgroundColor = Color.FromRgba (0x05, 0x05, 0x05, 0.75)
			};

			activityIndicatorOverlay.SetBinding(RelativeLayout.IsVisibleProperty,
				PropertyNameHelper.GetPropertyName<TViewModel>((vm) => vm.IsBusy));

			relativeLayout.Children.Add ( activityIndicatorOverlay, () => relativeLayout.Bounds);

			// Create darker rectangle in the middle
            var activityIndicatorBackground = new RoundedBorderControl {
				BackgroundColor = Color.FromRgba(0, 0, 0, 0.78),
                CornerRadius = 8,
			};

			activityIndicatorOverlay.Children.Add (activityIndicatorBackground, () =>
				new Rectangle (activityIndicatorOverlay.Width / 2 - 81, activityIndicatorOverlay.Height / 2 - 41, 81*2, 82));

			// Create indicator
			var activityIndicator = new ActivityIndicator {Color = Color.White};
			activityIndicator.SetBinding(ActivityIndicator.IsRunningProperty,
				PropertyNameHelper.GetPropertyName<TViewModel>((vm) => vm.IsBusy));

			activityIndicatorOverlay.Children.Add (activityIndicator, () =>
				new Rectangle (activityIndicatorOverlay.Width / 2 - 16, activityIndicatorOverlay.Height / 2 - 24, 32, 32));

			// Create label with progress text
			var activityLabel = new Label {
				TextColor = Color.White,
				BackgroundColor = Color.Transparent,
				FontSize = 12,
                HorizontalTextAlignment = TextAlignment.Center
			};

			activityLabel.SetBinding(Label.TextProperty,
				PropertyNameHelper.GetPropertyName<TViewModel>((vm) => vm.IsBusyText));

			activityLabel.SetBinding(Label.IsVisibleProperty,
				PropertyNameHelper.GetPropertyName<TViewModel>((vm) => vm.IsBusyTextVisible));

			activityIndicatorOverlay.Children.Add ( activityLabel, () =>
				new Rectangle (activityIndicatorOverlay.X, activityIndicatorOverlay.Height / 2 + 14,
                    activityIndicatorOverlay.Width, 32));

		}

		/// <summary>
		/// Called when appearing
		/// </summary>
		public void OnAppearing()
		{

		}

		/// <summary>
		/// Raises the disappearing event.
		/// </summary>
		public void OnDisappearing()
		{
		}
	}
}


text:
<?php

namespace app\controllers;

use Yii;

use yii\web\Controller;

class HomeController extends Controller
{
	public $layout = false;

	public function actionCsrf()
	{
		return Yii::$app->request->csrfToken;
	}
}


text: How to draw pie chart


text:
package databaseuri_test

import (
	"code.cloudfoundry.org/buildpackapplifecycle/databaseuri"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

var _ = Describe("DatabaseURI", func() {
	var subject *databaseuri.Databaseuri
	BeforeEach(func() {
		subject = databaseuri.New()
	})

	Describe("Credentials", func() {
		It("returns credentials.uri", func() {
			services := []byte(`{"eg":[{"credentials":{"uri":"fred://jane.com/bill"}}]}`)
			Expect(subject.Credentials(services)).To(Equal([]string{"fred://jane.com/bill"}))
		})
		It("ignores services without credentials.uri", func() {
			services := []byte(`{"eg":[{}]}`)
			Expect(subject.Credentials(services)).To(BeEmpty())
		})
		It("returns multiple credentials", func() {
			services := []byte(`{
				"abc":[{"credentials":{"uri":"u1"}}],
				"def":[{"other":"data"}],
				"ghi":[{"credentials":{"other":"data"}}],
				"jkl":[{},{"credentials":{"uri":"u2"}}]
			}`)
			Expect(subject.Credentials(services)).To(ConsistOf("u1", "u2"))
		})
	})

	Describe("Uri", func() {
		Context("when there are relational database services", func() {
			It("and the uri is for mysql", func() {
				service_uris := []string{"mysql://username:password@host/db"}
				Expect(subject.Uri(service_uris)).To(Equal("mysql2://username:password@host/db"))
			})
			It("and the uri is for mysql2", func() {
				service_uris := []string{"mysql2://username:password@host/db"}
				Expect(subject.Uri(service_uris)).To(Equal("mysql2://username:password@host/db"))
			})
			It("and the uri is for postgres", func() {
				service_uris := []string{"postgres://username:password@host/db"}
				Expect(subject.Uri(service_uris)).To(Equal("postgres://username:password@host/db"))
			})
			It("and the uri is for postgresql", func() {
				service_uris := []string{"postgresql://username:password@host/db"}
				Expect(subject.Uri(service_uris)).To(Equal("postgres://username:password@host/db"))
			})
			It("and there are more than one production relational database", func() {
				service_uris := []string{"postgres://username:password@host/db1", "postgres://username:password@host/db2"}
				Expect(subject.Uri(service_uris)).To(Equal("postgres://username:password@host/db1"))
			})
			It("and the uri is invalid", func() {
				service_uris := []string{`postgresql://invalid:password@host/%a`}
				Expect(subject.Uri(service_uris)).To(Equal(""))
			})
		})
		It("when there are non relational databse services", func() {
			service_uris := []string{"sendgrid://foo:bar@host/db"}
			Expect(subject.Uri(service_uris)).To(Equal(""))
		})
		It("when there are no services", func() {
			service_uris := []string{}
			Expect(subject.Uri(service_uris)).To(Equal(""))
		})
	})
})


text:
import React, { Component, PropTypes } from 'react';
import OverlayContainer from '../app/OverlayContainer';
import KeyboardShortcut from './KeyboardShortcut';
import HoldFor from './HoldFor';
import RepeatFor from './RepeatFor';
import DeleteCtrl from './DeleteCtrl';
import './CtrlOverlay.css';

class CtrlOverlay extends Component {

  static propTypes = {
    editId: PropTypes.string,
    data: PropTypes.object.isRequired,
    dispatch: PropTypes.func.isRequired,
    pointer: PropTypes.string,
  }

  render() {
    const { pointer } = this.props;
    return (
      <OverlayContainer overlay="item-edit" pointer={pointer || 'left'}>
        <KeyboardShortcut {...this.props} />
        <HoldFor {...this.props} />
        <RepeatFor {...this.props} />
        <DeleteCtrl {...this.props} />
      </OverlayContainer>
    );
  }
}

export default CtrlOverlay;


text:
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace TwainDotNet.WinForms
{
    /// <summary>
    /// A windows message hook for WinForms applications.
    /// </summary>
    public class WinFormsWindowMessageHook : IWindowsMessageHook, IMessageFilter
    {
        IntPtr _windowHandle;
        bool _usingFilter;

        public WinFormsWindowMessageHook(Form window)
        {
            _windowHandle = window.Handle;
        }

        public bool PreFilterMessage(ref Message m)
        {
            if (FilterMessageCallback != null)
            {
                bool handled = false;
                FilterMessageCallback(m.HWnd, m.Msg, m.WParam, m.LParam, ref handled);
                return handled;
            }

            return false;
        }

        public IntPtr WindowHandle { get { return _windowHandle; } }

        public bool UseFilter
        {
            get
            {
                return _usingFilter;
            }
            set
            {
                if (!_usingFilter && value == true)
                {
                    Application.AddMessageFilter(this);
                    _usingFilter = true;
                }

                if (_usingFilter && value == false)
                {
                    Application.RemoveMessageFilter(this);
                    _usingFilter = false;
                }
            }
        }

        public FilterMessage FilterMessageCallback { get; set; }
    }
}


text:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class product extends MY_ShopController {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */

	function __construct() {
		parent::__construct ();
		$this->load->model('productModel');
		$this->load->model('categoryModel');
	}
	/*
	public function index($category_id = false)
	{
		global $LANG;
		$pageCount = 20;
		$pageIndex = $this->input->post('pageIndex')? $this->input->post('pageIndex'):1;
		$this->view_data['pageIndex'] = $pageIndex;
		$pageIndex = ($pageIndex - 1) * $pageCount;
		$catewhere = '';
		if($category_id)
		{
			$catewhere = " and category_id = $category_id";
		}
		$products = $this->productModel->query("select `product`.`id`,`name`,`product`.`model`,`image` from `product` , product_categories where language = '$LANG' and `product`.model = product_categories.model order by `name` limit $pageIndex,$pageCount;");
		$count = $this->productModel->query("select count(`product`.`id`) 'count' from `product` , product_categories  where language = '$LANG' and `product`.model = product_categories.model $catewhere;");
		$count = current($count);
		$this->view_data['pageCount'] = $pageCount;
		$this->view_data['rowCount']  = $count->count;
		$this->view_data['products'] = $products;
		var_dump($products);
		//echo  $count->count;
	}
	*/

	public function index()
	{
		global $LANG;

		$category_id = isset($_GET['cid'])?$_GET['cid']:false;
		$catewhere = '';
		if($category_id)
		{
			$catewhere = " and category_id = $category_id";
		}
		$products = $this->productModel->query("select DISTINCT(`product`.`model`),`product`.`id`,`name`,`product`.`model`,`image` from `product` , product_categories where language = '$LANG' and `product`.model = product_categories.model $catewhere order by `category_id`");

		$this->view_data['products'] = $products;

		$this->view();
		//echo  $count->count;
	}
	public function search()
	{
	}
	public function show($id)
	{
		global $LANG;
		$product = $this->productModel->get($id);
		$product or die('unauthorized access');
		$sameProducts = $this->productModel->query("select `id`,`color` from product where language = '$LANG' and model = '$product->model' and `id` <> $product->id;");
		$this->view_data['product'] = $product;
		$this->view_data['colors'] = $sameProducts;
		$this->load->model('product_imageModel');
		$product->images = $this->product_imageModel->get_list(array('product_id'=>$id));
		$this->view();
	}

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */


text:
from pprint import pprint

from django.contrib.auth.models import AnonymousUser
from django.core.cache import cache
from django.template import Context, Template, TemplateSyntaxError, VariableDoesNotExist
from django.test import RequestFactory
from template_analyzer import get_node_instances

from fluent_contents import appsettings
from fluent_contents.analyzer import get_template_placeholder_data
from fluent_contents.models import Placeholder
from fluent_contents.templatetags.fluent_contents_tags import PagePlaceholderNode
from fluent_contents.tests.testapp.models import (
    PlaceholderFieldTestPage,
    RawHtmlTestItem,
    TestPage,
)
from fluent_contents.tests.utils import AppTestCase

class TemplateTagTests(AppTestCase):
    """
    Test cases for template tags
    """

    dummy_request = RequestFactory().get("/")
    dummy_request.user = AnonymousUser()
    install_apps = ("fluent_contents.tests.testapp",)

    def test_page_placeholder_metadata(self):
        """
        The ``page_placeholder`` tag should expose metadata, which ``fluent_contents.analyzer`` can read.
        """
        template = Template(
            """{% load fluent_contents_tags %}{% page_placeholder page "slot1" title="SlotTest1" role="s" %}"""
        )

        # Test raw Placeholder extraction
        raw_placeholders = get_node_instances(template, PagePlaceholderNode)
        self.assertEqual(len(raw_placeholders), 1)
        self.assertEqual(raw_placeholders[0].get_slot(), "slot1")
        self.assertEqual(raw_placeholders[0].get_title(), "SlotTest1")
        self.assertEqual(raw_placeholders[0].get_role(), "s")

        # Now test the public API, that returns PlaceholderData objects.
        data = get_template_placeholder_data(template)
        self.assertEqual(len(data), 1)
        self.assertEqual(data[0].slot, "slot1")
        self.assertEqual(data[0].title, "SlotTest1")
        self.assertEqual(data[0].role, "s")

        # Test2: fallback code
        template = Template(
            """{% load fluent_contents_tags %}{% page_placeholder page "slot_test2" %}"""
        )

        # Test raw Placeholder extraction
        raw_placeholders = get_node_instances(template, PagePlaceholderNode)
        self.assertEqual(len(raw_placeholders), 1)
        self.assertEqual(raw_placeholders[0].get_slot(), "slot_test2")
        self.assertEqual(raw_placeholders[0].get_title(), "Slot Test2")
        self.assertEqual(raw_placeholders[0].get_role(), None)

        # Test the public API
        data = get_template_placeholder_data(template)
        self.assertEqual(len(data), 1)
        self.assertEqual(data[0].slot, "slot_test2")
        self.assertEqual(data[0].title, "Slot Test2")
        self.assertEqual(data[0].role, "m")  # Defaults to "main"

    def test_page_placeholder(self):
        """
        The ``page_placeholder`` tag should render the content associated with it.
        """
        # Attach contents to the parent object.
        page1 = TestPage.objects.create(contents="TEST!")
        placeholder1 = Placeholder.objects.create_for_object(page1, "slot1")
        item1 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item1!", sort_order=1
        )
        item2 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item2!", sort_order=2
        )

        # Test standard output
        html = self._render(
            """{% load fluent_contents_tags %}{% page_placeholder page1 "slot1" %}""",
            {"page1": page1},
        )
        self.assertEqual(html, u"Item1!Item2!")

        # Test standard output + template variable
        html = self._render(
            """{% load fluent_contents_tags %}{% page_placeholder page1 "slot1" template="testapp/placeholder_splitter.html" %}""",
            {"page1": page1},
        )
        self.assertEqual(
            html.replace("\n", ""),
            u'Item1!

Item2!',
        )

        # Test if the "page" variable is used as default argument
        html = self._render(
            """{% load fluent_contents_tags %}{% page_placeholder "slot1" %}""",
            {"page": page1},
        )
        self.assertEqual(html, u"Item1!Item2!")

        # Test of invalid slots fail silently. Give the user the chance to enter the data in the CMS.
        html = self._render(
            """{% load fluent_contents_tags %}{% page_placeholder page1 "invalid_slot1" %}""",
            {"page1": page1},
        )
        self.assertEqual(
            html, u""
        )

        # Test if a missing "page" variable fails.
        self.assertRaises(
            VariableDoesNotExist,
            lambda: self._render(
                """{% load fluent_contents_tags %}{% page_placeholder "slot1" %}""", {}
            ),
        )

        # Test if a missing arguments are reported
        self.assertRaises(
            TemplateSyntaxError,
            lambda: Template(
                """{% load fluent_contents_tags %}{% page_placeholder %}"""
            ),
        )
        self.assertRaises(
            TemplateSyntaxError,
            lambda: Template(
                """{% load fluent_contents_tags %}{% page_placeholder arg1 arg2 arg3 %}"""
            ),
        )

    def test_render_placeholder(self):
        """
        The ``render_placeholder`` tag should render objects by reference.
        """
        # Attach contents to the parent object.
        page2 = PlaceholderFieldTestPage.objects.create()
        placeholder1 = Placeholder.objects.create_for_object(page2, "field_slot1")
        item1 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item1!", sort_order=1
        )
        item2 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item2!", sort_order=2
        )

        # Make sure the unittests won't succeed because of cached output.
        appsettings.FLUENT_CONTENTS_CACHE_OUTPUT = False
        cache.clear()

        # Test standard behavior, with an object reference
        # - fetch ContentItem
        # - fetch RawHtmlTestItem
        with self.assertNumQueries(2) as ctx:
            html = self._render(
                """{% load fluent_contents_tags %}{% render_placeholder placeholder1 %}""",
                {"placeholder1": placeholder1},
            )
            self.assertEqual(html, u"Item1!Item2!")

        # Test passing Placeholder via PlaceholderField (actually tests the PlaceholderFieldDescriptor)
        # - fetch Placeholder
        # - fetch ContentItem
        # - fetch RawHtmlTestItem
        with self.assertNumQueries(3) as ctx:
            html = self._render(
                """{% load fluent_contents_tags %}{% render_placeholder page2.contents %}""",
                {"page2": page2},
            )
            self.assertEqual(html, u"Item1!Item2!")

        # Test passing a related object manager.
        # - fetch Placeholder
        # - parent is taken from RelatedManager
        # - fetch ContentItem
        # - fetch RawHtmlTestItem
        with self.assertNumQueries(3) as ctx:
            html = self._render(
                """{% load fluent_contents_tags %}{% render_placeholder page2.placeholder_set %}""",
                {"page2": page2},
            )
            self.assertEqual(html, u"Item1!Item2!")

        # Test if None values fail silently
        with self.assertNumQueries(0) as ctx:
            html = self._render(
                """{% load fluent_contents_tags %}{% render_placeholder none_object %}""",
                {"none_object": None},
            )
            self.assertEqual(html, u"")

        # Test if invalid objects are reported.
        self.assertRaises(
            ValueError,
            lambda: self._render(
                """{% load fluent_contents_tags %}{% render_placeholder 123 %}""", {}
            ),
        )
        self.assertRaises(
            ValueError,
            lambda: self._render(
                """{% load fluent_contents_tags %}{% render_placeholder int_object %}""",
                {"int_object": 456},
            ),
        )

        # Test if a missing arguments are reported
        self.assertRaises(
            TemplateSyntaxError,
            lambda: Template(
                """{% load fluent_contents_tags %}{% render_placeholder %}"""
            ),
        )
        self.assertRaises(
            TemplateSyntaxError,
            lambda: Template(
                """{% load fluent_contents_tags %}{% render_placeholder arg1 arg2 %}"""
            ),
        )

    def test_num_item_queries(self):
        page3 = PlaceholderFieldTestPage.objects.create()
        placeholder1 = Placeholder.objects.create_for_object(page3, "field_slot1")
        item1 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item1!", sort_order=1
        )
        item2 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item2!", sort_order=2
        )

        appsettings.FLUENT_CONTENTS_CACHE_OUTPUT = True
        appsettings.FLUENT_CONTENTS_CACHE_PLACEHOLDER_OUTPUT = False  # No full caching
        cache.clear()

        # First time:
        # - fetch ContentItem
        # - fetch RawHtmlTestItem
        with self.assertNumQueries(2) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% render_placeholder placeholder1 %}""",
                {"placeholder1": placeholder1},
            )
            # pprint(ctx.captured_queries)

        # Second time
        # - fetch ContentItem
        with self.assertNumQueries(1) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% render_placeholder placeholder1 %}""",
                {"placeholder1": placeholder1},
            )
            # pprint(ctx.captured_queries)

        # Using page_placeholder
        # - fetch Placeholder
        # - fetch ContentItem
        with self.assertNumQueries(2) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% page_placeholder 'field_slot1' %}""",
                {"page": page3},
            )
            # pprint(ctx.captured_queries)

        # Using page_placeholder, use fallback
        # - fetch Placeholder
        # - fetch ContentItem
        # - fetch ContentItem fallback
        with self.assertNumQueries(2) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% page_placeholder 'field_slot1' fallback=True %}""",
                {"page": page3},
            )
            # pprint(ctx.captured_queries)

    def test_num_placeholder_queries(self):
        page3 = PlaceholderFieldTestPage.objects.create()
        placeholder1 = Placeholder.objects.create_for_object(page3, "field_slot1")
        item1 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item1!", sort_order=1
        )
        item2 = RawHtmlTestItem.objects.create_for_placeholder(
            placeholder1, html="Item2!", sort_order=2
        )

        appsettings.FLUENT_CONTENTS_CACHE_OUTPUT = True
        appsettings.FLUENT_CONTENTS_CACHE_PLACEHOLDER_OUTPUT = True
        cache.clear()

        # First time:
        # - fetch ContentItem
        # - fetch RawHtmlTestItem
        with self.assertNumQueries(2) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% render_placeholder placeholder1 %}""",
                {"placeholder1": placeholder1},
            )
            # pprint(ctx.captured_queries)

        # Second time
        with self.assertNumQueries(0) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% render_placeholder placeholder1 %}""",
                {"placeholder1": placeholder1},
            )
            # pprint(ctx.captured_queries)

        # Using page_placeholder
        with self.assertNumQueries(0) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% page_placeholder 'field_slot1' %}""",
                {"page": page3},
            )
            # pprint(ctx.captured_queries)

        # Using page_placeholder, use fallback
        with self.assertNumQueries(0) as ctx:
            self._render(
                """{% load fluent_contents_tags %}{% page_placeholder 'field_slot1' fallback=True %}""",
                {"page": page3},
            )
            # pprint(ctx.captured_queries)

    def _render(self, template_code, context_data):
        """
        Render a template
        """
        template = Template(template_code)
        context = Context(context_data)
        context["request"] = self.dummy_request
        return template.render(context)


text:
Please see the main [README](https://github.com/apigee/terraform-modules#deploying-end-to-end-samples)
for detailed instructions.

## Providers

| Name | Version |
|------|---------|
|  [google](#provider\_google) | n/a |

## Modules

| Name | Source | Version |
|------|--------|---------|
|  [apigee-x-core](#module\_apigee-x-core) | ../../modules/apigee-x-core | n/a |
|  [nb-psc-l7xlb](#module\_nb-psc-l7xlb) | ../../modules/nb-psc-l7xlb | n/a |
|  [nip-development-hostname](#module\_nip-development-hostname) | ../../modules/nip-development-hostname | n/a |
|  [project](#module\_project) | github.com/terraform-google-modules/cloud-foundation-fabric//modules/project | v16.0.0 |
|  [psc-ingress-vpc](#module\_psc-ingress-vpc) | github.com/terraform-google-modules/cloud-foundation-fabric//modules/net-vpc | v16.0.0 |
|  [vpc](#module\_vpc) | github.com/terraform-google-modules/cloud-foundation-fabric//modules/net-vpc | v16.0.0 |

## Resources

| Name | Type |
|------|------|
| [google_compute_region_network_endpoint_group.psc_neg](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_region_network_endpoint_group) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
|  [apigee\_envgroups](#input\_apigee\_envgroups) | Apigee Environment Groups. |
map(object({
    environments = list(string)
    hostnames    = list(string)
  }))
 | `{}` | no |
|  [apigee\_environments](#input\_apigee\_environments) | Apigee Environment Names. | `list(string)` | `[]` | no |
|  [apigee\_instances](#input\_apigee\_instances) | Apigee Instances (only one for EVAL). |
map(object({
    region       = string
    ip_range     = string
    environments = list(string)
  }))
 | `{}` | no |
|  [ax\_region](#input\_ax\_region) | GCP region for storing Apigee analytics data (see https://cloud.google.com/apigee/docs/api-platform/get-started/install-cli). | `string` | n/a | yes |
|  [billing\_account](#input\_billing\_account) | Billing account id. | `string` | `null` | no |
|  [network](#input\_network) | VPC name. | `string` | n/a | yes |
|  [peering\_range](#input\_peering\_range) | Peering CIDR range | `string` | n/a | yes |
|  [project\_create](#input\_project\_create) | Create project. When set to false, uses a data source to reference existing project. | `bool` | `false` | no |
|  [project\_id](#input\_project\_id) | Project id (also used for the Apigee Organization). | `string` | n/a | yes |
|  [project\_parent](#input\_project\_parent) | Parent folder or organization in 'folders/folder\_id' or 'organizations/org\_id' format. | `string` | `null` | no |
|  [psc\_ingress\_network](#input\_psc\_ingress\_network) | PSC ingress VPC name. | `string` | n/a | yes |
|  [psc\_ingress\_subnets](#input\_psc\_ingress\_subnets) | Subnets for exposing Apigee services via PSC |
list(object({
    name               = string
    ip_cidr_range      = string
    region             = string
    secondary_ip_range = map(string)
  }))
 | `[]` | no |
|  [support\_range](#input\_support\_range) | Support CIDR range of length /28 (required by Apigee for troubleshooting purposes). | `string` | n/a | yes |

## Outputs

No outputs.


text:
using UnityEngine;
using System.Collections;
using UnityEditor;

[CustomEditor(typeof(IA))]
public class EditorAtributos : Editor
{
	string[] aSexos = { "Aleatório", "Masculino", "Feminino"};
    string[] aPersonalidades = { "Comum", "Atarefado", "Entediado", "Impaciente", "Histérico" };
    string[] aHumores = { "Inalterado", "Feliz", "Triste", "Irritado", "Avoado" };
    string[] aVisoes = { "Quase-Cego", "Míope", "Saudável", "Excepcional", "Olho-de-águia" };
    string[] aCargos = { "Estagiário", "Empregado", "Veterano", "Gerente", "Diretor" };

    public override void OnInspectorGUI()
    {
        //Carregar variáveis do Script
        var IAScript = target as IA;

		int IDSexo = IAScript.sexo;
        int IDPersonalidade = IAScript.personalidade;
        int IDHumor = IAScript.humor;
        int IDVisao = IAScript.visao;
        int IDCargo = IAScript.cargo;

        //Desenhar no Inspector
        DrawDefaultInspector();

		IDSexo = EditorGUILayout.Popup("Sexo", IDSexo, aSexos);
        IDPersonalidade = EditorGUILayout.Popup("Personalidade", IDPersonalidade, aPersonalidades);
        IDHumor = EditorGUILayout.Popup("Humor", IDHumor, aHumores);
        IDVisao = EditorGUILayout.Popup("Visão", IDVisao, aVisoes);
		IDCargo = EditorGUILayout.Popup("Cargo", IDCargo, aCargos);

		//Atualizar no Script
		IAScript.sexo = IDSexo;
		IAScript.personalidade = IDPersonalidade;
		IAScript.humor = IDHumor;
		IAScript.visao = IDVisao;
		IAScript.cargo = IDCargo;

//		MeshRenderer face = IAScript.face;
//		Sprite[] expressions = IAScript.faceExpressions;
		//Mudar face
		//face.sharedMaterial.mainTexture = expressions[IDHumor].texture;

        //Salvar o Script
        if(GUI.changed)
        {
            EditorUtility.SetDirty(target);
        }
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Hymenomyc. eur. (Upsaliae) 686 (1874)

#### Original name
Scleroglossum acrospermum Pers.

### Remarks
null


text:
package com.github.drinkjava2.jsqlbox.function;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import javax.sql.DataSource;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import com.github.drinkjava2.common.DataSourceConfig.DataSourceBox;
import com.github.drinkjava2.common.Systemout;
import com.github.drinkjava2.jbeanbox.JBEANBOX;
import com.github.drinkjava2.jdialects.annotation.jpa.Table;
import com.github.drinkjava2.jsqlbox.ActiveRecord;
import com.github.drinkjava2.jsqlbox.DbContext;

/**
 * This is Batch operation function test<br/>
 * note: only test on MySql, not on H2
 *
 * @author Yong Zhu
 * @since 1.7.0
 */
public class BatchTest {
	int BUFFER_SIZE = 300;
	int INSERT_AMOUNT = BUFFER_SIZE * 1; // Change 1 to 1000 try

	DbContext ctx = null;

	{
		DbContext.resetGlobalVariants();

		// Change to MySqlDataSourceBox to Test!
		ctx = new DbContext((DataSource) JBEANBOX.getBean(DataSourceBox.class));// !MySQL
		DbContext.setGlobalNextBatchSize(BUFFER_SIZE);

		DbContext.setGlobalDbContext(ctx);
	}

	@Before
	public void setupDB() {
		ctx.quiteExecute("drop table batch_test_tb");
		ctx.quiteExecute("create table batch_test_tb (name varchar(40), address varchar(40))");
	}

	@After
	public void cleanUp() {
		ctx.quiteExecute("drop table batch_test_tb");
		JBEANBOX.close();
	}

	@Table(name = "batch_test_tb")
	public static class User extends ActiveRecord<User> {
		String name;
		String address;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getAddress() {
			return address;
		}

		public void setAddress(String address) {
			this.address = address;
		}
	}

	@Test
	public void testBatch() {
		int OLD_INSERT_AMOUNT = INSERT_AMOUNT;
		INSERT_AMOUNT = BUFFER_SIZE * 2;
		doTestBatch();
		Systemout.println("\r\n\r\n\r\n*********Above are warm up, below are real test********\r\n\r\n\r\n");
		INSERT_AMOUNT = OLD_INSERT_AMOUNT;
		doTestBatch();
	}

	public void doTestBatch() {
		User user = new User();
		user.setName("Sam");
		user.setAddress("Canada");
		long start, end;
		String timeused;

		Systemout.println("=======================nBatch method begin=====================");
		Assert.assertEquals(0, ctx.qryLongValue("select count(*) from batch_test_tb"));
		start = System.currentTimeMillis();
		List<Object[]> params = new ArrayList<Object[]>();
		for (long i = 0; i < INSERT_AMOUNT; i++) {
			params.add(new Object[] { "Name" + i, "Address" + i });
			if (i % BUFFER_SIZE == (BUFFER_SIZE - 1)) {
				ctx.nBatch("insert into batch_test_tb (name, address) values(?,?)", params);
				params.clear();
			}
		}
		end = System.currentTimeMillis();
		timeused = "" + (end - start) / 1000 + "." + (end - start) % 1000;
		Systemout.println(String.format(
				"nBatch(Sql, List<Object[])) method execute " + INSERT_AMOUNT + " SQLs time used: %6s s", timeused));
		Assert.assertEquals(INSERT_AMOUNT, ctx.qryLongValue("select count(*) from batch_test_tb"));
		ctx.jdbcExecute("delete from batch_test_tb");
		Systemout.println("=======================nBatch method end=====================\n\n");

		Systemout.println("=======================DbUtils batch method begin=====================");
		Assert.assertEquals(0, ctx.qryLongValue("select count(*) from batch_test_tb"));
		start = System.currentTimeMillis();
		Object[][] paramsArray = new Object[BUFFER_SIZE][2];
		int j = 0;
		for (int i = 0; i < INSERT_AMOUNT; i++) {
			paramsArray[j][0] = "Name" + i;
			paramsArray[j][1] = "Address" + i;
			j++;
			if (i % BUFFER_SIZE == (BUFFER_SIZE - 1)) {
				try {
					ctx.batch("insert into batch_test_tb (name, address) values(?,?)", paramsArray);
					j = 0;
				} catch (SQLException e) {
					Systemout.println("Exception found: " + e.getMessage());
				}
			}
		}
		end = System.currentTimeMillis();
		timeused = "" + (end - start) / 1000 + "." + (end - start) % 1000;
		Systemout.println(String
				.format("batch(Sql, Object[][]) method execute " + INSERT_AMOUNT + " SQLs time used: %6s s", timeused));
		Assert.assertEquals(INSERT_AMOUNT, ctx.qryLongValue("select count(*) from batch_test_tb"));
		ctx.jdbcExecute("delete from batch_test_tb");
		Systemout.println("=======================DbUtils batch method end=====================\n\n");

		Systemout.println("===============nBatchBegin()/nBatchEnd() switch methods ==============");
		Assert.assertEquals(0, ctx.qryLongValue("select count(*) from batch_test_tb"));
		start = System.currentTimeMillis();
		try {
			ctx.nBatchBegin();
			for (long i = 0; i < INSERT_AMOUNT; i++) {
				user.setName("Name" + i);
				user.setAddress("Address" + i);
				user.insert();
			}
		} finally {
			ctx.nBatchEnd();
		}
		end = System.currentTimeMillis();
		timeused = "" + (end - start) / 1000 + "." + (end - start) % 1000;
		Systemout.println(
				String.format("nBatchBegin/nBatchEnd execute " + INSERT_AMOUNT + " SQLs time used: %6s s", timeused));
		Assert.assertEquals(INSERT_AMOUNT, ctx.qryLongValue("select count(*) from batch_test_tb"));
		ctx.jdbcExecute("delete from batch_test_tb");
		Systemout.println("=========================================================\n\n");

		Systemout.println("=======================Normal insert begin=====================");
		ctx.jdbcExecute("delete from batch_test_tb");
		Assert.assertEquals(0, ctx.qryLongValue("select count(*) from  batch_test_tb"));
		start = System.currentTimeMillis();
		for (long i = 0; i < INSERT_AMOUNT; i++) {
			user.setName("Name" + i);
			user.setAddress("Address" + i);
			user.insert();
		}
		end = System.currentTimeMillis();
		timeused = "" + (end - start) / 1000 + "." + (end - start) % 1000;
		Systemout.println(String.format("Non-Batch execute " + INSERT_AMOUNT + " SQLs time used: %6s s", timeused));
		Assert.assertEquals(INSERT_AMOUNT, ctx.qryLongValue("select  count(*) from batch_test_tb"));
		ctx.jdbcExecute("delete from batch_test_tb");
		Systemout.println("=======================Normal insert  end=====================\n\n");
	}

}


text:
package net.openhft.chronicle.set;

import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.hash.Data;
import net.openhft.chronicle.hash.serialization.DataAccess;
import net.openhft.chronicle.hash.serialization.SizedReader;
import net.openhft.chronicle.hash.serialization.impl.EnumMarshallable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

final class DummyValueMarshaller implements DataAccess<DummyValue>, SizedReader<DummyValue>,
        EnumMarshallable<DummyValueMarshaller> {
    public static final DummyValueMarshaller INSTANCE = new DummyValueMarshaller();

    private DummyValueMarshaller() {
    }

    @Override
    public Data<DummyValue> getData(@NotNull DummyValue instance) {
        return DummyValueData.INSTANCE;
    }

    @Override
    public void uninit() {
        // no op
    }

    @Override
    public DataAccess<DummyValue> copy() {
        return this;
    }

    @NotNull
    @Override
    public DummyValue read(@NotNull Bytes in, long size, @Nullable DummyValue using) {
        return DummyValue.DUMMY_VALUE;
    }

    @NotNull
    @Override
    public DummyValueMarshaller readResolve() {
        return INSTANCE;
    }
}


text:
package org.activiti.engine.impl.delegate.invocation;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

/**
 * Class handling invocations of ExecutionListeners
 *

 */
public class ExecutionListenerInvocation extends DelegateInvocation {

  protected final ExecutionListener executionListenerInstance;
  protected final DelegateExecution execution;

  public ExecutionListenerInvocation(ExecutionListener executionListenerInstance, DelegateExecution execution) {
    this.executionListenerInstance = executionListenerInstance;
    this.execution = execution;
  }

  protected void invoke() {
    executionListenerInstance.notify(execution);
  }

  public Object getTarget() {
    return executionListenerInstance;
  }

}


text:
/*
 * $Id: X509Data.java,v 1.4 2005/05/10 16:35:35 mullan Exp $
 */
package javax.xml.crypto.dsig.keyinfo;

import javax.xml.crypto.XMLStructure;
import java.security.cert.X509CRL;
import java.util.List;

/**
 * A representation of the XML X509Data element as defined in
 * the
 * W3C Recommendation for XML-Signature Syntax and Processing. An
 * X509Data object contains one or more identifers of keys
 * or X.509 certificates (or certificates' identifiers or a revocation list).
 * The XML Schema Definition is defined as:
 *
 *

 *    <element name="X509Data" type="ds:X509DataType"/>
 *    <complexType name="X509DataType">
 *        <sequence maxOccurs="unbounded">
 *          <choice>
 *            <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
 *            <element name="X509SKI" type="base64Binary"/>
 *            <element name="X509SubjectName" type="string"/>
 *            <element name="X509Certificate" type="base64Binary"/>
 *            <element name="X509CRL" type="base64Binary"/>
 *            <any namespace="##other" processContents="lax"/>
 *          </choice>
 *        </sequence>
 *    </complexType>
 *
 *    <complexType name="X509IssuerSerialType">
 *      <sequence>
 *        <element name="X509IssuerName" type="string"/>
 *        <element name="X509SerialNumber" type="integer"/>
 *      </sequence>
 *    </complexType>
 *

 *
 * An X509Data instance may be created by invoking the
 * {@link KeyInfoFactory#newX509Data newX509Data} methods of the
 * {@link KeyInfoFactory} class and passing it a list of one or more
 * {@link XMLStructure}s representing X.509 content; for example:
 *

 *   KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
 *   X509Data x509Data = factory.newX509Data
 *       (Collections.singletonList("cn=Alice"));
 *

 *
 * @author Sean Mullan
 * @author JSR 105 Expert Group
 * @since 1.6
 * @see KeyInfoFactory#newX509Data(List)
 */
//@@@ check for illegal combinations of data violating MUSTs in W3c spec
public interface X509Data extends XMLStructure {

    /**
     * URI identifying the X509Data KeyInfo type:
     * http://www.w3.org/2000/09/xmldsig#X509Data. This can be specified as
     * the value of the type parameter of the
     * {@link RetrievalMethod} class to describe a remote
     * X509Data structure.
     */
    final static String TYPE = "http://www.w3.org/2000/09/xmldsig#X509Data";

    /**
     * URI identifying the binary (ASN.1 DER) X.509 Certificate KeyInfo type:
     * http://www.w3.org/2000/09/xmldsig#rawX509Certificate. This can be
     * specified as the value of the type parameter of the
     * {@link RetrievalMethod} class to describe a remote X509 Certificate.
     */
    final static String RAW_X509_CERTIFICATE_TYPE =
        "http://www.w3.org/2000/09/xmldsig#rawX509Certificate";

    /**
     * Returns an {@link java.util.Collections#unmodifiableList unmodifiable
     * list} of the content in this X509Data. Valid types are
     * {@link String} (subject names), byte[] (subject key ids),
     * {@link java.security.cert.X509Certificate}, {@link X509CRL},
     * or {@link XMLStructure} ({@link X509IssuerSerial}
     * objects or elements from an external namespace).
     *
     * @return an unmodifiable list of the content in this X509Data
     *    (never null or empty)
     */
    List getContent();
}


text:
<?php

namespace Drupal\Tests\views\Kernel\Handler;

use Drupal\Tests\views\Kernel\ViewsKernelTestBase;
use Drupal\views\Views;

/**
 * Tests the numeric filter handler.
 *
 * @group views
 */
class FilterNumericTest extends ViewsKernelTestBase {

  public static $modules = ['system'];

  /**
   * Views used by this test.
   *
   * @var array
   */
  public static $testViews = ['test_view'];

  /**
   * Map column names.
   *
   * @var array
   */
  protected $columnMap = [
    'views_test_data_name' => 'name',
    'views_test_data_age' => 'age',
  ];

  public function viewsData() {
    $data = parent::viewsData();
    $data['views_test_data']['age']['filter']['allow empty'] = TRUE;
    $data['views_test_data']['id']['filter']['allow empty'] = FALSE;

    return $data;
  }

  public function testFilterNumericSimple() {
    $view = Views::getView('test_view');
    $view->setDisplay();

    // Change the filtering
    $view->displayHandlers->get('default')->overrideOption('filters', [
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'operator' => '=',
        'value' => ['value' => 28],
      ],
    ]);

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericExposedGroupedSimple() {
    $filters = $this->getGroupedExposedFilters();
    $view = Views::getView('test_view');
    $view->newDisplay('page', 'Page', 'page_1');

    // Filter: Age, Operator: =, Value: 28
    $filters['age']['group_info']['default_group'] = 1;
    $view->setDisplay('page_1');
    $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
    $view->save();
    $this->container->get('router.builder')->rebuild();

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericBetween() {
    $view = Views::getView('test_view');
    $view->setDisplay();

    // Change the filtering
    $view->displayHandlers->get('default')->overrideOption('filters', [
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'operator' => 'between',
        'value' => [
          'min' => 26,
          'max' => 29,
        ],
      ],
    ]);

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'George',
        'age' => 27,
      ],
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
      [
        'name' => 'Paul',
        'age' => 26,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);

    // test not between
    $view->destroy();
    $view->setDisplay();

    // Change the filtering
    $view->displayHandlers->get('default')->overrideOption('filters', [
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'operator' => 'not between',
        'value' => [
          'min' => 26,
          'max' => 29,
        ],
      ],
    ]);

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'John',
        'age' => 25,
      ],
      [
        'name' => 'Meredith',
        'age' => 30,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericExposedGroupedBetween() {
    $filters = $this->getGroupedExposedFilters();
    $view = Views::getView('test_view');
    $view->newDisplay('page', 'Page', 'page_1');

    // Filter: Age, Operator: between, Value: 26 and 29
    $filters['age']['group_info']['default_group'] = 2;
    $view->setDisplay('page_1');
    $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
    $view->save();
    $this->container->get('router.builder')->rebuild();

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'George',
        'age' => 27,
      ],
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
      [
        'name' => 'Paul',
        'age' => 26,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericExposedGroupedNotBetween() {
    $filters = $this->getGroupedExposedFilters();
    $view = Views::getView('test_view');
    $view->newDisplay('page', 'Page', 'page_1');

    // Filter: Age, Operator: between, Value: 26 and 29
    $filters['age']['group_info']['default_group'] = 3;
    $view->setDisplay('page_1');
    $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
    $view->save();
    $this->container->get('router.builder')->rebuild();

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'John',
        'age' => 25,
      ],
      [
        'name' => 'Meredith',
        'age' => 30,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  /**
   * Tests the numeric filter handler with the 'regular_expression' operator.
   */
  public function testFilterNumericRegularExpression() {
    $view = Views::getView('test_view');
    $view->setDisplay();

    // Filtering by regular expression pattern.
    $view->displayHandlers->get('default')->overrideOption('filters', [
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'operator' => 'regular_expression',
        'value' => [
          'value' => '2[8]',
        ],
      ],
    ]);

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  /**
   * Tests the numeric filter handler with the 'regular_expression' operator
   * to grouped exposed filters.
   */
  public function testFilterNumericExposedGroupedRegularExpression() {
    $filters = $this->getGroupedExposedFilters();
    $view = Views::getView('test_view');
    $view->newDisplay('page', 'Page', 'page_1');

    // Filter: Age, Operator: regular_expression, Value: 2[7-8]
    $filters['age']['group_info']['default_group'] = 6;
    $view->setDisplay('page_1');
    $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
    $view->save();

    $this->executeView($view);
    $resultset = [
      [
        'name' => 'George',
        'age' => 27,
      ],
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericEmpty() {
    $view = Views::getView('test_view');
    $view->setDisplay();

    // Change the filtering
    $view->displayHandlers->get('default')->overrideOption('filters', [
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'operator' => 'empty',
      ],
    ]);

    $this->executeView($view);
    $resultset = [
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);

    $view->destroy();
    $view->setDisplay();

    // Change the filtering
    $view->displayHandlers->get('default')->overrideOption('filters', [
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'operator' => 'not empty',
      ],
    ]);

    $this->executeView($view);
    $resultset = [
    [
        'name' => 'John',
        'age' => 25,
      ],
      [
        'name' => 'George',
        'age' => 27,
      ],
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
      [
        'name' => 'Paul',
        'age' => 26,
      ],
      [
        'name' => 'Meredith',
        'age' => 30,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericExposedGroupedEmpty() {
    $filters = $this->getGroupedExposedFilters();
    $view = Views::getView('test_view');
    $view->newDisplay('page', 'Page', 'page_1');

    // Filter: Age, Operator: empty, Value:
    $filters['age']['group_info']['default_group'] = 4;
    $view->setDisplay('page_1');
    $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
    $view->save();
    $this->container->get('router.builder')->rebuild();

    $this->executeView($view);
    $resultset = [
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testFilterNumericExposedGroupedNotEmpty() {
    $filters = $this->getGroupedExposedFilters();
    $view = Views::getView('test_view');
    $view->newDisplay('page', 'Page', 'page_1');

    // Filter: Age, Operator: empty, Value:
    $filters['age']['group_info']['default_group'] = 5;
    $view->setDisplay('page_1');
    $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
    $view->save();
    $this->container->get('router.builder')->rebuild();

    $this->executeView($view);
    $resultset = [
    [
        'name' => 'John',
        'age' => 25,
      ],
      [
        'name' => 'George',
        'age' => 27,
      ],
      [
        'name' => 'Ringo',
        'age' => 28,
      ],
      [
        'name' => 'Paul',
        'age' => 26,
      ],
      [
        'name' => 'Meredith',
        'age' => 30,
      ],
    ];
    $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
  }

  public function testAllowEmpty() {
    $view = Views::getView('test_view');
    $view->setDisplay();

    $view->displayHandlers->get('default')->overrideOption('filters', [
      'id' => [
        'id' => 'id',
        'table' => 'views_test_data',
        'field' => 'id',
        'relationship' => 'none',
      ],
      'age' => [
        'id' => 'age',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
      ],
    ]);

    $view->initHandlers();

    $id_operators = $view->filter['id']->operators();
    $age_operators = $view->filter['age']->operators();

    $this->assertFalse(isset($id_operators['empty']));
    $this->assertFalse(isset($id_operators['not empty']));
    $this->assertTrue(isset($age_operators['empty']));
    $this->assertTrue(isset($age_operators['not empty']));
  }

  protected function getGroupedExposedFilters() {
    $filters = [
      'age' => [
        'id' => 'age',
        'plugin_id' => 'numeric',
        'table' => 'views_test_data',
        'field' => 'age',
        'relationship' => 'none',
        'exposed' => TRUE,
        'expose' => [
          'operator' => 'age_op',
          'label' => 'age',
          'identifier' => 'age',
        ],
        'is_grouped' => TRUE,
        'group_info' => [
          'label' => 'age',
          'identifier' => 'age',
          'default_group' => 'All',
          'group_items' => [
            1 => [
              'title' => 'Age is 28',
              'operator' => '=',
              'value' => ['value' => 28],
            ],
            2 => [
              'title' => 'Age is between 26 and 29',
              'operator' => 'between',
              'value' => [
                'min' => 26,
                'max' => 29,
              ],
            ],
            3 => [
              'title' => 'Age is not between 26 and 29',
              'operator' => 'not between',
              'value' => [
                'min' => 26,
                'max' => 29,
              ],
            ],
            4 => [
              'title' => 'Age is empty',
              'operator' => 'empty',
            ],
            5 => [
              'title' => 'Age is not empty',
              'operator' => 'not empty',
            ],
            6 => [
              'title' => 'Age is regexp 2[7-8]',
              'operator' => 'regular_expression',
              'value' => [
                'value' => '2[7-8]',
              ],
            ],
          ],
        ],
      ],
    ];
    return $filters;
  }

}


text:
{-# LANGUAGE RecordWildCards #-}

import System.Environment (getArgs, withArgs)
import System.Directory
import System.FilePath
import Data.Monoid
import Control.Monad
import Prelude
import Control.Concurrent.Async
import GHC.Conc (getNumProcessors, setNumCapabilities)
import Data.Text.Lazy (Text)
import qualified Data.Text.Lazy.IO as L
import Data.Aeson (encode)
import qualified Data.ByteString.Lazy as BL
import Bond.Schema.Types (Bond(..), Declaration, Import)
import Bond.Schema.JSON()
import Bond.Template.Util
import Bond.Template.Cpp.Reflection_h
import Bond.Template.Cpp.Types_h
import Bond.Template.Cpp.Apply_h
import Bond.Template.Cpp.Apply_cpp
import Bond.Template.Cpp.Enum_h
import Bond.Template.Cpp.Types_cpp
import Bond.Template.Cs.Types_cs
import Bond.Template.TypeMapping
import Bond.Template.CustomMapping
import Options
import Files

type Template = MappingContext -> String -> [Import] -> [Declaration] -> (String, Text)

main :: IO()
main = do
    args <- getArgs
    options <- (if null args then withArgs ["--help"] else id) getOptions
    setJobs $ jobs options
    case options of
        Cpp {..}    -> cppCodegen options
        Cs {..}     -> csCodegen options
        Schema {..} -> writeSchema options
        _           -> print options

setJobs :: Maybe Int -> IO ()
setJobs Nothing = return ()
setJobs (Just n)
    | n > 0     = setNumCapabilities n
    | otherwise = do
        numProc <- getNumProcessors
        -- if n is less than 0 use that many fewer jobs than processors
        setNumCapabilities $ max 1 (numProc + n)

concurrentlyFor_ :: [a] -> (a -> IO b) -> IO ()
concurrentlyFor_ = (void .) . flip mapConcurrently

writeSchema :: Options -> IO()
writeSchema Schema {..} =
    concurrentlyFor_ files $ \file -> do
        let fileName = takeBaseName file
        bond <- parseFile import_dir file
        BL.writeFile (output_dir </> fileName <.> "json") $ encode bond
writeSchema _ = error "writeSchema: impossible happened."

cppCodegen :: Options -> IO()
cppCodegen options@Cpp {..} = do
    let typeMapping = maybe cppTypeMapping cppCustomAllocTypeMapping allocator
    concurrentlyFor_ files $ codeGen options typeMapping $
        [ reflection_h
        , types_cpp
        , types_h header enum_header allocator
        , apply_h applyProto apply_attribute
        , apply_cpp applyProto
        ] <>
        [ enum_h | enum_header]
  where
    applyProto = map snd $ filter (enabled apply) protocols
    enabled a p = null a || fst p `elem` a
    protocols =
        [ (Compact, Protocol "CompactBinaryReader" "CompactBinaryWriter")
        , (Fast, Protocol "FastBinaryReader" "FastBinaryWriter")
        , (Simple, Protocol "SimpleBinaryReader" "SimpleBinaryWriter")
        ]
cppCodegen _ = error "cppCodegen: impossible happened."

csCodegen :: Options -> IO()
csCodegen options@Cs {..} = do
    let typeMapping = if collection_interfaces then csInterfaceTypeMapping else csTypeMapping
    concurrentlyFor_ files $ codeGen options typeMapping
        [ types_cs readonly_properties fields
        ]
csCodegen _ = error "csCodegen: impossible happened."

codeGen :: Options -> TypeMapping -> [Template] -> FilePath -> IO ()
codeGen options typeMapping templates file = do
    let outputDir = output_dir options
    let baseName = takeBaseName file
    aliasMapping <- parseAliasMappings $ using options
    namespaceMapping <- parseNamespaceMappings $ namespace options
    (Bond imports namespaces declarations) <- parseFile (import_dir options) file
    let mappingContext = MappingContext typeMapping aliasMapping namespaceMapping namespaces
    forM_ templates $ \template -> do
        let (suffix, code) = template mappingContext baseName imports declarations
        let fileName = baseName ++ suffix
        createDirectoryIfMissing True outputDir
        let content = if (no_banner options) then code else (commonHeader fileName <> code)
        L.writeFile (outputDir </> fileName) content


text:
package com.james.eggplantfastpass.adapter;

/**
 * Created by 1 on 2017/2/22.
 */

public class CategoryViewProvider {
}


text:
<!doctype html>
<title>WebSockets: Set-Cookie in response</title>


text:
namespace keyczar {
namespace base {

class JSONStringValueSerializer : public ValueSerializer {
 public:
  // json_string is the string that will be source of the deserialization
  // or the destination of the serialization.  The caller of the constructor
  // retains ownership of the string.
  explicit JSONStringValueSerializer(std::string* json_string)
      : json_string_(json_string),
        initialized_with_const_string_(false),
        pretty_print_(false),
        allow_trailing_comma_(false) {
  }

  // This version allows initialization with a const string reference for
  // deserialization only.
  explicit JSONStringValueSerializer(const std::string& json_string)
      : json_string_(&const_cast<std::string&>(json_string)),
        initialized_with_const_string_(true),
        allow_trailing_comma_(false) {
  }

  ~JSONStringValueSerializer();

  // Attempt to serialize the data structure represented by Value into
  // JSON.  If the return value is true, the result will have been written
  // into the string passed into the constructor.
  bool Serialize(const Value& root);

  // Attempt to deserialize the data structure encoded in the string passed
  // in to the constructor into a structure of Value objects.  If the return
  // value is NULL and |error_message| is non-null, |error_message| will contain
  // a string describing the error.
  Value* Deserialize(std::string* error_message);

  void set_pretty_print(bool new_value) { pretty_print_ = new_value; }
  bool pretty_print() { return pretty_print_; }

  void set_allow_trailing_comma(bool new_value) {
    allow_trailing_comma_ = new_value;
  }

 private:
  std::string* json_string_;
  bool initialized_with_const_string_;
  bool pretty_print_;  // If true, serialization will span multiple lines.
  // If true, deserialization will allow trailing commas.
  bool allow_trailing_comma_;

  DISALLOW_COPY_AND_ASSIGN(JSONStringValueSerializer);
};

class JSONFileValueSerializer : public ValueSerializer {
 public:
  // json_file_patch is the path of a file that will be source of the
  // deserialization or the destination of the serialization.
  // When deserializing, the file should exist, but when serializing, the
  // serializer will attempt to create the file at the specified location.
  explicit JSONFileValueSerializer(const FilePath& json_file_path)
    : json_file_path_(json_file_path) {}
  // DEPRECATED - DO NOT USE
  // TODO(port): remove references to this
  explicit JSONFileValueSerializer(const std::string& json_file_path)
    : json_file_path_(FilePath(json_file_path)) {}

  ~JSONFileValueSerializer() {}

  // DO NOT USE except in unit tests to verify the file was written properly.
  // We should never serialize directly to a file since this will block the
  // thread. Instead, serialize to a string and write to the file you want on
  // the file thread.
  //
  // Attempt to serialize the data structure represented by Value into
  // JSON.  If the return value is true, the result will have been written
  // into the file whose name was passed into the constructor.
  bool Serialize(const Value& root);

  // Attempt to deserialize the data structure encoded in the file passed
  // in to the constructor into a structure of Value objects.  If the return
  // value is NULL, and if |error_message| is non-null, |error_message| will
  // contain a string describing the error. The caller takes ownership of the
  // returned value.
  Value* Deserialize(std::string* error_message);

 private:
  FilePath json_file_path_;

  DISALLOW_COPY_AND_ASSIGN(JSONFileValueSerializer);
};

}  // namespace base
}  // namespace keyczar

#endif  // KEYCZAR_BASE_JSON_VALUE_SERIALIZER_H__


text:
'use strict';

const bookshelf = require('../../config/bookshelf').getInstance();

const Photo = bookshelf.Model.extend({
  tableName: 'photos',
  idAttribute: 'photo_id',
  hasTimestamps: ['created_at', 'updated_at'],
  imageable: function() {
    return this.morphTo('imageable', 'Profile', 'Product');
  }
});

module.exports = bookshelf.model('Photo', Photo);


text:
=======================
nuage-openstack-neutron
=======================

Openstack Neutron Plugin for Nuage Networks

* Free software: Apache license
* [Report an issue](https://github.com/nuagenetworks/nuage-openstack-neutron/issues/new)
* [This blog post](http://nuagenetworks.github.io/2016/06/16/LBaaS-with-Nuage-and-HAProxy.html)
  details a Load Balancing as a Service (LBaaS) setup on OSP 8 (Liberty) with
  the Nuage Neutron Plugin.


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

<title>BreakSnapMirrorRelationshipRequest</title>
<meta name="date" content="2021-04-16">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.solidfire.element.api

Class BreakSnapMirrorRelationshipRequest

java.lang.Object

com.solidfire.element.api.BreakSnapMirrorRelationshipRequest

All Implemented Interfaces:

java.io.Serializable

public class BreakSnapMirrorRelationshipRequest
extends java.lang.Object
implements java.io.Serializable

BreakSnapMirrorRelationshipRequest
 The SolidFire Element OS web UI uses the BreakSnapMirrorRelationship method to break a SnapMirror relationship. When a SnapMirror relationship is broken, the destination volume is made read-write and independent, and can then diverge from the source. You can reestablish the relationship with the ResyncSnapMirrorRelationship API method. This method requires the ONTAP cluster to be available.

See Also:

Serialized Form

Nested Class Summary

Nested Classes

Modifier and Type
Class and Description

static class
BreakSnapMirrorRelationshipRequest.Builder

Field Summary

Fields

Modifier and Type
Field and Description

static long
serialVersionUID

Constructor Summary

Constructors

Constructor and Description

BreakSnapMirrorRelationshipRequest()

BreakSnapMirrorRelationshipRequest(java.lang.Long snapMirrorEndpointID,
                                  SnapMirrorVolumeInfo destinationVolume)

Method Summary

All Methods Static Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

BreakSnapMirrorRelationshipRequest.Builder
asBuilder()

static BreakSnapMirrorRelationshipRequest.Builder
builder()

boolean
equals(java.lang.Object o)

SnapMirrorVolumeInfo
getDestinationVolume()

The destination volume in the SnapMirror relationship.

java.lang.Long
getSnapMirrorEndpointID()

The endpoint ID of the remote ONTAP storage system communicating with the SolidFire cluster.

int
hashCode()

void
setDestinationVolume(SnapMirrorVolumeInfo destinationVolume)

void
setSnapMirrorEndpointID(java.lang.Long snapMirrorEndpointID)

java.util.Map<java.lang.String,java.lang.Object>
toMap()

java.lang.String
toString()

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Field Detail

serialVersionUID

public static final long serialVersionUID

See Also:

Constant Field Values

Constructor Detail

BreakSnapMirrorRelationshipRequest

@Since(value="7.0")
public BreakSnapMirrorRelationshipRequest()

BreakSnapMirrorRelationshipRequest

@Since(value="10.0")
public BreakSnapMirrorRelationshipRequest(java.lang.Long snapMirrorEndpointID,
                                                               SnapMirrorVolumeInfo destinationVolume)

Method Detail

getSnapMirrorEndpointID

public java.lang.Long getSnapMirrorEndpointID()

The endpoint ID of the remote ONTAP storage system communicating with the SolidFire cluster.

setSnapMirrorEndpointID

public void setSnapMirrorEndpointID(java.lang.Long snapMirrorEndpointID)

getDestinationVolume

public SnapMirrorVolumeInfo getDestinationVolume()

The destination volume in the SnapMirror relationship.

setDestinationVolume

public void setDestinationVolume(SnapMirrorVolumeInfo destinationVolume)

equals

public boolean equals(java.lang.Object o)

Overrides:

equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:

hashCode in class java.lang.Object

toMap

public java.util.Map<java.lang.String,java.lang.Object> toMap()

toString

public java.lang.String toString()

Overrides:

toString in class java.lang.Object

builder

public static BreakSnapMirrorRelationshipRequest.Builder builder()

asBuilder

public final BreakSnapMirrorRelationshipRequest.Builder asBuilder()

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text: Queuefiles for [sbopkg](http://www.sbopkg.org/).


text:
'use strict';

var accum = require('accum');
var childProcess = require('child_process');
var PassThroughStream = require('stream').PassThrough;
var crypto = require('crypto');
var zlib = require('zlib');

var mocha = require('mocha');
var describe = mocha.describe;
var it = mocha.it;
var before = mocha.before;
var beforeEach = mocha.beforeEach;
var after = mocha.after;
var afterEach = mocha.afterEach;
var expect = require('expect');

function execGzip(args, options) {
  var fullArgs = ['./bin/cli.js'].concat(args);
  return childProcess.spawn(process.execPath, fullArgs, options);
}

function execWithInput(args, input, cb) {
    var child = execGzip(args, {});
    var output;

    child.on('close', function (code) {
      expect(code).toBe(0);
      var gunzip = zlib.createGunzip();
      var pass = new PassThroughStream();
      var gunzipPipe = pass.pipe(gunzip);
      if (typeof input === 'string') {
        gunzipPipe
          .pipe(accum.string({ encoding: 'utf8' }, function (str) {
            expect(str).toBe(input);
            cb();
          }));
      } else { // binary
        gunzipPipe
          .pipe(accum.buffer(function (buffer) {
            expect(buffer).toEqual(input);
            cb();
          }));
      }
      pass.end(output);
    });

    child.stderr.on('data', function (data) {
      console.error('stderr: ' + data);
    });

    child.stdout.pipe(accum.buffer(function (buffer) {
      output = buffer;
    }));

    child.stdin.end(input);

}

describe('ngzip compression using stdio', function () {
  it('should compress text stdin to stdout', function (done) {
    var input = "Hello my world. The quick brown fox jumped";
    execWithInput([], input, done);
  });

  it('should compress binary stdin to stdout', function (done) {
    var input  = crypto.randomBytes(2048);
    execWithInput([], input, done);
  });

  ['-1', '--fast', '-9', '--best'].map(function (x) {
    it('should compress text stdin to stdout with option: ' + x, function (done) {
      var input = "Hello my world. The quick brown fox jumped";
      execWithInput([x], input, done);
    });

    it('should compress binary stdin to stdout with option: ' + x, function (done) {
      var input  = crypto.randomBytes(2048);
      execWithInput([x], input, done);
    });
  });

});


text:
var express = require('express');

var _ = require('./util');
var app = express();

var builder = require('./server-builder');
var instances = require('./server-instances');

var db = require('./server-db');

app.configure(function(){
  app.use(express.json());
  app.use(express.urlencoded());
  app.use(express.cookieParser());
});

function errorCallback(res) {
  return function(err) {
    res.send(500, err);
  }
}

function sendResponse(res, promise) {
  promise.then(function(a) {
    res.send(a);
  }, errorCallback(res));
}

app.get('/', function(req, res) {
  res.send([ 'builds', 'instances' ]);
});

app.post('/builds', function(req, res) {
  var d = req.body;
  var hasErrorHappened = false;
  var hasPassHappened = false;
  var isNotifying = false;
  var afterNotify = false;
  var buildId;
  var lastNotification = null;
  db.builds.add('building', 'Starting Build', d.repoUrl, d.deployKey, d.refspec).then(function(build) {
    buildId = build.id;
    res.send(build);
    builder.build(build).then(function() {
      hasPassHappened = true;
      function reportPass() {
        db.builds.setStatus(buildId, 'passed', 'Build Passed').then(function() {
          console.log('Build '+build.id+' Done.');
        }, function() {
          console.log('Build '+build.id+' Done. Error saving success status');
        });
      }
      if (isNotifying) afterNotify = reportPass;
      else reportPass();
    }, function(err) {
      err = '' + err;
      if(lastNotification) err = lastNotification + ' - ' + err;
      hasErrorHappened = true;
      function reportFailure() {
        db.builds.setStatus(buildId, 'failed', err).then(function() {
          console.log('Build '+build.id+' failed with error: ', err);
        }, function() {
          console.log('Build '+build.id+' failed and could not save error status: ', err);
        });
      }
      if (isNotifying) afterNotify = reportFailure;
      else reportFailure();
    }, function(status) {
      if(status.status == 'commithash') {
        return db.builds.setCommithash(buildId, status.message).then(function() {
          console.log('commithash saved');
        }, function(err) {
          console.log('could not save commit hash ', err);
        });
      }
      if(!hasErrorHappened && !hasPassHappened) {
        isNotifying = true;
        lastNotification = status.message;
        db.builds.setStatus(buildId, status.status, status.message).then(function() {
          isNotifying = false;
          if(afterNotify) afterNotify();
          afterNotify = false;
        }, function() {
          isNotifying = false;
          if(afterNotify) afterNotify();
          afterNotify = false;
        });
      }
    });
  }, errorCallback(res));
});

app.get('/builds/:id', function(req, res) {
  sendResponse(res, db.builds.get(req.params.id));
});

app.del('/builds/:id', function(req, res) {
  db.builds.get(req.params.id).then(function(build) {
    if(build) {
      builder.remove(req.params.id).then(function() {
        db.builds.remove(req.params.id).then(function() {
          res.send(200, 'Build '+req.params.id+' removed');
        }, function(err) {
          res.send(500, 'Error removing build from db: ', err);
        });
      }, function(err) {
        res.send(500, 'Error removing build:', err);
      });
    } else return res.send(404, 'Could not find build '+req.params.id);
  }, function(err) {
    res.send(404, 'Could not find build '+req.params.id);
  });
});

app.get('/builds', function(req, res) {
  sendResponse(res, db.builds.list());
});

app.get('/instances', function(req, res) {
  db.instances.list().then(function(ins) {
    instances.getStatus().then(function(status) {
      ins = _.map(ins, function(i) {
        var s = status[i.name];
        if(s) i = _.extend(i, s);
        return i;
      });
      res.send(200, ins);
    }, function(err) {
      res.send(500, 'Error getting statuses');
    });
  }, function(err) {
    res.send(500, 'Error fetching instances');
  });
});

app.post('/instances/:name', function(req, res) {
  var i = req.body;
  var instanceName = req.params.name;
  console.log("INSTANCE SET RECIEVED ", instanceName, i)
  db.instances.get(instanceName).then(function(instance) {
    console.log('INSTANCE GET RETRIEVED ', instance)
    if (i.build) {
      db.builds.get(i.build).then(function(build) {
        console.log('BUILD RETRIEVED ', build);
        if(!build) return res.send(400, 'Build ID '+i.build+' not found');
        if (i.config) {
          console.log('SETTING INSTANCE IN DB');
          db.instances.set(instanceName, i.build).then(function(){
            console.log('SETTING INSTANCE');
            sendResponse(res, instances.set(instanceName, i.build, i.config));
          }, function(err) {
            res.send(500, 'Error setting instance in db.');
          });

        } else {
          if(!instance) return res.send(400, 'Must "set" instance '+instanceName+' before changing build');
          console.log('SETTING INSTANCE BUILD');
          instances.setBuild(instanceName, i.build).then(function() {
            console.log('SETTING INSTANCE BUILD IN DB');
            db.instances.set(instanceName, i.build).then(function(){
              res.send(200);
            }, function(err) {
              res.send(500, 'Error setting instance in db.');
            });
          });
        }
      }, function(err) {
        res.send(500, 'Error checking build '+i.build);
      });
    } else if(i.config) {
      if(!instance) return res.send(400, 'Must "set" instance '+instanceName+' before changing config');
      console.log('SETTING INSTANCE CONFIG');
      sendResponse(res, instances.setConfig(instanceName, i.config));
    } else res.send(400, 'Must send build or configuration to instance');
  }, function(err) {
    res.send(500, 'Error checking instance');
  });
});

app.get('/instances/:name', function(req, res) {
  db.instances.get(req.params.name).then(function(i) {
    if (!i) return res.send(404, 'Instance not found');
    instances.getStatus().then(function(status) {
      var s = status[i.name];
      if(s) i = _.extend(i, s);
      res.send(200, i);
    }, function(err) {
      res.send(500, 'Error getting statuses');
    });
  }, function(err) {
    res.send(500, 'Error fetching instance');
  });
});

app.get('/instances/:name/config', function(req, res) {
  sendResponse(res, instances.getConfig(req.params.name));
});

app.del('/instances/:name', function(req, res) {
  db.instances.get(req.params.name).then(function(instance) {
    if(instance) {
      instances.remove(req.params.name).then(function() {
        db.instances.remove(req.params.name).then(function() {
          res.send(200, 'Instance '+req.params.name+' removed');
        }, function(err) {
          res.send(500, 'Error removing instance from db: ', err);
        });
      }, function(err) {
        res.send(500, 'Error removing instance:', err);
      });
    } else return res.send(404, 'Could not find instance '+req.params.name);
  }, function(err) {
    res.send(404, 'Error retrieving instance '+req.params.name);
  });
});

var keyPath = '/root/server.key';
var certPath = '/root/server.crt';

var server;

function startServer() {
  var start = _.defer();
  _.fs.readFile(keyPath, function(err, httpsKey) {
    if(err) return start.reject(err);
    _.fs.readFile(certPath, function(err, httpsCert) {
      if(err) return start.reject(err);
      var httpsOpts = {
        key: httpsKey,
        cert: httpsCert,
        ca: [ httpsCert ],
        rejectUnauthorized: true
      };
      server = _.https.createServer(httpsOpts, app);
      server.listen(8888, function(err) {
        if(err) start.reject(err);
        else start.resolve();
      });
    })
  });
  return start.promise;
}

var _isRestarting = false;
function restartServer() {
  var restart = _.defer();
  if(_isRestarting) restart.reject('Already restarting the server..');
  else {
    _isRestarting = true;
    if(server) {
      console.log('Restarting server..');
      server.close(function(err) {
        if(err) {
          console.log('Could not stop old server ', err);
          _isRestarting = false;
          return restart.reject(err);
        }
        setTimeout(function() {
          startServer().then(function() {
            _isRestarting = false;
            restart.resolve();
          })
        }, 1000);
        // we want to wait because they might be changing the cert and key
        // at the same time. we want to let changes settle before starting up again
      });
    } else
      startServer().then(function() {
        _isRestarting = false;
        restart.resolve();
      });
  }
  return restart.promise;
}

db.start().then(function(){

  startServer().then(function() {
    console.log('Server Started!');
  }, function(err) {
    console.log('Error when first starting server: ', err);
  });

}, function(err){
  console.log('Error starting db:', err);
});

_.fs.watchFile(certPath, function() {
  console.log('Cert changed!');
  restartServer().then(function() {
    console.log('Server restarted!');
  }, function(err) {
    console.log('Couldnt restart server:', err);
  });
})


text:
#pragma once
#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/lookoutmetrics/model/AnomalyDetectorStatus.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace LookoutMetrics
{
namespace Model
{

  /**
   *
Contains information about an an anomaly detector.

See Also:

   * AWS
   * API Reference

   */
  class AWS_LOOKOUTMETRICS_API AnomalyDetectorSummary
  {
  public:
    AnomalyDetectorSummary();
    AnomalyDetectorSummary(Aws::Utils::Json::JsonView jsonValue);
    AnomalyDetectorSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    /**
     *
The ARN of the detector.

     */
    inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }

    /**
     *
The ARN of the detector.

     */
    inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }

    /**
     *
The ARN of the detector.

     */
    inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }

    /**
     *
The ARN of the detector.

     */
    inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }

    /**
     *
The ARN of the detector.

     */
    inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }

    /**
     *
The ARN of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;}

    /**
     *
The ARN of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}

    /**
     *
The ARN of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}

    /**
     *
The name of the detector.

     */
    inline const Aws::String& GetAnomalyDetectorName() const{ return m_anomalyDetectorName; }

    /**
     *
The name of the detector.

     */
    inline bool AnomalyDetectorNameHasBeenSet() const { return m_anomalyDetectorNameHasBeenSet; }

    /**
     *
The name of the detector.

     */
    inline void SetAnomalyDetectorName(const Aws::String& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = value; }

    /**
     *
The name of the detector.

     */
    inline void SetAnomalyDetectorName(Aws::String&& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = std::move(value); }

    /**
     *
The name of the detector.

     */
    inline void SetAnomalyDetectorName(const char* value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName.assign(value); }

    /**
     *
The name of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorName(const Aws::String& value) { SetAnomalyDetectorName(value); return *this;}

    /**
     *
The name of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorName(Aws::String&& value) { SetAnomalyDetectorName(std::move(value)); return *this;}

    /**
     *
The name of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorName(const char* value) { SetAnomalyDetectorName(value); return *this;}

    /**
     *
A description of the detector.

     */
    inline const Aws::String& GetAnomalyDetectorDescription() const{ return m_anomalyDetectorDescription; }

    /**
     *
A description of the detector.

     */
    inline bool AnomalyDetectorDescriptionHasBeenSet() const { return m_anomalyDetectorDescriptionHasBeenSet; }

    /**
     *
A description of the detector.

     */
    inline void SetAnomalyDetectorDescription(const Aws::String& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = value; }

    /**
     *
A description of the detector.

     */
    inline void SetAnomalyDetectorDescription(Aws::String&& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = std::move(value); }

    /**
     *
A description of the detector.

     */
    inline void SetAnomalyDetectorDescription(const char* value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription.assign(value); }

    /**
     *
A description of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorDescription(const Aws::String& value) { SetAnomalyDetectorDescription(value); return *this;}

    /**
     *
A description of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorDescription(Aws::String&& value) { SetAnomalyDetectorDescription(std::move(value)); return *this;}

    /**
     *
A description of the detector.

     */
    inline AnomalyDetectorSummary& WithAnomalyDetectorDescription(const char* value) { SetAnomalyDetectorDescription(value); return *this;}

    /**
     *
The time at which the detector was created.

     */
    inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }

    /**
     *
The time at which the detector was created.

     */
    inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }

    /**
     *
The time at which the detector was created.

     */
    inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }

    /**
     *
The time at which the detector was created.

     */
    inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }

    /**
     *
The time at which the detector was created.

     */
    inline AnomalyDetectorSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}

    /**
     *
The time at which the detector was created.

     */
    inline AnomalyDetectorSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}

    /**
     *
The time at which the detector was last modified.

     */
    inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; }

    /**
     *
The time at which the detector was last modified.

     */
    inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }

    /**
     *
The time at which the detector was last modified.

     */
    inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; }

    /**
     *
The time at which the detector was last modified.

     */
    inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); }

    /**
     *
The time at which the detector was last modified.

     */
    inline AnomalyDetectorSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;}

    /**
     *
The time at which the detector was last modified.

     */
    inline AnomalyDetectorSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;}

    /**
     *
The status of detector.

     */
    inline const AnomalyDetectorStatus& GetStatus() const{ return m_status; }

    /**
     *
The status of detector.

     */
    inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }

    /**
     *
The status of detector.

     */
    inline void SetStatus(const AnomalyDetectorStatus& value) { m_statusHasBeenSet = true; m_status = value; }

    /**
     *
The status of detector.

     */
    inline void SetStatus(AnomalyDetectorStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }

    /**
     *
The status of detector.

     */
    inline AnomalyDetectorSummary& WithStatus(const AnomalyDetectorStatus& value) { SetStatus(value); return *this;}

    /**
     *
The status of detector.

     */
    inline AnomalyDetectorSummary& WithStatus(AnomalyDetectorStatus&& value) { SetStatus(std::move(value)); return *this;}

    /**
     *
The detector's tags.

     */
    inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }

    /**
     *
The detector's tags.

     */
    inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }

    /**
     *
The detector's tags.

     */
    inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }

    /**
     *
The detector's tags.

     */
    inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
The detector's tags.

     */
    inline AnomalyDetectorSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

  private:

    Aws::String m_anomalyDetectorArn;
    bool m_anomalyDetectorArnHasBeenSet;

    Aws::String m_anomalyDetectorName;
    bool m_anomalyDetectorNameHasBeenSet;

    Aws::String m_anomalyDetectorDescription;
    bool m_anomalyDetectorDescriptionHasBeenSet;

    Aws::Utils::DateTime m_creationTime;
    bool m_creationTimeHasBeenSet;

    Aws::Utils::DateTime m_lastModificationTime;
    bool m_lastModificationTimeHasBeenSet;

    AnomalyDetectorStatus m_status;
    bool m_statusHasBeenSet;

    Aws::Map<Aws::String, Aws::String> m_tags;
    bool m_tagsHasBeenSet;
  };

} // namespace Model
} // namespace LookoutMetrics
} // namespace Aws