text:
// Code generated by cproto. DO NOT EDIT.

package instances

import discovery "go.chromium.org/luci/grpc/discovery"

import "github.com/golang/protobuf/protoc-gen-go/descriptor"

func init() {
	discovery.RegisterDescriptorSetCompressed(
		[]string{
			"instances.Instances",
		},
		[]byte{31, 139,
			8, 0, 0, 0, 0, 0, 0, 255, 236, 122, 203, 115, 27, 73,
			122, 39, 235, 1, 16, 76, 234, 153, 164, 36, 46, 164, 86, 127,
			98, 55, 37, 176, 5, 2, 124, 72, 221, 77, 169, 53, 219, 32,
			8, 82, 165, 37, 9, 46, 0, 234, 213, 211, 45, 21, 10, 9,
			162, 164, 66, 37, 166, 178, 64, 10, 210, 106, 181, 51, 17, 179,
			199, 137, 253, 3, 246, 176, 177, 7, 31, 230, 48, 62, 216, 19,
			49, 87, 223, 125, 246, 127, 224, 179, 47, 62, 56, 194, 17, 14,
			71, 126, 89, 85, 0, 41, 177, 213, 51, 142, 240, 169, 25, 100,
			176, 190, 172, 204, 239, 157, 249, 253, 50, 179, 200, 159, 40, 185,
			188, 207, 249, 190, 199, 138, 189, 128, 135, 188, 217, 111, 23, 89,
			183, 23, 14, 10, 72, 210, 179, 234, 101, 33, 126, 57, 59, 78,
			82, 21, 249, 126, 237, 128, 76, 57, 188, 91, 56, 246, 126, 141,
			224, 219, 93, 73, 238, 106, 79, 111, 236, 187, 97, 167, 223, 44,
			56, 188, 91, 220, 231, 158, 237, 239, 15, 197, 244, 194, 65, 143,
			9, 37, 237, 95, 52, 237, 255, 235, 198, 230, 238, 218, 239, 245,
			171, 155, 138, 227, 110, 212, 175, 240, 136, 121, 222, 127, 243, 249,
			161, 223, 144, 253, 31, 252, 219, 57, 146, 166, 230, 213, 177, 149,
			115, 228, 239, 79, 17, 237, 20, 53, 174, 142, 209, 229, 191, 59,
			5, 56, 192, 225, 30, 172, 245, 219, 109, 22, 8, 88, 0, 197,
			234, 134, 128, 150, 29, 218, 224, 250, 33, 11, 156, 142, 237, 239,
			51, 104, 243, 160, 107, 135, 4, 202, 188, 55, 8, 220, 253, 78,
			8, 203, 139, 139, 95, 71, 3, 192, 242, 157, 2, 64, 201, 243,
			0, 223, 9, 8, 152, 96, 193, 1, 107, 21, 8, 116, 194, 176,
			39, 238, 20, 139, 45, 118, 192, 60, 222, 99, 129, 136, 125, 32,
			141, 236, 69, 74, 44, 52, 149, 18, 69, 66, 160, 198, 90, 174,
			8, 3, 183, 217, 15, 93, 238, 131, 237, 183, 160, 47, 24, 184,
			62, 8, 222, 15, 28, 134, 45, 77, 215, 183, 131, 1, 234, 37,
			242, 112, 232, 134, 29, 224, 1, 254, 231, 253, 144, 64, 151, 183,
			220, 182, 235, 216, 146, 67, 30, 236, 128, 65, 143, 5, 93, 55,
			12, 89, 11, 122, 1, 63, 112, 91, 172, 5, 97, 199, 14, 33,
			236, 72, 235, 60, 143, 31, 186, 254, 62, 56, 220, 111, 185, 114,
			144, 144, 131, 8, 116, 89, 120, 135, 16, 144, 63, 95, 28, 83,
			76, 0, 111, 199, 26, 57, 188, 197, 160, 219, 23, 33, 4, 44,
			180, 93, 31, 185, 218, 77, 126, 32, 95, 69, 30, 35, 224, 243,
			208, 117, 88, 30, 194, 142, 43, 192, 115, 69, 40, 57, 140, 74,
			244, 91, 199, 212, 105, 185, 194, 241, 108, 183, 203, 130, 194, 73,
			74, 184, 254, 168, 47, 98, 37, 122, 1, 111, 245, 29, 54, 212,
			131, 12, 21, 249, 15, 233, 65, 32, 178, 174, 197, 157, 126, 151,
			249, 161, 29, 7, 169, 200, 3, 224, 97, 135, 5, 208, 181, 67,
			22, 184, 182, 39, 134, 174, 198, 0, 133, 29, 70, 96, 84, 251,
			196, 168, 29, 230, 226, 72, 201, 216, 183, 187, 76, 42, 52, 154,
			91, 62, 31, 190, 67, 191, 187, 161, 144, 22, 249, 138, 21, 15,
			4, 116, 237, 1, 52, 153, 204, 148, 22, 132, 28, 152, 223, 226,
			129, 96, 50, 41, 122, 1, 239, 242, 144, 129, 242, 73, 40, 160,
			197, 2, 247, 128, 181, 160, 29, 240, 46, 81, 94, 16, 188, 29,
			30, 202, 52, 137, 50, 8, 68, 143, 57, 50, 131, 160, 23, 184,
			50, 177, 2, 153, 59, 190, 202, 34, 33, 80, 119, 2, 141, 251,
			86, 29, 234, 213, 141, 198, 163, 82, 173, 2, 86, 29, 118, 107,
			213, 135, 214, 122, 101, 29, 214, 158, 64, 227, 126, 5, 202, 213,
			221, 39, 53, 107, 243, 126, 3, 238, 87, 183, 214, 43, 181, 58,
			148, 118, 214, 161, 92, 221, 105, 212, 172, 181, 189, 70, 181, 86,
			39, 48, 91, 170, 131, 85, 159, 197, 55, 165, 157, 39, 80, 121,
			188, 91, 171, 212, 235, 80, 173, 129, 181, 189, 187, 101, 85, 214,
			225, 81, 169, 86, 43, 237, 52, 172, 74, 61, 15, 214, 78, 121,
			107, 111, 221, 218, 217, 204, 195, 218, 94, 3, 118, 170, 13, 2,
			91, 214, 182, 213, 168, 172, 67, 163, 154, 71, 177, 239, 143, 131,
			234, 6, 108, 87, 106, 229, 251, 165, 157, 70, 105, 205, 218, 178,
			26, 79, 80, 224, 134, 213, 216, 145, 194, 54, 170, 53, 2, 37,
			216, 45, 213, 26, 86, 121, 111, 171, 84, 131, 221, 189, 218, 110,
			181, 94, 1, 105, 217, 186, 85, 47, 111, 149, 172, 237, 202, 122,
			1, 172, 29, 216, 169, 66, 229, 97, 101, 167, 1, 245, 251, 165,
			173, 173, 163, 134, 18, 168, 62, 218, 169, 212, 164, 246, 163, 102,
			194, 90, 5, 182, 172, 210, 218, 86, 69, 138, 66, 59, 215, 173,
			90, 165, 220, 144, 6, 13, 159, 202, 214, 122, 101, 167, 81, 218,
			202, 19, 168, 239, 86, 202, 86, 105, 43, 15, 149, 199, 149, 237,
			221, 173, 82, 237, 73, 62, 98, 90, 175, 252, 247, 189, 202, 78,
			195, 42, 109, 193, 122, 105, 187, 180, 89, 169, 67, 238, 99, 94,
			217, 173, 85, 203, 123, 181, 202, 182, 212, 186, 186, 1, 245, 189,
			181, 122, 195, 106, 236, 53, 42, 176, 89, 173, 174, 163, 179, 235,
			149, 218, 67, 171, 92, 169, 223, 133, 173, 106, 29, 29, 182, 87,
			175, 228, 9, 172, 151, 26, 37, 20, 189, 91, 171, 110, 88, 141,
			250, 93, 249, 188, 182, 87, 183, 208, 113, 214, 78, 163, 82, 171,
			237, 237, 54, 172, 234, 206, 60, 220, 175, 62, 170, 60, 172, 212,
			160, 92, 218, 171, 87, 214, 209, 195, 213, 29, 105, 173, 204, 149,
			74, 181, 246, 68, 178, 149, 126, 192, 8, 228, 225, 209, 253, 74,
			227, 126, 165, 38, 157, 138, 222, 42, 73, 55, 212, 27, 53, 171,
			220, 24, 237, 86, 173, 65, 163, 90, 107, 144, 17, 59, 97, 167,
			178, 185, 101, 109, 86, 118, 202, 21, 249, 186, 42, 217, 60, 178,
			234, 149, 121, 40, 213, 172, 186, 236, 96, 161, 96, 120, 84, 122,
			2, 213, 61, 180, 90, 6, 106, 175, 94, 33, 234, 121, 36, 117,
			243, 24, 79, 176, 54, 160, 180, 254, 208, 146, 154, 71, 189, 119,
			171, 245, 186, 21, 165, 11, 186, 173, 124, 63, 242, 121, 129, 144,
			12, 209, 116, 106, 64, 230, 146, 124, 202, 80, 99, 118, 236, 46,
			153, 32, 122, 102, 78, 61, 170, 198, 207, 198, 126, 129, 141, 147,
			234, 81, 53, 126, 62, 150, 199, 70, 77, 61, 170, 198, 185, 177,
			155, 216, 24, 61, 170, 198, 235, 99, 179, 216, 72, 212, 163, 106,
			188, 49, 118, 13, 27, 63, 87, 143, 170, 49, 55, 246, 41, 54,
			126, 170, 30, 255, 85, 39, 186, 57, 70, 141, 149, 177, 115, 217,
			127, 210, 161, 4, 251, 204, 103, 129, 235, 0, 214, 79, 232, 50,
			33, 236, 125, 166, 74, 192, 128, 247, 193, 177, 125, 8, 216, 130,
			44, 52, 33, 7, 251, 128, 187, 45, 104, 177, 182, 235, 227, 242,
			215, 239, 121, 178, 152, 176, 22, 57, 58, 30, 151, 223, 1, 239,
			7, 80, 218, 181, 68, 1, 74, 16, 14, 122, 174, 99, 123, 192,
			94, 217, 221, 158, 199, 192, 21, 146, 31, 214, 175, 16, 108, 129,
			171, 88, 192, 126, 213, 103, 34, 36, 16, 173, 106, 1, 19, 61,
			238, 75, 201, 131, 30, 46, 125, 182, 47, 249, 201, 226, 211, 225,
			173, 2, 108, 240, 0, 92, 95, 132, 182, 239, 176, 184, 26, 201,
			250, 234, 58, 12, 54, 56, 135, 55, 170, 9, 32, 232, 57, 176,
			102, 7, 185, 99, 32, 163, 128, 24, 99, 94, 214, 166, 126, 224,
			11, 56, 225, 253, 93, 197, 230, 173, 92, 216, 58, 12, 30, 212,
			171, 59, 88, 73, 152, 72, 150, 249, 54, 15, 224, 57, 246, 126,
			46, 45, 83, 190, 192, 142, 188, 249, 130, 57, 33, 60, 127, 243,
			246, 121, 129, 16, 66, 12, 115, 76, 163, 198, 74, 230, 116, 51,
			141, 98, 86, 200, 95, 23, 201, 167, 199, 161, 83, 232, 118, 153,
			8, 237, 110, 239, 36, 248, 116, 151, 76, 52, 226, 62, 116, 134,
			140, 11, 38, 235, 148, 152, 209, 64, 203, 25, 181, 152, 164, 211,
			36, 229, 219, 62, 23, 51, 58, 104, 185, 84, 77, 17, 107, 255,
			243, 195, 144, 235, 76, 194, 49, 134, 93, 55, 63, 14, 187, 18,
			77, 255, 12, 232, 245, 199, 5, 50, 78, 83, 87, 199, 254, 183,
			166, 253, 140, 189, 126, 198, 94, 63, 99, 175, 159, 177, 215, 207,
			216, 235, 103, 236, 245, 159, 136, 189, 18, 72, 36, 31, 99, 236,
			181, 22, 3, 50, 249, 24, 99, 175, 4, 144, 205, 37, 128, 236,
			250, 88, 49, 6, 100, 242, 49, 198, 94, 9, 32, 187, 145, 0,
			178, 220, 16, 144, 201, 199, 191, 189, 140, 216, 43, 245, 90, 86,
			190, 236, 95, 93, 134, 18, 36, 37, 119, 136, 40, 4, 216, 208,
			227, 174, 31, 226, 170, 230, 118, 101, 149, 105, 177, 30, 243, 91,
			204, 15, 21, 10, 26, 168, 246, 215, 220, 103, 8, 150, 28, 219,
			99, 126, 203, 14, 242, 67, 46, 172, 37, 81, 85, 132, 3, 112,
			245, 108, 7, 182, 51, 172, 17, 241, 11, 89, 2, 36, 40, 64,
			90, 214, 72, 238, 169, 18, 231, 250, 176, 215, 40, 67, 165, 199,
			157, 14, 138, 43, 128, 21, 34, 184, 241, 101, 101, 145, 245, 79,
			174, 194, 184, 126, 238, 6, 220, 99, 189, 208, 117, 96, 51, 96,
			251, 60, 112, 109, 31, 202, 145, 78, 112, 216, 113, 157, 14, 176,
			87, 33, 147, 2, 229, 138, 57, 236, 20, 43, 78, 160, 105, 59,
			47, 15, 237, 160, 133, 176, 112, 192, 236, 0, 184, 255, 158, 72,
			91, 136, 126, 87, 74, 181, 61, 15, 186, 174, 223, 15, 25, 214,
			68, 248, 114, 145, 36, 38, 121, 220, 223, 207, 131, 91, 96, 5,
			240, 152, 221, 27, 154, 26, 48, 152, 21, 93, 102, 7, 172, 53,
			11, 130, 171, 82, 235, 243, 209, 94, 4, 66, 187, 169, 208, 169,
			207, 152, 20, 217, 70, 140, 25, 178, 160, 39, 171, 40, 22, 8,
			168, 33, 252, 112, 69, 180, 88, 47, 46, 46, 46, 45, 224, 111,
			99, 113, 241, 14, 254, 62, 149, 86, 172, 174, 174, 174, 46, 44,
			45, 47, 172, 44, 53, 150, 87, 238, 220, 94, 189, 115, 123, 181,
			176, 26, 255, 60, 45, 16, 88, 27, 72, 135, 135, 129, 235, 132,
			232, 202, 72, 165, 64, 178, 207, 195, 33, 3, 230, 139, 126, 16,
			129, 241, 67, 134, 88, 220, 225, 254, 1, 11, 66, 8, 57, 137,
			162, 202, 187, 0, 181, 141, 50, 172, 172, 172, 172, 74, 144, 196,
			64, 178, 244, 247, 69, 129, 64, 157, 49, 248, 46, 70, 59, 135,
			135, 135, 5, 151, 133, 237, 2, 15, 246, 139, 65, 219, 145, 127,
			114, 80, 33, 124, 21, 126, 159, 251, 41, 189, 230, 101, 129, 249,
			12, 42, 10, 195, 11, 66, 226, 71, 88, 186, 3, 101, 222, 237,
			245, 67, 54, 146, 210, 168, 219, 110, 181, 110, 61, 134, 231, 50,
			131, 114, 243, 18, 3, 99, 121, 29, 118, 74, 0, 100, 4, 179,
			135, 208, 87, 176, 240, 89, 20, 188, 28, 14, 223, 217, 219, 218,
			154, 159, 255, 96, 63, 204, 225, 220, 226, 252, 221, 17, 157, 150,
			63, 166, 211, 62, 11, 37, 23, 222, 110, 217, 131, 17, 221, 68,
			24, 244, 157, 16, 5, 28, 216, 30, 132, 7, 145, 196, 35, 221,
			175, 135, 7, 121, 64, 133, 238, 254, 165, 38, 29, 20, 194, 3,
			73, 253, 152, 69, 170, 83, 95, 48, 7, 190, 128, 165, 197, 197,
			163, 22, 174, 156, 104, 225, 35, 215, 95, 89, 134, 231, 155, 44,
			172, 15, 68, 200, 186, 242, 117, 73, 108, 184, 30, 107, 28, 13,
			196, 134, 181, 85, 105, 88, 219, 21, 104, 135, 145, 26, 39, 141,
			185, 222, 14, 99, 77, 247, 172, 157, 198, 151, 183, 32, 116, 157,
			151, 2, 238, 65, 46, 151, 83, 45, 243, 237, 176, 208, 58, 188,
			239, 238, 119, 214, 237, 16, 71, 205, 195, 55, 223, 192, 202, 242,
			60, 252, 15, 192, 119, 91, 252, 48, 126, 21, 251, 173, 88, 132,
			146, 212, 183, 197, 15, 5, 178, 148, 51, 107, 105, 113, 113, 100,
			93, 18, 133, 164, 3, 195, 245, 104, 233, 203, 247, 167, 92, 194,
			77, 14, 95, 250, 242, 214, 173, 91, 95, 173, 124, 185, 184, 152,
			204, 255, 38, 107, 243, 128, 193, 158, 239, 190, 138, 185, 172, 126,
			181, 120, 156, 75, 225, 47, 11, 102, 78, 217, 15, 185, 156, 114,
			74, 17, 131, 37, 127, 230, 97, 97, 84, 157, 143, 100, 176, 228,
			35, 221, 21, 243, 153, 27, 225, 131, 9, 48, 127, 36, 1, 110,
			157, 152, 0, 15, 236, 3, 27, 158, 171, 64, 22, 156, 126, 16,
			48, 63, 148, 93, 182, 93, 207, 115, 197, 72, 2, 200, 229, 18,
			186, 216, 10, 247, 224, 228, 1, 63, 146, 230, 112, 111, 216, 90,
			240, 217, 225, 90, 223, 245, 90, 44, 200, 205, 75, 195, 234, 145,
			135, 34, 17, 202, 49, 243, 241, 206, 28, 64, 246, 217, 81, 182,
			187, 126, 40, 45, 143, 122, 42, 211, 35, 179, 209, 3, 243, 133,
			166, 228, 140, 186, 12, 125, 112, 251, 68, 31, 68, 86, 196, 69,
			20, 118, 7, 97, 71, 129, 228, 35, 238, 31, 85, 63, 55, 127,
			60, 54, 155, 44, 44, 15, 189, 145, 155, 199, 21, 16, 183, 246,
			219, 118, 175, 231, 250, 251, 132, 128, 229, 171, 22, 181, 35, 205,
			99, 145, 27, 241, 211, 160, 199, 142, 86, 49, 176, 163, 53, 58,
			218, 184, 16, 248, 46, 94, 193, 127, 226, 66, 28, 137, 42, 64,
			67, 214, 6, 87, 228, 21, 27, 213, 42, 133, 205, 190, 145, 69,
			244, 237, 194, 155, 46, 247, 195, 206, 219, 133, 55, 45, 123, 240,
			182, 241, 166, 195, 251, 193, 219, 59, 111, 186, 174, 255, 246, 206,
			27, 193, 156, 183, 223, 21, 222, 72, 96, 32, 19, 249, 237, 247,
			79, 103, 9, 28, 118, 88, 192, 64, 141, 150, 140, 108, 239, 208,
			30, 8, 96, 175, 36, 176, 16, 73, 221, 111, 243, 126, 0, 45,
			119, 223, 13, 133, 172, 240, 30, 131, 72, 82, 30, 80, 84, 158,
			128, 18, 150, 7, 148, 150, 199, 106, 133, 34, 177, 18, 191, 102,
			1, 95, 232, 217, 173, 150, 218, 26, 133, 135, 60, 230, 198, 108,
			167, 83, 192, 147, 150, 24, 177, 216, 94, 82, 221, 243, 17, 156,
			144, 165, 112, 159, 67, 191, 135, 133, 54, 30, 154, 195, 170, 175,
			26, 151, 62, 140, 107, 230, 243, 4, 229, 243, 158, 226, 172, 36,
			205, 62, 157, 5, 209, 111, 183, 221, 87, 18, 108, 225, 145, 150,
			130, 42, 50, 15, 36, 204, 130, 220, 236, 94, 163, 60, 59, 127,
			247, 72, 43, 145, 14, 10, 216, 175, 250, 110, 192, 90, 5, 40,
			129, 58, 210, 81, 201, 32, 112, 191, 233, 190, 102, 1, 136, 14,
			239, 123, 173, 216, 149, 125, 193, 16, 90, 229, 108, 145, 72, 107,
			65, 115, 64, 164, 26, 243, 50, 0, 190, 220, 225, 249, 97, 132,
			175, 142, 167, 146, 116, 164, 125, 68, 84, 207, 14, 196, 80, 76,
			147, 17, 64, 20, 19, 114, 176, 29, 135, 245, 66, 104, 242, 176,
			131, 50, 229, 88, 181, 33, 142, 109, 16, 239, 233, 1, 182, 15,
			188, 221, 22, 76, 213, 251, 13, 30, 196, 167, 118, 121, 152, 93,
			94, 92, 250, 74, 174, 153, 75, 183, 27, 139, 75, 119, 86, 22,
			239, 44, 221, 46, 44, 46, 61, 157, 141, 178, 91, 0, 210, 201,
			162, 219, 179, 69, 72, 0, 123, 162, 124, 238, 195, 3, 219, 239,
			219, 193, 0, 150, 110, 231, 65, 114, 43, 68, 19, 200, 62, 176,
			235, 78, 224, 246, 194, 188, 132, 126, 71, 192, 142, 13, 178, 104,
			196, 103, 105, 136, 147, 36, 250, 82, 201, 62, 130, 67, 69, 104,
			75, 52, 217, 130, 239, 66, 110, 213, 171, 117, 156, 99, 185, 249,
			225, 156, 74, 14, 124, 10, 93, 254, 218, 245, 60, 27, 39, 23,
			243, 23, 246, 234, 197, 22, 119, 68, 241, 17, 107, 22, 135, 154,
			20, 107, 172, 205, 2, 230, 59, 172, 184, 233, 241, 166, 237, 61,
			171, 162, 10, 162, 40, 245, 41, 142, 8, 249, 158, 36, 167, 146,
			86, 188, 208, 228, 113, 154, 71, 26, 61, 151, 200, 12, 97, 116,
			252, 240, 60, 182, 71, 90, 218, 100, 177, 177, 76, 130, 208, 15,
			89, 248, 221, 115, 17, 6, 109, 28, 57, 98, 16, 119, 68, 161,
			167, 214, 53, 105, 202, 114, 209, 115, 155, 129, 29, 12, 240, 96,
			174, 208, 9, 187, 222, 103, 248, 20, 143, 157, 39, 201, 185, 135,
			90, 23, 35, 25, 162, 199, 28, 184, 49, 247, 100, 97, 174, 187,
			48, 215, 106, 204, 221, 191, 51, 183, 125, 103, 174, 94, 152, 107,
			63, 189, 81, 128, 45, 247, 37, 59, 116, 5, 203, 203, 5, 75,
			250, 7, 99, 68, 80, 117, 60, 26, 238, 48, 120, 192, 91, 54,
			166, 234, 13, 1, 223, 61, 183, 234, 213, 184, 208, 111, 168, 165,
			170, 21, 145, 185, 249, 231, 223, 231, 212, 25, 92, 180, 202, 189,
			224, 45, 21, 8, 249, 176, 32, 181, 42, 218, 61, 23, 227, 17,
			183, 162, 57, 69, 165, 107, 241, 125, 222, 104, 103, 44, 96, 97,
			129, 192, 188, 244, 33, 111, 226, 185, 151, 29, 217, 24, 50, 185,
			83, 234, 225, 212, 224, 109, 117, 240, 109, 171, 73, 22, 79, 48,
			161, 22, 228, 196, 245, 120, 100, 27, 31, 218, 190, 206, 156, 39,
			255, 87, 35, 166, 57, 166, 143, 81, 227, 157, 62, 157, 253, 157,
			6, 181, 225, 182, 45, 206, 121, 222, 198, 84, 71, 239, 10, 215,
			119, 70, 49, 7, 249, 48, 232, 128, 237, 190, 8, 101, 18, 96,
			221, 58, 97, 67, 65, 62, 180, 163, 120, 10, 174, 239, 120, 125,
			225, 30, 176, 2, 33, 167, 73, 74, 106, 103, 82, 243, 157, 254,
			122, 138, 156, 82, 100, 74, 106, 59, 30, 83, 26, 53, 222, 101,
			206, 198, 148, 65, 141, 119, 116, 138, 252, 163, 178, 75, 163, 230,
			111, 53, 157, 102, 255, 65, 131, 29, 238, 47, 248, 108, 223, 14,
			221, 3, 118, 116, 239, 104, 71, 150, 130, 220, 62, 125, 104, 141,
			45, 192, 78, 52, 48, 94, 183, 225, 192, 246, 250, 76, 168, 212,
			27, 50, 195, 131, 65, 17, 186, 158, 7, 29, 251, 128, 129, 63,
			42, 19, 89, 71, 3, 137, 218, 3, 57, 188, 239, 135, 50, 52,
			114, 167, 24, 111, 143, 143, 59, 47, 218, 122, 229, 163, 63, 114,
			196, 65, 103, 208, 106, 205, 164, 169, 223, 106, 250, 187, 233, 200,
			97, 90, 10, 237, 30, 143, 73, 116, 67, 230, 116, 76, 26, 146,
			60, 119, 62, 57, 177, 255, 211, 34, 249, 106, 159, 23, 156, 78,
			192, 187, 110, 191, 139, 169, 235, 245, 29, 183, 184, 239, 96, 230,
			22, 227, 75, 9, 81, 60, 88, 42, 70, 55, 18, 209, 73, 254,
			68, 242, 46, 251, 99, 31, 76, 100, 63, 118, 37, 48, 123, 133,
			152, 235, 174, 120, 73, 167, 73, 202, 237, 218, 251, 12, 143, 254,
			39, 106, 138, 152, 125, 72, 206, 237, 176, 240, 144, 7, 47, 45,
			185, 121, 109, 219, 14, 163, 159, 146, 73, 220, 201, 250, 182, 247,
			204, 237, 69, 253, 73, 220, 100, 245, 232, 53, 114, 74, 110, 211,
			163, 14, 98, 70, 7, 35, 55, 81, 155, 140, 219, 172, 158, 152,
			253, 103, 131, 100, 172, 200, 2, 122, 134, 232, 110, 43, 226, 163,
			187, 45, 154, 37, 153, 14, 23, 161, 111, 119, 25, 94, 56, 76,
			212, 18, 154, 82, 98, 202, 106, 51, 99, 96, 59, 62, 211, 25,
			50, 222, 11, 184, 92, 3, 103, 76, 108, 142, 73, 122, 139, 140,
			59, 1, 147, 245, 104, 38, 5, 90, 110, 114, 57, 123, 252, 182,
			162, 144, 20, 197, 90, 220, 85, 202, 247, 220, 54, 46, 174, 51,
			105, 188, 8, 73, 104, 249, 78, 28, 218, 65, 215, 245, 247, 103,
			198, 149, 110, 49, 77, 191, 38, 19, 14, 247, 125, 230, 72, 121,
			153, 143, 202, 27, 118, 150, 22, 224, 150, 176, 31, 206, 76, 168,
			155, 151, 136, 148, 111, 90, 129, 237, 250, 172, 53, 67, 64, 203,
			101, 106, 49, 73, 111, 144, 179, 14, 247, 219, 238, 254, 179, 128,
			29, 184, 194, 229, 254, 204, 36, 42, 116, 70, 53, 215, 162, 86,
			58, 71, 82, 45, 87, 188, 20, 51, 167, 192, 200, 77, 46, 159,
			45, 36, 169, 83, 144, 145, 175, 169, 183, 244, 1, 161, 190, 10,
			245, 51, 55, 142, 181, 152, 57, 141, 99, 46, 143, 140, 57, 158,
			15, 181, 243, 254, 177, 22, 65, 47, 146, 116, 47, 96, 109, 247,
			213, 204, 25, 84, 41, 162, 102, 63, 37, 167, 215, 153, 199, 66,
			86, 83, 87, 116, 199, 67, 63, 251, 53, 33, 155, 44, 60, 225,
			237, 143, 37, 198, 236, 128, 76, 110, 185, 34, 25, 58, 212, 64,
			27, 213, 128, 126, 66, 72, 207, 222, 103, 207, 66, 254, 146, 249,
			17, 147, 9, 217, 210, 144, 13, 244, 50, 65, 226, 153, 112, 95,
			171, 28, 75, 213, 50, 178, 161, 238, 190, 102, 146, 103, 219, 245,
			66, 22, 68, 105, 22, 81, 179, 191, 214, 200, 41, 37, 91, 221,
			51, 158, 40, 124, 137, 12, 167, 45, 206, 138, 201, 229, 169, 17,
			207, 198, 19, 162, 54, 236, 69, 175, 147, 179, 62, 123, 21, 62,
			27, 81, 90, 165, 254, 105, 217, 188, 27, 43, 190, 252, 55, 26,
			153, 176, 146, 81, 119, 72, 90, 249, 153, 206, 140, 70, 123, 212,
			245, 217, 139, 239, 165, 38, 94, 60, 210, 37, 98, 108, 178, 144,
			94, 24, 25, 56, 12, 73, 246, 67, 250, 210, 175, 136, 41, 237,
			167, 23, 71, 94, 142, 4, 35, 123, 233, 189, 118, 229, 168, 7,
			127, 184, 78, 198, 105, 202, 28, 251, 141, 166, 145, 63, 106, 120,
			131, 103, 142, 209, 229, 223, 107, 71, 46, 227, 150, 86, 17, 92,
			111, 237, 149, 45, 40, 245, 195, 14, 15, 68, 225, 132, 27, 185,
			61, 129, 53, 57, 186, 247, 24, 222, 95, 185, 2, 246, 249, 1,
			11, 124, 185, 241, 240, 91, 209, 117, 76, 169, 103, 59, 146, 177,
			235, 48, 95, 130, 146, 135, 44, 144, 51, 6, 150, 11, 139, 113,
			165, 80, 152, 170, 205, 251, 126, 43, 190, 29, 218, 178, 202, 149,
			157, 122, 5, 218, 174, 199, 146, 163, 226, 116, 230, 60, 153, 32,
			186, 49, 70, 141, 204, 248, 231, 248, 168, 81, 99, 98, 60, 71,
			110, 225, 97, 173, 121, 106, 236, 156, 150, 205, 65, 9, 228, 108,
			3, 91, 8, 238, 184, 8, 148, 177, 150, 217, 176, 89, 174, 36,
			151, 208, 35, 55, 188, 167, 50, 167, 200, 32, 198, 10, 103, 245,
			169, 172, 135, 190, 192, 213, 249, 61, 46, 104, 182, 228, 63, 114,
			55, 233, 120, 188, 223, 26, 189, 150, 116, 212, 38, 87, 225, 212,
			32, 1, 166, 1, 19, 161, 44, 51, 200, 89, 20, 61, 87, 132,
			71, 128, 192, 89, 253, 212, 153, 17, 32, 112, 86, 207, 140, 0,
			129, 179, 19, 103, 70, 128, 192, 217, 243, 148, 148, 136, 110, 106,
			212, 156, 26, 155, 209, 178, 183, 161, 4, 209, 26, 1, 201, 210,
			242, 211, 92, 160, 105, 212, 152, 202, 204, 144, 29, 98, 154, 154,
			116, 193, 5, 253, 191, 100, 75, 202, 5, 81, 193, 1, 107, 23,
			236, 86, 75, 238, 42, 63, 236, 144, 247, 68, 71, 118, 105, 104,
			215, 5, 125, 42, 139, 186, 107, 104, 215, 133, 200, 46, 13, 237,
			186, 48, 49, 29, 83, 6, 53, 46, 92, 154, 33, 187, 168, 136,
			70, 141, 75, 250, 103, 217, 50, 42, 18, 215, 181, 17, 69, 216,
			159, 161, 138, 226, 175, 153, 146, 101, 66, 165, 168, 113, 105, 242,
			124, 76, 73, 113, 244, 106, 76, 25, 212, 184, 116, 109, 150, 252,
			138, 232, 166, 78, 205, 43, 99, 15, 180, 44, 131, 210, 17, 239,
			129, 42, 1, 253, 32, 186, 48, 124, 133, 209, 140, 220, 22, 117,
			177, 157, 176, 111, 123, 222, 64, 189, 21, 224, 182, 219, 152, 222,
			81, 21, 28, 57, 215, 144, 115, 137, 133, 81, 68, 164, 237, 87,
			50, 231, 200, 127, 37, 166, 169, 203, 136, 92, 213, 207, 101, 151,
			145, 181, 181, 174, 230, 30, 131, 135, 219, 202, 222, 68, 216, 161,
			45, 18, 198, 18, 94, 69, 33, 208, 49, 4, 87, 245, 43, 20,
			141, 211, 49, 4, 87, 163, 16, 232, 24, 130, 171, 19, 147, 49,
			101, 80, 227, 234, 153, 179, 228, 14, 74, 214, 168, 113, 77, 191,
			152, 93, 64, 201, 113, 21, 248, 176, 215, 71, 114, 74, 9, 213,
			76, 106, 94, 211, 175, 158, 139, 24, 75, 111, 95, 75, 132, 74,
			111, 95, 155, 56, 31, 83, 6, 53, 174, 77, 95, 32, 111, 80,
			168, 78, 141, 57, 157, 102, 125, 20, 138, 251, 249, 143, 8, 252,
			139, 167, 33, 110, 169, 71, 103, 161, 174, 235, 38, 53, 231, 244,
			107, 23, 35, 205, 244, 148, 84, 38, 214, 90, 250, 99, 110, 226,
			116, 76, 25, 212, 152, 59, 119, 158, 220, 67, 173, 13, 106, 228,
			244, 11, 217, 69, 212, 122, 179, 188, 11, 17, 60, 250, 137, 222,
			50, 76, 106, 230, 244, 185, 56, 68, 70, 74, 178, 139, 229, 202,
			85, 46, 55, 17, 123, 210, 144, 162, 166, 166, 201, 55, 40, 215,
			164, 198, 77, 61, 151, 45, 162, 220, 97, 58, 225, 193, 196, 137,
			233, 145, 136, 53, 77, 106, 222, 212, 115, 23, 34, 214, 102, 90,
			114, 187, 28, 83, 26, 53, 110, 94, 249, 44, 166, 12, 106, 220,
			188, 126, 131, 56, 40, 54, 69, 141, 162, 126, 33, 251, 16, 197,
			198, 192, 45, 169, 10, 35, 177, 41, 169, 47, 36, 152, 223, 138,
			174, 221, 147, 222, 234, 232, 45, 81, 79, 174, 170, 88, 59, 135,
			218, 165, 76, 106, 22, 245, 155, 185, 72, 131, 20, 10, 29, 143,
			41, 141, 26, 197, 76, 236, 148, 148, 65, 141, 226, 212, 52, 169,
			163, 118, 105, 106, 44, 235, 23, 179, 27, 71, 243, 54, 154, 55,
			245, 8, 74, 226, 231, 71, 88, 164, 70, 189, 20, 157, 203, 68,
			176, 17, 66, 158, 104, 147, 54, 169, 185, 172, 23, 99, 95, 165,
			83, 82, 72, 28, 162, 180, 70, 141, 229, 36, 161, 211, 6, 53,
			150, 167, 47, 144, 13, 212, 102, 156, 26, 183, 245, 47, 178, 171,
			31, 15, 81, 2, 86, 229, 130, 18, 235, 153, 40, 48, 110, 82,
			243, 182, 190, 28, 231, 230, 120, 90, 242, 141, 131, 53, 174, 81,
			227, 246, 149, 185, 152, 50, 168, 113, 59, 55, 79, 14, 81, 129,
			12, 53, 86, 245, 233, 236, 139, 68, 1, 222, 15, 63, 20, 43,
			171, 13, 254, 80, 46, 52, 121, 8, 29, 153, 52, 137, 86, 205,
			65, 114, 22, 193, 251, 225, 199, 3, 152, 49, 169, 185, 170, 223,
			254, 34, 210, 42, 147, 146, 138, 196, 1, 204, 104, 212, 88, 141,
			54, 183, 186, 158, 49, 168, 177, 74, 167, 200, 107, 212, 120, 130,
			26, 247, 244, 233, 108, 23, 30, 117, 88, 244, 97, 199, 168, 159,
			164, 40, 133, 208, 129, 7, 224, 115, 185, 238, 150, 146, 166, 97,
			198, 203, 205, 106, 147, 129, 176, 219, 204, 27, 196, 218, 65, 192,
			246, 237, 160, 229, 201, 90, 198, 219, 73, 58, 38, 74, 79, 152,
			212, 188, 167, 175, 78, 71, 138, 77, 164, 164, 46, 233, 152, 210,
			168, 113, 111, 252, 76, 76, 25, 212, 184, 119, 126, 138, 148, 80,
			105, 66, 141, 111, 245, 171, 217, 91, 232, 102, 85, 28, 32, 222,
			54, 252, 196, 101, 128, 152, 212, 252, 86, 191, 23, 203, 38, 41,
			201, 50, 206, 49, 162, 81, 227, 219, 137, 153, 152, 50, 168, 241,
			237, 229, 79, 200, 87, 40, 123, 146, 26, 101, 253, 114, 246, 11,
			148, 141, 123, 141, 143, 74, 84, 108, 38, 77, 57, 50, 161, 210,
			212, 40, 79, 198, 49, 153, 212, 168, 81, 62, 23, 39, 252, 164,
			65, 141, 242, 76, 150, 172, 163, 192, 83, 212, 216, 208, 111, 101,
			191, 66, 129, 239, 149, 220, 159, 42, 253, 148, 41, 217, 36, 84,
			154, 26, 27, 147, 113, 70, 159, 210, 168, 177, 113, 165, 16, 83,
			6, 53, 54, 150, 86, 200, 215, 40, 253, 52, 53, 44, 253, 66,
			246, 38, 74, 87, 192, 255, 39, 122, 248, 180, 73, 77, 75, 223,
			184, 21, 177, 61, 157, 146, 156, 98, 15, 159, 214, 168, 97, 77,
			196, 230, 159, 54, 168, 97, 209, 105, 82, 32, 114, 241, 51, 183,
			199, 118, 181, 236, 44, 148, 226, 79, 31, 229, 28, 85, 41, 5,
			182, 127, 28, 83, 201, 37, 123, 59, 115, 129, 44, 18, 211, 52,
			100, 5, 175, 234, 231, 178, 159, 29, 171, 224, 73, 162, 38, 156,
			34, 53, 13, 44, 217, 85, 125, 251, 18, 170, 98, 96, 201, 174,
			70, 106, 26, 88, 178, 171, 81, 201, 54, 176, 100, 87, 207, 156,
			69, 12, 108, 82, 179, 62, 246, 68, 97, 224, 17, 53, 247, 89,
			40, 117, 68, 16, 162, 110, 50, 142, 40, 43, 23, 250, 122, 134,
			146, 5, 98, 154, 166, 84, 118, 79, 63, 151, 133, 31, 81, 118,
			159, 197, 21, 211, 68, 77, 247, 244, 186, 74, 89, 19, 53, 221,
			139, 52, 53, 81, 211, 189, 72, 83, 19, 53, 221, 59, 115, 150,
			172, 160, 28, 141, 26, 143, 245, 139, 217, 235, 31, 92, 164, 79,
			146, 38, 81, 197, 99, 125, 239, 92, 196, 81, 162, 138, 199, 137,
			52, 137, 42, 30, 71, 139, 176, 137, 168, 226, 241, 244, 5, 178,
			66, 116, 51, 69, 205, 95, 142, 189, 212, 178, 55, 142, 250, 5,
			191, 93, 123, 207, 43, 34, 114, 139, 172, 48, 191, 204, 76, 97,
			12, 83, 210, 45, 63, 232, 211, 81, 12, 163, 148, 139, 89, 36,
			35, 161, 205, 131, 72, 215, 20, 122, 230, 7, 253, 151, 106, 254,
			164, 208, 51, 63, 68, 186, 166, 208, 51, 63, 68, 169, 150, 66,
			207, 252, 64, 167, 200, 255, 209, 80, 150, 70, 141, 166, 62, 147,
			253, 141, 134, 194, 240, 88, 77, 58, 230, 216, 38, 21, 2, 230,
			48, 252, 16, 13, 15, 78, 71, 55, 125, 5, 185, 73, 107, 197,
			161, 199, 243, 118, 57, 24, 228, 96, 172, 195, 137, 169, 114, 209,
			199, 179, 172, 188, 236, 170, 46, 82, 218, 110, 32, 84, 223, 196,
			22, 233, 247, 166, 254, 195, 116, 164, 175, 244, 123, 51, 177, 69,
			250, 189, 57, 49, 21, 83, 6, 53, 154, 23, 47, 145, 251, 104,
			138, 78, 13, 166, 95, 204, 222, 69, 75, 186, 246, 43, 183, 219,
			239, 130, 223, 239, 54, 89, 32, 21, 9, 152, 232, 123, 33, 126,
			72, 130, 71, 127, 45, 22, 239, 0, 227, 15, 138, 19, 21, 36,
			52, 99, 122, 115, 38, 18, 35, 33, 8, 139, 138, 73, 10, 161,
			25, 203, 156, 143, 41, 131, 26, 108, 250, 2, 249, 131, 114, 167,
			65, 141, 23, 250, 116, 246, 255, 105, 80, 2, 117, 156, 128, 215,
			45, 189, 158, 55, 80, 85, 216, 123, 47, 3, 32, 186, 71, 244,
			84, 197, 227, 190, 55, 0, 209, 239, 245, 184, 58, 244, 143, 184,
			184, 2, 102, 113, 177, 45, 224, 142, 238, 222, 55, 248, 239, 23,
			179, 209, 197, 92, 68, 226, 247, 211, 35, 31, 38, 134, 201, 222,
			50, 228, 9, 171, 209, 196, 145, 96, 240, 133, 206, 46, 70, 214,
			72, 48, 248, 34, 113, 182, 92, 89, 94, 36, 137, 35, 193, 224,
			11, 58, 69, 190, 38, 18, 188, 153, 254, 216, 43, 45, 155, 199,
			36, 143, 63, 199, 230, 96, 191, 151, 242, 199, 51, 93, 162, 23,
			63, 51, 141, 153, 158, 150, 153, 222, 123, 47, 211, 71, 230, 164,
			250, 60, 103, 168, 112, 26, 51, 189, 167, 251, 74, 225, 52, 102,
			122, 47, 82, 56, 141, 153, 222, 139, 20, 78, 99, 166, 247, 232,
			20, 89, 66, 81, 26, 53, 132, 62, 155, 253, 252, 200, 174, 73,
			64, 215, 14, 157, 78, 124, 163, 166, 52, 136, 74, 70, 26, 55,
			113, 66, 79, 168, 52, 53, 196, 228, 84, 76, 73, 126, 211, 159,
			196, 148, 65, 13, 1, 215, 200, 239, 52, 148, 165, 83, 227, 80,
			255, 36, 251, 191, 70, 39, 85, 244, 89, 123, 244, 77, 251, 200,
			212, 26, 153, 81, 71, 86, 81, 140, 227, 200, 76, 34, 31, 158,
			74, 33, 198, 95, 186, 201, 231, 208, 229, 1, 59, 226, 114, 229,
			52, 153, 207, 135, 186, 152, 141, 180, 149, 249, 124, 152, 56, 77,
			122, 230, 48, 170, 245, 105, 204, 231, 195, 203, 87, 100, 148, 211,
			99, 52, 245, 102, 236, 55, 154, 150, 189, 9, 165, 228, 11, 250,
			54, 15, 160, 107, 251, 110, 175, 239, 169, 91, 146, 209, 141, 106,
			20, 229, 180, 12, 196, 155, 204, 121, 178, 74, 204, 52, 30, 117,
			188, 213, 191, 201, 230, 65, 157, 88, 69, 5, 72, 140, 214, 50,
			176, 197, 192, 119, 58, 1, 247, 121, 95, 120, 3, 21, 130, 180,
			58, 141, 120, 155, 62, 21, 83, 58, 53, 222, 158, 206, 198, 148,
			65, 141, 183, 115, 119, 100, 42, 165, 199, 164, 21, 239, 244, 249,
			236, 103, 176, 201, 194, 228, 211, 253, 19, 42, 145, 26, 47, 67,
			248, 46, 61, 17, 83, 58, 53, 222, 145, 233, 152, 50, 168, 241,
			238, 211, 27, 17, 111, 157, 154, 191, 214, 244, 98, 118, 22, 227,
			148, 112, 255, 224, 114, 126, 26, 199, 235, 154, 28, 146, 78, 72,
			228, 48, 121, 49, 38, 13, 73, 94, 91, 136, 175, 14, 254, 61,
			0, 0, 255, 255, 6, 164, 236, 199, 40, 57, 0, 0},
	)
}

