text:
// Generated from Expression.g4 by ANTLR 4.5

package expresso.parser;

import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class ExpressionParser extends Parser {
	static { RuntimeMetaData.checkVersion("4.5", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		INT=1, FLOAT=2, VAR=3, TIMES=4, PLUS=5, OPEN=6, CLOSE=7, WHITESPACE=8;
	public static final int
		RULE_root = 0, RULE_exp = 1, RULE_times = 2, RULE_plus = 3, RULE_var = 4,
		RULE_number = 5;
	public static final String[] ruleNames = {
		"root", "exp", "times", "plus", "var", "number"
	};

	private static final String[] _LITERAL_NAMES = {
		null, null, null, null, "'*'", "'+'", "'('", "')'"
	};
	private static final String[] _SYMBOLIC_NAMES = {
		null, "INT", "FLOAT", "VAR", "TIMES", "PLUS", "OPEN", "CLOSE", "WHITESPACE"
	};
	public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);

	/**
	 * @deprecated Use {@link #VOCABULARY} instead.
	 */
	@Deprecated
	public static final String[] tokenNames;
	static {
		tokenNames = new String[_SYMBOLIC_NAMES.length];
		for (int i = 0; i < tokenNames.length; i++) {
			tokenNames[i] = VOCABULARY.getLiteralName(i);
			if (tokenNames[i] == null) {
				tokenNames[i] = VOCABULARY.getSymbolicName(i);
			}

			if (tokenNames[i] == null) {
				tokenNames[i] = "<INVALID>";
			}
		}
	}

	@Override
	@Deprecated
	public String[] getTokenNames() {
		return tokenNames;
	}

	@Override

	public Vocabulary getVocabulary() {
		return VOCABULARY;
	}

	@Override
	public String getGrammarFileName() { return "Expression.g4"; }

	@Override
	public String[] getRuleNames() { return ruleNames; }

	@Override
	public String getSerializedATN() { return _serializedATN; }

	@Override
	public ATN getATN() { return _ATN; }

	    // This method makes the lexer or parser stop running if it encounters
	    // invalid input and throw a RuntimeException.
	    public void reportErrorsAsExceptions() {
	        removeErrorListeners();
	        addErrorListener(new ExceptionThrowingErrorListener());
	    }

	    private static class ExceptionThrowingErrorListener extends BaseErrorListener {
	        @Override
	        public void syntaxError(Recognizer<?, ?> recognizer,
	                Object offendingSymbol, int line, int charPositionInLine,
	                String msg, RecognitionException e) {
	            throw new RuntimeException(msg);
	        }
	    }

	public ExpressionParser(TokenStream input) {
		super(input);
		_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}
	public static class RootContext extends ParserRuleContext {
		public ExpContext exp() {
			return getRuleContext(ExpContext.class,0);
		}
		public TerminalNode EOF() { return getToken(ExpressionParser.EOF, 0); }
		public RootContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_root; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).enterRoot(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).exitRoot(this);
		}
	}

	public final RootContext root() throws RecognitionException {
		RootContext _localctx = new RootContext(_ctx, getState());
		enterRule(_localctx, 0, RULE_root);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(12);
			exp(0);
			setState(13);
			match(EOF);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ExpContext extends ParserRuleContext {
		public TerminalNode OPEN() { return getToken(ExpressionParser.OPEN, 0); }
		public List<ExpContext> exp() {
			return getRuleContexts(ExpContext.class);
		}
		public ExpContext exp(int i) {
			return getRuleContext(ExpContext.class,i);
		}
		public TerminalNode CLOSE() { return getToken(ExpressionParser.CLOSE, 0); }
		public VarContext var() {
			return getRuleContext(VarContext.class,0);
		}
		public NumberContext number() {
			return getRuleContext(NumberContext.class,0);
		}
		public TimesContext times() {
			return getRuleContext(TimesContext.class,0);
		}
		public PlusContext plus() {
			return getRuleContext(PlusContext.class,0);
		}
		public ExpContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_exp; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).enterExp(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).exitExp(this);
		}
	}

	public final ExpContext exp() throws RecognitionException {
		return exp(0);
	}

	private ExpContext exp(int _p) throws RecognitionException {
		ParserRuleContext _parentctx = _ctx;
		int _parentState = getState();
		ExpContext _localctx = new ExpContext(_ctx, _parentState);
		ExpContext _prevctx = _localctx;
		int _startState = 2;
		enterRecursionRule(_localctx, 2, RULE_exp, _p);
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(22);
			switch (_input.LA(1)) {
			case OPEN:
				{
				setState(16);
				match(OPEN);
				setState(17);
				exp(0);
				setState(18);
				match(CLOSE);
				}
				break;
			case VAR:
				{
				setState(20);
				var();
				}
				break;
			case INT:
			case FLOAT:
				{
				setState(21);
				number();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
			_ctx.stop = _input.LT(-1);
			setState(34);
			_errHandler.sync(this);
			_alt = getInterpreter().adaptivePredict(_input,2,_ctx);
			while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
				if ( _alt==1 ) {
					if ( _parseListeners!=null ) triggerExitRuleEvent();
					_prevctx = _localctx;
					{
					setState(32);
					switch ( getInterpreter().adaptivePredict(_input,1,_ctx) ) {
					case 1:
						{
						_localctx = new ExpContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_exp);
						setState(24);
						if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)");
						setState(25);
						times();
						setState(26);
						exp(5);
						}
						break;
					case 2:
						{
						_localctx = new ExpContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_exp);
						setState(28);
						if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)");
						setState(29);
						plus();
						setState(30);
						exp(4);
						}
						break;
					}
					}
				}
				setState(36);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,2,_ctx);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			unrollRecursionContexts(_parentctx);
		}
		return _localctx;
	}

	public static class TimesContext extends ParserRuleContext {
		public TerminalNode TIMES() { return getToken(ExpressionParser.TIMES, 0); }
		public TimesContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_times; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).enterTimes(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).exitTimes(this);
		}
	}

	public final TimesContext times() throws RecognitionException {
		TimesContext _localctx = new TimesContext(_ctx, getState());
		enterRule(_localctx, 4, RULE_times);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(37);
			match(TIMES);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class PlusContext extends ParserRuleContext {
		public TerminalNode PLUS() { return getToken(ExpressionParser.PLUS, 0); }
		public PlusContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_plus; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).enterPlus(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).exitPlus(this);
		}
	}

	public final PlusContext plus() throws RecognitionException {
		PlusContext _localctx = new PlusContext(_ctx, getState());
		enterRule(_localctx, 6, RULE_plus);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(39);
			match(PLUS);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class VarContext extends ParserRuleContext {
		public TerminalNode VAR() { return getToken(ExpressionParser.VAR, 0); }
		public VarContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_var; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).enterVar(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).exitVar(this);
		}
	}

	public final VarContext var() throws RecognitionException {
		VarContext _localctx = new VarContext(_ctx, getState());
		enterRule(_localctx, 8, RULE_var);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(41);
			match(VAR);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class NumberContext extends ParserRuleContext {
		public TerminalNode FLOAT() { return getToken(ExpressionParser.FLOAT, 0); }
		public TerminalNode INT() { return getToken(ExpressionParser.INT, 0); }
		public NumberContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_number; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).enterNumber(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof ExpressionListener ) ((ExpressionListener)listener).exitNumber(this);
		}
	}

	public final NumberContext number() throws RecognitionException {
		NumberContext _localctx = new NumberContext(_ctx, getState());
		enterRule(_localctx, 10, RULE_number);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(43);
			_la = _input.LA(1);
			if ( !(_la==INT || _la==FLOAT) ) {
			_errHandler.recoverInline(this);
			} else {
				consume();
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
		switch (ruleIndex) {
		case 1:
			return exp_sempred((ExpContext)_localctx, predIndex);
		}
		return true;
	}
	private boolean exp_sempred(ExpContext _localctx, int predIndex) {
		switch (predIndex) {
		case 0:
			return precpred(_ctx, 4);
		case 1:
			return precpred(_ctx, 3);
		}
		return true;
	}

	public static final String _serializedATN =
		"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3\n\60\4\2\t\2\4\3"+
		"\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\3\2\3\2\3\2\3\3\3\3\3\3\3\3\3\3\3"+
		"\3\3\3\5\3\31\n\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\7\3#\n\3\f\3\16\3&\13"+
		"\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\7\2\3\4\b\2\4\6\b\n\f\2\3\3\2\3\4"+
		"-\2\16\3\2\2\2\4\30\3\2\2\2\6\'\3\2\2\2\b)\3\2\2\2\n+\3\2\2\2\f-\3\2\2"+
		"\2\16\17\5\4\3\2\17\20\7\2\2\3\20\3\3\2\2\2\21\22\b\3\1\2\22\23\7\b\2"+
		"\2\23\24\5\4\3\2\24\25\7\t\2\2\25\31\3\2\2\2\26\31\5\n\6\2\27\31\5\f\7"+
		"\2\30\21\3\2\2\2\30\26\3\2\2\2\30\27\3\2\2\2\31$\3\2\2\2\32\33\f\6\2\2"+
		"\33\34\5\6\4\2\34\35\5\4\3\7\35#\3\2\2\2\36\37\f\5\2\2\37 \5\b\5\2 !\5"+
		"\4\3\6!#\3\2\2\2\"\32\3\2\2\2\"\36\3\2\2\2#&\3\2\2\2$\"\3\2\2\2$%\3\2"+
		"\2\2%\5\3\2\2\2&$\3\2\2\2\'(\7\6\2\2(\7\3\2\2\2)*\7\7\2\2*\t\3\2\2\2+"+
		",\7\5\2\2,\13\3\2\2\2-.\t\2\2\2.\r\3\2\2\2\5\30\"$";
	public static final ATN _ATN =
		new ATNDeserializer().deserialize(_serializedATN.toCharArray());
	static {
		_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
		for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
			_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
		}
	}
}


