text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/resourcemanager/v3/organizations.proto

package com.google.cloud.resourcemanager.v3;

public final class OrganizationsProto {
  private OrganizationsProto() {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
  }

  static final com.google.protobuf.Descriptors.Descriptor
      internal_static_google_cloud_resourcemanager_v3_Organization_descriptor;
  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_cloud_resourcemanager_v3_Organization_fieldAccessorTable;
  static final com.google.protobuf.Descriptors.Descriptor
      internal_static_google_cloud_resourcemanager_v3_GetOrganizationRequest_descriptor;
  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_cloud_resourcemanager_v3_GetOrganizationRequest_fieldAccessorTable;
  static final com.google.protobuf.Descriptors.Descriptor
      internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsRequest_descriptor;
  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsRequest_fieldAccessorTable;
  static final com.google.protobuf.Descriptors.Descriptor
      internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsResponse_descriptor;
  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsResponse_fieldAccessorTable;
  static final com.google.protobuf.Descriptors.Descriptor
      internal_static_google_cloud_resourcemanager_v3_DeleteOrganizationMetadata_descriptor;
  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_cloud_resourcemanager_v3_DeleteOrganizationMetadata_fieldAccessorTable;
  static final com.google.protobuf.Descriptors.Descriptor
      internal_static_google_cloud_resourcemanager_v3_UndeleteOrganizationMetadata_descriptor;
  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_google_cloud_resourcemanager_v3_UndeleteOrganizationMetadata_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
    return descriptor;
  }

  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;

  static {
    java.lang.String[] descriptorData = {
      "\n3google/cloud/resourcemanager/v3/organi"
          + "zations.proto\022\037google.cloud.resourcemana"
          + "ger.v3\032\034google/api/annotations.proto\032\027go"
          + "ogle/api/client.proto\032\037google/api/field_"
          + "behavior.proto\032\031google/api/resource.prot"
          + "o\032\036google/iam/v1/iam_policy.proto\032\032googl"
          + "e/iam/v1/policy.proto\032\037google/protobuf/t"
          + "imestamp.proto\"\203\004\n\014Organization\022\021\n\004name\030"
          + "\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\003\022$\n"
          + "\025directory_customer_id\030\003 \001(\tB\003\340A\005H\000\022G\n\005s"
          + "tate\030\004 \001(\01623.google.cloud.resourcemanage"
          + "r.v3.Organization.StateB\003\340A\003\0224\n\013create_t"
          + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340"
          + "A\003\0224\n\013update_time\030\006 \001(\0132\032.google.protobu"
          + "f.TimestampB\003\340A\003\0224\n\013delete_time\030\007 \001(\0132\032."
          + "google.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\010"
          + " \001(\tB\003\340A\003\"@\n\005State\022\025\n\021STATE_UNSPECIFIED\020"
          + "\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUESTED\020\002:V\352AS"
          + "\n0cloudresourcemanager.googleapis.com/Or"
          + "ganization\022\034organizations/{organization}"
          + "R\001\001B\007\n\005owner\"`\n\026GetOrganizationRequest\022F"
          + "\n\004name\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanag"
          + "er.googleapis.com/Organization\"a\n\032Search"
          + "OrganizationsRequest\022\026\n\tpage_size\030\001 \001(\005B"
          + "\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\022\n\005query\030\003"
          + " \001(\tB\003\340A\001\"|\n\033SearchOrganizationsResponse"
          + "\022D\n\rorganizations\030\001 \003(\0132-.google.cloud.r"
          + "esourcemanager.v3.Organization\022\027\n\017next_p"
          + "age_token\030\002 \001(\t\"\034\n\032DeleteOrganizationMet"
          + "adata\"\036\n\034UndeleteOrganizationMetadata2\345\007"
          + "\n\rOrganizations\022\244\001\n\017GetOrganization\0227.go"
          + "ogle.cloud.resourcemanager.v3.GetOrganiz"
          + "ationRequest\032-.google.cloud.resourcemana"
          + "ger.v3.Organization\")\202\323\344\223\002\034\022\032/v3/{name=o"
          + "rganizations/*}\332A\004name\022\272\001\n\023SearchOrganiz"
          + "ations\022;.google.cloud.resourcemanager.v3"
          + ".SearchOrganizationsRequest\032<.google.clo"
          + "ud.resourcemanager.v3.SearchOrganization"
          + "sResponse\"(\202\323\344\223\002\032\022\030/v3/organizations:sea"
          + "rch\332A\005query\022\214\001\n\014GetIamPolicy\022\".google.ia"
          + "m.v1.GetIamPolicyRequest\032\025.google.iam.v1"
          + ".Policy\"A\202\323\344\223\0020\"+/v3/{resource=organizat"
          + "ions/*}:getIamPolicy:\001*\332A\010resource\022\214\001\n\014S"
          + "etIamPolicy\022\".google.iam.v1.SetIamPolicy"
          + "Request\032\025.google.iam.v1.Policy\"A\202\323\344\223\0020\"+"
          + "/v3/{resource=organizations/*}:setIamPol"
          + "icy:\001*\332A\010resource\022\276\001\n\022TestIamPermissions"
          + "\022(.google.iam.v1.TestIamPermissionsReque"
          + "st\032).google.iam.v1.TestIamPermissionsRes"
          + "ponse\"S\202\323\344\223\0026\"1/v3/{resource=organizatio"
          + "ns/*}:testIamPermissions:\001*\332A\024resource,p"
          + "ermissions\032\220\001\312A#cloudresourcemanager.goo"
          + "gleapis.com\322Aghttps://www.googleapis.com"
          + "/auth/cloud-platform,https://www.googlea"
          + "pis.com/auth/cloud-platform.read-onlyB\364\001"
          + "\n#com.google.cloud.resourcemanager.v3B\022O"
          + "rganizationsProtoP\001ZNgoogle.golang.org/g"
          + "enproto/googleapis/cloud/resourcemanager"
          + "/v3;resourcemanager\252\002\037Google.Cloud.Resou"
          + "rceManager.V3\312\002\037Google\\Cloud\\ResourceMan"
          + "ager\\V3\352\002\"Google::Cloud::ResourceManager"
          + "::V3b\006proto3"
    };
    descriptor =
        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
            descriptorData,
            new com.google.protobuf.Descriptors.FileDescriptor[] {
              com.google.api.AnnotationsProto.getDescriptor(),
              com.google.api.ClientProto.getDescriptor(),
              com.google.api.FieldBehaviorProto.getDescriptor(),
              com.google.api.ResourceProto.getDescriptor(),
              com.google.iam.v1.IamPolicyProto.getDescriptor(),
              com.google.iam.v1.PolicyProto.getDescriptor(),
              com.google.protobuf.TimestampProto.getDescriptor(),
            });
    internal_static_google_cloud_resourcemanager_v3_Organization_descriptor =
        getDescriptor().getMessageTypes().get(0);
    internal_static_google_cloud_resourcemanager_v3_Organization_fieldAccessorTable =
        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_google_cloud_resourcemanager_v3_Organization_descriptor,
            new java.lang.String[] {
              "Name",
              "DisplayName",
              "DirectoryCustomerId",
              "State",
              "CreateTime",
              "UpdateTime",
              "DeleteTime",
              "Etag",
              "Owner",
            });
    internal_static_google_cloud_resourcemanager_v3_GetOrganizationRequest_descriptor =
        getDescriptor().getMessageTypes().get(1);
    internal_static_google_cloud_resourcemanager_v3_GetOrganizationRequest_fieldAccessorTable =
        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_google_cloud_resourcemanager_v3_GetOrganizationRequest_descriptor,
            new java.lang.String[] {
              "Name",
            });
    internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsRequest_descriptor =
        getDescriptor().getMessageTypes().get(2);
    internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsRequest_fieldAccessorTable =
        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsRequest_descriptor,
            new java.lang.String[] {
              "PageSize", "PageToken", "Query",
            });
    internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsResponse_descriptor =
        getDescriptor().getMessageTypes().get(3);
    internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsResponse_fieldAccessorTable =
        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_google_cloud_resourcemanager_v3_SearchOrganizationsResponse_descriptor,
            new java.lang.String[] {
              "Organizations", "NextPageToken",
            });
    internal_static_google_cloud_resourcemanager_v3_DeleteOrganizationMetadata_descriptor =
        getDescriptor().getMessageTypes().get(4);
    internal_static_google_cloud_resourcemanager_v3_DeleteOrganizationMetadata_fieldAccessorTable =
        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_google_cloud_resourcemanager_v3_DeleteOrganizationMetadata_descriptor,
            new java.lang.String[] {});
    internal_static_google_cloud_resourcemanager_v3_UndeleteOrganizationMetadata_descriptor =
        getDescriptor().getMessageTypes().get(5);
    internal_static_google_cloud_resourcemanager_v3_UndeleteOrganizationMetadata_fieldAccessorTable =
        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_google_cloud_resourcemanager_v3_UndeleteOrganizationMetadata_descriptor,
            new java.lang.String[] {});
    com.google.protobuf.ExtensionRegistry registry =
        com.google.protobuf.ExtensionRegistry.newInstance();
    registry.add(com.google.api.ClientProto.defaultHost);
    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
    registry.add(com.google.api.AnnotationsProto.http);
    registry.add(com.google.api.ClientProto.methodSignature);
    registry.add(com.google.api.ClientProto.oauthScopes);
    registry.add(com.google.api.ResourceProto.resource);
    registry.add(com.google.api.ResourceProto.resourceReference);
    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
        descriptor, registry);
    com.google.api.AnnotationsProto.getDescriptor();
    com.google.api.ClientProto.getDescriptor();
    com.google.api.FieldBehaviorProto.getDescriptor();
    com.google.api.ResourceProto.getDescriptor();
    com.google.iam.v1.IamPolicyProto.getDescriptor();
    com.google.iam.v1.PolicyProto.getDescriptor();
    com.google.protobuf.TimestampProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}


text:
<?php

namespace RGV\EasyagroBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class ClienteController extends Controller
{
    public function indexAction()
    {
        return $this->render('RGVEasyagroBundle:Cliente:index.html.twig');
    }
}

redpajama_set_name: RedPajamaGithub


text:
#include "webrtc/voice_engine/voe_volume_control_impl.h"

#include "webrtc/system_wrappers/include/trace.h"
#include "webrtc/voice_engine/channel.h"
#include "webrtc/voice_engine/include/voe_errors.h"
#include "webrtc/voice_engine/output_mixer.h"
#include "webrtc/voice_engine/transmit_mixer.h"
#include "webrtc/voice_engine/voice_engine_impl.h"

namespace webrtc {

VoEVolumeControl* VoEVolumeControl::GetInterface(VoiceEngine* voiceEngine) {
#ifndef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
  return NULL;
#else
  if (NULL == voiceEngine) {
    return NULL;
  }
  VoiceEngineImpl* s = static_cast<VoiceEngineImpl*>(voiceEngine);
  s->AddRef();
  return s;
#endif
}

#ifdef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API

VoEVolumeControlImpl::VoEVolumeControlImpl(voe::SharedData* shared)
    : _shared(shared) {
  WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "VoEVolumeControlImpl::VoEVolumeControlImpl() - ctor");
}

VoEVolumeControlImpl::~VoEVolumeControlImpl() {
  WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "VoEVolumeControlImpl::~VoEVolumeControlImpl() - dtor");
}