// FileDescriptorSet returns a descriptor set for this proto package, which
// includes all defined services, and all transitive dependencies.
//
// Will not return nil.
//
// Do NOT modify the returned descriptor.
func FileDescriptorSet() *descriptor.FileDescriptorSet {
	// We just need ONE of the service names to look up the FileDescriptorSet.
	ret, err := discovery.GetDescriptorSet("instances.Instances")
	if err != nil {
		panic(err)
	}
	return ret
}

repository: asdfghjjklllllaaa/luci-go

repo_name: asdfghjjklllllaaa/luci-go


text:
include mesa-mesa.inc

SRC_URI = "${SOURCEFORGE_MIRROR}/mesa3d/MesaLib-${PV}.tar.bz2 \
        ${SOURCEFORGE_MIRROR}/mesa3d/MesaGLUT-${PV}.tar.bz2 \
        ${SOURCEFORGE_MIRROR}/mesa3d/MesaDemos-${PV}.tar.bz2 \
        file://mklib-rpath-link.patch;patch=1 \
        file://fix-host-compile.patch;patch=1 \
        file://fix-progs-makefile.patch;patch=1 \
        "

do_install_append = "install -d ${D}${bindir}; \
                     for f in glxgears glxheads glxdemo glxinfo; do \
                     cp progs/xdemos/${f} ${D}${bindir}; \
                     done"

