text:
class CPigConfigSheet;

/////////////////////////////////////////////////////////////////////////////
// CPageServers dialog

class CPageServers : public CPropertyPage
{
  DECLARE_MESSAGE_MAP()

// Construction
public:
  CPageServers(CPigConfigSheet* pSheet);

// Overrides
public:
  // ClassWizard generate virtual function overrides
  //{{AFX_VIRTUAL(CPageServers)
  public:
  virtual void OnOK();
  protected:
  virtual void DoDataExchange(CDataExchange* pDX);
  //}}AFX_VIRTUAL

// Implementation
protected:
  CPigConfigSheet* GetSheet();
  void UpdateUI();

// Message Handlers
protected:
  // Generated message map functions
  //{{AFX_MSG(CPageServers)
  virtual BOOL OnInitDialog();
  afx_msg void OnSameAsLobby();
  afx_msg void OnMyComputer();
  afx_msg void OnThisComputer();
  //}}AFX_MSG

// Data Members
protected:
  //{{AFX_DATA(CPageServers)
	enum { IDD = IDD_SERVERS };
	CEdit	m_editAccountServer;
  CString m_strLobbyServer;
  BOOL  m_bZoneLobby;
  CString m_strAccountServer;
  int   m_nAccountServer;
	//}}AFX_DATA
protected:
  CPigConfigSheet* m_pSheet;
};

/////////////////////////////////////////////////////////////////////////////
// Implementation

inline CPigConfigSheet* CPageServers::GetSheet()
{
  return m_pSheet;
}

/////////////////////////////////////////////////////////////////////////////


text:
from o22 import ibm_rnd
import matplotlib.pyplot as plt
import numpy as np

def exp_rnd(N, seed, _lambda):
    """
    Calculate N random numbers using seed
    and given lambda.
    """

    def vec_exp(x):
        """
        Inverse transform sampling for the exponential
        distribution
        """
        return (-np.log(1-x)) / _lambda

    # Generate N random numbers using normal distribution.
    nums = ibm_rnd(N, seed)
    return np.vectorize(vec_exp)(nums)

def lambda_estimation(nums):
    total = 0.0
    for point in nums:
        total += point
    total /= len(nums)
    return 1 / total

if __name__ == '__main__':
    N = 1000
    x = exp_rnd(N, 983, 0.5)
    y = exp_rnd(N, 759, 0.5)
    plt.title('{0} number (exponential distributed) pairs created with IBM RND'
              .format(N))
    # plt.subplot(1, 2, 1)
    plt.xlabel('$\lambda(x)$: {}'.format(lambda_estimation(x)))
    plt.ylabel('$\lambda(y)$: {}'.format(lambda_estimation(y)))
    plt.plot(x, y, 'o')
    # plt.subplot(1, 2, 2)
    # plt.hist(x)
    plt.show()

redpajama_set_name: RedPajamaGithub


text:
import React from 'react';
import settings from 'settings';
import Icon from 'components/Icon';
import styles from './remove-button.scss';

const RemoveButton = ({ onClick }) => (
  <button
    className={styles.root}
    type='button'
    onClick={onClick}
  >
    <Icon
      size={'smaller'}
      id={'Close'}
      modifier={'invert'}
    />

    <span className={styles.label}>
      {settings.petitionFields.links.removeLinkLabel}
    </span>
  </button>
);

export default RemoveButton;


text:
function model = binomialCreate(mu, N)
%% Construct a binomial distribution
%PMTKdefn binom(x | N, \mu)

% This file is from pmtk3.googlecode.com

model = structure(mu, N);
end


text:
package com.kolbly.android.util.date;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;

import com.kolbly.android.test.MCTest;

@RunWith(RobolectricTestRunner.class)
public class DateFormatTest extends MCTest
{

	public DateFormatTest() throws Exception
	{
		super();
	}

	@Test
	public void testLookup()
	{
		assertEquals(DateFormat.MMDDYYYY, DateFormat.lookup("mm/dd/yyyy"));
		assertEquals(DateFormat.DDMMYYYY, DateFormat.lookup("dd/mm/yyyy"));
		assertEquals(DateFormat.YYYYMMDD, DateFormat.lookup("yyyy/mm/dd"));

		assertEquals(DateFormat.MMDDYYYY, DateFormat.lookup(new char[] {'M', 'd', 'y'}));
		assertEquals(DateFormat.DDMMYYYY, DateFormat.lookup(new char[] {'d', 'M', 'y'}));
		assertEquals(DateFormat.YYYYMMDD, DateFormat.lookup(new char[] {'y', 'M', 'd'}));
	}

	@Test
	public void testLookupNull()
	{
		String nullString = null;

		assertNull(DateFormat.lookup(nullString));
	}

	@Test
	public void testFailedLookup()
	{
		assertNull(DateFormat.lookup(new char[] {'x', 'y', 'z'}));
	}

	@Test
	public void testFormatString()
	{
		assertEquals("MM/dd/yyyy", DateFormat.MMDDYYYY.getFormatString());
		assertEquals("dd/MM/yyyy", DateFormat.DDMMYYYY.getFormatString());
		assertEquals("yyyy/MM/dd", DateFormat.YYYYMMDD.getFormatString());
	}

	@Test
	public void testGetFormat()
	{
		assertEquals("mm/dd/yyyy", DateFormat.MMDDYYYY.getFormat());
		assertEquals("dd/mm/yyyy", DateFormat.DDMMYYYY.getFormat());
		assertEquals("yyyy/mm/dd", DateFormat.YYYYMMDD.getFormat());
	}

}


text:
package com.baidubce.services.bec.model.vm.service;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;
import lombok.Data;

/**
 * The request for getting the list of BEC virtual machine services.
 */
@Data
public class GetBecVmServicesRequest extends AbstractBceRequest {

    /**
     * Query the keyword type of the virtual machine service.
     */
    public String keywordType;

    /**
     * Query the keyword of the virtual machine service.
     */
    public String keyword;

    /**
     * Page number of display page.
     */
    public int pageNo;

    /**
     * The number of services on the display page.
     */
    public int pageSize;

    /**
     * Sort, ascending/descending.
     */
    public String order;

    /**
     * Sort field.
     */
    public String orderBy;

    /**
     * Configure request credential for the request.
     *
     * @param credentials a valid instance of BceCredentials.
     * @return GetInstanceRequest with credentials.
     */
    @Override
    public GetBecVmServicesRequest withRequestCredentials(BceCredentials credentials) {
        this.setRequestCredentials(credentials);
        return this;
    }
}


text:
// var traverse = require("babel-core").traverse;

module.exports = function (ast, traverse) {
  ast.sourceType = "module";
  ast.range = [ast.start, ast.end];
  traverse(ast, astTransformVisitor);
};

var astTransformVisitor = {
  noScope: true,
  enter: function (node) {
    node.range = [node.start, node.end];

    // private var to track original node type
    node._babelType = node.type;

    if (node.innerComments) {
      node.trailingComments = node.innerComments;
    }

    // make '_paths' non-enumerable (babel-eslint #200)
    Object.defineProperty(node, "_paths", { value: node._paths, writable: true })
  },
  exit: function (node) { /* parent */
    if (this.isSpreadProperty()) {
      node.type = "SpreadProperty";
      node.key = node.value = node.argument;
    }

    // flow: prevent "no-undef"
    // for "Component" in: "let x: React.Component"
    if (this.isQualifiedTypeIdentifier()) {
      delete node.id;
    }
    // for "b" in: "var a: { b: Foo }"
    if (this.isObjectTypeProperty()) {
      delete node.key;
    }
    // for "indexer" in: "var a: {[indexer: string]: number}"
    if (this.isObjectTypeIndexer()) {
      delete node.id;
    }
    // for "param" in: "var a: { func(param: Foo): Bar };"
    if (this.isFunctionTypeParam()) {
      delete node.name;
    }

    // modules

    if (this.isImportDeclaration()) {
      delete node.isType;
    }

    if (this.isExportDeclaration()) {
      var declar = this.get("declaration");
      if (declar.isClassExpression()) {
        node.declaration.type = "ClassDeclaration";
      } else if (declar.isFunctionExpression()) {
        node.declaration.type = "FunctionDeclaration";
      }
    }

    // remove class property keys (or patch in escope)
    if (this.isClassProperty()) {
      delete node.key;
    }

    // await transform to yield
    if (this.isAwaitExpression()) {
      node.type = "YieldExpression";
      node.delegate = node.all;
      delete node.all;
    }

    // template string range fixes
    if (this.isTemplateLiteral()) {
      node.quasis.forEach(function (q) {
        q.range[0] -= 1;
        if (q.tail) {
          q.range[1] += 1;
        } else {
          q.range[1] += 2;
        }
        q.loc.start.column -= 1;
        if (q.tail) {
          q.loc.end.column += 1;
        } else {
          q.loc.end.column += 2;
        }
      });
    }
  }
};


text:
namespace gfx
{

template <typename T>
class handle_impl
{
public:
	using handle_type_t = T;
	using base_type = handle_impl<T>;

	~handle_impl()
	{
		dispose();
	}

	void dispose()
	{
		if(is_valid())
		{
			bgfx::destroy(handle);
		}

		handle = invalid_handle();
	}

	bool is_valid() const
	{
		return bgfx::isValid(handle);
	}

	T native_handle() const
	{
		return handle;
	}

	static T invalid_handle()
	{
		T invalid = {bgfx::kInvalidHandle};
		return invalid;
	}

protected:
	T handle = invalid_handle();
};
}


text:
#ifndef _LINUX_ATARI_MOUSE_H
#define _LINUX_ATARI_MOUSE_H

/*
 * linux/include/linux/atari_mouse.h
 * header file for Atari Mouse driver
 * by Robert de Vries (robert@and.nl) on 19Jul93
 */

struct mouse_status {
	char		buttons;
	short		dx;
	short		dy;
	int		ready;
	int		active;
	struct wait_queue *wait;
	struct fasync_struct *fasyncptr;
};

#endif


text:
Brackets Language switcher extension
=========================

Brackets extension to switch the syntax language of a file.

This is an alpha version

###Features
- Languages menu (sorted alphabetically)

###Roadmap
- Allow to select dinamically added codemirror language (not present at languages.json)
- [Idea] Change the language from the status bar name.
- [Idea] Group by first letter like notepad

Feel free to collaborate in this project.

If you find any bug please submit an issue.

p4bl1t0 (Pablo Botta) - MIT License 2014


text:
ZFlyEmQualityAnalyzerTaskManager::ZFlyEmQualityAnalyzerTaskManager(
    QObject *parent) : ZMultiTaskManager(parent)
{

}

void ZFlyEmQualityAnalyzerTaskManager::prepare()
{
  m_hotSpotArray.clear();
}

void ZFlyEmQualityAnalyzerTaskManager::postProcess()
{
  if (!m_taskArray.empty()) {
    foreach (ZTask *task, m_taskArray) {
      ZFlyEmQualityAnalyzerTask *analyzerTask =
          qobject_cast<ZFlyEmQualityAnalyzerTask*>(task);
      if (analyzerTask != NULL) {
        m_hotSpotArray.concat(analyzerTask->getHotSpot());
      }
    }
  }
}


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

class Main extends CI_Controller {
    public function __construct(){
        parent::__construct();
        $this->load->model('Model_User');
        $this->load->model('Model_Bookmark');
    }

	public function index(){
//        if(@$_SESSION['type'] == 'ADMIN'){
//            redirect(base_url().'Admin/home');
//        }

        $data['captcha'] = array(
            '538112',
            '571196',
            '625708',
            '6360424',
            '6626512',
            '071497003'
        );

        $data['title'] = 'Discipulus Bookshop';

		$this->load->view('header and footer/header', $data);
        $this->load->view('index');
        $this->load->view('header and footer/footer');
    }

    public function register(){
        $data['title'] = 'Discipulus - Registration';

        $this->load->view('header and footer/header', $data);
        $this->load->view('registration');
        $this->load->view('header and footer/footer');
    }

