text:
import { connect } from 'react-redux'

import Games from '../Games'

const mapStateToProps = (state) => {
  return {
    userId: state.user.get('userId'),
    loggedIn: state.user.get('loggedIn'),
    games: state.games.get('games').toJS(),
    fetchingGames: state.games.get('fetchingGames'),
    teams: state.teams.get('teams').toJS(),
    fetchingTeams: state.teams.get('fetchingTeams')
  }
}

const GamesContainer = connect(mapStateToProps)(Games)

export default GamesContainer


text:
package build

import (
	"bytes"
	"fmt"
	"log"
	"os"
	"os/exec"
	"path/filepath"
	"strings"
	"text/template"
)

type Options struct {
	Src         string
	OutFile     string
	DryRun      bool
	Language    string
	OnlyCompile bool
}

const TEMPL = "docker run --rm -v {{.Path}}:/app -v {{.Destination}}:/dest -w /app {{.Container}} sh -c"

const RUN_EXEC_WITH_INPUT = "{{if .InputExists}} < /app/{{.Input}} {{end}} > /dest/{{.Output}}"
const CPP_COMPILE = "g++ -std=c++11 /app/{{.Src}} -o /dest/{{.Output}}"
const CPP_COMPILE_AND_RUN = "g++ -std=c++11 /app/{{.Src}} -o /dest/exec && /dest/exec " + RUN_EXEC_WITH_INPUT + " && rm -f /dest/exec"
const PY_COMPILE = "echo '#!/usr/bin/env python' > /dest/{{.Output}} && cat /app/{{.Src}} >> /dest/{{.Output}} && chmod +x /dest/{{.Output}}"
const PY_COMPILE_AND_RUN = "python /app/{{.Src}}" + RUN_EXEC_WITH_INPUT

var containersMap = map[string]string{
	"c":   "gcc:4.9",
	"cpp": "gcc:4.9",
	"go":  "golang",
	"py2": "python:2.7",
	"py3": "python:3",
}

var ScriptTemplates = map[string]map[string]string{
	"c": map[string]string{
		"compile":         CPP_COMPILE,
		"compile-and-run": CPP_COMPILE_AND_RUN,
	},
	"cpp": map[string]string{
		"compile":         CPP_COMPILE,
		"compile-and-run": CPP_COMPILE_AND_RUN,
	},
	"go": map[string]string{
		"compile":         "go build -o /dest/{{.Output}} /app/{{.Src}}",
		"compile-and-run": "go build -o /dest/exec /app/{{.Src}} && /dest/exec && /dest/exec " + RUN_EXEC_WITH_INPUT + " && rm -f /dest/exec",
	},
	"py2": map[string]string{
		"compile":         PY_COMPILE,
		"compile-and-run": PY_COMPILE_AND_RUN,
	},
	"py3": map[string]string{
		"compile":         PY_COMPILE,
		"compile-and-run": PY_COMPILE_AND_RUN,
	},
}

type Config struct {
	Src         string
	Destination string
	Output      string
	Path        string
	Input       string
	InputExists bool
	Lang        string
	Container   string
	Script      string
	Langauge    string
}

func cwd() string {
	dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
	if err != nil {
		log.Fatal(err)
	}
	//fmt.Println(dir)
	return dir
}

func MustStr(t string, err error) string {
	if err != nil {
		panic(err)
	}
	return t
}

func dockerCmd(opts *Options) []string {
	src, lang, outFile := opts.Src, opts.Language, opts.OutFile
	config := &Config{
		Src:         filepath.Base(src),
		Path:        MustStr(filepath.Abs(filepath.Dir(src))),
		Output:      filepath.Base(outFile),
		Destination: MustStr(filepath.Abs(filepath.Dir(outFile))),
		Input:       filepath.Join(filepath.Dir(src), "input.txt"),
		Lang:        lang,
		Container:   containersMap[lang],
	}
	if _, err := os.Stat(config.Input); err == nil {
		config.InputExists = true
	}

	todo := map[bool]string{true: "compile", false: "compile-and-run"}[opts.OnlyCompile]

	var b bytes.Buffer
	scriptTemplate := template.Must(template.New("script").Parse(ScriptTemplates[lang][todo]))
	err := scriptTemplate.Execute(&b, config)
	if err != nil {
		panic(err)
	}
	config.Script = b.String()

	var b2 bytes.Buffer
	mainTemplate := template.Must(template.New("main").Parse(TEMPL))
	err = mainTemplate.Execute(&b2, config)
	if err != nil {
		panic(err)
	}
	commandSlice := append(strings.Split(b2.String(), " "), fmt.Sprintf("%s", config.Script))
	return commandSlice
}

func RunFunc(opts *Options) (string, string, error) {
	command := dockerCmd(opts)
	fmt.Printf("%s \"%s\"\n", strings.Join(command[:len(command)-1], " "), command[len(command)-1])
	if opts.DryRun {
		return "", "", nil
	}
	var out bytes.Buffer
	var stderr bytes.Buffer
	execCmd := exec.Command(command[0], command[1:]...)
	execCmd.Stdout = &out
	execCmd.Stderr = &stderr
	err := execCmd.Run()
	return out.String(), stderr.String(), err
}

redpajama_set_name: RedPajamaGithub


text:
import { CSSDataV1, ICSSDataProvider } from 'vscode-css-languageservice';
import * as fs from 'fs';

export function getDataProviders(dataPaths: string[]): ICSSDataProvider[] {
	const providers = dataPaths.map(p => {
		if (fs.existsSync(p)) {
			const data = parseCSSData(fs.readFileSync(p, 'utf-8'));
			return {
				provideProperties: () => data.properties || [],
				provideAtDirectives: () => data.atDirectives || [],
				providePseudoClasses: () => data.pseudoClasses || [],
				providePseudoElements: () => data.pseudoElements || []
			};
		} else {
			return {
				provideProperties: () => [],
				provideAtDirectives: () => [],
				providePseudoClasses: () => [],
				providePseudoElements: () => []
			};
		}
	});

	return providers;
}

function parseCSSData(source: string): CSSDataV1 {
	let rawData: any;

	try {
		rawData = JSON.parse(source);
	} catch (err) {
		return {
			version: 1
		};
	}

	return {
		version: 1,
		properties: rawData.properties || [],
		atDirectives: rawData.atDirectives || [],
		pseudoClasses: rawData.pseudoClasses || [],
		pseudoElements: rawData.pseudoElements || []
	};
}


text:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;
import java.util.StringTokenizer;

import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.apache.commons.exec.Executor;

public class LDPCTools {
	public static int startRPEG = 14;
	public static int[] regDeg = {38,27,25,24,23,21,20,19,19,18,17,16,16,15,15,14,14};

	private static void shuffleArray(int[] array){
		Random rand = new Random();
		if(array==null || array.length==0)
			return;
		int n=array.length;
		for(int i=n-1;i>0;i--){
			int j = (int) (rand.nextDouble()*(i+1));
			int temp=array[i];
			array[i]=array[j];
			array[j]=temp;
		}
	}

	public static boolean[][] getSupposedlyEasilyDecodableCode(int n, int d){
		boolean[][] matrix = new boolean[d][n];
		Random rand = new Random();
		for(int i=0;i<d;i++){
			matrix[i][i]=true;;
			for(int j=i+1;j<d;j++){
				matrix[i][j]=rand.nextBoolean();
			}
			for(int j=d;j<n && j<d+10;j++){
				if(i==d){
					matrix[i][j]=true;
				}else{
					matrix[i][j]=rand.nextBoolean();
				}
			}
		}
		return matrix;
	}

	public static boolean[][] getUniformMatrix(int n, int d, double f){
		return BinaryMatrixHelper.getRandomMatrix(d,n,f);
	}

	public static boolean[][] getPEGMatrix(int n, int d){
		return getPEGMatrix(n,d,true);
	}

