text:
@implementation Shopping_SimpleUserType

@synthesize userID = _userID;
@synthesize feedbackPrivate = _feedbackPrivate;
@synthesize feedbackRatingStar = _feedbackRatingStar;
@synthesize feedbackScore = _feedbackScore;
@synthesize userAnonymized = _userAnonymized;
@synthesize ebayNewUser = _newUser;
@synthesize registrationDate = _registrationDate;
@synthesize registrationSite = _registrationSite;
@synthesize status = _status;
@synthesize sellerBusinessType = _sellerBusinessType;
@synthesize storeURL = _storeURL;
@synthesize storeName = _storeName;
@synthesize sellerItemsURL = _sellerItemsURL;
@synthesize aboutMeURL = _aboutMeURL;
@synthesize myWorldURL = _myWorldURL;
@synthesize myWorldSmallImage = _myWorldSmallImage;
@synthesize myWorldLargeImage = _myWorldLargeImage;
@synthesize reviewsAndGuidesURL = _reviewsAndGuidesURL;
@synthesize feedbackDetailsURL = _feedbackDetailsURL;
@synthesize positiveFeedbackPercent = _positiveFeedbackPercent;
@synthesize sellerLevel = _sellerLevel;
@synthesize topRatedSeller = _topRatedSeller;
@synthesize any = _any;

// class meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(PicoClassSchema *)getClassMetaData {
    return nil;
}

// property meta-data method
// note: this method is only for internal use, DO NOT CHANGE!
+(NSMutableDictionary *)getPropertyMetaData {
    NSMutableDictionary *map = [OrderedDictionary dictionary];

    PicoPropertySchema *ps = nil;
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"UserID" propertyName:@"userID" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"userID"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"FeedbackPrivate" propertyName:@"feedbackPrivate" type:PICO_TYPE_BOOL clazz:nil];
    [map setObject:ps forKey:@"feedbackPrivate"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"FeedbackRatingStar" propertyName:@"feedbackRatingStar" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"feedbackRatingStar"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"FeedbackScore" propertyName:@"feedbackScore" type:PICO_TYPE_INT clazz:nil];
    [map setObject:ps forKey:@"feedbackScore"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"UserAnonymized" propertyName:@"userAnonymized" type:PICO_TYPE_BOOL clazz:nil];
    [map setObject:ps forKey:@"userAnonymized"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"NewUser" propertyName:@"newUser" type:PICO_TYPE_BOOL clazz:nil];
    [map setObject:ps forKey:@"newUser"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"RegistrationDate" propertyName:@"registrationDate" type:PICO_TYPE_DATE clazz:nil];
    [map setObject:ps forKey:@"registrationDate"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"RegistrationSite" propertyName:@"registrationSite" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"registrationSite"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"Status" propertyName:@"status" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"status"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"SellerBusinessType" propertyName:@"sellerBusinessType" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"sellerBusinessType"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"StoreURL" propertyName:@"storeURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"storeURL"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"StoreName" propertyName:@"storeName" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"storeName"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"SellerItemsURL" propertyName:@"sellerItemsURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"sellerItemsURL"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"AboutMeURL" propertyName:@"aboutMeURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"aboutMeURL"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"MyWorldURL" propertyName:@"myWorldURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"myWorldURL"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"MyWorldSmallImage" propertyName:@"myWorldSmallImage" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"myWorldSmallImage"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"MyWorldLargeImage" propertyName:@"myWorldLargeImage" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"myWorldLargeImage"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"ReviewsAndGuidesURL" propertyName:@"reviewsAndGuidesURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"reviewsAndGuidesURL"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"FeedbackDetailsURL" propertyName:@"feedbackDetailsURL" type:PICO_TYPE_STRING clazz:nil];
    [map setObject:ps forKey:@"feedbackDetailsURL"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"PositiveFeedbackPercent" propertyName:@"positiveFeedbackPercent" type:PICO_TYPE_FLOAT clazz:nil];
    [map setObject:ps forKey:@"positiveFeedbackPercent"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"SellerLevel" propertyName:@"sellerLevel" type:PICO_TYPE_ENUM clazz:nil];
    [map setObject:ps forKey:@"sellerLevel"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ELEMENT xmlName:@"TopRatedSeller" propertyName:@"topRatedSeller" type:PICO_TYPE_BOOL clazz:nil];
    [map setObject:ps forKey:@"topRatedSeller"];
    ps = [[PicoPropertySchema alloc] initWithKind:PICO_KIND_ANY_ELEMENT xmlName:@"any" propertyName:@"any" type:PICO_TYPE_ANYELEMENT clazz:nil];
    [map setObject:ps forKey:@"any"];

    return map;
}

@end


text:
/*
 * Translated default messages for the jQuery validation plugin.
 * Locale: LT (Lithuanian; lietuvių kalba)
 */
$.extend($.validator.messages, {
	required: "Šis laukas yra privalomas.",
	remote: "Prašau pataisyti šį lauką.",
	email: "Prašau įvesti teisingą elektroninio pašto adresą.",
	url: "Prašau įvesti teisingą URL.",
	date: "Prašau įvesti teisingą datą.",
	dateISO: "Prašau įvesti teisingą datą (ISO).",
	number: "Prašau įvesti teisingą skaičių.",
	digits: "Prašau naudoti tik skaitmenis.",
	creditcard: "Prašau įvesti teisingą kreditinės kortelės numerį.",
	equalTo: "Prašau įvestį tą pačią reikšmę dar kartą.",
	extension: "Prašau įvesti reikšmę su teisingu plėtiniu.",
	maxlength: $.validator.format("Prašau įvesti ne daugiau kaip {0} simbolių."),
	minlength: $.validator.format("Prašau įvesti bent {0} simbolius."),
	rangelength: $.validator.format("Prašau įvesti reikšmes, kurių ilgis nuo {0} iki {1} simbolių."),
	range: $.validator.format("Prašau įvesti reikšmę intervale nuo {0} iki {1}."),
	max: $.validator.format("Prašau įvesti reikšmę mažesnę arba lygią {0}."),
	min: $.validator.format("Prašau įvesti reikšmę didesnę arba lygią {0}.")
});

redpajama_set_name: RedPajamaGithub


text:
<!doctype html>
<html lang="en">
<head>
    <title>End2end Test Runner</title>
    <meta charset="utf-8">
    <script src="../lib/angular/angular-scenario.js" ng-autotest></script>
    <script src="hello-world-scenario.js"></script>
    <script src="basic-form-scenario.js"></script>
    <script src="advanced-form-scenario.js"></script>
    <script src="mvc-scenario.js"></script>
    <script src="deep-linking-scenario.js"></script>
</head>
<body>
</body>
</html>


text:
"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getSemanticTokens = exports.getSemanticTokenLegend = void 0;
const ts = require("typescript");
function getSemanticTokenLegend() {
    if (tokenTypes.length !== 11 /* _ */) {
        console.warn('TokenType has added new entries.');
    }
    if (tokenModifiers.length !== 4 /* _ */) {
        console.warn('TokenModifier has added new entries.');
    }
    return { types: tokenTypes, modifiers: tokenModifiers };
}
exports.getSemanticTokenLegend = getSemanticTokenLegend;
function getSemanticTokens(jsLanguageService, currentTextDocument, fileName) {
    //https://ts-ast-viewer.com/#code/AQ0g2CmAuwGbALzAJwG4BQZQGNwEMBnQ4AQQEYBmYAb2C22zgEtJwATJVTRxgcwD27AQAp8AGmAAjAJS0A9POB8+7NQ168oscAJz5wANXwAnLug2bsJmAFcTAO2XAA1MHyvgu-UdOeWbOw8ViAAvpagocBAA
    let resultTokens = [];
    const collector = (node, typeIdx, modifierSet) => {
        resultTokens.push({ start: currentTextDocument.positionAt(node.getStart()), length: node.getWidth(), typeIdx, modifierSet });
    };
    collectTokens(jsLanguageService, fileName, { start: 0, length: currentTextDocument.getText().length }, collector);
    return resultTokens;
}
exports.getSemanticTokens = getSemanticTokens;
function collectTokens(jsLanguageService, fileName, span, collector) {
    const program = jsLanguageService.getProgram();
    if (program) {
        const typeChecker = program.getTypeChecker();
        function visit(node) {
            if (!node || !ts.textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {
                return;
            }
            if (ts.isIdentifier(node)) {
                let symbol = typeChecker.getSymbolAtLocation(node);
                if (symbol) {
                    if (symbol.flags & ts.SymbolFlags.Alias) {
                        symbol = typeChecker.getAliasedSymbol(symbol);
                    }
                    let typeIdx = classifySymbol(symbol);
                    if (typeIdx !== undefined) {
                        let modifierSet = 0;
                        if (node.parent) {
                            const parentTypeIdx = tokenFromDeclarationMapping[node.parent.kind];
                            if (parentTypeIdx === typeIdx && node.parent.name === node) {
                                modifierSet = 1 << 0 /* declaration */;
                            }
                        }
                        const decl = symbol.valueDeclaration;
                        const modifiers = decl ? ts.getCombinedModifierFlags(decl) : 0;
                        const nodeFlags = decl ? ts.getCombinedNodeFlags(decl) : 0;
                        if (modifiers & ts.ModifierFlags.Static) {
                            modifierSet |= 1 << 1 /* static */;
                        }
                        if (modifiers & ts.ModifierFlags.Async) {
                            modifierSet |= 1 << 2 /* async */;
                        }
                        if ((modifiers & ts.ModifierFlags.Readonly) || (nodeFlags & ts.NodeFlags.Const) || (symbol.getFlags() & ts.SymbolFlags.EnumMember)) {
                            modifierSet |= 1 << 3 /* readonly */;
                        }
                        collector(node, typeIdx, modifierSet);
                    }
                }
            }
            ts.forEachChild(node, visit);
        }
        const sourceFile = program.getSourceFile(fileName);
        if (sourceFile) {
            visit(sourceFile);
        }
    }
}
function classifySymbol(symbol) {
    const flags = symbol.getFlags();
    if (flags & ts.SymbolFlags.Class) {
        return 0 /* class */;
    }
    else if (flags & ts.SymbolFlags.Enum) {
        return 1 /* enum */;
    }
    else if (flags & ts.SymbolFlags.TypeAlias) {
        return 5 /* type */;
    }
    else if (flags & ts.SymbolFlags.Type) {
        if (flags & ts.SymbolFlags.Interface) {
            return 2 /* interface */;
        }
        if (flags & ts.SymbolFlags.TypeParameter) {
            return 4 /* typeParameter */;
        }
    }
    const decl = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];
    return decl && tokenFromDeclarationMapping[decl.kind];
}
const tokenTypes = [];
tokenTypes[0 /* class */] = 'class';
tokenTypes[1 /* enum */] = 'enum';
tokenTypes[2 /* interface */] = 'interface';
tokenTypes[3 /* namespace */] = 'namespace';
tokenTypes[4 /* typeParameter */] = 'typeParameter';
tokenTypes[5 /* type */] = 'type';
tokenTypes[6 /* parameter */] = 'parameter';
tokenTypes[7 /* variable */] = 'variable';
tokenTypes[8 /* property */] = 'property';
tokenTypes[9 /* function */] = 'function';
tokenTypes[10 /* method */] = 'method';
const tokenModifiers = [];
tokenModifiers[2 /* async */] = 'async';
tokenModifiers[0 /* declaration */] = 'declaration';
tokenModifiers[3 /* readonly */] = 'readonly';
tokenModifiers[1 /* static */] = 'static';
const tokenFromDeclarationMapping = {
    [ts.SyntaxKind.VariableDeclaration]: 7 /* variable */,
    [ts.SyntaxKind.Parameter]: 6 /* parameter */,
    [ts.SyntaxKind.PropertyDeclaration]: 8 /* property */,
    [ts.SyntaxKind.ModuleDeclaration]: 3 /* namespace */,
    [ts.SyntaxKind.EnumDeclaration]: 1 /* enum */,
    [ts.SyntaxKind.EnumMember]: 8 /* property */,
    [ts.SyntaxKind.ClassDeclaration]: 0 /* class */,
    [ts.SyntaxKind.MethodDeclaration]: 10 /* method */,
    [ts.SyntaxKind.FunctionDeclaration]: 9 /* function */,
    [ts.SyntaxKind.MethodSignature]: 10 /* method */,
    [ts.SyntaxKind.GetAccessor]: 8 /* property */,
    [ts.SyntaxKind.PropertySignature]: 8 /* property */,
    [ts.SyntaxKind.InterfaceDeclaration]: 2 /* interface */,
    [ts.SyntaxKind.TypeAliasDeclaration]: 5 /* type */,
    [ts.SyntaxKind.TypeParameter]: 4 /* typeParameter */
};