PACKAGES =+ "libglut libglut-dev mesa-utils"

FILES_libglut = "${libdir}/libglut.so.*"
FILES_libglut-dev = "${libdir}/libglut.* ${includedir}/GL/glut*"
FILES_mesa-utils = "${bindir}/*"

license: MIT

license_type: permissive

branch_name: refs/heads/master

extension: bb


text:
require iqnotes.inc

#upstream version
UPV = "2.1.0rc1"
PR = "r2"

SRC_URI = "http://download.berlios.de/iqnotes/iqnotes-${UPV}.tar.bz2 \
           file://pro.patch"

S = "${WORKDIR}/iqnotes-${UPV}/iqnotes/"

EXTRA_QMAKEVARS_POST += "CONFIG-=desktop CONFIG-=debug CONFIG+=pda LIBS-=-lqtopia"

SRC_URI[md5sum] = "6b4bbf1b97d1fe777c881c0576e4cb65"
SRC_URI[sha256sum] = "e3c0d1991f6a35f789bf305bc56971e2ced6208d19443ccea8d1d64417a90faf"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD


text:
require ninvaders.inc

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://gpl.txt;md5=393a5ca445f6965873eca0259a17f833"

SRC_URI[md5sum] = "97b2c3fb082241ab5c56ab728522622b"