text:
#pragma checksum "C:\Users\yjonas\Documents\GitHubVisualStudio\IoTChallenge\IoTChallenge.Universal\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "355E44CE11F7B50263579FCBD08C489A"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace IoTChallenge.Universal
{
    partial class MainPage :
        global::Windows.UI.Xaml.Controls.Page,
        global::Windows.UI.Xaml.Markup.IComponentConnector,
        global::Windows.UI.Xaml.Markup.IComponentConnector2
    {
        /// <summary>
        /// Connect()
        /// </summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 14.0.0.0")]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void Connect(int connectionId, object target)
        {
            switch(connectionId)
            {
            case 1:
                {
                    this.ruleChart6 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.ColumnSeries)(target);
                }
                break;
            case 2:
                {
                    this.ruleChart5 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.ColumnSeries)(target);
                }
                break;
            case 3:
                {
                    this.ruleChart4 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.ColumnSeries)(target);
                }
                break;
            case 4:
                {
                    this.ruleChart3 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.ColumnSeries)(target);
                }
                break;
            case 5:
                {
                    this.ruleChart2 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.ColumnSeries)(target);
                }
                break;
            case 6:
                {
                    this.ruleChart1 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.ColumnSeries)(target);
                }
                break;
            case 7:
                {
                    this.pieChart = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.PieSeries)(target);
                }
                break;
            case 8:
                {
                    this.lstKiosk1 = (global::Windows.UI.Xaml.Controls.ListView)(target);
                }
                break;
            case 9:
                {
                    this.lstKiosk2 = (global::Windows.UI.Xaml.Controls.ListView)(target);
                }
                break;
            case 10:
                {
                    this.lstKiosk3 = (global::Windows.UI.Xaml.Controls.ListView)(target);
                }
                break;
            default:
                break;
            }
            this._contentLoaded = true;
        }

        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 14.0.0.0")]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
        {
            global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
            return returnValue;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
PRGNAM=cicb
CLONE_URL=https://github.com/hoche/$PRGNAM.git

set -e

GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX )
rm -rf $GITDIR
git clone $CLONE_URL $GITDIR

