-
📝 Edit Attached Images/Files in Messages: You can now easily edit your sent messages by removing attached files—streamlining document management, correcting mistakes on the fly, and keeping your chats clutter-free.
-
🛡️ Confirm Dialog Focus Trap Reliability: The focus now stays correctly within confirmation dialogs, ensuring keyboard navigation and accessibility is seamless and preventing accidental operations—especially helpful during critical or rapid workflows.
-
💬 Temporary Chat Admin Controls & Session Cleanliness: Admins are now able to properly enable temporary chat mode without errors, and previous session prompts or tool selections no longer carry over—delivering a fresh, predictable, and consistent temporary chat experience every time.
-
📤 Unstylized PDF Export Option (Reduced File Size): When exporting chat transcripts or documents, you can now choose an unstylized PDF export for snappier downloads, minimal file size, and clea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Directory structure: | |
└── cyclotruc-gitingest/ | |
├── README.md | |
├── CODE_OF_CONDUCT.md | |
├── CONTRIBUTING.md | |
├── Dockerfile | |
├── LICENSE | |
├── SECURITY.md | |
├── pyproject.toml | |
├── requirements-dev.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generic_unsync(func: Callable[..., Any]) -> Callable[..., Any]: | |
""" | |
A function that dynamically decides whether to run asynchronously | |
or synchronously based on whether it's in an async context, | |
but always returns the result synchronously so that | |
you can use it from an async or sync context. | |
""" | |
from unsync import unsync # type: ignore # pylint: disable=import-outside-toplevel | |
@unsync # type: ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from typing import AsyncGenerator | |
async_q: asyncio.Queue[str] = asyncio.Queue() | |
async def producer() -> None: | |
try: | |
# Assuming `a` should be a value like 1, 2, etc. | |
# a = 1 | |
await async_q.put(str(a)) # a not defined |
- Love, connection, caring, compassion, tolerance, helping others, sharing, and acceptance. We value the ability to love and to be loved, to connect with others, to care for others, to be compassionate, to be tolerant, to share, to help others, and to accept others.
- Freedom and autonomy. We value the ability to make our own decisions and to have control over our own lives. We value the ability to believe what we want, to have our own thoughts, and to have our own feelings. We value the ability to have our own opinions and to express them freely. We value the ability to have our own goals and to pursue them. We value the ability to have our own values and to live by them. We value the ability to have our own identity and to be ourselves.
- Harmony and peace. We value the ability to live in harmony with others and our surroundings and to live in peace without war, violence, or conflict.
- The right to life and the pursuit of happiness. We value the ability to live and to pursue happiness. We value the abi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import time | |
from typing import Callable, Any | |
def timed(fn: Callable[..., Any]) -> Callable[..., Any]: | |
""" | |
Decorator log test start and end time of a function | |
:param fn: Function to decorate | |
:return: Decorated function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
DATE_STR = datetime.now().strftime('%Y_%m-%d_%H-%M.%S.%f') |
Game of AGI (GOA) is a socio-techno monte carlo simulation which estimates the existential risk posed by AGI. You play by setting various factors, i.e. AI spending and AGI safety spending, along with their uncertainties and GOA returns the existential risk, corruption risk, and value alignment probability associated with your guesses by sampling 1M times from guassian distributions of your guesses.
N.B. When referring to AGI's as separate entities, I am referring to autonomous groups of humans (i.e. companies, governments, groups, organizations) that are in control of some tech stack capable of AGI. There may be several autonomous AGIs within any certain stack, but we assume they have an umbrella objective defined by
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In a family with two children, what are the chances, if **one** of the children is a girl, that both children are girls? | |
from random import random | |
n = 0 | |
c = 0 | |
for i in range(100000): | |
a = random() < 0.5 | |
b = random() < 0.5 | |
if a or b: # **one** implies _either_ child | |
n += 1 | |
if a and b: |
NewerOlder