text:
/*
 * Copyright (c) 2019. The ango Authors. All rights reserved.
 * Use of this source code is governed by a MIT-style
 * license that can be found in the LICENSE file.
 */
package cmd

import (
	"fmt"
	"github.com/spf13/cobra"
	"os"
)

var (
	Buildstamp = ""
	Githash    = ""
	Goversion  = ""
	Version    = "latest"
	Config     string
	Tag        string
	Author     string
	Comments   string
	Verbose    bool
	Real       bool
	rootCmd    = &cobra.Command{
		Use:   "ango ",
		Short: "ango 是一个用于部署项目至生产环境的部署工具",
		Long: `基于golang开发的一个用于部署项目至生产环境的部署工具
目前仅使用playbook部署/回滚相关业务并使用钉钉的"webhook"通知, 文档查看: https://github.com/oldthreefeng/ango
run "ango list" to find playbook to deploy`,
		Run: func(cmd *cobra.Command, args []string) {
			VersionStr()
		},
	}
)

func init() {
	rootCmd.PersistentFlags().StringVarP(&Author, "author", "", "louis.hong", "author name for copyright attribution")
	rootCmd.PersistentFlags().BoolVarP(&Verbose, "verbose", "v", false, "verbose mode to see more detail infomation")
	rootCmd.PersistentFlags().StringVarP(&Tag, "tags", "t", "", "tags for the project version")
	rootCmd.PersistentFlags().StringVarP(&Config, "filename", "f", "", "ansible-playbook for yml config(requried)")
	rootCmd.PersistentFlags().StringVarP(&PathName, "path", "p", "", "ango basedir")
	projCmd.PersistentFlags().StringVarP(&Comments, "comments", "m", "", "add comments when send message to dingding")
	rollbackCmd.PersistentFlags().BoolVarP(&Real, "real", "", false, "really to rollback this version")
	rootCmd.AddCommand(projCmd)
	rootCmd.AddCommand(listCmd)
	rootCmd.AddCommand(rollbackCmd)
}

func Execute() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}

func VersionStr() {
	fmt.Printf(`ango is cli tools to running Ansible playbooks from Golang.
run "ango -h" get more help, more see https://github.com/oldthreefeng/ango
`)
	fmt.Printf("ango version :       %s\n", Version)
	fmt.Printf("Git Commit Hash:     %s\n", Githash)
	fmt.Printf("Build Time :         %s\n", Buildstamp)
	fmt.Printf("Go Version:          %s\n", Goversion)
	fmt.Printf("BuildBy :            %s\n", Author)
}

func init() {
	if PathName == "" {
		PathName = getDefaultPathname("AngoBaseDir", "/opt/playbook/")
	}
	if !FileExist(PathName) {
		err := os.Mkdir(PathName, 0770)
		if err != nil {
			fmt.Println("mkdir ango Base dir err")
			os.Exit(-1)
		}
	}
}

func getDefaultPathname(key, defVal string)  string {
	val, ex := os.LookupEnv(key)
	if !ex {
		return defVal
	}
	return val
}

repository: oldthreefeng/ango

repo_name: oldthreefeng/ango


text:
package honeywell

import (
	"context"
	"fmt"
	"strconv"
	"time"

	"github.com/markdaws/gohome/pkg/cmd"
	"github.com/markdaws/gohome/pkg/feature"
	"github.com/markdaws/gohome/pkg/gohome"

	honeywellExt "github.com/go-home-iot/honeywell"
)

type cmdBuilder struct {
	System *gohome.System
	Device *gohome.Device
}

func (b *cmdBuilder) Build(c cmd.Command) (*cmd.Func, error) {

	command, ok := c.(*cmd.FeatureSetAttrs)
	if !ok {
		return nil, fmt.Errorf("unsupported command type")
	}

	f := b.System.FeatureByID(command.FeatureID)
	if f == nil {
		return nil, fmt.Errorf("unknown feature ID: %s", command.FeatureID)
	}

	d := b.System.DeviceByID(f.DeviceID)
	if d == nil {
		return nil, fmt.Errorf("unknown device ID: %s", f.DeviceID)
	}

	switch f.Type {
	case feature.FTHeatZone:
		return &cmd.Func{
			Func: func() error {
				devID, err := strconv.Atoi(d.Address)
				if err != nil {
					return fmt.Errorf("honeywell device does not have valid device ID in the address field %s, feature ID: %s",
						d.Address, f.ID)
				}

				thermostat := honeywellExt.NewThermostat(devID)
				ctx := context.TODO()
				ctx, cancel := context.WithTimeout(ctx, time.Second*10)
				defer cancel()

				err = thermostat.Connect(ctx, d.Auth.Login, d.Auth.Password)
				if err != nil {
					return fmt.Errorf("failed to connect to honeywell thermostat: %s", err)
				}

				ctx = context.TODO()
				ctx, cancel = context.WithTimeout(ctx, time.Second*10)
				defer cancel()

				//TODO: Allow caller to specify a duration
				targetTemp := command.Attrs[feature.HeatZoneTargetTempLocalID]
				err = thermostat.HeatMode(ctx, float32(targetTemp.Value.(int32)), 0)

				// The honeywell portal takes some time to reflect the new value we set, so if we
				// query the site again it will still report the old value, since in events.go we are
				// just polling the value, we supress and updates from the extension for 30 seconds to
				// make sure we have the latest values
				if err == nil {
					gohome.SupressFeatureReporting(b.System, command.FeatureID, command.Attrs, time.Second*30)
				}

				return err
			},
		}, nil
	}

	return nil, fmt.Errorf("unsupported command type")
}

license: MIT

repository: fletterd/gohome

license_type: permissive

repo_name: fletterd/gohome

branch_name: refs/heads/master

extension: go


text:
@inproceedings{hofbauer_mvroi,
  author    = {Hofbauer, Markus and Kuhn, Christopher B. and Meng, Jiaming and Petrovic, Goran and Steinbach, Eckehard},
  booktitle = {2020 IEEE 23rd International Conference on Intelligent Transportation Systems (ITSC)},
  title     = {Multi-View Region of Interest Prediction for Autonomous Driving Using Semi-Supervised Labeling},
  year      = {2020},
  volume    = {},
  number    = {},
  pages     = {1-6},
  address   = {Rhodes, Greece},
  month     = {Sep},
  doi       = {10.1109/ITSC45102.2020.9294387}
}

gha_license_id: MIT

gha_language: Jupyter Notebook

extension: bib


text:
package v20190318preview