	public static boolean[][] getPEGMatrix(int n, int d, boolean fallback){
		String path=null;
		boolean[][] fallbackMatrix;
		if(fallback){
			fallbackMatrix = getUniformMatrix(n,d,0.5);
		}else{
			fallbackMatrix = null;
		}

		try {
			path = generateDegreeFile(n,d);
		} catch (ExecuteException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return fallbackMatrix;
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return fallbackMatrix;
		}
		try {
			return parseDegrees(path);
//			BinaryMatrixHelper.printMatrix(constraints);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return fallbackMatrix;
	}

	public static boolean[][] getRPEGMatrix(int n, int d, int deg, boolean fallback){
		String path=null;
		boolean[][] fallbackMatrix;
		if(fallback){
			fallbackMatrix = getUniformMatrix(n,d, 0.5);
		}else{
			fallbackMatrix = null;
		}

		try {
			generatePEGRegDegree(deg);
			path = generateRegularDegreeFile(n,d,deg);
		} catch (ExecuteException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return fallbackMatrix;
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return fallbackMatrix;
		}
		try {
			boolean[][] matrix =  parseDegrees(path);
			BinaryMatrixHelper.printMatrix(matrix);
			return matrix;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return fallbackMatrix;
	}

	public static boolean[][] getRPEGMatrix(int n, int d, boolean fallback){
		String path=null;
		boolean[][] fallbackMatrix;
		if(fallback){
			fallbackMatrix = getUniformMatrix(n,d, 0.5);
		}else{
			fallbackMatrix = null;
		}

		try {
			int deg=10;
			generatePEGRegDegree(deg);
			path = generateRegularDegreeFile(n,d,deg);
		} catch (ExecuteException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return fallbackMatrix;
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
			return fallbackMatrix;
		}
		try {
			boolean[][] matrix =  parseDegrees(path);
			BinaryMatrixHelper.printMatrix(matrix);
			return matrix;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return fallbackMatrix;
	}

	public static boolean[][] getRPEGMatrix(int n, int d){
		String path=null;
		if(d>=startRPEG){
			return null;
		}else{
			try {
				path = generateRegularDegreeFile(n,d,d*regDeg[d]/n);
			} catch (ExecuteException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
				return null;
			} catch (IOException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
				return null;
			}
			try {
				return parseDegrees(path);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			return null;
		}

	}

	private static int[] generateSequentialArray(int n){
		int[] array = new int[n];
		for(int i=0;i<array.length;i++){
			array[i]=i;
		}
		return array;
	}

	public static String generateDegreeFile(int n, int checks) throws ExecuteException, IOException{
		String outName = "n"+n+"m"+checks+"d"+Config.degree+".dat";
		File outf = new File(Config.output+outName);
		if(outf.exists()){
			return outf.getAbsolutePath();
		}

		CommandLine cl = new CommandLine("./MainPEG");
		cl.addArgument("-numM");
		cl.addArgument(""+checks);
		cl.addArgument("-numN");
		cl.addArgument(""+n);
		cl.addArgument("-codeName");
		cl.addArgument(Config.output+outName);
		cl.addArgument("-degFileName");
		cl.addArgument("DenEvl_"+Config.degree+".deg");

		Executor exec = new DefaultExecutor();
		exec.setWorkingDirectory(new File(Config.pathToMPEG));
		exec.execute(cl);
		return outf.getAbsolutePath();
	}

	public static void generatePEGRegDegree(int deg) throws ExecuteException, IOException{
		String degFile = "Reg_"+deg+".deg";
		String path = Config.output+degFile;
		File f = new File(path);
		if(f.exists())
			return;
		PrintWriter out = new PrintWriter(path);
		out.println("1");
		out.println("5");
		out.println("1.0");
		out.close();
	}

	public static String generateRegularDegreeFile(int n, int checks, int deg) throws ExecuteException, IOException{
		String degFile = "Reg_"+deg+".deg";
		String outName = "n"+n+"m"+checks+"regd"+deg+".dat";
		File outf = new File(Config.output+outName);
		if(outf.exists()){
			return outf.getAbsolutePath();
		}

		CommandLine cl = new CommandLine("./MainPEG");
		cl.addArgument("-numM");
		cl.addArgument(""+checks);
		cl.addArgument("-numN");
		cl.addArgument(""+n);
		cl.addArgument("-codeName");
		cl.addArgument(Config.output+outName);
		cl.addArgument("-degFileName");
		cl.addArgument(degFile);

		Executor exec = new DefaultExecutor();
		exec.setWorkingDirectory(new File(Config.pathToMPEG));
		exec.execute(cl);
		return outf.getAbsolutePath();
	}

	private static boolean[][] parseDegrees(String path) throws IOException{
		FileReader fr = new FileReader(new File(path));
		BufferedReader br = new BufferedReader(fr);
		String line;
		boolean[][] constraints=null;
		int n=0,d=0;
		int counter = 1;
		int[] shuffledIdxes=null;
		while ((line = br.readLine()) != null) {
			if(counter==1){
				n=Integer.parseInt(line);
				shuffledIdxes = generateSequentialArray(n);
				shuffleArray(shuffledIdxes);
			}else if(counter==2){
				d=Integer.parseInt(line);
				constraints = new boolean[d][n];
			}else if(counter>=4){
				StringTokenizer st = new StringTokenizer(line," ");
				int idx=0;
				while(st.hasMoreTokens()){
					idx=Integer.parseInt(st.nextToken());
					if(idx==0){
						break;
					}
					int newIdx = shuffledIdxes[idx-1];
					constraints[counter-4][newIdx]=true;
				}
			}
			counter++;
		}
		br.close();
		return constraints;
	}
}


text:
import codecs
import os
import sys
from setuptools import setup

from keep import about

here = os.path.abspath(os.path.dirname(__file__))

with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
    long_description = '\n' + f.read()

if __name__ == "__main__":
    setup(
        name = about.__name__,
        packages = ['keep', 'keep.commands'],
        version = about.__version__,
        description = 'Personal shell command keeper',
        long_description = long_description,
        author = 'Himanshu Mishra',
        author_email = 'himanshumishra@iitkgp.ac.in',
        url = "https://github.com/orkohunter/keep",
        download_url = "https://github.com/orkohunter/keep/archive/master.zip",
        include_package_data=True,
        install_requires=[
            'click',
            'requests',
            'tabulate'
        ],
        entry_points = {
            'console_scripts': [
                'keep = keep.cli:cli'
            ],
        },
    )


text:
package org.apache.easyant.core.report;

public class TargetReport {
    private String name = null;
    private String depends = null;
    private String ifCase = null;
    private String unlessCase = null;
    private String description = null;
    private String extensionPoint = null;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepends() {
        return depends;
    }

    public void setDepends(String depends) {
        this.depends = depends;
    }

    public String getIfCase() {
        return ifCase;
    }

    public void setIfCase(String ifCase) {
        this.ifCase = ifCase;
    }

    public String getUnlessCase() {
        return unlessCase;
    }

    public void setUnlessCase(String unlessCase) {
        this.unlessCase = unlessCase;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getExtensionPoint() {
        return extensionPoint;
    }

    public void setExtensionPoint(String extensionPoint) {
        this.extensionPoint = extensionPoint;
    }

}


text:
@interface RecordFileHelper : NSObject

+ (instancetype)sharedInstance;

- (NSArray *)GetAllRecordsInFiles;

@end


text:
package Demos;
/*
 * Chooser.java
 *
 * Created on 9 de marzo de 2007, 14:14
 */

import aima.search.eightpuzzle.EightPuzzleJFrame;
import IA.probIA15.ProbIA15JFrame;
import IA.probPathFinder.ProbPathFinderJFrame;
import IA.probAntenas.ProbAntenasJFrame;
import IA.Marenostrum.MarenostrumJFrame;
import IA.Centrals.CentralsJFrame;
import IA.Connectat.ConnectatJFrame;
import IA.Electrica.ElectricaJFrame;
import IA.PathFinderDemo.ProbPathFinderDemoJFrame;
import IA.TSP2.ProbTSPJFrame;

/**
 *
 * @author  bejar
 */
public class Chooser extends javax.swing.JFrame {

    /** Creates new form Chooser */
    public Chooser() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        OchoPuzzle = new javax.swing.JButton();
        ProbIA15 = new javax.swing.JButton();
        PathFinder = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        Antenas = new javax.swing.JButton();
        Marenostrum = new javax.swing.JButton();
        Centrals = new javax.swing.JButton();
        Connectat = new javax.swing.JButton();
        Electrica = new javax.swing.JButton();
        TSP = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        Salir = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setText("Ejemplos de problemas de Búsqueda");

        OchoPuzzle.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                OchoPuzzleMouseClicked(evt);
            }
        });

        ProbIA15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ProbIA15MouseClicked(evt);
            }
        });

        PathFinder.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PathFinderMouseClicked(evt);
            }
        });

        jLabel2.setText("Ocho Puzzle");

        jLabel3.setText("Problema 15");

        jLabel4.setText("Path Finder");

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(ProbIA15, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(PathFinder, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(OchoPuzzle, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 139, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel3)
                    .add(jLabel4))
                .addContainerGap(230, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(32, 32, 32)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel2)
                    .add(OchoPuzzle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(18, 18, 18)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel3)
                    .add(ProbIA15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(17, 17, 17)
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel4)
                    .add(PathFinder, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Búsqueda Heurística", jPanel1);

        Antenas.setText("Antenas");
        Antenas.setAlignmentY(0.0F);
        Antenas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AntenasMouseClicked(evt);
            }
        });

        Marenostrum.setText("Marenostrum");
        Marenostrum.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                MarenostrumMouseClicked(evt);
            }
        });

        Centrals.setText("Centrals");
        Centrals.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                CentralsMouseClicked(evt);
            }
        });

        Connectat.setText("Connectat");
        Connectat.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ConnectatMouseClicked(evt);
            }
        });

        Electrica.setText("Electrica");
        Electrica.setAlignmentY(0.0F);
        Electrica.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ElectricaMouseClicked(evt);
            }
        });

        TSP.setText("TSP");
        TSP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TSPActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(Antenas, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(Marenostrum, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(TSP, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .add(18, 18, 18)
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(Connectat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
                    .add(Electrica, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
                    .add(Centrals, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .add(191, 191, 191))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(jPanel2Layout.createSequentialGroup()
                        .add(2, 2, 2)
                        .add(TSP, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                    .add(Connectat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(18, 18, 18)
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(Antenas, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, Short.MAX_VALUE)
                    .add(Electrica, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, Short.MAX_VALUE))
                .add(18, 18, 18)
                .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(Marenostrum, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, Short.MAX_VALUE)
                    .add(Centrals, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, Short.MAX_VALUE))
                .add(121, 121, 121))
        );

        jTabbedPane1.addTab("Búsqueda Local", jPanel2);

        jButton1.setText("Path Finder 2");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                .add(26, 26, 26)
                .add(jButton1)
                .addContainerGap(316, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .add(jButton1)
                .addContainerGap(118, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Otros", jPanel3);

        jMenu1.setText("Menu");

        Salir.setText("Salir");
        Salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SalirActionPerformed(evt);
            }
        });
        jMenu1.add(Salir);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jTabbedPane1))
                    .add(layout.createSequentialGroup()
                        .add(85, 85, 85)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator1)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 210, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    private void TSPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TSPActionPerformed
// TODO add your handling code here:
        ProbTSPJFrame el = new ProbTSPJFrame();

        el.setVisible(true);
    }//GEN-LAST:event_TSPActionPerformed

    private void ElectricaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ElectricaMouseClicked
// TODO add your handling code here:
        ElectricaJFrame el = new ElectricaJFrame();

        el.setVisible(true);
    }//GEN-LAST:event_ElectricaMouseClicked

    private void ConnectatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ConnectatMouseClicked
// TODO add your handling code here:
        ConnectatJFrame conn = new ConnectatJFrame();

        conn.setVisible(true);
    }//GEN-LAST:event_ConnectatMouseClicked

    private void CentralsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CentralsMouseClicked
