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

namespace Microsoft.Research.Willis
{
    public class Compiler
    {
        private int groupcounter;
        private int labelcounter;

        public Compiler()
        {
            this.groupcounter = 0;
            this.labelcounter = 0;
        }
        public interface Bytecode : IEquatable<Bytecode> { }

        internal struct Match : Bytecode
        {
            public bool Equals(Bytecode other)
            {
                return other is Match;
            }
        }

        internal struct Label : Bytecode
        {
            internal int Location { get; set; }

            public bool Equals(Bytecode other)
            {
                if (other is Label)
                {
                    var tmp = (Label)other;
                    return tmp.Location == this.Location;
                }
                return false;
            }
        }
        internal struct Symbol : Bytecode
        {
            internal char Lo { get; set; }
            internal char Hi { get; set; }

            public bool Equals(Bytecode other)
            {
                if (other is Symbol)
                {
                    var tmp = (Symbol)other;
                    return tmp.Lo == this.Lo && this.Hi == this.Hi;
                }
                return false;
            }
        }
        internal struct Fork : Bytecode
        {
            internal Label Fst { get; set; }
            internal Label Snd { get; set; }
            internal bool Greedy { get; set; }

            public bool Equals(Bytecode other)
            {
                if (other is Fork)
                {
                    var tmp = (Fork)other;
                    return tmp.Fst.Equals(this.Fst) && tmp.Snd.Equals(this.Snd) && tmp.Greedy == this.Greedy;
                }
                return false;
            }
        }
        internal struct Jump : Bytecode
        {
            internal Label Where { get; set; }

            public bool Equals(Bytecode other)
            {
                if (other is Jump)
                {
                    var tmp = (Jump)other;
                    return tmp.Where.Equals(this.Where);
                }

                return false;
            }
        }
        internal struct Save : Bytecode
        {
            internal int Id { get; set; }

            public bool Equals(Bytecode other)
            {
                if (other is Save)
                {
                    var tmp = (Save)other;
                    return tmp.Id == this.Id;
                }
                return false;
            }
        }

        private IEnumerable<Bytecode> InternalCompile(Parser.RegularExpression e)
        {
            if (e is Parser.Primitive)
            {
                var prim = e as Parser.Primitive;
                yield return new Symbol { Lo = prim.Lo, Hi = prim.Hi };
            }
            else if (e is Parser.Sequence)
            {
                var seq = e as Parser.Sequence;
                var left = InternalCompile(seq.Left);
                var right = InternalCompile(seq.Right);
                foreach (var item in left.Concat(right)) yield return item;
            }
            else if (e is Parser.Group)
            {
                var group = e as Parser.Group;
                var id = this.groupcounter++;
                yield return new Save { Id = 2 * id };
                foreach (var item in InternalCompile(group.Re)) yield return item;
                yield return new Save { Id = 2 * id + 1 };
            }
            else if (e is Parser.Or)
            {
                var choice = e as Parser.Or;
                var l1 = new Label { Location = this.labelcounter++ };
                var l2 = new Label { Location = this.labelcounter++ };
                var l3 = new Label { Location = this.labelcounter++ };

                var e1 = InternalCompile(choice.Left);
                var e2 = InternalCompile(choice.Right);

                yield return new Fork { Fst = l1, Snd = l2 };
                yield return l1;
                foreach (var item in e1) yield return item;
                yield return new Jump { Where = l3 };
                yield return l2;
                foreach (var item in e2) yield return item;
                yield return l3;
            }
            else if (e is Parser.Star)
            {
                var star = e as Parser.Star;

                var l1 = new Label { Location = this.labelcounter++ };
                var l2 = new Label { Location = this.labelcounter++ };
                var l3 = new Label { Location = this.labelcounter++ };

                var e1 = InternalCompile(star.Re);

                yield return l1;
                if (star.Greedy)
                    yield return new Fork { Fst = l2, Snd = l3, Greedy = true };
                else
                    yield return new Fork { Fst = l3, Snd = l2, Greedy = false };
                yield return l2;
                foreach (var item in e1) yield return item;
                yield return new Jump { Where = l1 };
                yield return l3;
            }
            else if (e is Parser.Plus)
            {
                var plus = e as Parser.Plus;

                var l1 = new Label { Location = this.labelcounter++ };
                var l2 = new Label { Location = this.labelcounter++ };
                var l3 = new Label { Location = this.labelcounter++ };

                var e1 = InternalCompile(plus.Re);
                yield return l1;
                foreach (var item in e1) yield return item;
                if (plus.Greedy)
                    yield return new Fork { Fst = l1, Snd = l3, Greedy = true };
                else
                    yield return new Fork { Fst = l3, Snd = l1, Greedy = false };
                yield return l3;

            }
            else if (e is Parser.Question)
                throw new Exception("Finish types");
            yield break;
        }

        public IEnumerable<Bytecode> Compile(Parser.RegularExpression e)
        {
            this.groupcounter = 0;
            this.labelcounter = 0;
            foreach (var item in InternalCompile(e))
                yield return item;
            yield return new Match { };
        }

    }
}


text:
package com.toursrilanka.toursrilanka;

import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentManager;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.Toast;

public class HomeDrawerActivity extends AppCompatActivity
        implements NavigationView.OnNavigationItemSelectedListener {

    String what_is_running_fragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home_drawer);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

//        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
//        fab.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
//                        .setAction("Action", null).show();
//            }
//        });