import (
	"context"
	"reflect"

	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

type ErrorDetailResponse struct {
	Code    string                `pulumi:"code"`
	Details []ErrorDetailResponse `pulumi:"details"`
	Message string                `pulumi:"message"`
	Target  *string               `pulumi:"target"`
}

type ErrorDetailResponseInput interface {
	pulumi.Input

	ToErrorDetailResponseOutput() ErrorDetailResponseOutput
	ToErrorDetailResponseOutputWithContext(context.Context) ErrorDetailResponseOutput
}

type ErrorDetailResponseArgs struct {
	Code    pulumi.StringInput            `pulumi:"code"`
	Details ErrorDetailResponseArrayInput `pulumi:"details"`
	Message pulumi.StringInput            `pulumi:"message"`
	Target  pulumi.StringPtrInput         `pulumi:"target"`
}

func (ErrorDetailResponseArgs) ElementType() reflect.Type {
	return reflect.TypeOf((*ErrorDetailResponse)(nil)).Elem()
}

func (i ErrorDetailResponseArgs) ToErrorDetailResponseOutput() ErrorDetailResponseOutput {
	return i.ToErrorDetailResponseOutputWithContext(context.Background())
}

func (i ErrorDetailResponseArgs) ToErrorDetailResponseOutputWithContext(ctx context.Context) ErrorDetailResponseOutput {
	return pulumi.ToOutputWithContext(ctx, i).(ErrorDetailResponseOutput)
}

type ErrorDetailResponseArrayInput interface {
	pulumi.Input

	ToErrorDetailResponseArrayOutput() ErrorDetailResponseArrayOutput
	ToErrorDetailResponseArrayOutputWithContext(context.Context) ErrorDetailResponseArrayOutput
}

type ErrorDetailResponseArray []ErrorDetailResponseInput

func (ErrorDetailResponseArray) ElementType() reflect.Type {
	return reflect.TypeOf((*[]ErrorDetailResponse)(nil)).Elem()
}

func (i ErrorDetailResponseArray) ToErrorDetailResponseArrayOutput() ErrorDetailResponseArrayOutput {
	return i.ToErrorDetailResponseArrayOutputWithContext(context.Background())
}

func (i ErrorDetailResponseArray) ToErrorDetailResponseArrayOutputWithContext(ctx context.Context) ErrorDetailResponseArrayOutput {
	return pulumi.ToOutputWithContext(ctx, i).(ErrorDetailResponseArrayOutput)
}

type ErrorDetailResponseOutput struct{ *pulumi.OutputState }

func (ErrorDetailResponseOutput) ElementType() reflect.Type {
	return reflect.TypeOf((*ErrorDetailResponse)(nil)).Elem()
}

func (o ErrorDetailResponseOutput) ToErrorDetailResponseOutput() ErrorDetailResponseOutput {
	return o
}

func (o ErrorDetailResponseOutput) ToErrorDetailResponseOutputWithContext(ctx context.Context) ErrorDetailResponseOutput {
	return o
}

func (o ErrorDetailResponseOutput) Code() pulumi.StringOutput {
	return o.ApplyT(func(v ErrorDetailResponse) string { return v.Code }).(pulumi.StringOutput)
}

func (o ErrorDetailResponseOutput) Details() ErrorDetailResponseArrayOutput {
	return o.ApplyT(func(v ErrorDetailResponse) []ErrorDetailResponse { return v.Details }).(ErrorDetailResponseArrayOutput)
}

func (o ErrorDetailResponseOutput) Message() pulumi.StringOutput {
	return o.ApplyT(func(v ErrorDetailResponse) string { return v.Message }).(pulumi.StringOutput)
}

func (o ErrorDetailResponseOutput) Target() pulumi.StringPtrOutput {
	return o.ApplyT(func(v ErrorDetailResponse) *string { return v.Target }).(pulumi.StringPtrOutput)
}

type ErrorDetailResponseArrayOutput struct{ *pulumi.OutputState }

func (ErrorDetailResponseArrayOutput) ElementType() reflect.Type {
	return reflect.TypeOf((*[]ErrorDetailResponse)(nil)).Elem()
}

func (o ErrorDetailResponseArrayOutput) ToErrorDetailResponseArrayOutput() ErrorDetailResponseArrayOutput {
	return o
}

func (o ErrorDetailResponseArrayOutput) ToErrorDetailResponseArrayOutputWithContext(ctx context.Context) ErrorDetailResponseArrayOutput {
	return o
}

func (o ErrorDetailResponseArrayOutput) Index(i pulumi.IntInput) ErrorDetailResponseOutput {
	return pulumi.All(o, i).ApplyT(func(vs []interface{}) ErrorDetailResponse {
		return vs[0].([]ErrorDetailResponse)[vs[1].(int)]
	}).(ErrorDetailResponseOutput)
}

type OSProfileResponse struct {
	ComputerName string `pulumi:"computerName"`
}

type OSProfileResponseInput interface {
	pulumi.Input

	ToOSProfileResponseOutput() OSProfileResponseOutput
	ToOSProfileResponseOutputWithContext(context.Context) OSProfileResponseOutput
}

type OSProfileResponseArgs struct {
	ComputerName pulumi.StringInput `pulumi:"computerName"`
}

func (OSProfileResponseArgs) ElementType() reflect.Type {
	return reflect.TypeOf((*OSProfileResponse)(nil)).Elem()
}

func (i OSProfileResponseArgs) ToOSProfileResponseOutput() OSProfileResponseOutput {
	return i.ToOSProfileResponseOutputWithContext(context.Background())
}

func (i OSProfileResponseArgs) ToOSProfileResponseOutputWithContext(ctx context.Context) OSProfileResponseOutput {
	return pulumi.ToOutputWithContext(ctx, i).(OSProfileResponseOutput)
}

func (i OSProfileResponseArgs) ToOSProfileResponsePtrOutput() OSProfileResponsePtrOutput {
	return i.ToOSProfileResponsePtrOutputWithContext(context.Background())
}

func (i OSProfileResponseArgs) ToOSProfileResponsePtrOutputWithContext(ctx context.Context) OSProfileResponsePtrOutput {
	return pulumi.ToOutputWithContext(ctx, i).(OSProfileResponseOutput).ToOSProfileResponsePtrOutputWithContext(ctx)
}

type OSProfileResponsePtrInput interface {
	pulumi.Input

	ToOSProfileResponsePtrOutput() OSProfileResponsePtrOutput
	ToOSProfileResponsePtrOutputWithContext(context.Context) OSProfileResponsePtrOutput
}

type osprofileResponsePtrType OSProfileResponseArgs

func OSProfileResponsePtr(v *OSProfileResponseArgs) OSProfileResponsePtrInput {
	return (*osprofileResponsePtrType)(v)
}

func (*osprofileResponsePtrType) ElementType() reflect.Type {
	return reflect.TypeOf((**OSProfileResponse)(nil)).Elem()
}

func (i *osprofileResponsePtrType) ToOSProfileResponsePtrOutput() OSProfileResponsePtrOutput {
	return i.ToOSProfileResponsePtrOutputWithContext(context.Background())
}

func (i *osprofileResponsePtrType) ToOSProfileResponsePtrOutputWithContext(ctx context.Context) OSProfileResponsePtrOutput {
	return pulumi.ToOutputWithContext(ctx, i).(OSProfileResponsePtrOutput)
}

type OSProfileResponseOutput struct{ *pulumi.OutputState }

func (OSProfileResponseOutput) ElementType() reflect.Type {
	return reflect.TypeOf((*OSProfileResponse)(nil)).Elem()
}

func (o OSProfileResponseOutput) ToOSProfileResponseOutput() OSProfileResponseOutput {
	return o
}

func (o OSProfileResponseOutput) ToOSProfileResponseOutputWithContext(ctx context.Context) OSProfileResponseOutput {
	return o
}

func (o OSProfileResponseOutput) ToOSProfileResponsePtrOutput() OSProfileResponsePtrOutput {
	return o.ToOSProfileResponsePtrOutputWithContext(context.Background())
}

func (o OSProfileResponseOutput) ToOSProfileResponsePtrOutputWithContext(ctx context.Context) OSProfileResponsePtrOutput {
	return o.ApplyTWithContext(ctx, func(_ context.Context, v OSProfileResponse) *OSProfileResponse {
		return &v
	}).(OSProfileResponsePtrOutput)
}

func (o OSProfileResponseOutput) ComputerName() pulumi.StringOutput {
	return o.ApplyT(func(v OSProfileResponse) string { return v.ComputerName }).(pulumi.StringOutput)
}

type OSProfileResponsePtrOutput struct{ *pulumi.OutputState }

func (OSProfileResponsePtrOutput) ElementType() reflect.Type {
	return reflect.TypeOf((**OSProfileResponse)(nil)).Elem()
}

func (o OSProfileResponsePtrOutput) ToOSProfileResponsePtrOutput() OSProfileResponsePtrOutput {
	return o
}

func (o OSProfileResponsePtrOutput) ToOSProfileResponsePtrOutputWithContext(ctx context.Context) OSProfileResponsePtrOutput {
	return o
}

func (o OSProfileResponsePtrOutput) Elem() OSProfileResponseOutput {
	return o.ApplyT(func(v *OSProfileResponse) OSProfileResponse {
		if v != nil {
			return *v
		}
		var ret OSProfileResponse
		return ret
	}).(OSProfileResponseOutput)
}

func (o OSProfileResponsePtrOutput) ComputerName() pulumi.StringPtrOutput {
	return o.ApplyT(func(v *OSProfileResponse) *string {
		if v == nil {
			return nil
		}
		return &v.ComputerName
	}).(pulumi.StringPtrOutput)
}

func init() {
	pulumi.RegisterOutputType(ErrorDetailResponseOutput{})
	pulumi.RegisterOutputType(ErrorDetailResponseArrayOutput{})
	pulumi.RegisterOutputType(OSProfileResponseOutput{})
	pulumi.RegisterOutputType(OSProfileResponsePtrOutput{})
}

repository: bpkgoud/pulumi-azure-native

repo_name: bpkgoud/pulumi-azure-native


text:
package helper

import (
	"net/http"

	"golang.org/x/net/context"
)

func Req(ctx context.Context) (*http.Request, bool) {
	v, ok := ctx.Value("req").(*http.Request)
	return v, ok
}
func Res(ctx context.Context) (http.ResponseWriter, bool) {
	v, ok := ctx.Value("res").(http.ResponseWriter)
	return v, ok
}

repository: hjin-me/lens

repo_name: hjin-me/lens


text:
@phdthesis{Marthi:2006,
 author = {Marthi, Bhaskara Mannar},
 advisor = {Russell, Stuart},
 title = {Concurrent Hierarchical Reinforcement Learning},
 year = {2006},
 note = {AAI3253978},
 publisher = {University of California at Berkeley},
 address = {Berkeley, CA, USA},
}

@inproceedings{Andre:2002,
	author = {Andre, David and Russell, Stuart J.},
	title = {State Abstraction for Programmable Reinforcement Learning Agents},
	booktitle = {Eighteenth National Conference on Artificial Intelligence},
	year = {2002},
	isbn = {0-262-51129-0},
	location = {Edmonton, Alberta, Canada},
	pages = {119--125},
	numpages = {7},
	url = {http://dl.acm.org/citation.cfm?id=777092.777114},
	acmid = {777114},
	publisher = {American Association for Artificial Intelligence},
	address = {Menlo Park, CA, USA},
}

@book{Bertsekas:1996,
	author = {Bertsekas, Dimitri P. and Tsitsiklis, John N.},
	title = {Neuro-Dynamic Programming},
	year = {1996},
	isbn = {1886529108},
	edition = {1st},
	publisher = {Athena Scientific},
}

@book{Puterman:1994,
	author = {Puterman, Martin L.},
	title = {Markov Decision Processes: Discrete Stochastic Dynamic Programming},
	year = {1994},
	isbn = {0471619779},
	edition = {1st},
	publisher = {John Wiley \& Sons, Inc.},
	address = {New York, NY, USA},
}

@Article{Watkins:1992,
	author="Watkins, Christopher J. C. H.
	and Dayan, Peter",
	title="Q-learning",
	journal="Machine Learning",
	year="1992",
	month="May",
	day="01",
	volume="8",
	number="3",
	pages="279--292",
	abstract="Q-learning (Watkins, 1989) is a simple way for agents to learn how to act optimally in controlled Markovian domains. It amounts to an incremental method for dynamic programming which imposes limited computational demands. It works by successively improving its evaluations of the quality of particular actions at particular states.",
	issn="1573-0565",
	doi="10.1007/BF00992698",
	url="https://doi.org/10.1007/BF00992698"
}

@book{Sutton:1998,
	author = {Sutton, Richard S. and Barto, Andrew G.},
	title = {Introduction to Reinforcement Learning},
	year = {1998},
	isbn = {0262193981},
	edition = {1st},
	publisher = {MIT Press},
	address = {Cambridge, MA, USA},
}

@InProceedings{CHRLKeepaway:2017,
	title =	"Concurrent Hierarchical Reinforcement Learning for {RoboCup Keepaway}",
	author =	"Aijun Bai and Stuart Russell and Xiaoping Chen",
	publisher =	"Springer",
	year = 	"2017",
	booktitle =	"RoboCup-2017: Robot World Cup XX",
	series =	"Lecture Notes in Computer Science",
}

@inproceedings{Parr:1998,
	author = {Parr, Ronald and Russell, Stuart},
	title = {Reinforcement Learning with Hierarchies of Machines},
	booktitle = {Proceedings of the 1997 Conference on Advances in Neural Information Processing Systems 10},
	series = {NIPS '97},
	year = {1998},
	isbn = {0-262-10076-2},
	location = {Denver, Colorado, USA},
	pages = {1043--1049},
	numpages = {7},
	url = {http://dl.acm.org/citation.cfm?id=302528.302894},
	acmid = {302894},
	publisher = {MIT Press},
	address = {Cambridge, MA, USA},
}

@article{Dietterich:2000,
	author = {Dietterich, Thomas G.},
	title = {Hierarchical Reinforcement Learning with the MAXQ Value Function Decomposition},
	journal = {J. Artif. Int. Res.},
	issue_date = {August 2000},
	volume = {13},
	number = {1},
	month = nov,
	year = {2000},
	issn = {1076-9757},
	pages = {227--303},
	numpages = {77},
	url = {http://dl.acm.org/citation.cfm?id=1622262.1622268},
	acmid = {1622268},
	publisher = {AI Access Foundation},
	address = {USA},
}

@article{MacAlpine:2018,
	title = {Overlapping Layered Learning},
	journal = {Artificial Intelligence},
	volume = {254},
	pages = {21--43},
	month = {January},
	year = {2018},
	issn = {0004-3702},
	doi = {https://doi.org/10.1016/j.artint.2017.09.001},
	url = {https://www.sciencedirect.com/science/article/pii/S0004370217301066},
	author = {Patrick MacAlpine and Peter Stone},
	publisher = {Elsevier},
	abstract = {Layered learning is a hierarchical machine learning paradigm that
	enables learning of complex behaviors by incrementally learning a series of
	sub-behaviors. A key feature of layered learning is that higher layers directly
	depend on the learned lower layers. In its original formulation, lower layers
	were frozen prior to learning higher layers. This article considers a major
	extension to the paradigm that allows learning certain behaviors independently,
	and then later stitching them together by learning at the "seams" where their
	influences overlap. The UT Austin Villa 2014 RoboCup 3D simulation team, using
	such overlapping layered learning, learned a total of 19 layered behaviors for
	a simulated soccer-playing robot, organized both in series and in parallel. To
	the best of our knowledge this is more than three times the number of layered
	behaviors in any prior layered learning system. Furthermore, the complete
	learning process is repeated on four additional robot body types, showcasing
	its generality as a paradigm for efficient behavior learning. The resulting
	team won the RoboCup 2014 championship with an undefeated record, scoring 52
	goals and conceding none. This article includes a detailed experimental
	analysis of the team's performance and the overlapping layered learning
	approach that led to its success.}
	wwwnote = {Official version from Publisher's Webpage

	Accompanying videos at http://www.cs.utexas.edu/~AustinVilla/sim/3dsimulation/overlappingLayeredLearning.html}
}

@inproceedings{Kulkarni:2016,
	author = {Kulkarni, Tejas D. and Narasimhan, Karthik R. and Saeedi, Ardavan and Tenenbaum, Joshua B.},
	title = {Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivation},
	booktitle = {Proceedings of the 30th International Conference on Neural Information Processing Systems},
	series = {NIPS'16},
	year = {2016},
	isbn = {978-1-5108-3881-9},
	location = {Barcelona, Spain},
	pages = {3682--3690},
	numpages = {9},
	url = {http://dl.acm.org/citation.cfm?id=3157382.3157509},
	acmid = {3157509},
	publisher = {Curran Associates Inc.},
	address = {USA},
}

@inproceedings{Makar:2001,
	author = {Makar, Rajbala and Mahadevan, Sridhar and Ghavamzadeh, Mohammad},
	title = {Hierarchical Multi-agent Reinforcement Learning},
	booktitle = {Proceedings of the Fifth International Conference on Autonomous Agents},
	series = {AGENTS '01},
	year = {2001},
	isbn = {1-58113-326-X},
	location = {Montreal, Quebec, Canada},
	pages = {246--253},
	numpages = {8},
	url = {http://doi.acm.org/10.1145/375735.376302},
	doi = {10.1145/375735.376302},
	acmid = {376302},
	publisher = {ACM},
	address = {New York, NY, USA},
}

@inproceedings{Russell:2003,
	author = {Russell, Stuart and Zimdars, Andrew L.},
	title = {Q-decomposition for Reinforcement Learning Agents},
	booktitle = {Proceedings of the Twentieth International Conference on International Conference on Machine Learning},
	series = {ICML'03},
	year = {2003},
	isbn = {1-57735-189-4},
	location = {Washington, DC, USA},
	pages = {656--663},
	numpages = {8},
	url = {http://dl.acm.org/citation.cfm?id=3041838.3041921},
	acmid = {3041921},
	publisher = {AAAI Press},
}

@Article{Singh:2000,
	author="Singh, Satinder
	and Jaakkola, Tommi
	and Littman, Michael L.
	and Szepesv{\'a}ri, Csaba",
	title="Convergence Results for Single-Step On-Policy Reinforcement-Learning Algorithms",
	journal="Machine Learning",
	year="2000",
	month="Mar",
	day="01",
	volume="38",
	number="3",
	pages="287--308",
	abstract="An important application of reinforcement learning (RL) is to finite-state control problems and one of the most difficult problems in learning for control is balancing the exploration/exploitation tradeoff. Existing theoretical results for RL give very little guidance on reasonable ways to perform exploration. In this paper, we examine the convergence of single-step on-policy RL algorithms for control. On-policy algorithms cannot separate exploration from learning and therefore must confront the exploration problem directly. We prove convergence results for several related on-policy algorithms with both decaying exploration and persistent exploration. We also provide examples of exploration strategies that can be followed during learning that result in convergence to both optimal values and optimal policies.",
	issn="1573-0565",
	doi="10.1023/A:1007678930559",
	url="https://doi.org/10.1023/A:1007678930559"
}

@article{Todorov:2005,
	author = {Emanuel Todorov and Weiwei Li and Xiuchuan Pan},
	title = {From task parameters to motor synergies: A hierarchical framework for approximately optimal control of redundant manipulators},
	journal = {Journal of Robotic Systems},
	volume = {22},
	number = {11},
	pages = {691-710},
	year = 2005,
	doi = {10.1002/rob.20093},
	url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/rob.20093},
	eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1002/rob.20093},
	abstract = {Abstract We present a hierarchical framework for approximately optimal control of redundant manipulators. The plant is augmented with a low‐level feedback controller, designed to yield input‐output behavior that captures the task‐relevant aspects of plant dynamics but has reduced dimensionality. This makes it possible to reformulate the optimal control problem in terms of the augmented dynamics, and optimize a high‐level feedback controller without running into the curse of dimensionality. The resulting control hierarchy compares favorably to existing methods in robotics. Furthermore, we demonstrate a number of similarities to (nonhierarchical) optimal feedback control. Besides its engineering applications, the new framework addresses a key unresolved problem in the neural control of movement. It has long been hypothesized that coordination involves selective control of task parameters via muscle synergies, but the link between these parameters and the synergies capable of controlling them has remained elusive. Our framework provides this missing link. © 2005 Wiley Periodicals, Inc.}
}

@inproceedings{mehta:2005,
	title={Multi-agent shared hierarchy reinforcement learning},
	author={Mehta, Neville and Tadepalli, Prasad and Fern, A},
	booktitle={ICML Workshop on Richer Representations in Reinforcement Learning},
	year={2005}
}

repository: MaxRobinson/CALispCritique

repo_name: MaxRobinson/CALispCritique


text:
SUMMARY = "Python interface to Linux uinput kernel module."
HOMEPAGE = "https://pypi.org/project/python-uinput/"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"

SRC_URI += "file://0001-setup-use-setuptools-instead-of-distutils.patch \
            file://0001-Deal-with-64bit-time_t-default-on-32bit-architecture.patch \
"
SRC_URI[sha256sum] = "99392b676c77b5795b86b7d75274db33fe754fd1e06fb3d58b167c797dc47f0c"

PYPI_PACKAGE = "python-uinput"

inherit pypi setuptools3

DEPENDS += "udev"
RDEPENDS:${PN} += " \
    python3-ctypes \
    python3-distutils \
"
RRECOMMENDS:${PN} += "kernel-module-uinput"

repository: openembedded/meta-openembedded

repo_name: openembedded/meta-openembedded

gha_language: BitBake

extension: bb


text:
package main

import (
	"net/http"

	"google.golang.org/appengine/log"
)

func FirestoreHandler(w http.ResponseWriter, r *http.Request) {
	ctx := r.Context()

	fc, err := NewFirestoreClient(ctx, ProjectID)
	if err != nil {
		w.WriteHeader(http.StatusInternalServerError)
		w.Write([]byte(err.Error()))
	}

	s, err := NewFirestoreStore(ctx, fc)
	if err != nil {
		w.WriteHeader(http.StatusInternalServerError)
		w.Write([]byte(err.Error()))
	}

	d := &Sample{}
	d, err = s.Create(ctx, d)
	if err != nil {
		w.WriteHeader(http.StatusInternalServerError)
		w.Write([]byte(err.Error()))
	}

	w.WriteHeader(http.StatusOK)
	_, err = w.Write([]byte(d.ID))
	if err != nil {
		log.Warningf(r.Context(), "failed httpResponseWrite. err=%+v\n", err)
	}
}


text:
package grpc

import (
	"context"
	"github.com/stretchr/testify/assert"
	"testing"
	"time"
)

func TestNewServer(t *testing.T) {
	server := NewServer(":8081")
	assert.NotNil(t, server)
}

func serveServer(server *Server) {
	ctx, cancel := context.WithCancel(context.Background())
	go server.Run(ctx.Done())

	time.Sleep(time.Second)
	cancel()
}
func TestServer_Serve(t *testing.T) {
	server := NewServer(":8081")
	serveServer(server)
}

repository: ebar-go/ego

repo_name: ebar-go/ego

gha_language: Go


text:
package gotinydb

import (
	"context"
	"fmt"
	"io"
	"log"
	"os"
	"time"

	"github.com/blevesearch/bleve"
)

type (
	user struct {
		ID        int
		Email     string
		LastLogin time.Time
	}
)

var (
	testTime time.Time

	dbPath string
	dbKey  [32]byte

	exampleDB         *DB
	exampleCollection *Collection
)

func init() {
	testTime.UnmarshalText([]byte("2018-11-05T12:20:44.588809926+01:00"))

	dbPath = os.TempDir() + "/example"
	dbKey = [32]byte{}

	os.RemoveAll(dbPath)
	os.RemoveAll(os.TempDir() + "/package_example")
	os.RemoveAll("path_to_database_directory")

	var err error
	// Open or create the database at the given path and with the given encryption key
	exampleDB, err = Open(dbPath, dbKey)
	if err != nil {
		log.Fatal(err)
	}

	// Open a collection
	exampleCollection, err = exampleDB.Use("users")
	if err != nil {
		log.Fatal(err)
	}

	userDocumentMapping := bleve.NewDocumentMapping()
	exampleCollection.SetBleveIndex("index X", userDocumentMapping)
	doc := &struct {
		Name string
	}{
		"I'm the example document",
	}
	exampleCollection.Put("index X document", doc)

	var writer Writer
	writer, err = exampleDB.GetFileStore().GetFileWriter("read file", "txt")
	if err != nil {
		log.Fatal(err)
	}
	defer writer.Close()
	writer.Write([]byte("JbBSFroiVAtjQy6bR3xXgrPY2GFvOPRqvWxfHUmAFAksELPTpV0lmPvwjMwdqq5i"))
}

func Example() {
	// Open or create the database at the given path and with the given encryption key
	db, err := Open(os.TempDir()+"/package_example", dbKey)
	if err != nil {
		log.Fatal(err)
	}
	defer db.Close()

	// Open a collection
	var c *Collection
	c, err = db.Use("users")
	if err != nil {
		log.Fatal(err)
	}

	// Build the index mapping (take a look at bleve)
	// This is a static mapping document to index only specified fields
	userDocumentMapping := bleve.NewDocumentStaticMapping()
	// Build the field checker
	emailFieldMapping := bleve.NewTextFieldMapping()
	// Add a text filed to Email property
	userDocumentMapping.AddFieldMappingsAt("Email", emailFieldMapping)
	// In this case it indexes only the field "Email"

	// Save the bleve indexexes
	err = c.SetBleveIndex("email", userDocumentMapping)
	if err != nil {
		if err != ErrNameAllreadyExists {
			log.Fatal(err)
		}
	}

	// Example user
	record := &user{
		316,
		"jonas-90@tlaloc.com",
		testTime,
	}

	// Save it in DB
	if err = c.Put("id", record); err != nil {
		log.Fatal(err)
	}

	// Build the query
	query := bleve.NewQueryStringQuery(record.Email)
	// Add the query to the search
	var searchResult *SearchResult
	searchResult, err = c.Search("email", query)
	if err != nil {
		log.Fatal(err)
	}

	// Convert the reccored into a struct using JSON internally
	retrievedRecord := new(user)

	id, respErr := searchResult.Next(retrievedRecord)
	if respErr != nil {
		log.Fatal(respErr)
	}

	// Display the result
	fmt.Println(id)
	fmt.Println(retrievedRecord.ID, retrievedRecord.Email, retrievedRecord.LastLogin.Format(time.Stamp))

	// Output: id
	// 316 jonas-90@tlaloc.com Nov  5 12:20:44
}

func ExampleOpen() {
	// Open or create the database at the given path and with the given encryption key
	db, err := Open("path_to_database_directory", dbKey)
	if err != nil {
		log.Fatal(err)
	}

	// Remumber to close the database
	err = db.Close()

	fmt.Println(err)
	// Output: <nil>
}

func ExampleDB_Use() {
	// Open a collection
	col, err := exampleDB.Use("collection name")
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(col.Name())
	// Output: collection name
}

func ExampleCollection_Put() {
	record := &struct{}{}

	err := exampleCollection.Put("id", record)
	fmt.Println(err)
	// Output: <nil>
}

func ExampleCollection_Get() {
	record := &struct {
		Name string
	}{
		"testing name",
	}

	exampleCollection.Put("id", record)

	retrievedRecord := &struct {
		Name string
	}{}

	recordAsBytes, _ := exampleCollection.Get("id", retrievedRecord)

	fmt.Println(string(recordAsBytes))

	fmt.Println(retrievedRecord)
	// Output: {"Name":"testing name"}
	// &{testing name}
}

func ExampleWriter() {
	writer, err := exampleDB.GetFileStore().GetFileWriter("file example", "test.txt")
	if err != nil {
		log.Fatal(err)
	}
	defer writer.Close()

	n := 0
	writtenBytes := 0
	n, err = writer.Write([]byte("this is a text file"))
	if err != nil {
		log.Fatal(err)
	}
	writtenBytes += n
	n, err = writer.Write([]byte("\n"))
	if err != nil {
		log.Fatal(err)
	}
	writtenBytes += n
	n, err = writer.Write([]byte("and then the second is written"))
	if err != nil {
		log.Fatal(err)
	}
	writtenBytes += n

	fmt.Println("writtenBytes", writtenBytes)

	readBuff := make([]byte, 1000)

	writer.Seek(0, io.SeekStart)

	n, err = writer.Read(readBuff)
	if err != nil && err != io.EOF {
		log.Fatal(err)
	}

	fmt.Println(n, string(readBuff[:n]))

	// Output: writtenBytes 50
	// 50 this is a text file
	// and then the second is written
}

func ExampleReader() {
	reader, err := exampleDB.GetFileStore().GetFileReader("read file")
	if err != nil {
		log.Fatal(err)
	}
	defer reader.Close()

	readBuffer := make([]byte, 100)
	n := 0
	n, err = reader.ReadAt(readBuffer, 25)
	if err != nil && err != io.EOF {
		log.Fatal(err)
	}

	readBuffer = readBuffer[:n]

	fmt.Println(n, string(readBuffer))

	// Output: 39 GFvOPRqvWxfHUmAFAksELPTpV0lmPvwjMwdqq5i
}

func ExampleCollection_SetBleveIndex() {
	// Build the index mapping (take a look at bleve)
	// This is a static mapping document to index only specified fields
	userDocumentMapping := bleve.NewDocumentStaticMapping()
	// Build the field checker
	emailFieldMapping := bleve.NewTextFieldMapping()
	// Add a text filed to Email property
	userDocumentMapping.AddFieldMappingsAt("Email", emailFieldMapping)

	err := exampleCollection.SetBleveIndex("your index name", userDocumentMapping)
	fmt.Println(err)

	// Output: <nil>
}

func ExampleCollection_Search() {
	query := bleve.NewMatchQuery("example")

	response, err := exampleCollection.Search("index X", query)
	if err != nil {
		log.Fatal(err)
	}

	dest := &struct{ Name string }{}
	var resp *Response
	resp, err = response.NextResponse(dest)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(dest)
	fmt.Println(resp.ID)
	fmt.Println(string(resp.Content))
	fmt.Println(resp.DocumentMatch.Score)

	// Output: &{I'm the example document}
	// index X document
	// {"Name":"I'm the example document"}
	// 0.7071067690849304
}

func ExampleBatch() {
	ctx, cancel := context.WithCancel(context.Background())
	defer cancel()

	u1 := &user{
		2435,
		"user1@dom.com",
		testTime,
	}
	batch, err := exampleCollection.NewBatch(ctx)
	batch.Put("second write", u1)
	if err != nil {
		log.Fatal(err)
	}
	u2 := &user{
		56548,
		"user2@dom.com",
		testTime,
	}

	batch.Put("second write", u2)

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

	fmt.Println(err)
	// Output: <nil>
}

func ExampleCollectionIterator() {
	iter := exampleCollection.GetIterator()
	defer iter.Close()

	for ; iter.Valid(); iter.Next() {
		fmt.Println(string(iter.GetBytes()))
	}

	// Output: {"Name":"testing name"}
	// {"Name":"I'm the example document"}
	// {"ID":56548,"Email":"user2@dom.com","LastLogin":"2018-11-05T12:20:44.588809926+01:00"}
}

func ExampleFileIterator() {
	iter := exampleDB.GetFileStore().GetFileIterator()
	defer iter.Close()

	for ; iter.Valid(); iter.Next() {
		meta := iter.GetMeta()
		fmt.Println(meta.ID, meta.Name)
	}

	// Output: read file txt
	// file example test.txt
}

repository: joncv/gotinydb

repo_name: joncv/gotinydb


text:
package main

import (
	"sync"

	"github.com/uguangtian/functrace"
)

func A1() {
	defer functrace.Trace()()
	B1()
}

func B1() {
	defer functrace.Trace()()
	C1()
}

func C1() {
	defer functrace.Trace()()
	D()
}

func A2() {
	defer functrace.Trace()()
	B2()
}

func B2() {
	defer functrace.Trace()()
	C2()
}

func C2() {
	defer functrace.Trace()()
	D()
}

func D() {
	defer functrace.Trace()()
}

func main() {
	defer functrace.Trace()()
	var wg sync.WaitGroup
	wg.Add(1)
	go func() {
		A1()
		wg.Done()
	}()

	A2()
	wg.Wait()
}

repository: uguangtian/functrace

repo_name: uguangtian/functrace

branch_name: refs/heads/main


text:
package api

import (
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"regexp"
	"strings"
	"time"

	"cep-provider/app/api/statuscode"
	"cep-provider/app/model"
	"cep-provider/app/provider"

	"github.com/gin-gonic/gin"
	// "github.com/subosito/gotenv"
)

// TODO : move to another place...
const notFoundMessage = `
404
¯\_(ツ)_/¯
`

// ConfigureServer TODO:
func ConfigureServer() *http.Server {

	// gotenv.Load(".env")

	if os.Getenv("GIN_MODE") == "test" {
		gin.SetMode(gin.TestMode)
	} else if os.Getenv("GIN_MODE") == "debug" {
		gin.SetMode(gin.DebugMode)
	} else {
		gin.SetMode(gin.ReleaseMode)
	}

	router := gin.Default()
	router.Use(gin.ErrorLogger())

	router.NoRoute(notFoundEndpoint)
	router.GET("/api/v1/cep/:cep", cepEndpoint)

	// port := os.Getenv("PORT")
	port := "8081"
	fmt.Println("starting server on", port)

	server := &http.Server{
		Addr:           ":" + port,
		Handler:        router,
		ReadTimeout:    10 * time.Second,
		WriteTimeout:   10 * time.Second,
		MaxHeaderBytes: 1 << 20,
	}
	return server
}

// 404 error showing start page
func notFoundEndpoint(c *gin.Context) {
	c.String(404, notFoundMessage)
}

func cepEndpoint(c *gin.Context) {

	c.Header("Content-Type", "application/json; charset=utf-8")
	cep := beautify(c.Param("cep"))

	statusCode, address := provider.GetAddress(cep)
	fmt.Println("Status Code", statusCode)

	switch statusCode {
	case statuscode.OK:
		addressJSON, err := encode(address)
		if err != nil {
			fmt.Println("apiCepJSON error:", err)
			c.String(statuscode.ToInt(statuscode.InternalServerError), err.Error())
		} else {
			fmt.Println("apiCepJSON address", addressJSON)
			c.String(statuscode.ToInt(statusCode), addressJSON)
		}
	case statuscode.UnprocessableEntity:
		c.String(statuscode.ToInt(statusCode), "CEP `"+cep+"` is invalid")
	default:
		c.Status(statuscode.ToInt(statusCode))
	}
}

// encode Address to JSON string to be used on response
func encode(address *model.Address) (addressJSON string, err error) {

	reg, err := regexp.Compile("[^0-9]+")
	if err != nil {
		fmt.Printf("RegExp error: %s", err)
		return "", err
	}

	JSONConvert := &model.Address{
		Provider:    address.Provider,
		Cep:         reg.ReplaceAllString(address.Cep, ""),
		Logradouro:  address.Logradouro,
		Bairro:      address.Bairro,
		Complemento: address.Complemento,
		Cidade:      address.Cidade,
		Estado:      address.Estado,
		Ibge:        address.Ibge,
	}

	conv, err := json.MarshalIndent(JSONConvert, "", "  ")
	if err != nil {
		fmt.Printf("apiWriteJSON error: %s", err)
		return "", err
	}

	return string(conv), err
}

// remeve mask from CEP
func beautify(cep string) string {

	result := strings.Trim(cep, " ")
	result = strings.Replace(result, ".", "", -1)
	result = strings.Replace(result, "-", "", -1)

	return result
}

repository: marsal-silveira/Go-CepProvider

repo_name: marsal-silveira/Go-CepProvider


text:
# Generated by superflore -- DO NOT EDIT
#
# Copyright Open Source Robotics Foundation

inherit ros_distro_melodic
inherit ros_superflore_generated

DESCRIPTION = "Test suite for the packages that are part of the "WiFi Test Setup" project:     network_monitor_udp, network_traffic_control, hostapd_access_point, linksys_access_point,     ddwrt_access_point."
AUTHOR = "Devon Ash <dash@clearpathrobotics.com>"
ROS_AUTHOR = "Catalin Drula"
HOMEPAGE = "http://ros.org/wiki/network_control_tests"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=9;endline=9;md5=d566ef916e9dedc494f5f793a6690ba5"

ROS_CN = "linux_networking"
ROS_BPN = "network_control_tests"

ROS_BUILD_DEPENDS = " \
    access-point-control \
    ddwrt-access-point \
    dynamic-reconfigure \
    hostapd-access-point \
    linksys-access-point \
    network-monitor-udp \
    network-traffic-control \
    rostest \
"

ROS_BUILDTOOL_DEPENDS = " \
    catkin-native \
"

ROS_EXPORT_DEPENDS = " \
    access-point-control \
    ddwrt-access-point \
    dynamic-reconfigure \
    hostapd-access-point \
    linksys-access-point \
    network-monitor-udp \
    network-traffic-control \
    rostest \
"

ROS_BUILDTOOL_EXPORT_DEPENDS = ""

ROS_EXEC_DEPENDS = " \
    access-point-control \
    ddwrt-access-point \
    dynamic-reconfigure \
    hostapd-access-point \
    linksys-access-point \
    network-monitor-udp \
    network-traffic-control \
    rostest \
"

# Currently informational only -- see http://www.ros.org/reps/rep-0149.html#dependency-tags.
ROS_TEST_DEPENDS = ""

DEPENDS = "${ROS_BUILD_DEPENDS} ${ROS_BUILDTOOL_DEPENDS}"
# Bitbake doesn't support the "export" concept, so build them as if we needed them to build this package (even though we actually
# don't) so that they're guaranteed to have been staged should this package appear in another's DEPENDS.
DEPENDS += "${ROS_EXPORT_DEPENDS} ${ROS_BUILDTOOL_EXPORT_DEPENDS}"

RDEPENDS_${PN} += "${ROS_EXEC_DEPENDS}"

# matches with: https://github.com/pr2-gbp/linux_networking-release/archive/release/melodic/network_control_tests/1.0.16-1.tar.gz
ROS_BRANCH ?= "branch=release/melodic/network_control_tests"
SRC_URI = "git://github.com/pr2-gbp/linux_networking-release;${ROS_BRANCH};protocol=https"
SRCREV = "93a3bbe87da8e4e6886d64e1e37b86925684c72b"
S = "${WORKDIR}/git"

ROS_BUILD_TYPE = "catkin"

inherit ros_${ROS_BUILD_TYPE}

repository: jianchangfeng/meta-ros

repo_name: jianchangfeng/meta-ros


text:
package internalhelpers

import (
	nethttp "net/http"
	"net/http/httptest"
	"testing"

	"github.com/antonio-muniz/alph/cmd/alph/internal/transport/http"
	"github.com/antonio-muniz/alph/pkg/system"
)

func ExecuteHttpRequest(
	t *testing.T,
	sys system.System,
	request *nethttp.Request,
) *httptest.ResponseRecorder {
	response := httptest.NewRecorder()
	router := http.Router(sys)
	router.ServeHTTP(response, request)
	return response
}

repository: antonio-muniz/alph

repo_name: antonio-muniz/alph


text:
% This file was created with JabRef 2.10b2.
% Encoding: UTF-8

@InProceedings{Abbeel:2004:ALV:1015330.1015430,
  Title                    = {Apprenticeship Learning via Inverse Reinforcement Learning},
  Author                   = {Abbeel, Pieter and Ng, Andrew Y.},
  Booktitle                = {Proceedings of the Twenty-first International Conference on Machine Learning},
  Year                     = {2004},
  Series                   = {ICML '04}
}

@InProceedings{CK2013a,
  Title                    = {Bayesian Nonparametric Feature Construction for Inverse Reinforcement Learning},
  Author                   = {Choi, Jaedeug and Kim, Kee-Eung},
  Booktitle                = {Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI)},
  Year                     = {2013}
}

@InProceedings{levine2010feature,
  Title                    = {Feature construction for inverse reinforcement learning},
  Author                   = {Levine, Sergey and Popovic, Zoran and Koltun, Vladlen},
  Booktitle                = {Advances in Neural Information Processing Systems},
  Year                     = {2010},
  Pages                    = {1342--1350}
}

@InCollection{Levine_nonlinearinverse,
  Title                    = {Nonlinear Inverse Reinforcement Learning with Gaussian Processes},
  Author                   = {Sergey Levine and Zoran Popović and Vladlen Koltun},
  Booktitle                = {Advances in Neural Information Processing Systems 23},
  Year                     = {2011}
}

@Article{michini2015bayesian,
  Title                    = {Bayesian nonparametric reward learning from demonstration},
  Author                   = {Michini, Bernard and Walsh, Thomas J and Agha-Mohammadi, Ali-Akbar and How, Jonathan P},
  Journal                  = {Robotics, IEEE Transactions on},
  Year                     = {2015}
}

@InProceedings{Ng00algorithmsfor,
  Title                    = {Algorithms for Inverse Reinforcement Learning},
  Author                   = {Andrew Y. Ng and Stuart Russell},
  Booktitle                = {in Proc. 17th International Conf. on Machine Learning},
  Year                     = {2000}
}

@InProceedings{Ziebart08maximumentropy,
  Title                    = {Maximum entropy inverse reinforcement learning},
  Author                   = {Brian D. Ziebart and Andrew Maas and J. Andrew Bagnell and Anind K. Dey},
  Booktitle                = {In Proc. AAAI},
  Year                     = {2008}
}

repository: junkilee/sampling-rl

repo_name: junkilee/sampling-rl


text:
#include "qspnetworkaccessmanager.h"
#include "qspreply.h"

QspNetworkAccessManager::QspNetworkAccessManager(QNetworkAccessManager *oldManager, QObject *parent) : QNetworkAccessManager(parent)
{
    //setCache(oldManager->cache());
    setCookieJar(oldManager->cookieJar());
    //setProxy(oldManager->proxy());
    //setProxyFactory(oldManager->proxyFactory());
}

QspNetworkAccessManager::~QspNetworkAccessManager()
{

}

void QspNetworkAccessManager::SetPlainText(const QString &text)
{
    m_isUseHtml = false;
    m_text= text;
}

void QspNetworkAccessManager::SetHtml(const QString &text)
{
    m_isUseHtml = true;
    m_text =text;
}

void QspNetworkAccessManager::SetGamePath(const QString &path)
{
    m_path = path;
}

void QspNetworkAccessManager::SetLinkColor(const QColor &color)
{
    m_linkColor = color;
}

void QspNetworkAccessManager::SetBackgroundColor(const QColor &color)
{
    m_backColor = color;
}

void QspNetworkAccessManager::SetForegroundColor(const QColor &color)
{
    m_fontColor = color;
}

void QspNetworkAccessManager::SetBackgroundImage(const QString &path)
{
    m_bmpBg = path;
}

void QspNetworkAccessManager::SetTextFont(const QFont &new_font)
{
    m_font = new_font;
}

QNetworkReply *QspNetworkAccessManager::createRequest(
    QNetworkAccessManager::Operation operation, const QNetworkRequest &request,
    QIODevice *device)
{
    if (request.url().scheme() == "http" || request.url().scheme() == "https")
        return QNetworkAccessManager::createRequest(operation, request, device);

    if (operation == GetOperation)
        // Handle qsp:// URLs separately by creating custom QNetworkReply objects.
        return new QspReply(request.url(), m_text, m_isUseHtml, m_path, m_linkColor, m_backColor, m_fontColor, m_bmpBg, m_font);
    else
        return QNetworkAccessManager::createRequest(operation, request, device);
}

extension: cpp


text:
/*=========================================================================

  Program:   ParaView
  Module:    vtkAppendArcLength.h

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
/**
 * @class   vtkAppendArcLength
 * @brief   appends Arc length for input poly lines.
 *
 * vtkAppendArcLength is used for filter such as plot-over-line. In such cases,
 * we need to add an attribute array that is the arc_length over the length of
 * the probed line. That's when vtkAppendArcLength can be used. It adds a new
 * point-data array named "arc_length" with the computed arc length for each of
 * the polylines in the input. For all other cell types, the arc length is set
 * to 0.
 * @warning
 * This filter assumes that cells don't share points.
*/

#ifndef vtkAppendArcLength_h
#define vtkAppendArcLength_h

#include "vtkFiltersCoreModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"

class VTKFILTERSCORE_EXPORT vtkAppendArcLength : public vtkPolyDataAlgorithm
{
public:
  static vtkAppendArcLength* New();
  vtkTypeMacro(vtkAppendArcLength, vtkPolyDataAlgorithm);
  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;

protected:
  vtkAppendArcLength();
  ~vtkAppendArcLength();

  //@{
  /**
   * This is called by the superclass.
   * This is the method you should override.
   */
  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
    vtkInformationVector* outputVector) VTK_OVERRIDE;

private:
  vtkAppendArcLength(const vtkAppendArcLength&) VTK_DELETE_FUNCTION;
  void operator=(const vtkAppendArcLength&) VTK_DELETE_FUNCTION;
  //@}
};

#endif

extension: h


text:
package database

import (
	"context"
	"fmt"
	"github.com/spf13/viper"

	"go.mongodb.org/mongo-driver/mongo"
	"go.mongodb.org/mongo-driver/mongo/options"
	"go.mongodb.org/mongo-driver/mongo/readpref"
)

type DbConnection struct {
	ctx    context.Context
	Cancel context.CancelFunc
	client *mongo.Client
}

type DbCredentials struct {
	user   string
	pass   string
	host   string
	dbName string
}

var Db DbConnection
var credentials DbCredentials
var hostURI string

const database string = "dnovaes"

func init() {
	loadCredentials()
	hostURI = fmt.Sprintf("mongodb+srv://%s:%s@%s/%s?retryWrites=true&w=majority", credentials.user, credentials.pass, credentials.host, credentials.dbName)
}

func loadCredentials() {
	viper.AddConfigPath("$HOME/Config/")
	viper.SetConfigName("portfolio")
	err := viper.ReadInConfig()
	if err != nil {
		if _, ok := err.(viper.ConfigParseError); ok {
			fmt.Println(err)
		} else {
			fmt.Println("Unable to locate Config file.", err)
			return
		}
	}

	user := viper.Get("MONGO_USER").(string)
	pass := viper.Get("MONGO_PASS").(string)
	cluster := viper.Get("MONGO_HOST").(string)
	dbName := viper.Get("MONGO_DBNAME").(string)
	credentials = DbCredentials{user, pass, cluster, dbName}
}

func StartConnection() {
	ctx, cancel := context.WithCancel(context.Background())
	client, err := mongo.Connect(ctx, options.Client().ApplyURI(hostURI))
	if err != nil {
		panic(err)
	}
	Db = DbConnection{ctx, cancel, client}
}

func StopConnection() bool {
	if Db.client == nil {
		return true
	}

	err := Db.client.Disconnect(Db.ctx)
	if err != nil {
		panic(err)
		return false
	}
	Db.Cancel()
	Db.client = nil
	return true
}

func IsDbConnected() bool {
	if Db.client == nil {
		return false
	}
	err := Db.client.Ping(Db.ctx, readpref.Primary())
	if err != nil {
		return false
	}
	return true
}

repository: dnovaes/whoami

repo_name: dnovaes/whoami


text:
/*
Copyright (c) 2021 Memgraph Ltd. [https://memgraph.com]

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 bolt

import (
	"bytes"
	"errors"
	"fmt"
)

// Mode of a Bolt Transaction for determining cluster routing
type Mode string

const (
	ReadMode  Mode = "READ"
	WriteMode Mode = "WRITE"
)

// Inspect bytes for valid Bolt Magic pattern, returning true if found.
// Otherwise, returns false with an error.
func ValidateMagic(magic []byte) (bool, error) {
	// 0x60, 0x60, 0xb0, 0x17
	if len(magic) < 4 {
		return false, errors.New("magic too short")
	}
	if bytes.Equal(magic, []byte{0x60, 0x60, 0xb0, 0x17}) {
		return true, nil
	}

	return false, errors.New("invalid magic bytes")
}

// Inspect client and server communication for valid Bolt handshake,
// returning the handshake value's bytes.
//
// In order to pick the version, we use a simple formula of:
//
//   min( max(client versions), max(server versions) )
//
// So if client_versions=[4.0, 3.5, 3.4]
// and server_versions=[4.2, 4.1, 4.0, 3.5]
// then min(max(4.0, 3.5, 3.4), max([4.2, 4.1, 4.0, 3.5])) ==>
//   min(4.0, 4.2) ==> 4.0!
//
// Though, in reality, right now we already have the max(serverVersion)
// as the server []byte argument.
//
// If the handshake is input bytes or handshake is invalid, returns
// an error and an empty byte array.
func ValidateHandshake(client, server []byte) ([]byte, error) {
	if len(server) != 4 {
		return nil, fmt.Errorf("server handshake wrong size is %v", len(server))
	}

	if len(client) != 16 {
		return nil, fmt.Errorf("client handshake wrong size %v", len(client))
	}

	chosen := make([]byte, 4)

	// find max(clientVersion)
	clientVersion := []byte{0x0, 0x0, 0x0, 0x0}
	for i := 0; i < 4; i++ {
		part := client[i*4 : i*4+4]
		if part[3] > clientVersion[3] ||
			(part[3] == clientVersion[3] && part[2] > clientVersion[2]) {
			clientVersion = part
		}
		// XXX: we assume nobody cares about patch level or lower
	}

	// our hacky min() logic
	if clientVersion[3] > server[3] {
		// differing major number, client newer
		copy(chosen, server)
	} else if clientVersion[3] == server[3] {
		// check minor numbers
		if clientVersion[2] > server[2] {
			copy(chosen, server)
		} else {
			copy(chosen, clientVersion)
		}
	} else {
		// client is older
		copy(chosen, clientVersion)
	}

	return chosen, nil
}

// Try to find and validate the Mode for some given bytes, returning
// the Mode if found or if valid looking Bolt chatter. Otherwise,
// returns nil and an error.
func ValidateMode(buf []byte) (Mode, error) {
	if IdentifyType(buf) == BeginMsg {
		tinyMap, _, err := ParseMap(buf[4:])
		if err != nil {
			panic(err)
		}

		value, found := tinyMap["mode"]
		if found {
			mode, ok := value.(string)
			if ok && mode == "r" {
				return ReadMode, nil
			}
		}
	}
	return WriteMode, nil
}

repository: burakince/bolt-proxy

repo_name: burakince/bolt-proxy


text:
import React from 'react'
import styled, { css } from 'styled-components'

import PageDividerIcon from './icon/PageDivider'

const PageDividerContainer = styled.div`
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  background: white;
`

const PageDividerLine = styled.div`
  height: 2px;
  flex-basis: calc(50% - 50px);
  ${props => css`
    background-color: ${props.color};
  `};
`

const PageDivider = ({ color }) => (
  <PageDividerContainer>
    <PageDividerLine color={color} />
    <PageDividerIcon fill={color} />
    <PageDividerLine color={color} />
  </PageDividerContainer>
)

PageDivider.defaultProps = {
  color: '#e1dfdf',
}

export default PageDivider

repository: pittborndigital/pbd-cv

repo_name: pittborndigital/pbd-cv

gha_language: JavaScript

extension: js


text:
include stunnel.inc

SRC_URI = "ftp://stunnel.mirt.net/stunnel/stunnel-${PV}.tar.gz \
	   file://configure.patch;patch=1 \
	   file://automake.patch;patch=1 \
	   file://init \
	   file://stunnel.conf"

repository: BackupTheBerlios/openslug-svn

repo_name: BackupTheBerlios/openslug-svn


text:
check_source_compiles(Fortran
"program test
implicit none (type, external)
end program"
f2018impnone)

if(NOT f2018impnone)
  message(FATAL_ERROR "does not support Fortran 2018 IMPLICIT NONE (type, external): ${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION}")
endif()

extension: cmake


text:
@article{Bayer2011,
  title = {Three-Dimensional High Resolution Fluvio-Glacial Aquifer Analog: {{Part}} 1: {{Field}} Study},
  volume = {405},
  issn = {0022-1694},
  number = {1},
  journal = {Journal of Hydrology},
  author = {Bayer, P and Huggenberger, P and Renard, Philippe and Comunian, Alessandro},
  year = {2011},
  pages = {1--9}
}

@article{Borghi2015,
  title = {Generation of {{3D Spatially Variable Anisotropy}} for {{Groundwater Flow Simulations}}},
  volume = {53},
  issn = {0017467X},
  shorttitle = {Generation of {{3D Spatially Variable Anisotropy}} for {{Groundwater Flow Simulations}}},
  doi = {10.1111/gwat.12295},
  number = {6},
  journal = {Groundwater},
  author = {Borghi, Andrea and Renard, Philippe and Courrioux, Gabriel},
  month = nov,
  year = {2015},
  pages = {955--958}
}

@article{Teles2006,
  title = {Comparison of Transport Simulations and Equivalent Dispersion Coefficients in Heterogeneous Media Generated by Different Numerical Methods: {{A}} Genesis Model and a Simple Geostatistical Sequential {{Gaussian}} Simulator},
  volume = {2},
  issn = {1553-040X},
  shorttitle = {Comparison of Transport Simulations and Equivalent Dispersion Coefficients in Heterogeneous Media Generated by Different Numerical Methods},
  doi = {10.1130/GES00034.1},
  number = {5},
  journal = {Geosphere},
  author = {Teles, V. and Delay, F. and {de Marsily}, G.},
  year = {2006},
  pages = {275}
}

@article{Straubhaar2011,
  title = {An {{Improved Parallel Multiple}}-Point {{Algorithm Using}} a {{List Approach}}},
  volume = {43},
  issn = {1874-8961, 1874-8953},
  doi = {10.1007/s11004-011-9328-7},
  number = {3},
  journal = {Mathematical Geosciences},
  author = {Straubhaar, Julien and Renard, Philippe and Mariethoz, Gr{\'e}goire and Froidevaux, Roland and Besson, Olivier},
  month = apr,
  year = {2011},
  pages = {305--328}
}

@article{Jussel1994,
  title = {Transport Modeling in Heterogeneous Aquifers: 1. {{Statistical}} Description and Numerical Generation of Gravel Deposits},
  volume = {30},
  issn = {00431397},
  shorttitle = {Transport Modeling in Heterogeneous Aquifers},
  doi = {10.1029/94WR00162},
  number = {6},
  journal = {Water Resources Research},
  author = {Jussel, Peter and Stauffer, Fritz and Dracos, Themistocles},
  month = jun,
  year = {1994},
  pages = {1803--1817}
}

@article{Lunt2004,
  title = {A Quantitative, Three-Dimensional Depositional Model of Gravelly Braided Rivers: {{Depositional}} Model of Gravel-Bed Rivers},
  volume = {51},
  issn = {00370746, 13653091},
  shorttitle = {A Quantitative, Three-Dimensional Depositional Model of Gravelly Braided Rivers},
  doi = {10.1111/j.1365-3091.2004.00627.x},
  number = {3},
  journal = {Sedimentology},
  author = {Lunt, I. A. and Bridge, J. S. and Tye, R. S.},
  month = may,
  year = {2004},
  pages = {377--414}
}

@article{Scheibe1995,
  title = {Use of Sedimentological Information for Geometric Simulation of Natural Porous Media Structure},
  volume = {31},
  issn = {1944-7973},
  number = {12},
  journal = {Water Resources Research},
  author = {Scheibe, Timothy D and Freyberg, David L},
  year = {1995},
  pages = {3259--3270}
}

@article{Atkinson2014,
  title = {Three-Dimensional Hydrofacies Assemblages in Ice-Contact/Proximal Sediments Forming a Heterogeneous `Hybrid' Hydrostratigraphic Unit in Central {{Illinois}}, {{USA}}},
  volume = {22},
  issn = {1431-2174, 1435-0157},
  doi = {10.1007/s10040-014-1156-7},
  number = {7},
  journal = {Hydrogeology Journal},
  author = {Atkinson, Lisa A. and Ross, Martin and Stumpf, Andrew J.},
  month = nov,
  year = {2014},
  keywords = {Characterisation,Field study,till},
  pages = {1605--1624}
}

@article{Miall1985,
  title = {Architectural-Element Analysis: {{A}} New Method of Facies Analysis Applied to Fluvial Deposits},
  volume = {22},
  issn = {00128252},
  shorttitle = {Architectural-Element Analysis},
  doi = {10.1016/0012-8252(85)90001-7},
  number = {4},
  journal = {Earth-Science Reviews},
  author = {Miall, Andrew D.},
  month = dec,
  year = {1985},
  keywords = {architectural elements},
  pages = {261--308}
}

@article{Siegenthaler1993,
  title = {Pleistocene {{Rhine}} Gravel: Deposits of a Braided River System with Dominant Pool Preservation},
  volume = {75},
  issn = {0305-8719},
  shorttitle = {Pleistocene {{Rhine}} Gravel},
  doi = {10.1144/GSL.SP.1993.075.01.09},
  number = {1},
  journal = {Geological Society, London, Special Publications},
  author = {Siegenthaler, C. and Huggenberger, P.},
  month = jan,
  year = {1993},
  pages = {147--162}
}

@article{Heinz2003a,
  title = {Hierarchical Dynamic Stratigraphy in Various {{Quaternary}} Gravel Deposits, {{Rhine}} Glacier Area ({{SW Germany}}): Implications for Hydrostratigraphy},
  volume = {92},
  issn = {1437-3254, 1437-3262},
  shorttitle = {Hierarchical Dynamic Stratigraphy in Various {{Quaternary}} Gravel Deposits, {{Rhine}} Glacier Area ({{SW Germany}})},
  doi = {10.1007/s00531-003-0359-2},
  number = {6},
  journal = {International Journal of Earth Sciences},
  author = {Heinz, J{\"u}rgen and Aigner, Thomas},
  month = dec,
  year = {2003},
  pages = {923--938}
}

@article{Kostic2005,
  title = {3-{{D}} Sedimentary Architecture of a {{Quaternary}} Gravel Delta ({{SW}}-{{Germany}}): {{Implications}} for Hydrostratigraphy},
  volume = {181},
  issn = {00370738},
  shorttitle = {3-{{D}} Sedimentary Architecture of a {{Quaternary}} Gravel Delta ({{SW}}-{{Germany}})},
  doi = {10.1016/j.sedgeo.2005.07.004},
  number = {3-4},
  journal = {Sedimentary Geology},
  author = {Kostic, Boris and Becht, Andreas and Aigner, Thomas},
  month = nov,
  year = {2005},
  pages = {147--171}
}

@article{Jussel1994a,
  title = {Transport Modeling in Heterogeneous Aquifers: 2. {{Three}}-Dimensional Transport Model and Stochastic Numerical Tracer Experiments},
  volume = {30},
  issn = {00431397},
  shorttitle = {Transport Modeling in Heterogeneous Aquifers},
  doi = {10.1029/94WR00163},
  number = {6},
  journal = {Water Resources Research},
  author = {Jussel, Peter and Stauffer, Fritz and Dracos, Themistocles},
  month = jun,
  year = {1994},
  keywords = {Good description of random walk},
  pages = {1819--1831}
}

@article{Bierkens1994,
  title = {Block Hydraulic Conductivity of Cross-Bedded Fluvial Sediments},
  volume = {30},
  issn = {00431397},
  doi = {10.1029/94WR01049},
  number = {10},
  journal = {Water Resources Research},
  author = {Bierkens, Marc F. P. and Weerts, Henk J. T.},
  month = oct,
  year = {1994},
  pages = {2665--2678}
}

@article{Teles2004,
  title = {Comparison of Genesis and Geostatistical Methods for Characterizing the Heterogeneity of Alluvial Media: {{Groundwater}} Flow and Transport Simulations},
  volume = {294},
  issn = {00221694},
  shorttitle = {Comparison of Genesis and Geostatistical Methods for Characterizing the Heterogeneity of Alluvial Media},
  doi = {10.1016/j.jhydrol.2003.11.041},
  number = {1\textendash{}3},
  journal = {Journal of Hydrology},
  author = {Teles, V and Delay, F and {de Marsily}, G},
  month = jul,
  year = {2004},
  pages = {103--121}
}

@article{Comunian2011,
  title = {Three-Dimensional High Resolution Fluvio-Glacial Aquifer Analog\textendash{}{{Part}} 2: {{Geostatistical}} Modeling},
  volume = {405},
  issn = {0022-1694},
  number = {1},
  journal = {Journal of Hydrology},
  author = {Comunian, Alessandro and Renard, P and Straubhaar, J and Bayer, P},
  year = {2011},
  pages = {10--23}
}

@incollection{Carle1998,
  series = {Special Publication},
  title = {Conditional Simulation of Hydrofacies Architecture: A Transition Probability/{{Markov}} Approach},
  number = {1},
  booktitle = {Hydrogeologic {{Models}} of {{Sedimentary Aquifers}}, {{Concepts}} in {{Hydrogeology}} and {{Environmental Geology}}},
  publisher = {{Society for Sedimentary Geology}},
  author = {Carle, Steven F. and Labolle, Eric M. and Weissmann, Gary S. and Van Brocklin, David and Fogg, Graham E.},
  editor = {Fraser, G. S. and Davis, J. M.},
  year = {1998},
  pages = {147--170}
}

@article{Heinz2003b,
  title = {Heterogeneity Patterns of {{Quaternary}} Glaciofluvial Gravel Bodies ({{SW}}-{{Germany}}): Application to Hydrogeology},
  volume = {158},
  issn = {00370738},
  shorttitle = {Heterogeneity Patterns of {{Quaternary}} Glaciofluvial Gravel Bodies ({{SW}}-{{Germany}})},
  doi = {10.1016/S0037-0738(02)00239-7},
  number = {1-2},
  journal = {Sedimentary Geology},
  author = {Heinz, J{\"u}rgen and Kleineidam, Sybille and Teutsch, Georg and Aigner, Thomas},
  month = may,
  year = {2003},
  pages = {1--23}
}

@book{Klingbeil1998,
  address = {T{\"u}bingen, Germany},
  series = {T{\"u}binger Geowissenschaftliche Arbeiten: Reihe C, Hydro- Ingenieur- und Umweltgeologie},
  title = {Outcrop {{Analogue Studies}} - {{Implications}} for {{Groundwater Flow}} and {{Contaminant Transport}} in {{Heterogenous Glaciofluvial Quaternary Deposits}}},
  number = {C43},
  publisher = {{Institut und Museum f{\"u}r Geologie und Pal{\"a}ontologie der Universit{\"a}t T{\"u}bingen}},
  author = {Klingbeil, Ralph},
  year = {1998}
}

@article{Ritzi2004,
  title = {Spatial Correlation of Permeability in Cross-Stratified Sediment with Hierarchical Architecture: {{Permeability}} Correlation in Cross-Stratified Sediment},
  volume = {40},
  issn = {00431397},
  shorttitle = {Spatial Correlation of Permeability in Cross-Stratified Sediment with Hierarchical Architecture},
  doi = {10.1029/2003WR002420},
  number = {3},
  journal = {Water Resources Research},
  author = {Ritzi, Robert W. and Dai, Zhenxue and Dominic, David F. and Rubin, Yoram N.},
  month = mar,
  year = {2004}
}

@article{Klingbeil1999,
  title = {Relating Lithofacies to Hydrofacies: Outcrop-Based Hydrogeological Characterisation of {{Quaternary}} Gravel Deposits},
  volume = {129},
  issn = {00370738},
  shorttitle = {Relating Lithofacies to Hydrofacies},
  doi = {10.1016/S0037-0738(99)00067-6},
  number = {3-4},
  journal = {Sedimentary Geology},
  author = {Klingbeil, Ralf and Kleineidam, Sybille and Asprion, Ulrich and Aigner, Thomas and Teutsch, Georg},
  month = dec,
  year = {1999},
  keywords = {GIS,Hydrogeological properties,Outcrop mapping},
  pages = {299--310}
}

@article{Cirpka2015a,
  title = {Transverse Mixing in Three-dimensional Nonstationary Anisotropic Heterogeneous Porous Media},
  volume = {51},
  issn = {1944-7973},
  doi = {10.1002/2014WR015331},
  number = {1},
  journal = {Water Resources Research},
  author = {Cirpka, Olaf A and Chiogna, Gabriele and Rolle, Massimo and Bellin, Alberto},
  year = {2015},
  pages = {241--260}
}

@article{Chiogna2015,
  title = {Helical Flow in Three-dimensional Nonstationary Anisotropic Heterogeneous Porous Media},
  volume = {51},
  issn = {1944-7973},
  doi = {10.1002/\%00202014WR015330},
  number = {1},
  journal = {Water Resources Research},
  author = {Chiogna, Gabriele and Cirpka, Olaf A and Rolle, Massimo and Bellin, Alberto},
  year = {2015},
  pages = {261--280}
}

@article{Dai2004,
  title = {Transport in Heterogeneous Sediments with Multimodal Conductivity and Hierarchical Organization across Scales},
  volume = {294},
  issn = {00221694},
  doi = {10.1016/j.jhydrol.2003.10.024},
  number = {1-3},
  journal = {Journal of Hydrology},
  author = {Dai, Zhenxue and Ritzi, Robert W. and Huang, Chaocheng and Rubin, Yoram N. and Dominic, David F.},
  month = jul,
  year = {2004},
  pages = {68--86}
}

@article{Carle1996,
  title = {Transition Probability-Based Indicator Geostatistics},
  volume = {28},
  issn = {0882-8121, 1573-8868},
  doi = {10.1007/BF02083656},
  number = {4},
  journal = {Mathematical Geology},
  author = {Carle, Steven F. and Fogg, Graham E.},
  month = may,
  year = {1996},
  pages = {453--476}
}

@article{Haslauer2012,
  title = {Effects of Non-{{Gaussian}} Copula-based Hydraulic Conductivity Fields on Macrodispersion},
  volume = {48},
  issn = {1944-7973},
  doi = {10.1029/2011WR011425},
  number = {7},
  journal = {Water Resources Research},
  author = {Haslauer, CP and Guthke, P and B{\'a}rdossy, A and Sudicky, EA},
  year = {2012}
}

@article{Stauffer2007,
  title = {Impact of Highly Permeable Sediment Units with Inclined Bedding on Solute Transport in Aquifers},
  volume = {30},
  issn = {03091708},
  doi = {10.1016/j.advwatres.2007.04.008},
  number = {11},
  journal = {Advances in Water Resources},
  author = {Stauffer, Fritz},
  month = nov,
  year = {2007},
  keywords = {Anisotropy,Groundwater whirls},
  pages = {2194--2201}
}

@article{Koltermann1996,
  title = {Heterogeneity in {{Sedimentary Deposits}}: {{A Review}} of {{Structure}}-{{Imitating}}, {{Process}}-{{Imitating}}, and {{Descriptive Approaches}}},
  volume = {32},
  issn = {1944-7973},
  doi = {10.1029/96WR00025},
  number = {9},
  journal = {Water Resources Research},
  author = {Koltermann, Christine E. and Gorelick, Steven M.},
  month = apr,
  year = {1996},
  keywords = {1824 Geomorphology: general,1831 Groundwater quality,1869 Stochastic hydrology},
  pages = {2617--2658}
}

@article{Poeter1990,
  title = {Influence of {{Aquifer Heterogeneity}} on {{Contaminant Transport}} at the {{Hanford Site}}},
  volume = {28},
  issn = {0017-467X, 1745-6584},
  doi = {10.1111/j.1745-6584.1990.tb01726.x},
  number = {6},
  journal = {Ground Water},
  author = {Poeter, Eileen and Gaylord, David R.},
  month = nov,
  year = {1990},
  pages = {900--909}
}

@article{Allen1983,
  title = {Studies in Fluviatile Sedimentation: {{Bars}}, Bar-Complexes and Sandstone Sheets (Low-Sinuosity Braided Streams) in the Brownstones ({{L}}. {{Devonian}}), {{Welsh}} Borders},
  volume = {33},
  issn = {00370738},
  shorttitle = {Studies in Fluviatile Sedimentation},
  doi = {10.1016/0037-0738(83)90076-3},
  number = {4},
  journal = {Sedimentary Geology},
  author = {Allen, J.R.L.},
  month = jan,
  year = {1983},
  pages = {237--293}
}

@article{Strebelle2002,
  title = {Conditional {{Simulation}} of {{Complex Geological Structures Using Multiple}}-{{Point Statistics}}},
  volume = {34},
  issn = {0882-8121},
  doi = {10.1023/A:1014009426274},
  number = {1},
  journal = {Mathematical Geology},
  author = {Strebelle, Sebastien},
  month = jan,
  year = {2002},
  keywords = {geostatistics,random geometry,stochastic simulation,training image},
  pages = {1--21}
}

@article{Anderson1989,
  title = {Hydrogeologic Facies Models to Delineate Large-Scale Spatial Trends in Glacial and Glaciofluvial Sediments},
  volume = {101},
  issn = {00167606},
  doi = {10.1130/0016-7606(1989)101<0501:HFMTDL>2.3.CO;2},
  number = {4},
  journal = {Geological Society of America Bulletin},
  author = {Anderson, Mary P.},
  month = apr,
  year = {1989},
  pages = {501--511}
}

@book{Miall1996,
  address = {Berlin ; New York},
  title = {The Geology of Fluvial Deposits: Sedimentary Facies, Basin Analysis, and Petroleum Geology},
  isbn = {978-3-540-59186-3 978-0-387-59186-5},
  lccn = {QE471.2 .M53 1996},
  shorttitle = {The Geology of Fluvial Deposits},
  publisher = {{Springer}},
  author = {Miall, Andrew D.},
  year = {1996},
  keywords = {Alluvium,Sedimentation and deposition}
}

@article{Bakker2002,
  title = {A {{Dupuit}} Formulation for Flow in Layered, Anisotropic Aquifers},
  volume = {25},
  issn = {0309-1708},
  doi = {10.1016/S0309-1708(02)00074-X},
  number = {7},
  journal = {Advances in Water Resources},
  author = {Bakker, Mark and Hemker, Kick},
  month = jul,
  year = {2002},
  keywords = {Anisotropy,Capture zone,Dupuit approximation,Groundwater whirls,Layered aquifer},
  pages = {747--754}
}

@article{Asprion1999,
  title = {Towards Realistic Aquifer Models: Three-Dimensional Georadar Surveys of {{Quaternary}} Gravel Deltas ({{Singen Basin}}, {{SW Germany}})},
  volume = {129},
  issn = {0037-0738},
  doi = {10.1016/S0037-0738(99)00068-8},
  number = {3\textendash{}4},
  journal = {Sedimentary Geology},
  author = {Asprion, U. and Aigner, T.},
  month = dec,
  year = {1999},
  keywords = {aquifer models,ground-penetrating radar,Quaternary deltas,three-dimensional models},
  pages = {281--297}
}

@article{Bayer2015,
  title = {High Resolution Multi-Facies Realizations of Sedimentary Reservoir and Aquifer Analogs},
  volume = {2},
  journal = {Scientific Data},
  author = {Bayer, Peter and Comunian, Alessandro and H{\"o}yng, Dominik and Mariethoz, Gregoire},
  month = jul,
  year = {2015},
  pages = {150033}
}

@article{Linde2015,
  title = {Geological Realism in Hydrogeological and Geophysical Inverse Modeling: {{A}} Review},
  volume = {86, Part A},
  issn = {0309-1708},
  doi = {10.1016/j.advwatres.2015.09.019},
  journal = {Advances in Water Resources},
  author = {Linde, Niklas and Renard, Philippe and Mukerji, Tapan and Caers, Jef},
  month = dec,
  year = {2015},
  keywords = {geological realism,Geophysics,geostatistics,heterogeneity,Hydrogeology,Hydrogeophysics,Inverse problems,Markov chain Monte Carlo},
  pages = {86--101}
}

@techreport{Carle1999,
  address = {California},
  title = {T-{{PROGS}}: {{Transition}} Probability Geostatistical Software},
  institution = {University of California, Davis},
  author = {Carle, Steven F},
  year = {1999}
}

@article{dellArciprete2012,
  title = {Comparison of Three Geostatistical Methods for Hydrofacies Simulation: A Test on Alluvial Sediments},
  volume = {20},
  issn = {1431-2174},
  number = {2},
  journal = {Hydrogeology journal},
  author = {{dell'Arciprete}, Diana and Bersezio, Riccardo and Felletti, Fabrizio and Giudici, Mauro and Comunian, Alessandro and Renard, Philippe},
  year = {2012},
  pages = {299--311}
}

@article{Weissmann1999,
  title = {Multi-Scale Alluvial Fan Heterogeneity Modeled with Transition Probability Geostatistics in a Sequence Stratigraphic Framework},
  volume = {226},
  issn = {0022-1694},
  doi = {10.1016/S0022-1694(99)00160-2},
  number = {1\textendash{}2},
  journal = {Journal of Hydrology},
  author = {Weissmann, G.S. and Fogg, G.E.},
  month = dec,
  year = {1999},
  keywords = {Alluvial fans,geostatistics,Hydrogeology,Sequence stratigraphy},
  pages = {48--65}
}

@article{Pirot2015a,
  title = {Influence of Conceptual Model Uncertainty on Contaminant Transport Forecasting in Braided River Aquifers},
  volume = {531, Part 1},
  issn = {0022-1694},
  doi = {10.1016/j.jhydrol.2015.07.036},
  journal = {Groundwater flow and transport in aquifers: Insights from modeling and characterization at the field scale},
  author = {Pirot, Guillaume and Renard, Philippe and Huber, Emanuel and Straubhaar, Julien and Huggenberger, Peter},
  month = dec,
  year = {2015},
  keywords = {Aquifer,Braided river,contaminant transport,groundwater,Modeling,Uncertainty},
  pages = {124--141}
}

@article{Zhang2015,
  title = {Multiscale Solute Transport Upscaling for a Three-Dimensional Hierarchical Porous Medium},
  volume = {51},
  issn = {00431397},
  doi = {10.1002/2014WR016202},
  number = {3},
  journal = {Water Resources Research},
  author = {Zhang, Mingkan and Zhang, Ye},
  month = mar,
  year = {2015},
  pages = {1688--1709}
}

@incollection{Morison1987,
  address = {Tulsa},
  series = {Special Publication},
  title = {Sedimentology of the {{White Channel}} Gravels, {{Klondike}} Area, {{Yukon Territory}}: Fluvial Deposits of a Confined Valley},
  volume = {39},
  booktitle = {Recent {{Developments}} in {{Fluvial Sedimentology}}},
  publisher = {{The Society of Economic Paleontologists and Mineralogists}},
  author = {Morison, Stephen R and Hein, Frances J.},
  editor = {Ethridge, F.G. and Flores, R.M. and Harvey, M.D.},
  year = {1987},
  pages = {205--216}
}

@article{Aigner1999,
  title = {A Hierarchical Process-Approach to Reservoir Heterogeneity: Examples from Outcrop Analogues},
  volume = {22},
  issn = {1279-8215},
  number = {1},
  journal = {Bulletin du Centre de Recherches Elf Exploration Production},
  author = {Aigner, T and Heinz, J and Hornung, J and Asprion, U},
  year = {1999},
  pages = {1--11}
}

@article{Weissmann2015,
  title = {Characterization and Quantification of Aquifer Heterogeneity Using Outcrop Analogs at the {{Canadian Forces Base Borden}}, {{Ontario}}, {{Canada}}},
  issn = {0016-7606, 1943-2674},
  doi = {10.1130/B31193.1},
  journal = {Geological Society of America Bulletin},
  author = {Weissmann, G.S. and Pickel, A. and McNamara, K.C. and Frechette, J.D. and Kalinovich, I. and Allen-King, R.M. and Jankovic, I.},
  month = mar,
  year = {2015},
  pages = {B31193.1}
}

@article{Hoyng2014,
  title = {High-Resolution Aquifer Analog of Fluvial\textendash{}aeolian Sediments of the {{Guarani}} Aquifer System},
  volume = {71},
  issn = {1866-6280, 1866-6299},
  doi = {10.1007/s12665-013-2684-5},
  number = {7},
  journal = {Environmental Earth Sciences},
  author = {H{\"o}yng, Dominik and D'Affonseca, Fernando Mazo and Bayer, Peter and {de Oliveira}, Edson Gomes and Perinotto, Jos{\'e} Alexandre J. and Reis, F{\'a}bio and Wei{\ss}, Holger and Grathwohl, Peter},
  month = apr,
  year = {2014},
  pages = {3081--3094}
}

@article{Huber2016,
  title = {Subsurface Flow Mixing in Coarse, Braided River Deposits},
  volume = {20},
  issn = {1607-7938},
  doi = {10.5194/hess-20-2035-2016},
  number = {5},
  journal = {Hydrology and Earth System Sciences},
  author = {Huber, Emanuel and Huggenberger, Peter},
  month = may,
  year = {2016},
  pages = {2035--2046}
}

@article{Zheng2011,
  title = {Lessons {{Learned}} from 25 {{Years}} of {{Research}} at the {{MADE Site}}},
  volume = {49},
  issn = {0017467X},
  doi = {10.1111/j.1745-6584.2010.00753.x},
  number = {5},
  journal = {Ground Water},
  author = {Zheng, Chunmiao and Bianchi, Marco and Gorelick, Steven M.},
  month = sep,
  year = {2011},
  keywords = {MADE site},
  pages = {649--662}
}

@article{Bianchi2016,
  title = {A Lithofacies Approach for Modeling Non-{{Fickian}} Solute Transport in a Heterogeneous Alluvial Aquifer: {{A LITHOFACIES APPROACH FOR TRANSPORT}}},
  volume = {52},
  issn = {00431397},
  shorttitle = {A Lithofacies Approach for Modeling Non-{{Fickian}} Solute Transport in a Heterogeneous Alluvial Aquifer},
  doi = {10.1002/2015WR018186},
  number = {1},
  journal = {Water Resources Research},
  author = {Bianchi, Marco and Zheng, Chunmiao},
  month = jan,
  year = {2016},
  pages = {552--565}
}

@article{Krzyszkowski2001,
  title = {{Wisconsinan Inter-Lobal Stratigraphy in Three Quarries Near Woodstock, Ontario}},
  volume = {55},
  issn = {0705-7199, 1492-143X},
  doi = {10.7202/005657ar},
  number = {1},
  journal = {G{\'e}ographie physique et Quaternaire},
  author = {Krzyszkowski, Dariusz and Karrow, P. F.},
  year = {2001},
  keywords = {Characterisation,Glacial till,Woodstock},
  pages = {3}
}

@article{Pyrcz2009,
  title = {{{ALLUVSIM}}: {{A}} Program for Event-Based Stochastic Modeling of Fluvial Depositional Systems},
  volume = {35},
  issn = {00983004},
  shorttitle = {{{ALLUVSIM}}},
  doi = {10.1016/j.cageo.2008.09.012},
  number = {8},
  journal = {Computers \& Geosciences},
  author = {Pyrcz, M.J. and Boisvert, J.B. and Deutsch, C.V.},
  month = aug,
  year = {2009},
  pages = {1671--1685}
}

@article{Falivene2006,
  title = {Best Practice Stochastic Facies Modeling from a Channel-Fill Turbidite Sandstone Analog (the {{Quarry}} Outcrop, {{Eocene Ainsa}} Basin, Northeast {{Spain}})},
  volume = {90},
  issn = {0149-1423},
  doi = {10.1306/02070605112},
  number = {7},
  journal = {AAPG Bulletin},
  author = {Falivene, Oriol and Arbues, Pau and Gardiner, Andy and Pickup, Gillian and Munoz, Josep Anton and Caberra, Lluis},
  month = jul,
  year = {2006},
  keywords = {channel forms,facies architecture,Modeling},
  pages = {1003--1029}
}

@article{Burger1997,
  title = {Measurement of Anisotropic Hydraulic Conductivity in Unconsolidated Sands: {{A}} Case Study from a Shoreface Deposit, {{Oyster}}, {{Virginia}}},
  volume = {33},
  issn = {00431397},
  shorttitle = {Measurement of Anisotropic Hydraulic Conductivity in Unconsolidated Sands},
  doi = {10.1029/97WR00570},
  number = {6},
  journal = {Water Resources Research},
  author = {Burger, Robert L. and Belitz, Kenneth},
  month = jun,
  year = {1997},
  pages = {1515--1522}
}

@article{Bakker2016,
  title = {Scripting {{MODFLOW Model Development Using Python}} and {{FloPy}}},
  volume = {54},
  issn = {1745-6584},
  doi = {10.1111/gwat.12413},
  number = {5},
  journal = {Groundwater},
  author = {Bakker, M. and Post, V. and Langevin, C. D. and Hughes, J. D. and White, J. T. and Starn, J. J. and Fienen, M. N.},
  month = sep,
  year = {2016},
  pages = {733--739}
}

@article{Bennett2017,
  title = {The Impact of Sedimentary Anisotropy on Solute Mixing in Stacked Scour-Pool Structures},
  volume = {53},
  issn = {00431397},
  shorttitle = {The Impact of Sedimentary Anisotropy on Solute Mixing in Stacked Scour-Pool Structures},
  doi = {10.1002/2016WR019665},
  number = {4},
  journal = {Water Resources Research},
  author = {Bennett, Jeremy and Haslauer, Claus P. and Cirpka, Olaf A.},
  month = apr,
  year = {2017},
  pages = {2813--2832}
}

@article{Finkel2016,
  title = {A Travel Time-Based Approach to Model Kinetic Sorption in Highly Heterogeneous Porous Media via Reactive Hydrofacies},
  volume = {52},
  issn = {1944-7973},
  doi = {10.1002/2016WR019147},
  number = {12},
  journal = {Water Resources Research},
  author = {Finkel, Michael and Grathwohl, Peter and Cirpka, Olaf A.},
  month = dec,
  year = {2016},
  keywords = {1832 Groundwater transport,1858 Rocks: chemical properties,1859 Rocks: physical properties,1894 Instruments and techniques: modeling,Aquifer heterogeneity,kinetic sorption,mathematical model,Solute transport},
  pages = {9390--9411}
}

@phdthesis{Bayer2000,
  address = {T{\"u}bingen, Germany},
  type = {Diploma thesis},
  title = {Aquifer-{{Analog}}-{{Studie}} in Grobklastischen `Braided River' {{Ablagerungen}}: Sediment{\"a}re/Hydrogeologische {{Wandkartierung}} Und {{Kalibrierung}} von {{Georadarmessungen}} \textendash{} {{Diplomkartierung}}},
  school = {University of T{\"u}bingen},
  author = {Bayer, Peter},
  year = {2000}
}

@article{Meckel2017,
  title = {A Method to Generate Small-Scale, High-Resolution Sedimentary Bedform Architecture Models Representing Realistic Geologic Facies},
  volume = {7},
  issn = {2045-2322},
  doi = {10.1038/s41598-017-09065-9},
  number = {1},
  journal = {Scientific Reports},
  author = {Meckel, T. A. and Trevisan, L. and Krishnamurthy, P. G.},
  month = aug,
  year = {2017},
  pages = {9238}
}

@article{Savoy2017,
  title = {Geological {{Heterogeneity}}: {{Goal}}-{{Oriented Simplification}} of {{Structure}} and {{Characterization Needs}}},
  issn = {0309-1708},
  doi = {10.1016/j.advwatres.2017.08.017},
  journal = {Advances in Water Resources},
  author = {Savoy, Heather and Kalbacher, Thomas and Dietrich, Peter and Rubin, Yoram},
  year = {2017},
  keywords = {Aquifer analog,Arrival times,Geological heterogeneity,Hydrofacies,Subsurface characterization}
}

@article{Chapuis1989,
  title = {Hydraulic Anisotropy of Homogeneous Soils and Rocks: Influence of the Densification Process},
  volume = {39},
  issn = {1435-9537},
  doi = {10.1007/BF02592538},
  number = {1},
  journal = {Bulletin of the International Association of Engineering Geology - Bulletin de l'Association Internationale de G{\'e}ologie de l'Ing{\'e}nieur},
  author = {Chapuis, Robert P. and Gill, Denis E.},
  month = apr,
  year = {1989},
  pages = {75--86}
}

@article{Bowling2005,
  title = {Delineating {{Alluvial Aquifer Heterogeneity Using Resistivity}} and {{GPR Data}}},
  volume = {43},
  issn = {1745-6584},
  doi = {10.1111/j.1745-6584.2005.00103.x},
  number = {6},
  journal = {Ground Water},
  author = {Bowling, Jerry C. and Rodriguez, Antonio B. and Harry, Dennis L. and Zheng, Chunmiao},
  month = nov,
  year = {2005},
  keywords = {MADE site},
  pages = {890--903}
}

@article{Zheng2003,
  title = {Analysis of {{Solute Transport}} in {{Flow Fields Influenced}} by {{Preferential Flowpaths}} at the {{Decimeter Scale}}},
  volume = {41},
  issn = {1745-6584},
  doi = {10.1111/j.1745-6584.2003.tb02578.x},
  number = {2},
  journal = {Ground Water},
  author = {Zheng, Chunmiao and Gorelick, Steven M.},
  month = mar,
  year = {2003},
  keywords = {MADE site},
  pages = {142--155}
}

@techreport{Boggs1990,
  address = {Palo Alto, California, USA},
  type = {Interim Report},
  title = {Hydrogeologic Characterization of the {{MADE}} Site},
  number = {EN-6915},
  institution = {Electric Power Research Institute},
  author = {Boggs, J. Mark and Young, Steven C and Benton, Dudley J. and Chung, Y. C.},
  month = jul,
  year = {1990}
}

@article{Bowling2006,
  title = {Geophysical Constraints on Contaminant Transport Modeling in a Heterogeneous Fluvial Aquifer},
  volume = {85},
  issn = {0169-7722},
  doi = {10.1016/j.jconhyd.2006.01.006},
  number = {1},
  journal = {Journal of Contaminant Hydrology},
  author = {Bowling, Jerry C. and Zheng, Chunmiao and Rodriguez, Antonio B. and Harry, Dennis L.},
  month = may,
  year = {2006},
  keywords = {Aquifer heterogeneity,Contaminant transport modeling,Hydrogeophysics,MADE site,Resistivity},
  pages = {72--88}
}

@article{Bowling2007,
  title = {Integrated Geophysical and Geological Investigation of a Heterogeneous Fluvial Aquifer in {{Columbus Mississippi}}},
  volume = {62},
  issn = {0926-9851},
  doi = {10.1016/j.jappgeo.2006.08.003},
  number = {1},
  journal = {Journal of Applied Geophysics},
  author = {Bowling, Jerry C. and Harry, Dennis L. and Rodriguez, Antonio B. and Zheng, Chunmiao},
  month = may,
  year = {2007},
  keywords = {GPR,Hydrogeology,Hydrogeophysics,MADE site,Near Surface Geophysics,Resistivity,Seismic Reflection,Surface Waves},
  pages = {58--73}
}

@inproceedings{Mitchell1956,
  title = {The Fabric of Natural Clays and Its Relation to Engineering Properties},
  volume = {35},
  author = {Mitchell, James K},
  year = {1956}
}

@techreport{BrentJr.1979,
  title = {Soil {{Survey}} of {{Lowndes County}}, {{Mississippi}}},
  institution = {United States Department of Agriculture, Soil Conservation Service},
  author = {Brent, Jr., Floyd V.},
  month = sep,
  year = {1979},
  keywords = {MADE site}
}

@techreport{Murphree1966,
  address = {Washington DC, USA},
  title = {Soil {{Survey}} of {{Monroe County}}, {{Mississippi}}},
  number = {Series 1961, No. 37},
  institution = {United States Department of Agriculture, Soil Conservation Service},
  author = {Murphree, L. C. and Anderson, J. L. and Ferguson, R. M. and Garber, M. C. and Martin, M. G. and Miller, K. H. and Nichols, L. H.},
  month = nov,
  year = {1966},
  keywords = {MADE site}
}

@article{Shao2011,
  title = {In Situ Determination of Anisotropic Permeability of Clay},
  volume = {36},
  issn = {1474-7065},
  doi = {10.1016/j.pce.2011.07.028},
  number = {17},
  journal = {Clays in Natural \& Engineered Barriers for Radioactive Waste Confinement},
  author = {Shao, H. and S{\"o}nnke, J. and Morel, J. and Krug, S.},
  month = jan,
  year = {2011},
  keywords = {Bure site,Clay stone,Hydraulic anisotropy,In situ permeability measurements,Mont Terri RL,Numerical analysis with code Rock Flow},
  pages = {1688--1692}
}

@article{Smith1981,
  title = {Spatial Variability of Flow Parameters in a Stratified Sand},
  volume = {13},
  issn = {1573-8868},
  doi = {10.1007/BF01032006},
  number = {1},
  journal = {Journal of the International Association for Mathematical Geology},
  author = {Smith, Leslie},
  month = feb,
  year = {1981},
  keywords = {Anisotropy},
  pages = {1--21}
}

@article{Wilson2008,
  title = {Grain Size and Depositional Environment as Predictors of Permeability in Coastal Marine Sands},
  volume = {80},
  issn = {0272-7714},
  doi = {10.1016/j.ecss.2008.06.011},
  number = {1},
  journal = {Estuarine, Coastal and Shelf Science},
  author = {Wilson, Alicia M. and Huettel, Markus and Klein, Stephen},
  month = oct,
  year = {2008},
  keywords = {grain size,marine sand deposits,Permeability,sublittoral,submarine groundwater discharge},
  pages = {193--199}
}

@phdthesis{Thomson2004,
  address = {Waterloo, Ontario, Canada},
  type = {MSc thesis},
  title = {Influence of Grain Size Variability and Sedimentology on Solvent {{DNAPL}} Distribution in the {{Borden Aquifer}}},
  school = {University of Waterloo},
  author = {Thomson, David A.},
  year = {2004}
}

@article{Ferguson1976,
  title = {Disturbed Periodic Model for River Meanders},
  volume = {1},
  issn = {1931-8065},
  doi = {10.1002/esp.3290010403},
  number = {4},
  journal = {Earth Surface Processes},
  author = {Ferguson, R. I.},
  month = oct,
  year = {1976},
  pages = {337--347}
}

@article{Dietrich1993,
  title = {A Fast and Exact Method for Multidimensional Gaussian Stochastic Simulations},
  volume = {29},
  issn = {1944-7973},
  doi = {10.1029/93WR01070},
  number = {8},
  journal = {Water Resources Research},
  author = {Dietrich, C. R. and Newsam, G. N.},
  month = aug,
  year = {1993},
  keywords = {1830 Groundwater/surface water interaction,1869 Stochastic hydrology,9820 Techniques applicable in three or more fields},
  pages = {2861--2869}
}

@article{Tartakovsky2008,
  title = {Effects of {{Peclet}} Number on Pore-Scale Mixing and Channeling of a Tracer and on Directional Advective Porosity},
  volume = {35},
  issn = {1944-8007},
  doi = {10.1029/2008GL035895},
  number = {21},
  journal = {Geophysical Research Letters},
  author = {Tartakovsky, Alexandre M. and Neuman, Shlomo P.},
  month = nov,
  year = {2008},
  keywords = {1832 Groundwater transport,1847 Modeling,1849 Numerical approximations and analysis,advective porosity,Channeling,mixing},
  pages = {n/a--n/a}
}

@incollection{Miall1991a,
  address = {Tulsa, OK},
  series = {CSP3},
  title = {Hierarchies of Architectural Units in Terrigenous Clastic Rocks and Their Relationship to Sedimentation Rate},
  booktitle = {The Three-Dimensional Facies Architecture of Terrigenous Clastic Sediments, and Its Implications for Hydrocarbon Discovery and Recovery},
  publisher = {{Society for Sedimentary Geology}},
  author = {Miall, Andrew D},
  editor = {Miall, Andrew D and Tyler, N},
  year = {1991}
}

@article{Bohling2016,
  title = {Reassessing the {{MADE}} Direct-Push Hydraulic Conductivity Data Using a Revised Calibration Procedure},
  volume = {52},
  issn = {1944-7973},
  doi = {10.1002/2016WR019008},
  number = {11},
  journal = {Water Resources Research},
  author = {Bohling, Geoffrey C. and Liu, Gaisheng and Dietrich, Peter and Butler, James J.},
  month = nov,
  year = {2016},
  keywords = {1829 Groundwater hydrology,1894 Instruments and techniques: modeling,aquifer characterization,direct-push},
  pages = {8970--8985}
}

@article{Xiao2017,
  title = {Comparison of {{Multivariate Spatial Dependence Structures}} of {{DPIL}} and {{Flowmeter Hydraulic Conductivity Data Sets}} at the {{MADE Site}}},
  journal = {In preparation},
  author = {Xiao, Bo and Haslauer, Claus and Bohling, Geoffrey C.},
  year = {2017}
}

repository: driftingtides/hyvr

repo_name: driftingtides/hyvr

gha_language: Python


text:
package gatekeeper

import (
	"errors"
	"fmt"
	"strings"

	"github.com/gliderlabs/ssh"
	"github.com/rs/zerolog/log"

	"github.com/Xide/rssh/pkg/utils"
)

type Gate struct {
	Host string `json:"host"`
	Port uint16 `json:"port"`
}

type GateKeeper struct {
	srv       *ssh.Server
	frontGate Gate
	backends  []Gate
	clients   []AgentSlot
	lowPort   uint16
	highPort  uint16
}

func (g *GateKeeper) WithPortRange(low uint16, high uint16) error {
	g.lowPort = utils.Min(low, high)
	g.highPort = utils.Max(low, high)
	return nil
}

func NewGateKeeper(addr string, port uint16) (*GateKeeper, error) {
	return &GateKeeper{
		srv:       nil,
		frontGate: Gate{Host: addr, Port: port},
		lowPort:   30000,
		highPort:  40000,
	}, nil
}

func (g *GateKeeper) collectClosedSession(ctx ssh.Context, slot *AgentSlot) {
	<-ctx.Done()
	for x := 0; x < len(g.clients); x++ {
		if strings.Compare(slot.Domain, g.clients[x].Domain) == 0 {
			g.clients = append(g.clients[:x], g.clients[x+1:]...)
			log.Debug().Str("domain", slot.Domain).Msg("Closed agent connection")
			return
		}
	}
	log.Warn().Str("domain", slot.Domain).Msg("Could not find slot for garbage collection.")
}

func (g *GateKeeper) InitSSHServer() error {
	if g.srv != nil {
		return errors.New("SSH server already initialized")
	}
	addr := fmt.Sprintf("%s:%d", g.frontGate.Host, g.frontGate.Port)
	server := ssh.Server{
		Addr:    addr,
		Handler: ssh.Handler(g.proxyCommandHandler()),
		ReversePortForwardingCallback: ssh.ReversePortForwardingCallback(g.reversePortForwardHandler()),
	}
	g.srv = &server
	log.Info().
		Str("addr", g.frontGate.Host).
		Uint16("port", g.frontGate.Port).
		Msg("starting SSH server")
	go server.ListenAndServe()
	return nil
}

repository: aslafy-z/rssh

repo_name: aslafy-z/rssh


text:
package chains

import (
	"time"

	"github.com/xmn-services/rod-network/libs/entities"
	"github.com/xmn-services/rod-network/libs/file"
	"github.com/xmn-services/rod-network/libs/hash"
)

// NewService creates a new service instance
func NewService(fileService file.Service, fileNameWithExt string) Service {
	adapter := NewAdapter()
	return createService(adapter, fileService, fileNameWithExt)
}

// NewRepository creates a new repository instance
func NewRepository(fileRepository file.Repository, fileNameWithExt string) Repository {
	adapter := NewAdapter()
	return createRepository(adapter, fileRepository, fileNameWithExt)
}

// NewAdapter creates a new adapter instance
func NewAdapter() Adapter {
	return createAdapter()
}

// NewBuilder creates a new builder instance
func NewBuilder() Builder {
	immutableBuilder := entities.NewImmutableBuilder()
	return createBuilder(immutableBuilder)
}

// Adapter represents a chain adapter
type Adapter interface {
	ToChain(js []byte) (Chain, error)
	ToJSON(chain Chain) ([]byte, error)
}

// Builder represents the chain builder
type Builder interface {
	Create() Builder
	WithHash(hash hash.Hash) Builder
	WithGenesis(gen hash.Hash) Builder
	WithRoot(root hash.Hash) Builder
	WithHead(head hash.Hash) Builder
	WithTotal(total uint) Builder
	CreatedOn(createdOn time.Time) Builder
	Now() (Chain, error)
}

// Chain represents a chain
type Chain interface {
	entities.Immutable
	Genesis() hash.Hash
	Root() hash.Hash
	Head() hash.Hash
	Total() uint
}

// Repository represents the chain repository
type Repository interface {
	Retrieve() (Chain, error)
}

// Service represents the chain service
type Service interface {
	Save(chain Chain) error
}

repository: xmn-services/rod-network

repo_name: xmn-services/rod-network


text:
@article{Dong2020,
abstract = {The 2030 Agenda for Sustainable Development agreed by UN Member States in 2015 will drive global and national policies for the coming fifteen years. Arsenic will feature more prominently in this development agenda, both in terms of direct influence on the target for universal access to safe drinking water, and indirect impacts on the realization of other targets. For states to successfully track progress towards the new targets, surveillance and monitoring systems will need to be strengthened at national and sub-national levels. Development and strengthening of such systems will take many years, and will certainly still be in progress by the end of the Sustainable Development Goals in 2030.},
author = {Dong, E and Du, H and Gardner, L},
doi = {10.1007/s00134-020-05991-x.Bizzarro},
file = {:C$\backslash$:/Users/Sujeewa/Downloads/maindfsfsfd.pdf:pdf},
isbn = {0013402005},
journal = {Inf Dis},
keywords = {and,cause,common colds,electron microscopy,hibit such symptoms as,icam-1,infections usually mild in,more than 200 different,nasal congestion,nature that ex-,receptor,rhinovirus,sneezing,virus,viruses are known to},
mendeley-groups = {Temporary},
number = {5},
pages = {533--534},
pmid = {32305286},
title = {{An interactive web-based dashboard to track COVID-19 in real time}},
volume = {20},
year = {2020}
}
@misc{JohnsHopkinsUniversity2020,
author = {{Johns Hopkins University}},
mendeley-groups = {Temporary},
title = {{COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University}},
url = {https://github.com/CSSEGISandData/COVID-19},
year = {2020}
}

repository: SujeewaDon/genomics-course

repo_name: SujeewaDon/genomics-course


text:
inherit esw_examples features_check

REQUIRED_MACHINE_FEATURES = "axiethernet"

ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/axiethernet/examples/"

repository: Xilinx/meta-xilinx

repo_name: Xilinx/meta-xilinx

gha_language: C


text:
@conference{Sethi2019b,
 author = {Sethi, A.  and R. Akbar and J. P. Aikio and R. A. Shaheen and A. Pärssinen and T. Rahkonen},
 booktitle = {Proc. IEEE Nordic Circuits and Systems Conf. (NORCAS): NORCHIP and Int. Symp. of System-on-Chip (SoC)},
 title = {Designing at Millimeter-Wave: Lessons from a Triple Coil Variable Transformer},
 year = {2019}
}

repository: aloksethi/academic-kickstart

repo_name: aloksethi/academic-kickstart