    public function doRegister(){
        if($this->Model_User->checkUser($this->input->post('regEmail')) == 0){
            $path_parts = pathinfo($_FILES['regDPic']["name"]);
            $extension = $path_parts['extension'];
            $newfilename= uniqid().".".$extension;

            $config['upload_path'] = './uploads/';
            $config['allowed_types'] = 'gif|jpg|png';
            $config['max_size'] = '4194304';
            $config['file_name'] = $newfilename;
//        $config['max_width'] = '1024';
//        $config['max_height'] = '768';
            $this->load->library('upload', $config);

            if($this->upload->do_upload('regDPic')){
                $data = array('upload_data' => $this->upload->data());
            }else{
                $_SESSION['errorMsg'] = $this->upload->display_errors();
                var_dump($_SESSION['errorMsg']);
                //redirect(base_url().'Admin/addBook');
            }

            $data = array(
                'email'     =>  $this->input->post('regEmail'),
                'password'  =>  md5($this->input->post('regPassword')),
                'firstname' =>  $this->input->post('regFirstname'),
                'lastname'  =>  $this->input->post('regLastname'),
                'contact'   =>  $this->input->post('regContact'),
                'address'   =>  $this->input->post('regAddress'),
                'about'     =>  $this->input->post('regAbout'),
                'birthday'  =>  $this->input->post('regBdate'),
                'gender'    =>  $this->input->post('regGender'),
                'disp_pic'  =>  base_url().'uploads/'.$newfilename
            );

            if($this->Model_User->addUser($data) != true){
                echo 'ERROR500: There seems to be a problem in the server.
Please try again later or contact the admin for immediate action';
            }else{
                $user_data = $this->Model_User->getUserData($this->input->post('regEmail'));

                $loggedUser = array(
//                'username'  =>  $user_data['email'],
                    'id'            =>  $user_data->id,
                    'email'         =>  $user_data->email,
                    'firstname'     =>  $user_data->firstname,
                    'lastname'      =>  $user_data->lastname,
                    'type'          =>  $user_data->type,
                    'date_added'    =>  $user_data->date_added,
                    'address'       =>  $user_data->address,
                    'about'         =>  $user_data->about,
                    'status'        =>  $user_data->status,
                    'disp_pic'      =>  $user_data->disp_pic,
                    'contact'       =>  $user_data->contact,
                    'gender'        =>  $user_data->gender,
                    'birthday'      =>  $user_data->birthday,
                    'logged_in'     =>  true
                );

                $this->session->set_userdata($loggedUser);
                redirect(base_url().'shop/home');
            }
        }else{
            $_SESSION['registerErrorMsg'] = 'This email is already registered';
            redirect('/');
        }
    }

    public function doLogin(){
        $data = array(
            'email'     =>  $this->input->post('loginEmail'),
            'password'  =>  $this->input->post('loginPassword')
        );

        if($this->Model_User->authUser($data) > 0){
            $user_data = $this->Model_User->getUserData($this->input->post('loginEmail'));
//            $user_data['logged_in'] = true;
//            var_dump($user_data['email']);

            if($user_data->status == 'DEACTIVATED'){
                $_SESSION['errorMsg'] = 'This account has been deactivated. Please contact the administrator for further details @ discipulus@gmail.com';
                redirect(base_url());
            }else{
                $loggedUser = array(
//                'username'  =>  $user_data['email'],
                    'id'            =>  $user_data->id,
                    'email'         =>  $user_data->email,
                    'firstname'     =>  $user_data->firstname,
                    'lastname'      =>  $user_data->lastname,
                    'type'          =>  $user_data->type,
                    'date_added'    =>  $user_data->date_added,
                    'address'       =>  $user_data->address,
                    'about'         =>  $user_data->about,
                    'status'        =>  $user_data->status,
                    'disp_pic'      =>  $user_data->disp_pic,
                    'contact'       =>  $user_data->contact,
                    'gender'        =>  $user_data->gender,
                    'birthday'      =>  $user_data->birthday,
                    'logged_in'     =>  true
                );

                $loggedUser['bookmarks'] = $this->Model_Bookmark->getAllBookmark_session($user_data->id);

                $this->session->set_userdata($loggedUser);

                if(strtotime($this->Model_User->getExpiry($user_data->id)) == strtotime(gmdate('Y-m-d h:i:s'))){
                    $this->Model_User->toggleStatus($user_data->id, array(
                        'type'  =>   'USER'
                    ));
                }

                if($user_data->type == 'ADMIN'){
                    redirect(base_url().'Admin/home');
                }else{
                    redirect(base_url().'shop/home');
                }
            }
        }else{
            $this->load->view('errors/error_page', array('error' => 'Login Credentials Invalid'));
//            echo 'LOGIN FAILED';
        }
    }
}


text:
package com.herblee.gnensisweather.service;

import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;

import com.herblee.gnensisweather.gson.WeatherGson;
import com.herblee.gnensisweather.utils.Content;
import com.herblee.gnensisweather.utils.HttpUtil;
import com.herblee.gnensisweather.utils.Utility;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

/**
 * @author HERB
 * @date Created on 2017/8/11 12:29
 * @info:
 */
public class AutoUpdateService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent,int flags, int startId) {
        updateBigPic();
        updateWeather();
        AlarmManager manager = (AlarmManager) getSystemService(ALARM_SERVICE);
        int anHour = 8*60*60*1000;//8小时
        long triggerAtTime = SystemClock.elapsedRealtime() + anHour;
        Intent intent1 = new Intent(this, AutoUpdateService.class);
        PendingIntent service = PendingIntent.getService(this, 0, intent1, 0);
        manager.cancel(service);
        manager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,triggerAtTime,service);

        return super.onStartCommand(intent, flags, startId);
    }

    private void updateWeather(){
        SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
        String weather = defaultSharedPreferences.getString("weather", null);
        if (weather != null){
            WeatherGson weatherGson = Utility.handleWeatherResponse(weather);
            String weatherId = weatherGson.basic.id;
            HttpUtil.sendOkHttpRequest(Content.WEATHERURL + weatherId + Content.WEATHERKEY, new Callback() {
                @Override
                public void onFailure(Call call, IOException e) {
                    e.printStackTrace();
                }

                @Override
                public void onResponse(Call call, Response response) throws IOException {
                    String string = response.body().string();
                    WeatherGson weatherGson1 = Utility.handleWeatherResponse(string);
                    if (weatherGson1!=null&&"ok".equals(weatherGson1.status)){
                        SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(AutoUpdateService.this).edit();
                        edit.putString("weather",string);
                        edit.apply();

                    }
                }
            });
        }
    }

    private void updateBigPic(){
        HttpUtil.sendOkHttpRequest(Content.REQUESTBINGPIC, new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                e.printStackTrace();
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
                String bingPic = response.body().string();
                SharedPreferences.Editor edit = PreferenceManager.getDefaultSharedPreferences(AutoUpdateService.this).edit();
                edit.putString("bing_pic",bingPic);
                edit.apply();
            }
        });
    }
}


text:
import json
import logging
import os
import sys

from modularodm import Q

from framework.mongo import database
from framework.transactions.context import TokuTransaction
from scripts import utils as script_utils
from website.app import init_app
from website.models import PreprintService, Subject
from website import settings

logger = logging.getLogger(__name__)

PLOS_TO_BP_MAP = {
    'Advertising and Promotion Management': 'Advertising and Promotion Management',
    'Aerospace engineering': 'Aerospace Engineering',
    'Agribusiness': 'Agribusiness',
    'Agricultural economics': 'Agricultural Economics',
    'Agriculture': 'Agriculture',
    'Alternative energy': 'Power and Energy',
    'Anthropology': 'Anthropology',
    'Archaeology': 'Archaeological Anthropology',
    'Architectural Technology': 'Architectural Technology',
    'Architecture': 'Architecture',
    'Art and Design': 'Art and Design',
    'Artificial intelligence': 'Artificial Intelligence and Robotics',
    'Arts and Humanities': 'Arts and Humanities',
    'Asian History': 'Asian History',
    'Attitudes (psychology)': 'Social Psychology',
    'Audio signal processing': 'Signal Processing',
    'Automotive engineering': 'Automotive Engineering',
    'Aviation': 'Aviation',
    'Bayesian method': 'Statistical Methodology',
    'Biochemistry': 'Biochemistry',
    'Biology and life sciences': 'Life Sciences',
    'Business': 'Business',
    'Catalysis': 'Chemistry',
    'Cell biology': 'Cell Biology',
    'Cell processes': 'Cell Biology',
    'Ceramic Arts': 'Ceramic Arts',
    'Chemical engineering': 'Chemical Engineering',
    'Chemistry': 'Chemistry',
    'Child psychiatry': 'Psychiatry and Psychology',
    'Civil engineering': 'Civil Engineering',
    'Clinical psychology': 'Clinical Psychology',
    'Cognitive linguistics': 'Linguistics',
    'Cognitive neuroscience': 'Cognitive Neuroscience',
    'Cognitive psychology': 'Cognitive Psychology',
    'Collective human behavior': 'Experimental Analysis of Behavior',
    'Comparative Philosophy': 'Comparative Philosophy',
    'Computer and information sciences': 'Computer Sciences',
    'Computer applications': 'Computer Sciences',
    'Computer-assisted instruction': 'Online and Distance Education',
    'Computers': 'Computer Sciences',
    'Continental Philosophy': 'Continental Philosophy',
    'Control engineering': 'Process Control and Systems',
    'Control systems': 'Process Control and Systems',
    'Cultural anthropology': 'Social and Cultural Anthropology',
    'Culture': 'Sociology of Culture',
    'Curriculum and Instruction': 'Curriculum and Instruction',
    'Daylight': 'Ecology and Evolutionary Biology',
    'Democracy': 'Political Science',
    'Developmental psychology': 'Developmental Psychology',
    'Ecology and environmental sciences': 'Ecology and Evolutionary Biology',
    'Economics': 'Economics',
    'Education': 'Education',
    'Educational Assessment, Evaluation, and Research': 'Educational Assessment, Evaluation, and Research',
    'Educational Psychology': 'Educational Psychology',
    'Elections': 'Political Science',
    'Electronics': 'Electrical and Electronics',
    'Electronics engineering': 'Electrical and Electronics',
    'Emotions': 'Personality and Social Contexts',
    'Energy and power': 'Power and Energy',
    'Engineering and technology': 'Engineering',
    'Environmental engineering': 'Environmental Engineering',
    'Equipment': 'Engineering',
    'Evolutionary biology': 'Ecology and Evolutionary Biology',
    'Experimental psychology': 'Psychology',
    'Governments': 'Political Science',
    'Higher Education': 'Higher Education',
    'History': 'History',
    'Human families': 'Family, Life Course, and Society',
    'Image processing': 'Signal Processing',
    'Immunology': 'Immunology and Infectious Disease',
    'Immunopathology': 'Immunopathology',
    'Information processing': 'Databases and Information Systems',
    'Information technology': 'Computer Sciences',
    'Instructional Media Design': 'Instructional Media Design',
    'Library science': 'Library and Information Science',
    'Linguistic anthropology': 'Linguistic Anthropology',
    'Linguistic morphology': 'Morphology',
    'Linguistics': 'Linguistics',
    'Mathematical and statistical techniques': 'Applied Statistics',
    'Mechanical engineering': 'Mechanical Engineering',
    'Medicine and health sciences': 'Medicine and Health Sciences',
    'Mental health and psychiatry': 'Psychiatric and Mental Health',
    'Metaphysics': 'Metaphysics',
    'Music': 'Music',
    'Music Theory': 'Music Theory',
    'Nanoengineering': 'Nanoscience and Nanotechnology',
    'Neuroimaging': 'Computational Neuroscience',
    'Neuroscience': 'Neuroscience and Neurobiology',
    'Open access': 'Scholarly Publishing',
    'Open data': 'Science and Technology Policy',
    'Open science': 'Science and Technology Policy',
    'Other Languages, Societies, and Cultures': 'Other Languages, Societies, and Cultures',
    'People and places': '<drop>',
    'Personality': 'Personality and Social Contexts',
    'Philosophy': 'Philosophy',
    'Philosophy of Language': 'Philosophy of Language',
    'Philosophy of Mind': 'Philosophy of Mind',
    'Physical sciences': 'Physical Sciences and Mathematics',
    'Political geography': 'Political Science',
    'Political science': 'Political Science',
    'Population mobility': 'Demography, Population, and Ecology',
    'Psycholinguistics': 'Psycholinguistics and Neurolinguistics',
    'Psychological anthropology': 'Biological and Physical Anthropology',
    'Psychology': 'Psychology',
    'Psychometrics': 'Quantitative Psychology',
    'Psychophysics': 'Psychology',
    'Public opinion': 'Political Science',
    'Public policy': 'Public Policy',
    'Publication practices': 'Scholarly Publishing',
    'Quantitative analysis': 'Design of Experiments and Sample Surveys',
    'Religion': 'Religion',
    'Research and analysis methods': 'Design of Experiments and Sample Surveys',
    'Research design': 'Design of Experiments and Sample Surveys',
    'Research integrity': 'Science and Technology Policy',
    'Sanitary engineering': 'Environmental Engineering',
    'Scholarship of Teaching and Learning': 'Scholarship of Teaching and Learning',
    'Science and Mathematics Education': 'Science and Mathematics Education',
    'Science policy': 'Science and Technology Policy',
    'Science policy and economics': 'Science and Technology Policy',
    'Scientific publishing': 'Scholarly Publishing',
    'Semantics': 'Semantics and Pragmatics',
    'Sensory perception': 'Cognition and Perception',
    'Signal processing': 'Signal Processing',
    'Signal transduction': 'Cell Biology',
    'Social and behavioral sciences': 'Social and Behavioral Sciences',
    'Social anthropology': 'Social and Cultural Anthropology',
    'Social discrimination': 'Inequality and Stratification',
    'Social networks': 'Social Psychology and Interaction',
    'Social policy': 'Social Policy',
    'Social psychology': 'Social Psychology',
    'Social systems': 'Civic and Community Engagement',
    'Social theory': 'Social Control, Law, Crime, and Deviance',
    'Sociolinguistics': 'Anthropological Linguistics and Sociolinguistics',
    'Sociology': 'Sociology',
    'Sociology of knowledge': 'Theory, Knowledge and Science',
    'Solid waste management': 'Environmental Engineering',
    'South and Southeast Asian Languages and Societies': 'South and Southeast Asian Languages and Societies',
    'Statistical methods': 'Statistical Methodology',
    'Structural linguistics': 'Linguistics',
    'Systems engineering': 'Systems Engineering',
    'Teacher Education and Professional Development': 'Teacher Education and Professional Development',
    'Transportation': 'Transportation Engineering',
    'Transportation infrastructure': 'Transportation Engineering',
    'Urban, Community and Regional Planning': 'Urban, Community and Regional Planning',
    'Virtual archaeology': 'Archaeological Anthropology',
    'Web-based applications': 'Computer Sciences',
    "Women's health": "Women's Health",
    'Gravitation': 'Cosmology, Relativity, and Gravity',
    'Relativity': 'Cosmology, Relativity, and Gravity',
    'Quantum mechanics': 'Quantum Physics',
    'Technology regulations': 'Science and Technology Policy',
    'Mathematics': 'Mathematics',
    'Bilingual, Multilingual, and Multicultural Education': 'Bilingual, Multilingual, and Multicultural Education',
    'Algebra': 'Algebra',
    'Earth sciences': 'Earth Sciences',
    'Mood disorders': 'Mental Disorders',
    'Physical laws and principles': 'Other Physics',
    'Law': 'Law',
    'Behavioral disorders': 'Mental Disorders',
    'Electromagnetism': 'Electromagnetics and Photonics',
    'Electrochemistry': 'Other Chemistry',
    'Number theory': 'Number Theory',
    'Discrete mathematics': 'Discrete Mathematics and Combinatorics',
    'Banking and Finance Law': 'Banking and Finance Law',
    'Physics': 'Physics',
    'Neural networks': 'Artificial Intelligence and Robotics',
    'Digital Humanities': 'Digital Humanities',
    'Multivariate data analysis': 'Multivariate Analysis',
    'Mathematical physics': 'Physics',
    'Gambling addiction': 'Mental and Social Health',
    'Adolescent psychiatry': 'Psychiatry',
    'Particle physics': 'Elementary Particles and Fields and String Theory',
    'Biogeochemistry': 'Biogeochemistry',
    'Drought': 'Climate',
    'Conservation science': 'Natural Resources and Conservation',
    'Appalachian Studies': 'Appalachian Studies',
    'Data acquisition': 'Computer Sciences',
}

