Skip to content

Instantly share code, notes, and snippets.

import mailbox
import json
from email.header import decode_header, make_header
from email.utils import parsedate_to_datetime
def get_decoded_header(header):
"""Decodes an email header to a string."""
if header is None:
return ""
# The make_header function ensures that different encoding parts are handled correctly.
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
APP_API_DOMAIN: api.yestoki.com
APP_DOLA_USER_ATTACHMENT_URL: https://api.yestoki.com
BAIKAL_EMAIL_DOMAIN: dav.yestoki.com
BAIKAL_EMAIL_LEGACY_DOMAINS: '["heydola.com", "hidola.ai", "yestoki.com"]'
import json
import os
import time
import matplotlib.pyplot as plt
import openai
from sklearn.cluster import MiniBatchKMeans
from sklearn.decomposition import PCA
from sklearn.metrics import silhouette_score
# 后端
内部软件。不外部分发。
## 没有完全遵守
html2text 2020.1.16 GNU General Public License (GPL)
## 遵守
chardet 5.2.0 GNU Lesser General Public License v2 or later (LGPLv2+)
psycopg 3.2.3 GNU Lesser General Public License v3 (LGPLv3)
candidates {
content {
role: "model"
parts {
text: "Here\'s a summary of the latest news from NYC, based on your provided sources:\n\n* **Politics:** The NYC mayoral investigations continue to dominate headlines, with the mayor facing bribery charges and investigations swirling around school leadership. The mayor\'s phone has been seized, and a potential witness has spoken. Rep. Ocasio-Cortez has called for the mayor\'s resignation. The upcoming election and its potential impact on the migrant crisis are also major news items. Six ballot measures will be decided by NYC voters. The city plans to continue protecting immigrants regardless of the election outcome.\n\n* **Crime:** A cyclist was killed in a crash with an FDNY truck in Brooklyn. Three people were fatally shot in a suspected murder-suicide. A man is set to stand trial for a subway chokehold death. The owner of a day care where a toddler fatally ingested fentanyl pleaded guilty to federal charges.\n\n* **Transit:** The city is
# Mostly a copy of feishu-bin's PKGBUILD with s/feishu/lark/
# Maintainer: Sabit Maulana <[email protected]>
pkgname=larksuite-bin
pkgver=7.22.9
_pkghash=355bee5d
_pkgtyp=stable
pkgrel=1
pkgdesc="Linux client of Lark Suite"
arch=('x86_64')
url="https://www.larksuite.com/download"
# Mostly a copy of feishu-bin's PKGBUILD with s/feishu/lark/
# Maintainer: Sabit Maulana <[email protected]>
pkgname=larksuite-bin
pkgver=7.15.13
_pkghash=29433142
_pkgtyp=stable
pkgrel=1
pkgdesc="Linux client of Lark Suite"
arch=('x86_64')
url="https://www.larksuite.com/download"
diff --git a/orion/biz/connectors/im/imessage/common.py b/orion/biz/connectors/im/imessage/common.py
index cb045292..1a8a4ad6 100644
--- a/orion/biz/connectors/im/imessage/common.py
+++ b/orion/biz/connectors/im/imessage/common.py
@@ -2,7 +2,8 @@ import datetime
from enum import StrEnum
from typing import Dict, List, Optional
-from pydantic.v1 import BaseModel as PydanticV1BaseModel, Field as PydanticV1Field
+from pydantic.v1 import BaseModel as PydanticV1BaseModel
diff --git a/orion/biz/connectors/im/imessage/common.py b/orion/biz/connectors/im/imessage/common.py
index cb045292..97f10f01 100644
--- a/orion/biz/connectors/im/imessage/common.py
+++ b/orion/biz/connectors/im/imessage/common.py
@@ -2,7 +2,8 @@ import datetime
from enum import StrEnum
from typing import Dict, List, Optional
-from pydantic.v1 import BaseModel as PydanticV1BaseModel, Field as PydanticV1Field
+from pydantic.v1 import BaseModel as PydanticV1BaseModel
diff --git a/orion/biz/connectors/im/imessage/common.py b/orion/biz/connectors/im/imessage/common.py
index cb045292..32f194f8 100644
--- a/orion/biz/connectors/im/imessage/common.py
+++ b/orion/biz/connectors/im/imessage/common.py
@@ -2,7 +2,8 @@ import datetime
from enum import StrEnum
from typing import Dict, List, Optional
-from pydantic.v1 import BaseModel as PydanticV1BaseModel, Field as PydanticV1Field
+from pydantic.v1 import BaseModel as PydanticV1BaseModel