CWD="$( pwd )"
cd $GITDIR

# Extract date from last entry in git log. git has so many useful
# options that it's a PITA to find the one you need...
DATE=$( git log --date=format:%Y%m%d --pretty=format:%cd -n1 )

VERFILE=icb/version.h
WHATVER=$( sed -n 's,#define *WHAT_VERSION.*Version \([^"]*\)",\1,p' $VERFILE | sed 's,-,,' )

VERSION=${WHATVER}+git$DATE

rm -rf .git
find . -name .gitignore -print0 | xargs -0 rm -f
rm -rf linenoise-*/

cd "$CWD"
rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz
mv $GITDIR $PRGNAM-$VERSION
tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION

cat <<EOF

Archive created: $PRGNAM-$VERSION.tar.xz

Update $PRGNAM.info with:

VERSION="$VERSION"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/$PRGNAM-$VERSION.tar.xz"
MD5SUM="$( md5sum $PRGNAM-$VERSION.tar.xz | cut -d' ' -f1 )"

Don't forget to upload the new source!
EOF


text:
"""Utilities for creating a virtual environment"""
from __future__ import annotations

import os
import sys
import warnings

import jinja2

from airflow.utils.decorators import remove_task_decorator as _remove_task_decorator
from airflow.utils.process_utils import execute_in_subprocess

def _generate_virtualenv_cmd(tmp_dir: str, python_bin: str, system_site_packages: bool) -> list[str]:
    cmd = [sys.executable, '-m', 'virtualenv', tmp_dir]
    if system_site_packages:
        cmd.append('--system-site-packages')
    if python_bin is not None:
        cmd.append(f'--python={python_bin}')
    return cmd

def _generate_pip_install_cmd_from_file(
    tmp_dir: str, requirements_file_path: str, pip_install_options: list[str]
) -> list[str]:
    cmd = [f'{tmp_dir}/bin/pip', 'install'] + pip_install_options + ['-r']
    return cmd + [requirements_file_path]

def _generate_pip_install_cmd_from_list(
    tmp_dir: str, requirements: list[str], pip_install_options: list[str]
) -> list[str]:
    cmd = [f'{tmp_dir}/bin/pip', 'install'] + pip_install_options
    return cmd + requirements

def remove_task_decorator(python_source: str, task_decorator_name: str) -> str:
    warnings.warn(
        "Import remove_task_decorator from airflow.utils.decorators instead",
        DeprecationWarning,
        stacklevel=2,
    )
    return _remove_task_decorator(python_source, task_decorator_name)

