text:
// Copyright (c) 2014 Christian Crowhurst.  All rights reserved.
// see LICENSE

using CcAcca.CacheAbstraction.Statistics;
using NUnit.Framework;

namespace CcAcca.CacheAbstraction.Test
{
    [TestFixture]
    public class CacheAdministatorExamples
    {
        private CacheAdministator _administator;

        [SetUp]
        public void Setup()
        {
            _administator = new CacheAdministator();
        }

        [Test]
        public void Register_ShouldExtendCacheWithStatisticsDecorator()
        {
            // given
            ICache cache = NewCache();
            Assert.That(cache.IsDecoratedWith<IStatisticsCache>(), Is.False, "checking assumptions");

            // when
            cache = _administator.Register(cache);

            // then
            Assert.That(cache.IsDecoratedWith<IStatisticsCache>(), Is.True);
        }

        [Test]
        public void Unregister_ShouldRemoveStatisticsDecorator()
        {
            // given
            ICache cache = NewCache();
            cache = _administator.Register(cache);

            // when
            cache = _administator.Unregister(cache);

            // then
            Assert.That(cache.IsDecoratedWith<IStatisticsCache>(), Is.False);
        }

        [Test]
        public void Unregister_ShouldNotRemoveStatisticsDecoratorAddedBeforeRegistration()
        {
            // given
            ICache cache = NewCache();
            cache = cache.DecorateWith(new CacheDecoratorOptions {IsStatisticsOn = true});
            cache = _administator.Register(cache);

            // when
            cache = _administator.Unregister(cache);

            // then
            Assert.That(cache.IsDecoratedWith<IStatisticsCache>(), Is.True);
        }

        private static ICache NewCache()
        {
            return new SimpleInmemoryCache();
        }
    }
}


text:
package prassee

import com.twitter.finagle.{ Service, Filter }
import com.twitter.finagle.http.{ Response, Request }
import com.twitter.util.Future
import data.UserData
import org.jboss.netty.handler.codec.http.HttpHeaders.Names
import org.jboss.netty.handler.codec.http.HttpResponseStatus

/*
 *
 */
class PageCrawlFilter extends Filter[Request, Response, Request, Response] {

  override def apply(request: Request,
    continue: Service[Request, Response]): Future[Response] = {
    if (request.path.startsWith("/api/")) {
      request.headers().contains(Names.AUTHORIZATION)
      continue(request)
    } else {
      unauthorized(request)
    }
  }

  def unauthorized(request: Request): Future[Response] =
    Future.value(Response(request.getProtocolVersion(), HttpResponseStatus.UNAUTHORIZED))
}

redpajama_set_name: RedPajamaGithub


text:
using DragonSpark.Compose.Model.Selection;
using DragonSpark.Model;
using DragonSpark.Model.Results;
using DragonSpark.Model.Selection;
using System;

namespace DragonSpark.Compose.Model.Validation;

public sealed class AssignedOutputOtherwiseContext<TIn, TOut> : OutputOtherwiseContext<TIn, TOut>
{
	public AssignedOutputOtherwiseContext(ISelect<TIn, TOut> subject)
		: base(subject, Is.Assigned<TOut>()) {}

	public Selector<TIn, TOut> Throw() => Throw(AssignedResultMessage.Default);

	public Selector<TIn, TOut> Throw(IResult<string> message)
		=> Throw(message.Then().Accept<Type>().Return());

	public Selector<TIn, TOut> Throw(ISelect<Type, string> message)
		=> Throw(Start.A.Selection<TIn>()
		              .AndOf<Type>()
		              .By.Cast.Or.Return(A.Type<TOut>())
		              .Select(message));

	public Selector<TIn, TOut> Throw(ISelect<TIn, string> message) => Throw(message.Get);

	public Selector<TIn, TOut> Throw(Func<TIn, string> message)
		=> new AssignedOutputThrowContext<TIn, TOut>(this).WithMessage(message);
}


text:
import java.util.Collection;
import java.util.Collections;

public class IDEABug {

  static class ClassA {
    static <T> void sayHello(Collection<? extends T> msg) {}
  }

  static class ClassB extends ClassA {
    static <T extends String> void sayHello(Collection<? extends T> msg) {}
  }

  public static void main(String[] args) {
    ClassB.sayHello(Collections.<String>emptyList());
  }
}


text:
package io.bootique.test.junit;

import io.bootique.BQCoreModule;
import io.bootique.BQRuntime;
import io.bootique.di.Binder;
import io.bootique.di.BQModule;
import org.junit.Rule;
import org.junit.Test;

public class BQRuntimeCheckerTest {

    @Rule
    public BQTestFactory testFactory = new BQTestFactory();

    @Test
    public void testTestModulesLoaded() {
        final BQRuntime runtime = testFactory.app().createRuntime();
        BQRuntimeChecker.testModulesLoaded(runtime, BQCoreModule.class);
    }

    @Test(expected = AssertionError.class)
    public void testTestModulesNotLoaded() {
        final BQRuntime runtime = testFactory.app().createRuntime();
        BQRuntimeChecker.testModulesLoaded(runtime, NonLoadedModule.class);
    }

    static class NonLoadedModule implements BQModule {

        @Override
        public void configure(Binder binder) {
        }
    }
}


text:
<?php

namespace KzykHys\ZipFinder\Provider;

use KzykHys\ZipFinder\Bridge\Symfony\Encoder\PhpEncoder;
use Silex\Application;
use Silex\ServiceProviderInterface;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Encoder\XmlEncoder;
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
use Symfony\Component\Serializer\Serializer;

/**
 * Provides symfony/serializer
 *
 * @author Kazuyuki Hayashi <hayashi@valur.net>
 */
class SerializerServiceProvider implements ServiceProviderInterface
{

    /**
     * {@inheritdoc}
     */
    public function register(Application $app)
    {
        $app['serializer.encoders'] = $app->share(function () {
            return array(new XmlEncoder(), new JsonEncoder(), new PhpEncoder());
        });

        $app['serializer'] = $app->share(function (Application $app) {
            return new Serializer(array(new GetSetMethodNormalizer()), $app['serializer.encoders']);
        });
    }

    /**
     * {@inheritdoc}
     */
    public function boot(Application $app)
    {
    }

}


text:
using testing::_;
using testing::Invoke;

namespace Envoy {
namespace Extensions {
namespace AccessLoggers {
namespace HttpGrpc {
namespace {

class HttpGrpcAccessLogConfigTest : public testing::Test {
public:
  void SetUp() override {
    factory_ =
        Registry::FactoryRegistry<Server::Configuration::AccessLogInstanceFactory>::getFactory(
            "envoy.access_loggers.http_grpc");
    ASSERT_NE(nullptr, factory_);

    message_ = factory_->createEmptyConfigProto();
    ASSERT_NE(nullptr, message_);
  }

  void run(const std::string cluster_name) {
    const auto good_cluster = "good_cluster";
    EXPECT_CALL(context_.cluster_manager_, checkActiveStaticCluster(cluster_name))
        .WillOnce(Invoke([good_cluster](const std::string& cluster_name) {
          if (cluster_name != good_cluster) {
            throw EnvoyException("fake");
          }
        }));

    auto* common_config = http_grpc_access_log_.mutable_common_config();
    common_config->set_log_name("foo");
    common_config->mutable_grpc_service()->mutable_envoy_grpc()->set_cluster_name(cluster_name);
    common_config->set_transport_api_version(envoy::config::core::v3::ApiVersion::V3);
    TestUtility::jsonConvert(http_grpc_access_log_, *message_);

    if (cluster_name == good_cluster) {
      EXPECT_CALL(context_.cluster_manager_.async_client_manager_, factoryForGrpcService(_, _, _))
          .WillOnce(Invoke([](const envoy::config::core::v3::GrpcService&, Stats::Scope&, bool) {
            return std::make_unique<NiceMock<Grpc::MockAsyncClientFactory>>();
          }));
      AccessLog::InstanceSharedPtr instance =
          factory_->createAccessLogInstance(*message_, std::move(filter_), context_);
      EXPECT_NE(nullptr, instance);
      EXPECT_NE(nullptr, dynamic_cast<HttpGrpcAccessLog*>(instance.get()));
    } else {
      EXPECT_THROW_WITH_MESSAGE(
          factory_->createAccessLogInstance(*message_, std::move(filter_), context_),
          EnvoyException, "fake");
    }
  }

  AccessLog::FilterPtr filter_;
  NiceMock<Server::Configuration::MockServerFactoryContext> context_;
  envoy::extensions::access_loggers::grpc::v3::HttpGrpcAccessLogConfig http_grpc_access_log_;
  ProtobufTypes::MessagePtr message_;
  Server::Configuration::AccessLogInstanceFactory* factory_{};
};

// Normal OK configuration.
TEST_F(HttpGrpcAccessLogConfigTest, Ok) { run("good_cluster"); }

// Wrong configuration with invalid clusters.
TEST_F(HttpGrpcAccessLogConfigTest, InvalidCluster) { run("invalid"); }

} // namespace
} // namespace HttpGrpc
} // namespace AccessLoggers
} // namespace Extensions
} // namespace Envoy


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