text:
package kfl.converter.csv.app;

public class CSVConverterMainTest {
	public static void main(String[] args) throws Exception {
		// KF6ConverterMain.main(new String[]{"Susana_test-20150113-143324"});
		CSVConverterMain.main(new String[] { "KSN-20150113-143724" });
		// KF6ConverterMain.main(new
		// String[]{"ICS Lab School-20150113-144717"});
	}
}


text:
using System;

namespace System.Runtime.InteropServices
{
    public enum ComMemberType
    {
        Method = 0,
        PropGet = 1,
        PropSet = 2
    }
}


text:
require "rails_helper"

RSpec.describe JobsController do
  before do
    @user = User.new
    @job = Job.new
    allow(@job).to receive(:to_param).and_return('123')
    allow(controller).to receive(:authenticate_user!)
    allow(controller).to receive(:current_user).and_return(@user)
  end

  let(:current_user) { @user }

  describe 'GET index' do
    it 'should render successful' do
      expect(Job).to receive(:online).and_return(double("job", recent: [@job]))
      get :index

      expect(assigns[:jobs]).to eq [@job]
      expect(response).to be_success
    end

    context 'by keyword' do
      it 'should render successful' do
        online_jobs = double('jobs')
        expect(Job).to receive(:online).and_return(online_jobs)
        expect(online_jobs).to receive('search').with('rails').and_return([@job])

        get :index, keyword: 'rails'

        expect(assigns[:jobs]).to eq [@job]
        expect(response).to be_success
      end
    end

    context 'by user' do
      it 'should render successful' do
        user = double('user')
        expect(User).to receive(:find).with('99').and_return(user)
        expect(user).to receive(:jobs).and_return(user)
        expect(user).to receive(:recent).and_return([@job])

        get :index, user_id: 99

        expect(assigns[:jobs]).to eq [@job]
        expect(response).to be_success
      end
    end
  end

  describe 'GET show' do
    it 'should render successful' do
      expect(Job).to receive(:find).with('123').and_return(@job)
      get :show, id: 123

      expect(assigns[:job]).to eq @job
        expect(response).to be_success
    end
  end

  describe 'GET new' do
    it 'should render successful' do
      expect(Job).to receive(:new).and_return(@job)
      get :new

      expect(assigns[:job]).to eq @job
      expect(response).to be_success
    end
  end

  describe 'POST create' do
    it 'should save successful and redirect to show' do
      expect(current_user.jobs).to receive(:build).with('title' => 'abc').and_return(@job)
      expect(@job).to receive(:save).and_return(true)
      post :create, job: { title: 'abc' }

      expect(response).to be_redirect
    end

    it 'should save failed and render new' do
      post :create, job: { titie: '' }

      expect(response).to render_template(:new)
      expect(response).to be_success
    end
  end

  describe 'GET edit' do
    it 'should render successful' do
      expect(current_user.jobs).to receive(:find).with('123').and_return(@job)
      get :edit, id: 123

      expect(assigns[:job]).to eq @job
      expect(response).to be_success
    end
  end

  describe 'PUT update' do
    it 'should save successful and redirect to show' do
      expect(current_user.jobs).to receive(:find).with('123').and_return(@job)
      expect(@job).to receive(:update_attributes).with('title' => 'abc').and_return(true)
      put :update, id: 123, job: { title: 'abc' }

      expect(response).to be_redirect
    end

    it 'should save failed and render new' do
      expect(current_user.jobs).to receive(:find).with('123').and_return(@job)
      put :update, id: 123, job: { title: '' }

      expect(response).to render_template(:edit)
      expect(response).to be_success
    end
  end

  describe 'DELETE destroy' do
    it 'should delete successful' do
      expect(current_user.jobs).to receive(:find).with('123').and_return(@job)
      expect(@job).to receive(:destroy)
      delete :destroy, id: 123
      expect(response).to be_redirect
    end

  end

  describe 'GET/POST preview' do
    it 'should render successful' do
      expect(current_user.jobs).to receive(:build).with('title' => 'abc').and_return(@job)
      expect(@job).to receive(:valid?)

      post :preview, job: { title: 'abc' }

      expect(response).to be_success
    end
  end

  describe 'PUT open' do
    it 'should open job' do
      expect(current_user.jobs).to receive(:find).with('123').and_return(@job)
      expect(@job).to receive(:open)
      expect(@job).to receive(:save!)

      put :open, id: 123
      expect(response).to be_redirect
    end
  end

  describe 'PUT close' do
    it 'should open job' do
      expect(current_user.jobs).to receive(:find).with('123').and_return(@job)
      expect(@job).to receive(:close)
      expect(@job).to receive(:save!)

      put :close, id: 123
      expect(response).to be_redirect
    end
  end
end


text:
/* global using */

using("easy-ajax", "WSE.tools.compile::compile").
define("WSE.loader", function (ajax, compile) {

    function generateGameFile (mainFilePath, then) {
        compileFile(mainFilePath, function (mainFile) {
            generateGameFileFromString(mainFile, then);
        });
    }

    function generateGameFileFromString (text, then) {

        var gameDocument = parseXml(text);
        var fileDefinitions = getFileDefinitions(gameDocument);

        compileFiles(fileDefinitions, function (files) {
            files.forEach(function (file, i) {

                var type = fileDefinitions[i].type;
                var parent = gameDocument.getElementsByTagName(type)[0];

                if (!parent) {
                    parent = gameDocument.createElement(type);
                    gameDocument.documentElement.appendChild(parent);
                }

                parent.innerHTML += "\n" + file + "\n";
            });

            then(gameDocument);
        });
    }

    function generateFromString (text, then) {
        generateGameFileFromString(compile(text), then);
    }

    function compileFiles (fileDefinitions, then) {

        var loaded = 0;
        var count = fileDefinitions.length;
        var files = [];

        fileDefinitions.forEach(function (definition, i) {

            compileFile(definition.url, function (file) {

                files[i] = file;
                loaded += 1;

                if (loaded >= count) {
                    then(files);
                }
            });
        });

        if (count < 1) {
            then(files);
        }
    }

    function compileFile (path, then) {
        ajax.get(path + "?random=" + Math.random(), function (error, obj) {

            if (error) {
                console.error(error);
                return;
            }

            then(compile(obj.responseText));
        });
    }

    function parseXml (text) {
        return new DOMParser().parseFromString(text, "application/xml");
    }

    function getFileDefinitions (xml) {

        var elements = xml.getElementsByTagName("file");

        return [].map.call(elements, function (element) {
            return {
                type: element.getAttribute("type"),
                url: element.getAttribute("url")
            };
        });
    }

    return {
        generateGameFile: generateGameFile,
        generateFromString: generateFromString
    };

});


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

import java.math.*;

import javax.annotation.Generated;

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

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

/**
 * WaitActivity JSON Unmarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class WaitActivityJsonUnmarshaller implements Unmarshaller<WaitActivity, JsonUnmarshallerContext> {

    public WaitActivity unmarshall(JsonUnmarshallerContext context) throws Exception {
        WaitActivity waitActivity = new WaitActivity();

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

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

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

            if (token == FIELD_NAME || token == START_OBJECT) {
                if (context.testExpression("NextActivity", targetDepth)) {
                    context.nextToken();
                    waitActivity.setNextActivity(context.getUnmarshaller(String.class).unmarshall(context));
                }
                if (context.testExpression("WaitTime", targetDepth)) {
                    context.nextToken();
                    waitActivity.setWaitTime(WaitTimeJsonUnmarshaller.getInstance().unmarshall(context));
                }
            } else if (token == END_ARRAY || token == END_OBJECT) {
                if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
                    if (context.getCurrentDepth() <= originalDepth)
                        break;
                }
            }
            token = context.nextToken();
        }

        return waitActivity;
    }

    private static WaitActivityJsonUnmarshaller instance;

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


text:
package uk.co.slc.sfd.cp.ft.jsf.locale;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.LocaleUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import uk.co.slc.sfd.cp.ft.jsf.SpringPropertysource;

/**
 * File: LocaleForDomain.java
 *
 *  A component to manipulate the user locale in case locale
 *  not found in cookie or params it calculates
 *  locale using environment properties. Environment
 *  properties use domain calculate locale.
 *
@author slc
 *
 */
@Component
public class LocaleForDomain {

    /** Environment properties **/
    @Autowired
    private SpringPropertysource propertySource;

    /** URL Property prefix for locale **/
    public static final String URL_LOOKUP_PREFIX = "url.locale.lookup.";

    /**
     * Get locale from protocol or environment properties.
     *
     * @param request
     * @return
     */
    public Locale calculateLocale(HttpServletRequest request) {
        String locale = getLocaleFromEnvironmentProperties(request);

        return LocaleUtils.toLocale(locale);
    }

