<jupyter_start><jupyter_text>Some VO JMMC webservices ... Load common modules<jupyter_code>import pyvo<jupyter_output><empty_output><jupyter_text>VOTABLES (TODO)  TAP- https://www.ivoa.net/documents/TAP/  OiDB  Get OiDB's TAP service<jupyter_code>oidbTapUrl="http://oidb.jmmc.fr/tap"
oidb = pyvo.dal.TAPService(oidbTapUrl)<jupyter_output><empty_output><jupyter_text>Query number of records per calib_levels<jupyter_code>query="SELECT calib_level, COUNT(*) FROM oidb GROUP BY calib_level"
oidb.search(query).to_table()
#### Query number of OIFits per instruments
query="SELECT instrument_name, COUNT(*) FROM oidb WHERE calib_level > 0 GROUP BY instrument_name ORDER BY instrument_name"
oidb.search(query).to_table()<jupyter_output><empty_output><jupyter_text>Query number of collections per instruments<jupyter_code>query="SELECT instrument_name, COUNT(DISTINCT(obs_collection)) FROM oidb WHERE calib_level > 0 GROUP BY instrument_name ORDER BY instrument_name"
oidb.search(query).to_table()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10686274509803921, 'fraction_numerical': 0.00196078431372549, 'mean_word_length': 8.912621359223301, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '651940', 'license': 'Unlicense', 'n_tokens_mistral': 381, 'n_tokens_neox': 360, 'n_words': 71, 'path': 'vo-services.ipynb', 'repo_name': 'JMMC-OpenDev/jmmc-python-snippets', 'size': '1020'}