var requiredEnvironmentVariables = [
  'AV_ACCOUNTNAME',
  'AV_PROJECTSLUG',
  'AV_TOKEN'
];

for(var e=0;e<requiredEnvironmentVariables.length;e++)
{
  console.log('checking', requiredEnvironmentVariables[e]);
  ensureEnvironmentVariableIsSet(requiredEnvironmentVariables[e]);
}

axios({
  method: 'post',
  url: 'https://ci.appveyor.com/api/builds',
  headers: {
    'Content-type': 'application/json',
    'Authorization': 'Bearer ' + process.env.AV_TOKEN
  },
  data: {
    accountName: process.env.AV_ACCOUNTNAME,
    projectSlug: process.env.AV_PROJECTSLUG,
    branch: process.env.AV_BRANCH ? process.env.AV_BRANCH : process.env.TRAVIS_BRANCH
  }
})
.then(function(response){
  if(response.data && response.data.buildId && response.data.buildId>1)
  {
    console.log('Linux build complete. Windows build starting at: https://ci.appveyor.com/project/' + process.env.AV_ACCOUNTNAME + '/' + process.env.AV_PROJECTSLUG + '/build/' + response.data.version);
  } else {
    console.error(response);
    die();
  }
})
.catch(function(err) {
  console.error(err);
  die();
});

function die() {
  console.error('\nERROR: I could not start the Windows test suite on AppVeyor.\n\nPlease ensure that you\'ve set the following environment variables: AV_ACCOUNTNAME, AV_BRANCH, AV_PROJECTSLUG and the following secure (encrypted) TravisCI environment variables: AV_BEARER. \n\nHint: Are you sure you\'ve regenerated the encrypted / secure environment variabes in the .travis.yml? The ones included by default in that file are the repo maintainers and will not work on your fork of this project.\n');
  process.exit(1);
}

function ensureEnvironmentVariableIsSet(envName) {
  if(!process.env[envName])
  {
    console.error('ERROR: The environment variable '+ envName + ' was not set and is required to run windows tests.');
    process.exit(1);
  }
}


text:
type Data = Array<number> | Int8Array | Int16Array | Int32Array |
            Uint8Array | Uint16Array | Uint32Array |
            Float32Array | Float64Array | Uint8ClampedArray;

interface ndarray {
    data: Data;
    shape: number[];
    stride: number[];
    offset: number;
    dtype: 'int8' | 'int16' | 'int32' | 'uint8' | 'uint16' |'uint32' |
           'float32' | 'float64' | 'array'| 'uint8_clamped' | 'buffer' | 'generic';
    size: number;
    order: number[];
    dimension: number;
    get(...args: number[]): number;
    set(...args: number[]): number;
    index(...args: number[]): number;
    lo(...args: number[]): ndarray;
    hi(...args: number[]): ndarray;
    step(...args: number[]): ndarray;
    transpose(...args: number[]): ndarray;
    pick(...args: number[]): ndarray;
}

declare function ndarray(
    data: Data, shape?: number[], stride?: number[], offset?: number
): ndarray;

export = ndarray;


text:
<!DOCTYPE html>

    <title>Bungloo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="css/default.css" type="text/css" />


text:
package com.hevelian.identity.auth.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.hevelian.identity.core.exc.NotImplementedException;
import com.hevelian.identity.users.model.Role;

@RestController
@RequestMapping(path = "/LoggedUserService")
public class LoggedUserController {

  @RequestMapping(path = "/changePassword", method = RequestMethod.POST)
  public void changePassword(String oldPassword, String password) {
    // TODO to implement. Passwords should be stored in a hashed form.
    throw new NotImplementedException();
  }

  @RequestMapping(path = "/getRoles", method = RequestMethod.GET)
  public Role[] getRoles() {
    throw new NotImplementedException();
  }
}


text:
<?php
//----------------------------------------------------------------------
// Copyright (c) 2012-2016 Raytheon BBN Technologies
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and/or hardware specification (the "Work") to
// deal in the Work without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Work, and to permit persons to whom the Work
// is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Work.
//
// THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS
// IN THE WORK.
//----------------------------------------------------------------------
require_once('db_utils.php');
require_once('ldap_utils.php');
require_once('geni_syslog.php');
require_once('response_format.php');
require_once('ssha.php');
require_once('ar_constants.php');
require_once('institutions.php');
include_once('/etc/geni-ar/settings.php');

// Generate a random string (nums, uppercase, lowercase) of width $width
function random_id($width=6) {
    $result = '';
    for ($i=0; $i < $width; $i++) {
        $result .= base_convert(strval(rand(0, 35)), 10, 36);
    }
    return strtoupper($result);
}

// returns the domain from $email, returns "" if not an email address
function get_domain($email) {
    $tmp = explode("@", $email);
    if(count($tmp) != 2) {
        return "";
    } else {
        return $tmp[1];
    }
}

// make a new /confirmemail.php?id=XXX&n=YYY link for use in email confirmation email
function create_email_confirm_link($base_path, $id1, $id2) {
    global $acct_manager_url;
    $base_url = parse_url($acct_manager_url);
    $path = dirname($base_path);
    $path .= "/confirmemail.php?id=$id1&n=$id2";
    $url = $base_url["scheme"] . "://" . $base_url["host"] . "$path";
    return $url;
}

// Insert the password change request into the idp_email_confirm table
function insert_email_confirm($email, $nonce) {
    $db_conn = db_conn();
    $sql = "insert into idp_email_confirm (email, nonce) values (";
    $sql .= $db_conn->quote($email, 'text');
    $sql .= ', ';
    $sql .= $db_conn->quote($nonce, 'text');
    $sql .= ") returning id, created";

    $db_result = db_fetch_row($sql, "insert idp_email_confirm");
    $result = false;
    if ($db_result[RESPONSE_ARGUMENT::CODE] == RESPONSE_ERROR::NONE) {
        $result = $db_result[RESPONSE_ARGUMENT::VALUE];
    } else {
        error_log("Error inserting password reset record: "
                  . $db_result[RESPONSE_ARGUMENT::OUTPUT]);
    }
    return $result;
}

// Email requester about their request
function send_user_confirmation_email($user_email, $confirm_url) {
  global $AR_EMAIL_HEADERS;
  $subject = "GENI Account Request Email Confirmation";
  $body = 'Thank you for requesting an Identity Provider account with GENI. ';
  $body .= "Please confirm your email address by clicking this link:\n\n $confirm_url \n\n";
  $body .= "You will be contacted if there are any questions about your request and notified when the account has been created.";
  $body .= "\n\n";
  $body .= "Thanks,\n";
  $body .= "GENI Operations\n";
  $headers = $AR_EMAIL_HEADERS;
  mail($user_email, $subject, $body, $headers);
}

function print_errors($errors) {
  print "
Problems with request
";
  print "
Please fix the following problems with your request:
";
  print "
";
  foreach ($errors as $error) {
    print "
$error
";
  }
  print "
";
  print "Back";
}

$errors = array();

// We'll get 'username', but the column is 'username_requested'
if (array_key_exists('username', $_REQUEST) && $_REQUEST['username']) {
  $_REQUEST['username_requested'] = $_REQUEST['username'];
  unset($_REQUEST['username']);
} else {
  $errors[] = "No username specified.";
  // Do this to avoid an unnecessary message to the user
  // about 'username_requested' not specified.
  $_REQUEST['username_requested'] = ' ';
}

$p1 = null;
$p2 = null;
$email = null;
$ldapconn = ldap_setup();
if ($ldapconn === -1) {
  print "Failed to connect to ldap server";
  exit();
}

$uid = $_REQUEST['username_requested'];
$acct_exists = ldap_check_account($ldapconn,$uid);

//sanity checks - does username exist, does email exist
//is username properly formed (1-8 characters, lower case letters and numbers only)

// Todo: can we make it so that this gets checked before they submit?
if ($acct_exists) {
  $errors[] = "The username " . $uid . " is already in use.";
}

//check if there is already an account for this email
if (array_key_exists('email', $_REQUEST) && $_REQUEST['email']) {
  $email = $_REQUEST['email'];
  if (ldap_check_email($ldapconn, $email)) {
    $errors[] = "An account for this email address already exists.";
  }
}

// Get a database connection so that values can be quoted
$db_conn = db_conn();