    /**
     * Check the system properties and spring properties using the servername, with a prefix.
     * @param request
     *
     * @return
     */
    private String getLocaleFromEnvironmentProperties(HttpServletRequest request) {
        String key = URL_LOOKUP_PREFIX + request.getServerName();
        return propertySource.getProperty(key);
    }

    /**
     * @return the propertySource
     */
    public SpringPropertysource getPropertySource() {
        return propertySource;
    }

    /**
     * @param propertySource the propertySource to set
     */
    public void setPropertySource(SpringPropertysource propertySource) {
        this.propertySource = propertySource;
    }
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Discodever">
    <meta name="author" content="Wish">

    <link rel="stylesheet" href="codemirror/lib/codemirror.css">
    <link rel="stylesheet" href="codemirror/theme/neat.css">

    <title>Discodever</title>

    <link rel="icon" href="img/favicon.ico" />

    <link href="css/bootstrap.min.css" rel="stylesheet">

    <link href="css/moncss.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="csshake/dist/csshake.min.css">

                    Continue, scanne la deuxième pancarte !


text:
"use strict";

Object.defineProperty(exports, "__esModule", {
    value: true
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var renderer = {
    render: function render(templatePath, context, request) {
        return "This is a custom renderer";
    }
};

exports["default"] = renderer;
module.exports = exports["default"];


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Puccinia chasmatis Ellis & Everh.

### Remarks
null


text:
'use babel';

import NameThatColorView from '../lib/name-that-color-view';

describe('NameThatColorView', () => {
  it('has one valid test', () => {
    expect('life').toBe('easy');
  });
});


text:
class HealthPost < ActiveRecord::Base
  include SendsMessages

  belongs_to :health_center
  has_many :agents
  has_many :tecnicos

  after_create :set_random_code

  def set_random_code
    random = rand(1000..9999).to_s
    update_attributes(code: random)
  end
end


text:
package helios.samples.validators;

import static helios.Helios.validate;
import static helios.Validators.minOfString;

import static org.junit.Assert.assertEquals;

import helios.ValidatorError;

import java.util.List;
import org.junit.Test;

public class MinOfStringTest {

    @Test public void testMinOfString() {
        String name = "John";
        List<ValidatorError> errors = validate("name", name, minOfString(5));

        assertEquals(errors.size(), 1);
        assertEquals(errors.get(0).key, "string.min.notmet");
    }
}


text:
namespace P01_StudentSystem.Data.Models
{
    using System;
    using Enums;

    public class Homework
    {
        public int HomeworkId { get; set; }

        public string Content { get; set; }

        public ContentType ContentType { get; set; }

        public DateTime SubmissionTime { get; set; }

        public int StudentId { get; set; }
        public Student Student { get; set; }

        public int CourseId { get; set; }
        public Course Course { get; set; }
    }
}


text:
package com.podio.space;

public class SpaceTopMembers {

	private SpaceTopMemberGroup employee;

	private SpaceTopMemberGroup external;

	public SpaceTopMemberGroup getEmployee() {
		return employee;
	}

	public void setEmployee(SpaceTopMemberGroup employee) {
		this.employee = employee;
	}

	public SpaceTopMemberGroup getExternal() {
		return external;
	}

	public void setExternal(SpaceTopMemberGroup external) {
		this.external = external;
	}
}


text:
<TITLE>Review for Saving Grace (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">

Saving Grace (2000)

reviewed by
Dennis Schwartz

SAVING GRACE (director: Nigel Cole; screenwriter: Craig Ferguson/Mark
Crowdy/based on a story by Crowdy; cinematographer: John de Borman;
editor: Alan Strachan; cast: Brenda Blethyn (Grace Trevethyn), Craig
Ferguson (Matthew), Martin Clunes (Dr. Bamford), Tcheky Karyo (Jacques),
Jamie Foreman (China), Bill Bailey (Vince, low-level drug dealer),
Valerie Edmond (Nicky), Tristan Sturrock (Harvey), Clive Merrison
(Quentin), Leslie Phillips (Vicar), Diana Quick (Honey), Phyllida Law
(Margaret), Linda Kerr Scott (Diana), Ken Campbell (Sgt. Alfred);
Runtime: 93; 2000-UK)

Reviewed by Dennis Schwartz

Another formula 'feel good' quirky comedy from the British Isles, much
like "Waking Ned Devine," and a host of other popular low budget movies
that turned a nifty profit off a thin story line. It is filled with
likable establishment types living in a quaint town, such as tolerant
vicars and policemen, plenty of eccentrics, and of locals who stick
together through thick and thin. The strength of this film lies in its
rational theme, that smoking pot should be legalized since it is even
less dangerous than drinking alcohol. The film is tolerable until after
its first hour, it then falls completely apart, becoming just too absurd
to consider as anything but sitcom fluff gone completely bananas.

But its long overdue message of decriminalization for certain drugs is
on target
and allows the film to, at least, be viewed as containing a pertinent
message. Its message is especially appropriate nowadays considering the
'War on Drugs' is about to be escalated into Colombia. The drug war has
been a total failure so far and with no hope of it being won by law
enforcement methods in the future, it has so far just ended up causing
America's jails to be overcrowded with non-violent drug prisoners and
offers zero hope of curtailing America's drug usage and drug supply.
Billions of dollars have just been allocated by Congress to get
officially involved in the Colombian Civil War, by backing a corrupt
government (Remember Vietnam!) with the idea that military might could
stop the cocaine and marijuana harvests in that country. Everything
about this proposed action smacks of Vietnam, with this scenario closer
to home, so what probably awaits such an effort is a more futile result
than the other war.

The film's mild theme of showing squares getting into the weed business
and finding it acceptable by the public, something that should have been
accepted some 40 years ago, is a theme long overdue for public
acceptance, but one that is better received late than never. There has
to be some common sense in distinguishing what drugs should be legalized
and how to educate the public on this, rather than making it a police
matter altogether.

The film opens in a quaint Cornish seaside village at the funeral of the
husband of a middle-aged woman, Grace (Brenda Blethyn), who fell out of
an airplane, evidently committing suicide. The widow soon finds out her
husband was a bigger bastard than she imagined. He left her with a stack
of enormous bills and put up, without her knowledge, their comfortable
300 year old house as collateral for a failed business venture by taking
out a second mortgage. The widow finds herself bankrupt and with no
marketable skills to pay back her husband's enormous debts and prevent
her from losing the house and becoming homeless. She also knows that he
was having an affair with a sophisticated woman from London, Honey
(Quick). What makes the affair doubly unsatisfying, is that when
conferring with Honey, she finds out that he was a tiger with her in bed
but refrained from having sex with her.

Even though the locals try to help the bankrupt widow out as best they
can, the creditors swoop down on her like vultures. Her gardener and
handyman, Matthew (Ferguson), decides to stay on with her, despite his
last check bouncing. Since she is an expert amateur horticulturist, he
convinces her to help him revive his hemp plants, which he grows for
private use. The two soon see this as a possibly big business
opportunity, as Grace works miracles with the plants which turn out to
be high-quality stuff. For Grace, this is a way to save her house and
get her out of debt; for the Scotsman, Matthew, it offers a chance for
him to continue to live in this beautiful village and earn enough money
to marry his fisherman girlfriend Nicky (Valerie).

The locals all let the illegal activities go on undisturbed: the police
sergeant (Campbell) pretends not to notice what the bright lights in
Grace's greenhouse is for, the friendly vicar (Phillips) counsels about
the wisdom of not taking action over something that you can't control,
and the doctor (Clunes) enjoys smoking the weed for recreation.

The story becomes incredulous when Grace decides to go to London and
score with a big-time drug dealer instead of having Matthew go, because
she finds out Nicky is pregnant and doesn't want Matthew to end up in
jail. It is interesting to note, that no one thinks smoking grass is bad
for you, only that one can go to jail.

The scene with Grace on Portobello Road in the Notting Hill section of
London, trying to find a drug dealer, while dressed out of place, in a
white dress and hat one would wear to a tea party in Cornwall but not on
the streets of Notting Hill while looking to make a drug deal, was
completely hokey and the film descended into a huge black hole, whereby
it never recovered its dignity.

The film moves into the formula mode, whereas Grace beats the odds
against her failing to survive, as she meets an international drug
dealer, a Frenchman (Tcheky Karyo), who is first seen threatening to cut
off her fingers but later becomes her business partner and husband as
she becomes a millionaire and writes a best selling fiction book about
her experiences, thereby becoming a celebrity. Things work out in a
ridiculous way, where there is a total breakdown in the character
development of Grace, where this matronly figure suddenly becomes merely
a cartoon figure instead of live flesh and blood. There are a lot of
silly giggles that come forth and the film has just enough of an acting
performance by Brenda Blethyn to breathe air into it before it comes to
its belated finale, as it drones on with its transparently gratuitous
upbeat tone, until it makes the audience feel good that the sweet old
lady succeeded. This 'unhip' film leaves one with the impression that
smoking and growing pot is silly, but should be tolerated as something
naughty middle-aged widows screwed by their terrible former husbands
must do in order not to remain destitute. Ummm!

REVIEWED ON 9/13/2000     GRADE: C-

Dennis Schwartz: "Ozus' World Movie Reviews"

http://www.sover.net/~ozus

ozus@sover.net

© ALL RIGHTS RESERVED   DENNIS SCHWARTZ

The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).

The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.

Please direct comments/criticisms of the review to relevant newsgroups.

Broken URLs inthe reviews are the responsibility of the author.

The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.

Related links: index of all rec.arts.movies.reviews reviews


text:
'use strict';
var notify = require("gulp-notify");

module.exports = function () {
	var args = Array.prototype.slice.call(arguments);

	// Send error to notification center with gulp-notify
	notify.onError({
		title: "Compile Error",
		message: "<%= error.message %>"
	}).apply(this, args);

  console.log(arguments);

	// Keep gulp from hanging on this task
	this.emit('end');
};


text:
package io.fabric8.kubernetes.client.dsl;

/**
 * @param <O>   Where to write err to.
 * @param <P>   Where to read err from.
 * @param <T>   The return type.
 */
public interface Outputable<O, P, T> {

    T writingOutput(O in);

    T readingOutput(P in);

    T redirectingOutput();
}


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

<TITLE>
Equipment
</TITLE>

<META NAME="date" CONTENT="2010-04-30">

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

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

gme.cacore_cacore._3_2.edu_northwestern_radiology

Class Equipment

java.lang.Object
  gme.cacore_cacore._3_2.edu_northwestern_radiology.Equipment

public class Equipment
extends java.lang.Object

Java class for Equipment complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Equipment">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
       </sequence>
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
       <attribute name="manufacturer" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="manufacturerModelName" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="softwareVersion" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>

Field Summary

protected  java.math.BigInteger
id

protected  java.lang.String
manufacturer

protected  java.lang.String
manufacturerModelName

protected  java.lang.String
softwareVersion

Constructor Summary

Equipment()

Method Summary

 java.math.BigInteger
getId()

          Gets the value of the id property.

 java.lang.String
getManufacturer()

          Gets the value of the manufacturer property.

 java.lang.String
getManufacturerModelName()

          Gets the value of the manufacturerModelName property.

 java.lang.String
getSoftwareVersion()

          Gets the value of the softwareVersion property.

 void
setId(java.math.BigInteger value)

          Sets the value of the id property.

 void
setManufacturer(java.lang.String value)

          Sets the value of the manufacturer property.

 void
setManufacturerModelName(java.lang.String value)

          Sets the value of the manufacturerModelName property.

 void
setSoftwareVersion(java.lang.String value)

          Sets the value of the softwareVersion property.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

id

protected java.math.BigInteger id

manufacturer

protected java.lang.String manufacturer

manufacturerModelName

protected java.lang.String manufacturerModelName

softwareVersion

protected java.lang.String softwareVersion

Constructor Detail

Equipment

public Equipment()

Method Detail

getId

public java.math.BigInteger getId()

Gets the value of the id property.

Returns:
possible object is
     BigInteger

setId

public void setId(java.math.BigInteger value)

Sets the value of the id property.

Parameters:
value - allowed object is
     BigInteger

getManufacturer

public java.lang.String getManufacturer()

Gets the value of the manufacturer property.

Returns:
possible object is
     String

setManufacturer

public void setManufacturer(java.lang.String value)

Sets the value of the manufacturer property.

Parameters:
value - allowed object is
     String

getManufacturerModelName

public java.lang.String getManufacturerModelName()

Gets the value of the manufacturerModelName property.

Returns:
possible object is
     String

setManufacturerModelName

public void setManufacturerModelName(java.lang.String value)

Sets the value of the manufacturerModelName property.

Parameters:
value - allowed object is
     String

getSoftwareVersion

public java.lang.String getSoftwareVersion()

Gets the value of the softwareVersion property.

Returns:
possible object is
     String

setSoftwareVersion

public void setSoftwareVersion(java.lang.String value)

Sets the value of the softwareVersion property.

Parameters:
value - allowed object is
     String

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


text:
package com.arjuna.databroker.tests.control.xmlconfig;

import com.arjuna.databroker.data.DataFlowNode;

public interface DataDispatcher<T> extends DataFlowNode
{
    public void dispatch(T data);
}


text:
package net.lshift.diffa.adapter.changes;

import net.lshift.diffa.adapter.common.MissingMandatoryFieldException;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.joda.time.DateTime;

import java.util.Map;

/**
 * Defines an event that is sent from a adapter to the agent indicating that an internal entity has changed.
 */
public class ChangeEvent {
  private String id;
  private String version;
  private String parentVersion;
  private DateTime lastUpdated;
  private Map<String, String> attributes;

  /**
   * Constructs a ChangeEvent with no attributes when this change was initiated directly originally by this application.
   */
  public static ChangeEvent forChange(String id, String version, DateTime lastUpdated) {
    return new ChangeEvent(id, version, null, lastUpdated, null);
  }
  /**
   * Constructs a ChangeEvent with no attributes when this change was initiated directly originally by this application.
   */
  public static ChangeEvent forChange(String id, String version, DateTime lastUpdated, Map<String, String> attributes) {
    return new ChangeEvent(id, version, null, lastUpdated, attributes);
  }

  /**
   * Constructs a change event with no attributes for an event that was triggered by another system. The version provided
   * by the other system should be included if different to this system's version to allow for correlation.
   */
  public static ChangeEvent forTriggeredChange(String id, String version, String parentVersion, DateTime lastUpdated) {
    return new ChangeEvent(id, version, parentVersion, lastUpdated, null);
  }
  /**
   * Constructs a change event with attributes for an event that was triggered by another system. The version provided
   * by the other system should be included if different to this system's version to allow for correlation.
   */
  public static ChangeEvent forTriggeredChange(String id, String version, String parentVersion, DateTime lastUpdated, Map<String, String> attributes) {
    return new ChangeEvent(id, version, parentVersion, lastUpdated, attributes);
  }

  public ChangeEvent() {
    this(null, null, null, null, null);
  }

  public ChangeEvent(String id, String version, String parentVersion, DateTime lastUpdated, Map<String, String> attributes) {
    this.id = id;
    this.version = version;
    this.parentVersion = parentVersion;
    this.lastUpdated = lastUpdated;
    this.attributes = attributes;
  }

  @JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }

  @JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
  public String getVersion() {
    return version;
  }
  public void setVersion(String version) {
    this.version = version;
  }

  @JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
  public String getParentVersion() {
    return parentVersion;
  }
  public void setParentVersion(String parentVersion) {
    this.parentVersion = parentVersion;
  }

  @JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
  public DateTime getLastUpdated() {
    return lastUpdated;
  }
  public void setLastUpdated(DateTime lastUpdated) {
    this.lastUpdated = lastUpdated;
  }

  @JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
  public Map<String, String> getAttributes() {
    return attributes;
  }
  public void setAttributes(Map<String, String> attributes) {
    this.attributes = attributes;
  }

  /**
   * Verifies that the mandatory fields are set.
   * @throws MissingMandatoryFieldException If a mandatory field is missing
   */
  public void ensureContainsMandatoryFields() {
    if (id == null || id.length() == 0) {
      throw new MissingMandatoryFieldException("id");
    }
    if (version == null || version.length() == 0) {
      throw new MissingMandatoryFieldException("version");
    }
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ChangeEvent that = (ChangeEvent) o;

    if (attributes != null ? !attributes.equals(that.attributes) : that.attributes != null) return false;
    if (id != null ? !id.equals(that.id) : that.id != null) return false;
    if (lastUpdated != null ? !lastUpdated.equals(that.lastUpdated) : that.lastUpdated != null) return false;
    if (parentVersion != null ? !parentVersion.equals(that.parentVersion) : that.parentVersion != null) return false;
    if (version != null ? !version.equals(that.version) : that.version != null) return false;

    return true;
  }

  @Override
  public int hashCode() {
    int result = id != null ? id.hashCode() : 0;
    result = 31 * result + (version != null ? version.hashCode() : 0);
    result = 31 * result + (parentVersion != null ? parentVersion.hashCode() : 0);
    result = 31 * result + (lastUpdated != null ? lastUpdated.hashCode() : 0);
    result = 31 * result + (attributes != null ? attributes.hashCode() : 0);
    return result;
  }

  @Override
  public String toString() {
    return "ChangeEvent{" +
      "id='" + id + '\'' +
      ", version='" + version + '\'' +
      ", parentVersion='" + parentVersion + '\'' +
      ", lastUpdated=" + lastUpdated +
      ", attributes=" + attributes +
      '}';
  }
}


text:
namespace PushNotifications.Api.Host
{
    public class PushNotificationsApiHostAssembly { }
}


text:
@value v_def: red;
@value v_other-other: green;
@value s-white: white;
@value m-small: (min-width: 320px);


text:
.calendars {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.calendar .silde {
    -webkit-transition: .5s;
    transition: .5s;
}
.calendar {
    display: none;
	position: fixed;
	left: 0;
	top: 100%;
	width: 100%;
	height: 100%;
	font-family: arial, 'Hiragino Sans GB', 'Microsoft Yahei', 'SimSun', \5b8b\4f53, Tahoma, Arial, Helvetica, STHeiti;
    -webkit-transition: .3s;
    font-size: 12px;
    transition: .3s;
    opacity: 1;
}
.calendar.active {
    display: block;
	top: 0;
    z-index: 100;
}
.calendar .calendar-mask,
.calendar-content {
	position: absolute;
	bottom: 0;
	width: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.calendar .calendar-mask {
	left: 0;
	height: 100%;
	background-color: #000;
	opacity: .8;
    -webkit-transition: opacity .35s;
    -moz-transition: opacity .35s;
    -ms-transition: opacity .35s;
    -o-transition: opacity .35s;
	transition: opacity .35s;
}
.calendar.close {
    opacity: 0;
}
.calendar-content {
    background-color: #FFFFFF;
    font-size: 10px;
    color: #303030;
    overflow: hidden;
}
.calendar a {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.calendar .calendar-header {
    line-height: 40px;
    font-size: 1.75em;
    overflow: hidden;
}
.calendar .calendar-header > div {
    float: left;
    width: 33.3333%;
    text-align: center;
    overflow: hidden;
}
.calendar .calendar-header .confirm_btn, .calendar .calendar-header .cancel_btn{
	width: 40%;
    font-size: 13px;
    /* float: left; */
    background: #2FCA60;
    color: #fff;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 5px;
    height: 30px;
    line-height: 30px;
}
.calendar .calendar-header a:first-of-type {
    float: left;
}
.calendar .calendar-header a:last-of-type {
    float: right;
}
.calendar .switch-btn,.calendar-title {
    display: inline-block;
    border-radius: 4px;
    line-height: 30px;
}
.calendar .switch-btn {
    width: 20px;
    margin: 5px;
    color: #39b5b8;
    font-family: "SimHei", "SimSun";
}
.calendar .calendar-title {
    /*padding: 0 6%;*/
    color: #333;
}
.calendar .switch-btn:active,
.calendar .calendar-title:active,
.calendar .calendar-header a.active {
    background-color: #39b5b8;
    color: #fff;
}
.calendar .calendar-week {
    overflow: hidden;
}
.calendar .calendar-week span {
    float: left;
    width: 14.28%;
    font-size: 1.6em;
    line-height: 34px;
    text-align: center;
}
.calendar .calendar-list {
    position: relative;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    width: 300%;
    height: 210px;
    z-index: 5;
    -webkit-transform: translate3D(-33.3333%, 0, 0);
     transform: translate3D(-33.3333%, 0, 0);
}
.calendar .calendar-list > div {
    width: 33.3333%;
    overflow: hidden;
}
.calendar .calendar-list.prev-to {
    -webkit-transform: translate3D(0, 0, 0);
    transform: translate3D(0, 0, 0);
}
.calendar .calendar-list.next-to {
    -webkit-transform: translate3D(-66.6666%, 0, 0);
    transform: translate3D(-66.6666%, 0, 0);
}
.calendar .calendar-list span {
    float: left;
    width: 14.28571%;
    font-size: 1.5em;
    line-height: 34px;
    text-align: center;
}

.calendar .calendar-list a {
    display: inline-block;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    color: #333;
}

.calendar .calendar-list a.process{
	background: #eee;
}
.calendar .calendar-list a:active, .calendar .calendar-list a.active {
    background-color: #26a1a4;
    color: #fff;
}

.calendar .calendar-week .weekend,
.calendar .calendar-list .weekend,
.calendar .calendar-week .weekend:active,
.calendar .calendar-list .weekend:active {
    color: #E59313;
}

.calendar .calendar-list .expire,
.calendar .calendar-list .expire.pasted {
    color: #B5B5B5;
}
.calendar .calendar-list .expire.pasted.today {
    color: #e7e7e7;
    background: rgba(47, 202, 96, 0.38);
}
.calendar .calendar-list .expire:active {
    color: #B5B5B5;
    background-color: #eee;
}
.calendar .calendar-list .pasted.shield {
    position: relative;
}
.calendar .calendar-list .pasted.shield:active {
    color: #333;
}
.calendar .calendar-list .expire.pasted.shield:active {
    color: #B5B5B5;
}
.calendar .calendar-list .weekend.pasted.shield:active {
    color: #E59313;
}
.calendar .calendar-list .pasted.shield:before,
.calendar .calendar-list .pasted.shield:after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
}
.calendar .calendar-list .pasted.shield:before {
    height: 100%;
    border: 1px solid #FFA0A0;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.calendar .calendar-list .pasted.shield:after {
    top: 50%;
    width: 96%;
    height: 2px;
    background-color: #FFA0A0;
    -webkit-transform: rotate(40deg);
    transform: rotate(45deg);
}

.calendar .calendar-list .prev-m,
.calendar .calendar-list .next-m {
    color: #DBDBDB;
}
.calendar .calendar-list .next-m.pasted.shield:before,
.calendar .calendar-list .prev-m.pasted.shield:before {
    border-color: #D2D2D2;
}
.calendar .calendar-list .next-m.pasted.shield:after,
.calendar .calendar-list .prev-m.pasted.shield:after {
    background-color: #D2D2D2;
}
.calendar .calendar-list .today.shield {
    background-color: #E4E4E4;
    color: #333;
}
.calendar .calendar-list .today.prev-m,
.calendar .calendar-list .today.next-m,
.calendar .calendar-list .today.prev-m:active,
.calendar .calendar-list .today.next-m:active {
    color: #fff;
    background-color: #CAFCD1;
}
.calendar .calendar-list .prev-m:active,
.calendar .calendar-list .next-m:active {
    background-color: #e3e2e2;
}

.calendar .calendar-list a.today,
.calendar .calendar-list .today:active {
    background-color: #2FCA60;
    color: #fff;
}
.calendar .calendar-months,
.calendar .calendar-years,
.calendar .calendar-time {
	display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 210px;
    background-color: #fff;
    overflow: hidden;
    -webkit-box-shadow: 0 -1px 6px #eee;
    box-shadow: 0 -1px 6px #eee;
    z-index: 8;
}
.calendar .calendar-months.active,
.calendar .calendar-years.active,
.calendar .calendar-time.active {
    display: block;
}
.calendar .calendar-months span,
.calendar .calendar-years span,
.calendar .calendar-time span {
    float: left;
    width: 33.3333%;
    padding: 11px 0;
    height: 52px;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.calendar .calendar-time span {
    width: 25%;
    padding: 5px 0;
    height: 35px;
}
.calendar .calendar-months a,
.calendar .calendar-years a,
.calendar .calendar-time a {
    display: inline-block;
    width: 80%;
    font-size: 1.6em;
    line-height: 30px;
    color: #333;
    letter-spacing: 2px;
    border-radius: 4px;
}
.calendar .calendar-time a {
    line-height: 25px;
    font-size: 1.45em;
}
.calendar .calendar-months a:active,
.calendar .calendar-years a:active,
.calendar .calendar-time a:active {
    background-color: #26a1a4;
    color: #fff;
}
.calendar .calendar-months a.active,
.calendar .calendar-years a.active {
    background-color: #39b5b8;
    color: #fff;
}
.calendar .calendar-time .expire.pasted {
    color: #ccc;
}
.calendar .calendar-time .expire.pasted:active,
.calendar .calendar-list .expire.pasted:active,
.calendar .calendar-list .pasted.shield:active {
    background: none;
}
.calendar .calendar-years.active {
    display: -webkit-box;
    display: box;
    -webkit-transition: .4s;
    transition: .4s;
}


text:
package com.ztesoft.ip.update;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.channels.FileChannel;

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.ProgressBar;
import org.eclipse.swt.widgets.Shell;

import com.ztesoft.ip.utils.LayoutUtils;
import com.ztesoft.ip.utils.PropertiesUtil;

import eclipse.wb.swt.SWTResourceManager;

public class DownFile extends Dialog {

	private static String downurl;
	private static String fileName;
	private static String filePath;
	protected Object result;
	protected Shell shell;
	private ProgressBar updatepro;
	private Button begin;
	private Button cacel;
	static {
		PropertiesUtil.load("resouce/config", "value.config");

		downurl = PropertiesUtil.getProperty("updateUrl");
		fileName = PropertiesUtil.getProperty("downloadFilename");
		filePath = PropertiesUtil.getProperty("downloadFilefolder");
	}

	/**
	 * Create the dialog.
	 *
	 * @param parent
	 * @param style
	 */
	public DownFile(Shell parent, int style) {
		super(parent, style);
		setText("SWT Dialog");
	}

	/**
	 * Open the dialog.
	 *
	 * @return the result
	 */
	public Object open() {
		createContents();
		shell.open();
		LayoutUtils.center(shell);

		updatepro = new ProgressBar(shell, SWT.HORIZONTAL);

		updatepro.setBounds(109, 21, 337, 17);
		updatepro.setMaximum(100);
		updatepro.setMinimum(0);

		Label label = new Label(shell, SWT.NONE);
		label.setBounds(42, 21, 61, 17);
		label.setText("下载进度");

		Label label_1 = new Label(shell, SWT.NONE);
		label_1.setBounds(152, 84, 294, 17);
		label_1.setText("下载完成将自动重启更新!");

		begin = new Button(shell, SWT.NONE);
		begin.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				down();
			}
		});
		begin.setBounds(80, 127, 80, 27);
		begin.setText("开 始");

		cacel = new Button(shell, SWT.NONE);
		cacel.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				shell.close();
			}
		});
		cacel.setBounds(284, 127, 80, 27);
		cacel.setText("取 消");
		shell.layout();
		Display display = getParent().getDisplay();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		return result;
	}

	protected void down() {
		// TODO Auto-generated method stub
		cacel.setEnabled(false);
		HttpURLConnection httpURLConnection = null;
		URL url = null;
		BufferedInputStream bis = null;
		byte[] buf = new byte[10240];
		int size = 0;
		File filea = new File(filePath);
		if (!filea.exists()) {
			filea.mkdir();
		}
		String remoteUrl = downurl;

		// 检查本地文件
		RandomAccessFile rndFile = null;
		File file = new File(filePath + "//" + fileName);
		long remoteFileSize = getRemoteFileSzie(remoteUrl);
		long nPos = 0;

		System.out.println("remote size" + remoteFileSize + "--" + (int) remoteFileSize);
		long every = remoteFileSize / 100;
		System.out.println("every size" + every);

		if (file.exists()) {
			long localFileSzie = file.length();
			if (localFileSzie < remoteFileSize) {
				System.out.println("文件续传...");
				nPos = localFileSzie;
			} else {
				System.out.println("文件存在,重新下载...");
				file.delete();
				try {
					file.createNewFile();
				} catch (Exception e) {
					// TODO: handle exception
					e.printStackTrace();
				}
			}

		} else {
			// 建立文件
			try {
				file.createNewFile();
			} catch (Exception e) {
				// TODO: handle exception
				e.printStackTrace();
			}
		}

		// 下载文件
		try {
			url = new URL(remoteUrl);
			httpURLConnection = (HttpURLConnection) url.openConnection();
			// 设置User-Agent
			httpURLConnection.setRequestProperty("User-Agent", "Net");
			// 设置续传开始
			httpURLConnection.setRequestProperty("Range", "bytes=" + nPos + "-");
			// 获取输入流
			bis = new BufferedInputStream(httpURLConnection.getInputStream());
			rndFile = new RandomAccessFile(filePath + "\\" + fileName, "rw");
			rndFile.seek(nPos);
			long upsize = 0L;// 递增计数
			int num = 0;
			while ((size = bis.read(buf)) != -1) {
				// if (i > 500) break;
				rndFile.write(buf, 0, size);
				upsize += size;
				num = (int) (upsize / every);
				System.out.println(num + "///////////");
				updatepro.setSelection(num);
			}
			updatepro.setSelection(100);
			httpURLConnection.disconnect();

			dorestart();
		} catch (Exception e) {
			// TODO: handle exception
			MessageDialog.openError(shell, "网络异常", "网络连接失败,请检查网络环境!");
			return;
		}
	}

	private void dorestart() {
		// TODO Auto-generated method stub
		File thisfile = new File("update_fat.jar");
		System.out.println(thisfile.getAbsolutePath());
		thisfile.renameTo(new File("update_fat-old.jar"));
		copy("updatefolder/update_fat.jar", "update_fat.jar");
	}

	private void copy(String here, String to) {
		// TODO Auto-generated method stub
		File s = new File(here);
		File t = new File(to);
		FileInputStream fi = null;
		FileOutputStream fo = null;
		FileChannel in = null;
		FileChannel out = null;
		try {
			fi = new FileInputStream(s);
			fo = new FileOutputStream(t);
			in = fi.getChannel();// 得到对应的文件通道
			out = fo.getChannel();// 得到对应的文件通道
			in.transferTo(0, in.size(), out);// 连接两个通道,并且从in通道读取,然后写入out通道
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				fi.close();
				in.close();
				fo.close();
				out.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}

	}

	/**
	 * Create contents of the dialog.
	 */
	private void createContents() {
		shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.PRIMARY_MODAL);
		shell.setSize(498, 192);
		shell.setText("更新程序");
		// 禁止shell的关闭按钮 esc

		shell.addKeyListener(new KeyListener() {

			@Override
			public void keyReleased(KeyEvent e) {
				// TODO Auto-generated method stub
				System.out.println(e.keyCode);
				e.doit = false;
			}

			@Override
			public void keyPressed(KeyEvent e) {
				// TODO Auto-generated method stub
				System.out.println(e.keyCode);
				e.doit = false;
			}
		});
	}

	public static long getRemoteFileSzie(String url) {
		long size = 0;
		try {
			HttpURLConnection httpUrl = (HttpURLConnection) (new URL(url)).openConnection();
			size = httpUrl.getContentLength();
			httpUrl.disconnect();
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		}
		return size;
	}
}


text:
module BetfairApiNgRails
  module Api
    module Data
      class CompetitionResult < Api::Data::Base
        COMPETITION_RESULT_ATTRS = [
          :market_count,
          :competition_region,
          {competition: {type: BetfairApiNgRails::Competition} }
        ]

        attributes COMPETITION_RESULT_ATTRS
      end
    end
  end
end


text:
<!doctype html>

        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>angular-example-app documentation</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
	   <link rel="stylesheet" href="../styles/style.css">
        <link rel="stylesheet" href="../styles/dark.css">

            angular-example-app documentation
            <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>

<input type="text" placeholder="Type to search">
            <compodoc-menu></compodoc-menu>

                   <compodoc-menu mode="normal"></compodoc-menu>

Modules

MaterialModule

        Info

        Source

File

            src/app/shared/modules/material.module.ts

import { MatDialogModule } from '@angular/material/dialog';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatGridListModule } from '@angular/material/grid-list';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatListModule } from '@angular/material/list';
import { MatMenuModule } from '@angular/material/menu';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatSliderModule } from '@angular/material/slider';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { MatTooltipModule } from '@angular/material/tooltip';

import { NgModule } from '@angular/core';

@NgModule({
  imports: [
    MatButtonModule,
    MatMenuModule,
    MatIconModule,
    MatCardModule,
    MatSliderModule,
    MatProgressBarModule,
    MatAutocompleteModule,
    MatInputModule,
    MatGridListModule,
    MatSnackBarModule,
    MatProgressSpinnerModule,
    MatTooltipModule,
    MatListModule,
    MatDialogModule,
  ],
  exports: [
    MatButtonModule,
    MatMenuModule,
    MatIconModule,
    MatCardModule,
    MatSliderModule,
    MatProgressBarModule,
    MatAutocompleteModule,
    MatInputModule,
    MatGridListModule,
    MatSnackBarModule,
    MatProgressSpinnerModule,
    MatTooltipModule,
    MatListModule,
    MatDialogModule,
  ],
})
export class MaterialModule {}

 results matching ""

