text:
,Ward,HOUSENO,DIR,STREET,LAT_Y,LNG_X,Tract_Fix,No_Tract_Info,CA_num,CA_name
251603,,6748      ,  ,VALLEY VIEW           ,41.99489974976,-88.14430236816,8048.04,0,312.0,Northwest Cook
350710,41.0,6748      ,N ,OLYMPIA               ,42.00389862061,-87.81210327148001,902.0,0,9.0,Edison Park
410395,41.0,6748      ,N ,WILDWOOD              ,42.00450134277,-87.7786026001,1201.0,0,12.0,Forest Glen
412135,41.0,6748      ,N ,DOWAGIAC              ,42.00320053101,-87.76370239258002,1202.0,0,12.0,Forest Glen
412194,41.0,6748      ,N ,IONIA                 ,42.00299835205,-87.76580047607,1202.0,0,12.0,Forest Glen
415210,,6748      ,N ,KENNETH               ,42.00400161743,-87.74030303955,8080.01,0,311.0,North Cook
415903,,6748      ,  ,HARDING               ,42.00410079956,-87.72760009765999,8080.02,0,311.0,North Cook
415932,,6748      ,E ,PRAIRIE               ,42.00410079956,-87.72630310059,8080.02,0,311.0,North Cook
416602,,6748      ,  ,ST LOUIS              ,42.00429916382,-87.71690368652,8080.02,0,311.0,North Cook
416612,,6748      ,  ,ST LOUIS              ,42.00419998169,-87.71710205078001,8080.02,0,311.0,North Cook
416651,,6748      ,  ,TRUMBULL              ,42.00429916382,-87.71569824219,8080.02,0,311.0,North Cook
416662,,6748      ,  ,TRUMBULL              ,42.00419998169,-87.71589660645,8080.02,0,311.0,North Cook
421020,50.0,6748      ,N ,CALIFORNIA            ,42.00450134277,-87.70020294189001,206.0,0,2.0,West Ridge
422298,50.0,6748      ,N ,MAPLEWOOD             ,42.0046005249,-87.69409942626999,206.0,0,2.0,West Ridge
422381,50.0,6748      ,N ,ARTESIAN              ,42.0046005249,-87.69159698486,206.0,0,2.0,West Ridge
449174,49.0,6748      ,N ,WOLCOTT               ,42.00479888916,-87.67819976806999,108.0,0,1.0,Rogers Park
449311,49.0,6748      ,N ,ASHLAND               ,42.00510025024,-87.67079925536999,106.0,0,1.0,Rogers Park
453163,40.0,6748      ,N ,GREENVIEW             ,42.00159835815,-87.66799926758002,106.0,0,1.0,Rogers Park
453164,40.0,6748      ,N ,GREENVIEW             ,42.00159835815,-87.66799926758002,106.0,0,1.0,Rogers Park
453165,40.0,6748      ,N ,GREENVIEW             ,42.00159835815,-87.66799926758002,106.0,0,1.0,Rogers Park
453166,40.0,6748      ,N ,GREENVIEW             ,42.00159835815,-87.66799926758002,106.0,0,1.0,Rogers Park
453217,40.0,6748      ,N ,NEWGARD               ,42.00469970703,-87.66690063476999,106.0,0,1.0,Rogers Park
453218,40.0,6748      ,N ,NEWGARD               ,42.00469970703,-87.66690063476999,106.0,0,1.0,Rogers Park
453219,40.0,6748      ,N ,NEWGARD               ,42.00469970703,-87.66690063476999,106.0,0,1.0,Rogers Park
453230,40.0,6748      ,N ,GLENWOOD              ,42.00490188599,-87.66609954834,106.0,0,1.0,Rogers Park
536981,41.0,6748      ,W ,HIGGINS               ,41.97919845581,-87.79679870605,1006.0,0,10.0,Norwood Park
537538,41.0,6748      ,W ,FOSTER                ,41.97579956055,-87.79699707031,1006.0,0,10.0,Norwood Park
635580,30.0,6748      ,W ,DIVERSEY              ,41.9314994812,-87.76959991455,1904.0,0,19.0,Belmont Cragin
639807,36.0,6748      ,W ,DIVERSEY              ,41.93119812012,-87.79489898681999,1801.0,0,18.0,Montclare
951458,,6748      ,  ,ROOSEVELT             ,41.86550140380999,-87.79360198975,8132.0,0,313.0,West Cook
951459,,6748      ,  ,ROOSEVELT             ,41.86550140380999,-87.79350280761999,8132.0,0,313.0,West Cook
951460,,6748      ,  ,ROOSEVELT             ,41.86539840698,-87.79329681396,8132.0,0,313.0,West Cook
951461,,6748      ,  ,ROOSEVELT             ,41.86539840698,-87.79319763184,8132.0,0,313.0,West Cook
951462,,6748      ,  ,ROOSEVELT             ,41.86539840698,-87.79309844971,8132.0,0,313.0,West Cook
951463,,6748      ,  ,ROOSEVELT             ,41.86539840698,-87.79299926758002,8132.0,0,313.0,West Cook
951464,,6748      ,  ,ROOSEVELT             ,41.86550140380999,-87.79299926758002,8132.0,0,313.0,West Cook
951465,,6748      ,  ,ROOSEVELT             ,41.86550140380999,-87.79290008545,8132.0,0,313.0,West Cook
951466,,6748      ,  ,ROOSEVELT             ,41.86550140380999,-87.79270172119,8132.0,0,313.0,West Cook
955717,,6748      ,  ,16TH                  ,41.85779953003,-87.79270172119,8150.0,0,313.0,West Cook
955727,,6748      ,  ,16TH                  ,41.85779953003,-87.79270172119,8150.0,0,313.0,West Cook
956326,,6748      ,  ,19TH                  ,41.85390090942,-87.79309844971,8149.0,0,313.0,West Cook
1280134,,6748      ,  ,LAPORTE               ,41.76789855957,-87.81610107421999,8205.01,0,314.0,Southwest Cook
1280152,,6748      ,  ,78TH                  ,41.76789855957,-87.81469726563,8205.01,0,314.0,Southwest Cook
1280180,,6748      ,  ,MAPLE                 ,41.76789855957,-87.8132019043,8205.01,0,314.0,Southwest Cook
1280198,,6748      ,  ,77TH                  ,41.7680015564,-87.8117980957,8205.01,0,314.0,Southwest Cook
1306094,23.0,6748      ,S ,ARCHER                ,41.792400360109994,-87.79100036621,5609.0,0,56.0,Garfield Ridge
1343272,23.0,6748      ,W ,63RD                  ,41.77780151367,-87.79049682616998,6404.0,0,64.0,Clearing
1350638,13.0,6748      ,S ,KILBOURN              ,41.76969909668,-87.73509979248001,6505.0,0,65.0,West Lawn
1350656,13.0,6748      ,S ,KILBOURN              ,41.76979827880999,-87.73509979248001,6505.0,0,65.0,West Lawn
1350685,13.0,6748      ,S ,KENNETH               ,41.76979827880999,-87.73390197754,6505.0,0,65.0,West Lawn
1350721,13.0,6748      ,S ,KOSTNER               ,41.76979827880999,-87.73259735107,6505.0,0,65.0,West Lawn
1350832,13.0,6748      ,S ,KOLIN                 ,41.76979827880999,-87.73139953613001,6505.0,0,65.0,West Lawn
1350879,13.0,6748      ,S ,KILDARE               ,41.76990127563,-87.73020172119,6505.0,0,65.0,West Lawn
1350913,13.0,6748      ,S ,TRIPP                 ,41.76990127563,-87.72899627685999,6505.0,0,65.0,West Lawn
1350948,13.0,6748      ,S ,KEELER                ,41.76990127563,-87.72779846191,6505.0,0,65.0,West Lawn
1350982,13.0,6748      ,S ,KEDVALE               ,41.76990127563,-87.72650146484001,6505.0,0,65.0,West Lawn
1351030,13.0,6748      ,S ,KARLOV                ,41.76990127563,-87.7253036499,6505.0,0,65.0,West Lawn
1351068,13.0,6748      ,S ,KOMENSKY              ,41.76990127563,-87.72409820556999,6505.0,0,65.0,West Lawn
1357483,15.0,6748      ,S ,WESTERN               ,41.77050018311,-87.68379974365,6609.0,0,66.0,Chicago Lawn
1371753,,6748      ,  ,87TH                  ,41.73400115967,-87.78890228271,8210.02,0,314.0,Southwest Cook
1445883,17.0,6748      ,S ,BELL                  ,41.77059936523,-87.68000030518,6607.0,0,66.0,Chicago Lawn
1446884,15.0,6748      ,S ,WINCHESTER            ,41.77059936523,-87.67279815674,6713.0,0,67.0,West Englewood
1446976,15.0,6748      ,S ,HONORE                ,41.77069854736,-87.67040252685999,6713.0,0,67.0,West Englewood
1447138,15.0,6748      ,S ,MARSHFIELD            ,41.77069854736,-87.66549682616998,6715.0,0,67.0,West Englewood
1447182,15.0,6748      ,S ,ASHLAND               ,41.77059936523,-87.66439819336,6715.0,0,67.0,West Englewood
1450220,17.0,6748      ,S ,LAFLIN                ,41.77080154419,-87.66190338135,6716.0,0,67.0,West Englewood
1450352,17.0,6748      ,S ,ADA                   ,41.77090072632,-87.65830230713001,6717.0,0,67.0,West Englewood
1450397,17.0,6748      ,S ,THROOP                ,41.77090072632,-87.65709686279,6717.0,0,67.0,West Englewood
1450437,17.0,6748      ,S ,ELIZABETH             ,41.77090072632,-87.65579986571998,6717.0,0,67.0,West Englewood
1450464,17.0,6748      ,S ,RACINE                ,41.77090072632,-87.65460205078001,6717.0,0,67.0,West Englewood
1451619,17.0,6748      ,S ,MORGAN                ,41.77099990845,-87.64980316161999,6811.0,0,68.0,Englewood
1451660,17.0,6748      ,S ,SANGAMON              ,41.77099990845,-87.64859771729,6811.0,0,68.0,Englewood
1451705,17.0,6748      ,S ,PEORIA                ,41.77099990845,-87.64730072021,6811.0,0,68.0,Englewood
1451754,17.0,6748      ,S ,GREEN                 ,41.77099990845,-87.64610290527,6811.0,0,68.0,Englewood
1451796,6.0,6748      ,S ,HALSTED               ,41.77099990845,-87.64489746094,6811.0,0,68.0,Englewood
1454216,6.0,6748      ,S ,EMERALD               ,41.77109909058,-87.64360046386999,6812.0,0,68.0,Englewood
1454246,6.0,6748      ,S ,UNION                 ,41.77109909058,-87.64219665527,6812.0,0,68.0,Englewood
1454302,6.0,6748      ,S ,PARNELL               ,41.77109909058,-87.63909912109001,6812.0,0,68.0,Englewood
1454337,6.0,6748      ,S ,NORMAL                ,41.77119827271,-87.63770294189001,6812.0,0,68.0,Englewood
1455200,6.0,6748      ,S ,PERRY                 ,41.77130126953,-87.62879943848,6903.0,0,69.0,Greater Grand Crossing
1455230,6.0,6748      ,S ,LAFAYETTE             ,41.77130126953,-87.62719726563,6903.0,0,69.0,Greater Grand Crossing
1455268,6.0,6748      ,S ,YALE                  ,41.77000045776,-87.63159942626999,6812.0,0,68.0,Englewood
1457343,20.0,6748      ,S ,WABASH                ,41.77140045166,-87.62390136719,6904.0,0,69.0,Greater Grand Crossing
1457382,20.0,6748      ,S ,MICHIGAN              ,41.77140045166,-87.62229919434,6904.0,0,69.0,Greater Grand Crossing
1457403,20.0,6748      ,S ,INDIANA               ,41.77149963379,-87.62069702148001,6904.0,0,69.0,Greater Grand Crossing
1457444,20.0,6748      ,S ,PRAIRIE               ,41.77149963379,-87.6190032959,6904.0,0,69.0,Greater Grand Crossing
1458312,20.0,6748      ,S ,RHODES                ,41.77159881592,-87.61209869385,4212.0,0,42.0,Woodlawn
1458360,20.0,6748      ,S ,SAINT LAWRENCE        ,41.77159881592,-87.61090087890999,4212.0,0,42.0,Woodlawn
1458414,20.0,6748      ,S ,CHAMPLAIN             ,41.77159881592,-87.60970306396,4212.0,0,42.0,Woodlawn
1458524,20.0,6748      ,S ,COTTAGE GROVE         ,41.77170181274,-87.60610198975,4212.0,0,42.0,Woodlawn
1462602,5.0,6748      ,S ,DORCHESTER            ,41.76819992065,-87.59190368652,4303.0,0,43.0,South Shore
1463024,5.0,6748      ,S ,CORNELL               ,41.771900177,-87.58540344238001,4302.0,0,43.0,South Shore
1463087,5.0,6748      ,S ,RIDGELAND             ,41.771900177,-87.58300018310999,4302.0,0,43.0,South Shore
1463167,5.0,6748      ,S ,CONSTANCE             ,41.77199935913,-87.5804977417,4302.0,0,43.0,South Shore
1463185,5.0,6748      ,S ,BENNETT               ,41.771900177,-87.57929992676,4302.0,0,43.0,South Shore
1464189,5.0,6748      ,S ,PAXTON                ,41.77199935913,-87.57189941406,4301.0,0,43.0,South Shore
1464496,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464497,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464498,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464499,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464504,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464505,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464506,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1464507,5.0,6748      ,S ,OGLESBY               ,41.77209854126,-87.56870269775,4301.0,0,43.0,South Shore
1564794,,6748      ,W ,88TH                  ,41.731899261470005,-87.78869628906,8224.0,0,314.0,Southwest Cook
1564838,,6748      ,W ,88TH                  ,41.73099899292,-87.78869628906,8224.0,0,314.0,Southwest Cook
1565721,,6748      ,W ,92ND                  ,41.72460174561,-87.7891998291,8224.0,0,314.0,Southwest Cook
1603077,,6748      ,W ,111TH                 ,41.69079971313,-87.7878036499,8231.02,0,314.0,Southwest Cook
1603078,,6748      ,W ,111TH                 ,41.69070053101,-87.7853012085,8231.02,0,314.0,Southwest Cook
1604298,,6748      ,W ,115TH                 ,41.68310165405,-87.78759765625,8231.02,0,314.0,Southwest Cook
1620233,,6748      ,  ,MENOMINEE             ,41.66579818726,-87.78720092773001,8236.05,0,314.0,Southwest Cook
1620958,,6748      ,W ,PARK                  ,41.65599822998,-87.7866973877,8236.04,0,314.0,Southwest Cook
1803474,,6748      ,  ,JOHNS                 ,41.599201202390006,-87.78679656982,8245.07,0,314.0,Southwest Cook
1815526,,6748      ,  ,TINLEY PARK           ,41.58629989624,-87.78440093994,8253.01,0,314.0,Southwest Cook
1815577,,6748      ,  ,RAVINIA               ,41.582599639890006,-87.78430175781,8253.01,0,314.0,Southwest Cook
1819068,,6748      ,  ,181ST                 ,41.56240081787,-87.78269958496,8254.0,0,314.0,Southwest Cook

repository: Najah-lshanableh/land-bank

repo_name: Najah-lshanableh/land-bank


text:
package gobootconfig

import (
	"gopkg.in/yaml.v2"
	"io"
	"io/ioutil"
	"reflect"
)

func parseYaml(read io.Reader, configs map[string]interface{}) {
	b, _ := ioutil.ReadAll(read)
	m := make(map[interface{}]interface{})

	err := yaml.Unmarshal(b, &m)
	if err != nil {

	}
	toMapRecursively("", m, configs)
}

func toMapRecursively(base string, m interface{}, s map[string]interface{}) {
	switch reflect.TypeOf(m).Kind().String() {
	case "map":
		for k, v := range m.(map[interface{}]interface{}) {
			sss := ""
			if base != sss {
				sss = base + "."
			}
			toMapRecursively(sss+k.(string), v, s)
		}
		break
	case "slice":
		for _, v := range m.([]interface{}) {
			toMapRecursively(base, v, s)
		}
		break
	default:
		if val, ok := s[base]; ok {
			if reflect.TypeOf(val).Kind().String() != "slice" {
				s[base] = []interface{}{val}
			}
			s[base] = append(s[base].([]interface{}), m)
		} else {
			s[base] = m
		}
	}
}

repository: furkilic/go-boot-config