def validate_map_plos_correctness():
    logger.info('Validating correctness of PLOS terms in mapping')
    for text in PLOS_TO_BP_MAP:
        assert database['subject'].find({'text': text}).count(), 'Unable to find {}'.format(text)

def validate_map_bepress_correctness(bp_set):
    logger.info('Validating correctness of BePress terms in mapping')
    bp_map = set(PLOS_TO_BP_MAP.values())
    bp_map.remove('<drop>')
    assert bp_map.issubset(bp_set), '{} not found in BePress Taxonomy'.format(bp_map - bp_set)

def validate_map_completeness():
    logger.info('Validating completeness of PLOS->BePress mapping')
    assert set([s['text'] for p in PreprintService.find() for hier in p.get_subjects() for s in hier]).issubset(set(PLOS_TO_BP_MAP.keys())),\
        'Subjects not found in map: {}'.format(
            set([s['text'] for p in PreprintService.find() for hier in p.get_subjects() for s in hier]) - set(PLOS_TO_BP_MAP.keys())
        )

def get_targets():
    return database['preprintservice'].find({}, {'_id': 1, 'subjects': 1})

def load_bepress(f_path):
    assert Subject.find().count() == 0
    logger.info('Loading BePress...')
    with open(f_path) as fp:
        bpress = json.load(fp)
        validate_map_bepress_correctness(set(bpress.keys()))
        logger.info('Populating Subjects...')
        for text in bpress.keys():
            Subject(text=text).save()
        assert Subject.find().count() == len(bpress.keys())
        logger.info('Setting parents...')
        for s in Subject.find():
            if bpress[s.text]['lineage']:
                s.parents = [Subject.find_one(Q('text', 'eq', bpress[s.text]['lineage'][-1]))]
                s.save()
        logger.info('Setting children...')
        for s in Subject.find():
            s.children = Subject.find(Q('parents', 'eq', s))
            s.save()
    logger.info('Successfully imported BePress taxonomy.')

def get_leaf(hier):
    if len(hier) == 1:
        return hier[0]
    for _id in hier:
        if not set(database['plos_subject'].find_one({'_id': _id})['children']) & set(hier):
            return _id
    raise RuntimeError('Unable to find leaf in {}'.format(hier))

def migrate_preprint(preprint):
    logger.info('Preparint to migrate {}'.format(preprint['_id']))
    new_hiers = []
    for hier in preprint['subjects']:
        leaf = get_leaf(hier)
        new_leaf_name = PLOS_TO_BP_MAP[database['plos_subject'].find_one({'_id': leaf})['text']]
        if new_leaf_name != '<drop>':
            new_hiers.append(
                Subject.find_one(Q('text', 'eq', new_leaf_name)).hierarchy
            )

    logger.info('Setting subjects on {} to {}'.format(preprint['_id'], new_hiers))
    database['preprintservice'].find_and_modify(
        {'_id': preprint['_id']},
        {'$set':{
            'subjects': new_hiers
        }}
    )

def migrate(bpress_file_path):
    count = 0
    validate_map_plos_correctness()
    validate_map_completeness()
    database.subject.rename('plos_subject')
    load_bepress(bpress_file_path)

    targets = list(get_targets())
    total = len(targets)
    logger.info('Preparing to migrate {} Preprints'.format(total))
    for preprint in targets:
        migrate_preprint(preprint)
        count += 1
        logger.info('Successfully migrated {}/{} -- {}'.format(count, total, preprint['_id']))

def main():
    dry_run = '--dry' in sys.argv
    path = None
    if '--file' in sys.argv:
        path = sys.argv[1 + sys.argv.index('--file')]
    if not path:
        raise RuntimeError('Specify a file with --file.')
    if not os.path.isfile(path):
        raise RuntimeError('Unable to find specified file.')
    if not dry_run:
        script_utils.add_file_logger(logger, __file__)
    init_app(set_backends=True, routes=False)
    settings.SHARE_API_TOKEN = None  # blocks `on_preprint_updated`
    with TokuTransaction():
        migrate(bpress_file_path=path)
        if dry_run:
            raise RuntimeError('Dry run, transaction rolled back.')

if __name__ == "__main__":
    main()


text:
import {WarningCarryingException} from 'polymer-analyzer';
import {Disposable, IConnection} from 'vscode-languageserver';

export class EventStream<T> {
  static create<T>() {
    const stream = new EventStream<T>();
    const fire: typeof stream.fire = stream.fire.bind(stream);
    return {fire, stream};
  }

  private handlers = new Set<(value: T) => void>();
  private fire(value: T) {
    for (const handler of this.handlers) {
      handler(value);
    }
  }

  listen(handler: (value: T) => void) {
    this.handlers.add(handler);
    return {
      dispose: () => {
        this.handlers.delete(handler);
      }
    };
  }

  /**
   * Return a fresh Promise that resolves with the next value.
   *
   * Mostly useful in tests.
   */
  get next(): Promise<T> {
    return new Promise((resolve) => {
      const disposable = this.listen((value) => {
        disposable.dispose();
        resolve(value);
      });
    });
  }
}

export class AutoDisposable implements Disposable {
  dispose(): void {
    for (const disposable of this.disposables) {
      disposable.dispose();
    }
  }

  protected readonly disposables: Disposable[] = [];
}

/**
 * Declares a method that ensures that we don't throw uncaught errors, as
 * that can result in intrusive stack trace popups for users.
 */
export abstract class Handler extends AutoDisposable {
  protected abstract connection: IConnection;

  /**
   * If the given promise rejects, unobtrusively log the error and return the
   * fallback value instead.
   */
  protected async handleErrors<Result, Fallback>(
      promise: Promise<Result>,
      fallbackValue: Fallback): Promise<Result|Fallback> {
    try {
      return await promise;
    } catch (err) {
      // Ignore WarningCarryingExceptions, they're expected, and made visible
      //   to the user in a useful way. All other exceptions should be logged
      //   if possible.
      if (!(err instanceof WarningCarryingException)) {
        this.connection.console.warn(err.stack || err.message || err);
      }
      return fallbackValue;
    }
  }
}

export interface Change<T> {
  newer: T;
  older: T;
}


text:
package cc.kenai.function.base;

import android.app.Service;
import android.content.Context;
import android.content.Intent;

public abstract class XService {
    public Context context;
    public Service service;

    public XService(Context context, Service service) {
        this.context = context;
        this.service = service;
    }
    public XService (Context context){
    	this.context=context;
	}

    public abstract void xCreate();

    public abstract void xDestroy();

    public abstract void xstart(Intent intent);
}


text:
package org.sameersingh.scalaplot.metrics

import scala.collection.mutable.ArrayBuffer
import org.sameersingh.scalaplot.{MemXYSeries, XYData, XYChart}

/**
 * Given a squence of predictions and true values (unsorted), return a list of points that
 * is used in plotting PR curve, ROC, finding maximum F1, etc.
 *
 * @author sameer
 */

case class PRPoint(thresh: Double, tp: Int, tn: Int, fp: Int, fn: Int) {
  def precNumerator: Double = tp

  def precDenominator: Double = tp + fp

  def recallNumerator: Double = tp

  def recallDenominator: Double = tp + fn

  def precision: Double = {
    if (precDenominator == 0.0) {
      1.0
    } else {
      precNumerator / precDenominator
    }
  }

  def recall: Double = {
    if (recallDenominator == 0.0) {
      1.0
    } else {
      recallNumerator / recallDenominator
    }
  }

  def f1: Double = {
    val r: Double = recall
    val p: Double = precision
    if (p + r == 0.0) 0.0
    else (2 * p * r) / (p + r)
  }

  def specifity: Double = if(tn + fp == 0) 1.0 else tn.toDouble / (fp + tn)

  def sensitivity = recall

  override def toString: String = {
    "%1.4f p:%6.3f r:%6.3f f1:%6.3f sp:%6.3f".format(thresh, precision * 100.0, recall * 100.0, f1 * 100.0, specifity*100.0)
  }
}

class PrecRecallCurve(data: Seq[(Double, Boolean)]) {