No results matching ""

               <input type="checkbox">

                    <svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
                    <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
                    </svg>


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<!-- <parent> <groupId>io.coala</groupId> <artifactId>coala-parent</artifactId>
		<version>1.0.0-SNAPSHOT</version> </parent> -->

	<groupId>io.coala</groupId>
	<artifactId>coala-dist</artifactId>
	<version>1.0.0</version>
	<packaging>pom</packaging>

	<name>${project.artifactId} ${project.version}</name>
	<url>http://coala.io/</url>
	<description>
		COALA distributable build configuration
		$Id: a7cfb1aa16c1231c10279f39bc8efdeab388653c $
		$URL: https://dev.almende.com/svn/abms/coala-dist/pom.xml $
	</description>

	<organization>
		<name>Almende</name>
		<url>http://www.almende.com/</url>
	</organization>

	<!-- TODO Consider using the https://maven.apache.org/plugins/maven-shade-plugin/ -->

	<properties>
		<maven-deploy-plugin.version>2.7</maven-deploy-plugin.version>
		<maven-surefire-plugin.version>2.17</maven-surefire-plugin.version>
		<wagon-ssh.version>1.0-beta-7</wagon-ssh.version>
		<skipTests>true</skipTests>
		<maven.test.skip>${skipTests}</maven.test.skip>
	</properties>

	<build>
		<plugins>

			<plugin>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>${maven-deploy-plugin.version}</version>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.wagon</groupId>
						<artifactId>wagon-ssh</artifactId>
						<version>${wagon-ssh.version}</version>
					</dependency>
				</dependencies>
			</plugin>

			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>${maven-surefire-plugin.version}</version>
				<configuration>
					<skipTests>${skipTests}</skipTests>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