def prepare_virtualenv(
    venv_directory: str,
    python_bin: str,
    system_site_packages: bool,
    requirements: list[str] | None = None,
    requirements_file_path: str | None = None,
    pip_install_options: list[str] | None = None,
) -> str:
    """Creates a virtual environment and installs the additional python packages.

    :param venv_directory: The path for directory where the environment will be created.
    :param python_bin: Path to the Python executable.
    :param system_site_packages: Whether to include system_site_packages in your virtualenv.
        See virtualenv documentation for more information.
    :param requirements: List of additional python packages.
    :param requirements_file_path: Path to the ``requirements.txt`` file.
    :return: Path to a binary file with Python in a virtual environment.
    """
    if pip_install_options is None:
        pip_install_options = []

    virtualenv_cmd = _generate_virtualenv_cmd(venv_directory, python_bin, system_site_packages)
    execute_in_subprocess(virtualenv_cmd)

    if requirements is not None and requirements_file_path is not None:
        raise Exception("Either requirements OR requirements_file_path has to be passed, but not both")

    pip_cmd = None
    if requirements is not None and len(requirements) != 0:
        pip_cmd = _generate_pip_install_cmd_from_list(venv_directory, requirements, pip_install_options)
    if requirements_file_path is not None and requirements_file_path:
        pip_cmd = _generate_pip_install_cmd_from_file(
            venv_directory, requirements_file_path, pip_install_options
        )

    if pip_cmd:
        execute_in_subprocess(pip_cmd)

    return f'{venv_directory}/bin/python'

def write_python_script(
    jinja_context: dict,
    filename: str,
    render_template_as_native_obj: bool = False,
):
    """
    Renders the python script to a file to execute in the virtual environment.

    :param jinja_context: The jinja context variables to unpack and replace with its placeholders in the
        template file.
    :param filename: The name of the file to dump the rendered script to.
    :param render_template_as_native_obj: If ``True``, rendered Jinja template would be converted
        to a native Python object
    """
    template_loader = jinja2.FileSystemLoader(searchpath=os.path.dirname(__file__))
    template_env: jinja2.Environment
    if render_template_as_native_obj:
        template_env = jinja2.nativetypes.NativeEnvironment(
            loader=template_loader, undefined=jinja2.StrictUndefined
        )
    else:
        template_env = jinja2.Environment(loader=template_loader, undefined=jinja2.StrictUndefined)
    template = template_env.get_template('python_virtualenv_script.jinja2')
    template.stream(**jinja_context).dump(filename)


text:
using System;
using System.Globalization;
using System.Text;
using System.Windows.Automation;
using System.Diagnostics;
using MS.Win32;

namespace MS.Internal.Automation
{
    // WindowShowOrOpenTracker - Class used to track new UI appearing and make sure any events
    // are propogated to that new UI.
    internal delegate void WindowShowOrOpenHandler( IntPtr hwnd, AutomationElement rawEl );

    // Class used to track new UI appearing and make sure any events
    // are propogated to that new UI.
    internal class WindowShowOrOpenTracker : WinEventWrap
    {
        //------------------------------------------------------
        //
        //  Constructors
        //
        //------------------------------------------------------

        #region Constructors

        internal WindowShowOrOpenTracker(WindowShowOrOpenHandler newUIHandler)
            : base(new int[]
            {NativeMethods.EventObjectUIFragmentCreate, NativeMethods.EVENT_OBJECT_CREATE, NativeMethods.EVENT_OBJECT_SHOW})
        {
            AddCallback(newUIHandler);
        }

        #endregion Constructors

        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------

        #region Internal Methods

        internal override void WinEventProc(int eventId, IntPtr hwnd, int idObject, int idChild, uint eventTime)
        {
            // ignore any event not pertaining directly to the window
            if (idObject != UnsafeNativeMethods.OBJID_WINDOW)
                return;

            // Ignore if this is a bogus hwnd (shouldn't happen)
            if (hwnd == IntPtr.Zero)
                return;

            NativeMethods.HWND nativeHwnd = NativeMethods.HWND.Cast( hwnd );

            // Ignore windows that have been destroyed
            if (! SafeNativeMethods.IsWindow( nativeHwnd ))
                return;

            // Ignore invisible windows (IsWindowVisible takes the hwnd ancestor
            // visibility into account)
            if (! SafeNativeMethods.IsWindowVisible( nativeHwnd ))
                return;

            if (eventId == NativeMethods.EVENT_OBJECT_CREATE)
            {
                // Ignore WCP hwnd creates; we get eventId EventObjectUIFragmentCreate for those
                //
                string str = ProxyManager.GetClassName(nativeHwnd);
                if (String.Compare(str, 0, _wcpClassName, 0, _wcpClassName.Length, StringComparison.OrdinalIgnoreCase) == 0)
                    return;
            }

            AutomationElement rawEl = AutomationElement.FromHandle( hwnd );

            // Do the notify.  Note that this handler is used to notify client-side UIAutomation providers of windows
            // being destroyed or hidden.  The delegate called here is itself protected by a lock.  This delegate may
            // call out to proxies but also calls ClientEventManager.RaiseEventInThisClientOnly which properly
            // queues the actual callout to client code.
            object [] handlers = GetHandlers();
            Debug.Assert(handlers.Length <= 1, "handlers.Length");
            if (handlers.Length > 0)
                ((WindowShowOrOpenHandler)handlers[0])( hwnd, rawEl );
        }