// TODO add your handling code here:
        CentralsJFrame cen = new CentralsJFrame();

        cen.setVisible(true);
    }//GEN-LAST:event_CentralsMouseClicked

    private void MarenostrumMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MarenostrumMouseClicked
// TODO add your handling code here:
        MarenostrumJFrame Mar = new MarenostrumJFrame();

        Mar.setVisible(true);
    }//GEN-LAST:event_MarenostrumMouseClicked

    private void AntenasMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AntenasMouseClicked
// TODO add your handling code here:
        ProbAntenasJFrame Ant = new ProbAntenasJFrame();

        Ant.setVisible(true);
    }//GEN-LAST:event_AntenasMouseClicked

    private void SalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SalirActionPerformed
// TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_SalirActionPerformed

    private void PathFinderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PathFinderMouseClicked
// TODO add your handling code here:
        ProbPathFinderJFrame PF = new ProbPathFinderJFrame();

        PF.setVisible(true);
    }//GEN-LAST:event_PathFinderMouseClicked

    private void ProbIA15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ProbIA15MouseClicked
// TODO add your handling code here:
        ProbIA15JFrame PIA15 = new ProbIA15JFrame();

        PIA15.setVisible(true);
    }//GEN-LAST:event_ProbIA15MouseClicked

    private void OchoPuzzleMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_OchoPuzzleMouseClicked
// TODO add your handling code here:
        EightPuzzleJFrame iOchoPuzzle = new EightPuzzleJFrame();

        iOchoPuzzle.setVisible(true);

    }//GEN-LAST:event_OchoPuzzleMouseClicked

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

                ProbPathFinderDemoJFrame PF = new ProbPathFinderDemoJFrame();
                PF.setVisible(true);

    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Chooser().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Antenas;
    private javax.swing.JButton Centrals;
    private javax.swing.JButton Connectat;
    private javax.swing.JButton Electrica;
    private javax.swing.JButton Marenostrum;
    private javax.swing.JButton OchoPuzzle;
    private javax.swing.JButton PathFinder;
    private javax.swing.JButton ProbIA15;
    private javax.swing.JMenuItem Salir;
    private javax.swing.JButton TSP;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}


text:
package net.amham.odfe.report;

public enum ProcessDepth {
	ALL,Content,Styles,MetaData
}


text:
package org.couchbase.mock;

import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public final class JsonUtils {
    final static public Gson GSON = new Gson();

    /**
     * Encode a Java object as JSON
     * @param obj The object to encode
     * @return The encoded JSON string
     */
    public static String encode(Object obj) {
        return GSON.toJson(obj);
    }

    /**
     * Attempt to decode a JSON string as a Java object
     * @param json The JSON string to decode
     * @param cls The class to decode as
     * @param <T> Class parameter
     * @return An instance of {@code cls}, or an exception
     */
    public static <T> T decode(String json, Class<T> cls) {
        return GSON.fromJson(json, cls);
    }

    /**
     * Decode a JSON string as a Java list. The string must represent a JSON Array
     * @param json The JSON to decode
     * @return A list representing the JSON array
     */
    public static List decodeAsList(String json) {
        return decode(json, ArrayList.class);
    }

    /**
     * Decode a JSON string as Java map. The string must represent a JSON Object
     * @param json The JSON to decode
     * @return a map representing the JSON Object
     */
    @SuppressWarnings("unchecked")
    public static Map<String,Object> decodeAsMap(String json) {
        return decode(json, HashMap.class);
    }
}


text:
namespace serial_port_compile {

struct write_some_handler
{
  write_some_handler() {}
  void operator()(const boost::system::error_code&, std::size_t) {}
#if defined(BOOST_ASIO_HAS_MOVE)
  write_some_handler(write_some_handler&&) {}
private:
  write_some_handler(const write_some_handler&);
#endif // defined(BOOST_ASIO_HAS_MOVE)
};

struct read_some_handler
{
  read_some_handler() {}
  void operator()(const boost::system::error_code&, std::size_t) {}
#if defined(BOOST_ASIO_HAS_MOVE)
  read_some_handler(read_some_handler&&) {}
private:
  read_some_handler(const read_some_handler&);
#endif // defined(BOOST_ASIO_HAS_MOVE)
};

void test()
{
#if defined(BOOST_ASIO_HAS_SERIAL_PORT)
  using namespace boost::asio;

  try
  {
    io_context ioc;
    const io_context::executor_type ioc_ex = ioc.get_executor();
    char mutable_char_buffer[128] = "";
    const char const_char_buffer[128] = "";
    serial_port::baud_rate serial_port_option;
    archetypes::lazy_handler lazy;
    boost::system::error_code ec;

    // basic_serial_port constructors.

    serial_port port1(ioc);
    serial_port port2(ioc, "null");
    serial_port::native_handle_type native_port1 = port1.native_handle();
#if defined(BOOST_ASIO_MSVC) && (_MSC_VER < 1910)
    // Skip this on older MSVC due to mysterious ambiguous overload errors.
#else
    serial_port port3(ioc, native_port1);
#endif

    serial_port port4(ioc_ex);
    serial_port port5(ioc_ex, "null");
    serial_port::native_handle_type native_port2 = port1.native_handle();
    serial_port port6(ioc_ex, native_port2);

#if defined(BOOST_ASIO_HAS_MOVE)
    serial_port port7(std::move(port6));
#endif // defined(BOOST_ASIO_HAS_MOVE)

    // basic_serial_port operators.

#if defined(BOOST_ASIO_HAS_MOVE)
    port1 = serial_port(ioc);
    port1 = std::move(port2);
#endif // defined(BOOST_ASIO_HAS_MOVE)

    // basic_io_object functions.

    serial_port::executor_type ex = port1.get_executor();
    (void)ex;

    // basic_serial_port functions.

    serial_port::lowest_layer_type& lowest_layer = port1.lowest_layer();
    (void)lowest_layer;

    const serial_port& port8 = port1;
    const serial_port::lowest_layer_type& lowest_layer2 = port8.lowest_layer();
    (void)lowest_layer2;

    port1.open("null");
    port1.open("null", ec);

    serial_port::native_handle_type native_port3 = port1.native_handle();
    port1.assign(native_port3);
    serial_port::native_handle_type native_port4 = port1.native_handle();
    port1.assign(native_port4, ec);

    bool is_open = port1.is_open();
    (void)is_open;

    port1.close();
    port1.close(ec);

    serial_port::native_handle_type native_port5 = port1.native_handle();
    (void)native_port5;

    port1.cancel();
    port1.cancel(ec);

    port1.set_option(serial_port_option);
    port1.set_option(serial_port_option, ec);

    port1.get_option(serial_port_option);
    port1.get_option(serial_port_option, ec);

    port1.send_break();
    port1.send_break(ec);

    port1.write_some(buffer(mutable_char_buffer));
    port1.write_some(buffer(const_char_buffer));
    port1.write_some(buffer(mutable_char_buffer), ec);
    port1.write_some(buffer(const_char_buffer), ec);

    port1.async_write_some(buffer(mutable_char_buffer), write_some_handler());
    port1.async_write_some(buffer(const_char_buffer), write_some_handler());
    int i1 = port1.async_write_some(buffer(mutable_char_buffer), lazy);
    (void)i1;
    int i2 = port1.async_write_some(buffer(const_char_buffer), lazy);
    (void)i2;

    port1.read_some(buffer(mutable_char_buffer));
    port1.read_some(buffer(mutable_char_buffer), ec);

    port1.async_read_some(buffer(mutable_char_buffer), read_some_handler());
    int i3 = port1.async_read_some(buffer(mutable_char_buffer), lazy);
    (void)i3;
  }
  catch (std::exception&)
  {
  }
#endif // defined(BOOST_ASIO_HAS_SERIAL_PORT)
}

} // namespace serial_port_compile

//------------------------------------------------------------------------------

BOOST_ASIO_TEST_SUITE
(
  "serial_port",
  BOOST_ASIO_TEST_CASE(serial_port_compile::test)
)


text:
<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Customer
 *
 * @ORM\Entity(repositoryClass="AppBundle\Repository\CustomerRepository")
 */
class Customer extends Person
{
    /**
     * @var string
     *
     * @ORM\Column(name="phone", type="integer")
     */
    private $phone;

    /**
     * Set phone
     *
     * @param string $phone
     *
     * @return Customer
     */
    public function setPhone($phone)
    {
        $this->phone = $phone;

        return $this;
    }

    /**
     * Get phone
     *
     * @return string
     */
    public function getPhone()
    {
        return $this->phone;
    }
}


text:
using System;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.ComponentModel;
using System.Reflection;
using System.Windows.Forms;

namespace NetSpell.DictionaryBuild
{
	/// <summary>
	/// Summary description for AboutForm.
	/// </summary>
	public class AboutForm : System.Windows.Forms.Form
	{

		private AssemblyInfo aInfo = new AssemblyInfo();
		private System.Windows.Forms.ListView assembliesListView;
		private System.Windows.Forms.ColumnHeader assemblyColumnHeader;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.ColumnHeader dateColumnHeader;
		private System.Windows.Forms.ColumnHeader versionColumnHeader;
		private System.Windows.Forms.GroupBox VersionGroup;
		internal System.Windows.Forms.Label lblCopyright;
		internal System.Windows.Forms.Label lblDescription;
		internal System.Windows.Forms.Label lblTitle;
		internal System.Windows.Forms.Label lblVersion;
		private System.Windows.Forms.Button okButton;
		private System.Windows.Forms.Label lblCompany;
		internal System.Windows.Forms.PictureBox pbIcon;