SRC_URI[sha256sum] = "bfbc5c378704d9cf5e7fed288dac88859149bee5ed0850175759d310b61fd30b"

repository: takmark/mygit

repo_name: takmark/mygit


text:
@book{stat,
 title={The elements of statistical learning},
 author={Friedman, Jerome and Hastie, Trevor and Tibshirani, Robert},
 volume={1},
 number={10},
 year={2001},
 publisher={Springer series in statistics New York}
}

@article{brun2007,
 title={Model-based evaluation of clustering validation measures},
 author={Brun, Marcel and Sima, Chao and Hua, Jianping and Lowey, James and Carroll, Brent and Suh, Edward and Dougherty, Edward R},
 journal={Pattern recognition},
 volume={40},
 number={3},
 pages={807--824},
 year={2007},
 publisher={Elsevier}
}

@article{halkidi2001,
 title={On clustering validation techniques},
 author={Halkidi, Maria and Batistakis, Yannis and Vazirgiannis, Michalis},
 journal={Journal of intelligent information systems},
 volume={17},
 number={2-3},
 pages={107--145},
 year={2001},
 publisher={Springer}
}

@article{tibshirani2005,
 title={Cluster validation by prediction strength},
 author={Tibshirani, Robert and Walther, Guenther},
 journal={Journal of Computational and Graphical Statistics},
 volume={14},
 number={3},
 pages={511--528},
 year={2005},
 publisher={Taylor \& Francis}
}

@article{lange2004,
 title={Stability-based validation of clustering solutions},
 author={Lange, Tilman and Roth, Volker and Braun, Mikio L and Buhmann, Joachim M},
 journal={Neural computation},
 volume={16},
 number={6},
 pages={1299--1323},
 year={2004},
 publisher={MIT Press}
}