null

#### Original name
Lecidea discolorella Nyl.

### Remarks
null


text:
/** Automatically generated file. DO NOT MODIFY */
package mx.suh.crro.kuwinda;

public final class BuildConfig {
    public final static boolean DEBUG = true;
}


text:
import { IMessage } from '../contracts';
import { IClient } from '../contracts';
import { injectable, inject } from 'inversify';
import { TYPES } from '../ioc/types';
import { commands } from '../static';
import { makeSubscription } from '../helpers/command';
import { hashName } from '../helpers';

@injectable()
export class HashName implements ICommand, IHasHelp {

  _command: string = commands.namehash;

  constructor(
    @inject(TYPES.IClient) private _client: IClient,
  ) { }

  attach(): void {
    makeSubscription(this._client.getCommandStream(this._command),
      this.subscription.bind(this))
  }

  private async subscription(imsg: IMessage): Promise<any> {
    const target = imsg.Content || imsg.author;

    const result = hashName(target);

    return imsg.send(result)
  }

  getHelp(): IHelp[] {
    return [
      {
        Key: this._command,
        Message: "hash your name or the mentioned user",
        Usage: `USER`
      }
    ]
  }
}


text:
import notify from 'osg/notify';
import utils from 'osg/utils';
import osgMath from 'osg/math';
import NodeVisitor from 'osg/NodeVisitor';
import CullSettings from 'osg/CullSettings';
import CullStack from 'osg/CullStack';
import { mat4 } from 'osg/glMatrix';
import MatrixTransform from 'osg/MatrixTransform';
import AutoTransform from 'osg/AutoTransform';
import Projection from 'osg/Projection';
import LightSource from 'osg/LightSource';
import cullVisitorHelper from 'osg/cullVisitorHelper';
import Geometry from 'osg/Geometry';
import RenderLeaf from 'osg/RenderLeaf';
import RenderBin from 'osg/RenderBin';
import RenderStage from 'osg/RenderStage';
import Node from 'osg/Node';
import Lod from 'osg/Lod';
import Switch from 'osg/Switch';
import PagedLOD from 'osg/PagedLOD';
import Camera from 'osg/Camera';
import TransformEnums from 'osg/transformEnums';
import { vec3 } from 'osg/glMatrix';
import Skeleton from 'osgAnimation/Skeleton';
import RigGeometry from 'osgAnimation/RigGeometry';
import Bone from 'osgAnimation/Bone';
import MorphGeometry from 'osgAnimation/MorphGeometry';
import PooledArray from 'osg/PooledArray';
import PooledResource from 'osg/PooledResource';

var createRenderLeaf = function() {
    return new RenderLeaf();
};

var createCullSettings = function() {
    return new CullSettings();
};

/**
 * CullVisitor traverse the tree and collect Matrix/State for the rendering traverse
 * @class CullVisitor
 */
var CullVisitor = function() {
    NodeVisitor.call(this, NodeVisitor.TRAVERSE_ACTIVE_CHILDREN);
    CullSettings.call(this);
    CullStack.call(this);

    this._rootStateGraph = undefined;
    this._currentStateGraph = undefined;
    this._currentRenderBin = undefined;
    this._currentRenderStage = undefined;
    this._rootRenderStage = undefined;
    this._computedNear = Number.POSITIVE_INFINITY;
    this._computedFar = Number.NEGATIVE_INFINITY;

    this._camera = undefined;

    this._pooledLeaf = new PooledResource(createRenderLeaf);

    this._pooledRenderStages = {};

    this._pooledCullSettings = new PooledResource(createCullSettings);

    this._renderBinStack = new PooledArray();
    this.visitorType = NodeVisitor.CULL_VISITOR;

    this._identityMatrix = mat4.create();

    this._renderer = undefined;
    this._renderStageType = RenderStage;

    this._numCamera = 0;
    this._numMatrixTransform = 0;
    this._numProjection = 0;
    this._numNode = 0;
    this._numLightSource = 0;
    this._numGeometry = 0;
};

CullVisitor.registerApplyFunction = cullVisitorHelper.registerApplyFunction;
CullVisitor.getApplyFunction = cullVisitorHelper.getApplyFunction;

