text:
<?php

namespace Persona\Hris\Repository\ORM;

use Persona\Hris\Core\Manager\ManagerFactory;
use Persona\Hris\Employee\Model\EmployeeInterface;
use Persona\Hris\Repository\AbstractRepository;
use Persona\Hris\Salary\Model\AdditionalBenefitInterface;
use Persona\Hris\Salary\Model\AdditionalBenefitRepositoryInterface;

/**
 * @author Muhamad Surya Iksanudin <surya.iksanudin@personahris.com>
 */
final class AdditionalBenefitRepository extends AbstractRepository implements AdditionalBenefitRepositoryInterface
{
    /**
     * @param ManagerFactory $managerFactory
     * @param string         $class
     */
    public function __construct(ManagerFactory $managerFactory, string  $class)
    {
        parent::__construct($managerFactory, $class);
    }

    /**
     * @param EmployeeInterface $employee
     *
     * @return AdditionalBenefitInterface[]
     */
    public function findByEmployee(EmployeeInterface $employee): array
    {
        return $this->managerFactory->getWriteManager()->getRepository($this->class)->findBy(['employee' => $employee, 'deletedAt' => null]);
    }
}


text:
package argon2

import (
	"encoding/base32"
	"strings"

	"github.com/martinlindhe/base36"
	argon2lib "golang.org/x/crypto/argon2"
)

func HashSimple(input, salt []byte) []byte {
	return argon2lib.IDKey(input, salt, 1, 64*1024, 4, 32)
}

// HashSimple returns an argon2id hashed password encoded in Base36.
// The base36 library always returns upper case.
func HashSimpleBase36(input, salt []byte) string {
	return base36.EncodeBytes(HashSimple(input, salt))
}

// HashSimple returns an argon2id hashed password encoded in Base36.
// The base36 library always returns upper case.
func HashSimpleBase32(input, salt []byte, trim bool) string {
	if trim {
		return strings.Trim(base32.StdEncoding.EncodeToString(HashSimple(input, salt)), "=")
	}
	return base32.StdEncoding.EncodeToString(HashSimple(input, salt))
}

redpajama_set_name: RedPajamaGithub


text:
@interface XMGWordTableViewController ()

@end

@implementation XMGWordTableViewController

- (XMGTopicType)type {

    return XMGTopicTypeWord;
}

@end


text:
"""C++ library generator.

Specializations to the code Generator for C++ bindings.
"""

__author__ = 'ewiseblatt@google.com (Eric Wiseblatt)'

import re
import gflags as flags
from googleapis.codegen import api
from googleapis.codegen import api_library_generator
from googleapis.codegen import cpp_import_manager
from googleapis.codegen import data_types
from googleapis.codegen import language_model
from googleapis.codegen import utilities
from googleapis.codegen.import_definition import ImportDefinition

FLAGS = flags.FLAGS
flags.DEFINE_boolean(
    'cpp_generator_add_owner_dir',
    True,
    'Adds owner subdirectory to --output_dir path.')

# This pattern is used to extract the DT and DD text groups.
# It is meant to be applied to the split partions of the dl_pattern_re.
# It turns  'A - Description A\nB - Description B'
#     into  ['', 'A', 'Description A', '', 'B', 'Description B', '']
DT_DD_PATTERN_RE = re.compile(
    r"""\s*-?\s?   # Skip leading spaces and leading - decorator from the key.
        (\S+)      # Capture the (single-word) key.
        \s*[\-\:]   # There must be a '-' or ':' after the key, but
                   # can be surrounded by spaces, even on different line.
        \s*        # The - or : seperator can be followed by spaces (or eoln).
       ([^\n]+)    # The value is everything to eoln.
                   # We already prefiltered the length, so dont worry about it.
       """,
    re.VERBOSE)

# This threshold is somewhat arbitrary -- two 80 character lines.
# We dont want the dd elements to be bigger than this or else it probably
# wasnt a dd. If the very last line was cut off at this length then we'll
# assume that it is runoff and the list was not terminated with an EOL.
# In that case we'll back off and just keep the first sentence for the DD
# and stick the remainder after the DL closes along with the rest of the
# text.
MAX_DD_LEN = 160

# This pattern is used to extract the content for a DL.
# It will be the entire string for all the individual element definitions.
# It turns  'Plain text\nMore plain text'
#      into ['Plain text\nMore plain text']
# and turns 'Before\nA - Description A\nB - Description B\nAfter'
#      into ['Before', 'A - Description A\nB - Description B', '\nAfter']
#                      +--------  DL list contents  --------+
_DL_PATTERN = r"""\n
        (         # Capture group for the whole matched RE.
        (?:       # Non-capture group for the DT/DD name/value pair.
        \s*-?\s?  # Skip leading spaces and single dash starting the line.
        \S+       # The key must be a single word without any spaces.
        \s?[\-\:] # The key can have a space (and even eoln)
                  # But then must have a dash or colon
        \s*       # Can have spaces or eoln after the dash/colon
        [^\n]{5,%d}  # The value part needs to be 5..N chars up to EOLN
        )         # That's the end of this DT/DD pair.
        {2,}      # To have a DL, we need at least 2 DT/DD pairs.
        \n?       # strip trailing space because we'll be adding it back in
                  # when we join with the next fragment.
        )         # End the capture group for all the tuples in the list.
        """ % MAX_DD_LEN
DL_PATTERN_RE = re.compile(_DL_PATTERN, re.VERBOSE)

