repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0d7.py
sql/python_libraries_for_sql_functions/unidecode/x0d7.py
data = ( 'hwen', # 0x00 'hwenj', # 0x01 'hwenh', # 0x02 'hwed', # 0x03 'hwel', # 0x04 'hwelg', # 0x05 'hwelm', # 0x06 'hwelb', # 0x07 'hwels', # 0x08 'hwelt', # 0x09 'hwelp', # 0x0a 'hwelh', # 0x0b 'hwem', # 0x0c 'hweb', # 0x0d 'hwebs', # 0x0e 'hwes', # 0x0f 'hwess', #...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0cf.py
sql/python_libraries_for_sql_functions/unidecode/x0cf.py
data = ( 'ke', # 0x00 'keg', # 0x01 'kegg', # 0x02 'kegs', # 0x03 'ken', # 0x04 'kenj', # 0x05 'kenh', # 0x06 'ked', # 0x07 'kel', # 0x08 'kelg', # 0x09 'kelm', # 0x0a 'kelb', # 0x0b 'kels', # 0x0c 'kelt', # 0x0d 'kelp', # 0x0e 'kelh', # 0x0f 'kem', # 0x10 'keb', # ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x016.py
sql/python_libraries_for_sql_functions/unidecode/x016.py
data = ( 'kka', # 0x00 'kk', # 0x01 'nu', # 0x02 'no', # 0x03 'ne', # 0x04 'nee', # 0x05 'ni', # 0x06 'na', # 0x07 'mu', # 0x08 'mo', # 0x09 'me', # 0x0a 'mee', # 0x0b 'mi', # 0x0c 'ma', # 0x0d 'yu', # 0x0e 'yo', # 0x0f 'ye', # 0x10 'yee', # 0x11 'yi', # 0x12 'ya...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x08d.py
sql/python_libraries_for_sql_functions/unidecode/x08d.py
data = ( 'Wei ', # 0x00 'Bai ', # 0x01 'Chen ', # 0x02 'Zhuan ', # 0x03 'Zhi ', # 0x04 'Zhui ', # 0x05 'Biao ', # 0x06 'Yun ', # 0x07 'Zeng ', # 0x08 'Tan ', # 0x09 'Zan ', # 0x0a 'Yan ', # 0x0b '[?] ', # 0x0c 'Shan ', # 0x0d 'Wan ', # 0x0e 'Ying ', # 0x0f 'Jin ', # 0x...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x081.py
sql/python_libraries_for_sql_functions/unidecode/x081.py
data = ( 'Cheng ', # 0x00 'Tiao ', # 0x01 'Zhi ', # 0x02 'Cui ', # 0x03 'Mei ', # 0x04 'Xie ', # 0x05 'Cui ', # 0x06 'Xie ', # 0x07 'Mo ', # 0x08 'Mai ', # 0x09 'Ji ', # 0x0a 'Obiyaakasu ', # 0x0b '[?] ', # 0x0c 'Kuai ', # 0x0d 'Sa ', # 0x0e 'Zang ', # 0x0f 'Qi ', # 0x...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x00e.py
sql/python_libraries_for_sql_functions/unidecode/x00e.py
data = ( '[?]', # 0x00 'k', # 0x01 'kh', # 0x02 'kh', # 0x03 'kh', # 0x04 'kh', # 0x05 'kh', # 0x06 'ng', # 0x07 'cch', # 0x08 'ch', # 0x09 'ch', # 0x0a 'ch', # 0x0b 'ch', # 0x0c 'y', # 0x0d 'd', # 0x0e 't', # 0x0f 'th', # 0x10 'th', # 0x11 'th', # 0x12 'n', #...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x07a.py
sql/python_libraries_for_sql_functions/unidecode/x07a.py
data = ( 'Xi ', # 0x00 'Kao ', # 0x01 'Lang ', # 0x02 'Fu ', # 0x03 'Ze ', # 0x04 'Shui ', # 0x05 'Lu ', # 0x06 'Kun ', # 0x07 'Gan ', # 0x08 'Geng ', # 0x09 'Ti ', # 0x0a 'Cheng ', # 0x0b 'Tu ', # 0x0c 'Shao ', # 0x0d 'Shui ', # 0x0e 'Ya ', # 0x0f 'Lun ', # 0x10 'Lu '...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x055.py
sql/python_libraries_for_sql_functions/unidecode/x055.py
data = ( 'You ', # 0x00 'Yan ', # 0x01 'Gu ', # 0x02 'Gu ', # 0x03 'Bai ', # 0x04 'Han ', # 0x05 'Suo ', # 0x06 'Chun ', # 0x07 'Yi ', # 0x08 'Ai ', # 0x09 'Jia ', # 0x0a 'Tu ', # 0x0b 'Xian ', # 0x0c 'Huan ', # 0x0d 'Li ', # 0x0e 'Xi ', # 0x0f 'Tang ', # 0x10 'Zuo ', ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x1d5.py
sql/python_libraries_for_sql_functions/unidecode/x1d5.py
data = ( 'w', # 0x00 'x', # 0x01 'y', # 0x02 'z', # 0x03 'A', # 0x04 'B', # 0x05 '', # 0x06 'D', # 0x07 'E', # 0x08 'F', # 0x09 'G', # 0x0a '', # 0x0b '', # 0x0c 'J', # 0x0d 'K', # 0x0e 'L', # 0x0f 'M', # 0x10 'N', # 0x11 'O', # 0x12 'P', # 0x13 'Q', # 0x14...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x054.py
sql/python_libraries_for_sql_functions/unidecode/x054.py
data = ( 'Mie ', # 0x00 'Xu ', # 0x01 'Mang ', # 0x02 'Chi ', # 0x03 'Ge ', # 0x04 'Xuan ', # 0x05 'Yao ', # 0x06 'Zi ', # 0x07 'He ', # 0x08 'Ji ', # 0x09 'Diao ', # 0x0a 'Cun ', # 0x0b 'Tong ', # 0x0c 'Ming ', # 0x0d 'Hou ', # 0x0e 'Li ', # 0x0f 'Tu ', # 0x10 'Xiang ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0d3.py
sql/python_libraries_for_sql_functions/unidecode/x0d3.py
data = ( 'tim', # 0x00 'tib', # 0x01 'tibs', # 0x02 'tis', # 0x03 'tiss', # 0x04 'ting', # 0x05 'tij', # 0x06 'tic', # 0x07 'tik', # 0x08 'tit', # 0x09 'tip', # 0x0a 'tih', # 0x0b 'pa', # 0x0c 'pag', # 0x0d 'pagg', # 0x0e 'pags', # 0x0f 'pan', # 0x10 'panj', # 0x11 ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x051.py
sql/python_libraries_for_sql_functions/unidecode/x051.py
data = ( 'Yi ', # 0x00 'Jun ', # 0x01 'Nong ', # 0x02 'Chan ', # 0x03 'Yi ', # 0x04 'Dang ', # 0x05 'Jing ', # 0x06 'Xuan ', # 0x07 'Kuai ', # 0x08 'Jian ', # 0x09 'Chu ', # 0x0a 'Dan ', # 0x0b 'Jiao ', # 0x0c 'Sha ', # 0x0d 'Zai ', # 0x0e '[?] ', # 0x0f 'Bin ', # 0x10...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0ca.py
sql/python_libraries_for_sql_functions/unidecode/x0ca.py
data = ( 'jjael', # 0x00 'jjaelg', # 0x01 'jjaelm', # 0x02 'jjaelb', # 0x03 'jjaels', # 0x04 'jjaelt', # 0x05 'jjaelp', # 0x06 'jjaelh', # 0x07 'jjaem', # 0x08 'jjaeb', # 0x09 'jjaebs', # 0x0a 'jjaes', # 0x0b 'jjaess', # 0x0c 'jjaeng', # 0x0d 'jjaej', # 0x0e 'jjaec', # 0x...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x002.py
sql/python_libraries_for_sql_functions/unidecode/x002.py
data = ( 'A', # 0x00 'a', # 0x01 'A', # 0x02 'a', # 0x03 'E', # 0x04 'e', # 0x05 'E', # 0x06 'e', # 0x07 'I', # 0x08 'i', # 0x09 'I', # 0x0a 'i', # 0x0b 'O', # 0x0c 'o', # 0x0d 'O', # 0x0e 'o', # 0x0f 'R', # 0x10 'r', # 0x11 'R', # 0x12 'r', # 0x13 'U', # 0...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x011.py
sql/python_libraries_for_sql_functions/unidecode/x011.py
data = ( 'g', # 0x00 'gg', # 0x01 'n', # 0x02 'd', # 0x03 'dd', # 0x04 'r', # 0x05 'm', # 0x06 'b', # 0x07 'bb', # 0x08 's', # 0x09 'ss', # 0x0a '', # 0x0b 'j', # 0x0c 'jj', # 0x0d 'c', # 0x0e 'k', # 0x0f 't', # 0x10 'p', # 0x11 'h', # 0x12 'ng', # 0x13 'nn', ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x06f.py
sql/python_libraries_for_sql_functions/unidecode/x06f.py
data = ( 'Qing ', # 0x00 'Yu ', # 0x01 'Piao ', # 0x02 'Ji ', # 0x03 'Ya ', # 0x04 'Jiao ', # 0x05 'Qi ', # 0x06 'Xi ', # 0x07 'Ji ', # 0x08 'Lu ', # 0x09 'Lu ', # 0x0a 'Long ', # 0x0b 'Jin ', # 0x0c 'Guo ', # 0x0d 'Cong ', # 0x0e 'Lou ', # 0x0f 'Zhi ', # 0x10 'Gai ', ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x05f.py
sql/python_libraries_for_sql_functions/unidecode/x05f.py
data = ( 'Kai ', # 0x00 'Bian ', # 0x01 'Yi ', # 0x02 'Qi ', # 0x03 'Nong ', # 0x04 'Fen ', # 0x05 'Ju ', # 0x06 'Yan ', # 0x07 'Yi ', # 0x08 'Zang ', # 0x09 'Bi ', # 0x0a 'Yi ', # 0x0b 'Yi ', # 0x0c 'Er ', # 0x0d 'San ', # 0x0e 'Shi ', # 0x0f 'Er ', # 0x10 'Shi ', ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0fb.py
sql/python_libraries_for_sql_functions/unidecode/x0fb.py
data = ( 'ff', # 0x00 'fi', # 0x01 'fl', # 0x02 'ffi', # 0x03 'ffl', # 0x04 'st', # 0x05 'st', # 0x06 '[?]', # 0x07 '[?]', # 0x08 '[?]', # 0x09 '[?]', # 0x0a '[?]', # 0x0b '[?]', # 0x0c '[?]', # 0x0d '[?]', # 0x0e '[?]', # 0x0f '[?]', # 0x10 '[?]', # 0x11 '[?]', ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0fc.py
sql/python_libraries_for_sql_functions/unidecode/x0fc.py
data = ( '', # 0x00 '', # 0x01 '', # 0x02 '', # 0x03 '', # 0x04 '', # 0x05 '', # 0x06 '', # 0x07 '', # 0x08 '', # 0x09 '', # 0x0a '', # 0x0b '', # 0x0c '', # 0x0d '', # 0x0e '', # 0x0f '', # 0x10 '', # 0x11 '', # 0x12 '', # 0x13 '', # 0x14 '', # 0x15 '',...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0bf.py
sql/python_libraries_for_sql_functions/unidecode/x0bf.py
data = ( 'bbess', # 0x00 'bbeng', # 0x01 'bbej', # 0x02 'bbec', # 0x03 'bbek', # 0x04 'bbet', # 0x05 'bbep', # 0x06 'bbeh', # 0x07 'bbyeo', # 0x08 'bbyeog', # 0x09 'bbyeogg', # 0x0a 'bbyeogs', # 0x0b 'bbyeon', # 0x0c 'bbyeonj', # 0x0d 'bbyeonh', # 0x0e 'bbyeod', # 0x0f 'b...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0c2.py
sql/python_libraries_for_sql_functions/unidecode/x0c2.py
data = ( 'syon', # 0x00 'syonj', # 0x01 'syonh', # 0x02 'syod', # 0x03 'syol', # 0x04 'syolg', # 0x05 'syolm', # 0x06 'syolb', # 0x07 'syols', # 0x08 'syolt', # 0x09 'syolp', # 0x0a 'syolh', # 0x0b 'syom', # 0x0c 'syob', # 0x0d 'syobs', # 0x0e 'syos', # 0x0f 'syoss', #...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x0d6.py
sql/python_libraries_for_sql_functions/unidecode/x0d6.py
data = ( 'hyeo', # 0x00 'hyeog', # 0x01 'hyeogg', # 0x02 'hyeogs', # 0x03 'hyeon', # 0x04 'hyeonj', # 0x05 'hyeonh', # 0x06 'hyeod', # 0x07 'hyeol', # 0x08 'hyeolg', # 0x09 'hyeolm', # 0x0a 'hyeolb', # 0x0b 'hyeols', # 0x0c 'hyeolt', # 0x0d 'hyeolp', # 0x0e 'hyeolh', # 0x...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x084.py
sql/python_libraries_for_sql_functions/unidecode/x084.py
data = ( 'Hu ', # 0x00 'Qi ', # 0x01 'He ', # 0x02 'Cui ', # 0x03 'Tao ', # 0x04 'Chun ', # 0x05 'Bei ', # 0x06 'Chang ', # 0x07 'Huan ', # 0x08 'Fei ', # 0x09 'Lai ', # 0x0a 'Qi ', # 0x0b 'Meng ', # 0x0c 'Ping ', # 0x0d 'Wei ', # 0x0e 'Dan ', # 0x0f 'Sha ', # 0x10 'Hu...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/unidecode/x063.py
sql/python_libraries_for_sql_functions/unidecode/x063.py
data = ( 'Bo ', # 0x00 'Chi ', # 0x01 'Gua ', # 0x02 'Zhi ', # 0x03 'Kuo ', # 0x04 'Duo ', # 0x05 'Duo ', # 0x06 'Zhi ', # 0x07 'Qie ', # 0x08 'An ', # 0x09 'Nong ', # 0x0a 'Zhen ', # 0x0b 'Ge ', # 0x0c 'Jiao ', # 0x0d 'Ku ', # 0x0e 'Dong ', # 0x0f 'Ru ', # 0x10 'Tiao ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/cyrtranslit/mapping.py
sql/python_libraries_for_sql_functions/cyrtranslit/mapping.py
# -*- coding: utf-8 -*- import copy # Build the dictionaries to transliterate Serbian cyrillic to latin and vice versa. # This dictionary is to transliterate from cyrillic to latin. SR_CYR_TO_LAT_DICT = { u'А': u'A', u'а': u'a', u'Б': u'B', u'б': u'b', u'В': u'V', u'в': u'v', u'Г': u'G', u'г': u'g', ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/cyrtranslit/__init__.py
sql/python_libraries_for_sql_functions/cyrtranslit/__init__.py
# -*- coding: utf-8 -*- from .mapping import TRANSLIT_DICT import sys def __encode_utf8(_string): if sys.version_info < (3, 0): return _string.encode('utf-8') else: return _string def __decode_utf8(_string): if sys.version_info < (3, 0): return _string.decode('utf-8') else: ...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/util.py
sql/python_libraries_for_sql_functions/nameparser/util.py
import logging # http://code.google.com/p/python-nameparser/issues/detail?id=10 log = logging.getLogger('HumanName') try: log.addHandler(logging.NullHandler()) except AttributeError: class NullHandler(logging.Handler): def emit(self, record): pass log.addHandler(NullHandler()) log.setLe...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/parser.py
sql/python_libraries_for_sql_functions/nameparser/parser.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys from operator import itemgetter from itertools import groupby from nameparser.util import u from nameparser.util import text_types, binary_type from nameparser.util import lc from nameparser.util import log from nameparser.config import CONSTA...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/__init__.py
sql/python_libraries_for_sql_functions/nameparser/__init__.py
VERSION = (1, 0, 6) __version__ = '.'.join(map(str, VERSION)) __author__ = "Derek Gulbranson" __author_email__ = 'derek73@gmail.com' __license__ = "LGPL" __url__ = "https://github.com/derek73/python-nameparser" from nameparser.parser import HumanName
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/conjunctions.py
sql/python_libraries_for_sql_functions/nameparser/config/conjunctions.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals CONJUNCTIONS = set([ '&', 'and', 'et', 'e', 'of', 'the', 'und', 'y', ]) """ Pieces that should join to their neighboring pieces, e.g. "and", "y" and "&". "of" and "the" are also include to facilitate joining multiple titles...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/capitalization.py
sql/python_libraries_for_sql_functions/nameparser/config/capitalization.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals CAPITALIZATION_EXCEPTIONS = ( ('ii', 'II'), ('iii', 'III'), ('iv', 'IV'), ('md', 'M.D.'), ('phd', 'Ph.D.'), ) """ Any pieces that are not capitalized by capitalizing the first letter. """
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/suffixes.py
sql/python_libraries_for_sql_functions/nameparser/config/suffixes.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals SUFFIX_NOT_ACRONYMS = set([ 'dr', 'esq', 'esquire', 'jr', 'jnr', 'junior', 'sr', 'snr', '2', 'i', 'ii', 'iii', 'iv', 'v', ]) """ Post-nominal pieces that are not acronyms. The parser does not remove...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/titles.py
sql/python_libraries_for_sql_functions/nameparser/config/titles.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals # HAP removed titles FIRST_NAME_TITLES = set([ ]) """ When these titles appear with a single other name, that name is a first name, e.g. "Sir John", "Sister Mary", "Queen Elizabeth". """ #: **Cannot include things that could also be first names**, e.g. "...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/__init__.py
sql/python_libraries_for_sql_functions/nameparser/config/__init__.py
# -*- coding: utf-8 -*- """ The :py:mod:`nameparser.config` module manages the configuration of the nameparser. A module-level instance of :py:class:`~nameparser.config.Constants` is created and used by default for all HumanName instances. You can adjust the entire module's configuration by importing this instance an...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/regexes.py
sql/python_libraries_for_sql_functions/nameparser/config/regexes.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re # emoji regex from https://stackoverflow.com/questions/26568722/remove-unicode-emoji-using-re-in-python try: # Wide UCS-4 build re_emoji = re.compile('[' '\U0001F300-\U0001F64F' '\U0001F680-\U0001F6FF' '\u2600-\u2...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
ourresearch/openalex-guts
https://github.com/ourresearch/openalex-guts/blob/59706e52ceb84b12427334b046c47b7a6d95c862/sql/python_libraries_for_sql_functions/nameparser/config/prefixes.py
sql/python_libraries_for_sql_functions/nameparser/config/prefixes.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals #: Name pieces that appear before a last name. Prefixes join to the piece #: that follows them to make one new piece. They can be chained together, e.g #: "von der" and "de la". Because they only appear in middle or last names, #: they also signify that a...
python
MIT
59706e52ceb84b12427334b046c47b7a6d95c862
2026-01-05T07:10:54.483482Z
false
mtayseer/infoq-downloader
https://github.com/mtayseer/infoq-downloader/blob/dead91c45e3abea1756559a118d4d6df91a0a502/infoq_downloader.py
infoq_downloader.py
#!/usr/bin/env python from __future__ import division, print_function import os import sys import re import argparse import requests import cssselect import lxml.html import unicodedata if sys.version_info.major == 3: text_type = str else: text_type = unicode # Some settings download_directory = 'downloads' ...
python
MIT
dead91c45e3abea1756559a118d4d6df91a0a502
2026-01-05T07:10:58.648159Z
false
relentless-warrior/LTEInspector
https://github.com/relentless-warrior/LTEInspector/blob/033184ce35f2dee31ed1103c1289a57d48579b2a/model/MC/trace2dot.py
model/MC/trace2dot.py
#!/usr/bin/env python """ simple script to visualize the trace output of smv / NuSMV via Graphviz's dot-format. first, the trace is parsed and then coded as dot-graph with states as nodes and input (transitions) as arcs between them. even if the counterexample's loop start- and end-state are the same, they are represe...
python
Apache-2.0
033184ce35f2dee31ed1103c1289a57d48579b2a
2026-01-05T07:11:01.675752Z
false
relentless-warrior/LTEInspector
https://github.com/relentless-warrior/LTEInspector/blob/033184ce35f2dee31ed1103c1289a57d48579b2a/model/MC/ir2smv.py
model/MC/ir2smv.py
#!/usr/bin/python3.5 import argparse import logging import sys import io import itertools as IT import xml.etree.ElementTree as ET PY2 = sys.version_info[0] == 2 StringIO = io.BytesIO if PY2 else io.StringIO # Get an instance of a logger logger = logging.getLogger(__name__) class Variable(object): def __init__(...
python
Apache-2.0
033184ce35f2dee31ed1103c1289a57d48579b2a
2026-01-05T07:11:01.675752Z
true
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/train.py
train.py
import argparse import os import random import shutil import time import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.multiprocessing as mp import torch.utils.data import torch.utils.data.distr...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/insert_bn.py
insert_bn.py
import argparse import os import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils.data.distributed from utils import accuracy, ProgressMeter, AverageMeter from repvgg import get_RepVGG_func_by_name, RepVGG...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/mobileone.py
mobileone.py
import torch.nn as nn import numpy as np import torch import copy # from torchvision.models import MobileNetV2 def conv_bn(in_channels, out_channels, kernel_size, stride, padding, groups=1): result = nn.Sequential() result.add_module('conv', nn.Conv2d(in_channels=in_channels, out_channels=out_channels, ...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/convert.py
convert.py
import argparse import os import torch import torch.nn.parallel import torch.optim import torch.utils.data import torch.utils.data.distributed from repvgg import get_RepVGG_func_by_name, repvgg_model_convert parser = argparse.ArgumentParser(description='RepVGG Conversion') parser.add_argument('load', metavar='LOAD', ...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/se_block.py
se_block.py
import torch import torch.nn as nn import torch.nn.functional as F # https://openaccess.thecvf.com/content_cvpr_2018/html/Hu_Squeeze-and-Excitation_Networks_CVPR_2018_paper.html class SEBlock(nn.Module): def __init__(self, input_channels, internal_neurons): super(SEBlock, self).__init__() self....
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/verify.py
verify.py
import torch import torch.nn as nn from repvgg import create_RepVGG_B1 if __name__ == '__main__': x = torch.randn(1, 3, 224, 224) model = create_RepVGG_B1(deploy=False) model.eval() for module in model.modules(): if isinstance(module, torch.nn.BatchNorm2d): nn.init.uniform_(module....
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/utils.py
utils.py
import torch import math import torchvision.datasets as datasets import os import torchvision.transforms as transforms import PIL class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self, name, fmt=':f'): self.name = name self.fmt = fmt self....
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/repvgg.py
repvgg.py
import torch.nn as nn import numpy as np import torch import copy from se_block import SEBlock def conv_bn(in_channels, out_channels, kernel_size, stride, padding, groups=1): result = nn.Sequential() result.add_module('conv', nn.Conv2d(in_channels=in_channels, out_channels=out_channels, ...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/test.py
test.py
import argparse import os import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils.data.distributed from utils import accuracy, ProgressMeter, AverageMeter from repvgg import get_RepVGG_func_by_name from ut...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/example_pspnet.py
example_pspnet.py
import torch from torch import nn import torch.nn.functional as F from repvgg import get_RepVGG_func_by_name # The PSPNet parts are from # https://github.com/hszhao/semseg class PPM(nn.Module): def __init__(self, in_dim, reduction_dim, bins, BatchNorm): super(PPM, self).__init__() self.feature...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/repvggplus.py
repvggplus.py
import torch.nn as nn import torch.utils.checkpoint as checkpoint from se_block import SEBlock import torch import numpy as np def conv_bn_relu(in_channels, out_channels, kernel_size, stride, padding, groups=1): result = nn.Sequential() result.add_module('conv', nn.Conv2d(in_channels=in_channels, out_channels=...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/quantization/quant_qat_train.py
quantization/quant_qat_train.py
import argparse import random import shutil import time import warnings import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import torch.multiprocessing as mp import torch.utils.data import torch.utils.data.distributed from utils import...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
shoutOutYangJie/MobileOne
https://github.com/shoutOutYangJie/MobileOne/blob/61f81a1e4b721bd0101156059b62de1e5e2e5cd8/quantization/repvgg_quantized.py
quantization/repvgg_quantized.py
import torch import torch.nn as nn from torch.quantization import QuantStub, DeQuantStub class RepVGGWholeQuant(nn.Module): def __init__(self, repvgg_model, quantlayers): super(RepVGGWholeQuant, self).__init__() assert quantlayers in ['all', 'exclud_first_and_linear', 'exclud_first_and_last'] ...
python
MIT
61f81a1e4b721bd0101156059b62de1e5e2e5cd8
2026-01-05T07:11:01.712283Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/manage.py
manage.py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings") try: from django.core.management import execute_from_command_line except ImportE...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/scripts/gdrive_llamaindex_example.py
scripts/gdrive_llamaindex_example.py
from llama_index.readers.google import GoogleDriveReader from core.settings import GDRIVE_SERVICE_ACCOUNT loader = GoogleDriveReader(credentials_path=GDRIVE_SERVICE_ACCOUNT) def load_data(folder_id: str): docs = loader.load_data(folder_id=folder_id) for doc in docs: doc.id_ = doc.metadata["file name...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/views.py
uac/views.py
# Create your views here.
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/permissions.py
uac/permissions.py
from datastore.models import Folder from rest_framework import permissions class HasFolderPermission(permissions.BasePermission): """ Permission to check if user has permission to view folder details """ def has_permission(self, request, view): folder_id = request.GET.get("document__folder") ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/admin.py
uac/admin.py
from django.contrib import admin from .models import FolderPermission, UACUser class UACUserAdmin(admin.ModelAdmin): list_display = ("username", "email", "date_joined", "last_login") search_fields = ("username", "email") list_filter = ("is_staff", "is_active") class FolderPermissionAdmin(admin.ModelAdm...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/models.py
uac/models.py
from core.base.models import BaseModel from datastore.models import Folder from django.contrib.auth.models import AbstractUser from django.db import models class UACUser(AbstractUser): """ Model for storing user details and inhertied from django base user model """ def __str__(self): return s...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/__init__.py
uac/__init__.py
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/tests.py
uac/tests.py
# Create your tests here.
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/apps.py
uac/apps.py
from django.apps import AppConfig class UacConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "uac"
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/migrations/0001_initial.py
uac/migrations/0001_initial.py
# Generated by Django 4.2.9 on 2024-02-21 15:00 import uuid import django.contrib.auth.models import django.contrib.auth.validators import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initi...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/uac/migrations/__init__.py
uac/migrations/__init__.py
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/views.py
rag/views.py
from core.settings import EMBEDDING_MODEL from datastore.models import DocumentChunk from django_filters.rest_framework import DjangoFilterBackend from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from llama_index.embeddings.huggingface import HuggingFaceEmbedding from pgvector.django import L...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/admin.py
rag/admin.py
from django.contrib import admin from .models import RequestLogs @admin.register(RequestLogs) class RequestLogsAdmin(admin.ModelAdmin): list_display = ["request", "response", "status_code", "created_at"]
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/models.py
rag/models.py
from django.db import models # Create your models here. class RequestLogs(models.Model): """ Model for storing request logs for debugging and tracking It can be used for caching the request and response. """ request = models.JSONField(default=dict) response = models.JSONField(default=dict) ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/serializers.py
rag/serializers.py
from datastore.models import DocumentChunk from rest_framework import serializers class DocumentChunkSerializer(serializers.ModelSerializer): distance = serializers.CharField(read_only=True) class Meta: model = DocumentChunk fields = ["id", "chunk", "distance", "document"] read_only_f...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/__init__.py
rag/__init__.py
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/tests.py
rag/tests.py
from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from uac.models import FolderPermission, UACUser class DocumentListViewTest(APITestCase): fixtures = ["datastore/tests/fixtures/datastore.json"] def setUp(self): from datastore.mod...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/apps.py
rag/apps.py
from django.apps import AppConfig class RagConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "rag"
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/urls.py
rag/urls.py
from django.urls import path from . import views app_name = "rag" urlpatterns = [ path("search_on_chunks/", views.DocumentListView.as_view(), name="search-on-chunks"), ]
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/migrations/0001_initial.py
rag/migrations/0001_initial.py
# Generated by Django 4.2.9 on 2024-02-21 15:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="RequestLogs", fields=[ ( "id"...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/rag/migrations/__init__.py
rag/migrations/__init__.py
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/tasks.py
datastore/tasks.py
from __future__ import absolute_import, unicode_literals import numpy as np from celery import shared_task from core.celery import app from core.settings import EMBEDDING_MODEL from django_celery_beat.models import PeriodicTask from llama_index.embeddings.huggingface import HuggingFaceEmbedding @shared_task def sync...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/views.py
datastore/views.py
# Create your views here.
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/admin.py
datastore/admin.py
from django.contrib import admin from datastore.models import Config, Document, DocumentChunk, Folder from datastore.tasks import sync_folder class ConfigAdmin(admin.ModelAdmin): list_display = ("email", "created_at", "updated_at") search_fields = ("email",) list_filter = ("created_at", "updated_at") c...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/__init__.py
datastore/__init__.py
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/apps.py
datastore/apps.py
from django.apps import AppConfig class DatastoreConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "datastore"
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/factories.py
datastore/factories.py
from core.base.factory import BaseModelFactory from core.settings import GDRIVE_SERVICE_ACCOUNT, GDRIVE_TEST_FOLDER_ID from datastore.models import Config, Folder class ConfigFactory(BaseModelFactory): class Meta: model = Config credentials = GDRIVE_SERVICE_ACCOUNT email = "test@test.com" clas...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/__init__.py
datastore/services/__init__.py
from .syncer import SyncerFactory
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/reader/__init__.py
datastore/services/reader/__init__.py
from .google_drive import *
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/reader/google_drive/reader.py
datastore/services/reader/google_drive/reader.py
__all__ = ["DjangoGoogleDriveReader"] import logging from typing import List from llama_index.core.schema import Document from llama_index.readers.google import GoogleDriveReader logger = logging.getLogger(__name__) class DjangoGoogleDriveReader(GoogleDriveReader): def load_file_meta_data( self, ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/reader/google_drive/__init__.py
datastore/services/reader/google_drive/__init__.py
from .reader import *
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/factory.py
datastore/services/syncer/factory.py
__all__ = ["SyncerFactory"] from datastore.services.syncer.folder.syncer import FolderSyncer class SyncerFactory(object): FOLDER = "folder" syncers = {FOLDER: FolderSyncer} @classmethod def get_syncer(cls, syncer_type): return cls.syncers[syncer_type]
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/__init__.py
datastore/services/syncer/__init__.py
from .factory import SyncerFactory
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/base.py
datastore/services/syncer/base.py
__all__ = ["BaseSyncer", "BaseLoader", "BaseBuilder"] import abc class BaseSyncer(abc.ABC): @abc.abstractmethod def sync(self, data): pass class BaseLoader(abc.ABC): docs = None @abc.abstractmethod def load_data(self): pass class BaseBuilder(abc.ABC): @abc.abstractmethod ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/folder/loader.py
datastore/services/syncer/folder/loader.py
from datastore.services.syncer.base import BaseLoader class FreshDocumentsMetaDataLoader(BaseLoader): def __init__(self, folder): self.folder = folder self.reader = self.folder.config.google_drive_reader() def load_data(self): self.docs = self.reader.load_file_meta_data(folder_id=self...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/folder/__init__.py
datastore/services/syncer/folder/__init__.py
from .syncer import FolderSyncer
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/folder/builder.py
datastore/services/syncer/folder/builder.py
from datetime import datetime, timezone from datastore.services.syncer.base import BaseBuilder class FolderDocumentBuilder(BaseBuilder): MODIFIED_AT_FIELD = "modified at" CREATED_AT_FIELD = "created at" DOC_ID_FIELD = "file id" def __init__(self, fresh_doc, related_docs, folder): self.fresh_...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/services/syncer/folder/syncer.py
datastore/services/syncer/folder/syncer.py
__all__ = ["FolderSyncer"] from datastore.services.syncer.folder.builder import FolderDocumentBuilder from datastore.services.syncer.folder.loader import ( FreshDocumentsMetaDataLoader, RelatedDocumentsObjectLoader, ) class FolderSyncer(object): DOC_ID_FIELD = "file id" def __init__(self, folder): ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/tests/__init__.py
datastore/tests/__init__.py
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/tests/tests.py
datastore/tests/tests.py
from datetime import datetime, timezone from core.settings import GDRIVE_SERVICE_ACCOUNT, GDRIVE_TEST_FOLDER_ID, IS_CIRCLE_CI from core.utils import enable_celery_tasks from django.test import TestCase from django_celery_beat.models import IntervalSchedule, PeriodicTask from datastore.factories import ConfigFactory, ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/models/document.py
datastore/models/document.py
from core.base.models import BaseData from core.settings import EMBEDDING_SIZE from django.db import models from llama_index.core import Document as LlamaDocument from llama_index.core.node_parser import SentenceSplitter from pgvector.django import VectorField from datastore.models.folder import Folder class Documen...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/models/folder.py
datastore/models/folder.py
import json from core.base.models import BaseModel from django.db import models from django_celery_beat.models import IntervalSchedule, PeriodicTask from datastore.models import Config from datastore.services import SyncerFactory from datastore.tasks import sync_folder class Folder(BaseModel): """ Model for...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/models/config.py
datastore/models/config.py
from core.base.models import BaseModel from django.db import models class Config(BaseModel): """ Model for storing configuration of google drive """ credentials = models.JSONField(default=dict) token = models.JSONField(default=dict) email = models.CharField(max_length=1000) def __str__(s...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/models/__init__.py
datastore/models/__init__.py
from .config import Config from .document import Document, DocumentChunk from .folder import Folder
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/migrations/0006_document_chunk_overlap_document_chunk_size_and_more.py
datastore/migrations/0006_document_chunk_overlap_document_chunk_size_and_more.py
# Generated by Django 4.2.9 on 2024-02-29 15:04 from django.db import migrations, models import django.db.models.deletion import pgvector.django import uuid class Migration(migrations.Migration): dependencies = [ ("datastore", "0005_auto_20240229_0521"), ] operations = [ migrations.AddFi...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/migrations/0005_auto_20240229_0521.py
datastore/migrations/0005_auto_20240229_0521.py
# Generated by Django 4.2.9 on 2024-02-29 05:21 from django.db import migrations from pgvector.django import VectorExtension class Migration(migrations.Migration): dependencies = [ ("datastore", "0004_alter_document_source_created_at_and_more"), ] operations = [VectorExtension()]
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/migrations/0001_initial.py
datastore/migrations/0001_initial.py
# Generated by Django 4.2.9 on 2024-02-21 15:00 import uuid import django.db.models.deletion from django.db import migrations, models from pgvector.django import VectorExtension class Migration(migrations.Migration): initial = True dependencies = [] operations = [ VectorExtension(), mi...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false
ammirsm/llamaindex-omakase-rag
https://github.com/ammirsm/llamaindex-omakase-rag/blob/10a34b5d92660ceb5f5b544113588780176e5ca9/datastore/migrations/0002_folder_cron_config_folder_last_sync_and_more.py
datastore/migrations/0002_folder_cron_config_folder_last_sync_and_more.py
# Generated by Django 4.2.9 on 2024-02-25 22:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("datastore", "0001_initial"), ] operations = [ migrations.AddField( model_name="folder", ...
python
MIT
10a34b5d92660ceb5f5b544113588780176e5ca9
2026-01-05T07:11:02.387256Z
false