int VoEVolumeControlImpl::SetSpeakerVolume(unsigned int volume) {
  WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "SetSpeakerVolume(volume=%u)", volume);

  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (volume > kMaxVolumeLevel) {
    _shared->SetLastError(VE_INVALID_ARGUMENT, kTraceError,
                          "SetSpeakerVolume() invalid argument");
    return -1;
  }

  uint32_t maxVol(0);
  uint32_t spkrVol(0);

  // scale: [0,kMaxVolumeLevel] -> [0,MaxSpeakerVolume]
  if (_shared->audio_device()->MaxSpeakerVolume(&maxVol) != 0) {
    _shared->SetLastError(VE_MIC_VOL_ERROR, kTraceError,
                          "SetSpeakerVolume() failed to get max volume");
    return -1;
  }
  // Round the value and avoid floating computation.
  spkrVol = (uint32_t)((volume * maxVol + (int)(kMaxVolumeLevel / 2)) /
                       (kMaxVolumeLevel));

  // set the actual volume using the audio mixer
  if (_shared->audio_device()->SetSpeakerVolume(spkrVol) != 0) {
    _shared->SetLastError(VE_MIC_VOL_ERROR, kTraceError,
                          "SetSpeakerVolume() failed to set speaker volume");
    return -1;
  }
  return 0;
}

int VoEVolumeControlImpl::GetSpeakerVolume(unsigned int& volume) {

  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }

  uint32_t spkrVol(0);
  uint32_t maxVol(0);

  if (_shared->audio_device()->SpeakerVolume(&spkrVol) != 0) {
    _shared->SetLastError(VE_GET_MIC_VOL_ERROR, kTraceError,
                          "GetSpeakerVolume() unable to get speaker volume");
    return -1;
  }

  // scale: [0, MaxSpeakerVolume] -> [0, kMaxVolumeLevel]
  if (_shared->audio_device()->MaxSpeakerVolume(&maxVol) != 0) {
    _shared->SetLastError(
        VE_GET_MIC_VOL_ERROR, kTraceError,
        "GetSpeakerVolume() unable to get max speaker volume");
    return -1;
  }
  // Round the value and avoid floating computation.
  volume =
      (uint32_t)((spkrVol * kMaxVolumeLevel + (int)(maxVol / 2)) / (maxVol));

  return 0;
}

int VoEVolumeControlImpl::SetMicVolume(unsigned int volume) {
  WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "SetMicVolume(volume=%u)", volume);

  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (volume > kMaxVolumeLevel) {
    _shared->SetLastError(VE_INVALID_ARGUMENT, kTraceError,
                          "SetMicVolume() invalid argument");
    return -1;
  }

  uint32_t maxVol(0);
  uint32_t micVol(0);

  // scale: [0, kMaxVolumeLevel] -> [0,MaxMicrophoneVolume]
  if (_shared->audio_device()->MaxMicrophoneVolume(&maxVol) != 0) {
    _shared->SetLastError(VE_MIC_VOL_ERROR, kTraceError,
                          "SetMicVolume() failed to get max volume");
    return -1;
  }

  if (volume == kMaxVolumeLevel) {
    // On Linux running pulse, users are able to set the volume above 100%
    // through the volume control panel, where the +100% range is digital
    // scaling. WebRTC does not support setting the volume above 100%, and
    // simply ignores changing the volume if the user tries to set it to
    // |kMaxVolumeLevel| while the current volume is higher than |maxVol|.
    if (_shared->audio_device()->MicrophoneVolume(&micVol) != 0) {
      _shared->SetLastError(VE_GET_MIC_VOL_ERROR, kTraceError,
                            "SetMicVolume() unable to get microphone volume");
      return -1;
    }
    if (micVol >= maxVol)
      return 0;
  }

  // Round the value and avoid floating point computation.
  micVol = (uint32_t)((volume * maxVol + (int)(kMaxVolumeLevel / 2)) /
                      (kMaxVolumeLevel));

  // set the actual volume using the audio mixer
  if (_shared->audio_device()->SetMicrophoneVolume(micVol) != 0) {
    _shared->SetLastError(VE_MIC_VOL_ERROR, kTraceError,
                          "SetMicVolume() failed to set mic volume");
    return -1;
  }
  return 0;
}

int VoEVolumeControlImpl::GetMicVolume(unsigned int& volume) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }

  uint32_t micVol(0);
  uint32_t maxVol(0);

  if (_shared->audio_device()->MicrophoneVolume(&micVol) != 0) {
    _shared->SetLastError(VE_GET_MIC_VOL_ERROR, kTraceError,
                          "GetMicVolume() unable to get microphone volume");
    return -1;
  }

  // scale: [0, MaxMicrophoneVolume] -> [0, kMaxVolumeLevel]
  if (_shared->audio_device()->MaxMicrophoneVolume(&maxVol) != 0) {
    _shared->SetLastError(VE_GET_MIC_VOL_ERROR, kTraceError,
                          "GetMicVolume() unable to get max microphone volume");
    return -1;
  }
  if (micVol < maxVol) {
    // Round the value and avoid floating point calculation.
    volume =
        (uint32_t)((micVol * kMaxVolumeLevel + (int)(maxVol / 2)) / (maxVol));
  } else {
    // Truncate the value to the kMaxVolumeLevel.
    volume = kMaxVolumeLevel;
  }
  return 0;
}

int VoEVolumeControlImpl::SetInputMute(int channel, bool enable) {
  WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "SetInputMute(channel=%d, enable=%d)", channel, enable);

  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (channel == -1) {
    // Mute before demultiplexing <=> affects all channels
    return _shared->transmit_mixer()->SetMute(enable);
  }
  // Mute after demultiplexing <=> affects one channel only
  voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
  voe::Channel* channelPtr = ch.channel();
  if (channelPtr == NULL) {
    _shared->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
                          "SetInputMute() failed to locate channel");
    return -1;
  }
  return channelPtr->SetInputMute(enable);
}

int VoEVolumeControlImpl::GetInputMute(int channel, bool& enabled) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (channel == -1) {
    enabled = _shared->transmit_mixer()->Mute();
  } else {
    voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
    voe::Channel* channelPtr = ch.channel();
    if (channelPtr == NULL) {
      _shared->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
                            "SetInputMute() failed to locate channel");
      return -1;
    }
    enabled = channelPtr->InputMute();
  }
  return 0;
}

int VoEVolumeControlImpl::GetSpeechInputLevel(unsigned int& level) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  int8_t currentLevel = _shared->transmit_mixer()->AudioLevel();
  level = static_cast<unsigned int>(currentLevel);
  return 0;
}

int VoEVolumeControlImpl::GetSpeechOutputLevel(int channel,
                                               unsigned int& level) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (channel == -1) {
    return _shared->output_mixer()->GetSpeechOutputLevel((uint32_t&)level);
  } else {
    voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
    voe::Channel* channelPtr = ch.channel();
    if (channelPtr == NULL) {
      _shared->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
                            "GetSpeechOutputLevel() failed to locate channel");
      return -1;
    }
    channelPtr->GetSpeechOutputLevel((uint32_t&)level);
  }
  return 0;
}

int VoEVolumeControlImpl::GetSpeechInputLevelFullRange(unsigned int& level) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  int16_t currentLevel = _shared->transmit_mixer()->AudioLevelFullRange();
  level = static_cast<unsigned int>(currentLevel);
  return 0;
}

int VoEVolumeControlImpl::GetSpeechOutputLevelFullRange(int channel,
                                                        unsigned int& level) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (channel == -1) {
    return _shared->output_mixer()->GetSpeechOutputLevelFullRange(
        (uint32_t&)level);
  } else {
    voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
    voe::Channel* channelPtr = ch.channel();
    if (channelPtr == NULL) {
      _shared->SetLastError(
          VE_CHANNEL_NOT_VALID, kTraceError,
          "GetSpeechOutputLevelFullRange() failed to locate channel");
      return -1;
    }
    channelPtr->GetSpeechOutputLevelFullRange((uint32_t&)level);
  }
  return 0;
}

int VoEVolumeControlImpl::SetChannelOutputVolumeScaling(int channel,
                                                        float scaling) {
  WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "SetChannelOutputVolumeScaling(channel=%d, scaling=%3.2f)",
               channel, scaling);
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  if (scaling < kMinOutputVolumeScaling || scaling > kMaxOutputVolumeScaling) {
    _shared->SetLastError(VE_INVALID_ARGUMENT, kTraceError,
                          "SetChannelOutputVolumeScaling() invalid parameter");
    return -1;
  }
  voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
  voe::Channel* channelPtr = ch.channel();
  if (channelPtr == NULL) {
    _shared->SetLastError(
        VE_CHANNEL_NOT_VALID, kTraceError,
        "SetChannelOutputVolumeScaling() failed to locate channel");
    return -1;
  }
  return channelPtr->SetChannelOutputVolumeScaling(scaling);
}

int VoEVolumeControlImpl::GetChannelOutputVolumeScaling(int channel,
                                                        float& scaling) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }
  voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
  voe::Channel* channelPtr = ch.channel();
  if (channelPtr == NULL) {
    _shared->SetLastError(
        VE_CHANNEL_NOT_VALID, kTraceError,
        "GetChannelOutputVolumeScaling() failed to locate channel");
    return -1;
  }
  return channelPtr->GetChannelOutputVolumeScaling(scaling);
}

int VoEVolumeControlImpl::SetOutputVolumePan(int channel,
                                             float left,
                                             float right) {
  WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
               "SetOutputVolumePan(channel=%d, left=%2.1f, right=%2.1f)",
               channel, left, right);

  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }

  bool available(false);
  _shared->audio_device()->StereoPlayoutIsAvailable(&available);
  if (!available) {
    _shared->SetLastError(VE_FUNC_NO_STEREO, kTraceError,
                          "SetOutputVolumePan() stereo playout not supported");
    return -1;
  }
  if ((left < kMinOutputVolumePanning) || (left > kMaxOutputVolumePanning) ||
      (right < kMinOutputVolumePanning) || (right > kMaxOutputVolumePanning)) {
    _shared->SetLastError(VE_INVALID_ARGUMENT, kTraceError,
                          "SetOutputVolumePan() invalid parameter");
    return -1;
  }

  if (channel == -1) {
    // Master balance (affectes the signal after output mixing)
    return _shared->output_mixer()->SetOutputVolumePan(left, right);
  }
  // Per-channel balance (affects the signal before output mixing)
  voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
  voe::Channel* channelPtr = ch.channel();
  if (channelPtr == NULL) {
    _shared->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
                          "SetOutputVolumePan() failed to locate channel");
    return -1;
  }
  return channelPtr->SetOutputVolumePan(left, right);
}

int VoEVolumeControlImpl::GetOutputVolumePan(int channel,
                                             float& left,
                                             float& right) {
  if (!_shared->statistics().Initialized()) {
    _shared->SetLastError(VE_NOT_INITED, kTraceError);
    return -1;
  }

  bool available(false);
  _shared->audio_device()->StereoPlayoutIsAvailable(&available);
  if (!available) {
    _shared->SetLastError(VE_FUNC_NO_STEREO, kTraceError,
                          "GetOutputVolumePan() stereo playout not supported");
    return -1;
  }

  if (channel == -1) {
    return _shared->output_mixer()->GetOutputVolumePan(left, right);
  }
  voe::ChannelOwner ch = _shared->channel_manager().GetChannel(channel);
  voe::Channel* channelPtr = ch.channel();
  if (channelPtr == NULL) {
    _shared->SetLastError(VE_CHANNEL_NOT_VALID, kTraceError,
                          "GetOutputVolumePan() failed to locate channel");
    return -1;
  }
  return channelPtr->GetOutputVolumePan(left, right);
}

#endif  // #ifdef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API

}  // namespace webrtc