        #endregion Internal Methods

        //------------------------------------------------------
        //
        //  Private Fields
        //
        //------------------------------------------------------

        #region Private Fields

        static readonly string _wcpClassName = "HwndWrapper";

        #endregion Private Fields
    }
}


text:
import alt from '../alt';
import VoteActions from '../actions/VoteActions';
import VotesSource from '../sources/VotesSource';
import _ from 'lodash';

class VoteStore {
  constructor() {
    this.votes = [];
    this.errorMessage = null;
    this.currentAction = {};

    this.bindListeners({
      handleUpdateVotes: VoteActions.UPDATE_VOTES,
      handleFetchVotes: VoteActions.FETCH_VOTES,
      handleFetchVotesFailed: VoteActions.FETCH_VOTES_FAILED,
      incrementVote: VoteActions.INCREMENT_VOTE,
      handleFetchCurrentAction: VoteActions.FETCH_CURRENT_ACTION,
      handleUpdateCurrentAction: VoteActions.UPDATE_CURRENT_ACTION,
      handleFetchCurrentActionFailed: VoteActions.FETCH_CURRENT_ACTION_FAILED
    });

    this.exportAsync(VotesSource);
  }

  handleUpdateVotes(choice) {
    this.votes = choice;
  }

  handleFetchVotes() {
  }

  incrementVote(action) {
    var index = _.findIndex(this.votes, {name: action});
    this.votes[index].voteCount += 1;
  }

  handleFetchVotesFailed(errorMessage) {
    this.errorMessage = errorMessage;
  }

  handleFetchCurrentAction() {

  }

  handleUpdateCurrentAction(action) {
    this.currentAction = action;
    this.votingTimeRemaining = action.votingTimeRemaining;
  }

  handleFetchCurrentActionFailed(errorMessage) {
    this.errorMessage = errorMessage;
  }
}

export default alt.createStore(VoteStore, 'VoteStore');


text:
package org.jclouds.cloudwatch;

import static org.jclouds.aws.reference.AWSConstants.PROPERTY_AUTH_TAG;
import static org.jclouds.aws.reference.AWSConstants.PROPERTY_HEADER_TAG;

import java.net.URI;
import java.util.Properties;

import org.jclouds.apis.ApiMetadata;
import org.jclouds.cloudwatch.config.CloudWatchHttpApiModule;
import org.jclouds.rest.internal.BaseHttpApiMetadata;

import com.google.auto.service.AutoService;

/**
 * Implementation of {@link ApiMetadata} for Amazon's CloudWatch api.
 */
@AutoService(ApiMetadata.class)
public class CloudWatchApiMetadata extends BaseHttpApiMetadata {

   @Override
   public Builder<?> toBuilder() {
      return new ConcreteBuilder().fromApiMetadata(this);
   }

   public CloudWatchApiMetadata() {
      this(new ConcreteBuilder());
   }

   protected CloudWatchApiMetadata(Builder<?> builder) {
      super(builder);
   }

   public static Properties defaultProperties() {
      Properties properties = BaseHttpApiMetadata.defaultProperties();
      properties.setProperty(PROPERTY_AUTH_TAG, "AWS");
      properties.setProperty(PROPERTY_HEADER_TAG, "amz");
      return properties;
   }

   public abstract static class Builder<T extends Builder<T>> extends BaseHttpApiMetadata.Builder<CloudWatchApi, T> {

      protected Builder() {
         id("cloudwatch")
         .name("Amazon CloudWatch Api")
         .identityName("Access Key ID")
         .credentialName("Secret Access Key")
         .version("2010-08-01")
         .documentation(URI.create("http://docs.amazonwebservices.com/AmazonCloudWatch/latest/APIReference/"))
         .defaultEndpoint("https://monitoring.us-east-1.amazonaws.com")
         .defaultProperties(CloudWatchApiMetadata.defaultProperties())
         .defaultModule(CloudWatchHttpApiModule.class);
      }

      @Override
      public CloudWatchApiMetadata build() {
         return new CloudWatchApiMetadata(this);
      }

   }

   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
      @Override
      protected ConcreteBuilder self() {
         return this;
      }
   }
}


