From 254a0ca6fb904970f9b5b150a2ed00519e8efa5d Mon Sep 17 00:00:00 2001 From: lrq619 Date: Tue, 11 Jul 2023 00:51:43 +0000 Subject: [PATCH] Add copyrights to files; Clean up comments Signed-off-by: lrq619 --- grpcclient/bert_client.go | 25 +++++++++++++++++++++---- grpcclient/getclient.go | 21 +++++++++++++++++++++ proto/bert/bert.pb.go | 21 +++++++++++++++++++++ proto/bert/bert_grpc.pb.go | 21 +++++++++++++++++++++ proto/bert/bert_pb2.py | 19 +++++++++++++++++++ proto/bert/bert_pb2_grpc.py | 19 +++++++++++++++++++ 6 files changed, 122 insertions(+), 4 deletions(-) diff --git a/grpcclient/bert_client.go b/grpcclient/bert_client.go index 97987fc..dfa4d67 100644 --- a/grpcclient/bert_client.go +++ b/grpcclient/bert_client.go @@ -1,3 +1,24 @@ +// MIT License + +// Copyright (c) 2022 EASE lab + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package grpcclient import ( @@ -8,8 +29,6 @@ import ( pb "github.com/vhive-serverless/vSwarm-proto/proto/bert" ) -// var inputs = []string{"allow", "deny", "unbertorized", "bla bla"} - type BertGenerator struct { GeneratorBase } @@ -20,8 +39,6 @@ func (g *BertGenerator) Next() Input { case Unique: pkt.Value = "A unique message" case Linear: - // g.count = g.count + 1 - // pkt.Value = fmt.Sprintf("%d", g.count) pkt.Value = "A linear message" case Random: pkt.Value = "random" diff --git a/grpcclient/getclient.go b/grpcclient/getclient.go index 8ed70cb..30b0584 100644 --- a/grpcclient/getclient.go +++ b/grpcclient/getclient.go @@ -1,3 +1,24 @@ +// MIT License + +// Copyright (c) 2022 EASE lab + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. package grpcclient import ( diff --git a/proto/bert/bert.pb.go b/proto/bert/bert.pb.go index 7bdea99..64cb4e2 100644 --- a/proto/bert/bert.pb.go +++ b/proto/bert/bert.pb.go @@ -1,3 +1,24 @@ +// MIT License + +// Copyright (c) 2022 EASE lab + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. // Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/bert/bert.proto diff --git a/proto/bert/bert_grpc.pb.go b/proto/bert/bert_grpc.pb.go index 76bdb8f..e26cd0f 100644 --- a/proto/bert/bert_grpc.pb.go +++ b/proto/bert/bert_grpc.pb.go @@ -1,3 +1,24 @@ +// MIT License + +// Copyright (c) 2022 EASE lab + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. // Code generated by protoc-gen-go-grpc. DO NOT EDIT. package bert diff --git a/proto/bert/bert_pb2.py b/proto/bert/bert_pb2.py index a08c7db..d0c51c5 100644 --- a/proto/bert/bert_pb2.py +++ b/proto/bert/bert_pb2.py @@ -1,3 +1,22 @@ +""" +MIT License +Copyright (c) 2022 EASE lab +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/bert/bert.proto diff --git a/proto/bert/bert_pb2_grpc.py b/proto/bert/bert_pb2_grpc.py index 2a491d3..71e44ee 100644 --- a/proto/bert/bert_pb2_grpc.py +++ b/proto/bert/bert_pb2_grpc.py @@ -1,3 +1,22 @@ +""" +MIT License +Copyright (c) 2022 EASE lab +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc