repo_id
stringclasses
400 values
commit_sha
stringclasses
400 values
commit_index
int32
0
951
in_repo_split
stringclasses
1 value
cross_repo_split
stringclasses
1 value
test_file
stringlengths
7
121
test_function
stringlengths
1
108
assertion_type
stringclasses
32 values
difficulty
stringclasses
8 values
context_lines
int32
3
600
prefix
large_stringlengths
44
113k
target
large_stringlengths
1
498
anchor_sha
stringclasses
400 values
anchor_index
int32
0
951
qna_source
stringclasses
1 value
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preferences.py
test_preferences_testmail
assert
numeric_literal
19
from datetime import datetime from bs4 import BeautifulSoup def test_preferences_testmail(app_with_user, admin_client): # workaround since MAIL_SUPPRESS_SEND doesn't work as expected app_with_user.test_mail.state.suppress = True # record outbox with app_with_user.test_mail.record_messages() as outbox: ...
1
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preferences.py
test_update_preferences
assert
string_literal
22
from datetime import datetime from bs4 import BeautifulSoup def test_update_preferences(app_with_user, admin_client): new_name = "Test Wiki 4711" new_description = "another Test Wiki 4711" assert app_with_user.config['SITE_NAME'] != new_name assert app_with_user.config['SITE_DESCRIPTION'] != new_descri...
""
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preferences.py
test_admin_form
assert
numeric_literal
7
from datetime import datetime from bs4 import BeautifulSoup def test_admin_form(admin_client): rv = admin_client.get("/-/admin") assert rv.status_code ==
200
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preferences.py
test_preferences_403
assert
numeric_literal
9
from datetime import datetime from bs4 import BeautifulSoup def test_preferences_403(app_with_user, other_client): rv = other_client.get( "/-/admin/sidebar_preferences", follow_redirects=True ) assert rv.status_code ==
403
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preview.py
test_preview_italic_bug
assert
variable
63
import bs4 import re from otterwiki.renderer import render markdown_example = """# Header Bla Bla. ```bash WORLD="World" echo "Hello $WORLD" ``` - a - b - c 1. one 2. two 3. three | column1 | column2 | |---------|---------| | row11 | row21 | | row12 | row22 | | row13 | row23 | Inline math: `$a^2+b^2=...
text
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preview.py
test_preview_all
assert
variable
90
import bs4 import re from otterwiki.renderer import render markdown_example = """# Header Bla Bla. ```bash WORLD="World" echo "Hello $WORLD" ``` - a - b - c 1. one 2. two 3. three | column1 | column2 | |---------|---------| | row11 | row21 | | row12 | row22 | | row13 | row23 | Inline math: `$a^2+b^2=...
preview_html
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preview.py
test_preview_all
assert
func_call
66
import bs4 import re from otterwiki.renderer import render markdown_example = """# Header Bla Bla. ```bash WORLD="World" echo "Hello $WORLD" ``` - a - b - c 1. one 2. two 3. three | column1 | column2 | |---------|---------| | row11 | row21 | | row12 | row22 | | row13 | row23 | Inline math: `$a^2+b^2=...
str(preview_soup)
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_preview.py
test_preview
assert
complex_expr
56
import bs4 import re from otterwiki.renderer import render markdown_example = """# Header Bla Bla. ```bash WORLD="World" echo "Hello $WORLD" ``` - a - b - c 1. one 2. two 3. three | column1 | column2 | |---------|---------| | row11 | row21 | | row12 | row22 | | row13 | row23 | Inline math: `$a^2+b^2=...
data['preview_content']
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_remote.py
test_git_info_refs_404
assert
numeric_literal
15
import pytest from base64 import b64encode def create_app_with_git(create_app): create_app.config["GIT_WEB_SERVER"] = True yield create_app create_app.config["GIT_WEB_SERVER"] = False def test_git_info_refs_404(create_app, test_client): rv = test_client.get( "/.git/info/refs?service=git-upload...
404
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_remote.py
test_git_info_refs
assert
numeric_literal
17
import pytest from base64 import b64encode def create_app_with_git(create_app): create_app.config["GIT_WEB_SERVER"] = True yield create_app create_app.config["GIT_WEB_SERVER"] = False def test_git_info_refs(create_app_with_git, test_client_with_git): create_app_with_git.config["READ_ACCESS"] = "ANONYM...
200
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_remote.py
test_git_info_refs
assert
numeric_literal
28
import pytest from base64 import b64encode def create_app_with_git(create_app): create_app.config["GIT_WEB_SERVER"] = True yield create_app create_app.config["GIT_WEB_SERVER"] = False def test_git_info_refs(create_app_with_git, test_client_with_git): create_app_with_git.config["READ_ACCESS"] = "ANONYM...
400
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_remote.py
test_git_info_refs_permissions
assert
numeric_literal
34
import pytest from base64 import b64encode def create_app_with_git(create_app): create_app.config["GIT_WEB_SERVER"] = True yield create_app create_app.config["GIT_WEB_SERVER"] = False def test_git_info_refs_permissions(create_app_with_git, test_client_with_git): create_app_with_git.config["READ_ACCESS...
401
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_remote.py
test_git_pack
assert
numeric_literal
22
import pytest from base64 import b64encode def create_app_with_git(create_app): create_app.config["GIT_WEB_SERVER"] = True yield create_app create_app.config["GIT_WEB_SERVER"] = False def test_git_pack(create_app_with_git, test_client_with_git): create_app_with_git.config["READ_ACCESS"] = "ANONYMOUS" ...
500
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_renderer.py
test_nested_list
assert
numeric_literal
22
import pytest from bs4 import BeautifulSoup from otterwiki.renderer import ( render, clean_html, OtterwikiRenderer, pygments_render, ) def test_nested_list(): md = """# Nested lists 1. A - B - C 2. D """ html, _, _ = render.markdown(md) ol = BeautifulSoup(html, "html.parser").find('...
4
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_renderer.py
test_nested_list
assert
numeric_literal
26
import pytest from bs4 import BeautifulSoup from otterwiki.renderer import ( render, clean_html, OtterwikiRenderer, pygments_render, ) def test_nested_list(): md = """# Nested lists 1. A - B - C 2. D """ html, _, _ = render.markdown(md) ol = BeautifulSoup(html, "html.parser").find('...
2
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_renderer.py
test_basic_markdown
assert
variable
13
import pytest from bs4 import BeautifulSoup from otterwiki.renderer import ( render, clean_html, OtterwikiRenderer, pygments_render, ) def test_basic_markdown(): html, toc, _ = render.markdown("**bold** _italic_") assert "<strong>bold</strong>" in
html
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_renderer.py
test_code
assert
none_literal
20
import pytest from bs4 import BeautifulSoup from otterwiki.renderer import ( render, clean_html, OtterwikiRenderer, pygments_render, ) def test_code(): html, _, _ = render.markdown( """``` abc ```""" ) pre_code = BeautifulSoup(html, "html.parser").find( 'pre', {'class': 'cod...
None
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_settings.py
test_settings_update_name
assert
complex_expr
17
import pytest import os import re import otterwiki from pprint import pprint def test_settings_update_name(app_with_user, test_client): rv = test_client.post( "/-/login", data={ "email": "mail@example.org", "password": "password1234", }, follow_redirects=True...
rv.status_code
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_settings.py
test_settings_update_name
assert
func_call
22
import pytest import os import re import otterwiki from pprint import pprint def test_settings_update_name(app_with_user, test_client): rv = test_client.post( "/-/login", data={ "email": "mail@example.org", "password": "password1234", }, follow_redirects=True...
rv.data.decode()
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sidebar.py
get_sidebar_shortcuts
assert
numeric_literal
12
from bs4 import BeautifulSoup def get_sidebar_shortcuts(test_client): """ Helper function to get all links from the sidebar and the dropdown menu. """ rv = test_client.get("/") assert rv.status_code == 200 soup = BeautifulSoup(rv.data.decode(), "html.parser") sidebar_menu = soup.find_all("d...
1
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sidebar.py
test_sidebar_custom_menu
assert
collection
51
from bs4 import BeautifulSoup def get_sidebar_shortcuts(test_client): """ Helper function to get all links from the sidebar and the dropdown menu. """ rv = test_client.get("/") assert rv.status_code == 200 soup = BeautifulSoup(rv.data.decode(), "html.parser") sidebar_menu = soup.find_all("d...
[]
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sidebar.py
get_sidebar_shortcuts
assert
numeric_literal
9
from bs4 import BeautifulSoup def get_sidebar_shortcuts(test_client): """ Helper function to get all links from the sidebar and the dropdown menu. """ rv = test_client.get("/") assert rv.status_code ==
200
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sidebar.py
test_sidebar_custom_menu
assert
none_literal
53
from bs4 import BeautifulSoup def get_sidebar_shortcuts(test_client): """ Helper function to get all links from the sidebar and the dropdown menu. """ rv = test_client.get("/") assert rv.status_code == 200 soup = BeautifulSoup(rv.data.decode(), "html.parser") sidebar_menu = soup.find_all("d...
None
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sidebar.py
test_sidebar_custom_menu
assert
variable
66
from bs4 import BeautifulSoup def get_sidebar_shortcuts(test_client): """ Helper function to get all links from the sidebar and the dropdown menu. """ rv = test_client.get("/") assert rv.status_code == 200 soup = BeautifulSoup(rv.data.decode(), "html.parser") sidebar_menu = soup.find_all("d...
links
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sidebar.py
test_sidebar_shortcuts
assert
variable
35
from bs4 import BeautifulSoup def get_sidebar_shortcuts(test_client): """ Helper function to get all links from the sidebar and the dropdown menu. """ rv = test_client.get("/") assert rv.status_code == 200 soup = BeautifulSoup(rv.data.decode(), "html.parser") sidebar_menu = soup.find_all("d...
sidebar_shortcuts
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sitemap.py
test_sitemap
assert
numeric_literal
7
from xml.etree.ElementTree import fromstring def test_sitemap(admin_client): """Test sitemap generation and XML validity.""" response = admin_client.get("/sitemap.xml") assert response.status_code ==
200
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sitemap.py
test_sitemap
assert
string_literal
8
from xml.etree.ElementTree import fromstring def test_sitemap(admin_client): """Test sitemap generation and XML validity.""" response = admin_client.get("/sitemap.xml") assert response.status_code == 200 assert response.headers['Content-Type'] ==
'application/xml; charset=utf-8'
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_sitemap.py
test_sitemap
assert
string_literal
10
from xml.etree.ElementTree import fromstring def test_sitemap(admin_client): """Test sitemap generation and XML validity.""" response = admin_client.get("/sitemap.xml") assert response.status_code == 200 assert response.headers['Content-Type'] == 'application/xml; charset=utf-8' root = fromstring(r...
'{http://www.sitemaps.org/schemas/sitemap/0.9}urlset'
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_patchset2filedict
assert
numeric_literal
37
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
1
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_int_or_None
assert
numeric_literal
30
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
3
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_int_or_None
assert
numeric_literal
33
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
0
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_int_or_None
assert
numeric_literal
35
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
2
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_split_and_join_path
assert
variable
26
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
x
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_slugigy
assert
string_literal
25
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
""
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_random_password
assert
numeric_literal
27
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
16
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_int_or_None
assert
numeric_literal
25
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
10
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_sanitize_pagename
assert
string_literal
31
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
"😊"
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_empty
assert
bool_literal
25
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
True
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_slugigy
assert
string_literal
26
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
"abc"
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redimp/otterwiki
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
train
train
tests/test_util.py
test_slugigy
assert
string_literal
28
import os import pytest from otterwiki.util import ( sizeof_fmt, slugify, split_path, join_path, is_valid_email, empty, sanitize_pagename, get_pagepath, get_page_directoryname, random_password, mkdir, titleSs, patchset2filedict, get_header, strfdelta_round, ...
"a-b"
851b3a4c77d5d2db50d2a4e5a0c8cef966b3398d
145
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_in
assert
collection
148
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, in_str, "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_not_in
assert
collection
139
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, not_in_str, "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_text_search
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@bio:{test}", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_le
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@age:[-inf 38]", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_ge
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@age:[38 +inf]", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_lt
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@age:[-inf (40]", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_gt
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@age:[(38 +inf]", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_test_fuzzy
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@bio_fts:%newb%", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_limit_one
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@first_name:{Andrew}", "LIMIT", 0, 1]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_limit_offset
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@first_name:{Andrew}", "LIMIT", 1, 1]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_text_startswith
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "(@first_name:{An*})", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_text_endswith
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "(@first_name:{*ew})", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_eq
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "@first_name:{Andrew}", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_text_contains
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "(@first_name:{*drew*})", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_ne
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
["FT.SEARCH", model_name, "-(@first_name:{Andrew})", "LIMIT", 0, 1000]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_sort
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
[ "FT.SEARCH", model_name, "@age:[(0 +inf]", "LIMIT", 0, 1000, "SORTBY", "age", "asc", ]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_sort_desc
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
[ "FT.SEARCH", model_name, "@age:[(0 +inf]", "LIMIT", 0, 1000, "SORTBY", "age", "desc", ]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_find_query.py
test_find_query_text_search_and
assert
collection
136
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, FindQuery, HashModel, Json...
[ "FT.SEARCH", model_name, "(@age:[-inf (40]) (@first_name:{Andrew})", "LIMIT", 0, 1000, ]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_delete
assert
numeric_literal
110
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
1
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_expire
assert
numeric_literal
112
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
0
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_delete_many
assert
numeric_literal
120
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
2
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_case_sensitive
assert
collection
106
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
[]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_update_validation
assert
numeric_literal
112
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
34
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_child_class_expression_proxy
assert
numeric_literal
113
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
18
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_hash_model.py
test_none
assert
none_literal
109
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( Field, HashModel, Migrator, NotFoundError, QueryNotS...
None
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_delete
assert
numeric_literal
141
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
1
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_delete_many_implicit_pipeline
assert
numeric_literal
150
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
2
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_update_query
assert
numeric_literal
144
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
3
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_access_result_by_index_cached
assert
collection
138
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
[]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_update_validation
assert
numeric_literal
161
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
42
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_pagination
assert
numeric_literal
154
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
30
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_pagination
assert
numeric_literal
155
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
10
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_child_class_expression_proxy
assert
numeric_literal
149
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
18
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_json_model.py
test_child_class_expression_proxy
assert
numeric_literal
154
import abc import dataclasses import datetime import decimal import uuid from collections import namedtuple from enum import Enum from typing import Dict, List, Optional, Set, Union from unittest import mock import pytest import pytest_asyncio from aredis_om import ( EmbeddedJsonModel, Field, JsonModel, ...
19
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_knn_expression.py
test_vector_field
assert
numeric_literal
58
import abc import struct from typing import Optional, Type import pytest_asyncio from aredis_om import Field, JsonModel, KNNExpression, Migrator, VectorFieldOptions from .conftest import py_test_mark_asyncio DIMENSIONS = 768 vector_field_options = VectorFieldOptions.flat( type=VectorFieldOptions.TYPE.FLOAT32, ...
1
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_knn_expression.py
test_vector_field
assert
none_literal
59
import abc import struct from typing import Optional, Type import pytest_asyncio from aredis_om import Field, JsonModel, KNNExpression, Migrator, VectorFieldOptions from .conftest import py_test_mark_asyncio DIMENSIONS = 768 vector_field_options = VectorFieldOptions.flat( type=VectorFieldOptions.TYPE.FLOAT32, ...
None
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_all_keys
assert
numeric_literal
78
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
3
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_saves_model_and_creates_pk
assert
variable
88
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
member
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_saves_many
assert
variable
97
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
member1
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_saves_many
assert
variable
98
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
member2
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_updates_a_model
assert
string_literal
80
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
"Smith"
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_validation_passes
assert
string_literal
83
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
"Andrew"
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_not_found
pytest.raises
variable
77
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
NotFoundError)
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_validates_required_fields
pytest.raises
variable
78
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
ValidationError)
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_raises_error_with_embedded_models
pytest.raises
variable
83
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
RedisModelError)
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_saves_many
assert
collection
93
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
[member1, member2]
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_oss_redis_features.py
test_all_keys
assert
func_call
79
import abc import datetime import decimal from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from aredis_om import HashModel, Migrator, NotFoundError, RedisModelError from tests._compat import ValidationError from .conftest import py_test_mark_asyncio today = datetime...
sorted([m.pk for m in members])
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_pydantic_integrations.py
test_validator_sets_value_on_init
assert
variable
44
import abc import datetime from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from pydantic import field_validator from aredis_om import Field, HashModel, Migrator from tests._compat import EmailStr, ValidationError today = datetime.date.today() async def m(key_prefix...
value
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_pydantic_integrations.py
test_email_str
pytest.raises
variable
33
import abc import datetime from collections import namedtuple from typing import Optional import pytest import pytest_asyncio from pydantic import field_validator from aredis_om import Field, HashModel, Migrator from tests._compat import EmailStr, ValidationError today = datetime.date.today() async def m(key_prefix...
ValidationError)
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
redis/redis-om-python
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
train
train
tests/test_redis_type.py
test_redis_type
assert
variable
10
from aredis_om import redis from aredis_om.util import ASYNC_MODE def test_redis_type(): import redis as sync_redis_module import redis.asyncio as async_redis_module mapping = {True: async_redis_module, False: sync_redis_module} assert mapping[ASYNC_MODE] is
redis
7ca997c9bfa9785ed4c2353c2ae6cac8490ba554
73
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_objectify
assert_*
numeric_literal
27
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
1)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_objectify
assert_*
numeric_literal
28
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
2)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_fill
assert_*
variable
57
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
count)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_strip
assert_*
variable
27
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
parsed)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_fill
assert_*
variable
32
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
current)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_fill
assert_*
variable
41
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
previous)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_afterish
assert_*
variable
30
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
ValueError)
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_is_bool
assert_*
func_call
26
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
ft.is_bool(1))
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_is_bool
assert_*
func_call
30
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
ft.is_bool(0))
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor
reubano/meza
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
train
train
tests/test_fntools.py
test_is_null
assert_*
func_call
29
from __future__ import ( absolute_import, division, print_function, unicode_literals) import nose.tools as nt import itertools as it import requests import responses from io import StringIO from operator import itemgetter from builtins import * from meza import fntools as ft, io, stats def setup_module(): "...
ft.is_null(0))
cb28f48785e0833f0a9f0d4f6c58ad3d3cf69643
27
v2_extractor_at_anchor