  lazy val curve: Seq[PRPoint] = {
    val points = new ArrayBuffer[PRPoint]
    var tp = 0
    var fp = 0
    var tn = data.count(!_._2)
    var fn = data.count(_._2)

    points += PRPoint(data.maxBy(_._1)._1, tp, tn, fp, fn)
    for (d <- data.sortBy(_._1)) {
      // i am turning d from negative to positive
      if (!d._2) {
        // mistake: it was tn, now fp
        tn -= 1
        fp += 1
      } else {
        // not a mistake: it was fn, now tp
        fn -= 1
        tp += 1
      }
      points += PRPoint(d._1, tp, tn, fp, fn)
    }
    points
  }

  private def createChart(f: PRPoint => (Double,Double), title: String, xname: String = "", yname: String = ""): XYChart = {
    val c = new XYChart(title, new XYData(new MemXYSeries(curve.map(d => f(d)), title)))
    c.x.label = xname
    c.y.label = yname
    c
  }

  def prThreshChart(title: String) : XYChart = {
    val xyData = new XYData()
    xyData += new MemXYSeries(curve.map(d => (d.thresh, d.precision)), "Precision")
    xyData += new MemXYSeries(curve.map(d => (d.thresh, d.recall)), "Recall")
    xyData += new MemXYSeries(curve.map(d => (d.thresh, d.f1)), "F1")
    val c = new XYChart(title, xyData)
    c.x.label = "Threshold"
    c.y.label = "Measure"
    c
  }

  def prChart(title: String): XYChart = createChart(d => (d.recall, d.precision), title, "Recall", "Precision")

  def rocChart(title: String): XYChart = createChart(d => (d.sensitivity, 1.0 - d.specifity), title, "Sensitivity", "1-Specificity")

}


text:
#import <Foundation/Foundation.h>

#import "UAirship.h"
#import "UAStoreFront.h"
#import "UAStoreFrontAlertHandler.h"

#define UA_SF_TR(key) [[UAStoreFrontUI shared].localizationBundle localizedStringForKey:key value:@"" table:nil]

@class UAStoreFrontViewController;
@class UAStoreFrontAlertProtocol;

/**
 * This class is the reference implementation of the UAStoreFrontUIProtocol.
 */

@interface UAStoreFrontUI : NSObject <UAStoreFrontUIProtocol> {

    UIWindow *uaWindow;

    UIViewController *rootViewController;
    UAStoreFrontViewController *productListViewController;

    BOOL isVisible;
    BOOL isiPad;
    BOOL animated;

    UAStoreFrontAlertHandler *alertHandler;

    NSBundle *localizationBundle;

@private
    UIWindow *originalWindow;

}

@property (nonatomic, retain) UIWindow *uaWindow;
@property (nonatomic, retain) UIWindow *originalWindow;
@property (nonatomic, retain, readonly) UIViewController *rootViewController;
@property (nonatomic, retain, readonly) UAStoreFrontViewController *productListViewController;
@property (nonatomic, assign, readonly) BOOL isVisible;
@property (nonatomic, assign, readonly) BOOL isiPad;
@property (nonatomic, retain) NSBundle *localizationBundle;

SINGLETON_INTERFACE(UAStoreFrontUI)

+ (void)setRuniPhoneTargetOniPad:(BOOL)value;
+ (void)displayStoreFront:(UIViewController *)viewController animated:(BOOL)animated;
+ (void)displayStoreFront:(UIViewController *)viewController withProductID:(NSString *)productID animated:(BOOL)animated;

@end


text:
<?php
require_once 'Zend/Log/Formatter/Interface.php';

/**
 * Formats SS error emails with a basic layout.
 *
 * @package framework
 * @subpackage dev
 */
class SS_LogErrorEmailFormatter implements Zend_Log_Formatter_Interface {

	public function format($event) {
		switch($event['priorityName']) {
			case 'ERR':
				$errorType = 'Error';
				$colour = 'red';
				break;
			case 'WARN':
				$errorType = 'Warning';
				$colour = 'orange';
				break;
			case 'NOTICE':
				$errorType = 'Notice';
				$colour = 'grey';
				break;
		}

		if(!is_array($event['message'])) {
			return false;
		}

		$errno = $event['message']['errno'];
		$errstr = $event['message']['errstr'];
		$errfile = $event['message']['errfile'];
		$errline = $event['message']['errline'];
		$errcontext = $event['message']['errcontext'];

		$data = '';
		$data .= '';
		$data .= "
\n";
		$data .= "
[$errorType] $errstr
$errfile:$errline\n
\n
\n
\n";

		// Get a backtrace, filtering out debug method calls
		$data .= SS_Backtrace::backtrace(true, false, array(
			'SS_LogErrorEmailFormatter->format',
			'SS_LogEmailWriter->_write'
		));

		// Compile extra data
		$blacklist = array('message', 'timestamp', 'priority', 'priorityName');
		$extras = array_diff_key($event, array_combine($blacklist, $blacklist));
		if($extras) {
			$data .= "
Details
\n";
			$data .= "
\n";
			foreach($extras as $k => $v) {
				if(is_array($v)) $v = var_export($v, true);
				$data .= sprintf(
					"
%s
%s

\n", $k, $v);
			}
			$data .= "
\n";
		}

		$data .= "
\n";

		$relfile = Director::makeRelative($errfile);
		if($relfile && $relfile[0] == '/') $relfile = substr($relfile, 1);

		$host = @$_SERVER['HTTP_HOST'];
		$uri = @$_SERVER['REQUEST_URI'];

		$subject = "[$errorType] in $relfile:{$errline} (http://{$host}{$uri})";

		return array(
			'subject' => $subject,
			'data' => $data
		);
	}

}


text:
.AFBrandingBarLogo {
  background-image: url('/images/logo-oracle-light.png');
  height : 25px;
  width  : 119px;
  background-size: 100% 100% ;
}
.FuseBorderRadius:alias {
  border-radius: 3px;
}
.AFGlobalBackgroundColor:alias {
  color:#982a2a;
}
.AFBrandingLinkColor:alias {
  color: #ffffff;
}
.AFBrandingTextColor:alias {
  color: #ffffff;
}
.FuseSpringBoardLinkColor:alias {
  color: rgba(255,255,255,0.75);
}
.fndGlobalSearchContainerBG:alias {
  color: rgba(255,255,255,0.15);
}.fndGlobalSearchPlaceholderText:alias {
  color: rgba(255,255,255,0.8);
}.AFLinkColor:alias {
  color: #065b9d;
}
.FuseButtonForeground:alias {
  text-shadow: none;
}
.FuseButtonForeground:alias, .FuseButtonForegroundHover:alias  {
  color: #ffffff;
}
.FuseButtonBackgroundActive:alias {
  background-color: #ffffff;
}
.FuseDroplistImageEna:alias {
  background-image: url('/images/themes/autumnred/func_dropdown_14_ena_autumnred.png');
}

.FuseDroplistImageHover:alias {
  background-image: url('/images/themes/autumnred/func_dropdown_14_hov_autumnred.png');
}

.FuseDroplistImageDepressed:alias {
  background-image: url('/images/themes/autumnred/func_dropdown_14_onb_autumnred.png');
}
.FusePunchoutImageEna:alias {
  background-image: url('/images/themes/autumnred/func_punchout_16_ena_autumnred.png');
}

.FusePunchoutImageHover:alias {
  background-image: url('/images/themes/autumnred/func_punchout_16_hov_autumnred.png');
}

.FusePunchoutImageDepressed:alias {
  background-image: url('/images/themes/autumnred/func_punchout_16_onb_autumnred.png');
}

.FuseButtonBorder:alias {
  border-color: #e67d0c;
}
.FuseButtonBackground:alias {
  background-color: #e67d0c;
}
.FuseButtonForegroundDepressed:alias {
  color: #e67d0c;
}
.FuseButtonBackgroundHover:alias {
  background-color:rgba(230, 125, 12, 0.9);
}
.FuseButtonBackground:alias {
  background-image: none;
}
@agent ie  {
  .FuseButtonBackground:alias {
    filter: none;
  }
}
@agent gecko, webkit, ie and (version:10) and (version:11) {
  .FuseButtonBackground:alias {
    background-image: none;
  }
}
.AFHeaderTextColor:alias {
  color:#544141;
}
.FuseGlobalToolbarOverflowRight:alias {
  background-image: url('/images/themes/autumnred/ugh_overflowright_ena_autumnred.png');
}

.FuseGlobalToolbarOverflowLeft:alias {
  background-image: url('/images/themes/autumnred/ugh_overflowleft_ena_autumnred.png');
}.UIShellIconNavigatorEna:alias {
  content: url('/images/themes/autumnred/ugh_navigator_ena_autumnred.png');
}

.UIShellIconNavigatorDwn:alias {
  content: url('/images/themes/autumnred/ugh_navigator_dwn_autumnred.png');
}

.UIShellIconNavigatorOvr:alias {
  content: url('/images/themes/autumnred/ugh_navigator_ovr_autumnred.png');
}

.UIShellIconNavigatorDis:alias {
  content: url('/images/themes/autumnred/ugh_navigator_dis_autumnred.png');
}

.UIShellIconHomeEna:alias {
  content: url('/images/themes/autumnred/ugh_home_ena_autumnred.png');
}

.UIShellIconHomeDwn:alias {
  content: url('/images/themes/autumnred/ugh_home_dwn_autumnred.png');
}
.UIShellIconHomeOvr:alias {
  content: url('/images/themes/autumnred/ugh_home_ovr_autumnred.png');
}
.UIShellIconHomeDis:alias {
  content: url('/images/themes/autumnred/ugh_home_ovr_autumnred.png');
}

.UIShellIconAccessibilityEna:alias {
  content: url('/images/themes/autumnred/ugh_accessibility_ena_autumnred.png');
}

.UIShellIconAccessibilityDwn:alias {
  content: url('/images/themes/autumnred/ugh_accessibility_dwn_autumnred.png');
}

.UIShellIconAccessibilityOvr:alias {
  content: url('/images/themes/autumnred/ugh_accessibility_ovr_autumnred.png');
}

.UIShellIconAccessibilityDis:alias {
  content: url('/images/themes/autumnred/ugh_accessibility_dis_autumnred.png');
}

.UIShellIconNotificationsEna:alias {
  content: url('/images/themes/autumnred/ugh_notifications_ena_autumnred.png');
}

.UIShellIconNotificationsDwn:alias {
  content: url('/images/themes/autumnred/ugh_notifications_dwn_autumnred.png');
}
.UIShellIconNotificationsOvr:alias {
  content: url('/images/themes/autumnred/ugh_notifications_ovr_autumnred.png');
}

.UIShellIconNotificationsDis:alias {
  content: url('/images/themes/autumnred/ugh_notifications_dis_autumnred.png');
}

.UIShellIconFavoritesEna:alias {
  content: url('/images/themes/autumnred/ugh_favorites_ena_autumnred.png');
}

.UIShellIconFavoritesDwn:alias {
  content: url('/images/themes/autumnred/ugh_favorites_dwn_autumnred.png');
}

.UIShellIconFavoritesOvr:alias {
  content: url('/images/themes/autumnred/ugh_favorites_ovr_autumnred.png');
}

.UIShellIconFavoritesDis:alias {
  content: url('/images/themes/autumnred/ugh_favorites_dis_autumnred.png');
}

.UIShellIconWatchlistEna:alias {
  content: url('/images/themes/autumnred/ugh_watchlist_ena_autumnred.png');
}

.UIShellIconWatchlistDwn:alias {
  content: url('/images/themes/autumnred/ugh_watchlist_dwn_autumnred.png');
}

.UIShellIconWatchlistOvr:alias {
  content: url('/images/themes/autumnred/ugh_watchlist_ovr_autumnred.png');
}

.UIShellIconWatchlistDis:alias {
  content: url('/images/themes/autumnred/ugh_watchlist_dis_autumnred.png');
}

.UIShellIconSearchEna:alias {
  content: url('/images/themes/autumnred/ugh_search_ena_autumnred.png');
}
.UIShellIconSearchDwn:alias {
  content: url('/images/themes/autumnred/ugh_search_dwn_autumnred.png');
}
.UIShellIconSearchOvr:alias {
  content: url('/images/themes/autumnred/ugh_search_ovr_autumnred.png');
}
.UIShellIconSearchDis:alias {
  content: url('/images/themes/autumnred/ugh_search_dis_autumnred.png');
}

.UIShellIconDivider:alias {
  content: url('/images/themes/autumnred/ugh_divider_autumnred.png');
}

.UIShellIconInfoEna:alias {
  content: url('/images/themes/autumnred/ugh_info_ena_autumnred.png');
}
.UIShellIconInfoDwn:alias {
  content: url('/images/themes/autumnred/ugh_info_dwn_autumnred.png');
}
.UIShellIconInfoOvr:alias {
  content: url('/images/themes/autumnred/ugh_info_ovr_autumnred.png');
}
.UIShellIconInfoDis:alias {
  content: url('/images/themes/autumnred/ugh_info_dis_autumnred.png');
}

.UIShellIconMenuArrowEna:alias {
  content: url('/images/themes/autumnred/ugh_menuarrow_ena_autumnred.png');
}
.UIShellIconMenuArrowDwn:alias {
  content: url('/images/themes/autumnred/ugh_menuarrow_dwn_autumnred.png');
}
.UIShellIconMenuArrowOvr:alias {
  content: url('/images/themes/autumnred/ugh_menuarrow_ovr_autumnred.png');
}
.UIShellIconMenuArrowDis:alias {
  content: url('/images/themes/autumnred/ugh_menuarrow_dis_autumnred.png');
}

.UIShellIconHelpEna:alias {
  content: url('/images/themes/autumnred/ugh_help_ena_autumnred.png');
}
.UIShellIconHelpDwn:alias {
  content: url('/images/themes/autumnred/ugh_help_dwn_autumnred.png');
}
.UIShellIconHelpOvr:alias {
  content: url('/images/themes/autumnred/ugh_help_ovr_autumnred.png');
}
.UIShellIconHelpDis:alias {
  content: url('/images/themes/autumnred/ugh_help_dis_autumnred.png');
}

.UIShellIconImpersonationEna:alias {
  content: url('/images/themes/autumnred/ugh_impersonation_ena_autumnred.png');
}
.UIShellIconImpersonationDwn:alias {
  content: url('/images/themes/autumnred/ugh_impersonation_dwn_autumnred.png');
}
.UIShellIconImpersonationOvr:alias {
  content: url('/images/themes/autumnred/ugh_impersonation_ovr_autumnred.png');
}
.UIShellIconImpersonationDis:alias {
  content: url('/images/themes/autumnred/ugh_impersonation_dis_autumnred.png');
}

.UIShellIconTrialEna:alias {
  content: url('/images/themes/autumnred/ugh_trial_ena_autumnred.png');
}
.UIShellIconTrialDwn:alias {
  content: url('/images/themes/autumnred/ugh_trial_dwn_autumnred.png');
}
.UIShellIconTrialOvr:alias {
  content: url('/images/themes/autumnred/ugh_trial_ovr_autumnred.png');
}
.UIShellIconTrialDis:alias {
  content: url('/images/themes/autumnred/ugh_trial_dis_autumnred.png');
}

af|panelSpringboard::start-conveyor-belt-indicator {
  background-image: url('/images/themes/autumnred/func_striparrowleft_24_ena_autumnred.png');
}

af|panelSpringboard::start-conveyor-belt-indicator:hover {
  background-image: url('/images/themes/autumnred/func_striparrowleft_24_hov_autumnred.png');
}

af|panelSpringboard::end-conveyor-belt-indicator {
  background-image: url('/images/themes/autumnred/func_striparrowright_24_ena_autumnred.png');
}

af|panelSpringboard::end-conveyor-belt-indicator:hover {
  background-image: url('/images/themes/autumnred/func_striparrowright_24_hov_autumnred.png');
}
.UIShellIconCartEna:alias
{
    content: url('/images/themes/autumnred/ugh_cart_ena_autumnred.png');
}
.UIShellIconCartEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconCartEna:alias","content");
}
.UIShellIconCartDwn:alias
{
    content: url('/images/themes/autumnred/ugh_cart_dwn_autumnred.png');
}
.UIShellIconCartDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconCartDwn:alias","content");
}
.UIShellIconCartOvr:alias
{
    content: url('/images/themes/autumnred/ugh_cart_ovr_autumnred.png');
}
.UIShellIconCartOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconCartOvr:alias","content");
}
.UIShellIconCartDis:alias
{
    content: url('/images/themes/autumnred/ugh_cart_ovr_autumnred.png');
}
.UIShellIconCartDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconCartDis:alias","content");
}