license_type: permissive

repo_name: furkilic/go-boot-config

branch_name: refs/heads/master

gha_language: Go

extension: go


text:
require linux-stable.inc

LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"

KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig"

COMPATIBLE_MACHINE = "beagle"

KERNEL_DEVICETREE_append = " \
    am335x-bone.dtb \
    am335x-boneblack.dtb \
    \
    beagle-chipsee.dtb \
"
IMAGE_BOOT_FILES_append = " \
    beagle-chipsee.dtb \
"
LINUX_VERSION = "5.10"

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-stable-${LINUX_VERSION}:${THISDIR}/linux-stable-${LINUX_VERSION}/dts:"

S = "${WORKDIR}/git"

PV = "5.10.19"
SRCREV = "7b43ec8a0cc6fefdd63a1443edef0d2693ff99a2"
SRC_URI = " \
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-${LINUX_VERSION}.y \
    file://defconfig \
    file://0002-dts-Remove-bbb-cape-i2c-definitions.patch \
    \
    file://bbb-1wire.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-dcan0.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-dcan1.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-i2c1.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-i2c2.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-spi0-spidev.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-spi1-spidev.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-uart1.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-uart2.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-uart4.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-uart5.dtsi;subdir=git/arch/arm/boot/dts \
    file://bbb-chipsee-keypad.dtsi;subdir=git/arch/arm/boot/dts \
    \
    file://beagle-chipsee.dts;subdir=git/arch/arm/boot/dts \
    file://logo_linux_clut224.ppm \
"