@Inbook{vazirgiannis2009,
author={Vazirgiannis, Michalis},
editor={LIU, LING
and {\"O}ZSU, M. TAMER},
title={Clustering Validity},
bookTitle={Encyclopedia of Database Systems},
year={2009},
publisher={Springer US},
address={Boston, MA},
pages={388--393},
isbn={978-0-387-39940-9},
doi={10.1007/978-0-387-39940-9_616},
url={https://doi.org/10.1007/978-0-387-39940-9_616}
}

@article{kuhn1955,
 title={The Hungarian method for the assignment problem},
 author={Kuhn, Harold W},
 journal={Naval research logistics quarterly},
 volume={2},
 number={1-2},
 pages={83--97},
 year={1955},
 publisher={Wiley Online Library}
}

@article{munkres1957,
 title={Algorithms for the assignment and transportation problems},
 author={Munkres, James},
 journal={Journal of the society for industrial and applied mathematics},
 volume={5},
 number={1},
 pages={32--38},
 year={1957},
 publisher={SIAM}
}

@software{yellowbrick:2018,
   title = {Yellowbrick},
   rights = {Apache License 2.0},
   url = {http://www.scikit-yb.org/en/latest/},
   abstract = {Yellowbrick is an open source, pure Python project that
       extends the Scikit-Learn {API} with visual analysis and
       diagnostic tools. The Yellowbrick {API} also wraps Matplotlib to
       create publication-ready figures and interactive data
       explorations while still allowing developers fine-grain control
       of figures. For users, Yellowbrick can help evaluate the
       performance, stability, and predictive value of machine learning
       models, and assist in diagnosing problems throughout the machine
       learning workflow.},
   version = {0.9.1},
   author = {Bengfort, Benjamin and Bilbro, Rebecca and Danielsen, Nathan and
       Gray, Larry and {McIntyre}, Kristen and Roman, Prema and Poh, Zijie and
       others},
   date = {2018-11-14},
   year = {2018},
   doi = {10.5281/zenodo.1206264}
}

@Article{nbclust,
   title = {{NbClust}: An {R} Package for Determining the Relevant
     Number of Clusters in a Data Set},
   author = {Malika Charrad and Nadia Ghazzali and V{\'e}ronique
     Boiteau and Azam Niknafs},
   journal = {Journal of Statistical Software},
   year = {2014},
   volume = {61},
   number = {6},
   pages = {1--36},
   url = {http://www.jstatsoft.org/v61/i06/},
 }

@Article{clvalid,
   title = {{clValid}: An {R} Package for Cluster Validation},
   author = {Guy Brock and Vasyl Pihur and Susmita Datta and Somnath
     Datta},
   journal = {Journal of Statistical Software},
   year = {2008},
   volume = {25},
   number = {4},
   pages = {1--22},
   url = {http://www.jstatsoft.org/v25/i04/},
 }

@article{haslbeck2016,
 title={Estimating the Number of Clusters via Normalized Cluster Instability},
 author={Jonas M. B. Haslbeck and Dirk U. Wulff},
 journal={arXiv: Machine Learning},
 year={2016}
}

@article{rousseeuw1987,
  title={Silhouettes: a graphical aid to the interpretation and validation of cluster analysis},
  author={Rousseeuw, Peter J},
  journal={Journal of computational and applied mathematics},
  volume={20},
  pages={53--65},
  year={1987},
  publisher={North-Holland}
}

@inproceedings{thorndike1953,
  title={Who belongs in the family},
  author={Thorndike, Robert L},
  booktitle={Psychometrika},
  year={1953},
  organization={Citeseer}
}

extension: bib


text:
package gcode

const (
	//默认: pack min > i < pack max
	HEAD_SIZE         = 4
	NET_BUFF_MINLEN   = 1
	NET_BUFF_MAXLEN   = 1024 * 1024 * 50 //(50MB)
	NET_BUFF_NEW_SIZE = 1024 * 10        //new read bytes
)

//解码-编码
type IByteCoder interface {
	//解码直接获得消息
	Unmarshal([]byte) ([]interface{}, error)
	//编码
	Marshal(...interface{}) ([]byte, error)
	//编码每次尺寸
	BuffSize() int
}

//查看缓冲是否正确
func CheckSizeOk(size int) bool {
	return size >= NET_BUFF_MINLEN && size <= NET_BUFF_MAXLEN
}

//查看缓冲是否错误
func CheckSizeErr(size int) bool {
	return size < NET_BUFF_MINLEN || size > NET_BUFF_MAXLEN
}

repository: mikestrange/vodka

repo_name: mikestrange/vodka

extension: go


text:
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.25.0-devel
// 	protoc        v3.14.0
// source: proto/cloud-algos.proto

package proto

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

var File_proto_cloud_algos_proto protoreflect.FileDescriptor

var file_proto_cloud_algos_proto_rawDesc = []byte{
	0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x61, 0x6c,
	0x67, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f,
	0x1a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x61, 0x74,
	0x69, 0x6f, 0x6e, 0x2d, 0x6d, 0x73, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x47,
	0x0a, 0x09, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x41, 0x6c, 0x67, 0x6f, 0x12, 0x3a, 0x0a, 0x07, 0x43,
	0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43,
	0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73,
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x3b, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var file_proto_cloud_algos_proto_goTypes = []interface{}{
	(*ComputeRequest)(nil),  // 0: proto.ComputeRequest
	(*ComputeResponse)(nil), // 1: proto.ComputeResponse
}
var file_proto_cloud_algos_proto_depIdxs = []int32{
	0, // 0: proto.CloudAlgo.Compute:input_type -> proto.ComputeRequest
	1, // 1: proto.CloudAlgo.Compute:output_type -> proto.ComputeResponse
	1, // [1:2] is the sub-list for method output_type
	0, // [0:1] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_proto_cloud_algos_proto_init() }
func file_proto_cloud_algos_proto_init() {
	if File_proto_cloud_algos_proto != nil {
		return
	}
	file_proto_computation_msgs_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_proto_cloud_algos_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   0,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_proto_cloud_algos_proto_goTypes,
		DependencyIndexes: file_proto_cloud_algos_proto_depIdxs,
	}.Build()
	File_proto_cloud_algos_proto = out.File
	file_proto_cloud_algos_proto_rawDesc = nil
	file_proto_cloud_algos_proto_goTypes = nil
	file_proto_cloud_algos_proto_depIdxs = nil
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6

// CloudAlgoClient is the client API for CloudAlgo service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CloudAlgoClient interface {
	// Performs the appropriate computation at the host algo and returns the result.
	Compute(ctx context.Context, in *ComputeRequest, opts ...grpc.CallOption) (*ComputeResponse, error)
}

type cloudAlgoClient struct {
	cc grpc.ClientConnInterface
}

func NewCloudAlgoClient(cc grpc.ClientConnInterface) CloudAlgoClient {
	return &cloudAlgoClient{cc}
}

func (c *cloudAlgoClient) Compute(ctx context.Context, in *ComputeRequest, opts ...grpc.CallOption) (*ComputeResponse, error) {
	out := new(ComputeResponse)
	err := c.cc.Invoke(ctx, "/proto.CloudAlgo/Compute", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// CloudAlgoServer is the server API for CloudAlgo service.
type CloudAlgoServer interface {
	// Performs the appropriate computation at the host algo and returns the result.
	Compute(context.Context, *ComputeRequest) (*ComputeResponse, error)
}

// UnimplementedCloudAlgoServer can be embedded to have forward compatible implementations.
type UnimplementedCloudAlgoServer struct {
}

func (*UnimplementedCloudAlgoServer) Compute(context.Context, *ComputeRequest) (*ComputeResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Compute not implemented")
}

func RegisterCloudAlgoServer(s *grpc.Server, srv CloudAlgoServer) {
	s.RegisterService(&_CloudAlgo_serviceDesc, srv)
}

func _CloudAlgo_Compute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ComputeRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(CloudAlgoServer).Compute(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/proto.CloudAlgo/Compute",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(CloudAlgoServer).Compute(ctx, req.(*ComputeRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _CloudAlgo_serviceDesc = grpc.ServiceDesc{
	ServiceName: "proto.CloudAlgo",
	HandlerType: (*CloudAlgoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Compute",
			Handler:    _CloudAlgo_Compute_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/cloud-algos.proto",
}

repository: AlexeyNovichenko/leap

repo_name: AlexeyNovichenko/leap


text:
package nestor

import (
	"reflect"
	"testing"
)

func Test_parseLink(t *testing.T) {
	tests := []struct {
		name       string
		args       string
		wantName   string
		wantTarget string
	}{
		{"1", "", "", ""},
		{"2", "[]()", "", ""},
		{"3", "[a](b)", "a", "b"},
		{"4", "[ab](bc)", "ab", "bc"},
		{"4", " abc  [ab](cd) xyz ", "ab", "cd"},
		{"4", "[ab(bc)", "", ""},
		{"3", "(a)[b]", "", ""},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			gotName, gotTarget := parseLink(tt.args)
			if gotName != tt.wantName {
				t.Errorf("parseLink() gotName = %v, want %v", gotName, tt.wantName)
			}
			if gotTarget != tt.wantTarget {
				t.Errorf("parseLink() gotTarget = %v, want %v", gotTarget, tt.wantTarget)
			}
		})
	}
}

func TestParseDocument(t *testing.T) {
	tests := []struct {
		name string
		args []byte
		want Fragment
	}{
		{
			name: "empty",
			args: []byte(""),
			want: Fragment{},
		},

		{
			name: "title only",
			args: []byte("# fragment Title"),
			want: Fragment{
				Title: "fragment Title",
			},
		},

		{
			name: "title + body",
			args: []byte("# fragment Title\nHey body."),
			want: Fragment{
				Title: "fragment Title",
				Body:  "Hey body.",
			},
		},

		{
			name: "title + body + lines",
			args: []byte("\n # fragment Title\n\nHey body.\n\n"),
			want: Fragment{
				Title: "fragment Title",
				Body:  "Hey body.",
			},
		},

		{
			name: "title+teaser+body",
			args: []byte("# fragment Title\n\n![teaser](image.jpg)\n\nHey body."),
			want: Fragment{
				Title: "fragment Title",
				Body:  "Hey body.",
				Teaser: []Attachment{
					{
						Type:  AtImage,
						Title: "teaser",
						Raw:   "image.jpg",
					},
				},
			},
		},

		{
			name: "title+teaser+body+attachments",
			args: []byte("# fragment Title\n\n![teaser](image.jpg)\n\nHey body.\n\n## Attachments\n\n" +
				"![Download Go](how-to-click.png)\n\n" +
				"[iframe](00-setup)  \n\n" +
				"  [source](component.go)\n\n" +
				"[download](project.zip)"),
			want: Fragment{
				Title: "fragment Title",
				Body:  "Hey body.",
				Teaser: []Attachment{
					{
						Type:  AtImage,
						Title: "teaser",
						Raw:   "image.jpg",
					},
				},
				Attachments: []Attachment{
					{
						Type:  AtImage,
						Title: "Download Go",
						Raw:   "how-to-click.png",
					},
					{
						Type:  AtIFrame,
						Title: "iframe",
						Raw:   "00-setup",
					},
					{
						Type:  AtSource,
						Title: "source",
						Raw:   "component.go",
					},
					{
						Type:  AtDownload,
						Title: "download",
						Raw:   "project.zip",
					},
				},
			},
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := ParseDocument(tt.args); !reflect.DeepEqual(got, tt.want) {
				t.Errorf("ParseDocument() = \n%+v, want \n%+v", got, tt.want)
			}
		})
	}
}

repository: golangee/gotrino-tutorial

repo_name: golangee/gotrino-tutorial

branch_name: refs/heads/main


text:
SUMMARY = "Continuous Integration and Job Scheduling Server"

LICENSE = "MIT & Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

SRC_URI = "http://updates.jenkins-ci.org/download/war/${PV}/jenkins.war \
           file://jenkins-server.service \
          "
SRC_URI[md5sum] = "66bf956f997ec71a2a75dc2466294855"
SRC_URI[sha256sum] = "e9288b78093507953550214c395bb6f1baf7a23c172a6cb9c035e5a7305ae7a2"

inherit allarch systemd useradd

do_install() {
    install -d ${D}${datadir}/jenkins
    install -m0644 ${WORKDIR}/jenkins.war ${D}${datadir}/jenkins/

    install -d ${D}${systemd_unitdir}/system
    install -m0644 ${WORKDIR}/jenkins-server.service ${D}${systemd_unitdir}/system
    sed -i -e s:/usr/share:${datadir}: ${D}${systemd_unitdir}/system/jenkins-server.service
}

PACKAGES =+ "jenkins-common"
FILES_jenkins-common = "${datadir}/jenkins/jenkins.war"

PACKAGES =+ "jenkins-server"
FILES_jenkins-server = "${systemd_unitdir}"

# FIXME: http://jenkins-ci.361315.n4.nabble.com/Using-UNIX-PAM-authentication-from-a-non-root-user-tp378559p378563.html
# 1) add jenkins to 'shadow' group
# 2) chown root.shadow /etc/shadow*
# 3) chmod g+r /etc/shadow*

USERADD_PACKAGES = "${PN}-server"
USERADD_PARAM_${PN}-server = "--system --create-home --home-dir ${localstatedir}/lib/jenkins jenkins"

SYSTEMD_PACKAGES = "${PN}-server"
SYSTEMD_SERVICE_jenkins-server = "jenkins-server.service"

# From the debian packages, not sure about psmisc.
RDEPENDS_jenkins-server = "openjre-8 \
                           procps file psmisc \
                           jenkins-common \
                           ttf-dejavu-sans \
                          "

# For unix user auth
RRECOMMENDS_jenkins-server = "openssh-sshd"

repository: koenkooi/meta-ci

repo_name: koenkooi/meta-ci

gha_license_id: MIT

gha_language: BitBake


text:
file(REMOVE_RECURSE
  "CMakeFiles/HELLO_autogen"
  "HELLO_autogen/mocs_compilation.cpp"
)

# Per-language clean rules from dependency scanning.
foreach(lang )
  include(CMakeFiles/HELLO_autogen.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()

repository: calunak/MyTest

repo_name: calunak/MyTest

extension: cmake


text:
DESCRIPTION = "SlingBox is a minimal version of BusyBox with just enough functionality \
to enable ipkg to run on an Unslung NSLU2 device."
HOMEPAGE = "http://www.busybox.net"
LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"
PR = "r3"
COMPATIBLE_MACHINE = "nslu2"

SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://defconfig \
           file://Makefile_args.patch;patch=1 \
           file://lazy_umount.patch;patch=1 \
           file://slingbox_name.patch;patch=1 \
           file://slingbox.patch;patch=1"

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

export EXTRA_CFLAGS = "${CFLAGS}"
EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"

PACKAGES = "${PN}"
FILES_${PN} = "/"
FILES_${PN}-doc = ""
FILES_${PN}-dev = ""
FILES_${PN}-locale = ""

inherit cml1

do_configure () {
	install -m 0644 ${WORKDIR}/defconfig ${S}/.config
	cml1_do_configure
}

do_compile () {
	unset CFLAGS
	base_do_compile
	# Just in case fdisk is compiled in, do not overwrite the Linksys one
	sed -i -e '/fdisk/d' ${S}/busybox.links
}

do_install () {
	oe_runmake 'PREFIX=${D}' install
}

repository: jdegges/gumstix-pip-oe

repo_name: jdegges/gumstix-pip-oe


text:
DESCRIPTION = "authenticator for mod_authnz_external and the Apache HTTP Daemon \
 Pwauth is an authenticator designed to be used with mod_auth_external or \
 mod_authnz_external and the Apache HTTP Daemon to support reasonably secure web \
 authentication out of the system password database on most versions of Unix. \
 Particulary - secure authentication against PAM"

LICENSE = "unfs3"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=4c86acd733827cf20ba8abb9e7246d02"

SECTION = "utils"
DEPENDS = "libpam"

PR = "r0"
inherit debian-package

do_install() {
	install -d ${D}
	install -d ${D}${sbindir}
	install -d ${D}${sysconfdir}/pam.d/

	install -m 0755 ${S}/pwauth ${D}${sbindir}/
	install -m 0644 ${S}/debian/pam ${D}${sysconfdir}/pam.d/pwauth
}

repository: nghiaht-tsdv/meta-debian

repo_name: nghiaht-tsdv/meta-debian

branch_name: refs/heads/jethro


text:
package server

import (
	"fmt"

	"github.com/jaegertracing/jaeger/cmd/agent/app/reporter"

	"go.uber.org/zap"

	"github.com/factorysh/jaeger-traefik/conf"
	_reporter "github.com/factorysh/jaeger-traefik/reporter"
	_ "github.com/factorysh/jaeger-traefik/reporter/apdex"  // register reporter
	_ "github.com/factorysh/jaeger-traefik/reporter/stdout" // register reporter
	_ "github.com/factorysh/jaeger-traefik/reporter/tiny"   // register reporter
	"github.com/jaegertracing/jaeger/cmd/agent/app/processors"
	"github.com/jaegertracing/jaeger/cmd/agent/app/servers"

	"github.com/apache/thrift/lib/go/thrift"
	"github.com/jaegertracing/jaeger/cmd/agent/app/servers/thriftudp"
	jaegerThrift "github.com/jaegertracing/jaeger/thrift-gen/jaeger"
	log "github.com/sirupsen/logrus"
)

type Server interface {
	Serve()
}

func NewServer(cfg *conf.Config) (Server, error) {
	//metricsFactory := metrics.NewLocalFactory(0)
	f := &Factory{}

	transport, err := thriftudp.NewTUDPServerTransport(cfg.ListenJaeger)
	if err != nil {
		return nil, err
	}
	maxPacketSize := 65000
	queueSize := 100
	server, err := servers.NewTBufferedServer(transport, queueSize, maxPacketSize, f)
	if err != nil {
		return nil, err
	}
	compactFactory := thrift.NewTCompactProtocolFactory()
	l := zap.NewExample()

	reporters := make(reporter.MultiReporter, 0)
	for name, r := range cfg.Reporters {
		f, ok := _reporter.Reporters[name]
		if !ok {
			return nil, fmt.Errorf("Unknown reporter: %v", name)
		}
		log.WithField("reporter", name).Info("reporter")
		rr, err := f(r)
		if err != nil {
			return nil, err
		}
		reporters = append(reporters, rr)
	}
	handler := jaegerThrift.NewAgentProcessor(reporters)
	return processors.NewThriftProcessor(server, 1, f, compactFactory, handler, l)
}

repository: factorysh/jaeger-traefik

repo_name: factorysh/jaeger-traefik


text:
SECTION = "devel/chicken"
DESCRIPTION = "A static website compiler"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://hyde.meta;md5=ed384d954a552bfdcc30a0eb20491de7"
DEPENDS_append_class-cross = " chicken-egg-filepath-cross chicken-egg-sxml-transforms-cross chicken-egg-doctype-cross chicken-egg-matchable-cross chicken-egg-scss-cross chicken-egg-spiffy-cross chicken-egg-colorize-cross chicken-egg-intarweb-cross chicken-egg-uri-common-cross chicken-egg-svnwiki-sxml-cross chicken-egg-defstruct-cross chicken-egg-multidoc-cross chicken-egg-atom-cross chicken-egg-rfc3339-cross"
DEPENDS_append_class-crosssdk = " chicken-egg-filepath-crosssdk chicken-egg-sxml-transforms-crosssdk chicken-egg-doctype-crosssdk chicken-egg-matchable-crosssdk chicken-egg-scss-crosssdk chicken-egg-spiffy-crosssdk chicken-egg-colorize-crosssdk chicken-egg-intarweb-crosssdk chicken-egg-uri-common-crosssdk chicken-egg-svnwiki-sxml-crosssdk chicken-egg-defstruct-crosssdk chicken-egg-multidoc-crosssdk chicken-egg-atom-crosssdk chicken-egg-rfc3339-crosssdk"
DEPENDS_append_class-nativesdk = " nativesdk-chicken-egg-filepath nativesdk-chicken-egg-sxml-transforms nativesdk-chicken-egg-doctype nativesdk-chicken-egg-matchable nativesdk-chicken-egg-scss nativesdk-chicken-egg-spiffy nativesdk-chicken-egg-colorize nativesdk-chicken-egg-intarweb nativesdk-chicken-egg-uri-common nativesdk-chicken-egg-svnwiki-sxml nativesdk-chicken-egg-defstruct nativesdk-chicken-egg-multidoc nativesdk-chicken-egg-atom nativesdk-chicken-egg-rfc3339 chicken-egg-filepath-crosssdk chicken-egg-sxml-transforms-crosssdk chicken-egg-doctype-crosssdk chicken-egg-matchable-crosssdk chicken-egg-scss-crosssdk chicken-egg-spiffy-crosssdk chicken-egg-colorize-crosssdk chicken-egg-intarweb-crosssdk chicken-egg-uri-common-crosssdk chicken-egg-svnwiki-sxml-crosssdk chicken-egg-defstruct-crosssdk chicken-egg-multidoc-crosssdk chicken-egg-atom-crosssdk chicken-egg-rfc3339-crosssdk"
DEPENDS = " chicken-egg-filepath chicken-egg-sxml-transforms chicken-egg-doctype chicken-egg-matchable chicken-egg-scss chicken-egg-spiffy chicken-egg-colorize chicken-egg-intarweb chicken-egg-uri-common chicken-egg-svnwiki-sxml chicken-egg-defstruct chicken-egg-multidoc chicken-egg-atom chicken-egg-rfc3339 chicken-egg-filepath-cross chicken-egg-sxml-transforms-cross chicken-egg-doctype-cross chicken-egg-matchable-cross chicken-egg-scss-cross chicken-egg-spiffy-cross chicken-egg-colorize-cross chicken-egg-intarweb-cross chicken-egg-uri-common-cross chicken-egg-svnwiki-sxml-cross chicken-egg-defstruct-cross chicken-egg-multidoc-cross chicken-egg-atom-cross chicken-egg-rfc3339-cross chicken-egg-hyde-cross"
RDEPENDS_${PN} = " chicken-egg-filepath chicken-egg-sxml-transforms chicken-egg-doctype chicken-egg-matchable chicken-egg-scss chicken-egg-spiffy chicken-egg-colorize chicken-egg-intarweb chicken-egg-uri-common chicken-egg-svnwiki-sxml chicken-egg-defstruct chicken-egg-multidoc chicken-egg-atom chicken-egg-rfc3339"

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

SRC_URI[md5sum] = "9109f20125a1d72991772187370c8eaf"
SRC_URI[sha256sum] = "5b2214a39baa3816f7656b1493af84a2e0a81a3319c26671acd73160fd130576"

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

inherit chicken_install

BBCLASSEXTEND = "cross crosssdk nativesdk"

repository: OSSystems/meta-chicken

repo_name: OSSystems/meta-chicken


text:
package model

import "golang.org/x/xerrors"

// Menu ...
type Menu struct {
	Model       `xorm:"extends" json:",inline"`
	PID         string `xorm:"pid"` //parent id
	Name        string `xorm:"name"`
	Icon        string `xorm:"icon"`
	Slug        string `xorm:"slug"`
	URL         string `xorm:"url"`
	Active      string `xorm:"active"`
	Description string `xorm:"description"`
	Sort        int    `xorm:"sort"`
}

// NewMenu ...
func NewMenu(id string) *Menu {
	return &Menu{
		Model: Model{
			ID: id,
		},
	}
}

// Get ...
func (obj *Menu) Get() (bool, error) {
	return Get(nil, obj)
}

// Menus ...
func (obj *Menu) Menus() ([]*Menu, error) {
	var menus []*Menu
	err := Table(obj).Find(&menus)
	if err != nil {
		return nil, xerrors.Errorf("find: %w", err)
	}
	return menus, nil
}

repository: godcong/wego-manager

repo_name: godcong/wego-manager


text:
package tests

import (
	"fmt"
	"io"
	"io/ioutil"
	"log"
	"os"
	"path"
	"testing"

	"github.com/infrawatch/apputils/logging"
	"github.com/stretchr/testify/assert"
)

// https://stackoverflow.com/a/51328256
func getLastLineWithSeek(filepath string) (string, error) {
	fileHandle, err := os.Open(filepath)
	if err != nil {
		return "", err
	}
	defer fileHandle.Close()

	line := ""
	var cursor int64 = 0
	stat, _ := fileHandle.Stat()
	filesize := stat.Size()
	for {
		cursor -= 1
		fileHandle.Seek(cursor, io.SeekEnd)

		char := make([]byte, 1)
		fileHandle.Read(char)

		if cursor != -1 && (char[0] == 10 || char[0] == 13) {
			break
		}

		line = fmt.Sprintf("%s%s", string(char), line)
		if cursor == -filesize {
			break
		}
	}

	return line, nil
}

func TestLogger(t *testing.T) {
	// create temporary logging directory
	tmpdir, err := ioutil.TempDir(".", "logging_test")
	if err != nil {
		log.Fatal(err)
	}
	defer os.RemoveAll(tmpdir)
	logpath := path.Join(tmpdir, "test.log")
	logpath2 := path.Join(tmpdir, "test2.log")
	log, err := logging.NewLogger(logging.DEBUG, logpath)
	if err != nil {
		t.Fatalf("Failed to create logger: %s", err)
	}

	t.Run("Test DEBUG log level", func(t *testing.T) {
		log.Debug("Test debug 1")
		actual, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[DEBUG] Test debug 1\n", actual)

		log.Info("Test debug 2")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[INFO] Test debug 2\n", actual)

		log.Warn("Test debug 3")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[WARN] Test debug 3\n", actual)

		log.Error("Test debug 4")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test debug 4\n", actual)
	})

	t.Run("Test INFO log level", func(t *testing.T) {
		log.Level = logging.INFO
		log.Debug("Test info 1")
		actual, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test debug 4\n", actual)

		log.Info("Test info 2")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[INFO] Test info 2\n", actual)

		log.Warn("Test info 3")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[WARN] Test info 3\n", actual)

		log.Error("Test info 4")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test info 4\n", actual)
	})

	t.Run("Test WARN log level", func(t *testing.T) {
		log.Level = logging.WARN
		log.Debug("Test warn 1")
		actual, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test info 4\n", actual)

		log.Info("Test warn 2")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test info 4\n", actual)

		log.Warn("Test warn 3")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[WARN] Test warn 3\n", actual)

		log.Error("Test warn 4")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test warn 4\n", actual)
	})

	t.Run("Test ERROR log level", func(t *testing.T) {
		log.Level = logging.ERROR
		log.Debug("Test error 1")
		actual, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test warn 4\n", actual)

		log.Info("Test error 2")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test warn 4\n", actual)

		log.Warn("Test error 3")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test warn 4\n", actual)

		log.Error("Test error 4")
		actual, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Equal(t, "[ERROR] Test error 4\n", actual)
	})

	t.Run("Test SetConsole", func(t *testing.T) {
		log.Level = logging.INFO
		testStr := "should not be in logfile"
		log.SetConsole()

		lastInFile1, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}

		log.Info(testStr)
		assert.NotEqual(t, lastInFile1, testStr)
	})

	t.Run("Test SetFile", func(t *testing.T) {
		log.Level = logging.ERROR

		lastInFile1, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}

		err = log.SetFile(logpath2, 0666)
		if err != nil {
			t.Fatalf("Failed switching log files: %s", err)
		}
		log.Error("Test SetFile")

		actualInFile1, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}

		assert.Equal(t, lastInFile1, actualInFile1)

		actualInFile2, err := getLastLineWithSeek(logpath2)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}

		assert.Equal(t, "[ERROR] Test SetFile\n", actualInFile2)

		// change it back
		err = log.SetFile(logpath, 0666)
		if err != nil {
			t.Fatalf("Failed switching log files: %s", err)
		}
		log.Error("Test SetFile2")

		actualInFile1, err = getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}

		assert.Equal(t, "[ERROR] Test SetFile2\n", actualInFile1)

		actualInFile2, err = getLastLineWithSeek(logpath2)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}

		assert.Equal(t, "[ERROR] Test SetFile\n", actualInFile2)
	})

	t.Run("Test metadata", func(t *testing.T) {
		log.Metadata(map[string]interface{}{"foo": "bar", "baz": []string{"bam", "vam"}})
		log.Error("Test metadata 1")
		actual, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Regexp(t, `\[ERROR\] Test metadata 1 \[(foo: bar, baz: \[bam vam\]|baz: \[bam vam\], foo: bar)\]`, actual)
	})

	t.Run("Test timestamp", func(t *testing.T) {
		log.Timestamp = true
		log.Error("Test timestamp")
		actual, err := getLastLineWithSeek(logpath)
		if err != nil {
			t.Fatalf("Failed to fetch last line in log file: %s", err)
		}
		assert.Regexp(t, `[0-9]{4}\-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \[ERROR\] Test timestamp\n`, actual)
	})
}

repository: infrawatch/apputils

repo_name: infrawatch/apputils

gha_language: Go


text:
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: get.proto

package strategy

import (
	fmt "fmt"
	_ "github.com/gogo/protobuf/gogoproto"
	proto "github.com/gogo/protobuf/proto"
	_ "github.com/mwitkow/go-proto-validators"
	_ "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/cmdb"
	easy_flow "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/easy_flow"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

//
//Get请求
type GetRequest struct {
	//
	//策略Id
	StrategyID           string   `protobuf:"bytes,1,opt,name=strategyID,proto3" json:"strategyID" form:"strategyID"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *GetRequest) Reset()         { *m = GetRequest{} }
func (m *GetRequest) String() string { return proto.CompactTextString(m) }
func (*GetRequest) ProtoMessage()    {}
func (*GetRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_21b2a6be0e6d8388, []int{0}
}
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetRequest.Unmarshal(m, b)
}
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
}
func (m *GetRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetRequest.Merge(m, src)
}
func (m *GetRequest) XXX_Size() int {
	return xxx_messageInfo_GetRequest.Size(m)
}
func (m *GetRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetRequest proto.InternalMessageInfo

func (m *GetRequest) GetStrategyID() string {
	if m != nil {
		return m.StrategyID
	}
	return ""
}

//
//GetApi返回
type GetResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *easy_flow.DeployStrategy `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (m *GetResponseWrapper) Reset()         { *m = GetResponseWrapper{} }
func (m *GetResponseWrapper) String() string { return proto.CompactTextString(m) }
func (*GetResponseWrapper) ProtoMessage()    {}
func (*GetResponseWrapper) Descriptor() ([]byte, []int) {
	return fileDescriptor_21b2a6be0e6d8388, []int{1}
}
func (m *GetResponseWrapper) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetResponseWrapper.Unmarshal(m, b)
}
func (m *GetResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetResponseWrapper.Marshal(b, m, deterministic)
}
func (m *GetResponseWrapper) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetResponseWrapper.Merge(m, src)
}
func (m *GetResponseWrapper) XXX_Size() int {
	return xxx_messageInfo_GetResponseWrapper.Size(m)
}
func (m *GetResponseWrapper) XXX_DiscardUnknown() {
	xxx_messageInfo_GetResponseWrapper.DiscardUnknown(m)
}

var xxx_messageInfo_GetResponseWrapper proto.InternalMessageInfo

func (m *GetResponseWrapper) GetCode() int32 {
	if m != nil {
		return m.Code
	}
	return 0
}

func (m *GetResponseWrapper) GetCodeExplain() string {
	if m != nil {
		return m.CodeExplain
	}
	return ""
}

func (m *GetResponseWrapper) GetError() string {
	if m != nil {
		return m.Error
	}
	return ""
}

func (m *GetResponseWrapper) GetData() *easy_flow.DeployStrategy {
	if m != nil {
		return m.Data
	}
	return nil
}

func init() {
	proto.RegisterType((*GetRequest)(nil), "strategy.GetRequest")
	proto.RegisterType((*GetResponseWrapper)(nil), "strategy.GetResponseWrapper")
}

func init() { proto.RegisterFile("get.proto", fileDescriptor_21b2a6be0e6d8388) }

var fileDescriptor_21b2a6be0e6d8388 = []byte{
	// 423 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x51, 0xd1, 0x6e, 0xd3, 0x30,
	0x14, 0x55, 0xa0, 0x43, 0xcc, 0x45, 0x02, 0xfc, 0x80, 0x4a, 0x5f, 0x32, 0x19, 0x84, 0xf6, 0xe2,
	0x18, 0x06, 0x42, 0x83, 0x07, 0x10, 0xd3, 0x00, 0xf1, 0xb8, 0x4c, 0x08, 0x21, 0x34, 0x2a, 0xc7,
	0x71, 0xb2, 0x08, 0xa7, 0xd7, 0xd8, 0x2e, 0xa5, 0x42, 0xfb, 0x03, 0xfe, 0x80, 0x4f, 0x43, 0x2a,
	0x12, 0x9f, 0x90, 0x2f, 0x40, 0xbd, 0x49, 0xbb, 0xbc, 0x32, 0xed, 0x29, 0x3e, 0x3e, 0xf7, 0x9c,
	0x9c, 0xeb, 0x43, 0xb6, 0x4b, 0x1d, 0x12, 0xeb, 0x20, 0x00, 0xbd, 0xee, 0x83, 0x93, 0x41, 0x97,
	0x8b, 0x31, 0x2f, 0xab, 0x70, 0x3a, 0xcb, 0x12, 0x05, 0xb5, 0x28, 0xa1, 0x04, 0x81, 0x03, 0xd9,
	0xac, 0x40, 0x84, 0x00, 0x4f, 0xad, 0x70, 0x7c, 0x52, 0x42, 0xa2, 0xa5, 0x5f, 0x80, 0xf5, 0x89,
	0x01, 0x25, 0x8d, 0x50, 0x30, 0x0d, 0x4e, 0xaa, 0xe0, 0x5b, 0xa5, 0xd3, 0x16, 0x78, 0x0d, 0xb9,
	0x36, 0x5e, 0x74, 0x83, 0x02, 0x21, 0xa2, 0x49, 0x61, 0x60, 0x2e, 0x72, 0x6d, 0x0d, 0x2c, 0x26,
	0x99, 0x0c, 0xea, 0x74, 0x12, 0xa4, 0xdb, 0xe4, 0x1a, 0x1f, 0x5d, 0xdc, 0x5e, 0xd5, 0x79, 0x26,
	0x94, 0x99, 0xf9, 0xa0, 0xdd, 0xa4, 0x9a, 0x16, 0xeb, 0xc4, 0xef, 0x2f, 0x23, 0x71, 0x1b, 0xb2,
	0x6f, 0xfb, 0xf1, 0x12, 0x1f, 0x62, 0x5d, 0x46, 0x67, 0xfd, 0xb4, 0x57, 0x49, 0x3d, 0xaf, 0xc2,
	0x17, 0x98, 0x8b, 0x12, 0x38, 0x92, 0xfc, 0x9b, 0x34, 0x55, 0x2e, 0x03, 0x38, 0x2f, 0x36, 0xc7,
	0x56, 0xc7, 0x7e, 0x45, 0x84, 0xbc, 0xd5, 0x21, 0xd5, 0x5f, 0x67, 0xda, 0x07, 0xfa, 0x33, 0x22,
	0x64, 0xed, 0xfc, 0xee, 0x70, 0x14, 0xed, 0x44, 0xbb, 0xdb, 0x07, 0xa6, 0x59, 0xc6, 0xb7, 0x0b,
	0x70, 0xf5, 0x73, 0x76, 0xce, 0xb1, 0xbf, 0x7f, 0xe2, 0x63, 0x72, 0xf4, 0xf9, 0x93, 0xe4, 0xc5,
	0x2b, 0xfe, 0xe6, 0x21, 0x7f, 0x76, 0xf2, 0x63, 0xff, 0x8c, 0xbf, 0xec, 0xe3, 0x27, 0xff, 0x89,
	0x1f, 0xed, 0x9d, 0xdd, 0x4f, 0x7b, 0xff, 0x67, 0xbf, 0x23, 0x42, 0x31, 0x9d, 0xb7, 0x30, 0xf5,
	0xfa, 0x83, 0x93, 0xd6, 0x6a, 0x47, 0xef, 0x91, 0x81, 0x82, 0x5c, 0x63, 0xbc, 0xad, 0x83, 0x9b,
	0xcd, 0x32, 0x1e, 0xb6, 0xf1, 0x56, 0xb7, 0x2c, 0x45, 0x92, 0xee, 0x93, 0xe1, 0xea, 0xfb, 0xfa,
	0xbb, 0x35, 0xb2, 0x9a, 0x8e, 0xae, 0xe0, 0x2a, 0x77, 0x9a, 0x65, 0x4c, 0xcf, 0x67, 0x3b, 0x92,
	0xa5, 0xfd, 0x51, 0xfa, 0x80, 0x6c, 0x69, 0xe7, 0xc0, 0x8d, 0xae, 0xa2, 0xe6, 0x56, 0xb3, 0x8c,
	0x6f, 0xb4, 0x1a, 0xbc, 0x66, 0x69, 0x4b, 0xd3, 0x17, 0x64, 0x90, 0xcb, 0x20, 0x47, 0x83, 0x9d,
	0x68, 0x77, 0xb8, 0x77, 0x37, 0xd9, 0x74, 0x94, 0x1c, 0x62, 0x47, 0xc7, 0xdd, 0x22, 0xfd, 0x84,
	0x2b, 0x01, 0x4b, 0x51, 0x97, 0x5d, 0xc3, 0x0a, 0x1e, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x2f,
	0xb2, 0xa5, 0x0c, 0x64, 0x03, 0x00, 0x00,
}

repository: easyopsapis/easyops-api-go

repo_name: easyopsapis/easyops-api-go


text:
package main

import (
	"net/http"
	"time"

	"github.com/PacktPublishing/Hands-On-Networking-with-Go-Programming/chapter_3_applications/router"
)

func main() {
	time := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte(time.Now().UTC().String()))
	})

	r := router.New().
		AddRoute("/time", http.MethodGet, time)

	users := map[string]string{
		"jonty": "shsgfhjdsf",
		"terry": "123bmsda!",
	}

	h := withBasicAuth(users, r)

	http.ListenAndServe(":8773", h)
}

