hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
131ebdee55bb427354a422cace3807e8ec4ae9ed
3,039
py
Python
src/production_ecommerce/account/models.py
sheriffbarrow/production-ecommerce
cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350
[ "MIT" ]
1
2020-08-18T16:23:03.000Z
2020-08-18T16:23:03.000Z
src/production_ecommerce/account/models.py
sheriffbarrow/production-ecommerce
cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350
[ "MIT" ]
8
2020-06-06T01:06:35.000Z
2021-09-08T01:35:58.000Z
src/production_ecommerce/account/models.py
sheriffbarrow/production-ecommerce
cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager class MyAccountManager(BaseUserManager): def create_user(self, email, username, password=None): if not email: raise ValueError('Users must have an email address') if not username: raise ValueError('Users m...
33.395604
103
0.763738
418
3,039
5.409091
0.272727
0.035825
0.055728
0.074303
0.749226
0.676692
0.676692
0.651039
0.651039
0.651039
0
0.008403
0.138532
3,039
90
104
33.766667
0.855233
0.166173
0
0.636364
0
0
0.063366
0
0
0
0
0
0
1
0.121212
false
0.060606
0.030303
0.090909
0.712121
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
13209dfae3637157d917f9f553a882a2aac83180
758
py
Python
dbtmetabase/models/config.py
fernandobrito/dbt-metabase
a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83
[ "MIT" ]
null
null
null
dbtmetabase/models/config.py
fernandobrito/dbt-metabase
a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83
[ "MIT" ]
1
2021-08-01T19:29:59.000Z
2021-08-01T19:29:59.000Z
dbtmetabase/models/config.py
fernandobrito/dbt-metabase
a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional, Iterable, Union @dataclass class MetabaseConfig: # Metabase Client database: str host: str user: str password: str # Metabase additional connection opts use_http: bool = False verify: Union[str, bool] = True # Me...
24.451613
59
0.700528
90
758
5.811111
0.5
0.063098
0.086042
0.154876
0.208413
0.14914
0
0
0
0
0
0
0.224274
758
30
60
25.266667
0.889456
0.124011
0
0.190476
0
0
0
0
0
0
0
0
0
1
0
true
0.047619
0.095238
0
0.904762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
1321da1b77c6741566badad243b4f02ccf184f31
2,510
py
Python
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
1
2019-07-22T03:43:49.000Z
2019-07-22T03:43:49.000Z
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
null
null
null
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
null
null
null
# # Copyright 2018, Arun Saha <arunksaha@gmail.com> # import matplotlib import matplotlib.pyplot as plt import matplotlib.dates as md import datetime as dt import sys import os # Open the file, read the string contents into a list, # and return the list. def GetLinesListFromFile(filename): with open(filename) as f: ...
28.202247
78
0.712749
335
2,510
5.304478
0.507463
0.054024
0.005065
0.006753
0.032639
0.032639
0.032639
0.028137
0.028137
0
0
0.031784
0.160159
2,510
88
79
28.522727
0.811195
0.359761
0
0
0
0
0.057631
0
0
0
0
0
0.020833
0
null
null
0
0.125
null
null
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1324d01927785e4ef25103f8dd91f9cf2502dddb
722
py
Python
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
null
null
null
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
1
2022-02-07T12:06:59.000Z
2022-02-07T12:06:59.000Z
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
1
2022-02-07T02:38:04.000Z
2022-02-07T02:38:04.000Z
from dotenv import load_dotenv load_dotenv() import sys import os import re import json import psycopg2 from meme_classifier.images import process_image path = sys.argv[1] data = json.load(open(os.path.join(path, 'result.json'), 'r')) chat_id = data['id'] conn = psycopg2.connect(os.getenv('POSTGRES_CREDENTIALS')) ...
26.740741
140
0.67036
108
722
4.361111
0.462963
0.076433
0.042463
0.059448
0.191083
0.11465
0
0
0
0
0
0.005076
0.18144
722
26
141
27.769231
0.791878
0
0
0
0
0.05
0.228532
0
0
0
0
0
0
1
0
false
0
0.35
0
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1325914730cb3ee047b3e9ac93790891768376c5
4,269
py
Python
nps/migrations/0013_auto_20180314_1805.py
jak0203/nps-dash
9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f
[ "MIT" ]
null
null
null
nps/migrations/0013_auto_20180314_1805.py
jak0203/nps-dash
9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f
[ "MIT" ]
1
2018-03-19T04:08:10.000Z
2018-03-19T04:08:10.000Z
nps/migrations/0013_auto_20180314_1805.py
jak0203/nps-dash
9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-15 01:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nps', '0012_auto_20180314_1600'), ] operations = [ migrations.CreateModel( name='ClientAggregations', fields=[ ...
36.177966
114
0.575076
352
4,269
6.724432
0.235795
0.060837
0.109844
0.126743
0.689058
0.651035
0.624842
0.624842
0.417406
0.34305
0
0.013955
0.311783
4,269
117
115
36.487179
0.791695
0.010541
0
0.738739
1
0
0.231644
0.054477
0
0
0
0
0
1
0
false
0
0.009009
0
0.036036
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1325fa5a7b424ce8ba5d22a0e7ac2e6be5ce3b49
9,890
py
Python
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
1
2020-11-01T00:04:04.000Z
2020-11-01T00:04:04.000Z
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
null
null
null
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
1
2021-03-02T02:49:05.000Z
2021-03-02T02:49:05.000Z
#!/usr/bin/env python3 """ Build a table of Python / Pydantic to JSON Schema mappings. Done like this rather than as a raw rst table to make future edits easier. Please edit this file directly not .tmp_schema_mappings.rst """ table = [ [ 'bool', 'boolean', '', 'JSON Schema Core', ...
23.491686
120
0.458544
873
9,890
5.174112
0.258877
0.090768
0.092982
0.102944
0.43768
0.366394
0.330529
0.303299
0.288466
0.288466
0
0.010464
0.381598
9,890
420
121
23.547619
0.72809
0.022042
0
0.536765
0
0.014706
0.529077
0.004967
0.007353
0
0
0
0
1
0
false
0.009804
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13261dbcef738304d7319335d93a1caa3393465f
2,798
py
Python
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
1
2019-02-25T01:09:51.000Z
2019-02-25T01:09:51.000Z
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
import time import unittest from nose.plugins.attrib import attr from hubspot3.test import helper from hubspot3.broadcast import Broadcast, BroadcastClient class BroadcastClientTest(unittest.TestCase): """ Unit tests for the HubSpot Broadcast API Python client. This file contains some unittest tests for the ...
34.121951
78
0.651537
318
2,798
5.606918
0.396226
0.03926
0.050477
0.023556
0.063937
0.044868
0.044868
0
0
0
0
0.011063
0.256969
2,798
81
79
34.54321
0.846561
0.162974
0
0.055556
0
0
0.092401
0
0
0
0
0
0.148148
1
0.092593
false
0
0.092593
0
0.203704
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1326b5cc799b2031e2e9803af2d0899c97761474
5,166
py
Python
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
null
null
null
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
26
2021-12-01T07:46:53.000Z
2022-03-30T23:40:43.000Z
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
1
2021-11-30T17:51:34.000Z
2021-11-30T17:51:34.000Z
# -*- coding: utf-8 -*- """ Module to prepare test data for benchmarking geo operations. """ import enum import logging from pathlib import Path import pprint import shutil import sys import tempfile from typing import Optional import urllib.request import zipfile # Add path so the benchmark packages are found sys.pa...
34.44
196
0.587108
630
5,166
4.625397
0.288889
0.04324
0.0151
0.025738
0.184626
0.138298
0.107756
0.043926
0
0
0
0.016918
0.267712
5,166
149
197
34.671141
0.75337
0.202284
0
0.111111
0
0.011111
0.218943
0.031661
0
0
0
0
0
1
0.044444
false
0
0.122222
0
0.266667
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13275a03cfbb8b9a14ddc59598aea372c23ea6fb
6,461
py
Python
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
""" setup earthquake depth relocation directory """ import obspy import sh import numpy as np import click from os.path import join from glob import glob import copy def generate_new_cmtsolution_files(cmts_dir, generated_cmts_dir, depth_perturbation_list): cmt_names = glob(join(cmts_dir, "*")) for cmt_file i...
45.181818
207
0.625445
933
6,461
4.068596
0.165059
0.084826
0.107218
0.047418
0.571391
0.505269
0.463119
0.384089
0.318757
0.292413
0
0.006389
0.224733
6,461
142
208
45.5
0.751447
0.112676
0
0.126316
1
0
0.193514
0
0
0
0
0
0
1
0.042105
false
0
0.073684
0
0.115789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
132764a2c0f4e72e8781ad3a0b75e85eb885eb90
12,911
py
Python
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
1
2016-04-05T21:57:16.000Z
2016-04-05T21:57:16.000Z
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # # Copyright (c) 2015 Intel Corporation  # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #       http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.036058
191
0.629386
1,609
12,911
4.830329
0.196395
0.055584
0.019815
0.01544
0.265183
0.212429
0.16405
0.141662
0.09264
0.070767
0
0.014162
0.283557
12,911
415
192
31.110843
0.826054
0.293471
0
0.300926
0
0
0.05398
0
0
0
0
0.004819
0
1
0.134259
false
0.013889
0.023148
0.041667
0.421296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132884f1556370e07396101f0cb65bd3696963c4
6,530
py
Python
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math try: # from PDFPageDetailedAggregator: from pdfminer.pdfdocument import PDFDocument, PDFNoOutlines from pdfminer.pdfparser import PDFParser from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import PDFPageAggregator ...
36.077348
91
0.467994
568
6,530
5.306338
0.318662
0.021234
0.019907
0.013935
0.091573
0.091573
0.050431
0.050431
0.027206
0.027206
0
0.014963
0.44732
6,530
180
92
36.277778
0.820172
0.072435
0
0.168142
0
0
0.048513
0
0
0
0
0.005556
0
1
0.035398
false
0.00885
0.061947
0.00885
0.123894
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1328be197a55352f7669047e01b9ed9e941d72e5
1,131
py
Python
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
from pox.core import core import pox.openflow.libopenflow_01 as of from forwarding.l2_learning import * from tkinter import * from project.firewall import TestFW from project.ui import UI def setup(): top = Toplevel() # quit POX when window is killed top.protocol("WM_DELETE_WINDOW", core.quit) t...
23.5625
82
0.654288
162
1,131
4.462963
0.475309
0.041494
0.045643
0.058091
0
0
0
0
0
0
0
0.028058
0.212202
1,131
47
83
24.06383
0.783389
0.096375
0
0
0
0
0.06588
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1328cd1366c0161d1070168617ce0f27d9f43e15
246
py
Python
virtual/lib/python3.6/site-packages/mako/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
1
2019-04-24T21:53:37.000Z
2019-04-24T21:53:37.000Z
virtual/lib/python3.6/site-packages/mako/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
5
2021-03-19T00:19:04.000Z
2022-01-13T01:12:44.000Z
virtual/lib/python3.6/site-packages/mako/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
2
2019-11-30T10:33:16.000Z
2021-02-03T06:29:40.000Z
# mako/__init__.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php __version__ = '1.0.9'
27.333333
78
0.743902
40
246
4.375
0.8
0.114286
0
0
0
0
0
0
0
0
0
0.052381
0.146341
246
8
79
30.75
0.780952
0.857724
0
0
0
0
0.172414
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1328eb00ae7fa054c34be04f558ebc32d9e45ce4
10,911
py
Python
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
38.284211
93
0.563926
1,475
10,911
3.871864
0.154576
0.048328
0.029942
0.026966
0.421993
0.389074
0.345474
0.257748
0.22693
0.199265
0
0.026944
0.285675
10,911
284
94
38.419014
0.705799
0.089268
0
0.257919
0
0
0.263801
0.141689
0
0
0
0
0.004525
1
0.027149
false
0
0.040724
0
0.076923
0.122172
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1329bbbf79a71f88d6626330a68385f854fb0eef
479
py
Python
estimators/__init__.py
j-bac/id-concentration
372bacc846d3d5dd5f99178863fa214fb8d3b292
[ "MIT" ]
null
null
null
estimators/__init__.py
j-bac/id-concentration
372bacc846d3d5dd5f99178863fa214fb8d3b292
[ "MIT" ]
null
null
null
estimators/__init__.py
j-bac/id-concentration
372bacc846d3d5dd5f99178863fa214fb8d3b292
[ "MIT" ]
null
null
null
from ._FisherS import randsphere, preprocessing, SeparabilityAnalysis, point_inseparability_to_pointID from ._call_estimators import TwoNN, run_singleGMST,run_singleCorrDim,runDANCo, runDANCoStats, runDANColoop,runANOVAglobal,runANOVAlocal,radovanovic_estimators_matlab,Hidalgo from ._DANCo import dancoDimEst as danco_p...
59.875
174
0.868476
63
479
6.285714
0.507937
0.060606
0
0
0
0
0
0
0
0
0
0
0.091858
479
7
175
68.428571
0.910345
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
132a98c8a3d62474bea30c75b83e6ea4827d2ca4
265
py
Python
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
71
2019-12-04T03:58:33.000Z
2022-03-19T11:38:54.000Z
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
6
2020-01-03T09:56:45.000Z
2022-03-10T09:29:04.000Z
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
12
2019-11-23T03:37:39.000Z
2021-08-15T09:41:21.000Z
# 获取调课、改课通知例子 from zfnew import GetInfo, Login base_url = '学校教务系统的主页url' lgn = Login(base_url=base_url) lgn.login('账号', '密码') cookies = lgn.cookies # cookies获取方法 person = GetInfo(base_url=base_url, cookies=cookies) message = person.get_message() print(message)
20.384615
52
0.754717
38
265
5.105263
0.5
0.180412
0.123711
0.14433
0
0
0
0
0
0
0
0
0.120755
265
12
53
22.083333
0.832618
0.086792
0
0
0
0
0.066946
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132acdacf1ba08411631ef7d5debcacf7e313231
1,030
py
Python
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
import sys import random from faker import Faker def gera(nLinhas=100, nCampos=None): with open(f"{path}/file{nLinhas}-{nCampos}_python.txt", "w+", encoding="utf8") as file: if not nCampos: nCampos = random.randint(2, 10) camposFuncs = [ fake.name, fake.date, ...
23.953488
91
0.523301
116
1,030
4.508621
0.517241
0.068834
0.038241
0.080306
0
0
0
0
0
0
0
0.035608
0.345631
1,030
42
92
24.52381
0.740356
0
0
0
0
0
0.104854
0.039806
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132ade11b48d56eee57560835a5c3f4f30719ed6
1,639
py
Python
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
def sort(data, time): tt = False ft = True st = False is_find = True winers_name = set() index = 0 while is_find: index += 1 for key, values in data.items(): if time[0 - index] == int(values[1]) and ft and values[0] not in winers_name: first_id = k...
32.78
90
0.534472
241
1,639
3.510373
0.273859
0.07565
0.042553
0.046099
0.387707
0.364066
0.307329
0.191489
0.078014
0.078014
0
0.027372
0.3313
1,639
50
91
32.78
0.744526
0
0
0.111111
0
0
0.092073
0
0
0
0
0
0
1
0.022222
false
0
0
0
0.044444
0.088889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132ba0fc5dd29581ad43ebacaf74b8069bf64ef6
5,072
py
Python
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2021-08-10T12:08:31.000Z
2021-08-10T12:08:31.000Z
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-04-30T05:38:44.000Z
2020-04-30T05:38:44.000Z
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-06-15T01:50:59.000Z
2020-06-15T01:50:59.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2017 Nest Labs, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
29.317919
123
0.636632
649
5,072
4.731895
0.292758
0.049495
0.035819
0.041029
0.11169
0.100619
0.100619
0.074569
0.050798
0.029306
0
0.005316
0.258281
5,072
172
124
29.488372
0.811005
0.168967
0
0.054945
0
0
0.149287
0
0
0
0
0
0
0
null
null
0
0.087912
null
null
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
132bada4fd58d52bb6e1891b67b8d0c493944002
6,243
py
Python
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
import turtle as t import math class circTrigo: def __init__(self): self.raio = 0 self.grau = 0 self.seno = 0 self.cosseno = 0 self.tangente = 0 self.quadrante = 0 self.tema = '' t.bgcolor("black") t.pencolor("white") def seta(s...
30.014423
149
0.492712
775
6,243
3.963871
0.125161
0.125
0.078125
0.045573
0.665039
0.611979
0.586263
0.574544
0.538411
0.514648
0
0.043052
0.378664
6,243
207
150
30.15942
0.748904
0.049175
0
0.708791
0
0
0.015198
0
0
0
0
0
0
1
0.054945
false
0
0.010989
0
0.071429
0.082418
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
132bcf51e26ca1f03ed60b32fc0ad65159783864
107
py
Python
examples/catapi/feeder.py
IniZio/py-skygear
88479678f91e678fd931c28295189bfea2148c79
[ "Apache-2.0" ]
8
2016-06-24T03:26:45.000Z
2018-05-12T09:06:33.000Z
examples/catapi/feeder.py
IniZio/py-skygear
88479678f91e678fd931c28295189bfea2148c79
[ "Apache-2.0" ]
183
2016-03-23T08:03:28.000Z
2018-08-14T05:49:45.000Z
examples/catapi/feeder.py
IniZio/py-skygear
88479678f91e678fd931c28295189bfea2148c79
[ "Apache-2.0" ]
24
2016-03-21T02:39:39.000Z
2020-09-17T12:28:58.000Z
def pick_food(name): if name == "chima": return "chicken" else: return "dry food"
15.285714
25
0.53271
13
107
4.307692
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.345794
107
6
26
17.833333
0.8
0
0
0
0
0
0.188679
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
132c604ed66d104dc1d0fc33432f244eb013965a
7,620
py
Python
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
1
2021-01-21T17:54:20.000Z
2021-01-21T17:54:20.000Z
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
null
null
null
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from .modules import ( TransformerLayer, LearnedPosit...
38.1
121
0.600656
927
7,620
4.702265
0.206041
0.038541
0.026841
0.033035
0.283092
0.177564
0.14407
0.086717
0.051847
0.051847
0
0.013564
0.293701
7,620
199
122
38.291457
0.796358
0.065879
0
0.169811
0
0
0.043931
0
0
0
0
0
0.006289
1
0.056604
false
0
0.031447
0.012579
0.119497
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132d17111128f658179267c44013a769265d45f3
3,392
py
Python
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.085106
79
0.740861
502
3,392
4.844622
0.328685
0.034539
0.031661
0.01727
0.099918
0.058388
0.058388
0.032072
0
0
0
0.006541
0.188679
3,392
93
80
36.473118
0.87718
0.479068
0
0.114286
0
0
0.002381
0
0
0
0
0
0
1
0.085714
false
0
0.2
0
0.371429
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132da230699a189c6467f4c2e09699a5bd87f139
2,168
py
Python
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
from pyb import CAN CAN.initfilterbanks(14) can = CAN(1) print(can) can.init(CAN.LOOPBACK) print(can) print(can.any(0)) # Catch all filter can.setfilter(0, CAN.MASK16, 0, (0, 0, 0, 0)) can.send('abcd', 123) print(can.any(0)) print(can.recv(0)) can.send('abcd', -1) print(can.recv(0)) can.send('abcd', 0x7FF + 1) pr...
17.626016
45
0.600092
339
2,168
3.837758
0.224189
0.098386
0.10146
0.069946
0.472713
0.392775
0.357417
0.274404
0.233666
0.233666
0
0.107351
0.20941
2,168
122
46
17.770492
0.651692
0.042897
0
0.612903
0
0
0.121857
0
0
0
0.009671
0
0
1
0.043011
false
0.021505
0.010753
0
0.053763
0.397849
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
132f2f1fcc81be862b19147ccbf0e1ac78045127
8,995
py
Python
quarkchain/cluster/tests/test_miner.py
TahiG/pyquarkchain
30da626ef6b50bd07b230aac05a3cef7fd7f23cf
[ "MIT" ]
17
2018-12-25T03:41:25.000Z
2020-08-11T06:06:26.000Z
quarkchain/cluster/tests/test_miner.py
TahiG/pyquarkchain
30da626ef6b50bd07b230aac05a3cef7fd7f23cf
[ "MIT" ]
null
null
null
quarkchain/cluster/tests/test_miner.py
TahiG/pyquarkchain
30da626ef6b50bd07b230aac05a3cef7fd7f23cf
[ "MIT" ]
5
2018-12-25T07:55:56.000Z
2019-09-11T23:19:59.000Z
import asyncio import time import unittest from typing import Optional from quarkchain.cluster.miner import DoubleSHA256, Miner, MiningWork, validate_seal from quarkchain.config import ConsensusType from quarkchain.core import RootBlock, RootBlockHeader from quarkchain.p2p import ecies from quarkchain.utils import sha...
35
90
0.585103
1,053
8,995
4.831909
0.202279
0.050314
0.04717
0.053459
0.617728
0.551887
0.483294
0.40684
0.397602
0.379914
0
0.02285
0.318844
8,995
256
91
35.136719
0.806104
0.081267
0
0.450495
0
0
0.014192
0
0
0
0
0
0.118812
1
0.059406
false
0.004951
0.044554
0
0.153465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
133006e28697a9c060805e03e6080858eb027007
4,782
py
Python
analysis/networks/autoencoder/train_eval.py
nriesterer/iccm-neural-bound
e14b103ba2c81a197de5b0edf948c19d57f0d3ba
[ "MIT" ]
null
null
null
analysis/networks/autoencoder/train_eval.py
nriesterer/iccm-neural-bound
e14b103ba2c81a197de5b0edf948c19d57f0d3ba
[ "MIT" ]
null
null
null
analysis/networks/autoencoder/train_eval.py
nriesterer/iccm-neural-bound
e14b103ba2c81a197de5b0edf948c19d57f0d3ba
[ "MIT" ]
null
null
null
""" Evaluates the training performance of the autoencoder. """ import time import pandas as pd import numpy as np import torch import torch.optim as optim import torch.nn as nn import ccobra import onehot import autoencoder # General settings training_datafile = '../../data/Ragni-train.csv' test_datafile = '../....
32.310811
94
0.669385
623
4,782
4.908507
0.255217
0.026161
0.018313
0.01864
0.052322
0.052322
0.039895
0
0
0
0
0.005901
0.22041
4,782
147
95
32.530612
0.814378
0.121497
0
0
0
0
0.063682
0.01221
0
0
0
0
0
1
0.020619
false
0
0.092784
0
0.134021
0.041237
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13319b518cfc2b51d7dc1b3515004faa2aab4919
2,170
py
Python
Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py
Aver58/ColaFrameWork
04c6750305ad734b30eceb95b463695b8373845a
[ "MIT" ]
1
2020-12-30T00:33:31.000Z
2020-12-30T00:33:31.000Z
Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py
wtb521thl/ColaFrameWork
0a8cc589740e045ebde668a76c4a35366b38e62e
[ "MIT" ]
null
null
null
Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py
wtb521thl/ColaFrameWork
0a8cc589740e045ebde668a76c4a35366b38e62e
[ "MIT" ]
1
2020-07-27T12:28:56.000Z
2020-07-27T12:28:56.000Z
#-*- coding: UTF-8 -*- """ Tencent is pleased to support the open source community by making GAutomator available. Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a...
35
305
0.723502
283
2,170
5.402827
0.519435
0.064094
0.071942
0.031393
0
0
0
0
0
0
0
0.013304
0.168664
2,170
61
306
35.57377
0.834257
0.323963
0
0.114286
0
0
0.189209
0.03813
0
0
0
0
0
1
0.085714
false
0
0.142857
0
0.342857
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1334b7e4ac98033a8f1ce868857f5028fcae2b7d
2,261
py
Python
IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() class TestSynchronizedTemplates3D(Testing.vtkTest): def testAll(self): reader = vtk.vtkImageReader() reader.SetDataByteOrderToLittleEndian() reader.SetDataExte...
35.888889
81
0.707651
244
2,261
6.508197
0.504098
0.047859
0.060453
0.108312
0.172544
0.172544
0.172544
0.172544
0.172544
0.172544
0
0.059517
0.175144
2,261
62
82
36.467742
0.791957
0.127377
0
0.086957
0
0
0.016842
0
0
0
0.003158
0
0
1
0.021739
false
0
0.065217
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1335259eff2620253efdbb6cb8199b32e7ccadf8
14,913
py
Python
deserialize/__init__.py
iAndriy/deserialize
3552517873d68d3bb953b44dd9512f0e0d045191
[ "MIT" ]
null
null
null
deserialize/__init__.py
iAndriy/deserialize
3552517873d68d3bb953b44dd9512f0e0d045191
[ "MIT" ]
null
null
null
deserialize/__init__.py
iAndriy/deserialize
3552517873d68d3bb953b44dd9512f0e0d045191
[ "MIT" ]
null
null
null
"""A module for deserializing data to Python objects.""" # pylint: disable=unidiomatic-typecheck # pylint: disable=protected-access # pylint: disable=too-many-branches # pylint: disable=wildcard-import import enum import functools import typing from typing import Any, Callable, Dict, List, Optional, Union from deser...
35.507143
148
0.644002
1,751
14,913
5.242147
0.173615
0.080837
0.03508
0.01961
0.266805
0.198279
0.136507
0.129971
0.124414
0.124414
0
0.000848
0.288004
14,913
419
149
35.591885
0.863628
0.189901
0
0.250896
0
0
0.115997
0.018425
0
0
0
0
0
1
0.021505
false
0.003584
0.053763
0
0.154122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1335675a9f3e2654ba5bacc0a704284147b3d912
2,518
py
Python
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
3
2020-10-07T18:28:12.000Z
2020-10-09T15:24:53.000Z
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
15
2020-10-09T15:23:03.000Z
2020-10-29T04:34:17.000Z
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
null
null
null
from ssf import SSF ssf = SSF(errors='raise') def test_get_set_days(): dn = ssf.get_day_names() assert isinstance(dn, tuple) assert dn == (('Mon', 'Monday'), ('Tue', 'Tuesday'), ('Wed', 'Wednesday'), ('Thu', 'Thursday'), ('Fri', 'Friday'), ('Sat',...
31.475
100
0.496029
349
2,518
3.501433
0.332378
0.10311
0.135025
0.10311
0.355155
0.319149
0.220949
0.209493
0.162029
0.085106
0
0.074849
0.278396
2,518
79
101
31.873418
0.597689
0.01946
0
0.246154
0
0
0.208283
0
0
0
0
0
0.4
1
0.046154
false
0.061538
0.015385
0
0.061538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13356a393bf8946042480c6de66561dc06a9116f
3,796
py
Python
script.py
devppratik/Youtube-Downloader
ccdf31b83fbce2d05711c64dbad729c935c72b8a
[ "MIT" ]
null
null
null
script.py
devppratik/Youtube-Downloader
ccdf31b83fbce2d05711c64dbad729c935c72b8a
[ "MIT" ]
null
null
null
script.py
devppratik/Youtube-Downloader
ccdf31b83fbce2d05711c64dbad729c935c72b8a
[ "MIT" ]
null
null
null
import os import pyfiglet from pytube import YouTube, Playlist file_size = 0 folder_name = "" # Progress Bar def print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='#', print_end="\r"): percent = ("{0:." + str(decimals) + "f}").format(100 * ...
33.008696
113
0.670443
461
3,796
5.318872
0.284165
0.078303
0.02447
0.023246
0.284666
0.21044
0.179445
0.153344
0.153344
0.111746
0
0.007005
0.210221
3,796
114
114
33.298246
0.810874
0.046628
0
0.195122
0
0
0.148358
0
0
0
0
0
0
1
0.097561
false
0
0.036585
0
0.170732
0.195122
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13372002afbafad592f6b286397c1829136d9e66
1,547
py
Python
test/python/test.py
alex952/cdr
e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16
[ "MIT" ]
null
null
null
test/python/test.py
alex952/cdr
e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16
[ "MIT" ]
null
null
null
test/python/test.py
alex952/cdr
e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16
[ "MIT" ]
null
null
null
# # Copyright 2014-2018 Neueda Ltd. # from cdr import Cdr import unittest field1 = 1 field2 = 2 field3 = 55 class TestCdr(unittest.TestCase): def get_a_cdr(self): d = Cdr() d.setInteger(field1, 123) d.setString(field2, "Hello") d.setString(field3, "World") return d ...
20.355263
59
0.541694
208
1,547
3.889423
0.317308
0.049444
0.049444
0.033375
0.257108
0.163164
0.103832
0
0
0
0
0.078008
0.312217
1,547
75
60
20.626667
0.682331
0.020039
0
0.288462
0
0
0.028439
0
0
0
0
0
0.134615
1
0.153846
false
0
0.038462
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1337486fb7ecdf7c5699a609f50b6301a5037cab
32,947
py
Python
vendor/mo_times/vendor/dateutil/tz.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_times/vendor/dateutil/tz.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_times/vendor/dateutil/tz.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard Python datetime module. """ import datetime import os import struct import sys import time from mo_future import PY3, string_types __license__ = "Simplified BSD" __all__ = ["tzutc", "tzoffset", "tzloca...
34.284079
89
0.521049
3,668
32,947
4.502726
0.147492
0.011504
0.009445
0.008234
0.291172
0.214822
0.182792
0.16596
0.126786
0.11177
0
0.012239
0.38996
32,947
960
90
34.319792
0.809493
0.175008
0
0.358187
0
0
0.040644
0
0
0
0
0
0
1
0.090643
false
0.013158
0.017544
0.038012
0.245614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1338002c0bb58e1ef6c0115a4fcc0293761a19a5
764
py
Python
example/first_example/window/inputWindow/view.py
suuperhu/Pyside2MVCFramework
c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6
[ "MIT" ]
1
2021-03-11T13:34:41.000Z
2021-03-11T13:34:41.000Z
example/first_example/window/inputWindow/view.py
suuperhu/Pyside2MVCFramework
c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6
[ "MIT" ]
null
null
null
example/first_example/window/inputWindow/view.py
suuperhu/Pyside2MVCFramework
c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ # @SoftwareIDE : PyCharm2020Pro # @ProjectName : PySide2MVCFramework # @FileName : view.py # @Author : 胡守杰 # @Email : 2839414139@qq.com # @ZhFileDescription : # @EnFileDescription : """ import os from pyside2mvcframework.core.v...
26.344828
84
0.649215
78
764
6.153846
0.679487
0.033333
0
0
0
0
0
0
0
0
0
0.030457
0.22644
764
28
85
27.285714
0.781726
0.352094
0
0
0
0
0.149897
0.082136
0
0
0
0
0
1
0
false
0
0.384615
0
0.538462
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
133a869b28cf9968a719e243a3266dfb25b637ba
18,998
py
Python
src/finn/custom_op/fpgadataflow/streamingfifo.py
AlexMontgomerie/finn
ec5f67b333ad4db4acf6191c3b5ab5e9067347aa
[ "BSD-3-Clause" ]
283
2019-09-26T10:09:34.000Z
2022-03-09T16:36:23.000Z
src/finn/custom_op/fpgadataflow/streamingfifo.py
AlexMontgomerie/finn
ec5f67b333ad4db4acf6191c3b5ab5e9067347aa
[ "BSD-3-Clause" ]
238
2019-10-04T12:20:26.000Z
2022-03-31T04:50:53.000Z
src/finn/custom_op/fpgadataflow/streamingfifo.py
AlexMontgomerie/finn
ec5f67b333ad4db4acf6191c3b5ab5e9067347aa
[ "BSD-3-Clause" ]
144
2019-09-23T13:46:14.000Z
2022-03-18T12:55:07.000Z
# Copyright (c) 2020, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the follow...
40.25
88
0.600326
2,408
18,998
4.509552
0.20515
0.035454
0.044203
0.023483
0.348098
0.298186
0.244037
0.24063
0.207846
0.19523
0
0.010515
0.294189
18,998
471
89
40.335456
0.799314
0.180282
0
0.263006
0
0
0.144556
0.018906
0
0
0
0
0.011561
1
0.089595
false
0.028902
0.031792
0.008671
0.193642
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
133a8d431ec24410c6b47b396ebee9494e39f0e3
3,403
py
Python
android_fonts.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
1
2022-01-13T01:47:45.000Z
2022-01-13T01:47:45.000Z
android_fonts.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
2
2022-01-13T03:54:39.000Z
2022-03-12T01:00:20.000Z
android_fonts.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
1
2022-03-25T20:01:56.000Z
2022-03-25T20:01:56.000Z
import ast import emoji import os import pandas as pd _SUPPORT_CACHE_CSV = emoji.datafile('emoji_support.csv') _API_LEVELS = { 1: ("(no codename)", "1.0"), 2: ("(no codename)", "1.1"), 3: ("Cupcake", "1.5 "), 4: ("Donut", "1.6 "), 5: ("Eclair", "2.0"), 6: ("Eclair", "2.0.1"), 7: ("Eclair", "2.1 "), 8:...
27.666667
82
0.590949
517
3,403
3.746615
0.324952
0.041301
0.023232
0.017553
0.075374
0.021683
0
0
0
0
0
0.055936
0.185718
3,403
122
83
27.893443
0.643089
0.063473
0
0.041667
0
0
0.269437
0.007869
0
0
0
0
0
1
0.072917
false
0
0.041667
0.010417
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
133cca4be64ff28929df70bc44eae2ffd26907ef
5,889
py
Python
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
3
2020-11-11T11:28:47.000Z
2022-03-16T11:27:39.000Z
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
null
null
null
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
1
2021-01-05T15:01:06.000Z
2021-01-05T15:01:06.000Z
import json from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from paste import constants from tests.mixins import SnippetListTestCaseMixin from tests.utils import constant, create_snippet, create_user class SnippetListTestCase(SnippetListTestCaseMixin, ...
37.993548
78
0.652742
725
5,889
5.158621
0.204138
0.076203
0.098396
0.064973
0.468984
0.371658
0.286096
0.263102
0.245455
0.234225
0
0.013559
0.248599
5,889
154
79
38.24026
0.831638
0.255561
0
0.22093
0
0
0.062805
0.005621
0
0
0
0
0.244186
1
0.209302
false
0
0.081395
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
133e3e1f16ff977c264f6c6b6c2854d7503259d9
1,082
py
Python
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
# python3 from itertools import permutations def max_dot_product_naive(first_sequence, second_sequence): assert len(first_sequence) == len(second_sequence) assert len(first_sequence) <= 10 ** 3 assert all(0 <= f <= 10 ** 5 for f in first_sequence) assert all(0 <= s <= 10 ** 5 for s in second_sequence...
30.914286
97
0.675601
158
1,082
4.386076
0.272152
0.18759
0.11544
0.132756
0.513709
0.455988
0.455988
0.455988
0.455988
0.455988
0
0.027875
0.204251
1,082
34
98
31.823529
0.777003
0.00647
0
0.347826
0
0
0.007456
0
0
0
0
0
0.391304
0
null
null
0
0.043478
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
133ed5289cb6b6aa42d9780aa225db43b59d7e06
154
py
Python
HelloWorldPython/IfStatements.py
SamIge7/Tutorials
7a3361768432a6493313d1f0ea1ccc8b2b916aa2
[ "MIT" ]
null
null
null
HelloWorldPython/IfStatements.py
SamIge7/Tutorials
7a3361768432a6493313d1f0ea1ccc8b2b916aa2
[ "MIT" ]
null
null
null
HelloWorldPython/IfStatements.py
SamIge7/Tutorials
7a3361768432a6493313d1f0ea1ccc8b2b916aa2
[ "MIT" ]
null
null
null
hasGoodCredit = True price = 1000000 deposit = 0 if hasGoodCredit: deposit = price/10 else: deposit = price/5 print(f"Deposit needed: £{deposit}")
19.25
36
0.707792
21
154
5.238095
0.666667
0.218182
0
0
0
0
0
0
0
0
0
0.087302
0.181818
154
8
36
19.25
0.777778
0
0
0
0
0
0.167742
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
133faca593d6fb1ce0fd475b5ad4b709b64db3a7
1,970
py
Python
main.py
vsundesha/documentation-hub-dependencies
3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01
[ "Apache-2.0" ]
null
null
null
main.py
vsundesha/documentation-hub-dependencies
3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01
[ "Apache-2.0" ]
null
null
null
main.py
vsundesha/documentation-hub-dependencies
3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01
[ "Apache-2.0" ]
null
null
null
import config as props import sys import getopt from GitHubDataFetcher import GitHubDataFetcher from DependencyFile import DependencyFile from ErrorFile import ErrorFile # Github Token TOKEN = props.token OWNER = "" REPOSITORY = "" OUTPUTFILE = "" def showHelp(): print('-r or --repo The name of t...
30.78125
117
0.579695
214
1,970
5.299065
0.38785
0.05291
0.02381
0.037037
0.045855
0
0
0
0
0
0
0.001485
0.316244
1,970
63
118
31.269841
0.840386
0.129949
0
0.083333
0
0.020833
0.152161
0
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
133fae22a7b7ebcd7d6ca9fc3157fb56fb5b1062
6,036
py
Python
inference_realesrgan.py
blabra/Real-ESRGAN
bd5c69d2ef30f27cc2a510443451a2dc841aec28
[ "BSD-3-Clause" ]
null
null
null
inference_realesrgan.py
blabra/Real-ESRGAN
bd5c69d2ef30f27cc2a510443451a2dc841aec28
[ "BSD-3-Clause" ]
null
null
null
inference_realesrgan.py
blabra/Real-ESRGAN
bd5c69d2ef30f27cc2a510443451a2dc841aec28
[ "BSD-3-Clause" ]
null
null
null
import argparse import cv2 import glob import os from basicsr.archs.rrdbnet_arch import RRDBNet import time from realesrgan import RealESRGANer from realesrgan.archs.srvgg_arch import SRVGGNetCompact def main(): """Inference demo for Real-ESRGAN. """ parser = argparse.ArgumentParser() parser.add_argu...
43.73913
117
0.647614
803
6,036
4.701121
0.280199
0.028609
0.05404
0.012715
0.301192
0.269404
0.259603
0.259603
0.259603
0.244768
0
0.025161
0.229622
6,036
137
118
44.058394
0.786667
0.050862
0
0.239316
0
0.017094
0.272139
0.084529
0
0
0
0
0
1
0.008547
false
0
0.076923
0
0.08547
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1340144aae426a1da982a7084f1832cdca8e0a63
515
py
Python
examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import os filenames_delete = [ 'CHG', 'CHGCAR', 'CONTCAR', 'DOSCAR', 'EIGENVAL', 'IBZKPT', 'job.err', 'job.out', 'OSZICAR', 'PCDAT', 'REPORT', 'vasp.log', 'vasprun.xml', 'WAVECAR', 'XDATCAR' ] for filename in filenames_delete: try: ...
17.166667
51
0.518447
50
515
5.3
0.78
0.113208
0.150943
0
0
0
0
0
0
0
0
0
0.330097
515
29
52
17.758621
0.768116
0
0
0
0
0
0.252427
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1340c125093f2e5f053bbf9519f4a5c3e3aa6a2e
1,195
py
Python
binary_trees/largest_values_in_tree_rows.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
binary_trees/largest_values_in_tree_rows.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
binary_trees/largest_values_in_tree_rows.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
''' Sean Chen's solution. See mine in largest_values_in_each_row.py ''' from collection import deque def largest_values_in_tree_rows(t): rv = [] if t is None: return rv current_depth = 0 current_max = t.value q = deque() # add the root node to the queue at a depth of 0 q.append...
24.895833
61
0.594979
172
1,195
3.994186
0.372093
0.14556
0.043668
0.040757
0
0
0
0
0
0
0
0.006158
0.320502
1,195
47
62
25.425532
0.839901
0.366527
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13422bb3478f929cfdd7d39790b4b35df0ba961e
7,034
py
Python
src/infer/_ExtractSimpleDeformTTA.py
RamsteinWR/PneumoniaRSNA1
08bdba51292307a78ef711c6be4a63faea240ddf
[ "MIT" ]
null
null
null
src/infer/_ExtractSimpleDeformTTA.py
RamsteinWR/PneumoniaRSNA1
08bdba51292307a78ef711c6be4a63faea240ddf
[ "MIT" ]
null
null
null
src/infer/_ExtractSimpleDeformTTA.py
RamsteinWR/PneumoniaRSNA1
08bdba51292307a78ef711c6be4a63faea240ddf
[ "MIT" ]
null
null
null
import json import os import re import numpy as np import pandas as pd from src.infer.ExtractDeformableTTA import MAPPINGS_PATH, test_image_set, METADATA_PATH, RCNN0_DETS_DIR WDIR = os.path.dirname(os.path.abspath(__file__)) def get_results(det_folder, test_set, suffix): filepath = os.path.join(det_folder, tes...
44.238994
115
0.598806
918
7,034
4.262527
0.19281
0.067467
0.064401
0.039356
0.277536
0.203424
0.187835
0.132635
0.064401
0.064401
0
0.031558
0.279215
7,034
158
116
44.518987
0.740237
0.018197
0
0.181102
0
0
0.067654
0.009727
0
0
0
0
0
1
0.03937
false
0
0.055118
0
0.133858
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1342626b945cae1f2c60f3de7811ba70848e89f4
1,896
py
Python
pool4.py
yfii/yfiiapi
2c0341b66108f99005dc5a40e3d1d30267f50bb5
[ "MIT" ]
4
2020-09-11T12:31:37.000Z
2020-12-14T04:42:05.000Z
pool4.py
yfii/yfiiapi
2c0341b66108f99005dc5a40e3d1d30267f50bb5
[ "MIT" ]
1
2020-10-07T11:03:07.000Z
2020-10-07T11:03:07.000Z
pool4.py
yfii/yfiiapi
2c0341b66108f99005dc5a40e3d1d30267f50bb5
[ "MIT" ]
9
2020-09-25T17:54:50.000Z
2021-06-05T05:36:14.000Z
from web3 import Web3, HTTPProvider import json w3url = "https://mainnet.infura.io/v3/998f64f3627548bbaf2630599c1eefca" w3 = Web3(HTTPProvider(w3url)) WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" YFII = "0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83" DAI = "0x6B175474E89094C44Da98b954EedeAC495271d0F" iUSDT = "0x...
29.169231
86
0.730485
200
1,896
6.815
0.395
0.062362
0.038151
0.061629
0.287601
0.19956
0.19956
0.098313
0.098313
0.098313
0
0.153514
0.144515
1,896
64
87
29.625
0.686806
0
0
0.045455
0
0
0.214135
0.14557
0
0
0.132911
0
0
1
0.090909
false
0
0.045455
0.022727
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13427c6b2da4367eae23b3d65430a2f826b58232
106,827
py
Python
obswebsocket/requests.py
PanBartosz/obs-websocket-py
e92960a475d3f1096a4ea41763cbc776b23f0a37
[ "MIT" ]
123
2017-06-19T05:34:58.000Z
2022-03-23T12:48:19.000Z
obswebsocket/requests.py
PanBartosz/obs-websocket-py
e92960a475d3f1096a4ea41763cbc776b23f0a37
[ "MIT" ]
67
2017-06-20T11:31:08.000Z
2022-03-25T20:30:41.000Z
obswebsocket/requests.py
PanBartosz/obs-websocket-py
e92960a475d3f1096a4ea41763cbc776b23f0a37
[ "MIT" ]
51
2017-10-09T19:03:12.000Z
2022-03-28T19:25:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # THIS FILE WAS GENERATED BY generate_classes.py - DO NOT EDIT # # (Generated on 2020-12-20 18:26:33.661372) # from .base_classes import Baserequests class GetVersion(Baserequests): """Returns the latest version of the plugin and the API. :Returns: *vers...
29.682412
417
0.601075
11,295
106,827
5.570075
0.092253
0.049592
0.034714
0.049592
0.521458
0.443733
0.362686
0.318419
0.260149
0.206631
0
0.003246
0.307797
106,827
3,598
418
29.690661
0.847564
0.508869
0
0.384283
1
0
0.141892
0.016215
0
0
0
0
0
1
0.240069
false
0
0.000864
0.134715
0.481002
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
134494ea81ba3a532d6b1f91e17ecbbfebb61032
157
py
Python
simple_history/tests/custom_user/admin.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
911
2015-01-05T13:21:17.000Z
2020-06-07T07:11:53.000Z
simple_history/tests/custom_user/admin.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
492
2015-01-01T18:20:20.000Z
2020-06-06T17:34:01.000Z
simple_history/tests/custom_user/admin.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
307
2015-02-01T00:45:51.000Z
2020-06-06T15:39:29.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import CustomUser admin.site.register(CustomUser, UserAdmin)
22.428571
47
0.834395
21
157
6.238095
0.52381
0.152672
0.259542
0
0
0
0
0
0
0
0
0
0.101911
157
6
48
26.166667
0.929078
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
1345874b0ae4768978973e82f88c986754ca58f9
7,109
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
1
2019-05-31T14:01:42.000Z
2019-05-31T14:01:42.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2018-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
39.494444
120
0.623435
1,145
7,109
3.684716
0.175546
0.064707
0.11946
0.112586
0.310974
0.252192
0.226594
0.212373
0.1799
0.1799
0
0.032146
0.229849
7,109
179
121
39.715084
0.738447
0.089886
0
0.111111
0
0
0.01687
0
0
0
0
0
0
1
0.055556
false
0.027778
0.027778
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134646519d68e17184a83f90eaeb23182da3950c
8,849
py
Python
pytests/Atomicity/basic_ops.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
pytests/Atomicity/basic_ops.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
pytests/Atomicity/basic_ops.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
from Cb_constants import DocLoading from basetestcase import ClusterSetup from couchbase_helper.documentgenerator import DocumentGenerator, doc_generator from couchbase_helper.tuq_generators import JsonGenerator from remote.remote_util import RemoteMachineShellConnection from sdk_client3 import SDKClient from com.couc...
42.138095
79
0.600181
1,019
8,849
4.996075
0.223749
0.025535
0.02475
0.032999
0.413082
0.396975
0.385582
0.385582
0.363976
0.363976
0
0.010176
0.311448
8,849
209
80
42.339713
0.825373
0.063284
0
0.322981
0
0
0.093364
0
0
0
0
0
0.012422
1
0.043478
false
0
0.043478
0
0.10559
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1346bfc37ba0726e8df79447049dc235a411088d
509
py
Python
reverseWord.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
null
null
null
reverseWord.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
null
null
null
reverseWord.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
1
2021-02-08T08:48:44.000Z
2021-02-08T08:48:44.000Z
#!/usr/bin/env python3 #-*- coding:utf-8 -*- #Author:贾江超 def spin_words(sentence): list1=sentence.split() l=len(list1) for i in range(l): relen = len(sentence.split()[i:][0]) if relen > 5: list1[i]=list1[i][::-1] return ' '.join(list1) ''' 注意 在2.x版本可以用len()得到list的长度 3.x版本就不行...
19.576923
81
0.569745
75
509
3.84
0.586667
0.135417
0.083333
0.138889
0
0
0
0
0
0
0
0.03876
0.239686
509
25
82
20.36
0.705426
0.100196
0
0
0
0
0.004386
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1346de71efda2a56a9fe39787dfce52620463eb1
3,461
py
Python
src/scs_host/comms/network_socket.py
south-coast-science/scs_host_cpc
08b4a28c022936462b60823cca136ba6746eac57
[ "MIT" ]
null
null
null
src/scs_host/comms/network_socket.py
south-coast-science/scs_host_cpc
08b4a28c022936462b60823cca136ba6746eac57
[ "MIT" ]
null
null
null
src/scs_host/comms/network_socket.py
south-coast-science/scs_host_cpc
08b4a28c022936462b60823cca136ba6746eac57
[ "MIT" ]
null
null
null
""" Created on 30 May 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) A network socket abstraction, implementing ProcessComms """ import socket import time from scs_core.sys.process_comms import ProcessComms # ----------------------------------------------------------------------------------------...
27.251969
118
0.428489
266
3,461
5.25188
0.368421
0.07874
0.054402
0.031496
0.230494
0.18325
0.141732
0.091625
0.091625
0.091625
0
0.010731
0.299913
3,461
126
119
27.468254
0.565827
0.271309
0
0.344262
0
0
0.016234
0.010552
0
0
0
0
0
1
0.114754
false
0.032787
0.04918
0.016393
0.262295
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13470b2018f5f54dbcfea9b085e57cd30b1be672
15,182
py
Python
dateparser/date.py
JKhakpour/dateparser
7f324cfd3de04e91752979cf65ae0dedc622375f
[ "BSD-3-Clause" ]
2
2019-03-12T10:50:15.000Z
2021-07-07T14:38:58.000Z
dateparser/date.py
JKhakpour/dateparser
7f324cfd3de04e91752979cf65ae0dedc622375f
[ "BSD-3-Clause" ]
null
null
null
dateparser/date.py
JKhakpour/dateparser
7f324cfd3de04e91752979cf65ae0dedc622375f
[ "BSD-3-Clause" ]
1
2018-03-07T13:25:16.000Z
2018-03-07T13:25:16.000Z
# -*- coding: utf-8 -*- import calendar import collections from datetime import datetime, timedelta from warnings import warn import six import regex as re from dateutil.relativedelta import relativedelta from dateparser.date_parser import date_parser from dateparser.freshness_date_parser import freshness_date_parser...
38.338384
114
0.640364
1,876
15,182
4.943497
0.188699
0.030947
0.024154
0.015096
0.26019
0.177054
0.104593
0.035799
0.025232
0.025232
0
0.012166
0.258266
15,182
395
115
38.435443
0.811384
0.194177
0
0.15444
0
0.003861
0.083747
0.008408
0
0
0
0
0
1
0.084942
false
0
0.050193
0.011583
0.266409
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1347a75f9a9bad0cfccf1c5a976700bd26f857d2
8,817
py
Python
src/models/functions/connection/mixture_density_network.py
kristofbc/handwriting-synthesis
16505e89fd7275d4cd3ed9c4388c9f3c153a0397
[ "FTL" ]
null
null
null
src/models/functions/connection/mixture_density_network.py
kristofbc/handwriting-synthesis
16505e89fd7275d4cd3ed9c4388c9f3c153a0397
[ "FTL" ]
null
null
null
src/models/functions/connection/mixture_density_network.py
kristofbc/handwriting-synthesis
16505e89fd7275d4cd3ed9c4388c9f3c153a0397
[ "FTL" ]
null
null
null
import chainer import chainer.functions from chainer.utils import type_check from chainer import cuda from chainer import function import numpy as np #from chainer import function_node from utils import clip_grad #class MixtureDensityNetworkFunction(function_node.FunctionNode): class MixtureDensityNetworkFunction(fu...
40.260274
142
0.576613
1,480
8,817
3.098649
0.128378
0.074575
0.051897
0.032708
0.35543
0.305495
0.245312
0.210641
0.178151
0.146751
0
0.052769
0.303618
8,817
218
143
40.444954
0.694137
0.229103
0
0.077519
0
0.015504
0.032969
0
0
0
0
0
0
1
0.03876
false
0.007752
0.054264
0
0.131783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134809d310a2c2bc00124d8b1a5104d5d2cb92b6
939
py
Python
flask__webservers/bootstrap_4__toggle_switch__examples/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
flask__webservers/bootstrap_4__toggle_switch__examples/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
flask__webservers/bootstrap_4__toggle_switch__examples/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://github.com/twbs/bootstrap # SOURCE: https://github.com/gitbrent/bootstrap4-toggle # SOURCE: https://gitbrent.github.io/bootstrap4-toggle/ from flask import Flask, render_template app = Flask(__name__) import logging logging.b...
22.357143
87
0.631523
119
939
4.831933
0.613445
0.057391
0.05913
0.069565
0.069565
0
0
0
0
0
0
0.021216
0.247071
939
41
88
22.902439
0.792079
0.556976
0
0
0
0
0.067332
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0.071429
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134951456249066bc57415ee60860d0f10fe18d8
160
py
Python
dev/phonts/visualization/phonts.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
dev/phonts/visualization/phonts.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
dev/phonts/visualization/phonts.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import pypospack.io.phonts as phonts # <---- additional classes and functions in which to add top # <---- pypospack.io.phonts if __name__ == "__main__":
20
60
0.6875
21
160
4.857143
0.809524
0.215686
0.333333
0
0
0
0
0
0
0
0
0
0.18125
160
7
61
22.857143
0.778626
0.55
0
0
0
0
0.117647
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
6
13495c72390c53605e37531f81078eacc3f25cd2
30,078
py
Python
omegaconf/_utils.py
sugatoray/omegaconf
edf9e86493a14b0e909e956d9bae59b9861ef9c5
[ "BSD-3-Clause" ]
1,091
2018-09-06T17:27:12.000Z
2022-03-31T13:47:45.000Z
omegaconf/_utils.py
sugatoray/omegaconf
edf9e86493a14b0e909e956d9bae59b9861ef9c5
[ "BSD-3-Clause" ]
624
2019-06-11T20:53:19.000Z
2022-03-30T20:44:25.000Z
omegaconf/_utils.py
sugatoray/omegaconf
edf9e86493a14b0e909e956d9bae59b9861ef9c5
[ "BSD-3-Clause" ]
71
2019-06-14T05:32:45.000Z
2022-03-27T19:52:35.000Z
import copy import os import re import string import sys import warnings from contextlib import contextmanager from enum import Enum from textwrap import dedent from typing import ( Any, Dict, Iterator, List, Optional, Tuple, Type, Union, get_type_hints, ) import yaml from .errors ...
30.849231
109
0.619423
3,937
30,078
4.488951
0.128524
0.013863
0.012222
0.001811
0.303288
0.257568
0.186726
0.160358
0.156284
0.136253
0
0.004698
0.27821
30,078
974
110
30.880903
0.809351
0.159618
0
0.26003
0
0.001486
0.048523
0.008652
0
0
0
0
0.010401
1
0.087667
false
0
0.056464
0.019316
0.291233
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134ae941abed7aefa64cace4d2b745626ee1b2ee
28,935
py
Python
darc/amber_clustering.py
loostrum/darc
977f43652ff4fc873340d09ac0fddeb81b889541
[ "Apache-2.0" ]
null
null
null
darc/amber_clustering.py
loostrum/darc
977f43652ff4fc873340d09ac0fddeb81b889541
[ "Apache-2.0" ]
47
2019-08-27T08:07:06.000Z
2022-03-04T10:10:40.000Z
darc/amber_clustering.py
loostrum/darc
977f43652ff4fc873340d09ac0fddeb81b889541
[ "Apache-2.0" ]
1
2020-11-24T09:27:56.000Z
2020-11-24T09:27:56.000Z
#!/usr/bin/env python3 # # AMBER Clustering import os from time import sleep import yaml import ast import threading import multiprocessing as mp import numpy as np from astropy.time import Time, TimeDelta import astropy.units as u from astropy.coordinates import SkyCoord from darc import DARCBase, VOEventQueueServe...
44.930124
118
0.55718
3,316
28,935
4.707479
0.145054
0.025625
0.017937
0.007495
0.240423
0.201986
0.174375
0.148815
0.148815
0.140807
0
0.003566
0.36029
28,935
643
119
45
0.839762
0.207258
0
0.340686
0
0
0.136229
0.007971
0
0
0
0
0
1
0.029412
false
0.009804
0.036765
0
0.102941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134b9c14653c7fb4e1904d66229452a0dbe85152
9,811
py
Python
tools/load_demo_data.py
glenn2763/skyportal
79dc11bfe08076d9c1f920bad85681ab001e22c8
[ "BSD-3-Clause" ]
null
null
null
tools/load_demo_data.py
glenn2763/skyportal
79dc11bfe08076d9c1f920bad85681ab001e22c8
[ "BSD-3-Clause" ]
null
null
null
tools/load_demo_data.py
glenn2763/skyportal
79dc11bfe08076d9c1f920bad85681ab001e22c8
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import subprocess import base64 from pathlib import Path import shutil import pandas as pd import signal import requests from baselayer.app.env import load_env from baselayer.app.model_util import status, create_tables, drop_tables from social_tornado.models import TornadoStorage from skyport...
37.446565
88
0.428804
835
9,811
4.838323
0.323353
0.029703
0.038119
0.017327
0.126733
0.101485
0.065842
0.045545
0.045545
0.045545
0
0.02218
0.466925
9,811
261
89
37.590038
0.750287
0
0
0.165217
0
0
0.172745
0.025232
0
0
0
0
0.056522
1
0.004348
false
0
0.069565
0
0.078261
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134f9288b26ce3d17a1dc1a42f04cbaea4914dea
1,537
py
Python
framework/Exploits/CUTEFLOW_0024.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2019-01-25T21:32:42.000Z
2019-01-25T21:32:42.000Z
framework/Exploits/CUTEFLOW_0024.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
null
null
null
framework/Exploits/CUTEFLOW_0024.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2021-06-23T04:44:25.000Z
2021-06-23T04:44:25.000Z
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import sys import os import time from selenium.common.exceptions import NoAlertPresentException import framework class Exploit (framework.Exploit...
29
134
0.582954
160
1,537
5.525
0.625
0.010181
0.024887
0.027149
0
0
0
0
0
0
0
0.028116
0.305791
1,537
52
135
29.557692
0.800375
0.1054
0
0.058824
0
0.029412
0.243066
0
0
0
0
0
0
1
0.088235
false
0
0.147059
0.029412
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134fbec769aed9e0795c724b3dcc54286150a284
10,720
py
Python
telethon/tl/custom/button.py
HosseyNJF/Telethon
0b0a1dc6a1a3f2fc8593526549889fba2884e8b8
[ "MIT" ]
4
2020-11-28T08:50:07.000Z
2020-12-13T03:44:05.000Z
telethon/tl/custom/button.py
HosseyNJF/Telethon
0b0a1dc6a1a3f2fc8593526549889fba2884e8b8
[ "MIT" ]
4
2020-10-11T15:40:17.000Z
2020-10-22T09:06:58.000Z
telethon/tl/custom/button.py
HosseyNJF/Telethon
0b0a1dc6a1a3f2fc8593526549889fba2884e8b8
[ "MIT" ]
2
2020-01-16T12:21:02.000Z
2021-12-16T01:30:11.000Z
from .. import types from ... import utils class Button: """ .. note:: This class is used to **define** reply markups, e.g. when sending a message or replying to events. When you access `Message.buttons <telethon.tl.custom.message.Message.buttons>` they are actually `MessageBu...
40.916031
79
0.638619
1,441
10,720
4.713393
0.229702
0.025766
0.017668
0.020024
0.262073
0.257362
0.238221
0.21702
0.209953
0.199352
0
0.002515
0.295149
10,720
261
80
41.072797
0.895977
0.641511
0
0.276923
0
0
0.013186
0
0
0
0
0
0
1
0.184615
false
0
0.030769
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
134fdc98faac6c7e555a1d8a47d4c15e48a09ce5
1,575
py
Python
src/main/resources/pys/join.py
addUsername/javaBoring
d576adbd21447085f56719e8cc871faf94d8a369
[ "MIT" ]
null
null
null
src/main/resources/pys/join.py
addUsername/javaBoring
d576adbd21447085f56719e8cc871faf94d8a369
[ "MIT" ]
null
null
null
src/main/resources/pys/join.py
addUsername/javaBoring
d576adbd21447085f56719e8cc871faf94d8a369
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 7 20:14:22 2020 Simple script to join json files @author: SERGI """ import json import sys import os def readJson(path): with open(path, "r") as file: return json.load(file) def writeJson(path, dicc): with open(path, "w") as file...
28.125
82
0.533333
206
1,575
3.893204
0.364078
0.093516
0.05611
0.062344
0.107232
0.089776
0.047382
0
0
0
0
0.033389
0.239365
1,575
56
83
28.125
0.63606
0.215873
0
0
0
0
0.110351
0
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.193548
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1351156463c6a25e82b73e57ee20368b3d832d46
2,017
py
Python
app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
1
2021-02-09T10:30:44.000Z
2021-02-09T10:30:44.000Z
app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-23 11:02 import re import django.contrib.postgres.fields.citext import django.core.validators from django.db import migrations import grandchallenge.challenges.models class Migration(migrations.Migration): dependencies = [ ("challenges", "0022_auto_20200121_1639"...
36.017857
103
0.543877
182
2,017
5.923077
0.434066
0.050093
0.139147
0.141002
0.715213
0.684601
0.684601
0.684601
0.684601
0.684601
0
0.030374
0.363411
2,017
55
104
36.672727
0.80919
0.02231
0
0.723404
1
0
0.209645
0.011675
0
0
0
0
0
1
0
false
0
0.106383
0
0.170213
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
13513f9e059c5209134cdb28c07c7e40eb9e7c97
8,756
py
Python
autosk_dev_test/component/LinReg.py
hmendozap/master-arbeit-files
5c1b90bc4a424313234b84bad405799de6f8d2ed
[ "MIT" ]
2
2018-01-18T06:25:21.000Z
2018-12-11T07:43:09.000Z
autosk_dev_test/component/LinReg.py
hmendozap/master-arbeit-files
5c1b90bc4a424313234b84bad405799de6f8d2ed
[ "MIT" ]
1
2016-03-29T07:55:18.000Z
2016-03-29T07:55:18.000Z
autosk_dev_test/component/LinReg.py
hmendozap/master-arbeit-files
5c1b90bc4a424313234b84bad405799de6f8d2ed
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp from HPOlibConfigSpace.configuration_space import ConfigurationSpace from HPOlibConfigSpace.conditions import EqualsCondition, InCondition from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \ UniformIntegerHyperparameter, CategoricalHyperparameter...
44.222222
102
0.489721
773
8,756
5.335058
0.208279
0.020611
0.055286
0.006547
0.117119
0.079777
0.03904
0.033948
0.024248
0
0
0.027104
0.439584
8,756
197
103
44.446701
0.813328
0.010736
0
0.0875
0
0
0.035001
0.002541
0
0
0
0
0
1
0.04375
false
0
0.05
0.00625
0.1375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13526b6d17cc702b79611d77af35c9e1a3a2bf4e
278
py
Python
python_work/Chapter5/exe3_alien_color.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
1
2020-08-25T18:42:30.000Z
2020-08-25T18:42:30.000Z
python_work/Chapter5/exe3_alien_color.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
python_work/Chapter5/exe3_alien_color.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
# Creating a elif chain alien_color = 'red' if alien_color == 'green': print('Congratulations! You won 5 points!') elif alien_color == 'yellow': print('Congratulations! You won 10 points!') elif alien_color == 'red': print('Congratulations! You won 15 points!')
25.272727
48
0.683453
37
278
5.027027
0.486486
0.215054
0.370968
0.419355
0
0
0
0
0
0
0
0.022026
0.183453
278
10
49
27.8
0.797357
0.07554
0
0
0
0
0.478261
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
13532d8edfc3e8c0a315f5cb2ba2e9ad01f479b5
2,427
py
Python
DigiPsych_API/Data_Science_API/evaluate_model.py
larryzhang95/Voice-Analysis-Pipeline
264ac5c70d0baab47b81718ea5b895be30a683e9
[ "Apache-2.0" ]
7
2019-06-22T21:03:50.000Z
2021-11-21T19:46:55.000Z
DigiPsych_API/Data_Science_API/evaluate_model.py
larryzhang95/Voice-Analysis-Pipeline
264ac5c70d0baab47b81718ea5b895be30a683e9
[ "Apache-2.0" ]
null
null
null
DigiPsych_API/Data_Science_API/evaluate_model.py
larryzhang95/Voice-Analysis-Pipeline
264ac5c70d0baab47b81718ea5b895be30a683e9
[ "Apache-2.0" ]
3
2019-09-15T01:50:39.000Z
2021-12-22T02:36:36.000Z
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.model_selection import learning_curve # Plot learning curve def plot_learning_curve(estimator, title, X, y, ylim=None, cv=None, n_jobs=1, train_sizes=np.linspace(.1, 1.0, 5)): plt.figu...
42.578947
115
0.674083
370
2,427
4.186486
0.202703
0.092318
0.056811
0.054229
0.511298
0.356359
0.204003
0.204003
0.056811
0.056811
0
0.015432
0.199011
2,427
56
116
43.339286
0.781379
0.016893
0
0.081633
0
0
0.051616
0
0
0
0
0
0
1
0.040816
false
0
0.102041
0
0.163265
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13539ceb0c44529e049d271d3d684efaaf1e9dee
121
py
Python
oomi/__init__.py
sremes/oomi
312317aa2ef68f1481b2447652a7d47c5f2e3f56
[ "MIT" ]
null
null
null
oomi/__init__.py
sremes/oomi
312317aa2ef68f1481b2447652a7d47c5f2e3f56
[ "MIT" ]
null
null
null
oomi/__init__.py
sremes/oomi
312317aa2ef68f1481b2447652a7d47c5f2e3f56
[ "MIT" ]
null
null
null
"""Utilities for downloading comsumption data from Oomi.""" from oomi.oomi_downloader import OomiDownloader, OomiConfig
30.25
59
0.818182
14
121
7
0.785714
0.163265
0
0
0
0
0
0
0
0
0
0
0.107438
121
3
60
40.333333
0.907407
0.438017
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1354ab456ba9280a4363560bf56997305ed54a5f
3,692
py
Python
BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
KaoTuz/edk2-stable202108
49d9306e7bf64b2f07d8473be1f2faea49d0a012
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
9
2021-07-26T17:02:51.000Z
2021-12-30T10:49:46.000Z
BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
ESdove/edk2_exploring
34ff32b45f43d233d9696e7c8e3de68ea3000a7b
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
ESdove/edk2_exploring
34ff32b45f43d233d9696e7c8e3de68ea3000a7b
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
## @file # This file is used to define class objects of INF file miscellaneous. # Include BootMode/HOB/Event and others. It will consumed by InfParser. # # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent ''' InfMisc ''' import Logger.Log as Logge...
25.818182
77
0.628115
359
3,692
6.384401
0.320334
0.073298
0.06719
0.026178
0.287086
0.247819
0.247819
0.206806
0.206806
0.206806
0
0.004913
0.283315
3,692
142
78
26
0.8613
0.103196
0
0.408602
0
0
0.002748
0
0
0
0
0
0
1
0.290323
false
0
0.053763
0.11828
0.516129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
13570cde1e5c8c95a0a1cd4eb53d4d9f0d94d653
297
py
Python
21-08/Starters8/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
21-08/Starters8/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
21-08/Starters8/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
# https://www.codechef.com/START8C/problems/PENALTY for T in range(int(input())): n=list(map(int,input().split())) a=b=0 for i in range(len(n)): if(n[i]==1): if(i%2==0): a+=1 else: b+=1 if(a>b): print(1) elif(b>a): print(2) else: print(0)
24.75
51
0.501684
54
297
2.759259
0.518519
0.09396
0
0
0
0
0
0
0
0
0
0.046296
0.272727
297
12
52
24.75
0.643519
0.164983
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13583e5f15c53f390db50be7afda1b1e9f5ec33e
859
py
Python
util/eval.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
7
2021-11-26T01:15:23.000Z
2022-03-15T10:51:47.000Z
util/eval.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
4
2022-01-15T09:46:00.000Z
2022-02-05T07:10:18.000Z
util/eval.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
1
2021-09-18T16:50:14.000Z
2021-09-18T16:50:14.000Z
import matplotlib.pyplot as plt from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix def save_confusion_matrix(truth, pred, out_file, norm=None): label_names = list(set(truth) | set(pred)) label_names.sort() truth_compact = [label_names.index(x) for x in truth] pred_compact = [label_na...
35.791667
74
0.690338
121
859
4.719008
0.504132
0.105079
0.129597
0.077058
0.154116
0.101576
0.101576
0.101576
0
0
0
0.016058
0.202561
859
23
75
37.347826
0.817518
0
0
0
0
0
0.01397
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
135906a75c8644d17899cd5046a70589324b71a2
3,595
py
Python
python/py3study/pytorch-lab/demo-cifar.py
sillyemperor/langstudy
937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1
[ "MIT" ]
null
null
null
python/py3study/pytorch-lab/demo-cifar.py
sillyemperor/langstudy
937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1
[ "MIT" ]
null
null
null
python/py3study/pytorch-lab/demo-cifar.py
sillyemperor/langstudy
937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import os.path BASE_DIR = os.path.dirname(os.path.abspath(__file__)) transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) root = os.path.join(BASE_DIR, '../data/') trainset ...
28.307087
75
0.585535
584
3,595
3.57363
0.292808
0.114998
0.036895
0.034499
0.106852
0.100144
0.054624
0.034499
0.034499
0.034499
0
0.28437
0.231154
3,595
126
76
28.531746
0.470695
0.465925
0
0.047619
0
0
0.004329
0
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
135933f07f224fa858e30bebe4b7db897823355d
995
py
Python
astroquery/neodys/tests/test_neodys_remote.py
B612-Asteroid-Institute/astroquery
4bc8002639e80f7356306f4e000334da5e086091
[ "BSD-3-Clause" ]
null
null
null
astroquery/neodys/tests/test_neodys_remote.py
B612-Asteroid-Institute/astroquery
4bc8002639e80f7356306f4e000334da5e086091
[ "BSD-3-Clause" ]
1
2021-03-19T14:06:50.000Z
2021-03-19T14:06:50.000Z
astroquery/neodys/tests/test_neodys_remote.py
B612-Asteroid-Institute/astroquery
4bc8002639e80f7356306f4e000334da5e086091
[ "BSD-3-Clause" ]
null
null
null
from ... import neodys def test_neodys_query(): test_object = "2018VP1" res_kep_0 = neodys.core.NEODyS.query_object( test_object, orbital_element_type="ke", epoch_near_present=0) res_kep_1 = neodys.core.NEODyS.query_object( test_object, orbital_element_type="ke", epoch_near_present=1) ...
41.458333
79
0.711558
155
995
4.225806
0.225806
0.053435
0.045802
0.128244
0.789313
0.583206
0.451908
0.451908
0.451908
0.451908
0
0.039616
0.162814
995
23
80
43.26087
0.746699
0
0
0
0
0
0.188129
0
0
0
0
0
0.388889
1
0.055556
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1359a8c4afe9581f59876f936fb68313f28865c1
1,028
py
Python
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-08 19:56 from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations def noop(*args, **kwargs): pass def _convert_emailed_to_array_field(apps, schema_editor): BillingRecord = apps.get_model...
27.783784
80
0.689689
117
1,028
5.760684
0.529915
0.106825
0.066766
0.062315
0.077151
0
0
0
0
0
0
0.041312
0.199416
1,028
36
81
28.555556
0.777643
0.067121
0
0
1
0
0.088912
0.024059
0
0
0
0
0
1
0.086957
false
0.043478
0.130435
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1359c0fa6a8b2dda6889c4d23c5bb6bc6ad1f0c0
9,806
py
Python
tensor2tensor/rl/evaluator.py
SouBanerjee/tensor2tensor
8b88b13dd65bf52b3c27663a128adb7b0a5773fb
[ "Apache-2.0" ]
1
2019-12-11T14:43:49.000Z
2019-12-11T14:43:49.000Z
tensor2tensor/rl/evaluator.py
SouBanerjee/tensor2tensor
8b88b13dd65bf52b3c27663a128adb7b0a5773fb
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/evaluator.py
SouBanerjee/tensor2tensor
8b88b13dd65bf52b3c27663a128adb7b0a5773fb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.528986
112
0.730879
1,378
9,806
4.875181
0.219884
0.032748
0.022923
0.013397
0.244567
0.181155
0.123846
0.101816
0.086038
0.07919
0
0.007111
0.168264
9,806
275
113
35.658182
0.816577
0.135121
0
0.131455
0
0
0.134307
0.008194
0
0
0
0
0.014085
1
0.042254
false
0
0.065728
0.00939
0.140845
0.004695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
135a363584e253a0fd487ab5902e769a0e03931f
1,236
py
Python
src/part_2_automation/test_test1.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/part_2_automation/test_test1.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/part_2_automation/test_test1.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
1
2022-03-16T10:39:03.000Z
2022-03-16T10:39:03.000Z
# Generated by Selenium IDE import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWa...
38.625
89
0.768608
166
1,236
5.608434
0.415663
0.118153
0.135338
0.112782
0.354458
0.298604
0.298604
0.186896
0.094522
0
0
0.020018
0.110841
1,236
31
90
39.870968
0.827116
0.020227
0
0
1
0
0.136476
0.019851
0
0
0
0
0
1
0.115385
false
0
0.384615
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
135abe65fc98dab6544eb64993951b1e91db47a2
732
py
Python
app/grandchallenge/components/admin.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
1
2021-02-09T10:30:44.000Z
2021-02-09T10:30:44.000Z
app/grandchallenge/components/admin.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/components/admin.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from grandchallenge.components.models import ( ComponentInterface, ComponentInterfaceValue, ) class ComponentInterfaceAdmin(admin.ModelAdmin): list_display = ( "pk", "title", "slug", "kind", "default_value", "relative_path",...
23.612903
74
0.67623
59
732
8.254237
0.525424
0.11499
0.078029
0.106776
0.11499
0
0
0
0
0
0
0
0.206284
732
30
75
24.4
0.83821
0
0
0.173913
0
0
0.157104
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
135ad256377f1febc7ff1ea7598a8c696743a758
165
py
Python
publishtimer/__init__.py
paragguruji/publishtimer
b0b68d6c4d450a2cc22d29725e43c2a1261f0f74
[ "BSD-2-Clause" ]
null
null
null
publishtimer/__init__.py
paragguruji/publishtimer
b0b68d6c4d450a2cc22d29725e43c2a1261f0f74
[ "BSD-2-Clause" ]
null
null
null
publishtimer/__init__.py
paragguruji/publishtimer
b0b68d6c4d450a2cc22d29725e43c2a1261f0f74
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 28 15:28:24 2016 @author: Parag Guruji, paragguruji@gmail.com """ from .helpers import setup_env done = setup_env()
16.5
44
0.678788
26
165
4.230769
0.884615
0.145455
0
0
0
0
0
0
0
0
0
0.094203
0.163636
165
10
45
16.5
0.702899
0.630303
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
135d785a425446491b59ae18c63cdcf06bf42dd8
278
py
Python
netdisco/discoverables/nanoleaf_aurora.py
jjlawren/netdisco
ffc3cd092bff359b1c1fc1ed51940624b3c8076b
[ "Apache-2.0" ]
1
2020-01-05T21:36:10.000Z
2020-01-05T21:36:10.000Z
env/lib/python3.7/site-packages/netdisco/discoverables/nanoleaf_aurora.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
null
null
null
env/lib/python3.7/site-packages/netdisco/discoverables/nanoleaf_aurora.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
null
null
null
"""Discover Nanoleaf Aurora devices.""" from . import MDNSDiscoverable class Discoverable(MDNSDiscoverable): """Add support for discovering Nanoleaf Aurora devices.""" def __init__(self, nd): super(Discoverable, self).__init__(nd, '_nanoleafapi._tcp.local.')
27.8
74
0.726619
29
278
6.62069
0.724138
0.145833
0.21875
0
0
0
0
0
0
0
0
0
0.151079
278
9
75
30.888889
0.813559
0.309353
0
0
0
0
0.132597
0.132597
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
135f17354c6a575112f9dd1ee2ae823d8e499637
2,299
py
Python
debug/compute_score_common_ts_RETREAT.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
1
2020-12-18T06:10:16.000Z
2020-12-18T06:10:16.000Z
debug/compute_score_common_ts_RETREAT.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
null
null
null
debug/compute_score_common_ts_RETREAT.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
2
2021-03-01T01:36:38.000Z
2021-03-01T13:44:02.000Z
import os.path as op import numpy as np import pandas as pd from sklearn.pipeline import make_pipeline from sklearn.linear_model import RidgeCV from sklearn.preprocessing import StandardScaler from sklearn.model_selection import KFold, cross_val_score import mne from pyriemann.tangentspace import TangentSpace import ...
31.930556
77
0.651588
381
2,299
3.742782
0.333333
0.014727
0.017532
0.024544
0.146564
0.110799
0.091164
0.023843
0.023843
0
0
0.016912
0.202697
2,299
71
78
32.380282
0.761047
0.041757
0
0.037037
0
0
0.058663
0.021828
0
0
0
0
0
1
0.037037
false
0
0.185185
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
135f22f80a61bf2986149f078e69c6a03f73a3a5
1,161
py
Python
bter/publish.py
mengalong/bter
7fa56f9c83429bc564e6d123498b14aae5c390b1
[ "Apache-2.0" ]
1
2017-08-30T01:01:50.000Z
2017-08-30T01:01:50.000Z
bter/publish.py
mengalong/bter
7fa56f9c83429bc564e6d123498b14aae5c390b1
[ "Apache-2.0" ]
null
null
null
bter/publish.py
mengalong/bter
7fa56f9c83429bc564e6d123498b14aae5c390b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017~ mengalong <alongmeng@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
33.171429
77
0.709733
160
1,161
5.05625
0.61875
0.074166
0.032138
0.039555
0
0
0
0
0
0
0
0.008724
0.210164
1,161
34
78
34.147059
0.873501
0.490956
0
0
0
0
0.084922
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
135f9b393c2da1b1ae7cb6b4ea51c6e47c87c3b3
2,976
py
Python
web3/_utils/module_testing/math_contract.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
web3/_utils/module_testing/math_contract.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
web3/_utils/module_testing/math_contract.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
MATH_BYTECODE = ( "606060405261022e806100126000396000f360606040523615610074576000357c01000000000000" "000000000000000000000000000000000000000000009004806316216f391461007657806361bc22" "1a146100995780637cf5dab0146100bc578063a5f3c23b146100e8578063d09de08a1461011d5780" "63dcf537b11461014057610074565b...
32.347826
87
0.576949
118
2,976
14.533898
0.355932
0.038484
0.055394
0.067055
0.197085
0.197085
0.188338
0.165598
0.110787
0.110787
0
0.512966
0.287298
2,976
91
88
32.703297
0.295615
0
0
0.477273
0
0
0.574549
0.399445
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
135f9d0a7a2f751997f717a3c72579433fa4791e
4,269
py
Python
dnsdb/config.py
nuby/open_dnsdb
7fec703d8458083f0e6826393656055556e9f0b2
[ "Apache-2.0" ]
1
2019-09-27T01:06:55.000Z
2019-09-27T01:06:55.000Z
dnsdb/config.py
cclauss/open_dnsdb
28c2055685be1c173d77eaa2a05d8e156ccbbbf2
[ "Apache-2.0" ]
null
null
null
dnsdb/config.py
cclauss/open_dnsdb
28c2055685be1c173d77eaa2a05d8e156ccbbbf2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from datetime import timedelta from oslo.config import cfg CONF = cfg.CONF CONF.register_opts([ cfg.StrOpt('log-dir'), cfg.StrOpt('log-file'), cfg.StrOpt('debug'), cfg.StrOpt('verbose'), ], 'log') CONF.register_opts([ cfg.StrOpt('connection'), cf...
31.160584
92
0.594284
524
4,269
4.662214
0.28626
0.099468
0.052395
0.062219
0.417519
0.345886
0.270978
0.270978
0.270978
0.270978
0
0.008184
0.255798
4,269
136
93
31.389706
0.760781
0.057625
0
0.288288
0
0
0.229084
0.006972
0
0
0
0
0
1
0.018018
false
0
0.036036
0
0.063063
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
136018fcec6b4476406646ec76b683c9bf3950c1
1,148
py
Python
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import time from rover import Robot from connections import Connections class Rover(Robot, Connections): def __init__( self, config, bt_flag = 0, xbox_flag = 0, unix_flag = 0 ): self.bt_flag = bt_flag self.xbox_flag = xbox_flag self.unix_flag =...
19.457627
110
0.674216
160
1,148
4.63125
0.3625
0.040486
0.048583
0.059379
0.110661
0.075574
0.075574
0
0
0
0
0.006787
0.229965
1,148
58
111
19.793103
0.831448
0
0
0.232558
0
0
0.077526
0
0
0
0
0
0
0
null
null
0
0.093023
null
null
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
136335a62a6f24cad26390348c87d9d3bbbba896
14,534
py
Python
aswiki/parser.py
scanner/django-aswiki
318908eeccc8da324846ac5ffc4d4a206f560521
[ "BSD-3-Clause" ]
null
null
null
aswiki/parser.py
scanner/django-aswiki
318908eeccc8da324846ac5ffc4d4a206f560521
[ "BSD-3-Clause" ]
1
2020-09-25T05:40:38.000Z
2020-09-28T05:41:27.000Z
aswiki/parser.py
scanner/django-aswiki
318908eeccc8da324846ac5ffc4d4a206f560521
[ "BSD-3-Clause" ]
null
null
null
# # File: $Id: parser.py 1865 2008-10-28 00:47:27Z scanner $ # """ This is where the logic and definition of our wiki markup parser lives. We use the Python Creoleparser (which requires Genshi) We make a custom dialect so that the parser can know the URL base for all of the topics (pages) in the wiki and some additio...
37.848958
96
0.597083
1,922
14,534
4.420916
0.221124
0.031776
0.009062
0.010004
0.154761
0.120513
0.109803
0.075321
0.051312
0.042603
0
0.007177
0.280996
14,534
383
97
37.947781
0.805933
0.543828
0
0.238938
0
0
0.031482
0
0
0
0
0
0
1
0.097345
false
0
0.115044
0.00885
0.424779
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1365f047bda189ac06139ef3c589483027732b74
13,825
py
Python
oauth_api/validators.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
oauth_api/validators.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
oauth_api/validators.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
4
2015-07-30T11:03:54.000Z
2017-11-13T15:30:48.000Z
import base64 import binascii from datetime import timedelta from django.contrib.auth import authenticate from django.utils import timezone from oauthlib.oauth2 import RequestValidator from oauth_api.models import get_application_model, AccessToken, AuthorizationCode, RefreshToken, AbstractApplication from oauth_api...
37.364865
124
0.636166
1,495
13,825
5.694983
0.133779
0.029128
0.037938
0.021611
0.352831
0.281536
0.229035
0.196148
0.180526
0.132135
0
0.003456
0.288318
13,825
369
125
37.466125
0.861876
0.189078
0
0.307339
0
0
0.027343
0
0
0
0
0
0.009174
1
0.110092
false
0.027523
0.036697
0
0.376147
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13662d9d6240c63c9a734dfc856cbc7f4107d5e2
160
py
Python
objects/fun_return.py
padmacho/pythontutorial
80c58d2d6efc0c3598f92b627338c6cd9fda1759
[ "Apache-2.0" ]
null
null
null
objects/fun_return.py
padmacho/pythontutorial
80c58d2d6efc0c3598f92b627338c6cd9fda1759
[ "Apache-2.0" ]
null
null
null
objects/fun_return.py
padmacho/pythontutorial
80c58d2d6efc0c3598f92b627338c6cd9fda1759
[ "Apache-2.0" ]
null
null
null
def modify(y): return y # returns same reference. No new object is created x = [1, 2, 3] y = modify(x) print("x == y", x == y) print("x == y", x is y)
26.666667
65
0.55625
31
160
2.870968
0.548387
0.067416
0.157303
0.179775
0
0
0
0
0
0
0
0.025424
0.2625
160
6
66
26.666667
0.728814
0.3
0
0
0
0
0.113208
0
0
0
0
0
0
1
0.166667
false
0
0
0.166667
0.333333
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
1366f50a70db89f7b6f66ff4d8a7cc0516afcf2f
6,471
py
Python
edx_gen/_write_comps.py
hberndl70/mooc-generator
58ff77ece12b456887ec24db79d8baa87ecd5621
[ "MIT" ]
null
null
null
edx_gen/_write_comps.py
hberndl70/mooc-generator
58ff77ece12b456887ec24db79d8baa87ecd5621
[ "MIT" ]
null
null
null
edx_gen/_write_comps.py
hberndl70/mooc-generator
58ff77ece12b456887ec24db79d8baa87ecd5621
[ "MIT" ]
null
null
null
import sys, os import tarfile import shutil from edx_gen import _edx_consts from edx_gen import _read_metadata from edx_gen import _write_structure from edx_gen import _write_comps from edx_gen import _write_comp_html from edx_gen import _write_comp_checkboxes from edx_gen import _write_comp_video from edx_gen i...
38.064706
117
0.641323
842
6,471
4.667458
0.17696
0.035623
0.025445
0.040712
0.50687
0.442748
0.411959
0.411959
0.38855
0.378117
0
0.003841
0.235667
6,471
169
118
38.289941
0.79074
0.324679
0
0.209877
0
0
0.138426
0
0
0
0
0
0
1
0.024691
false
0
0.17284
0
0.308642
0.17284
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1367201e3118f25640a5bbd95836976d130709a4
2,403
py
Python
grading_program.py
ByeonghoonJeon/Student-Grading
eee55638aee4390d7758c1204b85cce7279ccdf7
[ "MIT" ]
null
null
null
grading_program.py
ByeonghoonJeon/Student-Grading
eee55638aee4390d7758c1204b85cce7279ccdf7
[ "MIT" ]
null
null
null
grading_program.py
ByeonghoonJeon/Student-Grading
eee55638aee4390d7758c1204b85cce7279ccdf7
[ "MIT" ]
null
null
null
# 1. Create students score dictionary. students_score = {} # 2. Input student's name and check if input is correct. (Alphabet, period, and blank only.) # 2.1 Creat a function that evaluate the validity of name. def check_name(name): # 2.1.1 Remove period and blank and check it if the name is comprised with on...
36.969231
100
0.646275
373
2,403
4.061662
0.243968
0.094389
0.064686
0.044884
0.179538
0.155776
0.124092
0.054125
0.054125
0
0
0.032364
0.241365
2,403
64
101
37.546875
0.798683
0.303787
0
0
0
0
0.182037
0
0
0
0
0
0
1
0.02381
false
0
0
0
0.047619
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
136832386a64df8b748feecd13c99a4dc30fc9d5
735
py
Python
test/test_utils.py
by46/recipe
203abd2141a536b66b4e57d073169a49395be1f0
[ "MIT" ]
null
null
null
test/test_utils.py
by46/recipe
203abd2141a536b66b4e57d073169a49395be1f0
[ "MIT" ]
null
null
null
test/test_utils.py
by46/recipe
203abd2141a536b66b4e57d073169a49395be1f0
[ "MIT" ]
null
null
null
import unittest from recipe import utils class UtilTestCase(unittest.TestCase): def test_valid_project_slug(self): project_slug = "Recipe0123456789_mock" self.assertTrue(utils.valid_project_slug(project_slug)) project_slug = 'Recipe00000000000000000000000000000000000000000000' ...
33.409091
77
0.719728
70
735
7.2
0.285714
0.349206
0.321429
0.392857
0.549603
0.549603
0.549603
0.549603
0.549603
0.549603
0
0.166948
0.193197
735
21
78
35
0.682968
0
0
0.357143
0
0
0.189076
0.170868
0
0
0
0
0.357143
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1368b69e2269d6b7303299c5097db81eca903217
6,708
py
Python
extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
1
2022-02-07T06:12:26.000Z
2022-02-07T06:12:26.000Z
extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os.path as osp import json from human_body_prior.tools.model_loader import load_vposer import torch vposer_ckpt = '/Vol1/dbstore/datasets/a.vakhitov/projects/pykinect_fresh/smplify-x/smplify-x-data/vposer_v1_0/' def load_avakhitov_fits_vposer(vposer, part_path, dev_lbl): po...
35.120419
118
0.570662
978
6,708
3.679959
0.201431
0.055571
0.026674
0.02334
0.23312
0.145874
0.125313
0.110031
0.080022
0.061128
0
0.02836
0.295617
6,708
190
119
35.305263
0.733333
0.073196
0
0.089041
0
0.006849
0.082681
0.022668
0
0
0
0
0.013699
1
0.027397
false
0
0.041096
0
0.09589
0.006849
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1368b793b823b3bd0b461ed385d6e6b6434e1e68
3,455
py
Python
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
1
2021-03-24T17:54:51.000Z
2021-03-24T17:54:51.000Z
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
18
2021-03-08T13:38:37.000Z
2022-02-14T15:06:28.000Z
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
1
2021-03-25T13:37:02.000Z
2021-03-25T13:37:02.000Z
import docker from dockerfile_generator import render import os import json from tqdm import tqdm from typing import Union, Any, Optional def build_image(repo_url: str, tag: str, path: str) -> None: """ build_image builds the image with the given tag """ client = docker.from_env() print(f"Buildin...
32.28972
108
0.636758
473
3,455
4.528541
0.312896
0.03268
0.023343
0.024276
0.143324
0.080299
0.056956
0.056956
0.030812
0.030812
0
0.009292
0.252388
3,455
106
109
32.59434
0.819977
0.176845
0
0.189189
0
0
0.112388
0.017235
0
0
0
0
0
1
0.067568
false
0.054054
0.081081
0
0.243243
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
136925370fda5dbcb2e2d6d5e61c676370502bb7
904
py
Python
scripts/VCF/UTILS/select_variants.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
3
2018-04-20T15:04:34.000Z
2022-03-30T06:36:02.000Z
scripts/VCF/UTILS/select_variants.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
7
2019-06-06T09:22:20.000Z
2021-11-23T17:41:52.000Z
scripts/VCF/UTILS/select_variants.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
5
2017-11-02T11:17:35.000Z
2021-12-11T19:34:09.000Z
from VcfFilter import VcfFilter import argparse import os #get command line arguments parser = argparse.ArgumentParser(description='Script to select a certain variant type from a VCF file') #parameters parser.add_argument('--bcftools_folder', type=str, required=True, help='Folder containing the Bcftools binary' ) p...
39.304348
275
0.766593
138
904
4.862319
0.521739
0.040238
0.076006
0.056632
0.068554
0
0
0
0
0
0
0
0.136062
904
22
276
41.090909
0.859155
0.039823
0
0
0
0.090909
0.446882
0.028868
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13695de67e652f576d889f205ef664189b73d45b
14,680
py
Python
site/tests/unittests/test/test_base64.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
site/tests/unittests/test/test_base64.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
check-python33-manual/samples/standard_library_337/Lib/test/test_base64.py
DaveKaretnyk/parsing-utils2
40085bbd399fa605f2f2a4708d385a64ffc907de
[ "MIT" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
import unittest from test import support import base64 import binascii import os import sys import subprocess class LegacyBase64TestCase(unittest.TestCase): def test_encodebytes(self): eq = self.assertEqual eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n") eq(base64.enc...
41.586402
83
0.570981
1,630
14,680
5.084663
0.119632
0.072394
0.04223
0.052365
0.65432
0.563827
0.471646
0.379585
0.239503
0.161438
0
0.073781
0.276158
14,680
352
84
41.704545
0.706192
0.045095
0
0.239286
0
0
0.194524
0.087575
0
0
0
0
0.160714
1
0.078571
false
0
0.032143
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1369857b721c52701d49ebb99393f03d4c246712
569
py
Python
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
3
2015-08-04T20:53:41.000Z
2020-02-14T22:58:20.000Z
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
103
2015-01-15T14:21:00.000Z
2022-03-31T19:14:20.000Z
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
4
2016-02-22T16:48:20.000Z
2021-01-08T17:13:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-02-25 20:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): """Updates ImageField syntax for later version. """ dependencies = [ ('appliance_catalog', '0014_auto_...
24.73913
86
0.644991
62
569
5.709677
0.790323
0.090395
0
0
0
0
0
0
0
0
0
0.078522
0.239016
569
22
87
25.863636
0.73903
0.210896
0
0
1
0
0.196833
0.106335
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
136a5b3d51a58e910193de0d1a2f38a488d4801a
1,435
py
Python
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
1
2021-09-23T22:04:09.000Z
2021-09-23T22:04:09.000Z
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
null
null
null
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
null
null
null
"""Retrieve and request tweets from the DS API""" import requests import spacy from .models import DB, Tweet, User nlp = spacy.load("my_model") def vectorize_tweet(tweet_text): return nlp(tweet_text).vector # Add and updates tweets def add_or_update_user(username): """Adds and updates the user with twiter ...
25.175439
78
0.608362
196
1,435
4.311224
0.413265
0.049704
0.04497
0.033136
0
0
0
0
0
0
0
0.000965
0.278049
1,435
56
79
25.625
0.814672
0.225087
0
0
0
0
0.123959
0
0
0
0
0.017857
0
1
0.074074
false
0
0.111111
0.037037
0.222222
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
136a6f790e3bad7ef05103763b29d85ab9987e87
595
py
Python
day22.py
p88h/aoc2017
a929a8c0894559b0d7dd3d0b58c076295087f4c8
[ "Unlicense" ]
1
2021-12-26T21:28:47.000Z
2021-12-26T21:28:47.000Z
day22.py
p88h/aoc2017
a929a8c0894559b0d7dd3d0b58c076295087f4c8
[ "Unlicense" ]
null
null
null
day22.py
p88h/aoc2017
a929a8c0894559b0d7dd3d0b58c076295087f4c8
[ "Unlicense" ]
null
null
null
import io grid = {} y = 0 x = 0 for l in io.open("day22.in").read().splitlines(): for x in range(len(l)): grid[(y,x)] = l[x] y += 1 y = y // 2 x = x // 2 dx = 0 dy = -1 r = 0 for iter in range(10000000): if (y,x) not in grid or grid[(y,x)] == '.': (dy, dx) = (-dx, dy) grid[(y,x)] = ...
19.833333
49
0.381513
104
595
2.182692
0.278846
0.220264
0.237885
0.132159
0.176211
0.176211
0.176211
0.176211
0.176211
0.176211
0
0.049351
0.352941
595
30
50
19.833333
0.54026
0
0
0
0
0
0.026846
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0.034483
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
136b2299eb41b7ded97c6048734842406f59258d
3,437
py
Python
ansys/dpf/core/errors.py
TheGoldfish01/pydpf-core
75ca8a180454f94cedafbc68c1d6f20dcfc4c795
[ "MIT" ]
11
2021-01-31T15:50:02.000Z
2021-10-01T23:15:38.000Z
ansys/dpf/core/errors.py
TheGoldfish01/pydpf-core
75ca8a180454f94cedafbc68c1d6f20dcfc4c795
[ "MIT" ]
46
2021-01-14T05:00:50.000Z
2021-10-06T18:30:37.000Z
ansys/dpf/core/errors.py
TheGoldfish01/pydpf-core
75ca8a180454f94cedafbc68c1d6f20dcfc4c795
[ "MIT" ]
3
2021-06-30T07:18:30.000Z
2021-09-15T08:43:11.000Z
from grpc._channel import _InactiveRpcError, _MultiThreadedRendezvous from functools import wraps _COMPLEX_PLOTTING_ERROR_MSG = """ Complex fields cannot be plotted. Use operators to get the amplitude or the result at a defined sweeping phase before plotting. """ _FIELD_CONTAINER_PLOTTING_MSG = """" This fields_conta...
28.882353
78
0.672971
400
3,437
5.51
0.3325
0.072595
0.089837
0.065336
0.245463
0.132486
0.106171
0.073503
0.03539
0
0
0
0.234507
3,437
118
79
29.127119
0.837704
0.21705
0
0.227273
0
0
0.18955
0.010679
0
0
0
0
0
1
0.181818
false
0
0.030303
0
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
136b533fe267643a58604244ebaf15ea2c8117bd
11
py
Python
ls10.py
yu961549745/pynote
5976aeeca6368c0956baddf6a9ccb93ae8e0612a
[ "MIT" ]
null
null
null
ls10.py
yu961549745/pynote
5976aeeca6368c0956baddf6a9ccb93ae8e0612a
[ "MIT" ]
null
null
null
ls10.py
yu961549745/pynote
5976aeeca6368c0956baddf6a9ccb93ae8e0612a
[ "MIT" ]
null
null
null
''' IO '''
2.75
3
0.181818
1
11
2
1
0
0
0
0
0
0
0
0
0
0
0
0.272727
11
3
4
3.666667
0.25
0.181818
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
136b5475110947f42e139d24c848b375d4d0e140
2,144
py
Python
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
from mumodo.mumodoIO import open_intervalframe_from_textgrid import numpy from deep_disfluency.utils.accuracy import wer final_file = open('wer_test.text', "w") ranges1 = [line.strip() for line in open( "/media/data/jh/simple_rnn_disf/rnn_disf_detection/data/disfluency_detection/swda_divisions_disfluency_detectio...
36.965517
158
0.619403
286
2,144
4.451049
0.304196
0.043991
0.027494
0.047133
0.383346
0.362922
0.362922
0.328358
0.328358
0.328358
0
0.0116
0.236007
2,144
57
159
37.614035
0.765568
0.097481
0
0.173913
0
0
0.326594
0.285122
0
0
0
0
0
0
null
null
0
0.065217
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
136b8fe5a8aa80e827bc10eb9537bdf94b4fdc81
1,541
py
Python
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
13
2020-08-30T10:52:29.000Z
2021-08-18T12:20:39.000Z
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
null
null
null
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
1
2021-06-07T04:01:37.000Z
2021-06-07T04:01:37.000Z
from dataclasses import dataclass from dataclasses import field from time import time from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Tuple @dataclass class NewUser: """Deals with the commands the user is currently ...
22.661765
81
0.668397
215
1,541
4.632558
0.353488
0.048193
0.096386
0.056225
0.196787
0.196787
0.160643
0.160643
0.160643
0.160643
0
0
0.21804
1,541
67
82
23
0.826556
0.176509
0
0.386364
0
0
0.162641
0
0
0
0
0
0
1
0.090909
false
0
0.204545
0.090909
0.886364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
136bbda00809274a9f8b16997fd9b06b349771f8
3,754
py
Python
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
5
2015-09-23T10:05:29.000Z
2016-04-07T17:08:38.000Z
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
null
null
null
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
null
null
null
from .document_summary import definition as document_summary_definition from .organization_summary import definition as organization_summmary_definition definition = { "where": "?subj a foaf:Person .", "fields": { "name": { "where": "?subj rdfs:label ?obj ." }, #Contact info...
33.221239
80
0.34017
245
3,754
5.155102
0.261224
0.135392
0.061758
0.047506
0.304038
0.186857
0.186857
0.136184
0.136184
0.136184
0
0.01627
0.541556
3,754
112
81
33.517857
0.717606
0.003197
0
0.363636
0
0
0.546378
0
0
0
0
0
0
1
0
false
0
0.018182
0
0.018182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1