//check if there is a pending request for this username
$sql = "SELECT * from idp_account_request where username_requested = ";
$sql .= $db_conn->quote($uid, 'text');
$result = db_fetch_rows($sql);
if ($result['code'] != 0) {
  print("Postgres database query failed");
  error_log("Postgres database query failed");
  exit();
}
if (count($result['value']) != 0) {
  foreach ($result['value'] as $row) {
    $state = $row['request_state'];
    if (   $state === "REQUESTED"
        or $state === "EMAILED_LEADS"
        or $state === "CONFIRM_REQUESTER"
        or $state === "DELETED") {
      $errors[] = "Username " . $uid . " already exists";
    }
    if ($state == "EMAILED_REQUESTER") {
      //get the request id
      $sql = "SELECT id from idp_account_request where username_requested='" . $uid . "' and (request_state='EMAILED_REQUESTER')";
      $result = db_fetch_rows($sql);
      if ($result['code'] != 0) {
        print("Postgres database query failed");
        error_log("Postgres database query failed");
        exit();
      }
      if (count($result['value']) === 1) {
        $id = $result['value'][0]['id'];
      } else {
        print("Error retrieving account");
        error_log("Error retrieving account");
        exit();
      }
      // deny original request and submit this one
      $sql = "UPDATE idp_account_request SET request_state='DENIED' where id='" . $id . '\'';
      $result = db_execute_statement($sql);
      if ($result['code'] != 0) {
        print ("Database action failed.  Could not change request status for password change request for" . $uid);
        error_log ("Database action failed.  Could not change request status for password change request for " . $uid);
        exit();
      }
    }
  }
}

//check if there is a pending request for this email
$sql = "SELECT * from idp_account_request where email='" . $email . '\'';
$result = db_fetch_rows($sql);
if ($result['code'] != 0) {
  print("Postgres database query failed");
  error_log("Postgres database query failed");
  exit();
}
if (count($result['value']) != 0) {
  foreach ($result['value'] as $row) {
    $state = $row['request_state'];
    if ($state === "REQUESTED" or $state=== "EMAILED_LEADS" or $state=== "EMAILED_REQUESTER") {
      $errors[] = "An account request for this email address is pending approval";
    }
  }
}

if (strlen($uid) > 8) {
  $errors[] = "Username cannot be longer than 8 characters.";
}
if (!preg_match('/^[a-z0-9]{1,8}$/', $uid)) {
  $errors[] = "Username must consist of lowercase letters and numbers only.";
}

if (array_key_exists('password1', $_REQUEST) && $_REQUEST['password1']) {
  $p1 = $_REQUEST['password1'];
} else {
  $errors[] = "No password specified.";
}
if (array_key_exists('password2', $_REQUEST) && $_REQUEST['password2']) {
  $p2 = $_REQUEST['password2'];
} else {
  $errors[] = "No confirm password specified.";
}
if ($p1 === $p2) {
  // Create the password_hash
  $pw_hash = SSHA::newHash($p1);
  $_REQUEST['password_hash'] = $pw_hash;
} else {
  $errors[] = "Passwords do not match.";
}

$required_vars = array('first_name', 'last_name', 'email', 'username_requested',
                       'phone', 'password_hash', 'organization', 'title', 'reason');

$optional_vars = array('url');

// Write database row
// Build the insert statement
$query_vars = array();
$query_values = array();

$conn = db_conn();

foreach ($required_vars as $name) {
  if (array_key_exists($name, $_REQUEST) && $_REQUEST[$name]) {
    $value = $_REQUEST[$name];
    $query_vars[] = $name;
    $query_values[] = $conn->quote($value, 'text');
  } else {
    $pretty_name = str_replace("_", " ", $name);
    $errors[] = "No $pretty_name specified.";
  }
}

foreach ($optional_vars as $name) {
  if (array_key_exists($name, $_REQUEST)) {
    $value = $_REQUEST[$name];
    $query_vars[] = $name;
    $query_values[] = $conn->quote($value, 'text');
  }
}

?>

<!DOCTYPE html>

<title>GENI: Request an account</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
<link type="text/css" href="kmtool.css" rel="Stylesheet"/>

<?php
if ($errors) {
  print_errors($errors);
} else {
  $sql = 'INSERT INTO idp_account_request (';
  $sql .= implode(',', $query_vars);
  $sql .= ') VALUES (';
  $sql .= implode (',', $query_values);
  $sql .= ')';
  $result = db_execute_statement($sql, 'insert idp account request');

  // An error occurred. First, log the query and result for debugging
  if ($result[RESPONSE_ARGUMENT::CODE] != RESPONSE_ERROR::NONE) {
    geni_syslog("IDP request query", $sql);
    geni_syslog("IDP request result", print_r($result, true));
    // Next send an email about the error
    $headers = $AR_EMAIL_HEADERS;
    $headers .= "Cc: $portal_admin_email" . "\r\n";
    $server_host = $_SERVER['SERVER_NAME'];
    mail($idp_approval_email,
         "IdP Account Request Failure $server_host",
         "An error occurred on IdP account request. See /var/log/user.log for details.",
         $headers);

    print "
ERROR
";
    print "
Account request failed
";
    print "
 We are sorry, your account request failed.";
    print "An email has been sent to the operators and they will be in touch with you shortly.
";
  } else {
    $nonce = random_id(8);
    $db_result = insert_email_confirm($email, $nonce);
    if ($db_result) {
      $db_id = $db_result['id'];
      $confirm_url = create_email_confirm_link($_SERVER['PHP_SELF'], $db_id, $nonce);
      send_user_confirmation_email($email, $confirm_url);
      print "
Account request received.
\n";
      print "
\n";
      print "A confirmation email has been sent to $email.";
      print " Please confirm your account request by following the";
      print " instructions in that email. If you do not receive an email";
      print " in 24 hours, please contact us at";
      print " help@geni.net.\n";
      print "
\n";
    } else {
      // todo: what to do in this case. same as above when DB fails?
      print "
ERROR
";
    }
  }
}

?>

    Need help? Questions? Email GENI help.

    GENI is sponsored by the

      National Science Foundation


text:
<component name="libraryTable">
  <library name="Generated files" type="javaScript">
    <CLASSES>
      <root url="file://$PROJECT_DIR$/app/app.routes.js" />
      <root url="file://$PROJECT_DIR$/app/pandas/pandas.component.js" />
    </CLASSES>
    <SOURCES />
  </library>
</component>


text:
package net.morematerials.materials;

public interface CustomFuel {

	public Integer getBurnTime();

}


text:
package org.jetbrains.plugins.groovy.lang.psi.stubs.elements;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMethod;
import org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.members.GrConstructorImpl;
import org.jetbrains.plugins.groovy.lang.psi.stubs.GrMethodStub;

public class GrConstructorElementType extends GrMethodElementType {

  public GrConstructorElementType(String debugName) {
    super(debugName);
  }

  @Override
  public GrMethod createPsi(@NotNull GrMethodStub stub) {
    return new GrConstructorImpl(stub);
  }
}


text:
layout: page
title: Contact Me
description: Have questions? Ping me!
background: '/img/bg-contact.jpg'
form: true
---

Want to get in touch? Fill out the form below to send me a message and I will get back to you as soon as possible!

<form name="sentMessage" id="contactForm" novalidate>

      Name
      <input type="text" class="form-control" placeholder="Name" id="name" required data-validation-required-message="Please enter your name.">

      Email Address
      <input type="email" class="form-control" placeholder="Email Address" id="email" required data-validation-required-message="Please enter your email address.">

      Phone Number
      <input type="tel" class="form-control" placeholder="Phone Number" id="phone" required data-validation-required-message="Please enter your phone number.">

      Message
      <textarea rows="5" class="form-control" placeholder="Message" id="message" required data-validation-required-message="Please enter a message."></textarea>

    <button type="submit" class="btn btn-primary" id="sendMessageButton">Send</button>

</form>


text:
<?php

// Start of mysql v.1.0
// @deprecated 5.5 entire extension is deprecated in favor of mysqli