text:
using System;
class TheBiggestFrom3
{
    static void Main(string[] args)
    {
        //Write a program that finds the biggest of three numbers.
        Console.WriteLine("Please, enter first number:");
        double firstNumber = double.Parse(Console.ReadLine());
        Console.WriteLine("Please, enter second number:");
        double secondNumber = double.Parse(Console.ReadLine());
        Console.WriteLine("Please, enter third number:");
        double thirdNumber = double.Parse(Console.ReadLine());
        Console.Write("Biggest: ");
        if (firstNumber > secondNumber && firstNumber > thirdNumber) Console.WriteLine(firstNumber);
        if (secondNumber > firstNumber && secondNumber > thirdNumber) Console.WriteLine(secondNumber);
        if (thirdNumber > firstNumber && thirdNumber > secondNumber) Console.WriteLine(thirdNumber);

        Console.Read();
    }
}


text:
class ReportableRaphaelAssetsGenerator < Rails::Generators::Base

  include Rails::Generators::Actions

  source_root File.expand_path('../templates/', __FILE__)

  def create_raphael_file
    empty_directory('public/javascripts')
    copy_file(
      File.join(File.dirname(__FILE__), 'templates', 'raphael.min.js'),
      'public/javascripts/raphael.min.js'
    )
    copy_file(
      File.join(File.dirname(__FILE__), 'templates', 'g.raphael.min.js'),
      'public/javascripts/g.raphael.min.js'
    )
    copy_file(
      File.join(File.dirname(__FILE__), 'templates', 'g.line.min.js'),
      'public/javascripts/g.line.min.js'
    )
    readme(File.join(File.dirname(__FILE__), 'templates', 'NOTES'))
  end

end


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">

  <title>PyCon SK</title>
  <meta name="description" content="PyCon SK je komunitou organizovaná konferencia pre programovací jazyk Python, ktorá sa uskutočnila 11. 3. 2016 až 13. 3. 2016 v Bratislave.">

  <meta property="og:type" content="website">
  <meta property="og:image" content="https://2016.pycon.sk/static/images/logo/pycon_sk_logo200_notext.png">
  <meta property="og:url" content="https://2016.pycon.sk">
  <meta property="og:title" content="PyCon SK 2016 - 11-13.03.2016, Bratislava">
  <meta property="og:site_name" content="2016.pycon.sk">
  <meta property="og:description" content="PyCon SK je komunitou organizovaná konferencia pre programovací jazyk Python, ktorá sa uskutočnila 11. 3. 2016 až 13. 3. 2016 v Bratislave.">
  <meta name="twitter:card" content="summary">
  <meta name="twitter:site" content="@pyconsk">
  <meta name="twitter:title" content="PyCon SK 2016 - 11-13.03.2016, Bratislava">
  <meta name="twitter:description" content="PyCon SK je komunitou organizovaná konferencia pre programovací jazyk Python, ktorá sa uskutočnila 11. 3. 2016 až 13. 3. 2016 v Bratislave.">
  <meta name="twitter:url" content="https://2016.pycon.sk">
  <meta name="twitter:image" content="https://2016.pycon.sk/static/images/logo/pycon_sk_logo200_notext.png">
  <meta name="google-site-verification" content="W8iyFASCV4ptNkWc9_EEu-uRuQ5UBtH1ulvKndInaJM">

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

<link rel="stylesheet" type="text/css" href='https://css.tito.io/v1' />

  <link rel="alternate" href="https://2016.pycon.sk/en/tickets.html" hreflang="en">

  <link rel="canonical" href="https://2016.pycon.sk/sk/tickets.html" />
  <link rel="stylesheet" href="../static/css/pycon.css?v=5d75520">
  <link rel="icon" href="../static/images/favicon.ico" sizes="16x16">

  Preskočiť na hlavný obsah

          PyCon SK

        <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">

        </button>

            Vstupenky

            Miesto konania

            Program

Piatok, 11. 3.

Sobota, 12. 3.

Nedeľa, 13. 3.

            Rečníci

            Sponzori

            Kódex správania

            Meetup

Meetup

Vyskúšaj Python

Vstupenky

Vstupenky sú opäť v predaji. Podarilo sa zabezpečiť novú aulu na Fakulte informatiky a informačných technológií.

    <tito-widget event="pyconsk/2016"></tito-widget>
    Vstupenky si taktiež môžete kúpiť priamo na internetovej stránke https://ti.to/pyconsk/2016 v prípade, že sa Vám Tito widget nezobrazuje správne.

Kúpou lístka vyjadrujete súhlas s dodržiavaním kódexu správania.

Kde sa uskutoční konferencia?

    Slovenská technická univerzita v Bratislave

    Fakulta informatiky a informačných technológií

    Ilkovičova 2

    842 16 Bratislava 4

    Ako sa tam dostať