utils.createPrototypeObject(
    CullVisitor,
    utils.objectInherit(
        CullStack.prototype,
        utils.objectInherit(NodeVisitor.prototype, {
            applyFunctionArray: cullVisitorHelper.applyFunctionArray,

            distance: function(coord, matrix) {
                return -(
                    coord[0] * matrix[2] +
                    coord[1] * matrix[6] +
                    coord[2] * matrix[10] +
                    matrix[14]
                );
            },

            getComputedNear: function() {
                return this._computedNear;
            },

            getComputedFar: function() {
                return this._computedFar;
            },

            resetStats: function() {
                this._numCamera = 0;
                this._numMatrixTransform = 0;
                this._numProjection = 0;
                this._numNode = 0;
                this._numLightSource = 0;
                this._numGeometry = 0;
            },

            handleCullCallbacksAndTraverse: function(node) {
                var ccb = node.getCullCallback();
                if (ccb && !ccb.cull(node, this)) return;
                this.traverse(node);
            },

            getCurrentCamera: function() {
                return this._currentRenderBin.getStage().getCamera();
            },

            updateCalculatedNearFar: (function() {
                var nearVec = vec3.create();
                var farVec = vec3.create();

                return function(matrix, drawable) {
                    var bb = drawable.getBoundingBox();
                    var dNear, dFar;

                    // efficient computation of near and far, only taking into account the nearest and furthest
                    // corners of the bounding box.
                    dNear = this.distance(bb.corner(this._bbCornerNear, nearVec), matrix);
                    dFar = this.distance(bb.corner(this._bbCornerFar, farVec), matrix);

                    if (dNear > dFar) {
                        var tmp = dNear;
                        dNear = dFar;
                        dFar = tmp;
                    }

                    if (dFar < 0.0) {
                        // whole object behind the eye point so discard
                        return false;
                    }

                    if (dNear < this._computedNear) {
                        this._computedNear = dNear;
                    }

                    if (dFar > this._computedFar) {
                        this._computedFar = dFar;
                    }

                    return true;
                };
            })(),

            setStateGraph: function(sg) {
                this._rootStateGraph = sg;
                this._currentStateGraph = sg;
            },
            setRenderStage: function(rg) {
                this._rootRenderStage = rg;
                this._currentRenderBin = rg;
            },
            setRenderer: function(renderer) {
                this._renderer = renderer;
            },
            getRenderer: function() {
                return this._renderer;
            },

            reset: function() {
                CullStack.prototype.reset.call(this);

                this._pooledLeaf.reset();
                this._pooledCullSettings.reset();

                // renderstage / renderbin pools
                for (var key in this._pooledRenderStages) {
                    this._pooledRenderStages[key].reset();
                }
                RenderBin.reset();

                this._computedNear = Number.POSITIVE_INFINITY;
                this._computedFar = Number.NEGATIVE_INFINITY;
            },

            getCurrentRenderBin: function() {
                return this._currentRenderBin;
            },

            setCurrentRenderBin: function(rb) {
                this._currentRenderBin = rb;
            },

            // mimic the osg implementation
            // in osg you can push 0, in this case an identity matrix will be loaded
            addPositionedAttribute: function(matrix, attribute) {
                var m = matrix ? matrix : this._identityMatrix;
                this._currentRenderBin.getStage().addPositionAttribute(m, attribute);
            },

            pushStateSet: function(stateset) {
                this._currentStateGraph = this._currentStateGraph.findOrInsert(stateset);
                if (stateset.getBinName() !== undefined) {
                    var renderBinStack = this._renderBinStack;
                    var currentRenderBin = this._currentRenderBin;
                    renderBinStack.push(currentRenderBin);
                    this._currentRenderBin = currentRenderBin
                        .getStage()
                        .findOrInsert(stateset.getBinNumber(), stateset.getBinName());
                }
            },

            /** Pop the top state set and hence associated state group.
             * Move the current state group to the parent of the popped
             * state group.
             */
            popStateSet: function() {
                var currentStateGraph = this._currentStateGraph;
                var stateset = currentStateGraph.getStateSet();
                this._currentStateGraph = currentStateGraph.getParent();
                if (stateset.getBinName() !== undefined) {
                    var renderBinStack = this._renderBinStack;
                    if (renderBinStack.getLength() === 0) {
                        this._currentRenderBin = this._currentRenderBin.getStage();
                    } else {
                        this._currentRenderBin = renderBinStack.pop();
                    }
                }
            },

            popProjectionMatrix: function() {
                if (this._computeNearFar === true && this._computedFar >= this._computedNear) {
                    var m = this.getCurrentProjectionMatrix();
                    if (this._clampProjectionMatrixCallback !== undefined) {
                        this._clampProjectionMatrixCallback(
                            m,
                            this._computedNear,
                            this._computedFar,
                            this._nearFarRatio
                        );
                    } else {
                        this.clampProjectionMatrix(
                            m,
                            this._computedNear,
                            this._computedFar,
                            this._nearFarRatio
                        );
                    }
                }
                CullStack.prototype.popProjectionMatrix.call(this);
            },

            clampProjectionMatrix: function(projection, znear, zfar, nearFarRatio, resultNearFar) {
                var epsilon = 1e-6;
                if (zfar < znear - epsilon) {
                    notify.log(
                        'clampProjectionMatrix not applied, invalid depth range, znear = ' +
                            znear +
                            '  zfar = ' +
                            zfar,
                        false,
                        true
                    );
                    return false;
                }

                var desiredZnear, desiredZfar;
                if (zfar < znear + epsilon) {
                    // znear and zfar are too close together and could cause divide by zero problems
                    // late on in the clamping code, so move the znear and zfar apart.
                    var average = (znear + zfar) * 0.5;
                    znear = average - epsilon;
                    zfar = average + epsilon;
                    // OSG_INFO << '_clampProjectionMatrix widening znear and zfar to '<<znear<<' '<<zfar<<std::endl;
                }

                if (
                    Math.abs(projection[3]) < epsilon &&
                    Math.abs(projection[7]) < epsilon &&
                    Math.abs(projection[11]) < epsilon
                ) {
                    // OSG_INFO << 'Orthographic matrix before clamping'<<projection<<std::endl;

                    var deltaSpan = (zfar - znear) * 0.02;
                    if (deltaSpan < 1.0) {
                        deltaSpan = 1.0;
                    }
                    desiredZnear = znear - deltaSpan;
                    desiredZfar = zfar + deltaSpan;

                    // assign the clamped values back to the computed values.
                    znear = desiredZnear;
                    zfar = desiredZfar;

                    projection[10] = -2.0 / (desiredZfar - desiredZnear);
                    projection[14] = -(desiredZfar + desiredZnear) / (desiredZfar - desiredZnear);
                    // OSG_INFO << 'Orthographic matrix after clamping '<<projection<<std::endl;
                } else {
                    // OSG_INFO << 'Persepective matrix before clamping'<<projection<<std::endl;
                    //std::cout << '_computed_znear'<<_computed_znear<<std::endl;
                    //std::cout << '_computed_zfar'<<_computed_zfar<<std::endl;

                    var zfarPushRatio = 1.02;
                    var znearPullRatio = 0.98;

                    //znearPullRatio = 0.99;

                    desiredZnear = znear * znearPullRatio;
                    desiredZfar = zfar * zfarPushRatio;

                    // near plane clamping.
                    var minNearPlane = zfar * nearFarRatio;
                    if (desiredZnear < minNearPlane) {
                        desiredZnear = minNearPlane;
                    }

                    // assign the clamped values back to the computed values.
                    znear = desiredZnear;
                    zfar = desiredZfar;

                    var m22 = projection[10];
                    var m32 = projection[14];
                    var m23 = projection[11];
                    var m33 = projection[15];
                    var transNearPlane = (-desiredZnear * m22 + m32) / (-desiredZnear * m23 + m33);
                    var transFarPlane = (-desiredZfar * m22 + m32) / (-desiredZfar * m23 + m33);

                    var ratio = Math.abs(2.0 / (transNearPlane - transFarPlane));
                    var center = -(transNearPlane + transFarPlane) / 2.0;

                    var centerRatio = center * ratio;
                    projection[2] = projection[2] * ratio + projection[3] * centerRatio;
                    projection[6] = projection[6] * ratio + projection[7] * centerRatio;
                    projection[10] = m22 * ratio + m23 * centerRatio;
                    projection[14] = m32 * ratio + m33 * centerRatio;
                    // same as
                    // var matrix = [ 1.0, 0.0, 0.0, 0.0,
                    //     0.0, 1.0, 0.0, 0.0,
                    //     0.0, 0.0, ratio, 0.0,
                    //     0.0, 0.0, center * ratio, 1.0
                    // ];
                    // mat4.mul( projection , matrix, projection );

                    // OSG_INFO << 'Persepective matrix after clamping'<<projection<<std::endl;
                }
                if (resultNearFar !== undefined) {
                    resultNearFar[0] = znear;
                    resultNearFar[1] = zfar;
                }
                return true;
            },

            popCameraModelViewProjectionMatrix: function() {
                this.popModelViewMatrix();
                this.popProjectionMatrix();
            },

            pushCameraModelViewProjectionMatrix: function(camera, modelview, projection) {
                this.pushModelViewMatrix(modelview);
                this.pushProjectionMatrix(projection);
            },

            apply: function(node) {
                this.applyFunctionArray[node.nodeTypeID].call(this, node);
            },

            createOrReuseRenderLeaf: function() {
                return this._pooledLeaf.getOrCreateObject();
            },

            createOrReuseRenderStage: function(classInstance) {
                var type = !classInstance ? 'RenderStage' : classInstance.className();

                if (!this._pooledRenderStages[type]) {
                    var classCtor = !classInstance ? RenderStage : classInstance.constructor;
                    var createRenderStage = function() {
                        return new classCtor();
                    };
                    this._pooledRenderStages[type] = new PooledResource(createRenderStage);
                }
                return this._pooledRenderStages[type].getOrCreateObject().init();
            },

            // function call after the push state in the geometry apply function
            // the idea is to avoid heavy copy-paste for the rigGeometry apply
            // since the only difference is that we want to push an additional state
            // Maybe it will be useful when we'll add morph target geometry or something...
            postPushGeometry: function(cull, node) {
                var sourceGeometry;
                var geometryStateSetAnimation;

                if (node instanceof RigGeometry) {
                    geometryStateSetAnimation = node.getStateSetAnimation();
                    if (geometryStateSetAnimation) cull.pushStateSet(geometryStateSetAnimation);

                    sourceGeometry = node.getSourceGeometry();

                    if (sourceGeometry instanceof MorphGeometry) {
                        geometryStateSetAnimation = sourceGeometry.getStateSetAnimation();
                        if (geometryStateSetAnimation) cull.pushStateSet(geometryStateSetAnimation);
                    }
                } else if (node instanceof MorphGeometry) {
                    geometryStateSetAnimation = node.getStateSetAnimation();
                    if (geometryStateSetAnimation) cull.pushStateSet(geometryStateSetAnimation);
                }
            },

            // same comment as above (postPushGeometry)
            prePopGeometry: function(cull, node) {
                if (node instanceof RigGeometry) {
                    var sourceGeometry = node.getSourceGeometry();

                    if (sourceGeometry instanceof MorphGeometry) {
                        if (sourceGeometry.getStateSetAnimation()) cull.popStateSet();
                    }

                    if (node.getStateSetAnimation()) cull.popStateSet();
                } else if (node instanceof MorphGeometry && node.getStateSetAnimation()) {
                    cull.popStateSet();
                }
            },

            pushLeaf: function(node, depth) {
                var leafs = this._currentStateGraph.getLeafs();
                if (!leafs.getLength()) {
                    this._currentRenderBin.addStateGraph(this._currentStateGraph);
                }

                var leaf = this.createOrReuseRenderLeaf();

                leaf.init(
                    this._currentStateGraph,
                    node,
                    this.getCurrentProjectionMatrix(),
                    this.getCurrentViewMatrix(),
                    this.getCurrentModelViewMatrix(),
                    this.getCurrentModelMatrix(),
                    depth
                );

                leafs.push(leaf);
            }
        })
    ),
    'osg',
    'CullVisitor'
);