/**
 * @deprecated 5.5
 * Open a connection to a MySQL Server
 * @link http://php.net/manual/en/function.mysql-connect.php
 * @param string $server [optional]

 * The MySQL server. It can also include a port number. e.g.
 * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for
 * the localhost.
 *

 *

 * If the PHP directive
 * mysql.default_host is undefined (default), then the default
 * value is 'localhost:3306'. In &sqlsafemode;, this parameter is ignored
 * and value 'localhost:3306' is always used.
 *

 * @param string $username [optional]

 * The username. Default value is defined by mysql.default_user. In
 * &sqlsafemode;, this parameter is ignored and the name of the user that
 * owns the server process is used.
 *

 * @param string $password [optional]

 * The password. Default value is defined by mysql.default_password. In
 * &sqlsafemode;, this parameter is ignored and empty password is used.
 *

 * @param bool $new_link [optional]

 * If a second call is made to mysql_connect
 * with the same arguments, no new link will be established, but
 * instead, the link identifier of the already opened link will be
 * returned. The new_link parameter modifies this
 * behavior and makes mysql_connect always open
 * a new link, even if mysql_connect was called
 * before with the same parameters.
 * In &sqlsafemode;, this parameter is ignored.
 *

 * @param int $client_flags [optional]

 * The client_flags parameter can be a combination
 * of the following constants:
 * 128 (enable LOAD DATA LOCAL handling),
 * MYSQL_CLIENT_SSL,
 * MYSQL_CLIENT_COMPRESS,
 * MYSQL_CLIENT_IGNORE_SPACE or
 * MYSQL_CLIENT_INTERACTIVE.
 * Read the section about for further information.
 * In &sqlsafemode;, this parameter is ignored.
 *

 * @return resource a MySQL link identifier on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_connect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $new_link = false, $client_flags = 0) {}

/**
 * @deprecated 5.5
 * Open a persistent connection to a MySQL server
 * @link http://php.net/manual/en/function.mysql-pconnect.php
 * @param string $server [optional]

 * The MySQL server. It can also include a port number. e.g.
 * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for
 * the localhost.
 *

 *

 * If the PHP directive
 * mysql.default_host is undefined (default), then the default
 * value is 'localhost:3306'
 *

 * @param string $username [optional]

 * The username. Default value is the name of the user that owns the
 * server process.
 *

 * @param string $password [optional]

 * The password. Default value is an empty password.
 *

 * @param int $client_flags [optional]

 * The client_flags parameter can be a combination
 * of the following constants:
 * 128 (enable LOAD DATA LOCAL handling),
 * MYSQL_CLIENT_SSL,
 * MYSQL_CLIENT_COMPRESS,
 * MYSQL_CLIENT_IGNORE_SPACE or
 * MYSQL_CLIENT_INTERACTIVE.
 *

 * @return resource a MySQL persistent link identifier on success, or false on
 * failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_pconnect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $client_flags = null) {}

/**
 * @deprecated 5.5
 * Close MySQL connection
 * @link http://php.net/manual/en/function.mysql-close.php
 * @param resource $link_identifier [optional]
 * @return bool true on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_close ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Select a MySQL database
 * @link http://php.net/manual/en/function.mysql-select-db.php
 * @param string $database_name

 * The name of the database that is to be selected.
 *

 * @param resource $link_identifier [optional]
 * @return bool true on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_select_db ($database_name, $link_identifier = null) {}

/**
 * @deprecated 5.5
 * Send a MySQL query
 * @link http://php.net/manual/en/function.mysql-query.php
 * @param string $query

 * An SQL query
 *

 *

 * The query string should not end with a semicolon.
 * Data inside the query should be properly escaped.
 *

 * @param resource $link_identifier [optional]
 * @return resource For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
 * mysql_query
 * returns a resource on success, or false on
 * error.
 *

 *

 * For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc,
 * mysql_query returns true on success
 * or false on error.
 *

 *

 * The returned result resource should be passed to
 * mysql_fetch_array, and other
 * functions for dealing with result tables, to access the returned data.
 *

 *

 * Use mysql_num_rows to find out how many rows
 * were returned for a SELECT statement or
 * mysql_affected_rows to find out how many
 * rows were affected by a DELETE, INSERT, REPLACE, or UPDATE
 * statement.
 *

 *

 * mysql_query will also fail and return false
 * if the user does not have permission to access the table(s) referenced by
 * the query.
 * @since 4.0
 * @since 5.0
 */
function mysql_query ($query, $link_identifier = null) {}

/**
 * @deprecated 5.5
 * Send an SQL query to MySQL without fetching and buffering the result rows.
 * @link http://php.net/manual/en/function.mysql-unbuffered-query.php
 * @param string $query

 * The SQL query to execute.
 *

 *

 * Data inside the query should be properly escaped.
 *

 * @param resource $link_identifier [optional]
 * @return resource For SELECT, SHOW, DESCRIBE or EXPLAIN statements,
 * mysql_unbuffered_query
 * returns a resource on success, or false on
 * error.
 *

 *

 * For other type of SQL statements, UPDATE, DELETE, DROP, etc,
 * mysql_unbuffered_query returns true on success
 * or false on error.
 * @since 4.0.6
 * @since 5.0
 */
function mysql_unbuffered_query ($query, $link_identifier = null) {}

/**
 * Selects a database and executes a query on it
 * @link http://php.net/manual/en/function.mysql-db-query.php
 * @deprecated 5.3.0 Use mysql_select_db() and mysql_query() instead
 * @param string $database

 * The name of the database that will be selected.
 *

 * @param string $query

 * The MySQL query.
 *

 *

 * Data inside the query should be properly escaped.
 *

 * @param resource $link_identifier [optional]
 * @return resource a positive MySQL result resource to the query result,
 * or false on error. The function also returns true/false for
 * INSERT/UPDATE/DELETE
 * queries to indicate success/failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_db_query ($database, $query, $link_identifier = null) {}

/**
 * List databases available on a MySQL server
 * @link http://php.net/manual/en/function.mysql-list-dbs.php
 * @param resource $link_identifier [optional]
 * @return resource a result pointer resource on success, or false on
 * failure. Use the mysql_tablename function to traverse
 * this result pointer, or any function for result tables, such as
 * mysql_fetch_array.
 * @deprecated 5.4.0
 * @since 4.0
 * @since 5.0
 */
function mysql_list_dbs ($link_identifier = null) {}

/**
 * List tables in a MySQL database
 * @link http://php.net/manual/en/function.mysql-list-tables.php
 * @param string $database

 * The name of the database
 *

 * @param resource $link_identifier [optional]
 * @return resource A result pointer resource on success or false on failure.
 *

 *

 * Use the mysql_tablename function to
 * traverse this result pointer, or any function for result tables,
 * such as mysql_fetch_array.
 * @deprecated 5.2.0
 * @since 4.0
 * @since 5.0
 */
function mysql_list_tables ($database, $link_identifier = null) {}

/**
 * @deprecated 5.5
 * List MySQL table fields
 * @link http://php.net/manual/en/function.mysql-list-fields.php
 * @param string $database_name

 * The name of the database that's being queried.
 *

 * @param string $table_name

 * The name of the table that's being queried.
 *

 * @param resource $link_identifier [optional]
 * @return resource A result pointer resource on success, or false on
 * failure.
 *

 *

 * The returned result can be used with mysql_field_flags,
 * mysql_field_len,
 * mysql_field_name&listendand;
 * mysql_field_type.
 * @since 4.0
 * @since 5.0
 */
function mysql_list_fields ($database_name, $table_name, $link_identifier = null) {}

/**
 * @deprecated 5.5
 * List MySQL processes
 * @link http://php.net/manual/en/function.mysql-list-processes.php
 * @param resource $link_identifier [optional]
 * @return resource A result pointer resource on success or false on failure.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_list_processes ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Returns the text of the error message from previous MySQL operation
 * @link http://php.net/manual/en/function.mysql-error.php
 * @param resource $link_identifier [optional]
 * @return string the error text from the last MySQL function, or
 * '' (empty string) if no error occurred.
 * @since 4.0
 * @since 5.0
 */
function mysql_error ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Returns the numerical value of the error message from previous MySQL operation
 * @link http://php.net/manual/en/function.mysql-errno.php
 * @param resource $link_identifier [optional]
 * @return int the error number from the last MySQL function, or
 * 0 (zero) if no error occurred.
 * @since 4.0
 * @since 5.0
 */
function mysql_errno ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get number of affected rows in previous MySQL operation
 * @link http://php.net/manual/en/function.mysql-affected-rows.php
 * @param resource $link_identifier [optional]
 * @return int the number of affected rows on success, and -1 if the last query
 * failed.
 *

 *

 * If the last query was a DELETE query with no WHERE clause, all
 * of the records will have been deleted from the table but this
 * function will return zero with MySQL versions prior to 4.1.2.
 *

 *

 * When using UPDATE, MySQL will not update columns where the new value is the
 * same as the old value. This creates the possibility that
 * mysql_affected_rows may not actually equal the number
 * of rows matched, only the number of rows that were literally affected by
 * the query.
 *

 *

 * The REPLACE statement first deletes the record with the same primary key
 * and then inserts the new record. This function returns the number of
 * deleted records plus the number of inserted records.
 * @since 4.0
 * @since 5.0
 */
function mysql_affected_rows ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get the ID generated in the last query
 * @link http://php.net/manual/en/function.mysql-insert-id.php
 * @param resource $link_identifier [optional]
 * @return int The ID generated for an AUTO_INCREMENT column by the previous
 * query on success, 0 if the previous
 * query does not generate an AUTO_INCREMENT value, or false if
 * no MySQL connection was established.
 * @since 4.0
 * @since 5.0
 */
function mysql_insert_id ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get result data
 * @link http://php.net/manual/en/function.mysql-result.php
 * @param resource $result
 * @param int $row

 * The row number from the result that's being retrieved. Row numbers
 * start at 0.
 *

 * @param mixed $field [optional]

 * The name or offset of the field being retrieved.
 *

 *

 * It can be the field's offset, the field's name, or the field's table
 * dot field name (tablename.fieldname). If the column name has been
 * aliased ('select foo as bar from...'), use the alias instead of the
 * column name. If undefined, the first field is retrieved.
 *

 * @return string The contents of one cell from a MySQL result set on success, or
 * false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_result ($result, $row, $field = 0) {}

/**
 * Get number of rows in result
 * @link http://php.net/manual/en/function.mysql-num-rows.php
 * @param resource $result
The result resource that is being evaluated. This result comes from a call to mysql_query().

 * @return int
The number of rows in the result set on success or FALSE on failure.

 * @since 4.0
 * @since 5.0
 */
