text:
/* Simple HTTP Server Example

   This example code is in the Public Domain (or CC0 licensed, at your option.)

   Unless required by applicable law or agreed to in writing, this
   software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
   CONDITIONS OF ANY KIND, either express or implied.
*/

#include <esp_wifi.h>
#include <esp_event.h>
#include <esp_log.h>
#include <esp_system.h>
#include <nvs_flash.h>
#include <sys/param.h>
#include "nvs_flash.h"
#include "esp_netif.h"
#include "esp_eth.h"
#include "protocol_examples_common.h"
#include "esp_tls_crypto.h"
#include <esp_http_server.h>

/* A simple example that demonstrates how to create GET and POST
 * handlers for the web server.
 */

static const char *TAG = "example";

#if CONFIG_EXAMPLE_BASIC_AUTH

typedef struct {
    char    *username;
    char    *password;
} basic_auth_info_t;

#define HTTPD_401      "401 UNAUTHORIZED"           /*!< HTTP Response 401 */

static char *http_auth_basic(const char *username, const char *password)
{
    int out;
    char *user_info = NULL;
    char *digest = NULL;
    size_t n = 0;
    asprintf(&user_info, "%s:%s", username, password);
    if (!user_info) {
        ESP_LOGE(TAG, "No enough memory for user information");
        return NULL;
    }
    esp_crypto_base64_encode(NULL, 0, &n, (const unsigned char *)user_info, strlen(user_info));

    /* 6: The length of the "Basic " string
     * n: Number of bytes for a base64 encode format
     * 1: Number of bytes for a reserved which be used to fill zero
    */
    digest = calloc(1, 6 + n + 1);
    if (digest) {
        strcpy(digest, "Basic ");
        esp_crypto_base64_encode((unsigned char *)digest + 6, n, (size_t *)&out, (const unsigned char *)user_info, strlen(user_info));
    }
    free(user_info);
    return digest;
}

/* An HTTP GET handler */
static esp_err_t basic_auth_get_handler(httpd_req_t *req)
{
    char *buf = NULL;
    size_t buf_len = 0;
    basic_auth_info_t *basic_auth_info = req->user_ctx;

    buf_len = httpd_req_get_hdr_value_len(req, "Authorization") + 1;
    if (buf_len > 1) {
        buf = calloc(1, buf_len);
        if (!buf) {
            ESP_LOGE(TAG, "No enough memory for basic authorization");
            return ESP_ERR_NO_MEM;
        }

        if (httpd_req_get_hdr_value_str(req, "Authorization", buf, buf_len) == ESP_OK) {
            ESP_LOGI(TAG, "Found header => Authorization: %s", buf);
        } else {
            ESP_LOGE(TAG, "No auth value received");
        }

        char *auth_credentials = http_auth_basic(basic_auth_info->username, basic_auth_info->password);
        if (!auth_credentials) {
            ESP_LOGE(TAG, "No enough memory for basic authorization credentials");
            free(buf);
            return ESP_ERR_NO_MEM;
        }

        if (strncmp(auth_credentials, buf, buf_len)) {
            ESP_LOGE(TAG, "Not authenticated");
            httpd_resp_set_status(req, HTTPD_401);
            httpd_resp_set_type(req, "application/json");
            httpd_resp_set_hdr(req, "Connection", "keep-alive");
            httpd_resp_set_hdr(req, "WWW-Authenticate", "Basic realm=\"Hello\"");
            httpd_resp_send(req, NULL, 0);
        } else {
            ESP_LOGI(TAG, "Authenticated!");
            char *basic_auth_resp = NULL;
            httpd_resp_set_status(req, HTTPD_200);
            httpd_resp_set_type(req, "application/json");
            httpd_resp_set_hdr(req, "Connection", "keep-alive");
            asprintf(&basic_auth_resp, "{\"authenticated\": true,\"user\": \"%s\"}", basic_auth_info->username);
            if (!basic_auth_resp) {
                ESP_LOGE(TAG, "No enough memory for basic authorization response");
                free(auth_credentials);
                free(buf);
                return ESP_ERR_NO_MEM;
            }
            httpd_resp_send(req, basic_auth_resp, strlen(basic_auth_resp));
            free(basic_auth_resp);
        }
        free(auth_credentials);
        free(buf);
    } else {
        ESP_LOGE(TAG, "No auth header received");
        httpd_resp_set_status(req, HTTPD_401);
        httpd_resp_set_type(req, "application/json");
        httpd_resp_set_hdr(req, "Connection", "keep-alive");
        httpd_resp_set_hdr(req, "WWW-Authenticate", "Basic realm=\"Hello\"");
        httpd_resp_send(req, NULL, 0);
    }

    return ESP_OK;
}

static httpd_uri_t basic_auth = {
    .uri       = "/basic_auth",
    .method    = HTTP_GET,
    .handler   = basic_auth_get_handler,
};

static void httpd_register_basic_auth(httpd_handle_t server)
{
    basic_auth_info_t *basic_auth_info = calloc(1, sizeof(basic_auth_info_t));
    if (basic_auth_info) {
        basic_auth_info->username = CONFIG_EXAMPLE_BASIC_AUTH_USERNAME;
        basic_auth_info->password = CONFIG_EXAMPLE_BASIC_AUTH_PASSWORD;

        basic_auth.user_ctx = basic_auth_info;
        httpd_register_uri_handler(server, &basic_auth);
    }
}
#endif

/* An HTTP GET handler */
static esp_err_t hello_get_handler(httpd_req_t *req)
{
    char*  buf;
    size_t buf_len;

    /* Get header value string length and allocate memory for length + 1,
     * extra byte for null termination */
    buf_len = httpd_req_get_hdr_value_len(req, "Host") + 1;
    if (buf_len > 1) {
        buf = malloc(buf_len);
        /* Copy null terminated value string into buffer */
        if (httpd_req_get_hdr_value_str(req, "Host", buf, buf_len) == ESP_OK) {
            ESP_LOGI(TAG, "Found header => Host: %s", buf);
        }
        free(buf);
    }

    buf_len = httpd_req_get_hdr_value_len(req, "Test-Header-2") + 1;
    if (buf_len > 1) {
        buf = malloc(buf_len);
        if (httpd_req_get_hdr_value_str(req, "Test-Header-2", buf, buf_len) == ESP_OK) {
            ESP_LOGI(TAG, "Found header => Test-Header-2: %s", buf);
        }
        free(buf);
    }

    buf_len = httpd_req_get_hdr_value_len(req, "Test-Header-1") + 1;
    if (buf_len > 1) {
        buf = malloc(buf_len);
        if (httpd_req_get_hdr_value_str(req, "Test-Header-1", buf, buf_len) == ESP_OK) {
            ESP_LOGI(TAG, "Found header => Test-Header-1: %s", buf);
        }
        free(buf);
    }

    /* Read URL query string length and allocate memory for length + 1,
     * extra byte for null termination */
    buf_len = httpd_req_get_url_query_len(req) + 1;
    if (buf_len > 1) {
        buf = malloc(buf_len);
        if (httpd_req_get_url_query_str(req, buf, buf_len) == ESP_OK) {
            ESP_LOGI(TAG, "Found URL query => %s", buf);
            char param[32];
            /* Get value of expected key from query string */
            if (httpd_query_key_value(buf, "query1", param, sizeof(param)) == ESP_OK) {
                ESP_LOGI(TAG, "Found URL query parameter => query1=%s", param);
            }
            if (httpd_query_key_value(buf, "query3", param, sizeof(param)) == ESP_OK) {
                ESP_LOGI(TAG, "Found URL query parameter => query3=%s", param);
            }
            if (httpd_query_key_value(buf, "query2", param, sizeof(param)) == ESP_OK) {
                ESP_LOGI(TAG, "Found URL query parameter => query2=%s", param);
            }
        }
        free(buf);
    }

    /* Set some custom headers */
    httpd_resp_set_hdr(req, "Custom-Header-1", "Custom-Value-1");
    httpd_resp_set_hdr(req, "Custom-Header-2", "Custom-Value-2");

    /* Send response with custom headers and body set as the
     * string passed in user context*/
    const char* resp_str = (const char*) req->user_ctx;
    httpd_resp_send(req, resp_str, HTTPD_RESP_USE_STRLEN);

    /* After sending the HTTP response the old HTTP request
     * headers are lost. Check if HTTP request headers can be read now. */
    if (httpd_req_get_hdr_value_len(req, "Host") == 0) {
        ESP_LOGI(TAG, "Request headers lost");
    }
    return ESP_OK;
}

static const httpd_uri_t hello = {
    .uri       = "/hello",
    .method    = HTTP_GET,
    .handler   = hello_get_handler,
    /* Let's pass response string in user
     * context to demonstrate it's usage */
    .user_ctx  = "Hello World!"
};