do_configure_prepend() {
    # logo support, if you supply logo_linux_clut224.ppm in SRC_URI, then it's going to be used
    if [ -e ${WORKDIR}/logo_linux_clut224.ppm ]; then
        install -m 0644 ${WORKDIR}/logo_linux_clut224.ppm ${S}/drivers/video/logo/logo_linux_clut224.ppm
    fi
}

license: MIT

branch_name: refs/heads/main

gha_license_id: MIT

gha_language: BitBake

extension: bb


text:
package sandbox

const (
	// TransientBucket is the name of bucket that only appears in tx output set
	// but does't persists in xmodel
	TransientBucket = "$transient"
)

repository: CodeCmn/xupercore

repo_name: CodeCmn/xupercore


text:
package tst

import (
	"testing"

	"github.com/Shopify/goluago"
)

var tests = []struct {
	pkg      string
	filename string
}{
	{"fmt", "fmt/fmt_test.lua"},
	{"json", "encoding/json/json_test.lua"},
	{"regexp", "regexp/regexp_test.lua"},
	{"strings", "strings/strings_test.lua"},
	{"time", "time/time_test.lua"},
	{"url", "net/url/url_test.lua"},
	{"env", "env/env_test.lua"},
	{"hmac", "crypto/hmac/hmac_test.lua"},
	{"base64", "encoding/base64/base64_test.lua"},
	{"uuid", "uuid/uuid_test.lua"},
	{"hex", "encoding/hex/hex_test.lua"},
	{"sha256", "crypto/sha256/sha256_test.lua"},
	{"aes", "crypto/aes/aes_test.lua"},
	{"md5", "crypto/md5/md5_test.lua"},
}