Aký lístok si mám kúpiť?

      Supporter: Lístok je určený pre účastníkov, ktorí chcú aby ich meno (firma) bolo zverejnené v zozname podporovateľov na našom webe.

      Standard: Lístok je určený pre všetkých účastníkov konferencie.

      Student: Lístok je určený pre študentov. Nezabudnite si so sebou na registráciu priniesť platný študentský preukaz (ISIC).

Je aj iná možnosť ako sa dostať na PyCon?

      Spustili sme štipendijný program, ktorý umožní niektorým návštevníkom prísť na PyCon zadarmo. Napíšte nám, prečo by sme práve Vám mali dať vstupenku.

      Ak máte menej ako 18 rokov a prídete v sprievode rodiča, stačí ak si lístok zakúpi iba rodič, no musíte sa nám ozvať aby sme vystavili vstupenku aj pre dieťa.

      Pre sociálne znevýhodnených účastníkov máme pripravený grantový program. Napíšte nám ak máte záujem sa ho zúčastniť.

Čo všetko mám v lístku?

Dva dni prednášok.

Obed počas oboch dní konferencie.

Kávu a koláčik počas prestávok.

Tričko a tašku plnú prekvapení.

Pozvánka na piatkovú neformálnu party.

Aký bude program konferencie?

Piatok - prednášky v slovenčine, resp. češtine.

Sobota - prednášky v angličtine.

Nedeľa - Python Clinic, spontánne workshopy a šprinty.

Ponúkate množstevné zľavy?

      Ak máte záujem kúpiť viac ako 10 lístkov kontaktujete nás emailom na info@pycon.sk.

Nemám PayPal, je možné kúpiť vstupenku inak ako cez Tito?

      Akceptujeme aj bankový prevod, prípadne Bitcoin. Napíšte nám, o aké lístky máte záujem, zašleme Vám variabilný symbol a po pripísaní sumy na náš účet Vám vystavíme a pošleme emailom vstupenku.

      Bankové spojenie nájdete na stránkach našeho občianského združenia.

Kam idú všetky peniaze za lístky?

    PyCon je kompletne organizovaný dobrovoľníkmi. Veríme, že organizovať takéto konferencie je potrebné, aby propagovali programovanie a Open Source. Všetky peniaze vyzbierané z predaja lístkov pôjdu na náklady spojené s organizáciou PyConu. Občianske združenie SPy, sa ako organizátor, zaväzuje po ukončení konferencie transparentne zverejniť všetky náklady s ňou spojené. SPy vzniklo na podporu Pythonu a programovania všeobecne, prečítajte si viac o našich cieľoch.

Platinoví sponzori:

Zlatí sponzori:

Strieborní sponzori:

Hlavný mediálny partner

Všetci sponzori

Facebook

Twitter

LinkedIn

Slack

GitHub

Občianske združenie

 info@pycon.sk

sitemap.xml

          PyCon™ je ochranná známka Python Software foundation pre celosvetové konferenčné aktivity.


text:
 #-------------------------------------------------------------------
#* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
#*
#* This LIBRARY is free software; you can distribute it and/or modify
#* it under the therms of the ALSOC FREE LICENSE as available at
#* http://www.enq.ufrgs.br/alsoc.
#*
#* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
#* from http://www.rps.eng.br Copyright (C) 2002-2004.
#* All rights reserved.
#*
#* EMSO is distributed under the therms of the ALSOC LICENSE as
#* available at http://www.enq.ufrgs.br/alsoc.
#*
#*---------------------------------------------------------------------
#* Author: Gerson Bicca
#*$Id$
#*-------------------------------------------------------------------
type flow_measurement
	flow_measurement()=begin
		PP=outers.PP
		NComp=outers.NComp
		new(
			DanaPlugin(Dict{Symbol,Any}(
				:Type=>"PP"
			)),
			DanaInteger(),
			flow_mol(Dict{Symbol,Any}(
				:Brief=>"Flow Constant",
				:Hidden=>true
			)),
			stream(Dict{Symbol,Any}(
				:Brief=>"Inlet stream",
				:PosX=>0,
				:PosY=>0.78,
				:Protected=>true
			)),
			stream(Dict{Symbol,Any}(
				:Brief=>"Outlet stream",
				:PosX=>1,
				:PosY=>0.78,
				:Protected=>true
			)),
			control_signal(Dict{Symbol,Any}(
				:Brief=>"Flow Signal",
				:PosX=>0.5,
				:PosY=>0,
				:Protected=>true
			)),
			[
				:(Outlet.F = Inlet.F),
				:(Outlet.T = Inlet.T),
				:(Outlet.P = Inlet.P),
				:(Outlet.h = Inlet.h),
				:(Outlet.v = Inlet.v),
				:(Outlet.z = Inlet.z),
				:(FlowSignal*FlowConst = Inlet.F),
			],
			[
				"Overall Molar Balance","Temperature","Pressure","Energy Balance","Vapour fraction","Componente Molar Balance","Flow Measurement in kmol/h",
			],
			[:PP,:NComp,:FlowConst,],
			[:Inlet,:Outlet,:FlowSignal,]
		)
	end
	PP::DanaPlugin
	NComp::DanaInteger
	FlowConst::flow_mol
	Inlet::stream
	Outlet::stream
	FlowSignal::control_signal
	equations::Array{Expr,1}
	equationNames::Array{String,1}
	parameters::Array{Symbol,1}
	variables::Array{Symbol,1}
	attributes::Dict{Symbol,Any}