/* An HTTP POST handler */
static esp_err_t echo_post_handler(httpd_req_t *req)
{
    char buf[100];
    int ret, remaining = req->content_len;

    while (remaining > 0) {
        /* Read the data for the request */
        if ((ret = httpd_req_recv(req, buf,
                        MIN(remaining, sizeof(buf)))) <= 0) {
            if (ret == HTTPD_SOCK_ERR_TIMEOUT) {
                /* Retry receiving if timeout occurred */
                continue;
            }
            return ESP_FAIL;
        }

        /* Send back the same data */
        httpd_resp_send_chunk(req, buf, ret);
        remaining -= ret;

        /* Log data received */
        ESP_LOGI(TAG, "=========== RECEIVED DATA ==========");
        ESP_LOGI(TAG, "%.*s", ret, buf);
        ESP_LOGI(TAG, "====================================");
    }

    // End response
    httpd_resp_send_chunk(req, NULL, 0);
    return ESP_OK;
}

static const httpd_uri_t echo = {
    .uri       = "/echo",
    .method    = HTTP_POST,
    .handler   = echo_post_handler,
    .user_ctx  = NULL
};

/* This handler allows the custom error handling functionality to be
 * tested from client side. For that, when a PUT request 0 is sent to
 * URI /ctrl, the /hello and /echo URIs are unregistered and following
 * custom error handler http_404_error_handler() is registered.
 * Afterwards, when /hello or /echo is requested, this custom error
 * handler is invoked which, after sending an error message to client,
 * either closes the underlying socket (when requested URI is /echo)
 * or keeps it open (when requested URI is /hello). This allows the
 * client to infer if the custom error handler is functioning as expected
 * by observing the socket state.
 */
esp_err_t http_404_error_handler(httpd_req_t *req, httpd_err_code_t err)
{
    if (strcmp("/hello", req->uri) == 0) {
        httpd_resp_send_err(req, HTTPD_404_NOT_FOUND, "/hello URI is not available");
        /* Return ESP_OK to keep underlying socket open */
        return ESP_OK;
    } else if (strcmp("/echo", req->uri) == 0) {
        httpd_resp_send_err(req, HTTPD_404_NOT_FOUND, "/echo URI is not available");
        /* Return ESP_FAIL to close underlying socket */
        return ESP_FAIL;
    }
    /* For any other URI send 404 and close socket */
    httpd_resp_send_err(req, HTTPD_404_NOT_FOUND, "Some 404 error message");
    return ESP_FAIL;
}

/* An HTTP PUT handler. This demonstrates realtime
 * registration and deregistration of URI handlers
 */
static esp_err_t ctrl_put_handler(httpd_req_t *req)
{
    char buf;
    int ret;

    if ((ret = httpd_req_recv(req, &buf, 1)) <= 0) {
        if (ret == HTTPD_SOCK_ERR_TIMEOUT) {
            httpd_resp_send_408(req);
        }
        return ESP_FAIL;
    }

    if (buf == '0') {
        /* URI handlers can be unregistered using the uri string */
        ESP_LOGI(TAG, "Unregistering /hello and /echo URIs");
        httpd_unregister_uri(req->handle, "/hello");
        httpd_unregister_uri(req->handle, "/echo");
        /* Register the custom error handler */
        httpd_register_err_handler(req->handle, HTTPD_404_NOT_FOUND, http_404_error_handler);
    }
    else {
        ESP_LOGI(TAG, "Registering /hello and /echo URIs");
        httpd_register_uri_handler(req->handle, &hello);
        httpd_register_uri_handler(req->handle, &echo);
        /* Unregister custom error handler */
        httpd_register_err_handler(req->handle, HTTPD_404_NOT_FOUND, NULL);
    }

    /* Respond with empty body */
    httpd_resp_send(req, NULL, 0);
    return ESP_OK;
}

static const httpd_uri_t ctrl = {
    .uri       = "/ctrl",
    .method    = HTTP_PUT,
    .handler   = ctrl_put_handler,
    .user_ctx  = NULL
};

static httpd_handle_t start_webserver(void)
{
    httpd_handle_t server = NULL;
    httpd_config_t config = HTTPD_DEFAULT_CONFIG();
    config.lru_purge_enable = true;

    // Start the httpd server
    ESP_LOGI(TAG, "Starting server on port: '%d'", config.server_port);
    if (httpd_start(&server, &config) == ESP_OK) {
        // Set URI handlers
        ESP_LOGI(TAG, "Registering URI handlers");
        httpd_register_uri_handler(server, &hello);
        httpd_register_uri_handler(server, &echo);
        httpd_register_uri_handler(server, &ctrl);
        #if CONFIG_EXAMPLE_BASIC_AUTH
        httpd_register_basic_auth(server);
        #endif
        return server;
    }

    ESP_LOGI(TAG, "Error starting server!");
    return NULL;
}

static esp_err_t stop_webserver(httpd_handle_t server)
{
    // Stop the httpd server
    return httpd_stop(server);
}

static void disconnect_handler(void* arg, esp_event_base_t event_base,
                               int32_t event_id, void* event_data)
{
    httpd_handle_t* server = (httpd_handle_t*) arg;
    if (*server) {
        ESP_LOGI(TAG, "Stopping webserver");
        if (stop_webserver(*server) == ESP_OK) {
            *server = NULL;
        } else {
            ESP_LOGE(TAG, "Failed to stop http server");
        }
    }
}

static void connect_handler(void* arg, esp_event_base_t event_base,
                            int32_t event_id, void* event_data)
{
    httpd_handle_t* server = (httpd_handle_t*) arg;
    if (*server == NULL) {
        ESP_LOGI(TAG, "Starting webserver");
        *server = start_webserver();
    }
}

void app_main(void)
{
    static httpd_handle_t server = NULL;

    ESP_ERROR_CHECK(nvs_flash_init());
    ESP_ERROR_CHECK(esp_netif_init());
    ESP_ERROR_CHECK(esp_event_loop_create_default());

    /* This helper function configures Wi-Fi or Ethernet, as selected in menuconfig.
     * Read "Establishing Wi-Fi or Ethernet Connection" section in
     * examples/protocols/README.md for more information about this function.
     */
    ESP_ERROR_CHECK(example_connect());

    /* Register event handlers to stop the server when Wi-Fi or Ethernet is disconnected,
     * and re-start it upon connection.
     */
#ifdef CONFIG_EXAMPLE_CONNECT_WIFI
    ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &connect_handler, &server));
    ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_DISCONNECTED, &disconnect_handler, &server));
#endif // CONFIG_EXAMPLE_CONNECT_WIFI
#ifdef CONFIG_EXAMPLE_CONNECT_ETHERNET
    ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &connect_handler, &server));
    ESP_ERROR_CHECK(esp_event_handler_register(ETH_EVENT, ETHERNET_EVENT_DISCONNECTED, &disconnect_handler, &server));
#endif // CONFIG_EXAMPLE_CONNECT_ETHERNET

    /* Start the server for the first time */
    server = start_webserver();
}


text:
using Workbench.Core.Models;