function mysql_num_rows ($result) {}

/**
 * @deprecated 5.5
 * Get number of fields in result
 * @link http://php.net/manual/en/function.mysql-num-fields.php
 * @param resource $result
 * @return int the number of fields in the result set resource on
 * success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_num_fields ($result) {}

/**
 * @deprecated 5.5
 * Get a result row as an enumerated array
 * @link http://php.net/manual/en/function.mysql-fetch-row.php
 * @param resource $result
 * @return array an numerical array of strings that corresponds to the fetched row, or
 * false if there are no more rows.
 *

 *

 * mysql_fetch_row fetches one row of data from
 * the result associated with the specified result identifier. The
 * row is returned as an array. Each result column is stored in an
 * array offset, starting at offset 0.
 * @since 4.0
 * @since 5.0
 */
function mysql_fetch_row ($result) {}

/**
 * @deprecated 5.5
 * Fetch a result row as an associative array, a numeric array, or both
 * @link http://php.net/manual/en/function.mysql-fetch-array.php
 * @param resource $result
 * @param int $result_type [optional]

 * The type of array that is to be fetched. It's a constant and can
 * take the following values: MYSQL_ASSOC,
 * MYSQL_NUM, and
 * MYSQL_BOTH.
 *

 * @return array an array of strings that corresponds to the fetched row, or false
 * if there are no more rows. The type of returned array depends on
 * how result_type is defined. By using
 * MYSQL_BOTH (default), you'll get an array with both
 * associative and number indices. Using MYSQL_ASSOC, you
 * only get associative indices (as mysql_fetch_assoc
 * works), using MYSQL_NUM, you only get number indices
 * (as mysql_fetch_row works).
 *

 *

 * If two or more columns of the result have the same field names,
 * the last column will take precedence. To access the other column(s)
 * of the same name, you must use the numeric index of the column or
 * make an alias for the column. For aliased columns, you cannot
 * access the contents with the original column name.
 * @since 4.0
 * @since 5.0
 */
function mysql_fetch_array ($result, $result_type = MYSQL_BOTH) {}

/**
 * @deprecated 5.5
 * Fetch a result row as an associative array
 * @link http://php.net/manual/en/function.mysql-fetch-assoc.php
 * @param resource $result
 * @return array an associative array of strings that corresponds to the fetched row, or
 * false if there are no more rows.
 *

 *

 * If two or more columns of the result have the same field names,
 * the last column will take precedence. To access the other
 * column(s) of the same name, you either need to access the
 * result with numeric indices by using
 * mysql_fetch_row or add alias names.
 * See the example at the mysql_fetch_array
 * description about aliases.
 * @since 4.0.3
 * @since 5.0
 */
function mysql_fetch_assoc ($result) {}

/**
 * @deprecated 5.5
 * Fetch a result row as an object
 * @link http://php.net/manual/en/function.mysql-fetch-object.php
 * @param resource $result
 * @param string $class_name [optional]

 * The name of the class to instantiate, set the properties of and return.
 * If not specified, a stdClass object is returned.
 *

 * @param array $params [optional]

 * An optional array of parameters to pass to the constructor
 * for class_name objects.
 *

 * @return stdClass|object an object with string properties that correspond to the
 * fetched row, or false if there are no more rows.
 *

 *

 * mysql_fetch_row fetches one row of data from
 * the result associated with the specified result identifier. The
 * row is returned as an array. Each result column is stored in an
 * array offset, starting at offset 0.
 * @since 4.0
 * @since 5.0
 */
function mysql_fetch_object ($result, $class_name = null, array $params = null ) {}

/**
 * @deprecated 5.5
 * Move internal result pointer
 * @link http://php.net/manual/en/function.mysql-data-seek.php
 * @param resource $result
 * @param int $row_number

 * The desired row number of the new result pointer.
 *

 * @return bool true on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_data_seek ($result, $row_number) {}

/**
 * @deprecated 5.5
 * Get the length of each output in a result
 * @link http://php.net/manual/en/function.mysql-fetch-lengths.php
 * @param resource $result
 * @return array An array of lengths on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_fetch_lengths ($result) {}

/**
 * @deprecated 5.5
 * Get column information from a result and return as an object
 * @link http://php.net/manual/en/function.mysql-fetch-field.php
 * @param resource $result
 * @param int $field_offset [optional]

 * The numerical field offset. If the field offset is not specified, the
 * next field that was not yet retrieved by this function is retrieved.
 * The field_offset starts at 0.
 *

 * @return object an object containing field information. The properties
 * of the object are:
 *

 *

 * name - column name
 * table - name of the table the column belongs to
 * def - default value of the column
 * max_length - maximum length of the column
 * not_null - 1 if the column cannot be null
 * primary_key - 1 if the column is a primary key
 * unique_key - 1 if the column is a unique key
 * multiple_key - 1 if the column is a non-unique key
 * numeric - 1 if the column is numeric
 * blob - 1 if the column is a BLOB
 * type - the type of the column
 * unsigned - 1 if the column is unsigned
 * zerofill - 1 if the column is zero-filled
 * @since 4.0
 * @since 5.0
 */
function mysql_fetch_field ($result, $field_offset = 0) {}

/**
 * @deprecated 5.5
 * Set result pointer to a specified field offset
 * @link http://php.net/manual/en/function.mysql-field-seek.php
 * @param resource $result
 * @param int $field_offset
 * @return bool true on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_field_seek ($result, $field_offset) {}

/**
 * @deprecated 5.5
 * Free result memory
 * @link http://php.net/manual/en/function.mysql-free-result.php
 * @param resource $result
 * @return bool true on success or false on failure.
 *

 *

 * If a non-resource is used for the result, an
 * error of level E_WARNING will be emitted. It's worth noting that
 * mysql_query only returns a resource
 * for SELECT, SHOW, EXPLAIN, and DESCRIBE queries.
 * @since 4.0
 * @since 5.0
 */
function mysql_free_result ($result) {}

/**
 * @deprecated 5.5
 * Get the name of the specified field in a result
 * @link http://php.net/manual/en/function.mysql-field-name.php
 * @param resource $result
 * @param int $field_offset
 * @return string The name of the specified field index on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_field_name ($result, $field_offset) {}

/**
 * @deprecated 5.5
 * Get name of the table the specified field is in
 * @link http://php.net/manual/en/function.mysql-field-table.php
 * @param resource $result
 * @param int $field_offset
 * @return string The name of the table on success.
 * @since 4.0
 * @since 5.0
 */
function mysql_field_table ($result, $field_offset) {}

/**
 * @deprecated 5.5
 * Returns the length of the specified field
 * @link http://php.net/manual/en/function.mysql-field-len.php
 * @param resource $result
 * @param int $field_offset
 * @return int The length of the specified field index on success or false on failure.
 * @since 4.0
 * @since 5.0
 */
function mysql_field_len ($result, $field_offset) {}

/**
 * @deprecated 5.5
 * Get the type of the specified field in a result
 * @link http://php.net/manual/en/function.mysql-field-type.php
 * @param resource $result
 * @param int $field_offset
 * @return string The returned field type
 * will be one of "int", "real",
 * "string", "blob", and others as
 * detailed in the MySQL
 * documentation.
 * @since 4.0
 * @since 5.0
 */
function mysql_field_type ($result, $field_offset) {}

/**
 * @deprecated 5.5
 * Get the flags associated with the specified field in a result
 * @link http://php.net/manual/en/function.mysql-field-flags.php
 * @param resource $result
 * @param int $field_offset
 * @return string a string of flags associated with the result or false on failure.
 *

 *

 * The following flags are reported, if your version of MySQL
 * is current enough to support them: "not_null",
 * "primary_key", "unique_key",
 * "multiple_key", "blob",
 * "unsigned", "zerofill",
 * "binary", "enum",
 * "auto_increment" and "timestamp".
 * @since 4.0
 * @since 5.0
 */
function mysql_field_flags ($result, $field_offset) {}

/**
 * Escapes a string for use in a mysql_query
 * @link http://php.net/manual/en/function.mysql-escape-string.php
 * @deprecated 5.3.0 Use mysql_real_escape_string() instead
 * @param string $unescaped_string

 * The string that is to be escaped.
 *

 * @return string the escaped string.
 * @since 4.0.3
 * @since 5.0
 */
function mysql_escape_string ($unescaped_string) {}