//        Bundle extras = getIntent().getExtras();
//        if (extras != null) {
//
//            String want_fragment = extras.getString("want_fragment");
//
//            if(want_fragment.equals("gallery")){
//                this.overridePendingTransition(0, 0);
//                android.app.FragmentManager fragmentManager = getFragmentManager();
//                fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new gallery_fragment()).commit();
//
//                getSupportActionBar().setTitle("Gallery");
//            }
//            else if(want_fragment.equals("category")){
//                this.overridePendingTransition(0, 0);
//                android.app.FragmentManager fragmentManager = getFragmentManager();
//                fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new category_fragment()).commit();
//
//                getSupportActionBar().setTitle("Category");
//            }
//
//        }
        android.app.FragmentManager fragmentManager = getFragmentManager();
                fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new category_fragment()).commit();
                getSupportActionBar().setTitle("Category");
        what_is_running_fragment = "category";

        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
        ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
                this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
        drawer.setDrawerListener(toggle);
        toggle.syncState();

        NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
        navigationView.setNavigationItemSelectedListener(this);

        onload_set_white_bar();

    }

    @Override
    public void onBackPressed() {
        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
        if (drawer.isDrawerOpen(GravityCompat.START)) {
            drawer.closeDrawer(GravityCompat.START);
        } else {
            super.onBackPressed();
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.home_drawer, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }

    @SuppressWarnings("StatementWithEmptyBody")
    @Override
    public boolean onNavigationItemSelected(MenuItem item) {
        // Handle navigation view item clicks here.
        int id = item.getItemId();
        android.app.FragmentManager fragmentManager = getFragmentManager();

        if (id == R.id.nav_camera) {
//            fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new category_fragment()).commit();
//            getSupportActionBar().setTitle("Category");
//            what_is_running_fragment = "category";

            Button button = (Button)findViewById(R.id.button12);
            category_btn_onclick(button);
        } else if (id == R.id.nav_gallery) {
//            fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new gallery_fragment()).commit();
//            getSupportActionBar().setTitle("Gallery");
//            what_is_running_fragment = "gallery";
            Button button = (Button)findViewById(R.id.button13);
            gallery_btn_onclick(button);
        }
//        else if (id == R.id.nav_slideshow) {
//
//        }
//        else if (id == R.id.nav_manage) {
//
//        } else if (id == R.id.nav_share) {
//
//        } else if (id == R.id.nav_send) {
//
//        }

        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
        drawer.closeDrawer(GravityCompat.START);
        return true;
    }

    public void gallery_btn_click(View v){

        Button button = (Button)findViewById(R.id.button14);

        Animation fadein = AnimationUtils.loadAnimation(this, R.anim.trans_right_out);
        button.startAnimation(fadein);

        DisplayMetrics displaymetrics = new DisplayMetrics();
        this.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
        int width = displaymetrics.widthPixels;
        int left_margin = (int)((float)width/(float)2);
        ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) button.getLayoutParams();
        params.leftMargin = left_margin;
        button.setLayoutParams(params);

    }

    public void gallery_click(View v){

//        Button button = (Button)findViewById(R.id.button14);
//
//        DisplayMetrics displaymetrics = new DisplayMetrics();
//        this.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
////        int height = displaymetrics.heightPixels;
//        int width = displaymetrics.widthPixels;
//
//        int want_width = (int)((float)width/(float)2);
//
//        ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) button.getLayoutParams();
//        params.leftMargin = 40;
//        button.setLayoutParams(params);
//
//
////        RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)button.getLayoutParams();
////        params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
////        params.addRule(RelativeLayout.RIGHT_OF, R.id.button12);
////
////        button.setLayoutParams(params); //causes layout update
//        Toast.makeText(this, "this is my Toast message!!! =)",
//                Toast.LENGTH_LONG).show();
    }

    public void set_white_bar(){
//        DisplayMetrics displaymetrics = new DisplayMetrics();
//        this.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
////        int height = displaymetrics.heightPixels;
//        int width = displaymetrics.widthPixels;
////
//        int want_width = (int)((float)width/(float)2);
//
//        Button button = (Button)findViewById(R.id.button14);
//
//        ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) button.getyoutParams();
//        params.width= want_width;
//        button.setLayoutPams(params);

//        Button load_game_btn = (Button)findViewById(R.id.ad_game_btn);
//        load_game_btn.setVisibilityiew.VISIBLE);
//        Animation fadein = AnimationUtils.loadAnimation(this, R.anim.tran//right_out);

//        button.startAnimation(fadein);

//        LinearLayout.LayoutParams params2 = new LinearLayout.LayoutParams(new FrameLayout.LayoutParams(want_width,want_height));
//        int want_height = (int)(want_width*1.5);

    }
    int white_bar_width;

    public void onload_set_white_bar(){

        DisplayMetrics displaymetrics = new DisplayMetrics();
        this.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
        int width = displaymetrics.widthPixels;
        white_bar_width = (int)((float)width/(float)2);
        Button button = (Button)findViewById(R.id.button14);
        button.setWidth(white_bar_width);

//        DisplayMetrics displaymetrics = new DisplayMetrics();
//        this.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
//        int width = displaymetrics.widthPixels;
//        int left_margin = (int)((float)width/(float)2);
//        ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) button.getLayoutParams();
//        params.leftMargin = left_margin;
//        button.setLayoutParams(params);

    }

    public void gallery_btn_onclick(View v){

        if(what_is_running_fragment != "gallery"){
            Button button = (Button)findViewById(R.id.button14);
            ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) button.getLayoutParams();
            params.leftMargin = white_bar_width;
            button.setLayoutParams(params);

//        Button button = (Button)findViewById(R.id.button14);
            Animation white_bar_half_right = AnimationUtils.loadAnimation(this, R.anim.white_bar_half_right);
            button.startAnimation(white_bar_half_right);

            int startColor = Color.parseColor("#689f38");
            int endColor = Color.parseColor("#ed3b3b");

            CoordinatorLayout coordinatorLayout = (CoordinatorLayout)findViewById(R.id.app_bar_home_drawer_coordinatelayout);

            ValueAnimator colorAnim = ObjectAnimator.ofInt(coordinatorLayout,"backgroundColor",startColor,endColor);
            colorAnim.setDuration(300);
            colorAnim.setEvaluator(new ArgbEvaluator());
            colorAnim.setRepeatCount(0);
            colorAnim.start();

//            ScrollView  scrollView = (ScrollView)this.findViewById(R.id.scrollView3);
//            Animation fade_out = AnimationUtils.loadAnimation(scrollView.getContext(), R.anim.fade_out);
//////        LinearLayout linearLayout = (LinearLayout) frameLayout.findViewById(R.id.linearlayout);
//            scrollView.startAnimation(fade_out);

        Animation fade_out = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.fade_out);
        ScrollView scrollViewx = (ScrollView) findViewById(R.id.scrollView3);
        scrollViewx.startAnimation(fade_out);

//        android.app.FragmentManager fragmentManager = getFragmentManager();
//        fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new gallery_fragment()).commit();
//        getSupportActionBar().setTitle("Gallery");

            new android.os.Handler().postDelayed(
                    new Runnable() {
                        public void run() {

//                        RelativeLayout relativeLayout = (RelativeLayout)findViewById(R.id.frame_layout_1);
//                        Animation fade_in = AnimationUtils.loadAnimation(relativeLayout.getContext(), R.anim.fade_in);
////        LinearLayout linearLayout = (LinearLayout) frameLayout.findViewById(R.id.linearlayout);
//                        relativeLayout.startAnimation(fade_in);
                            android.app.FragmentManager fragmentManager = getFragmentManager();
                            fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new gallery_fragment()).commit();
                            getSupportActionBar().setTitle("Gallery");

                            what_is_running_fragment = "gallery";

                        }
                    },
                    300);

        }

    }

    public void category_btn_onclick(View v){

        if(what_is_running_fragment != "category"){

            Button button = (Button)findViewById(R.id.button14);
            ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) button.getLayoutParams();
            params.leftMargin = 0;
            button.setLayoutParams(params);

//        Button button = (Button)findViewById(R.id.button14);
            Animation white_bar_half_left = AnimationUtils.loadAnimation(this, R.anim.white_bar_half_left);
            button.startAnimation(white_bar_half_left);

            int startColor = Color.parseColor("#ed3b3b");
            int endColor = Color.parseColor("#689f38");

            CoordinatorLayout coordinatorLayout = (CoordinatorLayout)findViewById(R.id.app_bar_home_drawer_coordinatelayout);

            ValueAnimator colorAnim = ObjectAnimator.ofInt(coordinatorLayout,"backgroundColor",startColor,endColor);
            colorAnim.setDuration(300);
            colorAnim.setEvaluator(new ArgbEvaluator());
            colorAnim.setRepeatCount(0);
            colorAnim.start();

            ScrollView  scrollView = (ScrollView)this.findViewById(R.id.scrollView4);
            Animation fade_out = AnimationUtils.loadAnimation(scrollView.getContext(), R.anim.fade_out);
////        LinearLayout linearLayout = (LinearLayout) frameLayout.findViewById(R.id.linearlayout);
            scrollView.startAnimation(fade_out);
//        }

//        RelativeLayout relativeLayout = (RelativeLayout)findViewById(R.id.frame_layout_1);
//        Animation fade_out = AnimationUtils.loadAnimation(relativeLayout.getContext(), R.anim.fade_out);
////        LinearLayout linearLayout = (LinearLayout) frameLayout.findViewById(R.id.linearlayout);
//        relativeLayout.startAnimation(fade_out);

            new android.os.Handler().postDelayed(
                    new Runnable() {
                        public void run() {

//                        RelativeLayout relativeLayout = (RelativeLayout)findViewById(R.id.frame_layout_1);
//                        Animation fade_in = AnimationUtils.loadAnimation(relativeLayout.getContext(), R.anim.fade_in);
////        LinearLayout linearLayout = (LinearLayout) frameLayout.findViewById(R.id.linearlayout);
//                        relativeLayout.startAnimation(fade_in);

                            android.app.FragmentManager fragmentManager = getFragmentManager();
                            fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new category_fragment()).commit();
                            getSupportActionBar().setTitle("Category");
                            what_is_running_fragment = "category";

                        }
                    },
                    300);