text:
#ifdef __cplusplus
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "$module.h"
#else
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "$module.h"
#endif

const char help_message[] =
$help_message;

const char usage_pattern[] =
$usage_pattern;

const char motor_help_message[] =
$motor_help_message;

const char motor_usage_pattern[] =
$motor_usage_pattern;

const char pid_help_message[] =
$pid_help_message;

const char pid_usage_pattern[] =
$pid_usage_pattern;

const char config_help_message[] =
$config_help_message;

const char config_usage_pattern[] =
$config_usage_pattern;

const char motion_help_message[] =
$motion_help_message;

const char motion_usage_pattern[] =
$motion_usage_pattern;

typedef struct {
    const char *name;
    bool value;
} Command;

typedef struct {
    const char *name;
    char *value;
    char **array;
} Argument;

typedef struct {
    const char *oshort;
    const char *olong;
    bool argcount;
    bool value;
    char *argument;
} Option;

typedef struct {
    int n_commands;
    int n_arguments;
    int n_options;
    Command *commands;
    Argument *arguments;
    Option *options;
} Elements;

/*
 * Tokens object
 */

typedef struct Tokens {
    int argc;
    char **argv;
    int i;
    char *current;
} Tokens;

Tokens tokens_new(int argc, char **argv) {
    Tokens ts = {argc, argv, 0, argv[0]};
    return ts;
}

Tokens* tokens_move(Tokens *ts) {
    if (ts->i < ts->argc) {
        ts->current = ts->argv[++ts->i];
    }
    if (ts->i == ts->argc) {
        ts->current = NULL;
    }
    return ts;
}

/*
 * ARGV parsing functions
 */

int parse_doubledash(Tokens *ts, Elements *elements) {
    //int n_commands = elements->n_commands;
    //int n_arguments = elements->n_arguments;
    //Command *commands = elements->commands;
    //Argument *arguments = elements->arguments;

    // not implemented yet
    // return parsed + [Argument(None, v) for v in tokens]
    return 0;
}

int parse_long(Tokens *ts, Elements *elements) {
    int i;
    int len_prefix;
    int n_options = elements->n_options;
    char *eq = strchr(ts->current, '=');
    Option *option;
    Option *options = elements->options;

    len_prefix = (eq-(ts->current))/sizeof(char);
    for (i=0; i < n_options; i++) {
        option = &options[i];
        if (!strncmp(ts->current, option->olong, len_prefix))
            break;
    }
    if (i == n_options) {
        // TODO '%s is not a unique prefix
        fprintf(stderr, "%s is not recognized\n", ts->current);
        return 1;
    }
    tokens_move(ts);
    if (option->argcount) {
        if (eq == NULL) {
            if (ts->current == NULL) {
                fprintf(stderr, "%s requires argument\n", option->olong);
                return 1;
            }
            option->argument = ts->current;
            tokens_move(ts);
        } else {
            option->argument = eq + 1;
        }
    } else {
        if (eq != NULL) {
            fprintf(stderr, "%s must not have an argument\n", option->olong);
            return 1;
        }
        option->value = true;
    }
    return 0;
}

int parse_shorts(Tokens *ts, Elements *elements) {
    char *raw;
    int i;
    int n_options = elements->n_options;
    Option *option;
    Option *options = elements->options;

    raw = &ts->current[1];
    tokens_move(ts);
    while (raw[0] != '\0') {
        for (i=0; i < n_options; i++) {
            option = &options[i];
            if (option->oshort != NULL && option->oshort[1] == raw[0])
                break;
        }
        if (i == n_options) {
            // TODO -%s is specified ambiguously %d times
            fprintf(stderr, "-%c is not recognized\n", raw[0]);
            return 1;
        }
        raw++;
        if (!option->argcount) {
            option->value = true;
        } else {
            if (raw[0] == '\0') {
                if (ts->current == NULL) {
                    fprintf(stderr, "%s requires argument\n", option->oshort);
                    return 1;
                }
                raw = ts->current;
                tokens_move(ts);
            }
            option->argument = raw;
            break;
        }
    }
    return 0;
}

int parse_argcmd(Tokens *ts, Elements *elements) {
    int i;
    int n_commands = elements->n_commands;
    //int n_arguments = elements->n_arguments;
    Command *command;
    Command *commands = elements->commands;
    //Argument *arguments = elements->arguments;

    for (i=0; i < n_commands; i++) {
        command = &commands[i];
        if (!strcmp(command->name, ts->current)){
            command->value = true;
            tokens_move(ts);
            return 0;
        }
    }
    // not implemented yet, just skip for now
    // parsed.append(Argument(None, tokens.move()))
    /*fprintf(stderr, "! argument '%s' has been ignored\n", ts->current);
    fprintf(stderr, "  '");
    for (i=0; i<ts->argc ; i++)
        fprintf(stderr, "%s ", ts->argv[i]);
    fprintf(stderr, "'\n");*/
    tokens_move(ts);
    // Return 1 if we didn't find a command
    return 1;
}

int parse_args(Tokens *ts, Elements *elements) {
    int ret;

    while (ts->current != NULL) {
        if (strcmp(ts->current, "--") == 0) {
            ret = parse_doubledash(ts, elements);
            if (!ret) break;
        } else if (ts->current[0] == '-' && ts->current[1] == '-') {
            ret = parse_long(ts, elements);
        } else if (ts->current[0] == '-' && ts->current[1] != '\0') {
            ret = parse_shorts(ts, elements);
        } else
            ret = parse_argcmd(ts, elements);
        if (ret) return ret;
    }
    return 0;
}

int elems_to_args(Elements *elements, DocoptArgs *args, bool help,
                  const char *version){
    Command *command;
    Argument *argument;
    Option *option;
    int i;

    // fix gcc-related compiler warnings (unused)
    (void)command;
    (void)argument;

    /* options */
    for (i=0; i < elements->n_options; i++) {
        option = &elements->options[i];
        if (help && option->value && !strcmp(option->olong, "--help")) {
            printf("%s", args->help_message);
            return 1;
        } else if (version && option->value &&
                   !strcmp(option->olong, "--version")) {
            printf("%s\n", version);
            return 1;
        }$if_flag$if_option
    }
    /* commands */
    for (i=0; i < elements->n_commands; i++) {
        command = &elements->commands[i];$if_command
    }
    /* arguments */
    for (i=0; i < elements->n_arguments; i++) {
        argument = &elements->arguments[i];$if_argument
    }
    return 0;
}

/*
 * Main docopt function
 */

DocoptArgs docopt(int argc, char *argv[], bool help, const char *version, int* success) {
    DocoptArgs args = {$defaults
        usage_pattern, help_message
    };
    Tokens ts;
    Command commands[] = {$elems_cmds
    };
    Argument arguments[] = {$elems_args
    };
    Option options[] = {$elems_opts
    };
    Elements elements = {$elems_n, commands, arguments, options};

    *success = 1;

    ts = tokens_new(argc, argv);
    if (parse_args(&ts, &elements))
        *success = -1;//exit(EXIT_FAILURE);
    if (elems_to_args(&elements, &args, help, version))
        *success = 0;//exit(EXIT_SUCCESS);

    return args;
}


text:
// Gates
function Gate(x, y) {
    this.isOpen = false;
    this.element = new GameElement(Game.gateSprite, x, y, Game.gateWidth, Game.gateHeight, {sx: 320, sy: 96});
    this.isOpening = false;
}

Gate.prototype.update = function() {
    if (this.isOpening) {
        if (this.element.height > 0) {
            this.element.height -= 2;
        } else {
            this.element.height = 0;
            this.isOpening = false;
            this.isOpen = true;
            // TODO change element on graphics to the open element
        }
    }
};

Gate.prototype.hitTest = function(x, y) {
    if (this.isOpen) {
        return false;
    }

    var gateLeft = this.element.x + Game.background.sx,
        gateRight = gateLeft + this.element.width,
        gateTop = this.element.y + Game.background.sy,
        gateBottom = gateTop + this.element.height - 8;

    return gateLeft < x && x < gateRight && gateTop < y && y < gateBottom;
};

Gate.prototype.open = function() {
    this.isOpening = true;
};

// thrown coin logic
function Coin(x, y, targetX, targetY) {
    this.element = new GameElement(Game.coinSprite, x, y, Game.coinWidth, Game.coinHeight);
    this.x = this.getMapPosX();
    this.y = this.getMapPosY();
    this.speed = Game.coinSpeed;
    this.target = {x: Game.background.sx + targetX, y: Game.background.sy + targetY};
}

Coin.prototype.getMapPosX = function() {
    return Game.background.sx + this.element.x;
};

Coin.prototype.getMapPosY = function() {
    return Game.background.sy + this.element.y;
};

Coin.prototype.update = function() {
    // reposition coin relative to background
    this.element.x = - Game.background.sx + this.x;
    this.element.y = - Game.background.sy + this.y;

    // move to target position
    var targetDiffX = this.target.x - this.getMapPosX();
    var targetDiffY = this.target.y - this.getMapPosY();
    if (targetDiffX != 0 || targetDiffY != 0) {
        //console.log(Math.min(targetDiffY, this.speed));
        var deltaX = Math.max(-this.speed, Math.min(targetDiffX, this.speed));
        var deltaY = Math.max(-this.speed, Math.min(targetDiffY, this.speed));
        this.move(deltaX, deltaY);
    } else {
        Game.removeObject(this);
    }
};

Coin.prototype.move = function(xDelta, yDelta) {
    if (Game.checkMovable(this.element, xDelta, yDelta)) {
        this.x += xDelta;
        this.y += yDelta;
    } else if (Game.checkMovable(this.element, 0, yDelta)) {
        this.y += yDelta;
    } else if (Game.checkMovable(this.element, xDelta, 0)) {
        this.x += xDelta;
    }
};

// player logic
function Player() {
    this.health = 100;
    this.money = Game.playerStartMoney;
    this.element = new GameElement(Game.playerSprite, 350, 250, Game.playerWidth, Game.playerHeight, {sx: 64, sy: 0});
    this.speed = Game.playerSpeed;
    this.lastClickedAt = {x: 0, y: 0};
    this.target = {x: this.getMapPosX(), y: this.getMapPosY()};
}

Player.prototype.getMapPosX = function() {
    return Game.background.sx + this.element.x;
};

Player.prototype.getMapPosY = function() {
    return Game.background.sy + this.element.y;
};

Player.prototype.bribe = function() {
    if (this.money > 0) {
        for (var i = Game.elements.length - 1; i >= 0; i--) {
            var elem = Game.elements[i].element;
            if (Game.elements[i] instanceof Spider &&
                clickedAt.x >= elem.x - 10 && clickedAt.x <= elem.x + elem.width + 20 &&
                clickedAt.y >= elem.y - 10 && clickedAt.y <= elem.y + elem.height + 20 &&
                !Game.elements[i].bribed) {

                Game.elements[i].bribed = true;
                Game.elements[i].bribedCountdown = Game.fps * Game.spiderBribetime;
                this.money--;

                Game.addObject(new Coin(this.element.x, this.element.y, elem.x, elem.y));

                // first bribery opens first gate
                Game.gates[0].open();
                return true;
            }
        }
    }

    return false;
};