class CppGenerator(api_library_generator.ApiLibraryGenerator):
  """The C++ code generator."""

  # pylint: disable=redefined-outer-name
  def __init__(self, discovery, language='cpp', language_model=None,
               options=None):
    if not language_model:
      language_model = CppLanguageModel(options)
    super(CppGenerator, self).__init__(CppApi, discovery, language,
                                       language_model, options=options)

  def _InnerModelClassesSupported(self):
    """Gets whether or not inner model classes are supported."""
    return True

  def _HeaderFileName(self, path, filename):
    if not path:
      return '%s.h' % filename
    return '%s/%s.h' % (path, filename)

  def _DLifyDescription(self, text):
    """Substitutes <DL> list into text based on patterns.

    Args:
      text: (string) the text to transform is assumed to be HTML escaped.

    Returns:
      Patterns that look like DLl lists will be replaced with HTML markup.
    """

    # Mark beginning of string with \n so we can catch things at the beginning
    # since we require a \n at the start of the first key.
    sentinel = '\n'

    # Look for pattern in the form \n<term> - <description>\n and extract
    # them out into a <dl> list.
    # Note that descriptions are normally HTML safe, but that check already
    # happened so this will actually produce HTML, which we want.

    # We'll partition the text by the DL lists.
    dl_partitions = DL_PATTERN_RE.split(sentinel + text)  # , 0, re.MULTILINE)
    dl_partitions[0] = dl_partitions[0][len(sentinel):]
    if len(dl_partitions) == 1:
      return text

    # We'll iterate over the partitions and attempt to split the DT/DD pairs.
    # If we cannot then the partition was between the lists in the split.
    # If we can, then we'll use that split to form the lines in the DL.
    result = []
    for partition in dl_partitions:
      dl = DT_DD_PATTERN_RE.split(partition)
      if len(dl) == 1:
        if dl[0]:  # skip empty strings
          result.append(dl[0])
          continue
      else:
        # we have a list in the form <seperator>, <dt value>, <dd value>
        # so iterate over those 3-group pairs and extract out the dt nd dd
        # values, adding them into a dl.
        # I'm calling these triples rather than 3-tupels because they are
        # not actually grouped as tuples.
        if result:
          result.append('\n')
        num_triples = len(dl) / 3
        if num_triples == 1:
          result.append(partition)
          continue

        runoff = ''  # Extra stuff past end of dl that regex cannot detect.
        result.append('<dl>\n')
        for i in range(num_triples):
          dt_value = dl[3 * i + 1].strip()
          dd_value = dl[3 * i + 2].strip()
          result.append('<dt>%s\n' % dt_value)
          if i < (num_triples - 1) or len(dd_value) < MAX_DD_LEN:
            # Make sure that dd's end with periods
            # but dont require dt's to.
            if not dd_value.endswith('.'):
              dd_value += '.'
            result.append('<dd>%s\n' % dd_value)
          else:
            period = dd_value.find('.')
            if period < 0:
              period = len(dd_value) - 1
            result.append('<dd>%s\n' % dd_value[0:period + 1])
            runoff = dd_value[period + 1:]

        result.append('</dl>\n')
        result.append(runoff)
    return ''.join(result)

  def AnnotateDocumentation(self, code_obj):
    """Adds properties used to generate better documentation.

    Args:
      code_obj: (CodeObject) The entity to annotate
    """

    description = code_obj.values.get('description')
    if not description:
      return

    # Trailing EOLN should be stripped already.
    if description.endswith('\n'):
      description = description[0:len(description) - 1]

    # Make sure description ends with a period.
    if not description.endswith('.'):
      description += '.'

    # Check for mention about being deprecated.
    if re.match(r'(?:^|\W)deprecated(?:$|\W)', description, re.IGNORECASE):
      code_obj.SetTemplateValue('deprecated', True)

    description = self._DLifyDescription(description)
    code_obj.SetTemplateValue('description', description)

  def AnnotateApiForLanguage(self, the_api):
    super(CppGenerator, self).AnnotateApiForLanguage(the_api)
    unsorted_list = the_api.TopLevelModelClasses()
    have = set()
    sorted_list = []
    for m in unsorted_list:
      self._AddDependencies(the_api, m, have, sorted_list)
    the_api.SetTemplateValue('sortedTopLevelModels', sorted_list)

  def AnnotateApi(self, the_api):
    """Annotate a Api with C++ specific elements."""
    super(CppGenerator, self).AnnotateApi(the_api)
    for schema in the_api.TopLevelModelClasses():
      filename = utilities.UnCamelCase(schema.class_name)
      schema.SetTemplateValue('filename', filename)
      schema.SetTemplateValue(
          'include_path',
          self._HeaderFileName(schema.module.path, schema.values['filename']))
      include_guard = '%s_%s_H_' % (the_api.module.name.upper(),
                                    filename.upper())
      schema.SetTemplateValue('include_guard', include_guard)

    the_api.SetTemplateValue('filename',
                             utilities.UnCamelCase(the_api.class_name))
    the_api.SetTemplateValue(
        'include_path',
        self._HeaderFileName(the_api.module.path, the_api.values['filename']))

    monolithic_source_name = the_api.GetTemplateValue('monolithicSourceName')
    if monolithic_source_name:
      the_api.SetTemplateValue('kitchensink', monolithic_source_name)
    else:
      plain_api_filename = utilities.UnCamelCase(the_api.values['name'])
      the_api.SetTemplateValue('kitchensink', '%s_api' % plain_api_filename)

    authscopes = the_api.values.get('authscopes')
    if authscopes:
      for scope in authscopes:
        self.AnnotateDocumentation(scope)

    self.AnnotateDocumentation(the_api)

  def _AddDependencies(self, the_api, model, have, dep_list):
    if model not in have:
      have.add(model)
      import_manager = cpp_import_manager.CppImportManager.ForElement(model)
      for dependent in import_manager.type_dependencies:
        schema = the_api.SchemaByName(dependent.values['className'])
        self._AddDependencies(the_api, schema, have, dep_list)
      dep_list.append(model)

  def AnnotateMethod(self, the_api, method, unused_rsrc):
    """Override the default."""
    super(CppGenerator, self).AnnotateMethod(the_api, method, unused_rsrc)
    import_manager = cpp_import_manager.CppImportManager.ForElement(the_api)
    request_type = method.values.get('requestType')
    response_type = method.values.get('responseType')
    if request_type:
      self._HandleImports(request_type, import_manager)

    if method.values.get('mediaUpload'):
      media_upload_h = '"googleapis/client/service/media_uploader.h"'
      import_manager.AddImport(media_upload_h)

    if response_type != the_api.void_type:
      request_pager_h = '"googleapis/client/service/service_request_pager.h"'
      self._HandleImports(method.values['responseType'], import_manager)
      if method.values.get('isPageable'):
        import_manager.AddImport(request_pager_h)

    method.SetTemplateValue(
        'undecoratedClassName',
        '%sMethod' % utilities.CamelCase(method.values['wireName']))
    self.AnnotateDocumentation(method)

  def AnnotateParameter(self, unused_method, parameter):
    """Annotate a Parameter with C++ specific elements."""
    super(CppGenerator, self).AnnotateParameter(unused_method, parameter)
    parameter.SetTemplateValue('isPrimitive',
                               self._IsPrimitiveType(parameter.data_type))
    if parameter.data_type.code_type == 'string':
      parameter.SetTemplateValue('parameterCodeType', 'StringPiece')
    else:
      parameter.SetTemplateValue('parameterCodeType',
                                 parameter.data_type.code_type)
    self._HandleImports(parameter)
    self.AnnotateDocumentation(parameter)

  def AnnotateProperty(self, unused_api, prop, unused_schema):
    """Annotate a Property with C++ specific elements."""
    super(CppGenerator, self).AnnotateProperty(unused_api, prop, unused_schema)
    prop.SetTemplateValue('isPrimitive', self._IsPrimitiveType(prop.data_type))
    base_type = prop.data_type
    if base_type.GetTemplateValue('isContainer'):
      base_type = base_type.GetTemplateValue('baseType')

    try:
      has_parent = base_type.parent
    except AttributeError:
      has_parent = False

    if not base_type.GetTemplateValue('builtIn') and not has_parent:
      # Since the property's base type doesn't have a parent, the
      # base type may be safely used by a split accessor definition
      # at the top-level scope.
      #
      # Since the property's base type is not a built-in type, it
      # might be part of a set of mutually recursive types, which
      # can *only* be safely used by a split accessor definition at
      # the top-level scope, after all of the potentially recursive
      # class definitions have been emitted.
      #
      # So: we set the useSplitAccessor template value, causing C++
      # template expansion to declare the accessor methods for this
      # property as part of the object, but to define them separately
      # at the top-level scope.
      prop.SetTemplateValue('useSplitAccessor', True)

    self._HandleImports(prop)
    self.AnnotateDocumentation(prop)

  def AnnotateSchema(self, the_api, schema):
    """Annotate a Schema with C++ specific elements."""

    super(CppGenerator, self).AnnotateSchema(the_api, schema)
    # imports were already handled.

    self.AnnotateDocumentation(schema)

  def _IsPrimitiveType(self, data_type):
    """Determine if data type is representated as a C++ primitive type.

    Args:
      data_type: (DataType) The type to check.
    Returns:
      true if the data type is a primitive type (bool, float, double, int*)
      false otherwise (string, object, array, map).
    """
    return (data_type.json_type == 'integer'
            or data_type.json_type == 'number'
            or data_type.json_type == 'boolean'
            or (hasattr(data_type, 'json_format') and (
                data_type.json_format == 'int64'
                or data_type.json_format == 'uint64'
                or data_type.json_format == 'date'
                or data_type.json_format == 'date-time')))

  def _HandleImports(self, element, import_manager=None):
    """Handles imports for the specified element.

    Args:
      element: (Property|Parameter) The property we want to set the import for.
      import_manager: The import manager to import into if not the implied one.

    """
    # If this is a reference then resolve it so we can check the details.
    element = getattr(element, 'referenced_schema', element)

    # Get the parent of this Property/Parameter.
    if isinstance(element, data_types.ComplexDataType):
      parent = element
      data_type = element
    else:
      parent = element.schema
      data_type = element.data_type

    # If this is a reference then resolve it so we can check the details.
    data_type = getattr(data_type, 'referenced_schema', data_type)

    if not import_manager:
      if self._InnerModelClassesSupported():
        # If inner classes are supported find the top level parent to set
        # imports for.
        while parent.parent:
          parent = parent.parent
      import_manager = cpp_import_manager.CppImportManager.ForElement(parent)

    # For collections, we have to get the imports for the first non-collection
    # up the base_type chain.
    while isinstance(data_type, (data_types.ArrayDataType,
                                 data_types.MapDataType)):
      data_type = data_type._base_type  # pylint: disable=protected-access
      # TODO(user): This should be handled within the core.
      data_type = getattr(data_type, 'referenced_schema', data_type)

    # If we are a reference to a schema that does not resolve, do not fail.
    # Our kitchen sink test API does this. Well formed APIs should not.
    if not data_type:
      return

    json_type = data_type.json_type
    json_format = data_type.values.get('format')
    if json_type == 'object':
      if not data_type.parent:
        import_manager.AddDataType(data_type)
      return

    datatype_and_imports = (
        self.language_model.type_map.get((json_type, json_format)))
    if datatype_and_imports:
      import_definition = datatype_and_imports[1]
      # Import all required imports.
      for required_import in import_definition.imports:
        if required_import:
          import_manager.AddImport(required_import)
      # Set all template values, if specified.
      for template_value in import_definition.template_values:
        element.SetTemplateValue(template_value, True)
    elif data_type:
      if not data_type.parent:
        import_manager.AddDataType(data_type)
    return

