CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
telemetry-utils.ts18 linesDownload Raw Back to telemetry
1/**2 * @license3 * Copyright 2025 Google LLC4 * SPDX-License-Identifier: Apache-2.05 */6 7import { getLanguageFromFilePath } from '../utils/language-detection.js';8 9export function getProgrammingLanguage(10  args: Record<string, unknown>,11): string | undefined {12  const filePath = args['file_path'] || args['path'];13  if (typeof filePath === 'string') {14    return getLanguageFromFilePath(filePath);15  }16  return undefined;17}18 
basant307/AI_Governance_Project · CoolFace