Player.prototype.update = function() {
    var increment = {x: 0, y: 0};
    if (keyPressed(keys.up)) increment.y = -this.speed;
    if (keyPressed(keys.down)) increment.y = this.speed;
    if (keyPressed(keys.left)) increment.x = -this.speed;
    if (keyPressed(keys.right)) increment.x = this.speed;

    // reset target to element position if key pressed
    if (increment.x != 0 || increment.y != 0) {
        this.target.x = this.getMapPosX();
        this.target.y = this.getMapPosY();
    }

    // clicked somewhere new
    if (clickedAt.x != this.lastClickedAt.x || clickedAt.y != this.lastClickedAt.y) {
        console.log("clicked at " + clickedAt.x + "/" + clickedAt.y);
        this.lastClickedAt.x = clickedAt.x;
        this.lastClickedAt.y = clickedAt.y;

        // if clicked on spider: bribe the spider
        if (!this.bribe()) {
            this.target.x = Game.background.sx + clickedAt.x - this.element.width / 2;
            this.target.y = Game.background.sy + clickedAt.y - this.element.height / 2;
        }
    }
    // move to clicked mouse position
    var targetDiffX = this.target.x - this.getMapPosX();
    var targetDiffY = this.target.y - this.getMapPosY();
    if (targetDiffX != 0 || targetDiffY != 0) {
        //console.log(Math.min(targetDiffY, this.speed));
        increment.x = Math.max(-this.speed, Math.min(targetDiffX, this.speed));
        increment.y = Math.max(-this.speed, Math.min(targetDiffY, this.speed));
    }

    if (increment.x != 0 || increment.y != 0) {
        //console.log("Moving player by: " + increment.x + "/" + increment.y);
        this.move(increment.x, increment.y);
    }
};

Player.prototype.move = function(xDelta, yDelta) {
    var xDeltaOriginal = xDelta;
    //noinspection JSUnusedAssignment
    if (Game.checkMovable(this.element, xDelta, yDelta) ||
        Game.checkMovable(this.element, xDelta = 0, yDelta) ||
        Game.checkMovable(this.element, xDelta = xDeltaOriginal, yDelta = 0)) {

        Game.background.translate(xDelta, yDelta);
        Game.towerOverlay.translate(xDelta, yDelta);
        for (var i = 0; i < Game.gates.length; i++) {
            Game.gates[i].element.move(-xDelta, -yDelta);
        }

        // make player look into direction of movement
        if (yDelta > 0) {
            this.element.sx = 64;
        } else if (yDelta < 0) {
            this.element.sx = 96;
        } else if (xDelta > 0) {
            this.element.sx = 0;
        } else if (xDelta < 0) {
            this.element.sx = 32;
        }
    }
};

// spiders ...
function Spider(xTile, yTile) {
    this.x = xTile * Game.tileSize;
    this.y = yTile * Game.tileSize;
    this.speed = Game.spiderSpeed;
    var elemX = - Game.background.sx + this.x;
    var elemY = - Game.background.sy + this.y;
    this.element = new GameElement(Game.spiderSprite, elemX, elemY, Game.spiderWidth, Game.spiderHeight, {sx: 45, sy: 66});
    this.animationCounter = 0;
    this.attackCooldown = 0;
    this.health = 20;
    this.bribed = false;
    this.bribedCountdown = 0;
    this.spottedPlayer = false;
}

Spider.prototype.getMapPosX = function() {
    return Game.background.sx + this.element.x;
};

Spider.prototype.getMapPosY = function() {
    return Game.background.sy + this.element.y;
};

Spider.prototype.update = function() {
    // reposition spider relative to background
    this.element.x = - Game.background.sx + this.x;
    this.element.y = - Game.background.sy + this.y;

    // turn to player
    var orientation = -1, // 0 - left; 1 - top-left; 2 - top; 3 - top-right ...
        turnThreshold = 45,
        xDistance = Game.player.getMapPosX() - this.x,
        yDistance = Game.player.getMapPosY() - this.y,
        xDelta = 0,
        yDelta = 0;

    this.animationCounter++;

    if (this.bribedCountdown-- < 0) {
        this.bribed = false;
    }

    // find out orientation
    if (xDistance < -turnThreshold && Math.abs(yDistance) <= turnThreshold) {
        orientation = 0;
    } else if (xDistance < -turnThreshold && yDistance < -turnThreshold) {
        orientation = 1;
    } else if (Math.abs(xDistance) <= turnThreshold && yDistance < -turnThreshold) {
        orientation = 2;
    } else if (xDistance > turnThreshold && yDistance < -turnThreshold) {
        orientation = 3;
    } else if (xDistance > turnThreshold && Math.abs(yDistance) <= turnThreshold) {
        orientation = 4;
    } else if (xDistance > turnThreshold && yDistance > turnThreshold) {
        orientation = 5;
    } else if (Math.abs(xDistance) <= turnThreshold && yDistance > turnThreshold) {
        orientation = 6;
    } else if (xDistance < -turnThreshold && yDistance > turnThreshold) {
        orientation = 7;
    } else {
        console.log("HALP: Unknown state for orientation!!");
    }

    /* simple AI: if player is in close (like, 4 tiles away), walk towards him and try to attack him
     *            we only let go if the player walks out of the visible screen area
     */
    var absDistance = Math.max(Math.abs(xDistance), Math.abs(yDistance));
    if (absDistance <= Game.tileSize && !this.bribed) {
        this.attack();
        if (orientation > -1) {
            this.element.sy = orientation * 128 + 64;
        }
        this.element.sx = Math.floor((this.animationCounter % 32) / 8) * 128 + 28 * 128 + 42;
    } else if (absDistance <= Game.tileSize * 5 || absDistance <= Game.tileSize * 14 && this.spottedPlayer) {
        xDelta = xDistance < -turnThreshold/2 ? -this.speed : xDistance > turnThreshold/2 ? this.speed : 0;
        yDelta = yDistance < -turnThreshold/2 ? -this.speed : yDistance > turnThreshold/2 ? this.speed : 0;
        this.spottedPlayer = true;

        // reverse move direction and orientation if bribed
        if (this.bribed) {
            xDelta = -xDelta;
            yDelta = -yDelta;
            orientation = (orientation + 4) % 8;
        }

        this.move(xDelta, yDelta);
        if (orientation > -1) {
            this.element.sy = orientation * 128 + 64;
        }
        this.element.sx = Math.floor((this.animationCounter % 32) / 4) * 128 + 4 * 128 + 42;
    } else {
        this.spottedPlayer = false;
        this.element.sx = Math.floor((this.animationCounter % 32) / 8) * 128 + 42;
    }
};

Spider.prototype.move = function(xDelta, yDelta) {
    var xDeltaOriginal = xDelta;
    if (Game.checkMovable(this.element, xDelta, yDelta) ||
        Game.checkMovable(this.element, xDelta = 0, yDelta) ||
        Game.checkMovable(this.element, xDelta = xDeltaOriginal, yDelta = 0)) {

        this.x += xDelta;
        this.y += yDelta;
    }
};

Spider.prototype.attack = function() {
    if (this.attackCooldown <= 0) {
        Game.player.health -= Game.spiderAttack;
        this.attackCooldown = Game.fps;
    }
    this.attackCooldown--;
    Game.updateHUD();
};


text:
package client

import (
	"github.com/rancher/norman/types"
)

const (
	AppType                      = "app"
	AppFieldAnnotations          = "annotations"
	AppFieldAnswers              = "answers"
	AppFieldAppRevisionID        = "appRevisionId"
	AppFieldAppliedFiles         = "appliedFiles"
	AppFieldConditions           = "conditions"
	AppFieldCreated              = "created"
	AppFieldCreatorID            = "creatorId"
	AppFieldDescription          = "description"
	AppFieldExternalID           = "externalId"
	AppFieldFiles                = "files"
	AppFieldHelmVersion          = "helmVersion"
	AppFieldLabels               = "labels"
	AppFieldLastAppliedTemplates = "lastAppliedTemplate"
	AppFieldMultiClusterAppID    = "multiClusterAppId"
	AppFieldName                 = "name"
	AppFieldNamespaceId          = "namespaceId"
	AppFieldNotes                = "notes"
	AppFieldOwnerReferences      = "ownerReferences"
	AppFieldProjectID            = "projectId"
	AppFieldPrune                = "prune"
	AppFieldRemoved              = "removed"
	AppFieldState                = "state"
	AppFieldTargetNamespace      = "targetNamespace"
	AppFieldTimeout              = "timeout"
	AppFieldTransitioning        = "transitioning"
	AppFieldTransitioningMessage = "transitioningMessage"
	AppFieldUUID                 = "uuid"
	AppFieldValuesYaml           = "valuesYaml"
	AppFieldWait                 = "wait"
)

type App struct {
	types.Resource
	Annotations          map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
	Answers              map[string]string `json:"answers,omitempty" yaml:"answers,omitempty"`
	AppRevisionID        string            `json:"appRevisionId,omitempty" yaml:"appRevisionId,omitempty"`
	AppliedFiles         map[string]string `json:"appliedFiles,omitempty" yaml:"appliedFiles,omitempty"`
	Conditions           []AppCondition    `json:"conditions,omitempty" yaml:"conditions,omitempty"`
	Created              string            `json:"created,omitempty" yaml:"created,omitempty"`
	CreatorID            string            `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
	Description          string            `json:"description,omitempty" yaml:"description,omitempty"`
	ExternalID           string            `json:"externalId,omitempty" yaml:"externalId,omitempty"`
	Files                map[string]string `json:"files,omitempty" yaml:"files,omitempty"`
	HelmVersion          string            `json:"helmVersion,omitempty" yaml:"helmVersion,omitempty"`
	Labels               map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	LastAppliedTemplates string            `json:"lastAppliedTemplate,omitempty" yaml:"lastAppliedTemplate,omitempty"`
	MultiClusterAppID    string            `json:"multiClusterAppId,omitempty" yaml:"multiClusterAppId,omitempty"`
	Name                 string            `json:"name,omitempty" yaml:"name,omitempty"`
	NamespaceId          string            `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
	Notes                string            `json:"notes,omitempty" yaml:"notes,omitempty"`
	OwnerReferences      []OwnerReference  `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
	ProjectID            string            `json:"projectId,omitempty" yaml:"projectId,omitempty"`
	Prune                bool              `json:"prune,omitempty" yaml:"prune,omitempty"`
	Removed              string            `json:"removed,omitempty" yaml:"removed,omitempty"`
	State                string            `json:"state,omitempty" yaml:"state,omitempty"`
	TargetNamespace      string            `json:"targetNamespace,omitempty" yaml:"targetNamespace,omitempty"`
	Timeout              int64             `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Transitioning        string            `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
	TransitioningMessage string            `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
	UUID                 string            `json:"uuid,omitempty" yaml:"uuid,omitempty"`
	ValuesYaml           string            `json:"valuesYaml,omitempty" yaml:"valuesYaml,omitempty"`
	Wait                 bool              `json:"wait,omitempty" yaml:"wait,omitempty"`
}

type AppCollection struct {
	types.Collection
	Data   []App `json:"data,omitempty"`
	client *AppClient
}

type AppClient struct {
	apiClient *Client
}

type AppOperations interface {
	List(opts *types.ListOpts) (*AppCollection, error)
	ListAll(opts *types.ListOpts) (*AppCollection, error)
	Create(opts *App) (*App, error)
	Update(existing *App, updates interface{}) (*App, error)
	Replace(existing *App) (*App, error)
	ByID(id string) (*App, error)
	Delete(container *App) error

	ActionRollback(resource *App, input *RollbackRevision) error

	ActionUpgrade(resource *App, input *AppUpgradeConfig) error
}

func newAppClient(apiClient *Client) *AppClient {
	return &AppClient{
		apiClient: apiClient,
	}
}

func (c *AppClient) Create(container *App) (*App, error) {
	resp := &App{}
	err := c.apiClient.Ops.DoCreate(AppType, container, resp)
	return resp, err
}

