text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title th:text="${title}">metatron</title>

                            User subscription rejected

                            The user subscription has been rejected as show below.

                            Please check the reason and re-apply.

                            Reason for the reject

                            Message

                User information

                            User Name

                            ID

                            E-Mail

                            E-Mail

                            Full Name

                            Name

                            Phone

                            Tel.

                Go to Metatron


text:
PangoLayout *get_pango_layout(struct window *window, const char *text) {
	PangoLayout *layout = pango_cairo_create_layout(window->cairo);
	pango_layout_set_text(layout, text, -1);
	PangoFontDescription *desc = pango_font_description_from_string(window->font);
	pango_layout_set_font_description(layout, desc);
	pango_layout_set_single_paragraph_mode(layout, 1);
	pango_font_description_free(desc);
	return layout;
}

void get_text_size(struct window *window, int *width, int *height, const char *fmt, ...) {
	char *buf = malloc(2048);

	va_list args;
	va_start(args, fmt);
	if (vsnprintf(buf, 2048, fmt, args) >= 2048) {
		strcpy(buf, "[buffer overflow]");
	}
	va_end(args);

	PangoLayout *layout = get_pango_layout(window, buf);
	pango_cairo_update_layout(window->cairo, layout);

	pango_layout_get_pixel_size(layout, width, height);

	g_object_unref(layout);

	free(buf);
}