class CppLanguageModel(language_model.LanguageModel):
  """A LanguageModel tuned for C++."""

  language = 'cpp'
  member_policy = language_model.NamingPolicy(
      language_model.LOWER_UNCAMEL_CASE, '{name}_', '_')
  getter_policy = language_model.NamingPolicy(
      language_model.LOWER_UNCAMEL_CASE, 'get_{name}', '_')
  setter_policy = language_model.NamingPolicy(
      language_model.LOWER_UNCAMEL_CASE, 'set_{name}', '_')
  has_policy = language_model.NamingPolicy(
      language_model.LOWER_UNCAMEL_CASE, 'has_{name}', '_')
  unset_policy = language_model.NamingPolicy(
      language_model.LOWER_UNCAMEL_CASE, 'clear_{name}', '_')

  parameter_name_policy = language_model.NamingPolicy(
      language_model.LOWER_UNCAMEL_CASE, '{name}', '_',
      conflict_policy=language_model.NamingPolicy(
          language_model.LOWER_UNCAMEL_CASE, '{name}__', '_'))

  # From http://en.cppreference.com/w/cpp/keyword
  _CPP_KEYWORDS = [
      'alignas', 'alignof', 'and', 'and_eq', 'asm', 'auto', 'bitand', 'bitor',
      'bool', 'break', 'case', 'catch', 'char', 'char16_t', 'char32_t',
      'class', 'compl', 'const', 'constexpr', 'const_cast', 'continue',
      'decltype', 'default', 'delete', 'do', 'double', 'dynamic_cast', 'else',
      'enum', 'explicit', 'export', 'extern', 'false', 'float', 'for',
      'friend', 'goto', 'if', 'inline', 'int', 'long', 'mutable', 'namespace',
      'new', 'noexcept', 'not', 'not_eq', 'nullptr', 'operator', 'or', 'or_eq',
      'private', 'protected', 'public', 'register', 'reinterpret_cast',
      'return', 'short', 'signed', 'sizeof', 'static', 'static_assert',
      'static_cast', 'struct', 'switch', 'template', 'this', 'thread_local',
      'throw', 'true', 'try', 'typedef', 'typeid', 'typename', 'union',
      'unsigned', 'using', 'virtual', 'void', 'volatile', 'wchar_t', 'while',
      'xor', 'xor_eq'
      ]

  _SPECIAL_CLASS_NAMES = [
      'JsonCppData', 'SerializableJson'
      ]

  # We can not create classes which match a C++ keyword or built in object
  # type or keyword. However since:
  #   * class names are case-sensitive
  #   * we'll always generate camel-case names (or least starting upper case)
  #   * no C++ keywords are uppercase
  # We only have to worry about classes built into the generator itself.
  # And really we do not need to even do that since they are in a different
  # namespace. But we will for convenience and since it's probably rare.
  RESERVED_CLASS_NAMES = _SPECIAL_CLASS_NAMES

  reserved_words = RESERVED_CLASS_NAMES + _CPP_KEYWORDS

  def __init__(self, options=None):
    super(CppLanguageModel, self).__init__(class_name_delimiter='::',
                                           module_name_delimiter='_')
    self.type_map = self._BuildTypeMap(options)

    self._SUPPORTED_TYPES['boolean'] = self._Boolean
    self._SUPPORTED_TYPES['integer'] = self._Int

  def _BuildTypeMap(self, options=None):
    """Builds the map of discovery document types to C++ types.

    Args:
      options: (dict) Code generator options.

    Returns:
      map of (discovery type, format) keys to (C++ type, import value)
      values where the import value is header file name to include.
    """
    self.global_namespace_ = ''
    self.client_namespace_ = 'client'
    builtin_type_h = None
    integral_type_h = '"googleapis/base/integral_types.h"'
    json_type_h = '"googleapis/client/data/jsoncpp_data.h"'
    # TODO(user): Implement open-source date.h
    date_time_h = '"googleapis/client/util/date_time.h"'
    date_h = date_time_h
    self.date_namespace_ = self.client_namespace_

    # Dictionary of json type and format to its corresponding data type and
    # import definition. The first import in the imports list is the primary
    # import.
    return {
        ('boolean', None): ('bool', ImportDefinition([builtin_type_h])),
        ('any', None): (self.client_namespace_ + '::JsonCppData',
                        ImportDefinition([json_type_h])),
        ('integer', None): ('int32', ImportDefinition([integral_type_h])),
        ('integer', 'int16'): ('int16', ImportDefinition([integral_type_h])),
        ('integer', 'uint16'): ('uint16', ImportDefinition([integral_type_h])),
        ('integer', 'int32'): ('int32', ImportDefinition([integral_type_h])),
        ('integer', 'uint32'): ('uint32', ImportDefinition([integral_type_h])),
        ('number', None): ('double', ImportDefinition([builtin_type_h])),
        ('number', 'double'): ('double', ImportDefinition([builtin_type_h])),
        ('number', 'float'): ('float', ImportDefinition([builtin_type_h])),
        ('object', None): (self.client_namespace_ + '::JsonCppData',
                           ImportDefinition([json_type_h])),
        ('string', None): ('string', ImportDefinition(['<string>'])),
        ('string', 'byte'): ('string', ImportDefinition(['<string>'])),
        ('string', 'date'): (self.date_namespace_ + '::Date',
                             ImportDefinition([date_h])),
        ('string', 'date-time'): (self.client_namespace_ + '::DateTime',
                                  ImportDefinition([date_time_h])),
        ('string', 'google-datetime'): ('string',
                                        ImportDefinition(['<string>'])),
        ('string', 'google-duration'): ('string',
                                        ImportDefinition(['<string>'])),
        ('string', 'int64'): ('int64', ImportDefinition([integral_type_h])),
        ('string', 'uint64'): ('uint64', ImportDefinition([integral_type_h])),
        }

  def _Boolean(self, data_value):
    """Convert provided boolean to language specific literal."""
    return unicode(bool(data_value.value)).lower()

  def _Int(self, data_value):
    """Convert provided int to language specific literal."""
    # Available types can be found in class variables
    code_types = {
        'int16': '%s',
        'uint16': '%s',
        'int32': '%s',
        'uint32': '%s',
        'int64': '%sL',
        'uint64': '%sL',
        }
    try:
      return code_types[data_value.code_type] % long(data_value.value)
    except KeyError:
      raise ValueError(
          ('Provided DataValue (%s) does not present an appropriate C++ '
           'annotated code type (%s).') %
          (data_value.value, data_value.code_type))

  def GetCodeTypeFromDictionary(self, def_dict):
    """Convert a json schema type to a suitable C++ type name.

    Overrides the default.

    Args:
      def_dict: (dict) A dictionary describing Json schema for this Property.
    Returns:
      A name suitable for use as a class in the generator's target language.
    """
    json_type = def_dict.get('type', 'string')
    json_format = def_dict.get('format')

    datatype_and_imports = self.type_map.get((json_type, json_format))
    if datatype_and_imports:
      # If there is an entry in the type format to datatype and imports
      # dictionary set it as the native format.
      native_format = datatype_and_imports[0]
    else:
      # Could not find it in the dictionary, set it to the json type.
      native_format = utilities.CamelCase(json_type)
    return native_format

  def ArrayOf(self, unused_variable, type_name):
    """Take a type name and return the syntax for an array of them.

    Overrides the default.

    Args:
      unused_variable: (DataType) the data we want an array of.
      type_name: (str) A type name.
    Returns:
      A language specific string meaning "an array of type_name".
    """
    # TODO(user): 20120817
    # Need to figure out whether the type is a primitive or not, then
    # return appropriate array type (data, string or primitive).
    return '%s::JsonCppArray<%s >' % (self.client_namespace_, type_name)

  def MapOf(self, unused_variable, type_name):
    """Take a type name and return the syntax for a map of String to them.

    Overrides the default.

    Args:
      unused_variable: (DataType) the data we want an array of.
      type_name: (str) A type name.
    Returns:
      A language specific string meaning "an array of type_name".
    """
    return '%s::JsonCppAssociativeArray<%s >' % (
        self.client_namespace_, type_name)

  def ToMemberName(self, s, the_api):
    """CamelCase a wire format name into a suitable C++ variable name."""
    camel_s = utilities.CamelCase(s)
    if s.lower() in CppLanguageModel.RESERVED_CLASS_NAMES:
      # Prepend the service name
      return '%s%s' % (the_api.values['name'], camel_s)
    return camel_s[0].lower() + camel_s[1:]

  # pylint: disable=unused-argument
  def ToSafeClassName(self, s, the_api, parent=None):
    """Convert a name to a suitable class name in C++.

    Subclasses should override as appropriate.

    Args:
      s: (str) A canonical name for data element. (Usually the API wire format)
      the_api: (Api) The API this element is part of. For use as a hint when the
        name cannot be used directly.
      parent: (schema) The parent we use to get a safe class name.
    Returns:
      A name suitable for use as an element in C++.
    """
    safe_class_name = utilities.CamelCase(s)
    if parent:
      for ancestor in parent.full_path:
        if ancestor.class_name == safe_class_name:
          safe_class_name = '%s%s' % (parent.class_name, safe_class_name)
    if safe_class_name.lower() in CppLanguageModel.RESERVED_CLASS_NAMES:
      # Prepend the service name
      safe_class_name = '%s%s' % (utilities.CamelCase(the_api.values['name']),
                                  utilities.CamelCase(s))
    return safe_class_name

  def DefaultContainerPathForOwner(self, module):
    """Overrides the default implementation."""
    result = ''
    if FLAGS.cpp_generator_add_owner_dir:
      result = module.owner_name.lower().replace(' ', '_')
    return result

class CppApi(api.Api):
  """An Api with C++ annotations."""

  def __init__(self, discovery_doc, **unused_kwargs):
    super(CppApi, self).__init__(discovery_doc)

    # Build the module name from the API name with a trailing '_api'.
    # This guards against empty package names (which would be anonymous)
    # and also avoids some name clashes with built-in names or keywords.
    # We emit only lower-case files to be more C++-like.
    base = self.values['name']
    self.module.SetPath(base.lower() + '_api')

    self.SetTemplateValue('base_include_path', 'googleapis/base')
    self.SetTemplateValue('strings_include_path', 'googleapis/strings')
    self.SetTemplateValue('client_include_path', 'googleapis/client')
    self.SetTemplateValue('global_namespace', 'googleapis')
    self.SetTemplateValue('client_namespace', 'client')
    self.SetTemplateValue('status_type', 'util::Status')

  def TopLevelModelClasses(self):
    """Return the models which are not children of another model.

    Adds an additional constraint on Api.TopLevelModelClasses to remove top
    level schemas which are arrays.

    Returns:
      list of Model.
    """
    return [m for m in self.ModelClasses()
            if not m.parent and not isinstance(m, data_types.ArrayDataType)]

  # pylint: disable=unused-argument
  def ToClassName(self, s, element, element_type=None):
    """Convert a discovery name to a suitable C++ class name.

    In C++, nested class names cannot share the same name as the outer class
    name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of object we need a class name for.
    Returns:
      A name suitable for use as a class in the generator's target language.
    """
    s = utilities.CamelCase(s)
    if s in CppLanguageModel.RESERVED_CLASS_NAMES:
      s = '%s%s' % (utilities.CamelCase(self.values['name']), s)

    decorator = ''
    if isinstance(element, api.Method):
      resource = element.parent
      while isinstance(resource, api.Resource):
        s = '%s_%s' % (resource.values['className'], s)
        resource = resource.parent
      decorator = 'Method'
    elif isinstance(element, api.Resource):
      decorator = 'Resource'
    elif isinstance(element, api.Api):
      if not s.endswith('Service'):
        decorator = 'Service'
    else:
      return s

    return '%s%s' % (s, decorator)