/**
 * @deprecated 5.5
 * Escapes special characters in a string for use in an SQL statement
 * @link http://php.net/manual/en/function.mysql-real-escape-string.php
 * @param string $unescaped_string

 * The string that is to be escaped.
 *

 * @param resource $link_identifier [optional]
 * @return string the escaped string, or false on error.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_real_escape_string ($unescaped_string, $link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get current system status
 * @link http://php.net/manual/en/function.mysql-stat.php
 * @param resource $link_identifier [optional]
 * @return string a string with the status for uptime, threads, queries, open tables,
 * flush tables and queries per second. For a complete list of other status
 * variables, you have to use the SHOW STATUS SQL command.
 * If link_identifier is invalid, null is returned.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_stat ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Return the current thread ID
 * @link http://php.net/manual/en/function.mysql-thread-id.php
 * @param resource $link_identifier [optional]
 * @return int The thread ID on success or false on failure.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_thread_id ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Returns the name of the character set
 * @link http://php.net/manual/en/function.mysql-client-encoding.php
 * @param resource $link_identifier [optional]
 * @return string the default character set name for the current connection.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_client_encoding ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Ping a server connection or reconnect if there is no connection
 * @link http://php.net/manual/en/function.mysql-ping.php
 * @param resource $link_identifier [optional]
 * @return bool true if the connection to the server MySQL server is working,
 * otherwise false.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_ping ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get MySQL client info
 * @link http://php.net/manual/en/function.mysql-get-client-info.php
 * @return string The MySQL client version.
 * @since 4.0.5
 * @since 5.0
 */
function mysql_get_client_info () {}

/**
 * @deprecated 5.5
 * Get MySQL host info
 * @link http://php.net/manual/en/function.mysql-get-host-info.php
 * @param resource $link_identifier [optional]
 * @return string a string describing the type of MySQL connection in use for the
 * connection or false on failure.
 * @since 4.0.5
 * @since 5.0
 */
function mysql_get_host_info ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get MySQL protocol info
 * @link http://php.net/manual/en/function.mysql-get-proto-info.php
 * @param resource $link_identifier [optional]
 * @return int the MySQL protocol on success or false on failure.
 * @since 4.0.5
 * @since 5.0
 */
function mysql_get_proto_info ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get MySQL server info
 * @link http://php.net/manual/en/function.mysql-get-server-info.php
 * @param resource $link_identifier [optional]
 * @return string the MySQL server version on success or false on failure.
 * @since 4.0.5
 * @since 5.0
 */
function mysql_get_server_info ($link_identifier = null) {}

/**
 * @deprecated 5.5
 * Get information about the most recent query
 * @link http://php.net/manual/en/function.mysql-info.php
 * @param resource $link_identifier [optional]
 * @return string information about the statement on success, or false on
 * failure. See the example below for which statements provide information,
 * and what the returned value may look like. Statements that are not listed
 * will return false.
 * @since 4.3.0
 * @since 5.0
 */
function mysql_info ($link_identifier = null) {}

/**
 * @deprecated 5.5 Use mysqli_set_charset instead.
 * Sets the client character set
 * @link http://php.net/manual/en/function.mysql-set-charset.php
 * @param string $charset

 * A valid character set name.
 *

 * @param resource $link_identifier [optional]
 * @return bool true on success or false on failure.
 * @since 5.2.3
 */
function mysql_set_charset ($charset, $link_identifier = null) {}

/**
 * @param $database_name
 * @param $query
 * @param $link_identifier [optional]
 * @deprecated 5.3.0 Use mysql_db_query instead.
 */
function mysql ($database_name, $query, $link_identifier) {}

/**
 * @param $result
 * @param $field_index
 * @deprecated 5.5 Use mysql_field_name instead.
 */
function mysql_fieldname ($result, $field_index) {}

/**
 * @param $result
 * @param $field_offset
 * @deprecated 5.5 Use mysql_field_table instead.
 */
function mysql_fieldtable ($result, $field_offset) {}

/**
 * @param $result
 * @param $field_offset
 * @deprecated 5.5 Use mysql_field_len instead.
 */
function mysql_fieldlen ($result, $field_offset) {}

/**
 * @param $result
 * @param $field_offset
 * @deprecated 5.5 Use mysql_field_type instead.
 */
function mysql_fieldtype ($result, $field_offset) {}

/**
 * @param $result
 * @param $field_offset
 * @deprecated 5.5 Use mysql_field_flags instead.
 */
function mysql_fieldflags ($result, $field_offset) {}

/**
 * @param $database_name
 * @param $link_identifier [optional]
 * @deprecated 5.5 Use mysql_select_db instead.
 */
function mysql_selectdb ($database_name, $link_identifier) {}

/**
 * @param $result
 * @deprecated 5.5 Use mysql_free_result instead.
 */
function mysql_freeresult ($result) {}

/**
 * @param $result
 * @deprecated 5.5 Use mysql_num_fields instead.
 */
function mysql_numfields ($result) {}

/**
 * (PHP 4, PHP 5)
 * Alias of mysql_num_rows()
 * @link http://php.net/manual/en/function.mysql-num-rows.php
 * @param resource $result
The result resource that is being evaluated. This result comes from a call to mysql_query().

 * @return int
The number of rows in the result set on success or FALSE on failure.

 * @deprecated 5.5 Use mysql_num_rows instead.
 */
function mysql_numrows ($result) {}

/**
 * @param $link_identifier [optional]
 * @deprecated 5.5 Use mysql_list_dbs instead.
 */
function mysql_listdbs ($link_identifier) {}

/**
 * @param $database_name
 * @param $link_identifier [optional]
 * @deprecated 5.5 Use mysql_list_tables instead.
 */
function mysql_listtables ($database_name, $link_identifier) {}

/**
 * @param $database_name
 * @param $table_name
 * @param $link_identifier [optional]
 * @deprecated 5.5 Use mysql_list_fields instead.
 */
function mysql_listfields ($database_name, $table_name, $link_identifier) {}

/**
 * @deprecated 5.5
 * Retrieves database name from the call to mysql_list_dbs
 * @link http://php.net/manual/en/function.mysql-db-name.php
 * @param resource $result

 * The result pointer from a call to mysql_list_dbs.
 *

 * @param int $row

 * The index into the result set.
 *

 * @param mixed $field [optional]

 * The field name.
 *

 * @return string the database name on success, and false on failure. If false
 * is returned, use mysql_error to determine the nature
 * of the error.
 * @since 4.0
 * @since 5.0
 */
function mysql_db_name ($result, $row, $field = null) {}

/**
 * @param $result
 * @param $row
 * @param $field [optional]
 * @deprecated 5.5 Use mysql_db_name instead.
 */
function mysql_dbname ($result, $row, $field) {}

/**
 * @deprecated 5.5
 * Get table name of field
 * @link http://php.net/manual/en/function.mysql-tablename.php
 * @param resource $result

 * A result pointer resource that's returned from
 * mysql_list_tables.
 *

 * @param int $i

 * The integer index (row/table number)
 *

 * @return string The name of the table on success or false on failure.
 *

 *

 * Use the mysql_tablename function to
 * traverse this result pointer, or any function for result tables,
 * such as mysql_fetch_array.
 * @since 4.0
 * @since 5.0
 */
function mysql_tablename ($result, $i) {}

/**
 * @deprecated 5.5
 * @param $result
 * @param $row
 * @param $field [optional]
 */
function mysql_table_name ($result, $row, $field) {}

/**
 * Columns are returned into the array having the fieldname as the array
 * index.
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_ASSOC', 1);

/**
 * Columns are returned into the array having a numerical index to the
 * fields. This index starts with 0, the first field in the result.
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_NUM', 2);

/**
 * Columns are returned into the array having both a numerical index
 * and the fieldname as the array index.
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_BOTH', 3);

/**
 * Use compression protocol
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_CLIENT_COMPRESS', 32);

/**
 * Use SSL encryption. This flag is only available with version 4.x
 * of the MySQL client library or newer. Version 3.23.x is bundled both
 * with PHP 4 and Windows binaries of PHP 5.
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_CLIENT_SSL', 2048);

/**
 * Allow interactive_timeout seconds (instead of wait_timeout) of
 * inactivity before closing the connection.
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_CLIENT_INTERACTIVE', 1024);

/**
 * Allow space after function names
 * @link http://php.net/manual/en/mysql.constants.php
 * @deprecated 5.5
 */
define ('MYSQL_CLIENT_IGNORE_SPACE', 256);

// End of mysql v.1.0
?>


text:
package org.apache.camel.impl;

import java.util.AbstractMap;
import java.util.AbstractSet;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.camel.CamelContext;
import org.apache.camel.impl.validator.ValidatorKey;
import org.apache.camel.model.validator.ValidatorDefinition;
import org.apache.camel.spi.DataType;
import org.apache.camel.spi.Validator;
import org.apache.camel.spi.ValidatorRegistry;
import org.apache.camel.util.CamelContextHelper;
import org.apache.camel.util.CompoundIterator;
import org.apache.camel.util.LRUCache;
import org.apache.camel.util.LRUCacheFactory;
import org.apache.camel.util.ObjectHelper;
import org.apache.camel.util.ServiceHelper;

/**
 * Default implementation of {@link org.apache.camel.spi.ValidatorRegistry}.
 */
public class DefaultValidatorRegistry extends AbstractMap<ValidatorKey, Validator> implements ValidatorRegistry<ValidatorKey> {

    private static final long serialVersionUID = 1L;
    private Map<ValidatorKey, Validator> dynamicMap;
    private Map<ValidatorKey, Validator> staticMap;
    private final CamelContext context;
    private int maxCacheSize;