void pango_printf(struct window *window, const char *fmt, ...) {
	char *buf = malloc(2048);

	va_list args;
	va_start(args, fmt);
	if (vsnprintf(buf, 2048, fmt, args) >= 2048) {
		strcpy(buf, "[buffer overflow]");
	}
	va_end(args);

	PangoLayout *layout = get_pango_layout(window, buf);
	pango_cairo_update_layout(window->cairo, layout);

	pango_cairo_show_layout(window->cairo, layout);

	g_object_unref(layout);

	free(buf);
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace NinjaMutex\Lock;

/**
 * Lock implementor
 *
 * @author Kamil Dziedzic <arvenil@klecza.pl>
 */
interface LockExpirationInterface
{
    /**
     * @param int $expiration Expiration time of the lock in seconds.
     */
    public function setExpiration($expiration);

    /**
     * @param  string $name
     * @return bool
     */
    public function clearLock($name);
}


text:
We take security issues in Shoelace very seriously and appreciate your efforts to disclose your findings responsibly.

To report a security issue, email [cory@abeautifulsite.net](mailto:cory@abeautifulsite.net) and include "SHOELACE SECURITY" in the subject line.

Well respond as soon as possible and keep you updated throughout the process.


text:
<!doctype html>

<meta charset="utf-8">
<title>Latest Posts – Site Title</title>
<meta name="description" content="A simple and clean responsive Jekyll theme for words and photos.">

<meta name="twitter:title" content="Latest Posts">
<meta name="twitter:description" content="A simple and clean responsive Jekyll theme for words and photos.">

<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://localhost:4000/images/site-logo.png">

<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="Latest Posts">
<meta property="og:description" content="A simple and clean responsive Jekyll theme for words and photos.">
<meta property="og:url" content="http://localhost:4000/">
<meta property="og:site_name" content="Site Title">

<link rel="canonical" href="http://localhost:4000/">
<link href="http://localhost:4000/feed.xml" type="application/atom+xml" rel="alternate" title="Site Title Feed">

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="/assets/css/main.css">

<meta http-equiv="cleartype" content="on">

<link rel="shortcut icon" href="http://localhost:4000/favicon.ico">

<link rel="shortcut icon" href="http://localhost:4000/favicon.png">

<link rel="apple-touch-icon-precomposed" href="http://localhost:4000/images/apple-touch-icon-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://localhost:4000/images/apple-touch-icon-72x72-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://localhost:4000/images/apple-touch-icon-114x114-precomposed.png">

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://localhost:4000/images/apple-touch-icon-144x144-precomposed.png">

About

Articles

Blog

Theme Setup

Search

Site Title

Describe your website here.

Latest Posts

MathJax Example <time datetime="2015-08-10T14:08:50+02:00">August 10, 2015</time> MathJax is a simple way of including Tex/LaTex/MathML based mathematics in HTML webpages. To get up and running you need to include the MathJax script in the header of your github pages page, and then write some maths. For LaTex, there are two delimiters you need to know about, one for block or displayed mathematics , and the other for inline mathematics .

Hello World <time datetime="2014-08-08T21:39:55+02:00">August 08, 2014</time> You'll find this post in your _posts directory - edit this post and re-build (or run with the -w switch) to see your changes!To add new posts, simply add a file in the _posts directory that follows the convention: YYYY-MM-DD-name-of-post.ext.

Override Author Byline Test Post <time datetime="2014-06-19T00:00:00+02:00">June 19, 2014</time> An article to test overriding the default site author.

Syntax Highlighting Post <time datetime="2013-08-16T00:00:00+02:00">August 16, 2013</time> Demo post displaying the various ways of highlighting code in Markdown.

Sample Link Post <time datetime="2013-08-12T00:00:00+02:00">August 12, 2013</time> Example and code for using link posts.

A Post with a Video <time datetime="2013-06-25T00:00:00+02:00">June 25, 2013</time> Custom written post descriptions are the way to go… if you're not lazy.

Post with Large Feature Image and Text <time datetime="2013-05-23T00:00:00+02:00">May 23, 2013</time> Custom written post descriptions are the way to go… if you're not lazy.

A Post with Images <time datetime="2013-05-22T00:00:00+02:00">May 22, 2013</time> Examples and code for displaying images in posts.

Testing Readability with a Bunch of Text <time datetime="2012-05-22T00:00:00+02:00">May 22, 2012</time> A ton of text to test readability.

Sample Post <time datetime="2011-03-10T00:00:00+01:00">March 10, 2011</time> Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more.

© 2017 Your Name. Powered by Jekyll using the So Simple Theme.


text:
package io.github.retz.jmx;

import com.j256.simplejmx.server.JmxServer;
import io.github.retz.db.Database;
import io.github.retz.misc.LogUtil;
import io.github.retz.scheduler.ServerConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.management.JMException;
import javax.management.ObjectName;
import java.lang.management.ManagementFactory;

public final class RetzJmxServer {
    private static final Logger LOG = LoggerFactory.getLogger(RetzJmxServer.class);

    // Singleton
    private static JmxServer jmxServer = null;

    private RetzJmxServer() {
    }

    private static void registerMBean(Object mbean, String name) {
        try {
            ManagementFactory.getPlatformMBeanServer().registerMBean(mbean, new ObjectName(name));
        } catch (JMException e) {
            LogUtil.error(LOG, "RetzJmxServer.registerMBean() failed with " + name, e);
        }
    }

    public static synchronized void start(ServerConfiguration config) throws JMException {
        if (jmxServer != null) {
            throw new RuntimeException("Tried to start duplicate JMX server");
        }
        int jmxPort = config.getJmxPort();

        registerMBean(new AdminConsole(config.getGcLeeway()), "io.github.retz.scheduler:type=AdminConsole");
        registerMBean(Database.getDataSource().getPool().getJmxPool(), "io.github.retz.db:type=TomcatThreadPool");
        registerMBean(new StatusAdapter(), "io.github.retz:type=Stats,name=Status");
        registerMBean(ResourceQuantityAdapter.newTotalOfferedQuantityAdapter() , "io.github.retz:type=Stats,name=TotalOffered");
        registerMBean(ResourceQuantityAdapter.newTotalUsedQuantityAdapter(), "io.github.retz:type=Stats,name=TotalUsed");

        jmxServer = new JmxServer(jmxPort);
        jmxServer.start();
        LOG.info("JMX enabled listening to {}", jmxPort);
    }

    public static synchronized void stop() {
        if (jmxServer == null) {
            return;
        }

        jmxServer.stop();
        jmxServer = null;
    }
}


text:
import React, { Component } from 'react';
import { render } from 'react-dom';
import KanbanBoardContainer from '../component/kanban/KanbanBoardContainer';

render(<KanbanBoardContainer/>, document.getElementById('root'));


text:
import isEqualWord from './is-equal-word';
import splitByWords from './split-by-words';

const arrayIndexToCharIndex = (arrayIndex, array) => {
  return array.slice(0, arrayIndex).join('').length;
};

function findAllWords(string = '', search = '') {
  if (!string || !search) {
    return [];
  }
  if (typeof search === 'string') {
    search = [search];
  }

  const stringParts = splitByWords(string);
  const matches = [];

  for (const value of search) {
    const valueParts = splitByWords(value);
    const lastValueIndex = valueParts.length - 1;

    let valueIndex = 0;
    let stringIndex = -1;

    while (++stringIndex < stringParts.length) {
      if (isEqualWord(stringParts[stringIndex], valueParts[valueIndex])) {
        if (valueIndex === lastValueIndex) {
          const index = arrayIndexToCharIndex(
            stringIndex - valueIndex,
            stringParts
          );

          matches.push({
            match: string.slice(index, index + value.length),
            value,
            index
          });
        }

        valueIndex += 1;
      } else {
        valueIndex = 0;
      }
    }
  }

  if (matches.length) {
    matches.sort((a, b) => a.index - b.index);
  }
  return matches;
}

export default findAllWords;


text:
package org.apache.logging.log4j.core;

import java.io.Serializable;
import java.util.Map;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.ThreadContext;
import org.apache.logging.log4j.core.impl.ThrowableProxy;
import org.apache.logging.log4j.message.Message;

/**
 * Provides contextual information about a logged message. A LogEvent must be {@link java.io.Serializable} so that it
 * may be transmitted over a network connection, output in a
 * {@link org.apache.logging.log4j.core.layout.SerializedLayout}, and many other uses. Besides containing a
 * {@link org.apache.logging.log4j.message.Message}, a LogEvent has a corresponding
 * {@link org.apache.logging.log4j.Level} that the message was logged at. If a
 * {@link org.apache.logging.log4j.Marker} was used, then it is included here. The contents of the
 * {@link org.apache.logging.log4j.ThreadContext} at the time of the log call are provided via
 * {@link #getContextMap()} and {@link #getContextStack()}. If a {@link java.lang.Throwable} was included in the log
 * call, then it is provided via {@link #getThrown()}. When this class is serialized, the attached Throwable will
 * be wrapped into a {@link org.apache.logging.log4j.core.impl.ThrowableProxy} so that it may be safely serialized
 * and deserialized properly without causing problems if the exception class is not available on the other end.
 */
public interface LogEvent extends Serializable {

    /**
     * Gets the context map (also know as Mapped Diagnostic Context or MDC).
     *
     * @return The context map, never {@code null}.
     */
    Map<String, String> getContextMap();

    /**
     * Gets the context stack (also known as Nested Diagnostic Context or NDC).
     *
     * @return The context stack, never {@code null}.
     */
    ThreadContext.ContextStack getContextStack();

    /**
     * Returns the fully qualified class name of the caller of the logging API.
     *
     * @return The fully qualified class name of the caller.
     */
    String getLoggerFqcn();

    /**
     * Gets the level.
     *
     * @return level.
     */
    Level getLevel();

    /**
     * Gets the logger name.
     *
     * @return logger name, may be {@code null}.
     */
    String getLoggerName();

    /**
     * Gets the Marker associated with the event.
     *
     * @return Marker or {@code null} if no Marker was defined on this LogEvent
     */
    Marker getMarker();

    /**
     * Gets the message associated with the event.
     *
     * @return message.
     */
    Message getMessage();

    /**
     * Gets event time in milliseconds since midnight, January 1, 1970 UTC.
     *
     * @return milliseconds since midnight, January 1, 1970 UTC.
     * @see java.lang.System#currentTimeMillis()
     */
    long getTimeMillis();

    /**
     * Gets the source of logging request.
     *
     * @return source of logging request, may be null.
     */
    StackTraceElement getSource();

    /**
     * Gets thread name.
     *
     * @return thread name, may be null.
     * TODO guess this could go into a thread context object too. (RG) Why?
     */
    String getThreadName();

    /**
     * Gets throwable associated with logging request.
     *
     *
Convenience method for {@code ThrowableProxy.getThrowable();}

     *
     * @return throwable, may be null.
     */
    Throwable getThrown();

    /**
     * Gets throwable proxy associated with logging request.
     *
     * @return throwable, may be null.
     */
    ThrowableProxy getThrownProxy();

    /**
     * Returns {@code true} if this event is the last one in a batch, {@code false} otherwise. Used by asynchronous
     * Loggers and Appenders to signal to buffered downstream components when to flush to disk, as a more efficient
     * alternative to the {@code immediateFlush=true} configuration.
     *
     * @return whether this event is the last one in a batch.
     */
    // see also LOG4J2-164
    boolean isEndOfBatch();

    /**
     * Returns whether the source of the logging request is required downstream. Asynchronous Loggers and Appenders use
     * this flag to determine whether to take a {@code StackTrace} snapshot or not before handing off this event to
     * another thread.
     *
     * @return {@code true} if the source of the logging request is required downstream, {@code false} otherwise.
     * @see #getSource()
     */
    // see also LOG4J2-153
    boolean isIncludeLocation();

    /**
     * Sets whether this event is the last one in a batch. Used by asynchronous Loggers and Appenders to signal to
     * buffered downstream components when to flush to disk, as a more efficient alternative to the
     * {@code immediateFlush=true} configuration.
     *
     * @param endOfBatch {@code true} if this event is the last one in a batch, {@code false} otherwise.
     */
    void setEndOfBatch(boolean endOfBatch);

    /**
     * Sets whether the source of the logging request is required downstream. Asynchronous Loggers and Appenders use
     * this flag to determine whether to take a {@code StackTrace} snapshot or not before handing off this event to
     * another thread.
     *
     * @param locationRequired {@code true} if the source of the logging request is required downstream, {@code false}
     *                         otherwise.
     * @see #getSource()
     */
    void setIncludeLocation(boolean locationRequired);

    /**
     * Returns the value of the running Java Virtual Machine's high-resolution time source when this event was created,
     * or a dummy value if it is known that this value will not be used downstream.
     * @return The value of the running Java Virtual Machine's high-resolution time source when this event was created.
     * @since Log4J 2.4
     */
    long getNanoTime();
}


text:
namespace google {
namespace cloud {
namespace tasks_internal {
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN

class CloudTasksLogging : public CloudTasksStub {
 public:
  ~CloudTasksLogging() override = default;
  CloudTasksLogging(std::shared_ptr<CloudTasksStub> child,
                    TracingOptions tracing_options,
                    std::set<std::string> components);

  StatusOr<google::cloud::tasks::v2::ListQueuesResponse> ListQueues(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::ListQueuesRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Queue> GetQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::GetQueueRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Queue> CreateQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::CreateQueueRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Queue> UpdateQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::UpdateQueueRequest const& request) override;

  Status DeleteQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::DeleteQueueRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Queue> PurgeQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::PurgeQueueRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Queue> PauseQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::PauseQueueRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Queue> ResumeQueue(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::ResumeQueueRequest const& request) override;

  StatusOr<google::iam::v1::Policy> GetIamPolicy(
      grpc::ClientContext& context,
      google::iam::v1::GetIamPolicyRequest const& request) override;

  StatusOr<google::iam::v1::Policy> SetIamPolicy(
      grpc::ClientContext& context,
      google::iam::v1::SetIamPolicyRequest const& request) override;

  StatusOr<google::iam::v1::TestIamPermissionsResponse> TestIamPermissions(
      grpc::ClientContext& context,
      google::iam::v1::TestIamPermissionsRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::ListTasksResponse> ListTasks(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::ListTasksRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Task> GetTask(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::GetTaskRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Task> CreateTask(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::CreateTaskRequest const& request) override;

  Status DeleteTask(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::DeleteTaskRequest const& request) override;

  StatusOr<google::cloud::tasks::v2::Task> RunTask(
      grpc::ClientContext& context,
      google::cloud::tasks::v2::RunTaskRequest const& request) override;

 private:
  std::shared_ptr<CloudTasksStub> child_;
  TracingOptions tracing_options_;
  std::set<std::string> components_;
};  // CloudTasksLogging

GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
}  // namespace tasks_internal
}  // namespace cloud
}  // namespace google

#endif  // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_TASKS_INTERNAL_CLOUD_TASKS_LOGGING_DECORATOR_H


text:
FactoryBot.define do
  factory :request_type do |f|
    f.sequence(:name){|n| "request_type_#{n}"}
  end
end

# == Schema Information
#
# Table name: request_types
#
#  id           :bigint           not null, primary key
#  name         :string           not null
#  display_name :text
#  note         :text
#  position     :integer
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#


text:
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import os
import time

import tensorflow as tf
from six.moves import range
import numpy as np
import zhusuan as zs

from examples import conf
from examples.utils import dataset

@zs.meta_bayesian_net(scope="gen", reuse_variables=True)
def build_gen(n, x_dim, z_dim, n_particles, is_training):
    bn = zs.BayesianNet()
    z_logits = tf.zeros([n, z_dim])
    z = bn.bernoulli("z", z_logits, group_ndims=1, n_samples=n_particles,
                     dtype=tf.float32)
    h = tf.layers.dense(z, 500, use_bias=False)
    h = tf.layers.batch_normalization(h, training=is_training)
    h = tf.nn.relu(h)
    h = tf.layers.dense(h, 500, use_bias=False)
    h = tf.layers.batch_normalization(h, training=is_training)
    h = tf.nn.relu(h)
    x_logits = tf.layers.dense(h, x_dim)
    bn.bernoulli("x", x_logits, group_ndims=1)
    return bn

@zs.reuse_variables(scope="q_net")
def build_q_net(x, z_dim, n_particles, is_training):
    bn = zs.BayesianNet()
    h = tf.layers.dense(tf.cast(x, tf.float32), 500, use_bias=False)
    h = tf.layers.batch_normalization(h, training=is_training)
    h = tf.nn.relu(h)
    h = tf.layers.dense(h, 500, use_bias=False)
    h = tf.layers.batch_normalization(h, training=is_training)
    h = tf.nn.relu(h)
    z_logits = tf.layers.dense(h, z_dim)
    bn.bernoulli("z", z_logits, group_ndims=1, n_samples=n_particles,
                 dtype=tf.float32)
    return bn

def baseline_net(x):
    lc_x = tf.layers.dense(tf.cast(x, tf.float32), 100, activation=tf.nn.relu)
    lc_x = tf.layers.dense(lc_x, 1)
    lc_x = tf.squeeze(lc_x, -1)
    return lc_x

def main():
    # Load MNIST
    data_path = os.path.join(conf.data_dir, 'mnist.pkl.gz')
    x_train, t_train, x_valid, t_valid, x_test, t_test = \
        dataset.load_mnist_realval(data_path)
    x_train = np.vstack([x_train, x_valid])
    x_test = np.random.binomial(1, x_test, size=x_test.shape)
    x_dim = x_train.shape[1]

    # Define model parameters
    z_dim = 40

    # Build the computation graph
    is_training = tf.placeholder(tf.bool, shape=[], name='is_training')
    n_particles = tf.placeholder(tf.int32, shape=[], name='n_particles')
    x_input = tf.placeholder(tf.float32, shape=[None, x_dim], name='x')
    x = tf.cast(tf.less(tf.random_uniform(tf.shape(x_input)), x_input),
                tf.int32)
    n = tf.shape(x)[0]

    model = build_gen(n, x_dim, z_dim, n_particles, is_training)
    variational = build_q_net(x, z_dim, n_particles, is_training)
    cx = tf.expand_dims(baseline_net(x), 0)

    lower_bound = zs.variational.elbo(
        model, {"x": x}, variational=variational, axis=0)
    cost, baseline_cost = lower_bound.reinforce(baseline=cx)
    cost = tf.reduce_mean(cost + baseline_cost)
    lower_bound = tf.reduce_mean(lower_bound)

    # # Importance sampling estimates of marginal log likelihood
    is_log_likelihood = tf.reduce_mean(
        zs.is_loglikelihood(model, {'x': x}, proposal=variational, axis=0))

    optimizer = tf.train.AdamOptimizer(learning_rate=0.001)
    update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
    with tf.control_dependencies(update_ops):
        infer_op = optimizer.minimize(cost)

    # Define training/evaluation parameters
    epochs = 3000
    batch_size = 128
    iters = x_train.shape[0] // batch_size
    test_freq = 10
    test_batch_size = 400
    test_iters = x_test.shape[0] // test_batch_size

    # Run the inference
    with tf.Session() as sess:
        sess.run(tf.global_variables_initializer())

        for epoch in range(1, epochs + 1):
            time_epoch = -time.time()
            np.random.shuffle(x_train)
            lbs = []
            for t in range(iters):
                x_batch = x_train[t * batch_size:(t + 1) * batch_size]
                _, lb = sess.run([infer_op, lower_bound],
                                 feed_dict={x_input: x_batch,
                                            is_training: True,
                                            n_particles: 1})
                lbs.append(lb)
            time_epoch += time.time()
            print('Epoch {} ({:.1f}s): Lower bound = {}'.format(
                epoch, time_epoch, np.mean(lbs)))

            if epoch % test_freq == 0:
                time_test = -time.time()
                test_lbs = []
                # test_lls = []
                for t in range(test_iters):
                    test_x_batch = x_test[t * test_batch_size:
                                          (t + 1) * test_batch_size]
                    test_lb = sess.run(lower_bound,
                                       feed_dict={x: test_x_batch,
                                                  is_training: False,
                                                  n_particles: 1})
                    # test_ll = sess.run(is_log_likelihood,
                    #                    feed_dict={x: test_x_batch,
                    #                               is_training: False,
                    #                               n_particles: 1000})
                    test_lbs.append(test_lb)
                    # test_lls.append(test_ll)
                time_test += time.time()
                print('>>> TEST ({:.1f}s)'.format(time_test))
                print('>> Test lower bound = {}'.format(np.mean(test_lbs)))
                # print('>> Test log likelihood (IS) = {}'.format(
                #     np.mean(test_lls)))

if __name__ == "__main__":
    main()


text:
"""
Write text features into tensorflow records
"""
import sys
sys.path.append('/data/code')
import os
import os.path as ops
import argparse
import numpy as np
import cv2
try:
    from cv2 import cv2
except ImportError:
    pass

from data_provider import data_provider
from local_utils import data_utils

def init_args():
    """

    :return:
    """
    parser = argparse.ArgumentParser()
    parser.add_argument('--dataset_dir', type=str, help='Where you store the dataset')
    parser.add_argument('--save_dir', type=str, help='Where you store tfrecords')

    return parser.parse_args()

def write_features(dataset_dir, save_dir):
    """

    :param dataset_dir:
    :param save_dir:
    :return:
    """
    if not ops.exists(save_dir):
        os.makedirs(save_dir)

    print('Initialize the dataset provider ......')
    provider = data_provider.TextDataProvider(dataset_dir=dataset_dir, annotation_name='sample.txt',
                                              validation_set=True, validation_split=0.15, shuffle=None,
                                              normalization=None)
    print('Dataset provider intialize complete')

    feature_io = data_utils.TextFeatureIO()

    # write train tfrecords
    print('Start writing training tf records')

    train_images = provider.train.images
    train_images = [bytes(list(np.reshape(tmp, [100 * 32 * 3]))) for tmp in train_images]
    train_labels = provider.train.labels
    train_imagenames = provider.train.imagenames

    train_tfrecord_path = ops.join(save_dir, 'train_feature.tfrecords')
    feature_io.writer.write_features(tfrecords_path=train_tfrecord_path, labels=train_labels, images=train_images,
                                     imagenames=train_imagenames)

    # write test tfrecords
    print('Start writing testing tf records')

    test_images = provider.test.images
    test_images = [bytes(list(np.reshape(tmp, [100 * 32 * 3]))) for tmp in test_images]
    test_labels = provider.test.labels
    test_imagenames = provider.test.imagenames

    test_tfrecord_path = ops.join(save_dir, 'test_feature.tfrecords')
    feature_io.writer.write_features(tfrecords_path=test_tfrecord_path, labels=test_labels, images=test_images,
                                     imagenames=test_imagenames)

    # write val tfrecords
    print('Start writing validation tf records')

    val_images = provider.validation.images
    val_images = [bytes(list(np.reshape(tmp, [100 * 32 * 3]))) for tmp in val_images]
    val_labels = provider.validation.labels
    val_imagenames = provider.validation.imagenames

    val_tfrecord_path = ops.join(save_dir, 'validation_feature.tfrecords')
    feature_io.writer.write_features(tfrecords_path=val_tfrecord_path, labels=val_labels, images=val_images,
                                     imagenames=val_imagenames)

    return

if __name__ == '__main__':
    # init args
    args = init_args()
    if not ops.exists(args.dataset_dir):
        raise ValueError('Dataset {:s} doesn\'t exist'.format(args.dataset_dir))

    # write tf records
    write_features(dataset_dir=args.dataset_dir, save_dir=args.save_dir)


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

<title>widget attribute unit test (in constructor and get()/set())</title>

dijit/Destroyable Unit Test


text:
require File.expand_path('../application', __FILE__)

# Initialize the rails application
FrenchHouse::Application.initialize!


text:
  <form class="form-horizontal" ng-submit="create(name, description, metadata)">

        Name

          <input type="text" class="form-control" placeholder="Name" ng-model="name" required>

        Content

          <input class="hide" id="fileInput" type="file"
          onchange="angular.element(this).scope().readFile(this.files[0])">
          Choose File

        Description

          <input type="text" class="form-control" placeholder="Description" ng-model="description" required>

        Metadata

          <input type="text" class="form-control" placeholder="JSON String" ng-model="metadata">

{{errorMessage}}

    <ng-include src="'partials/modalFooter.html'"></ng-include>
  </form>


text:
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                Toggle navigation

            </button>
            AD Shop

                    管理中心

                        商品管理

查看商品

添加商品

                        分类管理

查看分类

添加分类

                        品牌管理

查看品牌

添加品牌

                    <?php echo $username;?>

登出


text:
title : CO
layout : datapage
permalink : /states/CO/
---

[Project Homepage]({{ site.baseurl}}/)

[CO-01](#CO-01)  [CO-02](#CO-02)  [CO-03](#CO-03)  [CO-04](#CO-04)  [CO-05](#CO-05)  [CO-06](#CO-06)  [CO-07](#CO-07)

# CO -- Sen. Michael F. Bennet (D) and  Sen. Cory Gardner (R)
## Committees
Cory Gardner is the #5 Republican on the Senate Energy Subcommittee on Energy

Cory Gardner is the #7 Republican on the Senate Committee on Energy and Natural Resources

Cory Gardner is the #8 Republican on the Senate Committee on Commerce, Science, and Transportation

## HEP Grants
In the past 9 years, this state has received:
75 HEP grants, totalling  $24,668,603
```
Institution                                     Amount ($)
--------------------------------------------  ------------
University of Colorado - Boulder                12,730,603
Colorado State University                        7,854,000
University of Colorado                           1,695,000
University of Colorado - Denver                  1,690,000
Tech-X Corporation                                 480,000
National Institute of Standards & Technology       182,000
Aspen Center For Physics                            37,000
```
## SC Contracts
In the past 9 years, this state has received:
12 Office of Science contracts, totalling  $159,763
```
Vendor                               Amount ($)  Item
---------------------------------  ------------  ----------------------------------------
Alliant Corporation                      40,000  Special Studies/Analysis- Environmental
Summit Technical Resources Inc.          39,805  Special Studies/Analysis- Environmental
Premisys Support Group, Inc.             14,492  Installation Of Equipment- Electrical An
Four Points Technology, L.L.C.           12,130  Radio And Television Communication Equip
Valiant Solutions, LLC                   10,099  ADP Components
General Dynamics C4 Systems, Inc.         9,100  Communications Security Equipment And Co
Digital Data Services Inc                 6,895  ADPE System Configuration
Mc2 Electrical Contractors LLC            6,533  Electrical Control Equipment
Agsi, LLC                                 5,852  ADP Central Processing Unit (CPU, Comput
Premisys Support Group, Inc.              5,414  Maint/Repair/Rebuild Of Equipment- Commu
Mono Machines LLC                         4,875  Miscellaneous Office Machines
Imaging Systems LLC                       4,568  Office Supplies
```
## NSF MPS Grants
In the past 9 years, this state has received:
760 NSF MPS grants, totalling  $207,036,540
```
Institution                                        Amount ($)
-----------------------------------------------  ------------
Regents Of University Of Colorado                 128,909,030
Colorado State University                          33,742,020
Colorado School Of Mines                           25,739,308
Colorado Seminary                                   5,689,307
University Of Colorado Boulder                      4,696,368
Aspen Center For Physics                            3,660,000
Space Science Institute                             1,351,790
Fort Lewis College                                  1,260,000
University Of Northern Colorado                       653,136
University Of Colorado Denver                         420,000
Regis University                                      358,000
Metropolitan State University Of Denver               109,995
Pii Redacted                                          100,000
Redacted Due To Pii                                   100,000
Front Range Scientific Computation                     94,926
University Corporation For Atmospheric Resear          75,090
University Corporation For Atmospheric Research        62,500
Rocky Mtn Biol Lab                                     15,070
```
## SULI/CCI Interns

![CO SULI/CCI image]({{ site.baseurl }}/img/CO.png)

From 2014-2018, this state had 87 SULI/CCI interns
```
  # Interns  Program    College
-----------  ---------  -----------------------------------------------------
         24  SULI       Colorado School of Mines
         18  SULI       University of Colorado Boulder
          7  CCI        Red Rocks Community College
          7  SULI       Colorado State University
          6  SULI       Colorado College
          6  SULI       Metropolitan State University of Denver
          3  SULI       Fort Lewis College
          3  SULI       University of Denver
          2  CCI        Pikes Peak Community College
          2  SULI       Regis University
          2  CCI        Colorado School of Mines
          1  SULI       Colorado Mesa University
          1  CCI        Community College of Aurora
          1  SULI       American Sentinel University
          1  SULI       Ecotech Institute
          1  CCI        Front Range Community College
          1  CCI        Community College of Denver
          1  SULI       University of Colorado Denver|Anschutz Medical Campus
```
87
---
---

[Back to top](#top)
## CO-01 -- Rep. Diana DeGette (D) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-01)
## Committees
Diana DeGette is the #5 Democrat on the House Committee on Energy and Commerce

## HEP Grants
In the past 9 years, this district has received: $1,690,000 in SC HEP grants.
```
Institution                        Amount ($)    Start    End  Principal Investigator    Project Title
-------------------------------  ------------  -------  -----  ------------------------  ------------------------------------------------------------------------------
University of Colorado - Denver       240,000     2016   2017  Cheggour, Najib           Electromechanical Studies of Superconductors for DOE/HEP Applications
University of Colorado - Denver     1,450,000     2016   2017  Cumalat, John             Elementary Particle Physics and High Energy Phenomena
University of Colorado - Denver             0     2016   2017  van der Laan, Daniel      Development of High-temperature Superconducting Cables for Accelerator Magnets
```
## SC Contracts
In the past 9 years, this district has received:
2 Office of Science contracts, totalling  $79,805
```
  Year  Vendor                             Amount ($)  Item
------  -------------------------------  ------------  ---------------------------------------
  2013  Alliant Corporation                    40,000  Special Studies/Analysis- Environmental
  2013  Summit Technical Resources Inc.        39,805  Special Studies/Analysis- Environmental
```
## NSF MPS Grants
In the past 9 years, this district has received: $8,516,366 in NSF MPS grants.
```
  Year  Institution                                Amount ($)
------  ---------------------------------------  ------------
  2019  Regents Of University Of Colorado           1,244,633
  2019  Colorado Seminary                             882,109
  2018  Regis University                              170,000
  2018  Regents Of University Of Colorado             775,000
  2018  Metropolitan State University Of Denver       109,995
  2018  Colorado Seminary                             882,808
  2017  Regents Of University Of Colorado             339,431
  2017  Regis University                               45,000
  2017  Colorado Seminary                             945,175
  2016  Colorado Seminary                             414,802
  2015  Regis University                               45,000
  2015  Colorado Seminary                             264,416
  2014  Colorado Seminary                             636,415
  2013  Regis University                               54,000
  2013  Colorado Seminary                             233,197
  2012  Regis University                               44,000
  2012  Colorado Seminary                           1,430,385
```
## SULI/CCI Interns
From 2014-2018, this district had 6 SULI/CCI interns
```
Term         Name                      College                      Host Lab                               Program
-----------  ------------------------  ---------------------------  -------------------------------------  ---------
Summer 2018  Lane Daniel Smith         University of Denver         Pacific Northwest National Laboratory  SULI
Summer 2017  Arie Tomas Feltman-Frank  University of Denver         National Renewable Energy Laboratory   SULI
Summer 2017  Breanne Hammett           Community College of Denver  National Renewable Energy Laboratory   CCI
Summer 2015  Levi Daniel Kramer        Regis University             National Renewable Energy Laboratory   SULI
Summer 2014  Levi Daniel Kramer        Regis University             National Renewable Energy Laboratory   SULI
Spring 2018  Rachel Elizabeth Wegener  University of Denver         National Renewable Energy Laboratory   SULI
```
---

[Back to top](#top)
## CO-02 -- Rep. Joe Neguse (D) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-02)
## HEP Grants
In the past 9 years, this district has received: $20,929,603 in SC HEP grants.
```
Institution                                     Amount ($)    Start  End      Principal Investigator    Project Title
--------------------------------------------  ------------  -------  -------  ------------------------  ----------------------------------------------------------------------------------------------------------------------------------------
University of Colorado - Boulder                         0     2019  2020     van der Laan, Danko       Development of High-temperature Superconducting Cables for Accelerator Magnets
University of Colorado - Boulder                   350,000     2019  2020     Smith, Graeme             Measures of Holographic Correlation: Discovery, Interpretation, Application
University of Colorado - Boulder                    45,000     2018  Ongoing  Cumulat, John             Elementary Particle Physics and High Energy Phenomena
Tech-X Corporation                                  30,000     2018  Ongoing  Cowan, Benjamin           Support for the 2018 Advanced Accelerator Concepts Workshop
Colorado State University                                0     2017  2018     Wilson, Robert            Research in High Energy Physics
Colorado State University                        1,640,000     2017  2020     Wilson, Robert            Research in High Energy Physics
University of Colorado - Boulder                    25,000     2017  Ongoing  Zimmerman, Eric           Accelerator and Beamline Research and Technology Development for High-Power Neutrino Beams
University of Colorado - Boulder                 1,100,000     2017  2020     Litos, Michael            Plasma Source Development for Beam Emittance Preservation in a Plasma Wakefield Accelerator
Colorado State University                        1,548,000     2016  2020     Rocca, Jorge              Innovative solutions for scaling high energy, ultrafast lasers to multi-kilowatt average power for compact accelerators and applications
Colorado State University                          190,000     2016  2020     Fairbank, William         Search for Majorana Neutrinos in the EXO-200 Experiment
University of Colorado - Boulder                 1,140,000     2015  Ongoing  van der Laan, Daniel      Development of high-temperature superconducting cables for accelerator magnets
University of Colorado - Boulder                    50,000     2015  2016     Degrand, Thomas           Theoretical Advanced Study Institute 2015
University of Colorado - Boulder                 6,019,000     2015  2020     Cumalat, John             Elementary Particle Physics and High Energy Phenomena
University of Colorado - Boulder                   232,603     2015  2018     Cheggour, Najib           Electromechanical Studies of Superconductors for DOE/HEP Applications
University of Colorado                             150,000     2014  2015     Marino, Alysia            Probing Neutrino Properties with Long-Baseline Neutrino Beams
Colorado State University                                0     2014  2017     Fairbank, William         New Technique For Barium Daughter Ion Identification In A Liquid Xe-136 Double Beta Decay Experiment
University of Colorado                           1,198,000     2014  2015     Ford, William             Elementary Particle Physics and High Energy Phenomena
University of Colorado                                   0     2014  2015     Cary, John                Chaotic Dynamics and Advanced Computation for Beams and Accelerators
Colorado State University                        2,464,000     2014  2017     Toki, Walter              Research in High Energy Physics
University of Colorado                              50,000     2014  2015     Degrand, Thomas           Theoretical Advanced Study Institute: 2014
Tech-X Corporation                                 225,000     2014  2015     Cary, John                Community Project for Accelerator Science and Simulation
University of Colorado                             147,000     2014  2015     van der Laan, Daniel      Electromechanical Testing of RE-ba2Cu307-d Coated Conductors and Cables for High-Energy Physics Applications
University of Colorado                             150,000     2014  2015     Cheggour, Najib           Electromechanical Studies of Superconductors for DOE/HEP Applications
University of Colorado - Boulder                   140,000     2013  2014     Cheggour                  Electromechanical Studies of Superconductors for DOE/HEP Applications
University of Colorado - Boulder                         0     2013  2014     Cary                      Chaotic Dynamics and Advanced Computation for Beams and Accelerators
University of Colorado - Boulder                 1,195,000     2013  2014     Ford                      Elementary Particle Physics and High Energy Phenomena
University of Colorado - Boulder                    50,000     2013  2014     Mahanthappa               Theoretical Advanced Study Institute
Tech-X Corporation                                 225,000     2012  2014     Cary                      Community Project for Accelerator Science and Simulation
Tech-X Corporation                                       0     2012  2013     Cary                      SciDAC:  Community Petascale Project for Accelerator Science and Simulation
National Institute of Standards & Technology        53,000     2012  2013     Goodrich                  Critical Current Metrology for Nb3Sn Conductor Development
University of Colorado - Boulder                         0     2012  2013     Wagner                    Mosaic Diamond Detector Research
National Institute of Standards & Technology       129,000     2012  2013     Cheggour                  Electromechanical Properties of Superconductors for DOE/HEP Applications
University of Colorado - Boulder                   285,000     2012  2014     van der Laan              Electromechanical Testing of RE-Ba2Cu307-d Coated Conductors and Cables for High-Energy Physics Applications
University of Colorado - Boulder                   197,000     2012  2014     Cary                      Chaotic Dynamics and Advanced Computation for Beams and Accelerators
University of Colorado - Boulder                 1,902,000     2012  2014     Ford                      Elementary Particles and High Energy Phenomena, Tasks A, B, C, & T
```
## SC Contracts
```
This district received no SC contracts from 2012-2020
```
## NSF MPS Grants
In the past 9 years, this district has received: $159,189,431 in NSF MPS grants.
```
  Year  Institution                                        Amount ($)
------  -----------------------------------------------  ------------
  2020  Regents Of University Of Colorado                     969,668
  2020  Colorado State University                             522,029
  2019  Space Science Institute                               120,106
  2019  Regents Of University Of Colorado                  22,536,042
  2019  Colorado State University                           3,190,584
  2018  University Corporation For Atmospheric Research        62,500
  2018  Space Science Institute                               116,089
  2018  Regents Of University Of Colorado                  24,081,101
  2018  Redacted Due To Pii                                   100,000
  2018  Colorado State University                           3,456,652
  2017  Regents Of University Of Colorado                  16,288,618
  2017  Space Science Institute                               396,627
  2017  Pii Redacted                                          100,000
  2017  Colorado State University                           4,540,766
  2016  Regents Of University Of Colorado                  11,274,343
  2016  Colorado State University                           3,072,701
  2015  University Of Colorado Boulder                      4,696,368
  2015  Regents Of University Of Colorado                   8,261,373
  2015  Colorado State University                           4,024,637
  2014  University Corporation For Atmospheric Resear          75,090
  2014  Regents Of University Of Colorado                   9,214,779
  2014  Colorado State University                           3,676,451
  2013  Colorado State University                           6,850,660
  2013  Space Science Institute                               718,968
  2013  Regents Of University Of Colorado                  14,680,483
  2012  Regents Of University Of Colorado                  16,162,796
```
## SULI/CCI Interns
From 2014-2018, this district had 25 SULI/CCI interns
```
Term         Name                    College                         Host Lab                                Program
-----------  ----------------------  ------------------------------  --------------------------------------  ---------
Summer 2018  Owen Gormley Brown      University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Summer 2018  Justin Berdahl          University of Colorado Boulder  Idaho National Laboratory               SULI
Summer 2018  Steffen Graham          University of Colorado Boulder  Pacific Northwest National Laboratory   SULI
Summer 2018  Kyle Douglas Rose       University of Colorado Boulder  Pacific Northwest National Laboratory   SULI
Summer 2018  Lindsey Foust           University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Summer 2017  Andrew James Seracuse   University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Summer 2017  Taylor Faye Whittemore  University of Colorado Boulder  Lawrence Livermore National Laboratory  SULI
Summer 2017  Brandon Ross King       Colorado State University       National Renewable Energy Laboratory    SULI
Summer 2017  Lindsey Foust           University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Summer 2017  Tyler Glenn Franklin    University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Summer 2017  Joseph George Theis     University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Summer 2016  Erin Michelle Vogel     Colorado State University       National Renewable Energy Laboratory    SULI
Summer 2015  Andrew Lawrence Lewis   Colorado State University       Argonne National Laboratory             SULI
Summer 2015  Jaclyn Johnson          Colorado State University       Brookhaven National Laboratory          SULI
Spring 2018  Kylie Smith             University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Spring 2016  Erin Michelle Vogel     Colorado State University       National Renewable Energy Laboratory    SULI
Spring 2016  Peter Madigan           University of Colorado Boulder  Los Alamos National Laboratory          SULI
Spring 2016  Mary Frances Martin     Colorado State University       Brookhaven National Laboratory          SULI
Spring 2015  Meghan Sposato          University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Spring 2015  Akaxia Cruz             University of Colorado Boulder  Lawrence Berkeley National Laboratory   SULI
Spring 2015  Rachel Nicole Larson    Colorado State University       Brookhaven National Laboratory          SULI
Spring 2014  Daniel Cris Poulson     University of Colorado Boulder  Los Alamos National Laboratory          SULI
Fall 2017    Kylie Smith             University of Colorado Boulder  National Renewable Energy Laboratory    SULI
Fall 2014    Neil Christian Hendren  University of Colorado Boulder  Lawrence Berkeley National Laboratory   SULI
Fall 2014    Akaxia Cruz             University of Colorado Boulder  Lawrence Berkeley National Laboratory   SULI
```
---

[Back to top](#top)
## CO-03 -- Rep. Scott R. Tipton (R) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-03)
## HEP Grants
In the past 9 years, this district has received: $37,000 in SC HEP grants.
```
Institution                 Amount ($)    Start    End  Principal Investigator    Project Title
------------------------  ------------  -------  -----  ------------------------  ---------------------------------------------------------------------------------------------------------------------------------------------------------------
Aspen Center For Physics        12,000     2015   2016  Chakraborty, Bulbul       2015 Aspen Winter Conference On Exploring The Physics Frontier With Circular Colliders And 2015 Aspen Winter Conference On Closing In On The Cosmological Model
Aspen Center For Physics        15,000     2013   2014  Terning                   Aspen Center for Physics Winter Conferences in Astrophysics and Particle Physics, Winter 2013
Aspen Center For Physics        10,000     2012   2013  Bhatt                     2012 Aspen Winter Conference on High Energy and Astrophysics
```
## SC Contracts
```
This district received no SC contracts from 2012-2020
```
## NSF MPS Grants
In the past 9 years, this district has received: $5,029,996 in NSF MPS grants.
```
  Year  Institution                           Amount ($)
------  ----------------------------------  ------------
  2019  Aspen Center For Physics                 475,000
  2019  Fort Lewis College                       625,000
  2018  Aspen Center For Physics                 475,000
  2018  Fort Lewis College                       635,000
  2017  Aspen Center For Physics                 475,000
  2016  Aspen Center For Physics                 475,000
  2015  Aspen Center For Physics                 440,000
  2015  Front Range Scientific Computation        10,000
  2015  Rocky Mtn Biol Lab                        15,070
  2014  Aspen Center For Physics                 440,000
  2014  Front Range Scientific Computation        34,998
  2013  Aspen Center For Physics                 440,000
  2012  Aspen Center For Physics                 440,000
  2012  Front Range Scientific Computation        49,928
```
## SULI/CCI Interns
From 2014-2018, this district had 4 SULI/CCI interns
```
Term         Name             College                   Host Lab                               Program
-----------  ---------------  ------------------------  -------------------------------------  ---------
Summer 2018  Derek Hanshaw    Fort Lewis College        Lawrence Berkeley National Laboratory  SULI
Summer 2014  Spencer Huffman  Fort Lewis College        Pacific Northwest National Laboratory  SULI
Summer 2014  Jonathan Ogle    Fort Lewis College        Pacific Northwest National Laboratory  SULI
Fall 2014    Alexander Brown  Colorado Mesa University  Ames National Laboratory               SULI
```
---

[Back to top](#top)
## CO-04 -- Rep. Ken Buck (R) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-04)
## HEP Grants
In the past 9 years, this district has received: $2,012,000 in SC HEP grants.
```
Institution                  Amount ($)    Start    End  Principal Investigator    Project Title
-------------------------  ------------  -------  -----  ------------------------  ----------------------------------------------------------------------------------------------------
Colorado State University         73000     2013   2014  Buchanan                  Neutrino Physics at Current and Next Generation Long Baseline Experiments
Colorado State University        203000     2012   2014  Fairbank                  New Technique for Barium Daughter Ion Identification in a Liquid Xe-136 Double Beta Decay Experiment
Colorado State University       1736000     2012   2014  Toki, Harton, Wilson      Research in High Energy Physics
```
## SC Contracts
```
This district received no SC contracts from 2012-2020
```
## NSF MPS Grants
In the past 9 years, this district has received: $5,060,676 in NSF MPS grants.
```
  Year  Institution                        Amount ($)
------  -------------------------------  ------------
  2015  University Of Northern Colorado        50,000
  2014  University Of Northern Colorado       363,136
  2013  University Of Northern Colorado       120,000
  2012  Colorado State University           4,407,540
  2012  University Of Northern Colorado       120,000
```
## SULI/CCI Interns
From 2014-2018, this district had 6 SULI/CCI interns
```
Term         Name              College                                  Host Lab                              Program
-----------  ----------------  ---------------------------------------  ------------------------------------  ---------
Summer 2017  Michael Roos      Metropolitan State University of Denver  National Renewable Energy Laboratory  SULI
Summer 2015  Bradley Prythero  Metropolitan State University of Denver  National Renewable Energy Laboratory  SULI
Spring 2016  Riley Abel        Metropolitan State University of Denver  National Renewable Energy Laboratory  SULI
Fall 2018    Ellsbeth Webb     Metropolitan State University of Denver  National Renewable Energy Laboratory  SULI
Fall 2015    Riley Abel        Metropolitan State University of Denver  National Renewable Energy Laboratory  SULI
Fall 2015    Bradley Prythero  Metropolitan State University of Denver  National Renewable Energy Laboratory  SULI
```
---

[Back to top](#top)
## CO-05 -- Rep. Doug Lamborn (R) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-05)
## HEP Grants
```
This district received no SC HEP grants from 2012-2020
```
## SC Contracts
In the past 9 years, this district has received:
1 Office of Science contracts, totalling  $4,568
```
  Year  Vendor                 Amount ($)  Item
------  -------------------  ------------  ---------------
  2014  Imaging Systems LLC         4,568  Office Supplies
```
## NSF MPS Grants
In the past 9 years, this district has received: $1,131,419 in NSF MPS grants.
```
  Year  Institution                          Amount ($)
------  ---------------------------------  ------------
  2019  Regents Of University Of Colorado        15,600
  2018  Regents Of University Of Colorado       177,410
  2016  Regents Of University Of Colorado       138,374
  2014  Regents Of University Of Colorado       354,043
  2013  Regents Of University Of Colorado       145,992
  2012  Regents Of University Of Colorado       300,000
```
## SULI/CCI Interns
From 2014-2018, this district had 8 SULI/CCI interns
```
Term         Name                    College                       Host Lab                               Program
-----------  ----------------------  ----------------------------  -------------------------------------  ---------
Summer 2018  Alana Aamodt            Colorado College              National Renewable Energy Laboratory   SULI
Summer 2018  Nathan Agarwal          Colorado College              National Renewable Energy Laboratory   SULI
Summer 2018  Jack Schrott            Colorado College              Fermi National Accelerator Laboratory  SULI
Summer 2017  Olivia Rader            Pikes Peak Community College  Ames National Laboratory               CCI
Summer 2016  Johnathan Seward Lomas  Colorado College              Lawrence Berkeley National Laboratory  SULI
Summer 2016  Caitlin Randall         Pikes Peak Community College  National Renewable Energy Laboratory   CCI
Spring 2016  Sanjay Roberts          Colorado College              National Renewable Energy Laboratory   SULI
Fall 2018    Gina Clara Jozef        Colorado College              Brookhaven National Laboratory         SULI
```
---

[Back to top](#top)
## CO-06 -- Rep. Jason Crow (D) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-06)
## HEP Grants
In the past 9 years, this district has received: $0 in SC HEP grants.
```
Institution                        Amount ($)    Start    End  Principal Investigator    Project Title
-------------------------------  ------------  -------  -----  ------------------------  ------------------------------------------------------------------------------
University of Colorado - Denver             0     2017   2018  van der Laan, Daniel      Development of High-temperature Superconducting Cables for Accelerator Magnets
```
## SC Contracts
```
This district received no SC contracts from 2012-2020
```
## NSF MPS Grants
In the past 9 years, this district has received: $1,583,077 in NSF MPS grants.
```
  Year  Institution                          Amount ($)
------  ---------------------------------  ------------
  2019  Regents Of University Of Colorado       240,179
  2018  Regents Of University Of Colorado         9,000
  2017  Regents Of University Of Colorado        73,369
  2016  Regents Of University Of Colorado       516,000
  2015  Regents Of University Of Colorado        37,558
  2015  University Of Colorado Denver           420,000
  2014  Regents Of University Of Colorado       173,627
  2013  Regents Of University Of Colorado       113,344
```
## SULI/CCI Interns
From 2014-2018, this district had 4 SULI/CCI interns
```
Term         Name                     College                                                Host Lab                              Program
-----------  -----------------------  -----------------------------------------------------  ------------------------------------  ---------
Summer 2018  Yilin Wu                 Community College of Aurora                            National Renewable Energy Laboratory  CCI
Summer 2017  Hasibul Islam            University of Colorado Denver|Anschutz Medical Campus  Los Alamos National Laboratory        SULI
Summer 2016  Marina Meier             American Sentinel University                           Idaho National Laboratory             SULI
Fall 2014    Briane Caroline Montoya  Ecotech Institute                                      Ames National Laboratory              SULI
```
---

[Back to top](#top)
## CO-07 -- Rep. Ed Perlmutter (D) -- [Wikipedia](https://en.wikipedia.org/wiki/CO-07)
## Committees
Ed Perlmutter is the #14 Democrat on the House Committee on Science, Space, and Technology

## HEP Grants
```
This district received no SC HEP grants from 2012-2020
```
## SC Contracts
In the past 9 years, this district has received:
9 Office of Science contracts, totalling  $75,390
```
Vendor                               Amount ($)  Item
---------------------------------  ------------  ----------------------------------------
Premisys Support Group, Inc.             14,492  Installation Of Equipment- Electrical An
Four Points Technology, L.L.C.           12,130  Radio And Television Communication Equip
Valiant Solutions, LLC                   10,099  ADP Components
General Dynamics C4 Systems, Inc.         9,100  Communications Security Equipment And Co
Digital Data Services Inc                 6,895  ADPE System Configuration
Mc2 Electrical Contractors LLC            6,533  Electrical Control Equipment
Agsi, LLC                                 5,852  ADP Central Processing Unit (CPU, Comput
Premisys Support Group, Inc.              5,414  Maint/Repair/Rebuild Of Equipment- Commu
Mono Machines LLC                         4,875  Miscellaneous Office Machines
```
## NSF MPS Grants
In the past 9 years, this district has received: $26,525,575 in NSF MPS grants.
```
  Year  Institution                          Amount ($)
------  ---------------------------------  ------------
  2020  Colorado School Of Mines                326,450
  2019  Colorado School Of Mines              3,443,001
  2018  Colorado School Of Mines              4,027,429
  2017  Colorado School Of Mines              3,223,124
  2016  Colorado School Of Mines              1,422,478
  2015  Colorado School Of Mines              3,291,864
  2014  Colorado School Of Mines              2,239,799
  2013  Colorado School Of Mines              3,360,716
  2013  Regents Of University Of Colorado       100,000
  2012  Colorado School Of Mines              4,404,447
  2012  Regents Of University Of Colorado       686,267
```
## SULI/CCI Interns
From 2014-2018, this district had 34 SULI/CCI interns
```
Term         Name                         College                        Host Lab                               Program
-----------  ---------------------------  -----------------------------  -------------------------------------  ---------
Summer 2018  Amanda Matheson              Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Jacob Barson                 Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Kristen Baker                Colorado School of Mines       Idaho National Laboratory              SULI
Summer 2018  Mariela Emilia Bonilla       Red Rocks Community College    National Renewable Energy Laboratory   CCI
Summer 2018  Cory Kennedy                 Colorado School of Mines       National Renewable Energy Laboratory   CCI
Summer 2018  Samuel Nichols               Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Alex Adair Dobbs             Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Erica Lauren Dettmer-Radtke  Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Alyssa Miranda Boll          Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Anyka Bergeson-Keller        Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2018  Austin O'Connor              Colorado School of Mines       Los Alamos National Laboratory         SULI
Summer 2018  Claire Bottini               Colorado School of Mines       Oak Ridge National Laboratory          SULI
Summer 2017  Jonathan Wells               Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2017  Alex Adair Dobbs             Colorado School of Mines       National Renewable Energy Laboratory   CCI
Summer 2017  Kristen Baker                Colorado School of Mines       Idaho National Laboratory              SULI
Summer 2017  Manal Yunes                  Front Range Community College  National Renewable Energy Laboratory   CCI
Summer 2017  Erica Lauren Dettmer-Radtke  Colorado School of Mines       Lawrence Berkeley National Laboratory  SULI
Summer 2017  Grace Anderson               Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2016  Joshua Major                 Red Rocks Community College    National Renewable Energy Laboratory   CCI
Summer 2016  Christopher Betts Wolcott    Red Rocks Community College    National Renewable Energy Laboratory   CCI
Summer 2016  Michael Person               Colorado School of Mines       Oak Ridge National Laboratory          SULI
Summer 2016  Steven John Madachy          Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2015  Jason Actis                  Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2015  Alex Badgett                 Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2015  Michael Person               Colorado School of Mines       Oak Ridge National Laboratory          SULI
Summer 2014  William Henry Huddleston     Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2014  Chandler Ridler              Colorado School of Mines       National Renewable Energy Laboratory   SULI
Summer 2014  Derek Jordan Hart            Colorado School of Mines       Los Alamos National Laboratory         SULI
Spring 2017  Thomas Brian Deisz           Red Rocks Community College    National Renewable Energy Laboratory   CCI
Spring 2017  Alexandra Ayaka Schmitz      Red Rocks Community College    National Renewable Energy Laboratory   CCI
Spring 2017  Samuel Schuman               Red Rocks Community College    National Renewable Energy Laboratory   CCI
Spring 2017  Jonathan Wells               Colorado School of Mines       National Renewable Energy Laboratory   SULI
Fall 2018    Cole Carlisle Delery         Red Rocks Community College    National Renewable Energy Laboratory   CCI
Fall 2017    Anna Deleray                 Colorado School of Mines       Los Alamos National Laboratory         SULI
```
---


text:
#include <iostream>
#include <regex>
#include <set>
#include <sstream>
#include <ts/ts.h>
#include <ts/experimental.h>
#include "tscpp/api/GlobalPlugin.h"
#include "tscpp/api/utils.h"

#define PLUGIN_NAME "server_push_preload"
#define PRELOAD_PARAM "rel=preload"
#define NOPUSH_OPTION "nopush"

using namespace std;
using namespace atscppapi;

static regex linkRegexp("<([^>]+)>;(.+)");

namespace
{
GlobalPlugin *plugin;
}

class LinkServerPushPlugin : public GlobalPlugin
{
public:
  LinkServerPushPlugin()
  {
    TSDebug(PLUGIN_NAME, "registering transaction hooks");
    LinkServerPushPlugin::registerHook(HOOK_SEND_RESPONSE_HEADERS);
  }

  void
  handleSendResponseHeaders(Transaction &transaction) override
  {
    serverPush(transaction);
    transaction.resume();
  }

  void
  serverPush(Transaction &transaction)
  {
    TSHttpTxn txnp = static_cast<TSHttpTxn>(transaction.getAtsHandle());
    if (TSHttpTxnClientProtocolStackContains(txnp, "h2") == nullptr) {
      return;
    }

    ClientRequest &request = transaction.getClientRequest();
    Response &response     = transaction.getClientResponse();
    Headers &headers       = response.getHeaders();

    const Url &clientUrl = request.getPristineUrl();

    for (header_field_iterator it = headers.find("Link"); it != headers.end(); it.nextDup()) {
      HeaderField field = *it;

      for (header_field_value_iterator hit = field.begin(); hit != field.end(); ++hit) {
        const string &link = *hit;

        TSDebug(PLUGIN_NAME, "Parsing link header: %s", link.c_str());
        smatch matches;

        if (regex_search(link, matches, linkRegexp)) {
          string url = matches[1].str();
          TSDebug(PLUGIN_NAME, "Found link header match: %s", url.c_str());

          set<string> params = split(matches[2].str(), ';');
          auto preload       = params.find(PRELOAD_PARAM);
          if (preload == params.end()) {
            continue;
          }

          auto noPush = params.find(NOPUSH_OPTION);
          if (noPush != params.end()) {
            TSDebug(PLUGIN_NAME, "Skipping nopush link: %s", link.c_str());
            continue;
          }

          Request request(url);
          Url &linkUrl = request.getUrl();

          if (linkUrl.getHost().empty()) {
            linkUrl.setHost(clientUrl.getHost());
            linkUrl.setScheme(clientUrl.getScheme());
          }
          if (0 != clientUrl.getPort()) {
            linkUrl.setPort(clientUrl.getPort());
          }
          string lu = linkUrl.getUrlString();
          TSDebug(PLUGIN_NAME, "Push preloaded content: %s", lu.c_str());
          TSHttpTxnServerPush(txnp, lu.c_str(), lu.length());
        } else {
          TSDebug(PLUGIN_NAME, "No match found for link header: %s", link.c_str());
        }
      }
    }
  }

  set<string>
  split(const string &params, char delim)
  {
    stringstream ss(params);
    string s;
    set<string> tokens;
    while (getline(ss, s, delim)) {
      s.erase(find_if(s.rbegin(), s.rend(), [](unsigned char c) { return !std::isspace(c); }).base(), s.end()); // trim left
      s.erase(s.begin(), find_if(s.begin(), s.end(), [](unsigned char c) { return !std::isspace(c); }));        // trim right
      tokens.insert(s);
    }
    return tokens;
  }
};

void
TSPluginInit(int argc ATSCPPAPI_UNUSED, const char *argv[] ATSCPPAPI_UNUSED)
{
  TSDebug(PLUGIN_NAME, "Init");
  if (!RegisterGlobalPlugin("ServerPushPreloadPlugin", PLUGIN_NAME, "dev@trafficserver.apache.org")) {
    return;
  }
  plugin = new LinkServerPushPlugin();
}


text:
using SSCore;
using System;

namespace SSService.Inventory.Domain
{
    public class InvCategory : DomainBase
    {
        public string CategoryName { get; set; }

        public Guid? ParentId { get; set; }
    }
}


text:
#include <_ansi.h>
#include <signal.h>
#include "swi.h"

int _kill _PARAMS ((int, int));

int
_kill (int pid, int sig)
{
  (void) pid; (void) sig;
#ifdef ARM_RDI_MONITOR
  /* Note: The pid argument is thrown away.  */
  switch (sig)
    {
    case SIGABRT:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_RunTimeError);
    default:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_ApplicationExit);
    }
#else
  asm ("swi %a0" :: "i" (SWI_Exit));
#endif
}


text:
<ion-header>

  <ion-navbar>
    <ion-title>Location Types</ion-title>
  </ion-navbar>

</ion-header>

<ion-content padding>

  <ion-card>

    <ion-card-content>

      <ion-list *ngFor="let locType of locTypes">

        <ion-item>

          <ng-container *ngIf="locType.category && locType.category.icon; then hasCategoryIcon else noCategoryIcon">
          </ng-container>

          <ng-template #hasCategoryIcon>

          </ng-template>

          <ng-template #noCategoryIcon>

          </ng-template>

          <loc-type-chip [locType]="locType">
          </loc-type-chip>

          {{locType.description}}
        </ion-item>

      </ion-list>

    </ion-card-content>
  </ion-card>
</ion-content>


text:
package users

import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"log"
	"net/http"

	"github.com/dropbox/dropbox-sdk-go-unofficial/dropbox"
)

// Client interface describes all routes in this namespace
type Client interface {
	// GetAccount : Get information about a user's account.
	GetAccount(arg *GetAccountArg) (res *BasicAccount, err error)
	// GetAccountBatch : Get information about multiple user accounts.  At most
	// 300 accounts may be queried per request.
	GetAccountBatch(arg *GetAccountBatchArg) (res []*BasicAccount, err error)
	// GetCurrentAccount : Get information about the current user's account.
	GetCurrentAccount() (res *FullAccount, err error)
	// GetSpaceUsage : Get the space usage information for the current user's
	// account.
	GetSpaceUsage() (res *SpaceUsage, err error)
}

type apiImpl dropbox.Context

//GetAccountAPIError is an error-wrapper for the get_account route
type GetAccountAPIError struct {
	dropbox.APIError
	EndpointError *GetAccountError `json:"error"`
}

func (dbx *apiImpl) GetAccount(arg *GetAccountArg) (res *BasicAccount, err error) {
	cli := dbx.Client

	if dbx.Config.Verbose {
		log.Printf("arg: %v", arg)
	}
	b, err := json.Marshal(arg)
	if err != nil {
		return
	}

	req, err := http.NewRequest("POST", (*dropbox.Context)(dbx).GenerateURL("api", "users", "get_account"), bytes.NewReader(b))
	if err != nil {
		return
	}

	req.Header.Set("Content-Type", "application/json")
	if dbx.Config.AsMemberID != "" {
		req.Header.Set("Dropbox-API-Select-User", dbx.Config.AsMemberID)
	}
	if dbx.Config.Verbose {
		log.Printf("req: %v", req)
	}
	resp, err := cli.Do(req)
	if dbx.Config.Verbose {
		log.Printf("resp: %v", resp)
	}
	if err != nil {
		return
	}

	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return
	}

	if dbx.Config.Verbose {
		log.Printf("body: %s", body)
	}
	if resp.StatusCode == http.StatusOK {
		err = json.Unmarshal(body, &res)
		if err != nil {
			return
		}

		return
	}
	if resp.StatusCode == http.StatusConflict {
		var apiError GetAccountAPIError
		err = json.Unmarshal(body, &apiError)
		if err != nil {
			return
		}
		err = apiError
		return
	}
	var apiError dropbox.APIError
	if resp.StatusCode == http.StatusBadRequest {
		apiError.ErrorSummary = string(body)
		err = apiError
		return
	}
	err = json.Unmarshal(body, &apiError)
	if err != nil {
		return
	}
	err = apiError
	return
}

//GetAccountBatchAPIError is an error-wrapper for the get_account_batch route
type GetAccountBatchAPIError struct {
	dropbox.APIError
	EndpointError *GetAccountBatchError `json:"error"`
}

func (dbx *apiImpl) GetAccountBatch(arg *GetAccountBatchArg) (res []*BasicAccount, err error) {
	cli := dbx.Client

	if dbx.Config.Verbose {
		log.Printf("arg: %v", arg)
	}
	b, err := json.Marshal(arg)
	if err != nil {
		return
	}

	req, err := http.NewRequest("POST", (*dropbox.Context)(dbx).GenerateURL("api", "users", "get_account_batch"), bytes.NewReader(b))
	if err != nil {
		return
	}

	req.Header.Set("Content-Type", "application/json")
	if dbx.Config.AsMemberID != "" {
		req.Header.Set("Dropbox-API-Select-User", dbx.Config.AsMemberID)
	}
	if dbx.Config.Verbose {
		log.Printf("req: %v", req)
	}
	resp, err := cli.Do(req)
	if dbx.Config.Verbose {
		log.Printf("resp: %v", resp)
	}
	if err != nil {
		return
	}

	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return
	}

	if dbx.Config.Verbose {
		log.Printf("body: %s", body)
	}
	if resp.StatusCode == http.StatusOK {
		err = json.Unmarshal(body, &res)
		if err != nil {
			return
		}

		return
	}
	if resp.StatusCode == http.StatusConflict {
		var apiError GetAccountBatchAPIError
		err = json.Unmarshal(body, &apiError)
		if err != nil {
			return
		}
		err = apiError
		return
	}
	var apiError dropbox.APIError
	if resp.StatusCode == http.StatusBadRequest {
		apiError.ErrorSummary = string(body)
		err = apiError
		return
	}
	err = json.Unmarshal(body, &apiError)
	if err != nil {
		return
	}
	err = apiError
	return
}

//GetCurrentAccountAPIError is an error-wrapper for the get_current_account route
type GetCurrentAccountAPIError struct {
	dropbox.APIError
	EndpointError struct{} `json:"error"`
}

func (dbx *apiImpl) GetCurrentAccount() (res *FullAccount, err error) {
	cli := dbx.Client

	req, err := http.NewRequest("POST", (*dropbox.Context)(dbx).GenerateURL("api", "users", "get_current_account"), nil)
	if err != nil {
		return
	}

	if dbx.Config.AsMemberID != "" {
		req.Header.Set("Dropbox-API-Select-User", dbx.Config.AsMemberID)
	}
	if dbx.Config.Verbose {
		log.Printf("req: %v", req)
	}
	resp, err := cli.Do(req)
	if dbx.Config.Verbose {
		log.Printf("resp: %v", resp)
	}
	if err != nil {
		return
	}

	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return
	}

	if dbx.Config.Verbose {
		log.Printf("body: %s", body)
	}
	if resp.StatusCode == http.StatusOK {
		err = json.Unmarshal(body, &res)
		if err != nil {
			return
		}

		return
	}
	if resp.StatusCode == http.StatusConflict {
		var apiError GetCurrentAccountAPIError
		err = json.Unmarshal(body, &apiError)
		if err != nil {
			return
		}
		err = apiError
		return
	}
	var apiError dropbox.APIError
	if resp.StatusCode == http.StatusBadRequest {
		apiError.ErrorSummary = string(body)
		err = apiError
		return
	}
	err = json.Unmarshal(body, &apiError)
	if err != nil {
		return
	}
	err = apiError
	return
}

//GetSpaceUsageAPIError is an error-wrapper for the get_space_usage route
type GetSpaceUsageAPIError struct {
	dropbox.APIError
	EndpointError struct{} `json:"error"`
}

func (dbx *apiImpl) GetSpaceUsage() (res *SpaceUsage, err error) {
	cli := dbx.Client

	req, err := http.NewRequest("POST", (*dropbox.Context)(dbx).GenerateURL("api", "users", "get_space_usage"), nil)
	if err != nil {
		return
	}

	if dbx.Config.AsMemberID != "" {
		req.Header.Set("Dropbox-API-Select-User", dbx.Config.AsMemberID)
	}
	if dbx.Config.Verbose {
		log.Printf("req: %v", req)
	}
	resp, err := cli.Do(req)
	if dbx.Config.Verbose {
		log.Printf("resp: %v", resp)
	}
	if err != nil {
		return
	}

	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return
	}

	if dbx.Config.Verbose {
		log.Printf("body: %s", body)
	}
	if resp.StatusCode == http.StatusOK {
		err = json.Unmarshal(body, &res)
		if err != nil {
			return
		}

		return
	}
	if resp.StatusCode == http.StatusConflict {
		var apiError GetSpaceUsageAPIError
		err = json.Unmarshal(body, &apiError)
		if err != nil {
			return
		}
		err = apiError
		return
	}
	var apiError dropbox.APIError
	if resp.StatusCode == http.StatusBadRequest {
		apiError.ErrorSummary = string(body)
		err = apiError
		return
	}
	err = json.Unmarshal(body, &apiError)
	if err != nil {
		return
	}
	err = apiError
	return
}

// New returns a Client implementation for this namespace
func New(c dropbox.Config) *apiImpl {
	ctx := apiImpl(dropbox.NewContext(c))
	return &ctx
}


text:
@interface DLTiledLayer : CATiledLayer

+ (CFTimeInterval)fadeDuration;
+ (void)setFadeDuration:(CFTimeInterval)fadeDuration;

@end


text:
window.addEventListener("DOMContentLoaded", function () {
    "use strict";
    function detectNotFound(URL, callback) {
        var request = new XMLHttpRequest();
        request.open("HEAD", URL);
        request.onload = function () {
            if (request.status >= 200 && request.status < 300) {
                callback(null);
            } else {
                callback(new Error("status code is " + request.status));
            }
        };
        request.onerror = function () {
            callback(new Error("status code is " + request.status));
        };
        request.send();
    }

    var altHrefTags = document.querySelectorAll('a[data-alt-href]');
    var links = Array.prototype.slice.call(altHrefTags);
    links.forEach(function (link) {
        var altHref = link.dataset.altHref;
        detectNotFound(altHref, function (error) {
            if (error) {
                return;
            }
            // if altHref is not 404, then replace href to altHref
            link.href = altHref;
        });
    });
});


text:
package com.longkaiwen.loverun.ui;

import com.longkaiwen.loverun.R;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.view.Window;

/**
 * Æô¶¯½çÃ棬ʹÓÃhandler.postDelayedÔڸýçÃæÍ£ÁôÒ»ÃëÖÓ
 * ¸ù¾ÝsharedpreferencesÖеÄÊý¾Ý¾ö¶¨ÏÂÒ»½çÃæ
 * ½áÊø¸Ã½çÃæ
 * @author longkaiwen
 *
 */
public class Appstart extends Activity{

	private SharedPreferences sharedPreferences;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.welcome);

		sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);

		new Handler().postDelayed(new Runnable() {

			@Override
			public void run() {
				Intent intent = new Intent();
				if (sharedPreferences.getBoolean("isFirstStart", true)) {
					intent.setClass(Appstart.this, Introduce.class);
					startActivity(intent);
				}
				else {
					intent.setClass(Appstart.this, MainLoveRun.class);
					startActivity(intent);
				}
				Appstart.this.finish();
			}
		}, 1000);
	}
}


text:
class Tagging < ActiveRecord::Base
  include MissionBased

  belongs_to :question
  belongs_to :tag
  attr_accessible :is_standard, :standard_id

  delegate :mission_id, to: :question
end


text:
namespace chromeos {

class PowerManagerClient;

}  // namespace chromeos

namespace policy {

class DeviceCommandRebootJob : public RemoteCommandJob {
 public:
  explicit DeviceCommandRebootJob(
      chromeos::PowerManagerClient* power_manager_client);

  DeviceCommandRebootJob(const DeviceCommandRebootJob&) = delete;
  DeviceCommandRebootJob& operator=(const DeviceCommandRebootJob&) = delete;

  ~DeviceCommandRebootJob() override;

  // RemoteCommandJob:
  enterprise_management::RemoteCommand_Type GetType() const override;

 private:
  // RemoteCommandJob:
  void RunImpl(CallbackWithResult succeeded_callback,
               CallbackWithResult failed_callback) override;

  chromeos::PowerManagerClient* power_manager_client_;
};

}  // namespace policy

#endif  // CHROME_BROWSER_ASH_POLICY_REMOTE_COMMANDS_DEVICE_COMMAND_REBOOT_JOB_H_


text:
package com.thoughtworks.xstream.converters.collections;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
import com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriterHelper;
import com.thoughtworks.xstream.io.HierarchicalStreamReader;
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
import com.thoughtworks.xstream.mapper.Mapper;

/**
 * Converts a {@link Map}, specifying an 'entry' element with 'key' and 'value' children.
 *

 * Note: 'key' and 'value' is not the name of the generated tag. The children are serialized as normal elements and the
 * implementation expects them in the order 'key'/'value'.
 *

 *

 * Supports {@link HashMap}, {@link Hashtable}, {@link LinkedHashMap}, {@link ConcurrentHashMap} and
 * sun.font.AttributeMap.
 *

 *
 * @see com.thoughtworks.xstream.converters.extended.NamedMapConverter
 * @author Joe Walnes
 */
public class MapConverter extends AbstractCollectionConverter {

    private final Class<? extends Map<?, ?>> type;

    public MapConverter(final Mapper mapper) {
        this(mapper, null);
    }

    /**
     * Construct a MapConverter for a special Map type.
     *
     * @param mapper the mapper
     * @param type the type to handle
     * @since 1.4.5
     */
    public MapConverter(final Mapper mapper, @SuppressWarnings("rawtypes") final Class<? extends Map> type) {
        super(mapper);
        @SuppressWarnings("unchecked")
        final Class<? extends Map<?, ?>> checkedType = (Class<? extends Map<?, ?>>)type;
        this.type = checkedType;
        if (type != null && !Map.class.isAssignableFrom(type)) {
            throw new IllegalArgumentException(type + " not of type " + Map.class);
        }
    }

    @Override
    public boolean canConvert(final Class<?> type) {
        if (this.type != null) {
            return type.equals(this.type);
        }
        return type.equals(HashMap.class)
            || type.equals(Hashtable.class)
            || type.equals(LinkedHashMap.class)
            || type.equals(ConcurrentHashMap.class)
            || type.getName().equals("sun.font.AttributeMap") // Used by java.awt.Font since JDK 6
        ;
    }

    @Override
    public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) {
        final Map<?, ?> map = (Map<?, ?>)source;
        final String entryName = mapper().serializedClass(Map.Entry.class);
        for (final Map.Entry<?, ?> entry : map.entrySet()) {
            ExtendedHierarchicalStreamWriterHelper.startNode(writer, entryName, entry.getClass());

            writeItem(entry.getKey(), context, writer);
            writeItem(entry.getValue(), context, writer);

            writer.endNode();
        }
    }

    @Override
    public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) {
        final Class<?> requiredType = context.getRequiredType();
        final Map<?, ?> map = createCollection(requiredType);
        populateMap(reader, context, map);
        return map;
    }

    protected void populateMap(final HierarchicalStreamReader reader, final UnmarshallingContext context,
            final Map<?, ?> map) {
        populateMap(reader, context, map, map);
    }

    protected void populateMap(final HierarchicalStreamReader reader, final UnmarshallingContext context,
            final Map<?, ?> map, final Map<?, ?> target) {
        while (reader.hasMoreChildren()) {
            reader.moveDown();
            putCurrentEntryIntoMap(reader, context, map, target);
            reader.moveUp();
        }
    }

    protected void putCurrentEntryIntoMap(final HierarchicalStreamReader reader, final UnmarshallingContext context,
            final Map<?, ?> map, final Map<?, ?> target) {
        reader.moveDown();
        final Object key = readItem(reader, context, map);
        reader.moveUp();

        reader.moveDown();
        final Object value = readItem(reader, context, map);
        reader.moveUp();

        @SuppressWarnings("unchecked")
        final Map<Object, Object> targetMap = (Map<Object, Object>)target;
        targetMap.put(key, value);
    }

    @Override
    protected Map<?, ?> createCollection(final Class<?> type) {
        return (Map<?, ?>)super.createCollection(this.type != null ? this.type : type);
    }
}


