text:
web.org/anthology/P15-1153",
    doi = "10.3115/v1/P15-1153",
    pages = "1587--1597",
}
@inproceedings{tran-etal-2015-joint,
    title = "Joint Graphical Models for Date Selection in Timeline Summarization",
    author = "Tran, Giang  and
      Herder, Eelco  and
      Markert, Katja",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1154",
    doi = "10.3115/v1/P15-1154",
    pages = "1598--1607",
}
@inproceedings{kedzie-etal-2015-predicting,
    title = "Predicting Salient Updates for Disaster Summarization",
    author = "Kedzie, Chris  and
      McKeown, Kathleen  and
      Diaz, Fernando",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1155",
    doi = "10.3115/v1/P15-1155",
    pages = "1608--1617",
}
@inproceedings{lau-etal-2015-unsupervised,
    title = "Unsupervised Prediction of Acceptability Judgements",
    author = "Lau, Jey Han  and
      Clark, Alexander  and
      Lappin, Shalom",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1156",
    doi = "10.3115/v1/P15-1156",
    pages = "1618--1628",
}
@inproceedings{tsur-etal-2015-frame,
    title = "A Frame of Mind: Using Statistical Models for Detection of Framing and Agenda Setting Campaigns",
    author = "Tsur, Oren  and
      Calacci, Dan  and
      Lazer, David",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1157",
    doi = "10.3115/v1/P15-1157",
    pages = "1629--1638",
}
@inproceedings{orita-etal-2015-discourse,
    title = "Why discourse affects speakers{'} choice of referring expressions",
    author = "Orita, Naho  and
      Vornov, Eliana  and
      Feldman, Naomi  and
      Daum{\'e} III, Hal",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1158",
    doi = "10.3115/v1/P15-1158",
    pages = "1639--1649",
}
@inproceedings{niculae-etal-2015-linguistic,
    title = "Linguistic Harbingers of Betrayal: A Case Study on an Online Strategy Game",
    author = "Niculae, Vlad  and
      Kumar, Srijan  and
      Boyd-Graber, Jordan  and
      Danescu-Niculescu-Mizil, Cristian",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1159",
    doi = "10.3115/v1/P15-1159",
    pages = "1650--1659",
}
@inproceedings{kanouchi-etal-2015-caught,
    title = "Who caught a cold ? - Identifying the subject of a symptom",
    author = "Kanouchi, Shin  and
      Komachi, Mamoru  and
      Okazaki, Naoaki  and
      Aramaki, Eiji  and
      Ishikawa, Hiroshi",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1160",
    doi = "10.3115/v1/P15-1160",
    pages = "1660--1670",
}
@inproceedings{yang-etal-2015-weakly,
    title = "Weakly Supervised Role Identification in Teamwork Interactions",
    author = "Yang, Diyi  and
      Wen, Miaomiao  and
      Ros{\'e}, Carolyn",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1161",
    doi = "10.3115/v1/P15-1161",
    pages = "1671--1680",
}
@inproceedings{iyyer-etal-2015-deep,
    title = "Deep Unordered Composition Rivals Syntactic Methods for Text Classification",
    author = "Iyyer, Mohit  and
      Manjunatha, Varun  and
      Boyd-Graber, Jordan  and
      Daum{\'e} III, Hal",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1162",
    doi = "10.3115/v1/P15-1162",
    pages = "1681--1691",
}
@inproceedings{wang-etal-2015-solar,
    title = "{SOLAR}: Scalable Online Learning Algorithms for Ranking",
    author = "Wang, Jialei  and
      Wan, Ji  and
      Zhang, Yongdong  and
      Hoi, Steven",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1163",
    doi = "10.3115/v1/P15-1163",
    pages = "1692--1701",
}
@inproceedings{rousseau-etal-2015-text,
    title = "Text Categorization as a Graph Classification Problem",
    author = "Rousseau, Fran{\c{c}}ois  and
      Kiagias, Emmanouil  and
      Vazirgiannis, Michalis",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1164",
    doi = "10.3115/v1/P15-1164",
    pages = "1702--1712",
}
@inproceedings{sogaard-etal-2015-inverted,
    title = "Inverted indexing for cross-lingual {NLP}",
    author = "S{\o}gaard, Anders  and
      Agi{\'c}, {\v{Z}}eljko  and
      Mart{\'\i}nez Alonso, H{\'e}ctor  and
      Plank, Barbara  and
      Bohnet, Bernd  and
      Johannsen, Anders",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1165",
    doi = "10.3115/v1/P15-1165",
    pages = "1713--1722",
}
@inproceedings{dong-etal-2015-multi,
    title = "Multi-Task Learning for Multiple Language Translation",
    author = "Dong, Daxiang  and
      Wu, Hua  and
      He, Wei  and
      Yu, Dianhai  and
      Wang, Haifeng",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1166",
    doi = "10.3115/v1/P15-1166",
    pages = "1723--1732",
}
@inproceedings{ma-hinrichs-2015-accurate,
    title = "Accurate Linear-Time {C}hinese Word Segmentation via Embedding Matching",
    author = "Ma, Jianqiang  and
      Hinrichs, Erhard",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1167",
    doi = "10.3115/v1/P15-1167",
    pages = "1733--1743",
}
@inproceedings{chen-etal-2015-gated,
    title = "Gated Recursive Neural Network for {C}hinese Word Segmentation",
    author = "Chen, Xinchi  and
      Qiu, Xipeng  and
      Zhu, Chenxi  and
      Huang, Xuanjing",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1168",
    doi = "10.3115/v1/P15-1168",
    pages = "1744--1753",
}
@inproceedings{preotiuc-pietro-etal-2015-analysis,
    title = "An analysis of the user occupational class through Twitter content",
    author = "Preo{\c{t}}iuc-Pietro, Daniel  and
      Lampos, Vasileios  and
      Aletras, Nikolaos",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1169",
    doi = "10.3115/v1/P15-1169",
    pages = "1754--1764",
}
@inproceedings{wurzer-etal-2015-tracking,
    title = "Tracking unbounded Topic Streams",
    author = "Wurzer, Dominik  and
      Lavrenko, Victor  and
      Osborne, Miles",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1170",
    doi = "10.3115/v1/P15-1170",
    pages = "1765--1773",
}
@inproceedings{uchiumi-etal-2015-inducing,
    title = "Inducing Word and Part-of-Speech with Pitman-Yor Hidden Semi-{M}arkov Models",
    author = "Uchiumi, Kei  and
      Tsukahara, Hiroshi  and
      Mochihashi, Daichi",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1171",
    doi = "10.3115/v1/P15-1171",
    pages = "1774--1782",
}
@inproceedings{li-etal-2015-coupled,
    title = "Coupled Sequence Labeling on Heterogeneous Annotations: {POS} Tagging as a Case Study",
    author = "Li, Zhenghua  and
      Chao, Jiayuan  and
      Zhang, Min  and
      Chen, Wenliang",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1172",
    doi = "10.3115/v1/P15-1172",
    pages = "1783--1792",
}
@inproceedings{rothe-schutze-2015-autoextend,
    title = "{A}uto{E}xtend: Extending Word Embeddings to Embeddings for Synsets and Lexemes",
    author = {Rothe, Sascha  and
      Sch{\"u}tze, Hinrich},
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1173",
    doi = "10.3115/v1/P15-1173",
    pages = "1793--1803",
}
@inproceedings{graham-2015-improving,
    title = "Improving Evaluation of Machine Translation Quality Estimation",
    author = "Graham, Yvette",
    booktitle = "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = jul,
    year = "2015",
    address = "Beijing, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/P15-1174",
    doi = "10.3115/v1/P15-1174",
    pages = "1804--1813",
}

license_type: permissive

branch_name: refs/heads/master

extension: bib


text:
package digo_test

import (
	"bytes"
	"fmt"
	"io"
	"reflect"
	"testing"

	"github.com/Kretech/xgo/digo"
	"github.com/Kretech/xgo/dump"
)

func TestDemo_Singleton(t *testing.T) {
	di := digo.NewDIGo()

	// 注册两个基本类型
	_ = di.SingletonFunc(func() int { return 316 })
	_ = di.SingletonFunc(func(i int) string { return fmt.Sprint(i) })

	var age int
	var name string

	_ = di.InvokePtr(&age)
	_ = di.InvokePtr(&name)

	if age != 316 {
		t.Error(dump.Serialize(age))
	}

	if name != `316` {
		t.Error(dump.Serialize(name))
	}
	println(age, name)
	// 利用容器提供的默认数据调用函数
	t.Run(`InvokeFunc()`, func(t *testing.T) {
		invoked := ``
		_, _ = di.InvokeFunc(func(a int, s string) {
			invoked = fmt.Sprintf("a=%v s=%v", a, s)
		})
		if invoked != `a=316 s=316` {
			t.Error(dump.Serialize(invoked))
		}
	})

	// 利用容器提供的默认数据构造对象
	type P struct {
		Name string
		Age  int
	}
	_ = di.SingletonFunc(func(name string, age int) P {
		return P{Name: name, Age: age}
	})

	t.Run(`InvokePtr()`, func(t *testing.T) {
		p1 := new(P)
		_ = di.InvokePtr(p1)
		if !(p1.Name == name && p1.Age == age) {
			t.Error(dump.Serialize(p1))
		}

		// 测试单例生成的 struct 是同一个
		// 注意，p2 的类型是 *P，如果 p2 定义为 P，Build 时传 &p，虽然不会影响测试结果，但你自己已经维护了两个 struct 了
		p2 := new(P)
		_ = di.InvokePtr(p2)
		if *p2 != *p1 {
			t.Error(dump.Serialize(p2))
		}

		// 用 Singleton() 注册对象
		_ = di.Singleton(p2)
		p3 := new(P)
		_ = di.InvokePtr(p3)
		if *p2 != *p3 {
			t.Error(dump.Serialize(p3))
		}

		// FillClass
		t.Run(`FillClass()`, func(t *testing.T) {
			p4 := new(P)
			_ = di.FillClass(p4)
			if *p2 != *p4 {
				t.Error(dump.Serialize(p4))
			}
		})
	})

	// 测试 MapSingleton
	t.Run(`MapSingleton()`, func(t *testing.T) {
		_ = di.MapSingleton(reflect.TypeOf(new(int)), reflect.ValueOf(7))
		var num7 int
		_ = di.InvokePtr(&num7)
		if num7 != 7 {
			t.Error(dump.Serialize(num7))
		}
	})

	// 测试 MapSingleton 绑定 interface 和 implement
	t.Run(`MapSingleton()`, func(t *testing.T) {
		buf := bytes.Buffer{}
		_ = di.MapSingleton(reflect.TypeOf(new(io.Writer)), reflect.ValueOf(&buf))
		_, _ = di.InvokeFunc(func(w io.Writer) {
			_, _ = w.Write([]byte(`hi`))
		})
		if buf.Len() != 2 {
			t.Error(dump.Serialize(buf.String()))
		}
	})

	p := new(struct {
		Name string
		Age  int
	})
	_ = di.FillClass(p)
	dump.Dump(p)

}

license: MIT

repository: Kretech/xgo

repo_name: Kretech/xgo

gha_license_id: MIT

gha_language: Go

extension: go


text:
@article{Rokaya-2019-Promoting,
    title = "Promoting Sustainable Ice-Jam Flood Management along the Peace River and Peace-Athabasca Delta",
    author = "Rokaya, Prabin  and
      Wheater, Howard  and
      Lindenschmidt, Karl-Erich",
    journal = "Journal of Water Resources Planning and Management, Volume 145, Issue 1",
    volume = "145",
    number = "1",
    year = "2019",
    publisher = "American Society of Civil Engineers (ASCE)",
    url = "https://aclanthology.org/G19-151001",
    doi = "10.1061/(asce)wr.1943-5452.0001021",
    abstract = "AbstractThe regulation of rivers has always been a controversial issue, with potential benefits but also environmental impacts. In western Canada, the construction of W.A.C. Bennett Dam in the head...",
}

repository: gwf-uwaterloo/gwf-publications

repo_name: gwf-uwaterloo/gwf-publications

branch_name: refs/heads/main

gha_language: Python


text:
package main

import (
	"fmt"
	"sapi/pkg/broker"
	"sapi/pkg/broker/kafka"
)

func main()  {
	kafka := kafka.NewBroker(&broker.Options{})
	producer, error := kafka.NewProducer()
	error = producer.Publish("1111", &broker.Message{
		Header: map[string]string{"aa":"bb"},
		Body: []byte("asdasd"),
	})
	error = kafka.Close()

	fmt.Println(error)
}


text:
SECTION = "devel/chicken"
DESCRIPTION = "Simple key-value store on top of SQLite"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://sqdb.meta;md5=eeb2b8e480f92b0ff59ba572b951fa04"
DEPENDS_append_class-cross = " chicken-egg-sql-de-lite-cross"
DEPENDS_append_class-crosssdk = " chicken-egg-sql-de-lite-crosssdk"
DEPENDS_append_class-nativesdk = " nativesdk-chicken-egg-sql-de-lite chicken-egg-sql-de-lite-crosssdk"
DEPENDS = " chicken-egg-sql-de-lite chicken-egg-sql-de-lite-cross"
RDEPENDS_${PN} = " chicken-egg-sql-de-lite"

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

SRC_URI[md5sum] = "9c186fa286924259b4ff84cb5e1b9bd9"
SRC_URI[sha256sum] = "0776f3a3791e032fbfd8c6d9456ffb67c58de002f4c4d60f6a8996bfdfb712f7"

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

inherit chicken_install

BBCLASSEXTEND = "cross crosssdk nativesdk"

repository: OSSystems/meta-chicken

repo_name: OSSystems/meta-chicken

extension: bb


text:
require cornucopia.inc
inherit fso-plugin
PR = "${INC_PR}.2"
PV = "0.0.0+gitr${SRCREV}"

DEPENDS += "libxml2 mobile-broadband-provider-info"

repository: demsey/openembedded

repo_name: demsey/openembedded

branch_name: HEAD


text:
package rpc

import (
	"encoding/base64"
	"encoding/json"
	"errors"
	"fmt"

	"github.com/cruisechang/liveServer/config"
	"github.com/cruisechang/liveServer/config/roomConf"
	pb "github.com/cruisechang/liveServer/protobuf"
	"github.com/cruisechang/nex/entity"
	nxLog "github.com/cruisechang/nex/log"
	"golang.org/x/net/context"
)

func (s *rpcServer) RoundProcess2(ctx context.Context, in *pb.RoundProcess2Data) (*pb.Empty, error) {
	logPrefix := "rpcServer RoundProcess2"
	logger := s.nex.GetLogger()

	defer func() {
		if r := recover(); r != nil {
			logger.LogFile(nxLog.LevelPanic, fmt.Sprintf("%s panic:%v\n", logPrefix, r))
		}
	}()

	room, ok := s.nex.GetRoomManager().GetRoom(int(in.RoomID))
	if !ok {
		s.nex.GetLogger().LogFile(nxLog.LevelError, fmt.Sprintf("%s roomID not found :%d\n", logPrefix, in.RoomID))
		return nil, errors.New("roomID not found")
	}

	receivers := getHallReceivers(s.nex.GetUsers(), room.HallID())

	//send to client
	if len(receivers) > 0 {
		toClient := []config.RoundProcess2ResData{
			{
				RoomID: int(in.RoomID),
				Poker:  int(in.Poker),
				Index:  int(in.Index),
				Owner:  int(in.Owner),
			},
		}

		toClientJ, _ := json.Marshal(toClient)
		sendDataStr := base64.StdEncoding.EncodeToString(toClientJ)
		s.sendCommand(config.CodeSuccess, 0, s.configure.CmdRoundProcess2(), sendDataStr, nil, receivers)

		logger.LogFile(nxLog.LevelInfo, fmt.Sprintf("%s toClient=%s", logPrefix, string(toClientJ)))
	}

	logger.LogFile(nxLog.LevelInfo, fmt.Sprintf("%s compplete", logPrefix))

	return &pb.Empty{}, nil
}

func (s *rpcServer) RoundResultType2(ctx context.Context, in *pb.RoundResultType2Data) (*pb.Empty, error) {
	logPrefix := "rpcServer RoundResultType2"

	rr := newRoundResultHandler(s, logPrefix, in.RoomID, in.Round, in)
	return rr.handle()
}

func (s *rpcServer) addHistoryResult2(logPrefix string, room entity.Room, data interface{}) error {
	//room result 增加
	if in, ok := data.(*pb.RoundResultType2Data); ok {
		return s.roomCtrl.AddHistoryResultType(room, []int32{int32(in.Owner0.Result), int32(in.Owner0.Pattern), int32(in.Owner1.Result), int32(in.Owner1.Pattern), int32(in.Owner2.Result), int32(in.Owner2.Pattern), int32(in.Owner3.Result), int32(in.Owner3.Pattern)})

	}
	return fmt.Errorf("%s addHistoryFunc data assertion error=", logPrefix)
}

func (s *rpcServer) UpdateResultType2(ctx context.Context, in *pb.UpdateResultType2Data) (*pb.Empty, error) {
	logger := s.nex.GetLogger()

	defer func() {
		if r := recover(); r != nil {
			logger.LogFile(nxLog.LevelPanic, fmt.Sprintf("rpcServer UpdateResultType2 panic:%v\n", r))
		}
	}()

	return &pb.Empty{}, nil
}
func (s *rpcServer) HistoryResultType2(ctx context.Context, in *pb.HistoryResultType2Data) (*pb.HistoryResultType2Res, error) {
	logger := s.nex.GetLogger()

	defer func() {
		if r := recover(); r != nil {
			logger.LogFile(nxLog.LevelPanic, fmt.Sprintf("rpcServer HistoryResultType2 panic:%v\n", r))
		}
	}()

	rm := s.nex.GetRoomManager()
	r, ok := rm.GetRoom(int(in.RoomID))
	if !ok {
		logger.LogFile(nxLog.LevelError, fmt.Sprintf("rpcServer HistoryResultType2 roomID not found :%d\n", in.RoomID))
		return nil, errors.New("roomID not found")
	}

	result, err := s.roomCtrl.GetHistoryResult(r)
	if err != nil {
		return nil, err
	}
	re, ok := result.(roomConf.HistoryResultType2)
	if !ok {
		return nil, errors.New("HistoryResultType2 assertion error")
	}

	var pbAry []*pb.HistoryResultType2ResInnerType
	for _, v := range re {
		pbAry = append(pbAry, &pb.HistoryResultType2ResInnerType{Result: v})

	}

	return &pb.HistoryResultType2Res{
		Result: pbAry,
	}, nil

}

repository: cruisechang/liveServer

repo_name: cruisechang/liveServer


text:
package image

// STATUS: 1%

import (
	"os"

	"github.com/martinlindhe/formats/parse"
)

// XCursor parses the X11 mouse cursor image format
func XCursor(c *parse.Checker) (*parse.ParsedLayout, error) {

	if !isXCursor(c.Header) {
		return nil, nil
	}
	return parseXCursor(c.File, c.ParsedLayout)
}

func isXCursor(b []byte) bool {

	if b[0] == 'X' && b[1] == 'c' && b[2] == 'u' && b[3] == 'r' {
		return true
	}
	return false
}

func parseXCursor(file *os.File, pl parse.ParsedLayout) (*parse.ParsedLayout, error) {

	pos := int64(0)
	pl.FileKind = parse.Image
	pl.Layout = []parse.Layout{{
		Offset: pos,
		Length: 4, // XXX
		Info:   "header",
		Type:   parse.Group,
		Childs: []parse.Layout{
			{Offset: pos, Length: 4, Info: "magic", Type: parse.ASCII},
		}}}

	return &pl, nil
}

repository: martinlindhe/formats

repo_name: martinlindhe/formats


text:
package gisp

import (
	"fmt"

	p "github.com/Dwarfartisan/goparsec2"
)

// Atom 类型表达基础的 atom 类型
type Atom struct {
	Name string
	Type Type
}

// AA 构造一个指定命名的Atom，类型为 ANYOPTION
func AA(name string) Atom {
	return Atom{Name: name, Type: ANYOPTION}
}

func (atom Atom) String() string {
	return fmt.Sprintf("%v::%v", atom.Name, atom.Type)
}

// Eval 方法实现 atom 实例的求值行为
func (atom Atom) Eval(env Env) (interface{}, error) {
	if s, ok := env.Lookup(atom.Name); ok {
		switch slot := s.(type) {
		case Var:
			value := slot.Get()
			return value, nil
		case TaskExpr:
			return slot(env)
		default:
			return slot, nil
		}
	}
	return nil, fmt.Errorf("value of atom %s not found", atom.Name)
}

func atomNameParser() p.P {
	return p.Do(func(state p.State) interface{} {
		ret := p.Many1(p.RuneNone("'[]() \t\r\n\".:")).Bind(p.ReturnString).Exec(state)
		test := p.BasicStateFromText(ret.(string))
		_, err := p.Many1(p.Digit).Then(p.EOF).Parse(&test)
		if err == nil {
			p.Fail("atom name can't be a int like %s", ret)
		}
		return ret
	})
}

// AtomParserExt 生成带扩展包的 Atom
func AtomParserExt(env Env) p.P {
	return p.Do(func(st p.State) interface{} {
		a := atomNameParser().Exec(st)
		t, err := p.Try(ExtTypeParser(env)).Parse(st)
		if err == nil {
			return Atom{a.(string), t.(Type)}
		}
		return Atom{a.(string), ANYMUST}
	})
}

// AtomParser 生成 Atom 对象，但是它不带扩展环境
func AtomParser(st p.State) (interface{}, error) {
	a, err := atomNameParser().Parse(st)
	if err != nil {
		return nil, err
	}
	t, err := p.Try(TypeParser).Parse(st)
	if err == nil {
		return Atom{a.(string), t.(Type)}, nil
	}
	return Atom{a.(string), ANYMUST}, nil
}


text:
% This file was created with JabRef 2.3.1.
% Encoding: Cp1252

@Online{zappella,
  author      = {Giovanni Zappella},
  title       = {A Scalable Multiclass Algorithm for Node Classification},
  version     = {1},
  date        = {2011-12-19},
  eprinttype  = {arxiv},
  eprintclass = {cs.LG, cs.GT},
  eprint      = {http://arxiv.org/abs/1112.4344v1}
}

@inproceedings{aggarwal2011,
  author    = {Charu C. Aggarwal and
               Nan Li},
  title     = {On Node Classification in Dynamic Content-based Networks},
  booktitle = {SDM},
  year      = {2011},
  pages     = {355-366},
  ee        = {http://siam.omnibooksonline.com/2011datamining/data/papers/033.pdf\#page=1},
  crossref  = {aggarwal2011},
  bibsource = {DBLP, http://dblp.uni-trier.de}
}

@book{DBLP:series/ads/2010-40,
  editor    = {Charu C. Aggarwal and
               Haixun Wang},
  title     = {Managing and Mining Graph Data},
  booktitle = {Managing and Mining Graph Data},
  publisher = {Springer},
  series    = {Advances in Database Systems},
  volume    = {40},
  year      = {2010},
  isbn      = {978-1-4419-6044-3},
  ee        = {http://dx.doi.org/10.1007/978-1-4419-6045-0},
  bibsource = {DBLP, http://dblp.uni-trier.de}
}

@inproceedings{DBLP:conf/kdd/BhagatCR07,
  author    = {Smriti Bhagat and
               Graham Cormode and
               Irina Rozenbaum},
  title     = {Applying Link-Based Classification to Label Blogs},
  booktitle = {WebKDD/SNA-KDD},
  year      = {2007},
  pages     = {97-117},
  ee        = {http://dx.doi.org/10.1007/978-3-642-00528-2_6},
  crossref  = {DBLP:conf/kdd/2007web},
  bibsource = {DBLP, http://dblp.uni-trier.de}
}
@proceedings{DBLP:conf/kdd/2007web,
  editor    = {Haizheng Zhang and
               Myra Spiliopoulou and
               Bamshad Mobasher and
               C. Lee Giles and
               Andrew McCallum and
               Olfa Nasraoui and
               Jaideep Srivastava and
               John Yen},
  title     = {Advances in Web Mining and Web Usage Analysis, 9th International
               Workshop on Knowledge Discovery on the Web, WebKDD 2007,
               and 1st International Workshop on Social Networks Analysis,
               SNA-KDD 2007, San Jose, CA, USA, August 12-15, 2007. Revised
               Papers},
  booktitle = {WebKDD/SNA-KDD},
  publisher = {Springer},
  series    = {Lecture Notes in Computer Science},
  volume    = {5439},
  year      = {2009},
  isbn      = {978-3-642-00527-5},
  ee        = {http://dx.doi.org/10.1007/978-3-642-00528-2},
  bibsource = {DBLP, http://dblp.uni-trier.de}
}


text:
package influxdb

import "time"
import (
	"fmt"
	bulkQuerygen "github.com/influxdata/influxdb-comparisons/bulk_query_gen"
)

// InfluxDashboardMemoryUtilization produces Influx-specific queries for the dashboard single-host case.
type InfluxDashboardMemoryUtilization struct {
	InfluxDashboard
}

func NewInfluxQLDashboardMemoryUtilization(dbConfig bulkQuerygen.DatabaseConfig, interval bulkQuerygen.TimeInterval, duration time.Duration, scaleVar int) bulkQuerygen.QueryGenerator {
	underlying := newInfluxDashboard(InfluxQL, dbConfig, interval, duration, scaleVar).(*InfluxDashboard)
	return &InfluxDashboardMemoryUtilization{
		InfluxDashboard: *underlying,
	}
}

func NewFluxDashboardMemoryUtilization(dbConfig bulkQuerygen.DatabaseConfig, interval bulkQuerygen.TimeInterval, duration time.Duration, scaleVar int) bulkQuerygen.QueryGenerator {
	underlying := newInfluxDashboard(Flux, dbConfig, interval, duration, scaleVar).(*InfluxDashboard)
	return &InfluxDashboardMemoryUtilization{
		InfluxDashboard: *underlying,
	}
}

func (d *InfluxDashboardMemoryUtilization) Dispatch(i int) bulkQuerygen.Query {
	q, interval := d.InfluxDashboard.DispatchCommon(i)

	var query string
	//SELECT mean("used_percent") FROM "telegraf"."default"."mem" WHERE "cluster_id" = :Cluster_Id: AND time > :dashboardTime: GROUP BY time(1m), "host"
	if d.language == InfluxQL {
		query = fmt.Sprintf("SELECT mean(\"used_percent\") FROM mem WHERE cluster_id = '%s' and %s group by time(1m), hostname", d.GetRandomClusterId(), d.GetTimeConstraint(interval))
	} else {
		query = fmt.Sprintf(`from(bucket:"%s") `+
			`|> range(start:%s, stop:%s) `+
			`|> filter(fn:(r) => r._measurement == "mem" and r._field == "used_percent" and r._cluster_id == "%s") `+
			`|> keep(columns:["_start", "_stop", "_time", "_value", "hostname"]) `+
			`|> group(columns:["hostname"]) `+
			`|> aggregateWindow(every: 1m, fn: mean, createEmpty: false) ` +
			`|> keep(columns: ["_time", "_value", "hostname"]) `+
			`|> yield()`,
			d.DatabaseName,
			interval.StartString(), interval.EndString(),
			d.GetRandomClusterId())
	}

	humanLabel := fmt.Sprintf("InfluxDB (%s) Memory Utilization (Percent), rand cluster, %s by 1m", d.language.String(), interval.Duration())

	d.getHttpQuery(humanLabel, interval.StartString(), query, q)
	return q
}

repository: influxdata/influxdb-comparisons

repo_name: influxdata/influxdb-comparisons


text:
// Copyright The NRI Plugins Authors. All Rights Reserved.
//
// 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 cpuset

import (
	"fmt"
	"strconv"
	"strings"

	"k8s.io/utils/cpuset"
)

// CPUSet is an alias for k8s.io/utils/cpuset.CPUSet.
type CPUSet = cpuset.CPUSet

var (
	// New is an alias for cpuset.New.
	New = cpuset.New
	// Parse is an alias for cpuset.Parse.
	Parse = cpuset.Parse
)

// MustParse panics if parsing the given cpuset string fails.
func MustParse(s string) cpuset.CPUSet {
	cset, err := cpuset.Parse(s)
	if err != nil {
		panic(fmt.Errorf("failed to parse CPUSet %s: %w", s, err))
	}
	return cset
}

// ShortCPUSet prints the cpuset as a string, trying to further shorten compared to .String().
func ShortCPUSet(cset cpuset.CPUSet) string {
	str, sep := "", ""

	beg, end, step := -1, -1, -1
	for _, cpu := range strings.Split(cset.String(), ",") {
		if strings.Contains(cpu, "-") {
			str += sep + cpu
			sep = ","
			continue
		}
		i, err := strconv.ParseInt(cpu, 10, 0)
		if err != nil {
			return cset.String()
		}
		id := int(i)
		if beg < 0 {
			beg, end = id, id
			continue
		}
		if step < 0 {
			end = id
			step = end - beg
			continue
		}
		if id-end == step {
			end = id
			continue
		}
		str += sep + mkRange(beg, end, step)
		sep = ","
		beg, end = id, id
		step = -1
	}

	if beg >= 0 {
		str += sep + mkRange(beg, end, step)
	}

	return str
}

func mkRange(beg, end, step int) string {
	if beg < 0 {
		return ""
	}
	if beg == end {
		return strconv.FormatInt(int64(beg), 10)
	}

	b, e := strconv.FormatInt(int64(beg), 10), strconv.FormatInt(int64(end), 10)
	if step == 1 {
		return b + "-" + e
	}
	if beg+step == end {
		return b + "," + e
	}

	s := strconv.FormatInt(int64(step), 10)
	return b + "-" + e + ":" + s
}

repository: intel/cri-resource-manager

repo_name: intel/cri-resource-manager


text:
package backend_test

import (
	"bytes"
	"fmt"
	"io"
	"io/ioutil"
	"math/rand"
	"sort"
	"testing"

	crand "crypto/rand"

	"github.com/restic/restic/backend"
	. "github.com/restic/restic/test"
)

func testBackendConfig(b backend.Backend, t *testing.T) {
	// create config and read it back
	_, err := b.Get(backend.Config, "")
	Assert(t, err != nil, "did not get expected error for non-existing config")

	blob, err := b.Create()
	OK(t, err)

	_, err = blob.Write([]byte("Config"))
	OK(t, err)
	OK(t, blob.Finalize(backend.Config, ""))

	// try accessing the config with different names, should all return the
	// same config
	for _, name := range []string{"", "foo", "bar", "0000000000000000000000000000000000000000000000000000000000000000"} {
		rd, err := b.Get(backend.Config, name)
		Assert(t, err == nil, "unable to read config")

		buf, err := ioutil.ReadAll(rd)
		OK(t, err)
		OK(t, rd.Close())
		Assert(t, string(buf) == "Config", "wrong data returned for config")
	}
}

func testGetReader(b backend.Backend, t testing.TB) {
	length := rand.Intn(1<<24) + 2000

	data := make([]byte, length)
	_, err := io.ReadFull(crand.Reader, data)
	OK(t, err)

	blob, err := b.Create()
	OK(t, err)

	id := backend.Hash(data)

	_, err = blob.Write([]byte(data))
	OK(t, err)
	OK(t, blob.Finalize(backend.Data, id.String()))

	for i := 0; i < 500; i++ {
		l := rand.Intn(length + 2000)
		o := rand.Intn(length + 2000)

		d := data
		if o < len(d) {
			d = d[o:]
		} else {
			o = len(d)
			d = d[:0]
		}

		if l > 0 && l < len(d) {
			d = d[:l]
		}

		rd, err := b.GetReader(backend.Data, id.String(), uint(o), uint(l))
		OK(t, err)
		buf, err := ioutil.ReadAll(rd)
		OK(t, err)

		if !bytes.Equal(buf, d) {
			t.Fatalf("data not equal")
		}
	}

	OK(t, b.Remove(backend.Data, id.String()))
}

func testWrite(b backend.Backend, t testing.TB) {
	length := rand.Intn(1<<23) + 2000

	data := make([]byte, length)
	_, err := io.ReadFull(crand.Reader, data)
	OK(t, err)
	id := backend.Hash(data)

	for i := 0; i < 10; i++ {
		blob, err := b.Create()
		OK(t, err)

		o := 0
		for o < len(data) {
			l := rand.Intn(len(data) - o)
			if len(data)-o < 20 {
				l = len(data) - o
			}

			n, err := blob.Write(data[o : o+l])
			OK(t, err)
			if n != l {
				t.Fatalf("wrong number of bytes written, want %v, got %v", l, n)
			}

			o += l
		}

		name := fmt.Sprintf("%s-%d", id, i)
		OK(t, blob.Finalize(backend.Data, name))

		rd, err := b.Get(backend.Data, name)
		OK(t, err)

		buf, err := ioutil.ReadAll(rd)
		OK(t, err)

		if len(buf) != len(data) {
			t.Fatalf("number of bytes does not match, want %v, got %v", len(data), len(buf))
		}

		if !bytes.Equal(buf, data) {
			t.Fatalf("data not equal")
		}
	}
}

func store(t testing.TB, b backend.Backend, tpe backend.Type, data []byte) {
	id := backend.Hash(data)

	blob, err := b.Create()
	OK(t, err)

	_, err = blob.Write([]byte(data))
	OK(t, err)
	OK(t, blob.Finalize(tpe, id.String()))
}

func read(t testing.TB, rd io.Reader, expectedData []byte) {
	buf, err := ioutil.ReadAll(rd)
	OK(t, err)
	if expectedData != nil {
		Equals(t, expectedData, buf)
	}
}

func testBackend(b backend.Backend, t *testing.T) {
	testBackendConfig(b, t)

	for _, tpe := range []backend.Type{
		backend.Data, backend.Key, backend.Lock,
		backend.Snapshot, backend.Index,
	} {
		// detect non-existing files
		for _, test := range TestStrings {
			id, err := backend.ParseID(test.id)
			OK(t, err)

			// test if blob is already in repository
			ret, err := b.Test(tpe, id.String())
			OK(t, err)
			Assert(t, !ret, "blob was found to exist before creating")

			// try to open not existing blob
			_, err = b.Get(tpe, id.String())
			Assert(t, err != nil, "blob data could be extracted before creation")

			// try to read not existing blob
			_, err = b.GetReader(tpe, id.String(), 0, 1)
			Assert(t, err != nil, "blob reader could be obtained before creation")

			// try to get string out, should fail
			ret, err = b.Test(tpe, id.String())
			OK(t, err)
			Assert(t, !ret, "id %q was found (but should not have)", test.id)
		}

		// add files
		for _, test := range TestStrings {
			store(t, b, tpe, []byte(test.data))

			// test Get()
			rd, err := b.Get(tpe, test.id)
			OK(t, err)
			Assert(t, rd != nil, "Get() returned nil")

			read(t, rd, []byte(test.data))
			OK(t, rd.Close())

			// test GetReader()
			rd, err = b.GetReader(tpe, test.id, 0, uint(len(test.data)))
			OK(t, err)
			Assert(t, rd != nil, "GetReader() returned nil")

			read(t, rd, []byte(test.data))
			OK(t, rd.Close())

			// try to read it out with an offset and a length
			start := 1
			end := len(test.data) - 2
			length := end - start
			rd, err = b.GetReader(tpe, test.id, uint(start), uint(length))
			OK(t, err)
			Assert(t, rd != nil, "GetReader() returned nil")

			read(t, rd, []byte(test.data[start:end]))
			OK(t, rd.Close())
		}

		// test adding the first file again
		test := TestStrings[0]

		// create blob
		blob, err := b.Create()
		OK(t, err)

		_, err = blob.Write([]byte(test.data))
		OK(t, err)
		err = blob.Finalize(tpe, test.id)
		Assert(t, err != nil, "expected error, got %v", err)

		// remove and recreate
		err = b.Remove(tpe, test.id)
		OK(t, err)

		// test that the blob is gone
		ok, err := b.Test(tpe, test.id)
		OK(t, err)
		Assert(t, ok == false, "removed blob still present")

		// create blob
		blob, err = b.Create()
		OK(t, err)

		_, err = io.Copy(blob, bytes.NewReader([]byte(test.data)))
		OK(t, err)
		OK(t, blob.Finalize(tpe, test.id))

		// list items
		IDs := backend.IDs{}

		for _, test := range TestStrings {
			id, err := backend.ParseID(test.id)
			OK(t, err)
			IDs = append(IDs, id)
		}

		sort.Sort(IDs)

		i := 0
		for s := range b.List(tpe, nil) {
			Equals(t, IDs[i].String(), s)
			i++
		}

		// remove content if requested
		if TestCleanup {
			for _, test := range TestStrings {
				id, err := backend.ParseID(test.id)
				OK(t, err)

				found, err := b.Test(tpe, id.String())
				OK(t, err)

				OK(t, b.Remove(tpe, id.String()))

				found, err = b.Test(tpe, id.String())
				OK(t, err)
				Assert(t, !found, fmt.Sprintf("id %q not found after removal", id))
			}
		}
	}

	testGetReader(b, t)
	testWrite(b, t)
}

repository: juanolon/restic

repo_name: juanolon/restic


text:
SECTION = "devel/chicken"
DESCRIPTION = "SQLite 3 interface"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://sql-de-lite.meta;md5=97dacb83502443b8f8406ae65aefb523"
DEPENDS_append_class-cross = " chicken-egg-lru-cache-cross chicken-egg-foreigners-cross sqlite3-native"
DEPENDS_append_class-crosssdk = " chicken-egg-lru-cache-crosssdk chicken-egg-foreigners-crosssdk sqlite3-native"
DEPENDS_append_class-nativesdk = " nativesdk-chicken-egg-lru-cache nativesdk-chicken-egg-foreigners nativesdk-sqlite3 chicken-egg-lru-cache-crosssdk chicken-egg-foreigners-crosssdk"
DEPENDS = " chicken-egg-lru-cache chicken-egg-foreigners sqlite3 chicken-egg-lru-cache-cross chicken-egg-foreigners-cross"
RDEPENDS_${PN} = " chicken-egg-lru-cache chicken-egg-foreigners"

EXTRA_CHICKEN_INSTALL_OPTIONS += " -D sql-de-lite-external-lib "

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

SRC_URI[md5sum] = "6b1a6a3c5f0ea3bd9d25f8ae3863724d"
SRC_URI[sha256sum] = "35d35e52408327bb4890f5dffbda0f7b13aeb14676169853efc7370ad82657ca"

S = "${WORKDIR}/sql-de-lite-${PV}"

inherit chicken_install

BBCLASSEXTEND = "cross crosssdk nativesdk"


text:
@BOOK{BookExample,
  author       = {A. Einstein and W. C. Fields},
  title        = {On the relativity of relativity},
  edition      = {2nd},
  publisher    = {Publisher},
  address      = {Somewhere},
  year         = {1905}
}

@MISC{MaCFP_database,
  howpublished = {{\tt https://github.com/MaCFP/macfp-db}},
}

@MISC{MaCFP_ppt,
  howpublished = {{\tt https://iafss.org/3770-2/}},
}

@ARTICLE{Heskestad:FSJ1983,
  author       = {Heskestad, G.},
  title        = {{Luminous Heights of Turbulent Diffusion Flames}},
  journal      = {Fire Safety Journal},
  year         = {1983},
  volume       = {5},
  pages        = {103-108},
}

@BOOK{Poinsot:TNC,
  author       = {T. Poinsot and D. Veynante},
  title        = {{Theoretical and Numerical Combustion}},
  edition      = {2nd},
  publisher    = {R.T. Edwards, Inc.},
  address      = {Philadelphia, Pennsylvania},
  year         = {2005}
}

@MISC{ASTM:E1355,
  title        = {{Standard Guide for Evaluating the Predictive Capability of Deterministic Fire Models}},
  howpublished = {ASTM International E 1355-05a}
}

@ARTICLE{Oberkampf:2006,
  author       = {W. L. Oberkampf and M. F. Barone},
  title        = {Measures of agreement between computation and experiment: {Validation} metrics},
  journal      = {J. Comput. Phys},
  volume       = {217},
  pages        = {5-36},
  year         = {2006}
}

@BOOK{Oberkampf:2010,
  author       = {W. L. Oberkampf and C. J. Roy},
  title        = {{Verification and Validation in Scientific Computing}},
  publisher    = {Cambridge},
  year         = {2010}
}

@BOOK{Roache:1998,
  author       = {Patrick J. Roache},
  title        = {{Verification and Validation in Computational Science and Engineering}},
  year         = {1998},
  publisher    = {Hermosa}
}

@ARTICLE{McGrattan:2011,
  author       = {K. McGrattan and B. Toman},
  title        = {Quantifying the predictive uncertainty of complex numerical models},
  journal      = {Metrologia},
  volume       = {48},
  pages        = {173-180},
  year         = {2011}
}

@Article{McGrattan:2015,
  author =       "K. McGrattan and R. Peacock and K. Overholt",
  title =        "Validation of Fire Models Applied to Nuclear Power Plant Safety",
  journal =      "Fire Technology",
  volume =       "51",
  number =       "1",
  year =         "2015"
}

@ARTICLE{FDS_Verification_Guide,
  author = {K. McGrattan and S. Hostikka and R. McDermott and J. Floyd and M. Vanella and C. Weinschenk and K. Overholt},
  title = {{Fire Dynamics Simulator, Technical Reference Guide, Volume 2: Verification}},
  journal = {National Institute of Standards and Technology, Gaithersburg, Maryland, USA, NIST Special Publication 1018-2, Sixth Edition (2017)},
}

@ARTICLE{FDS_Validation_Guide,
  author = {K. McGrattan and S. Hostikka and R. McDermott and J. Floyd and M. Vanella and C. Weinschenk and K. Overholt},
  title = {{Fire Dynamics Simulator, Technical Reference Guide, Volume 3: Validation}},
  journal = {National Institute of Standards and Technology, Gaithersburg, Maryland, USA, NIST Special Publication 1018-3, Sixth Edition (2017)},
  }

@ARTICLE{DesJardin:2004,
  author       = {P. E. DesJardin and T. J. O'Hern and S. R. Tieszen},
  title        = {Large eddy simulation and experimental measurements of the near-field of a large turbulent helium plume},
  year         = {2004},
  journal      = {Physics of Fluids},
  volume       = {16},
  number       = {6},
  pages        = {1866-1883}
}

@PHDTHESIS{Vilfayeau:PhDThesis,
  author       = {S. Vilfayeau},
  title        = {{Large Eddy Simulation of Fire Extinction Phenomena}},
  year         = {2015},
  school       = {University of Maryland},
  address      = {College Park, Maryland}
}

@INPROCEEDINGS{Wimer:2017,
  author       = {N. Wimer and A. Mackoweicki and C. Hoffman and A. Peludnenko and J. Daily and G. Rieker and P. Hamlington},
  title        = {{Direct Numerical Simulation of Wildland Fires and Small Scales}},
  booktitle    = {Proceedings of the 70th Annual Meeting of the APS Division of Fluid Dynamics},
  organization = {Combustion Institute, Pittsburgh, Pennsylvania},
  year         = {2017},
  address      = {Denver, Colorado},
}

@ARTICLE{Wilson:2014,
  author       = {G. Wilson and D. A. Aruliah and C. Titus Brown and N. P. Chue Hong and
                  M. Davis and R. T. Guy and S. H. D. Haddock and K. D. Huff and
                  I. M. Mitchell and M. D. Plumbley and Ben Waugh and E. P. White and P. Wilson},
  title        = {{Best Practices for Scientific Computing}},
  year         = {2014},
  journal      = {PLOS Biology},
  volume       = {12},
  number       = {1},
  pages        = {e1001745}
}

@ARTICLE{McDermott:2016,
  author       = {R. McDermott and G. Rein},
  title        = {{Special Issue on Fire Model Validation}},
  year         = {2016},
  journal      = {Fire Technology},
  volume       = {52},
  pages        = {1-4}
}

@ARTICLE{Pope:2004,
  author       = {Pope, S.B.},
  title        = {{Ten questions concerning the large-eddy simulation of turbulent flows}},
  journal      = {New Journal of Physics},
  year         = {2004},
  volume       = {6},
  pages        = {1-24}
}

@ARTICLE{Vervisch:2010,
  author       = {L. Vervisch and P. Domingo and G. Lodato and D. Veynante},
  title        = {Scalar energy fluctuations in {Large}-{Eddy} {Simulation} of turbulent flames: {Statistical} budgets and mesh quality criterion},
  year         = {2010},
  journal      = {Combust. Flame},
  volume       = {157},
  pages        = {778-789},
}

@ARTICLE{Case1_EXP,
  author       = {T. J. O'Hern and E. J. Weckman and A. L. Gerhart and S. R. Tieszen and R. W. Schefer},
  title        = {Experimental study of a turbulent buoyant helium plume},
  year         = {2005},
  journal      = {J. Fluid Mech.},
  volume       = {544},
  pages        = {143-171},
}

@ARTICLE{Case2a_EXP,
  author = {B. J. McCaffrey},
  title = {Purely buoyant diffusion flames: some experimental results},
  journal = {National Bureau of Standards, NBSIR 79-1910 (1979)}
}

@ARTICLE{Case2b_EXP_CH4,
  author       = {S. R. Tieszen and T. J. O'Hern and R. W. Schefer and E. J. Weckman and T. K. Blanchat},
  title        = {Experimental study of the flow field in and around a one meter diameter methane fire},
  year         = {2002},
  journal      = {Combust. Flame},
  volume       = {129},
  pages        = {378-391},
}

@ARTICLE{Case2b_EXP_H2,
  author       = {S. R. Tieszen and T. J. O'Hern and E. J. Weckman and R. W. Schefer},
  title        = {Experimental study of the effect of fuel mass flux on a 1-m-diameter methane fire and comparison with a hydrogen fire},
  year         = {2004},
  journal      = {Combust. Flame},
  volume       = {139},
  pages        = {126-141},
}

@ARTICLE{Case2a_SIM_FMG,
  author = {O. Oluwole},
  title = {{First MaCFP Workshop -- Case 2a}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2a_SIM_UGent,
  author = {G. Maragkos},
  title = {{First MaCFP Workshop -- Case 2a}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2a_SIM_IRSN,
  author = {G. Boyer},
  title = {{First MaCFP Workshop -- Case 2a}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2a_SIM_NIST,
  author = {R. McDermott},
  title = {{First MaCFP Workshop -- Case 2a}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2b_SIM_UGent,
  author = {G. Maragkos},
  title = {{First MaCFP Workshop -- Case 2b}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2b_SIM_NIST,
  author = {R. McDermott},
  title = {{First MaCFP Workshop -- Case 2b}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2b_SIM_SNL,
  author = {J. Hewson and H. Koo},
  title = {{First MaCFP Workshop -- Case 2b}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case2b_SIM_UCantabria,
  author = {D. Alvear-Portilla and M. L{\'a}zaro-Urrutia and A. Alonso-Ipi{\~n}a},
  title = {{First MaCFP Workshop -- Case 2b}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case3_EXP_1,
  author = {E. J. Weckman},
  title = {The structure of the flowfield near the base of a medium-scale pool fire},
  journal = {Ph.D. Thesis, University of Waterloo, ON, Canada (1987)},
}

@ARTICLE{Case3_EXP_2,
  author       = {E. J. Weckman and A. B. Strong},
  title        = {Experimental investigation of the turbulence structure of medium-scale methanol pool fires},
  year         = {1996},
  journal      = {Combust. Flame},
  volume       = {105},
  pages        = {245-266},
}

@ARTICLE{Case3_SIM_UGent,
  author = {G. Maragkos and T. Beji and B. Merci},
  title = {{First MaCFP Workshop -- Case 3}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case3_SIM_UMD,
  author = {A. Marchand and S. Verma and A.Trouv\'e},
  title = {{First MaCFP Workshop -- Case 3}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case3_SIM_VTT,
  author = {T. Sikanen},
  title = {{First MaCFP Workshop -- Case 3}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case4_EXP_1,
  author = {J. L. de Ris and G. H. Markstein and L. Orloff and P. A. Beaulieu},
  title = {Flame heat transfer, Part {I}: pyrolysis zone},
  journal = {Factory Mutual Research, Tech. Report J.I. 0D0J9.MT (1999)}
}

@ARTICLE{Case4_EXP_2,
  author = {J. L. de Ris and G. H. Markstein and L. Orloff and P. A. Beaulieu},
  title = {Similarity of turbulent wall fires},
  journal = {International Association for Fire Safety Science, Proc. Seventh Intl. Symposium (2003) 259-270},
}

@ARTICLE{Case4_SIM_NIST,
  author = {K. McGrattan},
  title = {{First MaCFP Workshop -- Case 4}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case4_SIM_FMG,
  author = {N. Ren},
  title = {{First MaCFP Workshop -- Case 4}},
  journal = {Lund University, Sweden (2017)},
}

@phdthesis{Case5_EXP_1,
title = {Measurement and simulation of suppression effects in a buoyant turbulent line fire},
author = {J. P. White},
school = {University of Maryland, College Park, USA},
year = {2016}
}

@article{Case5_EXP_2,
author = {J. P. White and E. D. Link and A. C. Trouv\'{e} and P. B. Sunderland and A. W. Marshall and J. A. Sheffel and M. L. Corn and M. B. Colket and M. Chaos and H.-Z. Yu},
title ={Radiative emissions measurements from a buoyant, turbulent line flame under oxidizer-dilution quenching conditions},
journal = {Fire Safety J.},
pages = {74-84},
volume = {76},
year = {2015}
}

@article{Case5_EXP_3,
author = {J. P. White and E. D. Link and A. C. Trouv\'{e} and P. B. Sunderland and A. W. Marshall},
title ={A general calorimetry framework for measurement of combustion efficiency in a suppressed turbulent line fire},
journal = {Fire Safety J.},
pages = {164-176},
volume = {92},
year = {2017}
}

@ARTICLE{Case5_SIM_FMG,
  author = {N. Ren},
  title = {{First MaCFP Workshop -- Case 5}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case5_SIM_NIST,
  author = {R. McDermott},
  title = {{First MaCFP Workshop -- Case 5}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Case5_SIM_UMD,
  author = {A. Marchand and S. Verma and A. Trouv\'e},
  title = {{First MaCFP Workshop -- Case 5}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Dorofeev:2016,
  author={S. B. Dorofeev},
  title={Thermal quenching of mixed eddies in non-premixed flames},
  journal={Proc. Combust. Inst.},
  volume={36},
  pages={2947-2954},
  year={2017},
}

@ARTICLE{Vilfayeau:2016,
  author       = {S. Vilfayeau and J. P. White and P. B. Sunderland and A. W. Marshall and A. C. Trouv\'e},
  title        = {Large eddy simulation of flame extinction in a turbulent line fire exposed to air-nitrogen co-flow},
  journal      = {Fire Safety J.},
  volume       = {86},
  pages        = {16-31},
  year         = {2016}
}

@ARTICLE{White:2017,
  author       = {J. P. White and S. Vilfayeau and A. W. Marshall and A. C. Trouv\'e and R. J. McDermott},
  title        = {Modeling flame extinction and reignition in large eddy simulations with fast chemistry},
  journal      = {Fire Safety J.},
  volume       = {90},
  pages        = {72-85},
  year         = {2017}
}

@ARTICLE{Vaari:2011,
  author={J. Vaari and J. Floyd and R. McDermott},
  title={{CFD} simulations on extinction of co-flow diffusion flames},
  journal={International Association for Fire Safety Science, Fire Safety Science--Proc. Intl. Symp.},
  volume       = {10},
  pages={781-793},
  year={2011}
}

@INBOOK{SFPE:Beyler,
  author       = {C. L. Beyler},
  title        = {SFPE Handbook of Fire Protection Engineering},
  chapter      = {{Flammability Limits of Premixed and Diffusion Flames}},
  publisher    = {National Fire Protection Association},
  year         = {2008},
  edition      = {4th},
  address      = {Quincy, Massachusetts}
}

@MISC{OpenFOAM,
howpublished = {OpenFOAM, developed by the OpenFOAM Foundation, available at: {\tt http://www.openfoam.org}},
year = {{accessed: 11-14-2017}}
}

@MISC{FireFOAM,
howpublished = {FireFOAM, developed by FM Global, available at: {\tt https://github.com/fireFoam-dev}},
year = {{accessed: 02-15-2018}}
}

@MISC{FDS,
howpublished = {FDS, developed by the National Institute of Standards and Technology in collaboration with the VTT Technical Research Centre of Finland, available at: {\tt https://pages.nist.gov/fds-smv} and {\tt https://github.com/firemodels/fds}},
year = {{accessed: 02-15-2018}}
}

@MISC{ISIS,
howpublished = {ISIS, developed by the Institut de Radioprotection et de S\^uret\'e Nucl\'eaire, available at: {\tt https://gforge.irsn.fr/gf/project/isis}},
year = {{accessed: 02-15-2018}}
}

@MISC{SIERRA/Fuego,
howpublished = {SIERRA/Fuego, developed by Sandia National Laboratories},
}

@ARTICLE{SIERRA/Fuego_User_Guide1,
  author = {{SIERRA Thermal Fluids Development Team}},
  title = {{SIERRA Low Mach Module: Fuego User Manual -- Version 4.44}},
  journal = {Sandia National Laboratories, Report SAND2017-3792 (2017)},
  }

  @ARTICLE{SIERRA/Fuego_User_Guide2,
  author = {{SIERRA Thermal Fluids Development Team}},
  title = {{SIERRA Low Mach Module: Fuego Theory Manual -- Version 4.44}},
  journal = {Sandia National Laboratories, Report SAND2017-3774 (2017)},
  }

@MISC{MaCFP_website,
  howpublished = {{\tt http://www.iafss.org/macfp}},
  year = {{accessed: 02-15-2018}}
}

@MISC{MaCFP_repository,
  howpublished = {{\tt https://github.com/MaCFP}},
  year = {{accessed: 02-15-2018}}
}

@MISC{MaCFP_wks_presentations,
  howpublished = {{\tt https://iafss.org/3770-2/}},
  year = {{accessed: 02-15-2018}}
}

@ARTICLE{Moin:1991,
  author       = {P. Moin and K. Squires and W. Cabot and S. Lee},
  title        = {A dynamic subgrid-scale model for compressible turbulence and scalar transport},
  journal      = {Phys. Fluids A},
  volume       = {3},
  pages        = {2746-2757},
  year         = {1991},
}

@manual{Magnussen:1981,
  author = {B. F. Magnussen},
  title = {On the structure of turbulence and a generalized eddy dissipation concept for chemical reaction in turbulent flow},
  organization = {19th AIAA Aerospace Science Meeting},
  year = {1981},
}

@ARTICLE{Dorigon:2013,
  author       = {L. J. Dorigon and G. Duciak and R. Brittes and F. Cassol and M. Galar\c{c}a and F. H. R. Fran\c{c}a},
  title        = {{WSGG} correlations based on {HITEMP2010} for computation of thermal radiation in non-isothermal, non-homogeneous {H2O/CO2} mixtures},
  journal      = {Intl. J. Heat and Mass Transfer},
  volume       = {64},
  pages        = {863-873},
  year         = {2013},
}

@ARTICLE{Fureby:1997,
  author       = {C. Fureby and G. Tabor and H. G. Weller and A. D. Gosman},
  title        = {A comparative study of subgrid scale models in homogeneous isotropic turbulence},
  journal      = {Phys. Fluids},
  volume       = {9},
  pages        = {1416-1429},
  year         = {1997},
}

@ARTICLE{Magnussen:1976,
  author       = {B. F. Magnussen and B. H. Hjertager},
  title        = {On mathematical modeling of turbulent combustion with special emphasis on soot formation and combustion},
  journal      = {Proc. Combust. Inst.},
  volume       = {16},
  pages        = {719-729},
  year         = {1976},
}

@ARTICLE{Deardorff:1980,
  author       = {J. W. Deardorff},
  title        = {{Stratocumulus-capped mixed layers derived from a three-dimensional model}},
  journal      = {Boundary-Layer Meteorol.},
  volume       = {18},
  pages        = {495-527},
  year         = {1980},
}

@ARTICLE{FDS_Math_Guide,
  author = {K. McGrattan and S. Hostikka and R. McDermott and J. Floyd and M. Vanella and C. Weinschenk and K. Overholt},
  title = {{Fire Dynamics Simulator, Technical Reference Guide, Volume 1: Mathematical Model}},
  journal = {National Institute of Standards and Technology, Gaithersburg, Maryland, USA, NIST Special Publication 1018-1, Sixth Edition (2017)},
}

@MISC{IAFSS_website,
  howpublished = {{\tt http://www.iafss.org}},
  year = {{accessed: 02-15-2018}}
}

@ARTICLE{MaCFP_FSJ,
  author       = {B. Merci and J. L. Torero and A. Trouv\'e},
  title        = {Call for participation in the first workshop organized by the {IAFSS} Working Group on Measurement and Computation of Fire Phenomena},
  journal      = {Fire Safety J.},
  volume       = {82},
  pages        = {146-147},
  year         = {2016},
}

@ARTICLE{MaCFP_FT,
  author       = {B. Merci and J. L. Torero and A. Trouv\'e},
  title        = {{IAFSS} working group on measurement and computation of fire phenomena},
  journal      = {Fire Technol.},
  volume       = {52},
  pages        = {607-610},
  year         = {2016},
}

@ARTICLE{Ren:2016,
  author       = {N. Ren and Y. Wang and S. Vilfayeau and A. Trouv\'e},
  title        = {Large eddy simulation of turbulent vertical wall fires supplied with gaseous fuel through porous burners},
  year         = {2016},
  journal      = {Combust. Flame},
  volume       = {169},
  pages        = {194-208},
}

@ARTICLE{Ducros:1999,
  author       = {F. Ducros and F. Nicoud},
  title        = {Subgrid-scale stress modelling based on the square of the velocity gradient tensor},
  year         = {1999},
  journal      = {Flow Turb. Combust.},
  volume       = {62},
  pages        = {183-200},
}

@ARTICLE{RadCal,
  author = {W. Grosshandler},
  title = {RadCal: A narrow band model for radiation calculations in a combustion environment},
  journal = {National Institute of Standards and Technology, Gaithersburg, Maryland, USA, NIST Technical Note 1402 (1993)},
}

@ARTICLE{Maragkos:2017,
  author       = {G. Maragkos and B. Merci},
  title        = {Large eddy simulations of {CH4} fire plumes},
  year         = {2017},
  journal      = {Flow Turbul. Combust.},
  volume       = {99},
  pages        = {239-278},
}

@ARTICLE{CPS:Bruns,
  author = {M. Bruns and T. Rogaume and S. Stoliarov},
  title = {{Introduction to the condensed phase subgroup, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Leventon,
  author = {I. Leventon and Y. Ding and S. Stoliarov},
  title = {{Kinetics and thermodynamics of condensed phase decomposition, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Brown,
  author = {A. Brown},
  title = {{Ignition from the condensed phase, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Richard,
  author = {F. Richard},
  title = {{Physics and chemistry of the gas-condensed phase interface, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Hostikka,
  author = {S. Hostikka},
  title = {{Heat and mass transfer in the condensed phase, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Wang,
  author = {Y. Wang},
  title = {{From pyrolysis to industrial fire protection -- Coupling with CFD, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Rein,
  author = {G. Rein},
  title = {{Inverse modelling and model complexity in computational pyrolysis, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{CPS:Lautenberger,
  author = {C. Lautenberger},
  title = {{Gpyro: a three dimensional generalized pyrolysis model, First MaCFP Workshop}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Lautenberger:2014,
  author       = {C. Lautenberger},
  title        = {{Gpyro3D}: a three dimensional generalized pyrolysis model},
  journal      = {International Association for Fire Safety Science, Proc. Eleventh Intl. Symposium (2014) 193-207},
  volume       = {11},
  pages        = {193-207},
}

@ARTICLE{Stoliarov:2014,
  author       = {S. I. Stoliarov and I. T. Leventon and R. E. Lyon},
  title        = {Two-dimensional model of burning for pyrolyzable solids},
  year         = {2014},
  journal      = {Fire Mater.},
  volume       = {38},
  pages        = {391-408},
}

@ARTICLE{Stoliarov:2015,
  author       = {S. I. Stoliarov and J. Li},
  title        = {Parameterization and validation of pyrolysis models for polymeric materials},
  year         = {2015},
  journal      = {Fire Technol.},
  volume       = {51},
  pages        = {1-13},
}

@ARTICLE{Rein:2013,
  author       = {N. Bal and G. Rein},
  title        = {Relevant model complexity for non-charring polymer pyrolysis},
  year         = {2013},
  journal      = {Fire Safety J.},
  volume       = {61},
  pages        = {36-44},
}

@ARTICLE{Rein:2015,
  author       = {N. Bal and G. Rein},
  title        = {On the effect of inverse modelling and compensation effects in computational pyrolysis for fire scenarios},
  year         = {2015},
  journal      = {Fire Safety J.},
  volume       = {72},
  pages        = {68-76},
}

@ARTICLE{Chaos:2011,
  author={M. Chaos and M. M. Khan and N. Krishnamoorthy and J. L. de Ris and S. B. Dorofeev},
  title={Evaluation of optimization schemes and determination of solid fuel properties for CFD fire models using bench-scale pyrolysis tests},
  journal={Proc. Combust. Inst.},
  volume={33},
  pages={2599-2606},
  year={2011},
}

@ARTICLE{NFPA,
  author = {{NFPA 286}},
  title = {{Standard methods of fire tests for evaluating contribution of wall and ceiling interior finish to room fire growth}},
  journal = {National Fire Protection Association, Quincy, MA, (2006)},
}

@ARTICLE{EN,
  author = {{EN 13823}},
  title = {{Reaction to fire tests for building products -- building products excluding floorings exposed to the thermal attack by a single burning item}},
  journal = {CSN EN Standard (2014)},
}

@ARTICLE{ISO,
  author = {{ISO 5658-2:2006}},
  title = {{Reaction to fire tests -- Spread of flame -- Part 2: Lateral spread on building and transport products in vertical configuration}},
}

@ARTICLE{Blanchat:2001,
  author = {T.K. Blanchat},
  title = {{Characterization of the air source and plume source at FLAME}},
  journal = {Sandia National Laboratories, Report SAND01-2227 (2001)},
  }

  @ARTICLE{Case1_SIM_IRSN,
  author = {G. Boyer},
  title = {{First MaCFP Workshop -- Case 1}},
  journal = {Lund University, Sweden (2017)},
}

  @ARTICLE{Case1_SIM_NIST,
  author = {R. McDermott},
  title = {{First MaCFP Workshop -- Case 1}},
  journal = {Lund University, Sweden (2017)},
}

  @ARTICLE{Case1_SIM_UGent,
  author = {G. Maragkos},
  title = {{First MaCFP Workshop -- Case 1}},
  journal = {Lund University, Sweden (2017)},
}

@ARTICLE{Maragkos:2013,
  author       = { G. Maragkos and P. Rauwoens and Y. Wang and B. Merci},
  title        = {Large eddy simulations of the flow in the near-field region of a turbulent buoyant helium plume},
  year         = {2013},
  journal      = {Flow Turbul. Combust.},
  volume       = {90},
  pages        = {511-543},
}

repository: MaCFP/macfp-db

repo_name: MaCFP/macfp-db

gha_language: TeX


text:
# Ensures that the specified C++ compiler meets our version requirements.
macro (check_compiler_version version)
  message(STATUS "Using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
  if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${version})
    message(FATAL_ERROR "${CMAKE_CXX_COMPILER_VERSION} >= ${version} required")
  endif ()
endmacro ()

extension: cmake


text:
require recipes-samples/images/rpb-console-image.bb

SUMMARY = "Basic console image for LKFT"

IMAGE_ROOTFS_EXTRA_SPACE = "1048576"

# Add 512 MB on X15; more than that might exceed the
# userdata partition capacity.
IMAGE_ROOTFS_EXTRA_SPACE_am57xx-evm = "524288"

CORE_IMAGE_BASE_INSTALL += " \
    packagegroup-rpb-tests \
    packagegroup-rpb-lkft \
    "

repository: roxell/meta-lkft

repo_name: roxell/meta-lkft


text:
DESCRIPTION = "API for Linux kernel LIO SCSI target"
HOMEPAGE = "https://pypi.org"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://README.md;md5=dff2db8be7507553a3a7b0dd6423653d"
DEPENDS = "python"

SRC_URI = "https://files.pythonhosted.org/packages/15/33/879f9e2e97c1cfca0f0d67985769b6ee566ca37abf7c4333d99e9794a1cb/rtslib-fb-${PV}.tar.gz"
SRC_URI[md5sum] = "52780bd422740431d75d6c5e34ff2d54"
SRC_URI[sha256sum] = "9335152ff72afd2b384ba3d577beb939bcf43c2f04dfdcd0e31b2a204f91f674"

S = "${WORKDIR}/rtslib-fb-${PV}"

inherit setuptools

RDEPENDS_${PN} += "python-lang python-shell python-io"

repository: Mellanox/meta-bluefield

repo_name: Mellanox/meta-bluefield


text:
package bsclient

import (
	"errors"
	"net/url"
	"strconv"
)

var (
	errNoEpisodesFound = errors.New("no episodes found")
)

// Episode represents the episode data returned by the betaserie API
type Episode struct {
	ID        int    `json:"id"`
	ThetvdbID int    `json:"thetvdb_id"`
	YoutubeID string `json:"youtube_id"`
	Title     string `json:"title"`
	Season    int    `json:"season"`
	Episode   int    `json:"episode"`
	Show      struct {
		ID        int    `json:"id"`
		ThetvdbID int    `json:"thetvdb_id"`
		Title     string `json:"title"`
	} `json:"show"`
	Code        string `json:"code"`
	Global      int    `json:"global"`
	Special     int    `json:"special"`
	Description string `json:"description"`
	Date        string `json:"date"`
	Note        struct {
		Total int     `json:"total"`
		Mean  float32 `json:"mean"`
		User  int     `json:"user"`
	} `json:"note"`
	User struct {
		Seen       bool `json:"seen"`
		Downloaded bool `json:"downloaded"`
	} `json:"user"`
	Comments  string        `json:"comments"`
	Subtitles []interface{} `json:"subtitles"`
}

type episodes struct {
	Episodes []Episode     `json:"episodes"`
	Errors   []interface{} `json:"errors"`
}

func (bs *BetaSeries) doGetEpisodes(u *url.URL, usedAPI string) ([]Episode, error) {
	resp, err := bs.do("GET", u)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()

	data := &episodes{}
	err = bs.decode(data, resp, usedAPI, u.RawQuery)
	if err != nil {
		return nil, err
	}

	if len(data.Episodes) < 1 {
		return nil, errNoEpisodesFound
	}

	return data.Episodes, nil
}

// PlanningGeneral returns a slice of episodes found in [date-before, date+after] timeline.
// Note: the 'date' input must be in YYYY-MM-JJ format
func (bs *BetaSeries) PlanningGeneral(date string, before, after int) ([]Episode, error) {
	usedAPI := "/planning/general"
	u, err := url.Parse(bs.baseURL + usedAPI)
	if err != nil {
		return nil, ErrURLParsing
	}
	q := u.Query()
	q.Set("date", date)
	q.Set("before", strconv.Itoa(before))
	q.Set("after", strconv.Itoa(after))
	u.RawQuery = q.Encode()
	return bs.doGetEpisodes(u, usedAPI)
}

// PlanningIncoming returns a slice of the first episodes of each tv show
// that are about to be broacasted.
func (bs *BetaSeries) PlanningIncoming() ([]Episode, error) {
	usedAPI := "/planning/incoming"
	u, err := url.Parse(bs.baseURL + usedAPI)
	if err != nil {
		return nil, ErrURLParsing
	}
	return bs.doGetEpisodes(u, usedAPI)
}

// PlanningMember returns a slice of episodes of the member 'id'.
// If 'id' is not set to a proper member it returns an error.
// If 'id' is strictly negative, the returned episodes
// are the ones of the identified member doing the request.
// The parameter 'unseen' filters not seen episodes.
// The parameter 'month' filters episodes of the given month with the format YYYY-MM.
// Note: the 'month' value can be the string "now".
func (bs *BetaSeries) PlanningMember(id int, unseen bool, month string) ([]Episode, error) {
	usedAPI := "/planning/member"
	u, err := url.Parse(bs.baseURL + usedAPI)
	if err != nil {
		return nil, ErrURLParsing
	}
	q := u.Query()
	if id >= 0 {
		q.Set("id", strconv.Itoa(id))
	}
	q.Set("unseen", strconv.FormatBool(unseen))
	q.Set("month", month)
	u.RawQuery = q.Encode()
	return bs.doGetEpisodes(u, usedAPI)
}

repository: dns-gh/bs-client

repo_name: dns-gh/bs-client


text:
#ifndef LOGGER_H
#define LOGGER_H

#include <QObject>
#include <QTextCharFormat>

void gfLog(QString text);
void gfError(QString text);
void gfWarning(QString text);
void gfSuccess(QString text);
void gfInfo(QString text);

class Logger : public QObject
{
    Q_OBJECT
public:
    explicit Logger(QObject *parent = 0);
    static Logger* instance;
    void emitTextLogged(QString text, QTextCharFormat format);

    QList<  QPair<QString,QTextCharFormat>  > entries;

signals:
    void LogText(QString text, QTextCharFormat format);

public slots:
    void gflog(QString text);
    void gfError(QString text);
    void gfWarning(QString text);
    void gfSuccess(QString text);
    void gfInfo(QString text);

public slots:
};

#endif // LOGGER_H

repository: cothong/SBSARManager

repo_name: cothong/SBSARManager

extension: h


text:
@article{__2018,
 abstract = {Vessel-like structures can be represented by higher order curves. Such curvature and torsion are useful properties for analysis of coronary artery. With conventional methods for coronary artery segmentation in X-ray and CT images, accuracy can be improved by clustering and merging using geometric properties. Broken or disconnected vessels due to the plaques can be merged into one by the proposed method.},
 author = {한경훈 and 전병환 and 홍영택 and 심학준 and 장혁재},
 file = {Snapshot:files/16/articleDetail.html:text/html},
 journal = {대한전자공학회 학술대회},
 language = {ko},
 month = {June},
 pages = {617--620},
 title = {기하학관계 분석을 통한 X-ray/CT영상 기반 혈관 조각 병합기법},
 url = {http://www.dbpia.co.kr/journal/articleDetail?nodeId=NODE07515813},
 urldate = {2020-03-03},
 year = {2018}
}

repository: byunghwanjeon/academic-kickstart

repo_name: byunghwanjeon/academic-kickstart


text:
require postfix.inc

SRC_URI += "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \
           file://makedefs.patch \
           file://install.patch \
           file://main.cf \
           file://postfix \
           file://internal_recipient \
           file://postfix.service \
           file://aliasesdb \
           file://check_hostname.sh \
           file://0001-makedefs-Use-native-compiler-to-build-makedefs.test.patch \
           file://postfix-install.patch \
           file://icu-config.patch \
           file://0001-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \
           file://0001-fix-build-with-glibc-2.34.patch \
           "
SRC_URI[sha256sum] = "1759e953bf7baccb533899845c17753bf57a99ebac9c21717626262966a122f9"
UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.4(\.\d+)+).tar.gz"

repository: ni/meta-openembedded

repo_name: ni/meta-openembedded

branch_name: refs/heads/nilrt/master/hardknott

gha_language: BitBake


text:
# TODO: parameterize for reuse
add_custom_target(coverage_report
  COMMAND lcov --directory src/CMakeFiles/spud.dir --capture --output-file spudlib.info
  COMMAND genhtml --output-directory lcov spudlib.info
  COMMAND echo "Coverage report in: file://${CMAKE_BINARY_DIR}/lcov/index.html"
)

repository: palerikm/icebox

repo_name: palerikm/icebox

gha_language: CMake


text:
@article{ad-wood-2003,
  author    = {Christopher Anderson and Sophia Drossopoulou},
  title     = {{BabyJ}: from Object Based to Class Based Programming via Types},
  journal   = {{WOOD}},
  volume    = {82},
  number    = {7},
  pages     = {53--81},
  year      = {2003}
}

@softwareversion{gf-tag-sound-repo,
  title={tag-sound},
  author={Ben Greenman and Matthias Felleisen},
  swhid={swh:1:dir:cd0b0abeee707e57cd699e2e2ebd075da8ebf1f7;origin=https://github.com/nuprl/tag-sound;visit=swh:1:snp:7967bc0abee8bf3bfffb9252207a07b73538525a;anchor=swh:1:rev:4cc09ca228947a99c8f4ac45eefb76e96ee96e53},
  repository={https://github.com/nuprl/tag-sound},
  version={4cc09ca},
  date={2020}
}

@Artifactsoftware{gf-tag-sound-repo-2,
  title={tag-sound 2},
  author={Ben Greenman and Matthias Felleisen},
  swhid={swh:1:dir:cd0b0abeee707e57cd699e2e2ebd075da8ebf1f7;origin=https://github.com/nuprl/tag-sound;visit=swh:1:snp:7967bc0abee8bf3bfffb9252207a07b73538525a;anchor=swh:1:rev:4cc09ca228947a99c8f4ac45eefb76e96ee96e53},
  repository={https://github.com/nuprl/tag-sound},
  version={4cc09ca},
  date={2020}
}

repository: rdicosmo/acmart-biblatex

repo_name: rdicosmo/acmart-biblatex

gha_license_id: NOASSERTION


text:
// Code generated by go-swagger; DO NOT EDIT.

package tourism

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"fmt"
	"io"

	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"

	"github.com/minchao/go-ptx/tourism/v2/models"
)

// TaiwanTripBusAPISchedule2265Reader is a Reader for the TaiwanTripBusAPISchedule2265 structure.
type TaiwanTripBusAPISchedule2265Reader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *TaiwanTripBusAPISchedule2265Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewTaiwanTripBusAPISchedule2265OK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 299:
		result := NewTaiwanTripBusAPISchedule2265Status299()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}

// NewTaiwanTripBusAPISchedule2265OK creates a TaiwanTripBusAPISchedule2265OK with default headers values
func NewTaiwanTripBusAPISchedule2265OK() *TaiwanTripBusAPISchedule2265OK {
	return &TaiwanTripBusAPISchedule2265OK{}
}

/* TaiwanTripBusAPISchedule2265OK describes a response with status code 200, with default header values.

Success
*/
type TaiwanTripBusAPISchedule2265OK struct {
	Payload []*models.PTXServiceDTOTourismSpecificationV2BusSchedule
}

func (o *TaiwanTripBusAPISchedule2265OK) Error() string {
	return fmt.Sprintf("[GET /v2/Tourism/Bus/Schedule/TaiwanTrip][%d] taiwanTripBusApiSchedule2265OK  %+v", 200, o.Payload)
}
func (o *TaiwanTripBusAPISchedule2265OK) GetPayload() []*models.PTXServiceDTOTourismSpecificationV2BusSchedule {
	return o.Payload
}

func (o *TaiwanTripBusAPISchedule2265OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	// response payload
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewTaiwanTripBusAPISchedule2265Status299 creates a TaiwanTripBusAPISchedule2265Status299 with default headers values
func NewTaiwanTripBusAPISchedule2265Status299() *TaiwanTripBusAPISchedule2265Status299 {
	return &TaiwanTripBusAPISchedule2265Status299{}
}

/* TaiwanTripBusAPISchedule2265Status299 describes a response with status code 299, with default header values.

加入參數'?health=true'即可查詢此API服務的健康狀態
*/
type TaiwanTripBusAPISchedule2265Status299 struct {
	Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}

func (o *TaiwanTripBusAPISchedule2265Status299) Error() string {
	return fmt.Sprintf("[GET /v2/Tourism/Bus/Schedule/TaiwanTrip][%d] taiwanTripBusApiSchedule2265Status299  %+v", 299, o.Payload)
}
func (o *TaiwanTripBusAPISchedule2265Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth {
	return o.Payload
}

func (o *TaiwanTripBusAPISchedule2265Status299) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

repository: minchao/go-ptx

repo_name: minchao/go-ptx


text:
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)

#pragma once

#include <dxgiformat.h>         // maintain format number compatibility with DXGI whenever possible (note that dxgiformat.h is very simple and has no dependencies!)

namespace Utility { namespace ImpliedTyping { class TypeDesc; }}

namespace RenderCore { namespace Metal_DX11
{
    /// Container for NativeFormat::Enum
    namespace NativeFormat
    {
        enum Enum
        {
            Unknown = 0,

            #undef _EXP
            #define _EXP(X, Y, Z, U)    X##_##Y = DXGI_FORMAT_##X##_##Y,
                #include "../../Metal/Detail/DXGICompatibleFormats.h"
            #undef _EXP

            R24G8_TYPELESS = DXGI_FORMAT_R24G8_TYPELESS,
            D24_UNORM_S8_UINT = DXGI_FORMAT_D24_UNORM_S8_UINT,
            R24_UNORM_X8_TYPELESS = DXGI_FORMAT_R24_UNORM_X8_TYPELESS,
            X24_TYPELESS_G8_UINT = DXGI_FORMAT_X24_TYPELESS_G8_UINT,

            Matrix4x4 = 150,
            Matrix3x4 = 151
        };
    }

    /// Container for FormatCompressionType::Enum
    namespace FormatCompressionType
    {
        enum Enum
        {
            None, BlockCompression
        };
    }

    /// Container for FormatComponents::Enum
    namespace FormatComponents
    {
        enum Enum
        {
            Unknown,
            Alpha,
            Luminance, LuminanceAlpha,
            RGB, RGBAlpha,
            RG, Depth, RGBE
        };
    }

    /// Container for FormatComponentType::Enum
    namespace FormatComponentType
    {
        enum Enum
        {
            Typeless,
            Float, UInt, SInt,
            UNorm, SNorm, UNorm_SRGB,
            Exponential,
            UnsignedFloat16, SignedFloat16
        };
    }

    auto        GetCompressionType(NativeFormat::Enum format) -> FormatCompressionType::Enum;
    auto        GetComponents(NativeFormat::Enum format) -> FormatComponents::Enum;
    auto        GetComponentType(NativeFormat::Enum format) -> FormatComponentType::Enum;
    unsigned    BitsPerPixel(NativeFormat::Enum format);
    unsigned    GetComponentPrecision(NativeFormat::Enum format);
    unsigned    GetDecompressedComponentPrecision(NativeFormat::Enum format);
    unsigned    GetComponentCount(FormatComponents::Enum components);

    NativeFormat::Enum FindFormat(
        FormatCompressionType::Enum compression,
        FormatComponents::Enum components,
        FormatComponentType::Enum componentType,
        unsigned precision);

    NativeFormat::Enum      AsSRGBFormat(NativeFormat::Enum inputFormat);
    NativeFormat::Enum      AsLinearFormat(NativeFormat::Enum inputFormat);
    NativeFormat::Enum      AsTypelessFormat(NativeFormat::Enum inputFormat);
    bool                    HasLinearAndSRGBFormats(NativeFormat::Enum inputFormat);

    inline DXGI_FORMAT          AsDXGIFormat(NativeFormat::Enum format) { return DXGI_FORMAT(format); }
    inline NativeFormat::Enum   AsNativeFormat(DXGI_FORMAT format) { return NativeFormat::Enum(format); }

    namespace ShaderNormalizationMode
    {
        enum Enum
        {
            Integer, Normalized, Float
        };
    }

    NativeFormat::Enum      AsNativeFormat(
        const Utility::ImpliedTyping::TypeDesc& type,
        ShaderNormalizationMode::Enum norm = ShaderNormalizationMode::Integer);

    const char* AsString(NativeFormat::Enum);
    NativeFormat::Enum AsNativeFormat(const char name[]);
}}

repository: xlgames-inc/XLE

repo_name: xlgames-inc/XLE


text:
package call

import (
	"encoding/json"
	"reflect"
	"testing"
)

func TestInitModule(t *testing.T) {

	s := &InitModule{
		Name:   "drm",
		Len:    491520,
		Params: "edid_firmware='1'",
	}

	j, err := json.Marshal(s)
	if err != nil {
		t.Fatal(err)
	}

	var i InitModule
	if err = json.Unmarshal(j, &i); err != nil {
		t.Fatal(err)
	}

	if !reflect.DeepEqual(s.Arguments(), i.Arguments()) {
		t.Errorf("Was expecting %v, but got %v\n", s.Arguments(), i.Arguments())
	}
}

repository: andrewalexander/swoll

repo_name: andrewalexander/swoll


text:
@inproceedings{Peschel2017a,
 address = {Freiburg, Germany},
 author = {Peschel, Johannes and Breuer, Joep and Schmehl, Roland},
 booktitle = {Book of Abstracts of the International Airborne Wind Energy Conference (AWEC 2017)},
 date = {2017-10-05/2017-10-06},
 editor = {Diehl, Moritz and Leuthold, Rachel and Schmehl, Roland},
 pages = {47--51},
 publisher = {University of Freiburg | Delft University of Technology},
 title = {Kitepower - Commercializing a 100 kW Mobile Wind Energy System},
 url = {http://resolver.tudelft.nl/uuid:9e9a6bdb-f5f4-4868-bed6-f25dc5ee42f0},
 year = {2017}
}


text:
(function($) {
  "use strict";

    //Author scripts
    $(document).ready( function () {

      /*-------------------------------------------------*/
      /* =  preloader
      /*-------------------------------------------------*/
      $(window).load(function() {
        $("#preloader").fadeOut("slow");
      });

     $('[data-toggle="tooltip"]').tooltip();

      /*-------------------------------------------------*/
    /* =  animate numbers
    /*-------------------------------------------------*/
    $('.fullWidthSection').one('inview', function(event, isInView, visiblePartX, visiblePartY){
      $('#lines1').animateNumber({
        number: 226,
        easing: 'easeInQuad',

      },2000);

      $('#lines2').animateNumber({ number: 356},2000);

      $('#lines3').animateNumber({ number: 195},2000);

      $('#lines4').animateNumber({ number: 583},1000);

      $('.fullWidthSection').addClass('fadeInUp');
    });

    /*-------------------------------------------------*/
    /* =  animate objects
    /*-------------------------------------------------*/

    var $fadeInUp = $('');
    var $fadeInLeft = $('');
    var $fadeInRight = $('');
    var $fadeIn = $('.subheader-section, .about-section, .filter-section, .heading-slogan-section, .video-section, .pricing-section, .customers-section, .follow-section, .team-section, .blog-section, .contact-section, .map, .theme, .social');

    // InView - fadeIn

    if ($(window).width() >= 1024) {
      $fadeIn.css('opacity', 0);
      $fadeInUp.css('opacity', 0);
      $fadeInLeft.css('opacity', 0);
      $fadeInRight.css('opacity', 0);

      $fadeIn.one('inview', function(event, visible) {
        if (visible) { $(this).addClass('animated fadeIn'); }
      });

      // InView - fadeInDown
      $fadeInUp.one('inview', function(event, visible) {
        if (visible) { $(this).addClass('animated fadeInUp'); }
      });
      // InView - fadeInLeft
      $fadeInLeft.one('inview', function(event, visible) {
        if (visible) { $(this).addClass('animated fadeInLeft'); }
      });
      // InView - fadeInRight
      $fadeInRight.one('inview', function(event, visible) {
        if (visible) { $(this).addClass('animated fadeInRight'); }
      });

    }else {

      $fadeIn.css('opacity', 1);
      $fadeInUp.css('opacity', 1);
      $fadeInLeft.css('opacity', 1);
      $fadeInRight.css('opacity', 1);

    }

    $(window).on('resize', function() {
      var screen_size = $(window).width();

      if (screen_size >= 1024) {

        $fadeIn.css('opacity', 0);
        $fadeInUp.css('opacity', 0);
        $fadeInLeft.css('opacity', 0);
        $fadeInRight.css('opacity', 0);

        $fadeIn.one('inview', function(event, visible) {
          if (visible) { $(this).addClass('animated fadeIn'); }
        });

        // InView - fadeInDown
        $fadeInUp.one('inview', function(event, visible) {
          if (visible) { $(this).addClass('animated fadeInUp'); }
        });
        // InView - fadeInLeft
        $fadeInLeft.one('inview', function(event, visible) {
          if (visible) { $(this).addClass('animated fadeInLeft'); }
        });
        // InView - fadeInRight
        $fadeInRight.one('inview', function(event, visible) {
          if (visible) { $(this).addClass('animated fadeInRight'); }
        });

      }else {

        $fadeIn.css('opacity', 1);
        $fadeInUp.css('opacity', 1);
        $fadeInLeft.css('opacity', 1);
        $fadeInRight.css('opacity', 1);

      }
    }).trigger('resize');

     $('.slickSlider').slick({
      autoplay: true,
      autoplaySpeed: 4000,
      fade : true,
     });
     $('.c_content').eq($('.slick-active').index()).addClass('animated fadeInDown');

    var $grid = $('.grid').masonry({
      columnWidth: 160,
      itemSelector: '.grid-item'
    });

  $('.prepend-button').on( 'click', function() {
    var elems = [ getItemElement(), getItemElement(), getItemElement(), getItemElement() ];
    // make jQuery object
    var $elems = $( elems );
    $grid.prepend( $elems ).masonry( 'prepended', $elems );
  });

// create

function getItemElement() {
  var elem = document.createElement('div');
  var wRand = Math.random();
  var hRand = Math.random();
  var widthClass = wRand > 0.8 ? 'grid-item--width3' : wRand > 0.6 ? 'grid-item--width2' : '';
  var heightClass = hRand > 0.85 ? 'grid-item--height4' : hRand > 0.6 ? 'grid-item--height3' : hRand > 0.35 ? 'grid-item--height2' : '';
  elem.className = 'grid-item ' + widthClass + ' ' + heightClass;
  return elem;
}

	    /*-------------------------------------------------*/
	    /* =  scroll to top, scroll to specific anchor
	    /*-------------------------------------------------*/
	    var to_top_icon = $('#top');
	    $(to_top_icon).hide();
	        $(window).scroll(function(){
	        if ($(this).scrollTop() > 150 ) {
	        	to_top_icon.fadeIn();
	        } else {
	        	to_top_icon.fadeOut();
	        }
	    });
	    $("#top").on("click", function() {
		  $("html, body").animate({ scrollTop: 0 }, "slow");
		  return false;
		});

        /*-------------------------------------------------*/
	    /* =  single page nav
	    /*-------------------------------------------------*/

	    $(".metanav").sticky({topSpacing:0});
	    $('.metanav, .item_info, .basic, .silver, .gold').onePageNav({
		    currentClass: 'current',
		    changeHash: false,
		    scrollSpeed: 750,
		    scrollThreshold: 0.5,
		    filter: '',
		    easing: 'swing',
		    begin: function() {
		        //I get fired when the animation is starting
		    },
		    end: function() {
		        //I get fired when the animation is ending
		    },
		    scrollChange: function($currentListItem) {
		        //I get fired when you enter a section and I pass the list item of the section
		    }
		});

        //owl carousel.
		$("#innerCarousel").owlCarousel({
			items : 3,
			itemsDesktop : [1199, 3],
			itemsDesktopSmall : [979, 2],
			autoPlay : true,
			itemsTabletSmall : true,
            itemsMobile : [767, 1],
			stopOnHover : true,
			margin: 20,
            autoHeight : true,
		});

		$("#packageCarousel").owlCarousel({
			items : 3,
			itemsDesktop : [1199, 3],
			itemsDesktopSmall : [979, 2],
			autoPlay : true,
			itemsTabletSmall : true,
            itemsMobile : [479, 1],
			stopOnHover : true,
			margin: 20,
            autoHeight : true,
            navigation: true
		});

        // Caption show/hide
		$('.owl-item .caption').hide();

		$('.owl-item').hover(function(){
		 $(this).find('.caption').slideDown('fast');
		},function(){
		$(this).find('.caption').slideUp('fast');
		});

		//select picker
		$('.selectpicker').selectpicker({
		  size: 4
		});

        //filtering
		$('#filteringItems').mixItUp();

    });

    $(window).load(function(){
	    /*-------------------------------------------------*/
	    /* =  custom scrollbar calling
	    /*-------------------------------------------------*/
        $("#img_scroll").mCustomScrollbar({
			axis:"x",
			theme:"rounded-dark",
			scrollbarPosition:"outside",
			autoExpandScrollbar:false,
			advanced:{autoExpandHorizontalScroll:true}
		});
    });

  $(document).ready(function () {
  	    function smalDevices(){
			  if ($(window).width() < 992) {

			  } else {
			    /*-------------------------------------------------*/
			    /* =  bootstrap menu show on hover
			    /*-------------------------------------------------*/
		        $('ul.nav li.dropdown').hover(function(){
			       $(this).children('ul.dropdown-menu').fadeIn("medium");
			       }, function(){
			       $(this).children('ul.dropdown-menu').fadeOut("medium");
			    });

			  }
			}
	  //on load
	  smalDevices();

	  //on resize
	  $(window).resize(function(){
	    smalDevices();
	});

    /*-------------------------------------------------*/
    /* =  add text in button
    /*-------------------------------------------------*/
    $('#filters .filter').on('click', function(){
        var text = $(this).children('i').html();
        $('.filter-section .select-cat').html(text);
    });

    /*-------------------------------------------------*/
    /* =  Close navbar on click
    /*-------------------------------------------------*/
    $('.select-cat').on('click', function(){
      $(".filters").toggleClass('active');
    });
    $('.filter').on('click', function(){
      $('.filters').toggleClass('active');
    });

    /*-------------------------------------------------*/
    /* =  Close navbar on click
    /*-------------------------------------------------*/
    $(".bars").on("click", function() {
      $("nav").toggleClass('active');
      $("html").toggleClass('active-sidebar');
      $(".mobile-overlay").toggleClass('active');
    });

    $('header nav a').on('click', function(){
      $('nav').removeClass('active');
      $("html").removeClass('active-sidebar');
      $(".mobile-overlay").removeClass('active');
    });

    /*-------------------------------------------------*/
    /* =  img to background
    /*-------------------------------------------------*/
    $(".white-popup img , .isotope-item >a >img").each(function(i, elem) {
      var img = $(elem);
      var div = $("
").css({
        background: "url(" + img.attr("src") + ") no-repeat",
        width: img.width() + "px",
        height: img.height() + "px"
      });
      img.replaceWith(div);
      $(div).addClass('browse-images')
    });

    /*-------------------------------------------------*/
    /* =  Izotope
    /*-------------------------------------------------*/
    $.Isotope.prototype._getCenteredMasonryColumns = function() {
      this.width = this.element.width();

      var parentWidth = this.element.parent().width();

                    // i.e. options.masonry && options.masonry.columnWidth
      var colW = this.options.masonry && this.options.masonry.columnWidth ||
                    // or use the size of the first item
                    this.$filteredAtoms.outerWidth(true) ||
                    // if there's no items, use size of container
                    parentWidth;

      var cols = Math.floor( parentWidth / colW );
      cols = Math.max( cols, 1 );

      // i.e. this.masonry.cols = ....
      this.masonry.cols = cols;
      // i.e. this.masonry.columnWidth = ...
      this.masonry.columnWidth = colW;
    };

    $.Isotope.prototype._masonryReset = function() {
      // layout-specific props
      this.masonry = {};
      // FIXME shouldn't have to call this again
      this._getCenteredMasonryColumns();
      var i = this.masonry.cols;
      this.masonry.colYs = [];
      while (i--) {
        this.masonry.colYs.push( 0 );
      }
    };

    $.Isotope.prototype._masonryResizeChanged = function() {
      var prevColCount = this.masonry.cols;
      // get updated colCount
      this._getCenteredMasonryColumns();
      return ( this.masonry.cols !== prevColCount );
    };

    $.Isotope.prototype._masonryGetContainerSize = function() {
      var unusedCols = 0,
          i = this.masonry.cols;
      // count unused columns
      while ( --i ) {
        if ( this.masonry.colYs[i] !== 0 ) {
          break;
        }
        unusedCols++;
      }

      return {
            height : Math.max.apply( Math, this.masonry.colYs ),
            // fit container to columns that have been used;
            width : (this.masonry.cols - unusedCols) * this.masonry.columnWidth
          };
    };
     $('#filter_content').isotope();

    // cache filter_content
    var $filter_content = $('#filter_content');
    // initialize isotope
    $filter_content.isotope({
      animationOptions: {
         duration: 750,
         queue: false
       }
    });
    // filter items when filter link is clicked
    $('.filters a').click(function(){
      var selector = $(this).attr('data-filter');
      $filter_content.isotope({ filter: selector });
      return false;
    });

    /*-------------------------------------------------*/
    /* =  video
    /*-------------------------------------------------*/
    $(function(){
      if (self.location.href == top.location.href){
      }

      $('#bgndVideo').on("YTPStart",function(e){
         var currentTime = e.time;
         $("#pause").show();
         $("#play").hide();
         $('.mbYTP_wrapper').removeClass('active');

      });

      $('#bgndVideo').on("YTPUnstarted",function(e){
         var currentTime = e.time;
         $("#pause").hide();
         $("#play").show();
         $('.mbYTP_wrapper').addClass('active');
      });
      $('#bgndVideo').on("YTPPause",function(e){
         var currentTime = e.time;
         $("#pause").hide();
         $("#play").show();
      });
      //debug functions
      $("#bgndVideo").on("YTPStart", function(){
          $("#eventListener").html("YTPStart");
          $("#eventListener").append(" :: (state= "+ $("#bgndVideo").getPlayer().getPlayerState()+")");
          $("#eventListener").append(" :: (quality= "+ $("#bgndVideo").getPlayer().getPlaybackQuality()+")");
      });
      $("#bgndVideo").on("YTPLoop", function(e){
          $("#eventListener").html("YTPLoop");
          $("#eventListener").append(" :: (state= "+ $("#bgndVideo").getPlayer().getPlayerState()+")");
          $("#eventListener").append(" :: "+ e.counter);
      });
      $("#bgndVideo").on("YTPEnd", function(){
          $("#eventListener").html("YTPEnd");
          $("#eventListener").append(" :: (state= "+ $("#bgndVideo").getPlayer().getPlayerState()+")");
          console.debug("YTPEnd")
      });
      $("#bgndVideo").on("YTPPause", function(){
          $("#eventListener").html("YTPPause");
          $("#eventListener").append(" :: (state= "+ $("#bgndVideo").getPlayer().getPlayerState()+")");
      });
      $("#bgndVideo").on("YTPBuffering", function(){
          $("#eventListener").html("YTPBuffering");
          $("#eventListener").append(" :: (state= "+ $("#bgndVideo").getPlayer().getPlayerState()+")");
      });

    });

	/*-------------------------------------------------*/
    /* =  magnific popup
    /*-------------------------------------------------*/
    var close_icon = '<svg fill="currentColor" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" \
         viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve"> \
      <path fill-rule="evenodd" clip-rule="evenodd" d="M7.3,42.7c-9.8-9.8-9.8-25.6,0-35.4c9.8-9.8,25.6-9.8,35.4,0 \
        c9.8,9.8,9.8,25.6,0,35.4C32.9,52.4,17.1,52.4,7.3,42.7z M41.3,8.7c-9-9-23.5-9-32.5,0c-9,9-9,23.5,0,32.5c9,9,23.5,9,32.5,0 \
        C50.2,32.3,50.2,17.7,41.3,8.7z"/> \
      <path fill-rule="evenodd" clip-rule="evenodd" d="M32.5,16l1.5,1.5L17.5,34L16,32.5L32.5,16z"/> \
      <path fill-rule="evenodd" clip-rule="evenodd" d="M34,32.5L32.5,34L16,17.5l1.5-1.5L34,32.5z"/> \
      </svg>';

    $('.popup-modal').magnificPopup({
      type:'inline',
      midClick: true,
      removalDelay: 50,
      callbacks: {
        open: function() {
          $('.mfp-close').empty().append(close_icon);
        },
        beforeOpen: function() {
          // just a hack that adds mfp-anim class to markup
           this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
           this.st.mainClass = this.st.el.attr('data-effect');
        }
      }
    });

    $('.mfp-close').magnificPopup({
      mainClass: 'mfp-with-fade',
      removalDelay: 500, //delay removal by X to allow out-animation
      callbacks: {
        beforeClose: function() {
            this.content.addClass('hinge');
        },
        close: function() {
            this.content.removeClass('hinge');
        }
      },
      midClick: true
    });

    $('.popup-gallery').magnificPopup({
      delegate: 'a',
      type: 'image',
      removalDelay: 500,
      tLoading: 'Loading image #%curr%...',
      mainClass: 'mfp-img-mobile',
      fixedContentPos: true,
      gallery: {
        enabled: true,
        navigateByImgClick: true,
        preload: [0,1] // Will preload 0 - before current, and 1 after the current image
      },
      image: {
        tError: 'The image #%curr% could not be loaded.',
        titleSrc: function(item) {
          return item.el.attr('title') + '';
        }
      },
      callbacks: {
        open: function() {
          $('.mfp-close').empty().append(close_icon);
        },
        beforeOpen: function() {
          // just a hack that adds mfp-anim class to markup
           this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
           this.st.mainClass = this.st.el.attr('data-effect');
        }
      }
    });

    $('.popup-youtube, .popup-vimeo').magnificPopup({
      type: 'iframe',
      // mainClass: 'mfp-fade',
      removalDelay: 50,
      preloader: false,
      fixedContentPos: true,
      callbacks: {
        open: function() {
          $('.mfp-close').empty().append(close_icon);
        },
        beforeOpen: function() {
          // just a hack that adds mfp-anim class to markup
           this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
           this.st.mainClass = this.st.el.attr('data-effect');
        }
      }
    });

    $('.careerOpeningsWrap').hide();
    $('.c_o').on('click', function(event) {
    event.preventDefault();
	  $('.careerOpeningsWrap').animate({
	        'height': 'toggle'
	    }, 200); });

	});

})(jQuery);

repository: kaairasif/phpPhotoGallery

repo_name: kaairasif/phpPhotoGallery

gha_language: JavaScript

extension: js


text:
// +build ignore

package main

import (
	"fmt"
	"net/http"
	"os"

	"github.com/mazzegi/wasa/devutil"
)

func main() {
	handler, err := devutil.NewMakeServeHandler("", "dist", "lib.wasm")
	if err != nil {
		fmt.Println("ERROR: init make-serve-handler:", err)
		os.Exit(1)
	}
	http.Handle("/", handler)
	http.ListenAndServe(":8080", nil)
}

repository: mazzegi/wasa

repo_name: mazzegi/wasa