end
export flow_measurement
function set(in::flow_measurement)
	FlowConst = 1*"kmol/h"

end
function setEquationFlow(in::flow_measurement)
	addEquation(1)
	addEquation(2)
	addEquation(3)
	addEquation(4)
	addEquation(5)
	addEquation(6)
	addEquation(7)
end
function atributes(in::flow_measurement,_::Dict{Symbol,Any})
	fields::Dict{Symbol,Any}=Dict{Symbol,Any}()
	fields[:Pallete]=true
	fields[:Icon]="icon/flow_measurement"
	fields[:Brief]="Model to measure the flow rate in a pipe line. "
	drive!(fields,_)
	return fields
end
flow_measurement(_::Dict{Symbol,Any})=begin
	newModel=flow_measurement()
	newModel.attributes=atributes(newModel,_)
	newModel
end


text:
using project.Entities;

public interface IEmployeeServices{
    string createToken(Employee obj);
    bool comparePassword(string password, string hash);
    Token parseToken(string token);
    string hashPassword(string password);
    string login(Login login);
    Employee getUserInfoByToken(string token);
    void changePassword(NewPassword pass);
}


text:
BEGIN TRANSACTION

CREATE TABLE Tmp_primitems
	(
	itemID varchar(36) NOT NULL,
	primID varchar(36) NULL,
	assetID varchar(36) NULL,
	parentFolderID varchar(36) NULL,
	invType int NULL,
	assetType int NULL,
	name varchar(255) NULL,
	description varchar(255) NULL,
	creationDate varchar(255) NULL,
	creatorID varchar(36) NULL,
	ownerID varchar(36) NULL,
	lastOwnerID varchar(36) NULL,
	groupID varchar(36) NULL,
	nextPermissions int NULL,
	currentPermissions int NULL,
	basePermissions int NULL,
	everyonePermissions int NULL,
	groupPermissions int NULL
	)  ON [PRIMARY]

IF EXISTS(SELECT * FROM primitems)
	 EXEC('INSERT INTO Tmp_primitems (itemID, primID, assetID, parentFolderID, invType, assetType, name, description, creationDate, creatorID, ownerID, lastOwnerID, groupID, nextPermissions, currentPermissions, basePermissions, everyonePermissions, groupPermissions)
		SELECT CONVERT(varchar(36), itemID), CONVERT(varchar(36), primID), CONVERT(varchar(36), assetID), CONVERT(varchar(36), parentFolderID), invType, assetType, name, description, creationDate, CONVERT(varchar(36), creatorID), CONVERT(varchar(36), ownerID), CONVERT(varchar(36), lastOwnerID), CONVERT(varchar(36), groupID), nextPermissions, currentPermissions, basePermissions, everyonePermissions, groupPermissions')

DROP TABLE primitems

EXECUTE sp_rename N'Tmp_primitems', N'primitems', 'OBJECT'

ALTER TABLE primitems ADD CONSTRAINT
	PK__primitems__0A688BB1 PRIMARY KEY CLUSTERED
	(
	itemID
	) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

COMMIT


text:
<?php

$config = [
    'components' => [
        'request' => [
            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
            'cookieValidationKey' => '',
        ],
        'authClientCollection' => [
            // !!! update this fileds in the following (if it is empty) - this is required for correct oauth work
            'clients' => [
                'google' => [
                    'class' => 'yii\authclient\clients\GoogleOAuth',
                    'clientId' => '',
                    'clientSecret' => '',
                ],
                'facebook' => [
                    'class' => 'yii\authclient\clients\Facebook',
                    'clientId' => '',
                    'clientSecret' => '',
                ],
                'twitter' => [
                    'class' => 'yii\authclient\clients\Twitter',
                    'consumerKey' => '',
                    'consumerSecret' => '',
                ],
                'github' => [
                    'class' => 'yii\authclient\clients\GitHub',
                    'clientId' => '',
                    'clientSecret' => '',
                ],
                'linkedin' => [
                    'class' => 'yii\authclient\clients\LinkedIn',
                    'clientId' => '',
                    'clientSecret' => '',
                ],
                'vkontakte' => [
                    'class' => 'yii\authclient\clients\VKontakte',
                    'clientId' => '',
                    'clientSecret' => '',
                ],
            ],
        ],
    ],
];

if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
    ];
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
    ];
}

return $config;