text:
import { Discardable } from '@serenity-js/core';
import { BrowserCapabilities, BrowseTheWeb } from '@serenity-js/web';
import * as playwright from 'playwright-core';

import { PlaywrightOptions } from '../../PlaywrightOptions';
import { PlaywrightBrowsingSession } from '../models';

/**
 * This implementation of the {@apilink Ability|ability} to {@apilink BrowseTheWeb}
 * enables the {@apilink Actor} to interact with web front-ends using [Playwright](https://playwright.dev/).
 *
 * ## Using Playwright to `BrowseTheWeb`
 *
 * ```ts
 * import { actorCalled } from '@serenity-js/core'
 * import { BrowseTheWebWithPlaywright } from '@serenity-js/playwright'
 * import { By, Navigate, PageElement } from '@serenity-js/web'
 * import { Ensure, equals } from '@serenity-js/assertions'
 * import { Browser, chromium } from 'playwright'
 *
 * const HomePage = {
 *   title: () =>
 *     PageElement.located(By.css('h1')).describedAs('title')
 * }
 *
 * const browser = await chromium.launch({ headless: true });
 *
 * await actorCalled('Wendy')
 *   .whoCan(BrowseTheWebWithPlaywright.using(browser))
 *   .attemptsTo(
 *     Navigate.to(`https://serenity-js.org`),
 *     Ensure.that(Text.of(HomePage.title()), equals('Serenity/JS')),
 *   )
 * ```
 *
 * ## Learn more
 * - [Playwright website](https://playwright.dev/)
 * - {@apilink BrowseTheWeb}
 * - {@apilink Ability}
 * - {@apilink Actor}
 *
 * @group Abilities
 */