//        button.postDelayed(new Runnable() {
//            @Override
//            public void run() {
//                android.app.FragmentManager fragmentManager = getFragmentManager();
//                fragmentManager.beginTransaction().replace(R.id.frame_layout_1,new category_fragment()).commit();
//                getSupportActionBar().setTitle("Category");
//            }
//        }, 300);

        }

    }

    public void loaf_fragment_sngle_category_view_layout(){
        LayoutInflater myInflater= LayoutInflater.from(this);
        View view=myInflater.inflate(R.layout.content_home_drawer,null);
        Toast mytoast=new Toast(this);
        mytoast.setView(view);
        mytoast.setDuration(Toast.LENGTH_LONG);
        mytoast.show();
    }
}

redpajama_set_name: RedPajamaGithub


text:
import matplotlib
matplotlib.use('agg')

import argparse
import yaml
import logging
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
import seaborn as sns; sns.set(style='white')

import pbio.misc.mpl_utils as mpl_utils
import pbio.misc.logging_utils as logging_utils

import pbio.ribo.ribo_utils as ribo_utils

logger = logging.getLogger(__name__)

default_fontsize = 20
default_legend_fontsize = 15

default_ymax = None # 1e8+1
default_ystep = 1e7

default_alignment_counts_order = [
    'raw_data_count',
    'without_adapters_count',
    'without_rrna_count',
    'genome_count',
    'unique_count',
    'length_count'
]

default_alignment_counts_names = [
    'Poor quality',
    'Ribosomal',
    'No alignment',
    'Multimappers',
    'Non-periodic',
    'Usable'
]

without_rrna_order = [
    'without_rrna_count',
    'genome_count',
    'unique_count',
    'length_count'
]

without_rrna_names = [
    "No alignment",
    "Multimappers",
    "Non-periodic",
    "Usable"
]

def main():
    parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
        description="Visualize the read counts at each filtering step.")

    parser.add_argument('alignment_counts', help="The (csv) alignment counts "
        "(created with get-all-filtering-counts)")
    parser.add_argument('out', help="The output image file")

    parser.add_argument('--alignment-counts-order', help="The fields to use "
        "from the alignment_counts file. The order should range from the "
        "least strict filter to most strict filter.", nargs='+',
        default=default_alignment_counts_order)

    parser.add_argument('--alignment-counts-names', help="The text to use for "
        "the kept fields in the plot. The order of the names must match that "
        "of --alignment-counts-order.", nargs='+',
        default=default_alignment_counts_names)

    parser.add_argument('--without-rrna', help="If this flag is present, then "
        "a default set of fields excluding the reads mapping to ribosomal "
        "sequences will be used.", action='store_true')

    parser.add_argument('--config', help="""The config file, if using
        pretty names, "riboseq_sample_name_map" must be defined""", type=str,
        default=None)

    parser.add_argument('--title', help="The title of the plot", default=None)

    parser.add_argument('--fontsize', help="The font size to use for most of "
        "the text in the plot", type=int, default=default_fontsize)

    parser.add_argument('--legend-fontsize', help="The font size to use for "
        "the legend labels", type=int, default=default_legend_fontsize)

    parser.add_argument('--ymax', help="The maximum for the y-axis", type=int,
        default=default_ymax)
    parser.add_argument('--ystep', help="The step size for ticks on the "
        "y-axis.", type=int, default=default_ystep)

    logging_utils.add_logging_options(parser)
    args = parser.parse_args()
    logging_utils.update_logging(args)

    if args.without_rrna:
        msg = "Using the default without rrna field order"
        logger.info(msg)

        args.alignment_counts_order = without_rrna_order
        args.alignment_counts_names = without_rrna_names

    # we really need the fields from most- to least-restrictive
    args.alignment_counts_order = args.alignment_counts_order[::-1]
    args.alignment_counts_names = args.alignment_counts_names[::-1]

    msg = "Reading counts"
    logger.info(msg)

    alignment_counts = pd.read_csv(args.alignment_counts)
    alignment_counts = alignment_counts.sort_values('note')

    msg = "Calculating the diff counts"
    logger.info(msg)
    alignment_diff_counts = mpl_utils.get_diff_counts(
        alignment_counts[args.alignment_counts_order])

    df = pd.DataFrame(alignment_diff_counts)
    df.columns = args.alignment_counts_names

    names = alignment_counts['note'].reset_index(drop=True)
    df['name'] = names

    if args.config:
        try:
            config = yaml.load(open(args.config), Loader=yaml.FullLoader)
            sample_name_map = ribo_utils.get_sample_name_map(config)
            df['display_name'] = df['name'].apply(lambda x: sample_name_map[x])
        except:
            msg = 'Fall back to "name", cannot fetch "display_name" from config file.'
            logger.warning(msg)
            df['display_name'] = df['name']
    else:
        df['display_name'] = df['name']

    msg = "Creating the stacked bar chart"
    logger.info(msg)

    fig, ax = plt.subplots()

    pal = sns.palettes.color_palette(
        palette="Set3",
        n_colors=len(args.alignment_counts_names)
    )

    gap = 0.15

    # if we aren't given information about the y-axis, try to guess
    if args.ymax is None:
        field = args.alignment_counts_order[-2]
        max_count = alignment_counts[field].max()

        if args.ystep > max_count:
            args.ystep = np.ceil(max_count / 4)

        args.ymax = (np.ceil(max_count / args.ystep) * args.ystep) + 1

    yticks = np.arange(0, args.ymax, args.ystep)

    bars = mpl_utils.create_stacked_bar_graph(
        ax,
        alignment_diff_counts,
        colors=pal,
        x_tick_labels=df['display_name'],
        y_ticks=yticks,
        y_tick_labels=yticks,
        gap=gap,
        end_gaps=True,
        stack_labels=args.alignment_counts_names,
        y_title='Reads',
        log=False,
        font_size=args.fontsize,
        edge_colors='0.5'
    )

    ax.legend(
        loc='upper center',
        bbox_to_anchor=(0.5, -0.6),
        ncol=3,
        fontsize=args.legend_fontsize,
        title="Filter",
        frameon=True
    )

    ax.yaxis.set_major_formatter(mtick.FormatStrFormatter('%.0e'))
    mpl_utils.set_label_fontsize(ax, args.fontsize)
    mpl_utils.set_legend_title_fontsize(ax, args.fontsize)

    if args.title is not None:
        ax.set_title(args.title, fontsize=args.fontsize)

    msg = "Writing the plot to disk"
    logger.info(msg)
    fig.savefig(args.out, bbox_inches='tight')