func TestAllPackages(t *testing.T) {
	for _, test := range tests {
		t.Logf("Testing package '%s'", test.pkg)
		RunLuaTests(t, goluago.Open, test.filename)
	}
}

repository: Shopify/goluago

repo_name: Shopify/goluago


text:
/*
Copyright (c) Facebook, Inc. and its affiliates.
All rights reserved.

This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
*/

package counters

import (
	"context"
	"fmt"
	"time"

	"go.opencensus.io/stats"
	"go.opencensus.io/stats/view"
	"go.opencensus.io/tag"
)

// Operation counterset to track an operation
type Operation struct {
	name           string
	startTime      int64
	ctx            context.Context
	start          *stats.Int64Measure
	success        *stats.Int64Measure
	successLatency *stats.Int64Measure
	failed         *stats.Int64Measure
	failedLatency  *stats.Int64Measure
}

// NewOperation creates a new operation counter set
func NewOperation(name string, tagKeys ...tag.Key) Operation {
	operation := Operation{
		name:      name,
		startTime: 0,
		ctx:       context.Background(),
		start: stats.Int64(
			fmt.Sprintf("%s/start", name),
			fmt.Sprintf("Operation '%s' started", name),
			stats.UnitDimensionless,
		),
		success: stats.Int64(
			fmt.Sprintf("%s/success", name),
			fmt.Sprintf("Operation '%s' succeeded", name),
			stats.UnitDimensionless,
		),
		successLatency: stats.Int64(
			fmt.Sprintf("%s/success_latency", name),
			fmt.Sprintf("Operation '%s' success latency", name),
			stats.UnitMilliseconds,
		),
		failed: stats.Int64(
			fmt.Sprintf("%s/failed", name),
			fmt.Sprintf("Operation '%s' failed", name),
			stats.UnitDimensionless,
		),
		failedLatency: stats.Int64(
			fmt.Sprintf("%s/failed_latency", name),
			fmt.Sprintf("Operation '%s' failure latency", name),
			stats.UnitMilliseconds,
		),
	}
	views := []*view.View{
		{
			Name:        fmt.Sprintf("%s/start/count", name),
			Measure:     operation.start,
			Description: fmt.Sprintf("The number of time '%s' was started", name),
			Aggregation: view.Count(),
			TagKeys:     tagKeys,
		},
		{
			Name:        fmt.Sprintf("%s/failure/count", name),
			Measure:     operation.failed,
			Description: fmt.Sprintf("The number of time '%s' has failed", name),
			Aggregation: view.Count(),
			TagKeys:     tagKeys,
		},
		{
			Name:        fmt.Sprintf("%s/failure/latency", name),
			Measure:     operation.failedLatency,
			Description: fmt.Sprintf("The latency of failed '%s' operations", name),
			Aggregation: view.LastValue(),
			TagKeys:     tagKeys,
		},
		{
			Name:        fmt.Sprintf("%s/success/latency", name),
			Measure:     operation.successLatency,
			Description: fmt.Sprintf("The latency of successful '%s' operations", name),
			Aggregation: view.LastValue(),
			TagKeys:     tagKeys,
		},
		{
			Name:        fmt.Sprintf("%s/success/count", name),
			Measure:     operation.success,
			Description: fmt.Sprintf("The number of time '%s' has succeeded", name),
			Aggregation: view.Count(),
			TagKeys:     tagKeys,
		},
	}

	view.Register(views...)

	return operation
}

// SetTag sets a sticky tag which will be emitted with every counter log
func (o Operation) SetTag(key tag.Key, value string) Operation {
	o.ctx, _ = tag.New(o.ctx, tag.Upsert(key, value))
	return o
}

// DeleteTag delets a sticky tag so it is no longer emitted with every counter log
func (o Operation) DeleteTag(key tag.Key) Operation {
	o.ctx, _ = tag.New(o.ctx, tag.Delete(key))
	return o
}

// Start indicates the operation has started
func (o Operation) Start() Operation {
	o.startTime = time.Now().UTC().Unix()
	stats.Record(o.ctx, o.start.M(1))
	return o
}

// Success indicates the operation has completed successfully
func (o Operation) Success() {
	n := time.Now().UTC().Unix()
	stats.Record(
		o.ctx,
		o.success.M(1),
		o.successLatency.M(n-o.startTime),
	)
	o.startTime = 0
}

// Failure indicates the operation has completed successfully
func (o Operation) Failure(errorCode string) {
	n := time.Now().UTC().Unix()
	stats.RecordWithTags(
		o.ctx,
		[]tag.Mutator{tag.Upsert(ErrorCodeTag, errorCode)},
		o.failed.M(1),
		o.failedLatency.M(n-o.startTime),
	)
	o.startTime = 0
}

repository: abelviageiro/magma

repo_name: abelviageiro/magma

gha_license_id: NOASSERTION


text:
DESCRIPTION = "Lightweight JSON library written in C"
HOMEPAGE = "https://github.com/kgabis/parson"
AUTHOR = "Krzysztof Gabis"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=14773547851b6ac335d3d7fb7707a021"

inherit cmake pkgconfig

PR = "r0"

SRC_URI = "\
    git://github.com/kgabis/parson.git;rev=102a4467e10c77ffcfde1d233798780acd719cc5 \
"

S = "${WORKDIR}/git"

EXTRA_OECMAKE = "\
    -DBUILD_SHARED_LIBS:BOOL=ON \
"

FILES_${PN}-dev += "\
    ${libdir}/cmake \
"