		private void AboutForm_Load(object sender, System.EventArgs e)
		{
			// Fill in loaded modules / version number info list view.
			try
			{
				// Set this Form's Text & Icon properties by using values from the parent form
				this.Text = "About " + this.Owner.Text;
				this.Icon = this.Owner.Icon;
				// Set this Form's Picture Box's image using the parent's icon
				// However, we need to convert it to a Bitmap since the Picture Box Control
				// will not accept a raw Icon.
				this.pbIcon.Image = this.Owner.Icon.ToBitmap();

				// Set the labels identitying the Title, Version, and Description by
				// reading Assembly meta-data originally entered in the AssemblyInfo.vb file
				this.lblTitle.Text = aInfo.Title;
				this.lblVersion.Text = String.Format("Version {0}", aInfo.Version);
				this.lblCopyright.Text = aInfo.Copyright;
				this.lblDescription.Text = aInfo.Description;
				this.lblCompany.Text = aInfo.Company;

				assembliesListView.Items.Clear();

				// Get all modules
				ArrayList localItems = new ArrayList();
				foreach (ProcessModule module in Process.GetCurrentProcess().Modules)
				{
					ListViewItem item = new ListViewItem();
					item.Text = module.ModuleName;

					// Get version info
					FileVersionInfo verInfo = module.FileVersionInfo;
					string versionStr = String.Format("{0}.{1}.{2}.{3}",
						verInfo.FileMajorPart,
						verInfo.FileMinorPart,
						verInfo.FileBuildPart,
						verInfo.FilePrivatePart);
					item.SubItems.Add(versionStr);

					// Get file date info
					DateTime lastWriteDate = File.GetLastWriteTime(module.FileName);
					string dateStr = lastWriteDate.ToString("MMM dd, yyyy");
					item.SubItems.Add(dateStr);

					assembliesListView.Items.Add(item);

					// Stash assemply related list view items for later
					if (module.ModuleName.ToLower().StartsWith("netspell"))
					{
						localItems.Add(item);
					}
				}

				// Extract the assemply related modules and move them to the top
				for (int i = localItems.Count; i > 0; i--)
				{
					ListViewItem localItem = (ListViewItem)localItems[i-1];
					assembliesListView.Items.Remove(localItem);
					assembliesListView.Items.Insert(0, localItem);
				}
			}
			catch (Exception ex)
			{
				MessageBox.Show(this, ex.ToString(), "About Form Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}

		}

#region Constructor / Dispose
		/// <summary>
		///
		/// </summary>
		public AboutForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if (disposing)
			{
				if (components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose(disposing);
		}
#endregion

#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.okButton = new System.Windows.Forms.Button();
			this.VersionGroup = new System.Windows.Forms.GroupBox();
			this.assembliesListView = new System.Windows.Forms.ListView();
			this.assemblyColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.versionColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.dateColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.lblCopyright = new System.Windows.Forms.Label();
			this.lblDescription = new System.Windows.Forms.Label();
			this.lblVersion = new System.Windows.Forms.Label();
			this.lblTitle = new System.Windows.Forms.Label();
			this.pbIcon = new System.Windows.Forms.PictureBox();
			this.lblCompany = new System.Windows.Forms.Label();
			this.VersionGroup.SuspendLayout();
			this.SuspendLayout();
			//
			// okButton
			//
			this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.okButton.Location = new System.Drawing.Point(328, 288);
			this.okButton.Name = "okButton";
			this.okButton.TabIndex = 0;
			this.okButton.Text = "&Ok";
			//
			// VersionGroup
			//
			this.VersionGroup.Controls.Add(this.assembliesListView);
			this.VersionGroup.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.VersionGroup.ForeColor = System.Drawing.SystemColors.Highlight;
			this.VersionGroup.Location = new System.Drawing.Point(8, 136);
			this.VersionGroup.Name = "VersionGroup";
			this.VersionGroup.Size = new System.Drawing.Size(400, 144);
			this.VersionGroup.TabIndex = 9;
			this.VersionGroup.TabStop = false;
			this.VersionGroup.Text = "Version Information";
			//
			// assembliesListView
			//
			this.assembliesListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																								 this.assemblyColumnHeader,
																								 this.versionColumnHeader,
																								 this.dateColumnHeader});
			this.assembliesListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			this.assembliesListView.Location = new System.Drawing.Point(8, 16);
			this.assembliesListView.Name = "assembliesListView";
			this.assembliesListView.Size = new System.Drawing.Size(384, 120);
			this.assembliesListView.TabIndex = 9;
			this.assembliesListView.View = System.Windows.Forms.View.Details;
			//
			// assemblyColumnHeader
			//
			this.assemblyColumnHeader.Text = "Module";
			this.assemblyColumnHeader.Width = 160;
			//
			// versionColumnHeader
			//
			this.versionColumnHeader.Text = "Version";
			this.versionColumnHeader.Width = 105;
			//
			// dateColumnHeader
			//
			this.dateColumnHeader.Text = "Date";
			this.dateColumnHeader.Width = 95;
			//
			// lblCopyright
			//
			this.lblCopyright.ImeMode = System.Windows.Forms.ImeMode.NoControl;
			this.lblCopyright.Location = new System.Drawing.Point(72, 56);
			this.lblCopyright.Name = "lblCopyright";
			this.lblCopyright.Size = new System.Drawing.Size(328, 23);
			this.lblCopyright.TabIndex = 14;
			this.lblCopyright.Text = "Application Copyright";
			//
			// lblDescription
			//
			this.lblDescription.ImeMode = System.Windows.Forms.ImeMode.NoControl;
			this.lblDescription.Location = new System.Drawing.Point(72, 80);
			this.lblDescription.Name = "lblDescription";
			this.lblDescription.Size = new System.Drawing.Size(328, 32);
			this.lblDescription.TabIndex = 13;
			this.lblDescription.Text = "Application Description";
			//
			// lblVersion
			//
			this.lblVersion.ImeMode = System.Windows.Forms.ImeMode.NoControl;
			this.lblVersion.Location = new System.Drawing.Point(72, 32);
			this.lblVersion.Name = "lblVersion";
			this.lblVersion.Size = new System.Drawing.Size(328, 23);
			this.lblVersion.TabIndex = 12;
			this.lblVersion.Text = "Application Version";
			//
			// lblTitle
			//
			this.lblTitle.ImeMode = System.Windows.Forms.ImeMode.NoControl;
			this.lblTitle.Location = new System.Drawing.Point(72, 8);
			this.lblTitle.Name = "lblTitle";
			this.lblTitle.Size = new System.Drawing.Size(328, 24);
			this.lblTitle.TabIndex = 11;
			this.lblTitle.Text = "Application Title";
			//
			// pbIcon
			//
			this.pbIcon.ImeMode = System.Windows.Forms.ImeMode.NoControl;
			this.pbIcon.Location = new System.Drawing.Point(16, 8);
			this.pbIcon.Name = "pbIcon";
			this.pbIcon.Size = new System.Drawing.Size(32, 32);
			this.pbIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			this.pbIcon.TabIndex = 10;
			this.pbIcon.TabStop = false;
			//
			// lblCompany
			//
			this.lblCompany.Location = new System.Drawing.Point(72, 112);
			this.lblCompany.Name = "lblCompany";
			this.lblCompany.Size = new System.Drawing.Size(328, 23);
			this.lblCompany.TabIndex = 15;
			this.lblCompany.Text = "Application Company";
			//
			// AboutForm
			//
			this.AcceptButton = this.okButton;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.okButton;
			this.ClientSize = new System.Drawing.Size(418, 320);
			this.Controls.Add(this.lblCompany);
			this.Controls.Add(this.lblCopyright);
			this.Controls.Add(this.lblDescription);
			this.Controls.Add(this.lblVersion);
			this.Controls.Add(this.lblTitle);
			this.Controls.Add(this.pbIcon);
			this.Controls.Add(this.VersionGroup);
			this.Controls.Add(this.okButton);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "AboutForm";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "About ...";
			this.Load += new System.EventHandler(this.AboutForm_Load);
			this.VersionGroup.ResumeLayout(false);
			this.ResumeLayout(false);

		}
#endregion

	}

	public class AssemblyInfo
	{
		private Type myType = typeof(AboutForm);

		/// <summary>
		/// CodeBase of Assembly
		/// </summary>
		public string CodeBase
		{
			get {return myType.Assembly.CodeBase.ToString();}
		}

		/// <summary>
		/// Company of Assembly
		/// </summary>
		public string Company
		{
			get
			{
				Object[] r = myType.Assembly.GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
				AssemblyCompanyAttribute ct = (AssemblyCompanyAttribute)r[0];
				return ct.Company;
			}
		}

		/// <summary>
		/// Copyright of Assembly
		/// </summary>
		public string Copyright
		{
			get
			{
				Object[] r = myType.Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
				AssemblyCopyrightAttribute ct = (AssemblyCopyrightAttribute)r[0];
				return ct.Copyright;
			}
		}

		/// <summary>
		/// Description of Assembly
		/// </summary>
		public string Description
		{
			get
			{
				Object[] r = myType.Assembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
				AssemblyDescriptionAttribute ct = (AssemblyDescriptionAttribute)r[0];
				return ct.Description;
			}
		}

		/// <summary>
		///		FullName of Assembly
		/// </summary>
		public string FullName
		{
			get {return myType.Assembly.GetName().FullName.ToString();}
		}

		/// <summary>
		/// Name of Assembly
		/// </summary>
		public string Name
		{
			get	{return myType.Assembly.GetName().Name.ToString();}
		}

		/// <summary>
		/// Product of Assembly
		/// </summary>
		public string Product
		{
			get
			{
				Object[] r = myType.Assembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false);
				AssemblyProductAttribute ct = (AssemblyProductAttribute)r[0];
				return ct.Product;
			}
		}

		/// <summary>
		/// Title of Assembly
		/// </summary>
		public string Title
		{
			get
			{
				Object[] r = myType.Assembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
				AssemblyTitleAttribute ct = (AssemblyTitleAttribute)r[0];
				return ct.Title;
			}
		}

		/// <summary>
		/// Version of Assembly
		/// </summary>
		public string Version
		{
			get { return myType.Assembly.GetName().Version.ToString(); }
		}
	}
}


text:
mdago
=====

