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
d047f9056296195ca1f09735ef7bda60311c80bc
1,048
py
Python
tsheets/error.py
eturpin/api_python
fac15d06ef2510972ed3c812bb16a675d4e30e3c
[ "MIT" ]
6
2018-12-16T19:53:57.000Z
2020-11-22T12:36:57.000Z
tsheets/error.py
eturpin/api_python
fac15d06ef2510972ed3c812bb16a675d4e30e3c
[ "MIT" ]
6
2019-02-01T13:51:59.000Z
2020-11-23T22:42:57.000Z
tsheets/error.py
eturpin/api_python
fac15d06ef2510972ed3c812bb16a675d4e30e3c
[ "MIT" ]
8
2018-12-16T19:53:48.000Z
2021-11-24T17:08:04.000Z
class TSheetsError(Exception): """Exception Class to handle the failure of the request.""" def __init__(self, base_exception=None): self.base_exception = base_exception def __str__(self): if self.base_exception: return str(self.base_exception) return "An unknown error...
26.2
63
0.610687
111
1,048
5.486486
0.324324
0.213465
0.223317
0.049261
0.197044
0.197044
0
0
0
0
0
0.004104
0.302481
1,048
40
64
26.2
0.829001
0.050573
0
0.321429
0
0
0.038423
0
0
0
0
0
0
1
0.142857
false
0.107143
0
0
0.392857
0
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
1
0
0
0
0
0
3
d0490aa4c9010ab9a0f7062a8ea3ebc78b374cec
131
py
Python
reg/compat.py
nandoflorestan/reg
04779923d5f9dcf71cbc7f61f17d3994575476f7
[ "BSD-3-Clause" ]
null
null
null
reg/compat.py
nandoflorestan/reg
04779923d5f9dcf71cbc7f61f17d3994575476f7
[ "BSD-3-Clause" ]
null
null
null
reg/compat.py
nandoflorestan/reg
04779923d5f9dcf71cbc7f61f17d3994575476f7
[ "BSD-3-Clause" ]
null
null
null
"""Compatibility support for Python 2 and 3.""" try: string_types = (basestring,) except NameError: string_types = (str,)
18.714286
47
0.679389
16
131
5.4375
0.875
0.252874
0
0
0
0
0
0
0
0
0
0.018868
0.19084
131
6
48
21.833333
0.801887
0.312977
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
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
d06bdeeb309d0a1d9ddf41fcf20fb62fee1e63c2
12,477
py
Python
utils/metrics.py
lindsey98/dml_cross_entropy
4312cb295e972abda7b0e2bdadecf1965c5d7ed5
[ "BSD-3-Clause" ]
null
null
null
utils/metrics.py
lindsey98/dml_cross_entropy
4312cb295e972abda7b0e2bdadecf1965c5d7ed5
[ "BSD-3-Clause" ]
null
null
null
utils/metrics.py
lindsey98/dml_cross_entropy
4312cb295e972abda7b0e2bdadecf1965c5d7ed5
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, List, Optional import faiss import numpy as np import torch import torch.nn.functional as F import sklearn.cluster import sklearn.metrics.cluster from utils.map import * class AverageMeter: """Computes and stores the average and current value on device""" def __init__(self, device, l...
37.581325
162
0.639817
1,625
12,477
4.713846
0.145231
0.058747
0.023499
0.018799
0.751958
0.737076
0.706397
0.686684
0.671671
0.657702
0
0.008307
0.266731
12,477
331
163
37.694864
0.828943
0.281558
0
0.575916
0
0
0.031877
0
0
0
0
0
0
1
0.078534
false
0
0.041885
0.020942
0.193717
0.010471
0
0
0
null
0
0
0
0
1
1
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
0
0
0
0
0
0
3
d0814f9456630ab516efd82248ecd4c4ebd9c627
999
py
Python
q2_decontam/tests/test_decontam.py
HSapers/q2-decontam
240cfb8dd493e9460b51841ec2d4a142c7be452e
[ "Apache-2.0" ]
2
2021-09-22T04:01:12.000Z
2021-09-22T19:30:48.000Z
q2_decontam/tests/test_decontam.py
HSapers/q2-decontam
240cfb8dd493e9460b51841ec2d4a142c7be452e
[ "Apache-2.0" ]
3
2021-10-20T00:38:58.000Z
2021-12-14T01:19:32.000Z
q2_decontam/tests/test_decontam.py
HSapers/q2-decontam
240cfb8dd493e9460b51841ec2d4a142c7be452e
[ "Apache-2.0" ]
1
2021-09-21T23:22:09.000Z
2021-09-21T23:22:09.000Z
# Copyright 2021 Haley Sapers # # 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...
43.434783
107
0.758759
155
999
4.851613
0.664516
0.079787
0.034574
0.042553
0
0
0
0
0
0
0
0.009864
0.188188
999
23
107
43.434783
0.917386
0.80981
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
d0c57424da49064ef17c77c9a01367762290009d
1,495
py
Python
python_parikshith21/Day36.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_parikshith21/Day36.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_parikshith21/Day36.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 14 20:08:32 2019 @author: Parikshith.H """ class Date: def __init__(self,day,month,year): self.__day=day self.__month=month self.__year=year def get_day(self): return self.__day def get_month(self): return self.__month...
24.916667
79
0.563211
204
1,495
3.794118
0.215686
0.046512
0.108527
0.03876
0
0
0
0
0
0
0
0.075939
0.216054
1,495
59
80
25.338983
0.584471
0.207358
0
0
0
0
0.004284
0
0
0
0
0
0
1
0.333333
false
0
0
0.142857
0.52381
0.071429
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
d0c8e9eb24e781c0757e2fb808695f57a0f16520
154
py
Python
tests/test_load.py
DigitalSlideArchive/DSA-WSI-DeID
aef0067690a7708092ee7d1d3fb1246c9c37cd5b
[ "Apache-2.0" ]
3
2020-10-19T16:37:47.000Z
2021-09-23T15:21:40.000Z
tests/test_load.py
DigitalSlideArchive/DSA-WSI-DeID
aef0067690a7708092ee7d1d3fb1246c9c37cd5b
[ "Apache-2.0" ]
71
2020-09-17T14:48:06.000Z
2022-02-10T21:08:12.000Z
tests/test_load.py
DigitalSlideArchive/NCI-SEER-Pediatric-WSI-Pilot
c4413e6022f2db45166a8633d9aa03b41331fca9
[ "Apache-2.0" ]
3
2021-07-01T21:45:54.000Z
2021-09-03T14:48:58.000Z
import pytest from girder.plugin import loadedPlugins @pytest.mark.plugin('wsi_deid') def test_import(server): assert 'wsi_deid' in loadedPlugins()
19.25
40
0.779221
21
154
5.571429
0.666667
0.119658
0
0
0
0
0
0
0
0
0
0
0.123377
154
7
41
22
0.866667
0
0
0
0
0
0.103896
0
0
0
0
0
0.2
1
0.2
false
0
0.6
0
0.8
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
1
0
0
0
0
3
d0cdca44e3942d5b819bce0b21f482af1565d9ec
23
py
Python
config.example.py
NCPlayz/TeleDanny
aef41b876c65d4f71814a3ad1251d19b949b67fd
[ "MIT" ]
2
2020-07-08T23:20:47.000Z
2020-07-09T14:57:35.000Z
config.example.py
NCPlayz/rapptzcord-telegram-bot
aef41b876c65d4f71814a3ad1251d19b949b67fd
[ "MIT" ]
null
null
null
config.example.py
NCPlayz/rapptzcord-telegram-bot
aef41b876c65d4f71814a3ad1251d19b949b67fd
[ "MIT" ]
1
2021-05-23T10:01:40.000Z
2021-05-23T10:01:40.000Z
token = "" owners = []
7.666667
11
0.478261
2
23
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.26087
23
2
12
11.5
0.647059
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
0
0
0
3
d0da97391e0ee2ecd8701065e5d52b106ff0fefc
188
py
Python
helpers/__init__.py
addisonhuddy/gatech-teamfin
7e35cbee997cef3e1bea8834811a0585f5ce33b1
[ "Apache-2.0" ]
null
null
null
helpers/__init__.py
addisonhuddy/gatech-teamfin
7e35cbee997cef3e1bea8834811a0585f5ce33b1
[ "Apache-2.0" ]
null
null
null
helpers/__init__.py
addisonhuddy/gatech-teamfin
7e35cbee997cef3e1bea8834811a0585f5ce33b1
[ "Apache-2.0" ]
null
null
null
import os import glob from FHIR import FHIR modules = glob.glob(os.path.dirname(__file__) + "/*.py") __all__ = [os.path.basename(fname)[:-3] for fname in modules if os.path.isfile(fname)]
31.333333
86
0.728723
31
188
4.16129
0.580645
0.139535
0
0
0
0
0
0
0
0
0
0.006024
0.117021
188
5
87
37.6
0.771084
0
0
0
0
0
0.026596
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
0
0
1
0
1
0
0
3
d0fb7538cb4b0b2afd469f56cc2e9ccca085b323
1,116
py
Python
cadence/tests/test_register_signal.py
simkimsia/temporal-python-sdk
6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263
[ "MIT" ]
141
2019-05-01T00:19:22.000Z
2022-03-29T13:30:31.000Z
cadence/tests/test_register_signal.py
simkimsia/temporal-python-sdk
6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263
[ "MIT" ]
19
2019-08-10T08:19:30.000Z
2021-05-26T01:38:39.000Z
cadence/tests/test_register_signal.py
simkimsia/temporal-python-sdk
6b35da3eb0d3da87d61c1ce0ff8b33f08e8c3263
[ "MIT" ]
29
2019-05-15T03:44:09.000Z
2022-03-29T21:36:17.000Z
import pytest from cadence.worker import Worker from cadence.workflow import signal_method class TestWorkflow: @signal_method() def the_signal_method(self): pass @pytest.fixture def worker(): return Worker() def test_register_init_signal_methods(worker): worker.register_workflow_implemen...
26.571429
108
0.793011
122
1,116
6.885246
0.262295
0.128571
0.107143
0.171429
0.536905
0.489286
0.346429
0.346429
0.346429
0.346429
0
0
0.136201
1,116
41
109
27.219512
0.871369
0
0
0.269231
0
0
0.060932
0.053763
0
0
0
0
0.153846
1
0.269231
false
0.076923
0.115385
0.038462
0.5
0
0
0
0
null
0
0
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
1
0
1
0
0
0
0
0
3
d0fe2f0af0f0dbfd1f686f7738fc178b608c3dd5
309
py
Python
kubernetes_typed/client/models/v1_persistent_volume_status.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_persistent_volume_status.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_persistent_volume_status.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1PersistentVolumeStatusDict generated type.""" from typing import TypedDict V1PersistentVolumeStatusDict = TypedDict( "V1PersistentVolumeStatusDict", { "message": str, "phase": str, "reason": str, }, total=False, )
22.071429
50
0.660194
25
309
8.16
0.76
0.362745
0
0
0
0
0
0
0
0
0
0.012552
0.226537
309
13
51
23.769231
0.841004
0.297735
0
0
1
0
0.218009
0.132701
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
1
0
0
null
1
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
3
ef7b50ee65610a38bd7bbe34677e51453a8bcab4
523
py
Python
admin-portal/clients/models.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
admin-portal/clients/models.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
admin-portal/clients/models.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
1
2021-09-19T10:58:17.000Z
2021-09-19T10:58:17.000Z
from django.db import models class Client(models.Model): name = models.CharField(max_length=30) father_name = models.CharField(max_length=30) date_of_birth = models.DateField() address = models.CharField(blank=True, max_length=100) cnic = models.CharField(blank=True, max_length=15) contact = m...
30.764706
82
0.686424
67
523
5.179104
0.58209
0.216138
0.15562
0.207493
0.363112
0.363112
0
0
0
0
0
0.035129
0.183556
523
16
83
32.6875
0.777518
0
0
0
0
0
0.053537
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.076923
0.846154
0
0
0
0
null
1
0
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
1
0
0
3
ef7c81824c27fe988158b5992e3a2ca1916e9054
364
py
Python
test_merge_intervals.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
test_merge_intervals.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
2
2019-11-13T19:55:49.000Z
2019-11-13T19:55:57.000Z
test_merge_intervals.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
from unittest import TestCase from merge_intervals import Solution class TestMergeIntervals(TestCase): def test_two_overlapping_intervals(self): self.assertEqual(Solution().merge([[1, 3], [2, 6]]), [[1, 6]]) def test_two_overlapping_intervals_that_share_an_endpoint(self): self.assertEqual(So...
30.333333
70
0.700549
48
364
5.083333
0.520833
0.057377
0.081967
0.172131
0.516393
0.270492
0
0
0
0
0
0.03871
0.148352
364
11
71
33.090909
0.748387
0
0
0
0
0
0
0
0
0
0
0
0.285714
1
0.285714
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
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
1
0
0
0
0
1
0
0
3
efa34f1d9c69a60888cfafd9413ed3c52269a776
19
py
Python
src/config.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
src/config.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
src/config.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
DISCORD_TOKEN = ''
9.5
18
0.684211
2
19
6
1
0
0
0
0
0
0
0
0
0
0
0
0.157895
19
1
19
19
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
0
0
0
3
efd296d58a8ae7cf8519df40b0ea7a17e3bb4477
1,789
py
Python
sift-odk-importer/api/models.py
readevalprint/sift
3015a2f704816a687a7c0f1974b873d7cda43444
[ "Apache-2.0" ]
1
2020-02-04T04:28:09.000Z
2020-02-04T04:28:09.000Z
sift-odk-importer/api/models.py
readevalprint/sift
3015a2f704816a687a7c0f1974b873d7cda43444
[ "Apache-2.0" ]
3
2020-06-05T17:34:59.000Z
2021-06-10T22:45:45.000Z
sift-odk-importer/api/models.py
readevalprint/sift
3015a2f704816a687a7c0f1974b873d7cda43444
[ "Apache-2.0" ]
null
null
null
from hashlib import md5 from django.conf import settings from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from django.core.exceptions import ValidationError import xmltodict def validate_xmldict(value): try: xmltodict.parse(value) assert...
30.322034
120
0.666294
237
1,789
4.936709
0.472574
0.042735
0.015385
0.025641
0.037607
0.02735
0
0
0
0
0
0.003531
0.208496
1,789
58
121
30.844828
0.82274
0.089435
0
0.205128
0
0
0.098442
0.019315
0
0
0
0.017241
0.025641
1
0.153846
false
0
0.179487
0.102564
0.615385
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
1
0
0
0
0
0
0
1
1
0
0
3
4bdd1936de55064551d58a8b410ce591fa2b657a
573
py
Python
test/test_arithmetictest.py
octoandzl/test_package
d959b5388ac57dc49d1ceca63caca8e1d369f08c
[ "MIT" ]
null
null
null
test/test_arithmetictest.py
octoandzl/test_package
d959b5388ac57dc49d1ceca63caca8e1d369f08c
[ "MIT" ]
null
null
null
test/test_arithmetictest.py
octoandzl/test_package
d959b5388ac57dc49d1ceca63caca8e1d369f08c
[ "MIT" ]
null
null
null
from pytest import fixture @fixture def add(): from arithmetictest import add return add @fixture def substract(): from arithmetictest import subtract return subtract @fixture def multiply(): from arithmetictest import multiply return multiply @fixture def division(): from arithmetictest...
16.852941
39
0.727749
76
573
5.434211
0.223684
0.096852
0.232446
0
0
0
0
0
0
0
0
0.025806
0.188482
573
33
40
17.363636
0.862366
0
0
0.16
0
0
0
0
0
0
0
0
0.16
1
0.32
false
0
0.2
0
0.68
0
0
0
0
null
0
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
1
0
0
0
0
1
0
0
3
ef00acf8142a46e04f0ee41def959a2e65acf632
5,091
py
Python
environment/connect_five/envs/connect_five_env.py
amichelmore/ConnectFive
0b782bbe6a78e35cd82dff19db6a8d41bf19f17c
[ "MIT" ]
null
null
null
environment/connect_five/envs/connect_five_env.py
amichelmore/ConnectFive
0b782bbe6a78e35cd82dff19db6a8d41bf19f17c
[ "MIT" ]
null
null
null
environment/connect_five/envs/connect_five_env.py
amichelmore/ConnectFive
0b782bbe6a78e35cd82dff19db6a8d41bf19f17c
[ "MIT" ]
null
null
null
import gym from gym import error, spaces, utils from gym.utils import seeding class FooEnv(gym.Env): metadata = {'render.modes': ['human']} def __init__(self): self.state = [] for i in range(19): self.state += [[]] for j in range(19): self.st...
36.364286
194
0.426832
698
5,091
3.104585
0.113181
0.286571
0.281495
0.22335
0.693586
0.656668
0.656668
0.623904
0.54084
0.47808
0
0.040568
0.418975
5,091
140
195
36.364286
0.692022
0.024946
0
0.532258
0
0
0.023439
0
0
0
0
0
0
1
0.040323
false
0
0.024194
0
0.169355
0.185484
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
ef22a74efb47ada4dc3a623769ddf1b6d82b21c1
1,001
py
Python
src/Task 2.1 - Authentication Service/src/GPG_Functions.py
Darker97/Virtual-Shop
7682feb8257856f2c2960bfb5773a8603432c8c6
[ "MIT" ]
null
null
null
src/Task 2.1 - Authentication Service/src/GPG_Functions.py
Darker97/Virtual-Shop
7682feb8257856f2c2960bfb5773a8603432c8c6
[ "MIT" ]
1
2020-01-14T14:08:55.000Z
2020-01-14T14:08:55.000Z
src/Task 2.1 - Authentication Service/src/GPG_Functions.py
Darker97/Virtual-Shop
7682feb8257856f2c2960bfb5773a8603432c8c6
[ "MIT" ]
1
2022-02-27T15:13:59.000Z
2022-02-27T15:13:59.000Z
from Crypto import Random from Crypto.PublicKey import RSA import base64 class GPG_Functions: # Generates the keys we need def createKeys(): # RSA modulus length must be a multiple of 256 and >= 1024 modulus_length = 256*4 # use larger value in production privatekey = RSA.generate(modul...
32.290323
96
0.633367
118
1,001
5.313559
0.516949
0.044657
0.051037
0
0
0
0
0
0
0
0
0.034621
0.24975
1,001
31
97
32.290323
0.800266
0.201798
0
0.086957
1
0
0
0
0
0
0
0
0
1
0.217391
false
0
0.130435
0
0.608696
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
0
1
0
0
3
ef2cba57040fddadb1392f44ca521fc27df1376d
127
py
Python
src/test/python/antidotedb_test/__init__.py
AntidoteDB/antidote-python-client
b30f66131a729ee175c53bd2babcc5b15197904a
[ "Apache-2.0" ]
2
2019-01-26T00:38:08.000Z
2020-06-17T13:21:04.000Z
src/test/python/antidotedb_test/__init__.py
AntidoteDB/antidote-python-client
b30f66131a729ee175c53bd2babcc5b15197904a
[ "Apache-2.0" ]
1
2022-01-29T21:34:40.000Z
2022-01-30T14:59:36.000Z
src/test/python/antidotedb_test/__init__.py
AntidoteDB/antidote-python-client
b30f66131a729ee175c53bd2babcc5b15197904a
[ "Apache-2.0" ]
6
2019-02-25T18:08:05.000Z
2020-03-21T18:32:31.000Z
import sys from os.path import dirname sys.path.append(f"{dirname(__file__)}/../../../main/python/") name = "antidotedb_test"
21.166667
61
0.708661
18
127
4.722222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.086614
127
5
62
25.4
0.732759
0
0
0
0
0
0.440945
0.322835
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ef419006329535abf7d72c5d6105315da912686b
146
py
Python
grassseed.py
Edelio-Taboada/edelio-taboada-kattis-solutions
612a663b59cfd1ce9409e1960769f31c0485df2b
[ "Unlicense" ]
null
null
null
grassseed.py
Edelio-Taboada/edelio-taboada-kattis-solutions
612a663b59cfd1ce9409e1960769f31c0485df2b
[ "Unlicense" ]
null
null
null
grassseed.py
Edelio-Taboada/edelio-taboada-kattis-solutions
612a663b59cfd1ce9409e1960769f31c0485df2b
[ "Unlicense" ]
null
null
null
c = float(input()) n = int(input()) t=0 for each in range(n): h,w = list(map(float, input().split())) t+= h*w*c print("{:.8f}".format(t))
18.25
43
0.541096
28
146
2.821429
0.678571
0.253165
0
0
0
0
0
0
0
0
0
0.016667
0.178082
146
7
44
20.857143
0.641667
0
0
0
0
0
0.041096
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
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
ef461c3cf44c356824c584cf2037c69c2257fa17
127
py
Python
nextcode/services/phenotype/exceptions.py
Haffi/nextcode-python-sdk
b70baa848cb6326fb0e7ee0e4167c41dcc45e085
[ "MIT" ]
7
2019-10-23T17:22:50.000Z
2021-04-17T21:44:28.000Z
nextcode/services/phenotype/exceptions.py
Haffi/nextcode-python-sdk
b70baa848cb6326fb0e7ee0e4167c41dcc45e085
[ "MIT" ]
8
2019-11-07T16:41:01.000Z
2021-09-13T14:33:28.000Z
nextcode/services/phenotype/exceptions.py
Haffi/nextcode-python-sdk
b70baa848cb6326fb0e7ee0e4167c41dcc45e085
[ "MIT" ]
4
2019-11-08T13:59:55.000Z
2021-11-07T13:49:21.000Z
""" Exceptions ~~~~~~~~~~ Custom exceptions raised by the phenotype service. """ class PhenotypeError(Exception): pass
10.583333
50
0.669291
12
127
7.083333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.173228
127
11
51
11.545455
0.809524
0.574803
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
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
1
1
0
0
0
0
0
3
ef468ff9d05a7919d157862e618ac71a2920faed
1,216
py
Python
pymoo/model/termination.py
temaurer/pymoo
1a2f3e0944ef7094df7518623e3ce23f94a39a39
[ "Apache-2.0" ]
null
null
null
pymoo/model/termination.py
temaurer/pymoo
1a2f3e0944ef7094df7518623e3ce23f94a39a39
[ "Apache-2.0" ]
null
null
null
pymoo/model/termination.py
temaurer/pymoo
1a2f3e0944ef7094df7518623e3ce23f94a39a39
[ "Apache-2.0" ]
null
null
null
from pymoo.indicators.igd import IGD class Termination: def __init__(self) -> None: super().__init__() self.flag = True def do_continue(self, D): return self.flag and self._do_continue(D) def has_finished(self, D): return not self.do_continue(D) class MaximumFunctionCa...
23.843137
102
0.652961
162
1,216
4.512346
0.320988
0.043776
0.065663
0.120383
0.298222
0.240766
0.112175
0
0
0
0
0
0.247533
1,216
50
103
24.32
0.798907
0
0
0.225806
0
0
0.059259
0
0
0
0
0
0
1
0.290323
false
0
0.032258
0.129032
0.612903
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
ef5e8106892ddae27b9e2a25dc7833835b565130
77
py
Python
bo/testing.py
stjordanis/JTVAE
b53071841815ea47817b8f837ca789ac9f624df0
[ "MIT" ]
1
2020-10-15T12:40:39.000Z
2020-10-15T12:40:39.000Z
bo/testing.py
stjordanis/JTVAE
b53071841815ea47817b8f837ca789ac9f624df0
[ "MIT" ]
null
null
null
bo/testing.py
stjordanis/JTVAE
b53071841815ea47817b8f837ca789ac9f624df0
[ "MIT" ]
null
null
null
from inference import inference a=inference('./cancer_drugs_1.txt') print(a)
19.25
35
0.792208
12
77
4.916667
0.75
0
0
0
0
0
0
0
0
0
0
0.014085
0.077922
77
3
36
25.666667
0.816901
0
0
0
0
0
0.25974
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
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
1
0
0
0
0
3
ef5f39f94e9305ca95998d7d3a23a3254a841dbb
1,142
py
Python
load.py
parinithshekar/traffic-prediction
685dbf81a8edd55b302d778d4fb305e215384b15
[ "Apache-2.0" ]
2
2020-07-07T05:06:50.000Z
2020-11-19T19:41:22.000Z
load.py
parinithshekar/traffic-prediction
685dbf81a8edd55b302d778d4fb305e215384b15
[ "Apache-2.0" ]
null
null
null
load.py
parinithshekar/traffic-prediction
685dbf81a8edd55b302d778d4fb305e215384b15
[ "Apache-2.0" ]
null
null
null
from keras import backend as K from keras.models import load_model from models.keras_ssd300 import ssd_300 from keras_loss_function.keras_ssd_loss import SSDLoss from keras_layers.keras_layer_AnchorBoxes import AnchorBoxes from keras_layers.keras_layer_DecodeDetections import DecodeDetections from keras_layers.keras_l...
47.583333
87
0.710158
142
1,142
5.464789
0.422535
0.081186
0.07732
0.103093
0.128866
0
0
0
0
0
0
0.021839
0.238179
1,142
24
88
47.583333
0.870115
0.154991
0
0
0
0
0.080042
0.023909
0
0
0
0.041667
0
1
0.058824
false
0
0.470588
0
0.588235
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
1
0
0
0
0
0
1
0
1
0
0
3
ef66fc20874ae9f2fd347b8c5fc476f91d973448
154
py
Python
gtm_manager/utils.py
trakken/gtm_manager
4825cc87daf36bf2feeae8c463243b128008e36f
[ "MIT" ]
7
2018-12-14T11:05:44.000Z
2021-12-03T18:33:17.000Z
gtm_manager/utils.py
trakken/gtm_manager
4825cc87daf36bf2feeae8c463243b128008e36f
[ "MIT" ]
2
2019-07-16T09:40:47.000Z
2019-08-22T20:57:04.000Z
gtm_manager/utils.py
trakken/gtm_manager
4825cc87daf36bf2feeae8c463243b128008e36f
[ "MIT" ]
3
2021-07-21T07:55:50.000Z
2022-01-14T12:54:02.000Z
"""utils.py""" def param_dict(param_list): """param_dict""" dct = {} for param in param_list: dct[param.key] = param return dct
15.4
30
0.571429
21
154
4
0.52381
0.214286
0
0
0
0
0
0
0
0
0
0
0.272727
154
9
31
17.111111
0.75
0.123377
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
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
324d14bf9b43336993cb14be1a7ebcb782e05bb9
637
py
Python
python/challenges/datastructures/trees-height.py
KoderDojo/hackerrank
fc5ef49cd3e2c7af3f8ff864217f6ad0550760f3
[ "MIT" ]
1
2018-03-14T09:56:08.000Z
2018-03-14T09:56:08.000Z
python/challenges/datastructures/trees-height.py
KoderDojo/hackerrank
fc5ef49cd3e2c7af3f8ff864217f6ad0550760f3
[ "MIT" ]
null
null
null
python/challenges/datastructures/trees-height.py
KoderDojo/hackerrank
fc5ef49cd3e2c7af3f8ff864217f6ad0550760f3
[ "MIT" ]
null
null
null
""" Get Height of Binary Tree """ class Node: def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right def get_height(root): """ >>> assert(get_height(None) == -1) >>> root = Node(1) >>> assert(get_height(root) == 0) >>> ro...
20.548387
52
0.563579
88
637
3.909091
0.272727
0.209302
0.226744
0.165698
0.081395
0
0
0
0
0
0
0.025696
0.266876
637
30
53
21.233333
0.710921
0.386185
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.454545
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
3257cd2b6d91adb5631a4cba72139b4b7b84f857
596
py
Python
okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/magpie/targets/magpie/generic_target.py
CyberQueenMara/baseband-research
e1605537e10c37e161fff1a3416b908c9894f204
[ "MIT" ]
77
2018-12-31T22:12:09.000Z
2021-12-31T22:56:13.000Z
okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/magpie/targets/magpie/generic_target.py
CyberQueenMara/baseband-research
e1605537e10c37e161fff1a3416b908c9894f204
[ "MIT" ]
null
null
null
okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/magpie/targets/magpie/generic_target.py
CyberQueenMara/baseband-research
e1605537e10c37e161fff1a3416b908c9894f204
[ "MIT" ]
24
2019-01-20T15:51:52.000Z
2021-12-25T18:29:13.000Z
# Magpie generic mode # FIXME: This should go! from generator.v4generator import V4Generator from targets import base from targets.idl4 import generic_biguuid_l4v4_target as v4big import targets.idl4.generic_l4v4_target as generic Generator = V4Generator class Templates(base.Templates, v4big.SharedTemplates, v4big.C...
31.368421
120
0.786913
75
596
6.16
0.533333
0.08658
0.051948
0
0
0
0
0
0
0
0
0.024904
0.124161
596
18
121
33.111111
0.860153
0.244966
0
0
0
0
0.121005
0.075342
0
0
0
0.055556
0
1
0
false
0
0.444444
0
0.888889
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
1
0
0
0
0
0
1
0
1
0
0
3
326b79c0309101ba3f234122052dd8b143ce0f36
925
py
Python
ipgen/rtl_converter/interfaces.py
PyHDI/ipgen
811bdcfae61c6003dfc5f9b90ba7660a6f74a109
[ "Apache-2.0" ]
20
2015-11-13T02:01:18.000Z
2021-11-22T01:50:37.000Z
ipgen/rtl_converter/interfaces.py
PyHDI/ipgen
811bdcfae61c6003dfc5f9b90ba7660a6f74a109
[ "Apache-2.0" ]
1
2018-11-01T15:14:18.000Z
2018-11-01T15:14:18.000Z
ipgen/rtl_converter/interfaces.py
PyHDI/ipgen
811bdcfae61c6003dfc5f9b90ba7660a6f74a109
[ "Apache-2.0" ]
5
2017-04-11T04:33:57.000Z
2019-02-07T06:41:31.000Z
class Interface(object): def __init__(self, name, idx, addrwidth, datawidth, lite=False): self.name = name self.idx = idx self.datawidth = datawidth self.addrwidth = addrwidth self.lite = lite def __repr__(self): ret = [] ret.append('(') ret.appen...
28.030303
68
0.555676
103
925
4.815534
0.242718
0.326613
0.145161
0.217742
0.173387
0
0
0
0
0
0
0
0.291892
925
32
69
28.90625
0.757252
0
0
0.166667
0
0
0.045405
0
0
0
0
0
0
1
0.066667
false
0.066667
0
0
0.2
0
0
0
0
null
1
0
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
1
0
0
0
0
0
3
32950399c6bbfd9e057eb2128a5de1d58972242b
243
py
Python
Chapter12/Exercise12.01/bookr/reviews/api_views.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
97
2021-03-01T12:54:30.000Z
2022-03-28T02:57:26.000Z
Chapter12/Exercise12.01/bookr/reviews/api_views.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
81
2020-08-27T04:56:04.000Z
2022-03-12T00:53:40.000Z
Chapter12/Exercise12.01/bookr/reviews/api_views.py
PacktPublishing/Web-Development-Projects-with-Django
531bc4d58d614888cc81b7fd6f8ec859f5a65217
[ "MIT" ]
163
2020-12-25T14:38:38.000Z
2022-03-30T10:31:40.000Z
from rest_framework.decorators import api_view from rest_framework.response import Response from .models import Book @api_view() def first_api_view(request): num_books = Book.objects.count() return Response({"num_books": num_books})
24.3
46
0.786008
35
243
5.2
0.514286
0.115385
0.186813
0
0
0
0
0
0
0
0
0
0.127572
243
9
47
27
0.858491
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
0
0
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
0
0
1
0
0
0
0
3
329dcc16e6958f02d157c9e7f037db4b1571e295
21
py
Python
crawlers/management/__init__.py
utsavnarayan/open2study
8ebee0040e478b6192d8d4bfcbe5ea47d6007053
[ "MIT" ]
null
null
null
crawlers/management/__init__.py
utsavnarayan/open2study
8ebee0040e478b6192d8d4bfcbe5ea47d6007053
[ "MIT" ]
null
null
null
crawlers/management/__init__.py
utsavnarayan/open2study
8ebee0040e478b6192d8d4bfcbe5ea47d6007053
[ "MIT" ]
null
null
null
__author__ = 'utsav'
10.5
20
0.714286
2
21
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.611111
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
0
0
0
3
329fee97ae847636b2317adc17c35edb8fdd1abe
58
py
Python
ramda/split.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
1
2022-03-14T07:35:13.000Z
2022-03-14T07:35:13.000Z
ramda/split.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
3
2022-03-24T02:30:18.000Z
2022-03-31T07:46:04.000Z
ramda/split.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
null
null
null
from .invoker import invoker split = invoker(1, 'split')
14.5
28
0.724138
8
58
5.25
0.625
0
0
0
0
0
0
0
0
0
0
0.020408
0.155172
58
3
29
19.333333
0.836735
0
0
0
0
0
0.086207
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
086e3777191cf2bbbe0e9877bd3d4477635a8d11
56
py
Python
examples/ada.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
3
2022-01-21T00:08:02.000Z
2022-03-09T19:00:26.000Z
examples/ada.py
krishols/designer
8f80b3309802d16d8577280274e0c9fa02db306b
[ "MIT" ]
24
2021-08-13T17:09:15.000Z
2022-01-05T16:12:09.000Z
examples/ada.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
null
null
null
from designer import * ada = image('ada.png') draw(ada)
14
22
0.696429
9
56
4.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.142857
56
4
23
14
0.8125
0
0
0
0
0
0.122807
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
087c64ea2da8fb0bdfe29065603490c664252e33
875
py
Python
align/users/views.py
Robbie1977/AlignmentPipe
f7979cbf67a40619fd36ae1873c460439d7ecd64
[ "MIT" ]
null
null
null
align/users/views.py
Robbie1977/AlignmentPipe
f7979cbf67a40619fd36ae1873c460439d7ecd64
[ "MIT" ]
18
2015-03-03T15:55:37.000Z
2016-07-15T13:53:52.000Z
align/users/views.py
Robbie1977/AlignmentPipe
f7979cbf67a40619fd36ae1873c460439d7ecd64
[ "MIT" ]
null
null
null
from django.shortcuts import render_to_response from django.template.context import RequestContext from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect def home(request): return HttpResponseRedirect('/admin') # if not request.user == '': # try: # fn = Use...
39.772727
92
0.598857
86
875
5.988372
0.465116
0.128155
0.062136
0.135922
0.221359
0.221359
0.221359
0.221359
0
0
0
0.001582
0.277714
875
21
93
41.666667
0.813291
0.635429
0
0
0
0
0.019737
0
0
0
0
0
0
1
0.166667
false
0
0.666667
0.166667
1
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
1
1
1
0
0
3
0886a10438c3c56244fcf1940d315fc9a7549803
827
py
Python
Decision/RandomMovement.py
EdwardAlchikha/Capstone
2e6736d81b82e91f650029873fe10979f8e2ec95
[ "MIT" ]
null
null
null
Decision/RandomMovement.py
EdwardAlchikha/Capstone
2e6736d81b82e91f650029873fe10979f8e2ec95
[ "MIT" ]
null
null
null
Decision/RandomMovement.py
EdwardAlchikha/Capstone
2e6736d81b82e91f650029873fe10979f8e2ec95
[ "MIT" ]
null
null
null
from random import random from Actuation.IVehicleActuator import IVehicleActuator from Decision.IDecisionMaker import IDecisionMaker from Vision.ICamera import ICamera class RandomMovement(IDecisionMaker): def __init__(self, vehicle_actuator: IVehicleActuator, camera: ICamera): self._vehicle_actuator = ...
35.956522
105
0.726723
95
827
6.021053
0.284211
0.288462
0.332168
0.167832
0.440559
0.234266
0.234266
0.234266
0.234266
0.234266
0
0.008837
0.17896
827
22
106
37.590909
0.833579
0
0
0.125
0
0
0.007255
0
0
0
0
0
0
1
0.1875
false
0
0.25
0
0.5
0.125
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
0889df47644309244cea9009cfe1e90041bc37c5
432
py
Python
idp_schedule_provider/config.py
opusonesolutions/idp-schedule-provider
3755aade72e58daa487e181079008bfecf8c9685
[ "MIT" ]
null
null
null
idp_schedule_provider/config.py
opusonesolutions/idp-schedule-provider
3755aade72e58daa487e181079008bfecf8c9685
[ "MIT" ]
null
null
null
idp_schedule_provider/config.py
opusonesolutions/idp-schedule-provider
3755aade72e58daa487e181079008bfecf8c9685
[ "MIT" ]
null
null
null
import json import os from functools import lru_cache from typing import Dict from pydantic import BaseSettings class Settings(BaseSettings): jwt_algorithm: str = os.getenv("JWT_ALG", "HS256") jwt_secret_key: str = os.getenv("JWT_SECRET_KEY", "INSECURE_SECRET_KEY") jwt_clients: Dict[str, str] = json.load...
24
97
0.733796
61
432
4.967213
0.47541
0.079208
0.108911
0.092409
0
0
0
0
0
0
0
0.008086
0.141204
432
17
98
25.411765
0.808625
0
0
0
0
0
0.18287
0
0
0
0
0
0
1
0.083333
true
0
0.416667
0.083333
0.916667
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
1
0
1
0
0
3
0897064eef80c6f492f0e205413871b11855949a
890
py
Python
python/test/graph/test_bfs.py
CianLR/AlgorithmImplementations
8921437de7b673da737999c1f670975d7fea978e
[ "MIT" ]
1
2018-05-29T22:40:47.000Z
2018-05-29T22:40:47.000Z
python/test/graph/test_bfs.py
CianLR/AlgorithmImplementations
8921437de7b673da737999c1f670975d7fea978e
[ "MIT" ]
null
null
null
python/test/graph/test_bfs.py
CianLR/AlgorithmImplementations
8921437de7b673da737999c1f670975d7fea978e
[ "MIT" ]
1
2021-10-21T13:54:13.000Z
2021-10-21T13:54:13.000Z
import unittest from graph.bfs import Node, BFS class TestBFS(unittest.TestCase): def test_single_node(self): n = Node(0) self.assertIs(BFS(n, 1), None) self.assertIs(BFS(n, 0), n) def test_multi_node(self): graph = [Node(i) for i in xrange(10, 50, 10)] graph[0].add_a...
31.785714
54
0.591011
141
890
3.673759
0.312057
0.185328
0.23166
0.23166
0.355212
0.162162
0.162162
0
0
0
0
0.066465
0.25618
890
27
55
32.962963
0.716012
0.137079
0
0
0
0
0
0
0
0
0
0
0.421053
1
0.105263
false
0
0.105263
0
0.263158
0
0
0
0
null
0
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
1
0
0
0
0
0
0
0
0
0
3
0898e05169b1c48ceb56778d5f1a1e4d8592ae74
174
py
Python
04_exploration/solutions/08_solution.py
glemaitre/x_exed_03_2020
b7c9a8553460d8e5173e5af01cfe87e9c06870fa
[ "CC0-1.0" ]
null
null
null
04_exploration/solutions/08_solution.py
glemaitre/x_exed_03_2020
b7c9a8553460d8e5173e5af01cfe87e9c06870fa
[ "CC0-1.0" ]
4
2019-02-22T21:37:20.000Z
2019-03-12T13:20:29.000Z
04_exploration/solutions/08_solution.py
glemaitre/x_exed_03_2019
fd776a6b6768aaad896dd51dd9442f7b8786b7a7
[ "CC0-1.0" ]
1
2020-04-17T10:42:49.000Z
2020-04-17T10:42:49.000Z
(data.groupby('title').aggregate(['mean', 'count'])[['rating']] .sort_values(by=[('rating', 'count')], ascending=False) .head(1))
43.5
77
0.477011
16
174
5.125
0.875
0
0
0
0
0
0
0
0
0
0
0.008065
0.287356
174
3
78
58
0.653226
0
0
0
0
0
0.178161
0
0
0
0
0
0
1
0
true
0
0
0
0
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
0
0
0
0
0
3
089926c36350ae3b0b70848114a074f819294545
181
py
Python
Iniciante/1005_media1.py
tiagodemacedo/exercicios-uri-online-judge
bd25ca96881807fcc2de148b8e4428a24a808a6f
[ "MIT" ]
null
null
null
Iniciante/1005_media1.py
tiagodemacedo/exercicios-uri-online-judge
bd25ca96881807fcc2de148b8e4428a24a808a6f
[ "MIT" ]
null
null
null
Iniciante/1005_media1.py
tiagodemacedo/exercicios-uri-online-judge
bd25ca96881807fcc2de148b8e4428a24a808a6f
[ "MIT" ]
null
null
null
a = float(input()) b = float(input()) peso_nota_a = 3.5 peso_nota_b = 7.5 media = (a * peso_nota_a + b * peso_nota_b) / (peso_nota_a + peso_nota_b) print(f"MEDIA = {media:.5f}")
18.1
73
0.646409
36
181
2.916667
0.361111
0.457143
0.257143
0
0
0
0
0
0
0
0
0.033333
0.171271
181
9
74
20.111111
0.666667
0
0
0
0
0
0.104972
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
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
0
0
0
0
0
0
0
0
0
3
08a80ce12bec86a985ace8484d721bb6d8998181
1,388
py
Python
problems/341.flatten-nested-list-iterator/solution.py
mys1024/leetcode
e36976dec26cce7cffabc975eb08b41a657f90a0
[ "MIT" ]
null
null
null
problems/341.flatten-nested-list-iterator/solution.py
mys1024/leetcode
e36976dec26cce7cffabc975eb08b41a657f90a0
[ "MIT" ]
null
null
null
problems/341.flatten-nested-list-iterator/solution.py
mys1024/leetcode
e36976dec26cce7cffabc975eb08b41a657f90a0
[ "MIT" ]
null
null
null
# 341. 扁平化嵌套列表迭代器 # URL:https://leetcode-cn.com/problems/flatten-nested-list-iterator/ # 难度:中等 # 关键词:递归、扁平化、迭代器 # 执行用时:56 ms, 在所有 Python3 提交中击败了 87.02% 的用户 # 内存消耗:18.6 MB, 在所有 Python3 提交中击败了 5.44% 的用户 from __future__ import annotations from typing import List class NestedInteger: ''' 题目中 NestedInteger 接口的一个实现。 ...
27.76
68
0.685159
186
1,388
5.048387
0.424731
0.052183
0.054313
0.067093
0.057508
0.057508
0
0
0
0
0
0.01847
0.180836
1,388
49
69
28.326531
0.807388
0.273055
0
0
0
0
0
0
0
0
0
0
0
1
0.266667
false
0
0.066667
0.133333
0.6
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
08aff72d1e94f664c3de38795ac6ddc9f8792a5a
223
py
Python
ex026.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
ex026.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
ex026.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
f=str(input('Digite uma frase: ')).strip().upper() print('Tem {} A na frase.'.format(f.count('A'))) print('O primeiro A esta em {} letra.'.format(f.find('A')+1)) print('O ultimo A esta em {} letra.'.format(f.rfind('A')+1))
44.6
61
0.623318
41
223
3.390244
0.560976
0.151079
0.100719
0.172662
0.273381
0.273381
0
0
0
0
0
0.01
0.103139
223
4
62
55.75
0.685
0
0
0
0
0
0.434978
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
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
0
0
1
0
3
08dfb977d72bd09ef5e0e6a4a173d2610824f590
214
py
Python
printy/__main__.py
Tams-Tams/printy
19d8bce4901edac06778bf9adbbfdf2c049f275a
[ "MIT" ]
null
null
null
printy/__main__.py
Tams-Tams/printy
19d8bce4901edac06778bf9adbbfdf2c049f275a
[ "MIT" ]
null
null
null
printy/__main__.py
Tams-Tams/printy
19d8bce4901edac06778bf9adbbfdf2c049f275a
[ "MIT" ]
null
null
null
""" renders the helper text that shows some of the available functions by running python -m printy """ from printy import printy if __name__ == '__main__': from printy.helpme import helpme printy(helpme)
19.454545
66
0.738318
30
214
5
0.7
0.133333
0
0
0
0
0
0
0
0
0
0
0.191589
214
10
67
21.4
0.867052
0.439252
0
0
0
0
0.071429
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.75
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
1
0
0
1
0
3
3e96c22c5ce3a397ab9b67cef469f13d107f0755
176
py
Python
docs/FBON_integer_ranges.py
prollings/ttauri
51aa748eb52b72a06038ffa12952523cf3d4f9b6
[ "BSL-1.0" ]
null
null
null
docs/FBON_integer_ranges.py
prollings/ttauri
51aa748eb52b72a06038ffa12952523cf3d4f9b6
[ "BSL-1.0" ]
null
null
null
docs/FBON_integer_ranges.py
prollings/ttauri
51aa748eb52b72a06038ffa12952523cf3d4f9b6
[ "BSL-1.0" ]
null
null
null
bit_list = [19, 17, 16, 18, 26, 24, 22, 21, 23, 25] value = 5808 for bit in bit_list: new_value = value + 2 ** bit print(value, new_value-1) value = new_value
14.666667
51
0.596591
32
176
3.125
0.625
0.24
0.26
0
0
0
0
0
0
0
0
0.203125
0.272727
176
11
52
16
0.578125
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
1
1
0
0
0
0
0
0
0
0
1
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
3eb8eb26385d8344dceaa3fe08a1e2e2a29b2b48
220
py
Python
ACM-Solution/Lpthwex11.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
2
2016-04-26T15:40:40.000Z
2018-07-18T10:16:42.000Z
ACM-Solution/Lpthwex11.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2016-04-26T15:44:15.000Z
2016-04-29T14:44:40.000Z
LPTHWEX/Lpthwex11.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2018-10-02T16:12:19.000Z
2018-10-02T16:12:19.000Z
print ("How old are you?"), age = input() print ("How tall are you?"), height = input() print ("How much do you weigh?"), weight = input() print ("So you are %r old, %r tall and %r heavy!"%(age,weight,height) )
24.444444
72
0.604545
36
220
3.694444
0.472222
0.180451
0.195489
0
0
0
0
0
0
0
0
0
0.209091
220
8
73
27.5
0.764368
0
0
0
0
0
0.448113
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
0
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
0
0
0
0
0
1
0
3
3ec1422449dbbfc923b1bba7904e2ee34b68bfc7
136
py
Python
csvgb/coercions.py
bmccary/csvgb
dfe8c870291f50993fb12bf117725372dcdad123
[ "MIT" ]
null
null
null
csvgb/coercions.py
bmccary/csvgb
dfe8c870291f50993fb12bf117725372dcdad123
[ "MIT" ]
null
null
null
csvgb/coercions.py
bmccary/csvgb
dfe8c870291f50993fb12bf117725372dcdad123
[ "MIT" ]
null
null
null
from functools import partial from csvgb import tonnfloat, toint, all_g, equal0, isna for k in all_g(): globals()[k] = tonnfloat
17
55
0.720588
21
136
4.571429
0.714286
0.083333
0
0
0
0
0
0
0
0
0
0.009091
0.191176
136
7
56
19.428571
0.863636
0
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
3eeab0abc9d58d98651b216d8726b6e98ec2c2d6
218
py
Python
fieldbook/urls.py
bsab/django-fieldbook
70238a06c0a72ece18ec00e88019f4f8e00c27cd
[ "MIT" ]
6
2017-06-01T21:13:48.000Z
2017-09-25T09:44:13.000Z
fieldbook/urls.py
bsab/django-fieldbook
70238a06c0a72ece18ec00e88019f4f8e00c27cd
[ "MIT" ]
1
2017-06-04T11:03:54.000Z
2017-06-04T11:03:54.000Z
fieldbook/urls.py
bsab/django-fieldbook
70238a06c0a72ece18ec00e88019f4f8e00c27cd
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from fieldbook.views.user import FieldBookUserRegistration urlpatterns = [ url(r'^user-register/$', FieldBookUserRegistration.as_view(), name="fieldbook_registration"), ]
31.142857
97
0.788991
24
218
7.083333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.09633
218
7
98
31.142857
0.862944
0
0
0
0
0
0.173516
0.100457
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
3
3ef40f15a0c84e728a0ca0bcd0296b0abc9869af
510
py
Python
chamber/config.py
jsilhan/django-chamber
c9115e3cd907cf5cfca73d9b08d31ae697fb52a6
[ "BSD-3-Clause" ]
null
null
null
chamber/config.py
jsilhan/django-chamber
c9115e3cd907cf5cfca73d9b08d31ae697fb52a6
[ "BSD-3-Clause" ]
null
null
null
chamber/config.py
jsilhan/django-chamber
c9115e3cd907cf5cfca73d9b08d31ae697fb52a6
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings CHAMBER_MAX_FILE_UPLOAD_SIZE = getattr(settings, 'CHAMBER_MAX_FILE_UPLOAD_SIZE', 20) CHAMBER_MULTIDOMAINS_OVERTAKER_AUTH_COOKIE_NAME = getattr(settings, 'CHAMBER_MULTIDOMAINS_OVERTAKER_AUTH_COOKIE_NAME', None) CHAMBER_DEFAULT_I...
56.666667
118
0.666667
53
510
5.886792
0.490566
0.192308
0.211538
0.141026
0.717949
0.717949
0
0
0
0
0
0.005333
0.264706
510
8
119
63.75
0.826667
0
0
0
0
0
0.286275
0.231373
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
1
0
0
1
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
4110e60044d2d66a82372edba14e4367c62c1b12
557
py
Python
Visualizing Data/line_graphs.py
python-sonchau/python-visualization
eb139aaabbff858663a96f8e19e30f1418e4330c
[ "MIT" ]
null
null
null
Visualizing Data/line_graphs.py
python-sonchau/python-visualization
eb139aaabbff858663a96f8e19e30f1418e4330c
[ "MIT" ]
null
null
null
Visualizing Data/line_graphs.py
python-sonchau/python-visualization
eb139aaabbff858663a96f8e19e30f1418e4330c
[ "MIT" ]
null
null
null
import seaborn as sns # importing seaborn functionality import pandas as pd import matplotlib.pyplot as plt ''' The first parameter is the list or array of x-values and the second parameter is the array of y-values. ''' flights_long=sns.load_dataset("flights") # importing dataset print(flights_long) # ...
37.133333
103
0.777379
85
557
4.988235
0.564706
0.207547
0.066038
0.103774
0
0
0
0
0
0
0
0
0.147217
557
14
104
39.785714
0.892632
0.251347
0
0.222222
0
0
0.033223
0
0
0
0
0
0
1
0
false
0.111111
0.333333
0
0.333333
0.222222
0
0
0
null
1
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
1
0
0
0
0
3
f5afc03027ac136ae3cea8a516276dd895f8e991
816
py
Python
chapter_03/07_color_mixer.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
2
2021-04-07T03:26:37.000Z
2021-07-26T07:38:49.000Z
chapter_03/07_color_mixer.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
chapter_03/07_color_mixer.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
# color mixer print("Red, blue, and yellow are primary colors.") print() # ask user to choose two primary colors to mix color1 = input("Enter the primary color 1 (red,blue, or yellow): ") color2 = input("Enter the primary color 2 (red,blue, or yellow): ") if color1 == "red" and color2 == "blue": print("The seco...
29.142857
67
0.659314
117
816
4.598291
0.282051
0.100372
0.189591
0.245353
0.672862
0.548327
0.52974
0.52974
0.234201
0.234201
0
0.024316
0.193627
816
27
68
30.222222
0.793313
0.068627
0
0.444444
0
0
0.494055
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
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
3
f5d580592331d3d4be913e881861b5f57eb69559
85
py
Python
django_base/outer/apps.py
Windsooon/youtube-channels
83ee3215cc5dff3dfd01979a7b5440d701029456
[ "MIT" ]
10
2017-11-12T19:14:36.000Z
2019-08-05T08:07:55.000Z
django_base/outer/apps.py
Windsooon/youtube-channels
83ee3215cc5dff3dfd01979a7b5440d701029456
[ "MIT" ]
3
2020-02-11T22:03:33.000Z
2021-06-10T19:56:27.000Z
django_base/outer/apps.py
Windsooon/youtube-channels
83ee3215cc5dff3dfd01979a7b5440d701029456
[ "MIT" ]
1
2019-12-26T19:30:21.000Z
2019-12-26T19:30:21.000Z
from django.apps import AppConfig class OuterConfig(AppConfig): name = 'outer'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
0
0
0
3
f5db984a0738b40f89b2930eba0c7b3b026fd338
1,545
py
Python
2019_08_29_ufrj/python/dojo_test.py
samisafatli/dojo
3751f8413e70da84e928e037193e8cb03f6b3e65
[ "MIT" ]
114
2015-03-10T22:17:42.000Z
2022-03-09T17:49:48.000Z
2019_08_29_ufrj/python/dojo_test.py
samisafatli/dojo
3751f8413e70da84e928e037193e8cb03f6b3e65
[ "MIT" ]
9
2018-09-04T12:49:59.000Z
2019-11-17T21:29:51.000Z
2019_08_29_ufrj/python/dojo_test.py
samisafatli/dojo
3751f8413e70da84e928e037193e8cb03f6b3e65
[ "MIT" ]
39
2015-01-29T01:20:56.000Z
2022-02-17T16:26:25.000Z
import unittest from dojo import getProtocol from dojo import getDomain from dojo import getSubD from dojo import parserUrl class DojoTest(unittest.TestCase): def test_true(self): self.assertEqual(getProtocol("http://globo.com"), "http") def test_true2(self): self.assertEqual(getProtocol("htt...
30.294118
86
0.667961
195
1,545
5.184615
0.225641
0.142433
0.244313
0.110781
0.389713
0.363996
0.363996
0.170129
0.090999
0
0
0.017802
0.163754
1,545
50
87
30.9
0.764706
0
0
0
0
0
0.264078
0
0
0
0
0
0.382353
1
0.382353
false
0
0.147059
0
0.558824
0
0
0
0
null
0
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
1
0
0
0
0
1
0
0
3
f5e92798ccc88366068c9058b384b8ce28956e91
128
py
Python
src/auto_version/tests/example.py
alf239/autoversion
a8db19e3e11691f3e38d06977ad2d8157dc0c0d2
[ "Apache-2.0" ]
2
2018-10-25T19:40:44.000Z
2019-11-20T06:17:49.000Z
src/auto_version/tests/example.py
alf239/autoversion
a8db19e3e11691f3e38d06977ad2d8157dc0c0d2
[ "Apache-2.0" ]
38
2018-11-15T10:48:09.000Z
2022-03-18T00:10:51.000Z
src/auto_version/tests/example.py
alf239/autoversion
a8db19e3e11691f3e38d06977ad2d8157dc0c0d2
[ "Apache-2.0" ]
5
2019-02-03T12:10:26.000Z
2021-06-24T20:42:04.000Z
LOCK = False RELEASE = True VERSION = "19.99.0" VERSION_AGAIN = "19.99.0" STRICT_VERSION = "19.99.0" UNRELATED_STRING = "apple"
18.285714
26
0.703125
21
128
4.142857
0.619048
0.137931
0.172414
0.275862
0
0
0
0
0
0
0
0.136364
0.140625
128
6
27
21.333333
0.654545
0
0
0
0
0
0.203125
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
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
0
0
0
0
3
eb094b6339f70fa0d45793133e3768afa3c7ad96
2,103
py
Python
agent/policies.py
RevanMacQueen/DRQN
7b8a743935679f65817ad4f41d28c2c155e7a62a
[ "MIT" ]
null
null
null
agent/policies.py
RevanMacQueen/DRQN
7b8a743935679f65817ad4f41d28c2c155e7a62a
[ "MIT" ]
null
null
null
agent/policies.py
RevanMacQueen/DRQN
7b8a743935679f65817ad4f41d28c2c155e7a62a
[ "MIT" ]
1
2021-03-14T23:31:53.000Z
2021-03-14T23:31:53.000Z
import numpy as np from scipy.special import softmax def random_argmax(a): ''' like np.argmax, but returns a random index in the case of ties parameters: a : (np.Array) ''' return np.random.choice(np.flatnonzero(a == a.max())) class EGreedyPolicy(object): def __init__(self, epsilo...
22.858696
87
0.562054
273
2,103
4.241758
0.230769
0.042314
0.058722
0.06563
0.657168
0.642487
0.642487
0.642487
0.642487
0.642487
0
0.005076
0.34427
2,103
91
88
23.10989
0.834663
0.404185
0
0.548387
0
0
0
0
0
0
0
0
0
1
0.225806
false
0
0.064516
0
0.516129
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
1
0
0
0
0
1
0
0
3
eb124909fb11b0deb8b1bd01debb78d8e9c2a2ba
389
py
Python
pytest/models/aws_cloud/e2_resource.py
Annapooraniqxf2/codacy
baaa9c165039ab0e16388d969bdc6c9b2a4ae3f5
[ "MIT" ]
null
null
null
pytest/models/aws_cloud/e2_resource.py
Annapooraniqxf2/codacy
baaa9c165039ab0e16388d969bdc6c9b2a4ae3f5
[ "MIT" ]
null
null
null
pytest/models/aws_cloud/e2_resource.py
Annapooraniqxf2/codacy
baaa9c165039ab0e16388d969bdc6c9b2a4ae3f5
[ "MIT" ]
null
null
null
""" This python file helps to read the ec2 instance information from AWS using boto3 """ import boto3 from abc import ABC, abstractmethod class Ec2(ABC): """This class is used to fetch details of ec2 instance using boto3""" def __init__(self) -> None: self.ec2_service = boto3.client('ec2') ...
19.45
80
0.66581
52
389
4.846154
0.596154
0.087302
0
0
0
0
0
0
0
0
0
0.030928
0.251928
389
20
81
19.45
0.835052
0.37018
0
0
0
0
0.012931
0
0
0
0
0
0
1
0.25
false
0.125
0.25
0
0.625
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
1
0
0
1
0
0
3
eb16bf62de2809b2062a0c28d16bafef01402e3e
143
py
Python
taskqueue/venv_tq/bin/unit2.py
matthappens/taskqueue
548979587326b95bf41851eb135052de782e74fc
[ "MIT" ]
1
2017-11-18T18:23:22.000Z
2017-11-18T18:23:22.000Z
taskqueue/venv_tq/bin/unit2.py
matthappens/taskqueue
548979587326b95bf41851eb135052de782e74fc
[ "MIT" ]
null
null
null
taskqueue/venv_tq/bin/unit2.py
matthappens/taskqueue
548979587326b95bf41851eb135052de782e74fc
[ "MIT" ]
null
null
null
#!/Users/matthewdavis/Desktop/Projects/scarecrowtq/scarecrowtq/venv_tq/bin/python __unittest = True from unittest2.main import main_ main_()
20.428571
81
0.818182
18
143
6.222222
0.833333
0
0
0
0
0
0
0
0
0
0
0.007576
0.076923
143
7
82
20.428571
0.840909
0.559441
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
eb2bc0e0e259e75fb1bd6b8cf34b3100b5405695
403
py
Python
library/tests/conftest.py
BillyTPilgrim/inkydev-python
c9bce44c6a97ab1ddb9b3584a177db2026bf6111
[ "MIT" ]
null
null
null
library/tests/conftest.py
BillyTPilgrim/inkydev-python
c9bce44c6a97ab1ddb9b3584a177db2026bf6111
[ "MIT" ]
3
2022-02-22T10:14:07.000Z
2022-03-01T11:55:35.000Z
library/tests/conftest.py
BillyTPilgrim/inkydev-python
c9bce44c6a97ab1ddb9b3584a177db2026bf6111
[ "MIT" ]
1
2022-02-22T10:38:15.000Z
2022-02-22T10:38:15.000Z
import sys import mock import pytest @pytest.fixture(scope='function', autouse=False) def smbus2(): """Mock smbus module.""" sys.modules['smbus2'] = mock.MagicMock() yield sys.modules['smbus2'] del sys.modules['smbus2'] @pytest.fixture(scope='function', autouse=False) def inkydev(): """Import sc...
20.15
48
0.674938
49
403
5.55102
0.387755
0.147059
0.176471
0.191176
0.301471
0.301471
0.301471
0
0
0
0
0.01497
0.171216
403
19
49
21.210526
0.799401
0.096774
0
0.153846
0
0
0.116147
0
0
0
0
0
0
1
0.153846
true
0
0.307692
0
0.461538
0
0
0
0
null
0
0
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
1
0
1
0
0
0
0
3
eb2d646db2d765f4263a7d0d83e06fc6bf7adefb
521
py
Python
fluid/config/slurm.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
1
2017-05-30T14:22:59.000Z
2017-05-30T14:22:59.000Z
fluid/config/slurm.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
null
null
null
fluid/config/slurm.py
PaulDodd/signac-flow-project-helpers
208c7c8da52c4b0108c3989c77423cc5ff86ba59
[ "MIT" ]
null
null
null
# Copyright (c) 2017 The Regents of the University of Michigan # All rights reserved. # This software is licensed under the BSD 3-Clause License. import platform import logging import re import argparse import datetime from .config import SubmitConfig logger = logging.getLogger("flow.{}".format(__name__)); class SL...
23.681818
85
0.744722
66
521
5.69697
0.742424
0.047872
0
0
0
0
0
0
0
0
0
0.011601
0.172745
521
21
86
24.809524
0.860789
0.266795
0
0
0
0
0.156085
0.060847
0
0
0
0
0
1
0.153846
false
0.076923
0.461538
0
0.769231
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
1
0
1
0
0
3
eb32afec01ea7ed96080d671efdf7b9fd5613803
593
py
Python
string-to-integer-atoi/test_string_to_integer_atoi.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
string-to-integer-atoi/test_string_to_integer_atoi.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
string-to-integer-atoi/test_string_to_integer_atoi.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
1
2019-06-19T00:51:02.000Z
2019-06-19T00:51:02.000Z
from string_to_integer_atoi import Solution def test_example_1(): s = '42' expected = 42 assert expected == Solution().my_atoi(s) def test_example_2(): s = ' -42' expected = -42 assert expected == Solution().my_atoi(s) def test_example_3(): s = '4193 with words' expected = 4193 ...
18.53125
44
0.637437
81
593
4.444444
0.345679
0.097222
0.194444
0.333333
0.630556
0.630556
0.55
0.55
0.55
0.311111
0
0.10177
0.237774
593
31
45
19.129032
0.69469
0
0
0.238095
0
0
0.080944
0
0
0
0
0
0.238095
1
0.238095
false
0
0.047619
0
0.285714
0
0
0
0
null
0
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
1
0
0
0
0
0
0
0
3
de1a063fce925653a23490f0d76ec361d10d3776
7,176
py
Python
tests/_display/test_rotation_around_point_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_display/test_rotation_around_point_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_display/test_rotation_around_point_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import re from random import randint from typing import List from typing import Match from typing import Optional from retrying import retry import apysc as ap from apysc._display import rotation_interface_helper from apysc._display.rotation_around_point_interface import \ RotationAroundPointInterface ...
44.571429
79
0.652453
884
7,176
4.927602
0.117647
0.045914
0.135216
0.036731
0.756428
0.740358
0.71809
0.692149
0.645546
0.639118
0
0.024305
0.243172
7,176
160
80
44.85
0.777757
0.003623
0
0.521739
0
0
0.087425
0.05168
0
0
0
0
0.07971
1
0.057971
false
0
0.086957
0
0.15942
0
0
0
0
null
0
0
0
0
1
1
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
0
0
0
0
0
0
3
de6f332002f2d33e86b1cb2d5ffa9c9d8fad6a13
98
py
Python
Software/C&C/modules/makedir.py
4n6strider/Spacenet
44e7acfc3d76a38623643ad4057403ad364cf253
[ "MIT" ]
1
2019-10-08T12:14:27.000Z
2019-10-08T12:14:27.000Z
Software/C&C/modules/makedir.py
evil5hadow/Spacenet
44e7acfc3d76a38623643ad4057403ad364cf253
[ "MIT" ]
null
null
null
Software/C&C/modules/makedir.py
evil5hadow/Spacenet
44e7acfc3d76a38623643ad4057403ad364cf253
[ "MIT" ]
2
2020-04-18T06:19:42.000Z
2021-03-26T02:11:25.000Z
import os # Function to create dir. def run(dst): if not os.path.exists(dst): os.makedirs(dst)
16.333333
28
0.704082
18
98
3.833333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.163265
98
6
29
16.333333
0.841463
0.234694
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
3
de8cafe5e597c9c9b89ee13455089c18bdfc96cc
222
py
Python
3d_cnn/src/constants/h5_internal_paths.py
mrmattuschka/DeePiCt
ef3e81ea25705076f340175d97ccff98f8d11799
[ "Apache-2.0" ]
null
null
null
3d_cnn/src/constants/h5_internal_paths.py
mrmattuschka/DeePiCt
ef3e81ea25705076f340175d97ccff98f8d11799
[ "Apache-2.0" ]
2
2022-03-08T09:22:23.000Z
2022-03-20T21:13:07.000Z
3d_cnn/src/constants/h5_internal_paths.py
ZauggGroup/DeePiCt
0bdf1cd845cc306e66e30face1010c12ca3a38d0
[ "Apache-2.0" ]
null
null
null
RAW_SUBTOMOGRAMS = "volumes/raw" LABELED_SUBTOMOGRAMS = "volumes/labels/" PREDICTED_SEGMENTATION_SUBTOMOGRAMS = "volumes/predictions/" CLUSTERING_LABELS = "volumes/cluster_labels/" HDF_INTERNAL_PATH = "MDF/images/0/image"
37
60
0.81982
25
222
6.96
0.68
0.327586
0
0
0
0
0
0
0
0
0
0.004831
0.067568
222
5
61
44.4
0.835749
0
0
0
0
0
0.391892
0.103604
0
0
0
0
0
1
0
false
0
0
0
0
0
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
721a429124d0e4a5d2ea5d1dc3a03d12b3d5e875
1,674
py
Python
levelpy/serializer.py
rch/levelpy
59e546854b3d478f3467bd573eb5f6b4da62d239
[ "MIT" ]
4
2015-11-06T22:50:22.000Z
2020-05-31T14:49:58.000Z
levelpy/serializer.py
rch/levelpy
59e546854b3d478f3467bd573eb5f6b4da62d239
[ "MIT" ]
null
null
null
levelpy/serializer.py
rch/levelpy
59e546854b3d478f3467bd573eb5f6b4da62d239
[ "MIT" ]
3
2017-01-25T22:26:40.000Z
2021-03-24T07:49:33.000Z
# # levelpy/serializer.py # import json def json_encode(obj): return json.dumps(obj).encode() def json_decode(byte_str): return json.loads(byte_str.decode()) def utf8_encode(obj): if isinstance(obj, bytes): return obj elif isinstance(obj, bytearray): return bytes(obj) else: ...
22.32
71
0.644564
222
1,674
4.662162
0.238739
0.067633
0.050242
0.027053
0.249275
0.18744
0.137198
0.102415
0
0
0
0.012432
0.231183
1,674
74
72
22.621622
0.791764
0.012545
0
0.12766
0
0
0.030928
0
0
0
0
0
0
1
0.234043
false
0
0.06383
0.106383
0.617021
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
722fa95ac9fff41c6dbe2c04c5693d50742bae30
83
py
Python
Week2/iterpower.py
Sid2697/MIT-6.00.1x
70514740701890d008e42af2b8662c57f762760b
[ "MIT" ]
3
2018-02-12T11:24:13.000Z
2021-01-27T07:15:16.000Z
Week2/iterpower.py
Sid2697/MIT-6.00.1x
70514740701890d008e42af2b8662c57f762760b
[ "MIT" ]
null
null
null
Week2/iterpower.py
Sid2697/MIT-6.00.1x
70514740701890d008e42af2b8662c57f762760b
[ "MIT" ]
null
null
null
def iterPower(base,exp): ans=1 while exp>0: ans=ans*base exp-=1 return ans
10.375
24
0.662651
16
83
3.4375
0.5625
0.254545
0
0
0
0
0
0
0
0
0
0.045455
0.204819
83
7
25
11.857143
0.787879
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
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
72445031c5b70a0c62d667991a920674dc74af0c
6,938
py
Python
tests/test_rpc.py
blueshed/liteblue
9c2fd09cc1449631c86cf6cdda745f884dc90dbd
[ "MIT" ]
null
null
null
tests/test_rpc.py
blueshed/liteblue
9c2fd09cc1449631c86cf6cdda745f884dc90dbd
[ "MIT" ]
null
null
null
tests/test_rpc.py
blueshed/liteblue
9c2fd09cc1449631c86cf6cdda745f884dc90dbd
[ "MIT" ]
null
null
null
""" Test rpc handler """ import asyncio import json import logging import pytest import urllib.parse from tornado.httpclient import HTTPRequest, HTTPClientError from tornado.websocket import websocket_connect, WebSocketClosedError from liteblue import handlers async def test_register(http_server_client): """ regi...
26.380228
84
0.595705
813
6,938
4.9631
0.170972
0.043618
0.035688
0.053532
0.725403
0.720446
0.706072
0.688972
0.674597
0.674597
0
0.019566
0.263332
6,938
262
85
26.480916
0.769908
0.005477
0
0.587629
0
0
0.132806
0.022315
0
0
0
0
0.051546
1
0
false
0.015464
0.041237
0
0.051546
0.046392
0
0
0
null
0
0
0
0
1
1
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
0
0
0
0
0
0
3
a0c61ab2da01da55d4839eacab93b4cda1609b3a
191
py
Python
Restful_Api/api/request_wtih_token.py
ehtishammubarik/Restful_Api
aa0a84e07274e043f40f8e0473d856ee43764bdc
[ "MIT" ]
null
null
null
Restful_Api/api/request_wtih_token.py
ehtishammubarik/Restful_Api
aa0a84e07274e043f40f8e0473d856ee43764bdc
[ "MIT" ]
null
null
null
Restful_Api/api/request_wtih_token.py
ehtishammubarik/Restful_Api
aa0a84e07274e043f40f8e0473d856ee43764bdc
[ "MIT" ]
1
2021-02-23T07:13:20.000Z
2021-02-23T07:13:20.000Z
import requests url = 'http://127.0.0.1:8000/book-list/' headers = {'Authorization': 'Token b89d32509444214e563a7868e2e8de69cafe825f'} r = requests.get(url, headers=headers) print(r.json())
27.285714
77
0.748691
24
191
5.958333
0.75
0
0
0
0
0
0
0
0
0
0
0.211429
0.08377
191
6
78
31.833333
0.605714
0
0
0
0
0
0.47644
0.209424
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
a0d08a1759510ba01ce180c7ed442ff1f0ef8c04
2,180
py
Python
etils/array_types/__init__.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
13
2021-12-14T19:18:53.000Z
2022-03-30T17:09:20.000Z
etils/array_types/__init__.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
2
2022-01-07T01:34:33.000Z
2022-01-12T01:35:33.000Z
etils/array_types/__init__.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
1
2022-01-04T14:34:30.000Z
2022-01-04T14:34:30.000Z
# Copyright 2022 The etils 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 law or agreed to in wr...
29.459459
74
0.725688
287
2,180
5.473868
0.421603
0.22979
0.278167
0.338638
0.415022
0.08275
0
0
0
0
0
0.046512
0.151835
2,180
73
75
29.863014
0.803137
0.283028
0
0
0
0
0.084251
0
0
0
0
0
0
1
0
false
0
0.081633
0
0.081633
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
a0eb41bc0d863dfea3ae4fa16d305536bd333453
116
py
Python
notebooks/_solutions/case2_observations_analysis22.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/_solutions/case2_observations_analysis22.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/_solutions/case2_observations_analysis22.py
jorisvandenbossche/ICES-python-data
63864947657f37cb26cb4e2dcd67ff106dffe9cd
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
n_plot_sex = survey_data.groupby(["sex", "verbatimLocality"]).size().rename("count").reset_index() n_plot_sex.head()
58
98
0.75
17
116
4.764706
0.764706
0.123457
0.197531
0
0
0
0
0
0
0
0
0
0.034483
116
2
99
58
0.723214
0
0
0
0
0
0.205128
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
3
a0ebfb2f4a33a12f9fccfe7c4fa2bac3de2924ca
307
py
Python
arboretum/__init__.py
davidthaler/arboretum
01f8713fe78f952904894e143a0dc215f37fc8c5
[ "MIT" ]
1
2022-01-20T19:12:50.000Z
2022-01-20T19:12:50.000Z
arboretum/__init__.py
davidthaler/arboretum
01f8713fe78f952904894e143a0dc215f37fc8c5
[ "MIT" ]
null
null
null
arboretum/__init__.py
davidthaler/arboretum
01f8713fe78f952904894e143a0dc215f37fc8c5
[ "MIT" ]
null
null
null
''' Bring module functions and classes up to package namespace. ''' from .tree import Tree, RegressionTree, ClassificationTree from .forest import Forest, RFClassifier, RFRegressor from .gbm import GBRegressor, GBClassifier from .smooth_tree import SmoothTree, SmoothClassificationTree, SmoothRegressionTree
43.857143
83
0.833876
33
307
7.727273
0.727273
0.078431
0
0
0
0
0
0
0
0
0
0
0.107492
307
7
83
43.857143
0.930657
0.192182
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
0
0
0
3
a0fe0a7e6581545296237e4a25a16e7054be947c
321
py
Python
characterInput.py
dedeogluhu/python-beginner-projects
612c0e9fa983d1915bebc1fbc0152aee0976d692
[ "MIT" ]
null
null
null
characterInput.py
dedeogluhu/python-beginner-projects
612c0e9fa983d1915bebc1fbc0152aee0976d692
[ "MIT" ]
1
2020-09-27T10:12:39.000Z
2020-09-27T10:12:39.000Z
characterInput.py
dedeogluhu/python-beginner-projects
612c0e9fa983d1915bebc1fbc0152aee0976d692
[ "MIT" ]
null
null
null
name = input("Please enter your name:") age = int(input("Please enter your age:")) if type(name) == str: if type(age) == int: print(f"{name} you are {age} years old and you will be 100 after {100 - age} years") else: print("Please enter a valid number") else: print("please enter your name")...
29.181818
92
0.623053
51
321
3.921569
0.490196
0.22
0.225
0.2
0
0
0
0
0
0
0
0.02449
0.23676
321
10
93
32.1
0.791837
0
0
0.222222
0
0.111111
0.523364
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
9d018b8d9676a4c3aee139a6c7e5ba176153206b
339
py
Python
src/onegov/gis/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('onegov.gis') # noqa log.addHandler(logging.NullHandler()) # noqa from onegov.gis.forms import CoordinatesField from onegov.gis.integration import MapboxApp from onegov.gis.models import Coordinates, CoordinatesMixin __all__ = ['Coordinates', 'CoordinatesMixin', 'CoordinatesFi...
33.9
78
0.79646
37
339
7.189189
0.486486
0.135338
0.146617
0
0
0
0
0
0
0
0
0
0.097345
339
9
79
37.666667
0.869281
0.026549
0
0
0
0
0.189602
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
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
0
0
1
0
1
0
0
3
9d3a3f55f81c0ac4d2605bb4b8bad6c8de5ef25b
313
py
Python
python/string/0087_scramble_string.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/string/0087_scramble_string.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/string/0087_scramble_string.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def isScramble(self, s1, s2): """ :type s1: str :type s2: str :rtype: bool """ return True def test_is_scramble(): s = Solution() assert s.isScramble("great", "rgeat") is True assert s.isScramble("abcde", "caebd") is False
20.866667
50
0.549521
38
313
4.473684
0.631579
0.082353
0.2
0
0
0
0
0
0
0
0
0.018692
0.316294
313
14
51
22.357143
0.775701
0.127796
0
0
0
0
0.085837
0
0
0
0
0
0.285714
1
0.285714
false
0
0
0
0.571429
0
0
0
0
null
0
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
1
0
0
0
0
1
0
0
3
9d3df32e050dbc41a085a276361ffadf294d73ab
567
py
Python
mlkernels/kernels/zero.py
darsh8200/mlkernels
cad223c422a32bc10375358fda076645efca62f1
[ "MIT" ]
null
null
null
mlkernels/kernels/zero.py
darsh8200/mlkernels
cad223c422a32bc10375358fda076645efca62f1
[ "MIT" ]
1
2021-07-09T06:58:46.000Z
2021-07-09T06:58:46.000Z
mlkernels/kernels/zero.py
darsh8200/mlkernels
cad223c422a32bc10375358fda076645efca62f1
[ "MIT" ]
null
null
null
import lab as B from algebra import ZeroFunction from matrix import Zero from . import _dispatch from .. import Kernel from ..util import num_elements __all__ = ["ZeroKernel"] class ZeroKernel(Kernel, ZeroFunction): """Constant kernel of `0`.""" @property def _stationary(self): return True @_...
20.25
61
0.700176
82
567
4.695122
0.426829
0.114286
0.093506
0.067532
0.280519
0.280519
0.181818
0.181818
0.181818
0
0
0.004283
0.176367
567
27
62
21
0.820128
0.040564
0
0.117647
0
0
0.018587
0
0
0
0
0
0
1
0.176471
false
0
0.352941
0.176471
0.764706
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
1
1
1
0
0
3
9d474c298e1ce53d2a0d545367a876082d9741b6
95
py
Python
processing_pipeline/constants.py
sagivharel/anyway-backend
6250edd75ff7592b6916f8924a5ee99c617df6b5
[ "MIT" ]
null
null
null
processing_pipeline/constants.py
sagivharel/anyway-backend
6250edd75ff7592b6916f8924a5ee99c617df6b5
[ "MIT" ]
24
2019-11-18T18:32:29.000Z
2021-03-31T19:22:12.000Z
processing_pipeline/constants.py
sagivharel/anyway-backend
6250edd75ff7592b6916f8924a5ee99c617df6b5
[ "MIT" ]
17
2019-11-01T11:49:49.000Z
2020-09-26T15:49:02.000Z
TASK = "task" TASK_INSTANCE = "task_instance" X = "X" Y = "Y" MAHOZ = "MAHOZ" XY = f"{X}/{Y}"
11.875
31
0.557895
16
95
3.1875
0.4375
0.313725
0
0
0
0
0
0
0
0
0
0
0.2
95
7
32
13.571429
0.671053
0
0
0
0
0
0.326316
0
0
0
0
0
0
1
0
false
0
0
0
0
0
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
9d50fd2f1933a9788b7601f6bd4c2f0cb8cb817f
2,871
py
Python
test/dvc/test_commands.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
null
null
null
test/dvc/test_commands.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
54
2021-02-17T13:36:51.000Z
2021-08-25T05:06:57.000Z
test/dvc/test_commands.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
null
null
null
from pathlib import Path from unittest import mock import pytest from bohr.config.pathconfig import PathConfig from bohr.dvc.commands import add, pull, repro, status @mock.patch("bohr.dvc.commands.subprocess", autospec=True) def test_status(subprocess_mock): status(PathConfig(Path("/project_root"), Path("/softw...
32.625
88
0.677813
353
2,871
5.314448
0.133144
0.11194
0.119936
0.06823
0.771855
0.740938
0.705224
0.705224
0.68177
0.590085
0
0.006178
0.154302
2,871
87
89
33
0.766474
0
0
0.376812
0
0
0.269244
0.085336
0
0
0
0
0.101449
1
0.115942
false
0
0.072464
0
0.188406
0
0
0
0
null
0
0
0
0
1
1
1
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
9d5eec514942adb02b3852a8a8a873590576d9c2
1,704
py
Python
testsuite/gateways/gateways.py
mijaros/3scale-tests
6cb25b4da6e444bd309ff8bd7ee8d3b4a6f2f64f
[ "Apache-2.0" ]
null
null
null
testsuite/gateways/gateways.py
mijaros/3scale-tests
6cb25b4da6e444bd309ff8bd7ee8d3b4a6f2f64f
[ "Apache-2.0" ]
null
null
null
testsuite/gateways/gateways.py
mijaros/3scale-tests
6cb25b4da6e444bd309ff8bd7ee8d3b4a6f2f64f
[ "Apache-2.0" ]
null
null
null
"""Module containing all basic gateways""" from abc import ABC, abstractmethod from datetime import datetime from typing import List, TYPE_CHECKING, Optional from testsuite.capabilities import Capability from testsuite.lifecycle_hook import LifecycleHook from testsuite.openshift.env import Environ from testsuite.requi...
25.818182
72
0.704812
176
1,704
6.789773
0.448864
0.085356
0.03682
0
0
0
0
0
0
0
0
0
0.205986
1,704
65
73
26.215385
0.883222
0.242958
0
0.428571
0
0
0.012156
0
0
0
0
0
0
1
0.257143
false
0.057143
0.228571
0
0.628571
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
1
0
0
1
0
0
3
19ca4fa2f52022fb084396ff3a93578178b58c7c
244
py
Python
seekrApi/render.py
santiagoMeloMedina/Seekr
4ef1d1b70b7e8e76b10d26c89bcd951f0bb09f30
[ "MIT" ]
null
null
null
seekrApi/render.py
santiagoMeloMedina/Seekr
4ef1d1b70b7e8e76b10d26c89bcd951f0bb09f30
[ "MIT" ]
null
null
null
seekrApi/render.py
santiagoMeloMedina/Seekr
4ef1d1b70b7e8e76b10d26c89bcd951f0bb09f30
[ "MIT" ]
null
null
null
from flask import render_template class RenderService: def __init__(self, info): self.__name = info['name'] return def render(self, data): return render_template("index.html", data=data, app_name=self.__name)
22.181818
77
0.672131
31
244
4.935484
0.548387
0.183007
0
0
0
0
0
0
0
0
0
0
0.22541
244
10
78
24.4
0.809524
0
0
0
0
0
0.057613
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.857143
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
19dd8af28897f297c5b7997610b21b7e7c04e757
372
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/EXT/packed_pixels.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/EXT/packed_pixels.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/EXT/packed_pixels.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.packed_pixels This module customises the behaviour of the OpenGL.raw.GL.EXT.packed_pixels to provide a more Python-friendly API ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions, wrapper from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.EXT....
31
56
0.80914
55
372
5.418182
0.6
0.134228
0.151007
0.09396
0.174497
0.174497
0
0
0
0
0
0
0.123656
372
12
57
31
0.91411
0.478495
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
c20bf29d0b75e314c0f1926047f005294eca6130
215
py
Python
generate_secret_key.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
generate_secret_key.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
generate_secret_key.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.utils.crypto import get_random_string chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*(-_=+)' print(get_random_string(50, chars))
30.714286
86
0.823256
21
215
7.952381
0.714286
0.107784
0.179641
0
0
0
0
0
0
0
0
0.06
0.069767
215
6
87
35.833333
0.775
0
0
0
0
0
0.353488
0.353488
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.25
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
1
0
0
0
0
3
c233495653c70a92364989062236b00a4da1e34b
2,628
py
Python
pbt/cars/Sign.py
jtyr/python_bullet_train
44867278dd5645b2889909a016dbb59f9b495ec6
[ "MIT" ]
1
2018-05-08T16:04:58.000Z
2018-05-08T16:04:58.000Z
pbt/cars/Sign.py
jtyr/python_bullet_train
44867278dd5645b2889909a016dbb59f9b495ec6
[ "MIT" ]
null
null
null
pbt/cars/Sign.py
jtyr/python_bullet_train
44867278dd5645b2889909a016dbb59f9b495ec6
[ "MIT" ]
2
2018-08-02T10:49:08.000Z
2020-11-21T15:13:29.000Z
# -*- coding: utf-8 -*- from os import getenv, getuid from pbt.core import Car class SignCar(Car): default_root_bg = getenv('PBT_CAR_BG', 'default') default_root_fg = getenv('PBT_CAR_FG', 'default') default_root_fm = getenv('PBT_CAR_FM', 'none') default_symbol_bg = default_root_bg default_symbol...
37.542857
69
0.544901
314
2,628
4.035032
0.124204
0.234412
0.312549
0.378848
0.630624
0.501973
0.364641
0.2794
0.2794
0.2794
0
0.001138
0.331431
2,628
69
70
38.086957
0.719977
0.007991
0
0.225806
0
0
0.279463
0.110557
0
0
0
0
0
1
0
false
0
0.032258
0
0.274194
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
dfa1339c58d11d8b56e7cc2c52dafdae0cc5c1ed
57
py
Python
pawan/lib/python3.6/rlcompleter.py
pawannn29/projectdjango
a2c269b99676109a9a28f1ff3bc26b3d7779056c
[ "bzip2-1.0.6" ]
null
null
null
pawan/lib/python3.6/rlcompleter.py
pawannn29/projectdjango
a2c269b99676109a9a28f1ff3bc26b3d7779056c
[ "bzip2-1.0.6" ]
null
null
null
pawan/lib/python3.6/rlcompleter.py
pawannn29/projectdjango
a2c269b99676109a9a28f1ff3bc26b3d7779056c
[ "bzip2-1.0.6" ]
null
null
null
/Users/NikhilArora/anaconda3/lib/python3.6/rlcompleter.py
57
57
0.859649
8
57
6.125
1
0
0
0
0
0
0
0
0
0
0
0.052632
0
57
1
57
57
0.807018
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
dfa1f4f4dd9bef3a94f16675f7820ebbde42714c
2,774
py
Python
data/synthetic_data/full_dsets/single_dim.py
HySynth/HySynth
b33b34ff5db138b5d007d0dcd32d53c9f8964b62
[ "MIT" ]
4
2021-03-05T11:18:35.000Z
2021-12-09T18:51:32.000Z
data/synthetic_data/full_dsets/single_dim.py
HySynth/HySynth
b33b34ff5db138b5d007d0dcd32d53c9f8964b62
[ "MIT" ]
null
null
null
data/synthetic_data/full_dsets/single_dim.py
HySynth/HySynth
b33b34ff5db138b5d007d0dcd32d53c9f8964b62
[ "MIT" ]
null
null
null
""" This module is a library of synthetic example datasets """ from data.synthetic_data.generator import construct_signal_from_run, sloped_line_df, straight_line_df from data.synthetic_data.visualisation import plot_data, plot_1D sloped_lines_dict = { "a": sloped_line_df(1, num_points=5), "b": sloped_line_d...
17.3375
101
0.684211
436
2,774
3.933486
0.149083
0.106122
0.155102
0.179592
0.68105
0.590671
0.578426
0.578426
0.578426
0.539942
0
0.021988
0.180245
2,774
159
102
17.446541
0.73219
0.019466
0
0.433735
0
0
0.014755
0
0
0
0
0
0
1
0.240964
false
0
0.024096
0.036145
0.506024
0
0
0
0
null
0
0
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
1
0
0
0
0
1
0
0
3
dfa2e0f2fe09ae1b326648bd138cfa7486127a8b
3,567
py
Python
clusterdata/schema.py
burgerdev/googleclusterdata
f1c443b72754082f41c927e83160627e79f5c74e
[ "MIT" ]
null
null
null
clusterdata/schema.py
burgerdev/googleclusterdata
f1c443b72754082f41c927e83160627e79f5c74e
[ "MIT" ]
null
null
null
clusterdata/schema.py
burgerdev/googleclusterdata
f1c443b72754082f41c927e83160627e79f5c74e
[ "MIT" ]
null
null
null
import os import csv from collections import defaultdict from config import config _basedir = config.get("clusterdata", "root") with open(os.path.join(_basedir, "schema.csv"), 'r') as _schemafile: _reader = csv.reader(_schemafile) _reader.next() _content = list(_reader) _grouped = defaultdict(list) f...
22.29375
68
0.560976
445
3,567
4.25618
0.316854
0.038015
0.029567
0.017951
0.048574
0
0
0
0
0
0
0.007005
0.319596
3,567
159
69
22.433962
0.773383
0.043734
0
0.119266
0
0
0.076464
0.006571
0
0
0
0.012579
0.018349
1
0.201835
false
0
0.036697
0.110092
0.495413
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
1
0
0
1
0
0
0
1
0
0
0
3
dfdb93907bbb37d0f41c4f4b4a5211ca2bc952fa
465
py
Python
pymanopt/autodiff/backends/__init__.py
navigator8972/pymanopt
b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f
[ "BSD-3-Clause" ]
null
null
null
pymanopt/autodiff/backends/__init__.py
navigator8972/pymanopt
b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f
[ "BSD-3-Clause" ]
null
null
null
pymanopt/autodiff/backends/__init__.py
navigator8972/pymanopt
b9f53fa2d187c22ae75f65c71aeeb2bfa8b9c37f
[ "BSD-3-Clause" ]
null
null
null
__all__ = ["autograd", "numpy", "pytorch", "tensorflow"] from .. import backend_decorator_factory from ._autograd import AutogradBackend from ._numpy import NumPyBackend from ._pytorch import PyTorchBackend from ._tensorflow import TensorFlowBackend autograd = backend_decorator_factory(AutogradBackend) numpy = backe...
33.214286
57
0.843011
46
465
8.130435
0.304348
0.213904
0.307487
0
0
0
0
0
0
0
0
0
0.088172
465
13
58
35.769231
0.882075
0
0
0
0
0
0.064516
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
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
1
0
0
0
0
3
dfddaee3c0d6b71b7adda2d025118f8929cfffe2
1,765
py
Python
src/pydybm/arraymath/dycupy/random.py
ibm-research-tokyo/dybm
a6d308c896c2f66680ee9c5d05a3d7826cc27c64
[ "Apache-2.0" ]
126
2017-09-04T11:53:26.000Z
2022-02-22T12:47:56.000Z
src/pydybm/arraymath/dycupy/random.py
IBM-DSE/dybm
3484e337954c017f0a20166403a6ddba4ce274c0
[ "Apache-2.0" ]
8
2017-10-14T03:26:16.000Z
2020-12-22T22:22:42.000Z
src/pydybm/arraymath/dycupy/random.py
IBM-DSE/dybm
3484e337954c017f0a20166403a6ddba4ce274c0
[ "Apache-2.0" ]
41
2017-09-04T13:40:23.000Z
2022-03-02T14:02:53.000Z
# (C) Copyright IBM Corp. 2016 # # 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 writin...
24.513889
76
0.689518
286
1,765
4.125874
0.356643
0.038136
0.074576
0.067797
0.294068
0.249153
0.232203
0.232203
0.120339
0.10339
0
0.016701
0.185836
1,765
71
77
24.859155
0.804454
0.341643
0
0
0
0
0.011374
0
0
0
0
0
0
1
0.387097
false
0
0.064516
0.322581
0.83871
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
dfea265646db1d93e04912f398cf29d1c32f5913
41
py
Python
config.py
soybean217/opencv_python_cam_windows_demo
aab0a4cebc34760c437b32fb43c5e794fa181081
[ "MIT" ]
null
null
null
config.py
soybean217/opencv_python_cam_windows_demo
aab0a4cebc34760c437b32fb43c5e794fa181081
[ "MIT" ]
null
null
null
config.py
soybean217/opencv_python_cam_windows_demo
aab0a4cebc34760c437b32fb43c5e794fa181081
[ "MIT" ]
null
null
null
GLOBAL_SETTINGS = { "port": 11111, }
10.25
19
0.585366
4
41
5.75
1
0
0
0
0
0
0
0
0
0
0
0.16129
0.243902
41
3
20
13.666667
0.580645
0
0
0
0
0
0.097561
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
0
0
0
3
dfeb3afb186d0b9174c8a9c74a8b218826a889ce
531
py
Python
engage/templatetags/engage_tags.py
Praseetha-KR/django-engage
215888ae76237029cc54a58bc7020f163d078a46
[ "MIT" ]
1
2016-02-24T15:02:15.000Z
2016-02-24T15:02:15.000Z
engage/templatetags/engage_tags.py
djangothon/django-engage
215888ae76237029cc54a58bc7020f163d078a46
[ "MIT" ]
null
null
null
engage/templatetags/engage_tags.py
djangothon/django-engage
215888ae76237029cc54a58bc7020f163d078a46
[ "MIT" ]
null
null
null
from django import template from django.contrib.auth import get_user_model register = template.Library() @register.inclusion_tag("chatboxclient.html", takes_context=True) def engage(context): return context @register.inclusion_tag("chatboxadmin.html", takes_context=True) def engageadmin(context): return co...
22.125
65
0.758945
68
531
5.735294
0.544118
0.130769
0.153846
0.102564
0.323077
0.205128
0
0
0
0
0
0
0.131827
531
23
66
23.086957
0.845987
0.080979
0
0.166667
0
0
0.146186
0.061441
0
0
0
0
0
1
0.25
false
0
0.166667
0.166667
0.666667
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
5f2e2dccb6b1e9ba00fd3fc8a631b4526ed149fc
229
py
Python
networkit/coarsening.py
mlooz/networkit-general-polylog
5de2844e6b06258084ddf423c054a90954f6f59c
[ "MIT" ]
3
2018-02-24T08:17:03.000Z
2020-05-11T13:08:33.000Z
networkit/coarsening.py
kit-parco/networkit-hyperbolic-kd
8eb786b8f72e0507a75e68184f444a19cf47ef58
[ "MIT" ]
1
2019-11-29T08:57:52.000Z
2019-11-29T08:57:52.000Z
networkit/coarsening.py
kit-parco/networkit-hyperbolic-kd
8eb786b8f72e0507a75e68184f444a19cf47ef58
[ "MIT" ]
2
2020-11-18T09:17:04.000Z
2020-12-10T12:07:21.000Z
""" This module contains components for coarsening and uncoarsening graphs, used in multilevel methods""" __author__ = "Christian Staudt" from _NetworKit import GraphCoarsening, ParallelPartitionCoarsening, MatchingCoarsening
32.714286
105
0.829694
22
229
8.409091
1
0
0
0
0
0
0
0
0
0
0
0
0.117904
229
6
106
38.166667
0.915842
0.427948
0
0
0
0
0.129032
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
5f349dc2ec6b142763120dc45b21c1a262954826
208
py
Python
frigate/api/serializers.py
Yanoben/parking_reservation
5d9427494071eea18bda78a4f78e05c83dc0101d
[ "MIT" ]
null
null
null
frigate/api/serializers.py
Yanoben/parking_reservation
5d9427494071eea18bda78a4f78e05c83dc0101d
[ "MIT" ]
null
null
null
frigate/api/serializers.py
Yanoben/parking_reservation
5d9427494071eea18bda78a4f78e05c83dc0101d
[ "MIT" ]
null
null
null
from users.models import Parking_place from rest_framework import serializers class BookingsSerializer(serializers.ModelSerializer): class Meta: fields = '__all__' model = Parking_place
23.111111
54
0.759615
22
208
6.863636
0.727273
0.15894
0
0
0
0
0
0
0
0
0
0
0.192308
208
8
55
26
0.89881
0
0
0
0
0
0.033654
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
0
0
0
3
a027b87e6e224944a804f682a6621b4c1e4a40c8
1,253
py
Python
src/eepythontools/network_tools/tcp_pubsub.py
ciresnave/eetools
0752a2dec8f19c647e3b3e4dfd33982101cabc34
[ "MIT" ]
null
null
null
src/eepythontools/network_tools/tcp_pubsub.py
ciresnave/eetools
0752a2dec8f19c647e3b3e4dfd33982101cabc34
[ "MIT" ]
null
null
null
src/eepythontools/network_tools/tcp_pubsub.py
ciresnave/eetools
0752a2dec8f19c647e3b3e4dfd33982101cabc34
[ "MIT" ]
null
null
null
""" TCP/IP Pub/Sub Implementation """ from typing import Dict, Deque, Any, List from eepythontools.network_tools.generic_pubsub import Publisher from socketserver import TCPServer, UDPServer class TCP_Publisher(Publisher, TCPServer): def __init__( self, *args: Any, subscribers: Dict[str, D...
30.560976
65
0.628891
129
1,253
5.751938
0.302326
0.056604
0.137466
0.169811
0.690027
0.690027
0.690027
0.690027
0.690027
0.690027
0
0
0.278532
1,253
40
66
31.325
0.820796
0.023144
0
0.742857
0
0
0
0
0
0
0
0
0
1
0.057143
false
0
0.085714
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
1
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
3
a029c5987dfadc0fb6690c5448f37d739cb1049f
67,294
py
Python
tests/data_constants.py
rigdenlab/MrParse
4dd5286434d96dfb889b7398147922c9041d6628
[ "BSD-3-Clause" ]
null
null
null
tests/data_constants.py
rigdenlab/MrParse
4dd5286434d96dfb889b7398147922c9041d6628
[ "BSD-3-Clause" ]
8
2019-06-13T16:29:27.000Z
2021-11-19T14:11:55.000Z
tests/data_constants.py
rigdenlab/MrParse
4dd5286434d96dfb889b7398147922c9041d6628
[ "BSD-3-Clause" ]
null
null
null
TWOUVO_SEQ = 'ERCGEQGSNMECPNNLCCSQYGYCGMGGDYCGKGCQNGACWTSKRCGSQAGGATCTNNQCCSQYGYCGFGAEYCGAGCQGGPCRADIKCGSQAGGKLCPNNLCCSQWGFCGLGSEFCGGGCQSGACSTDKPCGKDAGGRVCTNNYCCSKWGSCGIGPGYCGAGCQSGGCDG' FIVEHXG_SEQ = 'MRYFFMAEPIRAMEGDLLGVEIITHFASSPARPLHPEFVISSWDNSQKRRFLLDLLRTIAAKHGWFLRHGLFCIVNIDRGMAQLVLQDKDIRALLHAMLFVELQVAEHFSCQDNVLVD...
70.391213
367
0.519422
8,499
67,294
4.081304
0.111778
0.027849
0.035806
0.035892
0.595093
0.520512
0.450053
0.386917
0.360856
0.324848
0
0.217905
0.323773
67,294
956
368
70.391213
0.544346
0
0
0.240148
0
0.229064
0.998722
0.234282
0
0
0
0
0
1
0
false
0.009852
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a02b8b9686d9666e4bdeb7f575f0b08be5430a68
158
py
Python
mymoney/apps/banktransactions/apps.py
ychab/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
67
2015-12-22T10:27:34.000Z
2022-03-10T21:33:18.000Z
mymoney/apps/banktransactions/apps.py
clebercarmo/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
null
null
null
mymoney/apps/banktransactions/apps.py
clebercarmo/mymoney
9ee665d40648fd0b95f6e90d82ccf2bfc791e8af
[ "BSD-3-Clause" ]
35
2016-08-07T11:43:51.000Z
2022-02-21T21:20:06.000Z
from django.apps import AppConfig class BankTransactionConfig(AppConfig): name = 'mymoney.apps.banktransactions' verbose_name = "Bank transactions"
22.571429
42
0.778481
16
158
7.625
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.14557
158
6
43
26.333333
0.903704
0
0
0
0
0
0.291139
0.183544
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
1
0
0
3
a032ba60827246c9e0df53798b7634b1e632fff9
74
py
Python
codigo.py
MsCruz018/demo-de-clase-2018-01
6605ae3aa474bda9fd3bf17e58cc2495738f46aa
[ "MIT" ]
null
null
null
codigo.py
MsCruz018/demo-de-clase-2018-01
6605ae3aa474bda9fd3bf17e58cc2495738f46aa
[ "MIT" ]
1
2018-02-24T12:53:56.000Z
2018-02-24T12:53:56.000Z
codigo.py
MsCruz018/demo-de-clase-2018-01
6605ae3aa474bda9fd3bf17e58cc2495738f46aa
[ "MIT" ]
null
null
null
# Codigo de ejemplor para merger for i in 10 x = x + 1
14.8
33
0.5
12
74
3.083333
0.916667
0
0
0
0
0
0
0
0
0
0
0.075
0.459459
74
4
34
18.5
0.85
0.405405
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
a03c3227f3b5c85aa309ffb0aa898204d712151c
321
py
Python
courses/admin.py
Dynamicist-handa/EscuelaLingua
198abfcc14204d8ecd2706f2de2650293219662e
[ "Apache-2.0" ]
null
null
null
courses/admin.py
Dynamicist-handa/EscuelaLingua
198abfcc14204d8ecd2706f2de2650293219662e
[ "Apache-2.0" ]
null
null
null
courses/admin.py
Dynamicist-handa/EscuelaLingua
198abfcc14204d8ecd2706f2de2650293219662e
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Course, Content, Test, User, Homework, HomeworkSubmission admin.site.register(Course) admin.site.register(Content) admin.site.register(Test) admin.site.register(User) admin.site.register(Homework) admin.site.register(HomeworkSubmission)...
26.75
77
0.816199
42
321
6.238095
0.380952
0.206107
0.389313
0
0
0
0
0
0
0
0
0
0.080997
321
11
78
29.181818
0.888136
0.080997
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
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
1
0
0
0
0
0
0
3
a0415be3a2194a9e9c1c91543f5d76db93b57716
2,594
py
Python
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/texture_compression.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/texture_compression.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/texture_compression.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
'''Autogenerated by get_gl_extensions script, do not edit!''' from OpenGL import platform as _p, constants as _cs, arrays from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_ARB_texture_compression' def _f( function ): return _p.createFunction( function,_p.GL,'GL_ARB_texture_compression',False) _p.unpack...
52.938776
141
0.834618
381
2,594
5.301837
0.246719
0.080198
0.066832
0.038119
0.490594
0.369802
0.338119
0.338119
0.338119
0.338119
0
0.019207
0.056669
2,594
48
142
54.041667
0.806293
0.045104
0
0.159091
1
0
0.184104
0.148824
0
0
0.026764
0
0
1
0.204545
false
0.159091
0.090909
0.022727
0.340909
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
1
0
0
0
0
0
3
a051e2385bbcc5d7049f49320807be67f85907c8
343
py
Python
canvasapi/content_export.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
canvasapi/content_export.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
canvasapi/content_export.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from six import python_2_unicode_compatible from canvasapi.canvas_object import CanvasObject @python_2_unicode_compatible class ContentExport(CanvasObject): def __str__(self): return "{} {} ({})".format(self.export_type, ...
28.583333
82
0.793003
43
343
5.860465
0.651163
0.055556
0.111111
0.190476
0
0
0
0
0
0
0
0.006645
0.122449
343
11
83
31.181818
0.830565
0
0
0
0
0
0.029155
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.857143
0.142857
0
0
0
null
0
0
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
1
1
0
0
0
3
a076d2e11e99695f10dcee27f27fd25325c72189
4,474
py
Python
tests/types/test_user_events_types.py
deleteduser0206/vkwave
8e641bcdd9bec5c30818c82f34662fbd14053e88
[ "MIT" ]
null
null
null
tests/types/test_user_events_types.py
deleteduser0206/vkwave
8e641bcdd9bec5c30818c82f34662fbd14053e88
[ "MIT" ]
null
null
null
tests/types/test_user_events_types.py
deleteduser0206/vkwave
8e641bcdd9bec5c30818c82f34662fbd14053e88
[ "MIT" ]
null
null
null
from ctypes.wintypes import DWORD import json from vkwave.types.user_events import ( ChangedChatSettingsType, PlatformEnum, TimeoutUserEnum, get_event_object, MessageFlag, ) def test_deleted_message_event(): event = get_event_object( [2, 666, 131200, 2000000005, ] ) assert event.object.messag...
38.904348
120
0.699821
551
4,474
5.477314
0.252269
0.204109
0.236581
0.069251
0.43837
0.282306
0.213386
0.179589
0.154407
0.082836
0
0.150856
0.177693
4,474
114
121
39.245614
0.669475
0.000671
0
0.125
0
0
0.063101
0.012531
0
0
0
0
0.5
1
0.125
false
0
0.045455
0
0.170455
0
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
1
0
0
0
0
0
0
0
0
0
3
a08c90e066996974ce194dcd0bbf7bb87cd03122
239
py
Python
docs/report/cloudmesh-openapi/example/doc.py
rickotten/cybertraining-dsc.github.io
c8ea59be4f09fd543040ba0908af118df5820a70
[ "Apache-2.0" ]
7
2020-02-29T14:53:19.000Z
2021-01-17T17:08:44.000Z
example/doc.py
imishra1/cloudmesh-openapi
89fdc74aae459aba4ebb959f8564bb3ddd967cbb
[ "Apache-2.0" ]
27
2020-02-29T13:38:11.000Z
2020-09-02T20:24:59.000Z
example/doc.py
imishra1/cloudmesh-openapi
89fdc74aae459aba4ebb959f8564bb3ddd967cbb
[ "Apache-2.0" ]
6
2020-03-02T17:09:14.000Z
2020-10-30T22:48:01.000Z
def sample(a: int, b: float, c: str) -> str: """ This is a sample :param a: this is a with two lines :param b: this is b :param c: this is c :return: this is a string conatining that """ pass
19.916667
45
0.531381
39
239
3.25641
0.487179
0.23622
0.165354
0
0
0
0
0
0
0
0
0
0.368201
239
11
46
21.727273
0.84106
0.60251
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
0
0
0
0
null
1
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
1
0
0
0
0
0
3
a09dd9fd3b02a8e981580048b87b4e687081aa7f
26,358
py
Python
src/ralph_scrooge/tests/rest_api/public/test_team_time_division.py
ar4s/ralph_pricing
40127e9450edc91ba0be725d63bf691dde16a137
[ "Apache-2.0" ]
4
2016-05-06T19:28:53.000Z
2018-01-26T21:13:40.000Z
src/ralph_scrooge/tests/rest_api/public/test_team_time_division.py
ar4s/ralph_pricing
40127e9450edc91ba0be725d63bf691dde16a137
[ "Apache-2.0" ]
283
2015-01-07T15:06:34.000Z
2019-08-08T10:43:47.000Z
src/ralph_scrooge/tests/rest_api/public/test_team_time_division.py
ar4s/ralph_pricing
40127e9450edc91ba0be725d63bf691dde16a137
[ "Apache-2.0" ]
16
2015-01-27T10:33:20.000Z
2020-06-25T07:04:21.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import json from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from rest_framework.tes...
35.8125
95
0.49742
2,347
26,358
5.348956
0.101832
0.031225
0.046838
0.028676
0.790505
0.748686
0.702406
0.694281
0.694121
0.67819
0
0.024129
0.40409
26,358
735
96
35.861224
0.775132
0.032704
0
0.573723
0
0
0.109441
0.000903
0
0
0
0
0.106569
1
0.023358
false
0
0.018978
0
0.043796
0.00146
0
0
0
null
0
0
0
0
1
1
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
0
0
0
0
0
0
3
a09f9f520443c5b890b905dc8fa24c4e9a0cc9b5
2,527
py
Python
thesis/reader.py
Clockers/CTGAN
c98bc2e4aa786c33f6b17819c64912a15f0b41cf
[ "MIT" ]
1
2021-07-07T16:48:55.000Z
2021-07-07T16:48:55.000Z
thesis/reader.py
Clockers/CTGAN
c98bc2e4aa786c33f6b17819c64912a15f0b41cf
[ "MIT" ]
null
null
null
thesis/reader.py
Clockers/CTGAN
c98bc2e4aa786c33f6b17819c64912a15f0b41cf
[ "MIT" ]
null
null
null
import os import pandas path_original = './datasets/original/' path_generated = './datasets/generated/' def read_csv(name): data = pandas.read_csv(path_original + name) data = remove_columns(data, name) print(data.dtypes) print(data.select_dtypes('object').columns) #data["Source Port"] = data[...
31.5875
92
0.640681
349
2,527
4.532951
0.234957
0.136536
0.256005
0.273072
0.615044
0.585967
0.30847
0.247788
0.247788
0.185841
0
0.015795
0.198259
2,527
79
93
31.987342
0.765054
0.058567
0
0.096154
1
0
0.185263
0.021053
0
0
0
0
0
1
0.076923
false
0
0.038462
0.019231
0.192308
0.038462
0
0
0
null
0
1
1
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
3
a0a3e78072d1bd1ebf47112a9bd42428690299a7
85
py
Python
bvb/main.py
njohn1970/bvb
acdc7c816ea7861d8a20f5513204e6b1d99cfb06
[ "MIT" ]
null
null
null
bvb/main.py
njohn1970/bvb
acdc7c816ea7861d8a20f5513204e6b1d99cfb06
[ "MIT" ]
null
null
null
bvb/main.py
njohn1970/bvb
acdc7c816ea7861d8a20f5513204e6b1d99cfb06
[ "MIT" ]
null
null
null
''' Created on 20 Jul 2015 @author: njohn ''' if __name__ == '__main__': pass
8.5
26
0.6
11
85
3.909091
1
0
0
0
0
0
0
0
0
0
0
0.09375
0.247059
85
10
27
8.5
0.578125
0.447059
0
0
0
0
0.2
0
0
0
0
0
0
1
0
true
0.5
0
0
0
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
1
1
0
0
0
0
0
3
a0ad72d553794fbbd69d1fcda7fedbc55c1da225
4,456
py
Python
tests/plugins/qualification_management/test_qualification_change_manager.py
ephios-dev/ephios
c8d30576238a189ccef1929661f547ee3fe6e5d7
[ "MIT" ]
14
2021-01-13T12:15:03.000Z
2022-03-20T10:02:11.000Z
tests/plugins/qualification_management/test_qualification_change_manager.py
ephios-dev/ephios
c8d30576238a189ccef1929661f547ee3fe6e5d7
[ "MIT" ]
570
2020-09-19T13:37:27.000Z
2022-03-31T09:14:37.000Z
tests/plugins/qualification_management/test_qualification_change_manager.py
ephios-dev/ephios
c8d30576238a189ccef1929661f547ee3fe6e5d7
[ "MIT" ]
5
2021-01-08T16:52:31.000Z
2022-03-20T10:02:25.000Z
import uuid from ephios.core.models import Qualification, QualificationCategory from ephios.plugins.qualification_management.importing import QualificationChangeManager def test_plain_import(deserialized_qualifications): assert not QualificationCategory.objects.exists() QualificationChangeManager().add_deser...
41.259259
89
0.768178
465
4,456
7.096774
0.174194
0.212727
0.090606
0.098182
0.74
0.74
0.700909
0.657879
0.604242
0.525758
0
0.009081
0.135099
4,456
107
90
41.64486
0.847172
0.003591
0
0.604651
0
0
0.013745
0.008112
0
0
0
0
0.197674
1
0.081395
false
0
0.093023
0
0.174419
0
0
0
0
null
1
0
0
0
1
1
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
39fe848dd8890790bab4d9b255b4aa959289c466
281
py
Python
language/python/python/class/meta_class.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
language/python/python/class/meta_class.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
language/python/python/class/meta_class.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ 元类介绍 - https://www.cnblogs.com/ellisonzhang/p/10513238.html - 元类就是创建类这种对象的东西,type就是Python的内建元类,当然了,你也可以创建自己的元类 - 元类的主要目的就是为了当创建类时能够自动地改变类 """ def main(): pass if __name__ == "__main__": main()
12.217391
54
0.679715
30
281
6.1
0.933333
0
0
0
0
0
0
0
0
0
0
0.042017
0.153025
281
22
55
12.772727
0.726891
0.711744
0
0
0
0
0.114286
0
0
0
0
0
0
1
0.25
true
0.25
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
1
1
1
0
0
0
0
0
3