    public DefaultValidatorRegistry(CamelContext context) throws Exception {
        this(context, new ArrayList<>());
    }

    public DefaultValidatorRegistry(CamelContext context, List<ValidatorDefinition> definitions) throws Exception {
        this.maxCacheSize = CamelContextHelper.getMaximumValidatorCacheSize(context);
        // do not stop on eviction, as the validator may still be in use
        this.dynamicMap = LRUCacheFactory.newLRUCache(maxCacheSize, maxCacheSize, false);
        // static map to hold validator we do not want to be evicted
        this.staticMap = new ConcurrentHashMap<>();
        this.context = context;

        for (ValidatorDefinition def : definitions) {
            Validator validator = def.createValidator(context);
            context.addService(validator);
            put(new ValidatorKey(new DataType(def.getType())), validator);
        }
    }

    public Validator resolveValidator(ValidatorKey key) {
        Validator answer = get(key);
        if (answer == null && ObjectHelper.isNotEmpty(key.getType().getName())) {
            answer = get(new ValidatorKey(new DataType(key.getType().getModel())));
        }
        return answer;
    }

    @Override
    public void start() throws Exception {
        if (dynamicMap instanceof LRUCache) {
            ((LRUCache) dynamicMap).resetStatistics();
        }
    }

    @Override
    public Validator get(Object o) {
        // try static map first
        Validator answer = staticMap.get(o);
        if (answer == null) {
            answer = dynamicMap.get(o);
        }
        return answer;
    }

    @Override
    public Validator put(ValidatorKey key, Validator validator) {
        // at first we must see if the key already exists and then replace it back, so it stays the same spot
        Validator answer = staticMap.remove(key);
        if (answer != null) {
            // replace existing
            staticMap.put(key, validator);
            return answer;
        }

        answer = dynamicMap.remove(key);
        if (answer != null) {
            // replace existing
            dynamicMap.put(key, validator);
            return answer;
        }

        // we want validators to be static if they are part of setting up or starting routes
        if (context.isSetupRoutes() || context.isStartingRoutes()) {
            answer = staticMap.put(key, validator);
        } else {
            answer = dynamicMap.put(key, validator);
        }

        return answer;
    }

    @Override
    public boolean containsKey(Object o) {
        return staticMap.containsKey(o) || dynamicMap.containsKey(o);
    }

    @Override
    public boolean containsValue(Object o) {
        return staticMap.containsValue(o) || dynamicMap.containsValue(o);
    }

    public int staticSize() {
        return staticMap.size();
    }

    @Override
    public int dynamicSize() {
        return dynamicMap.size();
    }

    @Override
    public boolean isEmpty() {
        return staticMap.isEmpty() && dynamicMap.isEmpty();
    }

    @Override
    public Validator remove(Object o) {
        Validator answer = staticMap.remove(o);
        if (answer == null) {
            answer = dynamicMap.remove(o);
        }
        return answer;
    }

    @Override
    public void clear() {
        staticMap.clear();
        dynamicMap.clear();
    }

    @Override
    public Set<Entry<ValidatorKey, Validator>> entrySet() {
        return new AbstractSet<Entry<ValidatorKey, Validator>>() {
            @Override
            public Iterator<Entry<ValidatorKey, Validator>> iterator() {
                return new CompoundIterator<>(Arrays.asList(
                        staticMap.entrySet().iterator(), dynamicMap.entrySet().iterator()
                ));
            }

            @Override
            public int size() {
                return staticMap.size() + dynamicMap.size();
            }
        };
    }

    @Override
    public int getMaximumCacheSize() {
        return maxCacheSize;
    }

    /**
     * Purges the cache
     */
    @Override
    public void purge() {
        // only purge the dynamic part
        dynamicMap.clear();
    }

    @Override
    public void cleanUp() {
        if (dynamicMap instanceof LRUCache) {
            ((LRUCache) dynamicMap).cleanUp();
        }
    }

    @Override
    public boolean isStatic(DataType type) {
        return staticMap.containsKey(new ValidatorKey(type));
    }

    @Override
    public boolean isDynamic(DataType type) {
        return super.containsKey(new ValidatorKey(type));
    }

    @Override
    public void stop() throws Exception {
        ServiceHelper.stopServices(staticMap.values());
        ServiceHelper.stopServices(dynamicMap.values());
        purge();
    }

    @Override
    public String toString() {
        return "ValidatorRegistry for " + context.getName() + ", capacity: " + maxCacheSize;
    }

}


text:
package com.badlogic.gdx.graphics.g3d.model.data;

import com.badlogic.gdx.assets.loaders.ModelLoader;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.GdxRuntimeException;

/**
 * Returned by a {@link ModelLoader}, contains meshes, materials, nodes
 * and animations. OpenGL resources like textures or vertex buffer objects
 * are not stored. Instead, a ModelData instance needs to be converted to a
 * Model first.
 * @author badlogic
 *
 */
public class ModelData {
	public String id;
	public final short version[] = new short[2];
	public final Array<ModelMesh> meshes = new Array<ModelMesh>();
	public final Array<ModelMaterial> materials = new Array<ModelMaterial>();
	public final Array<ModelNode> nodes = new Array<ModelNode>();
	public final Array<ModelAnimation> animations = new Array<ModelAnimation>();

	public void addMesh(ModelMesh mesh) {
		for(ModelMesh other: meshes) {
			if(other.id.equals(mesh.id)) {
				throw new GdxRuntimeException("Mesh with id '" + other.id + "' already in model");
			}
		}
		meshes.add(mesh);
	}
}


text:
goog.setTestOnly();
goog.require('goog.testing.AsyncTestCase');
goog.require('goog.testing.jsunit');
goog.require('lf.Global');
goog.require('lf.op');
goog.require('lf.proc.LogicalPlanFactory');
goog.require('lf.query.DeleteBuilder');
goog.require('lf.query.SelectBuilder');
goog.require('lf.query.UpdateBuilder');
goog.require('lf.testing.MockEnv');
goog.require('lf.tree');

/** @type {!goog.testing.AsyncTestCase} */
var asyncTestCase = goog.testing.AsyncTestCase.createAndInstall(
    'LogicalPlanFactoryTest');

/** @type {!lf.proc.LogicalPlanFactory} */
var logicalPlanFactory;

/** @type {!lf.testing.MockEnv} */
var env;

function setUp() {
  asyncTestCase.waitForAsync('setUp');
  env = new lf.testing.MockEnv();
  env.init().then(function() {
    logicalPlanFactory = new lf.proc.LogicalPlanFactory();
    asyncTestCase.continueTesting();
  }, fail);
}

/**
 * Tests that the generated logical query plan for a simple DELETE query is as
 * expected and also that the query object itself is not mutated as part of
 * generating a plan. This is essential such that calling
 * DefaultBuilder#explain() does not have any side effects which would prevent
 * a subsequent call to DefaultBuilder#exec() from operating on the same query
 * object.
 */
function testCreate_DeletePlan() {
  var table = env.schema.tables()[0];

  var queryBuilder = new lf.query.DeleteBuilder(lf.Global.get());
  queryBuilder.
      from(table).
      where(lf.op.and(table['id'].eq('id'), table['name'].eq('name')));

  var query = queryBuilder.getQuery();
  assertEquals(
      2,
      /** @type {!lf.pred.PredicateNode} */ (query.where).getChildCount());

  var expectedTree =
      'delete(tableA)\n' +
      '-select(value_pred(tableA.id eq id))\n' +
      '--select(value_pred(tableA.name eq name))\n' +
      '---table_access(tableA)\n';

  var logicalPlan = logicalPlanFactory.create(query);
  assertEquals(expectedTree, lf.tree.toString(logicalPlan));

  assertEquals(
      2,
      /** @type {!lf.pred.PredicateNode} */ (query.where).getChildCount());
}

/**
 * Tests that the generated logical query plan for a simple SELECT query is as
 * expected and also that the query object itself is not mutated as part of
 * generating a plan.
 */
function testCreate_SelectPlan() {
  var table = env.schema.tables()[0];

  var queryBuilder = new lf.query.SelectBuilder(lf.Global.get(), []);
  queryBuilder.
      from(table).
      where(lf.op.and(table['id'].eq('id'), table['name'].eq('name')));

  var query = queryBuilder.getQuery();
  assertEquals(
      2,
      /** @type {!lf.pred.PredicateNode} */ (query.where).getChildCount());

  var expectedTree =
      'project()\n' +
      '-select(value_pred(tableA.id eq id))\n' +
      '--select(value_pred(tableA.name eq name))\n' +
      '---table_access(tableA)\n';

  var logicalPlan = logicalPlanFactory.create(query);
  assertEquals(expectedTree, lf.tree.toString(logicalPlan));

  assertEquals(
      2,
      /** @type {!lf.pred.PredicateNode} */ (query.where).getChildCount());
}

/**
 * Tests that the generated logical query plan for a SELECT query with "SKIP 0"
 * does not include a "skip" node, since it has no effect on the query results.
 */