export class BrowseTheWebWithPlaywright extends BrowseTheWeb<playwright.ElementHandle> implements Discardable {

    static using(browser: playwright.Browser, options?: PlaywrightOptions): BrowseTheWebWithPlaywright {
        return new BrowseTheWebWithPlaywright(browser, options);
    }

    protected constructor(protected readonly browser: playwright.Browser, browserContextOptions: PlaywrightOptions = {}) {
        super(new PlaywrightBrowsingSession(browser, browserContextOptions));
    }

    /**
     * Automatically closes any open {@apilink Page|Pages} when the {@apilink SceneFinishes}
     *
     * #### Learn more
     * - {@apilink PlaywrightBrowsingSession.closeAllPages}
     * - {@apilink Discardable}
     */
    async discard(): Promise<void> {
        await this.session.closeAllPages();
    }

    /**
     * Returns {@apilink BrowserCapabilities|basic meta-data} about the browser associated with this ability.
     *
     * **Please note** that since Playwright does not expose information about the operating system
     * the tests are running on, **Serenity/JS assumes that the tests are running locally**
     * and therefore returns the value of Node.js `process.platform` for `platformName`.
     */
    async browserCapabilities(): Promise<BrowserCapabilities> {
        return {
            browserName: (this.browser as any)._initializer.name,   // todo: raise a PR to Playwright to expose this information
            platformName: process.platform,                         // todo: get the actual platform from Playwright
            browserVersion: this.browser.version()
        }
    }
}