text:
<!doctype html>

    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Foundation for Sites</title>
    <link rel="stylesheet" href="assets/themify-icons/themify-icons.css">
    <link href='https://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="assets/css/app.css">

Style guide

Introduction

Colors

Typography

Buttons

Forms

Tables

Animations

Styleguide web "nem cha" by @gdesmond

Standards for developing flexible, durable, and sustainable HTML and CSS.

Introduction

Hello! Welcome to the Styleguide, to make creating and maintaining styleguides easy.

There styleguide base on Zurb Foundation front-end
            framework

Today, I make a website from my real projects about selling "nem chả", it's a traditional food from Viet nam, Let's discuss about it ^^.

My first think about website is we have some type of foods, less than 10 products, so the website must be simple , so I think we need only one page for website.
            And try to make users can trust about my website products, my skills don't enough to make products card, and I think we don't need it, The customer need simple, why they need to under stand products cart actions.
            Almost customer want to call our to understand more about products. I think we just input a google form, and a number. That't enough.

Colors

The look and feel of our company and product relies on using a handful of specific colors that help convey
            meaning and purpose.

Branding

.color-primary #d11f01

.color-secondary #321a0a

.color-yellow #ffcc0d

.color-yellow-light #efd9b7

.color-success #6cc644

Grayscale

.gray-dark #767676

.gray-medium #999999

.gray-light #e6e6e6

.gray-border-color #c4c4c4

.gray-placeholder #f7f7f7

Typography

Headings, paragraphs, blockquotes, lists, and more have some global resets.

Fonts

Default serif font: Times new roman (windows) -  (Android) -  (iOS)

            Aa
            Bold

            Aa
            Regular

            Themify icons

Headings

h1. Example heading

h2. Example heading

h3. Example heading

h4. Example heading

h5. Example heading

h6. Example heading

          h1 {font-size: 48px}
          h2 {font-size: 40px}
          h3 {font-size: 31px}
          h4 {font-size: 25px}
          h5 {font-size: 20px}
          h6 {font-size: 16px}

Body text

This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall
            vertical rhythm. To show what a paragraph looks like this needs a little more content—so, did you know that there
            are storms occurring on Jupiter that are larger than the Earth? Pretty cool.

Everything you need to know about using the framework.

Mặc định font size của tất cả các chữ quy định là 14px;

          * {font-size: 14px}

Lists

Icon list style

 List item with a much longer description or more content.

 List item

 List item

 List item

 List item

Ordered style

List item with a much longer description or more content.

List item

List item

Nested list item

Nested list item

Nested list item

List item

List item

List item

Unordered style

List item with a much longer description or more content.

List item

List item

Nested list item

Nested list item

Nested list item

List item

List item

List item

Buttons

Buttons are used for actions, like in forms, while textual hyperlinks are used for destinations, or moving from one page to another.

Default buttons

          Mua ngay
          Save
          Delete

Coloring

          Secondary Color
          Success Color
          Alert Color
          Warning Color
          Disabled Button

Sizes

          So Tiny
          So Small
          So Basic
          So Large

Block buttons

          Such Expand (disable)
          Wow, Small Expand

Hollow Style

          <button class="hollow button" href="#">Primary Color</button>
          <button class="secondary hollow button" href="#">Secondary Color</button>
          <button class="success hollow button" href="#">Success Color</button>
          <button class="alert hollow button" href="#">Alert Color</button>
          <button class="warning hollow button" href="#">Warning Color</button>

Forms

Style individual form controls and utilize common layouts.

Text Inputs

          <form>

                Input Label
                  <input type="text" placeholder=".medium-6.columns">

                Input Label
                  <input type="text" placeholder=".medium-6.columns">

          </form>

Text Areas

            What books did you read over summer break?
            <textarea placeholder="None"></textarea>

Select Menus

          Select Menu
            <select>
              <option value="husker">Husker</option>
              <option value="starbuck">Starbuck</option>
              <option value="hotdog">Hot Dog</option>
              <option value="apollo">Apollo</option>
            </select>

Checkboxes and Radio Buttons

            <fieldset class="large-6 columns">
              <legend>Choose Your Favorite</legend>
              <input type="radio" name="pokemon" value="Red" id="pokemonRed" required>Red
              <input type="radio" name="pokemon" value="Blue" id="pokemonBlue">Blue
              <input type="radio" name="pokemon" value="Yellow" id="pokemonYellow">Yellow
            </fieldset>
            <fieldset class="large-6 columns">
              <legend>Check these out</legend>
              <input id="checkbox1" type="checkbox">Checkbox 1
              <input id="checkbox2" type="checkbox">Checkbox 2
              <input id="checkbox3" type="checkbox">Checkbox 3
            </fieldset>

Fieldset Styles

          <fieldset class="fieldset">
            <legend>Check these out</legend>
            <input id="checkbox12" type="checkbox">Checkbox 1
            <input id="checkbox22" type="checkbox">Checkbox 2
            <input id="checkbox32" type="checkbox">Checkbox 3
          </fieldset>

Help Text

          Password
            <input type="password" aria-describedby="passwordHelpText">

Your password must have at least 10 characters, a number

Label Positioning

          <form>

                Label

                <input type="text" id="middle-label" placeholder="Right- and middle-aligned text input">

          </form>

Tables

Style individual form controls and utilize common layouts.

Basics

              Table Header
              Table Header
              Table Header
              Table Header

              Content Goes Here
              This is longer content Donec id elit non mi porta gravida at eget metus.
              Content Goes Here
              Content Goes Here

              Content Goes Here
              This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.
              Content Goes Here
              Content Goes Here

              Content Goes Here
              This is longer Content Goes Here Donec id elit non mi porta gravida at eget metus.
              Content Goes Here
              Content Goes Here

Animations

Using wow js plugins, more animaions in : https://daneden.github.io/animate.css/

Fade In

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Fade In Up

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Fade In Down

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Fade In Right

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Fade In Left

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Bounce In

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Bounce In Down

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Bounce In Up

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Bounce In Left

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Bounce In Right

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Slide In Up

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Slide In Down

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Slide In Right

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Slide In Left

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Zoom In

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Zoom In Down

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Zoom In Up

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Zoom In Right

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Zoom In Left

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Bounce

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Flash

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Tada

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.

Swing

                Nihil est enim virtute amabilius, nihil quod magis adliciat ad diligendum, quippe cum propter virtutem et probitatem etiam eos, quos numquam vidimus, quodam modo diligamus. Quis est qui C. Fabrici, M'. Curi non cum caritate aliqua benevola memoriam usurpet, quos numquam viderit? quis autem est, qui Tarquinium Superbum, qui Sp. Cassium, Sp. Maelium non oderit? Cum duobus ducibus de imperio in Italia est decertatum, Pyrrho et Hannibale; ab altero propter probitatem eius non nimis alienos animos habemus, alterum propter crudelitatem semper haec civitas oderit.

Quod cum ita sit, paucae domus studiorum seriis cultibus antea celebratae nunc ludibriis ignaviae torpentis exundant, vocali sonu, perflabili tinnitu fidium resultantes. denique pro philosopho cantor et in locum oratoris doctor artium ludicrarum accitur ets instrumenta non levia.


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>javase-study</artifactId>
        <groupId>com.edgar</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>restassured-study</artifactId>

    <dependencies>
        <dependency>
            <groupId>com.jayway.restassured</groupId>
            <artifactId>rest-assured</artifactId>
            <version>2.6.0</version>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.2</version>
        </dependency>

        <dependency>
            <groupId>com.jayway.restassured</groupId>
            <artifactId>spring-mock-mvc</artifactId>
            <version>2.6.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>


text:
Simple logic calculator

Supported operations:
- conjuction (&)
- disjunction (|)
- implication (->)
- negation (!)
- equivalence (<->)

