MCPcopy Create free account

hub / github.com/mlco2/codecarbon / functions

Functions1,889 in github.com/mlco2/codecarbon

↓ 1 callersFunctionexportEmissionsTimeSeriesCsv
( timeSeries: EmissionsTimeSeries, projectName: string, experimentName?: string, )
webapp/src/utils/export.ts:143
↓ 1 callersFunctionexportExperimentsToCsv
( experiments: ExperimentReport[], projectName: string, )
webapp/src/utils/export.ts:58
↓ 1 callersFunctionexportRunsToCsv
( runs: RunReport[], projectName: string, experimentName?: string, )
webapp/src/utils/export.ts:86
↓ 1 callersFunctionexportToJson
(data: ProjectData)
webapp/src/utils/export.ts:45
↓ 1 callersFunctionextends_emissions_units
(data: pd.DataFrame)
codecarbon/viz/units.py:21
↓ 1 callersFunctionextract_text_from_url
(url)
examples/ollama_local_api.py:31
↓ 1 callersFunctionfetchOrganizationReport
()
webapp/src/pages/OrgDashboardPage.tsx:41
↓ 1 callersFunctionfetchProject
()
webapp/src/pages/ProjectSettingsPage.tsx:21
↓ 1 callersFunctionfetchProjectData
()
webapp/src/pages/PublicProjectPage.tsx:103
↓ 1 callersFunctionfetchTokens
()
webapp/src/components/projectTokens/projectTokenTable.tsx:27
↓ 1 callersMethodfetch_page
Fetch a single page of results.
codecarbon/data/hardware/cpu_dataset_builder/intel_cpu_scrapper.py:33
↓ 1 callersFunctionfromBase64Url
(value: string)
webapp/src/utils/crypto.ts:95
↓ 1 callersMethodfrom_lbs_per_mWh
(cls, lbs_per_mWh: float)
codecarbon/core/units.py:40
↓ 1 callersMethodfrom_power_and_time
(cls, *, power: "Power", time: "Time")
codecarbon/core/units.py:68
↓ 1 callersFunctiongenerate_api_key
()
carbonserver/carbonserver/api/infra/api_key_utils.py:9
↓ 1 callersFunctiongenerate_counter
(metric_doc: MetricDocumentation)
codecarbon/output_methods/metrics/prometheus.py:70
↓ 1 callersFunctiongetOrganizationEmissionsByProject
( organizationId: string, dateRange: DateRange | undefined, )
webapp/src/api/organizations.ts:10
↓ 1 callersFunctiongetOrganizations
()
webapp/src/api/organizations.ts:28
↓ 1 callersFunctiongetProjectTokens
( projectId: string, )
webapp/src/api/projectTokens.ts:4
↓ 1 callersFunctiongetProjects
(organizationId: string)
webapp/src/api/projects.ts:27
↓ 1 callersFunctiongetRunMetadata
( runId: string, )
webapp/src/api/runs.ts:11
↓ 1 callersFunctionget_api_key_hash
Get the hash of the api key
carbonserver/carbonserver/api/infra/api_key_utils.py:16
↓ 1 callersMethodget_authorize_url
(self, request, login_url)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:44
↓ 1 callersMethodget_client_credentials
(self)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:49
↓ 1 callersFunctionget_config
(path: Optional[Path] = None)
codecarbon/cli/cli_utils.py:11
↓ 1 callersMethodget_data_from_api
(host)
codecarbon/viz/data.py:241
↓ 1 callersMethodget_emissions_from_run
(self, run_id)
carbonserver/carbonserver/api/services/emissions_service.py:22
↓ 1 callersMethodget_emissions_tab
()
codecarbon/viz/components.py:410
↓ 1 callersFunctionget_emissions_unit
(data: pd.DataFrame)
codecarbon/viz/units.py:12
↓ 1 callersMethodget_energy_mix_tab
()
codecarbon/viz/components.py:426
↓ 1 callersFunctionget_existing_exp_id
Return experiment_id resolved from the same hierarchical config strategy used by EmissionsTracker (global file, local file, then CODECARBON_*
codecarbon/cli/cli_utils.py:42
↓ 1 callersMethodget_experiment_detailed_sums_by_run
Find the runs of an experiment in database between two dates and return a report containing the sum of their emissions :experiment_id
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:119
↓ 1 callersMethodget_experiments_from_project
(self, project_id)
carbonserver/carbonserver/api/domain/experiments.py:17
↓ 1 callersMethodget_experiments_from_project
(self, project_id, user: User)
carbonserver/carbonserver/api/services/experiments_service.py:43
↓ 1 callersMethodget_gpu_details
(self)
tests/test_gpu_amd.py:557
↓ 1 callersFunctionget_list_of_cores_to_test
(nb)
examples/compare_cpu_load_and_RAPL.py:213
↓ 1 callersMethodget_one_emission
(self, emission_id)
carbonserver/carbonserver/api/domain/emissions.py:14
↓ 1 callersMethodget_one_emission
(self, emission_id)
carbonserver/carbonserver/api/services/emissions_service.py:18
↓ 1 callersMethodget_one_experiment
(self, experiment_id: str)
carbonserver/carbonserver/api/domain/experiments.py:13
↓ 1 callersMethodget_one_experiment
(self, experiment_id, user: Optional[User])
carbonserver/carbonserver/api/services/experiments_service.py:31
↓ 1 callersMethodget_one_project
(self, project_id)
carbonserver/carbonserver/api/domain/projects.py:12
↓ 1 callersMethodget_one_project
(self, project_id: str, user: Optional[User])
carbonserver/carbonserver/api/services/project_service.py:56
↓ 1 callersMethodget_one_run
Find the run in database and return it :run_id: The id of the run to retreive. :returns: An Run in pyDantic BaseModel format.
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:57
↓ 1 callersMethodget_organization
Get an organization
codecarbon/core/api_client.py:137
↓ 1 callersMethodget_organization_detailed_sums
Find the emissions of an organization in database between two dates and return a report containing their sum :organization_id: The id
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:91
↓ 1 callersMethodget_project
Get a project
codecarbon/core/api_client.py:187
↓ 1 callersMethodget_project_detailed_sums
Find the experiments of a project in database between two dates and return a report containing the sum of their emissions :project_id
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:104
↓ 1 callersMethodget_project_detailed_sums_by_experiment
( self, project_id, start_date, end_date )
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:111
↓ 1 callersMethodget_project_last_run
Find the last run of a project in database between two dates and return it :project_id: The id of the project to retrieve runs from :
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:178
↓ 1 callersMethodget_project_token_by_emission_id_and_token
(self, emission_id: str, token: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:117
↓ 1 callersMethodget_project_token_by_experiment_id_and_token
( self, experiment_id: str, token: str )
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:80
↓ 1 callersMethodget_project_token_by_project_id_and_token
(self, project_id: str, token: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:67
↓ 1 callersMethodget_project_token_by_run_id_and_token
(self, run_id: str, token: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:99
↓ 1 callersMethodget_projects_from_organization
Find the list of projects from a organization in database and return it :org_id: The id of the organization to retreive projects from.
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:89
↓ 1 callersMethodget_runs_from_experiment
Find the list of runs from an experiment in database and return it :experiment_id: The id of the experiment to retreive runs from. :r
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:77
↓ 1 callersMethodget_static_cpu_details
Return CPU details without computing them.
codecarbon/core/cpu.py:854
↓ 1 callersMethodget_static_details
(self)
codecarbon/core/gpu_device.py:65
↓ 1 callersMethodget_user_by_id
(self, user_id: int)
carbonserver/carbonserver/api/domain/users.py:13
↓ 1 callersMethodget_user_info
(self, access_token: str)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:63
↓ 1 callersFunctionhandleClose
()
webapp/src/components/createProjectModal.tsx:69
↓ 1 callersFunctionhandleCopy
(token: string | undefined)
webapp/src/components/createExperimentModal.tsx:97
↓ 1 callersFunctionhandleCopy
(token: string)
webapp/src/components/projectTokens/projectTokenTable.tsx:66
↓ 1 callersFunctionhandleCopyExperimentId
(id: string)
webapp/src/components/project-dashboard-base.tsx:100
↓ 1 callersFunctionhandleDelete
(projectToken: IProjectToken)
webapp/src/components/projectTokens/custom-row-token.tsx:16
↓ 1 callersFunctionhandleDeleteClick
(project: Project)
webapp/src/pages/ProjectsPage.tsx:37
↓ 1 callersFunctionhandle_cookie_banner
Attempts to find and click a 'Reject All' button for cookie consent.
codecarbon/data/hardware/cpu_dataset_builder/amd_cpu_scrapper.py:13
↓ 1 callersFunctionheavy_computation
(run_time_secs: float = 3)
tests/test_tracking_inference.py:13
↓ 1 callersMethodidentify_potential_ram_domains
Identify potential RAM-related domains based on name and characteristics Sample Detailed RAPL Domain Information: {
examples/rapl/intel_rapl_show.py:120
↓ 1 callersFunctioninference
(model, data, inference_task_name)
examples/task_inference.py:18
↓ 1 callersFunctioninit_container
()
carbonserver/main.py:63
↓ 1 callersFunctioninit_db
(container)
carbonserver/main.py:82
↓ 1 callersFunctioninit_server
(container)
carbonserver/main.py:89
↓ 1 callersMethodinspect_rapl_domains
Thoroughly inspect RAPL domains with detailed information
examples/rapl/intel_rapl_show.py:62
↓ 1 callersFunctioninstallMockFetch
()
webapp/src/api/mock/index.ts:10
↓ 1 callersMethodisOperationAuthorizedOnOrg
(*args, **kwargs)
carbonserver/tests/api/mocks.py:23
↓ 1 callersMethodisOperationAuthorizedOnProject
(*args, **kwargs)
carbonserver/tests/api/service/test_project_service.py:84
↓ 1 callersMethodis_admin_in_organization
(self, organization_id: UUID, user: User)
carbonserver/carbonserver/api/infra/repositories/repository_users.py:112
↓ 1 callersFunctionis_linux_os
()
codecarbon/core/util.py:100
↓ 1 callersFunctionis_mac_os
()
codecarbon/core/util.py:86
↓ 1 callersMethodis_project_public
(self, project_id)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:73
↓ 1 callersMethodis_user_authorized_on_experiment
(self, experiment_id, user_id: UUID)
carbonserver/carbonserver/api/infra/repositories/repository_users.py:132
↓ 1 callersFunctionis_windows_os
()
codecarbon/core/util.py:95
↓ 1 callersMethodlist_organizations
(self)
carbonserver/carbonserver/api/domain/organizations.py:16
↓ 1 callersMethodlist_organizations
(self, user: User = None)
carbonserver/carbonserver/api/services/organization_service.py:64
↓ 1 callersMethodlist_project_tokens
(self, project_id: str)
carbonserver/carbonserver/api/domain/project_tokens.py:16
↓ 1 callersMethodlist_projects
(host)
codecarbon/viz/data.py:262
↓ 1 callersMethodlist_projects_from_organization
List all projects
codecarbon/core/api_client.py:162
↓ 1 callersMethodlist_users
(self)
carbonserver/carbonserver/api/domain/users.py:17
↓ 1 callersMethodlist_users
(self)
carbonserver/carbonserver/api/services/user_service.py:27
↓ 1 callersMethodlist_users
( self, organization_id: UUID | str, user: User = None )
carbonserver/carbonserver/api/services/organization_service.py:67
↓ 1 callersMethodlive_out
(self, total: EmissionsData, _)
codecarbon/output_methods/logger.py:42
↓ 1 callersMethodlive_out
(self, _: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/metrics/logfire.py:78
↓ 1 callersMethodlive_out
No-op: BoAmps reports are final, not incremental.
codecarbon/output_methods/boamps/output.py:163
↓ 1 callersFunctionload_all_cpu
(target_percent, duration)
examples/compare_cpu_load_and_RAPL.py:238
↓ 1 callersFunctionload_client_schemas
()
carbonserver/tests/api/test_schema_compatibility.py:10
↓ 1 callersFunctionmain
()
codecarbon/data/hardware/cpu_dataset_builder/amd_cpu_scrapper.py:88
↓ 1 callersFunctionmain
Main function to run the scraper.
codecarbon/data/hardware/cpu_dataset_builder/intel_cpu_scrapper.py:212
↓ 1 callersFunctionmain
Main entry point for the CodeCarbon CLI application. This function catches any exceptions raised during the execution of the CLI commands
codecarbon/cli/main.py:37
↓ 1 callersFunctionmain
()
codecarbon/viz/carbonboard.py:302
↓ 1 callersFunctionmain
()
codecarbon/viz/carbonboard_on_api.py:278
← previousnext →501–600 of 1,889, ranked by callers