text:
function [x,yrx,n]=getts(flnm,datatype,tsname)
% getts: get a time series from meko storage file
% CALL: [x,yrx,n]=getts(flnm,datatype,tsname);
%
% Meko 6-28-98
%
%********* IN
%
% flnm (1 x ?)s name (w/0 suffix) of mat file storing chronology
%   (e.g., c:\projs\ah4\treedata\rw\med)
% datatype (1 x ?)s data type
%    X -- ring width
%    IX -- core index, standard
%    EX -- core index, residual
%    IT -- tree index, standard
%    ET -- tree index, residual
%    ZI -- site index, standard
%    ZE -- site index, residual
% tsname (1 x ?)s name of series;  content will vary with datatype
%   ZI or ZE: empty []
%   X, IX, or EX: core name as used in nms variable in storage file
%   IT or ET:  tree name as used in Tnms variable in storage file
%
%********** OUT
%
% x (1 x ?)r  core index
% yrx (1 x ?)i corresponding year vector
% n (1 x ?)i number of "samples" in each year of x;  This meaningful only for
%   datatypes IT,ET, ZI or ZE.  For tree indices, indicates number of cores
%   making up the tree index. For site chron, indicates number of trees making
%   up the site index
%
%********* NOTES
%
% Check beforehand to make sure you know the series name spelling as
% as used in the .mat file