func (c *AppClient) Update(existing *App, updates interface{}) (*App, error) {
	resp := &App{}
	err := c.apiClient.Ops.DoUpdate(AppType, &existing.Resource, updates, resp)
	return resp, err
}

func (c *AppClient) Replace(obj *App) (*App, error) {
	resp := &App{}
	err := c.apiClient.Ops.DoReplace(AppType, &obj.Resource, obj, resp)
	return resp, err
}

func (c *AppClient) List(opts *types.ListOpts) (*AppCollection, error) {
	resp := &AppCollection{}
	err := c.apiClient.Ops.DoList(AppType, opts, resp)
	resp.client = c
	return resp, err
}

func (c *AppClient) ListAll(opts *types.ListOpts) (*AppCollection, error) {
	resp := &AppCollection{}
	resp, err := c.List(opts)
	if err != nil {
		return resp, err
	}
	data := resp.Data
	for next, err := resp.Next(); next != nil && err == nil; next, err = next.Next() {
		data = append(data, next.Data...)
		resp = next
		resp.Data = data
	}
	if err != nil {
		return resp, err
	}
	return resp, err
}

func (cc *AppCollection) Next() (*AppCollection, error) {
	if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
		resp := &AppCollection{}
		err := cc.client.apiClient.Ops.DoNext(cc.Pagination.Next, resp)
		resp.client = cc.client
		return resp, err
	}
	return nil, nil
}

func (c *AppClient) ByID(id string) (*App, error) {
	resp := &App{}
	err := c.apiClient.Ops.DoByID(AppType, id, resp)
	return resp, err
}

func (c *AppClient) Delete(container *App) error {
	return c.apiClient.Ops.DoResourceDelete(AppType, &container.Resource)
}

func (c *AppClient) ActionRollback(resource *App, input *RollbackRevision) error {
	err := c.apiClient.Ops.DoAction(AppType, "rollback", &resource.Resource, input, nil)
	return err
}

func (c *AppClient) ActionUpgrade(resource *App, input *AppUpgradeConfig) error {
	err := c.apiClient.Ops.DoAction(AppType, "upgrade", &resource.Resource, input, nil)
	return err
}


text:
package io.katharsis.client.mock.repository;

import javax.validation.ConstraintViolation;
import javax.validation.Path;
import javax.validation.metadata.ConstraintDescriptor;

public class TestConstraintViolation implements ConstraintViolation<Object> {

	private Object rootBean;
	private Object leafBean;

	public TestConstraintViolation(Object rootBean, Object leafBean) {

	}

	@Override
	public String getMessage() {
		return "testMsg";
	}

	@Override
	public String getMessageTemplate() {
		return "testTemplate";
	}

	@Override
	public Object getRootBean() {
		return rootBean;
	}

	@SuppressWarnings("unchecked")
	@Override
	public Class<Object> getRootBeanClass() {
		return (Class<Object>) rootBean.getClass();
	}

	@Override
	public Object getLeafBean() {
		return leafBean;
	}

	@Override
	public Object[] getExecutableParameters() {
		return null;
	}

	@Override
	public Object getExecutableReturnValue() {
		return null;
	}

	@Override
	public Path getPropertyPath() {
		return null;
	}

	@Override
	public Object getInvalidValue() {
		return "x";
	}

	@Override
	public ConstraintDescriptor<?> getConstraintDescriptor() {
		return null;
	}

	@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public Object unwrap(Class type) {
		return null;
	}

}


text:
package org.grizzlytech.protoxml.util;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.junit.Assert.assertTrue;

public class CommonTest {

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

    @Test
    public void fatalAssertion() {
        boolean thrown = false;
        try {
            Common.fatalAssertion(false, LOG, "Error {} occurred", "1234");
        } catch (FatalException ex) {
            assertTrue(ex.getMessage().equals("Error [1234] occurred"));
            thrown = true;
        }
        assertTrue(thrown);
    }

    @Test
    public void fatalException() {
        boolean thrown = false;
        try {
            Common.fatalException(new NullPointerException("FAIL"), LOG, "Error {} occurred", "5678");
        } catch (FatalException ex) {
            assertTrue(ex.getMessage().equals("Error [5678] occurred"));
            thrown = true;
        }
        assertTrue(thrown);
    }
}


text:
#ifndef PNR_GLOBAL_HH
#define PNR_GLOBAL_HH

class DesignState;

static const uint8_t gc_clk = 0xff;
static const uint8_t gc_cen = 0xaa; // 1357
static const uint8_t gc_rclke = 0x8a; // 137, 5 missing
static const uint8_t gc_sr = 0x55;  // 0246
static const uint8_t gc_re = 0x54; // 246, 0 missing

static const uint8_t gc_wclke = gc_cen;
static const uint8_t gc_we = gc_sr;

const char *global_class_name(uint8_t gc);

extern std::vector<uint8_t> global_classes;

void
promote_globals(DesignState &ds, bool do_promote);

#endif


text:
namespace Evel {

TcpConnection_WF::~TcpConnection_WF() {
    if ( f_close ) f_close( this );
}

void TcpConnection_WF::on_rdy() {
    if ( f_rdy ) f_rdy( this );
}

void TcpConnection_WF::parse( char **data, size_t size, size_t rese ) {
    if ( f_parse ) f_parse( this, data, size, rese );
}

} // namespace Evel


text:
import { ObjectUtils } from "@ts-morph/common";
import * as compiler from "../../compiler";
import * as structures from "../../structures";
import * as getMixinStructureFuncs from "./getMixinStructureFunctions";

export function fromConstructorDeclarationOverload(node: compiler.ConstructorDeclaration): structures.ConstructorDeclarationOverloadStructure {
    const structure: structures.ConstructorDeclarationOverloadStructure = {} as any;
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromScopedNode(node));
    return structure;
}

export function fromMethodDeclarationOverload(node: compiler.MethodDeclaration): structures.MethodDeclarationOverloadStructure {
    const structure: structures.MethodDeclarationOverloadStructure = {} as any;
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromStaticableNode(node));
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromAbstractableNode(node));
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromScopedNode(node));
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromQuestionTokenableNode(node));
    return structure;
}

export function fromFunctionDeclarationOverload(node: compiler.FunctionDeclaration): structures.FunctionDeclarationOverloadStructure {
    const structure: structures.FunctionDeclarationOverloadStructure = {} as any;
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromAmbientableNode(node));
    ObjectUtils.assign(structure, getMixinStructureFuncs.fromExportableNode(node));
    return structure;
}


text:
package org.elasticsearch.common.lucene.search;

import org.apache.lucene.index.AtomicReader;
import org.apache.lucene.index.AtomicReaderContext;
import org.apache.lucene.queries.FilterClause;
import org.apache.lucene.search.BooleanClause.Occur;
import org.apache.lucene.search.DocIdSet;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.search.Filter;
import org.apache.lucene.util.Bits;
import org.apache.lucene.util.FixedBitSet;
import org.elasticsearch.common.lucene.docset.AllDocIdSet;
import org.elasticsearch.common.lucene.docset.DocIdSets;
import org.elasticsearch.common.lucene.docset.NotDocIdSet;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Similar to {@link org.apache.lucene.queries.BooleanFilter}.
 *

 * Our own variance mainly differs by the fact that we pass the acceptDocs down to the filters
 * and don't filter based on them at the end. Our logic is a bit different, and we filter based on that
 * at the top level filter chain.
 */
public class XBooleanFilter extends Filter implements Iterable<FilterClause> {

    final List<FilterClause> clauses = new ArrayList<FilterClause>();

    /**
     * Returns the a DocIdSetIterator representing the Boolean composition
     * of the filters that have been added.
     */
    @Override
    public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
        FixedBitSet res = null;
        final AtomicReader reader = context.reader();

        // optimize single case...
        if (clauses.size() == 1) {
            FilterClause clause = clauses.get(0);
            DocIdSet set = clause.getFilter().getDocIdSet(context, acceptDocs);
            if (clause.getOccur() == Occur.MUST_NOT) {
                if (DocIdSets.isEmpty(set)) {
                    return new AllDocIdSet(reader.maxDoc());
                } else {
                    return new NotDocIdSet(set, reader.maxDoc());
                }
            }
            // SHOULD or MUST, just return the set...
            if (DocIdSets.isEmpty(set)) {
                return null;
            }
            return set;
        }

        // first, go over and see if we can shortcut the execution
        // and gather Bits if we need to
        List<ResultClause> results = new ArrayList<ResultClause>(clauses.size());
        boolean hasShouldClauses = false;
        boolean hasNonEmptyShouldClause = false;
        boolean hasMustClauses = false;
        boolean hasMustNotClauses = false;
        for (int i = 0; i < clauses.size(); i++) {
            FilterClause clause = clauses.get(i);
            DocIdSet set = clause.getFilter().getDocIdSet(context, acceptDocs);
            if (clause.getOccur() == Occur.MUST) {
                hasMustClauses = true;
                if (DocIdSets.isEmpty(set)) {
                    return null;
                }
            } else if (clause.getOccur() == Occur.SHOULD) {
                hasShouldClauses = true;
                if (DocIdSets.isEmpty(set)) {
                    continue;
                }
                hasNonEmptyShouldClause = true;
            } else if (clause.getOccur() == Occur.MUST_NOT) {
                hasMustNotClauses = true;
                if (DocIdSets.isEmpty(set)) {
                    // we mark empty ones as null for must_not, handle it in the next run...
                    results.add(new ResultClause(null, null, clause));
                    continue;
                }
            }
            Bits bits = null;
            if (!DocIdSets.isFastIterator(set)) {
                bits = set.bits();
            }
            results.add(new ResultClause(set, bits, clause));
        }

        if (hasShouldClauses && !hasNonEmptyShouldClause) {
            return null;
        }

        // now, go over the clauses and apply the "fast" ones first...
        hasNonEmptyShouldClause = false;
        boolean hasBits = false;
        // But first we need to handle the "fast" should clauses, otherwise a should clause can unset docs
        // that don't match with a must or must_not clause.
        for (int i = 0; i < results.size(); i++) {
            ResultClause clause = results.get(i);
            // we apply bits in based ones (slow) in the second run
            if (clause.bits != null) {
                hasBits = true;
                continue;
            }
            if (clause.clause.getOccur() == Occur.SHOULD) {
                DocIdSetIterator it = clause.docIdSet.iterator();
                if (it == null) {
                    continue;
                }
                hasNonEmptyShouldClause = true;
                if (res == null) {
                    res = new FixedBitSet(reader.maxDoc());
                }
                res.or(it);
            }
        }

        // Now we safely handle the "fast" must and must_not clauses.
        for (int i = 0; i < results.size(); i++) {
            ResultClause clause = results.get(i);
            // we apply bits in based ones (slow) in the second run
            if (clause.bits != null) {
                hasBits = true;
                continue;
            }
            if (clause.clause.getOccur() == Occur.MUST) {
                DocIdSetIterator it = clause.docIdSet.iterator();
                if (it == null) {
                    return null;
                }
                if (res == null) {
                    res = new FixedBitSet(reader.maxDoc());
                    res.or(it);
                } else {
                    res.and(it);
                }
            } else if (clause.clause.getOccur() == Occur.MUST_NOT) {
                if (res == null) {
                    res = new FixedBitSet(reader.maxDoc());
                    res.set(0, reader.maxDoc()); // NOTE: may set bits on deleted docs
                }
                if (clause.docIdSet != null) {
                    DocIdSetIterator it = clause.docIdSet.iterator();
                    if (it != null) {
                        res.andNot(it);
                    }
                }
            }
        }

