text:
var regionBoarders = [{
    "type": "Feature",
    "properties": {"region_name": "israel-tel-aviv-metro"},
    "geometry": {
        "type": "Polygon",
        "coordinates": [[
			[34.376221,32.525974],
			[35.071106,32.528289],
			[35.071106,31.629998],
			[34.411926,31.763202]
        ]]
    }
}, {
    "type": "Feature",
    "properties": {"region_name": "israel-jerusalem"},
    "geometry": {
        "type": "Polygon",
        "coordinates": [[
			[34.9757720947266,31.9728451789145],
			[35.3726531982422,31.9798346823866],
			[35.3630401611328,31.5185593588632],
			[34.8205902099609,31.5232420038613],
			[34.8865081787109,31.87493627062],
			[34.9702789306641,31.9646900854681]
        ]]
    }
}, {
    "type": "Feature",
    "properties": {"region_name": "israel-north"},
    "geometry": {
        "type": "Polygon",
        "coordinates": [[
			[34.7169067382812,33.363512395936],
			[36.0380126953125,33.370393945357],
			[36.0737182617187,32.2438792751817],
			[34.75810546875,32.41098238817]

        ]]
    }
}, {
    "type": "Feature",
    "properties": {"region_name": "israel-south"},
    "geometry": {
        "type": "Polygon",
        "coordinates": [[
			[34.5960571289062,31.8947595805367],
			[34.9146606445312,31.7804254697252],
			[34.9531127929687,31.6659498301022],
			[35.6205322265625,31.499826432047],
			[34.9311401367187,29.0930796776634],
			[33.9451171875,31.4506346416456]
        ]]
    }
}];

extension: js


text:
DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux."
HOMEPAGE = "http://pagesperso-orange.fr/sebastien.godard/"
LICENSE = "GPL"
SECTION = "console/utils"
PR = "r1"

SRC_URI = "http://pagesperso-orange.fr/sebastien.godard/sysstat-${PV}.tar.gz"

inherit autotools

do_configure_prepend() {
	sed -i s,'-g $(MAN_GROUP)','', Makefile.in
}

FILES_${PN} += "${libdir}/sa"

TARGET_CC_ARCH += "${LDFLAGS}"

license: MIT

license_type: permissive

branch_name: refs/heads/master

extension: bb


text:
QEMU_TARGETS ?= "aarch64 arm microblaze microblazeel"

require recipes-devtools/qemu/qemu.inc

SUMMARY = "Xilinx's fork of a fast open source processor emulator"
HOMEPAGE = "https://github.com/xilinx/qemu/"

LIC_FILES_CHKSUM = " \
		file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
		file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913 \
		"

SRCREV = "4b90a13118b6e005d688d7aefb0900f7a67531df"
SRC_URI = "git://github.com/Xilinx/qemu.git;protocol=https;nobranch=1"

S = "${WORKDIR}/git"

# Disable KVM completely
KVMENABLE = "--disable-kvm"

# Strip all appends (needed because qemu.inc adds patches using overrides)
SRC_URI[_append] = ""

DISABLE_STATIC_pn-qemu-xilinx-native = ""

# append a suffix dir, to allow multiple versions of QEMU to be installed
datadir_append = "/qemu-xilinx"
bindir_append = "/qemu-xilinx"
libexecdir_append = "/qemu-xilinx"

# ensure configure is passed the modified dirs
EXTRA_OECONF += " \
		--bindir=${bindir} \
		--datadir=${datadir} \
		--mandir=${mandir} \
		--docdir=${docdir} \
		"

do_install() {
	export STRIP="true"
	autotools_do_install
}

repository: ternaam/meta-xilinx

repo_name: ternaam/meta-xilinx


text:
@incollection{robinson2007theoriesglobalization,
  title = {{Theories of globalization}},
  booktitle = {{The Blackwell companion to globalization}},
  publisher = {{John Wiley \& Sons}},
  author = {Robinson, William I},
  collaborator = {Ritzer, George},
  year = {2007},
  keywords = {orphaned},
  pages = {125-143},
  annote = {Extracted Annotations (zondag 17 november 2013 15:45:35) "What is the relationship between globalization and the nation-state? Is the nation-state being undermined?" (Robinson 2007:127) Relatedly, to what extent is the relationship between social structure and territoriality being redefined by globalization? Is there a deterritorialization of social relations under globalization? What is the relationship between the local and the global? How are space and time being reconfigured? (note on p.127) "Relatedly, to what extent is the relationship between social structure and territoriality being redefined by globalization? Is there a deterritorialization of social" (Robinson 2007:127) "relations under globalization? What is the relationship between the local and the global? How are space and time being reconfigured?" (Robinson 2007:128) "THE NETWORK SOCIETY Manuel Castells' groundbreaking trilogy, The Rise of the Network Society (1996, 1997, 1998), exemplifies a 'technologistic' approach to globalization" (Robinson 2007:132) "'communication decisively shapes culture because we do not see . . . reality as it 'is' but as our languages are'. He adds, 'we are not living in a global village, but in customized cottages, globally produced and locally distributed' (1996: 370)." (Robinson 2007:133)},
  file = {Robinson_2007_Theories of globalization.pdf:Better BibTeX.015/F64PVIN4/Robinson_2007_Theories of globalization.pdf:application/pdf}
}

repository: FlamingTempura/bibtex-tidy

repo_name: FlamingTempura/bibtex-tidy

gha_license_id: MIT

gha_language: TeX

extension: bib


text:
import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes'
import usersApi from '../api/index'

Vue.use(Router)

const router = new Router({
  routes,
  linkActiveClass: 'nav-item active'
})

router.beforeEach((to, from, next) => {
  if (to.matched.some(record => record.meta.requiresAuth) && !usersApi.isLoggedIn()) {
    next({name: 'login', query: {next: to.fullPath}})
  }
  next()
})

export default router

repository: casgroup-dev/BFF

repo_name: casgroup-dev/BFF

branch_name: refs/heads/dev

gha_language: Vue


text:
@article{Zhang2008,
 abstract = {In this article, we present a graph-based knowledge representation for biomedical digital library literature clustering An efficient clustering method is developed to identify the ontology-enriched k-highest density term subgraphs that capture the core semantic relationship information about each document cluster The distance between each document and the k term graph clusters is calculated. A document is then assigned to the closest term cluster. The extensive experimental results on two PubMed document sets (Disease10 and OHSUMED23) show that our approach is comparable to spherical k-means. The contributions of our approach are the following: (1) we provide two corpus-level graph representations to improve document clustering, a term co-occurrence graph and an abstract title graph; (2) we develop an efficient and effective document clustering algorithm by udentifying k distinguishable class-specific core term subgraphs using terms'global and local importance information; and (3) the identified term clusters give a meaningful explanation for the document clustering results. Copyright © 2008, IGI Global.},
 author = {Zhang, Xiaodan and Hu, Xiaohua and Xia, Jiali and Zhou, Xiaohua and Achananuparp, Palakorn},
 doi = {10.4018/jdwm.2008100105},
 issn = {15483932},
 journal = {International Journal of Data Warehousing and Mining},
 keywords = {Global ranking,Graph-based document clustering,Pagerank},
 number = {4},
 title = {A Graph-Based Biomedical Literature Clustering Approach Utilizing Term's Global and Local Importance Information},
 volume = {4},
 year = {2008}
}

repository: aekpalakorn/academic-kickstart

repo_name: aekpalakorn/academic-kickstart


text:
DESCRIPTION = "Python3 interface to the wxWidgets Cross-platform C++ GUI toolkit."
HOMEPAGE = "http://www.wxpython.org"

LICENSE = "WXwindows"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"

DEPENDS = "wxwidgets-native wxwidgets"

PYPI_PACKAGE = "wxPython"

SRC_URI += "file://add-back-option-build-base.patch \
            file://wxgtk-fixup-build-scripts.patch \
            file://sip-fix-override-functions.patch \
            file://0001-Update-Cython-version-to-fix-NanoSVG-issues-with-Pyt.patch \
            "
SRC_URI[sha256sum] = "00e5e3180ac7f2852f342ad341d57c44e7e4326de0b550b9a5c4a8361b6c3528"

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

inherit pypi setuptools3 pkgconfig features_check

REQUIRED_DISTRO_FEATURES = "x11"

export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR} --baselib=${baselib}'"

RDEPENDS:${PN} = "\
    python3-difflib \
    python3-image \
    python3-numpy \
    python3-pillow \
    python3-pprint \
    python3-pycairo \
    python3-six \
    python3-xml \
"


text:
/*
Copyright 2019 The Knative Authors

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 sequence

import (
	"context"
	"fmt"
	"reflect"

	"go.uber.org/zap"
	corev1 "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/api/equality"
	apierrs "k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/api/meta"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/dynamic"
	"k8s.io/client-go/tools/cache"
	duckapis "knative.dev/pkg/apis/duck"
	"knative.dev/pkg/controller"
	"knative.dev/pkg/tracker"

	duckv1alpha1 "knative.dev/eventing/pkg/apis/duck/v1alpha1"
	"knative.dev/eventing/pkg/apis/flows/v1alpha1"
	messagingv1alpha1 "knative.dev/eventing/pkg/apis/messaging/v1alpha1"
	listers "knative.dev/eventing/pkg/client/listers/flows/v1alpha1"
	messaginglisters "knative.dev/eventing/pkg/client/listers/messaging/v1alpha1"
	"knative.dev/eventing/pkg/duck"
	"knative.dev/eventing/pkg/logging"
	"knative.dev/eventing/pkg/reconciler"
	"knative.dev/eventing/pkg/reconciler/sequence/resources"
)

const (
	reconciled         = "Reconciled"
	reconcileFailed    = "ReconcileFailed"
	updateStatusFailed = "UpdateStatusFailed"
)

type Reconciler struct {
	*reconciler.Base

	// listers index properties about resources
	sequenceLister     listers.SequenceLister
	tracker            tracker.Interface
	channelableTracker duck.ListableTracker
	subscriptionLister messaginglisters.SubscriptionLister
}

// Check that our Reconciler implements controller.Reconciler
var _ controller.Reconciler = (*Reconciler)(nil)

// Reconcile compares the actual state with the desired, and attempts to
// reconcile the two. It then updates the Status block of the Sequence resource
// with the current Status of the resource.
func (r *Reconciler) Reconcile(ctx context.Context, key string) error {
	logging.FromContext(ctx).Debug("reconciling", zap.String("key", key))
	// Convert the namespace/name string into a distinct namespace and name
	namespace, name, err := cache.SplitMetaNamespaceKey(key)
	if err != nil {
		logging.FromContext(ctx).Error("invalid resource key", zap.Error(err))
		return nil
	}

	// Get the Sequence resource with this namespace/name
	original, err := r.sequenceLister.Sequences(namespace).Get(name)
	if apierrs.IsNotFound(err) {
		// The resource may no longer exist, in which case we stop processing.
		logging.FromContext(ctx).Error("Sequence key in work queue no longer exists")
		return nil
	} else if err != nil {
		return err
	}

	// Don't modify the informers copy
	sequence := original.DeepCopy()

	// Reconcile this copy of the Sequence and then write back any status
	// updates regardless of whether the reconcile error out.
	reconcileErr := r.reconcile(ctx, sequence)
	if reconcileErr != nil {
		logging.FromContext(ctx).Error("Error reconciling Sequence", zap.Error(reconcileErr))
		r.Recorder.Eventf(sequence, corev1.EventTypeWarning, reconcileFailed, "Sequence reconciliation failed: %v", reconcileErr)
	} else {
		logging.FromContext(ctx).Debug("Successfully reconciled Sequence")
		r.Recorder.Eventf(sequence, corev1.EventTypeNormal, reconciled, "Sequence reconciled")
	}

	// Since the reconciler took a crack at this, make sure it's reflected
	// in the status correctly.
	sequence.Status.ObservedGeneration = original.Generation

	if _, updateStatusErr := r.updateStatus(ctx, sequence); updateStatusErr != nil {
		logging.FromContext(ctx).Warn("Error updating Sequence status", zap.Error(updateStatusErr))
		r.Recorder.Eventf(sequence, corev1.EventTypeWarning, updateStatusFailed, "Failed to update sequence status: %s", key)
		return updateStatusErr
	}

	// Requeue if the resource is not ready:
	return reconcileErr
}

func (r *Reconciler) reconcile(ctx context.Context, s *v1alpha1.Sequence) error {
	s.Status.InitializeConditions()

	// Reconciling sequence is pretty straightforward, it does the following things:
	// 1. Create a channel fronting the whole sequence
	// 2. For each of the Steps, create a Subscription to the previous Channel
	//    (hence the first step above for the first step in the "steps"), where the Subscriber points to the
	//    Step, and create intermediate channel for feeding the Reply to (if we allow Reply to be something else
	//    than channel, we could just (optionally) feed it directly to the following subscription.
	// 3. Rinse and repeat step #2 above for each Step in the list
	// 4. If there's a Reply, then the last Subscription will be configured to send the reply to that.
	if s.DeletionTimestamp != nil {
		// Everything is cleaned up by the garbage collector.
		return nil
	}

	gvr, _ := meta.UnsafeGuessKindToResource(s.Spec.ChannelTemplate.GetObjectKind().GroupVersionKind())
	channelResourceInterface := r.DynamicClientSet.Resource(gvr).Namespace(s.Namespace)
	if channelResourceInterface == nil {
		return fmt.Errorf("unable to create dynamic client for: %+v", s.Spec.ChannelTemplate)
	}

	// Tell tracker to reconcile this Sequence whenever my channels change.
	track := r.channelableTracker.TrackInNamespace(s)

	channels := make([]*duckv1alpha1.Channelable, 0, len(s.Spec.Steps))
	for i := 0; i < len(s.Spec.Steps); i++ {
		ingressChannelName := resources.SequenceChannelName(s.Name, i)

		channelObjRef := corev1.ObjectReference{
			Kind:       s.Spec.ChannelTemplate.Kind,
			APIVersion: s.Spec.ChannelTemplate.APIVersion,
			Name:       ingressChannelName,
			Namespace:  s.Namespace,
		}
		// Track channels and enqueue sequence when they change.
		if err := track(channelObjRef); err != nil {
			return fmt.Errorf("unable to track changes to Channel: %v", err)
		}

		channelable, err := r.reconcileChannel(ctx, channelResourceInterface, s, channelObjRef)
		if err != nil {
			logging.FromContext(ctx).Error(fmt.Sprintf("Failed to reconcile Channel Object: %s/%s", s.Namespace, ingressChannelName), zap.Error(err))
			return err

		}
		channels = append(channels, channelable)
		logging.FromContext(ctx).Info(fmt.Sprintf("Reconciled Channel Object: %s/%s %+v", s.Namespace, ingressChannelName, channelable))
	}
	s.Status.PropagateChannelStatuses(channels)

	subs := make([]*messagingv1alpha1.Subscription, 0, len(s.Spec.Steps))
	for i := 0; i < len(s.Spec.Steps); i++ {
		sub, err := r.reconcileSubscription(ctx, i, s)
		if err != nil {
			return fmt.Errorf("failed to reconcile Subscription Object for step: %d : %s", i, err)
		}
		subs = append(subs, sub)
		logging.FromContext(ctx).Debug(fmt.Sprintf("Reconciled Subscription Object for step: %d: %+v", i, sub))
	}
	s.Status.PropagateSubscriptionStatuses(subs)

	return nil
}

func (r *Reconciler) updateStatus(ctx context.Context, desired *v1alpha1.Sequence) (*v1alpha1.Sequence, error) {
	p, err := r.sequenceLister.Sequences(desired.Namespace).Get(desired.Name)
	if err != nil {
		return nil, err
	}

	// If there's nothing to update, just return.
	if reflect.DeepEqual(p.Status, desired.Status) {
		return p, nil
	}

	// Don't modify the informers copy.
	existing := p.DeepCopy()
	existing.Status = desired.Status

	return r.EventingClientSet.FlowsV1alpha1().Sequences(desired.Namespace).UpdateStatus(existing)
}

func (r *Reconciler) reconcileChannel(ctx context.Context, channelResourceInterface dynamic.ResourceInterface, s *v1alpha1.Sequence, channelObjRef corev1.ObjectReference) (*duckv1alpha1.Channelable, error) {
	lister, err := r.channelableTracker.ListerFor(channelObjRef)
	if err != nil {
		logging.FromContext(ctx).Error("Error getting lister for Channel", zap.Any("channel", channelObjRef), zap.Error(err))
		return nil, err
	}
	c, err := lister.ByNamespace(channelObjRef.Namespace).Get(channelObjRef.Name)
	if err != nil {
		if apierrs.IsNotFound(err) {
			newChannel, err := resources.NewChannel(channelObjRef.Name, s)
			logging.FromContext(ctx).Error(fmt.Sprintf("Creating Channel Object: %+v", newChannel))
			if err != nil {
				logging.FromContext(ctx).Error("Failed to create Channel resource object", zap.Any("channel", channelObjRef), zap.Error(err))
				return nil, err
			}
			created, err := channelResourceInterface.Create(newChannel, metav1.CreateOptions{})
			if err != nil {
				logging.FromContext(ctx).Error("Failed to create Channel", zap.Any("channel", channelObjRef), zap.Error(err))
				return nil, err
			}
			logging.FromContext(ctx).Debug("Created Channel", zap.Any("channel", newChannel))
			// Convert to Channel duck so that we can treat all Channels the same.
			channelable := &duckv1alpha1.Channelable{}
			err = duckapis.FromUnstructured(created, channelable)
			if err != nil {
				logging.FromContext(ctx).Error("Failed to convert to Channelable Object", zap.Any("channel", channelObjRef), zap.Error(err))
				return nil, err
			}
			return channelable, nil
		}
		logging.FromContext(ctx).Error("Failed to get Channel", zap.Any("channel", channelObjRef), zap.Error(err))
		return nil, err
	}
	logging.FromContext(ctx).Debug("Found Channel", zap.Any("channel", channelObjRef))
	channelable, ok := c.(*duckv1alpha1.Channelable)
	if !ok {
		logging.FromContext(ctx).Error("Failed to convert to Channelable Object", zap.Any("channel", channelObjRef), zap.Error(err))
		return nil, err
	}
	return channelable, nil
}

func (r *Reconciler) reconcileSubscription(ctx context.Context, step int, p *v1alpha1.Sequence) (*messagingv1alpha1.Subscription, error) {
	expected := resources.NewSubscription(step, p)

	subName := resources.SequenceSubscriptionName(p.Name, step)
	sub, err := r.subscriptionLister.Subscriptions(p.Namespace).Get(subName)

	// If the resource doesn't exist, we'll create it.
	if apierrs.IsNotFound(err) {
		sub = expected
		logging.FromContext(ctx).Info(fmt.Sprintf("Creating subscription: %+v", sub))
		newSub, err := r.EventingClientSet.MessagingV1alpha1().Subscriptions(sub.Namespace).Create(sub)
		if err != nil {
			// TODO: Send events here, or elsewhere?
			//r.Recorder.Eventf(p, corev1.EventTypeWarning, subscriptionCreateFailed, "Create Sequence's subscription failed: %v", err)
			return nil, fmt.Errorf("failed to create Subscription Object for step: %d : %s", step, err)
		}
		return newSub, nil
	} else if err != nil {
		logging.FromContext(ctx).Error("Failed to get subscription", zap.Error(err))
		// TODO: Send events here, or elsewhere?
		//r.Recorder.Eventf(p, corev1.EventTypeWarning, subscriptionCreateFailed, "Create Sequences's subscription failed: %v", err)
		return nil, fmt.Errorf("failed to get subscription: %s", err)
	} else if !equality.Semantic.DeepDerivative(expected.Spec, sub.Spec) {
		// Given that spec.channel is immutable, we cannot just update the subscription. We delete
		// it instead, and re-create it.
		err = r.EventingClientSet.MessagingV1alpha1().Subscriptions(sub.Namespace).Delete(sub.Name, &metav1.DeleteOptions{})
		if err != nil {
			logging.FromContext(ctx).Info("Cannot delete subscription", zap.Error(err))
			return nil, err
		}
		newSub, err := r.EventingClientSet.MessagingV1alpha1().Subscriptions(sub.Namespace).Create(expected)
		if err != nil {
			logging.FromContext(ctx).Info("Cannot create subscription", zap.Error(err))
			return nil, err
		}
		return newSub, nil
	}
	return sub, nil
}

repository: kunal-kushwaha/eventing

repo_name: kunal-kushwaha/eventing

extension: go


text:
DESCRIPTION = "Packages to run bnn examples on Ultra96"

inherit packagegroup

RDEPENDS_${PN} = "  \
    pynq-ultra96-helloworld-notebooks \
    packagegroup-petalinux-pynq \
"

repository: fullstackfpga/meta-petalinux

repo_name: fullstackfpga/meta-petalinux


text:
package mock

import (
	"time"

	"github.com/mauleyzaola/issue-tracker/server/domain"
	"github.com/mauleyzaola/issue-tracker/server/operations/database"
	"github.com/mauleyzaola/issue-tracker/utils/tecutils"
)

func Issue() *domain.Issue {
	item := &domain.Issue{}
	item.Assignee = User()
	item.DueDate = time.Now()
	item.Name = tecutils.UUID()
	item.Priority = Priority()
	item.Reporter = User()
	item.Workflow = Workflow()

	return item
}

func IssueCreate(op *database.DbOperations, tx interface{}, item *domain.Issue) error {
	var err error
	if item.Workflow == nil {
		item.Workflow = Workflow()
	}
	if len(item.Workflow.Id) == 0 {
		err = WorkflowCreate(op, tx, item.Workflow)
		if err != nil {
			return err
		}
	}
	if err = WorkflowStepsCreate(op, tx, item.Workflow); err != nil {
		return err
	}
	return op.IssueDb.Create(tx, item, "")
}

repository: mauleyzaola/issue-tracker

repo_name: mauleyzaola/issue-tracker

gha_language: Go


text:
package synthetic_monitoring

import (
	"testing"

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

func TestLocalIDToGlobalID(t *testing.T) {
	for name, test := range map[string]struct {
		localID  int64
		regionID int
		expected int64
		err      error
	}{
		"simple": {
			localID:  1234,
			regionID: 3,
			expected: -1234_003,
		},
		"min": {
			localID:  MinLocalID,
			regionID: MinRegionID,
			expected: MaxGlobalID,
		},
		"max": {
			localID:  MaxLocalID,
			regionID: MaxRegionID,
			expected: MinGlobalID,
		},
		"bad local ID": {
			localID:  BadID,
			regionID: 3,
			err:      BadLocalIDError(BadID),
		},
		"global as local": {
			localID:  -1234003,
			regionID: 1,
			err:      BadLocalIDError(-1234003),
		},
		"bad region ID": {
			localID:  1234,
			regionID: BadID,
			err:      BadRegionIDError(BadID),
		},
		"bad region ID 2": {
			localID:  1234,
			regionID: MaxRegionID + 1,
			err:      BadRegionIDError(MaxRegionID + 1),
		},
	} {
		t.Run(name, func(t *testing.T) {
			result, err := LocalIDToGlobalID(test.localID, test.regionID)
			require.Equal(t, test.err, err)
			require.Equal(t, test.expected, result)
			if test.err == nil {
				require.True(t, IsLocalIDValid(test.localID))
				require.True(t, IsRegionIDValid(test.regionID))
				require.True(t, IsGlobalIDValid(result))
			} else {
				require.False(t, IsGlobalIDValid(result))
				require.False(t, IsLocalIDValid(test.localID) && IsRegionIDValid(test.regionID))
			}
		})
	}
}

func TestGlobalIDToLocalID(t *testing.T) {
	for name, test := range map[string]struct {
		globalID int64
		regionID int
		localID  int64
		err      error
	}{
		"simple": {
			globalID: -1234_003,
			localID:  1234,
			regionID: 3,
		},
		"min": {
			globalID: MaxGlobalID,
			localID:  MinLocalID,
			regionID: MinRegionID,
		},
		"max": {
			globalID: MinGlobalID,
			localID:  MaxLocalID,
			regionID: MaxRegionID,
		},
		"local as global": {
			globalID: 3,
			err:      BadGlobalIDError(3),
		},
		"invalid global": {
			globalID: -3000, // Region ID == 0
			err:      BadGlobalIDError(-3000),
		},
	} {
		t.Run(name, func(t *testing.T) {
			local, region, err := GlobalIDToLocalID(test.globalID)
			require.Equal(t, test.err, err)
			require.Equal(t, test.localID, local)
			require.Equal(t, test.regionID, region)
			if test.err == nil {
				require.True(t, IsGlobalIDValid(test.globalID))
				require.True(t, IsLocalIDValid(test.localID))
				require.True(t, IsRegionIDValid(test.regionID))
				gID, err2 := LocalIDToGlobalID(local, region)
				require.NoError(t, err2)
				require.Equal(t, test.globalID, gID)
			} else {
				require.False(t, IsLocalIDValid(test.localID))
				require.False(t, IsRegionIDValid(test.regionID))
			}
		})
	}
}

repository: grafana/synthetic-monitoring-agent

repo_name: grafana/synthetic-monitoring-agent

branch_name: refs/heads/main


text:
DESCRIPTION = "Entrance is the Enlightenment login manager"
SECTION = "e/apps"
LICENSE = "MIT"
# can also use pam and crypt
DEPENDS = "edb edb-native evas-x11 ecore-x11 edje esmart-x11 bash keylaunch detect-stylus xserver-common"
RDEPENDS += "bash keylaunch detect-stylus xserver-common glibc-gconv-iso8859-1"
HOMEPAGE = "http://www.enlightenment.org"
MAINTAINER = "Justin Patrin <papercrane@reversefold.com>"
PR = "r11"

SRC_URI = "cvs://anonymous@thinktux.net/root;module=e17/apps/entrance;date=${PV} \
           file://config-db.patch;patch=1 \
           file://allow-missing-xsession.patch;patch=1 \
           file://run-Xinit.patch;patch=1 \
           file://set-display-env.patch;patch=1 \
           file://fix-auth-mode.patch;patch=1 \
           file://use-bash.patch;patch=1 \
	   file://Sessions"

S = "${WORKDIR}/entrance"

inherit autotools update-rc.d

INITSCRIPT_NAME = "entrance"
INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."

EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR}/edje_cc \
                --with-xsession=/etc/X11/Xsession \
                --with-auth-mode=0"

FILES += "${datadir}"

do_install_append() {
	install -d ${D}/etc/X11/Xsession.d
	install -d ${D}/etc/X11/Sessions

	install -m 755 ${WORKDIR}/Sessions/* ${D}/etc/X11/Sessions
}

repository: Terentyev/familiar-linux

repo_name: Terentyev/familiar-linux


text:
@article{gans,
title = "Generative adversarial nets",
journal = "Proc. Adv. Neur. Inf. Process. Sys.",
pages = "436-444",
year = "2014",
author = "I. Goodfellow, et al.",
}

@article{view,
title = "Deep learning in neural networks: An overview",
journal = "Neural Networks",
pages = "85-117",
month ="Jan",
volume = "61",
year = "2015",
author = "Schmidhuber J.",
}

@article{lstm,
title = "Learning to forget: Continual prediction with LSTM",
journal = "Neur. Comp.",
volume = "12",
number = "10",
pages = "2451-2471",
year = "2000",
author = "F. A. Gers, J. Schmidhuber, F. Cummins",
}

@article{deep,
title = "Deep learning",
journal = "Nature",
pages = "436-444",
year = "2015",
author = "LeCun, Yann, Yoshua Bengio, and Geoffrey Hinton",
}

@article{nvidia,
title = "End to End Learning for Self-Driving Cars",
journal = "arXiv preprint arXiv:1604.07316",
year = "2016",
author = "Bojarski, Mariusz, et al.",
}

@article{tesla,
title = "Tesla Adds High-Speed Autonomous Driving to Its Bag of Tricks",
journal = "New York Times",
month = "Oct",
year = "2015",
author = "Kessler, A.",
}

@article{cnn,
title = "Tesla Adds High-Speed Autonomous Driving to Its Bag of Tricks",
journal = "Imagenet classification with deep convolutional neural networks",
pages = "1097-1105",
year = "2012",
author = "Krizhevsky, Alex, Ilya Sutskever, and Geoffrey E. Hinton",
}

@article{autoen,
title = "Auto-encoding variational bayes",
journal = "arXiv preprint arXiv: 1312.6114",
year = "2013",
author = "D. P. Kingma, M. Welling",
}

@article{hinton,
title = "Reducing the dimensionality of data with neural networks",
journal = "Science 313.5786",
pages = "504-507",
year = "2006",
author = "Hinton, Geoffrey E., and Ruslan R. Salakhutdinov",
}

@article{ng,
title = "Sparse autoencoder",
journal = "CS294A Lecture notes 72",
pages = "1-19",
year = "2011",
author = "Ng, Andrew.",
}

@article{denoise,
title = "Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion",
journal = "Journal of Machine Learning Research",
pages = "3371-3408",
month = "Dec",
year = "2010",
author = "Vincent, Pascal, et al.",
}

@article{comma,
title = "Learning a Driving Simulator",
journal = "arXiv preprint arXiv:1608.01230",
year = "2016",
author = "E. Santana, G. Hotz",
}

@article{kitty,
title = "Are we ready for autonomous driving? the KITTI vision benchmark suite",
journal = "Proc. IEEE Conf. Comp. Vis., Patt. Recog.",
pages = "3354-3361",
year = "2012",
author = "A. Geiger, P. Lenz, R. Urtasun",
}

@article{lrcn,
title = "Long-term recurrent convolutional networks for visual recognition and description",
journal = "Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition",
pages = "2625-2634",
year = "2015",
author = "Donahue, Jeffrey, et al.",
}

@article{stanford,
title = "Learning to drive: perception for autonomous cars.",
journal = "Stanford University",
year = "2011",
author = "Stavens, David Michael, et al.",
}

@article{inteldrive1,
title = "Modeling the Driving Behavior of Electric Vehicles Using Smartphones and Neural Networks",
journal = "IEEE Intelligent Transportation Systems Magazine",
pages = "44-53",
volume = "6",
number = "3",
year = "2014",
author = "A. Diaz Alvarez, F. Serradilla Garcia, J. E. Naranjo, J. J. Anaya and F. Jimenez",
}

@article{inteldrive2,
title = "Review of driving conditions prediction and driving style recognition based control algorithms for hybrid electric vehicles",
journal = "IEEE Vehicle Power and Propulsion Conference, Chicago",
pages = "1-7",
year = "2011",
author = "R. Wang and S. M. Lukic",
}


text:
SUMMARY = "A simple presentation tool for hackers"
DESCRIPTION = "Pinpoint is a simple presentation tool that hopes to avoid audience death \
               by bullet point and instead encourage presentations containing beautiful \
               images and small amounts of concise text in slides."
SECTION = "x11/multimedia"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24 \
                    file://pinpoint.c;beginline=6;endline=17;md5=201d438283607da393fae6aca085454c"

DEPENDS = "gnome-common glib-2.0 gdk-pixbuf clutter-1.8 clutter-gst-1.8"

inherit autotools gettext

SRC_URI = "git://git.gnome.org/browse/pinpoint;protocol=http"

SRCREV = "5b22660f5b247023ca409403f1c2cc834d8ce632"
PV = "0.1.4+gitr${SRCPV}"

S = "${WORKDIR}/git"

repository: linkessence/Galileo

repo_name: linkessence/Galileo


text:
SUMMARY = "Font rendering capabilities for complex non-Roman writing systems"
HOMEPAGE = "http://sourceforge.net/projects/silgraphite"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b0452d508cc4eb104de0226a5b0c8786"

inherit cmake

DEPENDS += "freetype"

SRC_URI = "git://github.com/silnrsi/graphite.git;branch=master;protocol=https"
SRCREV = "92f59dcc52f73ce747f1cdc831579ed2546884aa"
PV = "1.3.14"
S = "${WORKDIR}/git"

EXTRA_OECMAKE += "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"

BBCLASSEXTEND = "native"

repository: schnitzeltony/meta-office

repo_name: schnitzeltony/meta-office

gha_language: BitBake


text:
SUMMARY = "NVIDIA container runtime"
DESCRIPTION = "NVIDIA container runtime hook \
Provides a modified version of runc allowing users to run GPU enabled \
containers. \
"
HOMEPAGE = "https://github.com/NVIDIA/nvidia-container-runtime"

LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=06cff45c51018e430083a716510821b7"
REVISION = "r1"

RDEPENDS_${PN} = "\
    cuda-driver \
    cuda-toolkit \
    nvidia-container-toolkit \
    docker-ce \
"
SRCREV_NVIDIA_RUNTIME = "027d6c876ad8c163f53e75cbd5a6a54776985e5c"

GO_IMPORT = "github.com/NVIDIA/${BPN}"

inherit go

SRC_URI = " \
    git://github.com/NVIDIA/nvidia-container-runtime;protocol=https;destsuffix=${S}/src/${GO_IMPORT}/;subpath=runtime/src;name=go \
    git://github.com/NVIDIA/nvidia-container-runtime;protocol=https;destsuffix=git;name=runtime \
    file://l4t.csv \
"

SRCREV_runtime = "${SRCREV_NVIDIA_RUNTIME}"
SRCREV_go = "${SRCREV_NVIDIA_RUNTIME}"

DEPENDS += " \
    gettext-native \
"

do_install_append(){
    install -d -m 755 ${D}/${datadir}/licenses/${BPN}-${PV}
    install ${WORKDIR}/git/LICENSE ${D}/${datadir}/licenses/${BPN}-${PV}
    # Remove sh files that will cause a QA dependency error
    rm ${D}/${libdir}/go/src/${GO_IMPORT}/vendor/github.com/stretchr/testify/.travis.*.sh
    rm ${D}/${libdir}/go/src/${GO_IMPORT}/vendor/github.com/pelletier/go-toml/benchmark.sh

    # L4T CSV
    install -d -m 755 ${D}${sysconfdir}/nvidia-container-runtime/host-files-for-container.d
    envsubst < ${WORKDIR}/l4t.csv > ${D}${sysconfdir}/nvidia-container-runtime/host-files-for-container.d/l4t.csv
}

FILES_${PN} += " \
    ${datadir}/licenses \
    ${datadir}/licenses/${BPN}-${PV} \
    ${sysconfdir}/nvidia-container-runtime \
    ${sysconfdir}/nvidia-container-runtime/host-files-for-container.d \
"

FILES_${PN}-lic = " \
    ${datadir}/licenses \
    ${datadir}/licenses/${BPN}-${PV} \
"

repository: b-man/meta-tegra

repo_name: b-man/meta-tegra


text:
@article{RN867,
 author = {Cairns, K. A. and Roberts, J. A. and Cotta, M. O. and Cheng, A. C.},
 doi = {10.1007/s40121-015-0083-9},
 journal = {Infectious Diseases and Therapy},
 pages = {27-38},
 title = {Antimicrobial Stewardship in Australian Hospitals and Other Settings},
 type = {Journal Article},
 url = {https://www.scopus.com/inward/record.uri?eid=2-s2.0-84973340428&doi=10.1007%2fs40121-015-0083-9&partnerID=40&md5=e9924d35b31d14d784fca0d215e483bc
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4569646/pdf/40121_2015_Article_83.pdf},
 volume = {4},
 year = {2015}
}


text:
package cmd

import (
	"github.com/rsteube/carapace"
	"github.com/rsteube/carapace-bin/completers/apt-cache_completer/cmd/action"
	"github.com/spf13/cobra"
)

var policyCmd = &cobra.Command{
	Use:   "policy",
	Short: "debug issues relating to the preferences file",
	Run:   func(cmd *cobra.Command, args []string) {},
}

func init() {
	carapace.Gen(policyCmd).Standalone()

	rootCmd.AddCommand(policyCmd)

	carapace.Gen(policyCmd).PositionalAnyCompletion(
		action.ActionPackages(),
	)
}

repository: rsteube/carapace-bin

repo_name: rsteube/carapace-bin


text:
# Copyright (C) 2018 Fuzhou Rockchip Electronics Co., Ltd
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "Kodi Media Center -- TexturePacker"

LICENSE = "CLOSED"

FILESPATH =. "${FILE_DIRNAME}/kodi:"

DEPENDS = " \
    cmake-native \
    giflib-native \
    libpng-native \
"

SRCREV = "3316cd1adbbbd68b962558c635723f8259e19c9f"
SRC_URI = "git://github.com/xbmc/xbmc.git;branch=master"
S = "${WORKDIR}/git/tools/depends/native/TexturePacker/src"

inherit autotools-brokensep native gettext pkgconfig

do_configure_prepend() {
    # remove @STATIC_FLAG@
    sed -i '/STATIC_FLAG/d' ${S}/Makefile.am
}

repository: kraj/meta-rockchip

repo_name: kraj/meta-rockchip


text:
SUMMARY = "FreeRTOS for Jailhouse"
HOMEPAGE = "https://github.com/siemens/freertos-cell"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://freertos/License/license.txt;md5=ff3ee34806c13760712131849e183a35\
		 file://LICENSE;md5=494a529748a63071fbdf44f61db2391c"

DEPENDS = "virtual/kernel make-native"

SRC_URI = "git://github.com/siemens/freertos-cell.git;protocol=https;branch=master; \
        file://Fix-Makefile.patch \
        file://Remove-check-of-interrupt-mask.patch \
        file://Bananapi-config-fix-for-Jailhouse-0.6.patch"

SRCREV = "6ad80637be066d196d81c1640bc1bd5b66e0ec45"

S ="${WORKDIR}/git"

inherit jailhouse-cell

INMATE = "${S}/freertos-demo.bin"
CELLCONFIG = "${S}/jailhouse-configs/bananapi-freertos-demo.c"
CELLCONFIG_TARGET = "freertos-cell.c"

do_compile() {
    LDFLAGS="" oe_runmake
}

repository: henning-schild-work/meta-jailhouse

repo_name: henning-schild-work/meta-jailhouse


text:
DESCRIPTION = "WebKit browser engine, GTK+ edition"
DEPENDS = "geoclue enchant gtk-doc-native gtk-doc gnome-keyring libsoup-2.4 curl icu libxml2 cairo libxslt libxt libidn gnutls gtk+ gstreamer gst-plugins-base gnome-vfs bison-native flex-native gperf-native perl-native sqlite3"

SRC_URI = "http://webkitgtk.org/webkit-${PV}.tar.gz"
SRC_URI[md5sum] = "0ab5c478a6f5b74a1ae96bf13a456662"
SRC_URI[sha256sum] = "ff70b25ea8dedc0031f29f2ea8d9aa226bfa65ebd2f12772390f4e2845306fe1"

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

inherit autotools lib_package

export BISON="${STAGING_BINDIR_NATIVE}/bison"
ARM_INSTRUCTION_SET = "arm"
EXTRA_OECONF = "\
                --enable-debug=no \
                --enable-svg \
                --enable-icon-database=yes \
                --enable-geolocation=yes \
#                --with-unicode-backend=glib \
"

EXTRA_AUTORECONF = " -I autotools "

# Dolt gets used on x86 and ppc and hardcodes 'libtool'
do_configure_append() {
	cp ${TARGET_PREFIX}libtool libtool || true
}

do_compile_prepend() {
        mkdir -p ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
        mkdir -p ${S}/Programs/
	cd ${S}/JavaScriptCore/pcre
        if test -e dftables.c
        then
            ${BUILD_CC} dftables.c -o dftables -I. -I../wtf
        elif test -e dftables.cpp
        then
            ${BUILD_CXX} dftables.cpp -o dftables -I. -I../wtf
        fi
        cp dftables ${S}/WebKitBuilds/Debug/JavaScriptCore/pcre/tmp/
        cp dftables ${S}/Programs/
	cd ${S}
}

PACKAGES =+ "${PN}-webinspector ${PN}launcher-dbg ${PN}launcher libjavascriptcore"
FILES_${PN}launcher = "${bindir}/GtkLauncher"
FILES_${PN}launcher-dbg = "${bindir}/.debug/GtkLauncher"
FILES_libjavascriptcore = "${libdir}/libJavaScriptCore.so.*"
FILES_${PN}-webinspector = "${datadir}/webkit*/webinspector/"
FILES_${PN} += "${datadir}/webkit*/resources/error.html ${datadir}/webkit*/images"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD


text:
DESCRIPTION = "This module is a helper for installing, reading and finding configuration \
file locations. It's intended to work in every supported Perl5 environment \
and will always try to Do The Right Thing(TM)."

SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
PR = "r0"

MAINTAINER=	"Poky <poky@yoctoproject.org>"
HOMEPAGE=	"https://metacpan.org/release/File-ConfigDir"

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61"

SRC_URI = "https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ConfigDir-0.021.tar.gz"

SRC_URI[md5sum] = "5766f175d57a75f61466a591cf7236a1"
SRC_URI[sha256sum] = "6b405a14f69ce49d4982ed9b75400a445d0f6224fd7687fb907e79c5578314c6"
RRECOMMENDS:${PN} += "file-homedir-perl"
RRECOMMENDS:${PN} += "list-moreutils-perl"
RRECOMMENDS:${PN} += "list-moreutils-xs-perl"
DEPENDS += "test-without-module-perl-native"

S = "${WORKDIR}/File-ConfigDir-${PV}"

inherit cpan allarch

BBCLASSEXTEND = "native"

repository: rehsack/meta-cpan

repo_name: rehsack/meta-cpan


text:
@phdthesis{vdw2019sparse,
 author = {Van der Wilk, Mark},
 school = {University of Cambridge},
 title = {Sparse Gaussian process approximations and applications},
 year = {2019}
}


text:
@inproceedings{SPEED,
	author = {Gulwani, Sumit and Mehra, Krishna K. and Chilimbi, Trishul},
	title = {SPEED: Precise and Efficient Static Estimation of Program Computational Complexity},
	booktitle = {Proceedings of the 36th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages},
	year = {2009},
	pages = {127--139},
}

@Article{Hao2009,
	author="Hao, Dan
	and Xie, Tao
	and Zhang, Lu
	and Wang, Xiaoyin
	and Sun, Jiasu
	and Mei, Hong",
	title="Test input reduction for result inspection to facilitate fault localization",
	journal="Automated Software Engineering",
	year="2009",
	volume="17",
	number="1",
	pages="5",
}
@inproceedings{Wang2010ASE,
	author = {Wang, Xiaoyin and Lo, David and Cheng, Jiefeng and Zhang, Lu and Mei, Hong and Yu, Jeffrey Xu},
	title = {Matching Dependence-related Queries in the System Dependence Graph},
	booktitle = {Proceedings of the IEEE/ACM International Conference on Automated Software Engineering},
	year = {2010},
	pages = {457--466},
}

@INPROCEEDINGS{MengHima,
	author={S. Meng and X. Wang and L. Zhang and H. Mei},
	booktitle={2012 34th International Conference on Software Engineering (ICSE)},
	title={A history-based matching approach to identification of framework evolution},
	year={2012},
	pages={353-363},
}

@INPROCEEDINGS{MockStudy,
	author={S. Mostafa and X. Wang},
	booktitle={14th International Conference on Quality Software},
	title={An Empirical Study on the Usage of Mocking Frameworks in Software Testing},
	year={2014},
	pages={127-132},
}

@inproceedings{Pradel:2014:PRT:2610384.2610393,
	author = {Pradel, Michael and Huggler, Markus and Gross, Thomas R.},
	title = {Performance Regression Testing of Concurrent Classes},
	booktitle = {Proceedings of the 2014 International Symposium on Software Testing and Analysis},
	year = {2014},
	pages = {13--25},
}

@inproceedings{PradelISSTA2014,
	author = {Pradel, Michael and Huggler, Markus and Gross, Thomas R.},
	title = {Performance Regression Testing of Concurrent Classes},
	booktitle = {Proceedings of the International Symposium on Software Testing and Analysis},
	year = {2014},
	pages = {13--25},
}

@inproceedings{PadhyeICSE2017,
	author = {Rohan Padhye and Koushik Sen},
	title = {TRAVIOLI: A Dynamic Analysis for Detecting Data-Structure Traversals},
	booktitle = {Proceedings of the International Conference on Software Engineering},
	year = {2017},
	pages = {To Appear},
}

@inproceedings{ATC2013,
	author = {Kwon, Yongin and Lee, Sangmin and Yi, Hayoon and Kwon, Donghyun and Yang, Seungjun and Chun, Byung-Gon and Huang, Ling and Maniatis, Petros and Naik, Mayur and Paek, Yunheung},
	title = {Mantis: Automatic Performance Prediction for Smartphone Applications},
	booktitle = {Proceedings of the 2013 USENIX Conference on Annual Technical Conference},
	year = {2013},
	pages = {297--308},
}

@misc{perfranker,
	title =    {{PerfRanker} Project Web},
	url =      {https://sites.google.com/site/perfranker2017/},
	year = {2017},
}

@inproceedings{huang2014performance,
 author = {Huang, Peng and Ma, Xiao and Shen, Dongcai and Zhou, Yuanyuan},
 title = {Performance Regression Testing Target Prioritization via Performance Risk Analysis},
 booktitle = {Proceedings of the 36th International Conference on Software Engineering},
 series = {ICSE 2014},
 year = {2014},
 pages = {60--71},
 numpages = {12},
}

@inproceedings{PerfBugStudy,
	author = {Zaman, Shahed and Adams, Bram and Hassan, Ahmed E.},
	title = {A Qualitative Study on Performance Bugs},
	booktitle = {Proceedings of the 9th IEEE Working Conference on Mining Software Repositories},
	year = {2012},
	pages = {199--208},
}
@inproceedings{luoinput2016,
	author = {Luo, Qi},
	title = {Automatic Performance Testing Using Input-sensitive Profiling},
	booktitle = {Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering},
	year = {2016},
	pages = {1139--1141},
}

@INPROCEEDINGS{covtestprior,
	author={G. Rothermel and R. H. Untch and Chengyun Chu and M. J. Harrold},
	booktitle={Software Maintenance, 1999. (ICSM '99) Proceedings. IEEE International Conference on},
	title={Test case prioritization: an empirical study},
	year={1999},
	pages={179-188},
}

@inproceedings{additionalTestPrior,
	author = {Zhang, Lingming and Hao, Dan and Zhang, Lu and Rothermel, Gregg and Mei, Hong},
	title = {Bridging the Gap Between the Total and Additional Test-case Prioritization Strategies},
	booktitle = {Proceedings of the 2013 International Conference on Software Engineering},
	series = {ICSE '13},
	year = {2013},
	pages = {192--201},
}

@Inbook{Spark,
	author="Lhot{\'a}k, Ond{\v{r}}ej
	and Hendren, Laurie",
	editor="Hedin, G{\"o}rel",
	title="Scaling Java Points-to Analysis Using Spark            ",
	bookTitle="Compiler Construction: 12th International Conference, CC 2003 Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2003 Warsaw, Poland, April 7--11, 2003 Proceedings",
	year="2003",
	pages="153--169",
}

@inproceedings{DoubleTake,
	author = {Liu, Tongping and Curtsinger, Charlie and Berger, Emery D.},
	title = {DoubleTake: Fast and Precise Error Detection via Evidence-based Dynamic Analysis},
	booktitle = {Proceedings of the 38th International Conference on Software Engineering},
	year = {2016},
	pages = {911--922},
}

@ARTICLE{TSEPerform,
	author={E. J. Weyuker and F. I. Vokolos},
	journal={IEEE Transactions on Software Engineering},
	title={Experience with performance testing of software systems: issues, an approach, and case study},
	year={2000},
	volume={26},
	number={12},
	pages={1147-1156},
}

@inproceedings{foxref,
	author = {Fox, Gregory},
	title = {Performance Engineering As a Part of the Development Life Cycle for Large-scale Software Systems},
	booktitle = {Proceedings of the 11th International Conference on Software Engineering},
	series = {ICSE '89},
	year = {1989},
	pages = {85--94},
}

@inproceedings{Google,
	author = {Mayer, M.},
	title = {In search of a better, faster, stronger web.},
	url = {http://goo.gl/m4fXx}
}

@inproceedings{Stevefamov,
	author = {S. Stefanov},
	title = {Yslow 2.0},
	booktitle = {CSDN Software Development 2.0 Conference},
	year = {2008},
}

@inproceedings{poliniref,
	author = {Denaro, Giovanni and Polini, Andrea and Emmerich, Wolfgang},
	title = {Early Performance Testing of Distributed Software Applications},
	booktitle = {Proceedings of the 4th International Workshop on Software and Performance},
	year = {2004},
	pages = {94--103},
}

@article{Ejref,
	author = {Weyuker, Elaine J. and Vokolos, Filippos I.},
	title = {Experience with Performance Testing of Software Systems: Issues, an Approach, and Case Study},
	journal = {IEEE Trans. Softw. Eng.},
	volume = {26},
	number = {12},
	month = dec,
	year = {2000},
	pages = {1147--1156},
}

@inproceedings{MITCHELL,
	author = {M. MITCHELL},
	title = {GCC performance regression testing discussion},
	url = {http://gcc.gnu.org/ml/gcc/2005-11/msg01306}
}

@inproceedings{xalan,
	title = {Xalan for Java},
	url = {https://xml.apache.org/xalan-j/}
}

@inproceedings{commonMath,
	title = {Apache Commons Maths},
	url = {http://commons.apache.org/proper/commons-math/}
}

@inproceedings{dacapo,
	author = {Blackburn, Stephen M. and Garner, Robin and Hoffmann, Chris and Khang, Asjad M. and McKinley, Kathryn S. and Bentzur, Rotem and Diwan, Amer and Feinberg, Daniel and Frampton, Daniel and Guyer, Samuel Z. and Hirzel, Martin and Hosking, Antony and Jump, Maria and Lee, Han and Moss, J. Eliot B. and Phansalkar, Aashish and Stefanovi\'{c}, Darko and VanDrunen, Thomas and von Dincklage, Daniel and Wiedermann, Ben},
	title = {The DaCapo Benchmarks: Java Benchmarking Development and Analysis},
	booktitle = {Proceedings of the 21st Annual ACM SIGPLAN Conference on Object-oriented Programming Systems, Languages, and Applications},
	year = {2006},
	pages = {169--190},
}

@INPROCEEDINGS{KALIBERA,
	author={T. Kalibera and L. Bulej and P. Tuma},
	booktitle={13th IEEE International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems},
	title={Automated detection of performance regressions: the mono experience},
	year={2005},
	pages={183-190},
}

@inproceedings{ELBAUM00,
	author = {Elbaum, Sebastian and Malishevsky, Alexey G. and Rothermel, Gregg},
	title = {Prioritizing Test Cases for Regression Testing},
	booktitle = {Proceedings of the 2000 ACM SIGSOFT International Symposium on Software Testing and Analysis},
	year = {2000},
	pages = {102--112},
}

@inproceedings{KIM02,
	author = {Kim, Jung-Min and Porter, Adam},
	title = {A History-based Test Prioritization Technique for Regression Testing in Resource Constrained Environments},
	booktitle = {Proceedings of the 24th International Conference on Software Engineering},
	year = {2002},
	pages = {119--129},
}

@article{LI07,
	author = {Li, Zheng and Harman, Mark and Hierons, Robert M.},
	title = {Search Algorithms for Regression Test Case Prioritization},
	journal = {IEEE Trans. Softw. Eng.},
	issue_date = {April 2007},
	volume = {33},
	number = {4},
	month = apr,
	year = {2007},
	pages = {225--237},
}

@inproceedings{ROTHERMEL99,
	author = {Rothermel, Gregg and Untch, Roland H. and Chu, Chengyun and Harrold, Mary Jean},
	title = {Test Case Prioritization: An Empirical Study},
	booktitle = {Proceedings of the IEEE International Conference on Software Maintenance},
	series = {ICSM '99},
	year = {1999},
	pages = {179--},
}

@article{HARROLD93,
	author = {Harrold, M. Jean and Gupta, Rajiv and Soffa, Mary Lou},
	title = {A Methodology for Controlling the Size of a Test Suite},
	journal = {ACM Trans. Softw. Eng. Methodol.},
	issue_date = {July 1993},
	volume = {2},
	number = {3},
	month = jul,
	year = {1993},
	pages = {270--285},
	numpages = {16},
}

@inproceedings{BLACK04,
	author = {Black, Jennifer and Melachrinoudis, Emanuel and Kaeli, David},
	title = {Bi-Criteria Models for All-Uses Test Suite Reduction},
	booktitle = {Proceedings of the 26th International Conference on Software Engineering},
	year = {2004},
	pages = {106--115},
}

@inproceedings{ZHONG06,
	author = {Zhong, Hao and Zhang, Lu and Mei, Hong},
	title = {An Experimental Comparison of Four Test Suite Reduction Techniques},
	booktitle = {Proceedings of the 28th International Conference on Software Engineering},
	year = {2006},
	pages = {636--640},
}

@article{ROTHERMEL97,
	author = {Rothermel, Gregg and Harrold, Mary Jean},
	title = {A Safe, Efficient Regression Test Selection Technique},
	journal = {ACM Trans. Softw. Eng. Methodol.},
	issue_date = {April 1997},
	volume = {6},
	number = {2},
	month = apr,
	year = {1997},
	pages = {173--210},
}

@INPROCEEDINGS{CHEN94,
	author={Yih-Farn Chen and D. S. Rosenblum and Kiem-Phong Vo},
	booktitle={Proceedings of 16th International Conference on Software Engineering},
	title={TESTTUBE: A System for Selective Regression Testing},
	year={1994},
	pages={211-220},
}

@inproceedings{SHEN05,
	author = {Shen, Kai and Zhong, Ming and Li, Chuanpeng},
	title = {I/O System Performance Debugging Using Model-driven Anomaly Characterization},
	booktitle = {Proceedings of the 4th Conference on USENIX Conference on File and Storage Technologies - Volume 4},
	year = {2005},
	pages = {23--23},
}

@inproceedings{HAN12,
	author = {Han, Shi and Dang, Yingnong and Ge, Song and Zhang, Dongmei and Xie, Tao},
	title = {Performance Debugging in the Large via Mining Millions of Stack Traces},
	booktitle = {Proceedings of the 34th International Conference on Software Engineering},
	series = {ICSE '12},
	year = {2012},
	pages = {145--155},
}

@INPROCEEDINGS{LEUNG07,
	author={A. W. Leung and E. Lalonde and J. Telleen and J. Davis and C. Maltzahn},
	booktitle={24th IEEE Conference on Mass Storage Systems and Technologies (MSST 2007)},
	title={Using Comprehensive Analysis for Performance Debugging in Distributed Storage Systems},
	year={2007},
	pages={281-286},
}

@inproceedings{Soot,
	author = {Vall{\'e}e-Rai, Raja and Co, Phong and Gagnon, Etienne and Hendren, Laurie and Lam, Patrick and Sundaresan, Vijay},
	title = {Soot - a Java Bytecode Optimization Framework},
	booktitle = {Proceedings of the 1999 Conference of the Centre for Advanced Studies on Collaborative Research},
	series = {CASCON '99},
	year = {1999},
	pages = {13--},
}

@inproceedings{SootIFDS,
	author = {Bodden, Eric},
	title = {Inter-procedural Data-flow Analysis with IFDS/IDE and Soot},
	booktitle = {Proceedings of the ACM SIGPLAN International Workshop on State of the Art in Java Program Analysis},
	year = {2012},
	pages = {3--8},
}

@inproceedings{IFDS,
	author = {Reps, Thomas and Horwitz, Susan and Sagiv, Mooly},
	title = {Precise Interprocedural Dataflow Analysis via Graph Reachability},
	booktitle = {Proceedings of the 22Nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages},
	year = {1995},
	pages = {49--61},
}

@inproceedings{AGUILERA03,
	author = {Aguilera, Marcos K. and Mogul, Jeffrey C. and Wiener, Janet L. and Reynolds, Patrick and Muthitacharoen, Athicha},
	title = {Performance Debugging for Distributed Systems of Black Boxes},
	booktitle = {Proceedings of the 19th ACM Symposium on Operating Systems Principles},
	year = {2003},
	pages = {74--89},
}

@inproceedings{YAN12,
	author = {Yan, Dacong and Xu, Guoqing and Rountev, Atanas},
	title = {Uncovering Performance Problems in Java Applications with Reference Propagation Profiling},
	booktitle = {Proceedings of the 34th International Conference on Software Engineering},
	year = {2012},
	pages = {134--144},
}

@inproceedings{NDCG,
	author = {Al-Maskari, Azzah and Sanderson, Mark and Clough, Paul},
	title = {The Relationship Between IR Effectiveness Measures and User Satisfaction},
	booktitle = {Proceedings of the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval},
	year = {2007},
	pages = {773--774},
}

@inproceedings{MultiCoreRandom,
	author = {Park, Heekwon and Baek, Seungjae and Choi, Jongmoo and Lee, Donghee and Noh, Sam H.},
	title = {Regularities Considered Harmful: Forcing Randomness to Memory Accesses to Reduce Row Buffer Conflicts for Multi-core, Multi-bank Systems},
	booktitle = {Proceedings of the Eighteenth International Conference on Architectural Support for Programming Languages and Operating Systems},
	year = {2013},
	pages = {181--192},
}

@ARTICLE{CacheRandom,
	author={C. Pyo and S. Pae and G. Lee},
	journal={Electronics Letters},
	title={DRAM as source of randomness},
	year={2009},
	volume={45},
	number={1},
	pages={26-27},
}

@Inbook{GBRandom,
	author="Wilson, Paul R.",
	editor="Bekkers, Yves
	and Cohen, Jacques",
	title="Uniprocessor garbage collection techniques",
	bookTitle="Memory Management: International Workshop IWMM 92 St. Malo, France, September 17--19, 1992 Proceedings",
	year="1992",
	pages="1--42",
}

@inproceedings{LiuCGO,
	author = {Liu, Tongping and Liu, Xu},
	title = {Cheetah: Detecting False Sharing Efficiently and Effectively},
	booktitle = {Proceedings of the 2016 International Symposium on Code Generation and Optimization},
	year = {2016},
	pages = {1--11},
}

@TECHREPORT{AlexeyAPFD,
	author = {Alexey G. Malishevsky and Joseph R. Ruthruff and Gregg Rothermel and Sebastian Elbaum},
	title = {Cost-cognizant test case prioritization},
	institution = {},
	year = {2006}
}

@inproceedings{JIN12,
	author = {Jin, Guoliang and Song, Linhai and Shi, Xiaoming and Scherpelz, Joel and Lu, Shan},
	title = {Understanding and Detecting Real-world Performance Bugs},
	booktitle = {Proceedings of the 33rd ACM SIGPLAN Conference on Programming Language Design and Implementation},
	year = {2012},
	pages = {77--88},
}

@inproceedings{JOVIC11,
	author = {Jovic, Milan and Adamoli, Andrea and Hauswirth, Matthias},
	title = {Catch Me if You Can: Performance Bug Detection in the Wild},
	booktitle = {Proceedings of the 2011 ACM International Conference on Object Oriented Programming Systems Languages and Applications},
	year = {2011},
	pages = {155--170},
}

@inproceedings{KILLIAN10,
	author = {Killian, Charles and Nagaraj, Karthik and Pervez, Salman and Braud, Ryan and Anderson, James W. and Jhala, Ranjit},
	title = {Finding Latent Performance Bugs in Systems Implementations},
	booktitle = {Proceedings of the Eighteenth ACM SIGSOFT International Symposium on Foundations of Software Engineering},
	year = {2010},
	pages = {17--26},
}

@INPROCEEDINGS{FOO10,
	author={Foo, King Chun and Jiang, Zhen Ming and Adams, Bram and Hassan, Ahmed E. and Zou, Ying and Flora, Parminder},
	booktitle={2010 10th International Conference on Quality Software},
	title={Mining Performance Regression Testing Repositories for Automated Performance Analysis},
	year={2010},
	pages={32-41},
}

@INPROCEEDINGS{FOO11,
	author={Foo, King Chun},
	booktitle={Master's Thesis},
	title={Automated Discovery of Performance Regressions in
	Enterprise Applications},
	year={2011},
}

@inproceedings{ZHANG11,
	author = {Zhang, Pingyu and Elbaum, Sebastian and Dwyer, Matthew B.},
	title = {Automatic Generation of Load Tests},
	booktitle = {Proceedings of the 2011 26th IEEE/ACM International Conference on Automated Software Engineering},
	year = {2011},
	pages = {43--52},
}

@inproceedings{GRECHANIK12,
	author = {Grechanik, Mark and Fu, Chen and Xie, Qing},
	title = {Automatically Finding Performance Problems with Feedback-directed Learning Software Testing},
	booktitle = {Proceedings of the 34th International Conference on Software Engineering},
	year = {2012},
	pages = {156--166},
}

@inproceedings{BARNA11,
	author = {Barna, Cornel and Litoiu, Marin and Ghanbari, Hamoun},
	title = {Model-based Performance Testing  (NIER Track)},
	booktitle = {Proceedings of the 33rd International Conference on Software Engineering},
	year = {2011},
	pages = {872--875},
}

@inproceedings{LAW03,
	author = {Law, James and Rothermel, Gregg},
	title = {Whole Program Path-Based Dynamic Impact Analysis},
	booktitle = {Proceedings of the 25th International Conference on Software Engineering},
	year = {2003},
	pages = {308--318},
}

@inproceedings{ORSO04,
	author = {Orso, Alessandro and Apiwattanapong, Taweesup and Law, James and Rothermel, Gregg and Harrold, Mary Jean},
	title = {An Empirical Comparison of Dynamic Impact Analysis Algorithms},
	booktitle = {Proceedings of the 26th International Conference on Software Engineering},
	year = {2004},
	pages = {491--500},
}

@inproceedings{ORSO11,
	author = {Orso, Alessandro and Apiwattanapong, Taweesup and Harrold, Mary Jean},
	title = {Leveraging Field Data for Impact Analysis and Regression Testing},
	booktitle = {Proceedings of the 9th European Software Engineering Conference Held Jointly with 11th ACM SIGSOFT International Symposium on Foundations of Software Engineering},
	year = {2003},
	pages = {128--137},
}

@inproceedings{APIWATTANAPON05,
	author = {Apiwattanapong, Taweesup and Orso, Alessandro and Harrold, Mary Jean},
	title = {Efficient and Precise Dynamic Impact Analysis Using Execute-after Sequences},
	booktitle = {Proceedings of the 27th International Conference on Software Engineering},
	year = {2005},
	pages = {432--441},
	numpages = {10},
}

@article {TURVERref,
	author = {Turver, Richard J. and Munro, Malcolm},
	title = {An early impact analysis technique for software maintenance},
	journal = {Journal of Software Maintenance: Research and Practice},
	volume = {6},
	number = {1},
	publisher = {John Wiley & Sons, Ltd},
	pages = {35--52},
	year = {1994},
}

@book{Arnoldref96,
	author = {Arnold, Robert S.},
	title = {Software Change Impact Analysis},
	year = {1996},
	publisher = {IEEE Computer Society Press},
}

@inproceedings{Arnoldref93,
	author = {Arnold, Robert S. and Bohner, Shawn A.},
	title = {Impact Analysis - Towards a Framework for Comparison},
	booktitle = {Proceedings of the Conference on Software Maintenance},
	year = {1993},
	pages = {292--301},
}

@inproceedings{ZIMMERMANN04,
	author = {Zimmermann, Thomas and Weisgerber, Peter and Diehl, Stephan and Zeller, Andreas},
	title = {Mining Version Histories to Guide Software Changes},
	booktitle = {Proceedings of the 26th International Conference on Software Engineering},
	year = {2004},
	pages = {563--572},
}

@inproceedings{SHERRIFF08,
	author = {Sherriff, Mark and Williams, Laurie},
	title = {Empirical Software Change Impact Analysis Using Singular Value Decomposition},
	booktitle = {Proceedings of the 2008 International Conference on Software Testing, Verification, and Validation},
	year = {2008},
	pages = {268--277},
}

@inproceedings{Chen2016,
	author = {Chen, Bihuan and Liu, Yang and Le, Wei},
	title = {Generating Performance Distributions via Probabilistic Symbolic Execution},
	booktitle = {Proceedings of the 38th International Conference on Software Engineering},
	year = {2016},
	pages = {49--60},

}

@INPROCEEDINGS{Nistor14,
	author={A. Nistor and L. Song and D. Marinov and S. Lu},
	booktitle={2013 35th International Conference on Software Engineering (ICSE)},
	title={Toddler: Detecting performance problems via similar memory-access patterns},
	year={2013},
	pages={562-571},
}

@INPROCEEDINGS{Nistor15,
	author={A. Nistor and P. C. Chang and C. Radoi and S. Lu},
	booktitle={2015 IEEE/ACM 37th IEEE International Conference on Software Engineering},
	title={CARAMEL: Detecting and Fixing Performance Problems That Have Non-Intrusive Fixes},
	year={2015},
	volume={1},
	pages={902-912},
}

@inproceedings{LUO16,
	author = {Luo, Qi and Poshyvanyk, Denys and Grechanik, Mark},
	title = {Mining Performance Regression Inducing Code Changes in Evolving Software},
	booktitle = {Proceedings of the 13th International Conference on Mining Software Repositories},
	year = {2016},
	pages = {25--36},
}


text:
package problem1004

// ref: https://leetcode.com/problems/max-consecutive-ones-iii/discuss/247564/JavaC%2B%2BPython-Sliding-Window
func longestOnes(A []int, K int) int {
	left, right := 0, 0
	for right = range A {
		K -= 1 ^ A[right] // 每次遇到 0 就会消耗一次 K
		if K < 0 {        // K 不够用的时候，就从左边回血
			K += 1 ^ A[left]
			left++
		}
	}
	// A[left:right+1] 并不是真的 max-length-sliding-windows
	// 把 right-left+1 当作是 A[:right+1] 中出现过的最长子数组的长度，更合适
	return right - left + 1
}

repository: frankegoesdown/LeetCode-in-Go

repo_name: frankegoesdown/LeetCode-in-Go


text:
@techreport{zeidenberg_student_2007,
 author = {Zeidenberg, Matthew and Jenkins, Davis and Calcagno, Juan Carles},
 copyright = {All rights reserved},
 file = {Zeidenberg, Matthew et al. - 2007 - Do Student Success Courses Actually Help Community.pdf:C\:\\Users\\mzeid\\Zotero\\storage\\TU8I5HAJ\\Zeidenberg, Matthew et al. - 2007 - Do Student Success Courses Actually Help Community.pdf:application/pdf},
 institution = {Community College Research Center},
 title = {Do Student Success Courses Actually Help Community College Students Succeed?},
 year = {2007}
}

repository: mzeidenberg/academic-kickstart

repo_name: mzeidenberg/academic-kickstart


text:
@article{Kythreotis-2019-Citizen,
    title = "Citizen Social Science for More Integrative and Effective Climate Action: A Science-Policy Perspective",
    author = "Kythreotis, Andrew P.  and
      Mantyka-Pringle, Chrystal  and
      Mercer, Theresa G.  and
      Whitmarsh, Lorraine E.  and
      Corner, Adam  and
      Paavola, Jouni  and
      Chambers, Chris  and
      Miller, Byron A.  and
      Castree, Noel",
    journal = "Frontiers in Environmental Science, Volume 7",
    volume = "7",
    year = "2019",
    publisher = "Frontiers Media SA",
    url = "https://aclanthology.org/G19-85001",
    doi = "10.3389/fenvs.2019.00010",
}

repository: gwf-uwaterloo/gwf-publications

repo_name: gwf-uwaterloo/gwf-publications

gha_language: Python


text:
@article{scott_associations_2013-1,
 author = {Scott, Kate M. and de Jonge, Peter and Alonso, Jordi and Viana, Maria Carmen and Liu, Zhaorui and O'Neill, Siobhan and Aguilar-Gaxiola, Sergio and Bruffaerts, Ronny and Caldas-de-Almeida, Jose Miguel and Stein, Dan J. and de Girolamo, Giovanni and Florescu, Silvia E. and Hu, Chiyi and Taib, Nezar Ismet and Lépine, Jean-Pierre and Levinson, Daphna and Matschinger, Herbert and Medina-Mora, Maria Elena and Piazza, Marina and Posada-Villa, José A. and Uda, Hidenori and Wojtyniak, Bogdan J. and Lim, Carmen C.W. and Kessler, Ronald C.},
 doi = {10.1016/j.ijcard.2013.08.012},
 issn = {01675273},
 journal = {International Journal of Cardiology},
 language = {en},
 month = {October},
 number = {6},
 pages = {5293--5299},
 shorttitle = {Associations between DSM-IV mental disorders and subsequent heart disease onset},
 title = {Associations between DSM-IV mental disorders and subsequent heart disease onset: Beyond depression},
 url = {https://linkinghub.elsevier.com/retrieve/pii/S0167527313015374},
 urldate = {2021-03-27},
 volume = {168},
 year = {2013}
}


text:
#base recipe: meta/recipes-devtools/python/python3-pycurl_7.21.5.bb
#base branch: pyro
#base commit: 69d985c0c3c6576f6d408a0930dfdc61dee3d79d

FILESEXTRAPATHS_prepend := "${THISDIR}/python-pycurl:"

require python-pycurl.inc

inherit distutils3

repository: miraclelinux/meta-debian-extended

repo_name: miraclelinux/meta-debian-extended

branch_name: refs/heads/warrior


text:
package rules

import (
	"fmt"
	"regexp"

	"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
	"github.com/zricethezav/gitleaks/v8/config"
)

// https://api.slack.com/authentication/token-types#bot
func SlackBotToken() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack Bot token",
		RuleID:      "slack-bot-token",
		Regex: regexp.MustCompile(
			`(xoxb-[0-9]{10,13}\-[0-9]{10,13}[a-zA-Z0-9-]*)`),
		Keywords: []string{
			"xoxb",
		},
	}

	// validate
	tps := []string{
		// https://github.com/metabase/metabase/blob/74cfb332140680425c7d37d347854160cc997ea8/frontend/src/metabase/admin/settings/slack/components/SlackForm/SlackForm.tsx#L47
		`"bot_token1": "xoxb-781236542736-2364535789652-GkwFDQoHqzXDVsC6GzqYUypD"`, // gitleaks:allow
		// https://github.com/jonz-secops/TokenTester/blob/978e9f3eabc7e9978769cfbba10735afa3bf627e/slack#LL44C27-L44C86
		`"bot_token2": "xoxb-263594206564-2343594206574-FGqddMF8t08v8N7Oq4i57vs1MBS"`, // gitleaks:allow
		`"bot_token3": "xoxb-4614724432022-5152386766518-O5WzjWGLG0wcCm2WPrjEmnys"`,   // gitleaks:allow
		`"bot_token4": ` + fmt.Sprintf(`"xoxb-%s-%s-%s"`, secrets.NewSecret(numeric("13")), secrets.NewSecret(numeric("12")), secrets.NewSecret(alphaNumeric("24"))),
	}
	fps := []string{
		"xoxb-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxxxxx",
		"xoxb-xxx",
		"xoxb-12345-abcd234",
		"xoxb-xoxb-my-bot-token",
	}
	return validate(r, tps, fps)
}

// https://api.slack.com/authentication/token-types#user
func SlackUserToken() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack User",
		RuleID:      "slack-user-token",
		// The last segment seems to be consistently 32 characters. I've made it 28-34 just in case.
		Regex:    regexp.MustCompile(`(xox[pe](?:-[0-9]{10,13}){3}-[a-zA-Z0-9-]{28,34})`),
		Keywords: []string{"xoxp-", "xoxe-"},
	}

	// validate
	tps := []string{
		// https://github.com/jonz-secops/TokenTester/blob/978e9f3eabc7e9978769cfbba10735afa3bf627e/slack#L25
		`"user_token1": "xoxp-41684372915-1320496754-45609968301-e708ba56e1517a99f6b5fb07349476ef"`, // gitleaks:allow
		// https://github.com/praetorian-inc/noseyparker/blob/16e0e5768fd14ea54f6c9a058566184d88343bb4/crates/noseyparker/data/default/rules/slack.yml#L29
		`"user_token2": "xoxp-283316862324-298911817009-298923149681-44f585044dace54f5701618e97cd1c0b"`, // gitleaks:allow
		// https://github.com/CloudBoost/cloudboost/blob/7ba2ed17099fa85e6fc652302822601283c6fa13/user-service/services/mailService.js#LL248C17-L248C92
		`"user_token3": "xoxp-11873098179-111402824422-234336993777-b96c9fb3b69f82ebb79d12f280779de1"`, // gitleaks:allow
		// https://github.com/evanyeung/terminal-slack/blob/b068f77808de72424d08b525d6cbf814849acd08/readme.md?plain=1#L66
		`"user_token4": "xoxp-254112160503-252950188691-252375361712-6cbf56aada30951a9d310a5f23d032a0"`,    // gitleaks:allow
		`"user_token5": "xoxp-4614724432022-4621207627011-5182682871568-1ddad9823e8528ad0f4944dfa3c6fc6c"`, // gitleaks:allow
		`"user_token6": ` + fmt.Sprintf(`"xoxp-%s-%s-%s-%s"`, secrets.NewSecret(numeric("12")), secrets.NewSecret(numeric("13")), secrets.NewSecret(numeric("13")), secrets.NewSecret(alphaNumeric("32"))),
		// It's unclear what the `xoxe-` token means in this context, however, the format is similar to a user token.
		`"url_private": "https:\/\/files.slack.com\/files-pri\/T04MCQMEXQ9-F04MAA1PKE3\/image.png?t=xoxe-4726837507825-4848681849303-4856614048758-e0b1f3d4cb371f92260edb0d9444d206"`,
	}
	fps := []string{
		`https://docs.google.com/document/d/1W7KCxOxP-1Fy5EyF2lbJGE2WuKmu5v0suYqoHas1jRM`,
		`"token1": "xoxp-1234567890"`, // gitleaks:allow
		`"token2": "xoxp-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"`, // gitleaks:allow
		`"token3": "xoxp-1234-1234-1234-4ddbc191d40ee098cbaae6f3523ada2d"`,                    // gitleaks:allow
		`"token4": "xoxp-572370529330-573807301142-572331691188-####################"`,        // gitleaks:allow
		// This technically matches the pattern but is an obvious false positive.
		// `"token5": "xoxp-000000000000-000000000000-000000000000-00000000000000000000000000000000"`, // gitleaks:allow
	}
	return validate(r, tps, fps)
}

// Reference: https://api.slack.com/authentication/token-types#app
func SlackAppLevelToken() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack App-level token",
		RuleID:      "slack-app-token",
		// This regex is based on a limited number of examples and may not be 100% accurate.
		Regex:    regexp.MustCompile(`(?i)(xapp-\d-[A-Z0-9]+-\d+-[a-z0-9]+)`),
		Keywords: []string{"xapp"},
	}

	tps := []string{
		// https://github.com/jonz-secops/TokenTester/blob/978e9f3eabc7e9978769cfbba10735afa3bf627e/slack#L17
		`"token1": "xapp-1-A052FGTS2DL-5171572773297-610b6a11f4b7eb819e87b767d80e6575a3634791acb9a9ead051da879eb5b55e"`, // gitleaks:allow
		`"token2": "xapp-1-IEMF8IMY1OQ-4037076220459-85c370b433e366de369c4ef5abdf41253519266982439a75af74a3d68d543fb6"`, // gitleaks:allow
		`"token3": "xapp-1-BM3V7LC51DA-1441525068281-86641a2582cd0903402ab523e5bcc53b8253098c31591e529b55b41974d2e82f"`, // gitleaks:allow
		`"token4": ` + fmt.Sprintf(`"xapp-1-A%s-%s-%s"`, secrets.NewSecret(numeric("10")), secrets.NewSecret(numeric("13")), secrets.NewSecret(alphaNumeric("64"))),
	}
	return validate(r, tps, nil)
}

// Reference: https://api.slack.com/authentication/config-tokens
func SlackConfigurationToken() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack Configuration access token",
		RuleID:      "slack-config-access-token",
		Regex:       regexp.MustCompile(`(?i)(xoxe.xox[bp]-\d-[A-Z0-9]{163,166})`),
		Keywords:    []string{"xoxe.xoxb-", "xoxe.xoxp-"},
	}

	tps := []string{
		`"access_token1": "xoxe.xoxp-1-Mi0yLTM0MTQwNDE0MDE3Ni0zNjU5NDY0Njg4MTctNTE4MjA3NTQ5NjA4MC01NDEyOTYyODY5NzUxLThhMTBjZmI1ZWIzMGIwNTg0ZDdmMDI5Y2UxNzVlZWVhYzU2ZWQyZTZiODNjNDZiMGUxMzRlNmNjNDEwYmQxMjQ"`, // gitleaks:allow
		`"access_token2": "xoxe.xoxp-1-Mi0yLTMxNzcwMjQ0MTcxMy0zNjU5NDY0Njg4MTctNTE1ODE1MjY5MTcxNC01MTU4MDI0MTgyOTc5LWRmY2YwY2U4ODhhNzY5ZGU5MTAyNDU4MDJjMGQ0ZDliMTZhMjNkMmEyYzliNjkzMDRlN2VjZTI4MWNiMzRkNGQ"`, // gitleaks:allow
		`"access_token3": "xoxe.xoxp-1-` + secrets.NewSecret(alphaNumeric("163")) + `"`,
		`"access_token4": "xoxe.xoxb-1-Mi0yLTMxNzcwMjQ0MTcxMy0zNjU5NDY0Njg4MTctNTE1ODE1MjY5MTcxNC01MTU4MDI0MTgyOTc5LWRmY2YwY2U4ODhhNzY5ZGU5MTAyNDU4MDJjMGQ0ZDliMTZhMjNkMmEyYzliNjkzMDRlN2VjZTI4MWNiMzRkNGQ"`,
		`"access_token5": "xoxe.xoxb-1-` + secrets.NewSecret(alphaNumeric("165")) + `"`,
	}
	fps := []string{
		"xoxe.xoxp-1-SlackAppConfigurationAccessTokenHere",
		"xoxe.xoxp-1-RANDOMSTRINGHERE",
		"xoxe.xoxp-1-initial",
	}
	return validate(r, tps, fps)
}

// Reference: https://api.slack.com/authentication/config-tokens
func SlackConfigurationRefreshToken() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack Configuration refresh token",
		RuleID:      "slack-config-refresh-token",
		Regex:       regexp.MustCompile(`(?i)(xoxe-\d-[A-Z0-9]{146})`),
		Keywords:    []string{"xoxe-"},
	}

	tps := []string{
		`"refresh_token1": "xoxe-1-My0xLTMxNzcwMjQ0MTcxMy01MTU4MTUyNjkxNzE0LTUxODE4NDI0MDY3MzYtMjA5MGFkOTFlZThkZWE2OGFlZDYwYWJjODNhYzAxYjA5ZjVmODBhYjgzN2QyNDdjOTNlOGY5NTg2YWM1OGM4Mg"`, // gitleaks:allow
		`"refresh_token2": "xoxe-1-My0xLTM0MTQwNDE0MDE3Ni01MTgyMDc1NDk2MDgwLTU0MjQ1NjIwNzgxODEtNGJkYTZhYTUxY2M1ODk3ZTNkN2YzMTgxMDI1ZDQzNzgwNWY4NWQ0ODdhZGIzM2ViOGI0MTM0MjdlNGVmYzQ4Ng"`, // gitleaks:allow
		`"refresh_token3": "xoxe-1-` + secrets.NewSecret(alphaNumeric("146")) + `"`,
	}
	fps := []string{"xoxe-1-xxx", "XOxE-RROAmw, Home and Garden, 5:24, 20120323"}
	return validate(r, tps, fps)
}

// Reference: https://api.slack.com/authentication/token-types#legacy_bot
func SlackLegacyBotToken() *config.Rule {
	r := config.Rule{
		Description: "Slack Legacy bot token",
		RuleID:      "slack-legacy-bot-token",
		// This rule is based off the limited information I could find and may not be 100% accurate.
		Regex: regexp.MustCompile(
			`(xoxb-[0-9]{8,14}\-[a-zA-Z0-9]{18,26})`),
		Keywords: []string{
			"xoxb",
		},
	}

	tps := []string{
		// https://github.com/jonz-secops/TokenTester/blob/978e9f3eabc7e9978769cfbba10735afa3bf627e/slack#LL42C38-L42C80
		`"bot_token1": "xoxb-263594206564-FGqddMF8t08v8N7Oq4i57vs1"`, // gitleaks:allow
		// https://heejune.me/2018/08/01/crashdump-analysis-automation-using-slackbot-python-cdb-from-windows/
		`"bot_token2": "xoxb-282029623751-BVtmnS3BQitmjZvjpQL7PSGP"`, // gitleaks:allow
		// https://github.com/praetorian-inc/noseyparker/blob/16e0e5768fd14ea54f6c9a058566184d88343bb4/crates/noseyparker/data/default/rules/slack.yml#L15
		`"bot_token3": "xoxb-47834520726-N3otsrwj8Cf99cs8GhiRZsX1"`, // gitleaks:allow
		// https://github.com/pulumi/examples/blob/32d9047c19c2a9380c04e57a764321c25eef45b0/aws-js-sqs-slack/README.md?plain=1#L39
		`"bot_token4": "xoxb-123456789012-Xw937qtWSXJss1lFaKe"`, // gitleaks:allow
		// https://github.com/ilyasProgrammer/Odoo-eBay-Amazon/blob/a9c4a8a7548b19027bc0fd904f8ae9249248a293/custom_logging/models.py#LL9C24-L9C66
		`"bot_token5": "xoxb-312554961652-uSmliU84rFhnUSBq9YdKh6lS"`, // gitleaks:allow
		// https://github.com/jay-johnson/sci-pype/blob/6bff42ea4eb32d35b9f223db312e4cd0d3911100/src/pycore.py#L37
		`"bot_token6": "xoxb-51351043345-Lzwmto5IMVb8UK36MghZYMEi"`, // gitleaks:allow
		// https://github.com/logicmoo/logicmoo_workspace/blob/2e1794f596121c9949deb3bfbd30d5b027a51d3d/packs_sys/slack_prolog/prolog/slack_client_old.pl#L28
		`"bot_token7": "xoxb-130154379991-ogFL0OFP3w6AwdJuK7wLojpK"`, // gitleaks:allow
		// https://github.com/sbarski/serverless-chatbot/blob/7d556897486f3fd53795907b7e33252e5cc6b3a3/Lesson%203/serverless.yml#L38
		`"bot_token8": "xoxb-159279836768-FOst5DLfEzmQgkz7cte5qiI"`,                                                             // gitleaks:allow
		`"bot_token9": "xoxb-50014434-slacktokenx29U9X1bQ"`,                                                                     // gitleaks:allow
		`"bot_token10": ` + fmt.Sprintf(`"xoxb-%s-%s`, secrets.NewSecret(numeric("10")), secrets.NewSecret(alphaNumeric("24"))), // gitleaks:allow
		`"bot_token11": ` + fmt.Sprintf(`"xoxb-%s-%s`, secrets.NewSecret(numeric("12")), secrets.NewSecret(alphaNumeric("23"))), // gitleaks:allow
	}
	fps := []string{
		"xoxb-xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxx", // gitleaks:allow
		"xoxb-Slack_BOT_TOKEN",
		"xoxb-abcdef-abcdef",
		// "xoxb-0000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // gitleaks:allow
	}
	return validate(r, tps, fps)
}

// Reference: https://api.slack.com/authentication/token-types#workspace
func SlackLegacyWorkspaceToken() *config.Rule {
	r := config.Rule{
		Description: "Slack Legacy Workspace token",
		RuleID:      "slack-legacy-workspace-token",
		// This is by far the least confident pattern.
		Regex: regexp.MustCompile(
			`(xox[ar]-(?:\d-)?[0-9a-zA-Z]{8,48})`),
		Keywords: []string{
			"xoxa",
			"xoxr",
		},
	}

	tps := []string{
		`"access_token": "xoxa-2-511111111-31111111111-3111111111111-e039d02840a0b9379c"`, // gitleaks:allow
		`"access_token1": ` + fmt.Sprintf(`"xoxa-%s-%s`, secrets.NewSecret(numeric("1")), secrets.NewSecret(alphaNumeric("12"))),
		`"access_token2": ` + fmt.Sprintf(`"xoxa-%s`, secrets.NewSecret(alphaNumeric("12"))),
		`"refresh_token1": ` + fmt.Sprintf(`"xoxr-%s-%s`, secrets.NewSecret(numeric("1")), secrets.NewSecret(alphaNumeric("12"))),
		`"refresh_token2": ` + fmt.Sprintf(`"xoxr-%s`, secrets.NewSecret(alphaNumeric("12"))),
	}
	fps := []string{
		// "xoxa-faketoken",
		// "xoxa-access-token-string",
		// "XOXa-nx991k",
		"https://github.com/xoxa-nyc/xoxa-nyc.github.io/blob/master/README.md",
	}
	return validate(r, tps, fps)
}

// References:
// - https://api.slack.com/authentication/token-types#legacy
// - https://api.slack.com/changelog/2016-05-19-authorship-changing-for-older-tokens
// - https://github.com/jonz-secops/TokenTester/blob/978e9f3eabc7e9978769cfbba10735afa3bf627e/slack#L29
// - https://gist.github.com/thesubtlety/a1c460d53df0837c5817c478b9f10588#file-local-slack-jack-py-L32
func SlackLegacyToken() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack Legacy token",
		RuleID:      "slack-legacy-token",
		Regex:       regexp.MustCompile(`(xox[os]-\d+-\d+-\d+-[a-fA-F\d]+)`),
		Keywords:    []string{"xoxo", "xoxs"},
	}

	// validate
	tps := []string{
		// https://github.com/GGStudy-DDUp/https-github.com-aldaor-HackerOneReports/blob/637e9261b63a7292a3a7ddf4bf13729c224d84df/PrivilegeEscalation/47940.txt#L23
		`"access_token1": "xoxs-3206092076-3204538285-3743137121-836b042620"`, // gitleaks:allow
		// https://github.com/jonz-secops/TokenTester/blob/978e9f3eabc7e9978769cfbba10735afa3bf627e/slack#L28
		`"access_token2": "xoxs-416843729158-132049654-5609968301-e708ba56e1"`, // gitleaks:allow
		// https://github.com/clr2of8/SlackExtract/blob/18d151152ff5a45b293d4b7193aa6d08f9ab1bfd/README.md?plain=1#L32
		`"access_token3": "xoxs-420083410720-421837374423-440811613314-977844f625b707d5b0b268206dbc92cbc85feef3e71b08e44815a8e6e7657190"`, // gitleaks:allow
		// https://github.com/zeroc00I/AllVideoPocsFromHackerOne/blob/95ae92f65ccef11c2c6acdaabfb7cc9b2b0eb4c6/jsonReports/61312.json#LL1C17-L1C17
		`"access_token4": "xoxs-4829527689-4829527691-4814341714-d0346ec616"`, // gitleaks:allow
		// https://github.com/ericvanderwal/general-playmaker/blob/34bd8e82e2d7b16ca9cc825d0c9d383b8378b550/Logic/setrandomseedtype.cs#LL783C15-L783C69
		`"access_token5": "xoxs-155191149137-155868813314-338998331396-9f6d235915"`, // gitleaks:allow
		`"access_token6": "xoxs-` + fmt.Sprintf("%s-%s-%s-%s", secrets.NewSecret(numeric("10")), secrets.NewSecret(numeric("10")), secrets.NewSecret(numeric("10")), secrets.NewSecret(hex("10"))) + `"`,
		`"access_token7": "xoxo-523423-234243-234233-e039d02840a0b9379c"`, // gitleaks:allow
	}
	fps := []string{
		"https://indieweb.org/images/3/35/2018-250-xoxo-indieweb-1.jpg",
		"https://lh3.googleusercontent.com/-tWXjX3LUD6w/Ua4La_N5E2I/AAAAAAAAACg/qcm19xbEYa4/s640/EXO-XOXO-teaser-exo-k-34521098-720-516.jpg",
	}
	return validate(r, tps, fps)
}

func SlackWebHookUrl() *config.Rule {
	// define rule
	r := config.Rule{
		Description: "Slack Webhook",
		RuleID:      "slack-webhook-url",
		// If this generates too many false-positives we should define an allowlist (e.g., "xxxx", "00000").
		Regex: regexp.MustCompile(
			`(https?:\/\/)?hooks.slack.com\/(services|workflows)\/[A-Za-z0-9+\/]{43,46}`),
		Keywords: []string{
			"hooks.slack.com",
		},
	}

	// validate
	tps := []string{
		"hooks.slack.com/services/" + secrets.NewSecret(alphaNumeric("44")),
		"http://hooks.slack.com/services/" + secrets.NewSecret(alphaNumeric("45")),
		"https://hooks.slack.com/services/" + secrets.NewSecret(alphaNumeric("46")),
		"http://hooks.slack.com/services/T024TTTTT/BBB72BBL/AZAAA9u0pA4ad666eMgbi555",   // gitleaks:allow
		"https://hooks.slack.com/services/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", // gitleaks:allow
		"hooks.slack.com/workflows/" + secrets.NewSecret(alphaNumeric("44")),
		"http://hooks.slack.com/workflows/" + secrets.NewSecret(alphaNumeric("45")),
		"https://hooks.slack.com/workflows/" + secrets.NewSecret(alphaNumeric("46")),
		"https://hooks.slack.com/workflows/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", // gitleaks:allow
		"http://hooks.slack.com/workflows/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",    // gitleaks:allow
	}
	return validate(r, tps, nil)
}

repository: bbhunter/gitleaks

repo_name: bbhunter/gitleaks


text:
cmake_minimum_required(VERSION 3.11)

include(FetchContent)

FetchContent_Declare(
  zstd
  GIT_REPOSITORY https://github.com/facebook/zstd.git
  GIT_TAG           v1.4.5
)
FetchContent_GetProperties(zstd
    POPULATED ZSTD_POPULATED)
if(NOT ZSTD_POPULATED)
    FetchContent_Populate(zstd)
    add_subdirectory(${zstd_SOURCE_DIR}/build/cmake ${zstd_BINARY_DIR})
endif()

include_directories(${zstd_SOURCE_DIR}/lib)

repository: woidpointer/LightPcapNg

repo_name: woidpointer/LightPcapNg

gha_language: C

extension: cmake


text:
% Jeff's versions:
@string{aiaa-journal = {AIAA J.}}
@string{combustion-and-flame = {Combust. Flame}}
@string{combustion-science-and-technology = {Combust. Sci. Technol.}}
@string{combustion-theory-and-modelling = {Combust. Theor. Model.}}
@string{communications-in-computational-physics = {Commun. Comput. Phys.}}
@string{communications-on-pure-and-applied-mathematics = {Commun. Pur. Appl. Math.}}
@string{computers-and-mathematics-with-applications = {Comput. Math. Appl.}}
@string{continuum-mechanics-and-thermodynamics = {Continuum Mech. Therm.}}
@string{ieee-transactions-on-plasma-science = {IEEE T. Plasma. Sci.}}
@string{international-journal-for-numerical-methods-in-fluids = {Int. J. Numer. Meth. Fl.}}
@string{international-journal-of-multiphase-flow = {Int. J. Multiphase Flow}}
@string{journal-of-applied-physics = {J. Appl. Phys.}}
@string{journal-of-computational-physics = {J. Comput. Phys.}}
@string{journal-of-engineering-mathematics = {J. Eng. Math.}}
@string{journal-of-fluid-mechanics = {J. Fluid Mech.}}
@string{mathematical-and-computer-modelling = {Math. Comput. Model.}}
@string{mathematical-models-and-methods-in-applied-sciences = {Math. Mod. Meth. Appl. S.}}
@string{mathematics-of-computation = {Math. Comput.}}
@string{matematicheskii-sbornik = {Mat. Sb.}}
@string{numerische-mathematik = {Numer. Math.}}
@string{philosophical-transactions-of-the-royal-society-of-london = {Philos. T. R. Soc. Lond.}}
@string{physics-of-plasmas = {Phys. Plasmas}}
@string{physics-of-fluids = {Phys. Fluids}}
@string{proceedings-of-the-royal-society-of-london = {P. R. Soc. London}}
@string{progress-in-energy-and-combustion-science = {Proj. Energ. Combust.}}
@string{reviews-of-modern-physics = {Rev. Mod. Phys.}}
@string{siam-journal-on-applied-math = {SIAM J. Appl. Math.}}
@string{siam-journal-on-numerical-analysis  = {SIAM J. Numer. Anal.}}
@string{siam-journal-on-scientific-computing  = {SIAM J. Sci. Comput.}}
@string{siam-review = {SIAM Rev.}}
@string{shock-waves = {Shock Waves}}

% Bill's versions:
@string{AIAAJ = {AIAA J.}}
@string{SISSC = "SIAM J. Sci. Stat. Comput."}
@string{SISC = "SIAM J. Sci. Comput."}
@string{JCP   = "J. Comput. Phys."}
@string{IJNME = {Int. J. Numer. Meth. Engrg.}}
@string{IJNMF = {Int. J. Numer. Meth. Fl.}}
@string{IJNMBE = {Int. J. Numer. Meth. Biomed. Engrg.}}
@string{CMAME = {Comput. Methods Appl. Mech. Engrg.}}
@string{journal-of-applied-mechanics = {J. Appl. Mech.}}
@string{journal-of-fluids-and-structures = {J. Fluid. Struct.}}
@string{journal-of-wind-engineering-and-industrial-aerodynamics = {J. Wind. Eng. Ind. Aerod.}}

@string{computers-and-fluids = {Comput. Fl.}}
@string{computers-and-structures = {Comput. Struct.}}
@string{applied-mathematics-and-computation = {Appl. Math. Comput.}}
@string{lasers-and-particle-beams = {Lasers Part. Beams}}

repository: unifem/overtureframework

repo_name: unifem/overtureframework

gha_language: Fortran


text:
package openapi

type Info struct {
	Title          string   `yaml:"title"`
	Description    string   `yaml:"description,omitempty"`
	TermsOfService string   `yaml:"termsOfService,omitempty"`
	Contact        *Contact `yaml:"contact,omitempty"`
	License        *License `yaml:"license,omitempty"`
	Version        string   `yaml:"version"`
}

repository: peter-mount/postgresql-rest

repo_name: peter-mount/postgresql-rest


text:
package runtime

import (
	"context"
	"io"

	dbm "github.com/cosmos/cosmos-db"

	"cosmossdk.io/core/store"
	storetypes "cosmossdk.io/store/types"

	sdk "github.com/cosmos/cosmos-sdk/types"
)

func NewKVStoreService(storeKey *storetypes.KVStoreKey) store.KVStoreService {
	return &kvStoreService{key: storeKey}
}

type kvStoreService struct {
	key *storetypes.KVStoreKey
}

func (k kvStoreService) OpenKVStore(ctx context.Context) store.KVStore {
	return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(k.key))
}

type memStoreService struct {
	key *storetypes.MemoryStoreKey
}

func (m memStoreService) OpenMemoryStore(ctx context.Context) store.KVStore {
	return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(m.key))
}

type transientStoreService struct {
	key *storetypes.TransientStoreKey
}

func (t transientStoreService) OpenTransientStore(ctx context.Context) store.KVStore {
	return newKVStore(sdk.UnwrapSDKContext(ctx).KVStore(t.key))
}

// CoreKVStore is a wrapper of Core/Store kvstore interface
// Remove after https://github.com/cosmos/cosmos-sdk/issues/14714 is closed
type coreKVStore struct {
	kvStore storetypes.KVStore
}

// NewKVStore returns a wrapper of Core/Store kvstore interface
// Remove once store migrates to core/store kvstore interface
func newKVStore(store storetypes.KVStore) store.KVStore {
	return coreKVStore{kvStore: store}
}

// Get returns nil iff key doesn't exist. Errors on nil key.
func (store coreKVStore) Get(key []byte) ([]byte, error) {
	return store.kvStore.Get(key), nil
}

// Has checks if a key exists. Errors on nil key.
func (store coreKVStore) Has(key []byte) (bool, error) {
	return store.kvStore.Has(key), nil
}

// Set sets the key. Errors on nil key or value.
func (store coreKVStore) Set(key, value []byte) error {
	store.kvStore.Set(key, value)
	return nil
}

// Delete deletes the key. Errors on nil key.
func (store coreKVStore) Delete(key []byte) error {
	store.kvStore.Delete(key)
	return nil
}

// Iterator iterates over a domain of keys in ascending order. End is exclusive.
// Start must be less than end, or the Iterator is invalid.
// Iterator must be closed by caller.
// To iterate over entire domain, use store.Iterator(nil, nil)
// CONTRACT: No writes may happen within a domain while an iterator exists over it.
// Exceptionally allowed for cachekv.Store, safe to write in the modules.
func (store coreKVStore) Iterator(start, end []byte) (store.Iterator, error) {
	return store.kvStore.Iterator(start, end), nil
}

// ReverseIterator iterates over a domain of keys in descending order. End is exclusive.
// Start must be less than end, or the Iterator is invalid.
// Iterator must be closed by caller.
// CONTRACT: No writes may happen within a domain while an iterator exists over it.
// Exceptionally allowed for cachekv.Store, safe to write in the modules.
func (store coreKVStore) ReverseIterator(start, end []byte) (store.Iterator, error) {
	return store.kvStore.ReverseIterator(start, end), nil
}

// Adapter
var _ storetypes.KVStore = kvStoreAdapter{}

type kvStoreAdapter struct {
	store store.KVStore
}

func (kvStoreAdapter) CacheWrap() storetypes.CacheWrap {
	panic("unimplemented")
}

func (kvStoreAdapter) CacheWrapWithTrace(w io.Writer, tc storetypes.TraceContext) storetypes.CacheWrap {
	panic("unimplemented")
}

func (kvStoreAdapter) GetStoreType() storetypes.StoreType {
	panic("unimplemented")
}

func (s kvStoreAdapter) Delete(key []byte) {
	err := s.store.Delete(key)
	if err != nil {
		panic(err)
	}
}

func (s kvStoreAdapter) Get(key []byte) []byte {
	bz, err := s.store.Get(key)
	if err != nil {
		panic(err)
	}
	return bz
}

func (s kvStoreAdapter) Has(key []byte) bool {
	has, err := s.store.Has(key)
	if err != nil {
		panic(err)
	}
	return has
}

func (s kvStoreAdapter) Set(key, value []byte) {
	err := s.store.Set(key, value)
	if err != nil {
		panic(err)
	}
}

func (s kvStoreAdapter) Iterator(start, end []byte) dbm.Iterator {
	it, err := s.store.Iterator(start, end)
	if err != nil {
		panic(err)
	}
	return it
}

func (s kvStoreAdapter) ReverseIterator(start, end []byte) dbm.Iterator {
	it, err := s.store.ReverseIterator(start, end)
	if err != nil {
		panic(err)
	}
	return it
}

func KVStoreAdapter(store store.KVStore) storetypes.KVStore {
	return &kvStoreAdapter{store}
}

repository: cosmos/cosmos-sdk

repo_name: cosmos/cosmos-sdk


text:
DESCRIPTION = "Archos Init package"
PR ="r0"

DEPENDS    = "base-passwd"
RDEPENDS    = "archos-tscalib"

COMPATIBLE_MACHINE = "archos-gen8"

SRC_URI = " \
	   file://archos-init-0.3.sh "

S = "${WORKDIR}"

inherit update-rc.d

INITSCRIPT_NAME = "archos-init.sh"
INITSCRIPT_PARAMS = "start 25 S ."

do_install() {
        install -d ${D}${sbindir}
	install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/archos-init-0.3.sh		${D}${sysconfdir}/init.d/archos-init.sh
}

repository: jjtt/OpenEmbedded-Archos

repo_name: jjtt/OpenEmbedded-Archos


text:
@book{Hebecker2020,
    author = "Hebecker, Arthur",
    title = "{Lectures on Beyond the Standard Model and the String Theory Landscape}",
    publisher = "Heidelberg University",
    month = "8",
    year = "2020",
    keywords = "Mathieu, Jonah"
}

@article{PDG20182019,
    author = "Tanabashi, M. and others",
    collaboration = "Particle Data Group",
    title = "{Review of Particle Physics 2018 and 2019 Update}",
    doi = "10.1103/PhysRevD.98.030001",
    journal = "Phys. Rev. D",
    volume = "98",
    number = "3",
    pages = "030001",
    year = "2018",
    keywords = "Mathieu"
}

@article{Amaldi1991,
      author        = "Amaldi, Ugo and de Boer, Wim and F\"urstenau, Hermann",
      title         = "{Comparison of grand unified theories with electroweak and
                       strong coupling constants measured at LEP}",
      journal       = "Phys. Lett. B",
      number        = "CERN-PPE-91-44. IEKP-KA-91-01",
      volume        = "260",
      pages         = "447-455. 20 p",
      month         = "Mar",
      year          = "1991",
      url           = "https://cds.cern.ch/record/217892",
      doi           = "10.1016/0370-2693(91)91641-8",
     keywords = "Mathieu"
}

@inproceedings{Kazakov2000,
    author = "Kazakov, D. I.",
    title = "{Beyond the Standard Model: In Search of Supersymmetry}",
    booktitle = "{2000 European School of High-Energy Physics}",
    eprint = "hep-ph/0012288",
    archivePrefix = "arXiv",
    pages = "125--199",
    month = "8",
    year = "2000",
    keywords = "Mathieu"
}

@article{GeorgiGlashow1974,
    author = "Georgi, H. and Glashow, S. L.",
    title = "{Unity of All Elementary Particle Forces}",
    doi = "10.1103/PhysRevLett.32.438",
    journal = "Phys. Rev. Lett.",
    volume = "32",
    pages = "438--441",
    year = "1974",
    keywords = "Mathieu"
}

@article{Fischler1992,
    author = "Fischler, Willy and Paban, Sonia and Thomas, Scott D.",
    title = "{Bounds on microscopic physics from P and T violation in atoms and molecules}",
    eprint = "hep-ph/9205233",
    archivePrefix = "arXiv",
    reportNumber = "UTTG-06-92",
    doi = "10.1016/0370-2693(92)91234-Z",
    journal = "Phys. Lett. B",
    volume = "289",
    pages = "373--380",
    year = "1992",
    keywords = "Mathieu"
}
@book{PeskinSchroeder1995,
    author = "Peskin, Michael E. and Schroeder, Daniel V.",
    title = "{An Introduction to quantum field theory}",
    isbn = "978-0-201-50397-5",
    publisher = "Addison-Wesley",
    address = "Reading, USA",
    year = "1995",
    keywords = "Mathieu"
}

@inproceedings{MSSMGroup1998,
    author = "Djouadi, A. and others",
    collaboration = "MSSM Working Group",
    title = "{The Minimal supersymmetric standard model: Group summary report}",
    booktitle = "{GDR (Groupement De Recherche) - Supersymetrie}",
    eprint = "hep-ph/9901246",
    archivePrefix = "arXiv",
    reportNumber = "PM-98-45",
    month = "12",
    year = "1998",
    keywords = "Mathieu"
}

@article{Martin1993,
    author = "Martin, Stephen P. and Vaughn, Michael T.",
    title = "{Two loop renormalization group equations for soft supersymmetry breaking couplings}",
    eprint = "hep-ph/9311340",
    archivePrefix = "arXiv",
    reportNumber = "NUB-3081-93-TH",
    doi = "10.1103/PhysRevD.50.2282",
    journal = "Phys. Rev. D",
    volume = "50",
    pages = "2282",
    year = "1994",
    note = "[Erratum: Phys.Rev.D 78, 039903 (2008)]",
    keywords = "Mathieu"
}

@book{Kane2010,
  title={Perspectives on Supersymmetry II},
  author={Kane, G.L.},
  isbn={9789814307505},
  series={Advanced series on directions in high energy physics},
  url={https://books.google.de/books?id=eIXUn-3aOFYC},
  year={2010},
  publisher={World Scientific},
    keywords = "Mathieu"
}
@article{CMS2007,
    author = "Bayatian, G. L. and others",
    collaboration = "CMS",
    title = "{CMS technical design report, volume II: Physics performance}",
    reportNumber = "CERN-LHCC-2006-021, CMS-TDR-008-2",
    doi = "10.1088/0954-3899/34/6/S01",
    journal = "J. Phys. G",
    volume = "34",
    number = "6",
    pages = "995--1579",
    year = "2007",
    keywords = "Mathieu"

}

repository: mathieukaltschmidt/SUSY

repo_name: mathieukaltschmidt/SUSY


text:
@Inbook{Campos2018,
author="Campos, Eduardo C.
and Maia, Marcelo A.",
editor="Latifi, Shahram",
title="Mining Historical Information to Study Bug Fixes",
bookTitle="Information Technology - New Generations: 14th International Conference on Information Technology",
year="2018",
publisher="Springer International Publishing",
address="Cham",
pages="535--543",
abstract="Software is present in almost all economic activity, and is boosting economic growth from many perspectives. At the same time, like any other man-made artifacts, software suffers from various bugs which lead to incorrect results, deadlocks, or even crashes of the entire system. Several approaches have been proposed to aid debugging. An interesting recent research direction is automatic program repair, which achieves promising results towards the reduction of costs associated with defect repair in software maintenance. The identification of common bug fix patterns is important to generate program patches automatically. In this paper, we conduct an empirical study with more than 4 million bug fixing commits distributed among 101,471 Java projects hosted on GitHub. We used a domain-specific programming language called Boa to analyze ultra-large-scale data efficiently. With Boa's support, we automatically detect the prevalence of the 5 most common bug fix patterns (identified in the work of Pan et al.) in those bug fixing commits.",
isbn="978-3-319-54978-1",
doi="10.1007/978-3-319-54978-1_68",
url="https://doi.org/10.1007/978-3-319-54978-1_68"
}


text:
SUMMARY = "USB Gadget neXt Configfs Library build for Tegra initrd flashing"
LICENSE = "GPL-2.0-only & LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"

inherit autotools pkgconfig

COMPATIBLE_MACHINE = "(tegra)"

PV = "0.2.0+git${SRCPV}"
SRCREV = "45c14ef4d5d7ced0fbf984208de44ced6d5ed898"
SRCBRANCH = "master"
SRC_REPO = "github.com/libusbgx/libusbgx.git;protocol=https"
SRC_URI = "git://${SRC_REPO};branch=${SRCBRANCH}"

S = "${WORKDIR}/git"

PACKAGECONFIG = "examples gadget-schemes libconfig"
PACKAGECONFIG[libconfig] = "--with-libconfig=yes,--without-libconfig,libconfig-tegra"
PACKAGECONFIG[examples] = "--enable-examples,--disable-examples"
PACKAGECONFIG[gadget-schemes] = "--enable-gadget-schemes,--disable-gadget-schemes"
PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,cmocka"

RCONFLICTS:${PN} = "libusbgx libusbgx-examples"
PACKAGE_ARCH = "${TEGRA_PKGARCH}"

repository: lfdmn/meta-tegra

repo_name: lfdmn/meta-tegra


text:
SECTION = "devel/chicken"
DESCRIPTION = "Dynamic (dense) vectors based on SRFI-43."
LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://dyn-vector.meta;md5=dd59e0aeb699020773b115ba4030705e"
DEPENDS_append_class-cross = " chicken-egg-vector-lib-cross"
DEPENDS_append_class-crosssdk = " chicken-egg-vector-lib-crosssdk"
DEPENDS_append_class-nativesdk = " nativesdk-chicken-egg-vector-lib chicken-egg-vector-lib-crosssdk"
DEPENDS = " chicken-egg-vector-lib chicken-egg-vector-lib-cross"
RDEPENDS_${PN} = " chicken-egg-vector-lib"

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

SRC_URI[md5sum] = "148ba0a99d90b3eddd2b8810921e1706"
SRC_URI[sha256sum] = "90b18b3df33e32fe1bf3c9371334aeb8cfb6c499343a1ddd630e80bd94db78e7"

S = "${WORKDIR}/dyn-vector-${PV}"

inherit chicken_install

BBCLASSEXTEND = "cross crosssdk nativesdk"

repository: OSSystems/meta-chicken

repo_name: OSSystems/meta-chicken