%-----  LOAD THE .MAT FILE

% Strip .mat off filename if it is on there
if ~isempty(findstr(flnm,'.'));
   flnm=strtok(flnm,'.');
end

flnm = [flnm '.mat'];
if exist(flnm)~=2;
   error('Requested .mat storage file flnm does not exist');
end
eval(['load ' flnm]);

%-------- GET NEEDED INFORMATION

% Ringwidth
if strcmp(datatype,'X');
   row1 = strmatch(tsname,nms);
   if isempty(row1);
      error(['no ' tsname ' in nms']);
   end
   nfound = length(row1);
   if nfound>1;
      error([int2str(nfound) ' series match name ' tsname]);
   end
   % Pull row index information for series
   years = S(row1,10:11); % start and end year of series
   igo = S(row1,12); % row index of first year in storage matrix
   isp = igo + diff(years); % computed row index of last year
   x = X (igo:isp);  % desired data
   yrx = (years(1):years(2))'; % year vector
   n=[];
elseif any(strcmp(datatype,{'IX','EX'})); % want standard or residual core index
   yrs=yrs; % years and row index info, same for both data types
   if strcmp(datatype,'IX');
      X = 'IX'; % data matrix, standard core index
   else
      X = 'EX'; % data matrix, residual core index
   end
   row1 = strmatch(tsname,nms);
   if isempty(row1);
      error(['no ' tsname ' in nms']);
   end
   nfound = length(row1);
   if nfound>1;
      error([int2str(nfound) ' series match name ' tsname]);
   end
   % Pull row index information for series
   years = yrs(row1,1:2); % start and end year of series
   igo = yrs(row1,3); % row index of first year in storage matrix
   isp = igo + diff(years); % computed row index of last year
   eval(['x = ' X '(igo:isp);'])  % desired data
   yrx = (years(1):years(2))'; % year vector
   n=[]