        if (!hasBits) {
            if (hasShouldClauses && !hasNonEmptyShouldClause) {
                return null;
            } else {
                return res;
            }
        }

        // we have some clauses with bits, apply them...
        // we let the "res" drive the computation, and check Bits for that
        List<ResultClause> orClauses = new ArrayList<ResultClause>();
        for (int i = 0; i < results.size(); i++) {
            ResultClause clause = results.get(i);
            if (clause.bits == null) {
                continue;
            }
            if (clause.clause.getOccur() == Occur.SHOULD) {
                if (hasMustClauses || hasMustNotClauses) {
                    orClauses.add(clause);
                } else {
                    if (res == null) {
                        DocIdSetIterator it = clause.docIdSet.iterator();
                        if (it == null) {
                            continue;
                        }
                        hasNonEmptyShouldClause = true;
                        res = new FixedBitSet(reader.maxDoc());
                        res.or(it);
                    } else if (!hasMustNotClauses && !hasMustClauses) {
                        for (int doc = 0; doc < reader.maxDoc(); doc++) {
                            if (!res.get(doc) && clause.bits.get(doc)) {
                                hasNonEmptyShouldClause = true;
                                res.set(doc);
                            }
                        }
                    }
                }
            } else if (clause.clause.getOccur() == Occur.MUST) {
                if (res == null) {
                    // nothing we can do, just or it...
                    res = new FixedBitSet(reader.maxDoc());
                    DocIdSetIterator it = clause.docIdSet.iterator();
                    if (it == null) {
                        return null;
                    }
                    res.or(it);
                } else {
                    Bits bits = clause.bits;
                    // use the "res" to drive the iteration
                    DocIdSetIterator it = res.iterator();
                    for (int doc = it.nextDoc(); doc != DocIdSetIterator.NO_MORE_DOCS; doc = it.nextDoc()) {
                        if (!bits.get(doc)) {
                            res.clear(doc);
                        }
                    }
                }
            } else if (clause.clause.getOccur() == Occur.MUST_NOT) {
                if (res == null) {
                    res = new FixedBitSet(reader.maxDoc());
                    res.set(0, reader.maxDoc()); // NOTE: may set bits on deleted docs
                    DocIdSetIterator it = clause.docIdSet.iterator();
                    if (it != null) {
                        res.andNot(it);
                    }
                } else {
                    Bits bits = clause.bits;
                    // let res drive the iteration
                    DocIdSetIterator it = res.iterator();
                    for (int doc = it.nextDoc(); doc != DocIdSetIterator.NO_MORE_DOCS; doc = it.nextDoc()) {
                        if (bits.get(doc)) {
                            res.clear(doc);
                        }
                    }
                }
            }
        }

        // From a boolean_logic behavior point of view a should clause doesn't have impact on a bool filter if there
        // is already a must or must_not clause. However in the current ES bool filter behaviour all should clauses
        // must match in order for a doc to be a match. What we do here is checking if matched docs match with any
        // should filter. TODO: Add an option to have disable minimum_should_match=1 behaviour
        if (!orClauses.isEmpty()) {
            DocIdSetIterator it = res.iterator();
            res: for (int setDoc = it.nextDoc(); setDoc != DocIdSetIterator.NO_MORE_DOCS; setDoc = it.nextDoc()) {
                for (ResultClause orClause : orClauses) {
                    if (orClause.bits.get(setDoc)) {
                        hasNonEmptyShouldClause = true;
                        continue res;
                    }
                }
                res.clear(setDoc);
            }
        }

        if (hasShouldClauses && !hasNonEmptyShouldClause) {
            return null;
        } else {
            return res;
        }

    }

    /**
     * Adds a new FilterClause to the Boolean Filter container
     *
     * @param filterClause A FilterClause object containing a Filter and an Occur parameter
     */
    public void add(FilterClause filterClause) {
        clauses.add(filterClause);
    }

    public final void add(Filter filter, Occur occur) {
        add(new FilterClause(filter, occur));
    }

    /**
     * Returns the list of clauses
     */
    public List<FilterClause> clauses() {
        return clauses;
    }

    /**
     * Returns an iterator on the clauses in this query. It implements the {@link Iterable} interface to
     * make it possible to do:
     *
for (FilterClause clause : booleanFilter) {}

     */
    public final Iterator<FilterClause> iterator() {
        return clauses().iterator();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if ((obj == null) || (obj.getClass() != this.getClass())) {
            return false;
        }

        final XBooleanFilter other = (XBooleanFilter) obj;
        return clauses.equals(other.clauses);
    }

    @Override
    public int hashCode() {
        return 657153718 ^ clauses.hashCode();
    }

    /**
     * Prints a user-readable version of this Filter.
     */
    @Override
    public String toString() {
        final StringBuilder buffer = new StringBuilder("BooleanFilter(");
        final int minLen = buffer.length();
        for (final FilterClause c : clauses) {
            if (buffer.length() > minLen) {
                buffer.append(' ');
            }
            buffer.append(c);
        }
        return buffer.append(')').toString();
    }

    static class ResultClause {
        public final DocIdSet docIdSet;
        public final Bits bits;
        public final FilterClause clause;

        ResultClause(DocIdSet docIdSet, Bits bits, FilterClause clause) {
            this.docIdSet = docIdSet;
            this.bits = bits;
            this.clause = clause;
        }
    }
}


text:
body {
    padding-top: 20px;
}

table.table td.fixed-width {
    max-width: 610px;
}

h1, h2, h3 {
    margin-top: 10px;
}

.footer-container {
    background: #f5f5f5;
    border-top: 2px solid #e7e7e7;
}

.home-page .breadcrumb {
    display: none;
}

.header {
    margin-bottom: 35px;
}

.categories-portlet .nav > li > a {
    padding: 5px 10px;
    color: #777777;
    border-bottom: 1px solid #e7e7e7;
}

.categories-portlet .nav .nav > li > a {
    padding-left: 25px;
}

.categories-portlet .nav > li.active > a {
    background: #f5f5f5;
    font-weight: bold;
    color: #428bca;
}

.main-image img {
    max-width: 100%;
}

img.inline {
    max-width: 100%;
}

.for-sale-standard-price {
    text-decoration: line-through;
}

.category .for-sale-standard-price {
    font-size: 16px;
    color: red;
}

.hidden-all {
    display: none;
}

/*star rating*/

.average-rating {
    overflow: hidden;
    cursor: pointer;
}

.star-rating {
    background-position: left top;
    height: 25px;
    list-style: none outside none;
    margin: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    width: 125px;
}

body.product .star-rating {
}

.star-rating li {
    display: inline;
}
.star-rating,
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus,
.star-rating .current-rating {
    background: url("../img/star.gif") repeat-x scroll left 0px rgba(0, 0, 0, 0);
}
.star-rating a, .star-rating .current-rating {
    border: medium none;
    height: 25px;
    left: 0;
    line-height: 25px;
    outline: medium none;
    overflow: hidden;
    position: absolute;
    text-indent: 1000em;
    top: 0;
}
.star-rating .current-rating {
    background-position: left center;
    z-index: 1;
}

.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus {
    background-position: left bottom;
}

.star-rating .current-rating {
    z-index:1;
    background-position: left center;
}

/* smaller star */
.small-star {
    width:50px;
    height:10px;
}

.small-star,
.small-star a:hover,
.small-star a:active,
.small-star a:focus,
.small-star .current-rating {
    background-image: url(../img/star_small.gif);
    line-height: 10px;
    height: 10px;
}

.big-stars .average-rating {
    float: right;
    margin-top: 20px;
}

.big-stars .big-star,
.small-stars .small-star{
    display: block;
}

.big-stars .small-star,
.small-stars .big-star {
    display: none;
}

.small-stars {
    position: relative;
    top: 14px;
    margin-left: 90px;
    z-index: 1;
    margin-right: 20px;
}

img.pull-left,
.pull-left img {
    margin-right: 10px;
}

img.pull-right,
.pull-right img{
    margin-left: 10px;
}

/*product page*/

body.product .tabs {
    margin-top: 20px;
}

body.product .sub-images {
    margin-top: 5px;
}

body.product .cp-properties {
margin-top: 10px;
}

body.product .prices {
    cursor: default;
}

body.product .tab-pane.active {
    padding: 10px;
    border: 1px solid #dddddd;
    border-top: none;
}

body.product .social {
    margin-top: 20px;
}

.product-data:hover {
    border-color: #777777;
    cursor: pointer;
}

.thumbnail {
    margin-bottom: 20px;
}

.shipping_checkbox .checkbox {
    margin: 0;
}

#lightbox-container-image-data-box {
    box-sizing: content-box;
}

.navbar-default {
    z-index: 1;
}

table.cp-properties.table {
    width: auto;
}

.cp-properties select.form-control {
    width: auto;
}

.accordion-group .navbars-collapse {
    max-height: none;
}

.accordion-group .navbars-collapse .nav {
    margin-bottom: 0;
    margin-top: -10px;
}

.accordion-group .navbars-collapse .nav > li > a {
    border-bottom: 1px solid #e7e7e7;
}

.accordion-group {
    float: right;
    clear: right;
    width: 100%;
    padding: 0 10px;
}

.accordion-group .accordion-body {
}

.accordion-body.cart-collapse .cart-portlet .panel.panel-default {
    background: transparent;
    border: none;
    box-shadow: none;
}

.accordion-body.user-collapse {
    padding-bottom: 10px;
}

.accordion-body.search-collapse .form-group,
.accordion-body.search-collapse .form-group input.form-control {
    display: inline-block;
}

.img-responsive {
    display: inline;
}

.cart-portlet .panel-default {
    padding: 3px;
}

#search-form {
    margin-bottom: 0;
    margin-top: 15px;
}

#livesearch-result {
    position: absolute;
    z-index: 2000;
    margin-left: 50px;
}

.pagination {
    margin: 0;
}

.addtocart {
    margin-top: 20px;
}

.input-group-addon {
    cursor: pointer;
}


text:
package org.cgfork.tools.common.convert;

/**
 * @author cgfork
 */
public class NoConverterException extends RuntimeException {
    private static final long serialVersionUID = 5278329773855894207L;
}


text:
package org.warmsheep.dao;

import org.warmsheep.entity.Ticker;

public interface IMarketDao {

	public void settingBTCMarket(Ticker ticker);

	public Ticker getBTCMarket();

	public void settingLTCMarket(Ticker ticker);

	public Ticker getLTCMarket();
}


text:
#ifndef VtkLoggingAdapter_H_HEADER_INCLUDED
#define VtkLoggingAdapter_H_HEADER_INCLUDED

#include <MitkCoreExports.h>
#include <vtkOutputWindow.h>
#include <vtkSmartPointer.h>

namespace mitk {
//##Documentation
//## @brief Adapter that overwrites the standard vtk logging output window and sends the logging messages to the MITK logging instead.
//## @ingroup IO
class MITK_CORE_EXPORT VtkLoggingAdapter : public vtkOutputWindow
{
public:

  static VtkLoggingAdapter* New();

  /** @brief Initializes the logging adapter. Vtk logging
    *        messages are redirected to MITK logging afterwards.
    */
  static void Initialize();

  virtual void DisplayText(const char* t);

  virtual void DisplayErrorText(const char *t);

  virtual void DisplayWarningText(const char *t);

  virtual void DisplayGenericWarningText(const char *t);

  virtual void DisplayDebugText(const char *t);

protected:

};

} // namespace mitk

#endif /* VtkLoggingAdapter_H_HEADER_INCLUDED */