func withBasicAuth(userNameToPassword map[string]string, next http.Handler) http.Handler {
	f := func(w http.ResponseWriter, r *http.Request) {
		u, p, ok := r.BasicAuth()
		if !ok {
			http.Error(w, "basic auth not used", http.StatusUnauthorized)
			return
		}
		if pp, ok := userNameToPassword[u]; !ok || p != pp {
			http.Error(w, "unkown user or invalid password", http.StatusUnauthorized)
			return
		}
		next.ServeHTTP(w, r)
	}
	return http.HandlerFunc(f)
}


text:
#
# Base recipe: recipes-devtools/gdb/gdb_7.6.2.bb
# Base branch: daisy
#

require gdb-common.inc

inherit gettext

# cross-canadian must not see this
PACKAGES =+ "gdbserver"
FILES_gdbserver = "${bindir}/gdbserver"

inherit python-dir

PACKAGECONFIG ??= ""
PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python"
PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"

do_configure_prepend() {
        if [ -n "${@base_contains('PACKAGECONFIG', 'python', 'python', '', d)}" ]; then
                cat > ${WORKDIR}/python << EOF
#!/bin/sh
case "\$2" in
        --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;;
        --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;;
        --exec-prefix) echo "${exec_prefix}" ;;
        *) exit 1 ;;