// Camera cull visitor call
// ANY CHANGE, any change : double check in rendere Camera code
// for the first camera
var cameraApply = function(camera) {
    this._numCamera++;

    var stateset = camera.getStateSet();
    if (stateset) this.pushStateSet(stateset);

    var modelview = this._pooledMatrix.getOrCreateObject();
    var projection = this._pooledMatrix.getOrCreateObject();

    if (camera.getReferenceFrame() === TransformEnums.RELATIVE_RF) {
        var lastProjectionMatrix = this.getCurrentProjectionMatrix();
        mat4.mul(projection, lastProjectionMatrix, camera.getProjectionMatrix());

        var lastViewMatrix = this.getCurrentModelViewMatrix();
        mat4.mul(modelview, lastViewMatrix, camera.getViewMatrix());
    } else {
        // absolute
        mat4.copy(modelview, camera.getViewMatrix());
        mat4.copy(projection, camera.getProjectionMatrix());
    }

    // save current state of the camera
    var previousZnear = this._computedNear;
    var previousZfar = this._computedFar;

    var previousCullsettings = this._pooledCullSettings.getOrCreateObject();
    previousCullsettings.reset();
    previousCullsettings.setCullSettings(this);

    this._computedNear = Number.POSITIVE_INFINITY;
    this._computedFar = Number.NEGATIVE_INFINITY;
    //

    this.setCullSettings(camera);
    // global override
    // upon who setted the parameter
    // if it's cullvisitor
    // it's an OVERRIDER for enableFrustumCulling
    // allowing for global EnableFrustimCulling
    if (
        previousCullsettings.getSettingSourceOverrider() === this &&
        previousCullsettings.getEnableFrustumCulling()
    ) {
        this.setEnableFrustumCulling(true);
    }

    this.pushCameraModelViewProjectionMatrix(camera, modelview, projection);

    if (camera.getViewport()) {
        this.pushViewport(camera.getViewport());
    }

    // nested camera
    if (camera.getRenderOrder() === Camera.NESTED_RENDER) {
        this.handleCullCallbacksAndTraverse(camera);
    } else {
        var renderBin = this.getCurrentRenderBin();
        var previousStage = renderBin.getStage();

        // use render to texture stage
        var rtts = this.createOrReuseRenderStage(this._rootRenderStage);

        rtts.setCamera(camera);
        rtts.setClearDepth(camera.getClearDepth());
        rtts.setClearColor(camera.getClearColor());
        rtts.setClearMask(camera.getClearMask());

        var viewport = camera.getViewport() ? camera.getViewport() : previousStage.getViewport();
        var scissor = camera.getScissor() ? camera.getScissor() : previousStage.getScissor();
        rtts.setViewport(viewport);
        rtts.setScissor(scissor);

        // skip positional state for now
        // ...

        this.setCurrentRenderBin(rtts);

        this.handleCullCallbacksAndTraverse(camera);

        this.setCurrentRenderBin(renderBin);

        if (camera.getRenderOrder() === Camera.PRE_RENDER) {
            this.getCurrentRenderBin()
                .getStage()
                .addPreRenderStage(rtts, camera.renderOrderNum);
        } else {
            this.getCurrentRenderBin()
                .getStage()
                .addPostRenderStage(rtts, camera.renderOrderNum);
        }
    }

    this.popCameraModelViewProjectionMatrix(camera);

    if (camera.getViewport()) {
        this.popViewport();
    }

    // restore previous state of the camera
    this.setCullSettings(previousCullsettings);
    this._computedNear = previousZnear;
    this._computedFar = previousZfar;

    if (stateset) this.popStateSet();
};

var matrixTransformApply = function(node) {
    this._numMatrixTransform++;

    // Camera and lights must enlarge node parent bounding boxes for this not to cull
    if (this.isCulled(node, this.nodePath)) {
        return;
    }
    // push the culling mode.
    this.pushCurrentMask();

    var matrix = this._pooledMatrix.getOrCreateObject();
    var lastMatrixStack = this.getCurrentModelViewMatrix();
    mat4.copy(matrix, lastMatrixStack);
    node.computeLocalToWorldMatrix(matrix);
    this.pushModelViewMatrix(matrix);

    var stateset = node.getStateSet();

    if (stateset) this.pushStateSet(stateset);

    this.handleCullCallbacksAndTraverse(node);

    if (stateset) this.popStateSet();

    this.popModelViewMatrix();

    // pop the culling mode.
    this.popCurrentMask();
};

var projectionApply = function(node) {
    this._numProjection++;

    var lastMatrixStack = this.getCurrentProjectionMatrix();
    var matrix = this._pooledMatrix.getOrCreateObject();
    mat4.mul(matrix, lastMatrixStack, node.getProjectionMatrix());
    this.pushProjectionMatrix(matrix);

    var stateset = node.getStateSet();
    if (stateset) this.pushStateSet(stateset);

    this.handleCullCallbacksAndTraverse(node);

    if (stateset) this.popStateSet();

    this.popProjectionMatrix();
};

// here it's treated as a group node for culling
// as there's isn't any in osgjs
// so frustumCulling is done here
var nodeApply = function(node) {
    this._numNode++;

    // Camera and lights must enlarge node parent bounding boxes for this not to cull
    if (this.isCulled(node, this.nodePath)) {
        return;
    }

    // push the culling mode.
    this.pushCurrentMask();

    var stateset = node.getStateSet();
    if (stateset) this.pushStateSet(stateset);

    this.handleCullCallbacksAndTraverse(node);

    if (stateset) this.popStateSet();

    // pop the culling mode.
    this.popCurrentMask();
};

var lightSourceApply = function(node) {
    this._numLightSource++;

    var stateset = node.getStateSet();
    if (stateset) this.pushStateSet(stateset);

    var light = node.getLight();
    if (light) {
        if (node.getReferenceFrame() === TransformEnums.RELATIVE_RF)
            this.addPositionedAttribute(this.getCurrentModelViewMatrix(), light);
        else this.addPositionedAttribute(null, light);
    }

    this.handleCullCallbacksAndTraverse(node);

    if (stateset) this.popStateSet();
};

var tempVec = vec3.create();
var loggedOnce = false;
var geometryApply = function(node) {
    this._numGeometry++;

    var modelview = this.getCurrentModelViewMatrix();
    var bb = node.getBoundingBox();
    if (this._computeNearFar && bb.valid()) {
        if (!this.updateCalculatedNearFar(modelview, node)) {
            return;
        }
    }

    // using modelview is not a pb because geometry
    // is a leaf node, else traversing the graph would be an
    // issue because we use modelview after
    var ccb = node.getCullCallback();
    if (ccb && !ccb.cull(node, this)) return;

    var stateset = node.getStateSet();
    if (stateset) this.pushStateSet(stateset);

    this.postPushGeometry(this, node);

    var depth = 0;
    if (bb.valid()) {
        depth = this.distance(bb.center(tempVec), modelview);
    }
    if (osgMath.isNaN(depth)) {
        if (!loggedOnce) {
            notify.warn('warning geometry has a NaN depth, ' + modelview + ' center ' + tempVec);
            loggedOnce = true;
        }
    } else {
        this.pushLeaf(node, depth);
    }

    this.prePopGeometry(this, node);
    if (stateset) this.popStateSet();
};

cullVisitorHelper.registerApplyFunction(Node.nodeTypeID, nodeApply);
cullVisitorHelper.registerApplyFunction(Switch.nodeTypeID, nodeApply);
cullVisitorHelper.registerApplyFunction(PagedLOD.nodeTypeID, nodeApply);
cullVisitorHelper.registerApplyFunction(Camera.nodeTypeID, cameraApply);
cullVisitorHelper.registerApplyFunction(MatrixTransform.nodeTypeID, matrixTransformApply);
cullVisitorHelper.registerApplyFunction(Projection.nodeTypeID, projectionApply);
cullVisitorHelper.registerApplyFunction(Geometry.nodeTypeID, geometryApply);
cullVisitorHelper.registerApplyFunction(Skeleton.nodeTypeID, matrixTransformApply);
cullVisitorHelper.registerApplyFunction(Bone.nodeTypeID, matrixTransformApply);
cullVisitorHelper.registerApplyFunction(AutoTransform.nodeTypeID, matrixTransformApply);
cullVisitorHelper.registerApplyFunction(Lod.nodeTypeID, nodeApply);
cullVisitorHelper.registerApplyFunction(LightSource.nodeTypeID, lightSourceApply);
cullVisitorHelper.registerApplyFunction(RigGeometry.nodeTypeID, geometryApply);
cullVisitorHelper.registerApplyFunction(MorphGeometry.nodeTypeID, geometryApply);

export default CullVisitor;


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tab="http://schemas.android.com/apk/res/com.zgrjb"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/mainLayout"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <android.support.v4.view.ViewPager
        android:id="@+id/id_viewpager"
        android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
         >
        </android.support.v4.view.ViewPager>

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="60dp"
        android:background="@drawable/tabbg"
        android:orientation="horizontal" >

      <com.zgrujb.selfdefindui.BottomTabView
            android:id="@+id/id_indicator_one"
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:padding="5dp"
           tab:icon="@drawable/icon_home"
           tab:text="@string/recent"
           tab:text_size="12sp" />

        <com.zgrujb.selfdefindui.BottomTabView
            android:id="@+id/id_indicator_two"
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:padding="5dp"
           tab:icon="@drawable/icon_chat_home"
           tab:text="@string/contact"
           tab:text_size="12sp" />

        <com.zgrujb.selfdefindui.BottomTabView
            android:id="@+id/id_indicator_three"
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:padding="5dp"
           tab:icon="@drawable/icon_discover"
           tab:text="@string/discovery"
           tab:text_size="12sp" />

        <com.zgrujb.selfdefindui.BottomTabView
            android:id="@+id/id_indicator_four"
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:padding="5dp"
           tab:icon="@drawable/icon_me"
           tab:text="@string/myinformation"
           tab:text_size="12sp" />

    </LinearLayout>

</LinearLayout>


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Transinfo</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>css/style_index.css">

<img class="img-responsive" src="<?php echo base_url(); ?>assets/images/logo.png" alt="logo_img">

Home

Services

News

Partners

Career

Contacts

<input type="text" placeholder="Search" >

<img class="en_flag" src="<?php echo base_url(); ?>assets/images/en.jpg" alt="en">

<img src="<?php echo base_url(); ?>assets/images/ru.jpg" alt="ru">


text:
Title: About
Slug: about
Author: Jayson Stemmler

My name is Jayson Stemmler, I am a research scientist for the Department of Atmospheric Science at the University of Washington.
I work primarily with both in-situ and remote sensing data to investigate the relationship between clouds, aerosols, and climate.
In other words, I do a lot of processing and visualization of data from many different instruments and sources (including satellites)
to get a more comprehensive view of what's going on at a particular location or region. One example of this implementation is the
[ENA Data Browser website](http://ena-data.site) which allows for looking at multiple instruments and parameters in one place in order to
gain a better understanding of how a variety of atmospheric variables interact with each other.

Just about all of what I do is done in Python. The ENA data site is written using Flask, and I use a combination of python 2 and 3 depending
on which packages I need to use for a particular task. I'll use py3 where I can, but some of the older scientific libraries are not ported
over to py3 yet so I still need to use 2 for those. Much of the development is done using Jupyter Notebooks first and then breaking out
individual functionality into separate modules. I use git and GitHub for all version control.

While I currently work as an academic research scientist, my principal interest lies in data science.
In 2016 I attended an immersive data science course at Galvanize in downtown Seattle as a way to get more exposure and learn more about data science.
This was an excellent way to gain hands-on experience with a large variety of machine learning concepts, as well as learn more of the
technical details behind how the models function and work.

After the course was finished, I worked hard to bring much of what I learned into my academic research work. I have been able to
incorporate some of this interest into my work, but the particular applications that I am working on don't call for or require machine
learning or other common data science tools and methods. Because of this, I am off in search of new ways to develop more as a data scientist
and grow my career beyond data analysis and visualization.

I believe that having a strong background in academic research provides a solid foundation upon which to continue to build up my
skills as a data scientist, always keeping in mind that the key word in "data science" is **_science_**, not data.