elseif any(strcmp(datatype,{'IT','ET'})); % want standard or residual tree index
   if strcmp(datatype,'IT');
      X = 'IX'; % data matrix, standard tree index
      yrs = 'ITyrs' % years and row info
      XN= 'ITn'; % number of cores in tree
   else
      X = 'EX'; % data matrix, residual core index
      yrs = 'ETyrs'; % years and row info
      XN = 'ETn'; % number of cores in tree
   end
   row1 = strmatch(tsname,Tnms);
   if isempty(row1);
      error(['no ' tsname ' in Tnms']);
   end
   nfound = length(row1);
   if nfound>1;
      error([int2str(nfound) ' series match name ' tsname]);
   end
   % Pull row index information for series
   eval(['years = ' yrs '(row1,1:2);']); % start and end year of series
   eval(['igo = ' yrs '(row1,3);']); % row index of first year in storage matrix
   isp = igo + diff(years); % computed row index of last year
   eval(['x = ' X '(igo:isp);'])  % desired data
   eval(['n = ' XN '(igo:isp);'])  % desired info on number of cores in each yr
   yrx = (years(1):years(2))'; % year vector

elseif any(strcmp(datatype,{'ZI','ZE'})); % want standard or residual site index
   if ~isempty(tsname);
      error('tsname should be empty in calling for ZI or ZE');
   end
   if strcmp(datatype,'ZI');
      X = 'ZI'; % data matrix, standard site index
      yrs = 'yrZI' % year vector
   else
      X = 'ZE'; % data matrix, residual site index
      yrs = 'yrZE'; % years and row info
   end

   eval(['yrx = ' yrs ';']); % year vector
   eval(['x = ' X '(:,1);']); % data
   eval(['n = ' X '(:,6);']); % number of trees in site chron each year

else
   error(['Datatype ' datatype ' invalid']);
end