function testCreate_SelectPlan_SkipZero() {
  var table = env.schema.tables()[0];
  var queryBuilder = new lf.query.SelectBuilder(lf.Global.get(), []);
  queryBuilder.from(table).skip(0);

  var query = queryBuilder.getQuery();

  var expectedTree =
      'project()\n' +
      '-table_access(tableA)\n';

  var logicalPlan = logicalPlanFactory.create(query);
  assertEquals(expectedTree, lf.tree.toString(logicalPlan));
}

/**
 * Tests that the generated logical query plan for a SELECT query with "LIMIT 0"
 * does in fact include a "limit" node.
 */
function testCreate_SelectPlan_LimitZero() {
  var table = env.schema.tables()[0];
  var queryBuilder = new lf.query.SelectBuilder(lf.Global.get(), []);
  queryBuilder.from(table).limit(0);

  var query = queryBuilder.getQuery();

  var expectedTree =
      'limit(0)\n' +
      '-project()\n' +
      '--table_access(tableA)\n';

  var logicalPlan = logicalPlanFactory.create(query);
  assertEquals(expectedTree, lf.tree.toString(logicalPlan));
}

/**
 * Tests that the generated logical query plan for a simple UPDATE query is as
 * expected and also that the query object itself is not mutated as part of
 * generating a plan.
 */
function testCreate_UpdatePlan() {
  var table = env.schema.tables()[0];

  var queryBuilder = new lf.query.UpdateBuilder(lf.Global.get(), table);
  queryBuilder.
      set(table['name'], 'NewName').
      where(lf.op.and(table['id'].eq('id'), table['name'].eq('name')));

  var query = queryBuilder.getQuery();
  assertEquals(
      2,
      /** @type {!lf.pred.PredicateNode} */ (query.where).getChildCount());

  var expectedTree =
      'update(tableA, [name])\n' +
      '-select(combined_pred_and)\n' +
      '--table_access(tableA)\n';

  var logicalPlan = logicalPlanFactory.create(query);
  assertEquals(expectedTree, lf.tree.toString(logicalPlan));

  assertEquals(
      2,
      /** @type {!lf.pred.PredicateNode} */ (query.where).getChildCount());
}


text:
<?php

namespace Graze\Dal\Generator;

use Graze\Dal\Adapter\AdapterInterface;
use Graze\Dal\DalManagerInterface;
use Graze\Dal\Exception\MissingConfigException;
use ProxyManager\Configuration;

class ProxyGenerator implements GeneratorInterface
{
    /**
     * @var DalManagerInterface
     */
    private $dm;

    /**
     * @var string
     */
    protected $targetDir;

    /**
     * @param DalManagerInterface $dm
     * @param string $targetDir
     */
    public function __construct(DalManagerInterface $dm, $targetDir)
    {
        $this->dm = $dm;
        $this->targetDir = $targetDir;
    }

    /**
     * @return mixed
     * @throws MissingConfigException
     */
    public function generate()
    {
        $adapters = $this->dm->all();

        foreach ($adapters as $adapter) {
            $this->generateForAdapter($adapter);
        }
    }

    /**
     * @param \Graze\Dal\Adapter\AdapterInterface $adapter
     */
    protected function generateForAdapter(AdapterInterface $adapter)
    {
        $entityNames = $adapter->getConfiguration()->getEntityNames();
        $proxyConfig = new Configuration();
        $proxyConfig->setProxiesTargetDir($this->targetDir);
        $proxyConfig->setProxiesNamespace('Graze\\Dal');
        $proxyFactory = $adapter->getConfiguration()->buildProxyFactory($proxyConfig);

        foreach ($entityNames as $entityName) {
            $mapping = $adapter->getConfiguration()->getMapping($entityName);
            if (array_key_exists('related', $mapping)) {
                $related = $mapping['related'];

                foreach ($related as $relationName => $relationConfig) {
                    if (! array_key_exists('entity', $relationConfig)) {
                        throw new MissingConfigException($entityName, 'related.entity');
                    }

                    $foreignEntityName = $relationConfig['entity'];
                    if (array_key_exists('collection', $relationConfig) && $relationConfig['collection']) {
                        $collectionClass = is_string($relationConfig['collection']) ? $relationConfig['collection'] : null;
                        $proxyFactory->buildCollectionProxy($entityName, $foreignEntityName, function () {
                        }, $relationConfig, $collectionClass);
                    } else {
                        $proxyFactory->buildEntityProxy($entityName, $foreignEntityName, function () {
                        }, $relationConfig);
                    }
                }
            }
        }
    }
}


text:
semantic.dropdown = {};

// ready event
semantic.dropdown.ready = function() {

  $('.ui.rating')
    .rating()
  ;

};

// attach ready event
$(document)
  .ready(semantic.dropdown.ready)
;


text:
// Copyright (c) 2005-2009 Jaroslav Gresula
//
// Distributed under the MIT license (See accompanying file
// LICENSE.txt or copy at http://jagpdf.org/LICENSE.txt)
//

#include "precompiled.h"
#include <resources/resourcebox/colorspacehelpers.h>
#include <resources/interfaces/colorspaceman.h>
#include <core/errlib/errlib.h>

namespace jag {
namespace resources {

ColorSpaceType color_space_type(ColorSpaceHandle handle)
{
    unsigned result = handle.id() & CS_COLOR_SPACE_TYPE_MASK;
    if (result & CS_PATTERN)
        return CS_PATTERN;

    return static_cast<ColorSpaceType>(result);
}

ColorSpaceHandle unmask_pattern(ColorSpaceHandle csh)
{
    JAG_PRECONDITION(is_pattern_color_space(csh) && !is_trivial_pattern_color_space(csh));
    return ColorSpaceHandle(csh).bitwise_and(static_cast<UInt>(~CS_PATTERN));
}

bool is_pattern_color_space(ColorSpaceHandle csh)
{
    return csh.id() & CS_PATTERN;
}

bool is_trivial_pattern_color_space(ColorSpaceHandle csh)
{
    return csh.id()==CS_PATTERN;
}

ColorSpaceType pattern_secondary_cs_type(ColorSpaceHandle handle)
{
    JAG_PRECONDITION(is_pattern_color_space(handle) && !is_trivial_pattern_color_space(handle));
    return static_cast<ColorSpaceType>(handle.id() & (CS_COLOR_SPACE_TYPE_MASK & ~CS_PATTERN));
}

bool is_trivial_color_space(ColorSpaceHandle handle)
{
    // there is a special case with CS_PATTERN - if only this bit is set then
    // it is a trivial color space, otherwise it is not.
    JAG_PRECONDITION(is_valid(handle));
    return is_trivial_pattern_color_space(handle) || (handle.id() <= CS_LAST_TRIVIAL_COLOR_SPACE);
}

int num_components(ColorSpaceHandle handle, IColorSpaceMan const* cs_man, bool allow_zero)
{
    switch (color_space_type(handle))
    {
    case CS_DEVICE_GRAY:
    case CS_CALGRAY:
        return 1;

    case CS_CIELAB:
    case CS_DEVICE_RGB:
    case CS_CALRGB:
        return 3;

    case CS_DEVICE_CMYK:
        return 4;

    case CS_INDEXED:
        /// suspicious
        JAG_ASSERT(!"No one should ask for this.");

    case CS_PATTERN:
        {
            // it might be complicated to find out it for uncolored pattern
            // - indexed cs calls this function but pattern cs
            //   is not allowed to be a base for it (spec. 4.5.5)
            JAG_ASSERT(!"No one should ask for this.");
            if (!is_trivial_pattern_color_space(handle))
                return num_components(handle, cs_man);
            return 1; // colored pattern
        }

    default:
        // we need to ask color space man
        if (cs_man)
            return cs_man->num_components(handle);
    }

    if (!allow_zero)
    {
        JAG_INTERNAL_ERROR;
    }

    return 0;
}

}} // namespace jag::resources

/** EOF @file */


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

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
org.apache.cxf.management.annotation Class Hierarchy (Apache CXF API 2.7.5 API)
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
      Use
    Tree
      Deprecated
      Index
      Help

Apache CXF API

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Hierarchy For Package org.apache.cxf.management.annotation

Package Hierarchies:
All Packages

Annotation Type Hierarchy

org.apache.cxf.management.annotation.ManagedNotifications (implements java.lang.annotation.Annotation)

org.apache.cxf.management.annotation.ManagedOperationParameter (implements java.lang.annotation.Annotation)

org.apache.cxf.management.annotation.ManagedAttribute (implements java.lang.annotation.Annotation)

org.apache.cxf.management.annotation.ManagedOperationParameters (implements java.lang.annotation.Annotation)

org.apache.cxf.management.annotation.ManagedOperation (implements java.lang.annotation.Annotation)

org.apache.cxf.management.annotation.ManagedResource (implements java.lang.annotation.Annotation)

org.apache.cxf.management.annotation.ManagedNotification (implements java.lang.annotation.Annotation)

      Overview
      Package
      Class
      Use
    Tree
      Deprecated
      Index
      Help

Apache CXF API

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Apache CXF