shahar1 commented on code in PR #55917:
URL: https://github.com/apache/airflow/pull/55917#discussion_r2365420878


##########
dev/i18n/copilot_translations.py:
##########
@@ -0,0 +1,549 @@
+#!/usr/bin/env python3
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you 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.
+
+"""
+GitHub Copilot API client for translation services.
+
+This module provides a class-based interface to the GitHub Copilot API
+with on-demand token refresh and translation capabilities.
+"""
+
+from __future__ import annotations
+
+import json
+import sys
+import threading
+import time
+import unicodedata
+from pathlib import Path
+from typing import TYPE_CHECKING
+
+import requests
+from jinja2 import Environment, FileSystemLoader, TemplateNotFound
+from requests.exceptions import ConnectionError, HTTPError, RequestException, 
Timeout
+from rich import print
+from rich.console import Console
+
+if TYPE_CHECKING:
+    from jinja2 import Template
+
+
+COPILOT_CLIENT_ID = "Iv1.b507a08c87ecfe98"

Review Comment:
   Where is this client ID taken from? I've managed to find references in 
Google, but not official ones.
   It's worth documenting it here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to