namespace Workbench.Core.Tests.Unit
{
    /// <summary>
    /// Factory for building workspace models.
    /// </summary>
    internal class WorkspaceModelFactory
    {
        /// <summary>
        /// Create a simple workspace model.
        /// </summary>
        /// <returns>A simple workspace model.</returns>
        internal static WorkspaceModel Create()
        {
            return new WorkspaceBuilder()
                                 .AddSingleton("x", "z")
                                 .AddAggregate("y", 10, "1..9")
                                 .WithConstraintExpression("x > 1")
                                 .WithSharedDomain("z", "1..10")
                                 .Build();
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.amazonaws.services.directconnect.model.transform;

import java.util.Map;
import java.util.Map.Entry;

import com.amazonaws.services.directconnect.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;

import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;

/**
 * VirtualInterface JSON Unmarshaller
 */
public class VirtualInterfaceJsonUnmarshaller implements
        Unmarshaller<VirtualInterface, JsonUnmarshallerContext> {

    public VirtualInterface unmarshall(JsonUnmarshallerContext context)
            throws Exception {
        VirtualInterface virtualInterface = new VirtualInterface();

        int originalDepth = context.getCurrentDepth();
        String currentParentElement = context.getCurrentParentElement();
        int targetDepth = originalDepth + 1;

        JsonToken token = context.getCurrentToken();
        if (token == null)
            token = context.nextToken();
        if (token == VALUE_NULL)
            return null;

        while (true) {
            if (token == null)
                break;

            if (token == FIELD_NAME || token == START_OBJECT) {
                if (context.testExpression("ownerAccount", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setOwnerAccount(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("virtualInterfaceId", targetDepth)) {
                    context.nextToken();
                    virtualInterface
                            .setVirtualInterfaceId(StringJsonUnmarshaller
                                    .getInstance().unmarshall(context));
                }
                if (context.testExpression("location", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setLocation(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("connectionId", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setConnectionId(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("virtualInterfaceType", targetDepth)) {
                    context.nextToken();
                    virtualInterface
                            .setVirtualInterfaceType(StringJsonUnmarshaller
                                    .getInstance().unmarshall(context));
                }
                if (context.testExpression("virtualInterfaceName", targetDepth)) {
                    context.nextToken();
                    virtualInterface
                            .setVirtualInterfaceName(StringJsonUnmarshaller
                                    .getInstance().unmarshall(context));
                }
                if (context.testExpression("vlan", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setVlan(IntegerJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("asn", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setAsn(IntegerJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("authKey", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setAuthKey(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("amazonAddress", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setAmazonAddress(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("customerAddress", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setCustomerAddress(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context
                        .testExpression("virtualInterfaceState", targetDepth)) {
                    context.nextToken();
                    virtualInterface
                            .setVirtualInterfaceState(StringJsonUnmarshaller
                                    .getInstance().unmarshall(context));
                }
                if (context.testExpression("customerRouterConfig", targetDepth)) {
                    context.nextToken();
                    virtualInterface
                            .setCustomerRouterConfig(StringJsonUnmarshaller
                                    .getInstance().unmarshall(context));
                }
                if (context.testExpression("virtualGatewayId", targetDepth)) {
                    context.nextToken();
                    virtualInterface.setVirtualGatewayId(StringJsonUnmarshaller
                            .getInstance().unmarshall(context));
                }
                if (context.testExpression("routeFilterPrefixes", targetDepth)) {
                    context.nextToken();
                    virtualInterface
                            .setRouteFilterPrefixes(new ListUnmarshaller<RouteFilterPrefix>(
                                    RouteFilterPrefixJsonUnmarshaller
                                            .getInstance()).unmarshall(context));
                }
            } else if (token == END_ARRAY || token == END_OBJECT) {
                if (context.getLastParsedParentElement() == null
                        || context.getLastParsedParentElement().equals(
                                currentParentElement)) {
                    if (context.getCurrentDepth() <= originalDepth)
                        break;
                }
            }
            token = context.nextToken();
        }

        return virtualInterface;
    }

    private static VirtualInterfaceJsonUnmarshaller instance;

    public static VirtualInterfaceJsonUnmarshaller getInstance() {
        if (instance == null)
            instance = new VirtualInterfaceJsonUnmarshaller();
        return instance;
    }
}


text:
Building your XF app for testing and production

yo xf:application build [appName]


text:
package org.elasticsearch.client.node;

import com.google.common.collect.ImmutableMap;
import java.util.Map;
import org.elasticsearch.ElasticSearchIllegalArgumentException;
import org.elasticsearch.action.*;
import org.elasticsearch.action.admin.cluster.ClusterAction;
import org.elasticsearch.action.support.TransportAction;
import org.elasticsearch.client.ClusterAdminClient;
import org.elasticsearch.client.support.AbstractClusterAdminClient;
import org.elasticsearch.common.collect.MapBuilder;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.threadpool.ThreadPool;

/**
 *
 */
public class NodeClusterAdminClient extends AbstractClusterAdminClient
    implements ClusterAdminClient  {

    private final Settings settings;

    private final ThreadPool threadPool;

    private final ImmutableMap<ClusterAction, TransportAction> actions;

    @Inject
    public NodeClusterAdminClient(Settings settings, ThreadPool threadPool,
            Map<GenericAction, TransportAction> actions) {
        this.settings = settings;
        this.threadPool = threadPool;
        MapBuilder<ClusterAction, TransportAction> actionsBuilder = new MapBuilder<ClusterAction, TransportAction>();
        for (Map.Entry<GenericAction, TransportAction> entry : actions.entrySet()) {
            if (entry.getKey() instanceof ClusterAction) {
                actionsBuilder.put((ClusterAction) entry.getKey(), entry.getValue());
            }
        }
        this.actions = actionsBuilder.immutableMap();
    }

    @Override
    public Settings settings() {
        return this.settings;
    }

    @Override
    public ThreadPool threadPool() {
        return threadPool;
    }

    @Override
    public void close() {
        // nothing really to do
    }

    public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>>
            ActionFuture<Response> execute(ClusterAction<Request, Response, RequestBuilder> action, Request request) {
        TransportAction<Request, Response> transportAction = actions.get(action);
        return transportAction.execute(request);
    }

    public <Request extends ActionRequest, Response extends ActionResponse, RequestBuilder extends ActionRequestBuilder<Request, Response, RequestBuilder>>
            void execute(ClusterAction<Request, Response, RequestBuilder> action, Request request, ActionListener<Response> listener) {
        TransportAction<Request, Response> transportAction = actions.get(action);
        transportAction.execute(request, listener);
    }

}


text:
'''OpenGL extension IBM.rasterpos_clip

This module customises the behaviour of the
OpenGL.raw.GL.IBM.rasterpos_clip to provide a more
Python-friendly API

Overview (from the spec)

	IBM_rasterpos_clip extends the semantics of the RasterPos functions.  It
	provides an enable that allows a raster position that would normally be
	clipped to be treated as a valid (albeit out-of-viewport) position.

	This extension allows applications to specify geometry-aligned pixel
	primitives that may be partially off-screen.  These primitives are
	tested on a pixel-by-pixel basis without being rejected completely
	because of an invalid raster position.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/IBM/rasterpos_clip.txt
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.IBM.rasterpos_clip import *
### END AUTOGENERATED SECTION


text: export { default } from 'liquid-fire-tweenlite/transitions/to-up';


text:
package pluggable

import (
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"path/filepath"
	"syscall"
	"time"

	docker "github.com/fsouza/go-dockerclient"
	"github.com/hyperledger/fabric/integration/nwo"
	"github.com/hyperledger/fabric/integration/nwo/commands"
	"github.com/hyperledger/fabric/integration/nwo/fabricconfig"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/onsi/gomega/gbytes"
	"github.com/onsi/gomega/gexec"
	"github.com/tedsuo/ifrit"
)

var _ = Describe("EndToEnd", func() {
	var (
		testDir   string
		client    *docker.Client
		network   *nwo.Network
		chaincode nwo.Chaincode
		process   ifrit.Process

		endorsementPluginPath string
		validationPluginPath  string
	)

	BeforeEach(func() {
		var err error
		testDir, err = ioutil.TempDir("", "pluggable-suite")
		Expect(err).NotTo(HaveOccurred())

		// Compile plugins
		endorsementPluginPath = compilePlugin("endorsement")
		validationPluginPath = compilePlugin("validation")

		// Create directories for endorsement and validation activation
		dir := filepath.Join(testDir, "endorsement")
		err = os.Mkdir(dir, 0o700)
		Expect(err).NotTo(HaveOccurred())
		SetEndorsementPluginActivationFolder(dir)

		dir = filepath.Join(testDir, "validation")
		err = os.Mkdir(dir, 0o700)
		Expect(err).NotTo(HaveOccurred())
		SetValidationPluginActivationFolder(dir)

		// Speed up test by reducing the number of peers we bring up
		soloConfig := nwo.BasicSolo()
		soloConfig.RemovePeer("Org1", "peer1")
		soloConfig.RemovePeer("Org2", "peer1")
		Expect(soloConfig.Peers).To(HaveLen(2))

		// docker client
		client, err = docker.NewClientFromEnv()
		Expect(err).NotTo(HaveOccurred())

		network = nwo.New(soloConfig, testDir, client, StartPort(), components)
		network.GenerateConfigTree()

		// modify config
		configurePlugins(network, endorsementPluginPath, validationPluginPath)

		// generate network config
		network.Bootstrap()

		networkRunner := network.NetworkGroupRunner()
		process = ifrit.Invoke(networkRunner)
		Eventually(process.Ready(), network.EventuallyTimeout).Should(BeClosed())

		chaincode = nwo.Chaincode{
			Name:            "mycc",
			Version:         "0.0",
			Path:            components.Build("github.com/hyperledger/fabric/integration/chaincode/simple/cmd"),
			Lang:            "binary",
			PackageFile:     filepath.Join(testDir, "simplecc.tar.gz"),
			Ctor:            `{"Args":["init","a","100","b","200"]}`,
			SignaturePolicy: `OR ('Org1MSP.member','Org2MSP.member')`,
			Sequence:        "1",
			InitRequired:    true,
			Label:           "my_prebuilt_chaincode",
		}
		orderer := network.Orderer("orderer")
		network.CreateAndJoinChannel(orderer, "testchannel")
		nwo.EnableCapabilities(network, "testchannel", "Application", "V2_0", orderer, network.Peer("Org1", "peer0"), network.Peer("Org2", "peer0"))
		nwo.DeployChaincode(network, "testchannel", orderer, chaincode)
	})

	AfterEach(func() {
		// stop the network
		process.Signal(syscall.SIGTERM)
		Eventually(process.Wait(), network.EventuallyTimeout).Should(Receive())

		// cleanup the network artifacts
		network.Cleanup()
		os.RemoveAll(testDir)

		// cleanup the compiled plugins
		os.Remove(endorsementPluginPath)
		os.Remove(validationPluginPath)
	})

	It("executes a basic solo network with specified plugins", func() {
		// Make sure plugins activated
		peerCount := len(network.Peers)
		activations := CountEndorsementPluginActivations()
		Expect(activations).To(Equal(peerCount))
		activations = CountValidationPluginActivations()
		Expect(activations).To(Equal(peerCount))

		RunQueryInvokeQuery(network, network.Orderer("orderer"), network.Peer("Org1", "peer0"))
	})
})

// compilePlugin compiles the plugin of the given type and returns the path for
// the plugin file.
func compilePlugin(pluginType string) string {
	// Building plugins can take quite a while as the build caches won't be
	// populated for the 'dynlink' install suffix. While a minute or two is
	// usually enough, timeouts have occurred at 2 minutes on slow machines.
	const buildTimeout = 5 * time.Minute

	pluginFilePath := filepath.Join("testdata", "plugins", pluginType, "plugin.so")
	cmd := exec.Command(
		"go", "build",
		"-x", // print build commands while running
		"-buildmode=plugin",
		"-o", pluginFilePath,
		fmt.Sprintf("github.com/hyperledger/fabric/integration/pluggable/testdata/plugins/%s", pluginType),
	)
	pw := gexec.NewPrefixedWriter(fmt.Sprintf("[build-plugin-%s] ", pluginType), GinkgoWriter)
	sess, err := gexec.Start(cmd, pw, pw)
	Expect(err).NotTo(HaveOccurred())
	Eventually(sess, buildTimeout).Should(gexec.Exit(0))

	Expect(pluginFilePath).To(BeARegularFile())
	return pluginFilePath
}

func configurePlugins(network *nwo.Network, endorsement, validation string) {
	for _, p := range network.Peers {
		core := network.ReadPeerConfig(p)
		core.Peer.Handlers.Endorsers = fabricconfig.HandlerMap{
			"escc": fabricconfig.Handler{Name: "plugin-escc", Library: endorsement},
		}
		core.Peer.Handlers.Validators = fabricconfig.HandlerMap{
			"vscc": fabricconfig.Handler{Name: "plugin-vscc", Library: validation},
		}
		network.WritePeerConfig(p, core)
	}
}

func RunQueryInvokeQuery(n *nwo.Network, orderer *nwo.Orderer, peer *nwo.Peer) {
	By("querying the chaincode")
	sess, err := n.PeerUserSession(peer, "User1", commands.ChaincodeQuery{
		ChannelID: "testchannel",
		Name:      "mycc",
		Ctor:      `{"Args":["query","a"]}`,
	})
	Expect(err).NotTo(HaveOccurred())
	Eventually(sess, n.EventuallyTimeout).Should(gexec.Exit(0))
	Expect(sess).To(gbytes.Say("100"))

	sess, err = n.PeerUserSession(peer, "User1", commands.ChaincodeInvoke{
		ChannelID: "testchannel",
		Orderer:   n.OrdererAddress(orderer, nwo.ListenPort),
		Name:      "mycc",
		Ctor:      `{"Args":["invoke","a","b","10"]}`,
		PeerAddresses: []string{
			n.PeerAddress(n.Peer("Org1", "peer0"), nwo.ListenPort),
			n.PeerAddress(n.Peer("Org2", "peer0"), nwo.ListenPort),
		},
		WaitForEvent: true,
	})
	Expect(err).NotTo(HaveOccurred())
	Eventually(sess, n.EventuallyTimeout).Should(gexec.Exit(0))
	Expect(sess.Err).To(gbytes.Say("Chaincode invoke successful. result: status:200"))

	sess, err = n.PeerUserSession(peer, "User1", commands.ChaincodeQuery{
		ChannelID: "testchannel",
		Name:      "mycc",
		Ctor:      `{"Args":["query","a"]}`,
	})
	Expect(err).NotTo(HaveOccurred())
	Eventually(sess, n.EventuallyTimeout).Should(gexec.Exit(0))
	Expect(sess).To(gbytes.Say("90"))
}


text:
package io.soabase.halva.sugar;

import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import static io.soabase.halva.sugar.Sugar.*;
import static io.soabase.halva.tuple.Tuple.Tu;

public class TestSugarObjects
{
    @Test
    public void testList()
    {
        List<String> empty = List();
        Assert.assertNotNull(empty);
        Assert.assertEquals(0, empty.size());

        Assert.assertEquals(Arrays.asList("10", "20", "30"), List("10", "20", "30"));

        ConsList<String> l = List("10", "20", "30");

        Assert.assertEquals("10", l.head());
        Assert.assertEquals(List("20", "30"), l.tail());

        Assert.assertEquals(List("0", "10", "20", "30"), cons("0", l));
        Assert.assertEquals(List("1", "2", "3", "10", "20", "30"), concat(List("1", "2", "3"), l));
    }

    @Test
    public void testSet()
    {
        Set<String> empty = Set();
        Assert.assertNotNull(empty);
        Assert.assertEquals(0, empty.size());

        Set<String> expected = new HashSet<>();
        expected.addAll(Arrays.asList("10", "20", "30"));
        Assert.assertEquals(expected, Set("10", "20", "30"));
    }

    @Test
    public void testMap()
    {
        Map<String, Integer> empty = Map();
        Assert.assertNotNull(empty);
        Assert.assertEquals(0, empty.size());

        Map<String, Integer> expected = new HashMap<>();
        expected.put("10", 10);
        expected.put("20", 20);
        expected.put("30", 30);
        Assert.assertEquals(expected, Map(Tu("10", 10), Tu("20", 20), Tu("30", 30)));
    }
}


text:
import TestWrapper from './TestWrapper'

export default class CheerioTestWrapper extends TestWrapper {
  constructor (wrapper) {
    super()
    this.wrapper = wrapper
  }

  get el () {
    if (!this.__el) {
      if (this.wrapper.first()['0'].type === 'root') {
        this.__el = this.wrapper.children().first()
      } else {
        this.__el = this.wrapper.first()
      }
    }

    return this.__el
  }

  inspect () {
    return 'the node in <??? />'
  }

  isEmpty () {
    // React 0.14.x returns an element with tag name <noscript />, while
    // 15.x returns no element at all.

    if (this.tagName() === null || this.tagName() === 'noscript') {
      return true
    }

    return super.isEmpty()
  }

  attr (name) {
    return this.el.attr(name)
  }

  html () {
    return this.el.toString()
  }

  innerHtml () {
    return this.el.html()
  }

  style (name) {
    return this.el.css(name)
  }

  tagName () {
    const el = this.el[0]

    if (el) {
      return el.name
    }

    return null
  }

  data (name) {
    return this.el.data(name)
  }

  hasClass (name) {
    return this.el.hasClass(name)
  }

  classNames () {
    return this.el.attr('class')
  }

  value () {
    if (this.tagName() === 'textarea') {
      return this.innerHtml()
    }

    if (this.tagName() === 'select') {
      return this.el.val()
    }

    return this.el.attr('value')
  }

  id () {
    return this.el.attr('id')
  }

  isChecked () {
    return this.is(':checked')
  }

  isDisabled () {
    return this.is(':disabled')
  }

  isSelected () {
    return this.is(':selected')
  }

  is (selector) {
    return this.el.is(selector)
  }

  hasNode () {
    throw new Error('static rendering does not support `contain` yet')
  }

  state () {
    throw new Error('static rendering does not support `state` yet')
  }

  prop () {
    throw new Error('static rendering does not support `prop` yet')
  }

  hasRef () {
    throw new Error('static rendering does not support refs')
  }

  type () {
    throw new Error('static rendering does not support `type`')
  }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;

namespace StructureMap.Testing.Bugs
{
    [TestFixture]
    public class EnumerableShouldGetAllValuesTester
    {
        public interface IWidget
        {
            void DoSomething();
        }

        public class ColorWidget : IWidget
        {
            private readonly string _Color;

            public ColorWidget(string color)
            {
                _Color = color;
            }

            public string Color
            {
                get { return _Color; }
            }

            public void DoSomething()
            {
                throw new NotImplementedException();
            }
        }

        [Test]
        public void ienumerable_arg_should_get_all_registered()
        {
            var container = new Container(x => {
                x.For<IWidget>().AddInstances(o => {
                    o.Type<ColorWidget>().Ctor<string>("color").Is("red");
                    o.Type<ColorWidget>().Ctor<string>("color").Is("blue");
                    o.Type<ColorWidget>().Ctor<string>("color").Is("green");
                });
            });

            container.GetInstance<ClassWithEnumerable>().Widgets.Count().ShouldEqual(3);
        }

        public class ClassWithEnumerable
        {
            private readonly IEnumerable<IWidget> _widgets;

            public ClassWithEnumerable(IEnumerable<IWidget> widgets)
            {
                _widgets = widgets;
            }

            public IEnumerable<IWidget> Widgets
            {
                get { return _widgets; }
            }
        }
    }
}


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

  <title>Description of agilent_h5read</title>
  <meta name="keywords" content="agilent_h5read">
  <meta name="description" content="agilent_h5read : read Agilent HDF5 binary data files">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html v1.5 © 2003-2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../../../../m2html.css">

Home >  .. > SMASHtoolbox > programs > PointVISAR > private > agilent_h5read.m

agilent_h5read

PURPOSE

agilent_h5read : read Agilent HDF5 binary data files

SYNOPSIS

function [signal,time,label]=agilent_h5read(filename,index)

DESCRIPTION

 agilent_h5read : read Agilent HDF5 binary data files

 This function reads files data created by Agilent digitizers
 stored in the HDF5 format (*.h5).  These files contain one or more
 signals in a binary format.

 Usage:
   >> [signal,time,label]=agilent_h5read(filename,index);
 If filename is omitted or empty (''), the user will be prompted to
 select a file.  If the index is omitted, the function returns the first
 signal stored in the file.  Specific signals can be accessed by passing
 an integer:
   >> [signal,time]=agilent_h5read(filename,2);
 Setting index='all' returns every signal from the file; passing
 index='gui' prompts the user to select a *single* signal within the file.

 When a single signal is extracted, the function return numerical
 (signal/time) and textual (label) arrays.  Cell array outputs are used
 for multiple signal extraction.

CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

LoadSignals	LOADSIGNALS   Loads raw signals into PointVISAR

SOURCE CODE

0001 % agilent_h5read : read Agilent HDF5 binary data files
0002 %
0003 % This function reads files data created by Agilent digitizers
0004 % stored in the HDF5 format (*.h5).  These files contain one or more
0005 % signals in a binary format.
0006 %
0007 % Usage:
0008 %   >> [signal,time,label]=agilent_h5read(filename,index);
0009 % If filename is omitted or empty (''), the user will be prompted to
0010 % select a file.  If the index is omitted, the function returns the first
0011 % signal stored in the file.  Specific signals can be accessed by passing
0012 % an integer:
0013 %   >> [signal,time]=agilent_h5read(filename,2);
0014 % Setting index='all' returns every signal from the file; passing
0015 % index='gui' prompts the user to select a *single* signal within the file.
0016 %
0017 % When a single signal is extracted, the function return numerical
0018 % (signal/time) and textual (label) arrays.  Cell array outputs are used
0019 % for multiple signal extraction.
0020
0021 % created December 19, 2011 by Daniel Dolan (Sandia National Labs)
0022 function [signal,time,label]=agilent_h5read(filename,index)
0023
0024 % handle input
0025 if (nargin<1) || isempty(filename)
0026     types={};
0027     types(end+1,:)={'*.h5;*.H5','Agilent HDF5 files'};
0028     types(end+1,:)={'*.*','All files'};
0029     [filename,pathname]=uigetfile(types,'Select Agilent data file');
0030     if isnumeric(filename) % user pressed cancel
0031         return
0032     end
0033     filename=fullfile(pathname,filename);
0034 end
0035
0036 if (nargin<2) || isempty(index)
0037     index=1;
0038 end
0039
0040 % extract header information
0041 info=hdf5info(filename);
0042 info=info.GroupHierarchy.Groups(3);
0043 num_signal=info.Attributes.Value;
0044
0045 % prompt user to select signal (GUI mode)
0046 if strcmpi(index,'gui')
0047     choice=cell(num_signal,1);
0048     for n=1:num_signal
0049         [~,choice{n}]=fileparts(info.Groups(n).Name);
0050     end
0051     [index,ok]=listdlg(...
0052         'PromptString','Select signal for import',...
0053         'Name','Select signal',...
0054         'ListString',choice,...
0055         'SelectionMode','single');
0056     if ~ok % user pressed cancel or closed the dialog
0057         return
0058     end
0059 elseif strcmp(index,'all')
0060     index=1:num_signal;
0061 end
0062
0063 % extract data
0064 [signal,time,label]=deal(cell(numel(index),1));
0065 for n=1:numel(index)
0066     group=info.Groups(index(n));
0067     label{n}=group.Name;
0068     name=group.Datasets.Name;
0069     signal{n}=h5read(filename,name);
0070     signal{n}=signal{n}(:);
0071     numpoints=numel(signal{n});
0072     dx=group.Attributes(8).Value;
0073     left=group.Attributes(9).Value;
0074     right=left+(numpoints-1)*dx;
0075     time{n}=left:dx:right;
0076     time{n}=time{n}(:);
0077 end
0078
0079 if numel(signal)==1
0080     signal=signal{1};
0081     time=time{1};
0082     label=label{1};
0083 end

<address>Generated on Tue 10-Nov-2020 17:53:50 by m2html © 2005</address>


text:
import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { getWorkflowDefs } from '../../actions/WorkflowActions';

class WorkflowMetaList extends React.Component {
  state = {
    workflows: []
  };

  componentWillMount() {
    this.props.dispatch(getWorkflowDefs());
  }

  componentWillReceiveProps({ workflows }) {
    this.setState({ workflows });
  }

  render() {
    const { workflows } = this.state;

    function jsonMaker(cell) {
      return JSON.stringify(cell);
    }

    function taskMaker(cell) {
      if (cell == null) {
        return '';
      }
      return JSON.stringify(
        cell.map(task => {
          return task.name;
        })
      );
    }

    function nameMaker(cell, row) {
      return (
        <Link to={`/workflow/metadata/${row.name}/${row.version}`}>
          {row.name} / {row.version}
        </Link>
      );
    }

    return (

Workflows

        <BootstrapTable data={workflows} striped hover search exportCSV={false} pagination={false}>
          <TableHeaderColumn dataField="name" isKey dataAlign="left" dataSort dataFormat={nameMaker}>
            Name/Version
          </TableHeaderColumn>
          <TableHeaderColumn dataField="inputParameters" dataSort dataFormat={jsonMaker}>
            Input Parameters
          </TableHeaderColumn>
          <TableHeaderColumn dataField="tasks" hidden={false} dataFormat={taskMaker}>
            Tasks
          </TableHeaderColumn>
        </BootstrapTable>

    );
  }
}

export default connect(state => state.workflow)(WorkflowMetaList);


text:
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="us.ridiculousbakery.espressoexpress.ChooseItemFlow_Teddy.Activities.MenuActivity"
    android:id="@+id/flContainer">
</FrameLayout>


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

var quiche = require('../quiche');

describe('HTTP(S) request functions', function() {
  var pie = quiche('pie');
  pie.setTransparentBackground();
  pie.addData(3000, 'Female', 'FF0000');
  pie.addData(2900, 'Male', '0000FF');
  pie.addData(50, 'Unknown', '00FF00');

  it('should return GET request', function(done) {
    var bytes = 0;
    var get = pie.getReq(true, function(res) {
      assert.notEqual(res, undefined);
      assert.strictEqual(res.statusCode, 200);
      assert.strictEqual(res.headers['content-type'], 'image/png');

      var contentLength = parseInt(res.headers['content-length'], 10);
      assert.strictEqual(contentLength > 0, true)

      res.on('data', function(data) {
	bytes += data.length;
      });

      res.on('end', function() {
	assert.strictEqual(contentLength, bytes);
	done();
      });
    })

    get.on('error', function(err) {
      assert.equal(err, undefined)
    });

    get.end();
  });

  it('should return POST request', function(done) {
    var bytes = 0;
    var post = pie.getPostReq(true, function(res) {
      assert.notEqual(res, undefined);
      assert.strictEqual(res.statusCode, 200);
      assert.strictEqual(res.headers['content-type'], 'image/png');

      var contentLength = parseInt(res.headers['content-length'], 10);
      assert.strictEqual(contentLength > 0, true)

      res.on('data', function(data) {
	bytes += data.length;
      });

      res.on('end', function() {
	assert.strictEqual(contentLength, bytes);
	done();
      });
    })

    post.on('error', function(err) {
      assert.equal(err, undefined)
    });

    post.end();
  });
});


text:
package com.tinkerpop.pipes.branch;

import com.tinkerpop.pipes.AbstractPipe;
import com.tinkerpop.pipes.IdentityPipe;
import com.tinkerpop.pipes.Pipe;
import com.tinkerpop.pipes.util.PipeHelper;
import com.tinkerpop.pipes.util.Pipeline;
import junit.framework.TestCase;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public class LoopPipeTest extends TestCase {

    public void testPipeBasic() {
        Pipe<String, String> pipe = new LoopPipe(new RemoveCharPipe(), LoopPipe.createLoopsFunction(3));
        pipe.setStarts(Arrays.asList("aaaaaa", "bbbb", "c"));
        int counter = 0;
        while (pipe.hasNext()) {
            String string = pipe.next();
            if (counter == 0) {
                assertEquals(string, "aaaa");
            } else if (counter == 1) {
                assertEquals(string, "bb");
            } else if (counter == 2) {
                assertEquals(string, "");
            }

            counter++;
        }
        assertEquals(counter, 3);
    }

    public void testEmitFunctionality() {
        Pipe<String, String> pipe = new LoopPipe(new RemoveCharPipe(), LoopPipe.createLoopsFunction(3), LoopPipe.createTrueFunction());
        pipe.setStarts(Arrays.asList("aaaaaa", "bbbb", "c"));
        List<String> results = Arrays.asList("aaaaa", "aaaa", "bbb", "bb", "", "");
        int counter = 0;
        while (pipe.hasNext()) {
            String string = pipe.next();
            assertTrue(results.contains(string));
            counter++;
        }
        assertEquals(counter, results.size());
    }

    public void testPipeNoElements() {
        Pipe<String, String> pipe = new LoopPipe(new RemoveCharPipe(), LoopPipe.createLoopsFunction(3));
        pipe.setStarts(new ArrayList<String>());
        int counter = 0;
        while (pipe.hasNext()) {
            pipe.next();
            counter++;
        }
        assertEquals(counter, 0);
    }

    public void testUnrolledLoopEquality() {
        Pipe pipe1 = new Pipeline(new IdentityPipe(), new LoopPipe(new AddOnePipe(), LoopPipe.createLoopsFunction(3)));
        pipe1.setStarts(Arrays.asList(1, 2, 3));
        Pipe pipe2 = new Pipeline(new IdentityPipe(), new AddOnePipe(), new AddOnePipe());
        pipe2.setStarts(Arrays.asList(1, 2, 3));

        assertTrue(PipeHelper.areEqual(pipe1, pipe2));
    }

    private class RemoveCharPipe extends AbstractPipe<String, String> {
        public String processNextStart() {
            String s = this.starts.next();
            if (s.length() == 0) {
                return s;
            } else {
                return s.substring(0, s.length() - 1);
            }
        }
    }

    private class AddOnePipe extends AbstractPipe<Integer, Integer> {
        public Integer processNextStart() {
            return this.starts.next() + 1;
        }
    }

}


text:
function test_nc_varrename_neg(mode)

switch(mode)
	case nc_clobber_mode
		run_nc3_tests;

	case 'netcdf4-classic'
		run_nc4_tests;

end

%--------------------------------------------------------------------------
function run_nc3_tests()

ncfile = 'foo.nc';
mode = nc_clobber_mode;
test_inputs_not_all_char ( ncfile, mode );
test_empty_file ( ncfile,mode );
test_variable_not_present ( ncfile,mode );
test_variable_with_same_name (ncfile,mode);
return

%--------------------------------------------------------------------------
function run_nc4_tests()

ncfile = 'foo4.nc';
mode = bitor(nc_clobber_mode,nc_netcdf4_classic);
test_inputs_not_all_char ( ncfile, mode );
test_empty_file ( ncfile,mode );
test_variable_not_present ( ncfile,mode );
test_variable_with_same_name (ncfile,mode);

return

%--------------------------------------------------------------------------
function test_variable_with_same_name ( ncfile,mode )

nc_create_empty ( ncfile,mode );
nc_add_dimension ( ncfile, 't', 0 );
clear varstruct;
varstruct.Name = 't';
varstruct.Nctype = 'double';
varstruct.Dimension = { 't' };
nc_addvar ( ncfile, varstruct );
varstruct.Name = 't2';
varstruct.Nctype = 'double';
varstruct.Dimension = { 't' };
nc_addvar ( ncfile, varstruct );

try
	nc_varrename ( ncfile, 't', 't2' );
catch me
    switch(me.identifier)
        case {'MATLAB:imagesci:netcdf:libraryFailure', ... % 2011b
                'MATLAB:netcdf:renameVar:enameinuse:nameIsAlreadyInUse', ... % 2011a
                'MATLAB:netcdf:renameVar:nameIsAlreadyInUse', ... % 2009b
                'snctools:varrename:mexnc:RENAME_VAR' } % 2008a
            return
        otherwise
            rethrow(me)
    end
end

error('failed')

%--------------------------------------------------------------------------
function test_empty_file ( ncfile,mode )

nc_create_empty ( ncfile,mode );
try
	nc_varrename ( ncfile, 'x', 'y' );
catch me
    switch(me.identifier)
        case {'MATLAB:imagesci:netcdf:libraryFailure', ... % 2011b
                'MATLAB:netcdf:inqVarID:enotvar:variableNotFound', ... % 2011a
                'MATLAB:netcdf:inqVarID:variableNotFound', ... % 2009b
                'snctools:varrename:mexnc:INQ_VARID' } % 2008a
            return
        otherwise
            rethrow(me)
    end
end
error('succeeded when it should have failed');

%--------------------------------------------------------------------------
function test_variable_not_present ( ncfile,mode )

nc_create_empty ( ncfile,mode );
nc_add_dimension ( ncfile, 't', 0 );
clear varstruct;
varstruct.Name = 't';
varstruct.Nctype = 'double';
varstruct.Dimension = { 't' };
nc_addvar ( ncfile, varstruct );

try
    nc_varrename ( ncfile, 't2', 't3' );
catch me
    switch(me.identifier)
        case {'MATLAB:imagesci:netcdf:libraryFailure', ... % 2011b
                'MATLAB:netcdf:inqVarID:enotvar:variableNotFound', ... % 2011a
                'MATLAB:netcdf:inqVarID:variableNotFound', ... % 2009b
                'snctools:varrename:mexnc:INQ_VARID' } % 2008a
            return
        otherwise
            rethrow(me)
    end
end
error('succeeded when it should have failed.');

%--------------------------------------------------------------------------
function test_inputs_not_all_char(ncfile,mode)

% Ok, now we'll create the test file
nc_create_empty ( ncfile,mode );
nc_add_dimension ( ncfile, 't', 0 );
clear varstruct;
varstruct.Name = 't';
varstruct.Nctype = 'double';
varstruct.Dimension = {'t'};
nc_addvar ( ncfile, varstruct );

try
	nc_varrename ( ncfile, 'x', 1 );
catch me
    switch(me.identifier)
        case {'MATLAB:imagesci:netcdf:libraryFailure', ... % 2011b
                'MATLAB:netcdf:inqVarID:enotvar:variableNotFound', ... % 2011a
                'MATLAB:netcdf:inqVarID:variableNotFound', ... % 2009b
                'snctools:varrename:mexnc:INQ_VARID' } % 2008a
            return
        otherwise
            rethrow(me)
    end
end
error('succeeded when it should have failed');


text:
<?php

namespace Symfony\Component\Validator\Tests\Constraints;

use Symfony\Component\Validator\Constraints\DateTime;
use Symfony\Component\Validator\Constraints\DateTimeValidator;

class DateTimeValidatorTest extends AbstractConstraintValidatorTest
{
    protected function createValidator()
    {
        return new DateTimeValidator();
    }

    public function testNullIsValid()
    {
        $this->validator->validate(null, new DateTime());

        $this->assertNoViolation();
    }

    public function testEmptyStringIsValid()
    {
        $this->validator->validate('', new DateTime());

        $this->assertNoViolation();
    }

    public function testDateTimeClassIsValid()
    {
        $this->validator->validate(new \DateTime(), new DateTime());

        $this->assertNoViolation();
    }

    public function testDateTimeImmutableClassIsValid()
    {
        $this->validator->validate(new \DateTimeImmutable(), new DateTime());

        $this->assertNoViolation();
    }

    /**
     * @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
     */
    public function testExpectsStringCompatibleType()
    {
        $this->validator->validate(new \stdClass(), new DateTime());
    }

    /**
     * @dataProvider getValidDateTimes
     */
    public function testValidDateTimes($dateTime)
    {
        $this->validator->validate($dateTime, new DateTime());

        $this->assertNoViolation();
    }

    public function getValidDateTimes()
    {
        return array(
            array('2010-01-01 01:02:03'),
            array('1955-12-12 00:00:00'),
            array('2030-05-31 23:59:59'),
        );
    }

    /**
     * @dataProvider getInvalidDateTimes
     */
    public function testInvalidDateTimes($dateTime, $code)
    {
        $constraint = new DateTime(array(
            'message' => 'myMessage',
        ));

        $this->validator->validate($dateTime, $constraint);

        $this->buildViolation('myMessage')
            ->setParameter('{{ value }}', '"'.$dateTime.'"')
            ->setCode($code)
            ->assertRaised();
    }

    public function getInvalidDateTimes()
    {
        return array(
            array('foobar', DateTime::INVALID_FORMAT_ERROR),
            array('2010-01-01', DateTime::INVALID_FORMAT_ERROR),
            array('00:00:00', DateTime::INVALID_FORMAT_ERROR),
            array('2010-01-01 00:00', DateTime::INVALID_FORMAT_ERROR),
            array('2010-13-01 00:00:00', DateTime::INVALID_DATE_ERROR),
            array('2010-04-32 00:00:00', DateTime::INVALID_DATE_ERROR),
            array('2010-02-29 00:00:00', DateTime::INVALID_DATE_ERROR),
            array('2010-01-01 24:00:00', DateTime::INVALID_TIME_ERROR),
            array('2010-01-01 00:60:00', DateTime::INVALID_TIME_ERROR),
            array('2010-01-01 00:00:60', DateTime::INVALID_TIME_ERROR),
        );
    }
}


text:
"""Utilities for Google Compute Engine

Utilities for making it easier to use OAuth 2.0 on Google Compute Engine.
"""

import json
import logging
from six.moves import urllib

from oauth2client import util
from oauth2client.client import AccessTokenRefreshError
from oauth2client.client import AssertionCredentials

logger = logging.getLogger(__name__)

# URI Template for the endpoint that returns access_tokens.
META = ('http://metadata.google.internal/0.1/meta-data/service-accounts/'
        'default/acquire{?scope}')

class AppAssertionCredentials(AssertionCredentials):
  """Credentials object for Compute Engine Assertion Grants

  This object will allow a Compute Engine instance to identify itself to
  Google and other OAuth 2.0 servers that can verify assertions. It can be used
  for the purpose of accessing data stored under an account assigned to the
  Compute Engine instance itself.

  This credential does not require a flow to instantiate because it represents
  a two legged flow, and therefore has all of the required information to
  generate and refresh its own access tokens.
  """

  @util.positional(2)
  def __init__(self, scope, **kwargs):
    """Constructor for AppAssertionCredentials

    Args:
      scope: string or iterable of strings, scope(s) of the credentials being
        requested.
    """
    self.scope = util.scopes_to_string(scope)
    self.kwargs = kwargs

    # Assertion type is no longer used, but still in the parent class signature.
    super(AppAssertionCredentials, self).__init__(
        None, user_agent=(
            'Legacy oauth2client.gce.AppAssertionCrendentials (not current '
            'oauth2client.contrib.gce.AppAssertionCredentials)'))

  @classmethod
  def from_json(cls, json_data):
    data = json.loads(json_data)
    return AppAssertionCredentials(data['scope'])

  def _refresh(self, http_request):
    """Refreshes the access_token.

    Skip all the storage hoops and just refresh using the API.

    Args:
      http_request: callable, a callable that matches the method signature of
        httplib2.Http.request, used to make the refresh request.

    Raises:
      AccessTokenRefreshError: When the refresh fails.
    """
    query = '?scope=%s' % urllib.parse.quote(self.scope, '')
    uri = META.replace('{?scope}', query)
    response, content = http_request(uri)
    if response.status == 200:
      try:
        d = json.loads(content)
      except Exception as e:
        raise AccessTokenRefreshError(str(e))
      self.access_token = d['accessToken']
    else:
      if response.status == 404:
        content += (' This can occur if a VM was created'
                    ' with no service account or scopes.')
      raise AccessTokenRefreshError(content)

  @property
  def serialization_data(self):
    raise NotImplementedError(
        'Cannot serialize credentials for GCE service accounts.')

  def create_scoped_required(self):
    return not self.scope

  def create_scoped(self, scopes):
    return AppAssertionCredentials(scopes, **self.kwargs)


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SF.Foundation.Resources
{
    public interface ICSSProcessor
    {
        string Process(string input);
    }
}


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

/**
 * Translate Module
 *
 * Manages the language files in Bonfire and allows an easy way for the user
 * to add language files for other languages.  The user can export current language
 * files for translation.
 *
 * @package Bonfire\Modules\Translate\Controllers\Developer
 * @author  Bonfire Dev Team
 * @link    http://cibonfire.com/docs
 */
class Developer extends Admin_Controller
{
    /** @var array The names of the current languages. */
    private $langs;

    /**
     * Constructor - Load required classes
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();

        // Restrict access - View and Manage
        $this->auth->restrict('Bonfire.Translate.View');
        $this->auth->restrict('Bonfire.Translate.Manage');

        $this->lang->load('translate');

        $this->load->helper('languages');
        $this->langs = list_languages();

        Assets::add_module_js('translate', 'translate.js');
        Assets::add_module_css('translate', 'translate.css');

        Template::set_block('sub_nav', 'developer/_sub_nav');
    }

    /**
     * Display a list of all core language files, as well as a list of modules
     * the user can choose to edit.
     *
     * @param string $transLang The target language for translation.
     *
     * @return void
     */
    public function index($transLang = '')
    {
        if (empty($transLang)) {
            $config =& get_config();
            $transLang = isset($config['language']) ? $config['language'] : 'english';
        }

        // Selecting a different language?
        if (isset($_POST['select_lang'])) {
            $transLang = $this->input->post('trans_lang') == 'other' ?
                $this->input->post('new_lang') : $this->input->post('trans_lang');
        }

        // If the selected language is not in the list of languages, add it.
        if (! in_array($transLang, $this->langs)) {
            $this->langs[] = $transLang;
        }

        // Check whether there are custom modules with lang files.
        $allLangFiles = list_lang_files();
        if (isset($allLangFiles['custom'])) {
            $moduleLangFiles = $allLangFiles['custom'];
            sort($moduleLangFiles);
            Template::set('modules', $moduleLangFiles);
        }

        $coreLangFiles = $allLangFiles['core'];
        sort($coreLangFiles);
        Template::set('lang_files', $coreLangFiles);
        Template::set('languages', $this->langs);
        Template::set('trans_lang', $transLang);
        Template::set('toolbar_title', sprintf(lang('translate_title_index'), ucfirst($transLang)));
        Template::render();
    }

    /**
     * Allow the user to edit a language file.
     *
     * @param string $transLang The target language for translation.
     * @param string $langFile  The file to translate.
     *
     * @return void
     */
    public function edit($transLang = '', $langFile = '')
    {
        $config =& get_config();
        $origLang = isset($config['language']) ? $config['language'] : 'english';
        $chkd = array();

        if ($langFile) {
            // Save the file...
            if (isset($_POST['save'])) {
                // If the file saves successfully, redirect to the index.
                if (save_lang_file($langFile, $transLang, $_POST['lang'])) {
                    Template::set_message(lang('translate_save_success'), 'success');
                    redirect(SITE_AREA . "/developer/translate/index/{$transLang}");
                }

                Template::set_message(lang('translate_save_fail'), 'danger');
            }

            // Get the lang file.
            $orig = load_lang_file($langFile, $origLang);
            $new = $transLang ? load_lang_file($langFile, $transLang) : $orig;

            // Translate.
            if (isset($_POST['translate']) && is_array($_POST['checked'])) {
                if (isset($_POST['lang'])) {
                    foreach ($_POST['lang'] as $key => $val) {
                        $new[$key] = $val;
                    }
                }

                if ($transLang) {
                    $this->load->config('langcodes');
                    $codes = $config['translate']['codes']['google'];
                    $transLangCode = isset($codes[$transLang]) ? $codes[$transLang] : '';
                    $origLangCode  = isset($codes[$origLang]) ? $codes[$origLang] : 'en';

                    $errcnt = 0;
                    $cnt = 0;
                    $this->load->library('translate_lib');

                    // Attempt to translate each of the selected values.
                    foreach ($_POST['checked'] as $key) {
                        $new[$key] = '* ' . $new[$key];
                        $val = '';
                        if ($transLangCode) {
                            $val = $this->translate_lib->setLang($origLangCode, $transLangCode)
                                                       ->translate($orig[$key]);
                        }
                        if ($val) {
                            $new[$key] = $val;
                            $cnt++;
                        } else {
                            $errcnt++;
                            $chkd[] = $key;
                        }

                        // Give up if 5 errors occur without any successful attempts,
                        // as this may imply network or other issues.
                        if ($errcnt >= 5 && $cnt == 0) {
                            break;
                        }
                    }

                    if ($errcnt == 0) {
                        Template::set_message(sprintf(lang('translate_success'), $cnt), 'success');
                    } elseif ($cnt > 0) {
                        Template::set_message(sprintf(lang('translate_part_success'), $cnt, $errcnt), 'info');
                    } else {
                        Template::set_message(lang('translate_failed'), 'danger');
                    }
                }
            }

            Template::set('orig', $orig);
            Template::set('new', $new);
            Template::set('lang_file', $langFile);
        }

        Template::set('chkd', $chkd);
        Template::set('orig_lang', $origLang);
        Template::set('trans_lang', $transLang);
        Template::set('toolbar_title', sprintf(lang('translate_title_edit'), $langFile, ucfirst($transLang)));
        Template::render();
    }

    /**
     * Export a set of files for a language
     *
     * @return void
     */
    public function export()
    {
        if (isset($_POST['export'])) {
            $this->do_export($this->input->post('export_lang'), $this->input->post('include_core'), $this->input->post('include_custom'));
            die();
        }

        Template::set('languages', $this->langs);
        Template::set('toolbar_title', lang('translate_export'));
        Template::render();
    }

    /**
     * Retrieve all files for a language, zip them, and send the zip file to the
     * browser for immediate download
     *
     * @param string $language      The language for which to retrieve the files
     * @param bool $includeCore     Include the core language files
     * @param bool $includeCustom   Include the custom module language files
     *
     * @return mixed false on error or void
     */
    public function do_export($language = null, $includeCore = false, $includeCustom = false)
    {
        if (empty($language)) {
            $this->error = 'No language file chosen.';
            return false;
        }

        $all_lang_files = list_lang_files($language);
        if (! count($all_lang_files)) {
            $this->error = 'No files found to archive.';
            return false;
        }

        // Make the zip file
        $this->load->library('zip');
        foreach ($all_lang_files as $key => $file) {
            if (is_numeric($key) && $includeCore) {
                $content = load_lang_file($file, $language);
                $this->zip->add_data($file, save_lang_file($file, $language, $content, true));
            } elseif (($key == 'core' && $includeCore)
                      || ($key == 'custom' && $includeCustom)
            ) {
                foreach ($file as $f) {
                    $content = load_lang_file($f, $language);
                    $this->zip->add_data($f, save_lang_file($f, $language, $content, true));
                }
            }
        }

        $this->zip->download("bonfire_{$language}_files.zip");
        die();
    }
}


text:
<?php

Class Srv_Exception_Data extends Srv_Exception_Base
{

}


text:
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 12-Mar-2015, 11:37:55 AM
    Author     : josephzhao
*/
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 12-Mar-2015, 11:58:13 AM
    Author     : josephzhao
*/
/* line 11, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_header.scss */
.juturna-page-header {
  width: 1200px;
  height: 130px;
  margin: 0 auto;
}

/* line 17, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_header.scss */
.homepage_title {
  padding: 0px;
  margin: 10px 0 0 0;
  color: white;
}

/* line 21, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_header.scss */
.homepage_title a h2 {
  color: white;
}

/* line 24, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_header.scss */
.homepage_title a:hover {
  text-decoration: none;
}

/* line 28, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_header.scss */
div#homepage_titlebar_background {
  position: absolute;
  left: 0px;
  width: 100%;
  padding: 0px;
  margin: 0px;
  background-color: #228B22;
  top: 80px;
  height: 50px;
  z-index: -1;
}

/* line 38, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_header.scss */
div#homepage_menubar_background {
  position: absolute;
  left: 0px;
  width: 100%;
  padding: 0px;
  margin: 0px;
  background-color: #3c4142;
  top: 130px;
  height: 50px;
  z-index: -1;
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 12-Mar-2015, 1:14:08 PM
    Author     : josephzhao
*/
/* line 11, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.juturna-main_menu {
  position: relative;
  width: 1200px;
  height: 50px;
  margin: 0 auto;
}

/* line 18, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.nav.navbar-nav, .collapse.navbar-collapse.navbar-main-collapse {
  margin-left: 0px;
  padding-left: 0px;
}

/* line 23, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.navbar-nav li a, ul.dropdown-menu li a {
  color: white;
  font-size: 16px;
  font-weight: 400;
}

/* line 29, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.nav.navbar-nav li.dropdown.open ul.dropdown-menu li a {
  color: white;
}

/* line 32, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.nav.navbar-nav li.dropdown.open ul.dropdown-menu li a:hover {
  color: #3c4142;
}

/* line 35, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.nav.navbar-nav li.dropdown.open a {
  color: #3c4142;
}

/* line 38, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.nav.navbar-nav li.dropdown ul {
  background-color: #3c4142;
  color: white;
  z-index: 9999;
}

/* line 44, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.nav.navbar-nav li a:hover {
  color: #3c4142;
}

/* line 49, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-menu {
  background-color: #3c4142;
  color: white;
}

/* line 53, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu {
  background-color: #3c4142;
  color: white;
  position: relative;
}

/* line 59, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0px;
  background-color: #3c4142;
  color: white;
  margin-top: -6px;
  margin-left: -1px;
  /*    -webkit-border-radius: 0 6px 6px 6px;
      -moz-border-radius: 0 6px 6px;
      border-radius: 0 6px 6px 6px;*/
}

/* line 72, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
  background-color: #3c4142;
  margin-top: -6px;
  color: white;
}

/* line 79, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

/* line 93, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}

/* line 97, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu.pull-left {
  float: none;
}

/* line 101, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_main_menu.scss */
.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  /*    -webkit-border-radius: 6px 0 6px 6px;
      -moz-border-radius: 6px 0 6px 6px;
      border-radius: 6px 0 6px 6px;*/
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 12-Mar-2015, 1:14:08 PM
    Author     : josephzhao
*/
/* line 11, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_menu_login.scss */
.navbar .nav > li.login .login-dropdown {
  position: absolute;
  white-space: normal;
  margin-top: 10px;
  background-color: #f2f1ef;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid #b1a699;
  width: 270px;
  left: -215px;
  z-index: 9999;
  display: none;
}

/* line 12, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_menu_login.scss */
#register-form {
  background-color: #ada69a;
}

/* line 13, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_menu_login.scss */
#login-form {
  padding: 0px;
  margin: 0;
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 18-Mar-2015, 9:02:20 AM
    Author     : josephzhao
*/
/* line 10, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_benefit.scss */
#indicator_benefit_flash {
  height: 350px;
  overflow: hidden;
}

/* line 17, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_benefit.scss */
#indicator_benefit_flash div.carousel-caption {
  top: 0px;
  margin-top: 95px;
  position: absolute;
  /*    width:330px;*/
  font-weight: 400;
  text-align: center;
  font-size: 20px;
  /*    background-image: url(/images/background.png);
      background-repeat: repeat;
      height: 350px;*/
}

/* line 35, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_benefit.scss */
#benefit_leafletsidebar_view h4 {
  text-align: enter;
}

/* line 39, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_benefit.scss */
#leftsidebar_indicator_benefit_flash a.carousel-control {
  padding-top: 90px;
  font-size: 30px;
}

/* line 45, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_benefit.scss */
#leftsidebar_indicator_benefit_flash div.carousel-caption {
  top: 0px;
  margin-top: 40px;
  position: absolute;
  font-weight: 400;
  height: 200px;
  vertical-align: middle;
  text-align: center;
  font-size: 16px;
}

/* line 57, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_benefit.scss */
#leftsidebar_indicator_benefit_flash div.carousel-caption h5 {
  font-size: 18px;
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 19-Mar-2015, 3:07:01 PM
    Author     : josephzhao
*/
/* line 11, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_story.scss */
#story_flash, .story_flash, #story_image {
  height: 355px;
  margin-bottom: 30px;
  overflow: hidden;
}

/* line 16, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_story.scss */
#story_flash .carousel-inner {
  height: 355px;
}

/* line 20, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_story.scss */
#story_flash div.carousel-caption, #story_image div.carousel-caption {
  top: 0px;
  margin-top: 265px;
  position: absolute;
  font-weight: 400;
  text-align: center;
  font-size: 20px;
}

/* line 32, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_story.scss */
#pdf_display {
  margin-top: 20px auto;
  padding: 20px;
}

/* line 38, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_story.scss */
#pdf_display canvas {
  border: 1px solid gainsboro;
  margin: 2px auto;
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 12-Mar-2015, 1:09:33 PM
    Author     : josephzhao
*/
/*.homepage_flash_wrap {
   height: 350px;
}*/
/*.homepage_flash {
    padding: 0px;
    height: 385px;
    margin: 10px 0px 20px 0;
}*/
/* line 21, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
#homepageFlashCarousel {
  height: 355px;
  margin-bottom: 30px;
}

/* line 25, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
#homepageFlashCarousel .carousel-inner {
  height: 355px;
}

/* line 29, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
#homepageFlashCarousel ol.carousel-indicators {
  width: 50%;
  margin: -45px auto;
}

/* line 38, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
ol.carousel-indicators li {
  color: #141412;
  font-size: 10px;
  background-color: #141412;
}

/* line 45, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
ol.carousel-indicators li.active {
  color: green;
  font-size: 10px;
  background-color: green;
}

/* line 50, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
.homepage_images {
  width: 1200px;
  margin: 10px auto;
  height: 300px;
  border: 0px solid yellow;
  padding: 0px;
}

/* line 57, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
.homepage_images img {
  height: 230px;
  margin: 3px;
  border-radius: 5px;
}

/* line 62, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
.homepage_image_brief_desc {
  margin-bottom: 50px;
}

/* line 66, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
#homepageFlashCarousel div.carousel-caption {
  top: 0px;
  width: 330px;
  font-weight: 400;
  text-align: center;
  font-size: 20px;
  background-image: url(/images/background.png);
  background-repeat: repeat;
  height: 355px;
}

/* line 82, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
#homepageFlashCarousel div.carousel-caption h4 {
  font-weight: 500;
  text-align: center;
  font-size: 24px;
}

/* line 90, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_homepage_flash.scss */
.homepage_image_brief_desc {
  position: absolute;
  bottom: 20px;
  width: 100%;
  margin-left: 3px;
  height: 70px;
  color: white;
  font-weight: 400;
  text-align: center;
  font-size: 16px;
  background-image: url(/images/background.png);
  background-repeat: repeat;
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 15-Mar-2015, 4:02:42 PM
    Author     : josephzhao
*/
/* line 12, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_ecosystem_page.scss */
.ecosystem_page_image {
  margin-bottom: 15px;
}

/* line 15, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_ecosystem_page.scss */
.ecosystem_page_image #ecosystem_image {
  display: inline-block;
  overflow: hidden;
  height: 350px;
  width: 100%;
  vertical-align: middle;
  /* vertical alignment of the inline element */
  font: 16px/1 Arial sans-serif;
  /* <-- reset the font property */
}

/* line 24, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_ecosystem_page.scss */
.ecosystem_page_image h1 {
  position: absolute;
  width: 100%;
  height: 70px;
  color: white;
  font-weight: 400;
  text-align: center;
  margin-top: 100px;
  margin-left: auto;
}

/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 12-Mar-2015, 11:58:23 AM
    Author     : josephzhao
*/
/* line 11, ../../../../../../NetBeansProjects/CVCBrowser/app/Resources/assets/stylesheets/yorkujuturna/_footer.scss */
.juturna-page-footer {
  width: 1200px;
  margin: 2px auto;
}