esac
exit 0
EOF
                chmod +x ${WORKDIR}/python
        fi
}

do_install_append() {
	# Install init script follow debian
	install -d ${D}${sysconfdir}/${BPN}
	install -m 0644 ${S}/debian/gdbinit ${D}${sysconfdir}/${BPN}
	install -m 0755 ${S}/gdb/contrib/gdb-add-index.sh \
			${D}${bindir}/gdb-add-index
	install -m 0755 ${S}/debian/gdbtui ${D}${bindir}
}


text:
DESCRIPTION = "Next Generation sophisticated Numeric Processing Package for Python"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "PYRAF"
SRCNAME = "numarray"
PR = "ml1"

SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/${SRCNAME}-${PV}.tar.gz"
S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit distutils

FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/numarray/examples/*/.debug"

SRC_URI[md5sum] = "40cec6ce8ca2e95a4fbc7a28879bf4a5"
SRC_URI[sha256sum] = "7a6f7f2745cbcb02bf79cc7cd365a3f80679f2558dfaa378010675f40a7aff3b"


text:
SUMMARY = "Laird Connectivity NetworkManager"
SECTION = "net/misc"

LICENSE = "GPLv2+ & LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \
"

DEPENDS = " \
    intltool-native \
    libxslt-native \
    glib-2.0-native \
    libnl \
    libgudev \
    util-linux \
    libndp \
    libnewt \
    curl \
"
inherit autotools gettext update-rc.d systemd bash-completion gtk-doc lrd-url

SRC_URI = " \
    ${LRD_60_URI_BASE}/lrd-network-manager-src-${PV}.tar.xz \
    file://networkmanager.initd \
    file://NetworkManager.conf \
    file://0001-Fixed-configure.ac-Fix-pkgconfig-sysroot-locations.patch \
    file://0002-Do-not-create-settings-settings-property-documentati.patch \
    file://0001-install-firewalld-to-var-libdir-rather-than-hardcod-.patch \
"

SRC_URI[md5sum] = "34699cd55bbcdd9c2cb841462544b1b7"
SRC_URI[sha256sum] = "58b8aa520dedcb9cc98dcbaa0eb5fc01a8b7d0f5b7cb4477af9db1cc15f02e37"

S = "${WORKDIR}/lrd-network-manager-${PV}"

EXTRA_OECONF = " \
    --disable-ifcfg-rh \
    --disable-more-warnings \
    --with-iptables=${sbindir}/iptables \
    --disable-tests \
    --with-udev-dir=${nonarch_base_libdir}/udev \
    --disable-ovs \
    --disable-introspection \
    --disable-nls \
    --disable-vala \
    --disable-gtk-doc \
    --disable-gtk-doc-html \
    --disable-gtk-doc-pdf \
"

do_compile_prepend() {
    export GIR_EXTRA_LIBS_PATH="${B}/libnm/.libs:${B}/libnm-glib/.libs:${B}/libnm-util/.libs"
}

PACKAGECONFIG ??= "nss ifupdown dnsmasq \
    ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)} \
    ${@bb.utils.contains('DISTRO_FEATURES','bluetooth','bluez5','',d)} \
    ${@bb.utils.contains('DISTRO_FEATURES','wifi','wifi','',d)} \
    ${@bb.utils.contains('DISTRO_FEATURES','polkit','polkit','',d)} \
"
PACKAGECONFIG[systemd] = " \
    --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd, \
    --without-systemdsystemunitdir, \
"
PACKAGECONFIG[polkit] = "--enable-polkit --enable-polkit-agent,--disable-polkit --disable-polkit-agent,polkit"
PACKAGECONFIG[bluez5] = "--enable-bluez5-dun,--disable-bluez5-dun,bluez5"
# consolekit is not picked by shlibs, so add it to RDEPENDS too
PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
PACKAGECONFIG[modemmanager] = "--with-modem-manager-1,--without-modem-manager-1,modemmanager"
PACKAGECONFIG[ofono] = "--with-ofono,--without-ofono,ofono"
PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp,ppp"
# Use full featured dhcp client instead of internal one
PACKAGECONFIG[dhclient] = "--with-dhclient=${base_sbindir}/dhclient,,,dhcp-client"
PACKAGECONFIG[dhcpcd] = "--with-dhcpcd=${base_sbindir}/dhcpcd,,,dhcpcd"
PACKAGECONFIG[dnsmasq] = "--with-dnsmasq=${bindir}/dnsmasq"
PACKAGECONFIG[nss] = "--with-crypto=nss,,nss"
PACKAGECONFIG[resolvconf] = "--with-resolvconf=${base_sbindir}/resolvconf,,,resolvconf"
PACKAGECONFIG[gnutls] = "--with-crypto=gnutls,,gnutls"
PACKAGECONFIG[wifi] = "--enable-wifi=yes,--enable-wifi=no,wpa-supplicant"
PACKAGECONFIG[ifupdown] = "--enable-ifupdown,--disable-ifupdown"
PACKAGECONFIG[qt4-x11-free] = "--enable-qt,--disable-qt,qt4-x11-free"
PACKAGECONFIG[cloud-setup] = "--with-nm-cloud-setup=yes,--with-nm-cloud-setup=no"

PACKAGES =+ " \
  ${PN}-nmtui ${PN}-nmtui-doc \
  ${PN}-adsl ${PN}-cloud-setup \
"

FILES_${PN}-adsl = "${libdir}/NetworkManager/libnm-device-plugin-adsl.so"

FILES_${PN}-cloud-setup = " \
    ${libexecdir}/nm-cloud-setup \
    ${systemd_system_unitdir}/nm-cloud-setup.service \
    ${systemd_system_unitdir}/nm-cloud-setup.timer \
    ${libdir}/NetworkManager/dispatcher.d/90-nm-cloud-setup.sh \
    ${libdir}/NetworkManager/dispatcher.d/no-wait.d/90-nm-cloud-setup.sh \
"
ALLOW_EMPTY_${PN}-cloud-setup = "1"
SYSTEMD_SERVICE_${PN}-cloud-setup = "${@bb.utils.contains('PACKAGECONFIG', 'cloud-setup', 'nm-cloud-setup.service nm-cloud-setup.timer', '', d)}"

FILES_${PN} += " \
    ${libexecdir} \
    ${libdir}/NetworkManager/*/*.so \
    ${libdir}/NetworkManager \
    ${libdir}/firewalld/zones \
    ${nonarch_libdir}/NetworkManager/conf.d \
    ${nonarch_libdir}/NetworkManager/dispatcher.d \
    ${nonarch_libdir}/NetworkManager/dispatcher.d/pre-down.d \
    ${nonarch_libdir}/NetworkManager/dispatcher.d/pre-up.d \
    ${nonarch_libdir}/NetworkManager/dispatcher.d/no-wait.d \
    ${nonarch_libdir}/NetworkManager/VPN \
    ${nonarch_libdir}/NetworkManager/system-connections \
    ${datadir}/polkit-1 \
    ${datadir}/dbus-1 \
    ${nonarch_base_libdir}/udev/* \
    ${systemd_system_unitdir} \
    ${libdir}/pppd \"
RRECOMMENDS_${PN} += "iptables \
    ${@bb.utils.contains('PACKAGECONFIG','dnsmasq','dnsmasq','',d)} \
"

RCONFLICTS_${PN} = "connman networkmanager"
RREPLACES_${PN} = "networkmanager"

FILES_${PN}-dev += " \
    ${datadir}/NetworkManager/gdb-cmd \
    ${libdir}/pppd/*/*.la \
    ${libdir}/NetworkManager/*.la \
    ${libdir}/NetworkManager/*/*.la \