Yo can try it [here](http://melihovv.github.io/LogicCalculator/).


text:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
<test_definition>
  <suite category="W3C/HTML5 APIs" name="webapi-hrtime-w3c-tests">
    <set name="hrtime" type="js">
      <testcase component="W3C_HTML5 APIs/Performance and Optimization/High Resolution Time" execution_type="auto" id="monotonic-clock" purpose="Test Performance monotonic clock" subcase="2">
        <description>
          <test_script_entry>/opt/webapi-hrtime-w3c-tests/hrtime/w3c/monotonic-clock.html</test_script_entry>
        </description>
      </testcase>
      <testcase component="W3C_HTML5 APIs/Performance and Optimization/High Resolution Time" execution_type="auto" id="test_cross_frame_start" onload_delay="5" purpose="Test Performance cross frame start" subcase="4">
        <description>
          <test_script_entry>/opt/webapi-hrtime-w3c-tests/hrtime/w3c/test_cross_frame_start.html</test_script_entry>
        </description>
      </testcase>
    </set>
  </suite>
</test_definition>


text:
{% extends "layout.html" %}

{% block page_title %}
  Icons | Style Guide
{% endblock %}

{% block content %}

Home

        Land Registry style guide
        Icons

          {% include "styleguide/snippets/icons/icons.html" %}

{{ include_raw('styleguide/snippets/icons/icons.html') | escape }}

{% endblock %}


text:
package cn.featherfly.conversion.core.format;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

import cn.featherfly.conversion.core.basic.LocalDateConvertor;

/**
 * <p>
 * LocalDate类转换器
 * </p>
 *
 * @author 钟冀
 */
public class LocalDateFormatConvertor extends AbstractLocalDateTimeFormatConvertor<LocalDate> {

	/**
	 */
	public LocalDateFormatConvertor() {
		super(new LocalDateConvertor());
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected LocalDate convert(String value, DateTimeFormatter formatter) {
		return LocalDate.parse(value, formatter);
	}
}


text:
CREATE TABLE commissions (
    id serial NOT NULL,
    retailernumber character varying(15) NOT NULL,
    commission_type character varying(25) NOT NULL,
    amount numeric NOT NULL,
    msisdn character varying NOT NULL,
    product_code character varying NOT NULL,
    transaction_code character varying(25),
    generated_at timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE retailers (
    id serial NOT NULL,
    retailernumber character varying(13) NOT NULL,
    retailername character varying(70),
    addedon timestamp without time zone DEFAULT now() NOT NULL,
    pos_code character varying(15),
    region character varying(20),
    area character varying(35),
    distributor_name character varying(50),
    territory character varying(50),
    se_number character varying(13),
    se_code character varying(20),
    type character varying(25) NOT NULL,
    target integer,
    ro_name character varying(50),
    business_circle character varying(50),
    tm_name character varying(50)
);
CREATE TABLE activities (
    id serial NOT NULL,
    msisdn character varying(15) NOT NULL,
    activitytime timestamp without time zone DEFAULT now() NOT NULL,
    activity character varying(100) NOT NULL,
    channel character varying(25) NOT NULL,
    activityscore integer,
    activitycode character varying(100) NOT NULL,
    activityinfo jsonb,
    service_name character varying(25)
);
CREATE TABLE age_group (
    id serial NOT NULL,
    start_age integer NOT NULL,
    end_age integer NOT NULL,
    "group" character varying(25) NOT NULL
);
CREATE TABLE api_access (
    id serial NOT NULL,
    service_name character varying(25) NOT NULL,
    key character varying(25) NOT NULL,
    access jsonb NOT NULL
);
CREATE TABLE members (
    id serial NOT NULL,
    membership_no character varying(15) NOT NULL,
    status character varying(15) NOT NULL,
    details jsonb DEFAULT '{}'::jsonb NOT NULL,
    membership_type character varying(25) DEFAULT 'TonicBasic'::character varying NOT NULL,
    campaign jsonb DEFAULT '{}'::jsonb NOT NULL,
    addons jsonb DEFAULT '{}'::jsonb NOT NULL
);
CREATE TABLE msisdns (
    id serial NOT NULL,
    membership_no character varying(15) NOT NULL,
    msisdn character varying(13) NOT NULL
);
CREATE TABLE business_subscribers (
    id serial NOT NULL,
    company_code character varying(40) NOT NULL,
    campaign_code character varying(100),
    status character varying(100),
    msisdn character varying(13),
    start_date timestamp without time zone,
    end_date timestamp without time zone,
    product_code character varying(100),
    remarks character varying(300),
    created_by character varying(25),
    created_on timestamp without time zone DEFAULT now() NOT NULL,
    updated_by character varying(25),
    updated_on timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE campaigns (
    id serial NOT NULL,
    product_code character varying(20) NOT NULL,
    campaign_code character varying(50) NOT NULL,
    campaign_type character varying(20) NOT NULL,
    campaign_title jsonb DEFAULT '{}'::jsonb NOT NULL,
    campaign_summary jsonb DEFAULT '{}'::jsonb NOT NULL,
    status character varying(15) DEFAULT 'Active'::character varying NOT NULL,
    campaign_data jsonb DEFAULT '{}'::jsonb NOT NULL,
    allowed_for jsonb DEFAULT '{}'::jsonb NOT NULL,
    charging_type character varying(15) DEFAULT 'OneTime'::character varying NOT NULL,
    charge_amount integer DEFAULT 0 NOT NULL,
    pay_string jsonb DEFAULT '{}'::jsonb NOT NULL,
    validity jsonb DEFAULT '{}'::jsonb NOT NULL,
    products jsonb DEFAULT '{}'::jsonb NOT NULL,
    freebie jsonb DEFAULT '{}'::jsonb NOT NULL,
    created_at timestamp without time zone DEFAULT now() NOT NULL,
    updated_at timestamp without time zone,
    triggers jsonb[] DEFAULT '{}'::jsonb[] NOT NULL,
    created_by character varying(25),
    updated_by character varying(25)
);
CREATE TABLE campaigns_log (
    id serial NOT NULL,
    campaign_code character varying(50) NOT NULL,
    campaign_type character varying(20) NOT NULL,
    membership_no character varying(15) NOT NULL,
    availed_at timestamp without time zone DEFAULT now() NOT NULL,
    expires_at timestamp without time zone NOT NULL,
    other_info jsonb DEFAULT '{}'::jsonb NOT NULL,
    channel character varying(35) DEFAULT 'WEB'::character varying NOT NULL
);
CREATE TABLE catalog (
    id serial NOT NULL,
    history_id integer NOT NULL
);
CREATE TABLE catalog_history (
    id serial NOT NULL,
    catalog_id integer,
    product_code character varying(20) NOT NULL,
    product_title jsonb NOT NULL,
    product_summary jsonb,
    product_details character varying(100),
    charging_type character varying(20),
    cover_count integer,
    charge_amount integer NOT NULL,
    validity jsonb NOT NULL,
    status character varying(15) NOT NULL,
    other_charges jsonb,
    vat jsonb,
    service_charge jsonb,
    unsubscription_charge integer,
    unsubscription_effective character varying(20),
    discounted_price integer,
    currency character varying(10),
    created_by character varying(25),
    created_on timestamp without time zone DEFAULT now() NOT NULL,
    updated_by character varying(25),
    updated_on timestamp without time zone DEFAULT now() NOT NULL,
    products jsonb NOT NULL,
    freebie jsonb,
    triggers jsonb[] DEFAULT '{}'::jsonb[] NOT NULL,
    sequence integer DEFAULT 5 NOT NULL
);
CREATE TABLE commission_schema (
    id serial NOT NULL,
    product_code character varying(25) NOT NULL,
    data jsonb NOT NULL
);
CREATE TABLE companies (
    id serial NOT NULL,
    company_code character varying(40) NOT NULL,
    company_name character varying(150),
    address character varying(500),
    phone character varying(20),
    email character varying(100),
    contact_person character varying(100),
    contact_details character varying(500),
    created_by character varying(25),
    created_on timestamp without time zone DEFAULT now() NOT NULL,
    updated_by character varying(25),
    updated_on timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE discount_coupons (
    id serial NOT NULL,
    coupon_code character varying(20) NOT NULL,
    partner_code character varying(20),
    created_at timestamp without time zone DEFAULT now() NOT NULL,
    used boolean DEFAULT false NOT NULL,
    used_on timestamp without time zone,
    used_msisdn character varying(15)
);
CREATE TABLE discount_summary (
    date date,
    partnercode character varying(10),
    totalrequest integer,
    totalapproved integer
);
CREATE TABLE engagement_summary (
    date date,
    type character varying(40),
    count integer,
    channel character varying(25)
);
CREATE TABLE failed_jobs (
    id serial NOT NULL,
    connection text NOT NULL,
    queue text NOT NULL,
    payload text NOT NULL,
    exception text NOT NULL,
    failed_at timestamp(0) without time zone DEFAULT ('now'::text)::timestamp(0) with time zone NOT NULL
);
CREATE TABLE feature_addons (
    id serial NOT NULL,
    membership_no character varying(15) NOT NULL,
    campaign_code character varying(50),
    products jsonb NOT NULL,
    created_at timestamp without time zone DEFAULT now() NOT NULL,
    expires_at timestamp without time zone NOT NULL,
    updated_at timestamp without time zone,
    status character varying(15) DEFAULT 'Active'::character varying NOT NULL,
    other_info jsonb DEFAULT '{}'::jsonb NOT NULL
);
CREATE TABLE feedback_call (
    id serial NOT NULL,
    msisdn character varying(15) NOT NULL,
    requestedon timestamp without time zone,
    status character varying(50),
    calledby character varying(50),
    calledon timestamp without time zone
);
CREATE TABLE invoices (
    id serial NOT NULL,
    company_code character varying(40) NOT NULL,
    invoice_number character varying(100),
    total_subscriber integer,
    total_amount integer,
    invoice_start_date timestamp without time zone,
    invoice_end_date timestamp without time zone,
    invoice_date timestamp without time zone,
    invoice_due_date timestamp without time zone,
    invoice_paid_date timestamp without time zone,
    invoice_summary character varying(400),
    remarks character varying(300),
    status character varying(50),
    created_by character varying(25),
    created_on timestamp without time zone DEFAULT now() NOT NULL,
    updated_by character varying(25),
    updated_on timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE membership_history (
    id serial NOT NULL,
    membership_no character varying(15) NOT NULL,
    product_code character varying(20) NOT NULL,
    start_date timestamp without time zone NOT NULL,
    end_date timestamp without time zone NOT NULL,
    by character varying(25) DEFAULT 'self'::character varying NOT NULL,
    insurance_start timestamp without time zone NOT NULL
);

CREATE TABLE messages (
    id serial NOT NULL,
    code character varying(50) NOT NULL,
    msg_bn character varying(1000),
    msg_en character varying(1000),
    msg_ben character varying(300)
);
CREATE TABLE monthly_rgcheck (
    id serial NOT NULL,
    msisdn character varying(15),
    status character varying(5),
    month character varying(2),
    year character varying(4),
    date timestamp without time zone
);

CREATE TABLE otp (
    id serial NOT NULL,
    msisdn character varying(13) NOT NULL,
    channel character varying(25) NOT NULL,
    code numeric NOT NULL,
    expires_on timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE partnership_sms (
    id serial NOT NULL,
    partnercode character varying(15) NOT NULL,
    msisdn character varying(13) NOT NULL,
    requestedon timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE partnerships (
    id serial NOT NULL,
    partnercode character varying(15) NOT NULL,
    smscustomershort character varying(500),
    smscustomerlong character varying(1000),
    smshospital character varying(1000),
    hospitalphone character varying(100),
    sendcoupon boolean DEFAULT false NOT NULL,
    allowed_members character varying(100)[] DEFAULT '{All}'::character varying[],
    executive_healthcheck boolean DEFAULT false
);
CREATE TABLE payment_methods (
    id serial NOT NULL,
    payment_code character varying(20) NOT NULL,
    payment_name character varying(50),
    service_charge numeric DEFAULT '0'::numeric NOT NULL,
    status character varying(15) NOT NULL,
    config jsonb
);
CREATE TABLE profiles (
    id serial NOT NULL,
    membership_no character varying(20) NOT NULL,
    profile jsonb DEFAULT '{}'::jsonb NOT NULL,
    preferences jsonb DEFAULT '{}'::jsonb NOT NULL,
    interest jsonb DEFAULT '{}'::jsonb NOT NULL,
    notifications jsonb DEFAULT '{}'::jsonb NOT NULL,
    security_questions jsonb DEFAULT '{}'::jsonb NOT NULL,
    last_updated_on timestamp without time zone DEFAULT now() NOT NULL,
    health_data jsonb DEFAULT '{}'::jsonb NOT NULL,
    subscriptions jsonb DEFAULT '[]'::jsonb NOT NULL,
    cards jsonb DEFAULT '[]'::jsonb NOT NULL
);
CREATE TABLE registration_summary (
    date date,
    channel character varying(25),
    count integer,
    unsubscribed integer
);

CREATE TABLE retailer_invites (
    id serial NOT NULL,
    retailernumber character varying(15) NOT NULL,
    retailer_type character varying(25) NOT NULL,
    invite_type character varying(25) NOT NULL,
    msisdn character varying(15) NOT NULL,
    invitedon timestamp without time zone DEFAULT now() NOT NULL,
    status character varying(10) NOT NULL,
    accepted_at timestamp without time zone,
    requested_package character varying(25) DEFAULT 'TonicBasic'::character varying NOT NULL,
    accepted_package character varying(25)
);

CREATE TABLE transactions (
    id serial NOT NULL,
    channel character varying(25),
    service_name character varying(100),
    request_time timestamp without time zone DEFAULT now() NOT NULL,
    requested_amount numeric DEFAULT 0 NOT NULL,
    requested_code character varying(100),
    status character varying(100),
    membership_no character varying(20),
    payment_type character varying(50),
    transaction_code character varying(25),
    transaction_completed_on timestamp without time zone DEFAULT now(),
    product_code character varying(100),
    other_info jsonb,
    msisdn character varying(15)
);

CREATE TABLE sms_log (
    id serial NOT NULL,
    messageid integer,
    msisdn character varying(15) NOT NULL,
    smstime timestamp without time zone DEFAULT now() NOT NULL,
    smstype character varying(3) NOT NULL,
    smscategory character varying(25) NOT NULL,
    deliverystatus boolean DEFAULT false NOT NULL,
    smstext character varying(300)
);
CREATE TABLE subscription_history (
    id serial NOT NULL,
    membership_no character varying(15) NOT NULL,
    updatedon timestamp without time zone DEFAULT now() NOT NULL,
    status character varying(25) NOT NULL,
    channel character varying(25) NOT NULL,
    prev character varying(25),
    current character varying(25),
    other_info jsonb DEFAULT '{}'::jsonb NOT NULL
);
CREATE TABLE th_internal_members (
    msisdn character varying(13),
    membership_no character varying(20),
    user_type character varying(20)
);

CREATE TABLE tonic_plus_history (
    id serial NOT NULL,
    msisdn character varying(13) NOT NULL,
    membership_no character varying(15) NOT NULL,
    product_code character varying(25) NOT NULL,
    transaction_id integer,
    type character varying(35) DEFAULT 'NEW_SUBSCRIPTION'::character varying NOT NULL,
    preference jsonb DEFAULT '{}'::jsonb,
    dates jsonb NOT NULL,
    other_info jsonb DEFAULT '{}'::jsonb NOT NULL,
    created_at timestamp without time zone DEFAULT now() NOT NULL,
    updated_at timestamp without time zone,
    updated_by character varying
);

CREATE TABLE usage_logs (
    id serial NOT NULL,
    membership_no character varying(15) NOT NULL,
    service_name character varying(25) NOT NULL,
    count integer DEFAULT 1 NOT NULL,
    start_date timestamp without time zone NOT NULL,
    end_date timestamp without time zone,
    other_info jsonb DEFAULT '{}'::jsonb NOT NULL
);

CREATE TABLE whitelist (
    id serial NOT NULL,
    msisdn character varying(13) NOT NULL
);

ALTER TABLE ONLY api_access ADD CONSTRAINT api_access_key_key UNIQUE (key);
ALTER TABLE ONLY api_access ADD CONSTRAINT api_access_service_name_key UNIQUE (service_name);
ALTER TABLE ONLY commission_schema ADD CONSTRAINT commission_schema_product_code_key UNIQUE (product_code);
ALTER TABLE ONLY failed_jobs ADD CONSTRAINT failed_jobs_pkey PRIMARY KEY (id);
ALTER TABLE ONLY feedback_call ADD CONSTRAINT feedback_call_pkey PRIMARY KEY (id);
ALTER TABLE ONLY members ADD CONSTRAINT members_membership_no_key UNIQUE (membership_no);
ALTER TABLE ONLY messages ADD CONSTRAINT messages_code_key UNIQUE (code);
ALTER TABLE ONLY msisdns ADD CONSTRAINT msisdns_membership_no_key UNIQUE (membership_no);
ALTER TABLE ONLY msisdns ADD CONSTRAINT msisdns_msisdn_key UNIQUE (msisdn);
ALTER TABLE ONLY partnerships ADD CONSTRAINT partnerships_partnercode_key UNIQUE (partnercode);
ALTER TABLE ONLY retailers ADD CONSTRAINT primarykey PRIMARY KEY (id);
ALTER TABLE ONLY discount_summary ADD CONSTRAINT unq_discount_date_code UNIQUE (date, partnercode);
ALTER TABLE ONLY engagement_summary ADD CONSTRAINT unq_engagement_data UNIQUE (date, type, channel);
ALTER TABLE ONLY retailers ADD CONSTRAINT unqretailer UNIQUE (retailernumber);
ALTER TABLE ONLY whitelist ADD CONSTRAINT whitelist_msisdn_key UNIQUE (msisdn);
/*ALTER TABLE ONLY tmp_retailer ADD CONSTRAINT tmp_retailer_retailer_key UNIQUE (retailer);
ALTER TABLE ONLY daily_member_acc1 ADD CONSTRAINT unique_col_day_date UNIQUE (day_date);*/

CREATE INDEX idx_activity_activitycode ON activities USING btree (activitycode);
CREATE INDEX idx_activity_channel ON activities USING btree (channel);
CREATE INDEX idx_activity_msisdn ON activities USING btree (msisdn);
CREATE INDEX idx_addons_id ON feature_addons USING btree (id);
CREATE INDEX idx_addons_membership_no ON feature_addons USING btree (membership_no);
CREATE INDEX idx_campaigns_log_campaign_code ON campaigns_log USING btree (campaign_code);
CREATE INDEX idx_campaigns_log_campaign_type ON campaigns_log USING btree (campaign_type);
CREATE INDEX idx_campaigns_log_membership_no ON campaigns_log USING btree (membership_no);
CREATE INDEX idx_gin_subscriptions ON profiles USING gin (subscriptions);
CREATE INDEX idx_membership_type ON members USING btree (membership_type);
CREATE INDEX members_expr_idx ON members USING btree (((campaign ->> 'campaign_type'::text)));
CREATE INDEX partnership_sms_date_idx ON partnership_sms USING btree (((requestedon)::date));
CREATE INDEX retailer_invites_msisdn_idx ON retailer_invites USING btree (msisdn);
CREATE UNIQUE INDEX unique_rg_check ON monthly_rgcheck USING btree (msisdn, month, year);
/*CREATE INDEX idx_day_date ON daily_sale_transaction_retailer_self_summary USING btree (day_date);
CREATE INDEX idx_tonic_plus_started_on ON tonic_plus_members_details_last14_days USING btree (tonic_plus_started_on);*/


text:
namespace multimaster_msgs_fkie
{

  class SyncServiceInfo : public ros::Msg
  {
    public:
      const char* service;
      const char* serviceuri;
      const char* node;
      const char* nodeuri;

    SyncServiceInfo():
      service(""),
      serviceuri(""),
      node(""),
      nodeuri("")
    {
    }

    virtual int serialize(unsigned char *outbuffer) const
    {
      int offset = 0;
      uint32_t length_service = strlen(this->service);
      memcpy(outbuffer + offset, &length_service, sizeof(uint32_t));
      offset += 4;
      memcpy(outbuffer + offset, this->service, length_service);
      offset += length_service;
      uint32_t length_serviceuri = strlen(this->serviceuri);
      memcpy(outbuffer + offset, &length_serviceuri, sizeof(uint32_t));
      offset += 4;
      memcpy(outbuffer + offset, this->serviceuri, length_serviceuri);
      offset += length_serviceuri;
      uint32_t length_node = strlen(this->node);
      memcpy(outbuffer + offset, &length_node, sizeof(uint32_t));
      offset += 4;
      memcpy(outbuffer + offset, this->node, length_node);
      offset += length_node;
      uint32_t length_nodeuri = strlen(this->nodeuri);
      memcpy(outbuffer + offset, &length_nodeuri, sizeof(uint32_t));
      offset += 4;
      memcpy(outbuffer + offset, this->nodeuri, length_nodeuri);
      offset += length_nodeuri;
      return offset;
    }

    virtual int deserialize(unsigned char *inbuffer)
    {
      int offset = 0;
      uint32_t length_service;
      memcpy(&length_service, (inbuffer + offset), sizeof(uint32_t));
      offset += 4;
      for(unsigned int k= offset; k< offset+length_service; ++k){
          inbuffer[k-1]=inbuffer[k];
      }
      inbuffer[offset+length_service-1]=0;
      this->service = (char *)(inbuffer + offset-1);
      offset += length_service;
      uint32_t length_serviceuri;
      memcpy(&length_serviceuri, (inbuffer + offset), sizeof(uint32_t));
      offset += 4;
      for(unsigned int k= offset; k< offset+length_serviceuri; ++k){
          inbuffer[k-1]=inbuffer[k];
      }
      inbuffer[offset+length_serviceuri-1]=0;
      this->serviceuri = (char *)(inbuffer + offset-1);
      offset += length_serviceuri;
      uint32_t length_node;
      memcpy(&length_node, (inbuffer + offset), sizeof(uint32_t));
      offset += 4;
      for(unsigned int k= offset; k< offset+length_node; ++k){
          inbuffer[k-1]=inbuffer[k];
      }
      inbuffer[offset+length_node-1]=0;
      this->node = (char *)(inbuffer + offset-1);
      offset += length_node;
      uint32_t length_nodeuri;
      memcpy(&length_nodeuri, (inbuffer + offset), sizeof(uint32_t));
      offset += 4;
      for(unsigned int k= offset; k< offset+length_nodeuri; ++k){
          inbuffer[k-1]=inbuffer[k];
      }
      inbuffer[offset+length_nodeuri-1]=0;
      this->nodeuri = (char *)(inbuffer + offset-1);
      offset += length_nodeuri;
     return offset;
    }

    const char * getType(){ return "multimaster_msgs_fkie/SyncServiceInfo"; };
    const char * getMD5(){ return "8c21bb9ea24403924441840b8c167c40"; };

  };

}
#endif


text:
layout: post
title: How To Buy Bitcoins With Skrill In SpectroCoin?
description: How To Buy Bitcoins With Skrill In SpectroCoin?
author: Melvin Draupnir
authorurl: /melvin-draupnir/
published: true
---

SpectroCoin now offers a new option to buy Bitcoins using Skrill by just simply clicking on "Deposit" button, then "Deposit EUR or other currency" to be able to proceed to E-money option in order to choose Skrill and deposit money through it. After a successful transfer, you can now start purchasing Bitcoins back in the SpectroCoin page. In three minutes or less, you can now buy Bitcoin using Skrill.

TRANSCRIPT


text:
package cn.finalteam.rxgalleryfinal.rxbus.event;

/**
 * Desction:
 * Author:pengjianbo
 * Date:16/8/1 下午11:51
 */
public class CloseRxMediaGridPageEvent {
}


text: if [ -e $HOME/.lightdm_cleanup.sh ]; then su -c "$HOME/.lightdm_cleanup.sh" $USER; fi


text:
const machine = {
	data: function () {
		return {
			status: [
				"Ready to load program instructions.",
				"Press [Step Forward] to continue.",
				"Machine halted abnormally.",
				"Machine halted at user request.",
				"Machine halted normally."
			]
		}
	}
}


text:
package com.pragmaticobjects.oo.atom.codegen.bytebuddy.cfls;

import com.pragmaticobjects.oo.atom.tests.TestCase;
import com.pragmaticobjects.oo.atom.tests.TestsSuite;

import java.nio.file.Paths;

/**
 * Tests suite for {@link CflsFromPath}
 *
 * @author Kapralov Sergey
 */
class CflsFromPathTest extends TestsSuite {
    private static final String TEST_CLASS_PATH = System.getProperty("user.dir") + "/target/test-classes";

    static {
        System.out.println("user.dir = " + TEST_CLASS_PATH);
    }

    /**
     * Ctor.
     */
    public CflsFromPathTest() {
        super(
            new TestCase(
                "doesn't fail if the path is absent",
                new AssertClassFileLocatorSourceDoesntResolveAClassName(
                    new CflsFromPath(
                        Paths.get("/some_unexisting_path")
                    ),
                    "SomeUnexistingClass"
                )
            ),
            new TestCase(
                "successfully resolves a class from path",
                new AssertClassFileLocatorSourceResolvesAClassName(
                    new CflsFromPath(
                        Paths.get(TEST_CLASS_PATH)
                    ),
                    Foo.class.getName()
                )
            ),
            new TestCase(
                "doesn't resolve absent class from path",
                new AssertClassFileLocatorSourceDoesntResolveAClassName(
                    new CflsFromPath(
                        Paths.get(TEST_CLASS_PATH)
                    ),
                    "SomeUnexistingClass"
                )
            )
        );
    }

    //CHECKSTYLE:OFF
    private static final class Foo {}
}


text:
namespace mscorlib
{
	namespace System
	{
		namespace Diagnostics
		{

			//Constructors Tests

			//StackTrace()
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,DefaultConstructor)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Boolean fNeedFileInfo)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_2)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Int32 skipFrames)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_3)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Int32 skipFrames, mscorlib::System::Boolean fNeedFileInfo)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_4)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Exception e)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_5)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Exception e, mscorlib::System::Boolean fNeedFileInfo)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_6)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Exception e, mscorlib::System::Int32 skipFrames)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_7)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Exception e, mscorlib::System::Int32 skipFrames, mscorlib::System::Boolean fNeedFileInfo)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_8)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Diagnostics::StackFrame frame)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_9)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//StackTrace(mscorlib::System::Threading::Thread targetThread, mscorlib::System::Boolean needFileInfo)
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,Constructor_10)
			{

				mscorlib::System::Diagnostics::StackTrace *value = new mscorlib::System::Diagnostics::StackTrace();
				EXPECT_NE(NULL, value->GetNativeObject());

			}

			//Public Methods Tests

			// Method GetFrame
			//		Signature: mscorlib::System::Int32 index
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,GetFrame_Test)
			{

			}

			// Method GetFrames
			//		Signature:
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,GetFrames_Test)
			{

			}

			// Method ToString
			//		Signature:
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,ToString_Test)
			{

			}

			//Public Properties Tests

			// Property FrameCount
			//		Return Type: mscorlib::System::Int32
			//			Property Get Method
			TEST(mscorlib_System_Diagnostics_StackTrace_Fixture,get_FrameCount_Test)
			{

			}

		}
	}
}