text:
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AngleSharp.Dom.Html;
using AngleSharp.Parser.Html;

namespace VkNet.Utils
{
    using System;

    using Exception;

    /// <summary>
    /// WEB форма
    /// </summary>
    public sealed class WebForm
	{
		/// <summary>
		/// HTML документ
		/// </summary>
		private readonly IHtmlDocument _html;

		/// <summary>
		/// Коллекция input на форме
		/// </summary>
		private readonly Dictionary<string, string> _inputs;

		/// <summary>
		/// Наименование поля
		/// </summary>
		private string _lastName;

		/// <summary>
		/// Базовый URL-ответ
		/// </summary>
		/// <remarks>
		/// Если форма имеет относительный URL
		/// </remarks>
		private readonly string _responseBaseUrl;

		/// <summary>
		/// Cookies.
		/// </summary>
		public Cookies Cookies { get; private set; }

		/// <summary>
		/// WEB форма.
		/// </summary>
		/// <param name="result">Результат.</param>
		private WebForm(WebCallResult result)
		{
			Cookies = result.Cookies;
			OriginalUrl = result.RequestUrl.OriginalString;

            var parser = new HtmlParser();
            _html = parser.Parse(result.Response);

		    var uri = result.ResponseUrl;

            _responseBaseUrl = uri.Scheme + "://" + uri.Host + ":" + uri.Port;

			_inputs = ParseInputs();
		}

		/// <summary>
		/// Из результата.
		/// </summary>
		/// <param name="result">Результат.</param>
		/// <returns>WEB форма.</returns>
		public static WebForm From(WebCallResult result) => new WebForm(result);

        /// <summary>
        /// И.
        /// </summary>
        /// <returns>WEB форма.</returns>
        public WebForm And() => this;

        /// <summary>
        /// С полем.
        /// </summary>
        /// <param name="name">Наименование поля.</param>
        /// <returns>WEB форма.</returns>
        public WebForm WithField(string name)
		{
			_lastName = name;

			return this;
		}

		/// <summary>
		/// Заполнить поле с.
		/// </summary>
		/// <param name="value">Значение.</param>
		/// <returns>WEB форма.</returns>
		/// <exception cref="System.InvalidOperationException">Field name not set!</exception>
		public WebForm FilledWith(string value)
		{
			if (string.IsNullOrEmpty(_lastName))
			{
				throw new InvalidOperationException("Field name not set!");
			}

			if (_inputs.ContainsKey(_lastName))
			{
				_inputs[_lastName] = value;
			}
			else
			{
				_inputs.Add(_lastName, value);
			}

			return this;
		}

		/// <summary>
		/// URL действия.
		/// </summary>
		public string ActionUrl
		{
			get
			{
				var formNode = GetFormNode();

				if (formNode.Attributes["action"] == null)
				{
					return OriginalUrl;
				}

				var link = formNode.Attributes["action"].Value;
				if (!string.IsNullOrEmpty(link) && !link.StartsWith("http", StringComparison.Ordinal)) // относительный URL
				{
					link = _responseBaseUrl + link;
				}

				return link; // абсолютный путь
			}
		}

		public string OriginalUrl { get; }

        /// <summary>
        /// Получить запрос.
        /// </summary>
        /// <returns>Массив байт</returns>
        public byte[] GetRequest() => Encoding.UTF8.GetBytes(GetRequestAsStringArray().JoinNonEmpty("&"));

	    /// <summary>
		/// Получить запрос.
		/// </summary>
		/// <returns>Массив байт</returns>
		public IEnumerable<string> GetRequestAsStringArray() => _inputs.Select(x => $"{x.Key}={x.Value}");

	    /// <summary>
        /// Разобрать поля ввода.
        /// </summary>
        /// <returns>Коллекция полей ввода</returns>
        private Dictionary<string, string> ParseInputs()
		{
			var inputs = new Dictionary<string, string>();

			var form = GetFormNode();
			foreach (var node in form.GetElementsByTagName("input"))
            {
				var nameAttribute = node.Attributes["name"];
				var valueAttribute = node.Attributes["value"];

				var name = nameAttribute != null ? nameAttribute.Value : string.Empty;
				var value = valueAttribute != null ? valueAttribute.Value : string.Empty;

				if (string.IsNullOrEmpty(name))
				{
					continue;
				}

				inputs.Add(name, Uri.EscapeDataString(value));
			}

			return inputs;
		}

		/// <summary>
		/// Получить из HTML элемента.
		/// </summary>
		/// <returns>HTML элемент</returns>
		/// <exception cref="VkApiException">Элемент не найден на форме.</exception>
		private IHtmlFormElement GetFormNode()
		{
		    var form = _html.Forms.FirstOrDefault();

            if (form == null)
			{
				throw new VkApiException("Form element not found.");
			}

			return form;
		}
	}
}


text:
"""Common steps that can use used by any type of pipeline"""

from airflow import configuration

def default_config(section, key, value, fill_empty=False):
    if not configuration.has_option(section, key):
        configuration.set(section, key, value)
    if fill_empty and not configuration.get(section, key):
        configuration.set(section, key, value)

class Step:

    def __init__(self, task, task_id, priority_weight):
        self.task = task
        self.task_id = task_id
        self.priority_weight = priority_weight

initial_step = Step(None, None, 0)


text:
package proxy

import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"net/http"
	"net/http/httputil"
	"net/url"
)

func handleConfigRequest(resp http.ResponseWriter, req *http.Request, config *Config) {
	if req.Method == "GET" {
		json.NewEncoder(resp).Encode(config)
	} else if req.Method == "POST" {
		json.NewDecoder(req.Body).Decode(config)
		config.Load()
	}
}

func configHandler(handler http.Handler, config *Config) http.Handler {
	return http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
		if req.URL.Path == "/__betamax__/config" {
			handleConfigRequest(resp, req, config)
		} else {
			handler.ServeHTTP(resp, req)
		}
	})
}

func cassetteHandler(handler http.Handler, config *Config) http.Handler {
	return http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
		if config.Cassette == "" {
			handler.ServeHTTP(resp, req)
			return
		}

		if episode := findEpisode(req, config); config.RecordNewEpisodes && episode != nil {
			serveEpisode(episode, resp)
		} else {
			if !config.DenyUnrecordedRequests {
				serveAndRecord(resp, req, handler, config)
			} else {
				resp.WriteHeader(403)
			}
		}
	})
}

func rewriteHeaderHandler(handler http.Handler, config *Config) http.Handler {
	return http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
		if config.RewriteHostHeader {
			req.Host = config.TargetHost
		}

		handler.ServeHTTP(resp, req)
	})
}

// reads all bytes of the request into memory
// returns the read bytes and replaces the request's Reader
// with a refilled reader. seems like there should be a better
// way to do this.
func peekBytes(req *http.Request) (body []byte, err error) {
	body, err = ioutil.ReadAll(req.Body)
	req.Body = ioutil.NopCloser(bytes.NewReader(body))
	return
}

func peekForm(req *http.Request) (form url.Values, err error) {
	body, err := ioutil.ReadAll(req.Body)
	req.Body = ioutil.NopCloser(bytes.NewReader(body))

	err = req.ParseMultipartForm(10000)
	form = req.Form
	req.Body = ioutil.NopCloser(bytes.NewReader(body))
	return
}

func sameURL(a *url.URL, b *url.URL) bool {
	return a.Path == b.Path && a.RawQuery == b.RawQuery && a.Fragment == b.Fragment
}

func sameHeaders(recorded http.Header, newRequest http.Header, config Config) bool {
	for _, header := range config.MatchHeaders {
		for i, _ := range newRequest[header] {
			if len(newRequest[header]) != len(recorded[header]) {
				return false
			}

			if newRequest[header][i] != recorded[header][i] {
				return false
			}
		}
	}
	return true
}

func sameRequest(a *RecordedRequest, b *http.Request, config Config) bool {
	if a.Method != b.Method {
		return false
	}

	if !sameURL(a.URL, b.URL) {
		return false
	}

	if !sameHeaders(a.Header, b.Header, config) {
		return false
	}

	form, _ := peekForm(b)

	for key, _ := range form {
		if len(a.Form[key]) != len(form[key]) {
			return false
		}

		for i, _ := range form[key] {
			if a.Form[key][i] != form[key][i] {
				return false
			}
		}
	}

	if len(form) == 0 {
		body, _ := peekBytes(b)
		if bytes.Compare(a.Body, body) != 0 {
			return false
		}
	}

	return true
}

func serveAndRecord(resp http.ResponseWriter, req *http.Request, handler http.Handler, config *Config) {
	proxyWriter := ProxyResponseWriter{Writer: resp}
	recordedRequest := recordRequest(req)

	handler.ServeHTTP(&proxyWriter, req)
	writeEpisode(Episode{Request: recordedRequest, Response: proxyWriter.Response}, config)
}

func recordRequest(req *http.Request) RecordedRequest {
	body, _ := peekBytes(req)
	form, _ := peekForm(req)
	return RecordedRequest{
		URL:    req.URL,
		Header: req.Header,
		Method: req.Method,
		Body:   body,
		Form:   form,
	}
}

func writeEpisode(episode Episode, config *Config) {
	config.Episodes = append(config.Episodes, episode)
	config.Save()
}

func findEpisode(req *http.Request, config *Config) *Episode {
	for _, episode := range config.Episodes {
		if sameRequest(&episode.Request, req, *config) {
			return &episode
		}
	}
	return nil
}

func serveEpisode(episode *Episode, resp http.ResponseWriter) {
	for k, values := range episode.Response.Header {
		for _, value := range values {
			resp.Header().Add(k, value)
		}
	}
	resp.WriteHeader(episode.Response.StatusCode)
	resp.Write(episode.Response.Body)
}

func Proxy(target *url.URL, cassetteDir string) http.Handler {
	config := &Config{CassetteDir: cassetteDir, RecordNewEpisodes: true, RewriteHostHeader: true, TargetHost: target.Host}

	cassetteHandler := cassetteHandler(httputil.NewSingleHostReverseProxy(target), config)
	rewriteHeaderHandler := rewriteHeaderHandler(cassetteHandler, config)
	return configHandler(rewriteHeaderHandler, config)
}


text:
package org.keycloak.testsuite.arquillian.undertow;

import io.undertow.Undertow;
import io.undertow.servlet.Servlets;
import io.undertow.servlet.api.DefaultServletConfig;
import io.undertow.servlet.api.DeploymentInfo;
import io.undertow.servlet.api.FilterInfo;
import io.undertow.servlet.api.ServletInfo;
import org.jboss.arquillian.container.spi.client.container.DeployableContainer;
import org.jboss.arquillian.container.spi.client.container.DeploymentException;
import org.jboss.arquillian.container.spi.client.container.LifecycleException;
import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription;
import org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext;
import org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData;
import org.jboss.arquillian.container.spi.client.protocol.metadata.Servlet;
import org.jboss.logging.Logger;
import org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer;
import org.jboss.resteasy.spi.ResteasyDeployment;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.descriptor.api.Descriptor;
import org.jboss.shrinkwrap.undertow.api.UndertowWebArchive;
import org.keycloak.services.filters.KeycloakSessionServletFilter;
import org.keycloak.services.resources.KeycloakApplication;

import javax.servlet.DispatcherType;
import java.util.Collection;
import java.util.Map;

public class CustomUndertowContainer implements DeployableContainer<CustomUndertowContainerConfiguration> {

    protected final Logger log = Logger.getLogger(this.getClass());

    private UndertowJaxrsServer undertow;
    private CustomUndertowContainerConfiguration configuration;

