Skip to content

Commit

Permalink
added copyright info
Browse files Browse the repository at this point in the history
  • Loading branch information
Breck Baldwin committed Aug 19, 2024
1 parent 01d390a commit a4e847b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
16 changes: 16 additions & 0 deletions calculate_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
"""

"""
* Copyright 2024 Comcast Cable Communications Management, LLC
*
* 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.
"""


def check_element_wise_equality(lists):
counter = 0
Expand Down
16 changes: 16 additions & 0 deletions helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
Contains helper functions.
"""

"""
* Copyright 2024 Comcast Cable Communications Management, LLC
*
* 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.
"""


def parse_file_name(file_name: str):
"""Splits file_name into model_name, task and experiment_seed
Expand Down
16 changes: 16 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@

"""Top level main function to run LLMs."""

"""
* Copyright 2024 Comcast Cable Communications Management, LLC
*
* 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.
"""

parser = argparse.ArgumentParser(description="")
parser.add_argument("--task", type=str)
parser.add_argument("--model", type=str)
Expand Down
16 changes: 16 additions & 0 deletions postprocess_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@

"""Takes a llm_output.csv file from an LLM run and parses out the answer and saves as parsed_llm_output.csv"""

"""
* Copyright 2024 Comcast Cable Communications Management, LLC
*
* 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.
"""


def process_raw_response(row):
response = row["raw_response"]
Expand Down

0 comments on commit a4e847b

Please sign in to comment.