Markdown Editor for Web


text:
#include "wallsizer.h"

#include <QMap>
#include <QUrl>
#include <QDebug>

Wallsizer::Wallsizer(QQuickItem *parent) :
    QQuickItem(parent)
{
    readSettings();
    tmpSavePath = "";

//    configurationWindow = new ConfigurationWindow();
}

int Wallsizer::resolutionsModelCount()
{
    return resolutions.count();
}

void Wallsizer::resolutionsModelAdd()
{
    resolutions.append(new Resolution(this,"Untitled",0,0,100,0,0,0,false));
    emit resolutionsChanged();
    emit resolutionsModelAdded();
}

QVariant Wallsizer::resolutionsModelGet(int index)
{
    return QVariant::fromValue(resolutions.at(index));
}

void Wallsizer::resolutionsModelSet(int index, QVariantMap item)
{
    resolutions.replace(index, new Resolution(
                            this,
                            (QString)item.value("title").toString(),
                            item.value("width").toInt(),
                            item.value("height").toInt(),
                            item.value("compression").toInt(),
                            item.value("detailLow").toInt(),
                            item.value("detailMedium").toInt(),
                            item.value("detailHigh").toInt(),
                            item.value("enabled").toBool()
                            ));
    emit resolutionsChanged();
}

void Wallsizer::resolutionsModelDelete(int index)
{
    resolutions.removeAt(index);
    emit resolutionsChanged();
    emit resolutionsModelRemoved(index-1);
}

void Wallsizer::resolutionsModelReset()
{
    resolutions = resolutionsOld;
    emit resolutionsChanged();
}

void Wallsizer::save()
{
    saveSettings();
}

void Wallsizer::pricessUrls()
{
    if(urlsList.count()==0){emit(processUrlsError("No images added to the drop target area. Add images first."));return;}

    QList<QMap<QString, int> > list;
    for(int i=0;i<resolutions.count();++i){
        QObject* res = resolutions.at(i);
        if(res->property("enabled").toBool()){
            QMap<QString, int> map;
            map["width"] = res->property("width").toInt();
            map["height"] = res->property("height").toInt();
            map["compression"] = res->property("compression").toInt();
            map["detailLow"] = res->property("detailLow").toInt();
            map["detailMedium"] = res->property("detailMedium").toInt();
            map["detailHigh"] = res->property("detailHigh").toInt();
            list.append(map);
        }
    }
    if(list.count()==0){emit(processUrlsError("No resolutions selected. Go to settings screen and enable some."));return;}

    emit processUrlsStarted();
    imageMagic.setResolutionsList(list);

    for(int i=0;i<urlsList.count();++i){
        QUrl url = QUrl(urlsList.at(i));
        QUrl path = saveSame?url: //save into the same dir as image is in
                             saveAsk?QUrl(tmpSavePath): //save into directory chosen
                                     QUrl(savePath); //save into selected default path;
//        qDebug() << "File name: " << url.toLocalFile();
//        qDebug() << "File path: " << path.toLocalFile();
        //TODO: Send this over to IM along with default save path and list of resolutions
        if(!imageMagic.processImage(path.toLocalFile(),url.toLocalFile())&&imageMagic.errors()){
            emit(processUrlsError(imageMagic.getErrorDescription(url.toLocalFile())));
            return;
        }
//        if(!imageMagic.processImageTest(path.toLocalFile(),url.toLocalFile())&&imageMagic.errors()){
//            emit(processUrlsError(imageMagic.getErrorDescription(url.toLocalFile())));
//            return;
//        }
    }
    emit(processUrlsComplete());
}

void Wallsizer::saveSettings()
{
    resolutionsOld = resolutions;
    settings.setValue("saveAsk",saveAsk);
    settings.setValue("saveSame",saveSame);
    settings.setValue("savePath",savePath);

    int _count = resolutions.count();
    settings.setValue("resolutions_count",_count);
    for(int i=0;i<_count;++i){
        QObject* res = resolutions.at(i);
        settings.setValue(QString("resolutions_%1_title").arg(i),res->property("title"));
        settings.setValue(QString("resolutions_%1_width").arg(i),res->property("width"));
        settings.setValue(QString("resolutions_%1_height").arg(i),res->property("height"));
        settings.setValue(QString("resolutions_%1_compression").arg(i),res->property("compression"));
        settings.setValue(QString("resolutions_%1_detailLow").arg(i),res->property("detailLow"));
        settings.setValue(QString("resolutions_%1_detailMed").arg(i),res->property("detailMedium"));
        settings.setValue(QString("resolution_%1_detailHigh").arg(i),res->property("detailHigh"));
        settings.setValue(QString("resolutions_%1_enabled").arg(i),res->property("enabled"));
    }
}

void Wallsizer::readSettings()
{
    saveAsk = settings.value("saveAsk",false).toBool();
    saveSame = settings.value("saveSame",true).toBool();
    savePath = settings.value("savePath","").toString();

    int _count = settings.value("resolutions_count",0).toInt();
    if(_count==0){
        //First run. Preload resolutions:
        resolutions.append(new Resolution(this,"VGA",640,480,100,3,2,0,false));
        resolutions.append(new Resolution(this,"SVGA",800,600,100,3,2,0,false));
        resolutions.append(new Resolution(this,"WSVGA",1024,600,95,3,2,0,false));
        resolutions.append(new Resolution(this,"XGA",1024,768,95,3,2,0,true));
        resolutions.append(new Resolution(this,"XGA+",1152,864,95,3,2,0,false));
        resolutions.append(new Resolution(this,"WXGA",1280,720,95,3,2,0,false));
        resolutions.append(new Resolution(this,"WXGA",1280,768,95,2,2,0,false));
        resolutions.append(new Resolution(this,"WXGA",1280,800,95,2,2,0,true));
        resolutions.append(new Resolution(this,"SXGA–(UVGA)",1280,960,95,2,2,0,false));
        resolutions.append(new Resolution(this,"SXGA",1280,1024,90,2,2,0,true));
        resolutions.append(new Resolution(this,"HD",1360,768,90,2,2,0,false));
        resolutions.append(new Resolution(this,"HD",1366,768,90,2,2,0,true));
        resolutions.append(new Resolution(this,"SXGA+",1400,1050,90,2,2,0,false));
        resolutions.append(new Resolution(this,"WXGA+",1440,900,90,2,2,0,true));
        resolutions.append(new Resolution(this,"HD+",1600,900,90,2,2,0,true));
        resolutions.append(new Resolution(this,"UXGA",1600,1200,90,4,4,4,false));
        resolutions.append(new Resolution(this,"WSXGA+",1680,1050,90,4,4,4,true));
        resolutions.append(new Resolution(this,"FHD",1920,1080,90,4,4,4,true));
        resolutions.append(new Resolution(this,"WUXGA",1920,1200,90,4,4,4,false));
        resolutions.append(new Resolution(this,"QWXGA",2048,1152,90,3,3,3,false));
        resolutions.append(new Resolution(this,"WQHD",2560,1440,90,3,3,3,false));
        resolutions.append(new Resolution(this,"WQXGA",2560,1600,90,3,3,3,false));
    }else{
        for(int i=0;i<_count;++i){
            resolutions.append(new Resolution(
                                   this,
                                   settings.value(QString("resolutions_%1_title").arg(i),"").toString(),
                                   settings.value(QString("resolutions_%1_width").arg(i),0).toInt(),
                                   settings.value(QString("resolutions_%1_height").arg(i),0).toInt(),
                                   settings.value(QString("resolutions_%1_compression").arg(i),100).toInt(),
                                   settings.value(QString("resolutions_%1_detailLow").arg(i),0).toInt(),
                                   settings.value(QString("resolutions_%1_detailMed").arg(i),0).toInt(),
                                   settings.value(QString("resolution_%1_detailHigh").arg(i),0).toInt(),
                                   settings.value(QString("resolutions_%1_enabled").arg(i),false).toBool()
                                   ));
        }
    }
    resolutionsOld = resolutions;
}

Resolution::Resolution(QObject *parent, QString _title, int _width, int _height, int _compression, int _detailLow, int _detailMedium, int _detailHigh, bool _enabled) :
    QObject(parent)
{
    title = _title;
    width = _width;
    height = _height;
    compression = _compression;
    detailLow = _detailLow;
    detailMed = _detailMedium;
    detailHigh = _detailHigh;
    enabled = _enabled;
}


text:
using System;
using System.IO;
using System.Threading;

namespace SIL.TestUtilities
{
	public class TestUtilities
	{
		public static string GetTempTestDirectory()
		{
			DirectoryInfo dirProject = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
			return  dirProject.FullName;
		}

		public static void DeleteFolderThatMayBeInUse(string folder)
		{
			if (Directory.Exists(folder))
			{
				try
				{
					Directory.Delete(folder, true);
				}
				catch (Exception e)
				{
					try
					{
						Console.WriteLine(e.Message);
						//maybe we can at least clear it out a bit
						string[] files = Directory.GetFiles(folder, "*.*", SearchOption.AllDirectories);
						foreach (string s in files)
						{
							File.SetAttributes(s, FileAttributes.Normal); //get past readonly
							File.Delete(s);
						}
						//sleep and try again (seems to work)
						Thread.Sleep(1000);
						Directory.Delete(folder, true);
					}
					catch (Exception)
					{
					}
				}
			}
		}
	}
}


text:
package com.amazonaws.services.cognitoidp.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 *

 * The type of constraints associated with an attribute of the string type.
 *

 *
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StringAttributeConstraintsType implements Serializable, Cloneable, StructuredPojo {

    /**
     *

     * The minimum length of an attribute value of the string type.
     *

     */
    private String minLength;
    /**
     *

     * The maximum length of an attribute value of the string type.
     *

     */
    private String maxLength;

    /**
     *

     * The minimum length of an attribute value of the string type.
     *

     *
     * @param minLength
     *        The minimum length of an attribute value of the string type.
     */

    public void setMinLength(String minLength) {
        this.minLength = minLength;
    }

    /**
     *

     * The minimum length of an attribute value of the string type.
     *

     *
     * @return The minimum length of an attribute value of the string type.
     */

    public String getMinLength() {
        return this.minLength;
    }

    /**
     *

     * The minimum length of an attribute value of the string type.
     *

     *
     * @param minLength
     *        The minimum length of an attribute value of the string type.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public StringAttributeConstraintsType withMinLength(String minLength) {
        setMinLength(minLength);
        return this;
    }

    /**
     *

     * The maximum length of an attribute value of the string type.
     *

     *
     * @param maxLength
     *        The maximum length of an attribute value of the string type.
     */

    public void setMaxLength(String maxLength) {
        this.maxLength = maxLength;
    }

    /**
     *

     * The maximum length of an attribute value of the string type.
     *

     *
     * @return The maximum length of an attribute value of the string type.
     */

    public String getMaxLength() {
        return this.maxLength;
    }

    /**
     *

     * The maximum length of an attribute value of the string type.
     *

     *
     * @param maxLength
     *        The maximum length of an attribute value of the string type.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public StringAttributeConstraintsType withMaxLength(String maxLength) {
        setMaxLength(maxLength);
        return this;
    }

    /**
     * Returns a string representation of this object; useful for testing and debugging.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getMinLength() != null)
            sb.append("MinLength: ").append(getMinLength()).append(",");
        if (getMaxLength() != null)
            sb.append("MaxLength: ").append(getMaxLength());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof StringAttributeConstraintsType == false)
            return false;
        StringAttributeConstraintsType other = (StringAttributeConstraintsType) obj;
        if (other.getMinLength() == null ^ this.getMinLength() == null)
            return false;
        if (other.getMinLength() != null && other.getMinLength().equals(this.getMinLength()) == false)
            return false;
        if (other.getMaxLength() == null ^ this.getMaxLength() == null)
            return false;
        if (other.getMaxLength() != null && other.getMaxLength().equals(this.getMaxLength()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getMinLength() == null) ? 0 : getMinLength().hashCode());
        hashCode = prime * hashCode + ((getMaxLength() == null) ? 0 : getMaxLength().hashCode());
        return hashCode;
    }

    @Override
    public StringAttributeConstraintsType clone() {
        try {
            return (StringAttributeConstraintsType) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.cognitoidp.model.transform.StringAttributeConstraintsTypeMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}


text:
/** @jsx jsx */

import { Editor } from 'slate'
import { jsx } from '../../..'

export const run = editor => {
  Editor.insertFragment(editor, <fragment>fragment</fragment>)
}

export const input = (
  <editor>
    <block>
      <text />
      <inline>word</inline>
      <cursor />
    </block>
  </editor>
)

export const output = (
  <editor>
    <block>
      <text />
      <inline>word</inline>
      fragment
      <cursor />
    </block>
  </editor>
)


text:
namespace YAF.Controls
{

    public partial class UserMenu
    {

        /// <summary>
        /// UserDropDown control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::YAF.Web.Controls.ThemeButton UserDropDown;

        /// <summary>
        /// UserAvatar control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Image UserAvatar;

        /// <summary>
        /// UnreadPlaceHolder control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder UnreadPlaceHolder;

        /// <summary>
        /// UnreadLabel control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.Label UnreadLabel;

        /// <summary>
        /// MyProfile control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MyProfile;

        /// <summary>
        /// MySettings control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MySettings;

        /// <summary>
        /// MyInboxItem control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MyInboxItem;

        /// <summary>
        /// MyBuddiesItem control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MyBuddiesItem;

        /// <summary>
        /// MyAlbumsItem control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MyAlbumsItem;

        /// <summary>
        /// MyTopicItem control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MyTopicItem;

        /// <summary>
        /// LogutItem control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder LogutItem;

        /// <summary>
        /// LogOutButton control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.LinkButton LogOutButton;

        /// <summary>
        /// MyNotifications control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.PlaceHolder MyNotifications;

        /// <summary>
        /// NotifyItem control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::YAF.Web.Controls.ThemeButton NotifyItem;

        /// <summary>
        /// UnreadIcon control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::YAF.Web.Controls.Icon UnreadIcon;

        /// <summary>
        /// NotifyIcon control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::YAF.Web.Controls.Icon NotifyIcon;

        /// <summary>
        /// NotifyPopMenu control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::YAF.Web.Controls.NotifyPopMenu NotifyPopMenu;

        /// <summary>
        /// MarkAll control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::YAF.Web.Controls.ThemeButton MarkAll;
    }
}


text:
'use strict';

angular.module('myApp.services', []).factory('usersService', function ($http) {

    var usersaAllRequest = function usersaAllRequest(url) {
        return $http.get(url);
    };

    return {
        usersaAllRequest: usersaAllRequest
    };
});


text:
.class public final Landroid/text/SpannedString;
.super Landroid/text/SpannableStringInternal;
.source "SpannedString.java"

# interfaces
.implements Ljava/lang/CharSequence;
.implements Landroid/text/GetChars;
.implements Landroid/text/Spanned;

# direct methods
.method public constructor <init>(Ljava/lang/CharSequence;)V
    .locals 2
    .param p1, "source"    # Ljava/lang/CharSequence;

    .prologue
    .line 30
    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v0

    const/4 v1, 0x0

    invoke-direct {p0, p1, v1, v0}, Landroid/text/SpannableStringInternal;-><init>(Ljava/lang/CharSequence;II)V

    .line 29
    return-void
.end method

.method private constructor <init>(Ljava/lang/CharSequence;II)V
    .locals 0
    .param p1, "source"    # Ljava/lang/CharSequence;
    .param p2, "start"    # I
    .param p3, "end"    # I

    .prologue
    .line 34
    invoke-direct {p0, p1, p2, p3}, Landroid/text/SpannableStringInternal;-><init>(Ljava/lang/CharSequence;II)V

    .line 33
    return-void
.end method

.method public static valueOf(Ljava/lang/CharSequence;)Landroid/text/SpannedString;
    .locals 1
    .param p0, "source"    # Ljava/lang/CharSequence;

    .prologue
    .line 42
    instance-of v0, p0, Landroid/text/SpannedString;

    if-eqz v0, :cond_0

    .line 43
    check-cast p0, Landroid/text/SpannedString;

    .end local p0    # "source":Ljava/lang/CharSequence;
    return-object p0

    .line 45
    .restart local p0    # "source":Ljava/lang/CharSequence;
    :cond_0
    new-instance v0, Landroid/text/SpannedString;

    invoke-direct {v0, p0}, Landroid/text/SpannedString;-><init>(Ljava/lang/CharSequence;)V

    return-object v0
.end method

# virtual methods
.method public bridge synthetic equals(Ljava/lang/Object;)Z
    .locals 1
    .param p1, "o"    # Ljava/lang/Object;

    .prologue
    invoke-super {p0, p1}, Landroid/text/SpannableStringInternal;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public bridge synthetic getSpanEnd(Ljava/lang/Object;)I
    .locals 1
    .param p1, "what"    # Ljava/lang/Object;

    .prologue
    invoke-super {p0, p1}, Landroid/text/SpannableStringInternal;->getSpanEnd(Ljava/lang/Object;)I

    move-result v0

    return v0
.end method

.method public bridge synthetic getSpanFlags(Ljava/lang/Object;)I
    .locals 1
    .param p1, "what"    # Ljava/lang/Object;

    .prologue
    invoke-super {p0, p1}, Landroid/text/SpannableStringInternal;->getSpanFlags(Ljava/lang/Object;)I

    move-result v0

    return v0
.end method

.method public bridge synthetic getSpanStart(Ljava/lang/Object;)I
    .locals 1
    .param p1, "what"    # Ljava/lang/Object;

    .prologue
    invoke-super {p0, p1}, Landroid/text/SpannableStringInternal;->getSpanStart(Ljava/lang/Object;)I

    move-result v0

    return v0
.end method

.method public bridge synthetic getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
    .locals 1
    .param p1, "queryStart"    # I
    .param p2, "queryEnd"    # I
    .param p3, "kind"    # Ljava/lang/Class;

    .prologue
    invoke-super {p0, p1, p2, p3}, Landroid/text/SpannableStringInternal;->getSpans(IILjava/lang/Class;)[Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic hashCode()I
    .locals 1

    .prologue
    invoke-super {p0}, Landroid/text/SpannableStringInternal;->hashCode()I

    move-result v0

    return v0
.end method

.method public bridge synthetic nextSpanTransition(IILjava/lang/Class;)I
    .locals 1
    .param p1, "start"    # I
    .param p2, "limit"    # I
    .param p3, "kind"    # Ljava/lang/Class;

    .prologue
    invoke-super {p0, p1, p2, p3}, Landroid/text/SpannableStringInternal;->nextSpanTransition(IILjava/lang/Class;)I

    move-result v0

    return v0
.end method

.method public subSequence(II)Ljava/lang/CharSequence;
    .locals 1
    .param p1, "start"    # I
    .param p2, "end"    # I

    .prologue
    .line 38
    new-instance v0, Landroid/text/SpannedString;

    invoke-direct {v0, p0, p1, p2}, Landroid/text/SpannedString;-><init>(Ljava/lang/CharSequence;II)V

    return-object v0
.end method


text:
namespace Beyova
{
    /// <summary>
    /// Class BasePageIndexedCriteria.
    /// </summary>
    public class BasePageIndexedCriteria : BaseCriteria
    {
        #region Properties

        /// <summary>
        /// Gets or sets the start index.
        /// It could be with <c>Count</c> to do paging.
        /// </summary>
        /// <value>The start index.</value>

        public int StartIndex { get; set; }

        #endregion Properties

        #region Constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="BasePageIndexedCriteria" /> class.
        /// </summary>
        public BasePageIndexedCriteria()
            : base()
        {
        }

        #endregion Constructor
    }
}


text:
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/

"use strict";

const asyncLib = require("neo-async");
const validateOptions = require("schema-utils");
const { ConcatSource, RawSource } = require("webpack-sources");
const ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
const ProgressPlugin = require("./ProgressPlugin");
const SourceMapDevToolModuleOptionsPlugin = require("./SourceMapDevToolModuleOptionsPlugin");
const getLazyHashedEtag = require("./cache/getLazyHashedEtag");
const createHash = require("./util/createHash");
const { relative, dirname } = require("./util/fs");
const { absolutify } = require("./util/identifier");

const schema = require("../schemas/plugins/SourceMapDevToolPlugin.json");

/** @typedef {import("source-map").RawSourceMap} SourceMap */
/** @typedef {import("webpack-sources").Source} Source */
/** @typedef {import("../declarations/plugins/SourceMapDevToolPlugin").SourceMapDevToolPluginOptions} SourceMapDevToolPluginOptions */
/** @typedef {import("./Cache").Etag} Etag */
/** @typedef {import("./Chunk")} Chunk */
/** @typedef {import("./Compilation")} Compilation */
/** @typedef {import("./Compiler")} Compiler */
/** @typedef {import("./Module")} Module */
/** @typedef {import("./util/Hash")} Hash */

/**
 * @typedef {object} SourceMapTask
 * @property {Source} asset
 * @property {(string | Module)[]} modules
 * @property {string} source
 * @property {string} file
 * @property {SourceMap} sourceMap
 * @property {string} cacheIdent cache identifier
 * @property {Etag} cacheETag cache ETag
 */

/**
 * Creating {@link SourceMapTask} for given file
 * @param {string} file current compiled file
 * @param {Source} asset the asset
 * @param {SourceMapDevToolPluginOptions} options source map options
 * @param {Compilation} compilation compilation instance
 * @param {string} cacheIdent cache identifier
 * @param {Etag} cacheETag cache ETag
 * @returns {SourceMapTask | undefined} created task instance or `undefined`
 */
const getTaskForFile = (
	file,
	asset,
	options,
	compilation,
	cacheIdent,
	cacheETag
) => {
	let source;
	/** @type {SourceMap} */
	let sourceMap;
	/**
	 * Check if asset can build source map
	 */
	if (asset.sourceAndMap) {
		const sourceAndMap = asset.sourceAndMap(options);
		sourceMap = /** @type {SourceMap} */ (sourceAndMap.map);
		source = sourceAndMap.source;
	} else {
		sourceMap = /** @type {SourceMap} */ (asset.map(options));
		source = asset.source();
	}
	if (!sourceMap || typeof source !== "string") return;
	const context = compilation.options.context;
	const root = compilation.compiler.root;
	const modules = sourceMap.sources.map(source => {
		if (!source.startsWith("webpack://")) return source;
		source = absolutify(context, source.slice(10), root);
		const module = compilation.findModule(source);
		return module || source;
	});

	return {
		file,
		asset,
		source,
		sourceMap,
		modules,
		cacheIdent,
		cacheETag
	};
};

class SourceMapDevToolPlugin {
	/**
	 * @param {SourceMapDevToolPluginOptions} [options] options object
	 * @throws {Error} throws error, if got more than 1 arguments
	 */
	constructor(options = {}) {
		validateOptions(schema, options || {}, {
			name: "SourceMap DevTool Plugin",
			baseDataPath: "options"
		});

		/** @type {string | false} */
		this.sourceMapFilename = options.filename;
		/** @type {string | false} */
		this.sourceMappingURLComment =
			options.append === false
				? false
				: options.append || "\n//# source" + "MappingURL=[url]";
		/** @type {string | Function} */
		this.moduleFilenameTemplate =
			options.moduleFilenameTemplate || "webpack://[namespace]/[resourcePath]";
		/** @type {string | Function} */
		this.fallbackModuleFilenameTemplate =
			options.fallbackModuleFilenameTemplate ||
			"webpack://[namespace]/[resourcePath]?[hash]";
		/** @type {string} */
		this.namespace = options.namespace || "";
		/** @type {SourceMapDevToolPluginOptions} */
		this.options = options;
	}

	/**
	 * Apply compiler
	 * @param {Compiler} compiler compiler instance
	 * @returns {void}
	 */
	apply(compiler) {
		const outputFs = compiler.outputFileSystem;
		const sourceMapFilename = this.sourceMapFilename;
		const sourceMappingURLComment = this.sourceMappingURLComment;
		const moduleFilenameTemplate = this.moduleFilenameTemplate;
		const namespace = this.namespace;
		const fallbackModuleFilenameTemplate = this.fallbackModuleFilenameTemplate;
		const requestShortener = compiler.requestShortener;
		const options = this.options;
		options.test = options.test || /\.(m?js|css)($|\?)/i;

		const matchObject = ModuleFilenameHelpers.matchObject.bind(
			undefined,
			options
		);

		compiler.hooks.compilation.tap("SourceMapDevToolPlugin", compilation => {
			new SourceMapDevToolModuleOptionsPlugin(options).apply(compilation);

			compilation.hooks.finishAssets.tapAsync(
				"SourceMapDevToolPlugin",
				(assets, callback) => {
					const chunkGraph = compilation.chunkGraph;
					/** @type {Map<string | Module, string>} */
					const moduleToSourceNameMapping = new Map();
					/**
					 * @type {Function}
					 * @returns {void}
					 */
					const reportProgress =
						ProgressPlugin.getReporter(compilation.compiler) || (() => {});

					/** @type {Map<string, Chunk>} */
					const fileToChunk = new Map();
					for (const chunk of compilation.chunks) {
						for (const file of chunk.files) {
							fileToChunk.set(file, chunk);
						}
						for (const file of chunk.auxiliaryFiles) {
							fileToChunk.set(file, chunk);
						}
					}

					/** @type {string[]} */
					const files = [];
					for (const file of Object.keys(assets)) {
						if (matchObject(file)) {
							files.push(file);
						}
					}

					reportProgress(0.0);
					/** @type {SourceMapTask[]} */
					const tasks = [];
					let fileIndex = 0;

					asyncLib.each(
						files,
						(file, callback) => {
							const asset = compilation.getAsset(file).source;
							const cacheIdent = `${compilation.compilerPath}/SourceMapDevToolPlugin/${file}`;
							const cacheETag = getLazyHashedEtag(asset);

							compilation.cache.get(cacheIdent, cacheETag, (err, assets) => {
								if (err) {
									return callback(err);
								}
								/**
								 * If presented in cache, reassigns assets. Cache assets already have source maps.
								 */
								if (assets) {
									for (const cachedFile in assets) {
										if (cachedFile === file) {
											compilation.updateAsset(cachedFile, assets[cachedFile]);
										} else {
											compilation.emitAsset(cachedFile, assets[cachedFile], {
												development: true
											});
										}
										/**
										 * Add file to chunk, if not presented there
										 */
										if (cachedFile !== file) {
											const chunk = fileToChunk.get(file);
											if (chunk !== undefined)
												chunk.auxiliaryFiles.add(cachedFile);
										}
									}

									reportProgress(
										(0.5 * ++fileIndex) / files.length,
										file,
										"restored cached SourceMap"
									);

									return callback();
								}

								reportProgress(
									(0.5 * fileIndex) / files.length,
									file,
									"generate SourceMap"
								);

								/** @type {SourceMapTask | undefined} */
								const task = getTaskForFile(
									file,
									asset,
									options,
									compilation,
									cacheIdent,
									cacheETag
								);

								if (task) {
									const modules = task.modules;

									for (let idx = 0; idx < modules.length; idx++) {
										const module = modules[idx];
										if (!moduleToSourceNameMapping.get(module)) {
											moduleToSourceNameMapping.set(
												module,
												ModuleFilenameHelpers.createFilename(
													module,
													{
														moduleFilenameTemplate: moduleFilenameTemplate,
														namespace: namespace
													},
													{
														requestShortener,
														chunkGraph
													}
												)
											);
										}
									}

									tasks.push(task);
								}

								reportProgress(
									(0.5 * ++fileIndex) / files.length,
									file,
									"generated SourceMap"
								);

								callback();
							});
						},
						err => {
							if (err) {
								return callback(err);
							}

							reportProgress(0.5, "resolve sources");
							/** @type {Set<string>} */
							const usedNamesSet = new Set(moduleToSourceNameMapping.values());
							/** @type {Set<string>} */
							const conflictDetectionSet = new Set();

							/**
							 * all modules in defined order (longest identifier first)
							 * @type {Array<string | Module>}
							 */
							const allModules = Array.from(
								moduleToSourceNameMapping.keys()
							).sort((a, b) => {
								const ai = typeof a === "string" ? a : a.identifier();
								const bi = typeof b === "string" ? b : b.identifier();
								return ai.length - bi.length;
							});

							// find modules with conflicting source names
							for (let idx = 0; idx < allModules.length; idx++) {
								const module = allModules[idx];
								let sourceName = moduleToSourceNameMapping.get(module);
								let hasName = conflictDetectionSet.has(sourceName);
								if (!hasName) {
									conflictDetectionSet.add(sourceName);
									continue;
								}

								// try the fallback name first
								sourceName = ModuleFilenameHelpers.createFilename(
									module,
									{
										moduleFilenameTemplate: fallbackModuleFilenameTemplate,
										namespace: namespace
									},
									{
										requestShortener,
										chunkGraph
									}
								);
								hasName = usedNamesSet.has(sourceName);
								if (!hasName) {
									moduleToSourceNameMapping.set(module, sourceName);
									usedNamesSet.add(sourceName);
									continue;
								}

								// elsewise just append stars until we have a valid name
								while (hasName) {
									sourceName += "*";
									hasName = usedNamesSet.has(sourceName);
								}
								moduleToSourceNameMapping.set(module, sourceName);
								usedNamesSet.add(sourceName);
							}

							let taskIndex = 0;

							asyncLib.each(
								tasks,
								(task, callback) => {
									const assets = Object.create(null);
									const file = task.file;
									const chunk = fileToChunk.get(file);
									const sourceMap = task.sourceMap;
									const source = task.source;
									const modules = task.modules;

									reportProgress(
										0.5 + (0.5 * taskIndex) / tasks.length,
										file,
										"attach SourceMap"
									);

									const moduleFilenames = modules.map(m =>
										moduleToSourceNameMapping.get(m)
									);
									sourceMap.sources = moduleFilenames;
									if (options.noSources) {
										sourceMap.sourcesContent = undefined;
									}
									sourceMap.sourceRoot = options.sourceRoot || "";
									sourceMap.file = file;

									/** @type {string | false} */
									let currentSourceMappingURLComment = sourceMappingURLComment;
									if (
										currentSourceMappingURLComment !== false &&
										/\.css($|\?)/i.test(file)
									) {
										currentSourceMappingURLComment = currentSourceMappingURLComment.replace(
											/^\n\/\/(.*)$/,
											"\n/*$1*/"
										);
									}
									const sourceMapString = JSON.stringify(sourceMap);
									if (sourceMapFilename) {
										let filename = file;
										const pathParams = {
											chunk,
											filename: options.fileContext
												? relative(
														outputFs,
														`/${options.fileContext}`,
														`/${filename}`
												  )
												: filename,
											contentHash: /** @type {string} */ (createHash("md4")
												.update(sourceMapString)
												.digest("hex"))
										};
										let sourceMapFile = compilation.getPath(
											sourceMapFilename,
											pathParams
										);
										const sourceMapUrl = options.publicPath
											? options.publicPath + sourceMapFile
											: relative(
													outputFs,
													dirname(outputFs, `/${file}`),
													`/${sourceMapFile}`
											  );
										/**
										 * Add source map url to compilation asset, if {@link currentSourceMappingURLComment} presented
										 */
										if (currentSourceMappingURLComment !== false) {
											const asset = new ConcatSource(
												new RawSource(source),
												compilation.getPath(
													currentSourceMappingURLComment,
													Object.assign({ url: sourceMapUrl }, pathParams)
												)
											);
											assets[file] = asset;
											compilation.updateAsset(file, asset);
										}
										/**
										 * Add source map file to compilation assets and chunk files
										 */
										const asset = new RawSource(sourceMapString);
										assets[sourceMapFile] = asset;
										compilation.emitAsset(sourceMapFile, asset, {
											development: true
										});
										if (chunk !== undefined)
											chunk.auxiliaryFiles.add(sourceMapFile);
									} else {
										if (currentSourceMappingURLComment === false) {
											throw new Error(
												"SourceMapDevToolPlugin: append can't be false when no filename is provided"
											);
										}
										/**
										 * Add source map as data url to asset
										 */
										const asset = new ConcatSource(
											new RawSource(source),
											currentSourceMappingURLComment
												.replace(/\[map\]/g, () => sourceMapString)
												.replace(
													/\[url\]/g,
													() =>
														`data:application/json;charset=utf-8;base64,${Buffer.from(
															sourceMapString,
															"utf-8"
														).toString("base64")}`
												)
										);
										assets[file] = asset;
										compilation.updateAsset(file, asset);
									}

									compilation.cache.store(
										task.cacheIdent,
										task.cacheETag,
										assets,
										err => {
											reportProgress(
												0.5 + (0.5 * ++taskIndex) / tasks.length,
												task.file,
												"attached SourceMap"
											);

											if (err) {
												return callback(err);
											}
											callback();
										}
									);
								},
								err => {
									reportProgress(1.0);
									callback(err);
								}
							);
						}
					);
				}
			);
		});
	}
}

module.exports = SourceMapDevToolPlugin;


text:
d1\_gmn.app.middleware package
==============================

.. automodule:: d1_gmn.app.middleware
   :members:
   :undoc-members:
   :show-inheritance:

Submodules
----------

d1\_gmn.app.middleware.detail\_codes module
-------------------------------------------

.. automodule:: d1_gmn.app.middleware.detail_codes
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.exception\_handler module
------------------------------------------------

.. automodule:: d1_gmn.app.middleware.exception_handler
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.profiling\_handler module
------------------------------------------------

.. automodule:: d1_gmn.app.middleware.profiling_handler
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.request\_handler module
----------------------------------------------

.. automodule:: d1_gmn.app.middleware.request_handler
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.response\_handler module
-----------------------------------------------

.. automodule:: d1_gmn.app.middleware.response_handler
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.session\_cert module
-------------------------------------------

.. automodule:: d1_gmn.app.middleware.session_cert
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.session\_jwt module
------------------------------------------

.. automodule:: d1_gmn.app.middleware.session_jwt
   :members:
   :undoc-members:
   :show-inheritance:

d1\_gmn.app.middleware.view\_handler module
-------------------------------------------

.. automodule:: d1_gmn.app.middleware.view_handler
   :members:
   :undoc-members:
   :show-inheritance:


text:
import React from 'react';
import ReactDOM from 'react-dom';

import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';

class App extends React.Component {
    render() {
        let dataStatCounter =
            [
                { Browser: 'Chrome', Share: 45.6 },
                { Browser: 'IE', Share: 24.6 },
                { Browser: 'Firefox', Share: 20.4 },
                { Browser: 'Safari', Share: 5.1 },
                { Browser: 'Opera', Share: 1.3 },
                { Browser: 'Other', Share: 3.0 }
            ];
        let dataW3CCounter =
            [
                { Browser: 'Chrome', Share: 34.1 },
                { Browser: 'IE', Share: 20.3 },
                { Browser: 'Firefox', Share: 18.3 },
                { Browser: 'Safari', Share: 17.8 },
                { Browser: 'Opera', Share: 2.7 },
                { Browser: 'Other', Share: 6.8 }
            ];
        let dataWikimedia =
            [
                { Browser: 'Chrome', Share: 42.7 },
                { Browser: 'IE', Share: 18.0 },
                { Browser: 'Firefox', Share: 15.3 },
                { Browser: 'Safari', Share: 6.1 },
                { Browser: 'Opera', Share: 2.4 },
                { Browser: 'Other', Share: 15.6 }
            ];
        let dataNetApplications =
            [
                { Browser: 'Chrome', Share: 16.4 },
                { Browser: 'IE', Share: 55.2 },
                { Browser: 'Firefox', Share: 18.0 },
                { Browser: 'Safari', Share: 5.8 },
                { Browser: 'Opera', Share: 1.3 },
                { Browser: 'Other', Share: 3.4 }
            ];
        let charts = [
            { title: 'Stat counter', label: 'Stat', dataSource: dataStatCounter },
            { title: 'W3C counter', label: 'W3C', dataSource: dataW3CCounter },
            { title: 'Wikimedia', label: 'Wikimedia', dataSource: dataWikimedia },
            { title: 'Net Applications', label: 'NetApp', dataSource: dataNetApplications }
        ];

        let padding = { left: 5, top: 5, right: 5, bottom: 5 };

        let titlePadding = { left: 0, top: 0, right: 0, bottom: 10 };

        let seriesGroups =
            [
                {
                    type: 'pie',
                    showLegend: true,
                    enableSeriesToggle: true,
                    series:
                    [
                        {
                            dataField: 'Share',
                            displayText: 'Browser',
                            showLabels: true,
                            labelRadius: 160,
                            labelLinesEnabled: true,
                            labelLinesAngles: true,
                            labelsAutoRotate: false,
                            initialAngle: 0,
                            radius: 125,
                            minAngle: 0,
                            maxAngle: 180,
                            centerOffset: 0,
                            offsetY: 170,
                            formatFunction: (value, itemIdx, serieIndex, groupIndex) => {
                                if (isNaN(value))
                                    return value;
                                return value + '%';
                            }
                        }
                    ]
                }
            ];
        return (
            <div>
                <JqxChart style={{ width: 400, height: 250, float: 'left' }}
                    title={''} description={charts[0].title} source={charts[0].dataSource}
                    showLegend={true} enableAnimations={false} padding={padding}
                    titlePadding={titlePadding} showBorderLine={true}
                    colorScheme={'scheme03'} seriesGroups={seriesGroups}
                />

                <JqxChart style={{ width: 400, height: 250, float: 'left' }}
                    title={''} description={charts[1].title} source={charts[1].dataSource}
                    showLegend={true} enableAnimations={false} padding={padding}
                    titlePadding={titlePadding} showBorderLine={true}
                    colorScheme={'scheme03'} seriesGroups={seriesGroups}
                />

                <JqxChart style={{ width: 400, height: 250, float: 'left' }}
                    title={''} description={charts[2].title} source={charts[2].dataSource}
                    showLegend={true} enableAnimations={false} padding={padding}
                    titlePadding={titlePadding} showBorderLine={true}
                    colorScheme={'scheme03'} seriesGroups={seriesGroups}
                />

                <JqxChart style={{ width: 400, height: 250, float: 'left' }}
                    title={''} description={charts[3].title} source={charts[3].dataSource}
                    showLegend={true} enableAnimations={false} padding={padding}
                    titlePadding={titlePadding} showBorderLine={true}
                    colorScheme={'scheme03'} seriesGroups={seriesGroups}
                />
            </div>
        )
    }
}

ReactDOM.render(<App />, document.getElementById('app'));


text:
module RefTool
  class Operation
    class Guard
      extend Forwardable

      def continue?
        valid? ? true : failure
      end

      private
      attr_reader :operation, :error_code

      def failure
        failure!
      end

      def valid?
        @valid ||= condition
      end

      def failure!(*args)
        operation.failure!(error_code, *args)
      end

      def setup(operation, error_code)
        @operation = operation
        @error_code = error_code
      end

      def method_missing(method_name, *args, &block)
        if operation.respond_to?(method_name,true)

          operation.send(method_name, *args, &block)
        else
          super
        end
      end

      def respond_to_missing?(method_name, _include_private = false)
        operation.respond_to?(method_name, true) || super
      end
    end
  end
end