.UIShellIconWishlistEna:alias
{
    content: url('/images/themes/autumnred/ugh_wishlist_ena_autumnred.png');
}
.UIShellIconWishlistEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWishlistEna:alias","content");
}
.UIShellIconWishlistDwn:alias
{
    content: url('/images/themes/autumnred/ugh_wishlist_dwn_autumnred.png');
}
.UIShellIconWishlistDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWishlistDwn:alias","content");
}
.UIShellIconWishlistOvr:alias
{
    content: url('/images/themes/autumnred/ugh_wishlist_ovr_autumnred.png');
}
.UIShellIconWishlistOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWishlistOvr:alias","content");
}
.UIShellIconWishlistDis:alias
{
    content: url('/images/themes/autumnred/ugh_wishlist_ovr_autumnred.png');
}
.UIShellIconWishlistDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWishlistDis:alias","content");
}

.UIShellIconSearch2Ena:alias
{
    content: url('/images/themes/autumnred/ugh_search2_ena_autumnred.png');
}
.UIShellIconSearch2EnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSearch2Ena:alias","content");
}
.UIShellIconSearch2Dwn:alias
{
    content: url('/images/themes/autumnred/ugh_search2_dwn_autumnred.png');
}
.UIShellIconSearch2DwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSearch2Dwn:alias","content");
}
.UIShellIconSearch2Ovr:alias
{
    content: url('/images/themes/autumnred/ugh_search2_ovr_autumnred.png');
}
.UIShellIconSearch2OvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSearch2Ovr:alias","content");
}
.UIShellIconSearch2Dis:alias
{
    content: url('/images/themes/autumnred/ugh_search2_ovr_autumnred.png');
}
.UIShellIconSearch2DisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSearch2Dis:alias","content");
}.UIShellIconDeepLinkEna:alias
{
    content: url('/images/themes/autumnred/ugh_return_ena_autumnred.png');
}
.UIShellIconDeepLinkEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconDeepLinkEna:alias","content");
}
.UIShellIconDeepLinkDwn:alias
{
    content: url('/images/themes/autumnred/ugh_return_dwn_autumnred.png');
}
.UIShellIconDeepLinkDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconDeepLinkDwn:alias","content");
}
.UIShellIconDeepLinkOvr:alias
{
    content: url('/images/themes/autumnred/ugh_return_ovr_autumnred.png');
}
.UIShellIconDeepLinkOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconDeepLinkOvr:alias","content");
}
.UIShellIconDeepLinkDis:alias
{
    content: url('/images/themes/autumnred/ugh_return_dis_autumnred.png');
}
.UIShellIconDeepLinkDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconDeepLinkDis:alias","content");
}
.UIShellIconSocialEna:alias
{
    content: url('/images/themes/autumnred/ugh_social_ena_autumnred.png');
}
.UIShellIconSocialEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSocialEna:alias","content");
}
.UIShellIconSocialDwn:alias
{
    content: url('/images/themes/autumnred/ugh_social_dwn_autumnred.png');
}
.UIShellIconSocialDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSocialDwn:alias","content");
}
.UIShellIconSocialOvr:alias
{
    content: url('/images/themes/autumnred/ugh_social_ovr_autumnred.png');
}
.UIShellIconSocialOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSocialOvr:alias","content");
}
.UIShellIconSocialDis:alias
{
    content: url('/images/themes/autumnred/ugh_social_dis_autumnred.png');
}
.UIShellIconSocialDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconSocialDis:alias","content");
}
.UIShellIconGearEna:alias
{
    content: url('/images/themes/autumnred/func_gear_29_ena_autumnred.png');
}
.UIShellIconGearEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconGearEna:alias","content");
}
.UIShellIconGearDwn:alias
{
    content: url('/images/themes/autumnred/func_gear_29_act_autumnred.png');
}
.UIShellIconGearDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconGearDwn:alias","content");
}
.UIShellIconGearOvr:alias
{
    content: url('/images/themes/autumnred/func_gear_29_hov_autumnred.png');
}
.UIShellIconGearOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconGearOvr:alias","content");
}
.UIShellIconGearDis:alias
{
    content: url('/images/themes/autumnred/func_gear_29_dis_autumnred.png');
}
.UIShellIconGearDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconGearDis:alias","content");
}