text:
from django.db import migrations, models

class Migration(migrations.Migration):

    dependencies = [
        ('order', '0042_auto_20180227_0436'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='order',
            options={'ordering': ('-pk',), 'permissions': (('view_order', 'Can view orders'), ('edit_order', 'Can edit orders'))},
        ),
        migrations.AlterField(
            model_name='order',
            name='language_code',
            field=models.CharField(default='en', max_length=35),
        ),
    ]


text:
import {
  FileDetail,
  KernelTypeEnum,
  KernelTypeResponse,
  NotebooksApi,
} from 'generated/fetch';

import {
  appendNotebookFileSuffix,
  dropNotebookFileSuffix,
} from 'app/pages/analysis/util';

import { stubNotImplementedError } from 'testing/stubs/stub-utils';

export class NotebooksApiStub extends NotebooksApi {
  notebookList: FileDetail[];
  public notebookKernel: KernelTypeEnum;

  constructor() {
    super(undefined, undefined, (..._: any[]) => {
      throw stubNotImplementedError;
    });
    this.notebookList = NotebooksApiStub.stubNotebookList();
  }

  static stubNotebookList(): FileDetail[] {
    return [
      {
        name: 'mockFile.ipynb',
        path: 'gs://bucket/notebooks/mockFile.ipynb',
        lastModifiedTime: 100,
      },
    ];
  }

