Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
19
21
content
stringlengths
722
86.7k
evocodebench_data_1
""" Common utilities. """ from asyncio import AbstractEventLoop import json import logging import logging.handlers import os import platform import sys from typing import AsyncGenerator, Generator import warnings import requests from chat.constants import LOGDIR handler = None visited_loggers = set() def build_lo...
evocodebench_data_2
"""Tools module""" # Copyright (c) 2023 # Author: Hugo Delatte <delatte.hugo@gmail.com> # License: BSD 3 clause # Implementation derived from: # Riskfolio-Lib, Copyright (c) 2020-2023, Dany Cajas, Licensed under BSD 3 clause. # Statsmodels, Copyright (C) 2006, Jonathan E. Taylor, Licensed under BSD 3 clause. from enu...
evocodebench_data_3
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
evocodebench_data_4
import sqlite3 import hashlib import json import functools ## Originally from https://www.kevinkatz.io/posts/memoize-to-sqlite def memoize_to_sqlite(func_name: str, filename: str = "cache.db"): """ Memoization decorator that caches the output of a method in a SQLite database. """ def decorator(fun...
evocodebench_data_5
from typing import Any, Callable, Dict, Iterable, List import numpy as np from pydantic import fields # ----- validators ----- def is_odd(cls: type, v: int, field: fields.ModelField) -> int: """Check that kernel size are odd numbers. Args: cls (type): Class type. v (int): Value to check. ...
evocodebench_data_6
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
evocodebench_data_7
# Copyright The Lightning AI team. # 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 writi...
evocodebench_data_8
"""Tools module""" # Copyright (c) 2023 # Author: Hugo Delatte <delatte.hugo@gmail.com> # License: BSD 3 clause # Implementation derived from: # scikit-learn, Copyright (c) 2007-2010 David Cournapeau, Fabian Pedregosa, Olivier # Grisel Licensed under BSD 3 clause. from collections.abc import Callable, Iterator from e...
evocodebench_data_9
import json import numpy as np from agents.microagent import MicroAgent class AgentSerializer: @staticmethod def to_dict(agent): """ Serialize the MicroAgent object to a dictionary for persistence. """ purpose_embedding = agent.purpose_embedding if isinstance(purpose_emb...
evocodebench_data_10
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
evocodebench_data_11
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
evocodebench_data_12
# formatting done while cleaning def connect(prev, curr): has_space = prev.endswith(" ") has_hyphen = prev.endswith("-") if has_hyphen: result = prev[0:-1] + curr return result result = prev + ("" if has_space else " ") + curr return result def fix_mixedcase_words(word): # if l...
evocodebench_data_13
from typing import Any, Callable, Dict, Iterable, List import numpy as np from pydantic import fields # ----- validators ----- def is_odd(cls: type, v: int, field: fields.ModelField) -> int: """Check that kernel size are odd numbers. Args: cls (type): Class type. v (int): Value to check. ...
evocodebench_data_14
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
evocodebench_data_15
import ast import asyncio import functools import itertools import logging import os import re import string from copy import deepcopy from typing import List, Callable, Dict, Optional, Any, Collection import pandas as pd logger = logging.getLogger("AutoRAG") def fetch_contents(corpus_data: pd.DataFrame, ids: List[...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
5