.UIShellIconPageScrollLeftEna:alias
{
    content: url('/images/themes/autumnred/func_scrollleft_29_ena_autumnred.png');
}
.UIShellIconPageScrollLeftEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollLeftEna:alias","content");
}
.UIShellIconPageScrollLeftDwn:alias
{
    content: url('/images/themes/autumnred/func_scrollleft_29_act_autumnred.png');
}
.UIShellIconPageScrollLeftDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollLeftDwn:alias","content");
}
.UIShellIconPageScrollLeftOvr:alias
{
    content: url('/images/themes/autumnred/func_scrollleft_29_hov_autumnred.png');
}
.UIShellIconPageScrollLeftOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollLeftOvr:alias","content");
}
.UIShellIconPageScrollLeftRtlEna:alias
{
    content: url('/images/themes/autumnred/func_scrollleft_29_rtl_ena_autumnred.png');
}
.UIShellIconPageScrollLeftRtlEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollLeftRtlEna:alias","content");
}
.UIShellIconPageScrollLeftRtlDwn:alias
{
    content: url('/images/themes/autumnred/func_scrollleft_29_rtl_act_autumnred.png');
}
.UIShellIconPageScrollLeftRtlDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollLeftRtlDwn:alias","content");
}
.UIShellIconPageScrollLeftRtlOvr:alias
{
    content: url('/images/themes/autumnred/func_scrollleft_29_rtl_hov_autumnred.png');
}
.UIShellIconPageScrollLeftRtlOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollLeftRtlOvr:alias","content");
}
.UIShellIconPageScrollRightEna:alias
{
    content: url('/images/themes/autumnred/func_scrollright_29_ena_autumnred.png');
}
.UIShellIconPageScrollRightEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollRightEna:alias","content");
}
.UIShellIconPageScrollRightDwn:alias
{
    content: url('/images/themes/autumnred/func_scrollright_29_act_autumnred.png');
}
.UIShellIconPageScrollRightDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollRightDwn:alias","content");
}
.UIShellIconPageScrollRightOvr:alias
{
    content: url('/images/themes/autumnred/func_scrollright_29_hov_autumnred.png');
}
.UIShellIconPageScrollRightOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollRightOvr:alias","content");
}
.UIShellIconPageScrollRightRtlEna:alias
{
    content: url('/images/themes/autumnred/func_scrollright_29_rtl_ena_autumnred.png');
}
.UIShellIconPageScrollRightRtlEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollRightRtlEna:alias","content");
}
.UIShellIconPageScrollRightRtlDwn:alias
{
    content: url('/images/themes/autumnred/func_scrollright_29_rtl_act_autumnred.png');
}
.UIShellIconPageScrollRightRtlDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollRightRtlDwn:alias","content");
}
.UIShellIconPageScrollRightRtlOvr:alias
{
    content: url('/images/themes/autumnred/func_scrollright_29_rtl_hov_autumnred.png');
}
.UIShellIconPageScrollRightRtlOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconPageScrollRightRtlOvr:alias","content");
}
.UIShellIconHeadPhoneEna:alias
{
    content: url('/images/themes/autumnred/ugh_headphones_16_ena_autumnred.png');
}
.UIShellIconHeadPhoneEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconHeadPhoneEna:alias","content");
}
.UIShellIconHeadPhoneDwn:alias
{
    content: url('/images/themes/autumnred/ugh_headphones_16_act_autumnred.png');
}
.UIShellIconHeadPhoneDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconHeadPhoneDwn:alias","content");
}
.UIShellIconHeadPhoneOvr:alias
{
    content: url('/images/themes/autumnred/ugh_headphones_16_hov_autumnred.png');
}
.UIShellIconHeadPhoneOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconHeadPhoneOvr:alias","content");
}
.UIShellIconHeadPhoneDis:alias
{
    content: url('/images/themes/autumnred/ugh_headphones_16_dis_autumnred.png');
}
.UIShellIconHeadPhoneDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconHeadPhoneDis:alias","content");
}
.UIShellIconWebVideoEna:alias
{
    content: url('/images/themes/autumnred/ugh_webvideo_16_ena_autumnred.png');
}
.UIShellIconWebVideoEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWebVideoEna:alias","content");
}
.UIShellIconWebVideoDwn:alias
{
    content: url('/images/themes/autumnred/ugh_webvideo_16_act_autumnred.png');
}
.UIShellIconWebVideoDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWebVideoDwn:alias","content");
}
.UIShellIconWebVideoOvr:alias
{
    content: url('/images/themes/autumnred/ugh_webvideo_16_hov_autumnred.png');
}
.UIShellIconWebVideoOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWebVideoOvr:alias","content");
}
.UIShellIconWebVideoDis:alias
{
    content: url('/images/themes/autumnred/ugh_webvideo_16_dis_autumnred.png');
}
.UIShellIconWebVideoDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconWebVideoDis:alias","content");
}
.UIShellIconChatEna:alias
{
    content: url('/images/themes/autumnred/ugh_chat_16_ena_autumnred.png');
}
.UIShellIconChatEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChatEna:alias","content");
}
.UIShellIconChatDwn:alias
{
    content: url('/images/themes/autumnred/ugh_chat_16_act_autumnred.png');
}
.UIShellIconChatDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChatDwn:alias","content");
}
.UIShellIconChatOvr:alias
{
    content: url('/images/themes/autumnred/ugh_chat_16_hov_autumnred.png');
}
.UIShellIconChatOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChatOvr:alias","content");
}
.UIShellIconChatDis:alias
{
    content: url('/images/themes/autumnred/ugh_chat_16_dis_autumnred.png');
}
.UIShellIconChatDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChatDis:alias","content");
}
.UIShellIconChecklistEna:alias
{
    content: url('/images/themes/autumnred/ugh_checklist_16_ena_autumnred.png');
}
.UIShellIconChecklistEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChecklistEna:alias","content");
}
.UIShellIconChecklistDwn:alias
{
    content: url('/images/themes/autumnred/ugh_checklist_16_act_autumnred.png');
}
.UIShellIconChecklistDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChecklistDwn:alias","content");
}
.UIShellIconChecklistOvr:alias
{
    content: url('/images/themes/autumnred/ugh_checklist_16_hov_autumnred.png');
}
.UIShellIconChecklistOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChecklistOvr:alias","content");
}
.UIShellIconChecklistDis:alias
{
    content: url('/images/themes/autumnred/ugh_checklist_16_dis_autumnred.png');
}
.UIShellIconChecklistDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconChecklistDis:alias","content");
}
.UIShellIconRepository2Ena:alias
{
    content: url('/images/themes/autumnred/ugh_repository_16_ena_autumnred.png');
}
.UIShellIconRepository2EnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRepository2Ena:alias","content");
}
.UIShellIconRepository2Dwn:alias
{
    content: url('/images/themes/autumnred/ugh_repository_16_act_autumnred.png');
}
.UIShellIconRepository2DwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRepository2Dwn:alias","content");
}
.UIShellIconRepository2Ovr:alias
{
    content: url('/images/themes/autumnred/ugh_repository_16_hov_autumnred.png');
}
.UIShellIconRepository2OvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRepository2Ovr:alias","content");
}
.UIShellIconRepository2Dis:alias
{
    content: url('/images/themes/autumnred/ugh_repository_16_dis_autumnred.png');
}
.UIShellIconRepository2DisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRepository2Dis:alias","content");
}
.UIShellIconMigrateEna:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_ena_autumnred.png');
}
.UIShellIconMigrateEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateEna:alias","content");
}
.UIShellIconMigrateDwn:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_act_autumnred.png');
}
.UIShellIconMigrateDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateDwn:alias","content");
}
.UIShellIconMigrateOvr:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_hov_autumnred.png');
}
.UIShellIconMigrateOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateOvr:alias","content");
}
.UIShellIconMigrateDis:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_dis_autumnred.png');
}
.UIShellIconMigrateDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateDis:alias","content");
}
.UIShellIconMigrateRtlEna:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_rtl_ena_autumnred.png');
}
.UIShellIconMigrateRtlEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateRtlEna:alias","content");
}
.UIShellIconMigrateRtlDwn:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_rtl_act_autumnred.png');
}
.UIShellIconMigrateRtlDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateRtlDwn:alias","content");
}
.UIShellIconMigrateRtlOvr:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_rtl_hov_autumnred.png');
}
.UIShellIconMigrateRtlOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateRtlOvr:alias","content");
}
.UIShellIconMigrateRtlDis:alias
{
    content: url('/images/themes/autumnred/ugh_migrate_16_rtl_dis_autumnred.png');
}
.UIShellIconMigrateRtlDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconMigrateRtlDis:alias","content");
}
.UIShellIconRefreshEna:alias
{
    content: url('/images/themes/autumnred/ugh_refresh_16_ena_autumnred.png');
}
.UIShellIconRefreshEnaIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRefreshEna:alias","content");
}
.UIShellIconRefreshDwn:alias
{
    content: url('/images/themes/autumnred/ugh_refresh_16_act_autumnred.png');
}
.UIShellIconRefreshDwnIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRefreshDwn:alias","content");
}
.UIShellIconRefreshOvr:alias
{
    content: url('/images/themes/autumnred/ugh_refresh_16_hov_autumnred.png');
}
.UIShellIconRefreshOvrIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRefreshOvr:alias","content");
}
.UIShellIconRefreshDis:alias
{
    content: url('/images/themes/autumnred/ugh_refresh_16_dis_autumnred.png');
}
.UIShellIconRefreshDisIcon
{
   -tr-icon: -tr-property-ref(".UIShellIconRefreshDis:alias","content");
}

.version-AutumnRedJeethalta {
  color: #071917;
}
.AFBrandingBackgroundColor:alias {
  color: #8b201f;
}
.AFDecorativeColor:alias {
  color:#8b201f;
}
.FuseDashboardPanelBGColor:alias {
   background-color: rgba(152,42,42,0.75);
}
.FuseContextInfoBGDark:alias {
    background-color: hsl( 0, 20%, 45%);
}
af|document {
  background-image: url('/images/bkgd_watermarkleaves.png');
  background-repeat: no-repeat;
  background-position: top center;
}
.FuseBannerImage:alias {
background-image: none;
}
.FuseGridImage:alias {
background-image: none;
}
.FuseSelectionColor:alias { color: #660201; }.FuseHomePanel:alias {
color: #ffffff;
background-color: rgba(0,0,0,0.55);
}

.feeds-panel {
color: #ffffff;
background-color: rgba(0,0,0,0.55);
}

.FuseVerticalTabsBGColor:alias {

background-color: rgba(0, 0, 0, 0.5);

}
.FusePanelSeparator:alias {
color: #ffffff;
}
.FuseVerticalTabsIconOpacityUnselected:alias {
opacity: .5;
}.FuseOSNInputText:alias {
    color: #ffffff;
    background-color: rgba(255,255,255, 0.1);
    border: 1px solid transparent;}

 af|panelTabbed.fuse-page-tabs::tab:hover {
    background-color: transparent;
}.svg-icon01,
.svg-icon02,
.svg-icon03,
.svg-icon04,
.svg-icon05,
.svg-icon06,
.svg-icon07,
.svg-icon08,
.svg-icon09,
.svg-icon10,
.svg-icon11,
.svg-icon12,
.svg-icon13,
.svg-icon14,
.svg-icon15,
.svg-icon16,
.svg-icon17,
.svg-icon18 {
    fill: #ffffff;
}.SVGNavIconSize:alias {size : 96px;}.svg-nav{
	 top: 0px;
}

.FuseNavLabel:alias {
	 top: 100px;
}.svg-bkgd01,
.svg-bkgd02,
.svg-bkgd03,
.svg-bkgd04,
.svg-bkgd05,
.svg-bkgd06,
.svg-bkgd07,
.svg-bkgd08,
.svg-bkgd09,
.svg-bkgd10,
.svg-bkgd11,
.svg-bkgd12 {
    background-color: transparent;
}

.p_AFHoverTarget > .svg-bkgd01,
.p_AFHoverTarget > .svg-bkgd02,
.p_AFHoverTarget > .svg-bkgd03,
.p_AFHoverTarget > .svg-bkgd04,
.p_AFHoverTarget > .svg-bkgd05,
.p_AFHoverTarget > .svg-bkgd06,
.p_AFHoverTarget > .svg-bkgd07,
.p_AFHoverTarget > .svg-bkgd08,
.p_AFHoverTarget > .svg-bkgd09,
.p_AFHoverTarget > .svg-bkgd10,
.p_AFHoverTarget > .svg-bkgd11,
.p_AFHoverTarget > .svg-bkgd12 {
    border-radius:50%;
;    background-color: rgba( 255,255,255, 0.25 );     box-shadow: 0px 0px 0px 10px rgba(255,255,255, 0.25) !important;
}
.svg-bkgd01:hover,
.svg-bkgd02:hover,
.svg-bkgd03:hover,
.svg-bkgd04:hover,
.svg-bkgd05:hover,
.svg-bkgd06:hover,
.svg-bkgd07:hover,
.svg-bkgd08:hover,
.svg-bkgd09:hover,
.svg-bkgd10:hover,
.svg-bkgd11:hover,
.svg-bkgd12:hover
{
    border-radius:50%;
    background-color: rgba( 255,255,255, 0.25 );
    box-shadow: 0px 0px 0px 10px rgba(255,255,255, 0.25) !important;
}.svg-cluster-show .svg-cluster,
.svg-shortcut-show .svg-shortcut {
   fill: rgba(255,255,255, 0.6);
}

.svg-cluster-visible,
.svg-shortcut-visible {
   fill: rgba(255,255,255, 0.6);
}.fndGlobalToolboxBG:alias {
       background-color: rgba( 255,255,255, .15);
}

.fndGlobalToolboxBGSelected:alias {
        background-color:rgba( 255,255,255, .9);
}

.fndGlobalToolboxBGHover:alias {
        background-color:rgba( 255,255,255, .3);
}

.fndGlobalToolboxBGDisabled:alias {
        background-color:rgba( 255,255,255, .1);
}.UIShellIconPaginationEna:alias {
  content: url('/images/themes/autumnred/func_pagination_28_ena_autumnred.png');
}

.UIShellIconPaginationDwn:alias {
  content: url('/images/themes/autumnred/func_pagination_28_act_autumnred.png');
}

.UIShellIconPaginationOvr:alias {
  content: url('/images/themes/autumnred/func_pagination_28_hov_autumnred.png');
}

.UIShellIconPaginationDis:alias {
  content: url('/images/themes/autumnred/func_pagination_28_dis_autumnred.png');
}

.UIShellIconRepositoryEna:alias {
  content: url('/images/themes/autumnred/func_repository_29_ena_autumnred.png');
}

.UIShellIconRepositoryDwn:alias {
  content: url('/images/themes/autumnred/func_repository_29_act_autumnred.png');
}

.UIShellIconRepositoryOvr:alias {
  content: url('/images/themes/autumnred/func_repository_29_hov_autumnred.png');
}