  getNoteBookList(): Promise<Array<FileDetail>> {
    return new Promise<Array<FileDetail>>((resolve) => {
      resolve(this.notebookList);
    });
  }

  getNotebookKernel(): Promise<KernelTypeResponse> {
    return new Promise<KernelTypeResponse>((resolve) => {
      resolve({
        kernelType: this.notebookKernel,
      });
    });
  }

  cloneNotebook(
    workspaceNamespace: string,
    workspaceId: string,
    notebookName: string
  ): Promise<any> {
    return new Promise<any>((resolve) => {
      const cloneName = appendNotebookFileSuffix(
        dropNotebookFileSuffix(notebookName) + ' Clone'
      );
      this.notebookList.push({
        name: cloneName,
        path: 'gs://bucket/notebooks/' + cloneName,
        lastModifiedTime: 100,
      });
      resolve({});
    });
  }

  copyNotebook(): Promise<any> {
    return new Promise<any>((resolve) => {
      resolve({});
    });
  }

  deleteNotebook(): Promise<any> {
    return new Promise<any>((resolve) => {
      this.notebookList.pop();
      resolve({});
    });
  }
}


text:
package com.amazonaws.services.redshift.model;

import com.amazonaws.AmazonServiceException;

/**
 * <p>
 * A specified subnet is already in use by another cluster.
 * </p>
 */
public class SubnetAlreadyInUseException extends AmazonServiceException {
    private static final long serialVersionUID = 1L;

    /**
     * Constructs a new SubnetAlreadyInUseException with the specified error
     * message.
     *
     * @param message
     *        Describes the error encountered.
     */
    public SubnetAlreadyInUseException(String message) {
        super(message);
    }

}


text:
<?php

namespace Ico\Bundle\RulesBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\Request;

class SpellsController extends Controller
{
    /**
     * @Route("/règles-pathfinder/sorts", name="ico_rules_spells")
     * @Template()
     */
    public function indexAction(Request $request)
    {
	   $filter = $this->createFormBuilder()
			 ->setMethod('GET')
			 ->add('keywords', 'text', array('label' => 'Mots-clés', 'required' => false, 'attr' => array('placeholder' => 'Entrez un ou plusieurs séparés par des virgules')))
			 ->add('spellSchool', 'entity', array(
				'class' => 'IcoRulesBundle:SpellSchool',
				'property' => 'name',
				'label' => 'École',
				'required' => false,
				'expanded'  => false
			 ))
			 ->add('spellLevel', 'choice', array(
				'label' => 'Niveau',
				'choices' => array(
				    10 => '',
				    0 => '0',
				    1 => '1',
				    2 => '2',
				    3 => '3',
				    4 => '4',
				    5 => '5',
				    6 => '6',
				    7 => '7',
				    8 => '8',
				    9 => '9'
				),
				'empty_value' => false,
				'required' => false
			 ))
			 ->add('spellList', 'entity', array(
				'class' => 'IcoRulesBundle:SpellList',
				'property' => 'name',
				'label' => 'Liste de sorts',
				'required' => false,
				'expanded'  => false
			 ))
			 ->getForm();
	   $filter->handleRequest($request);

	   $queryBuilder = $this->getDoctrine()
			 ->getRepository('IcoRulesBundle:Spell')
			 ->createQueryBuilder('spell')
			 ->leftJoin('spell.spellSchool', 'spellSchool')
			 ->leftJoin('spell.spellListsLevels', 'spellListsLevels');
	   $parameters = array();

	   if ($filter->isValid()) {
		  $data = $filter->getData();
		  if (!empty($data['spellList'])) {
			 $queryBuilder->andWhere('spellListsLevels.spellList = :spellList');
			 $parameters['spellList'] = $data['spellList']->getId();
		  }
		  if ($data['spellLevel'] != 10) {
			 $queryBuilder->andWhere('spellListsLevels.level = :spellLevel');
			 $parameters['spellLevel'] = $data['spellLevel'];
		  }
		  if (!empty($data['spellSchool'])) {
			 $queryBuilder->andWhere('spellSchool.id = :spellSchool');
			 $parameters['spellSchool'] = $data['spellSchool']->getId();
		  }
		  if (!empty($data['keywords'])) {
			 $keywords = explode(',', $data['keywords']);
			 $where = array();
			 foreach ($keywords as $key => $keyword) {
				$keyword = trim($keyword);
				$where[] = '(spell.name LIKE :name'.$key.' OR spell.description LIKE :description'.$key.')';
				$parameters['name'.$key] = '%'.$keyword.'%';
				$parameters['description'.$key] = '%'.$keyword.'%';
			 }
			 $queryBuilder->andWhere(implode(' OR ', $where));
		  }
	   }

	   $queryBuilder->orderBy('spell.name', 'ASC');
	   $queryBuilder->setParameters($parameters);

	   $pagination = $this->get('knp_paginator')->paginate(
		   $queryBuilder->getQuery(), $this->get('request')->query->get('page', 1) /* page number */, 50 /* limit per page */
	   );

	   if (count($pagination) == 0) {
		  $this->get('session')->getFlashBag()->add('warning', 'Aucun sort ne correspond à vos critères.');
	   }

        return $this->render('IcoRulesBundle:Spells:index.html.twig', array(
		  'breadcrumb' => array(
			 'Accueil' => 'ico',
			 'Règles Pathfinder' => 'ico_rules',
			 'Sorts' => 'ico_rules_spells'
		  ),
		  'title' => 'Sorts',
		  'subtitle' => 'Liste',
		  'pagination' => $pagination,
		  'filter' => $filter->createView()
	   ));
    }

    /**
     * @Route("/règles-pathfinder/sorts/{id}/{slug}", requirements={"id"="\d+"}, defaults={"slug"=false}, name="ico_rules_spell_view", options={"expose"=true})
     * @Template()
     */
    public function viewAction($id)
    {
	   $spell = $this->getDoctrine()
		  ->getRepository('IcoRulesBundle:Spell')
		  ->find($id);

        return $this->render('IcoRulesBundle:Spells:view.html.twig', array(
		  'breadcrumb' => array(
			 'Accueil' => 'ico',
			 'Règles Pathfinder' => 'ico_rules',
			 'Sorts' => 'ico_rules_spells',
			 $spell->getName() => ''
		  ),
		  'title' => $spell->getName(),
		  'subtitle' => 'Sort',
		  'spell' => $spell
	   ));
    }

    /**
     * @Route("/règles-pathfinder-aperçu/sorts/{id}/{slug}", requirements={"id"="\d+"}, defaults={"slug"=false}, name="ico_rules_spellt_preview", options={"expose"=true})
     * @Template()
     */
    public function previewAction($id)
    {
	   $spell = $this->getDoctrine()
		  ->getRepository('IcoRulesBundle:Spell')
		  ->find($id);

        return $this->render('IcoRulesBundle:Spells:preview.html.twig', array(
		  'spell' => $spell
	   ));
    }
}


text:
module Helpers
  @@feeds = {}
  @@files = {}

  def read_file(file)
      @@files[file] = open(file).read unless @@files.include?(file)
      @@files[file]
  end
  def feed_from_file(file)
    if @@feeds[file].nil?
      feed = Feed.new(file)
      feed_data = read_file(file)
      FeedFetcher.update(feed,feed_data)
      feed.freeze
      @@feeds[file] = feed
    end
    @@feeds[file]
  end
end
RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.include Helpers

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'
end


text:
'use strict';

const models = require('./index');

/**
 * A Content Key Policy resource.
 *
 * @extends models['ProxyResource']
 */
class ContentKeyPolicy extends models['ProxyResource'] {
  /**
   * Create a ContentKeyPolicy.
   * @property {uuid} [policyId] The legacy Policy ID.
   * @property {date} [created] The creation date of the Policy
   * @property {date} [lastModified] The last modified date of the Policy
   * @property {string} [description] A description for the Policy.
   * @property {array} options The Key Policy options.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of ContentKeyPolicy
   *
   * @returns {object} metadata of ContentKeyPolicy
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ContentKeyPolicy',
      type: {
        name: 'Composite',
        className: 'ContentKeyPolicy',
        modelProperties: {
          id: {
            required: false,
            readOnly: true,
            serializedName: 'id',
            type: {
              name: 'String'
            }
          },
          name: {
            required: false,
            readOnly: true,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          type: {
            required: false,
            readOnly: true,
            serializedName: 'type',
            type: {
              name: 'String'
            }
          },
          policyId: {
            required: false,
            nullable: false,
            readOnly: true,
            serializedName: 'properties.policyId',
            type: {
              name: 'String'
            }
          },
          created: {
            required: false,
            nullable: false,
            readOnly: true,
            serializedName: 'properties.created',
            type: {
              name: 'DateTime'
            }
          },
          lastModified: {
            required: false,
            nullable: false,
            readOnly: true,
            serializedName: 'properties.lastModified',
            type: {
              name: 'DateTime'
            }
          },
          description: {
            required: false,
            serializedName: 'properties.description',
            type: {
              name: 'String'
            }
          },
          options: {
            required: true,
            serializedName: 'properties.options',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ContentKeyPolicyOptionElementType',
                  type: {
                    name: 'Composite',
                    className: 'ContentKeyPolicyOption'
                  }
              }
            }
          }
        }
      }
    };
  }
}

module.exports = ContentKeyPolicy;