TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #transparencyinai

当前筛选 #transparencyinai清除筛选
AI & Law

@ai_and_law · Post #417 · 11.10.2024 г., 07:04

AI Copyright Lawsuit: A New Era of Dataset Transparency? In a groundbreaking move for AI copyright disputes, a judge has permitted authors' representatives to inspect OpenAI's confidential training dataset under strict conditions. This decision could set a precedent for how training data is scrutinized in future legal battles over AI-generated content. The inspection is to be conducted in a highly controlled environment—either at OpenAI’s San Francisco office or a secure location within a 25-mile radius. A secured, internet-free computer will be provided, containing a README file with a directory of the data. The inspection room bans recording devices, although a note-taking computer can be provided under supervision, ensuring that sensitive data remains protected. Only individuals qualified under the protective order can access the data, emphasizing the heightened confidentiality. This level of transparency and rigor in examining training data might become a standard in AI litigation. As AI technology continues to reshape industries, balancing innovation with intellectual property rights will require similar measures to ensure fairness and accountability. #AICopyright#TransparencyInAI#AIRegulation

AI & Law

@ai_and_law · Post #197 · 22.12.2023 г., 08:04

CAI Unveils Public "Zero Draft" for AI Framework Convention Greetings AI & Law community! The European Committee on Artificial Intelligence (CAI) has announced the public release of the revised "Zero Draft" Framework Convention on Artificial Intelligence, Human Rights, Democracy, and the Rule of Law. Key Points: 1️⃣ The "Zero Draft" serves as the foundational document for drafting the Framework Convention and is not the final outcome of CAI negotiations. 2️⃣ A Consolidated Working Draft has been prepared based on the first reading of the revised Zero Draft, containing preliminary agreements and proposals for further negotiations. 3️⃣ The text which is not in brackets and in red font is considered to be preliminarily agreed. 4️⃣ The CAI Bureau has decided to make this document public, providing transparency into the ongoing process. The recently released Draft Framework Convention, based on outcomes from the second reading, will be the focal point for the upcoming 9th Plenary meeting. Notably, provisions under negotiation include the Scope, Risk and impact management framework, and the Conference of the Parties. #AIlaw#CAI#AIregulation#FrameworkConvention#TransparencyInAI