"

FILES_${PN}-nmtui = " \
    ${bindir}/nmtui \
    ${bindir}/nmtui-edit \
    ${bindir}/nmtui-connect \
    ${bindir}/nmtui-hostname \
"

FILES_${PN}-nmtui-doc = " \
    ${mandir}/man1/nmtui* \
"

INITSCRIPT_NAME = "network-manager"
SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'NetworkManager.service NetworkManager-dispatcher.service', '', d)}"

ALTERNATIVE_PRIORITY = "100"
ALTERNATIVE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','resolv-conf','',d)}"
ALTERNATIVE_TARGET[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv-conf.NetworkManager','',d)}"
ALTERNATIVE_LINK_NAME[resolv-conf] = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${sysconfdir}/resolv.conf','',d)}"

do_install_append() {
    install -Dm 0644 ${WORKDIR}/NetworkManager.conf ${D}${sysconfdir}/NetworkManager/NetworkManager.conf
    install -Dm 0755 ${WORKDIR}/networkmanager.initd ${D}${sysconfdir}/init.d/network-manager

    rm -rf ${D}/run ${D}${localstatedir}/run

    if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
        # For read-only filesystem, do not create links during bootup
        ln -sf ../run/NetworkManager/resolv.conf ${D}${sysconfdir}/resolv-conf.NetworkManager

        # systemd v210 and newer do not need this rule file
        rm ${D}/${nonarch_base_libdir}/udev/rules.d/84-nm-drivers.rules
    fi
}


text:
// Copyright 2015 CoreOS, Inc.
//
// 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 ns

import (
	"runtime"

	"github.com/vishvananda/netns"
)

// NsEnter locks the current goroutine the OS thread and switches to a
// new network namespace. The returned function must be called in order
// to restore the previous state and unlock the thread.
func Enter(ns netns.NsHandle) (func() error, error) {
	runtime.LockOSThread()

	origns, err := netns.Get()
	if err != nil {
		runtime.UnlockOSThread()
		return nil, err
	}

	err = netns.Set(ns)
	if err != nil {
		origns.Close()
		runtime.UnlockOSThread()
		return nil, err
	}

	return func() error {
		defer runtime.UnlockOSThread()
		defer origns.Close()
		if err := netns.Set(origns); err != nil {
			return err
		}
		return nil
	}, nil
}

// NsCreate returns a handle to a new network namespace.
// NsEnter must be used to safely enter and exit the new namespace.
func Create() (netns.NsHandle, error) {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	origns, err := netns.Get()
	if err != nil {
		return netns.None(), err
	}
	defer origns.Close()

	newns, err := netns.New()
	if err != nil {
		return netns.None(), err
	}

	if err := netns.Set(origns); err != nil {
		newns.Close()
		return netns.None(), err
	}

	return newns, nil
}

repository: coreos/coreos-assembler

repo_name: coreos/coreos-assembler


text:
@article{IEEESPL22,
 author = {T. Montagu and A. Ferrari},
 journal = {IEEE Signal Processing Letters},
 note = {submitted},
 title = {Variance Stabilizing Transformations for Intensity Estimators of Shot Noise},
 year = {2022}
}

repository: andferrari/academic-kickstart

repo_name: andferrari/academic-kickstart


text:
require linux-omap3.inc

KVER = "2.6.37"
PSPREL = "04.02.00.06"

SRCREV= "v2.6.37_OMAPPSP_04.02.00.06"

DEFAULT_PREFERENCE = "-1"
COMPATIBLE_MACHINE = "am37x-evm"

# The following patches below have been upstreamed to linux kernel 2.6.39 tree
# and will not be needed once we move to this kernel.
# The only exception is "0002-allow-selecting-WL12XX_PLATFROM_DATA-independently.patch"
# which is needed for building against a compat-wireless package

SRC_URI += " \
    file://0001-omap3evm-add-support-for-the-WL12xx-WLAN-module.patch \
    file://0002-allow-selecting-WL12XX_PLATFROM_DATA-independently.patch \
    file://0003-mmc-skip-detection-of-nonremovable-cards-on-rescan.patch \
    file://0004-mmc-sdio-don-t-reinitialize-nonremovable-powered-res.patch \
    file://0005-mmc-sdio-don-t-power-up-cards-on-system-suspend.patch \
    file://0006-wl12xx-Backport-wl12xx-platform-data.patch \


text:
#include "debug.h"
#include "buffer.h"
#include "sequence.h"

int main(int argc, char** argv)
{
  debug("sunaptos_test")

  buffer b1;
  b1.set("test", 4);
  debug((const char*) b1.get())

  sequence s1;
  s1 = "test-seq";
  debug((const char*) s1)

  return 0;
}

repository: massimilianonardi/m

repo_name: massimilianonardi/m

extension: cpp


text:
package main

import (
	"flag"
	"log"

	"github.com/go-pg/pg/v10"
	migrate "github.com/lawzava/go-pg-migrate"
)

func main() {
	db := pg.Connect(&pg.Options{
		User:     "postgres",
		Database: "migrate-test",
	})

	var opt migrate.Options

	flag.UintVar(&opt.VersionNumberToApply, "version", 0,
		"migrate to specified printVersion; 0 will apply all forward migrations")
	flag.BoolVar(&opt.PrintInfoAndExit, "current", false,
		"print last applied version and exit")
	flag.BoolVar(&opt.ForceVersionWithoutMigrations, "force", false,
		"force version of migration to set in database without running any migrations")
	flag.BoolVar(&opt.RefreshSchema, "refresh", false,
		"refresh database, should be set for first run (when DB is empty)")
	flag.Parse()

	m, err := migrate.New(db, opt,
		m1, m2, m3)
	if err != nil {
		log.Fatal(err)
	}

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

repository: marvinhosea/go-pg-migrate

repo_name: marvinhosea/go-pg-migrate