.UIShellIconRepositoryDis:alias {
  content: url('/images/themes/autumnred/func_repository_29_dis_autumnred.png');
}.FuseThemeBGDark:alias { background-color: #f4f4f4; }
.FuseThemeBGLight:alias { background-color: #ffffff; }
.FuseThemeBorder:alias { color: #d1d1d1; }
.FuseThemeSeparator:alias { color: #d6dfe6; }
.FuseThemeTextLink:alias { color: #104087; }
.FuseThemeTextNormal1:alias { color: #333333; }
.FuseThemeTextNormal2:alias { color: #505050; }
.FuseThemeTextNormal3:alias { color: #707070; }
.FuseThemeTextPurple:alias { color: #725da3; }
.FuseThemeTextGreen:alias { color: #327d3b; }
.FuseThemeTextLightBlue:alias { color: #2870b5; }
.FuseThemeTextRed:alias { color: #cf1515; }
.FuseThemeTextOrange:alias { color: #bc4e00; }
.FuseThemeTextYellow:alias { color: #ffbe00; }
.FuseThemeSelection:alias { background-color: #0572ce; }


text:
namespace Cedar { namespace Doubles {

    class StubbedMethod : private InvocationMatcher {
    private:
        typedef void (^invocation_block_t)(NSInvocation *);

    private:
        StubbedMethod & operator=(const StubbedMethod &);

    public:
        StubbedMethod(SEL);
        StubbedMethod(const char *);
        StubbedMethod(const StubbedMethod &);
        virtual ~StubbedMethod();

        template<typename T>
        StubbedMethod & and_return(const T &);
        StubbedMethod & and_do(invocation_block_t);

        StubbedMethod & with(const Argument::shared_ptr_t argument);
        StubbedMethod & and_with(const Argument::shared_ptr_t argument);

        template<typename T>
        StubbedMethod & with(const T &);
        template<typename T>
        StubbedMethod & and_with(const T &);

        StubbedMethod & and_raise_exception();
        StubbedMethod & and_raise_exception(NSObject * exception);

        Argument & return_value() const { return *return_value_argument_; };

        struct SelCompare {
            bool operator() (const SEL& lhs, const SEL& rhs) const {
                return strcmp(sel_getName(lhs), sel_getName(rhs)) < 0;
            }
        };
        typedef std::shared_ptr<StubbedMethod> shared_ptr_t;
        typedef std::map<SEL, shared_ptr_t, SelCompare> selector_map_t;

        const SEL selector() const;
        bool matches(NSInvocation * const invocation) const;
        bool invoke(NSInvocation * invocation) const;
        void validate_against_instance(id instance) const;

    private:
        bool has_return_value() const { return return_value_argument_.get(); };
        bool has_invocation_block() const { return invocation_block_; }

    private:
        Argument::shared_ptr_t return_value_argument_;
        invocation_block_t invocation_block_;
        NSObject * exception_to_raise_;
    };

    template<typename T>
    StubbedMethod & StubbedMethod::and_return(const T & return_value) {
        if (this->has_invocation_block()) {
            NSString * selectorString = NSStringFromSelector(this->selector());
            [[NSException exceptionWithName:NSInternalInconsistencyException
                                     reason:[NSString stringWithFormat:@"Multiple return values specified for <%@>", selectorString]
                                   userInfo:nil] raise];
        }

        return_value_argument_ = Argument::shared_ptr_t(new ReturnValue<T>(return_value));
        return *this;
    }

    template<typename T>
    StubbedMethod & StubbedMethod::with(const T & argument) {
        return with(Argument::shared_ptr_t(new ValueArgument<T>(argument)));
    }

    template<typename T>
    StubbedMethod & StubbedMethod::and_with(const T & argument) {
        return with(argument);
    }

}}


text:
'use strict';

angular.module('faster')
  .config(function($stateProvider) {
    $stateProvider
      .state('main', {
        url: '/',
        templateUrl: 'app/main/main.html',
        controller: 'MainController',
        controllerAs: 'main'
      });
  });


text:
class ofApp : public ofBaseApp{

	public:
		void setup();
		void update();
		void draw();

		void keyPressed(int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);
		void gotMessage(ofMessage msg);

    ofVideoGrabber 		vidGrabber;

    ofxCvColorImage colorImg; //オリジナルのカラー映像
    ofxCvGrayscaleImage grayImage; //グレースケールに変換後
    ofxCvGrayscaleImage grayBg; //キャプチャーした背景画像
    ofxCvGrayscaleImage grayDiff; //現在の画像と背景との差分
    ofxCvContourFinder contourFinder; //輪郭抽出のためのクラス

    bool bLearnBakground; //背景画像を登録したか否か
    bool showCvAnalysis; //解析結果を表示するか
    int threshold; //2値化の際の敷居値
    int videoMode; //表示する画像を選択
};


text:
package net.niiranen.lov.sample;

import android.Manifest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import net.niiranen.lov.AndroidPermission;
import net.niiranen.lov.Lov;
import net.niiranen.lov.PermissionRationale;

import rx.functions.Action1;

public class JavaActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_java);

        Button button = (Button) findViewById(R.id.button);
        assert button != null;

        Lov.INSTANCE.addRationale(Manifest.permission.CAMERA,
                                  new PermissionRationale(R.string.camera_rationale_title,
                                                          R.string.rationale_ok,
                                                          R.string.rationale_cancel,
                                                          R.string.camera_rationale_message));
        Lov.INSTANCE.addRationale(Manifest.permission.WRITE_EXTERNAL_STORAGE,
                                  new PermissionRationale(R.string.storage_rationale_title,
                                                          R.string.rationale_ok,
                                                          R.string.rationale_cancel,
                                                          R.string.storage_rationale_message));

        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Lov.INSTANCE.request(JavaActivity.this,
                                     Manifest.permission.CAMERA,
                                     Manifest.permission.WRITE_EXTERNAL_STORAGE).subscribe(
                    new Action1<AndroidPermission>() {
                        @Override
                        public void call(AndroidPermission permission) {
                            if (permission.getGranted()) {
                                Toast.makeText(JavaActivity.this,
                                               "Got permission for " + permission.getName(),
                                               Toast.LENGTH_LONG)
                                     .show();
                            } else if (permission.getShowRationale()) {
                                Toast.makeText(JavaActivity.this,
                                               "Show rationale for " + permission.getName(),
                                               Toast.LENGTH_LONG)
                                     .show();
                            } else {
                                Toast.makeText(JavaActivity.this,
                                               permission.getName() + " was denied",
                                               Toast.LENGTH_LONG)
                                     .show();
                            }
                        }
                    }
                );
            }
        });
    }
}


text:
from __future__ import print_function
print('The first line\nA quick brown fox jumps over the lazy dog\r\033[0P', end='')


text:
<!DOCTYPE html>

  <title>{{ title }}</title>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

  <link href='http://fonts.googleapis.com/css?family=Cabin' rel='stylesheet' type='text/css'>

  <link rel="stylesheet" href="/static/css/main_e11f3206a68c7d97284d2dbd91f4dba7.css">


text:
<!DOCTYPE html>

      <title>BERKSHIRE HATHAWAY</title>
      <link rel="stylesheet" type="text/css" href="../../week-3/stylesheets/my-berkshire-stylesheet.css"/>

Berkshire Hathaway inc

3555 Farnam Street Suite

1440 Omaha, NE 68131

Official Home Page

A Message from Warren E Buffet

Annual & Interim Reports
Updated November 6, 2015

Special Letters From Warren & Charlie RE:Past, Present and Future

Link to SEC Filings

Links to Berkshire Subsidary Companies

Corporate Governance

Owner's Manual

Letters from Warren E. Buffett Regarding Pledges to Make Gifts of Berkshire Stock

News Releases
Updated November 6, 2015

Warren Buffett's Letters to Berkshire Shareholders
Updated February 28, 2015

Charlie Munger's Letters to Wesco Shareholders

Annual Meeting Information

Celebrating 50 Years of a Profitable Partnership
(A commemorative book first sold at the 2015 Annual Meeting and now for sale on eBay.)

Comparative Rights and Relative Prices of Class A and B Stock

Berkshire Activewear

FOR A FREE CAR INSURANCE RATE QUOTE THAT COULD SAVE YOU SUBSTANCIAL MONEY

WWW.GEICO.COM OR CALL 1-888-395-6349, 24 HOURS A DAY

If you have any comments about our WEB page, you can either write us at the address shown above or e-mail us at berkshire@berkshirehathaway.com However, due to the limited number of personnel in our corporate office, we are unable to provide a direct response.

Legal Disclaimer

Copyrite© 1978-2015 Berthshire Hathaway Inc.


text:
package net.sourceforge.pmd.lang.java.rule.android;

import net.sourceforge.pmd.testframework.SimpleAggregatorTst;

import org.junit.Before;

public class AndroidRulesTest extends SimpleAggregatorTst {

    private static final String RULESET = "java-android";

    @Before
    public void setUp() {
        addRule(RULESET, "CallSuperFirst");
        addRule(RULESET, "CallSuperLast");
        addRule(RULESET, "DoNotHardCodeSDCard");
    }

    public static junit.framework.Test suite() {
        return new junit.framework.JUnit4TestAdapter(AndroidRulesTest.class);
    }
}


text:
import { isString } from 'lodash';
import log from '@/lib/log';
import assert from 'assert';

export function toGlobalId(type, localId){
  assert.notEqual(null, type);
  assert.notEqual(null, localId);
  let buffer = new Buffer(JSON.stringify({
    type: type,
    localId: localId
  }));
  return (buffer.toString('base64'));
};

export function fromGlobalId(globalId){
  let string = new Buffer(globalId, 'base64').toString('ascii');
  try {
    globalId = JSON.parse(string);
  } catch(err) {
    throw new Error('id formatted incorrectly');
  }
  let { type, localId } = globalId;
  if(!isString(type) || !isString(localId)){
    throw new Error('id formatted incorrectly');
  }
  return globalId;
};


text:
package recipestore.graph

import com.google.inject.{Guice, Injector}
import org.apache.spark.sql.{DataFrame, Row}
import org.graphframes.GraphFrame
import org.scalatest.{BeforeAndAfter, FunSuite, Matchers, Tag}

import scala.collection.immutable.Seq
object IntegrationTest extends Tag("integrationTest")

class GraphCreator$Test extends FunSuite with BeforeAndAfter {

  var graphCreator: GraphCreator = _
  var graphLoader: GraphLoader = _
  var inputModule: Injector = Guice.createInjector(new GraphModule)
  before {
    graphCreator = inputModule.getInstance(classOf[GraphCreator])
    graphLoader = inputModule.getInstance(classOf[GraphLoader])
    graphCreator.write(-1)
  }

  test("Should Persist the GraphFrame and reload it", IntegrationTest) {

    val reloadedGraphFrame: GraphFrame = (() => graphLoader.loadFromFile()).apply()
    val vertices: DataFrame = reloadedGraphFrame.vertices
    val edges: DataFrame = reloadedGraphFrame.edges

    def assertValue() = {
      val count: Long = vertices.filter(row => Option(row.getString(row.fieldIndex("type"))).getOrElse("")
        .equals("Recipe"))
        .count()
      assert(count.toInt >= 10)

      object matcher extends Matchers {

        def getRowVal(row: Row, field: String) = Option(row.getString(row.fieldIndex(field))).getOrElse("")

        def getRowVals(row: Row, fields: String*) = fields.map(getRowVal(row, _))

        def checkSchema(row: Row) = {
          val schemaField: Seq[String] = row.schema.fields.map(_.name).toList
          schemaField should contain allOf("ratingValue", "author", "name", "description", "mainEntityOfPage",
            "recipeInstructions", "id", "ingredients", "type", "reviewCount")
        }

        def checkReviewsConnectedToRecipe(edge: Row) = {
          val schemaField: Seq[String] = edge.schema.fields.map(_.name).toList
          schemaField should contain allOf("src", "dst")
        }

        def checkReviewParameters(reviewVertex: Row) = {
          if (getRowVal(reviewVertex, "type").equals("Review")) {
            val reviewValues = getRowVals(reviewVertex, "reviewBody", "author")
            reviewValues.foreach(_ should not be empty)
          }
        }
      }
      vertices.foreach(matcher.checkSchema(_))
      vertices.foreach(matcher.checkReviewParameters(_))

      edges.filter("relationship = 'review'")
        .foreach(matcher.checkReviewsConnectedToRecipe(_))

    }

    assertValue()

  }

}


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Text;
using Microsoft.VisualStudio.Composition;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Roslyn.Test.Utilities;
using Roslyn.Utilities;

namespace Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
{
    public class TestHostDocument
    {
        private static readonly ImmutableArray<string> s_defaultRoles = ImmutableArray.Create<string>
            (PredefinedTextViewRoles.Analyzable,
            PredefinedTextViewRoles.Document,
            PredefinedTextViewRoles.Editable,
            PredefinedTextViewRoles.Interactive,
            PredefinedTextViewRoles.Zoomable);

        private readonly ExportProvider? _exportProvider;
        private HostLanguageServices? _languageServiceProvider;
        private readonly string _initialText;
        private IWpfTextView? _textView;

        private DocumentId? _id;
        private TestHostProject? _project;

        /// <summary>
        /// The <see cref="ITextBuffer"/> for this document. Null if not yet created.
        /// </summary>
        private ITextBuffer? _textBuffer;

        /// <summary>
        /// The <see cref="ITextSnapshot"/> when the buffer was first created, which can be used for tracking changes to the current buffer.
        /// </summary>
        private ITextSnapshot? _initialTextSnapshot;
        private readonly IReadOnlyList<string>? _folders;
        private readonly IDocumentServiceProvider? _documentServiceProvider;
        private readonly ImmutableArray<string> _roles;

        public DocumentId Id
        {
            get
            {
                Contract.ThrowIfNull(_id);
                return _id;
            }
        }

        public TestHostProject Project
        {
            get
            {
                Contract.ThrowIfNull(_project);
                return _project;
            }
        }

        public string Name { get; }
        public SourceCodeKind SourceCodeKind { get; }
        public string? FilePath { get; }

        public static bool IsGenerated
        {
            get
            {
                return false;
            }
        }

        public TextLoader Loader { get; }
        public int? CursorPosition { get; }
        public IList<TextSpan> SelectedSpans { get; } = new List<TextSpan>();
        public IDictionary<string, ImmutableArray<TextSpan>> AnnotatedSpans { get; } = new Dictionary<string, ImmutableArray<TextSpan>>();

        /// <summary>
        /// If a file exists in ProjectA and is added to ProjectB as a link, then this returns
        /// false for the document in ProjectA and true for the document in ProjectB.
        /// </summary>
        public bool IsLinkFile { get; internal set; }

        internal TestHostDocument(
            ExportProvider exportProvider,
            HostLanguageServices? languageServiceProvider,
            string code,
            string filePath,
            int? cursorPosition,
            IDictionary<string, ImmutableArray<TextSpan>> spans,
            SourceCodeKind sourceCodeKind = SourceCodeKind.Regular,
            IReadOnlyList<string>? folders = null,
            bool isLinkFile = false,
            IDocumentServiceProvider? documentServiceProvider = null,
            ImmutableArray<string> roles = default,
            ITextBuffer? textBuffer = null)
        {
            Contract.ThrowIfNull(filePath);

            _exportProvider = exportProvider;
            _languageServiceProvider = languageServiceProvider;
            _initialText = code;
            FilePath = filePath;
            _folders = folders;
            Name = filePath;
            this.CursorPosition = cursorPosition;
            SourceCodeKind = sourceCodeKind;
            this.IsLinkFile = isLinkFile;
            _documentServiceProvider = documentServiceProvider;
            _roles = roles.IsDefault ? s_defaultRoles : roles;

            if (spans.ContainsKey(string.Empty))
            {
                this.SelectedSpans = spans[string.Empty];
            }

            foreach (var namedSpanList in spans.Where(s => s.Key != string.Empty))
            {
                this.AnnotatedSpans.Add(namedSpanList);
            }

            Loader = new TestDocumentLoader(this, _initialText);

            if (textBuffer != null)
            {
                _textBuffer = textBuffer;
                _initialTextSnapshot = textBuffer.CurrentSnapshot;
            }
        }

        public TestHostDocument(
            string text = "",
            string displayName = "",
            SourceCodeKind sourceCodeKind = SourceCodeKind.Regular,
            DocumentId? id = null,
            string? filePath = null,
            IReadOnlyList<string>? folders = null,
            ExportProvider? exportProvider = null)
        {
            _exportProvider = exportProvider;
            _id = id;
            _initialText = text;
            Name = displayName;
            SourceCodeKind = sourceCodeKind;
            Loader = new TestDocumentLoader(this, text);
            FilePath = filePath;
            _folders = folders;
            _roles = s_defaultRoles;
        }

        internal void SetProject(TestHostProject project)
        {
            _project = project;

            if (_id == null)
            {
                _id = DocumentId.CreateNewId(project.Id, this.Name);
            }
            else
            {
                Contract.ThrowIfFalse(project.Id == this.Id.ProjectId);
            }

            if (_languageServiceProvider == null)
            {
                _languageServiceProvider = project.LanguageServiceProvider;
            }
        }

        private class TestDocumentLoader : TextLoader
        {
            private readonly TestHostDocument _hostDocument;
            private readonly string _text;

            internal TestDocumentLoader(TestHostDocument hostDocument, string text)
            {
                _hostDocument = hostDocument;
                _text = text;
            }

            public override Task<TextAndVersion> LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken)
                => Task.FromResult(TextAndVersion.Create(SourceText.From(_text), VersionStamp.Create(), _hostDocument.FilePath));
        }

        public IWpfTextView GetTextView()
        {
            if (_textView == null)
            {
                Contract.ThrowIfNull(_exportProvider, $"Can only create text view for {nameof(TestHostDocument)} created with {nameof(ExportProvider)}");
                WpfTestRunner.RequireWpfFact($"Creates an {nameof(IWpfTextView)} through {nameof(TestHostDocument)}.{nameof(GetTextView)}");

                var factory = _exportProvider.GetExportedValue<ITextEditorFactoryService>();

                // Every default role but outlining. Starting in 15.2, the editor
                // OutliningManager imports JoinableTaskContext in a way that's
                // difficult to satisfy in our unit tests. Since we don't directly
                // depend on it, just disable it
                var roles = factory.CreateTextViewRoleSet(_roles);
                _textView = factory.CreateTextView(this.GetTextBuffer(), roles);
                if (this.CursorPosition.HasValue)
                {
                    _textView.Caret.MoveTo(new SnapshotPoint(_textView.TextSnapshot, CursorPosition.Value));
                }
                else if (this.SelectedSpans.IsSingle())
                {
                    var span = this.SelectedSpans.Single();
                    _textView.Selection.Select(new SnapshotSpan(_textView.TextSnapshot, new Span(span.Start, span.Length)), false);
                }
            }

            return _textView;
        }

        public ITextBuffer GetTextBuffer()
        {
            var workspace = (TestWorkspace?)_languageServiceProvider?.WorkspaceServices.Workspace;

            if (_textBuffer == null)
            {
                Contract.ThrowIfNull(_languageServiceProvider, $"To get a text buffer for a {nameof(TestHostDocument)}, it must have been parented in a project.");
                var contentType = _languageServiceProvider.GetRequiredService<IContentTypeLanguageService>().GetDefaultContentType();

                _textBuffer = workspace!.GetOrCreateBufferForPath(FilePath, contentType, _languageServiceProvider.Language, _initialText);
                _initialTextSnapshot = _textBuffer.CurrentSnapshot;
            }

            if (workspace != null)
            {
                // Open (or reopen) any files that were closed in this call. We do this for all linked copies at once.
                foreach (var linkedId in workspace.CurrentSolution.GetDocumentIdsWithFilePath(FilePath).Concat(this.Id))
                {
                    var testDocument = workspace.GetTestDocument(linkedId);

                    if (testDocument != null)
                    {
                        if (!workspace.IsDocumentOpen(linkedId))
                        {
                            // If there is a linked file, we'll start the non-linked one as being the primary context, which some tests depend on.
                            workspace.OnDocumentOpened(linkedId, _textBuffer.AsTextContainer(), isCurrentContext: !testDocument.IsLinkFile);
                        }
                    }
                }
            }

            return _textBuffer;
        }

        public SourceTextContainer GetOpenTextContainer()
            => this.GetTextBuffer().AsTextContainer();

        public IReadOnlyList<string> Folders
        {
            get
            {
                return _folders ?? ImmutableArray.Create<string>();
            }
        }

        // TODO: delete this
        public ITextSnapshot InitialTextSnapshot
        {
            get
            {
                Contract.ThrowIfNull(_initialTextSnapshot);
                return _initialTextSnapshot;
            }
        }

        internal void Update(SourceText newText)
        {
            var buffer = GetTextBuffer();
            using (var edit = buffer.CreateEdit(EditOptions.DefaultMinimalChange, reiteratedVersionNumber: null, editTag: null))
            {
                var oldText = buffer.CurrentSnapshot.AsText();
                var changes = newText.GetTextChanges(oldText);

                foreach (var change in changes)
                {
                    edit.Replace(change.Span.Start, change.Span.Length, change.NewText);
                }

                edit.Apply();
            }
        }

        private void Update(string newText)
        {
            using (var edit = this.GetTextBuffer().CreateEdit(EditOptions.DefaultMinimalChange, reiteratedVersionNumber: null, editTag: null))
            {
                edit.Replace(new Span(0, this.GetTextBuffer().CurrentSnapshot.Length), newText);
                edit.Apply();
            }
        }

        internal void CloseTextView()
        {
            if (_textView != null && !_textView.IsClosed)
            {
                _textView.Close();
                _textView = null;
            }
        }

        public DocumentInfo ToDocumentInfo()
            => DocumentInfo.Create(this.Id, this.Name, this.Folders, this.SourceCodeKind, loader: this.Loader, filePath: this.FilePath, isGenerated: IsGenerated, designTimeOnly: false, _documentServiceProvider);
    }
}


text:
layout: archive
title: "Curriculum Vitae"
permalink: /cv/
author_profile: true
redirect_from:
  - /resume
---

Education
---------
* PhD Student in Computer Science, 2018 to present

  Delft University of Technology, Delft, The Netherlands
* MSc in Computer Science, 2018

  Delft University of Technology, Delft, The Netherlands
* BSc in Computer Science, 2011

  Delft University of Technology, Delft, The Netherlands
* BSc in Built Environment with 1st phase Architecture, 2007

  Hanze University of Applied Sciences, Groningen, The Netherlands

Work experience
---------------
* June 2019 — present: Educational Software Developer at TU Delft, including

  * developing and extending the Weblab Online Learning environment;
  * co-developing a campus-wide programming course in Python.
* March 2015 — April 2015: Teaching assistant

at TU Delft Concepts of Programming Languages course, including:
  * developing assignment testing infrastructure in Scala;
  * developing a generator for assignment tests in Scala;
  * creating assignments and tests in WebLab;
  * assisting students with their lab;
  * grading student submissions.
* September 2014: Teaching assistant

at TU Delft Compiler Construction course, including:
  * assisting students with the Spoofax language workbench.
* May 2012 — May 2014: Teaching assistant

at TU Delft 'Model in one day' event, including:
  * developing software allowing students to pilot a small real-life blimp in Python and C;
  * developing a simulation of the blimp for students to run;
  * setup the computer for the students;
  * presenting the results of the blimp competition;
  * assisting students with the assignment.
* November 2010 — January 2012: Teaching assistant

at TU Delft robot-tank project, including:
  * providing general course assistance;
  * assisting students with C programming.
* November 2009 — January 2009: Teaching assistant

at TU Delft Object-Oriented Programming course, including:
  * asssisting students with Java programming.
* September 2006 — February 2007: Internship

at design agency PDB Design in Groningen, the Netherlands.
* February 2005 — July 2005: Internship

at construction company Van Wijnen in Oosterwolde, the Netherlands.
* November 2004 — June 2006: Teaching assistant

at first year AutoCAD course of the Hanze University of Applied Sciences.

Skills
------
* Technologies: Docker, MySQL, Windows, Linux, Spoofax Language Workbench, WebLab
* Programming Languages
  * excellent: C#, Java, Kotlin, SDF3, Stratego, HTML, CSS, Python, Scala;
  * good: PHP, TypeScript, Rust, WebDSL, SQL, Shell, Python, C;
  * basic: JavaScript, Haskell, C++, Assembly, Visual Basic.
* Languages
  * native: Dutch;
  * excellent: English;
  * basic: German.
* Interests: home automation, electronics, architecture, computer games, board games

Publications
------------

{% for post in site.publications %}
    {% include archive-single-cv.html %}
  {% endfor %}

Talks
-----

{% for post in site.talks %}
    {% include archive-single-talk-cv.html %}
  {% endfor %}