if __name__ == '__main__':
    main()


text:
local base = require('litcord.structures.base')
local Reaction = require('litcord.structures.Reaction')

local Message = class(base)

function Message:__constructor ()
	self.reactions = utils.Cache()
end

function Message:__updated ()
	self.clean = self.content
	if not self.mentions then
		return
	end
	for i,user in ipairs(self.mentions) do
		self.mentions[i] = self.parent.parent.parent.users:get('id', user.id)
		self.clean = self.clean:gsub('<@'..user.id..'>', '@'..user.username)
		self.clean = self.clean:gsub('<@!'..user.id..'>', '@!'..user.username)
		if user.id == self.parent.parent.parent.user.id then
			self.mentions.client = true
		end
	end
	for mention in self.clean:gmatch('<#.->') do
		local snowflake = mention:sub(3, #mention - 1)
		local channel = self.parent.parent.parent.channels:get(snowflake)
		local name = (channel and channel.name) or snowflake
		self.clean = self.clean:gsub(mention, '#'..name)
	end
	for mention in self.content:gmatch('<@&.->') do
		local snowflake = mention:sub(4, #mention - 1)
		local role = self.parent.parent.roles:get(snowflake)
		local name = (role and role.name) or snowflake
		self.clean = self.clean:gsub(mention, '@'..name)
	end
end

function Message:react (emoji)
	local data, err = self.parent.parent.parent.rest:request(
		Route(
			'channels/%s/messages/%s/reactions/%s/@me',
			self.parent.id,
			self.id,
			emoji.id or emoji
		),
		nil,
		'PUT'
	)
	if not data then
		return data, err
	end
	local reaction = Reaction(self)
	reaction:update(data.emoji)
	self.reactions:add(reaction)
	return reaction
end

function Message:reply (thing)
	if not self.parent.is_private then
		local prepend = '<@!'..self.author.id..'> '
		if type(thing) == 'table' then
			thing.content = prepend .. thing.content
		else
			thing = prepend .. thing
		end
	end
	return self.parent:sendMessage(thing)
end

function Message:delete ()
	return self.parent.parent.parent.rest:request(
		Route(
			'channels/%s/messages/%s',
			self.parent.id,
			self.id
		),
		nil,
		'DELETE'
	)
end

function Message:edit (thing)
	if type(thing) ~= 'table' then
		thing = {
			content = thing,
		}
	end
	return self.parent.parent.parent.rest:request(
		Route(
			'channels/%s/messages/%s',
			self.parent.id,
			self.id
		),
		thing,
		'PATCH'
	)
end

return Message


text:
using System;
using System.Runtime.InteropServices;
using WinRT;

namespace Windows.UI.Composition.Interop
{
    [WindowsRuntimeType]
    [Guid("25297D5C-3AD4-4C9C-B5CF-E36A38512330")]
    public interface ICompositorInterop
    {
        ICompositionSurface CreateCompositionSurfaceForHandle(IntPtr swapChain);

        ICompositionSurface CreateCompositionSurfaceForSwapChain(IntPtr swapChain);

        CompositionGraphicsDevice CreateGraphicsDevice(IntPtr renderingDevice);
    }
}

namespace ABI.Windows.UI.Composition.Interop
{
    using global::System;
    using global::System.Runtime.InteropServices;
    using global::Windows.UI.Composition;

    [Guid("25297D5C-3AD4-4C9C-B5CF-E36A38512330")]
    internal class ICompositorInterop : global::Windows.UI.Composition.Interop.ICompositorInterop

    {
        [Guid("25297D5C-3AD4-4C9C-B5CF-E36A38512330")]
        public struct Vftbl
        {
            public delegate int _CreateCompositionSurfaceForHandle(IntPtr ThisPtr, IntPtr swapChain, out IntPtr result);
            public delegate int _CreateCompositionSurfaceForSwapChain(IntPtr ThisPtr, IntPtr swapChain, out IntPtr result);
            public delegate int _CreateGraphicsDevice(IntPtr ThisPtr, IntPtr renderingDevice, out IntPtr result);

            internal global::WinRT.Interop.IUnknownVftbl IUnknownVftbl;
            public _CreateCompositionSurfaceForHandle CreateCompositionSurfaceForHandle;
            public _CreateCompositionSurfaceForSwapChain CreateCompositionSurfaceForSwapChain;
            public _CreateGraphicsDevice CreateGraphicsDevice;

            public static readonly Vftbl AbiToProjectionVftable;
            public static readonly IntPtr AbiToProjectionVftablePtr;

            static Vftbl()
            {
                AbiToProjectionVftable = new Vftbl
                {
                    IUnknownVftbl = global::WinRT.Interop.IUnknownVftbl.AbiToProjectionVftbl,

                    CreateCompositionSurfaceForHandle = Do_Abi_Create_Composition_Surface_For_Handle,
                    CreateCompositionSurfaceForSwapChain = Do_Abi_Create_Composition_Surface_For_SwapChain,
                    CreateGraphicsDevice= Do_Abi_Create_Graphics_Device
                };
                AbiToProjectionVftablePtr = Marshal.AllocHGlobal(Marshal.SizeOf<Vftbl>());
                Marshal.StructureToPtr(AbiToProjectionVftable, AbiToProjectionVftablePtr, false);
            }

            private static int Do_Abi_Create_Composition_Surface_For_Handle(IntPtr thisPtr, IntPtr swapChain, out IntPtr surface)
            {
                try
                {
                    surface = IntPtr.Zero;
                    //surface = ComWrappersSupport.FindObject<global::Windows.UI.Composition.Interop.ICompositorInterop>(thisPtr).CreateCompositionSurfaceForHandle(swapChain);
                    return 0;
                }
                catch (Exception ex)
                {
                    surface = IntPtr.Zero;
                    return Marshal.GetHRForException(ex);
                }
            }

            private static int Do_Abi_Create_Composition_Surface_For_SwapChain(IntPtr thisPtr, IntPtr swapChain, out IntPtr surface)
            {
                try
                {
                    surface = IntPtr.Zero;
                    //surface = ComWrappersSupport.FindObject<global::Windows.UI.Composition.Interop.ICompositorInterop>(thisPtr).CreateCompositionSurfaceForSwapChain(swapChain);
                    return 0;
                }
                catch (Exception ex)
                {
                    surface = IntPtr.Zero;
                    return Marshal.GetHRForException(ex);
                }
            }

            private static int Do_Abi_Create_Graphics_Device(IntPtr thisPtr, IntPtr renderingDevice, out IntPtr graphicsDevice)
            {
                try
                {
                    graphicsDevice = ComWrappersSupport.FindObject<global::Windows.UI.Composition.Interop.ICompositorInterop>(thisPtr).CreateGraphicsDevice(renderingDevice).ThisPtr;
                    return 0;
                }
                catch (Exception ex)
                {
                    graphicsDevice = IntPtr.Zero;
                    return Marshal.GetHRForException(ex);
                }
            }
        }
        internal static ObjectReference<Vftbl> FromAbi(IntPtr thisPtr) => ObjectReference<Vftbl>.FromAbi(thisPtr);

        public static implicit operator ICompositorInterop(IObjectReference obj) => (obj != null) ? new ICompositorInterop(obj) : null;
        protected readonly ObjectReference<Vftbl> _obj;
        public IObjectReference ObjRef { get => _obj; }
        public IntPtr ThisPtr => _obj.ThisPtr;
        public ObjectReference<I> AsInterface<I>() => _obj.As<I>();
        public A As<A>() => _obj.AsType<A>();
        public ICompositorInterop(IObjectReference obj) : this(obj.As<Vftbl>()) { }
        internal ICompositorInterop(ObjectReference<Vftbl> obj)
        {
            _obj = obj;
        }

        public ICompositionSurface CreateCompositionSurfaceForHandle(IntPtr swapChain)
        {
            Marshal.ThrowExceptionForHR(_obj.Vftbl.CreateCompositionSurfaceForHandle(ThisPtr, swapChain, out var compositionSurface));

            return null;
        }

        public ICompositionSurface CreateCompositionSurfaceForSwapChain(IntPtr swapChain)
        {
            Marshal.ThrowExceptionForHR(_obj.Vftbl.CreateCompositionSurfaceForSwapChain(ThisPtr, swapChain, out var compositionSurface));

            return null;
        }

        public CompositionGraphicsDevice CreateGraphicsDevice(IntPtr renderingDevice)
        {
            Marshal.ThrowExceptionForHR(_obj.Vftbl.CreateGraphicsDevice(ThisPtr, renderingDevice, out var graphicsDevice));

            return CompositionGraphicsDevice.FromAbi(graphicsDevice);
        }
    }
}


text:
<?php

if(!defined('LS_ROOT_FILE')) {
	header('HTTP/1.0 403 Forbidden');
	exit;
}

// Attempt to workaround memory limit & execution time issues
@ini_set( 'max_execution_time', 0 );
@ini_set( 'memory_limit', '256M' );

$deleteLink = '';
if( !empty( $_GET['user'] ) ) {
	$deleteLink = wp_nonce_url('users.php?action=delete&user='.(int)$_GET['user'], 'bulk-users' );
}

$authorized 	= get_option('layerslider-authorized-site', false);
$isAdmin 		= current_user_can('manage_options');

?>

		<?php _e('System Status', 'LayerSlider') ?>
		<a href="<?php echo admin_url('?page=layerslider') ?>" class="add-new-h2"><?php _e('Back', 'LayerSlider') ?>

	<?php if(isset($_GET['message'])) : ?>
	<div class="ls-notification <?php echo isset($_GET['error']) ? 'error' : 'updated' ?>">

<?php echo $notifications[ $_GET['message'] ] ?>

	<?php endif; ?>

	<?php
		$latest 	= get_option('ls-latest-version', 0);
		$plugins 	= get_plugins();
		$cachePlugs = array();
		$timeout 	= (int) ini_get('max_execution_time');
		$memory 	= ini_get('memory_limit');
		$memoryB 	= str_replace(array('G', 'M', 'K'), array('000000000', '000000', '000'), $memory);
		$postMaxB 	= str_replace(array('G', 'M', 'K'), array('000000000', '000000', '000'), ini_get('post_max_size'));
		$uploadB 	= str_replace(array('G', 'M', 'K'), array('000000000', '000000', '000'), ini_get('upload_max_filesize'));
	?>

<?php _e('This page is intended to help you identifying possible issues and to display relevant debug information about your site.', 'LayerSlider') ?>

<?php _e('Whenever a potential issues is detected, it will be marked with red or orange text describing the nature of that issue.', 'LayerSlider') ?>

<?php _e('Please keep in mind that in most cases only your web hosting company can change server settings, thus you should contact them with the messages provided (if any).', 'LayerSlider') ?>

						<?php _e('Available Updates', 'LayerSlider') ?>

					<tr class="<?php echo ! empty($authorized) ? '' : 'ls-warning' ?>">
						<?php _e('Auto-Updates:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($authorized) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo ! empty($authorized) ? __('Activated', 'LayerSlider') : __('Not set', 'LayerSlider') ?>

							<?php if( ! $authorized ) : ?>
							<?php echo sprintf(__('Activate your copy of LayerSlider to receive updates, so you can always use the latest release with all the new features and bug fixes. %sClick here to learn more%s.', 'LayerSlider'), '', '') ?>
							<?php endif ?>

						<?php $test = version_compare(LS_PLUGIN_VERSION, $latest, '<'); ?>
						<?php _e('LayerSlider version:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo LS_PLUGIN_VERSION ?>

							<?php if( $test ) : ?>
							<?php echo sprintf( __('Update to latest version (%1$s), as we are constantly working on new features, improvements and bug fixes.', 'LayerSlider'), $latest) ?>
							<?php endif ?>

						<?php $test = true; ?>
						<?php _e('WordPress version:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo get_bloginfo('version') ?>

					<?php _e('Site Setup & Plugin Settings', 'LayerSlider') ?>

					<?php

						if( $authorized ) :
						$test = strpos(LS_ROOT_FILE, '/wp-content/plugins/LayerSlider/');

					?>

						<?php _e('Install Location', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-info' ?>">
						<?php echo ! empty( $test ) ? _e('OK', 'LayerSlider') : _e('Non-standard', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>

								<?php echo __('Using LayerSlider from a non-standard install location or having a different directory name could lead issues in receiving and installing updates. Commonly, you see this issue when you're using a theme-included version of LayerSlider. To fix this, please first search for an option to disable/unload the bundled version in your theme, then re-install a fresh copy downloaded from CodeCanyon. Your sliders and settings are stored in the database, re-installing the plugin will not harm them.', 'LayerSlider') ?>

							<?php endif ?>

					<?php endif ?>

					<?php $test = defined('WP_DEBUG') &&  WP_DEBUG; ?>
					<tr class="<?php echo ! empty($test) ? '' : 'ls-info' ?>">
						<?php _e('WP Debug Mode:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-info' ?>">
						<?php echo ! empty( $test ) ? _e('Enabled', 'LayerSlider') : _e('Disabled', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>

								<?php echo __('If you experience any issue, we recommend enabling the WP Debug mode while debugging.', 'LayerSlider') ?>
								<?php echo ''. __('Click here to learn more', 'LayerSlider') .'' ?>

							<?php endif ?>

					<?php
						$uploads = wp_upload_dir();
						$uploadsDir = $uploads['basedir'];
						$test = file_exists($uploadsDir) && is_writable($uploadsDir);
					?>

						<?php _e('Uploads directory:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-info' ?>">
						<?php echo ! empty( $test ) ? _e('OK', 'LayerSlider') : _e('Unavailable', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>

								<?php echo __('LayerSlider uses the uploads directory for image uploads, exporting/importing sliders, etc. Make sure that your /wp-content/uploads/ directory exists and has write permission.', 'LayerSlider') ?>
								<?php echo ''. __('Click here to learn more', 'LayerSlider') .'' ?>

							<?php endif ?>

					<?php

						foreach($plugins as $key => $plugin) {
							if( stripos($plugin['Name'], 'cache') !== false ) {
								$cachePlugs[] = $plugin['Name'];
							}
						}

						$test = empty( $cachePlugs );
					?>
					<tr class="<?php echo $test ? '' : 'ls-warning' ?>">
						<?php _e('Cache plugins', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo ! $test ? implode(', ', $cachePlugs) : __('Not found', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>
							<?php _e('The listed plugin(s) may prevent edits and other changes to show up on your site in real-time. Empty your caches if you experience any issue.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = get_option('ls_use_custom_jquery', false); ?>
						<?php _e('jQuery Google CDN:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo ! empty($test) ? __('Enabled', 'LayerSlider') : __('Disabled', 'LayerSlider') ?>

							<?php if( ! empty( $test ) ) : ?>
							<?php _e('Should be used in special cases only, as it can break otherwise functioning sites. This option is located on the main LayerSlider admin screen under the Advanced tab.', 'LayerSlider') ?>
							<?php endif ?>

						<?php _e('Server Settings', 'LayerSlider') ?>

						<?php $test = version_compare(phpversion(), '5.3', '<'); ?>
						<?php _e('PHP Version:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo phpversion() ?>

							<?php if( ! empty( $test ) ) : ?>
							<?php _e('LayerSlider requires PHP 5.3.0 or newer. Please contact your host and ask them to upgrade PHP on your web server.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = $timeout > 0 && $timeout < 60; ?>
						<?php _e('PHP Time Limit:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo ! empty( $timeout ) ? $timeout.'s' : 'No limit' ?>

							<?php if( $test ) : ?>
							<?php _e('PHP max. execution time should be set to at least 60 seconds or higher when importing large sliders. Please contact your host and ask them to change this PHP setting on your web server accordingly.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = (int)$memory > 0 && $memoryB < 64 * 1024 * 1024; ?>
						<?php _e('PHP Memory Limit:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $memory ?>

							<?php if( $test ) : ?>
							<?php _e('PHP memory limit should be set to at least 64MB or higher when dealing with large sliders. Please contact your host and ask them to change this PHP setting on your web server accordingly.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = $postMaxB < 16 * 1024 * 1024; ?>
						<?php _e('PHP Post Max Size:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo ini_get('post_max_size') ?>

							<?php if( $test ) : ?>
							<?php _e('Importing larger sliders could be problematic in some cases. This option is needed to upload large files. We recommend to set it to at least 16MB or higher. Please contact your host and ask them to change this PHP setting on your web server accordingly.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = $uploadB < 16 * 1024 * 1024; ?>
						<?php _e('PHP Max Upload Size:', 'LayerSlider') ?>
						<span class="dashicons <?php echo empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo ini_get('upload_max_filesize') ?>

							<?php if( $test ) : ?>
							<?php _e('Importing larger sliders could be problematic in some cases. This option is needed to upload large files. We recommend to set it to at least 16MB or higher. Please contact your host and ask them to change this PHP setting on your web server accordingly.', 'LayerSlider') ?>
							<?php endif ?>

					<?php $test = extension_loaded('suhosin'); ?>
					<tr class="<?php echo empty($test) ? '' : 'ls-warning' ?>">
						<?php _e('Suhosin:', '') ?>
						<span class="dashicons <?php echo  empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('Active', 'LayerSlider') : __('Not found', 'LayerSlider'); ?>

							<?php if( $test ) : ?>
							<?php _e('Suhosin may override PHP server settings that are otherwise marked OK here. If you experience issues, please contact your web hosting company and ask them to verify the listed server settings above.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = class_exists('ZipArchive'); ?>
						<?php _e('PHP ZipArchive Extension:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('Enabled', 'LayerSlider') : __('Disabled', 'LayerSlider'); ?>

							<?php if( ! $test ) : ?>
							<?php _e('The PHP ZipArchive extension is needed to use the Template Store and import/export sliders with images.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = class_exists('DOMDocument'); ?>
						<?php _e('PHP DOMDocument Extension:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('Enabled', 'LayerSlider') : __('Disabled', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>
							<?php _e('Front-end sliders and the slider builder interface require the PHP DOMDocument extension.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = extension_loaded('mbstring'); ?>
						<?php _e('PHP Multibyte String Extension:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('Enabled', 'LayerSlider') : __('Disabled', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>
							<?php _e('The lack of PHP "mbstring" extension can lead to unexpected issues. Contact your server hosting provider and ask them to install/enable this extension.', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = function_exists('mb_ereg_match'); ?>
						<?php _e('PHP Multibyte Regex Functions:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('Enabled', 'LayerSlider') : __('Disabled', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>
							<?php _e('The lack of PHP "mbregex" module can lead to unexpected issues. Contact your server hosting provider and ask them to install/enable this module.', 'LayerSlider') ?>
							<?php endif ?>

						<?php
							$response = wp_remote_post('https://repository.kreaturamedia.com/v4/ping/' );
							$test = ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 );
						?>
						<?php _e('WP Remote functions:', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('OK', 'LayerSlider') : __('Blocked', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>
							<?php _e('Failed to connect to our update server. This could cause issues with product activation, serving updates or downloading templates from the Template Store. It's most likely a web server configuration issue. Please contact your web host and ask them to allow external connection to the following domain: repository.kreaturamedia.com', 'LayerSlider') ?>
							<?php endif ?>

						<?php $test = ! empty( $_SERVER['SERVER_NAME'] ); ?>
						<?php _e('$_SERVER variables', 'LayerSlider') ?>
						<span class="dashicons <?php echo ! empty($test) ? 'dashicons-yes' : 'dashicons-warning' ?>">
						<?php echo $test ? __('OK', 'LayerSlider') : __('Unavailable', 'LayerSlider') ?>

							<?php if( ! $test ) : ?>
							<?php _e('Product activation and some of the related features depend on the $_SERVER[\'SERVER_NAME\'] PHP variable. It seems that this variable is not available on your installation due to the web server configuration. Please contact your hosting provider and show them this message, they will know what to change.', 'LayerSlider') ?>
							<?php endif ?>

	<?php if( $isAdmin && ! empty( $_GET['updateinfo']) ) : ?>

<?php _e('Update info', 'LayerSlider') ?>

<?php var_dump( get_option('layerslider_update_info') ) ?>

<?php _e('Update info after cancellation', 'LayerSlider') ?>

<?php var_dump( get_option('layerslider_cancellation_update_info') ) ?>

	<?php endif ?>

		<button class="button button-hero button-primary ls-phpinfo-button"><?php _e('Show Advanced Details', 'LayerSlider') ?></button>

		<button class="button button-hero button-primary ls-erase-button"><?php _e('Erase All Plugin Data', 'LayerSlider') ?></button>


text:
module CoordinateSpec (spec) where

import Control.Exception (ErrorCall, evaluate)
import Data.List (nub, sort)
import Test.Hspec
import Test.QuickCheck

import Coordinate

instance Arbitrary Coordinate where
  arbitrary = elements coordinates

outOfBoundsError :: Selector ErrorCall
outOfBoundsError = errorCall "Coordinate out of bounds"

spec :: Spec
spec = do
  describe "instance Enum Coordinate" $ do
    describe "succ" $ do
      it "returns an error on maxBound" $ do
        evaluate (succ (maxBound :: Coordinate)) `shouldThrow` outOfBoundsError
    describe "pred" $ do
      it "returns an error on minBound" $ do
        evaluate (pred (minBound :: Coordinate)) `shouldThrow` outOfBoundsError
    describe "toEnum" $ do
      context "when the value is less than 0" $ do
        it "returns an error" $ property $
          forAll (choose (minBound, -1)) $ \i ->
            evaluate (toEnum i :: Coordinate) `shouldThrow` outOfBoundsError
      context "when the value is greater than 4" $ do
        it "returns an error" $ property $
          forAll (choose (5, maxBound)) $ \i ->
            evaluate (toEnum i :: Coordinate) `shouldThrow` outOfBoundsError
      context "otherwise" $ do
        it "is inverted by fromEnum" $ property $
          forAll (choose (0, 4)) $ \i ->
            (fromEnum $ (toEnum i :: Coordinate)) `shouldBe` i
    describe "fromEnum" $ do
      it "is inverted by toEnum" $ property $
        \c -> (toEnum $ fromEnum c :: Coordinate) `shouldBe` c

  describe "coordinate" $ do
    context "when the value is less than 0" $ do
      it "returns an error" $ property $
        forAll (choose (minBound, 0)) $ \i ->
          evaluate (coordinate i) `shouldThrow` anyException
    context "when the value is greater than 4" $ do
      it "returns an error" $ property $
        forAll (choose (5, maxBound)) $ \i ->
          evaluate (coordinate i) `shouldThrow` anyException
    context "otherwise" $ do
      it "is inverted by unCoordinate" $ property $
        forAll (choose (0, 4)) $ \i ->
          unCoordinate (coordinate i) `shouldBe` i

  describe "coordinates" $ do
    it "returns a list of 5 coordinates" $ do
      length coordinates `shouldBe` 5
    it "returns a list of distinct coordinates" $ do
      nub coordinates `shouldBe` coordinates
    it "returns a list of coordinates in sorted order" $ do
      sort coordinates `shouldBe` coordinates


text:
static const char kSandboxBinary[] = "/opt/google/chrome/chrome-sandbox";

ZygoteHost::ZygoteHost() {
  std::wstring chrome_path;
  CHECK(PathService::Get(base::FILE_EXE, &chrome_path));
  CommandLine cmd_line(chrome_path);

  cmd_line.AppendSwitchWithValue(switches::kProcessType,
                                 switches::kZygoteProcess);

  int fds[2];
  CHECK(socketpair(PF_UNIX, SOCK_SEQPACKET, 0, fds) == 0);
  base::file_handle_mapping_vector fds_to_map;
  fds_to_map.push_back(std::make_pair(fds[1], 3));

  const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
  if (browser_command_line.HasSwitch(switches::kZygoteCmdPrefix)) {
    const std::wstring prefix =
        browser_command_line.GetSwitchValue(switches::kZygoteCmdPrefix);
    cmd_line.PrependWrapper(prefix);
  }

  struct stat st;
  if (stat(kSandboxBinary, &st) == 0) {
    if (access(kSandboxBinary, X_OK) == 0 &&
        (st.st_mode & S_ISUID) &&
        (st.st_mode & S_IXOTH)) {
      cmd_line.PrependWrapper(ASCIIToWide(kSandboxBinary));
    } else {
      LOG(FATAL) << "The SUID sandbox helper binary was found, but is not "
                    "configured correctly. Rather than run without sandboxing "
                    "I'm aborting now. You need to make sure that "
                 << kSandboxBinary << " is mode 4755.";
    }
  }

  // Start up the sandbox host process and get the file descriptor for the
  // renderers to talk to it.
  const int sfd = Singleton<RenderSandboxHostLinux>()->GetRendererSocket();
  fds_to_map.push_back(std::make_pair(sfd, 5));

  base::ProcessHandle process;
  base::LaunchApp(cmd_line.argv(), fds_to_map, false, &process);
  CHECK(process != -1) << "Failed to launch zygote process";

  close(fds[1]);
  control_fd_ = fds[0];
}

ZygoteHost::~ZygoteHost() {
  close(control_fd_);
}

pid_t ZygoteHost::ForkRenderer(
    const std::vector<std::string>& argv,
    const base::GlobalDescriptors::Mapping& mapping) {
  Pickle pickle;

  pickle.WriteInt(kCmdFork);
  pickle.WriteInt(argv.size());
  for (std::vector<std::string>::const_iterator
       i = argv.begin(); i != argv.end(); ++i)
    pickle.WriteString(*i);

  pickle.WriteInt(mapping.size());

  std::vector<int> fds;
  for (base::GlobalDescriptors::Mapping::const_iterator
       i = mapping.begin(); i != mapping.end(); ++i) {
    pickle.WriteUInt32(i->first);
    fds.push_back(i->second);
  }

  if (!base::SendMsg(control_fd_, pickle.data(), pickle.size(), fds))
    return -1;

  pid_t pid;
  if (HANDLE_EINTR(read(control_fd_, &pid, sizeof(pid))) != sizeof(pid))
    return -1;

  return pid;
}

void ZygoteHost::EnsureProcessTerminated(pid_t process) {
  Pickle pickle;

  pickle.WriteInt(kCmdReap);
  pickle.WriteInt(process);

  HANDLE_EINTR(write(control_fd_, pickle.data(), pickle.size()));
}

bool ZygoteHost::DidProcessCrash(base::ProcessHandle handle,
                                 bool* child_exited) {
  Pickle pickle;
  pickle.WriteInt(kCmdDidProcessCrash);
  pickle.WriteInt(handle);

  HANDLE_EINTR(write(control_fd_, pickle.data(), pickle.size()));

  static const unsigned kMaxMessageLength = 128;
  char buf[kMaxMessageLength];
  const ssize_t len = HANDLE_EINTR(read(control_fd_, buf, sizeof(buf)));

  if (len == -1) {
    LOG(WARNING) << "Error reading message from zygote: " << errno;
    return false;
  } else if (len == 0) {
    LOG(WARNING) << "Socket closed prematurely.";
    return false;
  }

  Pickle read_pickle(buf, len);
  bool did_crash, tmp_child_exited;
  void* iter = NULL;
  if (!read_pickle.ReadBool(&iter, &did_crash) ||
      !read_pickle.ReadBool(&iter, &tmp_child_exited)) {
    LOG(WARNING) << "Error parsing DidProcessCrash response from zygote.";
    return false;
  }

  if (child_exited)
    *child_exited = tmp_child_exited;

  return did_crash;
}


text:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/albumlayout"
    tools:context="com.jboc.mapcam.activities.AlbumActivity">

    <TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.763"
        app:layout_constraintHorizontal_bias="0.782" />

    <Button
        android:id="@+id/getCustom"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="사진등록하기"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.779"
        app:layout_constraintHorizontal_bias="0.233" />

    <ImageView
        android:id="@+id/imgView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.241"
        app:layout_constraintHorizontal_bias="0.0" />
    <!--android:src="@mipmap/ic_launcher"-->

    <Button
        android:id="@+id/home_button_album"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Home"
        android:visibility="visible"
        android:layout_marginLeft="16dp"
        app:layout_constraintBottom_toBottomOf="parent"
        android:layout_marginBottom="16dp"
        app:layout_constraintLeft_toLeftOf="parent"
        android:layout_marginStart="16dp" />

    <Button
        android:id="@+id/album_button_album"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Album"
        android:visibility="visible"
        tools:layout_constraintRight_creator="1"
        tools:layout_constraintBottom_creator="1"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        tools:layout_constraintLeft_creator="1"
        android:layout_marginBottom="16dp"
        app:layout_constraintLeft_toLeftOf="parent" />

    <Button
        android:id="@+id/map_button_album"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Map"
        tools:layout_constraintRight_creator="1"
        tools:layout_constraintBottom_creator="1"
        app:layout_constraintBottom_toBottomOf="parent"
        android:layout_marginEnd="20dp"
        app:layout_constraintRight_toRightOf="parent"
        android:layout_marginBottom="16dp"
        android:layout_marginRight="16dp" />
</android.support.constraint.ConstraintLayout>


text:
<?php

namespace iList\BackendBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * DeclinedMsg
 *
 * @ORM\Table(name="declined_msgs")
 * @ORM\Entity
 */
class DeclinedMsg
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="msg", type="string", length=255)
     */
    private $msg;

    /**
     * @ORM\OneToMany(targetEntity="DeclinedAds", mappedBy="declinedMsg")
     */
    protected $declinedAds;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set msg
     *
     * @param string $msg
     * @return DeclinedMsg
     */
    public function setMsg($msg)
    {
        $this->msg = $msg;

        return $this;
    }

    /**
     * Get msg
     *
     * @return string
     */
    public function getMsg()
    {
        return $this->msg;
    }
    /**
     * Constructor
     */
    public function __construct()
    {
        $this->declinedAds = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Add declinedAds
     *
     * @param \iList\BackendBundle\Entity\DeclinedAds $declinedAds
     * @return DeclinedMsg
     */
    public function addDeclinedAd(\iList\BackendBundle\Entity\DeclinedAds $declinedAds)
    {
        $this->declinedAds[] = $declinedAds;

        return $this;
    }

    /**
     * Remove declinedAds
     *
     * @param \iList\BackendBundle\Entity\DeclinedAds $declinedAds
     */
    public function removeDeclinedAd(\iList\BackendBundle\Entity\DeclinedAds $declinedAds)
    {
        $this->declinedAds->removeElement($declinedAds);
    }

    /**
     * Get declinedAds
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getDeclinedAds()
    {
        return $this->declinedAds;
    }
}


text:
package com.ftfl.photoviewer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class SplashActivity extends Activity {

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

        Thread mThread = new Thread() {
			public void run() {

				try {
						// Thread will sleep for 3 seconds
						sleep(2 * 1000);

						// After 2 seconds redirect to another intent

						// Bellow code will do the same thing....

							Intent mIntent = new Intent(SplashActivity.this, RegActivity.class);
							startActivity(mIntent);

						// Remove activity
						finish(); // so that, it will not get back in the previous
									// file.

					} catch (Exception e) {

				}
			}
		};
		// start thread
		mThread.start();
    }
}


text:
<meta charset="UTF-8">
<title>ChatGroup.sendButton - core</title>
<link rel="stylesheet" href="..\..\..\style.css">

core / com.erikcupal.theblackcatclient.gui / ChatGroup / sendButton

sendButton

val sendButton: TextButton


text:
<!doctype html>

    <title>JS unit test for bakehard theme</title>

        click


text:
#ifndef __ASM_ARCH_PWMCLK_H
#define __ASM_ARCH_PWMCLK_H __FILE__

/**
 * pwm_cfg_src_is_tclk() - return whether the given mux config is a tclk
 * @tcfg: The timer TCFG1 register bits shifted down to 0.
 *
 * Return true if the given configuration from TCFG1 is a TCLK instead
 * any of the TDIV clocks.
 */
static inline int pwm_cfg_src_is_tclk(unsigned long tcfg)
{
	return tcfg == S3C64XX_TCFG1_MUX_TCLK;
}

/**
 * tcfg_to_divisor() - convert tcfg1 setting to a divisor
 * @tcfg1: The tcfg1 setting, shifted down.
 *
 * Get the divisor value for the given tcfg1 setting. We assume the
 * caller has already checked to see if this is not a TCLK source.
 */
static inline unsigned long tcfg_to_divisor(unsigned long tcfg1)
{
	return 1 << tcfg1;
}

/**
 * pwm_tdiv_has_div1() - does the tdiv setting have a /1
 *
 * Return true if we have a /1 in the tdiv setting.
 */
static inline unsigned int pwm_tdiv_has_div1(void)
{
	return 1;
}

/**
 * pwm_tdiv_div_bits() - calculate TCFG1 divisor value.
 * @div: The divisor to calculate the bit information for.
 *
 * Turn a divisor into the necessary bit field for TCFG1.
 */
static inline unsigned long pwm_tdiv_div_bits(unsigned int div)
{
	return ilog2(div);
}

#define S3C_TCFG1_MUX_TCLK S3C64XX_TCFG1_MUX_TCLK

#endif /* __ASM_ARCH_PWMCLK_H */