    private DeploymentInfo createAuthServerDeploymentInfo() {
        ResteasyDeployment deployment = new ResteasyDeployment();
        deployment.setApplicationClass(KeycloakApplication.class.getName());

        DeploymentInfo di = undertow.undertowDeployment(deployment);
        di.setClassLoader(getClass().getClassLoader());
        di.setContextPath("/auth");
        di.setDeploymentName("Keycloak");

        di.setDefaultServletConfig(new DefaultServletConfig(true));
        di.addWelcomePage("theme/keycloak/welcome/resources/index.html");

        FilterInfo filter = Servlets.filter("SessionFilter", KeycloakSessionServletFilter.class);
        di.addFilter(filter);
        di.addFilterUrlMapping("SessionFilter", "/*", DispatcherType.REQUEST);

        return di;
    }

    public DeploymentInfo getDeplotymentInfoFromArchive(Archive<?> archive) {
        if (archive instanceof UndertowWebArchive) {
            return ((UndertowWebArchive) archive).getDeploymentInfo();
        } else {
            throw new IllegalArgumentException("UndertowContainer only supports UndertowWebArchive or WebArchive.");
        }
    }

    private HTTPContext createHttpContextForDeploymentInfo(DeploymentInfo deploymentInfo) {
        HTTPContext httpContext = new HTTPContext(configuration.getBindAddress(), configuration.getBindHttpPort());
        final Map<String, ServletInfo> servlets = deploymentInfo.getServlets();
        final Collection<ServletInfo> servletsInfo = servlets.values();
        for (ServletInfo servletInfo : servletsInfo) {
            httpContext.add(new Servlet(servletInfo.getName(), deploymentInfo.getContextPath()));
        }
        return httpContext;
    }

    @Override
    public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException {
        DeploymentInfo di = getDeplotymentInfoFromArchive(archive);
        undertow.deploy(di);
        return new ProtocolMetaData().addContext(
                createHttpContextForDeploymentInfo(di));
    }

    @Override
    public void deploy(Descriptor descriptor) throws DeploymentException {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public Class<CustomUndertowContainerConfiguration> getConfigurationClass() {
        return CustomUndertowContainerConfiguration.class;
    }

    @Override
    public ProtocolDescription getDefaultProtocol() {
        return new ProtocolDescription("Servlet 3.1");
    }

    @Override
    public void setup(
            CustomUndertowContainerConfiguration undertowContainerConfiguration) {
        this.configuration = undertowContainerConfiguration;
    }

    @Override
    public void start() throws LifecycleException {
        log.info("Starting auth server on embedded Undertow.");
        long start = System.currentTimeMillis();

        if (undertow == null) {
            undertow = new UndertowJaxrsServer();
        }
        undertow.start(Undertow.builder()
                .addHttpListener(configuration.getBindHttpPort(), configuration.getBindAddress())
                .setWorkerThreads(configuration.getWorkerThreads())
                .setIoThreads(configuration.getWorkerThreads() / 8)
        );

        undertow.deploy(createAuthServerDeploymentInfo());

        log.info("Auth server started in " + (System.currentTimeMillis() - start) + " ms\n");
    }

    @Override
    public void stop() throws LifecycleException {
        log.info("Stopping auth server.");
        undertow.stop();
    }

    @Override
    public void undeploy(Archive<?> archive) throws DeploymentException {
        throw new UnsupportedOperationException("Not implemented");
    }

    @Override
    public void undeploy(Descriptor descriptor) throws DeploymentException {
        throw new UnsupportedOperationException("Not implemented");
    }

}


text:
@class SSHSession;
@interface SSHChannel : NSObject

- (instancetype)initWithSession:(SSHSession*)session Channel:(LIBSSH2_CHANNEL*)channel;
- (void)dealloc;

- (NSData*)read:(int*)error;
- (int)write:(NSData*)data :(int*)error;

- (BOOL)isEOF;
- (int)close;

@end


text:
=head1 CONTACT

  Please email comments or questions to the public Ensembl
  developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.

  Questions may also be sent to the Ensembl help desk at
  <helpdesk.org>.

=cut

use strict;
use warnings;

use Bio::Index::Fastq;

my $index_filename = shift(@ARGV);

my $inx = Bio::Index::Fastq->new(-filename => $index_filename,
				 -write_flag => 1);

$inx->make_index(@ARGV);

exit 0;


text:
/**
 * @ngdoc controller
 * @name myapp:brandCtrl
 *
 * @description
 *
 *
 * @requires $scope
 * */
myApp.controller('brandCtrl', function($scope,$http){
    var currIndex = 0;
    $scope.myInterval = 5000;
    var promoUrl='/api/promotion/';
   $http.get(promoUrl).then(function(result){
       $scope.slides=result.data;
       for (i = 0; i < $scope.slides.length; i++) {
           $scope.slides[i].slideid=currIndex++;
       }
       console.log($scope.slides)
   });

});


text:
<!DOCTYPE html>

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

    <meta name="description" content="150 words">
    <meta name="author" content="uipasta">
    <meta name="url" content="http://www.yourdomainname.com">
    <meta name="copyright" content="company name">
    <meta name="robots" content="index,follow">

    <title>DevBlog - Personal Blog Template</title>

    <link rel="shortcut icon" href="images/favicon/favicon.ico">
    <link rel="apple-touch-icon" sizes="144x144" type="image/x-icon" href="../Files/images/apple-touch-icon.png">

    <link rel="stylesheet" type="text/css" href="../Files/css/plugin.css">

    <link rel="stylesheet" type="text/css" href="../Files/css/style.css">

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:400,300,500,600,700">

    <link rel="stylesheet" type="text/css" href="../Files/css/shCore.css">
    <link rel="stylesheet" type="text/css" href="../Files/css/shThemeDefault.css">

Back Home

@Model.Title

                                    @Model.CreatedOn.ToString("F") / by @Model.Author

@Model.Content

Article By @Model.Author

You can use about author box when someone guest post on your blog, GitHub

Discuss about post

			  Please enable JavaScript to view the comments powered by Disqus.

                           <form id="mc-form" method="post" action="http://uipasta.us14.list-manage.com/subscribe/post?u=854825d502cdc101233c08a21&id=86e84d44b7">

							 <input id="mc-email" type="email" placeholder="Email Address" class="text-input">
							  <button class="submit-btn" type="submit">Submit</button>

Subscribe to my weekly newsletter

							  </form>

Read Also

       How to make your company website based on bootstrap framework...


text:
package com.continuuity.loom.codec.json.current;

import com.continuuity.loom.spec.plugin.ParameterType;
import com.continuuity.loom.spec.plugin.ParametersSpecification;
import com.continuuity.loom.spec.plugin.ProviderType;
import com.continuuity.loom.spec.plugin.ResourceTypeSpecification;
import com.google.common.reflect.TypeToken;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;

import java.lang.reflect.Type;
import java.util.Map;

/**
 * Codec for deserializing a {@link com.continuuity.loom.spec.plugin.ProviderType}.
 * Used so that the constructor is called to avoid null values where they do not make sense.
 */
public class ProviderTypeCodec implements JsonDeserializer<ProviderType> {

  @Override
  public ProviderType deserialize(JsonElement json, Type type, JsonDeserializationContext context)
    throws JsonParseException {
    JsonObject jsonObj = json.getAsJsonObject();

    String name = context.deserialize(jsonObj.get("name"), String.class);
    String description = context.deserialize(jsonObj.get("description"), String.class);
    Map<ParameterType, ParametersSpecification> parameters = context.deserialize(
      jsonObj.get("parameters"), new TypeToken<Map<ParameterType, ParametersSpecification>>() {}.getType());
    Map<String, ResourceTypeSpecification> resourceTypes = context.deserialize(
      jsonObj.get("resourceTypes"), new TypeToken<Map<String, ResourceTypeSpecification>>() {}.getType());

    return new ProviderType(name, description, parameters, resourceTypes);
  }
}


text:
package net.liftweb {
package builtin {
package snippet {

import _root_.net.liftweb.http._
import _root_.scala.xml._

/**
* Display Blueprint CSS headers
*/
object CSS extends DispatchSnippet {
  def dispatch: DispatchIt = {
    case "blueprint" => _ => blueprint
    case "fancyType" => _ => fancyType
  }

  def blueprint: NodeSeq = {
    <xml:group>
      <link rel="stylesheet" href={"/" + LiftRules.resourceServerPath +
                                   "/blueprint/screen.css"} type="text/css"
        media="screen, projection"/>
      <link rel="stylesheet" href={"/" + LiftRules.resourceServerPath +
                                   "/blueprint/print.css"} type="text/css" media="print"/>
    </xml:group>  ++
    Unparsed("""
  <!--[if IE]><link rel="stylesheet" href="""+'"'+S.contextPath+"""/""" +
             LiftRules.resourceServerPath+
             """/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
    """)
  }

  def fancyType: NodeSeq = {
    <link rel="stylesheet" href={"/" + LiftRules.resourceServerPath +
                                 "/blueprint/plugins/fancy-type/screen.css"}
      type="text/css" media="screen, projection"/>
  }
}

}
}
}


text:
layout: page
title: Dudley 35th Anniversary
date: 2016-05-24
author: Larry Chang
tags: weekly links, java
status: published
summary: Nam vehicula pretium massa quis lacinia. Phasellus commodo felis eget.
banner: images/banner/leisure-03.jpg
booking:
  startDate: 04/23/2019
  endDate: 04/24/2019
  ctyhocn: TRCHAHX
  groupCode: D3A
published: true
---
Quisque rhoncus tortor nec dictum lobortis. Suspendisse in ipsum sed purus hendrerit luctus vitae vitae velit. Fusce a interdum nibh, a vestibulum lorem. Suspendisse quis blandit metus, in mollis risus. Curabitur fermentum magna est, eget ullamcorper libero tempus vel. Aliquam in nibh vel nibh dapibus ultrices at mattis tortor. Sed nisl justo, viverra quis lacinia volutpat, bibendum vel orci. Curabitur a justo vulputate, gravida enim at, scelerisque libero. Maecenas nulla dolor, imperdiet ut ornare eget, porta at dui.
Quisque blandit, arcu id condimentum auctor, felis turpis tristique est, quis efficitur lacus justo nec elit. Nam venenatis aliquam lectus, ullamcorper laoreet metus facilisis non. Curabitur consequat vulputate dapibus. Donec ornare a velit eget posuere. Fusce nisl libero, facilisis at odio eget, ornare finibus elit. Ut sed interdum mauris. Donec erat eros, auctor a tempor nec, aliquet sed nisi. Ut dolor ex, auctor eget iaculis a, euismod nec ex. Suspendisse et justo purus. Donec justo augue, ullamcorper eu ornare eget, mattis ac massa.

* In in urna id augue imperdiet gravida eget vehicula quam
* Pellentesque a nunc vel massa tempus elementum ut ut lectus
* Ut tincidunt nisi vitae metus commodo, at pretium ligula bibendum
* Suspendisse sed odio egestas tellus elementum aliquam eget ac neque.

Aenean varius vehicula condimentum. Cras vitae elit eget mi faucibus scelerisque auctor a mauris. Vestibulum in magna sit amet ligula dignissim mollis. Quisque ac euismod tellus, condimentum efficitur lectus. Vivamus tempor molestie molestie. Maecenas aliquam magna eleifend dui blandit viverra vitae ac est. Nunc non elit nisl. Maecenas venenatis leo a massa facilisis porta. Integer porttitor erat in lacus finibus, non consequat sem mollis. Donec et massa non tortor posuere interdum quis eu metus.